From a3939024d260fd2faee546b5b186cf546c9f4233 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Mon, 2 Aug 2021 14:00:43 -0700 Subject: [PATCH 1/6] Revert "Update API models (#1359)" This reverts commit 2497574322011b0a9fe6011397615306ef2e1bdd. --- .../41575353444b40ffbf474f4155544f00.json | 10 - .../6bdf0c5f64af43a292c4c9835c93dc11.json | 298 - .../appintegrations.2020-07-29.json | 38 +- .../aws-models/auditmanager.2017-07-25.json | 262 +- .../aws-models/batch.2016-08-10.json | 334 +- .../aws-models/chime.2018-05-01.json | 474 +- .../aws-models/cloudformation.2010-05-15.json | 1340 +--- .../aws-models/cloudwatch.2010-08-01.json | 41 +- .../aws-models/codebuild.2016-10-06.json | 301 +- .../cognitoidentityprovider.2016-04-18.json | 128 +- .../computeoptimizer.2019-11-01.json | 6 +- .../aws-models/databrew.2017-07-25.json | 299 +- .../aws-models/directconnect.2012-10-25.json | 21 +- .../aws-models/ec2.2016-11-15.json | 2120 +---- .../aws-models/ecs.2014-11-13.json | 180 +- .../elasticloadbalancingv2.2015-12-01.json | 125 +- .../aws-models/emr.2009-03-31.json | 315 +- .../aws-models/emrcontainers.2020-10-01.json | 68 +- .../aws-models/health.2016-08-04.json | 42 +- .../aws-models/iam.2010-05-08.json | 4 +- .../aws-models/identitystore.2020-06-15.json | 49 +- .../aws-models/imagebuilder.2019-12-02.json | 264 +- .../aws-models/iot.2015-05-28.json | 124 +- .../aws-models/iotanalytics.2017-11-27.json | 388 +- .../aws-models/iotsitewise.2019-12-02.json | 283 +- .../aws-models/iotwireless.2020-11-22.json | 40 +- .../aws-models/kendra.2019-02-03.json | 79 +- .../aws-models/lambda.2015-03-31.json | 47 +- .../lexmodelbuildingservice.2017-04-19.json | 4 - .../aws-models/lexmodelsv2.2020-08-07.json | 366 - .../aws-models/location.2020-11-19.json | 565 +- .../aws-models/medialive.2017-10-14.json | 56 +- .../aws-models/personalize.2018-05-22.json | 33 +- .../aws-models/proton.2020-07-20.json | 82 +- .../aws-models/qldb.2019-01-02.json | 108 +- .../aws-models/quicksight.2018-04-01.json | 1131 +-- .../aws-models/rds.2014-10-31.json | 142 +- .../aws-models/redshiftdata.2019-12-20.json | 408 +- .../aws-models/robomaker.2018-06-29.json | 54 +- .../aws-models/route53.2013-04-01.json | 203 +- .../route53recoverycluster.2019-12-02.json | 511 -- ...ute53recoverycontrolconfig.2020-11-02.json | 2333 ------ .../route53recoveryreadiness.2019-12-02.json | 3373 -------- .../aws-models/s3control.2018-08-20.json | 197 +- .../aws-models/s3outposts.2017-07-25.json | 130 +- .../aws-models/savingsplans.2019-06-28.json | 20 +- .../aws-models/securityhub.2018-10-26.json | 918 +-- .../aws-models/shield.2016-06-02.json | 122 +- .../aws-models/ssoadmin.2020-07-20.json | 209 +- .../aws-models/synthetics.2017-10-11.json | 95 +- .../aws-models/textract.2018-06-27.json | 282 +- .../aws/go/codegen/endpoint-prefix.json | 3 - config/go.mod | 2 +- config/go.sum | 4 +- credentials/go.mod | 2 +- credentials/go.sum | 4 +- example/service/s3/listObjects/go.sum | 4 +- example/service/s3/usingPrivateLink/go.sum | 4 +- feature/cloudfront/sign/go.sum | 4 +- feature/dynamodb/attributevalue/go.mod | 2 +- feature/dynamodb/attributevalue/go.sum | 4 +- feature/dynamodb/expression/go.sum | 4 +- feature/dynamodbstreams/attributevalue/go.mod | 2 +- feature/dynamodbstreams/attributevalue/go.sum | 4 +- feature/ec2/imds/go.mod | 2 +- feature/ec2/imds/go.sum | 4 +- .../ec2/imds/internal/configtesting/go.sum | 4 +- feature/rds/auth/go.sum | 4 +- feature/s3/manager/go.mod | 2 +- feature/s3/manager/go.sum | 4 +- go.mod | 2 +- go.sum | 4 +- internal/configsources/configtesting/go.sum | 4 +- internal/configsources/go.sum | 4 +- internal/ini/go.sum | 2 +- internal/protocoltest/awsrestjson/go.mod | 2 +- internal/protocoltest/awsrestjson/go.sum | 4 +- internal/protocoltest/ec2query/go.mod | 2 +- internal/protocoltest/ec2query/go.sum | 4 +- internal/protocoltest/jsonrpc/go.mod | 2 +- internal/protocoltest/jsonrpc/go.sum | 4 +- internal/protocoltest/jsonrpc10/go.mod | 2 +- internal/protocoltest/jsonrpc10/go.sum | 4 +- internal/protocoltest/query/go.mod | 2 +- internal/protocoltest/query/go.sum | 4 +- internal/protocoltest/restxml/go.mod | 2 +- internal/protocoltest/restxml/go.sum | 4 +- .../protocoltest/restxmlwithnamespace/go.mod | 2 +- .../protocoltest/restxmlwithnamespace/go.sum | 4 +- modman.toml | 2 +- service/accessanalyzer/go.mod | 2 +- service/accessanalyzer/go.sum | 4 +- service/acm/go.mod | 2 +- service/acm/go.sum | 4 +- service/acmpca/go.mod | 2 +- service/acmpca/go.sum | 4 +- service/alexaforbusiness/go.mod | 2 +- service/alexaforbusiness/go.sum | 4 +- service/amp/go.mod | 2 +- service/amp/go.sum | 4 +- service/amplify/go.mod | 2 +- service/amplify/go.sum | 4 +- service/amplifybackend/go.mod | 2 +- service/amplifybackend/go.sum | 4 +- service/apigateway/go.mod | 2 +- service/apigateway/go.sum | 4 +- service/apigatewaymanagementapi/go.mod | 2 +- service/apigatewaymanagementapi/go.sum | 4 +- service/apigatewayv2/go.mod | 2 +- service/apigatewayv2/go.sum | 4 +- service/appconfig/go.mod | 2 +- service/appconfig/go.sum | 4 +- service/appflow/go.mod | 2 +- service/appflow/go.sum | 4 +- .../api_op_CreateEventIntegration.go | 9 +- .../api_op_DeleteEventIntegration.go | 5 +- .../api_op_GetEventIntegration.go | 5 +- ...api_op_ListEventIntegrationAssociations.go | 4 +- .../api_op_ListEventIntegrations.go | 3 +- .../api_op_ListTagsForResource.go | 3 +- service/appintegrations/api_op_TagResource.go | 3 +- .../appintegrations/api_op_UntagResource.go | 3 +- .../api_op_UpdateEventIntegration.go | 3 +- service/appintegrations/doc.go | 3 +- service/appintegrations/go.mod | 2 +- service/appintegrations/go.sum | 4 +- service/appintegrations/types/types.go | 13 +- service/applicationautoscaling/go.mod | 2 +- service/applicationautoscaling/go.sum | 4 +- service/applicationcostprofiler/go.mod | 2 +- service/applicationcostprofiler/go.sum | 4 +- service/applicationdiscoveryservice/go.mod | 2 +- service/applicationdiscoveryservice/go.sum | 4 +- service/applicationinsights/go.mod | 2 +- service/applicationinsights/go.sum | 4 +- service/appmesh/go.mod | 2 +- service/appmesh/go.sum | 4 +- service/apprunner/go.mod | 2 +- service/apprunner/go.sum | 4 +- service/appstream/go.mod | 2 +- service/appstream/go.sum | 4 +- service/appsync/go.mod | 2 +- service/appsync/go.sum | 4 +- service/athena/go.mod | 2 +- service/athena/go.sum | 4 +- ...AssociateAssessmentReportEvidenceFolder.go | 2 +- ..._BatchAssociateAssessmentReportEvidence.go | 2 +- ...pi_op_BatchCreateDelegationByAssessment.go | 4 +- ...pi_op_BatchDeleteDelegationByAssessment.go | 2 +- ...tchDisassociateAssessmentReportEvidence.go | 4 +- ..._BatchImportEvidenceToAssessmentControl.go | 2 +- .../auditmanager/api_op_CreateAssessment.go | 10 +- .../api_op_CreateAssessmentFramework.go | 2 +- service/auditmanager/api_op_CreateControl.go | 2 +- .../auditmanager/api_op_DeleteAssessment.go | 2 +- .../api_op_DeleteAssessmentFramework.go | 2 +- .../api_op_DeleteAssessmentReport.go | 2 +- service/auditmanager/api_op_DeleteControl.go | 2 +- .../auditmanager/api_op_DeregisterAccount.go | 2 +- ...i_op_DeregisterOrganizationAdminAccount.go | 7 +- ...associateAssessmentReportEvidenceFolder.go | 4 +- .../auditmanager/api_op_GetAccountStatus.go | 4 +- service/auditmanager/api_op_GetAssessment.go | 9 +- .../api_op_GetAssessmentFramework.go | 2 +- .../api_op_GetAssessmentReportUrl.go | 2 +- service/auditmanager/api_op_GetChangeLogs.go | 2 +- service/auditmanager/api_op_GetControl.go | 2 +- service/auditmanager/api_op_GetEvidence.go | 2 +- .../api_op_GetEvidenceByEvidenceFolder.go | 2 +- .../auditmanager/api_op_GetEvidenceFolder.go | 2 +- .../api_op_GetEvidenceFoldersByAssessment.go | 2 +- ...p_GetEvidenceFoldersByAssessmentControl.go | 2 +- .../api_op_GetOrganizationAdminAccount.go | 4 +- .../auditmanager/api_op_GetServicesInScope.go | 5 +- service/auditmanager/api_op_GetSettings.go | 4 +- .../api_op_ListAssessmentFrameworks.go | 2 +- .../api_op_ListAssessmentReports.go | 2 +- .../auditmanager/api_op_ListAssessments.go | 2 +- service/auditmanager/api_op_ListControls.go | 2 +- .../auditmanager/api_op_ListNotifications.go | 2 +- .../api_op_ListTagsForResource.go | 2 +- .../auditmanager/api_op_RegisterAccount.go | 6 +- ...api_op_RegisterOrganizationAdminAccount.go | 6 +- service/auditmanager/api_op_TagResource.go | 2 +- service/auditmanager/api_op_UntagResource.go | 2 +- .../auditmanager/api_op_UpdateAssessment.go | 2 +- .../api_op_UpdateAssessmentControl.go | 2 +- ...api_op_UpdateAssessmentControlSetStatus.go | 2 +- .../api_op_UpdateAssessmentFramework.go | 2 +- .../api_op_UpdateAssessmentStatus.go | 2 +- service/auditmanager/api_op_UpdateControl.go | 2 +- service/auditmanager/api_op_UpdateSettings.go | 8 +- ...pi_op_ValidateAssessmentReportIntegrity.go | 2 +- service/auditmanager/doc.go | 22 +- service/auditmanager/go.mod | 2 +- service/auditmanager/go.sum | 4 +- service/auditmanager/types/errors.go | 4 +- service/auditmanager/types/types.go | 170 +- service/autoscaling/go.mod | 2 +- service/autoscaling/go.sum | 4 +- service/autoscalingplans/go.mod | 2 +- service/autoscalingplans/go.sum | 4 +- service/backup/go.mod | 2 +- service/backup/go.sum | 4 +- service/batch/api_op_CancelJob.go | 12 +- .../batch/api_op_CreateComputeEnvironment.go | 93 +- service/batch/api_op_CreateJobQueue.go | 24 +- .../batch/api_op_DeleteComputeEnvironment.go | 4 +- .../batch/api_op_DeregisterJobDefinition.go | 2 +- .../batch/api_op_DescribeJobDefinitions.go | 6 +- service/batch/api_op_DescribeJobs.go | 2 +- service/batch/api_op_ListJobs.go | 37 +- service/batch/api_op_ListTagsForResource.go | 8 +- service/batch/api_op_RegisterJobDefinition.go | 28 +- service/batch/api_op_SubmitJob.go | 24 +- service/batch/api_op_TagResource.go | 12 +- service/batch/api_op_TerminateJob.go | 4 +- service/batch/api_op_UntagResource.go | 10 +- .../batch/api_op_UpdateComputeEnvironment.go | 39 +- service/batch/api_op_UpdateJobQueue.go | 2 +- service/batch/deserializers.go | 9 - service/batch/doc.go | 26 +- service/batch/go.mod | 2 +- service/batch/go.sum | 4 +- service/batch/serializers.go | 39 - service/batch/types/types.go | 611 +- service/braket/go.mod | 2 +- service/braket/go.sum | 4 +- service/budgets/go.mod | 2 +- service/budgets/go.sum | 4 +- .../chime/api_op_StartMeetingTranscription.go | 123 - .../chime/api_op_StopMeetingTranscription.go | 116 - service/chime/deserializers.go | 220 - service/chime/generated.json | 2 - service/chime/go.mod | 2 +- service/chime/go.sum | 4 +- service/chime/serializers.go | 226 - service/chime/types/enums.go | 200 - service/chime/types/types.go | 72 +- service/chime/validators.go | 143 - service/cloud9/go.mod | 2 +- service/cloud9/go.sum | 4 +- service/clouddirectory/go.mod | 2 +- service/clouddirectory/go.sum | 4 +- .../api_op_CancelUpdateStack.go | 6 +- .../api_op_ContinueUpdateRollback.go | 83 +- .../cloudformation/api_op_CreateChangeSet.go | 133 +- service/cloudformation/api_op_CreateStack.go | 92 +- .../api_op_CreateStackInstances.go | 65 +- .../cloudformation/api_op_CreateStackSet.go | 104 +- .../cloudformation/api_op_DeleteChangeSet.go | 2 +- service/cloudformation/api_op_DeleteStack.go | 22 +- .../api_op_DeleteStackInstances.go | 23 +- .../cloudformation/api_op_DeleteStackSet.go | 8 +- .../api_op_DescribeAccountLimits.go | 12 +- .../api_op_DescribeChangeSet.go | 216 +- ...pi_op_DescribeStackDriftDetectionStatus.go | 24 +- .../api_op_DescribeStackEvents.go | 2 +- .../api_op_DescribeStackInstance.go | 12 +- .../api_op_DescribeStackResourceDrifts.go | 22 +- .../api_op_DescribeStackResources.go | 34 +- .../cloudformation/api_op_DescribeStackSet.go | 8 +- .../api_op_DescribeStackSetOperation.go | 8 +- .../cloudformation/api_op_DescribeStacks.go | 1579 ---- service/cloudformation/api_op_DescribeType.go | 21 +- .../cloudformation/api_op_DetectStackDrift.go | 8 +- .../api_op_DetectStackResourceDrift.go | 2 +- .../api_op_DetectStackSetDrift.go | 10 +- .../api_op_EstimateTemplateCost.go | 16 +- .../cloudformation/api_op_ExecuteChangeSet.go | 24 +- .../cloudformation/api_op_GetStackPolicy.go | 2 +- service/cloudformation/api_op_GetTemplate.go | 20 +- .../api_op_GetTemplateSummary.go | 23 +- .../api_op_ImportStacksToStackSet.go | 187 - .../cloudformation/api_op_ListChangeSets.go | 2 +- service/cloudformation/api_op_ListExports.go | 3 +- service/cloudformation/api_op_ListImports.go | 4 +- .../api_op_ListStackInstances.go | 12 +- .../api_op_ListStackSetOperationResults.go | 8 +- .../api_op_ListStackSetOperations.go | 8 +- .../cloudformation/api_op_ListStackSets.go | 14 +- service/cloudformation/api_op_ListTypes.go | 2 +- service/cloudformation/api_op_PublishType.go | 4 +- .../api_op_RegisterPublisher.go | 11 +- service/cloudformation/api_op_RegisterType.go | 20 +- .../cloudformation/api_op_SetStackPolicy.go | 4 +- .../api_op_SetTypeConfiguration.go | 2 +- .../cloudformation/api_op_SignalResource.go | 4 +- .../api_op_StopStackSetOperation.go | 8 +- service/cloudformation/api_op_TestType.go | 4 +- service/cloudformation/api_op_UpdateStack.go | 92 +- .../api_op_UpdateStackInstances.go | 55 +- .../cloudformation/api_op_UpdateStackSet.go | 119 +- .../api_op_UpdateTerminationProtection.go | 2 +- .../cloudformation/api_op_ValidateTemplate.go | 14 +- service/cloudformation/deserializers.go | 268 - service/cloudformation/doc.go | 29 +- service/cloudformation/generated.json | 1 - service/cloudformation/go.mod | 2 +- service/cloudformation/go.sum | 4 +- service/cloudformation/serializers.go | 110 - service/cloudformation/types/errors.go | 22 +- service/cloudformation/types/types.go | 439 +- service/cloudformation/validators.go | 42 - service/cloudfront/go.mod | 2 +- service/cloudfront/go.sum | 4 +- service/cloudhsm/go.mod | 2 +- service/cloudhsm/go.sum | 4 +- service/cloudhsmv2/go.mod | 2 +- service/cloudhsmv2/go.sum | 4 +- service/cloudsearch/go.mod | 2 +- service/cloudsearch/go.sum | 4 +- service/cloudsearchdomain/go.mod | 2 +- service/cloudsearchdomain/go.sum | 4 +- service/cloudtrail/go.mod | 2 +- service/cloudtrail/go.sum | 4 +- .../cloudwatch/api_op_GetMetricStatistics.go | 3 +- .../cloudwatch/api_op_GetMetricWidgetImage.go | 7 +- service/cloudwatch/api_op_PutMetricAlarm.go | 43 +- service/cloudwatch/api_op_PutMetricData.go | 4 +- service/cloudwatch/api_op_PutMetricStream.go | 12 +- service/cloudwatch/api_op_TagResource.go | 14 +- service/cloudwatch/deserializers.go | 13 - service/cloudwatch/doc.go | 25 +- service/cloudwatch/go.mod | 2 +- service/cloudwatch/go.sum | 4 +- service/cloudwatch/serializers.go | 5 - service/cloudwatch/types/types.go | 17 +- service/cloudwatchevents/go.mod | 2 +- service/cloudwatchevents/go.sum | 4 +- service/cloudwatchlogs/go.mod | 2 +- service/cloudwatchlogs/go.sum | 4 +- service/codeartifact/go.mod | 2 +- service/codeartifact/go.sum | 4 +- service/codebuild/api_op_BatchGetProjects.go | 4 +- service/codebuild/api_op_CreateProject.go | 67 +- service/codebuild/api_op_CreateReportGroup.go | 4 +- service/codebuild/api_op_CreateWebhook.go | 24 +- service/codebuild/api_op_DeleteWebhook.go | 8 +- .../api_op_ImportSourceCredentials.go | 6 +- .../api_op_InvalidateProjectCache.go | 2 +- .../codebuild/api_op_ListBuildsForProject.go | 2 +- .../api_op_ListCuratedEnvironmentImages.go | 4 +- service/codebuild/api_op_ListReportGroups.go | 6 +- service/codebuild/api_op_ListReports.go | 6 +- .../codebuild/api_op_ListSharedProjects.go | 19 +- .../api_op_ListSharedReportGroups.go | 19 +- service/codebuild/api_op_PutResourcePolicy.go | 2 +- service/codebuild/api_op_RetryBuild.go | 2 +- service/codebuild/api_op_RetryBuildBatch.go | 4 +- service/codebuild/api_op_StartBuild.go | 44 +- service/codebuild/api_op_StartBuildBatch.go | 36 +- service/codebuild/api_op_UpdateProject.go | 66 +- service/codebuild/api_op_UpdateReportGroup.go | 4 +- service/codebuild/api_op_UpdateWebhook.go | 6 +- service/codebuild/deserializers.go | 27 - service/codebuild/doc.go | 18 +- service/codebuild/go.mod | 2 +- service/codebuild/go.sum | 4 +- service/codebuild/serializers.go | 10 - service/codebuild/types/enums.go | 20 - service/codebuild/types/errors.go | 9 +- service/codebuild/types/types.go | 662 +- service/codecommit/go.mod | 2 +- service/codecommit/go.sum | 4 +- service/codedeploy/go.mod | 2 +- service/codedeploy/go.sum | 4 +- service/codeguruprofiler/go.mod | 2 +- service/codeguruprofiler/go.sum | 4 +- service/codegurureviewer/go.mod | 2 +- service/codegurureviewer/go.sum | 4 +- service/codepipeline/go.mod | 2 +- service/codepipeline/go.sum | 4 +- service/codestar/go.mod | 2 +- service/codestar/go.sum | 4 +- service/codestarconnections/go.mod | 2 +- service/codestarconnections/go.sum | 4 +- service/codestarnotifications/go.mod | 2 +- service/codestarnotifications/go.sum | 4 +- service/cognitoidentity/go.mod | 2 +- service/cognitoidentity/go.sum | 4 +- .../api_op_AdminConfirmSignUp.go | 8 +- .../api_op_AdminCreateUser.go | 16 +- .../api_op_AdminInitiateAuth.go | 48 +- .../api_op_AdminResetUserPassword.go | 22 +- .../api_op_AdminRespondToAuthChallenge.go | 12 +- .../api_op_AdminUpdateUserAttributes.go | 10 +- .../api_op_ConfirmForgotPassword.go | 20 +- .../api_op_ConfirmSignUp.go | 10 +- .../api_op_CreateUserPool.go | 6 +- .../api_op_CreateUserPoolClient.go | 2 +- .../api_op_ForgotPassword.go | 10 +- ...api_op_GetUserAttributeVerificationCode.go | 16 +- .../api_op_InitiateAuth.go | 12 +- .../api_op_ListUserPools.go | 2 +- .../api_op_ResendConfirmationCode.go | 24 +- .../api_op_RespondToAuthChallenge.go | 27 +- .../api_op_SetUserPoolMfaConfig.go | 4 +- .../cognitoidentityprovider/api_op_SignUp.go | 8 +- .../api_op_UpdateGroup.go | 3 +- .../api_op_UpdateUserAttributes.go | 24 +- .../api_op_UpdateUserPool.go | 7 +- .../api_op_UpdateUserPoolClient.go | 2 +- .../api_op_UpdateUserPoolDomain.go | 4 +- service/cognitoidentityprovider/go.mod | 2 +- service/cognitoidentityprovider/go.sum | 4 +- .../cognitoidentityprovider/types/errors.go | 10 +- .../cognitoidentityprovider/types/types.go | 74 +- service/cognitosync/go.mod | 2 +- service/cognitosync/go.sum | 4 +- service/comprehend/go.mod | 2 +- service/comprehend/go.sum | 4 +- service/comprehendmedical/go.mod | 2 +- service/comprehendmedical/go.sum | 4 +- service/computeoptimizer/go.mod | 2 +- service/computeoptimizer/go.sum | 4 +- service/computeoptimizer/types/types.go | 8 +- service/configservice/go.mod | 2 +- service/configservice/go.sum | 4 +- service/connect/go.mod | 2 +- service/connect/go.sum | 4 +- service/connectcontactlens/go.mod | 2 +- service/connectcontactlens/go.sum | 4 +- service/connectparticipant/go.mod | 2 +- service/connectparticipant/go.sum | 4 +- service/costandusagereportservice/go.mod | 2 +- service/costandusagereportservice/go.sum | 4 +- service/costexplorer/go.mod | 2 +- service/costexplorer/go.sum | 4 +- service/customerprofiles/go.mod | 2 +- service/customerprofiles/go.sum | 4 +- service/databasemigrationservice/go.mod | 2 +- service/databasemigrationservice/go.sum | 4 +- service/databrew/api_op_CreateProfileJob.go | 5 - service/databrew/api_op_CreateRecipeJob.go | 8 +- service/databrew/api_op_DescribeJob.go | 13 +- service/databrew/api_op_DescribeJobRun.go | 13 +- service/databrew/api_op_UpdateProfileJob.go | 5 - service/databrew/api_op_UpdateRecipeJob.go | 8 +- service/databrew/deserializers.go | 478 -- service/databrew/go.mod | 2 +- service/databrew/go.sum | 4 +- service/databrew/serializers.go | 221 - service/databrew/types/enums.go | 16 - service/databrew/types/types.go | 147 +- service/databrew/validators.go | 169 - service/dataexchange/go.mod | 2 +- service/dataexchange/go.sum | 4 +- service/datapipeline/go.mod | 2 +- service/datapipeline/go.sum | 4 +- service/datasync/go.mod | 2 +- service/datasync/go.sum | 4 +- service/dax/go.mod | 2 +- service/dax/go.sum | 4 +- service/detective/go.mod | 2 +- service/detective/go.sum | 4 +- service/devicefarm/go.mod | 2 +- service/devicefarm/go.sum | 4 +- service/devopsguru/go.mod | 2 +- service/devopsguru/go.sum | 4 +- ...api_op_AllocateConnectionOnInterconnect.go | 6 +- .../api_op_AllocateHostedConnection.go | 6 +- .../api_op_AllocatePrivateVirtualInterface.go | 6 +- .../api_op_AllocatePublicVirtualInterface.go | 6 +- .../api_op_AssociateConnectionWithLag.go | 6 +- .../api_op_AssociateHostedConnection.go | 6 +- .../api_op_AssociateVirtualInterface.go | 6 +- .../directconnect/api_op_CreateConnection.go | 6 +- .../api_op_CreateInterconnect.go | 6 +- service/directconnect/api_op_CreateLag.go | 4 +- .../api_op_CreatePrivateVirtualInterface.go | 6 +- .../api_op_CreatePublicVirtualInterface.go | 6 +- .../directconnect/api_op_DeleteConnection.go | 6 +- service/directconnect/api_op_DeleteLag.go | 4 +- .../api_op_DisassociateConnectionFromLag.go | 6 +- .../directconnect/api_op_UpdateConnection.go | 6 +- service/directconnect/api_op_UpdateLag.go | 4 +- ...api_op_UpdateVirtualInterfaceAttributes.go | 6 +- service/directconnect/go.mod | 2 +- service/directconnect/go.sum | 4 +- service/directconnect/types/types.go | 26 +- service/directoryservice/go.mod | 2 +- service/directoryservice/go.sum | 4 +- service/dlm/go.mod | 2 +- service/dlm/go.sum | 4 +- service/docdb/go.mod | 2 +- service/docdb/go.sum | 4 +- service/dynamodb/go.mod | 2 +- service/dynamodb/go.sum | 4 +- service/dynamodbstreams/go.mod | 2 +- service/dynamodbstreams/go.sum | 4 +- service/ebs/go.mod | 2 +- service/ebs/go.sum | 4 +- service/ec2/api_op_AllocateAddress.go | 31 +- service/ec2/api_op_AssignIpv6Addresses.go | 19 +- .../ec2/api_op_AssignPrivateIpAddresses.go | 19 +- service/ec2/api_op_AssociateDhcpOptions.go | 2 +- .../api_op_AssociateInstanceEventWindow.go | 136 - service/ec2/api_op_AssociateRouteTable.go | 2 +- service/ec2/api_op_AssociateVpcCidrBlock.go | 2 +- service/ec2/api_op_AttachVolume.go | 25 +- service/ec2/api_op_ConfirmProductInstance.go | 4 +- service/ec2/api_op_CopySnapshot.go | 53 +- .../ec2/api_op_CreateCapacityReservation.go | 8 +- service/ec2/api_op_CreateCarrierGateway.go | 4 +- service/ec2/api_op_CreateDefaultSubnet.go | 2 +- service/ec2/api_op_CreateDefaultVpc.go | 2 +- service/ec2/api_op_CreateDhcpOptions.go | 2 +- .../api_op_CreateEgressOnlyInternetGateway.go | 2 +- service/ec2/api_op_CreateFlowLogs.go | 8 +- .../ec2/api_op_CreateInstanceEventWindow.go | 174 - service/ec2/api_op_CreateNatGateway.go | 4 +- .../ec2/api_op_CreateNetworkInsightsPath.go | 12 +- service/ec2/api_op_CreateNetworkInterface.go | 18 - ...api_op_CreateNetworkInterfacePermission.go | 5 +- .../ec2/api_op_CreateReplaceRootVolumeTask.go | 5 +- service/ec2/api_op_CreateRoute.go | 2 +- service/ec2/api_op_CreateRouteTable.go | 2 +- service/ec2/api_op_CreateSnapshot.go | 58 +- service/ec2/api_op_CreateSnapshots.go | 4 +- .../api_op_CreateSpotDatafeedSubscription.go | 4 +- service/ec2/api_op_CreateSubnet.go | 27 +- .../ec2/api_op_CreateSubnetCidrReservation.go | 156 - service/ec2/api_op_CreateVolume.go | 88 +- service/ec2/api_op_CreateVpc.go | 4 +- .../ec2/api_op_CreateVpcPeeringConnection.go | 12 +- .../ec2/api_op_DeleteInstanceEventWindow.go | 134 - service/ec2/api_op_DeleteSnapshot.go | 2 +- .../ec2/api_op_DeleteSubnetCidrReservation.go | 127 - service/ec2/api_op_DeleteTags.go | 3 +- service/ec2/api_op_DeleteVolume.go | 2 +- ...sterInstanceEventNotificationAttributes.go | 4 +- service/ec2/api_op_DescribeAddresses.go | 28 +- .../api_op_DescribeCapacityReservations.go | 124 +- service/ec2/api_op_DescribeCarrierGateways.go | 23 +- service/ec2/api_op_DescribeDhcpOptions.go | 22 +- .../api_op_DescribeFastSnapshotRestores.go | 12 +- .../api_op_DescribeInstanceEventWindows.go | 274 - service/ec2/api_op_DescribeInstances.go | 85 +- .../ec2/api_op_DescribeInternetGateways.go | 18 +- service/ec2/api_op_DescribeNetworkAcls.go | 22 +- ..._op_DescribeNetworkInterfacePermissions.go | 12 +- .../ec2/api_op_DescribeNetworkInterfaces.go | 62 +- .../api_op_DescribeReplaceRootVolumeTasks.go | 5 +- service/ec2/api_op_DescribeRouteTables.go | 22 +- service/ec2/api_op_DescribeSnapshots.go | 115 +- service/ec2/api_op_DescribeSubnets.go | 35 +- service/ec2/api_op_DescribeVolumeStatus.go | 2 +- .../api_op_DescribeVolumesModifications.go | 4 +- .../api_op_DescribeVpcPeeringConnections.go | 55 +- service/ec2/api_op_DescribeVpcs.go | 28 +- service/ec2/api_op_DetachVolume.go | 6 +- .../api_op_DisassociateInstanceEventWindow.go | 135 - service/ec2/api_op_DisassociateRouteTable.go | 2 +- .../api_op_EnableEbsEncryptionByDefault.go | 6 +- .../ec2/api_op_EnableFastSnapshotRestores.go | 3 +- .../ec2/api_op_GetCapacityReservationUsage.go | 5 +- service/ec2/api_op_GetEbsDefaultKmsKeyId.go | 10 +- .../ec2/api_op_GetSubnetCidrReservations.go | 159 - ...api_op_ModifyDefaultCreditSpecification.go | 20 +- .../ec2/api_op_ModifyEbsDefaultKmsKeyId.go | 37 +- .../ec2/api_op_ModifyInstanceEventWindow.go | 166 - service/ec2/api_op_ModifySnapshotAttribute.go | 16 +- service/ec2/api_op_ModifyVolume.go | 55 +- ...pi_op_ModifyVpcPeeringConnectionOptions.go | 19 +- service/ec2/api_op_ReleaseAddress.go | 6 +- service/ec2/api_op_ReplaceRoute.go | 2 +- .../api_op_ReplaceRouteTableAssociation.go | 2 +- service/ec2/api_op_ResetEbsDefaultKmsKeyId.go | 13 +- service/ec2/api_op_ResetSnapshotAttribute.go | 2 +- service/ec2/api_op_RunInstances.go | 4 +- .../api_op_StartNetworkInsightsAnalysis.go | 2 +- service/ec2/api_op_UnassignIpv6Addresses.go | 19 +- .../ec2/api_op_UnassignPrivateIpAddresses.go | 8 +- service/ec2/deserializers.go | 5649 +++----------- service/ec2/generated.json | 9 - service/ec2/go.mod | 2 +- service/ec2/go.sum | 4 +- service/ec2/serializers.go | 1421 +--- service/ec2/types/enums.go | 74 - service/ec2/types/types.go | 515 +- service/ec2/validators.go | 297 +- service/ec2instanceconnect/go.mod | 2 +- service/ec2instanceconnect/go.sum | 4 +- service/ecr/go.mod | 2 +- service/ecr/go.sum | 4 +- service/ecrpublic/go.mod | 2 +- service/ecrpublic/go.sum | 4 +- service/ecs/api_op_CreateCapacityProvider.go | 12 +- service/ecs/api_op_CreateCluster.go | 19 +- service/ecs/api_op_CreateService.go | 59 +- service/ecs/api_op_CreateTaskSet.go | 16 +- .../ecs/api_op_DeregisterContainerInstance.go | 2 +- service/ecs/api_op_DescribeTaskDefinition.go | 6 +- service/ecs/api_op_DiscoverPollEndpoint.go | 4 +- .../ecs/api_op_PutClusterCapacityProviders.go | 8 +- .../ecs/api_op_RegisterContainerInstance.go | 6 +- service/ecs/api_op_RegisterTaskDefinition.go | 73 +- service/ecs/api_op_RunTask.go | 32 +- service/ecs/api_op_StartTask.go | 6 +- service/ecs/api_op_TagResource.go | 6 +- service/ecs/api_op_UpdateService.go | 12 +- service/ecs/doc.go | 2 +- service/ecs/go.mod | 2 +- service/ecs/go.sum | 4 +- service/ecs/types/errors.go | 4 +- service/ecs/types/types.go | 290 +- service/efs/go.mod | 2 +- service/efs/go.sum | 4 +- service/eks/go.mod | 2 +- service/eks/go.sum | 4 +- service/elasticache/go.mod | 2 +- service/elasticache/go.sum | 4 +- service/elasticbeanstalk/go.mod | 2 +- service/elasticbeanstalk/go.sum | 4 +- service/elasticinference/go.mod | 2 +- service/elasticinference/go.sum | 4 +- service/elasticloadbalancing/go.mod | 2 +- service/elasticloadbalancing/go.sum | 4 +- .../api_op_DescribeLoadBalancers.go | 538 -- .../api_op_DescribeTargetHealth.go | 371 - service/elasticloadbalancingv2/generated.json | 3 +- service/elasticloadbalancingv2/go.mod | 3 +- service/elasticloadbalancingv2/go.sum | 10 +- service/elasticloadbalancingv2/types/types.go | 42 +- service/elasticsearchservice/go.mod | 2 +- service/elasticsearchservice/go.sum | 4 +- service/elastictranscoder/go.mod | 2 +- service/elastictranscoder/go.sum | 4 +- service/emr/api_op_CancelSteps.go | 5 +- service/emr/api_op_CreateStudio.go | 3 +- .../emr/api_op_CreateStudioSessionMapping.go | 18 +- .../emr/api_op_DeleteStudioSessionMapping.go | 8 +- service/emr/api_op_DescribeReleaseLabel.go | 132 - ...pi_op_GetBlockPublicAccessConfiguration.go | 6 +- service/emr/api_op_GetStudioSessionMapping.go | 8 +- service/emr/api_op_ListClusters.go | 10 +- service/emr/api_op_ListReleaseLabels.go | 222 - service/emr/api_op_ListSteps.go | 16 +- service/emr/api_op_ListStudios.go | 4 +- service/emr/api_op_ModifyCluster.go | 4 +- service/emr/api_op_ModifyInstanceFleet.go | 2 +- ...pi_op_PutBlockPublicAccessConfiguration.go | 2 +- service/emr/api_op_RunJobFlow.go | 25 +- service/emr/api_op_SetVisibleToAllUsers.go | 27 +- .../emr/api_op_UpdateStudioSessionMapping.go | 8 +- service/emr/deserializers.go | 410 - service/emr/doc.go | 7 +- service/emr/generated.json | 2 - service/emr/go.mod | 2 +- service/emr/go.sum | 4 +- service/emr/serializers.go | 157 - service/emr/types/types.go | 190 +- service/emrcontainers/deserializers.go | 22 +- service/emrcontainers/go.mod | 2 +- service/emrcontainers/go.sum | 4 +- service/emrcontainers/types/types.go | 6 - service/eventbridge/go.mod | 2 +- service/eventbridge/go.sum | 4 +- service/finspace/go.mod | 2 +- service/finspace/go.sum | 4 +- service/finspacedata/go.mod | 2 +- service/finspacedata/go.sum | 4 +- service/firehose/go.mod | 2 +- service/firehose/go.sum | 4 +- service/fis/go.mod | 2 +- service/fis/go.sum | 4 +- service/fms/go.mod | 2 +- service/fms/go.sum | 4 +- service/forecast/go.mod | 2 +- service/forecast/go.sum | 4 +- service/forecastquery/go.mod | 2 +- service/forecastquery/go.sum | 4 +- service/frauddetector/go.mod | 2 +- service/frauddetector/go.sum | 4 +- service/fsx/go.mod | 2 +- service/fsx/go.sum | 4 +- service/gamelift/go.mod | 2 +- service/gamelift/go.sum | 4 +- service/glacier/go.mod | 2 +- service/glacier/go.sum | 4 +- service/globalaccelerator/go.mod | 2 +- service/globalaccelerator/go.sum | 4 +- service/glue/go.mod | 2 +- service/glue/go.sum | 4 +- service/greengrass/go.mod | 2 +- service/greengrass/go.sum | 4 +- service/greengrassv2/go.mod | 2 +- service/greengrassv2/go.sum | 4 +- service/groundstation/go.mod | 2 +- service/groundstation/go.sum | 4 +- service/guardduty/go.mod | 2 +- service/guardduty/go.sum | 4 +- service/health/go.mod | 2 +- service/health/go.sum | 4 +- service/healthlake/go.mod | 2 +- service/healthlake/go.sum | 4 +- service/honeycode/go.mod | 2 +- service/honeycode/go.sum | 4 +- .../iam/api_op_CreateOpenIDConnectProvider.go | 12 +- ...p_UpdateOpenIDConnectProviderThumbprint.go | 16 +- service/iam/go.mod | 2 +- service/iam/go.sum | 4 +- service/identitystore/api_op_DescribeGroup.go | 12 +- service/identitystore/api_op_DescribeUser.go | 8 +- service/identitystore/api_op_ListGroups.go | 30 +- service/identitystore/api_op_ListUsers.go | 30 +- service/identitystore/doc.go | 4 - service/identitystore/go.mod | 2 +- service/identitystore/go.sum | 4 +- service/identitystore/types/types.go | 19 +- .../imagebuilder/api_op_CreateComponent.go | 10 +- .../api_op_CreateContainerRecipe.go | 10 +- .../imagebuilder/api_op_CreateImageRecipe.go | 10 +- .../imagebuilder/api_op_ImportComponent.go | 12 +- .../api_op_ListComponentBuildVersions.go | 8 - service/imagebuilder/api_op_ListComponents.go | 13 +- service/imagebuilder/api_op_ListImages.go | 9 +- service/imagebuilder/go.mod | 2 +- service/imagebuilder/go.sum | 4 +- service/imagebuilder/types/types.go | 149 +- service/inspector/go.mod | 2 +- service/inspector/go.sum | 4 +- service/internal/accept-encoding/go.mod | 2 +- service/internal/accept-encoding/go.sum | 4 +- service/internal/benchmark/go.mod | 2 +- service/internal/benchmark/go.sum | 4 +- service/internal/endpoint-discovery/go.mod | 2 +- service/internal/endpoint-discovery/go.sum | 4 +- service/internal/integrationtest/go.mod | 2 +- service/internal/integrationtest/go.sum | 4 +- service/internal/presigned-url/go.mod | 2 +- service/internal/presigned-url/go.sum | 4 +- service/internal/s3shared/go.mod | 2 +- service/internal/s3shared/go.sum | 4 +- service/iot/api_op_AttachPolicy.go | 3 +- service/iot/go.mod | 2 +- service/iot/go.sum | 4 +- service/iot1clickdevicesservice/go.mod | 2 +- service/iot1clickdevicesservice/go.sum | 4 +- service/iot1clickprojects/go.mod | 2 +- service/iot1clickprojects/go.sum | 4 +- .../iotanalytics/api_op_BatchPutMessage.go | 2 +- service/iotanalytics/api_op_CreateChannel.go | 6 +- service/iotanalytics/api_op_CreateDataset.go | 36 +- .../api_op_CreateDatasetContent.go | 2 +- .../iotanalytics/api_op_CreateDatastore.go | 14 +- service/iotanalytics/api_op_CreatePipeline.go | 2 +- service/iotanalytics/api_op_DeleteDataset.go | 2 +- .../iotanalytics/api_op_DescribeChannel.go | 2 +- .../iotanalytics/api_op_DescribeDataset.go | 4 +- .../iotanalytics/api_op_DescribeDatastore.go | 2 +- .../api_op_DescribeLoggingOptions.go | 4 +- .../iotanalytics/api_op_GetDatasetContent.go | 10 +- .../api_op_ListDatasetContents.go | 10 +- service/iotanalytics/api_op_ListDatasets.go | 2 +- .../iotanalytics/api_op_PutLoggingOptions.go | 6 +- .../api_op_RunPipelineActivity.go | 10 +- service/iotanalytics/api_op_UpdateChannel.go | 6 +- service/iotanalytics/api_op_UpdateDataset.go | 14 +- .../iotanalytics/api_op_UpdateDatastore.go | 13 +- service/iotanalytics/deserializers.go | 185 - service/iotanalytics/doc.go | 12 +- service/iotanalytics/go.mod | 2 +- service/iotanalytics/go.sum | 4 +- service/iotanalytics/serializers.go | 37 - service/iotanalytics/types/types.go | 382 +- .../iotanalytics/types/types_exported_test.go | 4 - service/iotanalytics/validators.go | 39 - service/iotdataplane/go.mod | 2 +- service/iotdataplane/go.sum | 4 +- service/iotdeviceadvisor/go.mod | 2 +- service/iotdeviceadvisor/go.sum | 4 +- service/iotevents/go.mod | 2 +- service/iotevents/go.sum | 4 +- service/ioteventsdata/go.mod | 2 +- service/ioteventsdata/go.sum | 4 +- service/iotfleethub/go.mod | 2 +- service/iotfleethub/go.sum | 4 +- service/iotjobsdataplane/go.mod | 2 +- service/iotjobsdataplane/go.sum | 4 +- service/iotsecuretunneling/go.mod | 2 +- service/iotsecuretunneling/go.sum | 4 +- service/iotsitewise/api_op_AssociateAssets.go | 2 +- service/iotsitewise/api_op_CreateAsset.go | 2 +- .../iotsitewise/api_op_CreateAssetModel.go | 2 +- service/iotsitewise/api_op_CreateGateway.go | 2 +- service/iotsitewise/api_op_DeleteAsset.go | 2 +- .../iotsitewise/api_op_DeleteAssetModel.go | 2 +- service/iotsitewise/api_op_DeleteGateway.go | 2 +- service/iotsitewise/api_op_DescribeAsset.go | 2 +- .../iotsitewise/api_op_DescribeAssetModel.go | 2 +- .../api_op_DescribeAssetProperty.go | 2 +- ..._DescribeDefaultEncryptionConfiguration.go | 31 - service/iotsitewise/api_op_DescribeGateway.go | 2 +- ..._DescribeGatewayCapabilityConfiguration.go | 2 +- .../api_op_DescribeLoggingOptions.go | 2 +- .../api_op_DescribeStorageConfiguration.go | 34 - .../iotsitewise/api_op_DisassociateAssets.go | 2 +- service/iotsitewise/api_op_ListAssetModels.go | 2 +- .../api_op_ListAssetRelationships.go | 2 +- service/iotsitewise/api_op_ListAssets.go | 2 +- .../api_op_ListAssociatedAssets.go | 2 +- service/iotsitewise/api_op_ListGateways.go | 2 +- .../iotsitewise/api_op_ListTagsForResource.go | 31 - ...pi_op_PutDefaultEncryptionConfiguration.go | 31 - .../iotsitewise/api_op_PutLoggingOptions.go | 2 +- .../api_op_PutStorageConfiguration.go | 35 +- service/iotsitewise/api_op_TagResource.go | 31 - service/iotsitewise/api_op_UntagResource.go | 31 - service/iotsitewise/api_op_UpdateAsset.go | 2 +- .../iotsitewise/api_op_UpdateAssetModel.go | 2 +- .../iotsitewise/api_op_UpdateAssetProperty.go | 2 +- service/iotsitewise/api_op_UpdateGateway.go | 2 +- ...op_UpdateGatewayCapabilityConfiguration.go | 2 +- service/iotsitewise/deserializers.go | 314 - service/iotsitewise/go.mod | 2 +- service/iotsitewise/go.sum | 4 +- service/iotsitewise/serializers.go | 97 - service/iotsitewise/types/enums.go | 56 - service/iotsitewise/types/types.go | 114 +- service/iotsitewise/validators.go | 125 +- service/iotthingsgraph/go.mod | 2 +- service/iotthingsgraph/go.sum | 4 +- .../api_op_GetLogLevelsByResourceTypes.go | 5 +- .../iotwireless/api_op_GetResourceLogLevel.go | 8 +- .../iotwireless/api_op_PutResourceLogLevel.go | 9 +- .../api_op_ResetAllResourceLogLevels.go | 4 +- .../api_op_ResetResourceLogLevel.go | 8 +- .../api_op_SendDataToWirelessDevice.go | 2 +- .../api_op_UpdateLogLevelsByResourceTypes.go | 6 +- service/iotwireless/deserializers.go | 9 - service/iotwireless/go.mod | 2 +- service/iotwireless/go.sum | 4 +- service/iotwireless/types/enums.go | 8 +- service/iotwireless/types/types.go | 25 +- service/ivs/go.mod | 2 +- service/ivs/go.sum | 4 +- service/kafka/go.mod | 2 +- service/kafka/go.sum | 4 +- service/kendra/api_op_CreateIndex.go | 4 +- service/kendra/api_op_SubmitFeedback.go | 2 +- service/kendra/deserializers.go | 78 - service/kendra/go.mod | 2 +- service/kendra/go.sum | 4 +- service/kendra/serializers.go | 50 - service/kendra/types/enums.go | 2 - service/kendra/types/types.go | 93 +- service/kendra/validators.go | 25 - service/kinesis/go.mod | 2 +- service/kinesis/go.sum | 4 +- service/kinesisanalytics/go.mod | 2 +- service/kinesisanalytics/go.sum | 4 +- service/kinesisanalyticsv2/go.mod | 2 +- service/kinesisanalyticsv2/go.sum | 4 +- service/kinesisvideo/go.mod | 2 +- service/kinesisvideo/go.sum | 4 +- service/kinesisvideoarchivedmedia/go.mod | 2 +- service/kinesisvideoarchivedmedia/go.sum | 4 +- service/kinesisvideomedia/go.mod | 2 +- service/kinesisvideomedia/go.sum | 4 +- service/kinesisvideosignaling/go.mod | 2 +- service/kinesisvideosignaling/go.sum | 4 +- service/kms/go.mod | 2 +- service/kms/go.sum | 4 +- service/lakeformation/go.mod | 2 +- service/lakeformation/go.sum | 4 +- .../lambda/api_op_CreateEventSourceMapping.go | 35 +- .../lambda/api_op_DeleteEventSourceMapping.go | 33 +- .../lambda/api_op_GetEventSourceMapping.go | 33 +- .../lambda/api_op_ListEventSourceMappings.go | 8 +- .../lambda/api_op_UpdateEventSourceMapping.go | 35 +- service/lambda/deserializers.go | 9 - service/lambda/go.mod | 2 +- service/lambda/go.sum | 4 +- service/lambda/types/types.go | 78 +- service/lexmodelbuildingservice/go.mod | 2 +- service/lexmodelbuildingservice/go.sum | 4 +- .../lexmodelbuildingservice/types/enums.go | 2 - service/lexmodelsv2/api_op_DescribeBot.go | 213 - .../lexmodelsv2/api_op_DescribeBotAlias.go | 197 - .../lexmodelsv2/api_op_DescribeBotLocale.go | 657 -- .../lexmodelsv2/api_op_DescribeBotVersion.go | 206 - service/lexmodelsv2/api_op_DescribeExport.go | 197 - service/lexmodelsv2/api_op_DescribeImport.go | 197 - service/lexmodelsv2/generated.json | 3 +- service/lexmodelsv2/go.mod | 3 +- service/lexmodelsv2/go.sum | 10 +- service/lexruntimeservice/go.mod | 2 +- service/lexruntimeservice/go.sum | 4 +- service/lexruntimev2/go.mod | 2 +- service/lexruntimev2/go.sum | 4 +- service/licensemanager/go.mod | 2 +- service/licensemanager/go.sum | 4 +- service/lightsail/go.mod | 2 +- service/lightsail/go.sum | 4 +- .../api_op_AssociateTrackerConsumer.go | 5 +- .../location/api_op_BatchEvaluateGeofences.go | 18 +- .../location/api_op_BatchGetDevicePosition.go | 2 +- service/location/api_op_CalculateRoute.go | 18 +- service/location/api_op_CreateMap.go | 7 +- service/location/api_op_CreatePlaceIndex.go | 30 +- .../location/api_op_CreateRouteCalculator.go | 24 +- service/location/api_op_DescribeMap.go | 7 +- service/location/api_op_DescribePlaceIndex.go | 2 +- service/location/api_op_GetMapGlyphs.go | 28 +- .../location/api_op_ListDevicePositions.go | 2 +- .../location/api_op_ListTagsForResource.go | 16 +- service/location/api_op_TagResource.go | 25 +- service/location/api_op_UntagResource.go | 7 +- .../api_op_UpdateGeofenceCollection.go | 159 - service/location/api_op_UpdateMap.go | 148 - service/location/api_op_UpdatePlaceIndex.go | 151 - .../location/api_op_UpdateRouteCalculator.go | 148 - service/location/api_op_UpdateTracker.go | 159 - service/location/deserializers.go | 1334 +--- service/location/generated.json | 5 - service/location/go.mod | 2 +- service/location/go.sum | 4 +- service/location/serializers.go | 447 -- service/location/types/errors.go | 29 +- service/location/types/types.go | 86 +- service/location/validators.go | 195 - service/lookoutequipment/go.mod | 2 +- service/lookoutequipment/go.sum | 4 +- service/lookoutmetrics/go.mod | 2 +- service/lookoutmetrics/go.sum | 4 +- service/lookoutvision/go.mod | 2 +- service/lookoutvision/go.sum | 4 +- service/machinelearning/go.mod | 2 +- service/machinelearning/go.sum | 4 +- service/macie/go.mod | 2 +- service/macie/go.sum | 4 +- service/macie2/go.mod | 2 +- service/macie2/go.sum | 4 +- service/managedblockchain/go.mod | 2 +- service/managedblockchain/go.sum | 4 +- service/marketplacecatalog/go.mod | 2 +- service/marketplacecatalog/go.sum | 4 +- service/marketplacecommerceanalytics/go.mod | 2 +- service/marketplacecommerceanalytics/go.sum | 4 +- service/marketplaceentitlementservice/go.mod | 2 +- service/marketplaceentitlementservice/go.sum | 4 +- service/marketplacemetering/go.mod | 2 +- service/marketplacemetering/go.sum | 4 +- service/mediaconnect/go.mod | 2 +- service/mediaconnect/go.sum | 4 +- service/mediaconvert/go.mod | 2 +- service/mediaconvert/go.sum | 4 +- service/medialive/deserializers.go | 63 - service/medialive/go.mod | 2 +- service/medialive/go.sum | 4 +- service/medialive/serializers.go | 29 - service/medialive/types/enums.go | 19 - service/medialive/types/types.go | 27 - service/medialive/validators.go | 23 - service/mediapackage/go.mod | 2 +- service/mediapackage/go.sum | 4 +- service/mediapackagevod/go.mod | 2 +- service/mediapackagevod/go.sum | 4 +- service/mediastore/go.mod | 2 +- service/mediastore/go.sum | 4 +- service/mediastoredata/go.mod | 2 +- service/mediastoredata/go.sum | 4 +- service/mediatailor/go.mod | 2 +- service/mediatailor/go.sum | 4 +- service/mgn/go.mod | 2 +- service/mgn/go.sum | 4 +- service/migrationhub/go.mod | 2 +- service/migrationhub/go.sum | 4 +- service/migrationhubconfig/go.mod | 2 +- service/migrationhubconfig/go.sum | 4 +- service/mobile/go.mod | 2 +- service/mobile/go.sum | 4 +- service/mq/go.mod | 2 +- service/mq/go.sum | 4 +- service/mturk/go.mod | 2 +- service/mturk/go.sum | 4 +- service/mwaa/go.mod | 2 +- service/mwaa/go.sum | 4 +- service/neptune/go.mod | 2 +- service/neptune/go.sum | 4 +- service/networkfirewall/go.mod | 2 +- service/networkfirewall/go.sum | 4 +- service/networkmanager/go.mod | 2 +- service/networkmanager/go.sum | 4 +- service/nimble/go.mod | 2 +- service/nimble/go.sum | 4 +- service/opsworks/go.mod | 2 +- service/opsworks/go.sum | 4 +- service/opsworkscm/go.mod | 2 +- service/opsworkscm/go.sum | 4 +- service/organizations/go.mod | 2 +- service/organizations/go.sum | 4 +- service/outposts/go.mod | 2 +- service/outposts/go.sum | 4 +- service/personalize/api_op_CreateCampaign.go | 10 +- .../api_op_CreateDatasetExportJob.go | 9 +- .../personalize/api_op_CreateDatasetGroup.go | 16 +- .../api_op_CreateDatasetImportJob.go | 9 +- service/personalize/go.mod | 2 +- service/personalize/go.sum | 4 +- service/personalize/types/types.go | 21 +- service/personalize/validators.go | 3 + service/personalizeevents/go.mod | 2 +- service/personalizeevents/go.sum | 4 +- service/personalizeruntime/go.mod | 2 +- service/personalizeruntime/go.sum | 4 +- service/pi/go.mod | 2 +- service/pi/go.sum | 4 +- service/pinpoint/go.mod | 2 +- service/pinpoint/go.sum | 4 +- service/pinpointemail/go.mod | 2 +- service/pinpointemail/go.sum | 4 +- service/pinpointsmsvoice/go.mod | 2 +- service/pinpointsmsvoice/go.sum | 4 +- service/polly/go.mod | 2 +- service/polly/go.sum | 4 +- service/pricing/go.mod | 2 +- service/pricing/go.sum | 4 +- ...i_op_AcceptEnvironmentAccountConnection.go | 4 +- .../api_op_CancelEnvironmentDeployment.go | 2 +- .../api_op_CancelServiceInstanceDeployment.go | 2 +- .../api_op_CancelServicePipelineDeployment.go | 2 +- service/proton/api_op_CreateEnvironment.go | 16 +- ...i_op_CreateEnvironmentAccountConnection.go | 8 +- .../api_op_CreateEnvironmentTemplate.go | 31 +- service/proton/api_op_CreateService.go | 16 +- .../proton/api_op_CreateServiceTemplate.go | 8 +- ...i_op_DeleteEnvironmentAccountConnection.go | 5 +- .../api_op_GetEnvironmentAccountConnection.go | 5 +- ...pi_op_ListEnvironmentAccountConnections.go | 4 +- service/proton/api_op_ListTagsForResource.go | 4 +- ...i_op_RejectEnvironmentAccountConnection.go | 5 +- service/proton/api_op_TagResource.go | 2 +- service/proton/api_op_UntagResource.go | 2 +- service/proton/api_op_UpdateEnvironment.go | 8 +- ...i_op_UpdateEnvironmentAccountConnection.go | 5 +- service/proton/api_op_UpdateService.go | 2 +- service/proton/doc.go | 2 +- service/proton/go.mod | 2 +- service/proton/go.sum | 4 +- service/proton/types/errors.go | 2 +- service/proton/types/types.go | 18 +- service/qldb/api_op_CreateLedger.go | 53 +- service/qldb/api_op_DescribeLedger.go | 8 +- service/qldb/api_op_ExportJournalToS3.go | 4 +- service/qldb/api_op_ListJournalS3Exports.go | 10 +- service/qldb/api_op_ListLedgers.go | 6 +- service/qldb/api_op_UpdateLedger.go | 47 - service/qldb/deserializers.go | 84 - service/qldb/go.mod | 2 +- service/qldb/go.sum | 4 +- service/qldb/serializers.go | 10 - service/qldb/types/enums.go | 20 - service/qldb/types/types.go | 60 +- service/qldbsession/go.mod | 2 +- service/qldbsession/go.sum | 4 +- service/quicksight/api_op_CancelIngestion.go | 4 +- .../api_op_CreateAccountCustomization.go | 47 +- service/quicksight/api_op_CreateAnalysis.go | 10 +- service/quicksight/api_op_CreateDashboard.go | 19 +- service/quicksight/api_op_CreateDataSet.go | 16 +- service/quicksight/api_op_CreateDataSource.go | 12 +- service/quicksight/api_op_CreateGroup.go | 7 +- .../api_op_CreateGroupMembership.go | 7 +- .../api_op_CreateIAMPolicyAssignment.go | 19 +- service/quicksight/api_op_CreateIngestion.go | 8 +- service/quicksight/api_op_CreateNamespace.go | 14 +- service/quicksight/api_op_CreateTemplate.go | 24 +- .../quicksight/api_op_CreateTemplateAlias.go | 8 +- service/quicksight/api_op_CreateTheme.go | 9 +- service/quicksight/api_op_CreateThemeAlias.go | 5 +- .../api_op_DeleteAccountCustomization.go | 10 +- service/quicksight/api_op_DeleteAnalysis.go | 4 +- service/quicksight/api_op_DeleteDashboard.go | 5 +- service/quicksight/api_op_DeleteDataSet.go | 12 +- service/quicksight/api_op_DeleteDataSource.go | 12 +- service/quicksight/api_op_DeleteGroup.go | 7 +- .../api_op_DeleteGroupMembership.go | 7 +- .../api_op_DeleteIAMPolicyAssignment.go | 5 +- service/quicksight/api_op_DeleteNamespace.go | 6 +- service/quicksight/api_op_DeleteTemplate.go | 5 +- .../quicksight/api_op_DeleteTemplateAlias.go | 4 +- service/quicksight/api_op_DeleteTheme.go | 5 +- service/quicksight/api_op_DeleteThemeAlias.go | 5 +- service/quicksight/api_op_DeleteUser.go | 11 +- .../api_op_DeleteUserByPrincipalId.go | 7 +- .../api_op_DescribeAccountCustomization.go | 67 +- .../api_op_DescribeAccountSettings.go | 22 +- service/quicksight/api_op_DescribeAnalysis.go | 6 +- .../api_op_DescribeAnalysisPermissions.go | 7 +- .../quicksight/api_op_DescribeDashboard.go | 5 +- .../api_op_DescribeDashboardPermissions.go | 6 +- service/quicksight/api_op_DescribeDataSet.go | 8 +- .../api_op_DescribeDataSetPermissions.go | 12 +- .../quicksight/api_op_DescribeDataSource.go | 8 +- .../api_op_DescribeDataSourcePermissions.go | 12 +- service/quicksight/api_op_DescribeGroup.go | 7 +- .../api_op_DescribeIAMPolicyAssignment.go | 6 +- .../quicksight/api_op_DescribeIngestion.go | 4 +- .../quicksight/api_op_DescribeNamespace.go | 14 +- service/quicksight/api_op_DescribeTemplate.go | 5 +- .../api_op_DescribeTemplateAlias.go | 6 +- .../api_op_DescribeTemplatePermissions.go | 5 +- service/quicksight/api_op_DescribeTheme.go | 5 +- .../quicksight/api_op_DescribeThemeAlias.go | 5 +- .../api_op_DescribeThemePermissions.go | 5 +- service/quicksight/api_op_DescribeUser.go | 7 +- ...api_op_GenerateEmbedUrlForAnonymousUser.go | 191 - ...pi_op_GenerateEmbedUrlForRegisteredUser.go | 175 - .../quicksight/api_op_GetDashboardEmbedUrl.go | 18 +- .../quicksight/api_op_GetSessionEmbedUrl.go | 7 +- service/quicksight/api_op_ListAnalyses.go | 7 +- .../api_op_ListDashboardVersions.go | 6 +- service/quicksight/api_op_ListDashboards.go | 11 +- service/quicksight/api_op_ListDataSets.go | 9 +- service/quicksight/api_op_ListDataSources.go | 7 +- .../quicksight/api_op_ListGroupMemberships.go | 7 +- service/quicksight/api_op_ListGroups.go | 7 +- .../api_op_ListIAMPolicyAssignments.go | 5 +- .../api_op_ListIAMPolicyAssignmentsForUser.go | 4 +- service/quicksight/api_op_ListIngestions.go | 4 +- service/quicksight/api_op_ListNamespaces.go | 14 +- .../quicksight/api_op_ListTagsForResource.go | 2 +- .../quicksight/api_op_ListTemplateAliases.go | 6 +- .../quicksight/api_op_ListTemplateVersions.go | 5 +- service/quicksight/api_op_ListTemplates.go | 5 +- service/quicksight/api_op_ListThemeAliases.go | 5 +- .../quicksight/api_op_ListThemeVersions.go | 8 +- service/quicksight/api_op_ListThemes.go | 9 +- service/quicksight/api_op_ListUserGroups.go | 7 +- service/quicksight/api_op_ListUsers.go | 7 +- service/quicksight/api_op_RegisterUser.go | 9 +- service/quicksight/api_op_RestoreAnalysis.go | 4 +- service/quicksight/api_op_SearchAnalyses.go | 9 +- service/quicksight/api_op_SearchDashboards.go | 10 +- service/quicksight/api_op_TagResource.go | 4 +- service/quicksight/api_op_UntagResource.go | 2 +- .../api_op_UpdateAccountCustomization.go | 28 +- .../api_op_UpdateAccountSettings.go | 18 +- service/quicksight/api_op_UpdateAnalysis.go | 5 +- .../api_op_UpdateAnalysisPermissions.go | 7 +- service/quicksight/api_op_UpdateDashboard.go | 22 +- .../api_op_UpdateDashboardPermissions.go | 6 +- .../api_op_UpdateDashboardPublishedVersion.go | 5 +- service/quicksight/api_op_UpdateDataSet.go | 16 +- .../api_op_UpdateDataSetPermissions.go | 8 +- service/quicksight/api_op_UpdateDataSource.go | 12 +- .../api_op_UpdateDataSourcePermissions.go | 12 +- service/quicksight/api_op_UpdateGroup.go | 7 +- .../api_op_UpdateIAMPolicyAssignment.go | 7 +- service/quicksight/api_op_UpdateTemplate.go | 14 +- .../quicksight/api_op_UpdateTemplateAlias.go | 5 +- .../api_op_UpdateTemplatePermissions.go | 4 +- service/quicksight/api_op_UpdateTheme.go | 7 +- service/quicksight/api_op_UpdateThemeAlias.go | 5 +- .../api_op_UpdateThemePermissions.go | 4 +- service/quicksight/api_op_UpdateUser.go | 9 +- service/quicksight/deserializers.go | 562 -- service/quicksight/doc.go | 8 +- service/quicksight/generated.json | 2 - service/quicksight/go.mod | 2 +- service/quicksight/go.sum | 4 +- service/quicksight/serializers.go | 390 - service/quicksight/types/enums.go | 18 - service/quicksight/types/errors.go | 10 +- service/quicksight/types/types.go | 241 +- service/quicksight/validators.go | 269 - service/ram/go.mod | 2 +- service/ram/go.sum | 4 +- service/rds/api_op_DescribeDBClusters.go | 12 - service/rds/api_op_DescribeDBInstances.go | 266 - service/rds/api_op_DescribeDBSnapshots.go | 266 - service/rds/api_op_DescribeGlobalClusters.go | 7 +- service/rds/deserializers.go | 17 - service/rds/go.mod | 2 +- service/rds/go.sum | 4 +- service/rds/types/types.go | 7 +- service/rdsdata/go.mod | 2 +- service/rdsdata/go.sum | 4 +- service/redshift/go.mod | 2 +- service/redshift/go.sum | 4 +- .../api_op_BatchExecuteStatement.go | 177 - .../redshiftdata/api_op_CancelStatement.go | 2 +- .../redshiftdata/api_op_DescribeStatement.go | 14 +- service/redshiftdata/api_op_DescribeTable.go | 17 +- .../redshiftdata/api_op_ExecuteStatement.go | 30 +- .../redshiftdata/api_op_GetStatementResult.go | 5 +- service/redshiftdata/api_op_ListDatabases.go | 21 +- service/redshiftdata/api_op_ListSchemas.go | 17 +- service/redshiftdata/api_op_ListStatements.go | 12 +- service/redshiftdata/api_op_ListTables.go | 18 +- service/redshiftdata/deserializers.go | 551 +- service/redshiftdata/doc.go | 6 +- service/redshiftdata/generated.json | 1 - service/redshiftdata/go.mod | 2 +- service/redshiftdata/go.sum | 4 +- service/redshiftdata/serializers.go | 102 - service/redshiftdata/types/enums.go | 26 - service/redshiftdata/types/errors.go | 21 - service/redshiftdata/types/types.go | 58 - service/redshiftdata/validators.go | 51 - service/rekognition/go.mod | 2 +- service/rekognition/go.sum | 4 +- service/resourcegroups/go.mod | 2 +- service/resourcegroups/go.sum | 4 +- service/resourcegroupstaggingapi/go.mod | 2 +- service/resourcegroupstaggingapi/go.sum | 4 +- service/robomaker/api_op_DescribeWorld.go | 3 - .../robomaker/api_op_DescribeWorldTemplate.go | 3 - service/robomaker/deserializers.go | 27 - service/robomaker/go.mod | 2 +- service/robomaker/go.sum | 4 +- service/robomaker/types/types.go | 3 - .../api_op_AssociateVPCWithHostedZone.go | 4 +- .../api_op_ChangeResourceRecordSets.go | 26 +- .../route53/api_op_ChangeTagsForResource.go | 2 +- service/route53/api_op_CreateKeySigningKey.go | 16 +- .../api_op_CreateQueryLoggingConfig.go | 80 +- .../api_op_CreateReusableDelegationSet.go | 6 +- ...pi_op_CreateVPCAssociationAuthorization.go | 2 +- service/route53/api_op_DeleteHealthCheck.go | 2 +- service/route53/api_op_DeleteHostedZone.go | 4 +- ...pi_op_DeleteVPCAssociationAuthorization.go | 24 +- .../api_op_DisassociateVPCFromHostedZone.go | 10 +- service/route53/api_op_GetAccountLimit.go | 4 +- service/route53/api_op_GetCheckerIpRanges.go | 4 +- service/route53/api_op_GetHealthCheck.go | 2 +- service/route53/api_op_GetHealthCheckCount.go | 6 +- .../route53/api_op_GetHealthCheckStatus.go | 4 +- service/route53/api_op_GetHostedZoneCount.go | 6 +- .../api_op_GetTrafficPolicyInstanceCount.go | 6 +- service/route53/api_op_ListHealthChecks.go | 6 +- service/route53/api_op_ListHostedZones.go | 10 +- .../route53/api_op_ListHostedZonesByName.go | 10 +- .../route53/api_op_ListHostedZonesByVPC.go | 26 +- .../route53/api_op_ListQueryLoggingConfigs.go | 21 +- .../api_op_ListReusableDelegationSets.go | 8 +- service/route53/api_op_ListTagsForResource.go | 2 +- .../route53/api_op_ListTagsForResources.go | 2 +- service/route53/api_op_ListTrafficPolicies.go | 10 +- .../api_op_ListTrafficPolicyInstances.go | 10 +- service/route53/api_op_TestDNSAnswer.go | 3 +- service/route53/deserializers.go | 31 - service/route53/go.mod | 2 +- service/route53/go.sum | 4 +- service/route53/serializers.go | 11 - service/route53/types/enums.go | 2 - service/route53/types/errors.go | 20 +- service/route53/types/types.go | 290 +- service/route53domains/go.mod | 2 +- service/route53domains/go.sum | 4 +- service/route53recoverycluster/LICENSE.txt | 202 - service/route53recoverycluster/api_client.go | 262 - .../api_op_GetRoutingControlState.go | 139 - .../api_op_UpdateRoutingControlState.go | 128 - .../api_op_UpdateRoutingControlStates.go | 122 - .../route53recoverycluster/deserializers.go | 1198 --- service/route53recoverycluster/doc.go | 36 - service/route53recoverycluster/endpoints.go | 160 - service/route53recoverycluster/generated.json | 27 - service/route53recoverycluster/go.mod | 10 - service/route53recoverycluster/go.sum | 14 - .../go_module_metadata.go | 6 - .../internal/endpoints/endpoints.go | 106 - .../internal/endpoints/endpoints_test.go | 11 - .../route53recoverycluster/protocol_test.go | 3 - service/route53recoverycluster/serializers.go | 228 - service/route53recoverycluster/types/enums.go | 43 - .../route53recoverycluster/types/errors.go | 158 - service/route53recoverycluster/types/types.go | 41 - service/route53recoverycluster/validators.go | 170 - .../route53recoverycontrolconfig/LICENSE.txt | 202 - .../api_client.go | 282 - .../api_op_CreateCluster.go | 167 - .../api_op_CreateControlPanel.go | 171 - .../api_op_CreateRoutingControl.go | 175 - .../api_op_CreateSafetyRule.go | 180 - .../api_op_DeleteCluster.go | 116 - .../api_op_DeleteControlPanel.go | 116 - .../api_op_DeleteRoutingControl.go | 116 - .../api_op_DeleteSafetyRule.go | 116 - .../api_op_DescribeCluster.go | 476 -- .../api_op_DescribeControlPanel.go | 478 -- .../api_op_DescribeRoutingControl.go | 482 -- .../api_op_DescribeSafetyRule.go | 130 - ...pi_op_ListAssociatedRoute53HealthChecks.go | 217 - .../api_op_ListClusters.go | 204 - .../api_op_ListControlPanels.go | 208 - .../api_op_ListRoutingControls.go | 218 - .../api_op_ListSafetyRules.go | 215 - .../api_op_UpdateControlPanel.go | 128 - .../api_op_UpdateRoutingControl.go | 129 - .../api_op_UpdateSafetyRule.go | 136 - .../deserializers.go | 4303 ---------- service/route53recoverycontrolconfig/doc.go | 8 - .../route53recoverycontrolconfig/endpoints.go | 160 - .../generated.json | 45 - service/route53recoverycontrolconfig/go.mod | 11 - service/route53recoverycontrolconfig/go.sum | 20 - .../go_module_metadata.go | 6 - .../internal/endpoints/endpoints.go | 106 - .../internal/endpoints/endpoints_test.go | 11 - .../protocol_test.go | 3 - .../serializers.go | 1490 ---- .../types/enums.go | 43 - .../types/errors.go | 144 - .../types/types.go | 399 - .../validators.go | 849 -- service/route53recoveryreadiness/LICENSE.txt | 202 - .../route53recoveryreadiness/api_client.go | 262 - .../api_op_CreateCell.go | 140 - .../api_op_CreateCrossAccountAuthorization.go | 121 - .../api_op_CreateReadinessCheck.go | 138 - .../api_op_CreateRecoveryGroup.go | 136 - .../api_op_CreateResourceSet.go | 147 - .../api_op_DeleteCell.go | 116 - .../api_op_DeleteCrossAccountAuthorization.go | 116 - .../api_op_DeleteReadinessCheck.go | 116 - .../api_op_DeleteRecoveryGroup.go | 116 - .../api_op_DeleteResourceSet.go | 116 - .../api_op_GetArchitectureRecommendations.go | 136 - .../api_op_GetCell.go | 132 - .../api_op_GetCellReadinessSummary.go | 218 - .../api_op_GetReadinessCheck.go | 129 - .../api_op_GetReadinessCheckResourceStatus.go | 225 - .../api_op_GetReadinessCheckStatus.go | 221 - .../api_op_GetRecoveryGroup.go | 129 - ...api_op_GetRecoveryGroupReadinessSummary.go | 219 - .../api_op_GetResourceSet.go | 133 - .../api_op_ListCells.go | 204 - .../api_op_ListCrossAccountAuthorizations.go | 207 - .../api_op_ListReadinessChecks.go | 206 - .../api_op_ListRecoveryGroups.go | 206 - .../api_op_ListResourceSets.go | 205 - .../api_op_ListRules.go | 207 - .../api_op_ListTagsForResources.go | 121 - .../api_op_TagResource.go | 122 - .../api_op_UntagResource.go | 123 - .../api_op_UpdateCell.go | 138 - .../api_op_UpdateReadinessCheck.go | 135 - .../api_op_UpdateRecoveryGroup.go | 135 - .../api_op_UpdateResourceSet.go | 144 - .../route53recoveryreadiness/deserializers.go | 6917 ----------------- service/route53recoveryreadiness/doc.go | 7 - service/route53recoveryreadiness/endpoints.go | 160 - .../route53recoveryreadiness/generated.json | 56 - service/route53recoveryreadiness/go.mod | 10 - service/route53recoveryreadiness/go.sum | 14 - .../go_module_metadata.go | 6 - .../internal/endpoints/endpoints.go | 106 - .../internal/endpoints/endpoints_test.go | 11 - .../route53recoveryreadiness/protocol_test.go | 3 - .../route53recoveryreadiness/serializers.go | 2311 ------ .../route53recoveryreadiness/types/enums.go | 25 - .../route53recoveryreadiness/types/errors.go | 122 - .../route53recoveryreadiness/types/types.go | 291 - .../route53recoveryreadiness/validators.go | 1057 --- service/route53resolver/go.mod | 2 +- service/route53resolver/go.sum | 4 +- service/s3/go.mod | 2 +- service/s3/go.sum | 4 +- service/s3/internal/configtesting/go.sum | 4 +- service/s3control/api_op_CreateAccessPoint.go | 13 +- ...api_op_CreateAccessPointForObjectLambda.go | 2 +- service/s3control/api_op_CreateBucket.go | 8 +- service/s3control/api_op_CreateJob.go | 8 +- service/s3control/api_op_DeleteAccessPoint.go | 8 +- .../api_op_DeleteAccessPointPolicy.go | 9 +- service/s3control/api_op_DeleteBucket.go | 6 +- ...i_op_DeleteBucketLifecycleConfiguration.go | 4 +- .../s3control/api_op_DeleteBucketPolicy.go | 12 +- .../s3control/api_op_DeleteBucketTagging.go | 10 +- service/s3control/api_op_DeleteJobTagging.go | 2 +- .../api_op_DeletePublicAccessBlock.go | 6 +- service/s3control/api_op_DescribeJob.go | 2 +- service/s3control/api_op_GetAccessPoint.go | 15 +- .../s3control/api_op_GetAccessPointPolicy.go | 9 +- service/s3control/api_op_GetBucket.go | 32 +- .../api_op_GetBucketLifecycleConfiguration.go | 10 +- service/s3control/api_op_GetBucketPolicy.go | 10 +- service/s3control/api_op_GetBucketTagging.go | 6 +- service/s3control/api_op_GetJobTagging.go | 2 +- .../s3control/api_op_GetPublicAccessBlock.go | 8 +- service/s3control/api_op_ListAccessPoints.go | 10 +- service/s3control/api_op_ListJobs.go | 6 +- .../s3control/api_op_ListRegionalBuckets.go | 4 +- .../s3control/api_op_PutAccessPointPolicy.go | 6 +- .../api_op_PutBucketLifecycleConfiguration.go | 2 +- service/s3control/api_op_PutBucketPolicy.go | 14 +- service/s3control/api_op_PutBucketTagging.go | 27 +- service/s3control/api_op_PutJobTagging.go | 4 +- .../s3control/api_op_PutPublicAccessBlock.go | 10 +- service/s3control/api_op_UpdateJobPriority.go | 2 +- service/s3control/api_op_UpdateJobStatus.go | 2 +- service/s3control/deserializers.go | 156 - service/s3control/doc.go | 3 +- service/s3control/go.mod | 2 +- service/s3control/go.sum | 4 +- service/s3control/types/errors.go | 4 +- service/s3control/types/types.go | 57 +- service/s3outposts/api_op_CreateEndpoint.go | 27 +- service/s3outposts/api_op_DeleteEndpoint.go | 17 +- service/s3outposts/api_op_ListEndpoints.go | 13 +- service/s3outposts/deserializers.go | 45 - service/s3outposts/go.mod | 2 +- service/s3outposts/go.sum | 4 +- service/s3outposts/serializers.go | 10 - service/s3outposts/types/enums.go | 28 +- service/s3outposts/types/types.go | 25 +- service/sagemaker/go.mod | 2 +- service/sagemaker/go.sum | 4 +- service/sagemakera2iruntime/go.mod | 2 +- service/sagemakera2iruntime/go.sum | 4 +- service/sagemakeredge/go.mod | 2 +- service/sagemakeredge/go.sum | 4 +- service/sagemakerfeaturestoreruntime/go.mod | 2 +- service/sagemakerfeaturestoreruntime/go.sum | 4 +- service/sagemakerruntime/go.mod | 2 +- service/sagemakerruntime/go.sum | 4 +- service/savingsplans/go.mod | 2 +- service/savingsplans/go.sum | 4 +- service/schemas/go.mod | 2 +- service/schemas/go.sum | 4 +- service/secretsmanager/go.mod | 2 +- service/secretsmanager/go.sum | 4 +- .../api_op_BatchDisableStandards.go | 2 +- .../api_op_BatchEnableStandards.go | 2 +- .../securityhub/api_op_BatchImportFindings.go | 2 +- .../securityhub/api_op_BatchUpdateFindings.go | 2 +- service/securityhub/api_op_CreateMembers.go | 31 +- .../securityhub/api_op_DeclineInvitations.go | 4 +- .../securityhub/api_op_DeleteInvitations.go | 11 +- service/securityhub/api_op_DeleteMembers.go | 4 +- .../api_op_DisableOrganizationAdminAccount.go | 3 +- .../api_op_EnableOrganizationAdminAccount.go | 4 +- .../securityhub/api_op_EnableSecurityHub.go | 18 +- service/securityhub/api_op_GetMembers.go | 4 +- service/securityhub/api_op_InviteMembers.go | 24 +- service/securityhub/api_op_ListInvitations.go | 8 +- service/securityhub/deserializers.go | 1403 +--- service/securityhub/doc.go | 55 +- service/securityhub/go.mod | 2 +- service/securityhub/go.sum | 4 +- service/securityhub/serializers.go | 582 -- service/securityhub/types/errors.go | 4 +- service/securityhub/types/types.go | 924 +-- .../serverlessapplicationrepository/go.mod | 2 +- .../serverlessapplicationrepository/go.sum | 4 +- service/servicecatalog/go.mod | 2 +- service/servicecatalog/go.sum | 4 +- service/servicecatalogappregistry/go.mod | 2 +- service/servicecatalogappregistry/go.sum | 4 +- service/servicediscovery/go.mod | 2 +- service/servicediscovery/go.sum | 4 +- service/servicequotas/go.mod | 2 +- service/servicequotas/go.sum | 4 +- service/ses/go.mod | 2 +- service/ses/go.sum | 4 +- service/sesv2/go.mod | 2 +- service/sesv2/go.sum | 4 +- service/sfn/go.mod | 2 +- service/sfn/go.sum | 4 +- .../shield/api_op_AssociateDRTLogBucket.go | 16 +- service/shield/api_op_AssociateDRTRole.go | 31 +- service/shield/api_op_AssociateHealthCheck.go | 13 +- ..._op_AssociateProactiveEngagementDetails.go | 19 +- service/shield/api_op_CreateProtection.go | 20 +- .../shield/api_op_CreateProtectionGroup.go | 6 +- service/shield/api_op_CreateSubscription.go | 2 +- service/shield/api_op_DeleteProtection.go | 2 +- service/shield/api_op_DeleteSubscription.go | 4 +- .../shield/api_op_DescribeAttackStatistics.go | 18 +- service/shield/api_op_DescribeDRTAccess.go | 12 +- ...api_op_DescribeEmergencyContactSettings.go | 8 +- service/shield/api_op_DescribeProtection.go | 7 +- .../shield/api_op_DescribeProtectionGroup.go | 4 +- service/shield/api_op_DescribeSubscription.go | 4 +- .../api_op_DisableProactiveEngagement.go | 4 +- .../shield/api_op_DisassociateDRTLogBucket.go | 12 +- service/shield/api_op_DisassociateDRTRole.go | 15 +- .../shield/api_op_DisassociateHealthCheck.go | 9 +- .../api_op_EnableProactiveEngagement.go | 4 +- service/shield/api_op_ListProtectionGroups.go | 4 +- service/shield/api_op_ListProtections.go | 6 +- .../api_op_ListResourcesInProtectionGroup.go | 2 +- service/shield/api_op_ListTagsForResource.go | 4 +- service/shield/api_op_TagResource.go | 2 +- service/shield/api_op_UntagResource.go | 2 +- .../api_op_UpdateEmergencyContactSettings.go | 9 +- .../shield/api_op_UpdateProtectionGroup.go | 4 +- service/shield/doc.go | 10 +- service/shield/go.mod | 2 +- service/shield/go.sum | 4 +- service/shield/types/errors.go | 7 +- service/shield/types/types.go | 71 +- service/signer/go.mod | 2 +- service/signer/go.sum | 4 +- service/sms/go.mod | 2 +- service/sms/go.sum | 4 +- service/snowball/go.mod | 2 +- service/snowball/go.sum | 4 +- service/sns/go.mod | 2 +- service/sns/go.sum | 4 +- service/sqs/go.mod | 2 +- service/sqs/go.sum | 4 +- service/ssm/go.mod | 2 +- service/ssm/go.sum | 4 +- service/ssmcontacts/go.mod | 2 +- service/ssmcontacts/go.sum | 4 +- service/ssmincidents/go.mod | 2 +- service/ssmincidents/go.sum | 4 +- service/sso/go.mod | 2 +- service/sso/go.sum | 4 +- ...i_op_AttachManagedPolicyToPermissionSet.go | 8 +- .../api_op_CreateAccountAssignment.go | 33 +- ...anceAccessControlAttributeConfiguration.go | 22 +- .../ssoadmin/api_op_CreatePermissionSet.go | 9 +- .../api_op_DeleteAccountAssignment.go | 20 +- ..._op_DeleteInlinePolicyFromPermissionSet.go | 4 +- ...anceAccessControlAttributeConfiguration.go | 10 +- .../ssoadmin/api_op_DeletePermissionSet.go | 4 +- ...DescribeAccountAssignmentCreationStatus.go | 4 +- ...DescribeAccountAssignmentDeletionStatus.go | 4 +- ...anceAccessControlAttributeConfiguration.go | 15 +- .../ssoadmin/api_op_DescribePermissionSet.go | 6 +- ...DescribePermissionSetProvisioningStatus.go | 4 +- ...op_DetachManagedPolicyFromPermissionSet.go | 4 +- .../api_op_GetInlinePolicyForPermissionSet.go | 4 +- ..._op_ListAccountAssignmentCreationStatus.go | 8 +- ..._op_ListAccountAssignmentDeletionStatus.go | 8 +- .../ssoadmin/api_op_ListAccountAssignments.go | 14 +- ...ListAccountsForProvisionedPermissionSet.go | 15 +- ...i_op_ListManagedPoliciesInPermissionSet.go | 4 +- ..._op_ListPermissionSetProvisioningStatus.go | 4 +- service/ssoadmin/api_op_ListPermissionSets.go | 6 +- ..._ListPermissionSetsProvisionedToAccount.go | 12 +- .../ssoadmin/api_op_ListTagsForResource.go | 4 +- .../ssoadmin/api_op_ProvisionPermissionSet.go | 8 +- .../api_op_PutInlinePolicyToPermissionSet.go | 4 +- service/ssoadmin/api_op_TagResource.go | 4 +- service/ssoadmin/api_op_UntagResource.go | 4 +- ...anceAccessControlAttributeConfiguration.go | 17 +- .../ssoadmin/api_op_UpdatePermissionSet.go | 4 +- service/ssoadmin/doc.go | 12 - service/ssoadmin/go.mod | 2 +- service/ssoadmin/go.sum | 4 +- service/ssoadmin/types/types.go | 76 +- service/ssooidc/go.mod | 2 +- service/ssooidc/go.sum | 4 +- service/storagegateway/go.mod | 2 +- service/storagegateway/go.sum | 4 +- service/sts/go.mod | 2 +- service/sts/go.sum | 4 +- service/support/go.mod | 2 +- service/support/go.sum | 4 +- service/swf/go.mod | 2 +- service/swf/go.sum | 4 +- service/synthetics/api_op_CreateCanary.go | 3 +- service/synthetics/api_op_TagResource.go | 14 +- service/synthetics/api_op_UpdateCanary.go | 2 - service/synthetics/deserializers.go | 165 - service/synthetics/go.mod | 2 +- service/synthetics/go.sum | 4 +- service/synthetics/serializers.go | 69 - service/synthetics/types/types.go | 82 +- service/synthetics/validators.go | 57 - service/textract/api_op_AnalyzeExpense.go | 146 - service/textract/deserializers.go | 779 +- service/textract/generated.json | 1 - service/textract/go.mod | 2 +- service/textract/go.sum | 4 +- service/textract/serializers.go | 61 - service/textract/types/types.go | 111 +- service/textract/validators.go | 39 - service/timestreamquery/go.mod | 2 +- service/timestreamquery/go.sum | 4 +- service/timestreamwrite/go.mod | 2 +- service/timestreamwrite/go.sum | 4 +- service/transcribe/go.mod | 2 +- service/transcribe/go.sum | 4 +- service/transfer/go.mod | 2 +- service/transfer/go.sum | 4 +- service/translate/go.mod | 2 +- service/translate/go.sum | 4 +- service/waf/go.mod | 2 +- service/waf/go.sum | 4 +- service/wafregional/go.mod | 2 +- service/wafregional/go.sum | 4 +- service/wafv2/go.mod | 2 +- service/wafv2/go.sum | 4 +- service/wellarchitected/go.mod | 2 +- service/wellarchitected/go.sum | 4 +- service/workdocs/go.mod | 2 +- service/workdocs/go.sum | 4 +- service/worklink/go.mod | 2 +- service/worklink/go.sum | 4 +- service/workmail/go.mod | 2 +- service/workmail/go.sum | 4 +- service/workmailmessageflow/go.mod | 2 +- service/workmailmessageflow/go.sum | 4 +- service/workspaces/go.mod | 2 +- service/workspaces/go.sum | 4 +- service/xray/go.mod | 2 +- service/xray/go.sum | 4 +- 1606 files changed, 11457 insertions(+), 83443 deletions(-) delete mode 100644 .changelog/41575353444b40ffbf474f4155544f00.json delete mode 100644 .changelog/6bdf0c5f64af43a292c4c9835c93dc11.json delete mode 100644 codegen/sdk-codegen/aws-models/route53recoverycluster.2019-12-02.json delete mode 100644 codegen/sdk-codegen/aws-models/route53recoverycontrolconfig.2020-11-02.json delete mode 100644 codegen/sdk-codegen/aws-models/route53recoveryreadiness.2019-12-02.json delete mode 100644 service/chime/api_op_StartMeetingTranscription.go delete mode 100644 service/chime/api_op_StopMeetingTranscription.go delete mode 100644 service/cloudformation/api_op_ImportStacksToStackSet.go delete mode 100644 service/ec2/api_op_AssociateInstanceEventWindow.go delete mode 100644 service/ec2/api_op_CreateInstanceEventWindow.go delete mode 100644 service/ec2/api_op_CreateSubnetCidrReservation.go delete mode 100644 service/ec2/api_op_DeleteInstanceEventWindow.go delete mode 100644 service/ec2/api_op_DeleteSubnetCidrReservation.go delete mode 100644 service/ec2/api_op_DescribeInstanceEventWindows.go delete mode 100644 service/ec2/api_op_DisassociateInstanceEventWindow.go delete mode 100644 service/ec2/api_op_GetSubnetCidrReservations.go delete mode 100644 service/ec2/api_op_ModifyInstanceEventWindow.go delete mode 100644 service/emr/api_op_DescribeReleaseLabel.go delete mode 100644 service/emr/api_op_ListReleaseLabels.go delete mode 100644 service/location/api_op_UpdateGeofenceCollection.go delete mode 100644 service/location/api_op_UpdateMap.go delete mode 100644 service/location/api_op_UpdatePlaceIndex.go delete mode 100644 service/location/api_op_UpdateRouteCalculator.go delete mode 100644 service/location/api_op_UpdateTracker.go delete mode 100644 service/quicksight/api_op_GenerateEmbedUrlForAnonymousUser.go delete mode 100644 service/quicksight/api_op_GenerateEmbedUrlForRegisteredUser.go delete mode 100644 service/redshiftdata/api_op_BatchExecuteStatement.go delete mode 100644 service/route53recoverycluster/LICENSE.txt delete mode 100644 service/route53recoverycluster/api_client.go delete mode 100644 service/route53recoverycluster/api_op_GetRoutingControlState.go delete mode 100644 service/route53recoverycluster/api_op_UpdateRoutingControlState.go delete mode 100644 service/route53recoverycluster/api_op_UpdateRoutingControlStates.go delete mode 100644 service/route53recoverycluster/deserializers.go delete mode 100644 service/route53recoverycluster/doc.go delete mode 100644 service/route53recoverycluster/endpoints.go delete mode 100644 service/route53recoverycluster/generated.json delete mode 100644 service/route53recoverycluster/go.mod delete mode 100644 service/route53recoverycluster/go.sum delete mode 100644 service/route53recoverycluster/go_module_metadata.go delete mode 100644 service/route53recoverycluster/internal/endpoints/endpoints.go delete mode 100644 service/route53recoverycluster/internal/endpoints/endpoints_test.go delete mode 100644 service/route53recoverycluster/protocol_test.go delete mode 100644 service/route53recoverycluster/serializers.go delete mode 100644 service/route53recoverycluster/types/enums.go delete mode 100644 service/route53recoverycluster/types/errors.go delete mode 100644 service/route53recoverycluster/types/types.go delete mode 100644 service/route53recoverycluster/validators.go delete mode 100644 service/route53recoverycontrolconfig/LICENSE.txt delete mode 100644 service/route53recoverycontrolconfig/api_client.go delete mode 100644 service/route53recoverycontrolconfig/api_op_CreateCluster.go delete mode 100644 service/route53recoverycontrolconfig/api_op_CreateControlPanel.go delete mode 100644 service/route53recoverycontrolconfig/api_op_CreateRoutingControl.go delete mode 100644 service/route53recoverycontrolconfig/api_op_CreateSafetyRule.go delete mode 100644 service/route53recoverycontrolconfig/api_op_DeleteCluster.go delete mode 100644 service/route53recoverycontrolconfig/api_op_DeleteControlPanel.go delete mode 100644 service/route53recoverycontrolconfig/api_op_DeleteRoutingControl.go delete mode 100644 service/route53recoverycontrolconfig/api_op_DeleteSafetyRule.go delete mode 100644 service/route53recoverycontrolconfig/api_op_DescribeCluster.go delete mode 100644 service/route53recoverycontrolconfig/api_op_DescribeControlPanel.go delete mode 100644 service/route53recoverycontrolconfig/api_op_DescribeRoutingControl.go delete mode 100644 service/route53recoverycontrolconfig/api_op_DescribeSafetyRule.go delete mode 100644 service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go delete mode 100644 service/route53recoverycontrolconfig/api_op_ListClusters.go delete mode 100644 service/route53recoverycontrolconfig/api_op_ListControlPanels.go delete mode 100644 service/route53recoverycontrolconfig/api_op_ListRoutingControls.go delete mode 100644 service/route53recoverycontrolconfig/api_op_ListSafetyRules.go delete mode 100644 service/route53recoverycontrolconfig/api_op_UpdateControlPanel.go delete mode 100644 service/route53recoverycontrolconfig/api_op_UpdateRoutingControl.go delete mode 100644 service/route53recoverycontrolconfig/api_op_UpdateSafetyRule.go delete mode 100644 service/route53recoverycontrolconfig/deserializers.go delete mode 100644 service/route53recoverycontrolconfig/doc.go delete mode 100644 service/route53recoverycontrolconfig/endpoints.go delete mode 100644 service/route53recoverycontrolconfig/generated.json delete mode 100644 service/route53recoverycontrolconfig/go.mod delete mode 100644 service/route53recoverycontrolconfig/go.sum delete mode 100644 service/route53recoverycontrolconfig/go_module_metadata.go delete mode 100644 service/route53recoverycontrolconfig/internal/endpoints/endpoints.go delete mode 100644 service/route53recoverycontrolconfig/internal/endpoints/endpoints_test.go delete mode 100644 service/route53recoverycontrolconfig/protocol_test.go delete mode 100644 service/route53recoverycontrolconfig/serializers.go delete mode 100644 service/route53recoverycontrolconfig/types/enums.go delete mode 100644 service/route53recoverycontrolconfig/types/errors.go delete mode 100644 service/route53recoverycontrolconfig/types/types.go delete mode 100644 service/route53recoverycontrolconfig/validators.go delete mode 100644 service/route53recoveryreadiness/LICENSE.txt delete mode 100644 service/route53recoveryreadiness/api_client.go delete mode 100644 service/route53recoveryreadiness/api_op_CreateCell.go delete mode 100644 service/route53recoveryreadiness/api_op_CreateCrossAccountAuthorization.go delete mode 100644 service/route53recoveryreadiness/api_op_CreateReadinessCheck.go delete mode 100644 service/route53recoveryreadiness/api_op_CreateRecoveryGroup.go delete mode 100644 service/route53recoveryreadiness/api_op_CreateResourceSet.go delete mode 100644 service/route53recoveryreadiness/api_op_DeleteCell.go delete mode 100644 service/route53recoveryreadiness/api_op_DeleteCrossAccountAuthorization.go delete mode 100644 service/route53recoveryreadiness/api_op_DeleteReadinessCheck.go delete mode 100644 service/route53recoveryreadiness/api_op_DeleteRecoveryGroup.go delete mode 100644 service/route53recoveryreadiness/api_op_DeleteResourceSet.go delete mode 100644 service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go delete mode 100644 service/route53recoveryreadiness/api_op_GetCell.go delete mode 100644 service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go delete mode 100644 service/route53recoveryreadiness/api_op_GetReadinessCheck.go delete mode 100644 service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go delete mode 100644 service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go delete mode 100644 service/route53recoveryreadiness/api_op_GetRecoveryGroup.go delete mode 100644 service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go delete mode 100644 service/route53recoveryreadiness/api_op_GetResourceSet.go delete mode 100644 service/route53recoveryreadiness/api_op_ListCells.go delete mode 100644 service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go delete mode 100644 service/route53recoveryreadiness/api_op_ListReadinessChecks.go delete mode 100644 service/route53recoveryreadiness/api_op_ListRecoveryGroups.go delete mode 100644 service/route53recoveryreadiness/api_op_ListResourceSets.go delete mode 100644 service/route53recoveryreadiness/api_op_ListRules.go delete mode 100644 service/route53recoveryreadiness/api_op_ListTagsForResources.go delete mode 100644 service/route53recoveryreadiness/api_op_TagResource.go delete mode 100644 service/route53recoveryreadiness/api_op_UntagResource.go delete mode 100644 service/route53recoveryreadiness/api_op_UpdateCell.go delete mode 100644 service/route53recoveryreadiness/api_op_UpdateReadinessCheck.go delete mode 100644 service/route53recoveryreadiness/api_op_UpdateRecoveryGroup.go delete mode 100644 service/route53recoveryreadiness/api_op_UpdateResourceSet.go delete mode 100644 service/route53recoveryreadiness/deserializers.go delete mode 100644 service/route53recoveryreadiness/doc.go delete mode 100644 service/route53recoveryreadiness/endpoints.go delete mode 100644 service/route53recoveryreadiness/generated.json delete mode 100644 service/route53recoveryreadiness/go.mod delete mode 100644 service/route53recoveryreadiness/go.sum delete mode 100644 service/route53recoveryreadiness/go_module_metadata.go delete mode 100644 service/route53recoveryreadiness/internal/endpoints/endpoints.go delete mode 100644 service/route53recoveryreadiness/internal/endpoints/endpoints_test.go delete mode 100644 service/route53recoveryreadiness/protocol_test.go delete mode 100644 service/route53recoveryreadiness/serializers.go delete mode 100644 service/route53recoveryreadiness/types/enums.go delete mode 100644 service/route53recoveryreadiness/types/errors.go delete mode 100644 service/route53recoveryreadiness/types/types.go delete mode 100644 service/route53recoveryreadiness/validators.go delete mode 100644 service/textract/api_op_AnalyzeExpense.go diff --git a/.changelog/41575353444b40ffbf474f4155544f00.json b/.changelog/41575353444b40ffbf474f4155544f00.json deleted file mode 100644 index e91e0d34b29..00000000000 --- a/.changelog/41575353444b40ffbf474f4155544f00.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "id": "41575353-444b-40ff-bf47-4f4155544f00", - "type": "release", - "description": "New AWS service client module", - "modules": [ - "service/route53recoverycluster", - "service/route53recoverycontrolconfig", - "service/route53recoveryreadiness" - ] -} \ No newline at end of file diff --git a/.changelog/6bdf0c5f64af43a292c4c9835c93dc11.json b/.changelog/6bdf0c5f64af43a292c4c9835c93dc11.json deleted file mode 100644 index f8601b8db18..00000000000 --- a/.changelog/6bdf0c5f64af43a292c4c9835c93dc11.json +++ /dev/null @@ -1,298 +0,0 @@ -{ - "id": "6bdf0c5f-64af-43a2-92c4-c9835c93dc11", - "type": "feature", - "description": "API client updated", - "modules": [ - ".", - "config", - "credentials", - "feature/dynamodb/attributevalue", - "feature/dynamodbstreams/attributevalue", - "feature/ec2/imds", - "feature/s3/manager", - "internal/protocoltest/awsrestjson", - "internal/protocoltest/ec2query", - "internal/protocoltest/jsonrpc", - "internal/protocoltest/jsonrpc10", - "internal/protocoltest/query", - "internal/protocoltest/restxml", - "internal/protocoltest/restxmlwithnamespace", - "service/accessanalyzer", - "service/acm", - "service/acmpca", - "service/alexaforbusiness", - "service/amp", - "service/amplify", - "service/amplifybackend", - "service/apigateway", - "service/apigatewaymanagementapi", - "service/apigatewayv2", - "service/appconfig", - "service/appflow", - "service/appintegrations", - "service/applicationautoscaling", - "service/applicationcostprofiler", - "service/applicationdiscoveryservice", - "service/applicationinsights", - "service/appmesh", - "service/apprunner", - "service/appstream", - "service/appsync", - "service/athena", - "service/auditmanager", - "service/autoscaling", - "service/autoscalingplans", - "service/backup", - "service/batch", - "service/braket", - "service/budgets", - "service/chime", - "service/cloud9", - "service/clouddirectory", - "service/cloudformation", - "service/cloudfront", - "service/cloudhsm", - "service/cloudhsmv2", - "service/cloudsearch", - "service/cloudsearchdomain", - "service/cloudtrail", - "service/cloudwatch", - "service/cloudwatchevents", - "service/cloudwatchlogs", - "service/codeartifact", - "service/codebuild", - "service/codecommit", - "service/codedeploy", - "service/codeguruprofiler", - "service/codegurureviewer", - "service/codepipeline", - "service/codestar", - "service/codestarconnections", - "service/codestarnotifications", - "service/cognitoidentity", - "service/cognitoidentityprovider", - "service/cognitosync", - "service/comprehend", - "service/comprehendmedical", - "service/computeoptimizer", - "service/configservice", - "service/connect", - "service/connectcontactlens", - "service/connectparticipant", - "service/costandusagereportservice", - "service/costexplorer", - "service/customerprofiles", - "service/databasemigrationservice", - "service/databrew", - "service/dataexchange", - "service/datapipeline", - "service/datasync", - "service/dax", - "service/detective", - "service/devicefarm", - "service/devopsguru", - "service/directconnect", - "service/directoryservice", - "service/dlm", - "service/docdb", - "service/dynamodb", - "service/dynamodbstreams", - "service/ebs", - "service/ec2", - "service/ec2instanceconnect", - "service/ecr", - "service/ecrpublic", - "service/ecs", - "service/efs", - "service/eks", - "service/elasticache", - "service/elasticbeanstalk", - "service/elasticinference", - "service/elasticloadbalancing", - "service/elasticloadbalancingv2", - "service/elasticsearchservice", - "service/elastictranscoder", - "service/emr", - "service/emrcontainers", - "service/eventbridge", - "service/finspace", - "service/finspacedata", - "service/firehose", - "service/fis", - "service/fms", - "service/forecast", - "service/forecastquery", - "service/frauddetector", - "service/fsx", - "service/gamelift", - "service/glacier", - "service/globalaccelerator", - "service/glue", - "service/greengrass", - "service/greengrassv2", - "service/groundstation", - "service/guardduty", - "service/health", - "service/healthlake", - "service/honeycode", - "service/iam", - "service/identitystore", - "service/imagebuilder", - "service/inspector", - "service/internal/accept-encoding", - "service/internal/benchmark", - "service/internal/endpoint-discovery", - "service/internal/integrationtest", - "service/internal/presigned-url", - "service/internal/s3shared", - "service/iot", - "service/iot1clickdevicesservice", - "service/iot1clickprojects", - "service/iotanalytics", - "service/iotdataplane", - "service/iotdeviceadvisor", - "service/iotevents", - "service/ioteventsdata", - "service/iotfleethub", - "service/iotjobsdataplane", - "service/iotsecuretunneling", - "service/iotsitewise", - "service/iotthingsgraph", - "service/iotwireless", - "service/ivs", - "service/kafka", - "service/kendra", - "service/kinesis", - "service/kinesisanalytics", - "service/kinesisanalyticsv2", - "service/kinesisvideo", - "service/kinesisvideoarchivedmedia", - "service/kinesisvideomedia", - "service/kinesisvideosignaling", - "service/kms", - "service/lakeformation", - "service/lambda", - "service/lexmodelbuildingservice", - "service/lexmodelsv2", - "service/lexruntimeservice", - "service/lexruntimev2", - "service/licensemanager", - "service/lightsail", - "service/location", - "service/lookoutequipment", - "service/lookoutmetrics", - "service/lookoutvision", - "service/machinelearning", - "service/macie", - "service/macie2", - "service/managedblockchain", - "service/marketplacecatalog", - "service/marketplacecommerceanalytics", - "service/marketplaceentitlementservice", - "service/marketplacemetering", - "service/mediaconnect", - "service/mediaconvert", - "service/medialive", - "service/mediapackage", - "service/mediapackagevod", - "service/mediastore", - "service/mediastoredata", - "service/mediatailor", - "service/mgn", - "service/migrationhub", - "service/migrationhubconfig", - "service/mobile", - "service/mq", - "service/mturk", - "service/mwaa", - "service/neptune", - "service/networkfirewall", - "service/networkmanager", - "service/nimble", - "service/opsworks", - "service/opsworkscm", - "service/organizations", - "service/outposts", - "service/personalize", - "service/personalizeevents", - "service/personalizeruntime", - "service/pi", - "service/pinpoint", - "service/pinpointemail", - "service/pinpointsmsvoice", - "service/polly", - "service/pricing", - "service/proton", - "service/qldb", - "service/qldbsession", - "service/quicksight", - "service/ram", - "service/rds", - "service/rdsdata", - "service/redshift", - "service/redshiftdata", - "service/rekognition", - "service/resourcegroups", - "service/resourcegroupstaggingapi", - "service/robomaker", - "service/route53", - "service/route53domains", - "service/route53recoverycluster", - "service/route53recoverycontrolconfig", - "service/route53recoveryreadiness", - "service/route53resolver", - "service/s3", - "service/s3control", - "service/s3outposts", - "service/sagemaker", - "service/sagemakera2iruntime", - "service/sagemakeredge", - "service/sagemakerfeaturestoreruntime", - "service/sagemakerruntime", - "service/savingsplans", - "service/schemas", - "service/secretsmanager", - "service/securityhub", - "service/serverlessapplicationrepository", - "service/servicecatalog", - "service/servicecatalogappregistry", - "service/servicediscovery", - "service/servicequotas", - "service/ses", - "service/sesv2", - "service/sfn", - "service/shield", - "service/signer", - "service/sms", - "service/snowball", - "service/sns", - "service/sqs", - "service/ssm", - "service/ssmcontacts", - "service/ssmincidents", - "service/sso", - "service/ssoadmin", - "service/ssooidc", - "service/storagegateway", - "service/sts", - "service/support", - "service/swf", - "service/synthetics", - "service/textract", - "service/timestreamquery", - "service/timestreamwrite", - "service/transcribe", - "service/transfer", - "service/translate", - "service/waf", - "service/wafregional", - "service/wafv2", - "service/wellarchitected", - "service/workdocs", - "service/worklink", - "service/workmail", - "service/workmailmessageflow", - "service/workspaces", - "service/xray" - ] -} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/appintegrations.2020-07-29.json b/codegen/sdk-codegen/aws-models/appintegrations.2020-07-29.json index cf6e613ad66..e0fba4fd367 100644 --- a/codegen/sdk-codegen/aws-models/appintegrations.2020-07-29.json +++ b/codegen/sdk-codegen/aws-models/appintegrations.2020-07-29.json @@ -86,7 +86,7 @@ "name": "app-integrations" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

The Amazon AppIntegrations service enables you to configure and reuse connections to external applications.

\n

For information about how you can use external applications with Amazon Connect, see Set up pre-built integrations in the Amazon Connect Administrator Guide.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n \n

The Amazon AppIntegrations service enables you to configure and reuse connections to external applications.

\n

For information about how you can use external applications with Amazon Connect, see Set up pre-built integrations in the Amazon Connect Administrator Guide.

", "smithy.api#title": "Amazon AppIntegrations Service" } }, @@ -148,7 +148,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an EventIntegration, given a specified name, description, and a reference to an\n Amazon EventBridge bus in your account and a partner event source that pushes events to that bus. No\n objects are created in the your account, only metadata that is persisted on the EventIntegration\n control plane.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Creates an EventIntegration, given a specified name, description, and a reference to an\n Amazon Eventbridge bus in your account and a partner event source that will push events to that bus. No\n objects are created in the your account, only metadata that is persisted on the EventIntegration\n control plane.

", "smithy.api#http": { "method": "POST", "uri": "/eventIntegrations", @@ -182,7 +182,7 @@ "EventBridgeBus": { "target": "com.amazonaws.appintegrations#EventBridgeBus", "traits": { - "smithy.api#documentation": "

The EventBridge bus.

", + "smithy.api#documentation": "

The Eventbridge bus.

", "smithy.api#required": {} } }, @@ -238,7 +238,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the specified existing event integration. If the event integration is associated\n with clients, the request is rejected.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Deletes the specified existing event integration. If the event integration is associated\n with clients, the request is rejected.

", "smithy.api#http": { "method": "DELETE", "uri": "/eventIntegrations/{Name}", @@ -318,7 +318,7 @@ } }, "traits": { - "smithy.api#documentation": "

The event filter.

" + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

The event filter.

" } }, "com.amazonaws.appintegrations#EventIntegration": { @@ -351,7 +351,7 @@ "EventBridgeBus": { "target": "com.amazonaws.appintegrations#EventBridgeBus", "traits": { - "smithy.api#documentation": "

The Amazon EventBridge bus for the event integration.

" + "smithy.api#documentation": "

The Amazon Eventbridge bus for the event integration.

" } }, "Tags": { @@ -362,7 +362,7 @@ } }, "traits": { - "smithy.api#documentation": "

The event integration.

" + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

The event integration.

" } }, "com.amazonaws.appintegrations#EventIntegrationAssociation": { @@ -395,7 +395,7 @@ "EventBridgeRuleName": { "target": "com.amazonaws.appintegrations#EventBridgeRuleName", "traits": { - "smithy.api#documentation": "

The name of the EventBridge rule.

" + "smithy.api#documentation": "

The name of the Eventbridge rule.

" } }, "ClientAssociationMetadata": { @@ -406,7 +406,7 @@ } }, "traits": { - "smithy.api#documentation": "

The event integration association.

" + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

The event integration association.

" } }, "com.amazonaws.appintegrations#EventIntegrationAssociationsList": { @@ -459,7 +459,7 @@ } ], "traits": { - "smithy.api#documentation": "

Return information about the event integration.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Return information about the event integration.

", "smithy.api#http": { "method": "GET", "uri": "/eventIntegrations/{Name}", @@ -504,7 +504,7 @@ "EventBridgeBus": { "target": "com.amazonaws.appintegrations#EventBridgeBus", "traits": { - "smithy.api#documentation": "

The EventBridge bus.

" + "smithy.api#documentation": "

The Eventbridge bus.

" } }, "EventFilter": { @@ -583,7 +583,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a paginated list of event integration associations in the account.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Returns a paginated list of event integration associations in the account.

", "smithy.api#http": { "method": "GET", "uri": "/eventIntegrations/{EventIntegrationName}/associations", @@ -658,7 +658,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a paginated list of event integrations in the account.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Returns a paginated list of event integrations in the account.

", "smithy.api#http": { "method": "GET", "uri": "/eventIntegrations", @@ -725,7 +725,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the tags for the specified resource.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Lists the tags for the specified resource.

", "smithy.api#http": { "method": "GET", "uri": "/tags/{resourceArn}", @@ -797,7 +797,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.appintegrations#ResourceNotFoundException": { @@ -896,7 +896,7 @@ } ], "traits": { - "smithy.api#documentation": "

Adds the specified tags to the specified resource.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Adds the specified tags to the specified resource.

", "smithy.api#http": { "method": "POST", "uri": "/tags/{resourceArn}", @@ -953,7 +953,7 @@ "com.amazonaws.appintegrations#UUID": { "type": "string", "traits": { - "smithy.api#pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + "smithy.api#pattern": "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" } }, "com.amazonaws.appintegrations#UntagResource": { @@ -979,7 +979,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes the specified tags from the specified resource.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Removes the specified tags from the specified resource.

", "smithy.api#http": { "method": "DELETE", "uri": "/tags/{resourceArn}", @@ -1038,7 +1038,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the description of an event integration.

", + "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Updates the description of an event integration.

", "smithy.api#http": { "method": "PATCH", "uri": "/eventIntegrations/{Name}", diff --git a/codegen/sdk-codegen/aws-models/auditmanager.2017-07-25.json b/codegen/sdk-codegen/aws-models/auditmanager.2017-07-25.json index 2321adfd823..3e8d9c2fbbd 100644 --- a/codegen/sdk-codegen/aws-models/auditmanager.2017-07-25.json +++ b/codegen/sdk-codegen/aws-models/auditmanager.2017-07-25.json @@ -35,24 +35,24 @@ "id": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified account. \n

" + "smithy.api#documentation": "

\n The identifier for the specified AWS account. \n

" } }, "emailAddress": { "target": "com.amazonaws.auditmanager#EmailAddress", "traits": { - "smithy.api#documentation": "

\n The email address associated with the specified account. \n

" + "smithy.api#documentation": "

\n The email address associated with the specified AWS account. \n

" } }, "name": { "target": "com.amazonaws.auditmanager#AccountName", "traits": { - "smithy.api#documentation": "

\n The name of the specified account. \n

" + "smithy.api#documentation": "

\n The name of the specified AWS account. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The wrapper of account details, such as account ID, email address, and so on. \n

" + "smithy.api#documentation": "

\n The wrapper of AWS account details, such as account ID, email address, and so on. \n

" } }, "com.amazonaws.auditmanager#AWSAccounts": { @@ -67,12 +67,12 @@ "serviceName": { "target": "com.amazonaws.auditmanager#AWSServiceName", "traits": { - "smithy.api#documentation": "

\n The name of the Amazon Web Service. \n

" + "smithy.api#documentation": "

\n The name of the AWS service. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n An Amazon Web Service such as Amazon S3, CloudTrail, and so on. \n

" + "smithy.api#documentation": "

\n An AWS service such as Amazon S3, AWS CloudTrail, and so on. \n

" } }, "com.amazonaws.auditmanager#AWSServiceName": { @@ -102,7 +102,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n Your account is not registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again.\n

", + "smithy.api#documentation": "

\n Your account is not registered with AWS Audit Manager. Check the delegated administrator setup on the AWS Audit Manager settings page, and try again.\n

", "smithy.api#error": "client", "smithy.api#httpError": 403 } @@ -217,7 +217,7 @@ "awsAccount": { "target": "com.amazonaws.auditmanager#AWSAccount", "traits": { - "smithy.api#documentation": "

\n The account associated with the assessment. \n

" + "smithy.api#documentation": "

\n The AWS account associated with the assessment. \n

" } }, "metadata": { @@ -240,7 +240,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n An entity that defines the scope of audit evidence collected by Audit Manager. An Audit Manager assessment is an implementation of an Audit Manager framework. \n

" + "smithy.api#documentation": "

\n An entity that defines the scope of audit evidence collected by AWS Audit Manager. An AWS Audit Manager assessment is an implementation of an AWS Audit Manager framework. \n

" } }, "com.amazonaws.auditmanager#AssessmentControl": { @@ -302,7 +302,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The control entity that represents a standard or custom control used in an Audit Manager assessment.\n

" + "smithy.api#documentation": "

\n The control entity that represents a standard or custom control used in an AWS Audit Manager assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentControlSet": { @@ -358,7 +358,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n Represents a set of controls in an Audit Manager assessment.\n

" + "smithy.api#documentation": "

\nRepresents a set of controls in an AWS Audit Manager assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentControlSets": { @@ -425,7 +425,7 @@ "dataSource": { "target": "com.amazonaws.auditmanager#String", "traits": { - "smithy.api#documentation": "

\n The Amazon Web Service from which the evidence was collected. \n

" + "smithy.api#documentation": "

\n The AWS service from which the evidence was collected. \n

" } }, "author": { @@ -461,7 +461,7 @@ "evidenceByTypeConfigurationDataCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The number of evidence that falls under the configuration data category. This evidence is collected from configuration snapshots of other Amazon Web Services services such as Amazon EC2, Amazon S3, or IAM.\n

" + "smithy.api#documentation": "

\n The number of evidence that falls under the configuration data category. This evidence is collected from configuration snapshots of other AWS services such as Amazon EC2, Amazon S3, or IAM.\n

" } }, "evidenceByTypeManualCount": { @@ -473,30 +473,30 @@ "evidenceByTypeComplianceCheckCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The number of evidence that falls under the compliance check category. This evidence is collected from Config or Security Hub.\n

" + "smithy.api#documentation": "

\n The number of evidence that falls under the compliance check category. This evidence is collected from AWS Config or AWS Security Hub.\n

" } }, "evidenceByTypeComplianceCheckIssuesCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The total number of issues that were reported directly from Security Hub, Config, or both.\n

" + "smithy.api#documentation": "

\n The total number of issues that were reported directly from AWS Security\n Hub, AWS Config, or both.\n

" } }, "evidenceByTypeUserActivityCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The number of evidence that falls under the user activity category. This evidence is collected from CloudTrail logs.\n

" + "smithy.api#documentation": "

\n The number of evidence that falls under the user activity category. This evidence is collected from AWS CloudTrail logs.\n

" } }, "evidenceAwsServiceSourceCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The total number of Amazon Web Services resources assessed to generate the evidence. \n

" + "smithy.api#documentation": "

\n The total number of AWS resources assessed to generate the evidence. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The folder in which Audit Manager stores evidence for an assessment.\n

" + "smithy.api#documentation": "

\nThe folder in which AWS Audit Manager stores evidence for an assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentEvidenceFolderName": { @@ -541,7 +541,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The file used to structure and automate Audit Manager assessments for a given compliance standard.\n

" + "smithy.api#documentation": "

\n The file used to structure and automate AWS Audit Manager assessments for a given compliance standard.\n

" } }, "com.amazonaws.auditmanager#AssessmentFrameworkDescription": { @@ -670,7 +670,7 @@ "scope": { "target": "com.amazonaws.auditmanager#Scope", "traits": { - "smithy.api#documentation": "

\n The wrapper of accounts and services in scope for the assessment. \n

" + "smithy.api#documentation": "

\n The wrapper of AWS accounts and services in scope for the assessment. \n

" } }, "roles": { @@ -755,7 +755,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A metadata object associated with an assessment in Audit Manager.\n

" + "smithy.api#documentation": "

\nA metadata object associated with an assessment in AWS Audit Manager.\n

" } }, "com.amazonaws.auditmanager#AssessmentName": { @@ -792,7 +792,7 @@ "awsAccountId": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified account. \n

" + "smithy.api#documentation": "

\n The identifier for the specified AWS account. \n

" } }, "assessmentId": { @@ -827,7 +827,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A finalized document generated from an Audit Manager assessment. These reports summarize the relevant evidence collected for your audit, and link to the relevant evidence folders which are named and organized according to the controls specified in your assessment.\n

" + "smithy.api#documentation": "

\n A finalized document generated from an AWS Audit Manager assessment. These reports summarize the relevant evidence collected for your audit, and link to the relevant evidence folders which are named and organized according to the controls specified in your assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentReportDescription": { @@ -985,7 +985,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The location in which Audit Manager saves assessment reports for the given assessment.\n

" + "smithy.api#documentation": "

\n The location in which AWS Audit Manager saves assessment reports for the given assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentReportsMetadata": { @@ -1032,7 +1032,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Associates an evidence folder to the specified assessment report in Audit Manager. \n

", + "smithy.api#documentation": "

\n Associates an evidence folder to the specified assessment report in AWS Audit Manager. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/associateToAssessmentReport", @@ -1071,7 +1071,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "^arn:.*:auditmanager:" + "smithy.api#pattern": "^arn:.*:auditmanager:.*" } }, "com.amazonaws.auditmanager#BatchAssociateAssessmentReportEvidence": { @@ -1097,7 +1097,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Associates a list of evidence to an assessment report in an Audit Manager assessment.\n

", + "smithy.api#documentation": "

\n Associates a list of evidence to an assessment report in an AWS Audit Manager assessment.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/batchAssociateToAssessmentReport", @@ -1172,7 +1172,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Create a batch of delegations for a specified assessment in Audit Manager.\n

", + "smithy.api#documentation": "

\n Create a batch of delegations for a specified assessment in AWS Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/assessments/{assessmentId}/delegations", @@ -1186,7 +1186,7 @@ "createDelegationRequest": { "target": "com.amazonaws.auditmanager#CreateDelegationRequest", "traits": { - "smithy.api#documentation": "

\n The API request to batch create delegations in Audit Manager.\n

" + "smithy.api#documentation": "

\nThe API request to batch create delegations in AWS Audit Manager.\n

" } }, "errorCode": { @@ -1218,7 +1218,7 @@ "createDelegationRequests": { "target": "com.amazonaws.auditmanager#CreateDelegationRequests", "traits": { - "smithy.api#documentation": "

\n The API request to batch create delegations in Audit Manager.\n

", + "smithy.api#documentation": "

\n The API request to batch create delegations in AWS Audit Manager.\n

", "smithy.api#required": {} } }, @@ -1272,7 +1272,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deletes the delegations in the specified Audit Manager assessment.\n

", + "smithy.api#documentation": "

\nDeletes the delegations in the specified AWS Audit Manager assessment.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/delegations", @@ -1366,7 +1366,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Disassociates a list of evidence from the specified assessment report in Audit Manager. \n

", + "smithy.api#documentation": "

\n Disassociates a list of evidence from the specified assessment report in AWS Audit Manager. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/batchDisassociateFromAssessmentReport", @@ -1441,7 +1441,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Uploads one or more pieces of evidence to the specified control in the assessment in Audit Manager.\n

", + "smithy.api#documentation": "

\n Uploads one or more pieces of evidence to the specified control in the assessment in AWS Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence", @@ -1455,7 +1455,7 @@ "manualEvidence": { "target": "com.amazonaws.auditmanager#ManualEvidence", "traits": { - "smithy.api#documentation": "

\n Manual evidence that cannot be collected automatically by Audit Manager.\n

" + "smithy.api#documentation": "

\nManual evidence that cannot be collected automatically by AWS Audit Manager.\n

" } }, "errorCode": { @@ -1698,7 +1698,7 @@ "name": "auditmanager" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

Welcome to the Audit Manager API reference. This guide is for developers who need detailed information about the Audit Manager API operations, data types, and errors.

\n

Audit Manager is a service that provides automated evidence collection so that you\n can continuously audit your Amazon Web Services usage, and assess the effectiveness of your controls to\n better manage risk and simplify compliance.

\n

Audit Manager provides pre-built frameworks that structure and automate assessments\n for a given compliance standard. Frameworks include a pre-built collection of controls with\n descriptions and testing procedures, which are grouped according to the requirements of the\n specified compliance standard or regulation. You can also customize frameworks and controls\n to support internal audits with unique requirements.

\n \n

Use the following links to get started with the Audit Manager API:

\n \n \n

If you're new to Audit Manager, we recommend that you review the Audit Manager User Guide.

", + "smithy.api#documentation": "

Welcome to the AWS Audit Manager API reference. This guide is for developers who need detailed information about the AWS Audit Manager API operations, data types, and errors.

\n

AWS Audit Manager is a service that provides automated evidence collection so that you\n can continuously audit your AWS usage, and assess the effectiveness of your controls to\n better manage risk and simplify compliance.

\n

AWS Audit Manager provides pre-built frameworks that structure and automate assessments\n for a given compliance standard. Frameworks include a pre-built collection of controls with\n descriptions and testing procedures, which are grouped according to the requirements of the\n specified compliance standard or regulation. You can also customize frameworks and controls\n to support internal audits with unique requirements.

\n \n

Use the following links to get started with the AWS Audit Manager API:

\n \n \n

If you're new to AWS Audit Manager, we recommend that you review the AWS Audit Manager User Guide.

", "smithy.api#title": "AWS Audit Manager" } }, @@ -1738,12 +1738,12 @@ "createdBy": { "target": "com.amazonaws.auditmanager#IamArn", "traits": { - "smithy.api#documentation": "

\n The IAM user or role that performed the action. \n

" + "smithy.api#documentation": "

\n The IAM user or role that performed the action. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The record of a change within Audit Manager, such as a modified assessment, a delegated control set, and so on. \n

" + "smithy.api#documentation": "

\n The record of a change within AWS Audit Manager, such as a modified assessment, a delegated control set, and so on. \n

" } }, "com.amazonaws.auditmanager#ChangeLogs": { @@ -1816,7 +1816,7 @@ "controlSources": { "target": "com.amazonaws.auditmanager#ControlSources", "traits": { - "smithy.api#documentation": "

\n The data source that determines from where Audit Manager collects evidence for the control. \n

" + "smithy.api#documentation": "

\n The data source that determines from where AWS Audit Manager collects evidence for the control. \n

" } }, "controlMappingSources": { @@ -1857,7 +1857,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A control in Audit Manager.\n

" + "smithy.api#documentation": "

\nA control in AWS Audit Manager.\n

" } }, "com.amazonaws.auditmanager#ControlComment": { @@ -1962,7 +1962,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The data source that determines from where Audit Manager collects evidence for the control.\n

" + "smithy.api#documentation": "

\n The data source that determines from where AWS Audit Manager collects evidence for the control.\n

" } }, "com.amazonaws.auditmanager#ControlMappingSources": { @@ -2000,7 +2000,7 @@ "controlSources": { "target": "com.amazonaws.auditmanager#ControlSources", "traits": { - "smithy.api#documentation": "

\n The data source that determines from where Audit Manager collects evidence for the control.\n

" + "smithy.api#documentation": "

\n The data source that determines from where AWS Audit Manager collects evidence for the control.\n

" } }, "createdAt": { @@ -2082,7 +2082,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A set of controls in Audit Manager.\n

" + "smithy.api#documentation": "

\nA set of controls in AWS Audit Manager.\n

" } }, "com.amazonaws.auditmanager#ControlSetId": { @@ -2219,7 +2219,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Creates an assessment in Audit Manager. \n

", + "smithy.api#documentation": "

\n Creates an assessment in AWS Audit Manager. \n

", "smithy.api#http": { "method": "POST", "uri": "/assessments", @@ -2250,7 +2250,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Creates a custom framework in Audit Manager. \n

", + "smithy.api#documentation": "

\nCreates a custom framework in AWS Audit Manager. \n

", "smithy.api#http": { "method": "POST", "uri": "/assessmentFrameworks", @@ -2269,7 +2269,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n Control entity attributes that uniquely identify an existing control to be added to a framework in Audit Manager.\n

" + "smithy.api#documentation": "

\nControl entity attributes that uniquely identify an existing control to be added to a framework in AWS Audit Manager.\n

" } }, "com.amazonaws.auditmanager#CreateAssessmentFrameworkControlSet": { @@ -2290,7 +2290,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A controlSet entity that represents a collection of controls in Audit Manager. This does not contain the control set ID.\n

" + "smithy.api#documentation": "

\nA controlSet entity that represents a collection of controls in AWS Audit Manager. This does not contain the control set ID.\n

" } }, "com.amazonaws.auditmanager#CreateAssessmentFrameworkControlSets": { @@ -2513,7 +2513,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Creates a new custom control in Audit Manager.\n

", + "smithy.api#documentation": "

\nCreates a new custom control in AWS Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/controls", @@ -2533,7 +2533,7 @@ "sourceDescription": { "target": "com.amazonaws.auditmanager#SourceDescription", "traits": { - "smithy.api#documentation": "

\n The description of the data source that determines from where Audit Manager collects evidence for the control. \n

" + "smithy.api#documentation": "

\n The description of the data source that determines from where AWS Audit Manager collects evidence for the control. \n

" } }, "sourceSetUpOption": { @@ -2668,7 +2668,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A collection of attributes used to create a delegation for an assessment in Audit Manager.\n

" + "smithy.api#documentation": "

\n A collection of attributes used to create a delegation for an assessment in AWS Audit Manager.\n

" } }, "com.amazonaws.auditmanager#CreateDelegationRequests": { @@ -2893,7 +2893,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deletes an assessment in Audit Manager. \n

", + "smithy.api#documentation": "

\n Deletes an assessment in AWS Audit Manager. \n

", "smithy.api#http": { "method": "DELETE", "uri": "/assessments/{assessmentId}", @@ -2924,7 +2924,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deletes a custom framework in Audit Manager.\n

", + "smithy.api#documentation": "

\n Deletes a custom framework in AWS Audit Manager.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/assessmentFrameworks/{frameworkId}", @@ -2972,7 +2972,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deletes an assessment report from an assessment in Audit Manager.\n

", + "smithy.api#documentation": "

\nDeletes an assessment report from an assessment in AWS Audit Manager.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/assessments/{assessmentId}/reports/{assessmentReportId}", @@ -3045,7 +3045,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deletes a custom control in Audit Manager.\n

", + "smithy.api#documentation": "

\n Deletes a custom control in AWS Audit Manager.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/controls/{controlId}", @@ -3093,7 +3093,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deregisters an account in Audit Manager.\n

", + "smithy.api#documentation": "

\nDeregisters an account in AWS Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/account/deregisterAccount", @@ -3139,7 +3139,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes the specified member account as a delegated administrator for Audit Manager.

\n \n

When you remove a delegated administrator from your Audit Manager settings, or when you\n deregister a delegated administrator from Organizations, you continue to have access\n to the evidence that you previously collected under that account. However, Audit Manager\n will stop collecting and attaching evidence to that delegated administrator account\n moving forward.

\n
", + "smithy.api#documentation": "

\n Deregisters the delegated AWS administrator account from the AWS organization. \n

", "smithy.api#http": { "method": "POST", "uri": "/account/deregisterOrganizationAdminAccount", @@ -3185,7 +3185,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Disassociates an evidence folder from the specified assessment report in Audit Manager. \n

", + "smithy.api#documentation": "

\n Disassociates an evidence folder from the specified assessment report in AWS Audit Manager. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/disassociateFromAssessmentReport", @@ -3234,7 +3234,7 @@ "min": 3, "max": 3 }, - "smithy.api#pattern": "^[0-9]{3}$" + "smithy.api#pattern": "[0-9]{3}" } }, "com.amazonaws.auditmanager#ErrorMessage": { @@ -3269,7 +3269,7 @@ "evidenceAwsAccountId": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified account. \n

" + "smithy.api#documentation": "

\n The identifier for the specified AWS account. \n

" } }, "time": { @@ -3281,7 +3281,7 @@ "eventSource": { "target": "com.amazonaws.auditmanager#AWSServiceName", "traits": { - "smithy.api#documentation": "

\n The Amazon Web Service from which the evidence is collected.\n

" + "smithy.api#documentation": "

\nThe AWS service from which the evidence is collected.\n

" } }, "eventName": { @@ -3317,19 +3317,19 @@ "complianceCheck": { "target": "com.amazonaws.auditmanager#String", "traits": { - "smithy.api#documentation": "

The evaluation status for evidence that falls under the compliance check category. For\n evidence collected from Security Hub, a Pass or\n Fail result is shown. For evidence collected from Config, a\n Compliant or Noncompliant result is shown.

" + "smithy.api#documentation": "

The evaluation status for evidence that falls under the compliance check category. For\n evidence collected from AWS Security Hub, a Pass or\n Fail result is shown. For evidence collected from AWS Config, a\n Compliant or Noncompliant result is shown.

" } }, "awsOrganization": { "target": "com.amazonaws.auditmanager#String", "traits": { - "smithy.api#documentation": "

\n The account from which the evidence is collected, and its organization path.\n

" + "smithy.api#documentation": "

\n The AWS account from which the evidence is collected, and its AWS organization path.\n

" } }, "awsAccountId": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified account. \n

" + "smithy.api#documentation": "

\n The identifier for the specified AWS account. \n

" } }, "evidenceFolderId": { @@ -3466,7 +3466,7 @@ "controlSources": { "target": "com.amazonaws.auditmanager#ControlSources", "traits": { - "smithy.api#documentation": "

\n The sources from which Audit Manager collects evidence for the control.\n

" + "smithy.api#documentation": "

\nThe sources from which AWS Audit Manager collects evidence for the control.\n

" } }, "controlSets": { @@ -3507,7 +3507,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The file used to structure and automate Audit Manager assessments for a given compliance standard.\n

" + "smithy.api#documentation": "

\n The file used to structure and automate AWS Audit Manager assessments for a given compliance standard.\n

" } }, "com.amazonaws.auditmanager#FrameworkDescription": { @@ -3590,7 +3590,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "^arn:" + "smithy.api#pattern": "^arn:.*" } }, "com.amazonaws.auditmanager#GetAccountStatus": { @@ -3607,7 +3607,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the registration status of an account in Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns the registration status of an account in AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/account/status", @@ -3625,7 +3625,7 @@ "status": { "target": "com.amazonaws.auditmanager#AccountStatus", "traits": { - "smithy.api#documentation": "

\n The status of the specified account.\n

" + "smithy.api#documentation": "

\nThe status of the specified AWS account.\n

" } } } @@ -3653,7 +3653,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns an assessment from Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns an assessment from AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}", @@ -3684,7 +3684,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a framework from Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns a framework from AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessmentFrameworks/{frameworkId}", @@ -3739,7 +3739,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the URL of a specified assessment report in Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns the URL of a specified assessment report in AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/reports/{assessmentReportId}/url", @@ -3823,7 +3823,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of changelogs from Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns a list of changelogs from AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/changelogs", @@ -3917,7 +3917,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a control from Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns a control from AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/controls/{controlId}", @@ -4041,7 +4041,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns evidence from Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns evidence from AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}", @@ -4072,7 +4072,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns all evidence from a specified evidence folder in Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns all evidence from a specified evidence folder in AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence", @@ -4168,7 +4168,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns an evidence folder from the specified assessment in Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns an evidence folder from the specified assessment in AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}", @@ -4239,7 +4239,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the evidence folders from a specified assessment in Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns the evidence folders from a specified assessment in AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/evidenceFolders", @@ -4275,7 +4275,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of evidence folders associated with a specified control of an assessment in Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns a list of evidence folders associated with a specified control of an assessment in AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}", @@ -4463,7 +4463,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the name of the delegated Amazon Web Services administrator account for the organization. \n

", + "smithy.api#documentation": "

\n Returns the name of the delegated AWS administrator account for the AWS organization. \n

", "smithy.api#http": { "method": "GET", "uri": "/account/organizationAdminAccount", @@ -4512,7 +4512,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of the in-scope Amazon Web Services services for the specified assessment. \n

", + "smithy.api#documentation": "

\n Returns a list of the in-scope AWS services for the specified assessment. \n

", "smithy.api#http": { "method": "GET", "uri": "/services", @@ -4530,7 +4530,7 @@ "serviceMetadata": { "target": "com.amazonaws.auditmanager#ServiceMetadataList", "traits": { - "smithy.api#documentation": "

\n The metadata associated with the Amazon Web Service.\n

" + "smithy.api#documentation": "

\n The metadata associated with the aAWS service.\n

" } } } @@ -4552,7 +4552,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the settings for the specified account. \n

", + "smithy.api#documentation": "

\n Returns the settings for the specified AWS account. \n

", "smithy.api#http": { "method": "GET", "uri": "/settings/{attribute}", @@ -4579,7 +4579,7 @@ "settings": { "target": "com.amazonaws.auditmanager#Settings", "traits": { - "smithy.api#documentation": "

\n The settings object that holds all supported Audit Manager settings. \n

" + "smithy.api#documentation": "

\n The settings object that holds all supported AWS Audit Manager settings. \n

" } } } @@ -4601,7 +4601,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "^arn:.*:iam:" + "smithy.api#pattern": "^arn:.*:iam:.*" } }, "com.amazonaws.auditmanager#Integer": { @@ -4657,7 +4657,7 @@ "min": 7, "max": 2048 }, - "smithy.api#pattern": "^arn:.*:kms:.*|DEFAULT$" + "smithy.api#pattern": "^arn:.*:kms:.*|DEFAULT" } }, "com.amazonaws.auditmanager#LastUpdatedBy": { @@ -4690,7 +4690,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of the frameworks available in the Audit Manager framework library.\n

", + "smithy.api#documentation": "

\nReturns a list of the frameworks available in the AWS Audit Manager framework library.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessmentFrameworks", @@ -4773,7 +4773,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of assessment reports created in Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns a list of assessment reports created in AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessmentReports", @@ -4842,7 +4842,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of current and past assessments from Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns a list of current and past assessments from AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments", @@ -4911,7 +4911,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of controls from Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns a list of controls from AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/controls", @@ -5065,7 +5065,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of all Audit Manager notifications. \n

", + "smithy.api#documentation": "

\n Returns a list of all AWS Audit Manager notifications. \n

", "smithy.api#http": { "method": "GET", "uri": "/notifications", @@ -5134,7 +5134,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of tags for the specified resource in Audit Manager.\n

", + "smithy.api#documentation": "

\nReturns a list of tags for the specified resource in AWS Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/tags/{resourceArn}", @@ -5177,7 +5177,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n Evidence that is uploaded to Audit Manager manually. \n

" + "smithy.api#documentation": "

\n Evidence that is uploaded to AWS Audit Manager manually. \n

" } }, "com.amazonaws.auditmanager#ManualEvidenceList": { @@ -5210,7 +5210,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.auditmanager#Notification": { @@ -5266,7 +5266,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The notification used to inform a user of an update in Audit Manager. For example, this includes the notification that is sent when a control set is delegated for review. \n

" + "smithy.api#documentation": "

\n The notification used to inform a user of an update in AWS Audit Manager. For example, this includes the notification that is sent when a control set is delegated for review. \n

" } }, "com.amazonaws.auditmanager#Notifications": { @@ -5325,7 +5325,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Enables Audit Manager for the specified account. \n

", + "smithy.api#documentation": "

\n Enables AWS Audit Manager for the specified AWS account. \n

", "smithy.api#http": { "method": "POST", "uri": "/account/registerAccount", @@ -5339,13 +5339,13 @@ "kmsKey": { "target": "com.amazonaws.auditmanager#KmsKey", "traits": { - "smithy.api#documentation": "

\n The KMS key details. \n

" + "smithy.api#documentation": "

\n The AWS KMS key details. \n

" } }, "delegatedAdminAccount": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The delegated administrator account for Audit Manager. \n

" + "smithy.api#documentation": "

\n The delegated administrator account for AWS Audit Manager. \n

" } } } @@ -5384,7 +5384,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Enables an account within the organization as the delegated administrator for Audit Manager.\n

", + "smithy.api#documentation": "

\n Enables an AWS account within the organization as the delegated administrator for AWS Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/account/registerOrganizationAdminAccount", @@ -5416,7 +5416,7 @@ "organizationId": { "target": "com.amazonaws.auditmanager#organizationId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified organization. \n

" + "smithy.api#documentation": "

\n The identifier for the specified AWS organization. \n

" } } } @@ -5438,7 +5438,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A system asset that is evaluated in an Audit Manager assessment. \n

" + "smithy.api#documentation": "

\n A system asset that is evaluated in an AWS Audit Manager assessment. \n

" } }, "com.amazonaws.auditmanager#ResourceNotFoundException": { @@ -5494,7 +5494,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The wrapper that contains the Audit Manager role information of the current user, such as the role type and IAM Amazon Resource Name (ARN).\n

" + "smithy.api#documentation": "

\n The wrapper that contains the AWS Audit Manager role information of the current user, such as the role type and IAM Amazon Resource Name (ARN).\n

" } }, "com.amazonaws.auditmanager#RoleType": { @@ -5525,7 +5525,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "^(S|s)3:\\/\\/[a-zA-Z0-9\\-\\.\\(\\)\\'\\*\\_\\!\\/]+$" + "smithy.api#pattern": "^(S|s)3:\\/\\/[a-zA-Z0-9-_\\/.]+$" } }, "com.amazonaws.auditmanager#SNSTopic": { @@ -5544,18 +5544,18 @@ "awsAccounts": { "target": "com.amazonaws.auditmanager#AWSAccounts", "traits": { - "smithy.api#documentation": "

\n The accounts included in the scope of the assessment. \n

" + "smithy.api#documentation": "

\n The AWS accounts included in the scope of the assessment. \n

" } }, "awsServices": { "target": "com.amazonaws.auditmanager#AWSServices", "traits": { - "smithy.api#documentation": "

\n The Amazon Web Services services included in the scope of the assessment. \n

" + "smithy.api#documentation": "

\n The AWS services included in the scope of the assessment. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The wrapper that contains the accounts and services in scope for the assessment.\n

" + "smithy.api#documentation": "

\n The wrapper that contains the AWS accounts and AWS services in scope for the assessment.\n

" } }, "com.amazonaws.auditmanager#ServiceMetadata": { @@ -5564,30 +5564,30 @@ "name": { "target": "com.amazonaws.auditmanager#AWSServiceName", "traits": { - "smithy.api#documentation": "

\n The name of the Amazon Web Service.\n

" + "smithy.api#documentation": "

\nThe name of the AWS service.\n

" } }, "displayName": { "target": "com.amazonaws.auditmanager#NonEmptyString", "traits": { - "smithy.api#documentation": "

\n The display name of the Amazon Web Service.\n

" + "smithy.api#documentation": "

\nThe display name of the AWS service.\n

" } }, "description": { "target": "com.amazonaws.auditmanager#NonEmptyString", "traits": { - "smithy.api#documentation": "

\n The description of the specified Amazon Web Service.\n

" + "smithy.api#documentation": "

\n The description of the specified AWS service.\n

" } }, "category": { "target": "com.amazonaws.auditmanager#NonEmptyString", "traits": { - "smithy.api#documentation": "

\n The category in which the Amazon Web Service belongs, such as compute, storage, database, and so on.\n

" + "smithy.api#documentation": "

\n The category in which the AWS service belongs, such as compute, storage, database, and so on.\n

" } } }, "traits": { - "smithy.api#documentation": "

\n The metadata associated with the specified Amazon Web Service.\n

" + "smithy.api#documentation": "

\n The metadata associated with the specified AWS service.\n

" } }, "com.amazonaws.auditmanager#ServiceMetadataList": { @@ -5629,13 +5629,13 @@ "isAwsOrgEnabled": { "target": "com.amazonaws.auditmanager#Boolean", "traits": { - "smithy.api#documentation": "

\n Specifies whether Organizations is enabled. \n

" + "smithy.api#documentation": "

\n Specifies whether AWS Organizations is enabled. \n

" } }, "snsTopic": { "target": "com.amazonaws.auditmanager#SNSTopic", "traits": { - "smithy.api#documentation": "

\n The designated Amazon Simple Notification Service (Amazon SNS) topic. \n

" + "smithy.api#documentation": "

\n The designated Amazon Simple Notification Service (Amazon SNS) topic. \n

" } }, "defaultAssessmentReportsDestination": { @@ -5653,12 +5653,12 @@ "kmsKey": { "target": "com.amazonaws.auditmanager#KmsKey", "traits": { - "smithy.api#documentation": "

\n The KMS key details. \n

" + "smithy.api#documentation": "

\n The AWS KMS key details. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The settings object that holds all supported Audit Manager settings. \n

" + "smithy.api#documentation": "

\n The settings object that holds all supported AWS Audit Manager settings. \n

" } }, "com.amazonaws.auditmanager#SnsArn": { @@ -5668,7 +5668,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "^arn:.*:sns:" + "smithy.api#pattern": "^arn:.*:sns:.*" } }, "com.amazonaws.auditmanager#SourceDescription": { @@ -5712,12 +5712,12 @@ "keywordValue": { "target": "com.amazonaws.auditmanager#KeywordValue", "traits": { - "smithy.api#documentation": "

\n The value of the keyword used to search CloudTrail logs, Config rules, Security Hub checks, and Amazon Web Services API names when mapping a control data source. \n

" + "smithy.api#documentation": "

\nThe value of the keyword used to search AWS CloudTrail logs, AWS Config rules, AWS Security Hub checks, and AWS API names when mapping a control data source. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The keyword to search for in CloudTrail logs, Config rules, Security Hub checks, and Amazon Web Services API names.\n

" + "smithy.api#documentation": "

\nThe keyword to search for in AWS CloudTrail logs, AWS Config rules, AWS Security Hub checks, and AWS API names.\n

" } }, "com.amazonaws.auditmanager#SourceName": { @@ -5838,7 +5838,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Tags the specified resource in Audit Manager.\n

", + "smithy.api#documentation": "

\nTags the specified resource in AWS Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/tags/{resourceArn}", @@ -5877,7 +5877,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": "^.{0,255}$" + "smithy.api#pattern": ".{0,255}" } }, "com.amazonaws.auditmanager#TestingInformation": { @@ -5973,7 +5973,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Removes a tag from a resource in Audit Manager.\n

", + "smithy.api#documentation": "

\nRemoves a tag from a resource in AWS Audit Manager.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/tags/{resourceArn}", @@ -6029,7 +6029,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Edits an Audit Manager assessment. \n

", + "smithy.api#documentation": "

\n Edits an AWS Audit Manager assessment. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}", @@ -6060,7 +6060,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Updates a control within an assessment in Audit Manager.\n

", + "smithy.api#documentation": "

\nUpdates a control within an assessment in AWS Audit Manager.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}", @@ -6143,7 +6143,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Updates the status of a control set in an Audit Manager assessment.\n

", + "smithy.api#documentation": "

\n Updates the status of a control set in an AWS Audit Manager assessment.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/status", @@ -6220,7 +6220,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Updates a custom framework in Audit Manager.\n

", + "smithy.api#documentation": "

\nUpdates a custom framework in AWS Audit Manager.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessmentFrameworks/{frameworkId}", @@ -6252,7 +6252,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A controlSet entity that represents a collection of controls in Audit Manager. This does not contain the control set ID.\n

" + "smithy.api#documentation": "

\n A controlSet entity that represents a collection of controls in AWS Audit Manager. This does not contain the control set ID.\n

" } }, "com.amazonaws.auditmanager#UpdateAssessmentFrameworkControlSets": { @@ -6389,7 +6389,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Updates the status of an assessment in Audit Manager. \n

", + "smithy.api#documentation": "

\n Updates the status of an assessment in AWS Audit Manager. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/status", @@ -6451,7 +6451,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Updates a custom control in Audit Manager.\n

", + "smithy.api#documentation": "

\nUpdates a custom control in AWS Audit Manager.\n

", "smithy.api#http": { "method": "PUT", "uri": "/controls/{controlId}", @@ -6541,7 +6541,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Updates Audit Manager settings for the current user account. \n

", + "smithy.api#documentation": "

\n Updates AWS Audit Manager settings for the current user account. \n

", "smithy.api#http": { "method": "PUT", "uri": "/settings", @@ -6555,7 +6555,7 @@ "snsTopic": { "target": "com.amazonaws.auditmanager#SnsArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Simple Notification Service (Amazon SNS) topic to which Audit Manager sends notifications.\n

" + "smithy.api#documentation": "

\nThe Amazon Simple Notification Service (Amazon SNS) topic to which AWS Audit Manager sends notifications.\n

" } }, "defaultAssessmentReportsDestination": { @@ -6573,7 +6573,7 @@ "kmsKey": { "target": "com.amazonaws.auditmanager#KmsKey", "traits": { - "smithy.api#documentation": "

\n The KMS key details. \n

" + "smithy.api#documentation": "

\n The AWS KMS key details. \n

" } } } @@ -6632,7 +6632,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Validates the integrity of an assessment report in Audit Manager. \n

", + "smithy.api#documentation": "

\n Validates the integrity of an assessment report in AWS Audit Manager. \n

", "smithy.api#http": { "method": "POST", "uri": "/assessmentReports/integrity", @@ -6779,7 +6779,7 @@ "min": 12, "max": 34 }, - "smithy.api#pattern": "^o-[a-z0-9]{10,32}$" + "smithy.api#pattern": "o-[a-z0-9]{10,32}" } } } diff --git a/codegen/sdk-codegen/aws-models/batch.2016-08-10.json b/codegen/sdk-codegen/aws-models/batch.2016-08-10.json index d5bbd1da330..e6c179f3ce0 100644 --- a/codegen/sdk-codegen/aws-models/batch.2016-08-10.json +++ b/codegen/sdk-codegen/aws-models/batch.2016-08-10.json @@ -103,7 +103,7 @@ "name": "batch" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "Batch\n

Using Batch, you can run batch computing workloads on the Cloud. Batch computing is a common means for\n developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of\n this computing workload to remove the undifferentiated heavy lifting of configuring and managing required\n infrastructure. At the same time, it also adopts a familiar batch computing software approach. Given these\n advantages, Batch can help you to efficiently provision resources in response to jobs submitted, thus effectively\n helping you to eliminate capacity constraints, reduce compute costs, and deliver your results more quickly.

\n

As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically\n provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific\n workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus\n your time and energy on analyzing results and solving your specific problems.

", + "smithy.api#documentation": "

Using AWS Batch, you can run batch computing workloads on the AWS Cloud. Batch computing is a common means for\n developers, scientists, and engineers to access large amounts of compute resources. AWS Batch uses the advantages of\n this computing workload to remove the undifferentiated heavy lifting of configuring and managing required\n infrastructure. At the same time, it also adopts a familiar batch computing software approach. Given these\n advantages, AWS Batch can help you to efficiently provision resources in response to jobs submitted, thus effectively\n helping you to eliminate capacity constraints, reduce compute costs, and deliver your results more quickly.

\n

As a fully managed service, AWS Batch can run batch computing workloads of any scale. AWS Batch automatically\n provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific\n workloads. With AWS Batch, there's no need to install or manage batch computing software. This means that you can focus\n your time and energy on analyzing results and solving your specific problems.

", "smithy.api#title": "AWS Batch", "smithy.api#xmlNamespace": { "uri": "http://batch.amazonaws.com/doc/2016-08-10/" @@ -145,7 +145,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing an Batch array job.

" + "smithy.api#documentation": "

An object representing an AWS Batch array job.

" } }, "com.amazonaws.batch#ArrayPropertiesDetail": { @@ -239,7 +239,7 @@ "logStreamName": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The name of the CloudWatch Logs log stream associated with the container. The log group for Batch jobs is\n /aws/batch/job. Each container attempt receives a log stream name when they reach the\n RUNNING status.

" + "smithy.api#documentation": "

The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is\n /aws/batch/job. Each container attempt receives a log stream name when they reach the\n RUNNING status.

" } }, "networkInterfaces": { @@ -414,7 +414,7 @@ } ], "traits": { - "smithy.api#documentation": "

Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED, PENDING, or\n RUNNABLE state are canceled. Jobs that have progressed to STARTING or RUNNING\n aren't canceled, but the API operation still succeeds, even if no job is canceled. These jobs must be terminated with\n the TerminateJob operation.

", + "smithy.api#documentation": "

Cancels a job in an AWS Batch job queue. Jobs that are in the SUBMITTED, PENDING, or\n RUNNABLE state are canceled. Jobs that have progressed to STARTING or RUNNING\n aren't canceled, but the API operation still succeeds, even if no job is canceled. These jobs must be terminated with\n the TerminateJob operation.

", "smithy.api#http": { "method": "POST", "uri": "/v1/canceljob", @@ -428,14 +428,14 @@ "jobId": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Batch job ID of the job to cancel.

", + "smithy.api#documentation": "

The AWS Batch job ID of the job to cancel.

", "smithy.api#required": {} } }, "reason": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the Batch activity\n logs.

", + "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity\n logs.

", "smithy.api#required": {} } } @@ -494,13 +494,13 @@ "type": { "target": "com.amazonaws.batch#CEType", "traits": { - "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For more information, see\n Compute Environments in the\n Batch User Guide.

" + "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For more information, see\n Compute Environments in the\n AWS Batch User Guide.

" } }, "state": { "target": "com.amazonaws.batch#CEState", "traits": { - "smithy.api#documentation": "

The state of the compute environment. The valid values are ENABLED or DISABLED.

\n

If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" + "smithy.api#documentation": "

The state of the compute environment. The valid values are ENABLED or DISABLED.

\n

If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" } }, "status": { @@ -518,18 +518,18 @@ "computeResources": { "target": "com.amazonaws.batch#ComputeResource", "traits": { - "smithy.api#documentation": "

The compute resources defined for the compute environment. For more information, see Compute Environments in the\n Batch User Guide.

" + "smithy.api#documentation": "

The compute resources defined for the compute environment. For more information, see Compute Environments in the\n AWS Batch User Guide.

" } }, "serviceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The service role associated with the compute environment that allows Batch to make calls to Amazon Web Services API\n operations on your behalf. For more information, see Batch service IAM role in the\n Batch User Guide.

" + "smithy.api#documentation": "

The service role associated with the compute environment that allows AWS Batch to make calls to AWS API\n operations on your behalf. For more information, see AWS Batch service IAM role in the\n AWS Batch User Guide.

" } } }, "traits": { - "smithy.api#documentation": "

An object representing an Batch compute environment.

" + "smithy.api#documentation": "

An object representing an AWS Batch compute environment.

" } }, "com.amazonaws.batch#ComputeEnvironmentDetailList": { @@ -557,7 +557,7 @@ } }, "traits": { - "smithy.api#documentation": "

The order in which compute environments are tried for job placement within a queue. Compute environments are\n tried in ascending order. For example, if two compute environments are associated with a job queue, the compute\n environment with a lower order integer value is tried for job placement first. Compute environments must be in the\n VALID state before you can associate them with a job queue. All of the compute environments must be\n either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT);\n EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
" + "smithy.api#documentation": "

The order in which compute environments are tried for job placement within a queue. Compute environments are\n tried in ascending order. For example, if two compute environments are associated with a job queue, the compute\n environment with a lower order integer value is tried for job placement first. Compute environments must be in the\n VALID state before you can associate them with a job queue. All of the compute environments must be\n either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT);\n EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
" } }, "com.amazonaws.batch#ComputeEnvironmentOrders": { @@ -572,39 +572,39 @@ "type": { "target": "com.amazonaws.batch#CRType", "traits": { - "smithy.api#documentation": "

The type of compute environment: EC2, SPOT, FARGATE, or\n FARGATE_SPOT. For more information, see Compute Environments in the\n Batch User Guide.

\n

If you choose SPOT, you must also specify an Amazon EC2 Spot Fleet role with the\n spotIamFleetRole parameter. For more information, see Amazon EC2 Spot Fleet role in the\n Batch User Guide.

", + "smithy.api#documentation": "

The type of compute environment: EC2, SPOT, FARGATE, or\n FARGATE_SPOT. For more information, see Compute Environments in the\n AWS Batch User Guide.

\n

If you choose SPOT, you must also specify an Amazon EC2 Spot Fleet role with the\n spotIamFleetRole parameter. For more information, see Amazon EC2 Spot Fleet role in the\n AWS Batch User Guide.

", "smithy.api#required": {} } }, "allocationStrategy": { "target": "com.amazonaws.batch#CRAllocationStrategy", "traits": { - "smithy.api#documentation": "

The allocation strategy to use for the compute resource if not enough instances of the best fitting instance\n type can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more\n information, see Allocation Strategies\n in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
\n
\n
BEST_FIT (default)
\n
\n

Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost\n instance type. If additional instances of the selected instance type aren't available, Batch waits for the\n additional instances to be available. If there aren't enough instances available, or if the user is reaching\n Amazon EC2 service limits\n then additional jobs aren't run until the currently running jobs have completed. This allocation strategy keeps\n costs lower but can limit scaling. If you are using Spot Fleets with BEST_FIT then the Spot Fleet IAM\n Role must be specified.

\n
\n
BEST_FIT_PROGRESSIVE
\n
\n

Batch will select additional instance types that are large enough to meet the requirements of the jobs in\n the queue, with a preference for instance types with a lower cost per unit vCPU. If additional instances of the\n previously selected instance types aren't available, Batch will select new instance types.

\n
\n
SPOT_CAPACITY_OPTIMIZED
\n
\n

Batch will select one or more instance types that are large enough to meet the requirements of the jobs in\n the queue, with a preference for instance types that are less likely to be interrupted. This allocation strategy\n is only available for Spot Instance compute resources.

\n
\n
\n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies, Batch might\n need to go above maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

" + "smithy.api#documentation": "

The allocation strategy to use for the compute resource if not enough instances of the best fitting instance\n type can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more\n information, see Allocation Strategies\n in the AWS Batch User Guide.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
\n
\n
BEST_FIT (default)
\n
\n

AWS Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost\n instance type. If additional instances of the selected instance type aren't available, AWS Batch waits for the\n additional instances to be available. If there aren't enough instances available, or if the user is hitting Amazon EC2 service limits then\n additional jobs aren't run until the currently running jobs have completed. This allocation strategy keeps costs\n lower but can limit scaling. If you are using Spot Fleets with BEST_FIT then the Spot Fleet IAM Role\n must be specified.

\n
\n
BEST_FIT_PROGRESSIVE
\n
\n

AWS Batch will select additional instance types that are large enough to meet the requirements of the jobs in\n the queue, with a preference for instance types with a lower cost per unit vCPU. If additional instances of the\n previously selected instance types aren't available, AWS Batch will select new instance types.

\n
\n
SPOT_CAPACITY_OPTIMIZED
\n
\n

AWS Batch will select one or more instance types that are large enough to meet the requirements of the jobs in\n the queue, with a preference for instance types that are less likely to be interrupted. This allocation strategy\n is only available for Spot Instance compute resources.

\n
\n
\n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies, AWS Batch might\n need to go above maxvCpus to meet your capacity requirements. In this event, AWS Batch never exceeds\n maxvCpus by more than a single instance.

" } }, "minvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute environment is\n DISABLED).

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute environment is\n DISABLED).

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "maxvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that a compute environment can reach.

\n \n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies,\n Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never\n exceeds maxvCpus by more than a single instance. For example, no more than a single instance from among\n those specified in your compute environment is allocated.

\n
", + "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that a compute environment can reach.

\n \n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies,\n AWS Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, AWS Batch never\n exceeds maxvCpus by more than a single instance. For example, no more than a single instance from among\n those specified in your compute environment is allocated.

\n
", "smithy.api#required": {} } }, "desiredvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The desired number of Amazon EC2 vCPUS in the compute environment. Batch modifies this value between the minimum\n and maximum values, based on job queue demand.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

The desired number of Amazon EC2 vCPUS in the compute environment. AWS Batch modifies this value between the minimum\n and maximum values, based on job queue demand.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "instanceTypes": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The instances types that can be launched. You can specify instance families to launch any instance type within\n those families (for example, c5 or p3), or you can specify specific sizes within a family\n (such as c5.8xlarge). You can also choose optimal to select instance types (from the C4,\n M4, and R4 instance families) that match the demand of your job queues.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
\n \n

When you create a compute environment, the instance types that you select for the compute environment must\n share the same architecture. For example, you can't mix x86 and ARM instances in the same compute\n environment.

\n
\n \n

Currently, optimal uses instance types from the C4, M4, and R4 instance families. In Regions that\n don't have instance types from those instance families, instance types from the C5, M5. and R5 instance families are\n used.

\n
" + "smithy.api#documentation": "

The instances types that can be launched. You can specify instance families to launch any instance type within\n those families (for example, c5 or p3), or you can specify specific sizes within a family\n (such as c5.8xlarge). You can also choose optimal to select instance types (from the C4,\n M4, and R4 instance families) that match the demand of your job queues.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
\n \n

When you create a compute environment, the instance types that you select for the compute environment must\n share the same architecture. For example, you can't mix x86 and ARM instances in the same compute\n environment.

\n
\n \n

Currently, optimal uses instance types from the C4, M4, and R4 instance families. In Regions that\n don't have instance types from those instance families, instance types from the C5, M5. and R5 instance families are\n used.

\n
" } }, "imageId": { @@ -613,73 +613,73 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use ec2Configuration[].imageIdOverride instead." }, - "smithy.api#documentation": "

The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is\n overridden by the imageIdOverride member of the Ec2Configuration structure.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
\n \n

The AMI that you choose for a compute environment must match the architecture of the instance types that\n you intend to use for that compute environment. For example, if your compute environment uses A1 instance types,\n the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the\n Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see Amazon ECS-optimized\n Amazon Linux 2 AMI\n in the Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is\n overridden by the imageIdOverride member of the Ec2Configuration structure.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
\n \n

The AMI that you choose for a compute environment must match the architecture of the instance types that\n you intend to use for that compute environment. For example, if your compute environment uses A1 instance types,\n the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the\n Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see Amazon ECS-optimized\n Amazon Linux 2 AMI\n in the Amazon Elastic Container Service Developer Guide.

\n
" } }, "subnets": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The VPC subnets where the compute resources are launched. These subnets must be within the same VPC. Fargate\n compute resources can contain up to 16 subnets. For more information, see VPCs and Subnets in the Amazon VPC User\n Guide.

", + "smithy.api#documentation": "

The VPC subnets into which the compute resources are launched. These subnets must be within the same VPC.\n Fargate compute resources can contain up to 16 subnets. For more information, see VPCs and Subnets in the Amazon VPC User\n Guide.

", "smithy.api#required": {} } }, "securityGroupIds": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The Amazon EC2 security groups associated with instances launched in the compute environment. One or more security\n groups must be specified, either in securityGroupIds or using a launch template referenced in\n launchTemplate. This parameter is required for jobs that are running on Fargate resources and must\n contain at least one security group. Fargate doesn't support launch templates. If security groups are specified\n using both securityGroupIds and launchTemplate, the values in securityGroupIds\n are used.

" + "smithy.api#documentation": "

The Amazon EC2 security groups associated with instances launched in the compute environment. One or more security\n groups must be specified, either in securityGroupIds or using a launch template referenced in\n launchTemplate. This parameter is required for jobs running on Fargate resources and must contain at\n least one security group. Fargate doesn't support launch templates. If security groups are specified using both\n securityGroupIds and launchTemplate, the values in securityGroupIds is\n used.

" } }, "ec2KeyPair": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon EC2 key pair that's used for instances launched in the compute environment. You can use this key pair to\n log in to your instances with SSH.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

The Amazon EC2 key pair that's used for instances launched in the compute environment. You can use this key pair to\n log in to your instances with SSH.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "instanceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. You can specify the short name\n or full Amazon Resource Name (ARN) of an instance profile. For example,\n \n ecsInstanceRole\n or\n arn:aws:iam:::instance-profile/ecsInstanceRole\n .\n For more information, see Amazon ECS Instance\n Role in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. You can specify the short name\n or full Amazon Resource Name (ARN) of an instance profile. For example,\n \n ecsInstanceRole\n or\n arn:aws:iam:::instance-profile/ecsInstanceRole\n .\n For more information, see Amazon ECS Instance\n Role in the AWS Batch User Guide.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "tags": { "target": "com.amazonaws.batch#TagsMap", "traits": { - "smithy.api#documentation": "

Key-value pair tags to be applied to EC2 resources that are launched in the compute environment. For Batch,\n these take the form of \"String1\": \"String2\", where String1 is the tag key and String2 is the tag value−for\n example, { \"Name\": \"Batch Instance - C4OnDemand\" }. This is helpful for recognizing your Batch instances in the\n Amazon EC2 console. These tags can't be updated or removed after the compute environment is created.Aany changes to these\n tags require that you create a new compute environment and remove the old compute environment. These tags aren't seen\n when using the Batch ListTagsForResource API operation.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

Key-value pair tags to be applied to EC2 resources that are launched in the compute environment. For AWS Batch,\n these take the form of \"String1\": \"String2\", where String1 is the tag key and String2 is the tag value−for\n example, { \"Name\": \"AWS Batch Instance - C4OnDemand\" }. This is helpful for recognizing your AWS Batch instances in the\n Amazon EC2 console. These tags can't be updated or removed after the compute environment has been created; any changes\n require creating a new compute environment and removing the old compute environment. These tags aren't seen when\n using the AWS Batch ListTagsForResource API operation.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "placementGroup": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel\n jobs to your compute environment, you should consider creating a cluster placement group and associate it with your\n compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single\n Availability Zone with high network flow potential. For more information, see Placement Groups in the Amazon EC2 User Guide for\n Linux Instances.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel\n jobs to your compute environment, you should consider creating a cluster placement group and associate it with your\n compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single\n Availability Zone with high network flow potential. For more information, see Placement Groups in the Amazon EC2 User Guide for\n Linux Instances.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "bidPercentage": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that\n instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must\n be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and\n never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand\n price.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that\n instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must\n be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and\n never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand\n price.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "spotIamFleetRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This role is\n required if the allocation strategy set to BEST_FIT or if the allocation strategy isn't specified. For\n more information, see Amazon EC2 Spot Fleet\n Role in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
\n \n

To tag your Spot Instances on creation, the Spot Fleet IAM role specified here must use the newer AmazonEC2SpotFleetTaggingRole managed policy. The previously recommended AmazonEC2SpotFleetRole managed policy doesn't have the required permissions to tag Spot\n Instances. For more information, see Spot Instances not tagged on creation in the\n Batch User Guide.

\n
" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This role is\n required if the allocation strategy set to BEST_FIT or if the allocation strategy isn't specified. For\n more information, see Amazon EC2 Spot Fleet\n Role in the AWS Batch User Guide.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
\n \n

To tag your Spot Instances on creation, the Spot Fleet IAM role specified here must use the newer AmazonEC2SpotFleetTaggingRole managed policy. The previously recommended AmazonEC2SpotFleetRole managed policy doesn't have the required permissions to tag Spot\n Instances. For more information, see Spot Instances not tagged on creation in the\n AWS Batch User Guide.

\n
" } }, "launchTemplate": { "target": "com.amazonaws.batch#LaunchTemplateSpecification", "traits": { - "smithy.api#documentation": "

The launch template to use for your compute resources. Any other compute resource parameters that you specify in\n a CreateComputeEnvironment API operation override the same parameters in the launch template. You\n must specify either the launch template ID or launch template name in the request, but not both. For more\n information, see Launch Template Support in\n the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

The launch template to use for your compute resources. Any other compute resource parameters that you specify in\n a CreateComputeEnvironment API operation override the same parameters in the launch template. You\n must specify either the launch template ID or launch template name in the request, but not both. For more\n information, see Launch Template Support in\n the AWS Batch User Guide.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "ec2Configuration": { "target": "com.amazonaws.batch#Ec2ConfigurationList", "traits": { - "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment.\n If Ec2Configuration isn't specified, the default is ECS_AL1.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment.\n If Ec2Configuration isn't specified, the default is ECS_AL1.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } } }, "traits": { - "smithy.api#documentation": "

An object representing an Batch compute resource. For more information, see Compute Environments in the\n Batch User Guide.

" + "smithy.api#documentation": "

An object representing an AWS Batch compute resource. For more information, see Compute Environments in the\n AWS Batch User Guide.

" } }, "com.amazonaws.batch#ComputeResourceUpdate": { @@ -688,25 +688,25 @@ "minvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The minimum number of Amazon EC2 vCPUs that an environment should maintain.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

The minimum number of Amazon EC2 vCPUs that an environment should maintain.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "maxvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that an environment can reach.

\n \n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies,\n Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never\n exceeds maxvCpus by more than a single instance. That is, no more than a single instance from among\n those specified in your compute environment.

\n
" + "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that an environment can reach.

\n \n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies,\n AWS Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, AWS Batch never\n exceeds maxvCpus by more than a single instance. That is, no more than a single instance from among\n those specified in your compute environment.

\n
" } }, "desiredvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The desired number of Amazon EC2 vCPUS in the compute environment.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" + "smithy.api#documentation": "

The desired number of Amazon EC2 vCPUS in the compute environment.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" } }, "subnets": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16\n subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This\n can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User\n Guide.

" + "smithy.api#documentation": "

The VPC subnets that the compute resources are launched into. Fargate compute resources can contain up to 16\n subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This\n can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User\n Guide.

" } }, "securityGroupIds": { @@ -717,7 +717,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing the attributes of a compute environment that can be updated. For more information, see\n Compute Environments in the\n Batch User Guide.

" + "smithy.api#documentation": "

An object representing the attributes of a compute environment that can be updated. For more information, see\n Compute Environments in the\n AWS Batch User Guide.

" } }, "com.amazonaws.batch#ContainerDetail": { @@ -756,7 +756,7 @@ "executionRoleArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM role in the\n Batch User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the\n execution\n role that AWS Batch can assume. For more information, see AWS Batch execution IAM role in the\n AWS Batch User Guide.

" } }, "volumes": { @@ -768,7 +768,7 @@ "environment": { "target": "com.amazonaws.batch#EnvironmentVariables", "traits": { - "smithy.api#documentation": "

The environment variables to pass to a container.

\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the Batch service.

\n
" + "smithy.api#documentation": "

The environment variables to pass to a container.

\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the AWS Batch service.

\n
" } }, "mountPoints": { @@ -786,13 +786,13 @@ "ulimits": { "target": "com.amazonaws.batch#Ulimits", "traits": { - "smithy.api#documentation": "

A list of ulimit values to set in the container. This parameter maps to Ulimits in the\n Create a container section of the Docker Remote API and the --ulimit option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources.

\n
" + "smithy.api#documentation": "

A list of ulimit values to set in the container. This parameter maps to Ulimits in the\n Create a container section of the Docker Remote API and the --ulimit option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources.

\n
" } }, "privileged": { "target": "com.amazonaws.batch#Boolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given elevated permissions on the host container instance (similar\n to the root user). The default value is false.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or\n specified as false.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given elevated permissions on the host container instance (similar\n to the root user). The default value is false.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided, or specified\n as false.

\n
" } }, "user": { @@ -828,13 +828,13 @@ "logStreamName": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The name of the CloudWatch Logs log stream associated with the container. The log group for Batch jobs is\n /aws/batch/job. Each container attempt receives a log stream name when they reach the\n RUNNING status.

" + "smithy.api#documentation": "

The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is\n /aws/batch/job. Each container attempt receives a log stream name when they reach the\n RUNNING status.

" } }, "instanceType": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The instance type of the underlying host infrastructure of a multi-node parallel job.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources.

\n
" + "smithy.api#documentation": "

The instance type of the underlying host infrastructure of a multi-node parallel job.

\n \n

This parameter isn't applicable to jobs running on Fargate resources.

\n
" } }, "networkInterfaces": { @@ -858,25 +858,25 @@ "logConfiguration": { "target": "com.amazonaws.batch#LogConfiguration", "traits": { - "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container section of the\n Docker Remote API and the --log-driver option to docker run.\n By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a\n different logging driver than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured properly on the\n container instance. Or, alternatively, it must be configured on a different log server for remote logging options.\n For more information on the options for different supported log drivers, see Configure logging drivers in the Docker\n documentation.

\n \n

Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers might be available in future releases of the Amazon ECS\n container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers available on that\n instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that\n instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the\n Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container section of the\n Docker Remote API and the --log-driver option to docker run.\n By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a\n different logging driver than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured properly on the\n container instance. Or, alternatively, it must be configured on a different log server for remote logging options.\n For more information on the options for different supported log drivers, see Configure logging drivers in the Docker\n documentation.

\n \n

AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers might be available in future releases of the Amazon ECS\n container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers available on that\n instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that\n instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the\n Amazon Elastic Container Service Developer Guide.

\n
" } }, "secrets": { "target": "com.amazonaws.batch#SecretList", "traits": { - "smithy.api#documentation": "

The secrets to pass to the container. For more information, see Specifying sensitive data in the\n Batch User Guide.

" + "smithy.api#documentation": "

The secrets to pass to the container. For more information, see Specifying sensitive data in the\n AWS Batch User Guide.

" } }, "networkConfiguration": { "target": "com.amazonaws.batch#NetworkConfiguration", "traits": { - "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" + "smithy.api#documentation": "

The network configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" } }, "fargatePlatformConfiguration": { "target": "com.amazonaws.batch#FargatePlatformConfiguration", "traits": { - "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" + "smithy.api#documentation": "

The platform configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" } } }, @@ -893,7 +893,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter indicates the number of vCPUs reserved for the container.It overrides the vcpus\n parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the\n resourceRequirement structure in the job definition. To override vCPU requirements that are specified\n in the ResourceRequirement structure in the job definition, ResourceRequirement must be\n specified in the SubmitJob request, with type set to VCPU and\n value set to the new value.

\n

This parameter maps to CpuShares in the Create a container section of the\n Docker Remote API and the --cpu-shares option to docker run.\n Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.

\n \n

This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on\n Fargate resources. For Fargate resources, you can only use resourceRequirement. For EC2 resources,\n you can use either this parameter or resourceRequirement but not both.

\n
" + "smithy.api#documentation": "

This parameter indicates the number of vCPUs reserved for the container.It overrides the vcpus\n parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the\n resourceRequirement structure in the job definition.

\n

This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate\n resources. For Fargate resources, you can only use resourceRequirement. For EC2 resources, you can use\n either this parameter or resourceRequirement but not both.

\n

This parameter maps to CpuShares in the Create a container section of the\n Docker Remote API and the --cpu-shares option to docker run.\n Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.

\n \n \n

This parameter isn't applicable to jobs that run on Fargate resources and shouldn't be provided. For jobs\n that run on Fargate resources, you must specify the vCPU requirement for the job using\n resourceRequirements.

\n \n
" } }, "memory": { @@ -902,7 +902,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the\n memory parameter set in the job definition, but doesn't override any memory requirement specified in\n the ResourceRequirement structure in the job definition. To override memory requirements that are\n specified in the ResourceRequirement structure in the job definition, ResourceRequirement\n must be specified in the SubmitJob request, with type set to MEMORY and\n value set to the new value.

\n

This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate\n resources. For these resources, use resourceRequirement instead.

" + "smithy.api#documentation": "

This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the\n memory parameter set in the job definition, but doesn't override any memory requirement specified in\n the ResourceRequirement structure in the job definition.

\n

This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate\n resources. For these resources, use resourceRequirement instead.

" } }, "command": { @@ -914,13 +914,13 @@ "instanceType": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The instance type to use for a multi-node parallel job.

\n \n

This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and\n shouldn't be provided.

\n
" + "smithy.api#documentation": "

The instance type to use for a multi-node parallel job.

\n \n

This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and\n shouldn't be provided.

\n
" } }, "environment": { "target": "com.amazonaws.batch#EnvironmentVariables", "traits": { - "smithy.api#documentation": "

The environment variables to send to the container. You can add new environment variables, which are added to\n the container at launch, or you can override the existing environment variables from the Docker image or the job\n definition.

\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the Batch service.

\n
" + "smithy.api#documentation": "

The environment variables to send to the container. You can add new environment variables, which are added to\n the container at launch, or you can override the existing environment variables from the Docker image or the job\n definition.

\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the AWS Batch service.

\n
" } }, "resourceRequirements": { @@ -949,7 +949,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

The number of vCPUs reserved for the job. Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to\n CpuShares in the Create a container section of the Docker Remote API and the\n --cpu-shares option to docker run. The number of vCPUs must\n be specified but can be specified in several places. You must specify it at least once for each node.

\n

This parameter is supported on EC2 resources but isn't supported for jobs that run on Fargate resources. For\n these resources, use resourceRequirement instead. You can use this parameter or\n resourceRequirements structure but not both.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided. For\n jobs that run on Fargate resources, you must specify the vCPU requirement for the job using\n resourceRequirements.

\n
" + "smithy.api#documentation": "

The number of vCPUs reserved for the job. Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to\n CpuShares in the Create a container section of the Docker Remote API and the\n --cpu-shares option to docker run. The number of vCPUs must\n be specified but can be be specified in several places. You must specify it at least once for each node.

\n

This parameter is supported on EC2 resources but isn't supported for jobs that run on Fargate resources. For\n these resources, use resourceRequirement instead. You can use this parameter or\n resourceRequirements structure but not both.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided. For jobs that\n run on Fargate resources, you must specify the vCPU requirement for the job using\n resourceRequirements.

\n
" } }, "memory": { @@ -958,7 +958,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter indicates the memory hard limit (in MiB) for a container. If your container attempts to exceed\n the specified number, it's terminated. You must specify at least 4 MiB of memory for a job using this parameter. The\n memory hard limit can be specified in several places. It must be specified for each node at least once.

\n

This parameter maps to Memory in the Create a container section of the\n Docker Remote API and the --memory option to docker\n run.

\n

This parameter is supported on EC2 resources but isn't supported on Fargate resources. For Fargate\n resources, you should specify the memory requirement using resourceRequirement. You can also do this for\n EC2 resources.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a\n particular instance type, see Memory\n Management in the Batch User Guide.

\n
" + "smithy.api#documentation": "

This parameter indicates the memory hard limit (in MiB) for a container. If your container attempts to exceed\n the specified number, it is terminated. You must specify at least 4 MiB of memory for a job using this parameter. The\n memory hard limit can be specified in several places. It must be specified for each node at least once.

\n

This parameter maps to Memory in the Create a container section of the\n Docker Remote API and the --memory option to docker\n run.

\n

This parameter is supported on EC2 resources but isn't supported on Fargate resources. For Fargate\n resources, you should specify the memory requirement using resourceRequirement. You can do this for EC2\n resources.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a\n particular instance type, see Memory\n Management in the AWS Batch User Guide.

\n
" } }, "command": { @@ -970,13 +970,13 @@ "jobRoleArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more information, see\n IAM Roles for Tasks\n in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions. For more information, see\n IAM Roles for Tasks\n in the Amazon Elastic Container Service Developer Guide.

" } }, "executionRoleArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the execution role that Batch can assume. For jobs that run on Fargate resources, you must\n provide an execution role. For more information, see Batch execution IAM role in the\n Batch User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must\n provide an execution role. For more information, see AWS Batch execution IAM role in the\n AWS Batch User Guide.

" } }, "volumes": { @@ -988,7 +988,7 @@ "environment": { "target": "com.amazonaws.batch#EnvironmentVariables", "traits": { - "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to Env in the\n Create a container section of the Docker Remote API and the --env option to docker run.

\n \n

We don't recommend using plaintext environment variables for sensitive information, such as credential\n data.

\n
\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the Batch service.

\n
" + "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to Env in the\n Create a container section of the Docker Remote API and the --env option to docker run.

\n \n

We don't recommend using plaintext environment variables for sensitive information, such as credential\n data.

\n
\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the AWS Batch service.

\n
" } }, "mountPoints": { @@ -1006,13 +1006,13 @@ "privileged": { "target": "com.amazonaws.batch#Boolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given elevated permissions on the host container instance (similar\n to the root user). This parameter maps to Privileged in the\n Create a container section of the Docker Remote API and the --privileged option to\n docker run. The default value is false.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or\n specified as false.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given elevated permissions on the host container instance (similar\n to the root user). This parameter maps to Privileged in the\n Create a container section of the Docker Remote API and the --privileged option to\n docker run. The default value is false.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided, or specified\n as false.

\n
" } }, "ulimits": { "target": "com.amazonaws.batch#Ulimits", "traits": { - "smithy.api#documentation": "

A list of ulimits to set in the container. This parameter maps to Ulimits in the\n Create a container section of the Docker Remote API and the --ulimit option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" + "smithy.api#documentation": "

A list of ulimits to set in the container. This parameter maps to Ulimits in the\n Create a container section of the Docker Remote API and the --ulimit option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" } }, "user": { @@ -1024,7 +1024,7 @@ "instanceType": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use\n the same instance type.

\n \n

This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and\n shouldn't be provided.

\n
" + "smithy.api#documentation": "

The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use\n the same instance type.

\n \n

This parameter isn't applicable to single-node container jobs or for jobs that run on Fargate resources and\n shouldn't be provided.

\n
" } }, "resourceRequirements": { @@ -1042,25 +1042,25 @@ "logConfiguration": { "target": "com.amazonaws.batch#LogConfiguration", "traits": { - "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container section of the\n Docker Remote API and the --log-driver option to docker run.\n By default, containers use the same logging driver that the Docker daemon uses. However the container might use a\n different logging driver than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured properly on the\n container instance (or on a different log server for remote logging options). For more information on the options for\n different supported log drivers, see Configure\n logging drivers in the Docker documentation.

\n \n

Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type).

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers available on that\n instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that\n instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the\n Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container section of the\n Docker Remote API and the --log-driver option to docker run.\n By default, containers use the same logging driver that the Docker daemon uses. However the container might use a\n different logging driver than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured properly on the\n container instance (or on a different log server for remote logging options). For more information on the options for\n different supported log drivers, see Configure\n logging drivers in the Docker documentation.

\n \n

AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type).

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers available on that\n instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that\n instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the\n Amazon Elastic Container Service Developer Guide.

\n
" } }, "secrets": { "target": "com.amazonaws.batch#SecretList", "traits": { - "smithy.api#documentation": "

The secrets for the container. For more information, see Specifying sensitive data in the\n Batch User Guide.

" + "smithy.api#documentation": "

The secrets for the container. For more information, see Specifying sensitive data in the\n AWS Batch User Guide.

" } }, "networkConfiguration": { "target": "com.amazonaws.batch#NetworkConfiguration", "traits": { - "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" + "smithy.api#documentation": "

The network configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" } }, "fargatePlatformConfiguration": { "target": "com.amazonaws.batch#FargatePlatformConfiguration", "traits": { - "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" + "smithy.api#documentation": "

The platform configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" } } }, @@ -1105,7 +1105,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an Batch compute environment. You can create MANAGED or UNMANAGED compute\n environments. MANAGED compute environments can use Amazon EC2 or Fargate resources.\n UNMANAGED compute environments can only use EC2 resources.

\n

In a managed compute environment, Batch manages the capacity and instance types of the compute resources\n within the environment. This is based on the compute resource specification that you define or the launch template that you\n specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot\n Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can\n optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a\n specified percentage of the On-Demand price.

\n \n

Multi-node parallel jobs aren't supported on Spot Instances.

\n
\n

In an unmanaged compute environment, you can manage your own EC2 compute resources and have a lot of flexibility\n with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that\n each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance\n AMIs in the Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you\n can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with\n it. Then, launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS\n container instance in the Amazon Elastic Container Service Developer Guide.

\n \n

Batch doesn't upgrade the AMIs in a compute environment after the environment is created. For example, it\n doesn't update the AMIs when a newer version of the Amazon ECS optimized AMI is available. Therefore, you're responsible\n for managing the guest operating system (including its updates and security patches) and any additional application\n software or utilities that you install on the compute resources. To use a new AMI for your Batch jobs, complete\n these steps:

\n
    \n
  1. \n

    Create a new compute environment with the new AMI.

    \n
  2. \n
  3. \n

    Add the compute environment to an existing job queue.

    \n
  4. \n
  5. \n

    Remove the earlier compute environment from your job queue.

    \n
  6. \n
  7. \n

    Delete the earlier compute environment.

    \n
  8. \n
\n
", + "smithy.api#documentation": "

Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED compute\n environments. MANAGED compute environments can use Amazon EC2 or AWS Fargate resources.\n UNMANAGED compute environments can only use EC2 resources.

\n

In a managed compute environment, AWS Batch manages the capacity and instance types of the compute resources\n within the environment. This is based on the compute resource specification that you define or the launch template that you\n specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot\n Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can\n optionally set a maximum price so that Spot Instances only launch\n when\n the Spot Instance price is less than a specified percentage of the On-Demand price.

\n \n \n

Multi-node parallel jobs aren't supported on Spot Instances.

\n
\n

In an unmanaged compute environment, you can manage your own EC2 compute resources and have a lot of flexibility\n with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that\n each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the\n Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, launch\n your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS container instance in the\n Amazon Elastic Container Service Developer Guide.

\n \n

AWS Batch doesn't upgrade the AMIs in a compute environment after the environment is created. For example, it\n doesn't update the AMIs when a newer version of the Amazon ECS optimized AMI is available. Therefore, you're responsible\n for managing the guest operating system (including its updates and security patches) and any additional application\n software or utilities that you install on the compute resources. To use a new AMI for your AWS Batch jobs, complete\n these steps:

\n
    \n
  1. \n

    Create a new compute environment with the new AMI.

    \n
  2. \n
  3. \n

    Add the compute environment to an existing job queue.

    \n
  4. \n
  5. \n

    Remove the earlier compute environment from your job queue.

    \n
  6. \n
  7. \n

    Delete the earlier compute environment.

    \n
  8. \n
\n
", "smithy.api#http": { "method": "POST", "uri": "/v1/createcomputeenvironment", @@ -1126,32 +1126,32 @@ "type": { "target": "com.amazonaws.batch#CEType", "traits": { - "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For more information, see\n Compute Environments in the\n Batch User Guide.

", + "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For more information, see\n Compute Environments in the\n AWS Batch User Guide.

", "smithy.api#required": {} } }, "state": { "target": "com.amazonaws.batch#CEState", "traits": { - "smithy.api#documentation": "

The state of the compute environment. If the state is ENABLED, then the compute environment accepts\n jobs from a queue and can scale out automatically based on queues.

\n

If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" + "smithy.api#documentation": "

The state of the compute environment. If the state is ENABLED, then the compute environment accepts\n jobs from a queue and can scale out automatically based on queues.

\n

If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" } }, "computeResources": { "target": "com.amazonaws.batch#ComputeResource", "traits": { - "smithy.api#documentation": "

Details about the compute resources managed by the compute environment. This parameter is required for managed\n compute environments. For more information, see Compute Environments in the Batch User Guide.

" + "smithy.api#documentation": "

Details about the compute resources managed by the compute environment. This parameter is required for managed\n compute environments. For more information, see Compute Environments in the AWS Batch User Guide.

" } }, "serviceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf. For\n more information, see Batch service IAM\n role in the Batch User Guide.

\n \n

If your account already created the Batch service-linked role, that role is used by default for your compute\n environment unless you specify a different role here. If the Batch service-linked role doesn't exist in your\n account, and no role is specified here, the service attempts to create the Batch service-linked role in your\n account.

\n
\n

If your specified role has a path other than /, then you must specify either the full role ARN\n (recommended) or prefix the role name with the path. For example, if a role with the name bar has a path\n of /foo/ then you would specify /foo/bar as the role name. For more information, see Friendly names\n and paths in the IAM User Guide.

\n \n

Depending on how you created your Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" + "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For\n more information, see AWS Batch service IAM\n role in the AWS Batch User Guide.

\n \n

If your account has already created the AWS Batch service-linked role, that role is used by default for your\n compute environment unless you specify a role here. If the AWS Batch service-linked role does not exist in your\n account, and no role is specified here, the service will try to create the AWS Batch service-linked role in your\n account.

\n
\n

If your specified role has a path other than /, then you must specify either the full role ARN\n (recommended) or prefix the role name with the path. For example, if a role with the name bar has a path\n of /foo/ then you would specify /foo/bar as the role name. For more information, see Friendly names\n and paths in the IAM User Guide.

\n \n

Depending on how you created your AWS Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the compute environment to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

\n

These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't\n propagate to the underlying compute resources.

" + "smithy.api#documentation": "

The tags that you apply to the compute environment to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General\n Reference.

\n

These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't\n propagate to the underlying compute resources.

" } } }, @@ -1193,7 +1193,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an Batch job queue. When you create a job queue, you associate one or more compute environments to the\n queue and assign an order of preference for the compute environments.

\n

You also set a priority to the job queue that determines the order that the Batch scheduler places jobs onto\n its associated compute environments. For example, if a compute environment is associated with more than one job\n queue, the job queue with a higher priority is given preference for scheduling jobs to that compute\n environment.

", + "smithy.api#documentation": "

Creates an AWS Batch job queue. When you create a job queue, you associate one or more compute environments to the\n queue and assign an order of preference for the compute environments.

\n

You also set a priority to the job queue that determines the order that the AWS Batch scheduler places jobs onto\n its associated compute environments. For example, if a compute environment is associated with more than one job\n queue, the job queue with a higher priority is given preference for scheduling jobs to that compute\n environment.

", "smithy.api#http": { "method": "POST", "uri": "/v1/createjobqueue", @@ -1220,21 +1220,21 @@ "priority": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the\n priority parameter) are evaluated first when associated with the same compute environment. Priority is\n determined in descending order. For example, a job queue with a priority value of 10 is given scheduling\n preference over a job queue with a priority value of 1. All of the compute environments must be either\n EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and\n Fargate compute environments can't be mixed.

", + "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the\n priority parameter) are evaluated first when associated with the same compute environment. Priority is\n determined in descending order. For example, a job queue with a priority value of 10 is given scheduling\n preference over a job queue with a priority value of 1. All of the compute environments must be either\n EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and\n Fargate compute environments cannot be mixed.

", "smithy.api#required": {} } }, "computeEnvironmentOrder": { "target": "com.amazonaws.batch#ComputeEnvironmentOrders", "traits": { - "smithy.api#documentation": "

The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler\n uses this parameter to determine which compute environment should run a specific job. Compute environments must be in\n the VALID state before you can associate them with a job queue. You can associate up to three compute\n environments with a job queue. All of the compute environments must be either EC2 (EC2 or\n SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute\n environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
", + "smithy.api#documentation": "

The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler\n uses this parameter to determine which compute environment should run a specific job. Compute environments must be in\n the VALID state before you can associate them with a job queue. You can associate up to three compute\n environments with a job queue. All of the compute environments must be either EC2 (EC2 or\n SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute\n environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
", "smithy.api#required": {} } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide.

" + "smithy.api#documentation": "

The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging your AWS Batch resources in AWS Batch User Guide.

" } } }, @@ -1278,7 +1278,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes an Batch compute environment.

\n

Before you can delete a compute environment, you must set its state to DISABLED with the UpdateComputeEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation. Compute environments that use Fargate resources must terminate all\n active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute\n environment enters an invalid state.

", + "smithy.api#documentation": "

Deletes an AWS Batch compute environment.

\n

Before you can delete a compute environment, you must set its state to DISABLED with the UpdateComputeEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation. Compute environments that use AWS Fargate resources must terminate all\n active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute\n environment enters an invalid state.

", "smithy.api#http": { "method": "POST", "uri": "/v1/deletecomputeenvironment", @@ -1366,7 +1366,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days.

", + "smithy.api#documentation": "

Deregisters an AWS Batch job definition. Job definitions are permanently deleted after 180 days.

", "smithy.api#http": { "method": "POST", "uri": "/v1/deregisterjobdefinition", @@ -1499,7 +1499,7 @@ "jobDefinitions": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

A list of up to 100 job definitions. Each\n entry in the list can either be an ARN of the form\n arn:aws:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision} or a short version\n using the form ${JobDefinitionName}:${Revision}.

" + "smithy.api#documentation": "

A list of up to 100 job definition names or full Amazon Resource Name (ARN) entries.

" } }, "maxResults": { @@ -1638,7 +1638,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes a list of Batch jobs.

", + "smithy.api#documentation": "

Describes a list of AWS Batch jobs.

", "smithy.api#http": { "method": "POST", "uri": "/v1/describejobs", @@ -1685,7 +1685,7 @@ "containerPath": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The path inside the container that's used to expose the host device. By default, the hostPath value\n is used.

" + "smithy.api#documentation": "

The path inside the container used to expose the host device. By default, the hostPath value is\n used.

" } }, "permissions": { @@ -1696,7 +1696,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing a container instance host device.

\n \n

This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.

\n
" + "smithy.api#documentation": "

An object representing a container instance host device.

\n \n

This object isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" } }, "com.amazonaws.batch#DeviceCgroupPermission": { @@ -1742,7 +1742,7 @@ "iam": { "target": "com.amazonaws.batch#EFSAuthorizationConfigIAM", "traits": { - "smithy.api#documentation": "

Whether or not to use the Batch job IAM role defined in a job definition when mounting the Amazon EFS file system.\n If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. If this\n parameter is omitted, the default value of DISABLED is used. For more information, see Using Amazon EFS Access Points in\n the Batch User Guide. EFS IAM authorization requires that TransitEncryption be\n ENABLED and that a JobRoleArn is specified.

" + "smithy.api#documentation": "

Whether or not to use the AWS Batch execution IAM role defined in a job definition when mounting the Amazon EFS file\n system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. If this parameter\n is omitted, the default value of DISABLED is used. For more information, see Using Amazon EFS Access Points in the\n AWS Batch User Guide. EFS IAM authorization requires that TransitEncryption be\n ENABLED and that a JobRoleArn is specified.

" } } }, @@ -1793,19 +1793,19 @@ "rootDirectory": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is\n omitted, the root of the Amazon EFS volume is used instead. Specifying / has the same effect as omitting this\n parameter. The maximum length is 4,096 characters.

\n \n

If an EFS access point is specified in the authorizationConfig, the root directory parameter must\n either be omitted or set to /, which enforces the path set on the Amazon EFS access point.

\n
" + "smithy.api#documentation": "

The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is\n omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting\n this parameter.

\n \n

If an EFS access point is specified in the authorizationConfig, the root directory parameter must\n either be omitted or set to / which will enforce the path set on the Amazon EFS access point.

\n
" } }, "transitEncryption": { "target": "com.amazonaws.batch#EFSTransitEncryption", "traits": { - "smithy.api#documentation": "

Determines whether to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server.\n Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default\n value of DISABLED is used. For more information, see Encrypting data in transit in the\n Amazon Elastic File System User Guide.

" + "smithy.api#documentation": "

Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server.\n Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default\n value of DISABLED is used. For more information, see Encrypting data in transit in the\n Amazon Elastic File System User Guide.

" } }, "transitEncryptionPort": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you don't specify a\n transit encryption port, it uses the port selection strategy that the Amazon EFS mount helper uses. The value must be\n between 0 and 65,535. For more information, see EFS Mount Helper in the Amazon Elastic File System User Guide.

" + "smithy.api#documentation": "

The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you do not specify a\n transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. For more\n information, see EFS Mount Helper in\n the Amazon Elastic File System User Guide.

" } }, "authorizationConfig": { @@ -1816,7 +1816,7 @@ } }, "traits": { - "smithy.api#documentation": "

This is used when you're using an Amazon Elastic File System file system for job storage. For more information, see Amazon EFS Volumes in the\n Batch User Guide.

" + "smithy.api#documentation": "

This parameter is specified when you are using an Amazon Elastic File System file system for task storage. For more information,\n see Amazon EFS Volumes in the\n AWS Batch User Guide.

" } }, "com.amazonaws.batch#Ec2Configuration": { @@ -1825,7 +1825,7 @@ "imageType": { "target": "com.amazonaws.batch#ImageType", "traits": { - "smithy.api#documentation": "

The image type to match with the instance type to select an AMI. If the imageIdOverride parameter\n isn't specified, then a recent Amazon ECS-optimized AMI (ECS_AL1) is\n used. Starting on March 31, 2021, this default will be changing to ECS_AL2 (Amazon Linux 2).

\n
\n
ECS_AL2
\n
\n

\n Amazon Linux\n 2− Default for all Amazon Web Services Graviton-based instance families (for example, C6g,\n M6g, R6g, and T4g) and can be used for all non-GPU instance types.

\n
\n
ECS_AL2_NVIDIA
\n
\n

\n Amazon Linux\n 2 (GPU)−Default for all GPU instance families (for example P4 and G4) and\n can be used for all non Amazon Web Services Graviton-based instance types.

\n
\n
ECS_AL1
\n
\n

\n Amazon\n Linux−Default for all non-GPU, non Amazon Web Services Graviton instance families. Amazon Linux is reaching the\n end-of-life of standard support. For more information, see Amazon\n Linux AMI.

\n
\n
", + "smithy.api#documentation": "

The image type to match with the instance type to select an AMI. If the imageIdOverride parameter\n isn't specified, then a recent Amazon ECS-optimized AMI (ECS_AL1) is\n used. Starting on March 31, 2021, this default will be changing to ECS_AL2 (Amazon Linux 2).

\n
\n
ECS_AL2
\n
\n

\n Amazon Linux\n 2− Default for all AWS Graviton-based instance families (for example, C6g,\n M6g, R6g, and T4g) and can be used for all non-GPU instance types.

\n
\n
ECS_AL2_NVIDIA
\n
\n

\n Amazon Linux\n 2 (GPU)−Default for all GPU instance families (for example P4 and G4) and\n can be used for all non-AWS Graviton-based instance types.

\n
\n
ECS_AL1
\n
\n

\n Amazon\n Linux−Default for all non-GPU, non-AWS Graviton instance families. Amazon Linux is reaching the\n end-of-life of standard support. For more information, see Amazon\n Linux AMI.

\n
\n
", "smithy.api#required": {} } }, @@ -1837,7 +1837,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for instances in the compute environment. If\n Ec2Configuration isn't specified, the default is currently ECS_AL1 (Amazon Linux) for\n non-GPU, non AWSGraviton instances. Starting on March 31, 2021, this default will be changing to ECS_AL2\n (Amazon Linux\n 2).

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" + "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for instances in the compute environment. If\n Ec2Configuration isn't specified, the default is currently ECS_AL1 (Amazon Linux) for\n non-GPU, non-Graviton instances. Starting on March 31, 2021, this default will be changing to ECS_AL2\n (Amazon Linux\n 2).

\n \n

This object isn't applicable to jobs running on Fargate resources.

\n
" } }, "com.amazonaws.batch#Ec2ConfigurationList": { @@ -1858,19 +1858,19 @@ "onStatusReason": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

Contains a glob pattern to match against the StatusReason returned for a job. The pattern can be up\n to 512 characters in length. It can contain letters, numbers, periods (.), colons (:), and white space (including\n spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact\n match.

" + "smithy.api#documentation": "

Contains a glob pattern to match against the StatusReason returned for a job. The pattern can be up\n to 512 characters long, and can contain letters, numbers, periods (.), colons (:), and white space (including spaces\n or tabs).\n It can optionally end with an\n asterisk (*) so that only the start of the string needs to be an exact match.

" } }, "onReason": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

Contains a glob pattern to match against the Reason returned for a job. The pattern can be up to\n 512 characters in length. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces\n and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact\n match.

" + "smithy.api#documentation": "

Contains a glob pattern to match against the Reason returned for a job. The pattern can be up to\n 512 characters long, and can contain letters, numbers, periods (.), colons (:), and white space (including spaces and\n tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact\n match.

" } }, "onExitCode": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

Contains a glob pattern to match against the decimal representation of the ExitCode returned for a\n job. The pattern can be up to 512 characters in length. It can contain only numbers, and can optionally end with an\n asterisk (*) so that only the start of the string needs to be an exact match.

" + "smithy.api#documentation": "

Contains a glob pattern to match against the decimal representation of the ExitCode returned for a\n job. The pattern can be up to 512 characters long, can contain only numbers, and can optionally end with an asterisk\n (*) so that only the start of the string needs to be an exact match.

" } }, "action": { @@ -1897,12 +1897,12 @@ "platformVersion": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Fargate platform version where the jobs are running. A platform version is specified only for jobs\n that are running on Fargate resources. If one isn't specified, the LATEST platform version is used by\n default. This uses a recent, approved version of the Fargate platform for compute resources. For more\n information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The AWS Fargate platform version where the jobs are running. A platform version is specified only for jobs\n running on Fargate resources. If one isn't specified, the LATEST platform version is used by default.\n This uses a recent, approved version of the AWS Fargate platform for compute resources. For more information, see\n AWS Fargate platform\n versions in the Amazon Elastic Container Service Developer Guide.

" } } }, "traits": { - "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that run on EC2 resources must\n not specify this parameter.

" + "smithy.api#documentation": "

The platform configuration for jobs running on Fargate resources. For jobs that run on EC2 resources, you\n shouldn't specify this parameter.

" } }, "com.amazonaws.batch#Host": { @@ -2019,14 +2019,14 @@ "type": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The type of job definition. If the job is run on Fargate resources, then multinode isn't\n supported. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the\n Batch User Guide.

", + "smithy.api#documentation": "

The type of job definition. If the job is run on Fargate resources, then multinode isn't\n supported. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the\n AWS Batch User Guide.

", "smithy.api#required": {} } }, "parameters": { "target": "com.amazonaws.batch#ParametersMap", "traits": { - "smithy.api#documentation": "

Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are\n specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding\n parameter defaults from the job definition. For more information about specifying parameters, see Job Definition Parameters in the\n Batch User Guide.

" + "smithy.api#documentation": "

Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are\n specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding\n parameter defaults from the job definition. For more information about specifying parameters, see Job Definition Parameters in the\n AWS Batch User Guide.

" } }, "retryStrategy": { @@ -2044,7 +2044,7 @@ "timeout": { "target": "com.amazonaws.batch#JobTimeout", "traits": { - "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout\n duration after which Batch terminates your jobs if they haven't finished.

" + "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout\n duration after which AWS Batch terminates your jobs if they haven't finished.

" } }, "nodeProperties": { @@ -2073,7 +2073,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing an Batch job definition.

" + "smithy.api#documentation": "

An object representing an AWS Batch job definition.

" } }, "com.amazonaws.batch#JobDefinitionList": { @@ -2103,7 +2103,7 @@ "jobId": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The job ID of the Batch job associated with this dependency.

" + "smithy.api#documentation": "

The job ID of the AWS Batch job associated with this dependency.

" } }, "type": { @@ -2114,7 +2114,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing an Batch job dependency.

" + "smithy.api#documentation": "

An object representing an AWS Batch job dependency.

" } }, "com.amazonaws.batch#JobDependencyList": { @@ -2156,7 +2156,7 @@ "status": { "target": "com.amazonaws.batch#JobStatus", "traits": { - "smithy.api#documentation": "

The current status for the job.

\n \n

If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status in the\n troubleshooting section of the Batch User Guide.

\n
", + "smithy.api#documentation": "

The current status for the job.

\n \n

If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status in the\n troubleshooting section of the AWS Batch User Guide.

\n
", "smithy.api#required": {} } }, @@ -2231,7 +2231,7 @@ "nodeProperties": { "target": "com.amazonaws.batch#NodeProperties", "traits": { - "smithy.api#documentation": "

An object representing the node properties of a multi-node parallel job.

\n \n

This isn't applicable to jobs that are running on Fargate resources.

\n
" + "smithy.api#documentation": "

An object representing the node properties of a multi-node parallel job.

\n \n

This isn't applicable to jobs running on Fargate resources.

\n
" } }, "arrayProperties": { @@ -2266,7 +2266,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing an Batch job.

" + "smithy.api#documentation": "

An object representing an AWS Batch job.

" } }, "com.amazonaws.batch#JobDetailList": { @@ -2328,12 +2328,12 @@ "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags applied to the job queue. For more information, see Tagging your Batch resources in\n Batch User Guide.

" + "smithy.api#documentation": "

The tags applied to the job queue. For more information, see Tagging your AWS Batch resources in\n AWS Batch User Guide.

" } } }, "traits": { - "smithy.api#documentation": "

An object representing the details of an Batch job queue.

" + "smithy.api#documentation": "

An object representing the details of an AWS Batch job queue.

" } }, "com.amazonaws.batch#JobQueueDetailList": { @@ -2445,13 +2445,7 @@ "nodeProperties": { "target": "com.amazonaws.batch#NodePropertiesSummary", "traits": { - "smithy.api#documentation": "

The node properties for a single node in a job summary list.

\n \n

This isn't applicable to jobs that are running on Fargate resources.

\n
" - } - }, - "jobDefinition": { - "target": "com.amazonaws.batch#String", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the job definition.

" + "smithy.api#documentation": "

The node properties for a single node in a job summary list.

\n \n

This isn't applicable to jobs running on Fargate resources.

\n
" } } }, @@ -2471,7 +2465,7 @@ "attemptDurationSeconds": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The time duration in seconds (measured from the job attempt's startedAt timestamp) after which\n Batch terminates your jobs if they have not finished. The minimum value for the timeout is 60 seconds.

" + "smithy.api#documentation": "

The time duration in seconds (measured from the job attempt's startedAt timestamp) after which\n AWS Batch terminates your jobs if they have not finished. The minimum value for the timeout is 60 seconds.

" } } }, @@ -2499,26 +2493,6 @@ "smithy.api#documentation": "

A key-value pair object.

" } }, - "com.amazonaws.batch#KeyValuesPair": { - "type": "structure", - "members": { - "name": { - "target": "com.amazonaws.batch#String", - "traits": { - "smithy.api#documentation": "

The name of the filter. Filter names are case sensitive.

" - } - }, - "values": { - "target": "com.amazonaws.batch#StringList", - "traits": { - "smithy.api#documentation": "

The filter values.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A filter name and value pair that's used to return a more specific list of results from a ListJobs\n API operation.

" - } - }, "com.amazonaws.batch#LaunchTemplateSpecification": { "type": "structure", "members": { @@ -2537,12 +2511,12 @@ "version": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The version number of the launch template, $Latest, or $Default.

\n

If the value is $Latest, the latest version of the launch template is used. If the value is\n $Default, the default version of the launch template is used.

\n \n

After the compute environment is created, the launch template version that's used isn't changed, even if the\n $Default or $Latest version for the launch template is updated. To use a new launch\n template version, create a new compute environment, add the new compute environment to the existing job queue,\n remove the old compute environment from the job queue, and delete the old compute environment.

\n
\n

Default: $Default.

" + "smithy.api#documentation": "

The version number of the launch template, $Latest, or $Default.

\n

If the value is $Latest, the latest version of the launch template is used. If the value is\n $Default, the default version of the launch template is used.

\n \n

After the compute environment is created, the launch template version used will not be changed, even if the\n $Default or $Latest version for the launch template is updated. To use a new launch\n template version, create a new compute environment, add the new compute environment to the existing job queue,\n remove the old compute environment from the job queue, and delete the old compute environment.

\n
\n

Default: $Default.

" } } }, "traits": { - "smithy.api#documentation": "

An object representing a launch template associated with a compute resource. You must specify either the launch\n template ID or launch template name in the request, but not both.

\n

If security groups are specified using both the securityGroupIds parameter of\n CreateComputeEnvironment and the launch template, the values in the securityGroupIds\n parameter of CreateComputeEnvironment will be used.

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" + "smithy.api#documentation": "

An object representing a launch template associated with a compute resource. You must specify either the launch\n template ID or launch template name in the request, but not both.

\n

If security groups are specified using both the securityGroupIds parameter of\n CreateComputeEnvironment and the launch template, the values in the securityGroupIds\n parameter of CreateComputeEnvironment will be used.

\n \n

This object isn't applicable to jobs running on Fargate resources.

\n
" } }, "com.amazonaws.batch#LinuxParameters": { @@ -2551,7 +2525,7 @@ "devices": { "target": "com.amazonaws.batch#DevicesList", "traits": { - "smithy.api#documentation": "

Any host devices to expose to the container. This parameter maps to Devices in the\n Create a container section of the Docker Remote API and the --device option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" + "smithy.api#documentation": "

Any host devices to expose to the container. This parameter maps to Devices in the\n Create a container section of the Docker Remote API and the --device option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" } }, "initProcessEnabled": { @@ -2563,25 +2537,25 @@ "sharedMemorySize": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The value for the size (in MiB) of the /dev/shm volume. This parameter maps to the\n --shm-size option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" + "smithy.api#documentation": "

The value for the size (in MiB) of the /dev/shm volume. This parameter maps to the\n --shm-size option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" } }, "tmpfs": { "target": "com.amazonaws.batch#TmpfsList", "traits": { - "smithy.api#documentation": "

The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the\n --tmpfs option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" + "smithy.api#documentation": "

The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the\n --tmpfs option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" } }, "maxSwap": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The total amount of swap memory (in MiB) a container can use. This parameter is translated to the\n --memory-swap option to docker run where the value is the\n sum of the container memory plus the maxSwap value. For more information, see \n --memory-swap details in the Docker documentation.

\n

If a maxSwap value of 0 is specified, the container doesn't use swap. Accepted values\n are 0 or any positive integer. If the maxSwap parameter is omitted, the container doesn't\n use the swap configuration for the container instance it is running on. A maxSwap value must be set for\n the swappiness parameter to be used.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" + "smithy.api#documentation": "

The total amount of swap memory (in MiB) a container can use. This parameter is translated to the\n --memory-swap option to docker run where the value is the\n sum of the container memory plus the maxSwap value. For more information, see \n --memory-swap details in the Docker documentation.

\n

If a maxSwap value of 0 is specified, the container doesn't use swap. Accepted values\n are 0 or any positive integer. If the maxSwap parameter is omitted, the container doesn't\n use the swap configuration for the container instance it is running on. A maxSwap value must be set for\n the swappiness parameter to be used.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" } }, "swappiness": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

This allows you to tune a container's memory swappiness behavior. A swappiness value of\n 0 causes swapping not to happen unless absolutely necessary. A swappiness value of\n 100 causes pages to be swapped very aggressively. Accepted values are whole numbers between\n 0 and 100. If the swappiness parameter isn't specified, a default value of\n 60 is used. If a value isn't specified for maxSwap, then this parameter is ignored. If\n maxSwap is set to 0, the container doesn't use swap. This parameter maps to the\n --memory-swappiness option to docker run.

\n

Consider the following when you use a per-container swap configuration.

\n \n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" + "smithy.api#documentation": "

This allows you to tune a container's memory swappiness behavior. A swappiness value of\n 0 causes swapping not to happen unless absolutely necessary. A swappiness value of\n 100 causes pages to be swapped very aggressively. Accepted values are whole numbers between\n 0 and 100. If the swappiness parameter isn't specified, a default value of\n 60 is used. If a value isn't specified for maxSwap then this parameter is ignored. If\n maxSwap is set to 0, the container doesn't use swap. This parameter maps to the\n --memory-swappiness option to docker run.

\n

Consider the following when you use a per-container swap configuration.

\n \n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" } } }, @@ -2606,7 +2580,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of Batch jobs.

\n

You must specify only one of the following items:

\n \n

You can filter the results by job status with the jobStatus parameter. If you don't specify a\n status, only RUNNING jobs are returned.

", + "smithy.api#documentation": "

Returns a list of AWS Batch jobs.

\n

You must specify only one of the following items:

\n \n

You can filter the results by job status with the jobStatus parameter. If you don't specify a\n status, only RUNNING jobs are returned.

", "smithy.api#http": { "method": "POST", "uri": "/v1/listjobs", @@ -2619,12 +2593,6 @@ } } }, - "com.amazonaws.batch#ListJobsFilterList": { - "type": "list", - "member": { - "target": "com.amazonaws.batch#KeyValuesPair" - } - }, "com.amazonaws.batch#ListJobsRequest": { "type": "structure", "members": { @@ -2649,7 +2617,7 @@ "jobStatus": { "target": "com.amazonaws.batch#JobStatus", "traits": { - "smithy.api#documentation": "

The job status used to filter jobs in the specified queue. If the filters parameter is specified,\n the jobStatus parameter is ignored and jobs with any status are returned. If you don't specify a status,\n only RUNNING jobs are returned.

" + "smithy.api#documentation": "

The job status used to filter jobs in the specified queue. If you don't specify a status, only\n RUNNING jobs are returned.

" } }, "maxResults": { @@ -2663,12 +2631,6 @@ "traits": { "smithy.api#documentation": "

The nextToken value returned from a previous paginated ListJobs request where\n maxResults was used and the results exceeded the value of that parameter. Pagination continues from the\n end of the previous results that returned the nextToken value. This value is null when\n there are no more results to return.

\n \n

This token should be treated as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } - }, - "filters": { - "target": "com.amazonaws.batch#ListJobsFilterList", - "traits": { - "smithy.api#documentation": "

The filter to apply to the query. Only one filter can be used at a time. When the filter is used,\n jobStatus is ignored. The filter doesn't apply to child jobs in an array or multi-node parallel (MNP)\n jobs. The results are sorted by the createdAt field, with the most recent jobs being first.

\n
\n
JOB_NAME
\n
\n

The value of the filter is a case-insensitive match for the job name. If the value ends with an asterisk (*),\n the filter will match any job name that begins with the string before the '*'. This corresponds to the\n jobName value. For example, test1 matches both Test1 and\n test1, and test1* matches both test1 and Test10. When the\n JOB_NAME filter is used, the results are grouped by the job name and version.

\n
\n
JOB_DEFINITION
\n
\n

The value for the filter is the name or Amazon Resource Name (ARN) of the job definition. This corresponds to the\n jobDefinition value. The value is case sensitive. When the value for the filter is the job\n definition name, the results include all the jobs that used any revision of that job definition name. If the value\n ends with an asterisk (*), the filter will match any job definition name that begins with the string before the\n '*'. For example, jd1 matches only jd1, and jd1* matches both\n jd1 and jd1A. The version of the job definition that's used doesn't affect the sort\n order. When the JOB_DEFINITION filter is used and the ARN is used (which is in the form\n arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}), the\n results include jobs that used the specified revision of the job definition. Asterisk (*) is not supported when\n the ARN is used.

\n
\n
BEFORE_CREATED_AT
\n
\n

The value for the filter is the time that's before the job was created. This corresponds to the\n createdAt value. The value is a string representation of the number of seconds since 00:00:00 UTC\n (midnight) on January 1, 1970.

\n
\n
AFTER_CREATED_AT
\n
\n

The value for the filter is the time that's after the job was created. This corresponds to the\n createdAt value. The value is a string representation of the number of seconds since 00:00:00 UTC\n (midnight) on January 1, 1970.

\n
\n
" - } } }, "traits": { @@ -2710,7 +2672,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the tags for an Batch resource. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

Lists the tags for an AWS Batch resource. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#http": { "method": "GET", "uri": "/v1/tags/{resourceArn}", @@ -2724,7 +2686,7 @@ "resourceArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the resource that tags are listed for. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the resource that tags are listed for. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2748,7 +2710,7 @@ "logDriver": { "target": "com.amazonaws.batch#LogDriver", "traits": { - "smithy.api#documentation": "

The log driver to use for the container. The valid values listed for this parameter are log drivers that the\n Amazon ECS container agent can communicate with by default.

\n

The supported log drivers are awslogs, fluentd, gelf,\n json-file, journald, logentries, syslog, and\n splunk.

\n \n

Jobs that are running on Fargate resources are restricted to the awslogs and splunk\n log drivers.

\n
\n
\n
awslogs
\n
\n

Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs Log Driver in the\n Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation.

\n
\n
fluentd
\n
\n

Specifies the Fluentd logging driver. For more information, including usage and options, see Fluentd logging driver in the Docker\n documentation.

\n
\n
gelf
\n
\n

Specifies the Graylog Extended Format (GELF) logging driver. For more information, including usage and\n options, see Graylog Extended Format logging\n driver in the Docker documentation.

\n
\n
journald
\n
\n

Specifies the journald logging driver. For more information, including usage and options, see Journald logging driver in the Docker\n documentation.

\n
\n
json-file
\n
\n

Specifies the JSON file logging driver. For more information, including usage and options, see JSON File logging driver in the Docker\n documentation.

\n
\n
splunk
\n
\n

Specifies the Splunk logging driver. For more information, including usage and options, see Splunk logging driver in the Docker\n documentation.

\n
\n
syslog
\n
\n

Specifies the syslog logging driver. For more information, including usage and options, see Syslog logging driver in the Docker\n documentation.

\n
\n
\n \n

If you have a custom driver that's not listed earlier that you want to work with the Amazon ECS container agent, you\n can fork the Amazon ECS container agent project that's available on\n GitHub and customize it to work with that driver. We encourage you to submit pull requests for changes that\n you want to have included. However, Amazon Web Services doesn't currently support running modified copies of this\n software.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

", + "smithy.api#documentation": "

The log driver to use for the container. The valid values listed for this parameter are log drivers that the\n Amazon ECS container agent can communicate with by default.

\n

The supported log drivers are awslogs, fluentd, gelf,\n json-file, journald, logentries, syslog, and\n splunk.

\n \n

Jobs running on Fargate resources are restricted to the awslogs and splunk log\n drivers.

\n
\n
\n
awslogs
\n
\n

Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs Log Driver in the\n AWS Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation.

\n
\n
fluentd
\n
\n

Specifies the Fluentd logging driver. For more information, including usage and options, see Fluentd logging driver in the Docker\n documentation.

\n
\n
gelf
\n
\n

Specifies the Graylog Extended Format (GELF) logging driver. For more information, including usage and\n options, see Graylog Extended Format logging\n driver in the Docker documentation.

\n
\n
journald
\n
\n

Specifies the journald logging driver. For more information, including usage and options, see Journald logging driver in the Docker\n documentation.

\n
\n
json-file
\n
\n

Specifies the JSON file logging driver. For more information, including usage and options, see JSON File logging driver in the Docker\n documentation.

\n
\n
splunk
\n
\n

Specifies the Splunk logging driver. For more information, including usage and options, see Splunk logging driver in the Docker\n documentation.

\n
\n
syslog
\n
\n

Specifies the syslog logging driver. For more information, including usage and options, see Syslog logging driver in the Docker\n documentation.

\n
\n
\n \n

If you have a custom driver that's not listed earlier that you want to work with the Amazon ECS container agent, you\n can fork the Amazon ECS container agent project that's available on\n GitHub and customize it to work with that driver. We encourage you to submit pull requests for changes that\n you want to have included. However, Amazon Web Services doesn't currently support running modified copies of this\n software.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

", "smithy.api#required": {} } }, @@ -2761,7 +2723,7 @@ "secretOptions": { "target": "com.amazonaws.batch#SecretList", "traits": { - "smithy.api#documentation": "

The secrets to pass to the log configuration. For more information, see Specifying Sensitive Data in the\n Batch User Guide.

" + "smithy.api#documentation": "

The secrets to pass to the log configuration. For more information, see Specifying Sensitive Data in the\n AWS Batch User Guide.

" } } }, @@ -2854,12 +2816,12 @@ "assignPublicIp": { "target": "com.amazonaws.batch#AssignPublicIp", "traits": { - "smithy.api#documentation": "

Indicates whether the job should have a public IP address. For a job that is running on Fargate resources in a\n private subnet to send outbound traffic to the internet (for example, to pull container images), the private subnet\n requires a NAT gateway be attached to route requests to the internet. For more information, see Amazon ECS task networking. The\n default value is \"DISABLED\".

" + "smithy.api#documentation": "

Indicates whether the job should have a public IP address. For a job running on Fargate resources in a private\n subnet to send outbound traffic to the internet (for example, in order to pull container images), the private subnet\n requires a NAT gateway be attached to route requests to the internet. For more information, see Amazon ECS task networking. The\n default value is \"DISABLED\".

" } } }, "traits": { - "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" + "smithy.api#documentation": "

The network configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" } }, "com.amazonaws.batch#NetworkInterface": { @@ -2931,7 +2893,7 @@ } }, "traits": { - "smithy.api#documentation": "

Object representing any node overrides to a job definition that's used in a SubmitJob API\n operation.

\n \n

This isn't applicable to jobs that are running on Fargate resources and shouldn't be provided; use\n containerOverrides instead.

\n
" + "smithy.api#documentation": "

Object representing any node overrides to a job definition that's used in a SubmitJob API\n operation.

\n \n

This isn't applicable to jobs running on Fargate resources and shouldn't be provided; use\n containerOverrides instead.

\n
" } }, "com.amazonaws.batch#NodeProperties": { @@ -3090,7 +3052,7 @@ } ], "traits": { - "smithy.api#documentation": "

Registers an Batch job definition.

", + "smithy.api#documentation": "

Registers an AWS Batch job definition.

", "smithy.api#http": { "method": "POST", "uri": "/v1/registerjobdefinition", @@ -3111,7 +3073,7 @@ "type": { "target": "com.amazonaws.batch#JobDefinitionType", "traits": { - "smithy.api#documentation": "

The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the\n Batch User Guide.

\n \n

If the job is run on Fargate resources, then multinode isn't supported.

\n
", + "smithy.api#documentation": "

The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the\n AWS Batch User Guide.

\n \n

If the job is run on Fargate resources, then multinode isn't supported.

\n
", "smithy.api#required": {} } }, @@ -3130,7 +3092,7 @@ "nodeProperties": { "target": "com.amazonaws.batch#NodeProperties", "traits": { - "smithy.api#documentation": "

An object with various properties specific to multi-node parallel jobs. If you specify node properties for a\n job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel Jobs in the\n Batch User Guide. If the job definition's type parameter is\n container, then you must specify either containerProperties or\n nodeProperties.

\n \n

If the job runs on Fargate resources, then you must not specify nodeProperties; use\n containerProperties instead.

\n
" + "smithy.api#documentation": "

An object with various properties specific to multi-node parallel jobs. If you specify node properties for a\n job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel Jobs in the\n AWS Batch User Guide. If the job definition's type parameter is\n container, then you must specify either containerProperties or\n nodeProperties.

\n \n

If the job runs on Fargate resources, then you must not specify nodeProperties; use\n containerProperties instead.

\n
" } }, "retryStrategy": { @@ -3148,13 +3110,13 @@ "timeout": { "target": "com.amazonaws.batch#JobTimeout", "traits": { - "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates\n your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for\n the timeout is 60 seconds. Any timeout configuration that's specified during a SubmitJob operation\n overrides the timeout configuration defined here. For more information, see Job Timeouts in the Batch User Guide.

" + "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates\n your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for\n the timeout is 60 seconds. Any timeout configuration that's specified during a SubmitJob operation\n overrides the timeout configuration defined here. For more information, see Job Timeouts in the AWS Batch User Guide.

" } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the job definition to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Batch User Guide.

" + "smithy.api#documentation": "

The tags that you apply to the job definition to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS Batch User Guide.

" } }, "platformCapabilities": { @@ -3200,7 +3162,7 @@ "value": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The quantity of the specified resource to reserve for the container. The values vary based on the\n type specified.

\n
\n
type=\"GPU\"
\n
\n

The number of physical GPUs to reserve for the container. The number of GPUs reserved for all containers in a\n job shouldn't exceed the number of available GPUs on the compute resource that the job is launched on.

\n \n

GPUs are not available for jobs that are running on Fargate resources.

\n
\n
\n
type=\"MEMORY\"
\n
\n

The memory hard limit (in MiB) present to the container. This parameter is supported for jobs that are\n running on EC2 resources. If your container attempts to exceed the memory specified, the container is terminated.\n This parameter maps to Memory in the Create a container section of the\n Docker Remote API and the --memory option to docker run.\n You must specify at least 4 MiB of memory for a job. This is required but can be specified in several places for\n multi-node parallel (MNP) jobs. It must be specified for each node at least once. This parameter maps to\n Memory in the Create a container section of the Docker Remote API and the\n --memory option to docker run.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for\n a particular instance type, see Memory\n Management in the Batch User Guide.

\n
\n

For jobs that are running on Fargate resources, then value is the hard limit (in MiB), and\n must match one of the supported values and the VCPU values must be one of the values supported for\n that memory value.

\n
\n
value = 512
\n
\n

\n VCPU = 0.25

\n
\n
value = 1024
\n
\n

\n VCPU = 0.25 or 0.5

\n
\n
value = 2048
\n
\n

\n VCPU = 0.25, 0.5, or 1

\n
\n
value = 3072
\n
\n

\n VCPU = 0.5, or 1

\n
\n
value = 4096
\n
\n

\n VCPU = 0.5, 1, or 2

\n
\n
value = 5120, 6144, or 7168
\n
\n

\n VCPU = 1 or 2

\n
\n
value = 8192
\n
\n

\n VCPU = 1, 2, or 4

\n
\n
value = 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384
\n
\n

\n VCPU = 2 or 4

\n
\n
value = 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720
\n
\n

\n VCPU = 4

\n
\n
\n
\n
type=\"VCPU\"
\n
\n

The number of vCPUs reserved for the container. This parameter maps to CpuShares in the\n Create a container section of the Docker Remote API and the --cpu-shares option to\n docker run. Each vCPU is equivalent to 1,024 CPU shares. For EC2\n resources, you must specify at least one vCPU. This is required but can be specified in several places; it must be\n specified for each node at least once.

\n

For jobs that are running on Fargate resources, then value must match one of the supported\n values and the MEMORY values must be one of the values supported for that VCPU value. The supported\n values are 0.25, 0.5, 1, 2, and 4

\n
\n
value = 0.25
\n
\n

\n MEMORY = 512, 1024, or 2048

\n
\n
value = 0.5
\n
\n

\n MEMORY = 1024, 2048, 3072, or 4096

\n
\n
value = 1
\n
\n

\n MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192

\n
\n
value = 2
\n
\n

\n MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384

\n
\n
value = 4
\n
\n

\n MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456,\n 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720

\n
\n
\n
\n
", + "smithy.api#documentation": "

The quantity of the specified resource to reserve for the container. The values vary based on the\n type specified.

\n
\n
type=\"GPU\"
\n
\n

The number of physical GPUs to reserve for the container. The number of GPUs reserved for all containers in a\n job shouldn't exceed the number of available GPUs on the compute resource that the job is launched on.

\n \n

GPUs are not available for jobs running on Fargate resources.

\n
\n
\n
type=\"MEMORY\"
\n
\n

The memory hard limit (in MiB) present to the container. This parameter is supported for jobs running on EC2\n resources. If your container attempts to exceed the memory specified, the container is terminated. This parameter\n maps to Memory in the Create a container section of the Docker Remote API and the\n --memory option to docker run. You must specify at least\n 4 MiB of memory for a job. This is required but can be specified in several places for multi-node parallel (MNP)\n jobs. It must be specified for each node at least once. This parameter maps to Memory in the\n Create a container section of the Docker Remote API and the --memory option to docker run.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for\n a particular instance type, see Memory\n Management in the AWS Batch User Guide.

\n
\n

For jobs running on Fargate resources, then value is the hard limit (in MiB), and must match\n one of the supported values and the VCPU values must be one of the values supported for that memory\n value.

\n
\n
value = 512
\n
\n

\n VCPU = 0.25

\n
\n
value = 1024
\n
\n

\n VCPU = 0.25 or 0.5

\n
\n
value = 2048
\n
\n

\n VCPU = 0.25, 0.5, or 1

\n
\n
value = 3072
\n
\n

\n VCPU = 0.5, or 1

\n
\n
value = 4096
\n
\n

\n VCPU = 0.5, 1, or 2

\n
\n
value = 5120, 6144, or 7168
\n
\n

\n VCPU = 1 or 2

\n
\n
value = 8192
\n
\n

\n VCPU = 1, 2, or 4

\n
\n
value = 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384
\n
\n

\n VCPU = 2 or 4

\n
\n
value = 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720
\n
\n

\n VCPU = 4

\n
\n
\n
\n
type=\"VCPU\"
\n
\n

The number of vCPUs reserved for the container. This parameter maps to CpuShares in the\n Create a container section of the Docker Remote API and the --cpu-shares option to\n docker run. Each vCPU is equivalent to 1,024 CPU shares. For EC2\n resources, you must specify at least one vCPU. This is required but can be specified in several places; it must be\n specified for each node at least once.

\n

For jobs running on Fargate resources, then value must match one of the supported values and\n the MEMORY values must be one of the values supported for that VCPU value. The supported values are\n 0.25, 0.5, 1, 2, and 4

\n
\n
value = 0.25
\n
\n

\n MEMORY = 512, 1024, or 2048

\n
\n
value = 0.5
\n
\n

\n MEMORY = 1024, 2048, 3072, or 4096

\n
\n
value = 1
\n
\n

\n MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192

\n
\n
value = 2
\n
\n

\n MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384

\n
\n
value = 4
\n
\n

\n MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456,\n 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720

\n
\n
\n
\n
", "smithy.api#required": {} } }, @@ -3273,7 +3235,7 @@ } }, "traits": { - "smithy.api#documentation": "

The retry strategy associated with a job. For more information, see Automated job retries in the Batch User Guide.

" + "smithy.api#documentation": "

The retry strategy associated with a job. For more information, see Automated job retries in the AWS Batch User Guide.

" } }, "com.amazonaws.batch#Secret": { @@ -3289,13 +3251,13 @@ "valueFrom": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the\n full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.

\n \n

If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Region as the job you're launching, then you can use\n either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must\n be specified.

\n
", + "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN of the AWS Secrets Manager secret or the\n full ARN of the parameter in the AWS Systems Manager Parameter Store.

\n \n

If the AWS Systems Manager Parameter Store parameter exists in the same Region as the job you're launching, then you can use\n either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must\n be specified.

\n
", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

An object representing the secret to expose to your container. Secrets can be exposed to a container in the\n following ways:

\n \n

For more information, see Specifying\n sensitive data in the Batch User Guide.

" + "smithy.api#documentation": "

An object representing the secret to expose to your container. Secrets can be exposed to a container in the\n following ways:

\n \n

For more information, see Specifying\n sensitive data in the AWS Batch User Guide.

" } }, "com.amazonaws.batch#SecretList": { @@ -3343,7 +3305,7 @@ } ], "traits": { - "smithy.api#documentation": "

Submits an Batch job from a job definition. Parameters that are specified during SubmitJob\n override parameters defined in the job definition. vCPU and memory requirements that are specified in the\n ResourceRequirements objects in the job definition are the exception. They can't be overridden this way\n using the memory and vcpus parameters. Rather, you must specify updates to job definition\n parameters in a ResourceRequirements object that's included in the containerOverrides\n parameter.

\n \n

Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14\n days, Fargate resources might become unavailable and job might be terminated.

\n
", + "smithy.api#documentation": "

Submits an AWS Batch job from a job definition. Parameters that are specified during SubmitJob\n override parameters defined in the job definition. vCPU and memory requirements that are specified in the\n ResourceRequirements objects in the job definition are the exception. They can't be overridden this way\n using the memory and vcpus parameters. Rather, you must specify updates to job definition\n parameters in a ResourceRequirements object that's included in the containerOverrides\n parameter.

\n \n

Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14\n days, Fargate resources might become unavailable and job might be terminated.

\n
", "smithy.api#http": { "method": "POST", "uri": "/v1/submitjob", @@ -3371,7 +3333,7 @@ "arrayProperties": { "target": "com.amazonaws.batch#ArrayProperties", "traits": { - "smithy.api#documentation": "

The array properties for the submitted job, such as the size of the array. The array size can be between 2 and\n 10,000. If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the\n Batch User Guide.

" + "smithy.api#documentation": "

The array properties for the submitted job, such as the size of the array. The array size can be between 2 and\n 10,000. If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the\n AWS Batch User Guide.

" } }, "dependsOn": { @@ -3402,7 +3364,7 @@ "nodeOverrides": { "target": "com.amazonaws.batch#NodeOverrides", "traits": { - "smithy.api#documentation": "

A list of node overrides in JSON format that specify the node range to target and the container overrides for\n that node range.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources; use\n containerOverrides instead.

\n
" + "smithy.api#documentation": "

A list of node overrides in JSON format that specify the node range to target and the container overrides for\n that node range.

\n \n

This parameter isn't applicable to jobs running on Fargate resources; use containerOverrides\n instead.

\n
" } }, "retryStrategy": { @@ -3420,13 +3382,13 @@ "timeout": { "target": "com.amazonaws.batch#JobTimeout", "traits": { - "smithy.api#documentation": "

The timeout configuration for this SubmitJob operation. You can specify a timeout duration\n after which Batch terminates your jobs if they haven't finished. If a job is terminated due to a timeout, it isn't\n retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration\n specified in the job definition. For array jobs, child jobs have the same timeout configuration as the parent job.\n For more information, see Job\n Timeouts in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The timeout configuration for this SubmitJob operation. You can specify a timeout duration\n after which AWS Batch terminates your jobs if they haven't finished. If a job is terminated due to a timeout, it isn't\n retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration\n specified in the job definition. For array jobs, child jobs have the same timeout configuration as the parent job.\n For more information, see Job\n Timeouts in the Amazon Elastic Container Service Developer Guide.

" } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the job request to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

" + "smithy.api#documentation": "

The tags that you apply to the job request to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging AWS Resources in AWS General\n Reference.

" } } }, @@ -3497,7 +3459,7 @@ } ], "traits": { - "smithy.api#documentation": "

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a\n resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that\n are associated with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a\n resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags\n associated with that resource are deleted as well. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#http": { "method": "POST", "uri": "/v1/tags/{resourceArn}", @@ -3511,7 +3473,7 @@ "resourceArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource that tags are added to. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource that tags are added to. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3519,7 +3481,7 @@ "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the resource to help you categorize and organize your resources. Each tag consists of\n a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

", + "smithy.api#documentation": "

The tags that you apply to the resource to help you categorize and organize your resources. Each tag consists of\n a key and an optional value. For more information, see Tagging AWS Resources in AWS General\n Reference.

", "smithy.api#required": {} } } @@ -3593,14 +3555,14 @@ "jobId": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Batch job ID of the job to terminate.

", + "smithy.api#documentation": "

The AWS Batch job ID of the job to terminate.

", "smithy.api#required": {} } }, "reason": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the Batch activity\n logs.

", + "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity\n logs.

", "smithy.api#required": {} } } @@ -3638,7 +3600,7 @@ } }, "traits": { - "smithy.api#documentation": "

The container path, mount options, and size of the tmpfs mount.

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" + "smithy.api#documentation": "

The container path, mount options, and size of the tmpfs mount.

\n \n

This object isn't applicable to jobs running on Fargate resources.

\n
" } }, "com.amazonaws.batch#TmpfsList": { @@ -3673,7 +3635,7 @@ } }, "traits": { - "smithy.api#documentation": "

The ulimit settings to pass to the container.

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" + "smithy.api#documentation": "

The ulimit settings to pass to the container.

\n \n

This object isn't applicable to jobs running on Fargate resources.

\n
" } }, "com.amazonaws.batch#Ulimits": { @@ -3699,7 +3661,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes specified tags from an Batch resource.

", + "smithy.api#documentation": "

Deletes specified tags from an AWS Batch resource.

", "smithy.api#http": { "method": "DELETE", "uri": "/v1/tags/{resourceArn}", @@ -3713,7 +3675,7 @@ "resourceArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource from which to delete tags. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource from which to delete tags. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3749,7 +3711,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates an Batch compute environment.

", + "smithy.api#documentation": "

Updates an AWS Batch compute environment.

", "smithy.api#http": { "method": "POST", "uri": "/v1/updatecomputeenvironment", @@ -3770,19 +3732,19 @@ "state": { "target": "com.amazonaws.batch#CEState", "traits": { - "smithy.api#documentation": "

The state of the compute environment. Compute environments in the ENABLED state can accept jobs\n from a queue and scale in or out automatically based on the workload demand of its associated queues.

\n

If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" + "smithy.api#documentation": "

The state of the compute environment. Compute environments in the ENABLED state can accept jobs\n from a queue and scale in or out automatically based on the workload demand of its associated queues.

\n

If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" } }, "computeResources": { "target": "com.amazonaws.batch#ComputeResourceUpdate", "traits": { - "smithy.api#documentation": "

Details of the compute resources managed by the compute environment. Required for a managed compute environment.\n For more information, see Compute\n Environments in the Batch User Guide.

" + "smithy.api#documentation": "

Details of the compute resources managed by the compute environment. Required for a managed compute environment.\n For more information, see Compute\n Environments in the AWS Batch User Guide.

" } }, "serviceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf.\n For more information, see Batch service IAM\n role in the Batch User Guide.

\n \n

If the compute environment has a service-linked role, it can't be changed to use a regular IAM role.\n Likewise, if the compute environment has a regular IAM role, it can't be changed to use a service-linked\n role.

\n
\n

If your specified role has a path other than /, then you must either specify the full role ARN\n (this is recommended) or prefix the role name with the path.

\n \n

Depending on how you created your Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" + "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For\n more information, see AWS Batch service IAM\n role in the AWS Batch User Guide.

\n \n

If the compute environment has a service-linked role, it cannot be changed to use a regular IAM role. If the\n compute environment has a regular IAM role, it cannot be changed to use a service-linked role.

\n
\n \n

If your specified role has a path other than /, then you must either specify the full role ARN\n (this is recommended) or prefix the role name with the path.

\n \n

Depending on how you created your AWS Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" } } }, @@ -3857,7 +3819,7 @@ "computeEnvironmentOrder": { "target": "com.amazonaws.batch#ComputeEnvironmentOrders", "traits": { - "smithy.api#documentation": "

Details the set of compute environments mapped to a job queue and their order relative to each other. This is\n one of the parameters used by the job scheduler to determine which compute environment should run a given job.\n Compute environments must be in the VALID state before you can associate them with a job queue. All of\n the compute environments must be either EC2 (EC2 or SPOT) or Fargate\n (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
" + "smithy.api#documentation": "

Details the set of compute environments mapped to a job queue and their order relative to each other. This is\n one of the parameters used by the job scheduler to determine which compute environment should run a given job.\n Compute environments must be in the VALID state before you can associate them with a job queue. All of\n the compute environments must be either EC2 (EC2 or SPOT) or Fargate\n (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
" } } }, @@ -3888,7 +3850,7 @@ "host": { "target": "com.amazonaws.batch#Host", "traits": { - "smithy.api#documentation": "

The contents of the host parameter determine whether your data volume persists on the host\n container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path\n for your data volume. However, the data isn't guaranteed to persist after the containers associated with it stop\n running.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" + "smithy.api#documentation": "

The contents of the host parameter determine whether your data volume persists on the host\n container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path\n for your data volume. However, the data isn't guaranteed to persist after the containers associated with it stop\n running.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" } }, "name": { @@ -3900,7 +3862,7 @@ "efsVolumeConfiguration": { "target": "com.amazonaws.batch#EFSVolumeConfiguration", "traits": { - "smithy.api#documentation": "

This parameter is specified when you are using an Amazon Elastic File System file system for job storage. Jobs that are running\n on Fargate resources must specify a platformVersion of at least 1.4.0.

" + "smithy.api#documentation": "

This parameter is specified when you are using an Amazon Elastic File System file system for job storage. Jobs running on\n Fargate resources must specify a platformVersion of at least 1.4.0.

" } } }, diff --git a/codegen/sdk-codegen/aws-models/chime.2018-05-01.json b/codegen/sdk-codegen/aws-models/chime.2018-05-01.json index d4e3e5869e0..52fa923ee04 100644 --- a/codegen/sdk-codegen/aws-models/chime.2018-05-01.json +++ b/codegen/sdk-codegen/aws-models/chime.2018-05-01.json @@ -93,12 +93,6 @@ "smithy.api#documentation": "

Supported licenses for the Amazon Chime account.

" } }, - "AccountStatus": { - "target": "com.amazonaws.chime#AccountStatus", - "traits": { - "smithy.api#documentation": "

The status of the account.

" - } - }, "SigninDelegateGroups": { "target": "com.amazonaws.chime#SigninDelegateGroupList", "traits": { @@ -146,21 +140,6 @@ "smithy.api#documentation": "

Settings related to the Amazon Chime account. This includes settings that start or stop\n remote control of shared screens, or start or stop the dial-out option in the Amazon Chime web application. For more information about these settings, see \n Use the Policies Page in the Amazon Chime Administration Guide.

" } }, - "com.amazonaws.chime#AccountStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Suspended", - "name": "Suspended" - }, - { - "value": "Active", - "name": "Active" - } - ] - } - }, "com.amazonaws.chime#AccountType": { "type": "string", "traits": { @@ -7118,86 +7097,6 @@ "smithy.api#documentation": "

The emergency calling configuration details associated with an Amazon Chime Voice Connector.

" } }, - "com.amazonaws.chime#EngineTranscribeMedicalSettings": { - "type": "structure", - "members": { - "LanguageCode": { - "target": "com.amazonaws.chime#TranscribeMedicalLanguageCode", - "traits": { - "smithy.api#documentation": "

The language code specified for the Amazon Transcribe Medical engine.

", - "smithy.api#required": {} - } - }, - "Specialty": { - "target": "com.amazonaws.chime#TranscribeMedicalSpecialty", - "traits": { - "smithy.api#documentation": "

The specialty specified for the Amazon Transcribe Medical engine.

", - "smithy.api#required": {} - } - }, - "Type": { - "target": "com.amazonaws.chime#TranscribeMedicalType", - "traits": { - "smithy.api#documentation": "

The type of transcription.

", - "smithy.api#required": {} - } - }, - "VocabularyName": { - "target": "com.amazonaws.chime#String", - "traits": { - "smithy.api#documentation": "

The name of the vocabulary passed to Amazon Transcribe Medical.

" - } - }, - "Region": { - "target": "com.amazonaws.chime#TranscribeMedicalRegion", - "traits": { - "smithy.api#documentation": "

The AWS Region passed to Amazon Transcribe Medical. If you don't specify a Region, Amazon Chime uses the Region closest to the meeting's Region.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Settings specific to the Amazon Transcribe Medical engine.

" - } - }, - "com.amazonaws.chime#EngineTranscribeSettings": { - "type": "structure", - "members": { - "LanguageCode": { - "target": "com.amazonaws.chime#TranscribeLanguageCode", - "traits": { - "smithy.api#documentation": "

The language code specified for the Amazon Transcribe engine.

", - "smithy.api#required": {} - } - }, - "VocabularyFilterMethod": { - "target": "com.amazonaws.chime#TranscribeVocabularyFilterMethod", - "traits": { - "smithy.api#documentation": "

The filtering method passed to Amazon Transcribe.

" - } - }, - "VocabularyFilterName": { - "target": "com.amazonaws.chime#String", - "traits": { - "smithy.api#documentation": "

The name of the vocabulary filter passed to Amazon Transcribe.

" - } - }, - "VocabularyName": { - "target": "com.amazonaws.chime#String", - "traits": { - "smithy.api#documentation": "

The name of the vocabulary passed to Amazon Transcribe.

" - } - }, - "Region": { - "target": "com.amazonaws.chime#TranscribeRegion", - "traits": { - "smithy.api#documentation": "

The AWS Region passed to Amazon Transcribe. If you don't specify a Region, Amazon Chime uses the Region closest to the meeting's Region.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Settings specific to the Amazon Transcribe engine.

" - } - }, "com.amazonaws.chime#ErrorCode": { "type": "string", "traits": { @@ -12586,12 +12485,12 @@ "EventIngestionUrl": { "target": "com.amazonaws.chime#UriType", "traits": { - "smithy.api#documentation": "

The URL of the S3 bucket used to store the captured media.

" + "smithy.api#documentation": "

The event ingestion URL.

" } } }, "traits": { - "smithy.api#documentation": "

A set of endpoints used by clients to connect to the media service group for an Amazon Chime SDK meeting.

" + "smithy.api#documentation": "

A set of endpoints used by clients to connect to the media service group for a Amazon Chime SDK meeting.

" } }, "com.amazonaws.chime#Meeting": { @@ -15865,136 +15764,6 @@ ] } }, - "com.amazonaws.chime#StartMeetingTranscription": { - "type": "operation", - "input": { - "target": "com.amazonaws.chime#StartMeetingTranscriptionRequest" - }, - "output": { - "target": "com.amazonaws.chime#StartMeetingTranscriptionResponse" - }, - "errors": [ - { - "target": "com.amazonaws.chime#BadRequestException" - }, - { - "target": "com.amazonaws.chime#ForbiddenException" - }, - { - "target": "com.amazonaws.chime#NotFoundException" - }, - { - "target": "com.amazonaws.chime#ResourceLimitExceededException" - }, - { - "target": "com.amazonaws.chime#ServiceFailureException" - }, - { - "target": "com.amazonaws.chime#ServiceUnavailableException" - }, - { - "target": "com.amazonaws.chime#ThrottledClientException" - }, - { - "target": "com.amazonaws.chime#UnauthorizedClientException" - }, - { - "target": "com.amazonaws.chime#UnprocessableEntityException" - } - ], - "traits": { - "smithy.api#documentation": "

Start transcription for the specified meetingId.

", - "smithy.api#http": { - "method": "POST", - "uri": "/meetings/{MeetingId}/transcription?operation=start", - "code": 200 - } - } - }, - "com.amazonaws.chime#StartMeetingTranscriptionRequest": { - "type": "structure", - "members": { - "MeetingId": { - "target": "com.amazonaws.chime#GuidString", - "traits": { - "smithy.api#documentation": "

The unique ID of the meeting being transcribed.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "TranscriptionConfiguration": { - "target": "com.amazonaws.chime#TranscriptionConfiguration", - "traits": { - "smithy.api#documentation": "

The configuration for the current transcription operation. Must contain EngineTranscribeSettings or EngineTranscribeMedicalSettings.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.chime#StartMeetingTranscriptionResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.chime#StopMeetingTranscription": { - "type": "operation", - "input": { - "target": "com.amazonaws.chime#StopMeetingTranscriptionRequest" - }, - "output": { - "target": "com.amazonaws.chime#StopMeetingTranscriptionResponse" - }, - "errors": [ - { - "target": "com.amazonaws.chime#BadRequestException" - }, - { - "target": "com.amazonaws.chime#ForbiddenException" - }, - { - "target": "com.amazonaws.chime#NotFoundException" - }, - { - "target": "com.amazonaws.chime#ServiceFailureException" - }, - { - "target": "com.amazonaws.chime#ServiceUnavailableException" - }, - { - "target": "com.amazonaws.chime#ThrottledClientException" - }, - { - "target": "com.amazonaws.chime#UnauthorizedClientException" - }, - { - "target": "com.amazonaws.chime#UnprocessableEntityException" - } - ], - "traits": { - "smithy.api#documentation": "

Stops transcription for the specified meetingId.

", - "smithy.api#http": { - "method": "POST", - "uri": "/meetings/{MeetingId}/transcription?operation=stop", - "code": 200 - } - } - }, - "com.amazonaws.chime#StopMeetingTranscriptionRequest": { - "type": "structure", - "members": { - "MeetingId": { - "target": "com.amazonaws.chime#GuidString", - "traits": { - "smithy.api#documentation": "

The unique ID of the meeting for which you stop transcription.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.chime#StopMeetingTranscriptionResponse": { - "type": "structure", - "members": {} - }, "com.amazonaws.chime#StreamingConfiguration": { "type": "structure", "members": { @@ -16430,239 +16199,6 @@ "smithy.api#pattern": "^8(00|33|44|55|66|77|88)$" } }, - "com.amazonaws.chime#TranscribeLanguageCode": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "en-US", - "name": "EN_US" - }, - { - "value": "en-GB", - "name": "EN_GB" - }, - { - "value": "es-US", - "name": "ES_US" - }, - { - "value": "fr-CA", - "name": "FR_CA" - }, - { - "value": "fr-FR", - "name": "FR_FR" - }, - { - "value": "en-AU", - "name": "EN_AU" - }, - { - "value": "it-IT", - "name": "IT_IT" - }, - { - "value": "de-DE", - "name": "DE_DE" - }, - { - "value": "pt-BR", - "name": "PT_BR" - }, - { - "value": "ja-JP", - "name": "JA_JP" - }, - { - "value": "ko-KR", - "name": "KO_KR" - }, - { - "value": "zh-CN", - "name": "ZH_CN" - } - ] - } - }, - "com.amazonaws.chime#TranscribeMedicalLanguageCode": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "en-US", - "name": "EN_US" - } - ] - } - }, - "com.amazonaws.chime#TranscribeMedicalRegion": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "us-east-1", - "name": "US_EAST_1" - }, - { - "value": "us-east-2", - "name": "US_EAST_2" - }, - { - "value": "us-west-2", - "name": "US_WEST_2" - }, - { - "value": "ap-southeast-2", - "name": "AP_SOUTHEAST_2" - }, - { - "value": "ca-central-1", - "name": "CA_CENTRAL_1" - }, - { - "value": "eu-west-1", - "name": "EU_WEST_1" - } - ] - } - }, - "com.amazonaws.chime#TranscribeMedicalSpecialty": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "PRIMARYCARE", - "name": "PrimaryCare" - }, - { - "value": "CARDIOLOGY", - "name": "Cardiology" - }, - { - "value": "NEUROLOGY", - "name": "Neurology" - }, - { - "value": "ONCOLOGY", - "name": "Oncology" - }, - { - "value": "RADIOLOGY", - "name": "Radiology" - }, - { - "value": "UROLOGY", - "name": "Urology" - } - ] - } - }, - "com.amazonaws.chime#TranscribeMedicalType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "CONVERSATION", - "name": "Conversation" - }, - { - "value": "DICTATION", - "name": "Dictation" - } - ] - } - }, - "com.amazonaws.chime#TranscribeRegion": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "us-east-2", - "name": "US_EAST_2" - }, - { - "value": "us-east-1", - "name": "US_EAST_1" - }, - { - "value": "us-west-2", - "name": "US_WEST_2" - }, - { - "value": "ap-northeast-2", - "name": "AP_NORTHEAST_2" - }, - { - "value": "ap-southeast-2", - "name": "AP_SOUTHEAST_2" - }, - { - "value": "ap-northeast-1", - "name": "AP_NORTHEAST_1" - }, - { - "value": "ca-central-1", - "name": "CA_CENTRAL_1" - }, - { - "value": "eu-central-1", - "name": "EU_CENTRAL_1" - }, - { - "value": "eu-west-1", - "name": "EU_WEST_1" - }, - { - "value": "eu-west-2", - "name": "EU_WEST_2" - }, - { - "value": "sa-east-1", - "name": "SA_EAST_1" - } - ] - } - }, - "com.amazonaws.chime#TranscribeVocabularyFilterMethod": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "remove", - "name": "Remove" - }, - { - "value": "mask", - "name": "Mask" - }, - { - "value": "tag", - "name": "Tag" - } - ] - } - }, - "com.amazonaws.chime#TranscriptionConfiguration": { - "type": "structure", - "members": { - "EngineTranscribeSettings": { - "target": "com.amazonaws.chime#EngineTranscribeSettings", - "traits": { - "smithy.api#documentation": "

The transcription configuration settings passed to Amazon Transcribe.

" - } - }, - "EngineTranscribeMedicalSettings": { - "target": "com.amazonaws.chime#EngineTranscribeMedicalSettings", - "traits": { - "smithy.api#documentation": "

The transcription configuration settings passed to Amazon Transcribe.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The configuration for the current transcription operation. Must contain EngineTranscribeSettings or EngineTranscribeMedicalSettings.

" - } - }, "com.amazonaws.chime#UCBuzzConsoleService": { "type": "service", "version": "2018-05-01", @@ -17150,12 +16686,6 @@ { "target": "com.amazonaws.chime#SendChannelMessage" }, - { - "target": "com.amazonaws.chime#StartMeetingTranscription" - }, - { - "target": "com.amazonaws.chime#StopMeetingTranscription" - }, { "target": "com.amazonaws.chime#TagAttendee" }, diff --git a/codegen/sdk-codegen/aws-models/cloudformation.2010-05-15.json b/codegen/sdk-codegen/aws-models/cloudformation.2010-05-15.json index 15ac8ba1bc2..c4046355490 100644 --- a/codegen/sdk-codegen/aws-models/cloudformation.2010-05-15.json +++ b/codegen/sdk-codegen/aws-models/cloudformation.2010-05-15.json @@ -47,7 +47,7 @@ "Status": { "target": "com.amazonaws.cloudformation#AccountGateStatus", "traits": { - "smithy.api#documentation": "

The status of the account gate function.

\n " + "smithy.api#documentation": "

The status of the account gate function.

\n " } }, "StatusReason": { @@ -58,7 +58,7 @@ } }, "traits": { - "smithy.api#documentation": "

Structure that contains the results of the account gate function which CloudFormation invokes, if present, before proceeding with a stack set operation in an\n account and Region.

\n

For each account and Region, CloudFormation lets you specify a Lamdba\n function that encapsulates any requirements that must be met before CloudFormation\n can proceed with a stack set operation in that account and Region. CloudFormation\n invokes the function each time a stack set operation is requested for that account and\n Region; if the function returns FAILED, CloudFormation cancels the\n operation in that account and Region, and sets the stack set operation result status for\n that account and Region to FAILED.

\n

For more information, see Configuring a\n target account gate.

" + "smithy.api#documentation": "

Structure that contains the results of the account gate function which AWS\n CloudFormation invokes, if present, before proceeding with a stack set operation in an\n account and Region.

\n

For each account and Region, AWS CloudFormation lets you specify a Lamdba function\n that encapsulates any requirements that must be met before CloudFormation can proceed with\n a stack set operation in that account and Region. CloudFormation invokes the function each\n time a stack set operation is requested for that account and Region; if the function\n returns FAILED, CloudFormation cancels the operation in that account and\n Region, and sets the stack set operation result status for that account and Region to\n FAILED.

\n

For more information, see Configuring a\n target account gate.

" } }, "com.amazonaws.cloudformation#AccountGateStatus": { @@ -100,7 +100,7 @@ } }, "traits": { - "smithy.api#documentation": "

The AccountLimit data type.

\n

CloudFormation has the following limits per account:

\n \n

For more information about these account limits, and other CloudFormation\n limits, see CloudFormation Limits in the CloudFormation User Guide.

" + "smithy.api#documentation": "

The AccountLimit data type.

\n

CloudFormation has the following limits per account:

\n \n

For more information about these account limits, and other CloudFormation limits, see\n AWS CloudFormation\n Limits in the AWS CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#AccountLimitList": { @@ -142,7 +142,7 @@ } ], "traits": { - "smithy.api#documentation": "

Activates a public third-party extension, making it available for use in stack\n templates. For more information, see Using\n public extensions in the CloudFormation User Guide.

\n

Once you have activated a public third-party extension in your account and region, use\n SetTypeConfiguration to specify configuration properties for the extension. For\n more information, see Configuring extensions at the account level in the CloudFormation\n User Guide.

", + "smithy.api#documentation": "

Activates a public third-party extension, making it available for use in stack templates. For more information, see Using public extensions in the CloudFormation User Guide.

\n

Once you have activated a public third-party extension in your account and region, use SetTypeConfiguration to specify configuration properties for the extension. For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

", "smithy.api#idempotent": {} } }, @@ -152,37 +152,37 @@ "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The extension type.

\n

Conditional: You must specify PublicTypeArn, or TypeName,\n Type, and PublisherId.

" + "smithy.api#documentation": "

The extension type.

\n

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

" } }, "PublicTypeArn": { "target": "com.amazonaws.cloudformation#ThirdPartyTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the public extension.

\n

Conditional: You must specify PublicTypeArn, or TypeName,\n Type, and PublisherId.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the public extension.

\n

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

" } }, "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The ID of the extension publisher.

\n

Conditional: You must specify PublicTypeArn, or TypeName,\n Type, and PublisherId.

" + "smithy.api#documentation": "

The ID of the extension publisher.

\n

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify PublicTypeArn, or TypeName,\n Type, and PublisherId.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

" } }, "TypeNameAlias": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

An alias to assign to the public extension, in this account and region. If you specify\n an alias for the extension, CloudFormation treats the alias as the extension type name\n within this account and region. You must use the alias to refer to the extension in your\n templates, API calls, and CloudFormation console.

\n

An extension alias must be unique within a given account and region. You can activate\n the same public resource multiple times in the same account and region, using different\n type name aliases.

" + "smithy.api#documentation": "

An alias to assign to the public extension, in this account and region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.

\n

An extension alias must be unique within a given account and region. You can activate the same public resource multiple times in the same account and region, using different type name aliases.

" } }, "AutoUpdate": { "target": "com.amazonaws.cloudformation#AutoUpdate", "traits": { - "smithy.api#documentation": "

Whether to automatically update the extension in this account and region when a new\n minor version is published by the extension publisher. Major\n versions released by the publisher must be manually updated.

\n

The default is true.

" + "smithy.api#documentation": "

Whether to automatically update the extension in this account and region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated.

\n

The default is true.

" } }, "LoggingConfig": { @@ -197,13 +197,13 @@ "VersionBump": { "target": "com.amazonaws.cloudformation#VersionBump", "traits": { - "smithy.api#documentation": "

Manually updates a previously-activated type to a new major or minor version, if\n available. You can also use this parameter to update the value of\n AutoUpdate.

\n " + "smithy.api#documentation": "

Manually updates a previously-activated type to a new major or minor version, if available. You can also use this parameter to update the value of AutoUpdate.

\n " } }, "MajorVersion": { "target": "com.amazonaws.cloudformation#MajorVersion", "traits": { - "smithy.api#documentation": "

The major version of this extension you want to activate, if multiple major versions are\n available. The default is the latest major version. CloudFormation uses the latest\n available minor version of the major version selected.

\n

You can specify MajorVersion or VersionBump, but not\n both.

" + "smithy.api#documentation": "

The major version of this extension you want to activate, if multiple major versions are available. The default is the latest major version. CloudFormation uses the latest available minor version of the major version selected.

\n

You can specify MajorVersion or VersionBump, but not both.

" } } } @@ -214,7 +214,7 @@ "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the activated extension, in this account and\n region.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the activated extension, in this account and region.

" } } } @@ -254,18 +254,18 @@ "Enabled": { "target": "com.amazonaws.cloudformation#AutoDeploymentNullable", "traits": { - "smithy.api#documentation": "

If set to true, StackSets automatically deploys additional stack instances\n to Organizations accounts that are added to a target organization or organizational\n unit (OU) in the specified Regions. If an account is removed from a target organization or\n OU, StackSets deletes stack instances from the account in the specified Regions.

" + "smithy.api#documentation": "

If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.

" } }, "RetainStacksOnAccountRemoval": { "target": "com.amazonaws.cloudformation#RetainStacksOnAccountRemovalNullable", "traits": { - "smithy.api#documentation": "

If set to true, stack resources are retained when an account is removed\n from a target organization or OU. If set to false, stack resources are\n deleted. Specify only if Enabled is set to True.

" + "smithy.api#documentation": "

If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.

" } } }, "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to\n Organizations accounts that are added to a target organization or organizational\n unit (OU).

" + "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to a target organization or organizational unit (OU).

" } }, "com.amazonaws.cloudformation#AutoDeploymentNullable": { @@ -297,7 +297,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns configuration data for the specified CloudFormation extensions, from the\n CloudFormation registry for the account and region.

\n

For more information, see Configuring extensions at the account level in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

Returns configuration data for the specified CloudFormation extensions, from the CloudFormation registry for the account and region.

\n

For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#BatchDescribeTypeConfigurationsError": { @@ -320,7 +320,7 @@ } }, "traits": { - "smithy.api#documentation": "

Detailed information concerning an error generated during the setting of configuration\n data for a CloudFormation extension.

" + "smithy.api#documentation": "

Detailed information concerning an error generated during the setting of configuration data for a CloudFormation extension.

" } }, "com.amazonaws.cloudformation#BatchDescribeTypeConfigurationsErrors": { @@ -347,19 +347,19 @@ "Errors": { "target": "com.amazonaws.cloudformation#BatchDescribeTypeConfigurationsErrors", "traits": { - "smithy.api#documentation": "

A list of information concerning any errors generated during the setting of the\n specified configurations.

" + "smithy.api#documentation": "

A list of information concerning any errors generated during the setting of the specified configurations.

" } }, "UnprocessedTypeConfigurations": { "target": "com.amazonaws.cloudformation#UnprocessedTypeConfigurations", "traits": { - "smithy.api#documentation": "

A list of any of the specified extension configurations that CloudFormation could not\n process for any reason.

" + "smithy.api#documentation": "

A list of any of the specified extension configurations that CloudFormation could not process for any reason.

" } }, "TypeConfigurations": { "target": "com.amazonaws.cloudformation#TypeConfigurationDetailsList", "traits": { - "smithy.api#documentation": "

A list of any of the specified extension configurations from the CloudFormation\n registry.

" + "smithy.api#documentation": "

A list of any of the specified extension configurations from the CloudFormation registry.

" } } } @@ -439,7 +439,7 @@ "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this CancelUpdateStack request. Specify this\n token if you plan to retry requests so that CloudFormation knows that you're not\n attempting to cancel an update on a stack with the same name. You might retry\n CancelUpdateStack requests to ensure that CloudFormation\n successfully received them.

" + "smithy.api#documentation": "

A unique identifier for this CancelUpdateStack request. Specify this\n token if you plan to retry requests so that AWS CloudFormation knows that you're not\n attempting to cancel an update on a stack with the same name. You might retry\n CancelUpdateStack requests to ensure that AWS CloudFormation successfully\n received them.

" } } }, @@ -507,18 +507,18 @@ "Type": { "target": "com.amazonaws.cloudformation#ChangeType", "traits": { - "smithy.api#documentation": "

The type of entity that CloudFormation changes. Currently, the only entity\n type is Resource.

" + "smithy.api#documentation": "

The type of entity that AWS CloudFormation changes. Currently, the only entity type\n is Resource.

" } }, "ResourceChange": { "target": "com.amazonaws.cloudformation#ResourceChange", "traits": { - "smithy.api#documentation": "

A ResourceChange structure that describes the resource and action that\n CloudFormation will perform.

" + "smithy.api#documentation": "

A ResourceChange structure that describes the resource and action that\n AWS CloudFormation will perform.

" } } }, "traits": { - "smithy.api#documentation": "

The Change structure describes the changes CloudFormation will\n perform if you execute the change set.

" + "smithy.api#documentation": "

The Change structure describes the changes AWS CloudFormation will\n perform if you execute the change set.

" } }, "com.amazonaws.cloudformation#ChangeAction": { @@ -672,7 +672,7 @@ "ExecutionStatus": { "target": "com.amazonaws.cloudformation#ExecutionStatus", "traits": { - "smithy.api#documentation": "

If the change set execution status is AVAILABLE, you can execute the\n change set. If you can’t execute the change set, the status indicates why. For example, a\n change set might be in an UNAVAILABLE state because CloudFormation is\n still creating it or in an OBSOLETE state because the stack was already\n updated.

" + "smithy.api#documentation": "

If the change set execution status is AVAILABLE, you can execute the\n change set. If you can’t execute the change set, the status indicates why. For example, a\n change set might be in an UNAVAILABLE state because AWS CloudFormation is\n still creating it or in an OBSOLETE state because the stack was already\n updated.

" } }, "Status": { @@ -684,7 +684,7 @@ "StatusReason": { "target": "com.amazonaws.cloudformation#ChangeSetStatusReason", "traits": { - "smithy.api#documentation": "

A description of the change set's status. For example, if your change set is in the\n FAILED state, CloudFormation shows the error message.

" + "smithy.api#documentation": "

A description of the change set's status. For example, if your change set is in the\n FAILED state, AWS CloudFormation shows the error message.

" } }, "CreationTime": { @@ -916,9 +916,6 @@ { "target": "com.amazonaws.cloudformation#GetTemplateSummary" }, - { - "target": "com.amazonaws.cloudformation#ImportStacksToStackSet" - }, { "target": "com.amazonaws.cloudformation#ListChangeSets" }, @@ -1013,7 +1010,7 @@ "name": "cloudformation" }, "aws.protocols#awsQuery": {}, - "smithy.api#documentation": "AWS CloudFormation\n

CloudFormation allows you to create and manage Amazon Web Services\n infrastructure deployments predictably and repeatedly. You can use CloudFormation\n to leverage Amazon Web Services products, such as Amazon Elastic Compute Cloud, Amazon\n Elastic Block Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto\n Scaling to build highly-reliable, highly scalable, cost-effective applications without\n creating or configuring the underlying Amazon Web Services infrastructure.

\n

With CloudFormation, you declare all of your resources and dependencies in a\n template file. The template defines a collection of resources as a single unit called a\n stack. CloudFormation creates and deletes all member resources of the stack\n together and manages all dependencies between the resources for you.

\n

For more information about CloudFormation, see the CloudFormation Product Page.

\n

CloudFormation makes use of other Amazon Web Services products. If you need\n additional technical information about a specific Amazon Web Services product, you can find\n the product's technical documentation at \n docs.aws.amazon.com\n .

", + "smithy.api#documentation": "AWS CloudFormation\n

AWS CloudFormation allows you to create and manage AWS infrastructure deployments\n predictably and repeatedly. You can use AWS CloudFormation to leverage AWS products, such\n as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification\n Service, Elastic Load Balancing, and Auto Scaling to build highly-reliable, highly\n scalable, cost-effective applications without creating or configuring the underlying AWS\n infrastructure.

\n

With AWS CloudFormation, you declare all of your resources and dependencies in a\n template file. The template defines a collection of resources as a single unit called a\n stack. AWS CloudFormation creates and deletes all member resources of the stack together\n and manages all dependencies between the resources for you.

\n

For more information about AWS CloudFormation, see the AWS CloudFormation Product Page.

\n

Amazon CloudFormation makes use of other AWS products. If you need additional\n technical information about a specific AWS product, you can find the product's technical\n documentation at docs.aws.amazon.com.

", "smithy.api#title": "AWS CloudFormation", "smithy.api#xmlNamespace": { "uri": "http://cloudformation.amazonaws.com/doc/2010-05-15/" @@ -1054,7 +1051,7 @@ } ], "traits": { - "smithy.api#documentation": "

For a specified stack that is in the UPDATE_ROLLBACK_FAILED state,\n continues rolling it back to the UPDATE_ROLLBACK_COMPLETE state. Depending on\n the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can\n return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state), and\n then try to update the stack again.

\n

A stack goes into the UPDATE_ROLLBACK_FAILED state when CloudFormation cannot roll back all changes after a failed stack update. For example,\n you might have a stack that is rolling back to an old database instance that was deleted\n outside of CloudFormation. Because CloudFormation doesn't know the database\n was deleted, it assumes that the database instance still exists and attempts to roll back\n to it, causing the update rollback to fail.

" + "smithy.api#documentation": "

For a specified stack that is in the UPDATE_ROLLBACK_FAILED state,\n continues rolling it back to the UPDATE_ROLLBACK_COMPLETE state. Depending on\n the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can\n return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state), and\n then try to update the stack again.

\n

A stack goes into the UPDATE_ROLLBACK_FAILED state when AWS\n CloudFormation cannot roll back all changes after a failed stack update. For example, you\n might have a stack that is rolling back to an old database instance that was deleted\n outside of AWS CloudFormation. Because AWS CloudFormation doesn't know the database was\n deleted, it assumes that the database instance still exists and attempts to roll back to\n it, causing the update rollback to fail.

" } }, "com.amazonaws.cloudformation#ContinueUpdateRollbackInput": { @@ -1070,19 +1067,19 @@ "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes to roll back the stack. CloudFormation uses the role's\n credentials to make calls on your behalf. CloudFormation always uses this role for\n all future operations on the stack. As long as users have permission to operate on the\n stack, CloudFormation uses this role even if the users don't have permission to\n pass it. Ensure that the role grants least privilege.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation uses the role's\n credentials to make calls on your behalf. AWS CloudFormation always uses this role for all\n future operations on the stack. As long as users have permission to operate on the stack,\n AWS CloudFormation uses this role even if the users don't have permission to pass it.\n Ensure that the role grants least privilege.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" } }, "ResourcesToSkip": { "target": "com.amazonaws.cloudformation#ResourcesToSkip", "traits": { - "smithy.api#documentation": "

A list of the logical IDs of the resources that CloudFormation skips during\n the continue update rollback operation. You can specify only resources that are in the\n UPDATE_FAILED state because a rollback failed. You can't specify resources\n that are in the UPDATE_FAILED state for other reasons, for example, because an\n update was cancelled. To check why a resource update failed, use the DescribeStackResources action, and view the resource status reason.

\n \n

Specify this property to skip rolling back resources that CloudFormation\n can't successfully roll back. We recommend that you troubleshoot resources before skipping them. CloudFormation sets\n the status of the specified resources to UPDATE_COMPLETE and continues to\n roll back the stack. After the rollback is complete, the state of the skipped resources\n will be inconsistent with the state of the resources in the stack template. Before\n performing another stack update, you must update the stack or resources to be consistent\n with each other. If you don't, subsequent stack updates might fail, and the stack will\n become unrecoverable.

\n
\n

Specify the minimum number of resources required to successfully roll back your\n stack. For example, a failed resource update might cause dependent resources to fail. In\n this case, it might not be necessary to skip the dependent resources.

\n

To skip resources that are part of nested stacks, use the following format:\n NestedStackName.ResourceLogicalID. If you want to specify the logical ID of\n a stack resource (Type: AWS::CloudFormation::Stack) in the\n ResourcesToSkip list, then its corresponding embedded stack must be in one\n of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or\n DELETE_FAILED.

\n \n

Don't confuse a child stack's name with its corresponding logical ID defined in\n the parent stack. For an example of a continue update rollback operation with nested\n stacks, see Using ResourcesToSkip to recover a nested stacks hierarchy.

\n
" + "smithy.api#documentation": "

A list of the logical IDs of the resources that AWS CloudFormation skips during the\n continue update rollback operation. You can specify only resources that are in the\n UPDATE_FAILED state because a rollback failed. You can't specify resources\n that are in the UPDATE_FAILED state for other reasons, for example, because an\n update was cancelled. To check why a resource update failed, use the DescribeStackResources action, and view the resource status reason.

\n \n

Specify this property to skip rolling back resources that AWS CloudFormation can't\n successfully roll back. We recommend that you troubleshoot resources before skipping them. AWS CloudFormation sets the\n status of the specified resources to UPDATE_COMPLETE and continues to roll\n back the stack. After the rollback is complete, the state of the skipped resources will\n be inconsistent with the state of the resources in the stack template. Before performing\n another stack update, you must update the stack or resources to be consistent with each\n other. If you don't, subsequent stack updates might fail, and the stack will become\n unrecoverable.

\n
\n

Specify the minimum number of resources required to successfully roll back your\n stack. For example, a failed resource update might cause dependent resources to fail. In\n this case, it might not be necessary to skip the dependent resources.

\n

To skip resources that are part of nested stacks, use the following format:\n NestedStackName.ResourceLogicalID. If you want to specify the logical ID of\n a stack resource (Type: AWS::CloudFormation::Stack) in the\n ResourcesToSkip list, then its corresponding embedded stack must be in one\n of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or\n DELETE_FAILED.

\n \n

Don't confuse a child stack's name with its corresponding logical ID defined in\n the parent stack. For an example of a continue update rollback operation with nested\n stacks, see Using ResourcesToSkip to recover a nested stacks hierarchy.

\n
" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this ContinueUpdateRollback request. Specify\n this token if you plan to retry requests so that CloudFormationknows that you're\n not attempting to continue the rollback to a stack with the same name. You might retry\n ContinueUpdateRollback requests to ensure that CloudFormation\n successfully received them.

" + "smithy.api#documentation": "

A unique identifier for this ContinueUpdateRollback request. Specify\n this token if you plan to retry requests so that AWS CloudFormation knows that you're not\n attempting to continue the rollback to a stack with the same name. You might retry\n ContinueUpdateRollback requests to ensure that AWS CloudFormation\n successfully received them.

" } } }, @@ -1117,7 +1114,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a list of changes that will be applied to a stack so that you can review the\n changes before executing them. You can create a change set for a stack that doesn't exist\n or an existing stack. If you create a change set for a stack that doesn't exist, the change\n set shows all of the resources that CloudFormation will create. If you create a\n change set for an existing stack, CloudFormation compares the stack's information\n with the information that you submit in the change set and lists the differences. Use\n change sets to understand which resources CloudFormation will create or change, and\n how it will change resources in an existing stack, before you create or update a\n stack.

\n

To create a change set for a stack that doesn't exist, for the\n ChangeSetType parameter, specify CREATE. To create a change\n set for an existing stack, specify UPDATE for the ChangeSetType\n parameter. To create a change set for an import operation, specify IMPORT for\n the ChangeSetType parameter. After the CreateChangeSet call\n successfully completes, CloudFormation starts creating the change set. To check the\n status of the change set or to review it, use the DescribeChangeSet\n action.

\n

When you are satisfied with the changes the change set will make, execute the change\n set by using the ExecuteChangeSet action. CloudFormation doesn't\n make changes until you execute the change set.

\n

To create a change set for the entire stack hierachy, set\n IncludeNestedStacks to True.

" + "smithy.api#documentation": "

Creates a list of changes that will be applied to a stack so that you can review the\n changes before executing them. You can create a change set for a stack that doesn't exist\n or an existing stack. If you create a change set for a stack that doesn't exist, the change\n set shows all of the resources that AWS CloudFormation will create. If you create a change\n set for an existing stack, AWS CloudFormation compares the stack's information with the\n information that you submit in the change set and lists the differences. Use change sets to\n understand which resources AWS CloudFormation will create or change, and how it will change\n resources in an existing stack, before you create or update a stack.

\n

To create a change set for a stack that doesn't exist, for the\n ChangeSetType parameter, specify CREATE. To create a change\n set for an existing stack, specify UPDATE for the ChangeSetType\n parameter. To create a change set for an import operation, specify IMPORT for\n the ChangeSetType parameter. After the CreateChangeSet call\n successfully completes, AWS CloudFormation starts creating the change set. To check the\n status of the change set or to review it, use the DescribeChangeSet\n action.

\n

When you are satisfied with the changes the change set will make, execute the change\n set by using the ExecuteChangeSet action. AWS CloudFormation doesn't make\n changes until you execute the change set.

\n

To create a change set for the entire stack hierachy, set\n IncludeNestedStacks to True.

" } }, "com.amazonaws.cloudformation#CreateChangeSetInput": { @@ -1126,20 +1123,20 @@ "StackName": { "target": "com.amazonaws.cloudformation#StackNameOrId", "traits": { - "smithy.api#documentation": "

The name or the unique ID of the stack for which you are creating a change set.\n CloudFormation generates the change set by comparing this stack's information\n with the information that you submit, such as a modified template or different parameter\n input values.

", + "smithy.api#documentation": "

The name or the unique ID of the stack for which you are creating a change set. AWS\n CloudFormation generates the change set by comparing this stack's information with the\n information that you submit, such as a modified template or different parameter input\n values.

", "smithy.api#required": {} } }, "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

A structure that contains the body of the revised template, with a minimum length of\n 1 byte and a maximum length of 51,200 bytes. CloudFormation generates the change\n set by comparing this template with the template of the stack that you specified.

\n

Conditional: You must specify only TemplateBody or\n TemplateURL.

" + "smithy.api#documentation": "

A structure that contains the body of the revised template, with a minimum length of\n 1 byte and a maximum length of 51,200 bytes. AWS CloudFormation generates the change set by\n comparing this template with the template of the stack that you specified.

\n

Conditional: You must specify only TemplateBody or\n TemplateURL.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

The location of the file that contains the revised template. The URL must point to a\n template (max size: 460,800 bytes) that is located in an S3 bucket or a Systems Manager\n document. CloudFormation generates the change set by comparing this template with\n the stack that you specified.

\n

Conditional: You must specify only TemplateBody or\n TemplateURL.

" + "smithy.api#documentation": "

The location of the file that contains the revised template. The URL must point to a\n template (max size: 460,800 bytes) that is located in an S3 bucket or a Systems Manager\n document. AWS CloudFormation generates the change set by comparing this template with the\n stack that you specified.

\n

Conditional: You must specify only TemplateBody or\n TemplateURL.

" } }, "UsePreviousTemplate": { @@ -1157,37 +1154,37 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for CloudFormation to create the stack.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for AWS CloudFormation to create the stack.

\n " } }, "ResourceTypes": { "target": "com.amazonaws.cloudformation#ResourceTypes", "traits": { - "smithy.api#documentation": "

The template resource types that you have permissions to work with if you execute\n this change set, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance.

\n

If the list of resource types doesn't include a resource type that you're updating,\n the stack update fails. By default, CloudFormation grants permissions to all\n resource types. Identity and Access Management (IAM) uses this parameter for condition keys in IAM\n policies for CloudFormation. For more information, see Controlling Access with\n Identity and Access Management in the CloudFormation User Guide.

" + "smithy.api#documentation": "

The template resource types that you have permissions to work with if you execute\n this change set, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance.

\n

If the list of resource types doesn't include a resource type that you're updating,\n the stack update fails. By default, AWS CloudFormation grants permissions to all resource\n types. AWS Identity and Access Management (IAM) uses this parameter for condition keys in\n IAM policies for AWS CloudFormation. For more information, see Controlling Access with\n AWS Identity and Access Management in the AWS CloudFormation User\n Guide.

" } }, "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes when executing the change set. CloudFormation uses the\n role's credentials to make calls on your behalf. CloudFormation uses this role for\n all future operations on the stack. As long as users have permission to operate on the\n stack, CloudFormation uses this role even if the users don't have permission to\n pass it. Ensure that the role grants least privilege.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes when executing the change set. AWS CloudFormation uses the\n role's credentials to make calls on your behalf. AWS CloudFormation uses this role for all\n future operations on the stack. As long as users have permission to operate on the stack,\n AWS CloudFormation uses this role even if the users don't have permission to pass it.\n Ensure that the role grants least privilege.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" } }, "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "NotificationARNs": { "target": "com.amazonaws.cloudformation#NotificationARNs", "traits": { - "smithy.api#documentation": "

The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon SNS)\n topics that CloudFormation associates with the stack. To remove all associated\n notification topics, specify an empty list.

" + "smithy.api#documentation": "

The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon SNS)\n topics that AWS CloudFormation associates with the stack. To remove all associated\n notification topics, specify an empty list.

" } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

Key-value pairs to associate with this stack. CloudFormation also propagates\n these tags to resources in the stack. You can specify a maximum of 50 tags.

" + "smithy.api#documentation": "

Key-value pairs to associate with this stack. AWS CloudFormation also propagates\n these tags to resources in the stack. You can specify a maximum of 50 tags.

" } }, "ChangeSetName": { @@ -1200,7 +1197,7 @@ "ClientToken": { "target": "com.amazonaws.cloudformation#ClientToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this CreateChangeSet request. Specify this token\n if you plan to retry requests so that CloudFormation knows that you're not\n attempting to create another change set with the same name. You might retry\n CreateChangeSet requests to ensure that CloudFormation successfully\n received them.

" + "smithy.api#documentation": "

A unique identifier for this CreateChangeSet request. Specify this token\n if you plan to retry requests so that AWS CloudFormation knows that you're not attempting\n to create another change set with the same name. You might retry\n CreateChangeSet requests to ensure that AWS CloudFormation successfully\n received them.

" } }, "Description": { @@ -1212,7 +1209,7 @@ "ChangeSetType": { "target": "com.amazonaws.cloudformation#ChangeSetType", "traits": { - "smithy.api#documentation": "

The type of change set operation. To create a change set for a new stack, specify\n CREATE. To create a change set for an existing stack, specify\n UPDATE. To create a change set for an import operation, specify\n IMPORT.

\n

If you create a change set for a new stack, CloudFormation creates a stack\n with a unique stack ID, but no template or resources. The stack will be in the \n REVIEW_IN_PROGRESS\n state until you execute the change\n set.

\n

By default, CloudFormation specifies UPDATE. You can't use the\n UPDATE type to create a change set for a new stack or the\n CREATE type to create a change set for an existing stack.

" + "smithy.api#documentation": "

The type of change set operation. To create a change set for a new stack, specify\n CREATE. To create a change set for an existing stack, specify\n UPDATE. To create a change set for an import operation, specify\n IMPORT.

\n

If you create a change set for a new stack, AWS Cloudformation creates a stack with a\n unique stack ID, but no template or resources. The stack will be in the \n REVIEW_IN_PROGRESS\n state until you execute the change\n set.

\n

By default, AWS CloudFormation specifies UPDATE. You can't use the\n UPDATE type to create a change set for a new stack or the\n CREATE type to create a change set for an existing stack.

" } }, "ResourcesToImport": { @@ -1291,13 +1288,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information, go to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the\n TemplateURL parameter, but not both.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the\n TemplateURL parameter, but not both.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information, go to the Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the\n TemplateURL parameter, but not both.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information, go to the Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the\n TemplateURL parameter, but not both.

" } }, "Parameters": { @@ -1315,7 +1312,7 @@ "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "TimeoutInMinutes": { @@ -1333,19 +1330,19 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for CloudFormation to create the stack.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for AWS CloudFormation to create the stack.

\n " } }, "ResourceTypes": { "target": "com.amazonaws.cloudformation#ResourceTypes", "traits": { - "smithy.api#documentation": "

The template resource types that you have permissions to work with for this create\n stack action, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance. Use the following syntax to describe template\n resource types: AWS::* (for all Amazon Web Services resources),\n Custom::* (for all custom resources),\n Custom::logical_ID\n (for a specific custom resource),\n AWS::service_name::* (for all resources of a\n particular Amazon Web Services service), and\n AWS::service_name::resource_logical_ID\n (for a specific Amazon Web Services resource).

\n

If the list of resource types doesn't include a resource that you're creating, the\n stack creation fails. By default, CloudFormation grants permissions to all resource\n types. Identity and Access Management (IAM) uses this parameter for CloudFormation-specific\n condition keys in IAM policies. For more information, see Controlling Access with\n Identity and Access Management.

" + "smithy.api#documentation": "

The template resource types that you have permissions to work with for this create\n stack action, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance. Use the following syntax to describe template\n resource types: AWS::* (for all AWS resource), Custom::* (for all\n custom resources), Custom::logical_ID\n (for a specific custom resource),\n AWS::service_name::* (for all resources of a\n particular AWS service), and\n AWS::service_name::resource_logical_ID\n (for a specific AWS resource).

\n

If the list of resource types doesn't include a resource that you're creating, the\n stack creation fails. By default, AWS CloudFormation grants permissions to all resource\n types. AWS Identity and Access Management (IAM) uses this parameter for AWS\n CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with AWS Identity and Access Management.

" } }, "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes to create the stack. CloudFormation uses the role's\n credentials to make calls on your behalf. CloudFormation always uses this role for\n all future operations on the stack. As long as users have permission to operate on the\n stack, CloudFormation uses this role even if the users don't have permission to\n pass it. Ensure that the role grants least privilege.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes to create the stack. AWS CloudFormation uses the role's\n credentials to make calls on your behalf. AWS CloudFormation always uses this role for all\n future operations on the stack. As long as users have permission to operate on the stack,\n AWS CloudFormation uses this role even if the users don't have permission to pass it.\n Ensure that the role grants least privilege.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" } }, "OnFailure": { @@ -1357,31 +1354,31 @@ "StackPolicyBody": { "target": "com.amazonaws.cloudformation#StackPolicyBody", "traits": { - "smithy.api#documentation": "

Structure containing the stack policy body. For more information, go to Prevent Updates\n to Stack Resources in the CloudFormation User\n Guide. You can specify either the StackPolicyBody or the\n StackPolicyURL parameter, but not both.

" + "smithy.api#documentation": "

Structure containing the stack policy body. For more information, go to Prevent Updates\n to Stack Resources in the AWS CloudFormation User Guide.\n You can specify either the StackPolicyBody or the StackPolicyURL\n parameter, but not both.

" } }, "StackPolicyURL": { "target": "com.amazonaws.cloudformation#StackPolicyURL", "traits": { - "smithy.api#documentation": "

Location of a file containing the stack policy. The URL must point to a policy\n (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack. You can\n specify either the StackPolicyBody or the StackPolicyURL\n parameter, but not both.

" + "smithy.api#documentation": "

Location of a file containing the stack policy. The URL must point to a policy\n (maximum size: 16 KB) located in an S3 bucket in the same\n Region as the stack. You can specify either the StackPolicyBody or the\n StackPolicyURL parameter, but not both.

" } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

Key-value pairs to associate with this stack. CloudFormation also propagates\n these tags to the resources created in the stack. A maximum number of 50 tags can be\n specified.

" + "smithy.api#documentation": "

Key-value pairs to associate with this stack. AWS CloudFormation also propagates\n these tags to the resources created in the stack. A maximum number of 50 tags can be\n specified.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this CreateStack request. Specify this token if\n you plan to retry requests so that CloudFormation knows that you're not attempting\n to create a stack with the same name. You might retry CreateStack requests to\n ensure that CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" + "smithy.api#documentation": "

A unique identifier for this CreateStack request. Specify this token if\n you plan to retry requests so that AWS CloudFormation knows that you're not attempting to\n create a stack with the same name. You might retry CreateStack requests to\n ensure that AWS CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" } }, "EnableTerminationProtection": { "target": "com.amazonaws.cloudformation#EnableTerminationProtection", "traits": { - "smithy.api#documentation": "

Whether to enable termination protection on the specified stack. If a user attempts\n to delete a stack with termination protection enabled, the operation fails and the stack\n remains unchanged. For more information, see Protecting a Stack From Being\n Deleted in the CloudFormation User Guide. Termination protection is\n disabled on stacks by default.

\n

For nested stacks,\n termination protection is set on the root stack and cannot be changed directly on the\n nested stack.

" + "smithy.api#documentation": "

Whether to enable termination protection on the specified stack. If a user attempts\n to delete a stack with termination protection enabled, the operation fails and the stack\n remains unchanged. For more information, see Protecting a Stack From Being\n Deleted in the AWS CloudFormation User Guide. Termination protection is\n disabled on stacks by default.

\n

For nested stacks,\n termination protection is set on the root stack and cannot be changed directly on the\n nested stack.

" } } }, @@ -1418,7 +1415,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates stack instances for the specified accounts, within the specified Regions. A\n stack instance refers to a stack in a specific account and Region. You must specify at\n least one value for either Accounts or DeploymentTargets, and you\n must specify at least one value for Regions.

" + "smithy.api#documentation": "

Creates stack instances for the specified accounts, within the specified Regions. A\n stack instance refers to a stack in a specific account and Region. You must specify at least one value for either Accounts or DeploymentTargets, and you must specify at least one value for Regions.

" } }, "com.amazonaws.cloudformation#CreateStackInstancesInput": { @@ -1434,45 +1431,45 @@ "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The names of one or more accounts that\n you want to create stack instances in the specified Region(s) for.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" + "smithy.api#documentation": "

[Self-managed permissions] The names of one or more AWS accounts that you want to create stack instances in the\n specified Region(s) for.

\n

You can specify Accounts or DeploymentTargets, but not both.

" } }, "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts for which to create\n stack instances in the specified Regions.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" + "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts for which to create stack instances in the specified Regions.

\n

You can specify Accounts or DeploymentTargets, but not both.

" } }, "Regions": { "target": "com.amazonaws.cloudformation#RegionList", "traits": { - "smithy.api#documentation": "

The names of one or more Regions where you want to create stack instances using the\n specified accounts.

", + "smithy.api#documentation": "

The names of one or more Regions where you want to create stack instances using the\n specified AWS account(s).

", "smithy.api#required": {} } }, "ParameterOverrides": { "target": "com.amazonaws.cloudformation#Parameters", "traits": { - "smithy.api#documentation": "

A list of stack set parameters whose values you want to override in the selected\n stack instances.

\n

Any overridden parameter values will be applied to all stack instances in the\n specified accounts and Regions. When specifying parameters and their values, be aware of\n how CloudFormation sets parameter values during stack instance\n operations:

\n \n

During stack set updates, any parameter values overridden for a stack instance are\n not updated, but retain their overridden value.

\n

You can only override the parameter values that are specified in\n the stack set; to add or delete a parameter itself, use UpdateStackSet to update the stack set template.

" + "smithy.api#documentation": "

A list of stack set parameters whose values you want to override in the selected\n stack instances.

\n

Any overridden parameter values will be applied to all stack instances in the\n specified accounts and Regions. When specifying parameters and their values, be aware of\n how AWS CloudFormation sets parameter values during stack instance operations:

\n \n

During stack set updates, any parameter values overridden for a stack instance are\n not updated, but retain their overridden value.

\n

You can only override the parameter values that are specified in\n the stack set; to add or delete a parameter itself, use UpdateStackSet to update the stack set template.

" } }, "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

Preferences for how CloudFormation performs this stack set\n operation.

" + "smithy.api#documentation": "

Preferences for how AWS CloudFormation performs this stack set operation.

" } }, "OperationId": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", + "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that AWS\n CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that AWS\n CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", "smithy.api#idempotencyToken": {} } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -1544,19 +1541,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

The structure that contains the template body, with a minimum length of 1 byte and a\n maximum length of 51,200 bytes. For more information, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the TemplateURL parameter,\n but not both.

" + "smithy.api#documentation": "

The structure that contains the template body, with a minimum length of 1 byte and a\n maximum length of 51,200 bytes. For more information, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the TemplateURL parameter,\n but not both.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

The location of the file that contains the template body. The URL must point to a\n template (maximum size: 460,800 bytes) that's located in an Amazon S3 bucket or a Systems\n Manager document. For more information, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the TemplateURL parameter,\n but not both.

" - } - }, - "StackId": { - "target": "com.amazonaws.cloudformation#StackId", - "traits": { - "smithy.api#documentation": "

The stack ID you are importing into a new stack set. Specify the Amazon Resource Number\n (ARN) of the stack.

" + "smithy.api#documentation": "

The location of the file that contains the template body. The URL must point to a\n template (maximum size: 460,800 bytes) that's located in an Amazon S3 bucket or a Systems\n Manager document. For more information, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the TemplateURL parameter,\n but not both.

" } }, "Parameters": { @@ -1568,49 +1559,49 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack set template contains\n certain capabilities in order for CloudFormation to create the stack set and related stack\n instances.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack set template contains\n certain capabilities in order for AWS CloudFormation to create the stack set and related stack\n instances.

\n " } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

The key-value pairs to associate with this stack set and the stacks created from it.\n CloudFormation also propagates these tags to supported resources that are\n created in the stacks. A maximum number of 50 tags can be specified.

\n

If you specify tags as part of a CreateStackSet action, CloudFormation checks to see if you have the required IAM permission to tag resources.\n If you don't, the entire CreateStackSet action fails with an access\n denied error, and the stack set is not created.

" + "smithy.api#documentation": "

The key-value pairs to associate with this stack set and the stacks created from it.\n AWS CloudFormation also propagates these tags to supported resources that are created in\n the stacks. A maximum number of 50 tags can be specified.

\n

If you specify tags as part of a CreateStackSet action, AWS\n CloudFormation checks to see if you have the required IAM permission to tag resources. If\n you don't, the entire CreateStackSet action fails with an access\n denied error, and the stack set is not created.

" } }, "AdministrationRoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role to use to create this stack set.

\n

Specify an IAM role only if you are using customized administrator roles to control\n which users or groups can manage specific stack sets within the same administrator account.\n For more information, see Prerequisites:\n Granting Permissions for Stack Set Operations in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role to use to create this stack set.

\n

Specify an IAM role only if you are using customized administrator roles to control\n which users or groups can manage specific stack sets within the same administrator account.\n For more information, see Prerequisites:\n Granting Permissions for Stack Set Operations in the\n AWS CloudFormation User Guide.

" } }, "ExecutionRoleName": { "target": "com.amazonaws.cloudformation#ExecutionRoleName", "traits": { - "smithy.api#documentation": "

The name of the IAM execution role to use to create the stack set. If you do not specify\n an execution role, CloudFormation uses the AWSCloudFormationStackSetExecutionRole role\n for the stack set operation.

\n

Specify an IAM role only if you are using customized execution roles to control which\n stack resources users and groups can include in their stack sets.\n \n

" + "smithy.api#documentation": "

The name of the IAM execution role to use to create the stack set. If you do not specify\n an execution role, AWS CloudFormation uses the AWSCloudFormationStackSetExecutionRole role\n for the stack set operation.

\n

Specify an IAM role only if you are using customized execution roles to control which\n stack resources users and groups can include in their stack sets.\n \n

" } }, "PermissionModel": { "target": "com.amazonaws.cloudformation#PermissionModels", "traits": { - "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created. By default,\n SELF-MANAGED is specified.

\n " + "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created. By default, SELF-MANAGED is specified.

\n " } }, "AutoDeployment": { "target": "com.amazonaws.cloudformation#AutoDeployment", "traits": { - "smithy.api#documentation": "

Describes whether StackSets automatically deploys to Organizations accounts that\n are added to the target organization or organizational unit (OU). Specify only if\n PermissionModel is SERVICE_MANAGED.

" + "smithy.api#documentation": "

Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to the target organization or organizational unit (OU). Specify only if PermissionModel is SERVICE_MANAGED.

" } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n \n

Stack sets with service-managed permissions are created in the management account,\n including stack sets that are created by delegated administrators.

" + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n \n

Stack sets with service-managed permissions are created in the management account, including stack sets that are created by delegated administrators.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this CreateStackSet request. Specify this token\n if you plan to retry requests so that CloudFormation knows that you're not\n attempting to create another stack set with the same name. You might retry\n CreateStackSet requests to ensure that CloudFormation successfully\n received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.\n

", + "smithy.api#documentation": "

A unique identifier for this CreateStackSet request. Specify this token\n if you plan to retry requests so that AWS CloudFormation knows that you're not attempting\n to create another stack set with the same name. You might retry CreateStackSet\n requests to ensure that AWS CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.\n

", "smithy.api#idempotencyToken": {} } } @@ -1664,7 +1655,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deactivates a public extension that was previously activated in this account and\n region.

\n

Once deactivated, an extension cannot be used in any CloudFormation operation. This\n includes stack update operations where the stack template includes the extension, even if\n no updates are being made to the extension. In addition, deactivated extensions are not\n automatically updated if a new version of the extension is released.

", + "smithy.api#documentation": "

Deactivates a public extension that was previously activated in this account and region.

\n

Once deactivated, an extension cannot be used in any CloudFormation operation. This includes stack update operations where the stack template includes the extension, even if no updates are being made to the extension. In addition, deactivated extensions are not automatically updated if a new version of the extension is released.

", "smithy.api#idempotent": {} } }, @@ -1674,19 +1665,19 @@ "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The type name of the extension, in this account and region. If you specified a type name\n alias when enabling the extension, use the type name alias.

\n

Conditional: You must specify either Arn, or TypeName and\n Type.

" + "smithy.api#documentation": "

The type name of the extension, in this account and region. If you specified a type name alias when enabling the extension, use the type name alias.

\n

Conditional: You must specify either Arn, or TypeName and Type.

" } }, "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The extension type.

\n

Conditional: You must specify either Arn, or TypeName and\n Type.

" + "smithy.api#documentation": "

The extension type.

\n

Conditional: You must specify either Arn, or TypeName and Type.

" } }, "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

Conditional: You must specify either Arn, or TypeName and\n Type.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

Conditional: You must specify either Arn, or TypeName and Type.

" } } } @@ -1709,7 +1700,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the specified change set. Deleting change sets ensures that no one executes\n the wrong change set.

\n

If the call successfully completes, CloudFormation successfully deleted the\n change set.

\n

If IncludeNestedStacks specifies True during the creation of\n the nested change set, then DeleteChangeSet will delete all change sets that\n belong to the stacks hierarchy and will also delete all change sets for nested stacks with\n the status of REVIEW_IN_PROGRESS.

" + "smithy.api#documentation": "

Deletes the specified change set. Deleting change sets ensures that no one executes\n the wrong change set.

\n

If the call successfully completes, AWS CloudFormation successfully deleted the\n change set.

\n

If IncludeNestedStacks specifies True during the creation of\n the nested change set, then DeleteChangeSet will delete all change sets that belong to the stacks hierarchy and\n will also delete all change sets for nested stacks with the status of REVIEW_IN_PROGRESS.

" } }, "com.amazonaws.cloudformation#DeleteChangeSetInput": { @@ -1767,19 +1758,19 @@ "RetainResources": { "target": "com.amazonaws.cloudformation#RetainResources", "traits": { - "smithy.api#documentation": "

For stacks in the DELETE_FAILED state, a list of resource logical IDs\n that are associated with the resources you want to retain. During deletion, CloudFormation deletes the stack but does not delete the retained resources.

\n

Retaining resources is useful when you cannot delete a resource, such as a non-empty\n S3 bucket, but you want to delete the stack.

" + "smithy.api#documentation": "

For stacks in the DELETE_FAILED state, a list of resource logical IDs\n that are associated with the resources you want to retain. During deletion, AWS\n CloudFormation deletes the stack but does not delete the retained resources.

\n

Retaining resources is useful when you cannot delete a resource, such as a non-empty\n S3 bucket, but you want to delete the stack.

" } }, "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes to delete the stack. CloudFormation uses the role's\n credentials to make calls on your behalf.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes to delete the stack. AWS CloudFormation uses the role's\n credentials to make calls on your behalf.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this DeleteStack request. Specify this token if\n you plan to retry requests so that CloudFormation knows that you're not attempting\n to delete a stack with the same name. You might retry DeleteStack requests to\n ensure that CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" + "smithy.api#documentation": "

A unique identifier for this DeleteStack request. Specify this token if\n you plan to retry requests so that AWS CloudFormation knows that you're not attempting to\n delete a stack with the same name. You might retry DeleteStack requests to\n ensure that AWS CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" } } }, @@ -1829,13 +1820,13 @@ "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The names of the accounts that you want\n to delete stack instances for.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" + "smithy.api#documentation": "

[Self-managed permissions] The names of the AWS accounts that you want to delete stack instances for.

\n

You can specify Accounts or DeploymentTargets, but not both.

" } }, "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts from which to delete\n stack instances.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" + "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts from which to delete stack instances.

\n

You can specify Accounts or DeploymentTargets, but not both.

" } }, "Regions": { @@ -1848,7 +1839,7 @@ "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

Preferences for how CloudFormation performs this stack set\n operation.

" + "smithy.api#documentation": "

Preferences for how AWS CloudFormation performs this stack set operation.

" } }, "RetainStacks": { @@ -1861,14 +1852,14 @@ "OperationId": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

If you don't specify an operation ID, the SDK generates one automatically.

\n

The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You can retry stack set operation requests to ensure that CloudFormation successfully received them.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", + "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

If you don't specify an operation ID, the SDK generates one automatically.

\n

The operation ID also functions as an idempotency token, to ensure that AWS\n CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You can retry stack set operation requests to ensure that AWS\n CloudFormation successfully received them.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", "smithy.api#idempotencyToken": {} } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -1917,7 +1908,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -1935,24 +1926,24 @@ "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

The names of one or more accounts for which you want to deploy stack\n set updates.

" + "smithy.api#documentation": "

The names of one or more AWS accounts for which you want to deploy stack set updates.

" } }, "AccountsUrl": { "target": "com.amazonaws.cloudformation#AccountsUrl", "traits": { - "smithy.api#documentation": "

Returns the value of the AccountsUrl property.

" + "smithy.api#documentation": "

Returns the value of the AccountsUrl property.

" } }, "OrganizationalUnitIds": { "target": "com.amazonaws.cloudformation#OrganizationalUnitIdList", "traits": { - "smithy.api#documentation": "

The organization root ID or organizational unit (OU) IDs to which StackSets\n deploys.

" + "smithy.api#documentation": "

The organization root ID or organizational unit (OU) IDs to which StackSets deploys.

" } } }, "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts to which StackSets\n deploys. StackSets does not deploy stack instances to the organization management account,\n even if the organization management account is in your organization or in an OU in your\n organization.

\n

For update operations, you can specify either Accounts or\n OrganizationalUnitIds. For create and delete operations, specify\n OrganizationalUnitIds.

" + "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts to which StackSets deploys. StackSets does not deploy stack instances to the organization management account, even if the organization management account is in your organization or in an OU in your organization.

\n

For update operations, you can specify either Accounts or OrganizationalUnitIds. For create and delete operations, specify OrganizationalUnitIds.

" } }, "com.amazonaws.cloudformation#DeprecatedStatus": { @@ -1987,7 +1978,7 @@ } ], "traits": { - "smithy.api#documentation": "

Marks an extension or extension version as DEPRECATED in the CloudFormation registry, removing it from active use. Deprecated extensions or\n extension versions cannot be used in CloudFormation operations.

\n

To deregister an entire extension, you must individually deregister all active versions\n of that extension. If an extension has only a single active version, deregistering that\n version results in the extension itself being deregistered and marked as deprecated in the\n registry.

\n

You cannot deregister the default version of an extension if there are other active\n version of that extension. If you do deregister the default version of an extension, the\n textensionype itself is deregistered as well and marked as deprecated.

\n

To view the deprecation status of an extension or extension version, use DescribeType.

", + "smithy.api#documentation": "

Marks an extension or extension version as DEPRECATED in the CloudFormation registry, removing it from active use. Deprecated extensions or extension versions cannot be used in CloudFormation operations.

\n

To deregister an entire extension, you must individually deregister all active versions of that extension. If an extension has only a single active version, deregistering that version results in the extension itself being deregistered and marked as deprecated in the registry.

\n

You cannot deregister the default version of an extension if there are other active version of that extension. If you do deregister the default version of an extension, the textensionype itself is deregistered as well and marked as deprecated.

\n

To view the deprecation status of an extension or extension version, use DescribeType.

", "smithy.api#idempotent": {} } }, @@ -1997,25 +1988,25 @@ "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of\n the Amazon Resource Name (ARN) assigned to the extension version when it is\n registered.

" + "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.

" } } } @@ -2033,7 +2024,7 @@ "target": "com.amazonaws.cloudformation#DescribeAccountLimitsOutput" }, "traits": { - "smithy.api#documentation": "

Retrieves your account's CloudFormation limits, such as the maximum number of\n stacks that you can create in your account. For more information about account limits, see\n CloudFormation Limits in the CloudFormation User\n Guide.

", + "smithy.api#documentation": "

Retrieves your account's AWS CloudFormation limits, such as the maximum number of\n stacks that you can create in your account. For more information about account limits, see\n AWS CloudFormation\n Limits in the AWS CloudFormation User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -2061,7 +2052,7 @@ "AccountLimits": { "target": "com.amazonaws.cloudformation#AccountLimitList", "traits": { - "smithy.api#documentation": "

An account limit structure that contain a list of CloudFormation account\n limits and their values.

" + "smithy.api#documentation": "

An account limit structure that contain a list of AWS CloudFormation account limits\n and their values.

" } }, "NextToken": { @@ -2089,44 +2080,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the inputs for the change set and a list of changes that CloudFormation will make if you execute the change set. For more information, see Updating Stacks Using Change Sets in the CloudFormation User\n Guide.

", - "smithy.api#suppress": [ - "WaitableTraitInvalidErrorType" - ], - "smithy.waiters#waitable": { - "ChangeSetCreateComplete": { - "documentation": "Wait until change set status is CREATE_COMPLETE.", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "Status", - "expected": "CREATE_COMPLETE", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Status", - "expected": "FAILED", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "errorType": "ValidationError" - } - } - ], - "minDelay": 30 - } - } + "smithy.api#documentation": "

Returns the inputs for the change set and a list of changes that AWS CloudFormation\n will make if you execute the change set. For more information, see Updating Stacks Using Change Sets in the AWS CloudFormation User\n Guide.

" } }, "com.amazonaws.cloudformation#DescribeChangeSetInput": { @@ -2204,7 +2158,7 @@ "ExecutionStatus": { "target": "com.amazonaws.cloudformation#ExecutionStatus", "traits": { - "smithy.api#documentation": "

If the change set execution status is AVAILABLE, you can execute the\n change set. If you can’t execute the change set, the status indicates why. For example, a\n change set might be in an UNAVAILABLE state because CloudFormation is\n still creating it or in an OBSOLETE state because the stack was already\n updated.

" + "smithy.api#documentation": "

If the change set execution status is AVAILABLE, you can execute the\n change set. If you can’t execute the change set, the status indicates why. For example, a\n change set might be in an UNAVAILABLE state because AWS CloudFormation is\n still creating it or in an OBSOLETE state because the stack was already\n updated.

" } }, "Status": { @@ -2216,7 +2170,7 @@ "StatusReason": { "target": "com.amazonaws.cloudformation#ChangeSetStatusReason", "traits": { - "smithy.api#documentation": "

A description of the change set's status. For example, if your attempt to create a\n change set failed, CloudFormation shows the error message.

" + "smithy.api#documentation": "

A description of the change set's status. For example, if your attempt to create a\n change set failed, AWS CloudFormation shows the error message.

" } }, "NotificationARNs": { @@ -2228,7 +2182,7 @@ "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "Capabilities": { @@ -2246,7 +2200,7 @@ "Changes": { "target": "com.amazonaws.cloudformation#Changes", "traits": { - "smithy.api#documentation": "

A list of Change structures that describes the resources CloudFormation changes if you execute the change set.

" + "smithy.api#documentation": "

A list of Change structures that describes the resources AWS\n CloudFormation changes if you execute the change set.

" } }, "NextToken": { @@ -2264,13 +2218,13 @@ "ParentChangeSetId": { "target": "com.amazonaws.cloudformation#ChangeSetId", "traits": { - "smithy.api#documentation": "

Specifies the change set ID of the parent change set in the current nested change set\n hierarchy.

" + "smithy.api#documentation": "

Specifies the change set ID of the parent change set in the current nested change set hierarchy.

" } }, "RootChangeSetId": { "target": "com.amazonaws.cloudformation#ChangeSetId", "traits": { - "smithy.api#documentation": "

Specifies the change set ID of the root change set in the current nested change set\n hierarchy.

" + "smithy.api#documentation": "

Specifies the change set ID of the root change set in the current nested change set hierarchy.

" } } }, @@ -2292,7 +2246,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns information about a CloudFormation extension publisher.

\n

If you do not supply a PublisherId, and you have registered as an extension\n publisher, DescribePublisher returns information about your own publisher\n account.

\n

For more information on registering as a publisher, see:

\n ", + "smithy.api#documentation": "

Returns information about a CloudFormation extension publisher.

\n

If you do not supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account.

\n

For more information on registering as a publisher, see:

\n ", "smithy.api#idempotent": {} } }, @@ -2302,7 +2256,7 @@ "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The ID of the extension publisher.

\n

If you do not supply a PublisherId, and you have registered as an extension\n publisher, DescribePublisher returns information about your own publisher\n account.

" + "smithy.api#documentation": "

The ID of the extension publisher.

\n

If you do not supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account.

" } } } @@ -2319,13 +2273,13 @@ "PublisherStatus": { "target": "com.amazonaws.cloudformation#PublisherStatus", "traits": { - "smithy.api#documentation": "

Whether the publisher is verified. Currently, all registered publishers are\n verified.

" + "smithy.api#documentation": "

Whether the publisher is verified. Currently, all registered publishers are verified.

" } }, "IdentityProvider": { "target": "com.amazonaws.cloudformation#IdentityProvider", "traits": { - "smithy.api#documentation": "

The type of account used as the identity provider when registering this publisher with\n CloudFormation.

" + "smithy.api#documentation": "

The type of account used as the identity provider when registering this publisher with CloudFormation.

" } }, "PublisherProfile": { @@ -2354,7 +2308,7 @@ "StackDriftDetectionId": { "target": "com.amazonaws.cloudformation#StackDriftDetectionId", "traits": { - "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of drift results CloudFormation retains for any given stack, and for how\n long, may vary.

", + "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of drift results AWS CloudFormation retains for any given stack, and for how\n long, may vary.

", "smithy.api#required": {} } } @@ -2373,20 +2327,20 @@ "StackDriftDetectionId": { "target": "com.amazonaws.cloudformation#StackDriftDetectionId", "traits": { - "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of reports CloudFormation retains for any given stack, and for how long,\n may vary.

", + "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of reports AWS CloudFormation retains for any given stack, and for how long,\n may vary.

", "smithy.api#required": {} } }, "StackDriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected configuration.

\n " + "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected configuration.

\n " } }, "DetectionStatus": { "target": "com.amazonaws.cloudformation#StackDriftDetectionStatus", "traits": { - "smithy.api#documentation": "

The status of the stack drift detection operation.

\n ", + "smithy.api#documentation": "

The status of the stack drift detection operation.

\n ", "smithy.api#required": {} } }, @@ -2420,7 +2374,7 @@ "target": "com.amazonaws.cloudformation#DescribeStackEventsOutput" }, "traits": { - "smithy.api#documentation": "

Returns all stack related events for a specified stack in reverse chronological\n order. For more information about a stack's event history, go to Stacks in the CloudFormation User Guide.

\n \n

You can list events for stacks that have failed to create or have been deleted by\n specifying the unique stack identifier (stack ID).

\n
", + "smithy.api#documentation": "

Returns all stack related events for a specified stack in reverse chronological\n order. For more information about a stack's event history, go to Stacks in the AWS CloudFormation User Guide.

\n \n

You can list events for stacks that have failed to create or have been deleted by\n specifying the unique stack identifier (stack ID).

\n
", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -2485,7 +2439,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the stack instance that's associated with the specified stack set, account, and Region.

\n

For a list of stack instances that are associated with a specific stack set, use\n ListStackInstances.

" + "smithy.api#documentation": "

Returns the stack instance that's associated with the specified stack set, AWS\n account, and Region.

\n

For a list of stack instances that are associated with a specific stack set, use\n ListStackInstances.

" } }, "com.amazonaws.cloudformation#DescribeStackInstanceInput": { @@ -2501,7 +2455,7 @@ "StackInstanceAccount": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

The ID of an account that's associated with this stack\n instance.

", + "smithy.api#documentation": "

The ID of an AWS account that's associated with this stack instance.

", "smithy.api#required": {} } }, @@ -2515,7 +2469,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -2552,7 +2506,7 @@ "target": "com.amazonaws.cloudformation#DescribeStackResourceDriftsOutput" }, "traits": { - "smithy.api#documentation": "

Returns drift information for the resources that have been checked for drift in the\n specified stack. This includes actual and expected configuration values for resources where\n CloudFormation detects configuration drift.

\n

For a given stack, there will be one StackResourceDrift for each stack\n resource that has been checked for drift. Resources that have not yet been checked for\n drift are not included. Resources that do not currently support drift detection are not\n checked, and so not included. For a list of resources that support drift detection, see\n Resources that Support Drift Detection.

\n

Use DetectStackResourceDrift to detect drift on individual\n resources, or DetectStackDrift to detect drift on all supported resources\n for a given stack.

", + "smithy.api#documentation": "

Returns drift information for the resources that have been checked for drift in the\n specified stack. This includes actual and expected configuration values for resources where\n AWS CloudFormation detects configuration drift.

\n

For a given stack, there will be one StackResourceDrift for each stack\n resource that has been checked for drift. Resources that have not yet been checked for\n drift are not included. Resources that do not currently support drift detection are not\n checked, and so not included. For a list of resources that support drift detection, see\n Resources that Support Drift Detection.

\n

Use DetectStackResourceDrift to detect drift on individual\n resources, or DetectStackDrift to detect drift on all supported resources\n for a given stack.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -2573,7 +2527,7 @@ "StackResourceDriftStatusFilters": { "target": "com.amazonaws.cloudformation#StackResourceDriftStatusFilters", "traits": { - "smithy.api#documentation": "

The resource drift status values to use as filters for the resource drift results\n returned.

\n " + "smithy.api#documentation": "

The resource drift status values to use as filters for the resource drift results\n returned.

\n " } }, "NextToken": { @@ -2596,7 +2550,7 @@ "StackResourceDrifts": { "target": "com.amazonaws.cloudformation#StackResourceDrifts", "traits": { - "smithy.api#documentation": "

Drift information for the resources that have been checked for drift in the specified\n stack. This includes actual and expected configuration values for resources where CloudFormation\n detects drift.

\n

For a given stack, there will be one StackResourceDrift for each stack\n resource that has been checked for drift. Resources that have not yet been checked for\n drift are not included. Resources that do not currently support drift detection are not\n checked, and so not included. For a list of resources that support drift detection, see\n Resources that Support Drift Detection.

", + "smithy.api#documentation": "

Drift information for the resources that have been checked for drift in the specified\n stack. This includes actual and expected configuration values for resources where AWS CloudFormation\n detects drift.

\n

For a given stack, there will be one StackResourceDrift for each stack\n resource that has been checked for drift. Resources that have not yet been checked for\n drift are not included. Resources that do not currently support drift detection are not\n checked, and so not included. For a list of resources that support drift detection, see\n Resources that Support Drift Detection.

", "smithy.api#required": {} } }, @@ -2653,7 +2607,7 @@ "target": "com.amazonaws.cloudformation#DescribeStackResourcesOutput" }, "traits": { - "smithy.api#documentation": "

Returns Amazon Web Services resource descriptions for running and deleted stacks. If\n StackName is specified, all the associated resources that are part of the\n stack are returned. If PhysicalResourceId is specified, the associated\n resources of the stack that the resource belongs to are returned.

\n \n

Only the first 100 resources will be returned. If your stack has more resources\n than this, you should use ListStackResources instead.

\n
\n

For deleted stacks, DescribeStackResources returns resource information\n for up to 90 days after the stack has been deleted.

\n

You must specify either StackName or PhysicalResourceId,\n but not both. In addition, you can specify LogicalResourceId to filter the\n returned result. For more information about resources, the LogicalResourceId\n and PhysicalResourceId, go to the CloudFormation User\n Guide.

\n \n

A ValidationError is returned if you specify both\n StackName and PhysicalResourceId in the same\n request.

\n
" + "smithy.api#documentation": "

Returns AWS resource descriptions for running and deleted stacks. If\n StackName is specified, all the associated resources that are part of the\n stack are returned. If PhysicalResourceId is specified, the associated\n resources of the stack that the resource belongs to are returned.

\n \n

Only the first 100 resources will be returned. If your stack has more resources\n than this, you should use ListStackResources instead.

\n
\n

For deleted stacks, DescribeStackResources returns resource information\n for up to 90 days after the stack has been deleted.

\n

You must specify either StackName or PhysicalResourceId,\n but not both. In addition, you can specify LogicalResourceId to filter the\n returned result. For more information about resources, the LogicalResourceId\n and PhysicalResourceId, go to the AWS CloudFormation User\n Guide.

\n \n

A ValidationError is returned if you specify both\n StackName and PhysicalResourceId in the same\n request.

\n
" } }, "com.amazonaws.cloudformation#DescribeStackResourcesInput": { @@ -2674,7 +2628,7 @@ "PhysicalResourceId": { "target": "com.amazonaws.cloudformation#PhysicalResourceId", "traits": { - "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by CloudFormation.

\n

For example, for an Amazon Elastic Compute Cloud (EC2) instance,\n PhysicalResourceId corresponds to the InstanceId. You can pass\n the EC2 InstanceId to DescribeStackResources to find which stack\n the instance belongs to and what other resources are part of the stack.

\n

Required: Conditional. If you do not specify PhysicalResourceId, you\n must specify StackName.

\n

Default: There is no default value.

" + "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by AWS CloudFormation.

\n

For example, for an Amazon Elastic Compute Cloud (EC2) instance,\n PhysicalResourceId corresponds to the InstanceId. You can pass\n the EC2 InstanceId to DescribeStackResources to find which stack\n the instance belongs to and what other resources are part of the stack.

\n

Required: Conditional. If you do not specify PhysicalResourceId, you\n must specify StackName.

\n

Default: There is no default value.

" } } }, @@ -2726,7 +2680,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -2771,7 +2725,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -2812,358 +2766,6 @@ "inputToken": "NextToken", "outputToken": "NextToken", "items": "Stacks" - }, - "smithy.api#suppress": [ - "WaitableTraitInvalidErrorType" - ], - "smithy.waiters#waitable": { - "StackCreateComplete": { - "documentation": "Wait until stack status is CREATE_COMPLETE.", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "CREATE_COMPLETE", - "comparator": "allStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "CREATE_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "DELETE_COMPLETE", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "DELETE_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "ROLLBACK_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "ROLLBACK_COMPLETE", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "errorType": "ValidationError" - } - } - ], - "minDelay": 30 - }, - "StackDeleteComplete": { - "documentation": "Wait until stack status is DELETE_COMPLETE.", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "DELETE_COMPLETE", - "comparator": "allStringEquals" - } - } - }, - { - "state": "success", - "matcher": { - "errorType": "ValidationError" - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "DELETE_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "CREATE_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "ROLLBACK_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_IN_PROGRESS", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_COMPLETE", - "comparator": "anyStringEquals" - } - } - } - ], - "minDelay": 30 - }, - "StackExists": { - "acceptors": [ - { - "state": "success", - "matcher": { - "success": true - } - }, - { - "state": "retry", - "matcher": { - "errorType": "ValidationError" - } - } - ], - "minDelay": 5 - }, - "StackImportComplete": { - "documentation": "Wait until stack status is IMPORT_COMPLETE.", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "IMPORT_COMPLETE", - "comparator": "allStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "ROLLBACK_COMPLETE", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "ROLLBACK_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "IMPORT_ROLLBACK_IN_PROGRESS", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "IMPORT_ROLLBACK_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "IMPORT_ROLLBACK_COMPLETE", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "errorType": "ValidationError" - } - } - ], - "minDelay": 30 - }, - "StackRollbackComplete": { - "documentation": "Wait until stack status is UPDATE_ROLLBACK_COMPLETE.", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_COMPLETE", - "comparator": "allStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "DELETE_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "errorType": "ValidationError" - } - } - ], - "minDelay": 30 - }, - "StackUpdateComplete": { - "documentation": "Wait until stack status is UPDATE_COMPLETE.", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_COMPLETE", - "comparator": "allStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_FAILED", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_COMPLETE", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "errorType": "ValidationError" - } - } - ], - "minDelay": 30 - } } } }, @@ -3224,7 +2826,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns detailed information about an extension that has been registered.

\n

If you specify a VersionId, DescribeType returns information\n about that specific extension version. Otherwise, it returns information about the default\n extension version.

", + "smithy.api#documentation": "

Returns detailed information about an extension that has been registered.

\n

If you specify a VersionId, DescribeType returns information about that specific extension version. Otherwise, it returns information about the default extension version.

", "smithy.api#idempotent": {} } }, @@ -3234,25 +2836,25 @@ "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "Arn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of\n the Amazon Resource Name (ARN) assigned to the extension version when it is\n registered.

\n

If you specify a VersionId, DescribeType returns information\n about that specific extension version. Otherwise, it returns information about the default\n extension version.

" + "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.

\n

If you specify a VersionId, DescribeType returns information about that specific extension version. Otherwise, it returns information about the default extension version.

" } }, "PublisherId": { @@ -3287,31 +2889,31 @@ "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

If the extension is a public third-party type you have activated with a type name alias,\n CloudFormation returns the type name alias. For more information, see ActivateType.

" + "smithy.api#documentation": "

The name of the extension.

\n

If the extension is a public third-party type you have activated with a type name alias, CloudFormation returns the type name alias. For more information, see ActivateType.

" } }, "DefaultVersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of the default version of the extension. The default version is used when the\n extension version is not specified.

\n

This applies only to private extensions you have registered in your account. For public\n extensions, both those provided by Amazon and published by third parties, CloudFormation\n returns null. For more information, see RegisterType.

\n

To set the default version of an extension, use \n SetTypeDefaultVersion\n .

" + "smithy.api#documentation": "

The ID of the default version of the extension. The default version is used when the extension version is not specified.

\n

This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon and published by third parties, CloudFormation returns null. For more information, see RegisterType.

\n

To set the default version of an extension, use \n SetTypeDefaultVersion\n .

" } }, "IsDefaultVersion": { "target": "com.amazonaws.cloudformation#IsDefaultVersion", "traits": { - "smithy.api#documentation": "

Whether the specified extension version is set as the default version.

\n

This applies only to private extensions you have registered in your account, and\n extensions published by Amazon. For public third-party extensions, whether or not they are\n activated in your account, CloudFormation returns null.

" + "smithy.api#documentation": "

Whether the specified extension version is set as the default version.

\n

This applies only to private extensions you have registered in your account, and extensions published by Amazon. For public third-party extensions, whether or not they are activated in your account, CloudFormation returns null.

" } }, "TypeTestsStatus": { "target": "com.amazonaws.cloudformation#TypeTestsStatus", "traits": { - "smithy.api#documentation": "

The contract test status of the registered extension version. To return the extension\n test status of a specifc extension version, you must specify VersionId.

\n

This applies only to registered private extension versions. CloudFormation does not\n return this information for public extensions, whether or not they are activated in your\n account.

\n " + "smithy.api#documentation": "

The contract test status of the registered extension version. To return the extension test status of a specifc extension version, you must specify VersionId.

\n

This applies only to registered private extension versions. CloudFormation does not return this information for public extensions, whether or not they are activated in your account.

\n " } }, "TypeTestsStatusDescription": { "target": "com.amazonaws.cloudformation#TypeTestsStatusDescription", "traits": { - "smithy.api#documentation": "

The description of the test status. To return the extension test status of a specifc\n extension version, you must specify VersionId.

\n

This applies only to registered private extension versions. CloudFormation does not\n return this information for public extensions, whether or not they are activated in your\n account.

" + "smithy.api#documentation": "

The description of the test status. To return the extension test status of a specifc extension version, you must specify VersionId.

\n

This applies only to registered private extension versions. CloudFormation does not return this information for public extensions, whether or not they are activated in your account.

" } }, "Description": { @@ -3323,43 +2925,43 @@ "Schema": { "target": "com.amazonaws.cloudformation#TypeSchema", "traits": { - "smithy.api#documentation": "

The schema that defines the extension.

\n

For more information on extension schemas, see Resource Provider\n Schema in the CloudFormation CLI User\n Guide.

" + "smithy.api#documentation": "

The schema that defines the extension.

\n

For more information on extension schemas, see Resource Provider Schema in the CloudFormation CLI User Guide.

" } }, "ProvisioningType": { "target": "com.amazonaws.cloudformation#ProvisioningType", "traits": { - "smithy.api#documentation": "

For resource type extensions, the provisioning behavior of the resource type. CloudFormation\n determines the provisioning type during registration, based on the types of handlers in the\n schema handler package submitted.

\n

Valid values include:

\n " + "smithy.api#documentation": "

For resource type extensions, the provisioning behavior of the resource type. AWS CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted.

\n

Valid values include:

\n " } }, "DeprecatedStatus": { "target": "com.amazonaws.cloudformation#DeprecatedStatus", "traits": { - "smithy.api#documentation": "

The deprecation status of the extension version.

\n

Valid values include:

\n \n

For public third-party extensions, CloudFormation returns null.

" + "smithy.api#documentation": "

The deprecation status of the extension version.

\n

Valid values include:

\n \n

For public third-party extensions, CloudFormation returns null.

" } }, "LoggingConfig": { "target": "com.amazonaws.cloudformation#LoggingConfig", "traits": { - "smithy.api#documentation": "

Contains logging configuration information for private extensions. This applies only to\n private extensions you have registered in your account. For public extensions, both those\n provided by Amazon and published by third parties, CloudFormation returns\n null. For more information, see RegisterType.

" + "smithy.api#documentation": "

Contains logging configuration information for private extensions. This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon and published by third parties, CloudFormation returns null. For more information, see RegisterType.

" } }, "RequiredActivatedTypes": { "target": "com.amazonaws.cloudformation#RequiredActivatedTypes", "traits": { - "smithy.api#documentation": "

For extensions that are modules, the public third-party extensions that must be\n activated in your account in order for the module itself to be activated.

" + "smithy.api#documentation": "

For extensions that are modules, the public third-party extensions that must be activated in your account in order for the module itself to be activated.

" } }, "ExecutionRoleArn": { "target": "com.amazonaws.cloudformation#RoleARN2", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM execution role used to register the extension.\n This applies only to private extensions you have registered in your account. For more\n information, see RegisterType.

\n

\n

If the registered extension calls any Amazon Web Services APIs, you must create an\n \n IAM\n execution role\n that includes the necessary permissions to call\n those Amazon Web Services APIs, and provision that execution role in your account. CloudFormation then assumes that execution role to provide your extension with the\n appropriate credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM execution role used to register the extension. This applies only to private extensions you have registered in your account. For more information, see RegisterType.

\n

\n

If the registered extension calls any AWS APIs, you must create an \n IAM execution\n role\n that includes the necessary permissions to call those\n AWS APIs, and provision that execution role in your account. CloudFormation then\n assumes that execution role to provide your extension with the appropriate\n credentials.

" } }, "Visibility": { "target": "com.amazonaws.cloudformation#Visibility", "traits": { - "smithy.api#documentation": "

The scope at which the extension is visible and usable in CloudFormation\n operations.

\n

Valid values include:

\n " + "smithy.api#documentation": "

The scope at which the extension is visible and usable in CloudFormation operations.

\n

Valid values include:

\n " } }, "SourceUrl": { @@ -3377,61 +2979,61 @@ "LastUpdated": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When the specified extension version was registered. This applies only to:

\n " + "smithy.api#documentation": "

When the specified extension version was registered. This applies only to:

\n " } }, "TimeCreated": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When the specified private extension version was registered or activated in your\n account.

" + "smithy.api#documentation": "

When the specified private extension version was registered or activated in your account.

" } }, "ConfigurationSchema": { "target": "com.amazonaws.cloudformation#ConfigurationSchema", "traits": { - "smithy.api#documentation": "

A JSON string that represent the current configuration data for the extension in this\n account and region.

\n

To set the configuration data for an extension, use SetTypeConfiguration. For more information, see Configuring extensions at the account level in the CloudFormation\n User Guide.

" + "smithy.api#documentation": "

A JSON string that represent the current configuration data for the extension in this account and region.

\n

To set the configuration data for an extension, use SetTypeConfiguration. For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

" } }, "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The publisher ID of the extension publisher.

\n

This applies only to public third-party extensions. For private registered extensions,\n and extensions provided by Amazon, CloudFormation returns null.

" + "smithy.api#documentation": "

The publisher ID of the extension publisher.

\n

This applies only to public third-party extensions. For private registered extensions, and extensions provided by Amazon, CloudFormation returns null.

" } }, "OriginalTypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the type\n name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this\n account and region, CloudFormation treats that alias as the extension's type name within\n the account and region, not the type name of the public extension. For more information,\n see Specifying aliases to refer to extensions in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the type name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this account and region, CloudFormation treats that alias as the extension's type name within the account and region, not the type name of the public extension. For more information, see Specifying aliases to refer to extensions in the CloudFormation User Guide.

" } }, "OriginalTypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the Amazon\n Resource Name (ARN) of the public extension.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the Amazon Resource Name (ARN) of the public extension.

" } }, "PublicVersionNumber": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

The version number of a public third-party extension.

\n

This applies only if you specify a public extension you have activated in your account,\n or specify a public extension without specifying a version. For all other extensions,\n CloudFormation returns null.

" + "smithy.api#documentation": "

The version number of a public third-party extension.

\n

This applies only if you specify a public extension you have activated in your account, or specify a public extension without specifying a version. For all other extensions, CloudFormation returns null.

" } }, "LatestPublicVersion": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

The latest version of a public extension that is available for\n use.

\n

This only applies if you specify a public extension, and you do not specify a version.\n For all other requests, CloudFormation returns null.

" + "smithy.api#documentation": "

The latest version of a public extension that is available for use.

\n

This only applies if you specify a public extension, and you do not specify a version. For all other requests, CloudFormation returns null.

" } }, "IsActivated": { "target": "com.amazonaws.cloudformation#IsActivated", "traits": { - "smithy.api#documentation": "

Whether or not the extension is activated in the account and region.

\n

This only applies to public third-party extensions. For all other extensions,\n CloudFormation returns null.

" + "smithy.api#documentation": "

Whether or not the extension is activated in the account and region.

\n

This only applies to public third-party extensions. For all other extensions, CloudFormation returns null.

" } }, "AutoUpdate": { "target": "com.amazonaws.cloudformation#AutoUpdate", "traits": { - "smithy.api#documentation": "

Whether CloudFormation automatically updates the extension in this account and region\n when a new minor version is published by the extension publisher.\n Major versions released by the publisher must be manually updated. For more information,\n see Activating public extensions for use in your account in the CloudFormation User Guide.

" + "smithy.api#documentation": "

Whether CloudFormation automatically updates the extension in this account and region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated. For more information, see Activating public extensions for use in your account in the AWS CloudFormation User Guide.

" } } } @@ -3450,7 +3052,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns information about an extension's registration, including its current status and\n type and version identifiers.

\n

When you initiate a registration request using \n RegisterType\n , you can then use \n DescribeTypeRegistration\n to\n monitor the progress of that registration request.

\n

Once the registration request has completed, use \n DescribeType\n to return detailed information about an extension.

", + "smithy.api#documentation": "

Returns information about an extension's registration, including its current status and type and version identifiers.

\n

When you initiate a registration request using \n RegisterType\n , you can then use \n DescribeTypeRegistration\n to monitor the progress of that registration request.

\n

Once the registration request has completed, use \n DescribeType\n to return detailed information about an extension.

", "smithy.api#idempotent": {}, "smithy.waiters#waitable": { "TypeRegistrationComplete": { @@ -3488,7 +3090,7 @@ "RegistrationToken": { "target": "com.amazonaws.cloudformation#RegistrationToken", "traits": { - "smithy.api#documentation": "

The identifier for this registration request.

\n

This registration token is generated by CloudFormation when you initiate a\n registration request using \n RegisterType\n .

", + "smithy.api#documentation": "

The identifier for this registration request.

\n

This registration token is generated by CloudFormation when you initiate a registration request using \n RegisterType\n .

", "smithy.api#required": {} } } @@ -3512,13 +3114,13 @@ "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension being registered.

\n

For registration requests with a ProgressStatus of other than\n COMPLETE, this will be null.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension being registered.

\n

For registration requests with a ProgressStatus of other than COMPLETE, this will be null.

" } }, "TypeVersionArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of this specific version of the extension being\n registered.

\n

For registration requests with a ProgressStatus of other than\n COMPLETE, this will be null.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of this specific version of the extension being registered.

\n

For registration requests with a ProgressStatus of other than COMPLETE, this will be null.

" } } } @@ -3541,7 +3143,7 @@ "target": "com.amazonaws.cloudformation#DetectStackDriftOutput" }, "traits": { - "smithy.api#documentation": "

Detects whether a stack's actual configuration differs, or has\n drifted, from it's expected configuration, as defined in the stack\n template and any values specified as template parameters. For each resource in the stack\n that supports drift detection, CloudFormation compares the actual configuration of the resource with\n its expected template configuration. Only resource properties explicitly defined in the\n stack template are checked for drift. A stack is considered to have drifted if one or more\n of its resources differ from their expected template configurations. For more information,\n see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Use DetectStackDrift to detect drift on all supported resources for a\n given stack, or DetectStackResourceDrift to detect drift on individual\n resources.

\n

For a list of stack resources that currently support drift detection, see Resources that Support Drift Detection.

\n

\n DetectStackDrift can take up to several minutes, depending on the number\n of resources contained within the stack. Use DescribeStackDriftDetectionStatus to monitor the progress of a detect stack\n drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and\n its resources.

\n

When detecting drift on a stack, CloudFormation does not detect drift on any nested stacks\n belonging to that stack. Perform DetectStackDrift directly on the nested stack\n itself.

" + "smithy.api#documentation": "

Detects whether a stack's actual configuration differs, or has\n drifted, from it's expected configuration, as defined in the stack\n template and any values specified as template parameters. For each resource in the stack\n that supports drift detection, AWS CloudFormation compares the actual configuration of the resource with\n its expected template configuration. Only resource properties explicitly defined in the\n stack template are checked for drift. A stack is considered to have drifted if one or more\n of its resources differ from their expected template configurations. For more information,\n see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Use DetectStackDrift to detect drift on all supported resources for a\n given stack, or DetectStackResourceDrift to detect drift on individual\n resources.

\n

For a list of stack resources that currently support drift detection, see Resources that Support Drift Detection.

\n

\n DetectStackDrift can take up to several minutes, depending on the number\n of resources contained within the stack. Use DescribeStackDriftDetectionStatus to monitor the progress of a detect stack\n drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and\n its resources.

\n

When detecting drift on a stack, AWS CloudFormation does not detect drift on any nested stacks\n belonging to that stack. Perform DetectStackDrift directly on the nested stack\n itself.

" } }, "com.amazonaws.cloudformation#DetectStackDriftInput": { @@ -3568,7 +3170,7 @@ "StackDriftDetectionId": { "target": "com.amazonaws.cloudformation#StackDriftDetectionId", "traits": { - "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of drift results CloudFormation retains for any given stack, and for how\n long, may vary.

", + "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of drift results AWS CloudFormation retains for any given stack, and for how\n long, may vary.

", "smithy.api#required": {} } } @@ -3583,7 +3185,7 @@ "target": "com.amazonaws.cloudformation#DetectStackResourceDriftOutput" }, "traits": { - "smithy.api#documentation": "

Returns information about whether a resource's actual configuration differs, or has\n drifted, from it's expected configuration, as defined in the stack\n template and any values specified as template parameters. This information includes actual\n and expected property values for resources in which CloudFormation detects drift. Only resource\n properties explicitly defined in the stack template are checked for drift. For more\n information about stack and resource drift, see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Use DetectStackResourceDrift to detect drift on individual resources, or\n DetectStackDrift to detect drift on all resources in a given stack\n that support drift detection.

\n

Resources that do not currently support drift detection cannot be checked. For a list\n of resources that support drift detection, see Resources that Support Drift Detection.

" + "smithy.api#documentation": "

Returns information about whether a resource's actual configuration differs, or has\n drifted, from it's expected configuration, as defined in the stack\n template and any values specified as template parameters. This information includes actual\n and expected property values for resources in which AWS CloudFormation detects drift. Only resource\n properties explicitly defined in the stack template are checked for drift. For more\n information about stack and resource drift, see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Use DetectStackResourceDrift to detect drift on individual resources, or\n DetectStackDrift to detect drift on all resources in a given stack\n that support drift detection.

\n

Resources that do not currently support drift detection cannot be checked. For a list\n of resources that support drift detection, see Resources that Support Drift Detection.

" } }, "com.amazonaws.cloudformation#DetectStackResourceDriftInput": { @@ -3637,7 +3239,7 @@ } ], "traits": { - "smithy.api#documentation": "

Detect drift on a stack set. When CloudFormation performs drift detection on a\n stack set, it performs drift detection on the stack associated with each stack instance in\n the stack set. For more information, see How CloudFormation Performs Drift Detection on a Stack Set.

\n

\n DetectStackSetDrift returns the OperationId of the stack set\n drift detection operation. Use this operation id with \n DescribeStackSetOperation\n to monitor the progress of the drift\n detection operation. The drift detection operation may take some time, depending on the\n number of stack instances included in the stack set, as well as the number of resources\n included in each stack.

\n

Once the operation has completed, use the following actions to return drift\n information:

\n \n

For more information on performing a drift detection operation on a stack set, see\n Detecting Unmanaged\n Changes in Stack Sets.

\n

You can only run a single drift detection operation on a given stack set at one time.

\n

To stop a drift detection stack set operation, use \n StopStackSetOperation\n .

" + "smithy.api#documentation": "

Detect drift on a stack set. When CloudFormation performs drift detection on a stack\n set, it performs drift detection on the stack associated with each stack instance in the\n stack set. For more information, see How CloudFormation\n Performs Drift Detection on a Stack Set.

\n

\n DetectStackSetDrift returns the OperationId of the stack set\n drift detection operation. Use this operation id with \n DescribeStackSetOperation\n to monitor the progress of the drift\n detection operation. The drift detection operation may take some time, depending on the\n number of stack instances included in the stack set, as well as the number of resources\n included in each stack.

\n

Once the operation has completed, use the following actions to return drift\n information:

\n \n

For more information on performing a drift detection operation on a stack set, see\n Detecting Unmanaged\n Changes in Stack Sets.

\n

You can only run a single drift detection operation on a given stack set at one time.

\n

To stop a drift detection stack set operation, use \n StopStackSetOperation\n .

" } }, "com.amazonaws.cloudformation#DetectStackSetDriftInput": { @@ -3663,7 +3265,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -3745,7 +3347,7 @@ "target": "com.amazonaws.cloudformation#EstimateTemplateCostOutput" }, "traits": { - "smithy.api#documentation": "

Returns the estimated monthly cost of a template. The return value is an Amazon Web Services Simple Monthly Calculator URL with a query string that describes the\n resources required to run the template.

" + "smithy.api#documentation": "

Returns the estimated monthly cost of a template. The return value is an AWS Simple\n Monthly Calculator URL with a query string that describes the resources required to run the\n template.

" } }, "com.amazonaws.cloudformation#EstimateTemplateCostInput": { @@ -3754,13 +3356,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. (For more information, go to Template Anatomy\n in the CloudFormation User Guide.)

\n

Conditional: You must pass TemplateBody or TemplateURL. If\n both are passed, only TemplateBody is used.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. (For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.)

\n

Conditional: You must pass TemplateBody or TemplateURL. If\n both are passed, only TemplateBody is used.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template that\n is located in an Amazon S3 bucket or a Systems Manager document. For more information, go\n to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template that\n is located in an Amazon S3 bucket or a Systems Manager document. For more information, go to\n Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" } }, "Parameters": { @@ -3780,7 +3382,7 @@ "Url": { "target": "com.amazonaws.cloudformation#Url", "traits": { - "smithy.api#documentation": "

An Amazon Web Services Simple Monthly Calculator URL with a query string that\n describes the resources required to run the template.

" + "smithy.api#documentation": "

An AWS Simple Monthly Calculator URL with a query string that describes the resources\n required to run the template.

" } } }, @@ -3829,7 +3431,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates a stack using the input information that was provided when the specified\n change set was created. After the call successfully completes, CloudFormation\n starts updating the stack. Use the DescribeStacks action to view the\n status of the update.

\n

When you execute a change set, CloudFormation deletes all other change sets\n associated with the stack because they aren't valid for the updated stack.

\n

If a stack policy is associated with the stack, CloudFormation enforces the\n policy during the update. You can't specify a temporary stack policy that overrides the\n current policy.

\n

To create a change set for the entire stack hierachy, IncludeNestedStacks\n must have been set to True.

" + "smithy.api#documentation": "

Updates a stack using the input information that was provided when the specified\n change set was created. After the call successfully completes, AWS CloudFormation starts\n updating the stack. Use the DescribeStacks action to view the status of\n the update.

\n

When you execute a change set, AWS CloudFormation deletes all other change sets\n associated with the stack because they aren't valid for the updated stack.

\n

If a stack policy is associated with the stack, AWS CloudFormation enforces the\n policy during the update. You can't specify a temporary stack policy that overrides the\n current policy.

\n

To create a change set for the entire stack hierachy, IncludeNestedStacks\n must have been set to True.

" } }, "com.amazonaws.cloudformation#ExecuteChangeSetInput": { @@ -3851,7 +3453,7 @@ "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this ExecuteChangeSet request. Specify this\n token if you plan to retry requests so that CloudFormation knows that you're not\n attempting to execute a change set to update a stack with the same name. You might retry\n ExecuteChangeSet requests to ensure that CloudFormation\n successfully received them.

" + "smithy.api#documentation": "

A unique identifier for this ExecuteChangeSet request. Specify this\n token if you plan to retry requests so that AWS CloudFormation knows that you're not\n attempting to execute a change set to update a stack with the same name. You might retry\n ExecuteChangeSet requests to ensure that AWS CloudFormation successfully\n received them.

" } } }, @@ -4005,7 +3607,7 @@ "StackPolicyBody": { "target": "com.amazonaws.cloudformation#StackPolicyBody", "traits": { - "smithy.api#documentation": "

Structure containing the stack policy body. (For more information, go to Prevent Updates\n to Stack Resources in the CloudFormation User Guide.)

" + "smithy.api#documentation": "

Structure containing the stack policy body. (For more information, go to Prevent Updates\n to Stack Resources in the AWS CloudFormation User Guide.)

" } } }, @@ -4042,13 +3644,13 @@ "ChangeSetName": { "target": "com.amazonaws.cloudformation#ChangeSetNameOrId", "traits": { - "smithy.api#documentation": "

The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template. If you specify a name, you must also specify the\n StackName.

" + "smithy.api#documentation": "

The name or Amazon Resource Name (ARN) of a change set for which AWS CloudFormation\n returns the associated template. If you specify a name, you must also specify the\n StackName.

" } }, "TemplateStage": { "target": "com.amazonaws.cloudformation#TemplateStage", "traits": { - "smithy.api#documentation": "

For templates that include transforms, the stage of the template that CloudFormation returns. To get the user-submitted template, specify\n Original. To get the template after CloudFormation has processed\n all transforms, specify Processed.

\n

If the template doesn't include transforms, Original and\n Processed return the same template. By default, CloudFormation\n specifies Processed.

" + "smithy.api#documentation": "

For templates that include transforms, the stage of the template that AWS\n CloudFormation returns. To get the user-submitted template, specify Original.\n To get the template after AWS CloudFormation has processed all transforms, specify\n Processed.

\n

If the template doesn't include transforms, Original and\n Processed return the same template. By default, AWS CloudFormation\n specifies Processed.

" } } }, @@ -4062,13 +3664,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body. (For more information, go to Template Anatomy in the CloudFormation User Guide.)

\n

CloudFormation returns the same template that was used when the stack was\n created.

" + "smithy.api#documentation": "

Structure containing the template body. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.)

\n

AWS CloudFormation returns the same template that was used when the stack was\n created.

" } }, "StagesAvailable": { "target": "com.amazonaws.cloudformation#StageList", "traits": { - "smithy.api#documentation": "

The stage of the template that you can retrieve. For stacks, the\n Original and Processed templates are always available. For\n change sets, the Original template is always available. After CloudFormation finishes creating the change set, the Processed template\n becomes available.

" + "smithy.api#documentation": "

The stage of the template that you can retrieve. For stacks, the\n Original and Processed templates are always available. For\n change sets, the Original template is always available. After AWS\n CloudFormation finishes creating the change set, the Processed template\n becomes available.

" } } }, @@ -4099,13 +3701,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information about templates, see Template Anatomy in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n StackName, StackSetName, TemplateBody, or\n TemplateURL.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information about templates, see Template Anatomy in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n StackName, StackSetName, TemplateBody, or\n TemplateURL.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information about templates, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n StackName, StackSetName, TemplateBody, or\n TemplateURL.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information about templates, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n StackName, StackSetName, TemplateBody, or\n TemplateURL.

" } }, "StackName": { @@ -4123,7 +3725,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } }, @@ -4149,7 +3751,7 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

The capabilities found within the template. If your template contains IAM resources,\n you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when\n you use the CreateStack or UpdateStack actions with\n your template; otherwise, those actions return an InsufficientCapabilities error.

\n

For more information, see Acknowledging IAM Resources in CloudFormation Templates.

" + "smithy.api#documentation": "

The capabilities found within the template. If your template contains IAM resources,\n you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when\n you use the CreateStack or UpdateStack actions with\n your template; otherwise, those actions return an InsufficientCapabilities error.

\n

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

" } }, "CapabilitiesReason": { @@ -4167,7 +3769,7 @@ "Version": { "target": "com.amazonaws.cloudformation#Version", "traits": { - "smithy.api#documentation": "

The Amazon Web Services template format version, which identifies the capabilities of\n the template.

" + "smithy.api#documentation": "

The AWS template format version, which identifies the capabilities of the\n template.

" } }, "Metadata": { @@ -4279,87 +3881,6 @@ ] } }, - "com.amazonaws.cloudformation#ImportStacksToStackSet": { - "type": "operation", - "input": { - "target": "com.amazonaws.cloudformation#ImportStacksToStackSetInput" - }, - "output": { - "target": "com.amazonaws.cloudformation#ImportStacksToStackSetOutput" - }, - "errors": [ - { - "target": "com.amazonaws.cloudformation#InvalidOperationException" - }, - { - "target": "com.amazonaws.cloudformation#LimitExceededException" - }, - { - "target": "com.amazonaws.cloudformation#OperationIdAlreadyExistsException" - }, - { - "target": "com.amazonaws.cloudformation#OperationInProgressException" - }, - { - "target": "com.amazonaws.cloudformation#StackNotFoundException" - }, - { - "target": "com.amazonaws.cloudformation#StackSetNotFoundException" - }, - { - "target": "com.amazonaws.cloudformation#StaleRequestException" - } - ], - "traits": { - "smithy.api#documentation": "

Import existing stacks into a new stack sets. Use the stack import operation to import\n up to 10 stacks into a new stack set in the same account as the source stack or in a\n different administrator account and Region, by specifying the stack ID of the stack you\n intend to import.

\n \n

\n ImportStacksToStackSet is only supported by self-managed permissions.

\n
" - } - }, - "com.amazonaws.cloudformation#ImportStacksToStackSetInput": { - "type": "structure", - "members": { - "StackSetName": { - "target": "com.amazonaws.cloudformation#StackSetNameOrId", - "traits": { - "smithy.api#documentation": "

The name of the stack set. The name must be unique in the Region where you create your\n stack set.

", - "smithy.api#required": {} - } - }, - "StackIds": { - "target": "com.amazonaws.cloudformation#StackIdList", - "traits": { - "smithy.api#documentation": "

The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per\n stack set at a time.

", - "smithy.api#required": {} - } - }, - "OperationPreferences": { - "target": "com.amazonaws.cloudformation#StackSetOperationPreferences" - }, - "OperationId": { - "target": "com.amazonaws.cloudformation#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

A unique, user defined, identifier for the stack set operation.

", - "smithy.api#idempotencyToken": {} - } - }, - "CallAs": { - "target": "com.amazonaws.cloudformation#CallAs", - "traits": { - "smithy.api#documentation": "

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " - } - } - } - }, - "com.amazonaws.cloudformation#ImportStacksToStackSetOutput": { - "type": "structure", - "members": { - "OperationId": { - "target": "com.amazonaws.cloudformation#ClientRequestToken", - "traits": { - "smithy.api#documentation": "

The unique identifier for the stack set operation.

" - } - } - } - }, "com.amazonaws.cloudformation#Imports": { "type": "list", "member": { @@ -4451,7 +3972,7 @@ "code": "InvalidStateTransition", "httpResponseCode": 400 }, - "smithy.api#documentation": "

Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to\n users.

", + "smithy.api#documentation": "

Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to users.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4492,7 +4013,7 @@ "code": "LimitExceededException", "httpResponseCode": 400 }, - "smithy.api#documentation": "

The quota for the resource has already been reached.

\n

For information on resource and stack limitations, see Limits in\n the CloudFormation User Guide.

", + "smithy.api#documentation": "

The quota for the resource has already been reached.

\n

For information on resource and stack limitations, see Limits in\n the AWS CloudFormation User Guide.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4515,7 +4036,7 @@ "target": "com.amazonaws.cloudformation#ListChangeSetsOutput" }, "traits": { - "smithy.api#documentation": "

Returns the ID and status of each active change set for a stack. For example, CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or\n CREATE_PENDING state.

", + "smithy.api#documentation": "

Returns the ID and status of each active change set for a stack. For example, AWS\n CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or\n CREATE_PENDING state.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -4573,7 +4094,7 @@ "target": "com.amazonaws.cloudformation#ListExportsOutput" }, "traits": { - "smithy.api#documentation": "

Lists all exported output values in the account and Region in which you call this\n action. Use this action to see the exported output values that you can import into other\n stacks. To import values, use the \n Fn::ImportValue\n function.

\n

For more information, see \n CloudFormation Export Stack Output Values.

", + "smithy.api#documentation": "

Lists all exported output values in the account and Region in which you call this\n action. Use this action to see the exported output values that you can import into other\n stacks. To import values, use the \n Fn::ImportValue\n function.

\n

For more information, see AWS\n CloudFormation Export Stack Output Values.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -4632,7 +4153,7 @@ "ExportName": { "target": "com.amazonaws.cloudformation#ExportName", "traits": { - "smithy.api#documentation": "

The name of the exported output value. CloudFormation returns the stack names\n that are importing this value.

", + "smithy.api#documentation": "

The name of the exported output value. AWS CloudFormation returns the stack names\n that are importing this value.

", "smithy.api#required": {} } }, @@ -4675,7 +4196,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns summary information about stack instances that are associated with the\n specified stack set. You can filter for stack instances that are associated with a specific\n account name or Region, or that have a specific status.

", + "smithy.api#documentation": "

Returns summary information about stack instances that are associated with the\n specified stack set. You can filter for stack instances that are associated with a specific\n AWS account name or Region, or that have a specific status.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -4715,7 +4236,7 @@ "StackInstanceAccount": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

The name of the account that you want to list stack instances\n for.

" + "smithy.api#documentation": "

The name of the AWS account that you want to list stack instances for.

" } }, "StackInstanceRegion": { @@ -4727,7 +4248,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -4865,7 +4386,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -4935,7 +4456,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -4966,7 +4487,7 @@ "target": "com.amazonaws.cloudformation#ListStackSetsOutput" }, "traits": { - "smithy.api#documentation": "

Returns summary information about stack sets that are associated with the\n user.

\n ", + "smithy.api#documentation": "

Returns summary information about stack sets that are associated with the\n user.

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -4999,7 +4520,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the management account or as a delegated administrator in a member\n account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -5107,19 +4628,19 @@ "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "RegistrationStatusFilter": { @@ -5131,13 +4652,13 @@ "MaxResults": { "target": "com.amazonaws.cloudformation#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of\n available results exceeds this maximum, the response includes a NextToken\n value that you can assign to the NextToken request parameter to get the next\n set of results.

" + "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the\n response object's NextToken parameter value is set to a token. To retrieve the\n next set of results, call this action again and assign that token to the request object's\n NextToken parameter. If there are no remaining results, the previous\n response object's NextToken parameter is set to null.

" + "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

" } } } @@ -5148,13 +4669,13 @@ "RegistrationTokenList": { "target": "com.amazonaws.cloudformation#RegistrationTokenList", "traits": { - "smithy.api#documentation": "

A list of extension registration tokens.

\n

Use \n DescribeTypeRegistration\n to return detailed\n information about a type registration request.

" + "smithy.api#documentation": "

A list of extension registration tokens.

\n

Use \n DescribeTypeRegistration\n to return detailed information about a type registration request.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is\n set to a token. To retrieve the next set of results, call this action again and assign that\n token to the request object's NextToken parameter. If the request returns all\n results, NextToken is set to null.

" + "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.

" } } } @@ -5188,37 +4709,37 @@ "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The kind of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension for which you want version summary information.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The name of the extension for which you want version summary information.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "Arn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension for which you want version summary\n information.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension for which you want version summary information.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "MaxResults": { "target": "com.amazonaws.cloudformation#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of\n available results exceeds this maximum, the response includes a NextToken\n value that you can assign to the NextToken request parameter to get the next\n set of results.

" + "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the\n response object's NextToken parameter value is set to a token. To retrieve the\n next set of results, call this action again and assign that token to the request object's\n NextToken parameter. If there are no remaining results, the previous\n response object's NextToken parameter is set to null.

" + "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

" } }, "DeprecatedStatus": { "target": "com.amazonaws.cloudformation#DeprecatedStatus", "traits": { - "smithy.api#documentation": "

The deprecation status of the extension versions that you want to get summary\n information about.

\n

Valid values include:

\n \n

The default is LIVE.

" + "smithy.api#documentation": "

The deprecation status of the extension versions that you want to get summary information about.

\n

Valid values include:

\n \n

The default is LIVE.

" } }, "PublisherId": { @@ -5235,13 +4756,13 @@ "TypeVersionSummaries": { "target": "com.amazonaws.cloudformation#TypeVersionSummaries", "traits": { - "smithy.api#documentation": "

A list of TypeVersionSummary structures that contain information about the\n specified extension's versions.

" + "smithy.api#documentation": "

A list of TypeVersionSummary structures that contain information about the specified extension's versions.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is\n set to a token. To retrieve the next set of results, call this action again and assign that\n token to the request object's NextToken parameter. If the request returns all\n results, NextToken is set to null.

" + "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.

" } } } @@ -5276,19 +4797,19 @@ "Visibility": { "target": "com.amazonaws.cloudformation#Visibility", "traits": { - "smithy.api#documentation": "

The scope at which the extensions are visible and usable in CloudFormation\n operations.

\n

Valid values include:

\n \n

The default is PRIVATE.

" + "smithy.api#documentation": "

The scope at which the extensions are visible and usable in CloudFormation operations.

\n

Valid values include:

\n \n

The default is PRIVATE.

" } }, "ProvisioningType": { "target": "com.amazonaws.cloudformation#ProvisioningType", "traits": { - "smithy.api#documentation": "

For resource types, the provisioning behavior of the resource type. CloudFormation determines the\n provisioning type during registration, based on the types of handlers in the schema handler\n package submitted.

\n

Valid values include:

\n \n

The default is FULLY_MUTABLE.

" + "smithy.api#documentation": "

For resource types, the provisioning behavior of the resource type. AWS CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted.

\n

Valid values include:

\n \n

The default is FULLY_MUTABLE.

" } }, "DeprecatedStatus": { "target": "com.amazonaws.cloudformation#DeprecatedStatus", "traits": { - "smithy.api#documentation": "

The deprecation status of the extension that you want to get summary information\n about.

\n

Valid values include:

\n " + "smithy.api#documentation": "

The deprecation status of the extension that you want to get summary information about.

\n

Valid values include:

\n " } }, "Type": { @@ -5300,19 +4821,19 @@ "Filters": { "target": "com.amazonaws.cloudformation#TypeFilters", "traits": { - "smithy.api#documentation": "

Filter criteria to use in determining which extensions to return.

\n

If you specify a filter, CloudFormation ignores any specified Visibility\n value when returning the list of types.

" + "smithy.api#documentation": "

Filter criteria to use in determining which extensions to return.

\n

If you specify a filter, CloudFormation ignores any specified Visibility value when returning the list of types.

" } }, "MaxResults": { "target": "com.amazonaws.cloudformation#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of\n available results exceeds this maximum, the response includes a NextToken\n value that you can assign to the NextToken request parameter to get the next\n set of results.

" + "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the\n response object's NextToken parameter value is set to a token. To retrieve the\n next set of results, call this action again and assign that token to the request object's\n NextToken parameter. If there are no remaining results, the previous\n response object's NextToken parameter is set to null.

" + "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

" } } } @@ -5323,13 +4844,13 @@ "TypeSummaries": { "target": "com.amazonaws.cloudformation#TypeSummaries", "traits": { - "smithy.api#documentation": "

A list of TypeSummary structures that contain information about the\n specified extensions.

" + "smithy.api#documentation": "

A list of TypeSummary structures that contain information about the specified extensions.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is\n set to a token. To retrieve the next set of results, call this action again and assign that\n token to the request object's NextToken parameter. If the request returns all\n results, NextToken is set to null.

" + "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.

" } } } @@ -5350,14 +4871,14 @@ "LogRoleArn": { "target": "com.amazonaws.cloudformation#RoleARN2", "traits": { - "smithy.api#documentation": "

The ARN of the role that CloudFormation should assume when sending log entries\n to CloudWatch logs.

", + "smithy.api#documentation": "

The ARN of the role that CloudFormation should assume when sending log entries to CloudWatch logs.

", "smithy.api#required": {} } }, "LogGroupName": { "target": "com.amazonaws.cloudformation#LogGroupName", "traits": { - "smithy.api#documentation": "

The Amazon CloudWatch log group to which CloudFormation sends error logging\n information when invoking the extension's handlers.

", + "smithy.api#documentation": "

The Amazon CloudWatch log group to which CloudFormation sends error logging information when invoking the extension's handlers.

", "smithy.api#required": {} } } @@ -5432,18 +4953,18 @@ "TypeHierarchy": { "target": "com.amazonaws.cloudformation#TypeHierarchy", "traits": { - "smithy.api#documentation": "

A concantenated list of the the module type or types containing the resource. Module\n types are listed starting with the inner-most nested module, and separated by\n /.

\n

In the following example, the resource was created from a module of type\n AWS::First::Example::MODULE, that is nested inside a parent module of type\n AWS::Second::Example::MODULE.

\n

\n AWS::First::Example::MODULE/AWS::Second::Example::MODULE\n

" + "smithy.api#documentation": "

A concantenated list of the the module type or types containing the resource. Module types are listed starting with the inner-most nested module, and separated by /.

\n

In the following example, the resource was created from a module of type AWS::First::Example::MODULE, that is nested inside a parent module of type AWS::Second::Example::MODULE.

\n

\n AWS::First::Example::MODULE/AWS::Second::Example::MODULE\n

" } }, "LogicalIdHierarchy": { "target": "com.amazonaws.cloudformation#LogicalIdHierarchy", "traits": { - "smithy.api#documentation": "

A concantenated list of the logical IDs of the module or modules containing the\n resource. Modules are listed starting with the inner-most nested module, and separated by\n /.

\n

In the following example, the resource was created from a module, moduleA,\n that is nested inside a parent module, moduleB.

\n

\n moduleA/moduleB\n

\n

For more information, see Referencing\n resources in a module in the CloudFormation User\n Guide.

" + "smithy.api#documentation": "

A concantenated list of the logical IDs of the module or modules containing the resource. Modules are listed starting with the inner-most nested module, and separated by /.

\n

In the following example, the resource was created from a module, moduleA, that is nested inside a parent module, moduleB.

\n

\n moduleA/moduleB\n

\n

For more information, see Referencing resources in a module in the CloudFormation User Guide.

" } } }, "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

\n

For more information on modules, see Using modules to encapsulate and\n reuse resource configurations in the CloudFormation User\n Guide.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

\n

For more information on modules, see Using modules to encapsulate and reuse resource configurations in the CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#MonitoringTimeInMinutes": { @@ -5608,7 +5129,7 @@ "code": "ConditionalCheckFailed", "httpResponseCode": 400 }, - "smithy.api#documentation": "

Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to\n users.

", + "smithy.api#documentation": "

Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to users.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -5684,7 +5205,7 @@ "ParameterKey": { "target": "com.amazonaws.cloudformation#ParameterKey", "traits": { - "smithy.api#documentation": "

The key associated with the parameter. If you don't specify a key and value for a\n particular parameter, CloudFormation uses the default value that is specified in\n your template.

" + "smithy.api#documentation": "

The key associated with the parameter. If you don't specify a key and value for a\n particular parameter, AWS CloudFormation uses the default value that is specified in your\n template.

" } }, "ParameterValue": { @@ -5721,7 +5242,7 @@ } }, "traits": { - "smithy.api#documentation": "

A set of criteria that CloudFormation uses to validate parameter values.\n Although other constraints might be defined in the stack template, CloudFormation\n returns only the AllowedValues property.

" + "smithy.api#documentation": "

A set of criteria that AWS CloudFormation uses to validate parameter values. Although\n other constraints might be defined in the stack template, AWS CloudFormation returns only\n the AllowedValues property.

" } }, "com.amazonaws.cloudformation#ParameterDeclaration": { @@ -5748,7 +5269,7 @@ "NoEcho": { "target": "com.amazonaws.cloudformation#NoEcho", "traits": { - "smithy.api#documentation": "

Flag that indicates whether the parameter value is shown as plain text in logs and in\n the Management Console.

" + "smithy.api#documentation": "

Flag that indicates whether the parameter value is shown as plain text in logs and in\n the AWS Management Console.

" } }, "Description": { @@ -5760,7 +5281,7 @@ "ParameterConstraints": { "target": "com.amazonaws.cloudformation#ParameterConstraints", "traits": { - "smithy.api#documentation": "

The criteria that CloudFormation uses to validate parameter values.

" + "smithy.api#documentation": "

The criteria that AWS CloudFormation uses to validate parameter values.

" } } }, @@ -5838,7 +5359,7 @@ } }, "traits": { - "smithy.api#documentation": "

Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses\n context key-value pairs in cases where a resource's logical and physical IDs are not enough\n to uniquely identify that resource. Each context key-value pair specifies a resource that\n contains the targeted resource.

" + "smithy.api#documentation": "

Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses\n context key-value pairs in cases where a resource's logical and physical IDs are not enough\n to uniquely identify that resource. Each context key-value pair specifies a resource that\n contains the targeted resource.

" } }, "com.amazonaws.cloudformation#PrivateTypeArn": { @@ -5950,7 +5471,7 @@ } ], "traits": { - "smithy.api#documentation": "

Publishes the specified extension to the CloudFormation registry as a public extension\n in this region. Public extensions are available for use by all CloudFormation users. For\n more information on publishing extensions, see Publishing extensions to make them available for public use in the\n CloudFormation CLI User Guide.

\n

To publish an extension, you must be registered as a publisher with CloudFormation. For\n more information, see RegisterPublisher.

", + "smithy.api#documentation": "

Publishes the specified extension to the CloudFormation registry as a public extension in this region. Public extensions are available for use by all CloudFormation users. For more information on publishing extensions, see Publishing extensions to make them available for public use in the CloudFormation CLI User Guide.

\n

To publish an extension, you must be registered as a publisher with CloudFormation. For more information, see RegisterPublisher.

", "smithy.api#idempotent": {} } }, @@ -5960,25 +5481,25 @@ "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The type of the extension.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" + "smithy.api#documentation": "

The type of the extension.

\n

Conditional: You must specify Arn, or TypeName and Type.

" } }, "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the extension.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the extension.

\n

Conditional: You must specify Arn, or TypeName and Type.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify Arn, or TypeName and Type.

" } }, "PublicVersionNumber": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

The version number to assign to this version of the extension.

\n

Use the following format, and adhere to semantic versioning when assigning a version\n number to your extension:

\n

\n MAJOR.MINOR.PATCH\n

\n

For more information, see Semantic Versioning\n 2.0.0.

\n

If you do not specify a version number, CloudFormation increments the version number by\n one minor version release.

\n

The first time you publish a type, CloudFormation sets the version number to 1.0.0,\n regardless of the value you specify.

" + "smithy.api#documentation": "

The version number to assign to this version of the extension.

\n

Use the following format, and adhere to semantic versioning when assigning a version number to your extension:

\n

\n MAJOR.MINOR.PATCH\n

\n

For more information, see Semantic Versioning 2.0.0.

\n

If you do not specify a version number, CloudFormation increments the version number by one minor version release.

" } } } @@ -5989,7 +5510,7 @@ "PublicTypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) assigned to the public extension upon\n publication.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) assigned to the public extension upon publication.

" } } } @@ -6157,7 +5678,7 @@ } ], "traits": { - "smithy.api#documentation": "

Registers your account as a publisher of public extensions in the CloudFormation\n registry. Public extensions are available for use by all CloudFormation users. This\n publisher ID applies to your account in all Regions.

\n

For information on requirements for registering as a public extension publisher, see\n Registering your account to publish CloudFormation\n extensions in the CloudFormation CLI User Guide.

\n

", + "smithy.api#documentation": "

Registers your account as a publisher of public extensions in the CloudFormation registry. Public extensions are available for use by all CloudFormation users. This publisher ID applies to your account in all AWS regions.

\n

For information on requirements for registering as a public extension publisher, see Registering your account to publish CloudFormation extensions in the CloudFormation CLI User Guide.

\n

", "smithy.api#idempotent": {} } }, @@ -6167,13 +5688,13 @@ "AcceptTermsAndConditions": { "target": "com.amazonaws.cloudformation#AcceptTermsAndConditions", "traits": { - "smithy.api#documentation": "

Whether you accept the Terms and Conditions for publishing extensions in the CloudFormation registry.\n You must accept the terms and conditions in order to register to publish public extensions\n to the CloudFormation registry.

\n

The default is false.

" + "smithy.api#documentation": "

Whether you accept the terms and conditions for publishing extensions in the CloudFormation registry. You must accept the terms and conditions in order to register to publish public extensions to the CloudFormation registry.

\n

The default is false.

" } }, "ConnectionArn": { "target": "com.amazonaws.cloudformation#ConnectionArn", "traits": { - "smithy.api#documentation": "

If you are using a Bitbucket or GitHub account for identity verification, the Amazon\n Resource Name (ARN) for your connection to that account.

\n

For more information, see Registering your account to publish CloudFormation\n extensions in the CloudFormation CLI User Guide.

" + "smithy.api#documentation": "

If you are using a Bitbucket or GitHub account for identity verification, the Amazon Resource Name (ARN) for your connection to that account.

\n

For more information, see Registering your account to publish CloudFormation extensions in the CloudFormation CLI User Guide.

" } } } @@ -6203,7 +5724,7 @@ } ], "traits": { - "smithy.api#documentation": "

Registers an extension with the CloudFormation service. Registering an\n extension makes it available for use in CloudFormation templates in your account, and includes:

\n \n

For more information on how to develop extensions and ready them for registeration, see\n Creating Resource\n Providers in the CloudFormation CLI User\n Guide.

\n

You can have a maximum of 50 resource extension versions registered at a time. This\n maximum is per account and per region. Use DeregisterType to deregister specific extension versions if necessary.

\n

Once you have initiated a registration request using \n RegisterType\n , you can use \n DescribeTypeRegistration\n to\n monitor the progress of the registration request.

\n

Once you have registered a private extension in your account and region, use SetTypeConfiguration to specify configuration properties for the extension. For\n more information, see Configuring extensions at the account level in the CloudFormation\n User Guide.

", + "smithy.api#documentation": "

Registers an extension with the CloudFormation service. Registering an extension makes it available for use in CloudFormation templates in your AWS account, and includes:

\n \n

For more information on how to develop extensions and ready them for registeration, see Creating Resource Providers in the CloudFormation CLI User Guide.

\n

You can have a maximum of 50 resource extension versions registered at a time. This maximum is per account and per region. Use DeregisterType to deregister specific extension versions if necessary.

\n

Once you have initiated a registration request using \n RegisterType\n , you can use \n DescribeTypeRegistration\n to monitor the progress of the registration request.

\n

Once you have registered a private extension in your account and region, use SetTypeConfiguration to specify configuration properties for the extension. For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

", "smithy.api#idempotent": {} } }, @@ -6219,14 +5740,14 @@ "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension being registered.

\n

We recommend that extension names adhere to the following patterns:

\n \n\n \n

The following organization namespaces are reserved and cannot be used in your\n extension names:

\n \n
", + "smithy.api#documentation": "

The name of the extension being registered.

\n

We recommend that extension names adhere to the following patterns:

\n \n \n \n

The following organization namespaces are reserved and cannot be used in your extension names:

\n \n
", "smithy.api#required": {} } }, "SchemaHandlerPackage": { "target": "com.amazonaws.cloudformation#S3Url", "traits": { - "smithy.api#documentation": "

A url to the S3 bucket containing the extension project package that contains the\n neccessary files for the extension you want to register.

\n

For information on generating a schema handler package for the extension you want to\n register, see submit\n in the CloudFormation CLI User Guide.

\n \n

The user registering the extension must be able to access the package in the S3\n bucket. That is, the user needs to have GetObject permissions for the\n schema handler package. For more information, see Actions, Resources, and Condition Keys\n for Amazon S3 in the Identity and Access Management User\n Guide.

\n
", + "smithy.api#documentation": "

A url to the S3 bucket containing the extension project package that contains the neccessary files for the extension you want to register.

\n

For information on generating a schema handler package for the extension you want to register, see submit in the CloudFormation CLI User Guide.

\n \n

The\n user registering the extension must be able to access the package in the S3 bucket. That is, the user needs to have GetObject permissions\n for the schema handler package. For\n more information, see Actions, Resources, and Condition Keys for Amazon S3 in the\n AWS Identity and Access Management User Guide.

\n
", "smithy.api#required": {} } }, @@ -6239,13 +5760,13 @@ "ExecutionRoleArn": { "target": "com.amazonaws.cloudformation#RoleARN2", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume\n when invoking the extension.

\n

For CloudFormation to assume the specified execution role, the role must contain a trust\n relationship with the CloudFormation service principle\n (resources.cloudformation.amazonaws.com). For more information on adding\n trust relationships, see Modifying a role trust policy in the Identity and Access Management User\n Guide.

\n

If your extension calls Amazon Web Services APIs in any of its handlers, you must create\n an \n IAM\n execution role\n that includes the necessary permissions to call\n those Amazon Web Services APIs, and provision that execution role in your account. When\n CloudFormation needs to invoke the resource type handler, CloudFormation assumes this\n execution role to create a temporary session token, which it then passes to the resource\n type handler, thereby supplying your resource type with the appropriate credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the extension.

\n

For CloudFormation to assume the specified execution role, the role must contain a trust relationship with the CloudFormation service principle (resources.cloudformation.amazonaws.com). For more information on adding trust relationships, see Modifying a role trust policy in the AWS Identity and Access Management User Guide.

\n

If your extension calls AWS APIs in any of its handlers, you must create an\n \n IAM execution\n role\n that includes the necessary permissions to call those\n AWS APIs, and provision that execution role in your account. When CloudFormation needs to invoke the resource type handler, CloudFormation assumes this execution role to create a temporary session token, which it then passes to the resource type handler, thereby supplying your resource type with the appropriate credentials.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#RequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier that acts as an idempotency key for this registration request.\n Specifying a client request token prevents CloudFormation from generating more\n than one version of an extension from the same registeration request, even if the request\n is submitted multiple times.

" + "smithy.api#documentation": "

A unique identifier that acts as an idempotency key for this registration request. Specifying a client request token prevents CloudFormation from generating more than one version of an extension from the same registeration request, even if the request is submitted multiple times.

" } } } @@ -6256,7 +5777,7 @@ "RegistrationToken": { "target": "com.amazonaws.cloudformation#RegistrationToken", "traits": { - "smithy.api#documentation": "

The identifier for this registration request.

\n

Use this registration token when calling \n DescribeTypeRegistration\n , which returns information about the status and IDs of the extension\n registration.

" + "smithy.api#documentation": "

The identifier for this registration request.

\n

Use this registration token when calling \n DescribeTypeRegistration\n , which returns information about the status and IDs of the extension registration.

" } } } @@ -6346,13 +5867,13 @@ "TypeNameAlias": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

An alias assigned to the public extension, in this account and region. If you specify an\n alias for the extension, CloudFormation treats the alias as the extension type name within\n this account and region. You must use the alias to refer to the extension in your\n templates, API calls, and CloudFormation console.

" + "smithy.api#documentation": "

An alias assigned to the public extension, in this account and region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.

" } }, "OriginalTypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The type name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this\n account and region, CloudFormation treats that alias as the extension's type name within\n the account and region, not the type name of the public extension. For more information,\n see Specifying aliases to refer to extensions in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

The type name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this account and region, CloudFormation treats that alias as the extension's type name within the account and region, not the type name of the public extension. For more information, see Specifying aliases to refer to extensions in the CloudFormation User Guide.

" } }, "PublisherId": { @@ -6369,7 +5890,7 @@ } }, "traits": { - "smithy.api#documentation": "

For extensions that are modules, a public third-party extension that must be activated\n in your account in order for the module itself to be activated.

\n

For more information, see Activating public\n modules for use in your account in the CloudFormation User\n Guide.

" + "smithy.api#documentation": "

For extensions that are modules, a public third-party extension that must be activated in your account in order for the module itself to be activated.

\n

For more information, see Activating public modules for use in your account in the AWS CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#RequiredActivatedTypes": { @@ -6434,7 +5955,7 @@ "Action": { "target": "com.amazonaws.cloudformation#ChangeAction", "traits": { - "smithy.api#documentation": "

The action that CloudFormation takes on the resource, such as\n Add (adds a new resource), Modify (changes a resource),\n Remove (deletes a resource), Import (imports a resource), or\n Dynamic (exact action for the resource cannot be determined).

" + "smithy.api#documentation": "

The action that AWS CloudFormation takes on the resource, such as Add\n (adds a new resource), Modify (changes a resource), Remove\n (deletes a resource), Import (imports a resource), or Dynamic\n (exact action for the resource cannot be determined).

" } }, "LogicalResourceId": { @@ -6452,13 +5973,13 @@ "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

The type of CloudFormation resource, such as\n AWS::S3::Bucket.

" + "smithy.api#documentation": "

The type of AWS CloudFormation resource, such as\n AWS::S3::Bucket.

" } }, "Replacement": { "target": "com.amazonaws.cloudformation#Replacement", "traits": { - "smithy.api#documentation": "

For the Modify action, indicates whether CloudFormation will\n replace the resource by creating a new one and deleting the old one. This value depends on\n the value of the RequiresRecreation property in the\n ResourceTargetDefinition structure. For example, if the\n RequiresRecreation field is Always and the\n Evaluation field is Static, Replacement is\n True. If the RequiresRecreation field is Always\n and the Evaluation field is Dynamic, Replacement is\n Conditionally.

\n

If you have multiple changes with different RequiresRecreation values,\n the Replacement value depends on the change with the most impact. A\n RequiresRecreation value of Always has the most impact,\n followed by Conditionally, and then Never.

" + "smithy.api#documentation": "

For the Modify action, indicates whether AWS CloudFormation will replace\n the resource by creating a new one and deleting the old one. This value depends on the\n value of the RequiresRecreation property in the\n ResourceTargetDefinition structure. For example, if the\n RequiresRecreation field is Always and the\n Evaluation field is Static, Replacement is\n True. If the RequiresRecreation field is Always\n and the Evaluation field is Dynamic, Replacement is\n Conditionally.

\n

If you have multiple changes with different RequiresRecreation values,\n the Replacement value depends on the change with the most impact. A\n RequiresRecreation value of Always has the most impact,\n followed by Conditionally, and then Never.

" } }, "Scope": { @@ -6470,7 +5991,7 @@ "Details": { "target": "com.amazonaws.cloudformation#ResourceChangeDetails", "traits": { - "smithy.api#documentation": "

For the Modify action, a list of ResourceChangeDetail\n structures that describes the changes that CloudFormation will make to the\n resource.

" + "smithy.api#documentation": "

For the Modify action, a list of ResourceChangeDetail\n structures that describes the changes that AWS CloudFormation will make to the resource.\n

" } }, "ChangeSetId": { @@ -6482,12 +6003,12 @@ "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" } } }, "traits": { - "smithy.api#documentation": "

The ResourceChange structure describes the resource and the action that\n CloudFormation will perform on it if you execute this change set.

" + "smithy.api#documentation": "

The ResourceChange structure describes the resource and the action that\n AWS CloudFormation will perform on it if you execute this change set.

" } }, "com.amazonaws.cloudformation#ResourceChangeDetail": { @@ -6496,19 +6017,19 @@ "Target": { "target": "com.amazonaws.cloudformation#ResourceTargetDefinition", "traits": { - "smithy.api#documentation": "

A ResourceTargetDefinition structure that describes the field that\n CloudFormation will change and whether the resource will be recreated.

" + "smithy.api#documentation": "

A ResourceTargetDefinition structure that describes the field that AWS\n CloudFormation will change and whether the resource will be recreated.

" } }, "Evaluation": { "target": "com.amazonaws.cloudformation#EvaluationType", "traits": { - "smithy.api#documentation": "

Indicates whether CloudFormation can determine the target value, and whether\n the target value will change before you execute a change set.

\n

For Static evaluations, CloudFormation can determine that the\n target value will change, and its value. For example, if you directly modify the\n InstanceType property of an EC2 instance, CloudFormation knows that\n this property value will change, and its value, so this is a Static\n evaluation.

\n

For Dynamic evaluations, cannot determine the target value because it\n depends on the result of an intrinsic function, such as a Ref or\n Fn::GetAtt intrinsic function, when the stack is updated. For example, if\n your template includes a reference to a resource that is conditionally recreated, the value\n of the reference (the physical ID of the resource) might change, depending on if the\n resource is recreated. If the resource is recreated, it will have a new physical ID, so all\n references to that resource will also be updated.

" + "smithy.api#documentation": "

Indicates whether AWS CloudFormation can determine the target value, and whether the\n target value will change before you execute a change set.

\n

For Static evaluations, AWS CloudFormation can determine that the target\n value will change, and its value. For example, if you directly modify the\n InstanceType property of an EC2 instance, AWS CloudFormation knows that\n this property value will change, and its value, so this is a Static\n evaluation.

\n

For Dynamic evaluations, cannot determine the target value because it\n depends on the result of an intrinsic function, such as a Ref or\n Fn::GetAtt intrinsic function, when the stack is updated. For example, if\n your template includes a reference to a resource that is conditionally recreated, the value\n of the reference (the physical ID of the resource) might change, depending on if the\n resource is recreated. If the resource is recreated, it will have a new physical ID, so all\n references to that resource will also be updated.

" } }, "ChangeSource": { "target": "com.amazonaws.cloudformation#ChangeSource", "traits": { - "smithy.api#documentation": "

The group to which the CausingEntity value belongs. There are five\n entity groups:

\n " + "smithy.api#documentation": "

The group to which the CausingEntity value belongs. There are five\n entity groups:

\n " } }, "CausingEntity": { @@ -6519,7 +6040,7 @@ } }, "traits": { - "smithy.api#documentation": "

For a resource with Modify as the action, the\n ResourceChange structure describes the changes CloudFormation will\n make to that resource.

" + "smithy.api#documentation": "

For a resource with Modify as the action, the\n ResourceChange structure describes the changes AWS CloudFormation will make\n to that resource.

" } }, "com.amazonaws.cloudformation#ResourceChangeDetails": { @@ -6727,12 +6248,12 @@ "RequiresRecreation": { "target": "com.amazonaws.cloudformation#RequiresRecreation", "traits": { - "smithy.api#documentation": "

If the Attribute value is Properties, indicates whether a\n change to this property causes the resource to be recreated. The value can be\n Never, Always, or Conditionally. To determine the\n conditions for a Conditionally recreation, see the update behavior for that\n property in the CloudFormation User Guide.

" + "smithy.api#documentation": "

If the Attribute value is Properties, indicates whether a\n change to this property causes the resource to be recreated. The value can be\n Never, Always, or Conditionally. To determine the\n conditions for a Conditionally recreation, see the update behavior for that\n property in the AWS CloudFormation User Guide.

" } } }, "traits": { - "smithy.api#documentation": "

The field that CloudFormation will change, such as the name of a resource's\n property, and whether the resource will be recreated.

" + "smithy.api#documentation": "

The field that AWS CloudFormation will change, such as the name of a resource's\n property, and whether the resource will be recreated.

" } }, "com.amazonaws.cloudformation#ResourceToImport": { @@ -6741,7 +6262,7 @@ "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

The type of resource to import into your stack, such as AWS::S3::Bucket.\n For a list of supported resource types, see Resources that support import operations in the CloudFormation User\n Guide.

", + "smithy.api#documentation": "

The type of resource to import into your stack, such as AWS::S3::Bucket. For a list of supported resource types, see Resources that support import operations in the AWS CloudFormation User Guide.

", "smithy.api#required": {} } }, @@ -6849,18 +6370,18 @@ "RollbackTriggers": { "target": "com.amazonaws.cloudformation#RollbackTriggers", "traits": { - "smithy.api#documentation": "

The triggers to monitor during stack creation or update actions.

\n

By default, CloudFormation saves the rollback triggers specified for a stack and applies them\n to any subsequent update operations for the stack, unless you specify otherwise. If you do\n specify rollback triggers for this parameter, those triggers replace any list of triggers\n previously specified for the stack. This means:

\n \n

If a specified trigger is missing, the entire stack operation fails and is rolled\n back.

" + "smithy.api#documentation": "

The triggers to monitor during stack creation or update actions.

\n

By default, AWS CloudFormation saves the rollback triggers specified for a stack and applies them\n to any subsequent update operations for the stack, unless you specify otherwise. If you do\n specify rollback triggers for this parameter, those triggers replace any list of triggers\n previously specified for the stack. This means:

\n \n

If a specified trigger is missing, the entire stack operation fails and is rolled\n back.

" } }, "MonitoringTimeInMinutes": { "target": "com.amazonaws.cloudformation#MonitoringTimeInMinutes", "traits": { - "smithy.api#documentation": "

The amount of time, in minutes, during which CloudFormation should monitor\n all the rollback triggers after the stack creation or update operation deploys all\n necessary resources.

\n

The default is 0 minutes.

\n

If you specify a monitoring period but do not specify any rollback triggers, CloudFormation still waits the specified period of time before cleaning up old\n resources after update operations. You can use this monitoring period to perform any manual\n stack validation desired, and manually cancel the stack creation or update (using CancelUpdateStack, for example) as necessary.

\n

If you specify 0 for this parameter, CloudFormation still monitors the\n specified rollback triggers during stack creation and update operations. Then, for update\n operations, it begins disposing of old resources immediately once the operation\n completes.

" + "smithy.api#documentation": "

The amount of time, in minutes, during which CloudFormation should monitor all the\n rollback triggers after the stack creation or update operation deploys all necessary\n resources.

\n

The default is 0 minutes.

\n

If you specify a monitoring period but do not specify any rollback triggers,\n CloudFormation still waits the specified period of time before cleaning up old resources\n after update operations. You can use this monitoring period to perform any manual stack\n validation desired, and manually cancel the stack creation or update (using CancelUpdateStack, for example) as necessary.

\n

If you specify 0 for this parameter, CloudFormation still monitors the specified\n rollback triggers during stack creation and update operations. Then, for update operations,\n it begins disposing of old resources immediately once the operation completes.

" } } }, "traits": { - "smithy.api#documentation": "

Structure containing the rollback triggers for CloudFormation to monitor during stack creation\n and updating operations, and for the specified monitoring period afterwards.

\n

Rollback triggers enable you to have CloudFormation monitor the state of your application\n during stack creation and updating, and to roll back that operation if the application\n breaches the threshold of any of the alarms you've specified. For more information, see\n Monitor and Roll Back Stack\n Operations.

" + "smithy.api#documentation": "

Structure containing the rollback triggers for AWS CloudFormation to monitor during stack creation\n and updating operations, and for the specified monitoring period afterwards.

\n

Rollback triggers enable you to have AWS CloudFormation monitor the state of your application\n during stack creation and updating, and to roll back that operation if the application\n breaches the threshold of any of the alarms you've specified. For more information, see\n Monitor and Roll Back Stack\n Operations.

" } }, "com.amazonaws.cloudformation#RollbackTrigger": { @@ -6882,7 +6403,7 @@ } }, "traits": { - "smithy.api#documentation": "

A rollback trigger CloudFormation monitors during creation and updating of stacks. If any of\n the alarms you specify goes to ALARM state during the stack operation or within the\n specified monitoring period afterwards, CloudFormation rolls back the entire stack\n operation.

" + "smithy.api#documentation": "

A rollback trigger AWS CloudFormation monitors during creation and updating of stacks. If any of\n the alarms you specify goes to ALARM state during the stack operation or within the\n specified monitoring period afterwards, CloudFormation rolls back the entire stack\n operation.

" } }, "com.amazonaws.cloudformation#RollbackTriggers": { @@ -6944,13 +6465,13 @@ "StackPolicyBody": { "target": "com.amazonaws.cloudformation#StackPolicyBody", "traits": { - "smithy.api#documentation": "

Structure containing the stack policy body. For more information, go to Prevent Updates\n to Stack Resources in the CloudFormation User Guide. You can specify\n either the StackPolicyBody or the StackPolicyURL parameter, but\n not both.

" + "smithy.api#documentation": "

Structure containing the stack policy body. For more information, go to Prevent Updates\n to Stack Resources in the AWS CloudFormation User Guide. You can specify either\n the StackPolicyBody or the StackPolicyURL parameter, but not\n both.

" } }, "StackPolicyURL": { "target": "com.amazonaws.cloudformation#StackPolicyURL", "traits": { - "smithy.api#documentation": "

Location of a file containing the stack policy. The URL must point to a policy\n (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack. You can\n specify either the StackPolicyBody or the StackPolicyURL\n parameter, but not both.

" + "smithy.api#documentation": "

Location of a file containing the stack policy. The URL must point to a policy\n (maximum size: 16 KB) located in an S3 bucket in the same\n Region as the stack. You can specify either the StackPolicyBody or the\n StackPolicyURL parameter, but not both.

" } } }, @@ -6975,7 +6496,7 @@ } ], "traits": { - "smithy.api#documentation": "

Specifies the configuration data for a registered CloudFormation extension, in the given\n account and region.

\n

To view the current configuration data for an extension, refer to the\n ConfigurationSchema element of DescribeType.\n For more information, see Configuring extensions at the account level in the\n CloudFormation User Guide.

\n \n

It is strongly recommended that you use dynamic references to restrict sensitive\n configuration definitions, such as third-party credentials. For more details on dynamic\n references, see Using dynamic references to specify\n template values in the CloudFormation User\n Guide.

\n
" + "smithy.api#documentation": "

Specifies the configuration data for a registered CloudFormation extension, in the given account and region.

\n

To view the current configuration data for an extension, refer to the ConfigurationSchema element of DescribeType. For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

\n \n

It is strongly recommended that you use dynamic references to restrict sensitive configuration definitions, such as third-party credentials. For more details on dynamic references, see Using dynamic references to specify template values in the AWS CloudFormation User Guide.

\n
" } }, "com.amazonaws.cloudformation#SetTypeConfigurationInput": { @@ -6984,32 +6505,32 @@ "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will\n be the ARN assigned when you register the type in this account and region.

\n

Do not include the extension versions suffix at the end of the ARN. You can set the\n configuration for an extension, but not for a specific extension version.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will be the ARN assigned when you register the type in this account and region.

\n

Do not include the extension versions suffix at the end of the ARN. You can set the configuration for an extension, but not for a specific extension version.

" } }, "Configuration": { "target": "com.amazonaws.cloudformation#TypeConfiguration", "traits": { - "smithy.api#documentation": "

The configuration data for the extension, in this account and region.

\n

The configuration data must be formatted as JSON, and validate against the schema\n returned in the ConfigurationSchema response element of API_DescribeType. For more information, see Defining account-level configuration data for an extension in the\n CloudFormation CLI User Guide.

", + "smithy.api#documentation": "

The configuration data for the extension, in this account and region.

\n

The configuration data must be formatted as JSON, and validate against the schema returned in the ConfigurationSchema response element of API_DescribeType. For more information, see Defining account-level configuration data for an extension in the CloudFormation CLI User Guide.

", "smithy.api#required": {} } }, "ConfigurationAlias": { "target": "com.amazonaws.cloudformation#TypeConfigurationAlias", "traits": { - "smithy.api#documentation": "

An alias by which to refer to this extension configuration data.

\n

Conditional: Specifying a configuration alias is required when setting a configuration\n for a resource type extension.

" + "smithy.api#documentation": "

An alias by which to refer to this extension configuration data.

\n

Conditional: Specifying a configuration alias is required when setting a configuration for a resource type extension.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify ConfigurationArn, or Type and\n TypeName.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify ConfigurationArn, or Type and TypeName.

" } }, "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The type of extension.

\n

Conditional: You must specify ConfigurationArn, or Type and\n TypeName.

" + "smithy.api#documentation": "

The type of extension.

\n

Conditional: You must specify ConfigurationArn, or Type and TypeName.

" } } } @@ -7020,7 +6541,7 @@ "ConfigurationArn": { "target": "com.amazonaws.cloudformation#TypeConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the configuration data, in this account and\n region.

\n

Conditional: You must specify ConfigurationArn, or Type and\n TypeName.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the configuration data, in this account and region.

\n

Conditional: You must specify ConfigurationArn, or Type and TypeName.

" } } } @@ -7042,7 +6563,7 @@ } ], "traits": { - "smithy.api#documentation": "

Specify the default version of an extension. The default version of an extension will be\n used in CloudFormation operations.

", + "smithy.api#documentation": "

Specify the default version of an extension. The default version of an extension will be used in CloudFormation operations.

", "smithy.api#idempotent": {} } }, @@ -7052,25 +6573,25 @@ "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension for which you want version summary\n information.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension for which you want version summary information.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" } }, "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of\n the Amazon Resource Name (ARN) assigned to the extension version when it is\n registered.

" + "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.

" } } } @@ -7085,7 +6606,7 @@ "target": "com.amazonaws.cloudformation#SignalResourceInput" }, "traits": { - "smithy.api#documentation": "

Sends a signal to the specified resource with a success or failure status. You can\n use the SignalResource API in conjunction with a creation policy or update policy. CloudFormation doesn't proceed with a stack creation or update until resources receive\n the required number of signals or the timeout period is exceeded. The SignalResource API is\n useful in cases where you want to send signals from anywhere other than an Amazon EC2\n instance.

" + "smithy.api#documentation": "

Sends a signal to the specified resource with a success or failure status. You can\n use the SignalResource API in conjunction with a creation policy or update policy. AWS\n CloudFormation doesn't proceed with a stack creation or update until resources receive the\n required number of signals or the timeout period is exceeded. The SignalResource API is\n useful in cases where you want to send signals from anywhere other than an Amazon EC2\n instance.

" } }, "com.amazonaws.cloudformation#SignalResourceInput": { @@ -7115,7 +6636,7 @@ "Status": { "target": "com.amazonaws.cloudformation#ResourceSignalStatus", "traits": { - "smithy.api#documentation": "

The status of the signal, which is either success or failure. A failure signal causes\n CloudFormation to immediately fail the stack creation or update.

", + "smithy.api#documentation": "

The status of the signal, which is either success or failure. A failure signal causes\n AWS CloudFormation to immediately fail the stack creation or update.

", "smithy.api#required": {} } } @@ -7180,7 +6701,7 @@ "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "StackStatus": { @@ -7229,7 +6750,7 @@ "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that is\n associated with the stack. During a stack operation, CloudFormation uses this\n role's credentials to make calls on your behalf.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that is associated with the stack. During a stack operation, AWS CloudFormation uses this\n role's credentials to make calls on your behalf.

" } }, "Tags": { @@ -7241,19 +6762,19 @@ "EnableTerminationProtection": { "target": "com.amazonaws.cloudformation#EnableTerminationProtection", "traits": { - "smithy.api#documentation": "

Whether termination protection is enabled for the stack.

\n

For nested stacks,\n termination protection is set on the root stack and cannot be changed directly on the\n nested stack. For more information, see Protecting a Stack From Being\n Deleted in the CloudFormation User Guide.

" + "smithy.api#documentation": "

Whether termination protection is enabled for the stack.

\n

For nested stacks,\n termination protection is set on the root stack and cannot be changed directly on the\n nested stack. For more information, see Protecting a Stack From Being\n Deleted in the AWS CloudFormation User Guide.

" } }, "ParentId": { "target": "com.amazonaws.cloudformation#StackId", "traits": { - "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n direct parent of this stack. For the first level of nested stacks, the root stack is also\n the parent stack.

\n

For more information, see Working with Nested Stacks in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n direct parent of this stack. For the first level of nested stacks, the root stack is also\n the parent stack.

\n

For more information, see Working with Nested Stacks in the\n AWS CloudFormation User Guide.

" } }, "RootId": { "target": "com.amazonaws.cloudformation#StackId", "traits": { - "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n top-level stack to which the nested stack ultimately belongs.

\n

For more information, see Working with Nested Stacks in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n top-level stack to which the nested stack ultimately belongs.

\n

For more information, see Working with Nested Stacks in the\n AWS CloudFormation User Guide.

" } }, "DriftInformation": { @@ -7304,7 +6825,7 @@ "StackDriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected template\n configuration.

\n ", + "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected template\n configuration.

\n ", "smithy.api#required": {} } }, @@ -7325,7 +6846,7 @@ "StackDriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected template\n configuration.

\n ", + "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected template\n configuration.

\n ", "smithy.api#required": {} } }, @@ -7402,7 +6923,7 @@ "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

Type of resource. (For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User\n Guide.)

" + "smithy.api#documentation": "

Type of resource. (For more information, go to AWS\n Resource Types Reference in the AWS CloudFormation User Guide.)

" } }, "Timestamp": { @@ -7433,7 +6954,7 @@ "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The token passed to the operation that generated this event.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" + "smithy.api#documentation": "

The token passed to the operation that generated this event.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" } } }, @@ -7450,12 +6971,6 @@ "com.amazonaws.cloudformation#StackId": { "type": "string" }, - "com.amazonaws.cloudformation#StackIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.cloudformation#StackId" - } - }, "com.amazonaws.cloudformation#StackInstance": { "type": "structure", "members": { @@ -7468,13 +6983,13 @@ "Region": { "target": "com.amazonaws.cloudformation#Region", "traits": { - "smithy.api#documentation": "

The name of the Region that the stack instance is associated\n with.

" + "smithy.api#documentation": "

The name of the AWS Region that the stack instance is associated with.

" } }, "Account": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The name of the account that the stack\n instance is associated with.

" + "smithy.api#documentation": "

[Self-managed permissions] The name of the AWS account that the stack instance is associated with.

" } }, "StackId": { @@ -7510,24 +7025,24 @@ "OrganizationalUnitId": { "target": "com.amazonaws.cloudformation#OrganizationalUnitId", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs\n that you specified for DeploymentTargets.

" + "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.

" } }, "DriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack instance's actual configuration compared to the expected template\n and parameter configuration of the stack set to which it belongs.

\n " + "smithy.api#documentation": "

Status of the stack instance's actual configuration compared to the expected template\n and parameter configuration of the stack set to which it belongs.

\n " } }, "LastDriftCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on\n the stack instance. This value will be NULL for any stack instance on which\n drift detection has not yet been performed.

" + "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on the stack\n instance. This value will be NULL for any stack instance on which drift\n detection has not yet been performed.

" } } }, "traits": { - "smithy.api#documentation": "

An CloudFormation stack, in a specific account and Region, that's part of a\n stack set operation. A stack instance is a reference to an attempted or actual stack in a\n given account within a given Region. A stack instance can exist without a stack—for\n example, if the stack couldn't be created for some reason. A stack instance is associated\n with only one stack set. Each stack instance contains the ID of its associated stack set,\n as well as the ID of the actual stack and the stack status.

" + "smithy.api#documentation": "

An AWS CloudFormation stack, in a specific account and Region, that's part of a stack\n set operation. A stack instance is a reference to an attempted or actual stack in a given\n account within a given Region. A stack instance can exist without a stack—for example, if\n the stack couldn't be created for some reason. A stack instance is associated with only one\n stack set. Each stack instance contains the ID of its associated stack set, as well as the\n ID of the actual stack and the stack status.

" } }, "com.amazonaws.cloudformation#StackInstanceComprehensiveStatus": { @@ -7536,7 +7051,7 @@ "DetailedStatus": { "target": "com.amazonaws.cloudformation#StackInstanceDetailedStatus", "traits": { - "smithy.api#documentation": "" + "smithy.api#documentation": "" } } }, @@ -7681,13 +7196,13 @@ "Region": { "target": "com.amazonaws.cloudformation#Region", "traits": { - "smithy.api#documentation": "

The name of the Region that the stack instance is associated\n with.

" + "smithy.api#documentation": "

The name of the AWS Region that the stack instance is associated with.

" } }, "Account": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The name of the account that the stack\n instance is associated with.

" + "smithy.api#documentation": "

[Self-managed permissions] The name of the AWS account that the stack instance is associated with.

" } }, "StackId": { @@ -7717,19 +7232,19 @@ "OrganizationalUnitId": { "target": "com.amazonaws.cloudformation#OrganizationalUnitId", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs\n that you specified for DeploymentTargets.

" + "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.

" } }, "DriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack instance's actual configuration compared to the expected template\n and parameter configuration of the stack set to which it belongs.

\n " + "smithy.api#documentation": "

Status of the stack instance's actual configuration compared to the expected template\n and parameter configuration of the stack set to which it belongs.

\n " } }, "LastDriftCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on\n the stack instance. This value will be NULL for any stack instance on which\n drift detection has not yet been performed.

" + "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on the stack\n instance. This value will be NULL for any stack instance on which drift\n detection has not yet been performed.

" } } }, @@ -7749,23 +7264,6 @@ "smithy.api#pattern": "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$" } }, - "com.amazonaws.cloudformation#StackNotFoundException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.cloudformation#ErrorMessage" - } - }, - "traits": { - "aws.protocols#awsQueryError": { - "code": "StackNotFoundException", - "httpResponseCode": 404 - }, - "smithy.api#documentation": "

The specified stack ARN doesn’t exist or stack doesn’t exist corresponding to the ARN in\n input.

", - "smithy.api#error": "client", - "smithy.api#httpError": 404 - } - }, "com.amazonaws.cloudformation#StackPolicyBody": { "type": "string", "traits": { @@ -7827,13 +7325,13 @@ "PhysicalResourceId": { "target": "com.amazonaws.cloudformation#PhysicalResourceId", "traits": { - "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by CloudFormation.

" + "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by AWS CloudFormation.

" } }, "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

Type of resource. (For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User\n Guide.)

", + "smithy.api#documentation": "

Type of resource. (For more information, go to AWS\n Resource Types Reference in the AWS CloudFormation User Guide.)

", "smithy.api#required": {} } }, @@ -7872,7 +7370,7 @@ "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" } } }, @@ -7905,13 +7403,13 @@ "PhysicalResourceId": { "target": "com.amazonaws.cloudformation#PhysicalResourceId", "traits": { - "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by CloudFormation.

" + "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by AWS CloudFormation.

" } }, "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

Type of resource. ((For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User\n Guide.)

", + "smithy.api#documentation": "

Type of resource. ((For more information, go to AWS\n Resource Types Reference in the AWS CloudFormation User Guide.)

", "smithy.api#required": {} } }, @@ -7944,7 +7442,7 @@ "Metadata": { "target": "com.amazonaws.cloudformation#Metadata", "traits": { - "smithy.api#documentation": "

The content of the Metadata attribute declared for the resource. For\n more information, see Metadata\n Attribute in the CloudFormation User Guide.

" + "smithy.api#documentation": "

The content of the Metadata attribute declared for the resource. For\n more information, see Metadata\n Attribute in the AWS CloudFormation User Guide.

" } }, "DriftInformation": { @@ -7956,7 +7454,7 @@ "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" } } }, @@ -7984,13 +7482,13 @@ "PhysicalResourceId": { "target": "com.amazonaws.cloudformation#PhysicalResourceId", "traits": { - "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by CloudFormation.

" + "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by AWS CloudFormation.

" } }, "PhysicalResourceIdContext": { "target": "com.amazonaws.cloudformation#PhysicalResourceIdContext", "traits": { - "smithy.api#documentation": "

Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses\n context key-value pairs in cases where a resource's logical and physical IDs are not enough\n to uniquely identify that resource. Each context key-value pair specifies a unique resource\n that contains the targeted resource.

" + "smithy.api#documentation": "

Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses\n context key-value pairs in cases where a resource's logical and physical IDs are not enough\n to uniquely identify that resource. Each context key-value pair specifies a unique resource\n that contains the targeted resource.

" } }, "ResourceType": { @@ -8021,26 +7519,26 @@ "StackResourceDriftStatus": { "target": "com.amazonaws.cloudformation#StackResourceDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", + "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", "smithy.api#required": {} } }, "Timestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Time at which CloudFormation performed drift detection on the stack resource.

", + "smithy.api#documentation": "

Time at which AWS CloudFormation performed drift detection on the stack resource.

", "smithy.api#required": {} } }, "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" } } }, "traits": { - "smithy.api#documentation": "

Contains the drift information for a resource that has been checked for drift. This\n includes actual and expected property values for resources in which CloudFormation has detected\n drift. Only resource properties explicitly defined in the stack template are checked for\n drift. For more information, see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Resources that do not currently support drift detection cannot be checked. For a list\n of resources that support drift detection, see Resources that Support\n Drift Detection.

\n

Use DetectStackResourceDrift to detect drift on individual\n resources, or DetectStackDrift to detect drift on all resources in a\n given stack that support drift detection.

" + "smithy.api#documentation": "

Contains the drift information for a resource that has been checked for drift. This\n includes actual and expected property values for resources in which AWS CloudFormation has detected\n drift. Only resource properties explicitly defined in the stack template are checked for\n drift. For more information, see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Resources that do not currently support drift detection cannot be checked. For a list\n of resources that support drift detection, see Resources that Support\n Drift Detection.

\n

Use DetectStackResourceDrift to detect drift on individual\n resources, or DetectStackDrift to detect drift on all resources in a\n given stack that support drift detection.

" } }, "com.amazonaws.cloudformation#StackResourceDriftInformation": { @@ -8049,14 +7547,14 @@ "StackResourceDriftStatus": { "target": "com.amazonaws.cloudformation#StackResourceDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", + "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", "smithy.api#required": {} } }, "LastCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When CloudFormation last checked if the resource had drifted from its expected\n configuration.

" + "smithy.api#documentation": "

When AWS CloudFormation last checked if the resource had drifted from its expected\n configuration.

" } } }, @@ -8070,14 +7568,14 @@ "StackResourceDriftStatus": { "target": "com.amazonaws.cloudformation#StackResourceDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", + "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", "smithy.api#required": {} } }, "LastCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When CloudFormation last checked if the resource had drifted from its expected\n configuration.

" + "smithy.api#documentation": "

When AWS CloudFormation last checked if the resource had drifted from its expected\n configuration.

" } } }, @@ -8151,7 +7649,7 @@ "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

Type of resource. (For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User\n Guide.)

", + "smithy.api#documentation": "

Type of resource. (For more information, go to AWS\n Resource Types Reference in the AWS CloudFormation User Guide.)

", "smithy.api#required": {} } }, @@ -8184,7 +7682,7 @@ "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" } } }, @@ -8240,7 +7738,7 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

The capabilities that are allowed in the stack set. Some stack set templates might\n include resources that can affect permissions in your account—for\n example, by creating new Identity and Access Management (IAM) users. For more information, see\n Acknowledging IAM Resources in CloudFormation Templates.\n

" + "smithy.api#documentation": "

The capabilities that are allowed in the stack set. Some stack set templates might\n include resources that can affect permissions in your AWS account—for example, by creating\n new AWS Identity and Access Management (IAM) users. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.\n

" } }, "Tags": { @@ -8258,13 +7756,13 @@ "AdministrationRoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role used to create or update the stack\n set.

\n

Use customized administrator roles to control which users or groups can manage specific\n stack sets within the same administrator account. For more information, see Prerequisites: Granting Permissions for Stack\n Set Operations in the CloudFormation User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role used to create or update the stack\n set.

\n

Use customized administrator roles to control which users or groups can manage specific\n stack sets within the same administrator account. For more information, see Prerequisites: Granting Permissions for Stack\n Set Operations in the AWS CloudFormation User Guide.

" } }, "ExecutionRoleName": { "target": "com.amazonaws.cloudformation#ExecutionRoleName", "traits": { - "smithy.api#documentation": "

The name of the IAM execution role used to create or update the stack set.

\n

Use customized execution roles to control which stack resources users and groups can\n include in their stack sets.

" + "smithy.api#documentation": "

The name of the IAM execution role used to create or update the stack set.

\n

Use customized execution roles to control which stack resources users and groups can\n include in their stack sets.\n

" } }, "StackSetDriftDetectionDetails": { @@ -8276,24 +7774,24 @@ "AutoDeployment": { "target": "com.amazonaws.cloudformation#AutoDeployment", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to\n Organizations accounts that are added to a target organization or organizational\n unit (OU).

" + "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to a target organization or organizational unit (OU).

" } }, "PermissionModel": { "target": "com.amazonaws.cloudformation#PermissionModels", "traits": { - "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created.

\n " + "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created.

\n " } }, "OrganizationalUnitIds": { "target": "com.amazonaws.cloudformation#OrganizationalUnitIdList", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs\n that you specified for DeploymentTargets.

" + "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.

" } } }, "traits": { - "smithy.api#documentation": "

A structure that contains information about a stack set. A stack set enables you to\n provision stacks into accounts and across Regions by using a single\n CloudFormation template. In the stack set, you specify the template to use, as\n well as any parameters and capabilities that the template requires.

" + "smithy.api#documentation": "

A structure that contains information about a stack set. A stack set enables you to\n provision stacks into AWS accounts and across Regions by using a single CloudFormation\n template. In the stack set, you specify the template to use, as well as any parameters and\n capabilities that the template requires.

" } }, "com.amazonaws.cloudformation#StackSetARN": { @@ -8305,7 +7803,7 @@ "DriftStatus": { "target": "com.amazonaws.cloudformation#StackSetDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack set's actual configuration compared to its expected template and\n parameter configuration. A stack set is considered to have drifted if one or more of its\n stack instances have drifted from their expected template and parameter\n configuration.

\n " + "smithy.api#documentation": "

Status of the stack set's actual configuration compared to its expected template and\n parameter configuration. A stack set is considered to have drifted if one or more of its\n stack instances have drifted from their expected template and parameter\n configuration.

\n " } }, "DriftDetectionStatus": { @@ -8317,7 +7815,7 @@ "LastDriftCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on\n the stack set. This value will be NULL for any stack set on which drift\n detection has not yet been performed.

" + "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on the stack\n set. This value will be NULL for any stack set on which drift detection has\n not yet been performed.

" } }, "TotalStackInstancesCount": { @@ -8352,7 +7850,7 @@ } }, "traits": { - "smithy.api#documentation": "

Detailed information about the drift status of the stack set.

\n

For stack sets, contains information about the last completed drift\n operation performed on the stack set. Information about drift operations in-progress is not\n included.

\n

For stack set operations, includes information about drift operations currently being\n performed on the stack set.

\n

For more information, see Detecting Unmanaged\n Changes in Stack Sets in the CloudFormation User Guide.

" + "smithy.api#documentation": "

Detailed information about the drift status of the stack set.

\n

For stack sets, contains information about the last completed drift\n operation performed on the stack set. Information about drift operations in-progress is not\n included.

\n

For stack set operations, includes information about drift operations currently being\n performed on the stack set.

\n

For more information, see Detecting Unmanaged\n Changes in Stack Sets in the AWS CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#StackSetDriftDetectionStatus": { @@ -8471,13 +7969,13 @@ "Status": { "target": "com.amazonaws.cloudformation#StackSetOperationStatus", "traits": { - "smithy.api#documentation": "

The status of the operation.

\n " + "smithy.api#documentation": "

The status of the operation.

\n " } }, "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

The preferences for how CloudFormation performs this stack set\n operation.

" + "smithy.api#documentation": "

The preferences for how AWS CloudFormation performs this stack set\n operation.

" } }, "RetainStacks": { @@ -8489,19 +7987,19 @@ "AdministrationRoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role used to perform this stack set\n operation.

\n

Use customized administrator roles to control which users or groups can manage specific\n stack sets within the same administrator account. For more information, see Define Permissions for Multiple\n Administrators in the CloudFormation User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role used to perform this stack set\n operation.

\n

Use customized administrator roles to control which users or groups can manage specific\n stack sets within the same administrator account. For more information, see Define Permissions for Multiple\n Administrators in the AWS CloudFormation User Guide.

" } }, "ExecutionRoleName": { "target": "com.amazonaws.cloudformation#ExecutionRoleName", "traits": { - "smithy.api#documentation": "

The name of the IAM execution role used to create or update the stack set.

\n

Use customized execution roles to control which stack resources users and groups can\n include in their stack sets.

" + "smithy.api#documentation": "

The name of the IAM execution role used to create or update the stack set.

\n

Use customized execution roles to control which stack resources users and groups can\n include in their stack sets.\n

" } }, "CreationTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

The time at which the operation was initiated. Note that the creation times for the\n stack set operation might differ from the creation time of the individual stacks\n themselves. This is because CloudFormation needs to perform preparatory work for\n the operation, such as dispatching the work to the requested Regions, before actually\n creating the first stacks.

" + "smithy.api#documentation": "

The time at which the operation was initiated. Note that the creation times for the\n stack set operation might differ from the creation time of the individual stacks\n themselves. This is because AWS CloudFormation needs to perform preparatory work for the\n operation, such as dispatching the work to the requested Regions, before actually creating\n the first stacks.

" } }, "EndTimestamp": { @@ -8513,13 +8011,13 @@ "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts affected by the stack\n operation.

" + "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts affected by the stack operation.

" } }, "StackSetDriftDetectionDetails": { "target": "com.amazonaws.cloudformation#StackSetDriftDetectionDetails", "traits": { - "smithy.api#documentation": "

Detailed information about the drift status of the stack set. This includes information\n about drift operations currently being performed on the stack set.

\n

this information will only be present for stack set operations whose Action\n type is DETECT_DRIFT.

\n

For more information, see Detecting Unmanaged\n Changes in Stack Sets in the CloudFormation User Guide.

" + "smithy.api#documentation": "

Detailed information about the drift status of the stack set. This includes information\n about drift operations currently being performed on the stack set.

\n

this information will only be present for stack set operations whose Action\n type is DETECT_DRIFT.

\n

For more information, see Detecting Unmanaged\n Changes in Stack Sets in the AWS CloudFormation User Guide.

" } } }, @@ -8556,7 +8054,7 @@ "RegionConcurrencyType": { "target": "com.amazonaws.cloudformation#RegionConcurrencyType", "traits": { - "smithy.api#documentation": "

The concurrency type of deploying StackSets operations in Regions, could be in parallel\n or one Region at a time.

" + "smithy.api#documentation": "

The concurrency type of deploying StackSets operations in regions, could be in parallel or one region at a time.

" } }, "RegionOrder": { @@ -8568,30 +8066,30 @@ "FailureToleranceCount": { "target": "com.amazonaws.cloudformation#FailureToleranceCount", "traits": { - "smithy.api#documentation": "

The number of accounts, per Region, for which this operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a\n Region, CloudFormation doesn't attempt the operation in any subsequent\n Regions.

\n

Conditional: You must specify either FailureToleranceCount or\n FailureTolerancePercentage (but not both).

\n

By default, 0 is specified.

" + "smithy.api#documentation": "

The number of accounts, per Region, for which this operation can fail before AWS\n CloudFormation stops the operation in that Region. If the operation is stopped in a Region,\n AWS CloudFormation doesn't attempt the operation in any subsequent Regions.

\n

Conditional: You must specify either FailureToleranceCount or\n FailureTolerancePercentage (but not both).

\n

By default, 0 is specified.

" } }, "FailureTolerancePercentage": { "target": "com.amazonaws.cloudformation#FailureTolerancePercentage", "traits": { - "smithy.api#documentation": "

The percentage of accounts, per Region, for which this stack operation can fail\n before CloudFormation stops the operation in that Region. If the operation is\n stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent\n Regions.

\n

When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number.

\n

Conditional: You must specify either FailureToleranceCount or\n FailureTolerancePercentage, but not both.

\n

By default, 0 is specified.

" + "smithy.api#documentation": "

The percentage of accounts, per Region, for which this stack operation can fail\n before AWS CloudFormation stops the operation in that Region. If the operation is stopped\n in a Region, AWS CloudFormation doesn't attempt the operation in any subsequent\n Regions.

\n

When calculating the number of accounts based on the specified percentage, AWS\n CloudFormation rounds down to the next whole number.

\n

Conditional: You must specify either FailureToleranceCount or\n FailureTolerancePercentage, but not both.

\n

By default, 0 is specified.

" } }, "MaxConcurrentCount": { "target": "com.amazonaws.cloudformation#MaxConcurrentCount", "traits": { - "smithy.api#documentation": "

The maximum number of accounts in which to perform this operation at one time. This\n is dependent on the value of FailureToleranceCount.\n MaxConcurrentCount is at most one more than the\n FailureToleranceCount.

\n

Note that this setting lets you specify the maximum for\n operations. For large deployments, under certain circumstances the actual number of\n accounts acted upon concurrently may be lower due to service throttling.

\n

Conditional: You must specify either MaxConcurrentCount or\n MaxConcurrentPercentage, but not both.

\n

By default, 1 is specified.

" + "smithy.api#documentation": "

The maximum number of accounts in which to perform this operation at one time. This\n is dependent on the value of\n FailureToleranceCount. MaxConcurrentCount is at most one more\n than the FailureToleranceCount.

\n

Note that this setting lets you specify the maximum for\n operations. For large deployments, under certain circumstances the actual number of\n accounts acted upon concurrently may be lower due to service throttling.

\n

Conditional: You must specify either MaxConcurrentCount or\n MaxConcurrentPercentage, but not both.

\n

By default, 1 is specified.

" } }, "MaxConcurrentPercentage": { "target": "com.amazonaws.cloudformation#MaxConcurrentPercentage", "traits": { - "smithy.api#documentation": "

The maximum percentage of accounts in which to perform this operation at one\n time.

\n

When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where\n rounding down would result is zero. In this case, CloudFormation sets the number\n as one instead.

\n

Note that this setting lets you specify the maximum for\n operations. For large deployments, under certain circumstances the actual number of\n accounts acted upon concurrently may be lower due to service throttling.

\n

Conditional: You must specify either MaxConcurrentCount or\n MaxConcurrentPercentage, but not both.

\n

By default, 1 is specified.

" + "smithy.api#documentation": "

The maximum percentage of accounts in which to perform this operation at one\n time.

\n

When calculating the number of accounts based on the specified percentage, AWS\n CloudFormation rounds down to the next whole number. This is true except in cases where\n rounding down would result is zero. In this case, CloudFormation sets the number as one\n instead.

\n

Note that this setting lets you specify the maximum for\n operations. For large deployments, under certain circumstances the actual number of\n accounts acted upon concurrently may be lower due to service throttling.

\n

Conditional: You must specify either MaxConcurrentCount or\n MaxConcurrentPercentage, but not both.

\n

By default, 1 is specified.

" } } }, "traits": { - "smithy.api#documentation": "

The user-specified preferences for how CloudFormation performs a stack set\n operation.

\n

For more information on maximum concurrent accounts and failure tolerance, see Stack set operation options.

" + "smithy.api#documentation": "

The user-specified preferences for how AWS CloudFormation performs a stack set\n operation.

\n

For more information on maximum concurrent accounts and failure tolerance, see Stack set operation options.

" } }, "com.amazonaws.cloudformation#StackSetOperationResultStatus": { @@ -8633,13 +8131,13 @@ "Account": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The name of the account for this\n operation result.

" + "smithy.api#documentation": "

[Self-managed permissions] The name of the AWS account for this operation result.

" } }, "Region": { "target": "com.amazonaws.cloudformation#Region", "traits": { - "smithy.api#documentation": "

The name of the Region for this operation result.

" + "smithy.api#documentation": "

The name of the AWS Region for this operation result.

" } }, "Status": { @@ -8657,13 +8155,13 @@ "AccountGateResult": { "target": "com.amazonaws.cloudformation#AccountGateResult", "traits": { - "smithy.api#documentation": "

The results of the account gate function CloudFormation invokes, if present,\n before proceeding with stack set operations in an account

" + "smithy.api#documentation": "

The results of the account gate function AWS CloudFormation invokes, if present,\n before proceeding with stack set operations in an account

" } }, "OrganizationalUnitId": { "target": "com.amazonaws.cloudformation#OrganizationalUnitId", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs\n that you specified for DeploymentTargets.

" + "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.

" } } }, @@ -8726,13 +8224,13 @@ "Status": { "target": "com.amazonaws.cloudformation#StackSetOperationStatus", "traits": { - "smithy.api#documentation": "

The overall status of the operation.

\n " + "smithy.api#documentation": "

The overall status of the operation.

\n " } }, "CreationTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

The time at which the operation was initiated. Note that the creation times for the\n stack set operation might differ from the creation time of the individual stacks\n themselves. This is because CloudFormation needs to perform preparatory work for\n the operation, such as dispatching the work to the requested Regions, before actually\n creating the first stacks.

" + "smithy.api#documentation": "

The time at which the operation was initiated. Note that the creation times for the\n stack set operation might differ from the creation time of the individual stacks\n themselves. This is because AWS CloudFormation needs to perform preparatory work for the\n operation, such as dispatching the work to the requested Regions, before actually creating\n the first stacks.

" } }, "EndTimestamp": { @@ -8797,25 +8295,25 @@ "AutoDeployment": { "target": "com.amazonaws.cloudformation#AutoDeployment", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to\n Organizations accounts that are added to a target organizational unit\n (OU).

" + "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to a target organizational unit (OU).

" } }, "PermissionModel": { "target": "com.amazonaws.cloudformation#PermissionModels", "traits": { - "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created.

\n " + "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created.

\n " } }, "DriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack set's actual configuration compared to its expected template and\n parameter configuration. A stack set is considered to have drifted if one or more of its\n stack instances have drifted from their expected template and parameter\n configuration.

\n " + "smithy.api#documentation": "

Status of the stack set's actual configuration compared to its expected template and\n parameter configuration. A stack set is considered to have drifted if one or more of its\n stack instances have drifted from their expected template and parameter\n configuration.

\n " } }, "LastDriftCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on\n the stack set. This value will be NULL for any stack set on which drift\n detection has not yet been performed.

" + "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on the stack\n set. This value will be NULL for any stack set on which drift detection has\n not yet been performed.

" } } }, @@ -8990,13 +8488,13 @@ "ParentId": { "target": "com.amazonaws.cloudformation#StackId", "traits": { - "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n direct parent of this stack. For the first level of nested stacks, the root stack is also\n the parent stack.

\n

For more information, see Working with Nested Stacks in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n direct parent of this stack. For the first level of nested stacks, the root stack is also\n the parent stack.

\n

For more information, see Working with Nested Stacks in the\n AWS CloudFormation User Guide.

" } }, "RootId": { "target": "com.amazonaws.cloudformation#StackId", "traits": { - "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n top-level stack to which the nested stack ultimately belongs.

\n

For more information, see Working with Nested Stacks in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n top-level stack to which the nested stack ultimately belongs.

\n

For more information, see Working with Nested Stacks in the\n AWS CloudFormation User Guide.

" } }, "DriftInformation": { @@ -9091,7 +8589,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -9122,7 +8620,7 @@ "Key": { "target": "com.amazonaws.cloudformation#TagKey", "traits": { - "smithy.api#documentation": "

\n Required. A string used to identify this tag. You can specify a\n maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (Amazon Web Services) have the reserved prefix: aws:.

", + "smithy.api#documentation": "

\n Required. A string used to identify this tag. You can specify a\n maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the\n reserved prefix: aws:.

", "smithy.api#required": {} } }, @@ -9135,7 +8633,7 @@ } }, "traits": { - "smithy.api#documentation": "

The Tag type enables you to specify a key-value pair that can be used to store\n information about an CloudFormation stack.

" + "smithy.api#documentation": "

The Tag type enables you to specify a key-value pair that can be used to store\n information about an AWS CloudFormation stack.

" } }, "com.amazonaws.cloudformation#TagKey": { @@ -9258,7 +8756,7 @@ } ], "traits": { - "smithy.api#documentation": "

Tests a registered extension to make sure it meets all necessary requirements for being\n published in the CloudFormation registry.

\n \n

For more information, see Testing your public extension prior to publishing in the\n CloudFormation CLI User Guide.

\n

If you do not specify a version, CloudFormation uses the default version of the\n extension in your account and region for testing.

\n

To perform testing, CloudFormation assumes the execution role specified when the type\n was registered. For more information, see RegisterType.

\n

Once you've initiated testing on an extension using TestType, you can use\n DescribeType to monitor the current test status and test\n status description for the extension.

\n

An extension must have a test status of PASSED before it can be published.\n For more information, see Publishing extensions to make them available for public use\n in the CloudFormation CLI User Guide.

", + "smithy.api#documentation": "

Tests a registered extension to make sure it meets all necessary requirements for being published in the CloudFormation registry.

\n \n

For more information, see Testing your public extension prior to publishing in the CloudFormation CLI User Guide.

\n

If you do not specify a version, CloudFormation uses the default version of the extension in your account and region for testing.

\n

To perform testing, CloudFormation assumes the execution role specified when the test was registered. For more information, see RegisterType.

\n

Once you've initiated testing on an extension using TestType, you can use DescribeType to monitor the current test status and test status description for the extension.

\n

An extension must have a test status of PASSED before it can be published. For more information, see Publishing extensions to make them available for public use in the CloudFormation CLI User Guide.

", "smithy.api#idempotent": {} } }, @@ -9268,31 +8766,31 @@ "Arn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the extension.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the extension.

\n

Conditional: You must specify Arn, or TypeName and Type.

" } }, "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The type of the extension to test.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" + "smithy.api#documentation": "

The type of the extension to test.

\n

Conditional: You must specify Arn, or TypeName and Type.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension to test.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" + "smithy.api#documentation": "

The name of the extension to test.

\n

Conditional: You must specify Arn, or TypeName and Type.

" } }, "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The version of the extension to test.

\n

You can specify the version id with either Arn, or with\n TypeName and Type.

\n

If you do not specify a version, CloudFormation uses the default version of the\n extension in this account and region for testing.

" + "smithy.api#documentation": "

The version of the extension to test.

\n

You can specify the version id with either Arn, or with TypeName and Type.

\n

If you do not specify a version, CloudFormation uses the default version of the extension in this account and region for testing.

" } }, "LogDeliveryBucket": { "target": "com.amazonaws.cloudformation#S3Bucket", "traits": { - "smithy.api#documentation": "

The S3 bucket to which CloudFormation delivers the contract test execution logs.

\n

CloudFormation delivers the logs by the time contract testing has completed and the\n extension has been assigned a test type status of PASSED or\n FAILED.

\n

The user calling TestType must be able to access items in the specified S3\n bucket. Specifically, the user needs the following permissions:

\n \n

For more information, see Actions, Resources, and\n Condition Keys for Amazon S3 in the Amazon Web Services Identity and\n Access Management User Guide.

" + "smithy.api#documentation": "

The S3 bucket to which CloudFormation delivers the contract test execution logs.

\n

CloudFormation delivers the logs by the time contract testing has completed and the extension has been assigned a test type status of PASSED or FAILED.

\n

The user calling TestType must be able to access items in the specified S3 bucket. Specifically, the user needs the following permissions:

\n \n

For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the AWS Identity and Access Management User Guide.

" } } } @@ -9428,31 +8926,31 @@ "Arn": { "target": "com.amazonaws.cloudformation#TypeConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the configuration data, in this account and\n region.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the configuration data, in this account and region.

" } }, "Alias": { "target": "com.amazonaws.cloudformation#TypeConfigurationAlias", "traits": { - "smithy.api#documentation": "

The alias specified for this configuration, if one was specified when the configuration\n was set.

" + "smithy.api#documentation": "

The alias specified for this configuration, if one was specified when the configuration was set.

" } }, "Configuration": { "target": "com.amazonaws.cloudformation#TypeConfiguration", "traits": { - "smithy.api#documentation": "

A JSON string specifying the configuration data for the extension, in this account and\n region.

\n

If a configuration has not been set for a specified extension, CloudFormation returns\n {}.

" + "smithy.api#documentation": "

A JSON string specifying the configuration data for the extension, in this account and region.

\n

If a configuration has not been set for a specified extension, CloudFormation returns {}.

" } }, "LastUpdated": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When the configuration data was last updated for this extension.

\n

If a configuration has not been set for a specified extension, CloudFormation returns\n null.

" + "smithy.api#documentation": "

When the configuration data was last updated for this extension.

\n

If a configuration has not been set for a specified extension, CloudFormation returns null.

" } }, "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will\n be the ARN assigned when you register the type in this account and region.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will be the ARN assigned when you register the type in this account and region.

" } }, "TypeName": { @@ -9464,12 +8962,12 @@ "IsDefaultConfiguration": { "target": "com.amazonaws.cloudformation#IsDefaultConfiguration", "traits": { - "smithy.api#documentation": "

Whether or not this configuration data is the default configuration for the\n extension.

" + "smithy.api#documentation": "

Whether or not this configuration data is the default configuration for the extension.

" } } }, "traits": { - "smithy.api#documentation": "

Detailed information concerning the specification of a CloudFormation extension in a\n given account and region.

\n

For more information, see Configuring extensions at the account level in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

Detailed information concerning the specification of a CloudFormation extension in a given account and region.

\n

For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#TypeConfigurationDetailsList": { @@ -9484,13 +8982,13 @@ "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will\n be the ARN assigned when you register the type in this account and region.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will be the ARN assigned when you register the type in this account and region.

" } }, "TypeConfigurationAlias": { "target": "com.amazonaws.cloudformation#TypeConfigurationAlias", "traits": { - "smithy.api#documentation": "

The alias specified for this configuration, if one was specified when the configuration\n was set.

" + "smithy.api#documentation": "

The alias specified for this configuration, if one was specified when the configuration was set.

" } }, "TypeConfigurationArn": { @@ -9550,13 +9048,13 @@ "Category": { "target": "com.amazonaws.cloudformation#Category", "traits": { - "smithy.api#documentation": "

The category of extensions to return.

\n " + "smithy.api#documentation": "

The category of extensions to return.

\n " } }, "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The id of the publisher of the extension.

\n

Extensions published by Amazon are not assigned a publisher ID. Use the\n AWS-TYPES category to specify a list of types published by Amazon.

" + "smithy.api#documentation": "

The id of the publisher of the extension.

\n

Extensions published by Amazon are not assigned a publisher ID. Use the AWS-TYPES category to specify a list of types published by Amazon.

" } }, "TypeNamePrefix": { @@ -9637,13 +9135,13 @@ "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

If you specified a TypeNameAlias when you activate this extension in your account and region, CloudFormation considers\n that alias as the type name.

" + "smithy.api#documentation": "

The name of the extension.

\n

If you specified a TypeNameAlias when you activate this extension in your account and region, CloudFormation considers that alias as the type name.

" } }, "DefaultVersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of the default version of the extension. The default version is used when the\n extension version is not specified.

\n

This applies only to private extensions you have registered in your account. For public\n extensions, both those provided by Amazon and published by third parties, CloudFormation\n returns null. For more information, see RegisterType.

\n

To set the default version of an extension, use \n SetTypeDefaultVersion\n .

" + "smithy.api#documentation": "

The ID of the default version of the extension. The default version is used when the extension version is not specified.

\n

This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon and published by third parties, CloudFormation returns null. For more information, see RegisterType.

\n

To set the default version of an extension, use \n SetTypeDefaultVersion\n .

" } }, "TypeArn": { @@ -9655,7 +9153,7 @@ "LastUpdated": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When the specified extension version was registered. This applies only to:

\n \n

For all other extension types, CloudFormation returns null.

" + "smithy.api#documentation": "

When the specified extension version was registered. This applies only to:

\n \n

For all other extension types, CloudFormation returns null.

" } }, "Description": { @@ -9667,48 +9165,48 @@ "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The ID of the extension publisher, if the extension is published by a third party.\n Extensions published by Amazon do not return a publisher ID.

" + "smithy.api#documentation": "

The ID of the extension publisher, if the extension is published by a third party. Extensions published by Amazon do not return a publisher ID.

" } }, "OriginalTypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the type\n name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this\n account and region, CloudFormation treats that alias as the extension's type name within\n the account and region, not the type name of the public extension. For more information,\n see Specifying aliases to refer to extensions in the\n CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the type name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this account and region, CloudFormation treats that alias as the extension's type name within the account and region, not the type name of the public extension. For more information, see Specifying aliases to refer to extensions in the CloudFormation User Guide.

" } }, "PublicVersionNumber": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the version\n of the public extension to be used for CloudFormation operations in this account and\n region.

\n

How you specified AutoUpdate when enabling the extension affects whether\n CloudFormation automatically updates the extention in this account and region when a new\n version is released. For more information, see Setting CloudFormation to automatically use new versions of\n extensions in the CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the version of the public extension to be used for CloudFormation operations in this account and region.

\n

How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extention in this account and region when a new version is released. For more information, see Setting CloudFormation to automatically use new versions of extensions in the CloudFormation User Guide.

" } }, "LatestPublicVersion": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the latest\n version of the public extension that is available. For any extensions\n other than activated third-arty extensions, CloudFormation returns\n null.

\n

How you specified AutoUpdate when enabling the extension affects whether\n CloudFormation automatically updates the extention in this account and region when a new\n version is released. For more information, see Setting CloudFormation to automatically use new versions of\n extensions in the CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the latest version of the public extension that is available. For any extensions other than activated third-arty extensions, CloudFormation returns null.

\n

How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extention in this account and region when a new version is released. For more information, see Setting CloudFormation to automatically use new versions of extensions in the CloudFormation User Guide.

" } }, "PublisherIdentity": { "target": "com.amazonaws.cloudformation#IdentityProvider", "traits": { - "smithy.api#documentation": "

The service used to verify the publisher identity.

\n

For more information, see Registering your account to publish CloudFormation extensions in the \n CFN-CLI User Guide for Extension Development.

" + "smithy.api#documentation": "

The service used to verify the publisher identity.

\n

For more information, see Registering your account to publish CloudFormation extensions in the CFN-CLI User Guide for Extension Development.

" } }, "PublisherName": { "target": "com.amazonaws.cloudformation#PublisherName", "traits": { - "smithy.api#documentation": "

The publisher name, as defined in the public profile for that publisher in the service\n used to verify the publisher identity.

" + "smithy.api#documentation": "

The publisher name, as defined in the public profile for that publisher in the service used to verify the publisher identity.

" } }, "IsActivated": { "target": "com.amazonaws.cloudformation#IsActivated", "traits": { - "smithy.api#documentation": "

Whether or not the extension is activated for this account and region.

\n

This applies only to third-party public extensions. Extensions published by Amazon are\n activated by default.

" + "smithy.api#documentation": "

Whether or not the extension is activated for this account and region.

\n

This applies only to third-party public extensions. Extensions published by Amazon are activated by default.

" } } }, "traits": { - "smithy.api#documentation": "

Contains summary information about the specified CloudFormation\n extension.

" + "smithy.api#documentation": "

Contains summary information about the specified CloudFormation extension.

" } }, "com.amazonaws.cloudformation#TypeTestsStatus": { @@ -9778,13 +9276,13 @@ "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of\n the Amazon Resource Name (ARN) assigned to the extension version when it is\n registered.

" + "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.

" } }, "IsDefaultVersion": { "target": "com.amazonaws.cloudformation#IsDefaultVersion", "traits": { - "smithy.api#documentation": "

Whether the specified extension version is set as the default version.

\n

This applies only to private extensions you have registered in your account, and\n extensions published by Amazon. For public third-party extensions, whether or not they are\n activated in your account, CloudFormation returns null.

" + "smithy.api#documentation": "

Whether the specified extension version is set as the default version.

\n

This applies only to private extensions you have registered in your account, and extensions published by Amazon. For public third-party extensions, whether or not they are activated in your account, CloudFormation returns null.

" } }, "Arn": { @@ -9808,12 +9306,12 @@ "PublicVersionNumber": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the version\n of the public extension to be used for CloudFormation operations in this account and\n region. For any extensions other than activated third-arty extensions, CloudFormation\n returns null.

\n

How you specified AutoUpdate when enabling the extension affects whether\n CloudFormation automatically updates the extention in this account and region when a new\n version is released. For more information, see Setting CloudFormation to automatically use new versions of\n extensions in the CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the version of the public extension to be used for CloudFormation operations in this account and region. For any extensions other than activated third-arty extensions, CloudFormation returns null.

\n

How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extention in this account and region when a new version is released. For more information, see Setting CloudFormation to automatically use new versions of extensions in the CloudFormation User Guide.

" } } }, "traits": { - "smithy.api#documentation": "

Contains summary information about a specific version of a CloudFormation\n extension.

" + "smithy.api#documentation": "

Contains summary information about a specific version of a CloudFormation extension.

" } }, "com.amazonaws.cloudformation#UnprocessedTypeConfigurations": { @@ -9855,13 +9353,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. (For more information, go to Template Anatomy\n in the CloudFormation User Guide.)

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody, TemplateURL, or set the\n UsePreviousTemplate to true.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. (For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.)

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody, TemplateURL, or set the\n UsePreviousTemplate to true.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template that\n is located in an Amazon S3 bucket or a Systems Manager document. For more information, go\n to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody, TemplateURL, or set the\n UsePreviousTemplate to true.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template that\n is located in an Amazon S3 bucket or a Systems Manager document. For more information, go to\n Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody, TemplateURL, or set the\n UsePreviousTemplate to true.

" } }, "UsePreviousTemplate": { @@ -9879,7 +9377,7 @@ "StackPolicyDuringUpdateURL": { "target": "com.amazonaws.cloudformation#StackPolicyDuringUpdateURL", "traits": { - "smithy.api#documentation": "

Location of a file containing the temporary overriding stack policy. The URL must\n point to a policy (max size: 16KB) located in an S3 bucket in the same Region as the stack.\n You can specify either the StackPolicyDuringUpdateBody or the\n StackPolicyDuringUpdateURL parameter, but not both.

\n

If you want to update protected resources, specify a temporary overriding stack\n policy during this update. If you do not specify a stack policy, the current policy that is\n associated with the stack will be used.

" + "smithy.api#documentation": "

Location of a file containing the temporary overriding stack policy. The URL must\n point to a policy (max size: 16KB) located in an S3 bucket in\n the same Region as the stack. You can specify either the\n StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL\n parameter, but not both.

\n

If you want to update protected resources, specify a temporary overriding stack\n policy during this update. If you do not specify a stack policy, the current policy that is\n associated with the stack will be used.

" } }, "Parameters": { @@ -9891,25 +9389,25 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for CloudFormation to update the stack.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for AWS CloudFormation to update the stack.

\n " } }, "ResourceTypes": { "target": "com.amazonaws.cloudformation#ResourceTypes", "traits": { - "smithy.api#documentation": "

The template resource types that you have permissions to work with for this update\n stack action, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance.

\n

If the list of resource types doesn't include a resource that you're updating, the\n stack update fails. By default, CloudFormation grants permissions to all resource\n types. Identity and Access Management (IAM) uses this parameter for CloudFormation-specific\n condition keys in IAM policies. For more information, see Controlling Access with\n Identity and Access Management.

" + "smithy.api#documentation": "

The template resource types that you have permissions to work with for this update\n stack action, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance.

\n

If the list of resource types doesn't include a resource that you're updating, the\n stack update fails. By default, AWS CloudFormation grants permissions to all resource\n types. AWS Identity and Access Management (IAM) uses this parameter for AWS\n CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with AWS Identity and Access Management.

" } }, "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes to update the stack. CloudFormation uses the role's\n credentials to make calls on your behalf. CloudFormation always uses this role for\n all future operations on the stack. As long as users have permission to operate on the\n stack, CloudFormation uses this role even if the users don't have permission to\n pass it. Ensure that the role grants least privilege.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes to update the stack. AWS CloudFormation uses the role's\n credentials to make calls on your behalf. AWS CloudFormation always uses this role for all\n future operations on the stack. As long as users have permission to operate on the stack,\n AWS CloudFormation uses this role even if the users don't have permission to pass it.\n Ensure that the role grants least privilege.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" } }, "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "StackPolicyBody": { @@ -9921,25 +9419,25 @@ "StackPolicyURL": { "target": "com.amazonaws.cloudformation#StackPolicyURL", "traits": { - "smithy.api#documentation": "

Location of a file containing the updated stack policy. The URL must point to a\n policy (max size: 16KB) located in an S3 bucket in the same Region as the stack. You can\n specify either the StackPolicyBody or the StackPolicyURL\n parameter, but not both.

\n

You might update the stack policy, for example, in order to protect a new resource\n that you created during a stack update. If you do not specify a stack policy, the current\n policy that is associated with the stack is unchanged.

" + "smithy.api#documentation": "

Location of a file containing the updated stack policy. The URL must point to a\n policy (max size: 16KB) located in an S3 bucket in the same\n Region as the stack. You can specify either the StackPolicyBody or the\n StackPolicyURL parameter, but not both.

\n

You might update the stack policy, for example, in order to protect a new resource\n that you created during a stack update. If you do not specify a stack policy, the current\n policy that is associated with the stack is unchanged.

" } }, "NotificationARNs": { "target": "com.amazonaws.cloudformation#NotificationARNs", "traits": { - "smithy.api#documentation": "

Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that CloudFormation associates with the stack. Specify an empty list to remove all\n notification topics.

" + "smithy.api#documentation": "

Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that AWS\n CloudFormation associates with the stack. Specify an empty list to remove all notification\n topics.

" } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

Key-value pairs to associate with this stack. CloudFormation also propagates\n these tags to supported resources in the stack. You can specify a maximum number of 50\n tags.

\n

If you don't specify this parameter, CloudFormation doesn't modify the\n stack's tags. If you specify an empty value, CloudFormation removes all associated\n tags.

" + "smithy.api#documentation": "

Key-value pairs to associate with this stack. AWS CloudFormation also propagates\n these tags to supported resources in the stack. You can specify a maximum number of 50\n tags.

\n

If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's\n tags. If you specify an empty value, AWS CloudFormation removes all associated\n tags.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this UpdateStack request. Specify this token if\n you plan to retry requests so that CloudFormation knows that you're not attempting\n to update a stack with the same name. You might retry UpdateStack requests to\n ensure that CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" + "smithy.api#documentation": "

A unique identifier for this UpdateStack request. Specify this token if\n you plan to retry requests so that AWS CloudFormation knows that you're not attempting to\n update a stack with the same name. You might retry UpdateStack requests to\n ensure that AWS CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" } } }, @@ -9992,13 +9490,13 @@ "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The names of one or more accounts for\n which you want to update parameter values for stack instances. The overridden parameter\n values will be applied to all stack instances in the specified accounts and\n Regions.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" + "smithy.api#documentation": "

[Self-managed permissions] The names of one or more AWS accounts for which you want to update parameter values\n for stack instances. The overridden parameter values will be applied to all stack instances\n in the specified accounts and Regions.

\n

You can specify Accounts or DeploymentTargets, but not both.

" } }, "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts for which you want to\n update parameter values for stack instances. If your update targets OUs, the overridden\n parameter values only apply to the accounts that are currently in the target OUs and their\n child OUs. Accounts added to the target OUs and their child OUs in the future won't use the\n overridden values.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" + "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts for which you want to update parameter values for stack instances. If your update targets OUs, the overridden parameter values only apply to the accounts that are currently in the target OUs and their child OUs. Accounts added to the target OUs and their child OUs in the future won't use the overridden values.

\n

You can specify Accounts or DeploymentTargets, but not both.

" } }, "Regions": { @@ -10011,26 +9509,26 @@ "ParameterOverrides": { "target": "com.amazonaws.cloudformation#Parameters", "traits": { - "smithy.api#documentation": "

A list of input parameters whose values you want to update for the specified stack\n instances.

\n

Any overridden parameter values will be applied to all stack instances in the\n specified accounts and Regions. When specifying parameters and their values, be aware of\n how CloudFormation sets parameter values during stack instance update\n operations:

\n \n

During stack set updates, any parameter values overridden for a stack instance are\n not updated, but retain their overridden value.

\n

You can only override the parameter values that are specified in\n the stack set; to add or delete a parameter itself, use UpdateStackSet to\n update the stack set template. If you add a parameter to a template, before you can\n override the parameter value specified in the stack set you must first use UpdateStackSet to update all stack instances with the updated template and\n parameter value specified in the stack set. Once a stack instance has been updated with the\n new parameter, you can then override the parameter value using\n UpdateStackInstances.

" + "smithy.api#documentation": "

A list of input parameters whose values you want to update for the specified stack\n instances.

\n

Any overridden parameter values will be applied to all stack instances in the\n specified accounts and Regions. When specifying parameters and their values, be aware of\n how AWS CloudFormation sets parameter values during stack instance update\n operations:

\n \n

During stack set updates, any parameter values overridden for a stack instance are\n not updated, but retain their overridden value.

\n

You can only override the parameter values that are specified in\n the stack set; to add or delete a parameter itself, use UpdateStackSet to\n update the stack set template. If you add a parameter to a template, before you can\n override the parameter value specified in the stack set you must first use UpdateStackSet to update all stack instances with the updated template and\n parameter value specified in the stack set. Once a stack instance has been updated with the\n new parameter, you can then override the parameter value using\n UpdateStackInstances.

" } }, "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

Preferences for how CloudFormation performs this stack set\n operation.

" + "smithy.api#documentation": "

Preferences for how AWS CloudFormation performs this stack set operation.

" } }, "OperationId": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.\n

", + "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that AWS\n CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that AWS\n CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.\n

", "smithy.api#idempotencyToken": {} } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -10111,13 +9609,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

The structure that contains the template body, with a minimum length of 1 byte and a\n maximum length of 51,200 bytes. For more information, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody or TemplateURL—or set\n UsePreviousTemplate to true.

" + "smithy.api#documentation": "

The structure that contains the template body, with a minimum length of 1 byte and a\n maximum length of 51,200 bytes. For more information, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody or TemplateURL—or set\n UsePreviousTemplate to true.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

The location of the file that contains the template body. The URL must point to a\n template (maximum size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems\n Manager document. For more information, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody or TemplateURL—or set\n UsePreviousTemplate to true.

" + "smithy.api#documentation": "

The location of the file that contains the template body. The URL must point to a\n template (maximum size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems\n Manager document. For more information, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody or TemplateURL—or set\n UsePreviousTemplate to true.

" } }, "UsePreviousTemplate": { @@ -10135,74 +9633,74 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for CloudFormation to update the stack set and its associated stack\n instances.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for AWS CloudFormation to update the stack set and its associated stack\n instances.

\n " } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

The key-value pairs to associate with this stack set and the stacks created from it.\n CloudFormation also propagates these tags to supported resources that are\n created in the stacks. You can specify a maximum number of 50 tags.

\n

If you specify tags for this parameter, those tags replace any list of tags that are\n currently associated with this stack set. This means:

\n \n

If you specify new tags as part of an UpdateStackSet action, CloudFormation checks to see if you have the required IAM permission to tag resources.\n If you omit tags that are currently associated with the stack set from the list of tags you\n specify, CloudFormation assumes that you want to remove those tags from the stack\n set, and checks to see if you have permission to untag resources. If you don't have the\n necessary permission(s), the entire UpdateStackSet action fails with an\n access denied error, and the stack set is not updated.

" + "smithy.api#documentation": "

The key-value pairs to associate with this stack set and the stacks created from it.\n AWS CloudFormation also propagates these tags to supported resources that are created in\n the stacks. You can specify a maximum number of 50 tags.

\n

If you specify tags for this parameter, those tags replace any list of tags that are\n currently associated with this stack set. This means:

\n \n

If you specify new tags as part of an UpdateStackSet action, AWS\n CloudFormation checks to see if you have the required IAM permission to tag resources. If\n you omit tags that are currently associated with the stack set from the list of tags you\n specify, AWS CloudFormation assumes that you want to remove those tags from the stack set,\n and checks to see if you have permission to untag resources. If you don't have the\n necessary permission(s), the entire UpdateStackSet action fails with an\n access denied error, and the stack set is not updated.

" } }, "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

Preferences for how CloudFormation performs this stack set\n operation.

" + "smithy.api#documentation": "

Preferences for how AWS CloudFormation performs this stack set operation.

" } }, "AdministrationRoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role to use to update this stack set.

\n

Specify an IAM role only if you are using customized administrator roles to control\n which users or groups can manage specific stack sets within the same administrator account.\n For more information, see Granting\n Permissions for Stack Set Operations in the\n CloudFormation User Guide.

\n

If you specified a customized administrator role when you created the stack set, you\n must specify a customized administrator role, even if it is the same customized\n administrator role used with this stack set previously.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role to use to update this stack set.

\n

Specify an IAM role only if you are using customized administrator roles to control\n which users or groups can manage specific stack sets within the same administrator account.\n For more information, see Granting\n Permissions for Stack Set Operations in the\n AWS CloudFormation User Guide.

\n

If you specified a customized administrator role when you created the stack set, you\n must specify a customized administrator role, even if it is the same customized\n administrator role used with this stack set previously.

" } }, "ExecutionRoleName": { "target": "com.amazonaws.cloudformation#ExecutionRoleName", "traits": { - "smithy.api#documentation": "

The name of the IAM execution role to use to update the stack set. If you do not specify\n an execution role, CloudFormation uses the AWSCloudFormationStackSetExecutionRole role\n for the stack set operation.

\n

Specify an IAM role only if you are using customized execution roles to control which\n stack resources users and groups can include in their stack sets.

\n

If you specify a customized execution role, CloudFormation uses that role to update the stack.\n If you do not specify a customized execution role, CloudFormation performs the update using the role\n previously associated with the stack set, so long as you have permissions to perform\n operations on the stack set.

" + "smithy.api#documentation": "

The name of the IAM execution role to use to update the stack set. If you do not specify\n an execution role, AWS CloudFormation uses the AWSCloudFormationStackSetExecutionRole role\n for the stack set operation.

\n

Specify an IAM role only if you are using customized execution roles to control which\n stack resources users and groups can include in their stack sets.\n

\n

If you specify a customized execution role, AWS CloudFormation uses that role to update the stack.\n If you do not specify a customized execution role, AWS CloudFormation performs the update using the role\n previously associated with the stack set, so long as you have permissions to perform\n operations on the stack set.

" } }, "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts in which to update\n associated stack instances.

\n

To update all the stack instances associated with this stack set, do not specify\n DeploymentTargets or Regions.

\n

If the stack set update includes changes to the template (that is, if\n TemplateBody or TemplateURL is specified), or the\n Parameters, CloudFormation marks all stack instances with a status\n of OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, CloudFormation updates the stack instances in the specified accounts\n and Regions, while leaving all other stack instances with their existing stack instance\n status.

" + "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts in which to update associated stack instances.

\n

To update all the stack instances associated with this stack set, do not specify DeploymentTargets or Regions.

\n

If the stack set update includes changes to the template (that is, if TemplateBody or TemplateURL is specified), or the Parameters, AWS CloudFormation marks all stack instances with a status of OUTDATED prior to updating the stack instances in the specified accounts and Regions. If the stack set update does not include changes to the template or parameters, AWS CloudFormation updates the stack instances in the specified accounts and Regions, while leaving all other stack instances with their existing stack instance status.

" } }, "PermissionModel": { "target": "com.amazonaws.cloudformation#PermissionModels", "traits": { - "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created. You cannot\n modify PermissionModel if there are stack instances associated with your stack\n set.

\n " + "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created. You cannot modify PermissionModel if there are stack instances associated with your stack set.

\n " } }, "AutoDeployment": { "target": "com.amazonaws.cloudformation#AutoDeployment", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to\n Organizations accounts that are added to a target organization or organizational\n unit (OU).

\n

If you specify AutoDeployment, do not specify\n DeploymentTargets or Regions.

" + "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to a target organization or organizational unit (OU).

\n

If you specify AutoDeployment, do not specify DeploymentTargets or Regions.

" } }, "OperationId": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The unique ID for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that CloudFormation successfully received them.

\n

If you don't specify an operation ID, CloudFormation generates one\n automatically.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", + "smithy.api#documentation": "

The unique ID for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that AWS\n CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that AWS\n CloudFormation successfully received them.

\n

If you don't specify an operation ID, AWS CloudFormation generates one\n automatically.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", "smithy.api#idempotencyToken": {} } }, "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The accounts in which to update associated stack instances.\n If you specify accounts, you must also specify the Regions in which to update stack set\n instances.

\n

To update all the stack instances associated with this stack set,\n do not specify the Accounts or Regions properties.

\n

If the stack set update includes changes to the template (that is, if the\n TemplateBody or TemplateURL properties are specified), or the\n Parameters property, CloudFormation marks all stack instances with a status of\n OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, CloudFormation updates the stack instances in the specified accounts and Regions, while\n leaving all other stack instances with their existing stack instance status.

" + "smithy.api#documentation": "

[Self-managed permissions] The accounts in which to update associated stack instances. If you specify accounts, you\n must also specify the Regions in which to update stack set instances.

\n

To update all the stack instances associated with this stack set,\n do not specify the Accounts or Regions properties.

\n

If the stack set update includes changes to the template (that is, if the\n TemplateBody or TemplateURL properties are specified), or the\n Parameters property, AWS CloudFormation marks all stack instances with a status of\n OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, AWS CloudFormation updates the stack instances in the specified accounts and Regions, while\n leaving all other stack instances with their existing stack instance status.

" } }, "Regions": { "target": "com.amazonaws.cloudformation#RegionList", "traits": { - "smithy.api#documentation": "

The Regions in which to update associated stack instances. If you specify Regions, you\n must also specify accounts in which to update stack set instances.

\n

To update all the stack instances associated with this stack set,\n do not specify the Accounts or Regions properties.

\n

If the stack set update includes changes to the template (that is, if the\n TemplateBody or TemplateURL properties are specified), or the\n Parameters property, CloudFormation marks all stack instances with a status of\n OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, CloudFormation updates the stack instances in the specified accounts and Regions, while\n leaving all other stack instances with their existing stack instance status.

" + "smithy.api#documentation": "

The Regions in which to update associated stack instances. If you specify Regions, you\n must also specify accounts in which to update stack set instances.

\n

To update all the stack instances associated with this stack set,\n do not specify the Accounts or Regions properties.

\n

If the stack set update includes changes to the template (that is, if the\n TemplateBody or TemplateURL properties are specified), or the\n Parameters property, AWS CloudFormation marks all stack instances with a status of\n OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, AWS CloudFormation updates the stack instances in the specified accounts and Regions, while\n leaving all other stack instances with their existing stack instance status.

" } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " } } } @@ -10227,7 +9725,7 @@ "target": "com.amazonaws.cloudformation#UpdateTerminationProtectionOutput" }, "traits": { - "smithy.api#documentation": "

Updates termination protection for the specified stack. If a user attempts to delete\n a stack with termination protection enabled, the operation fails and the stack remains\n unchanged. For more information, see Protecting a\n Stack From Being Deleted in the CloudFormation User Guide.

\n

For nested\n stacks, termination protection is set on the root stack and cannot be changed\n directly on the nested stack.

" + "smithy.api#documentation": "

Updates termination protection for the specified stack. If a user attempts to delete\n a stack with termination protection enabled, the operation fails and the stack remains\n unchanged. For more information, see Protecting a\n Stack From Being Deleted in the AWS CloudFormation User Guide.

\n

For nested\n stacks, termination protection is set on the root stack and cannot be changed\n directly on the nested stack.

" } }, "com.amazonaws.cloudformation#UpdateTerminationProtectionInput": { @@ -10284,7 +9782,7 @@ "target": "com.amazonaws.cloudformation#ValidateTemplateOutput" }, "traits": { - "smithy.api#documentation": "

Validates a specified template. CloudFormation first checks if the template\n is valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If\n both these checks fail, CloudFormation returns a template validation\n error.

" + "smithy.api#documentation": "

Validates a specified template. AWS CloudFormation first checks if the template is\n valid JSON. If it isn't, AWS CloudFormation checks if the template is valid YAML. If both\n these checks fail, AWS CloudFormation returns a template validation error.

" } }, "com.amazonaws.cloudformation#ValidateTemplateInput": { @@ -10293,13 +9791,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information, go to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information, go to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" } } }, @@ -10325,7 +9823,7 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

The capabilities found within the template. If your template contains IAM resources,\n you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when\n you use the CreateStack or UpdateStack actions with\n your template; otherwise, those actions return an InsufficientCapabilities error.

\n

For more information, see Acknowledging IAM Resources in CloudFormation Templates.

" + "smithy.api#documentation": "

The capabilities found within the template. If your template contains IAM resources,\n you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when\n you use the CreateStack or UpdateStack actions with\n your template; otherwise, those actions return an InsufficientCapabilities error.

\n

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

" } }, "CapabilitiesReason": { diff --git a/codegen/sdk-codegen/aws-models/cloudwatch.2010-08-01.json b/codegen/sdk-codegen/aws-models/cloudwatch.2010-08-01.json index ec30af17c95..d564524a1d6 100644 --- a/codegen/sdk-codegen/aws-models/cloudwatch.2010-08-01.json +++ b/codegen/sdk-codegen/aws-models/cloudwatch.2010-08-01.json @@ -29,15 +29,6 @@ ] }, "shapes": { - "com.amazonaws.cloudwatch#AccountId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 255 - } - } - }, "com.amazonaws.cloudwatch#ActionPrefix": { "type": "string", "traits": { @@ -1324,14 +1315,14 @@ "Name": { "target": "com.amazonaws.cloudwatch#DimensionName", "traits": { - "smithy.api#documentation": "

The name of the dimension. Dimension names must contain only ASCII characters and must include \n\t\t\tat least one non-whitespace character.

", + "smithy.api#documentation": "

The name of the dimension. Dimension names cannot contain blank spaces or non-ASCII\n\t\tcharacters.

", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.cloudwatch#DimensionValue", "traits": { - "smithy.api#documentation": "

The value of the dimension. Dimension values must contain only ASCII characters and must include \n\t\t\tat least one non-whitespace character.

", + "smithy.api#documentation": "

The value of the dimension. Dimension values cannot contain blank spaces \n\t\t\tor non-ASCII characters.

", "smithy.api#required": {} } } @@ -1894,7 +1885,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets statistics for the specified metric.

\n\n\n\n\t\t

The maximum number of data points returned from a single call is 1,440. If \n\t\t\tyou request more than 1,440 data points, CloudWatch returns an error. \n\t\t\tTo reduce the number of data points, you can narrow the specified time range and make \n\t\t\tmultiple requests across adjacent time ranges, or you can increase the specified period. \n\t\t\tData points are not returned in chronological order.

\n\n\t\t

CloudWatch aggregates data points based on the length of the period\n\t\t\tthat you specify. For example, if you request statistics with a one-hour period, \n\t\t\tCloudWatch aggregates all data points with time stamps that fall within each \n\t\t\tone-hour period. Therefore, the number of values aggregated by CloudWatch is larger than\n\t\t\tthe number of data points returned.

\n\t\t

CloudWatch needs raw data points to calculate percentile statistics. If you publish \n\t\t\tdata using a statistic set instead, you can only retrieve \n\t\t\tpercentile statistics for this data if one of the following conditions is true:

\n\t\t \n\t\t

Percentile statistics are not available for metrics when any of the metric values are negative numbers.

\n\t\t

Amazon CloudWatch retains metric data as follows:

\n\t\t \n\t\t

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect \n\t\t\tdata using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, \n\t\t\tbut is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with \n\t\ta resolution of 1 hour.

\n\t\t

CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.

\t\n\n\t\t

For information about metrics and dimensions supported by Amazon Web Services services, see the \n\t\t\tAmazon CloudWatch Metrics and Dimensions Reference in the\n\t\t\tAmazon CloudWatch User Guide.

" + "smithy.api#documentation": "

Gets statistics for the specified metric.

\n\n\n\n\t\t

The maximum number of data points returned from a single call is 1,440. If \n\t\t\tyou request more than 1,440 data points, CloudWatch returns an error. \n\t\t\tTo reduce the number of data points, you can narrow the specified time range and make \n\t\t\tmultiple requests across adjacent time ranges, or you can increase the specified period. \n\t\t\tData points are not returned in chronological order.

\n\n\t\t

CloudWatch aggregates data points based on the length of the period\n\t\t\tthat you specify. For example, if you request statistics with a one-hour period, \n\t\t\tCloudWatch aggregates all data points with time stamps that fall within each \n\t\t\tone-hour period. Therefore, the number of values aggregated by CloudWatch is larger than\n\t\t\tthe number of data points returned.

\n\t\t

CloudWatch needs raw data points to calculate percentile statistics. If you publish \n\t\t\tdata using a statistic set instead, you can only retrieve \n\t\t\tpercentile statistics for this data if one of the following conditions is true:

\n\t\t \n\t\t

Percentile statistics are not available for metrics when any of the metric values are negative numbers.

\n\t\t

Amazon CloudWatch retains metric data as follows:

\n\t\t \n\t\t

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect \n\t\t\tdata using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, \n\t\t\tbut is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with \n\t\ta resolution of 1 hour.

\n\t\t

CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.

\t\n\n\t\t

For information about metrics and dimensions supported by AWS services, see the \n\t\t\tAmazon CloudWatch Metrics and Dimensions Reference in the\n\t\t\tAmazon CloudWatch User Guide.

" } }, "com.amazonaws.cloudwatch#GetMetricStatisticsInput": { @@ -1917,7 +1908,7 @@ "Dimensions": { "target": "com.amazonaws.cloudwatch#Dimensions", "traits": { - "smithy.api#documentation": "

The dimensions. If the metric contains multiple dimensions, you must include a value for each dimension. \n\t\t\tCloudWatch treats each unique combination of dimensions as a separate metric.\n\t\t If a specific combination of dimensions was not published, you can't retrieve statistics for it.\n\t\t You must specify the same dimensions that were used when the metrics were created. For an example,\n\t\t see Dimension Combinations in the Amazon CloudWatch User Guide. For more information about specifying dimensions, see Publishing Metrics in the\n\t\t\tAmazon CloudWatch User Guide.

" + "smithy.api#documentation": "

The dimensions. If the metric contains multiple dimensions, you must include a value for each dimension. CloudWatch treats each unique combination of dimensions as a separate metric.\n\t\t If a specific combination of dimensions was not published, you can't retrieve statistics for it.\n\t\t You must specify the same dimensions that were used when the metrics were created. For an example,\n\t\t see Dimension Combinations in the Amazon CloudWatch User Guide. For more information about specifying dimensions, see Publishing Metrics in the\n\t\t\tAmazon CloudWatch User Guide.

" } }, "StartTime": { @@ -2109,7 +2100,7 @@ "OutputFormat": { "target": "com.amazonaws.cloudwatch#OutputFormat", "traits": { - "smithy.api#documentation": "

The format of the resulting image. Only PNG images are supported.

\n\n\t\t

The default is png. If you specify png, the API returns an HTTP response with the \n\t\t\tcontent-type set to text/xml. The image data is in a MetricWidgetImage \n\t\t\tfield. For example:

\n\t\t\n\t\t

\n \n\t\t\t>\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n 6f0d4192-4d42-11e8-82c1-f539a07e0e3b\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t\n\t\t

The image/png setting is intended only for custom HTTP requests. For most\n\t\t\tuse cases, and all actions using an Amazon Web Services SDK, you should use png. If you specify \n\t\t\timage/png, the HTTP response has a content-type set to image/png, \n\t\t\tand the body of the response is a PNG image.

" + "smithy.api#documentation": "

The format of the resulting image. Only PNG images are supported.

\n\n\t\t

The default is png. If you specify png, the API returns an HTTP response with the \n\t\t\tcontent-type set to text/xml. The image data is in a MetricWidgetImage \n\t\t\tfield. For example:

\n\t\t\n\t\t

\n \n\t\t\t>\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n 6f0d4192-4d42-11e8-82c1-f539a07e0e3b\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t\n\t\t

The image/png setting is intended only for custom HTTP requests. For most\n\t\t\tuse cases, and all actions using an AWS SDK, you should use png. If you specify \n\t\t\timage/png, the HTTP response has a content-type set to image/png, \n\t\t\tand the body of the response is a PNG image.

" } } } @@ -2250,7 +2241,7 @@ "name": "monitoring" }, "aws.protocols#awsQuery": {}, - "smithy.api#documentation": "

Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources and the\n\t\t\tapplications you run on Amazon Web Services in real time. You can use CloudWatch to collect and track\n\t\t\tmetrics, which are the variables you want to measure for your resources and\n\t\t\tapplications.

\n\n\t\t

CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules\n\t\t\tthat you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2\n\t\t\tinstances. Then, use this data to determine whether you should launch\n\t\t\tadditional instances to handle increased load. You can also use this data to stop\n\t\t\tunder-used instances to save\n\t\t\tmoney.

\n\n\t\t

In addition to monitoring the built-in metrics that come with Amazon Web Services, you can monitor\n\t\t\tyour own custom metrics. With CloudWatch, you gain system-wide visibility into resource\n\t\t\tutilization, application performance, and operational health.

", + "smithy.api#documentation": "

Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the\n\t\t\tapplications you run on AWS in real time. You can use CloudWatch to collect and track\n\t\t\tmetrics, which are the variables you want to measure for your resources and\n\t\t\tapplications.

\n\n\t\t

CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules\n\t\t\tthat you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2\n\t\t\tinstances. Then, use this data to determine whether you should launch\n\t\t\tadditional instances to handle increased load. You can also use this data to stop\n\t\t\tunder-used instances to save\n\t\t\tmoney.

\n\n\t\t

In addition to monitoring the built-in metrics that come with AWS, you can monitor\n\t\t\tyour own custom metrics. With CloudWatch, you gain system-wide visibility into resource\n\t\t\tutilization, application performance, and operational health.

", "smithy.api#title": "Amazon CloudWatch", "smithy.api#xmlNamespace": { "uri": "http://monitoring.amazonaws.com/doc/2010-08-01/" @@ -3026,7 +3017,7 @@ } }, "traits": { - "smithy.api#documentation": "

A message returned by the GetMetricDataAPI, including a code and a description.

\n\t\t

If a cross-Region GetMetricData operation fails with a code of Forbidden and a \n\t\t\tvalue of Authentication too complex to \n\t\t\tretrieve cross region data, you can correct the problem by running the GetMetricData\n\t\toperation in the same Region where the metric data is.

" + "smithy.api#documentation": "

A message returned by the GetMetricDataAPI, including a code and a description.

" } }, "com.amazonaws.cloudwatch#MessageDataCode": { @@ -3288,12 +3279,6 @@ "traits": { "smithy.api#documentation": "

The granularity, in seconds, of the returned data points. For metrics with regular resolution, a \n\t\t\tperiod can be as short as one minute (60 seconds) and must be a multiple of 60. \n\t\t\tFor high-resolution metrics that are collected at intervals of less than one minute, \n\t\t\tthe period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics \n\t\t\tstored by a PutMetricData operation that includes a StorageResolution of 1 second.

" } - }, - "AccountId": { - "target": "com.amazonaws.cloudwatch#AccountId", - "traits": { - "smithy.api#documentation": "

The ID of the account where the metrics are located, if this is a cross-account alarm.

\n\t\t

Use this field only for PutMetricAlarm operations. It is not used in \n\t\tGetMetricData operations.

" - } } }, "traits": { @@ -3942,7 +3927,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates or updates an alarm and associates it with the specified metric, metric math expression, \n\t\t\tor anomaly detection model.

\n\t\t\n\t\t\n\t\t

Alarms based on anomaly detection models cannot have Auto Scaling actions.

\n\t\t

When this operation creates an alarm, the alarm state is immediately set to\n\t\t\tINSUFFICIENT_DATA. The alarm is then evaluated and its state is set\n\t\t\tappropriately. Any actions associated with the new state are then executed.

\n\t\t

When you update an existing alarm, its state is left unchanged, but the\n\t\t\tupdate completely overwrites the previous configuration of the alarm.

\n\n\t\t

If you are an IAM user, you must have \n\t\t\tAmazon EC2 permissions for some alarm operations:

\n\t\t \n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t

The first time you create an alarm in the \n\t\t\tManagement Console, the CLI, or by using the PutMetricAlarm API, CloudWatch\n\t\t\tcreates the necessary service-linked role for you. The service-linked roles \n\t\t\tare called AWSServiceRoleForCloudWatchEvents and \n\t\t\tAWSServiceRoleForCloudWatchAlarms_ActionSSM.\n\t\t\tFor more information, see Amazon Web Services service-linked role.

\n\t\t\t\n\t\t

\n Cross-account alarms\n

\n\t\t\n\t\t

You can set an alarm on metrics in the current account, or in another \n\t\t\taccount. To create a cross-account alarm that watches a metric in a different account, you must have completed the following\n\t\t\tpre-requisites:

\n\t\t " + "smithy.api#documentation": "

Creates or updates an alarm and associates it with the specified metric, metric math expression, \n\t\t\tor anomaly detection model.

\n\t\t

Alarms based on anomaly detection models cannot have Auto Scaling actions.

\n\t\t

When this operation creates an alarm, the alarm state is immediately set to\n\t\t\tINSUFFICIENT_DATA. The alarm is then evaluated and its state is set\n\t\t\tappropriately. Any actions associated with the new state are then executed.

\n\t\t

When you update an existing alarm, its state is left unchanged, but the\n\t\t\tupdate completely overwrites the previous configuration of the alarm.

\n\n\t\t

If you are an IAM user, you must have \n\t\t\tAmazon EC2 permissions for some alarm operations:

\n\t\t \n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t

The first time you create an alarm in the \n\t\t\tAWS Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch\n\t\t\tcreates the necessary service-linked role for you. The service-linked roles \n\t\t\tare called AWSServiceRoleForCloudWatchEvents and \n\t\t\tAWSServiceRoleForCloudWatchAlarms_ActionSSM.\n\t\t\tFor more information, see AWS service-linked role.

" } }, "com.amazonaws.cloudwatch#PutMetricAlarmInput": { @@ -3976,7 +3961,7 @@ "AlarmActions": { "target": "com.amazonaws.cloudwatch#ResourceList", "traits": { - "smithy.api#documentation": "

The actions to execute when this alarm transitions to the ALARM state from any other state. \n\t\t\tEach action is specified as an Amazon Resource Name (ARN).

\n\n\t\t

Valid Values: arn:aws:automate:region:ec2:stop | \n\t\t\tarn:aws:automate:region:ec2:terminate | \n\t\t\tarn:aws:automate:region:ec2:recover |\n\t\t\tarn:aws:automate:region:ec2:reboot |\n\t\t\tarn:aws:sns:region:account-id:sns-topic-name\n |\n\t\t\tarn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name\n \n\t\t\t| arn:aws:ssm:region:account-id:opsitem:severity\n \n\t\t\t| arn:aws:ssm-incidents::account-id:response-plan:response-plan-name\n \n

\n\n\t\t

Valid Values (for use with IAM roles):\n\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 |\n\t\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 |\n\t\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 |\n\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0\n

" + "smithy.api#documentation": "

The actions to execute when this alarm transitions to the ALARM state from any other state. \n\t\t\tEach action is specified as an Amazon Resource Name (ARN).

\n\n\t\t

Valid Values: arn:aws:automate:region:ec2:stop | \n\t\t\tarn:aws:automate:region:ec2:terminate | \n\t\t\tarn:aws:automate:region:ec2:recover |\n\t\t\tarn:aws:automate:region:ec2:reboot |\n\t\t\tarn:aws:sns:region:account-id:sns-topic-name\n |\n\t\t\tarn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name\n \n\t\t\t| arn:aws:ssm:region:account-id:opsitem:severity\n \n

\n\n\t\t

Valid Values (for use with IAM roles):\n\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 |\n\t\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 |\n\t\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0\n

" } }, "InsufficientDataActions": { @@ -4114,7 +4099,7 @@ "Namespace": { "target": "com.amazonaws.cloudwatch#Namespace", "traits": { - "smithy.api#documentation": "

The namespace for the metric data.

\n\t\t

To avoid conflicts\n\t\t\twith Amazon Web Services service namespaces, you should not specify a namespace that begins with AWS/\n

", + "smithy.api#documentation": "

The namespace for the metric data.

\n\t\t

To avoid conflicts\n\t\t\twith AWS service namespaces, you should not specify a namespace that begins with AWS/\n

", "smithy.api#required": {} } }, @@ -4153,7 +4138,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics \n\t\t\tto Amazon Web Services destinations including\n\t\t\tAmazon S3 and to many third-party solutions.

\n\t\t

For more information, see \n\t\tUsing Metric Streams.

\n\t\t

To create a metric stream, \n\t\t\tyou must be logged on to an account that has the iam:PassRole permission\n\t\t\tand either the CloudWatchFullAccess\n\t\tpolicy or the cloudwatch:PutMetricStream \n\t\tpermission.

\n\t\t

When you create or update a metric stream, you choose one of the following:

\n\t\t \n\t\t\n\t\t

When you use PutMetricStream to create a new metric stream, the stream \n\t\tis created in the running state. If you use it to update an existing stream, \n\t\tthe state of the stream is not changed.

" + "smithy.api#documentation": "

Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics \n\t\t\tto AWS destinations including\n\t\t\tAmazon S3 and to many third-party solutions.

\n\t\t

For more information, see \n\t\tUsing Metric Streams.

\n\t\t

To create a metric stream, \n\t\t\tyou must be logged on to an account that has the iam:PassRole permission\n\t\t\tand either the CloudWatchFullAccess\n\t\tpolicy or the cloudwatch:PutMetricStream \n\t\tpermission.

\n\t\t

When you create or update a metric stream, you choose one of the following:

\n\t\t \n\t\t\n\t\t

When you use PutMetricStream to create a new metric stream, the stream \n\t\tis created in the running state. If you use it to update an existing stream, \n\t\tthe state of the stream is not changed.

" } }, "com.amazonaws.cloudwatch#PutMetricStreamInput": { @@ -4202,7 +4187,7 @@ "Tags": { "target": "com.amazonaws.cloudwatch#TagList", "traits": { - "smithy.api#documentation": "

A list of key-value pairs to associate with the metric stream. You can associate as \n\t\t\tmany as 50 tags with a metric stream.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to scope user\n\t\t\tpermissions by granting a user\n\t\t\tpermission to access or change only resources with certain tag values.

\n\t\t

You can use this parameter only when you are creating a new metric stream. If you are using this operation to update an existing metric stream, any tags\n\t\t\tyou specify in this parameter are ignored. To change the tags of an existing metric stream, use\n\t\t\tTagResource\n\t\t\tor UntagResource.

" + "smithy.api#documentation": "

A list of key-value pairs to associate with the metric stream. You can associate as \n\t\t\tmany as 50 tags with a metric stream.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to scope user\n\t\t\tpermissions by granting a user\n\t\t\tpermission to access or change only resources with certain tag values.

" } } } @@ -4796,7 +4781,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that \n\t\t\tcan be tagged are alarms and Contributor Insights rules.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to scope user\n\t\t\tpermissions by granting a user\n\t\t\tpermission to access or change only resources with certain tag values.

\n\t\t

Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

\n\t\t

You can use the TagResource action with an alarm that already has tags. If you specify a new tag key for the alarm, \n\t\t\tthis tag is appended to the list of tags associated\n\t\t\twith the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces\n\t\t\tthe previous value for that tag.

\n\t\t

You can associate as many as 50 tags with a CloudWatch resource.

" + "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that \n\t\t\tcan be tagged are alarms and Contributor Insights rules.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to scope user\n\t\t\tpermissions by granting a user\n\t\t\tpermission to access or change only resources with certain tag values.

\n\t\t

Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.

\n\t\t

You can use the TagResource action with an alarm that already has tags. If you specify a new tag key for the alarm, \n\t\t\tthis tag is appended to the list of tags associated\n\t\t\twith the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces\n\t\t\tthe previous value for that tag.

\n\t\t

You can associate as many as 50 tags with a CloudWatch resource.

" } }, "com.amazonaws.cloudwatch#TagResourceInput": { diff --git a/codegen/sdk-codegen/aws-models/codebuild.2016-10-06.json b/codegen/sdk-codegen/aws-models/codebuild.2016-10-06.json index e514a8e41b2..8c338794c11 100644 --- a/codegen/sdk-codegen/aws-models/codebuild.2016-10-06.json +++ b/codegen/sdk-codegen/aws-models/codebuild.2016-10-06.json @@ -37,7 +37,7 @@ } }, "traits": { - "smithy.api#documentation": "

An AWS service limit was exceeded for the calling AWS account.

", + "smithy.api#documentation": "

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

", "smithy.api#error": "client" } }, @@ -270,7 +270,7 @@ "names": { "target": "com.amazonaws.codebuild#ProjectNames", "traits": { - "smithy.api#documentation": "

The names or ARNs of the build projects. To get information about a project shared\n with your AWS account, its ARN must be specified. You cannot specify a shared project\n using its name.

", + "smithy.api#documentation": "

The names or ARNs of the build projects. To get information about a project shared\n with your Amazon Web Services account, its ARN must be specified. You cannot specify a shared project\n using its name.

", "smithy.api#required": {} } } @@ -397,7 +397,7 @@ "computeTypesAllowed": { "target": "com.amazonaws.codebuild#ComputeTypesAllowed", "traits": { - "smithy.api#documentation": "

An array of strings that specify the compute types that are allowed for the batch\n build. See Build environment\n compute types in the AWS CodeBuild User Guide for these values.\n

" + "smithy.api#documentation": "

An array of strings that specify the compute types that are allowed for the batch\n build. See Build environment\n compute types in the CodeBuild User Guide for these values.\n

" } } }, @@ -408,26 +408,6 @@ "com.amazonaws.codebuild#Boolean": { "type": "boolean" }, - "com.amazonaws.codebuild#BucketOwnerAccess": { - "type": "string", - "traits": { - "smithy.api#documentation": "

Specifies the access for objects that are uploaded to an Amazon S3 bucket that is owned by\n another account.

\n

By default, only the account that uploads the objects to the bucket has access to\n these objects. This property allows you to give the bucket owner access to these\n objects.

\n
\n
NONE
\n
\n

The bucket owner does not have access to the objects. This is the\n default.

\n
\n
READ_ONLY
\n
\n

The bucket owner has read only access to the objects. The uploading account\n retains ownership of the objects.

\n
\n
FULL
\n
\n

The bucket owner has full access to the objects. Object ownership is determined\n by the following criteria:

\n \n

For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3\n Object Ownership in the Amazon Simple Storage Service User\n Guide.

\n
\n
", - "smithy.api#enum": [ - { - "value": "NONE", - "name": "NONE" - }, - { - "value": "READ_ONLY", - "name": "READ_ONLY" - }, - { - "value": "FULL", - "name": "FULL" - } - ] - } - }, "com.amazonaws.codebuild#Build": { "type": "structure", "members": { @@ -476,19 +456,19 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

Any version identifier for the version of the source code to be built. If\n sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide.

" + "smithy.api#documentation": "

Any version identifier for the version of the source code to be built. If\n sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

" } }, "resolvedSourceVersion": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

An identifier for the version of this build's source code.

\n " + "smithy.api#documentation": "

An identifier for the version of this build's source code.

\n " } }, "projectName": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the AWS CodeBuild project.

" + "smithy.api#documentation": "

The name of the CodeBuild project.

" } }, "phases": { @@ -512,7 +492,7 @@ "secondarySourceVersions": { "target": "com.amazonaws.codebuild#ProjectSecondarySourceVersions", "traits": { - "smithy.api#documentation": "

An array of ProjectSourceVersion objects. Each\n ProjectSourceVersion must be one of:

\n " + "smithy.api#documentation": "

An array of ProjectSourceVersion objects. Each\n ProjectSourceVersion must be one of:

\n " } }, "artifacts": { @@ -548,13 +528,13 @@ "logs": { "target": "com.amazonaws.codebuild#LogsLocation", "traits": { - "smithy.api#documentation": "

Information about the build's logs in Amazon CloudWatch Logs.

" + "smithy.api#documentation": "

Information about the build's logs in CloudWatch Logs.

" } }, "timeoutInMinutes": { "target": "com.amazonaws.codebuild#WrapperInt", "traits": { - "smithy.api#documentation": "

How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not\n get marked as completed.

" + "smithy.api#documentation": "

How long, in minutes, for CodeBuild to wait before timing out this build if it does\n not get marked as completed.

" } }, "queuedTimeoutInMinutes": { @@ -572,13 +552,13 @@ "initiator": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The entity that started the build. Valid values include:

\n " + "smithy.api#documentation": "

The entity that started the build. Valid values include:

\n " } }, "vpcConfig": { "target": "com.amazonaws.codebuild#VpcConfig", "traits": { - "smithy.api#documentation": "

If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide this parameter\n that identifies the VPC ID and the list of security group IDs and subnet IDs. The\n security groups and subnets must belong to the same VPC. You must provide at least one\n security group and one subnet ID.

" + "smithy.api#documentation": "

If your CodeBuild project accesses resources in an Amazon VPC, you provide this\n parameter that identifies the VPC ID and the list of security group IDs and subnet IDs.\n The security groups and subnets must belong to the same VPC. You must provide at least\n one security group and one subnet ID.

" } }, "networkInterface": { @@ -590,13 +570,13 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" + "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" } }, "exportedEnvironmentVariables": { "target": "com.amazonaws.codebuild#ExportedEnvironmentVariables", "traits": { - "smithy.api#documentation": "

A list of exported environment variables for this build.

\n

Exported environment variables are used in conjunction with AWS CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the AWS CodePipeline User Guide.

" + "smithy.api#documentation": "

A list of exported environment variables for this build.

\n

Exported environment variables are used in conjunction with CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the CodePipeline User Guide.

" } }, "reportArns": { @@ -666,9 +646,6 @@ "traits": { "smithy.api#documentation": "

An identifier for this artifact definition.

" } - }, - "bucketOwnerAccess": { - "target": "com.amazonaws.codebuild#BucketOwnerAccess" } }, "traits": { @@ -735,7 +712,7 @@ "resolvedSourceVersion": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the resolved version of this batch build's source code.

\n " + "smithy.api#documentation": "

The identifier of the resolved version of this batch build's source code.

\n " } }, "projectName": { @@ -762,7 +739,7 @@ "secondarySourceVersions": { "target": "com.amazonaws.codebuild#ProjectSecondarySourceVersions", "traits": { - "smithy.api#documentation": "

An array of ProjectSourceVersion objects. Each\n ProjectSourceVersion must be one of:

\n " + "smithy.api#documentation": "

An array of ProjectSourceVersion objects. Each\n ProjectSourceVersion must be one of:

\n " } }, "artifacts": { @@ -813,7 +790,7 @@ "initiator": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The entity that started the batch build. Valid values include:

\n " + "smithy.api#documentation": "

The entity that started the batch build. Valid values include:

\n " } }, "vpcConfig": { @@ -822,7 +799,7 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the batch build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" + "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the batch build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" } }, "buildBatchNumber": { @@ -1180,7 +1157,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information that defines how the AWS CodeBuild build project reports the build status\n to the source provider.

" + "smithy.api#documentation": "

Contains information that defines how the CodeBuild build project reports the build status\n to the source provider.

" } }, "com.amazonaws.codebuild#BuildSummaries": { @@ -1283,25 +1260,25 @@ "status": { "target": "com.amazonaws.codebuild#LogsConfigStatusType", "traits": { - "smithy.api#documentation": "

The current status of the logs in Amazon CloudWatch Logs for a build project. Valid values are:

\n ", + "smithy.api#documentation": "

The current status of the logs in CloudWatch Logs for a build project. Valid values are:

\n ", "smithy.api#required": {} } }, "groupName": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The group name of the logs in Amazon CloudWatch Logs. For more information, see Working\n with Log Groups and Log Streams.

" + "smithy.api#documentation": "

The group name of the logs in CloudWatch Logs. For more information, see Working\n with Log Groups and Log Streams.

" } }, "streamName": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The prefix of the stream name of the Amazon CloudWatch Logs. For more information, see Working\n with Log Groups and Log Streams.

" + "smithy.api#documentation": "

The prefix of the stream name of the CloudWatch Logs. For more information, see Working\n with Log Groups and Log Streams.

" } } }, "traits": { - "smithy.api#documentation": "

Information about Amazon CloudWatch Logs for a build project.

" + "smithy.api#documentation": "

Information about CloudWatch Logs for a build project.

" } }, "com.amazonaws.codebuild#CodeBuild_20161006": { @@ -1453,7 +1430,7 @@ "name": "codebuild" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "AWS CodeBuild\n

AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild compiles your source code,\n runs unit tests, and produces artifacts that are ready to deploy. AWS CodeBuild eliminates the\n need to provision, manage, and scale your own build servers. It provides prepackaged\n build environments for the most popular programming languages and build tools, such as\n Apache Maven, Gradle, and more. You can also fully customize build environments in AWS CodeBuild\n to use your own build tools. AWS CodeBuild scales automatically to meet peak build requests. You\n pay only for the build time you consume. For more information about AWS CodeBuild, see the \n AWS CodeBuild User\n Guide.\n

", + "smithy.api#documentation": "

CodeBuild is a fully managed build service in the cloud. CodeBuild compiles your source\n code, runs unit tests, and produces artifacts that are ready to deploy. CodeBuild eliminates\n the need to provision, manage, and scale your own build servers. It provides prepackaged\n build environments for the most popular programming languages and build tools, such as\n Apache Maven, Gradle, and more. You can also fully customize build environments in CodeBuild\n to use your own build tools. CodeBuild scales automatically to meet peak build requests. You\n pay only for the build time you consume. For more information about CodeBuild, see the \n CodeBuild\n User Guide.\n

", "smithy.api#title": "AWS CodeBuild" } }, @@ -1659,7 +1636,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the latest\n version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version takes\n precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide. \n

" + "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the latest\n version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version takes\n precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

" } }, "secondarySourceVersions": { @@ -1697,14 +1674,14 @@ "serviceRole": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services\n on behalf of the AWS account.

", + "smithy.api#documentation": "

The ARN of the Identity and Access Management role that enables CodeBuild to interact with dependent Amazon Web Services services\n on behalf of the Amazon Web Services account.

", "smithy.api#required": {} } }, "timeoutInMinutes": { "target": "com.amazonaws.codebuild#TimeOut", "traits": { - "smithy.api#documentation": "

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before it times out\n any build that has not been marked as completed. The default is 60 minutes.

" + "smithy.api#documentation": "

How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before it times out\n any build that has not been marked as completed. The default is 60 minutes.

" } }, "queuedTimeoutInMinutes": { @@ -1716,19 +1693,19 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" + "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" } }, "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

A list of tag key and value pairs associated with this build project.

\n

These tags are available for use by AWS services that support AWS CodeBuild build project\n tags.

" + "smithy.api#documentation": "

A list of tag key and value pairs associated with this build project.

\n

These tags are available for use by Amazon Web Services services that support CodeBuild build project\n tags.

" } }, "vpcConfig": { "target": "com.amazonaws.codebuild#VpcConfig", "traits": { - "smithy.api#documentation": "

VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.

" + "smithy.api#documentation": "

VpcConfig enables CodeBuild to access resources in an Amazon VPC.

" } }, "badgeEnabled": { @@ -1740,7 +1717,7 @@ "logsConfig": { "target": "com.amazonaws.codebuild#LogsConfig", "traits": { - "smithy.api#documentation": "

Information about logs for the build project. These can be logs in Amazon CloudWatch Logs, logs\n uploaded to a specified S3 bucket, or both.

" + "smithy.api#documentation": "

Information about logs for the build project. These can be logs in CloudWatch Logs, logs\n uploaded to a specified S3 bucket, or both.

" } }, "fileSystemLocations": { @@ -1824,7 +1801,7 @@ "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

\n A list of tag key and value pairs associated with this report group.\n

\n

These tags are available for use by AWS services that support AWS CodeBuild report group\n tags.

" + "smithy.api#documentation": "

\n A list of tag key and value pairs associated with this report group.\n

\n

These tags are available for use by Amazon Web Services services that support CodeBuild report group\n tags.

" } } } @@ -1863,7 +1840,7 @@ } ], "traits": { - "smithy.api#documentation": "

For an existing AWS CodeBuild build project that has its source code stored in a GitHub or\n Bitbucket repository, enables AWS CodeBuild to start rebuilding the source code every time a\n code change is pushed to the repository.

\n \n

If you enable webhooks for an AWS CodeBuild project, and the project is used as a build\n step in AWS CodePipeline, then two identical builds are created for each commit. One build is\n triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build\n basis, you are billed for both builds. Therefore, if you are using AWS CodePipeline, we\n recommend that you disable webhooks in AWS CodeBuild. In the AWS CodeBuild console, clear the\n Webhook box. For more information, see step 5 in Change a Build Project's Settings.

\n
" + "smithy.api#documentation": "

For an existing CodeBuild build project that has its source code stored in a GitHub or\n Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a\n code change is pushed to the repository.

\n \n

If you enable webhooks for an CodeBuild project, and the project is used as a build\n step in CodePipeline, then two identical builds are created for each commit. One build is\n triggered through webhooks, and one through CodePipeline. Because billing is on a per-build\n basis, you are billed for both builds. Therefore, if you are using CodePipeline, we\n recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the\n Webhook box. For more information, see step 5 in Change a Build Project's Settings.

\n
" } }, "com.amazonaws.codebuild#CreateWebhookInput": { @@ -1872,7 +1849,7 @@ "projectName": { "target": "com.amazonaws.codebuild#ProjectName", "traits": { - "smithy.api#documentation": "

The name of the AWS CodeBuild project.

", + "smithy.api#documentation": "

The name of the CodeBuild project.

", "smithy.api#required": {} } }, @@ -1902,7 +1879,7 @@ "webhook": { "target": "com.amazonaws.codebuild#Webhook", "traits": { - "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n AWS CodeBuild.

" + "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n CodeBuild.

" } } } @@ -2191,7 +2168,7 @@ } ], "traits": { - "smithy.api#documentation": "

For an existing AWS CodeBuild build project that has its source code stored in a GitHub or\n Bitbucket repository, stops AWS CodeBuild from rebuilding the source code every time a code\n change is pushed to the repository.

" + "smithy.api#documentation": "

For an existing CodeBuild build project that has its source code stored in a GitHub or\n Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code\n change is pushed to the repository.

" } }, "com.amazonaws.codebuild#DeleteWebhookInput": { @@ -2200,7 +2177,7 @@ "projectName": { "target": "com.amazonaws.codebuild#ProjectName", "traits": { - "smithy.api#documentation": "

The name of the AWS CodeBuild project.

", + "smithy.api#documentation": "

The name of the CodeBuild project.

", "smithy.api#required": {} } } @@ -2394,7 +2371,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about a Docker image that is managed by AWS CodeBuild.

" + "smithy.api#documentation": "

Information about a Docker image that is managed by CodeBuild.

" } }, "com.amazonaws.codebuild#EnvironmentImages": { @@ -2420,7 +2397,7 @@ } }, "traits": { - "smithy.api#documentation": "

A set of Docker images that are related by programming language and are managed by\n AWS CodeBuild.

" + "smithy.api#documentation": "

A set of Docker images that are related by programming language and are managed by\n CodeBuild.

" } }, "com.amazonaws.codebuild#EnvironmentLanguages": { @@ -2446,7 +2423,7 @@ } }, "traits": { - "smithy.api#documentation": "

A set of Docker images that are related by platform and are managed by AWS CodeBuild.

" + "smithy.api#documentation": "

A set of Docker images that are related by platform and are managed by\n CodeBuild.

" } }, "com.amazonaws.codebuild#EnvironmentPlatforms": { @@ -2495,14 +2472,14 @@ "value": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The value of the environment variable.

\n \n

We strongly discourage the use of PLAINTEXT environment variables to\n store sensitive values, especially AWS secret key IDs and secret access keys.\n PLAINTEXT environment variables can be displayed in plain text\n using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI). For sensitive values, we recommend you use an\n environment variable of type PARAMETER_STORE or\n SECRETS_MANAGER.

\n
", + "smithy.api#documentation": "

The value of the environment variable.

\n \n

We strongly discourage the use of PLAINTEXT environment variables to\n store sensitive values, especially Amazon Web Services secret key IDs and secret access keys.\n PLAINTEXT environment variables can be displayed in plain text\n using the CodeBuild console and the AWS Command Line Interface (AWS CLI). For sensitive values, we recommend you\n use an environment variable of type PARAMETER_STORE or\n SECRETS_MANAGER.

\n
", "smithy.api#required": {} } }, "type": { "target": "com.amazonaws.codebuild#EnvironmentVariableType", "traits": { - "smithy.api#documentation": "

The type of environment variable. Valid values include:

\n " + "smithy.api#documentation": "

The type of environment variable. Valid values include:

\n " } } }, @@ -2552,7 +2529,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about an exported environment variable.

\n

Exported environment variables are used in conjunction with AWS CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the AWS CodePipeline User Guide.

\n \n

During a build, the value of a variable is available starting with the\n install phase. It can be updated between the start of the\n install phase and the end of the post_build phase.\n After the post_build phase ends, the value of exported variables cannot\n change.

\n
" + "smithy.api#documentation": "

Contains information about an exported environment variable.

\n

Exported environment variables are used in conjunction with CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the CodePipeline User Guide.

\n \n

During a build, the value of a variable is available starting with the\n install phase. It can be updated between the start of the\n install phase and the end of the post_build phase.\n After the post_build phase ends, the value of exported variables cannot\n change.

\n
" } }, "com.amazonaws.codebuild#ExportedEnvironmentVariables": { @@ -2704,13 +2681,13 @@ "fetchSubmodules": { "target": "com.amazonaws.codebuild#WrapperBoolean", "traits": { - "smithy.api#documentation": "

Set to true to fetch Git submodules for your AWS CodeBuild build project.

", + "smithy.api#documentation": "

Set to true to fetch Git submodules for your CodeBuild build project.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Information about the Git submodules configuration for an AWS CodeBuild build project.\n

" + "smithy.api#documentation": "

Information about the Git submodules configuration for an CodeBuild build project.\n

" } }, "com.amazonaws.codebuild#Identifiers": { @@ -2760,7 +2737,7 @@ } ], "traits": { - "smithy.api#documentation": "

Imports the source repository credentials for an AWS CodeBuild project that has its\n source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

" + "smithy.api#documentation": "

Imports the source repository credentials for an CodeBuild project that has its\n source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

" } }, "com.amazonaws.codebuild#ImportSourceCredentialsInput": { @@ -2789,7 +2766,7 @@ "authType": { "target": "com.amazonaws.codebuild#AuthType", "traits": { - "smithy.api#documentation": "

The type of authentication used to connect to a GitHub, GitHub Enterprise, or\n Bitbucket repository. An OAUTH connection is not supported by the API and must be\n created using the AWS CodeBuild console.

", + "smithy.api#documentation": "

The type of authentication used to connect to a GitHub, GitHub Enterprise, or\n Bitbucket repository. An OAUTH connection is not supported by the API and must be\n created using the CodeBuild console.

", "smithy.api#required": {} } }, @@ -2850,7 +2827,7 @@ "projectName": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the AWS CodeBuild build project that the cache is reset for.

", + "smithy.api#documentation": "

The name of the CodeBuild build project that the cache is reset for.

", "smithy.api#required": {} } } @@ -3117,7 +3094,7 @@ "projectName": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the AWS CodeBuild project.

", + "smithy.api#documentation": "

The name of the CodeBuild project.

", "smithy.api#required": {} } }, @@ -3195,7 +3172,7 @@ "target": "com.amazonaws.codebuild#ListCuratedEnvironmentImagesOutput" }, "traits": { - "smithy.api#documentation": "

Gets information about Docker images that are managed by AWS CodeBuild.

" + "smithy.api#documentation": "

Gets information about Docker images that are managed by CodeBuild.

" } }, "com.amazonaws.codebuild#ListCuratedEnvironmentImagesInput": { @@ -3208,7 +3185,7 @@ "platforms": { "target": "com.amazonaws.codebuild#EnvironmentPlatforms", "traits": { - "smithy.api#documentation": "

Information about supported platforms for Docker images that are managed by\n AWS CodeBuild.

" + "smithy.api#documentation": "

Information about supported platforms for Docker images that are managed by\n CodeBuild.

" } } } @@ -3289,7 +3266,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Gets a list ARNs for the report groups in the current AWS account.\n

", + "smithy.api#documentation": "

\n Gets a list ARNs for the report groups in the current Amazon Web Services account.\n

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -3339,7 +3316,7 @@ "reportGroups": { "target": "com.amazonaws.codebuild#ReportGroupArns", "traits": { - "smithy.api#documentation": "

\n The list of ARNs for the report groups in the current AWS account.\n

" + "smithy.api#documentation": "

\n The list of ARNs for the report groups in the current Amazon Web Services account.\n

" } } } @@ -3358,7 +3335,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of ARNs for the reports in the current AWS account.\n

", + "smithy.api#documentation": "

\n Returns a list of ARNs for the reports in the current Amazon Web Services account.\n

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -3487,7 +3464,7 @@ "reports": { "target": "com.amazonaws.codebuild#ReportArns", "traits": { - "smithy.api#documentation": "

\n The list of returned ARNs for the reports in the current AWS account.\n

" + "smithy.api#documentation": "

\n The list of returned ARNs for the reports in the current Amazon Web Services account.\n

" } } } @@ -3506,7 +3483,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets a list of projects that are shared with other AWS accounts or users.

", + "smithy.api#documentation": "

Gets a list of projects that are shared with other Amazon Web Services accounts or users.

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -3521,7 +3498,7 @@ "sortBy": { "target": "com.amazonaws.codebuild#SharedResourceSortByType", "traits": { - "smithy.api#documentation": "

The criterion to be used to list build projects shared with the current AWS account\n or user. Valid values include:

\n " + "smithy.api#documentation": "

The criterion to be used to list build projects shared with the current Amazon Web Services account\n or user. Valid values include:

\n " } }, "sortOrder": { @@ -3556,7 +3533,7 @@ "projects": { "target": "com.amazonaws.codebuild#ProjectArns", "traits": { - "smithy.api#documentation": "

The list of ARNs for the build projects shared with the current AWS account or user.\n

" + "smithy.api#documentation": "

The list of ARNs for the build projects shared with the current Amazon Web Services account or\n user.

" } } } @@ -3575,7 +3552,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets a list of report groups that are shared with other AWS accounts or users.\n

", + "smithy.api#documentation": "

Gets a list of report groups that are shared with other Amazon Web Services accounts or users.\n

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -3596,7 +3573,7 @@ "sortBy": { "target": "com.amazonaws.codebuild#SharedResourceSortByType", "traits": { - "smithy.api#documentation": "

The criterion to be used to list report groups shared with the current AWS account or\n user. Valid values include:

\n " + "smithy.api#documentation": "

The criterion to be used to list report groups shared with the current Amazon Web Services account\n or user. Valid values include:

\n " } }, "nextToken": { @@ -3625,7 +3602,7 @@ "reportGroups": { "target": "com.amazonaws.codebuild#ReportGroupArns", "traits": { - "smithy.api#documentation": "

The list of ARNs for the report groups shared with the current AWS account or user.\n

" + "smithy.api#documentation": "

The list of ARNs for the report groups shared with the current Amazon Web Services account or user.\n

" } } } @@ -3668,7 +3645,7 @@ "cloudWatchLogs": { "target": "com.amazonaws.codebuild#CloudWatchLogsConfig", "traits": { - "smithy.api#documentation": "

Information about Amazon CloudWatch Logs for a build project. Amazon CloudWatch Logs are enabled by default.

" + "smithy.api#documentation": "

Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default.

" } }, "s3Logs": { @@ -3679,7 +3656,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about logs for a build project. These can be logs in Amazon CloudWatch Logs, built in a\n specified S3 bucket, or both.

" + "smithy.api#documentation": "

Information about logs for a build project. These can be logs in CloudWatch Logs, built in a\n specified S3 bucket, or both.

" } }, "com.amazonaws.codebuild#LogsConfigStatusType": { @@ -3703,19 +3680,19 @@ "groupName": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The name of the Amazon CloudWatch Logs group for the build logs.

" + "smithy.api#documentation": "

The name of the CloudWatch Logs group for the build logs.

" } }, "streamName": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The name of the Amazon CloudWatch Logs stream for the build logs.

" + "smithy.api#documentation": "

The name of the CloudWatch Logs stream for the build logs.

" } }, "deepLink": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The URL to an individual build log in Amazon CloudWatch Logs.

" + "smithy.api#documentation": "

The URL to an individual build log in CloudWatch Logs.

" } }, "s3DeepLink": { @@ -3727,7 +3704,7 @@ "cloudWatchLogsArn": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The ARN of Amazon CloudWatch Logs for a build project. Its format is\n arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}.\n For more information, see Resources Defined by Amazon CloudWatch Logs.

" + "smithy.api#documentation": "

The ARN of CloudWatch Logs for a build project. Its format is\n arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}.\n For more information, see Resources Defined by CloudWatch Logs.

" } }, "s3LogsArn": { @@ -3739,7 +3716,7 @@ "cloudWatchLogs": { "target": "com.amazonaws.codebuild#CloudWatchLogsConfig", "traits": { - "smithy.api#documentation": "

Information about Amazon CloudWatch Logs for a build project.

" + "smithy.api#documentation": "

Information about CloudWatch Logs for a build project.

" } }, "s3Logs": { @@ -3750,7 +3727,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about build logs in Amazon CloudWatch Logs.

" + "smithy.api#documentation": "

Information about build logs in CloudWatch Logs.

" } }, "com.amazonaws.codebuild#NetworkInterface": { @@ -3907,7 +3884,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide. \n

" + "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

" } }, "secondarySourceVersions": { @@ -3943,13 +3920,13 @@ "serviceRole": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services\n on behalf of the AWS account.

" + "smithy.api#documentation": "

The ARN of the Identity and Access Management role that enables CodeBuild to interact with dependent Amazon Web Services services\n on behalf of the Amazon Web Services account.

" } }, "timeoutInMinutes": { "target": "com.amazonaws.codebuild#TimeOut", "traits": { - "smithy.api#documentation": "

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any\n related build that did not get marked as completed. The default is 60 minutes.

" + "smithy.api#documentation": "

How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before timing out any\n related build that did not get marked as completed. The default is 60 minutes.

" } }, "queuedTimeoutInMinutes": { @@ -3961,13 +3938,13 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" + "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/). If you don't specify a \n value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).\n

" } }, "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

A list of tag key and value pairs associated with this build project.

\n

These tags are available for use by AWS services that support AWS CodeBuild build project\n tags.

" + "smithy.api#documentation": "

A list of tag key and value pairs associated with this build project.

\n

These tags are available for use by Amazon Web Services services that support CodeBuild build project\n tags.

" } }, "created": { @@ -3985,13 +3962,13 @@ "webhook": { "target": "com.amazonaws.codebuild#Webhook", "traits": { - "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n AWS CodeBuild.

" + "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n CodeBuild.

" } }, "vpcConfig": { "target": "com.amazonaws.codebuild#VpcConfig", "traits": { - "smithy.api#documentation": "

Information about the VPC configuration that AWS CodeBuild accesses.

" + "smithy.api#documentation": "

Information about the VPC configuration that CodeBuild accesses.

" } }, "badge": { @@ -4003,7 +3980,7 @@ "logsConfig": { "target": "com.amazonaws.codebuild#LogsConfig", "traits": { - "smithy.api#documentation": "

Information about logs for the build project. A project can create logs in Amazon CloudWatch Logs, an\n S3 bucket, or both.

" + "smithy.api#documentation": "

Information about logs for the build project. A project can create logs in CloudWatch Logs, an\n S3 bucket, or both.

" } }, "fileSystemLocations": { @@ -4047,38 +4024,38 @@ "type": { "target": "com.amazonaws.codebuild#ArtifactsType", "traits": { - "smithy.api#documentation": "

The type of build output artifact. Valid values include:

\n ", + "smithy.api#documentation": "

The type of build output artifact. Valid values include:

\n ", "smithy.api#required": {} } }, "location": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

Information about the build output artifact location:

\n " + "smithy.api#documentation": "

Information about the build output artifact location:

\n " } }, "path": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

Along with namespaceType and name, the pattern that AWS CodeBuild\n uses to name and store the output artifact:

\n \n

For example, if path is set to MyArtifacts,\n namespaceType is set to NONE, and name is set\n to MyArtifact.zip, the output artifact is stored in the output bucket at\n MyArtifacts/MyArtifact.zip.

" + "smithy.api#documentation": "

Along with namespaceType and name, the pattern that\n CodeBuild uses to name and store the output artifact:

\n \n

For example, if path is set to MyArtifacts,\n namespaceType is set to NONE, and name is set\n to MyArtifact.zip, the output artifact is stored in the output bucket at\n MyArtifacts/MyArtifact.zip.

" } }, "namespaceType": { "target": "com.amazonaws.codebuild#ArtifactNamespace", "traits": { - "smithy.api#documentation": "

Along with path and name, the pattern that AWS CodeBuild uses to\n determine the name and location to store the output artifact:

\n \n

For example, if path is set to MyArtifacts,\n namespaceType is set to BUILD_ID, and name is\n set to MyArtifact.zip, the output artifact is stored in\n MyArtifacts//MyArtifact.zip.

" + "smithy.api#documentation": "

Along with path and name, the pattern that CodeBuild uses to\n determine the name and location to store the output artifact:

\n \n

For example, if path is set to MyArtifacts,\n namespaceType is set to BUILD_ID, and name is\n set to MyArtifact.zip, the output artifact is stored in\n MyArtifacts//MyArtifact.zip.

" } }, "name": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

Along with path and namespaceType, the pattern that AWS CodeBuild\n uses to name and store the output artifact:

\n \n

For example:

\n " + "smithy.api#documentation": "

Along with path and namespaceType, the pattern that\n CodeBuild uses to name and store the output artifact:

\n \n

For example:

\n " } }, "packaging": { "target": "com.amazonaws.codebuild#ArtifactPackaging", "traits": { - "smithy.api#documentation": "

The type of build output artifact to create:

\n " + "smithy.api#documentation": "

The type of build output artifact to create:

\n " } }, "overrideArtifactName": { @@ -4098,9 +4075,6 @@ "traits": { "smithy.api#documentation": "

An identifier for this artifact definition.

" } - }, - "bucketOwnerAccess": { - "target": "com.amazonaws.codebuild#BucketOwnerAccess" } }, "traits": { @@ -4219,21 +4193,21 @@ "type": { "target": "com.amazonaws.codebuild#EnvironmentType", "traits": { - "smithy.api#documentation": "

The type of build environment to use for related builds.

\n ", + "smithy.api#documentation": "

The type of build environment to use for related builds.

\n \n \n

For more information, see Build environment compute types in the CodeBuild\n user guide.

", "smithy.api#required": {} } }, "image": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The image tag or image digest that identifies the Docker image to use for this build\n project. Use the following formats:

\n ", + "smithy.api#documentation": "

The image tag or image digest that identifies the Docker image to use for this build\n project. Use the following formats:

\n \n

For more information, see Docker images provided by CodeBuild in the CodeBuild user\n guide.

", "smithy.api#required": {} } }, "computeType": { "target": "com.amazonaws.codebuild#ComputeType", "traits": { - "smithy.api#documentation": "

Information about the compute resources the build project uses. Available values\n include:

\n \n

If you use BUILD_GENERAL1_LARGE:

\n \n

For more information, see Build Environment\n Compute Types in the AWS CodeBuild User Guide.\n

", + "smithy.api#documentation": "

Information about the compute resources the build project uses. Available values\n include:

\n \n

If you use BUILD_GENERAL1_LARGE:

\n \n

For more information, see Build Environment\n Compute Types in the CodeBuild User Guide.\n

", "smithy.api#required": {} } }, @@ -4252,7 +4226,7 @@ "certificate": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded\n certificate for the build project. For more information, see certificate in the\n AWS CodeBuild User Guide.

" + "smithy.api#documentation": "

The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded\n certificate for the build project. For more information, see certificate in the\n CodeBuild User Guide.

" } }, "registryCredential": { @@ -4264,7 +4238,7 @@ "imagePullCredentialsType": { "target": "com.amazonaws.codebuild#ImagePullCredentialsType", "traits": { - "smithy.api#documentation": "

The type of credentials AWS CodeBuild uses to pull images in your build. There are two valid\n values:

\n \n

When you use a cross-account or private registry image, you must use SERVICE_ROLE\n credentials. When you use an AWS CodeBuild curated image, you must use CODEBUILD credentials.\n

" + "smithy.api#documentation": "

The type of credentials CodeBuild uses to pull images in your build. There are two valid\n values:

\n \n

When you use a cross-account or private registry image, you must use SERVICE_ROLE\n credentials. When you use an CodeBuild curated image, you must use CODEBUILD credentials.\n

" } } }, @@ -4284,7 +4258,7 @@ "location": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A string that specifies the location of the file system created by Amazon EFS. Its\n format is efs-dns-name:/directory-path. You can find the DNS name of file\n system when you view it in the AWS EFS console. The directory path is a path to a\n directory in the file system that CodeBuild mounts. For example, if the DNS name of a\n file system is fs-abcd1234.efs.us-west-2.amazonaws.com, and its mount\n directory is my-efs-mount-directory, then the location is\n fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory.

\n

The directory path in the format efs-dns-name:/directory-path is\n optional. If you do not specify a directory path, the location is only the DNS name and\n CodeBuild mounts the entire file system.

" + "smithy.api#documentation": "

A string that specifies the location of the file system created by Amazon EFS. Its\n format is efs-dns-name:/directory-path. You can find the DNS name of file\n system when you view it in the Amazon EFS console. The directory path is a path to a\n directory in the file system that CodeBuild mounts. For example, if the DNS name of a\n file system is fs-abcd1234.efs.us-west-2.amazonaws.com, and its mount\n directory is my-efs-mount-directory, then the location is\n fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory.

\n

The directory path in the format efs-dns-name:/directory-path is\n optional. If you do not specify a directory path, the location is only the DNS name and\n CodeBuild mounts the entire file system.

" } }, "mountPoint": { @@ -4302,7 +4276,7 @@ "mountOptions": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The mount options for a file system created by AWS EFS. The default mount options\n used by CodeBuild are\n nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2. For\n more information, see Recommended NFS Mount\n Options.

" + "smithy.api#documentation": "

The mount options for a file system created by Amazon EFS. The default mount options used\n by CodeBuild are\n nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2. For\n more information, see Recommended NFS Mount\n Options.

" } } }, @@ -4375,14 +4349,14 @@ "type": { "target": "com.amazonaws.codebuild#SourceType", "traits": { - "smithy.api#documentation": "

The type of repository that contains the source code to be built. Valid values\n include:

\n ", + "smithy.api#documentation": "

The type of repository that contains the source code to be built. Valid values\n include:

\n ", "smithy.api#required": {} } }, "location": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

Information about the location of the source code to be built. Valid values\n include:

\n " + "smithy.api#documentation": "

Information about the location of the source code to be built. Valid values\n include:

\n \n

\n If you specify CODEPIPELINE for the Type property, don't specify this \n property. For all of the other types, you must specify Location.\n

" } }, "gitCloneDepth": { @@ -4400,19 +4374,19 @@ "buildspec": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The buildspec file declaration to use for the builds in this build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same AWS Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" + "smithy.api#documentation": "

The buildspec file declaration to use for the builds in this build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" } }, "auth": { "target": "com.amazonaws.codebuild#SourceAuth", "traits": { - "smithy.api#documentation": "

Information about the authorization settings for AWS CodeBuild to access the source code to be\n built.

\n

This information is for the AWS CodeBuild console's use only. Your code should not get or set\n this information directly.

" + "smithy.api#documentation": "

Information about the authorization settings for CodeBuild to access the source code to be\n built.

\n

This information is for the CodeBuild console's use only. Your code should not get or set\n this information directly.

" } }, "reportBuildStatus": { "target": "com.amazonaws.codebuild#WrapperBoolean", "traits": { - "smithy.api#documentation": "

Set to true to report the status of a build's start and finish to your source\n provider. This option is valid only when your source provider is GitHub, GitHub\n Enterprise, or Bitbucket. If this is set and you use a different source provider, an\n invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the AWS CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" + "smithy.api#documentation": "

Set to true to report the status of a build's start and finish to your source\n provider. This option is valid only when your source provider is GitHub, GitHub\n Enterprise, or Bitbucket. If this is set and you use a different source provider, an\n invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" } }, "buildStatusConfig": { @@ -4451,7 +4425,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The source version for the corresponding source identifier. If specified, must be one\n of:

\n \n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide.

", + "smithy.api#documentation": "

The source version for the corresponding source identifier. If specified, must be one\n of:

\n \n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

", "smithy.api#required": {} } } @@ -4504,7 +4478,7 @@ "policy": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

A JSON-formatted resource policy. For more information, see Sharing\n a Project and Sharing a Report Group in the AWS CodeBuild User Guide.\n

", + "smithy.api#documentation": "

A JSON-formatted resource policy. For more information, see Sharing\n a Project and Sharing a Report Group in the CodeBuild User Guide.\n

", "smithy.api#required": {} } }, @@ -4534,20 +4508,20 @@ "credential": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.

\n \n

The credential can use the name of the credentials only if they\n exist in your current AWS Region.

\n
", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.

\n \n

The credential can use the name of the credentials only if they\n exist in your current Region.

\n
", "smithy.api#required": {} } }, "credentialProvider": { "target": "com.amazonaws.codebuild#CredentialProviderType", "traits": { - "smithy.api#documentation": "

The service that created the credentials to access a private Docker registry. The\n valid value, SECRETS_MANAGER, is for AWS Secrets Manager.

", + "smithy.api#documentation": "

The service that created the credentials to access a private Docker registry. The\n valid value, SECRETS_MANAGER, is for Secrets Manager.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Information about credentials that provide access to a private Docker registry. When\n this is set:

\n \n

For more information, see Private Registry with\n AWS Secrets Manager Sample for AWS CodeBuild.

" + "smithy.api#documentation": "

Information about credentials that provide access to a private Docker registry. When\n this is set:

\n \n

For more information, see Private Registry with\n Secrets Manager Sample for CodeBuild.

" } }, "com.amazonaws.codebuild#Report": { @@ -4748,7 +4722,7 @@ "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

A list of tag key and value pairs associated with this report group.

\n

These tags are available for use by AWS services that support AWS CodeBuild report group\n tags.

" + "smithy.api#documentation": "

A list of tag key and value pairs associated with this report group.

\n

These tags are available for use by Amazon Web Services services that support CodeBuild report group\n tags.

" } }, "status": { @@ -5042,7 +5016,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified AWS resource cannot be created, because an AWS resource with the same\n settings already exists.

", + "smithy.api#documentation": "

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the\n same settings already exists.

", "smithy.api#error": "client" } }, @@ -5054,7 +5028,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified AWS resource cannot be found.

", + "smithy.api#documentation": "

The specified Amazon Web Services resource cannot be found.

", "smithy.api#error": "client" } }, @@ -5113,7 +5087,7 @@ "idempotencyToken": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n RetryBuildBatch request. The token is included in the\n RetryBuildBatch request and is valid for five minutes. If you repeat\n the RetryBuildBatch request with the same token, but change a parameter,\n AWS CodeBuild returns a parameter mismatch error.

" + "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n RetryBuildBatch request. The token is included in the\n RetryBuildBatch request and is valid for five minutes. If you repeat\n the RetryBuildBatch request with the same token, but change a parameter,\n CodeBuild returns a parameter mismatch error.

" } }, "retryType": { @@ -5159,7 +5133,7 @@ "idempotencyToken": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n RetryBuild request. The token is included in the\n RetryBuild request and is valid for five minutes. If you repeat\n the RetryBuild request with the same token, but change a parameter,\n AWS CodeBuild returns a parameter mismatch error.

" + "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n RetryBuild request. The token is included in the\n RetryBuild request and is valid for five minutes. If you repeat\n the RetryBuild request with the same token, but change a parameter,\n CodeBuild returns a parameter mismatch error.

" } } } @@ -5193,9 +5167,6 @@ "traits": { "smithy.api#documentation": "

Set to true if you do not want your S3 build log output encrypted. By default S3\n build logs are encrypted.

" } - }, - "bucketOwnerAccess": { - "target": "com.amazonaws.codebuild#BucketOwnerAccess" } }, "traits": { @@ -5214,7 +5185,7 @@ "bucketOwner": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The AWS account identifier of the owner of the Amazon S3 bucket. This allows report data to be exported to an Amazon S3 bucket\n that is owned by an account other than the account running the build.

" + "smithy.api#documentation": "

The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data\n to be exported to an Amazon S3 bucket that is owned by an account other than the account\n running the build.

" } }, "path": { @@ -5226,7 +5197,7 @@ "packaging": { "target": "com.amazonaws.codebuild#ReportPackagingType", "traits": { - "smithy.api#documentation": "

The type of build output artifact to create. Valid values include:

\n " + "smithy.api#documentation": "

The type of build output artifact to create. Valid values include:

\n " } }, "encryptionKey": { @@ -5334,7 +5305,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the authorization settings for AWS CodeBuild to access the source code to be\n built.

\n

This information is for the AWS CodeBuild console's use only. Your code should not get or set\n this information directly.

" + "smithy.api#documentation": "

Information about the authorization settings for CodeBuild to access the source code\n to be built.

\n

This information is for the CodeBuild console's use only. Your code should not get or\n set this information directly.

" } }, "com.amazonaws.codebuild#SourceAuthType": { @@ -5483,7 +5454,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The version of the batch build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

\n
\n
AWS CodeCommit
\n
\n

The commit ID, branch, or Git tag to use.

\n
\n
GitHub
\n
\n

The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

\n
\n
Bitbucket
\n
\n

The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

\n
\n
Amazon S3
\n
\n

The version ID of the object that represents the build input ZIP file to\n use.

\n
\n
\n

If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide.

" + "smithy.api#documentation": "

The version of the batch build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

\n
\n
CodeCommit
\n
\n

The commit ID, branch, or Git tag to use.

\n
\n
GitHub
\n
\n

The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

\n
\n
Bitbucket
\n
\n

The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

\n
\n
Amazon S3
\n
\n

The version ID of the object that represents the build input ZIP file to\n use.

\n
\n
\n

If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

" } }, "artifactsOverride": { @@ -5537,7 +5508,7 @@ "buildspecOverride": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A buildspec file declaration that overrides, for this build only, the latest one\n already defined in the build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same AWS Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" + "smithy.api#documentation": "

A buildspec file declaration that overrides, for this build only, the latest one\n already defined in the build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" } }, "insecureSslOverride": { @@ -5609,13 +5580,13 @@ "encryptionKeyOverride": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) that overrides the one specified in the batch build\n project. The CMK key encrypts the build output artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" + "smithy.api#documentation": "

The Key Management Service customer master key (CMK) that overrides the one specified in the batch build\n project. The CMK key encrypts the build output artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" } }, "idempotencyToken": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n StartBuildBatch request. The token is included in the\n StartBuildBatch request and is valid for five minutes. If you repeat\n the StartBuildBatch request with the same token, but change a parameter,\n AWS CodeBuild returns a parameter mismatch error.

" + "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n StartBuildBatch request. The token is included in the\n StartBuildBatch request and is valid for five minutes. If you repeat\n the StartBuildBatch request with the same token, but change a parameter,\n CodeBuild returns a parameter mismatch error.

" } }, "logsConfigOverride": { @@ -5633,7 +5604,7 @@ "imagePullCredentialsTypeOverride": { "target": "com.amazonaws.codebuild#ImagePullCredentialsType", "traits": { - "smithy.api#documentation": "

The type of credentials AWS CodeBuild uses to pull images in your batch build. There are two valid\n values:

\n
\n
CODEBUILD
\n
\n

Specifies that AWS CodeBuild uses its own credentials. This requires that you\n modify your ECR repository policy to trust AWS CodeBuild's service principal.

\n
\n
SERVICE_ROLE
\n
\n

Specifies that AWS CodeBuild uses your build project's service role.

\n
\n
\n

When using a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When using an AWS CodeBuild curated image,\n you must use CODEBUILD credentials.

" + "smithy.api#documentation": "

The type of credentials CodeBuild uses to pull images in your batch build. There are two valid\n values:

\n
\n
CODEBUILD
\n
\n

Specifies that CodeBuild uses its own credentials. This requires that you\n modify your ECR repository policy to trust CodeBuild's service principal.

\n
\n
SERVICE_ROLE
\n
\n

Specifies that CodeBuild uses your build project's service role.

\n
\n
\n

When using a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When using an CodeBuild curated image,\n you must use CODEBUILD credentials.

" } }, "buildBatchConfigOverride": { @@ -5667,7 +5638,7 @@ "projectName": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the AWS CodeBuild build project to start running a build.

", + "smithy.api#documentation": "

The name of the CodeBuild build project to start running a build.

", "smithy.api#required": {} } }, @@ -5686,7 +5657,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The version of the build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

\n
\n
AWS CodeCommit
\n
\n

The commit ID, branch, or Git tag to use.

\n
\n
GitHub
\n
\n

The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

\n
\n
Bitbucket
\n
\n

The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

\n
\n
Amazon S3
\n
\n

The version ID of the object that represents the build input ZIP file to\n use.

\n
\n
\n

If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide.

" + "smithy.api#documentation": "

The version of the build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

\n
\n
CodeCommit
\n
\n

The commit ID, branch, or Git tag to use.

\n
\n
GitHub
\n
\n

The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

\n
\n
Bitbucket
\n
\n

The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

\n
\n
Amazon S3
\n
\n

The version ID of the object that represents the build input ZIP file to\n use.

\n
\n
\n

If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

" } }, "artifactsOverride": { @@ -5734,13 +5705,13 @@ "gitSubmodulesConfigOverride": { "target": "com.amazonaws.codebuild#GitSubmodulesConfig", "traits": { - "smithy.api#documentation": "

Information about the Git submodules configuration for this build of an AWS CodeBuild build\n project.

" + "smithy.api#documentation": "

Information about the Git submodules configuration for this build of an CodeBuild build\n project.

" } }, "buildspecOverride": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A buildspec file declaration that overrides, for this build only, the latest one\n already defined in the build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same AWS Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" + "smithy.api#documentation": "

A buildspec file declaration that overrides, for this build only, the latest one\n already defined in the build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" } }, "insecureSslOverride": { @@ -5752,7 +5723,7 @@ "reportBuildStatusOverride": { "target": "com.amazonaws.codebuild#WrapperBoolean", "traits": { - "smithy.api#documentation": "

Set to true to report to your source provider the status of a build's start and\n completion. If you use this option with a source provider other than GitHub, GitHub\n Enterprise, or Bitbucket, an invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the AWS CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" + "smithy.api#documentation": "

Set to true to report to your source provider the status of a build's start and\n completion. If you use this option with a source provider other than GitHub, GitHub\n Enterprise, or Bitbucket, an invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" } }, "buildStatusConfigOverride": { @@ -5818,13 +5789,13 @@ "encryptionKeyOverride": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) that overrides the one specified in the build\n project. The CMK key encrypts the build output artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" + "smithy.api#documentation": "

The Key Management Service customer master key (CMK) that overrides the one specified in the build\n project. The CMK key encrypts the build output artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" } }, "idempotencyToken": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n StartBuild request. The token is included in the StartBuild request and is valid for 5\n minutes. If you repeat the StartBuild request with the same token, but change a\n parameter, AWS CodeBuild returns a parameter mismatch error.

" + "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n StartBuild request. The token is included in the StartBuild request and is valid for 5\n minutes. If you repeat the StartBuild request with the same token, but change a\n parameter, CodeBuild returns a parameter mismatch error.

" } }, "logsConfigOverride": { @@ -5842,7 +5813,7 @@ "imagePullCredentialsTypeOverride": { "target": "com.amazonaws.codebuild#ImagePullCredentialsType", "traits": { - "smithy.api#documentation": "

The type of credentials AWS CodeBuild uses to pull images in your build. There are two valid\n values:

\n
\n
CODEBUILD
\n
\n

Specifies that AWS CodeBuild uses its own credentials. This requires that you\n modify your ECR repository policy to trust AWS CodeBuild's service principal.

\n
\n
SERVICE_ROLE
\n
\n

Specifies that AWS CodeBuild uses your build project's service role.

\n
\n
\n

When using a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When using an AWS CodeBuild curated image,\n you must use CODEBUILD credentials.

" + "smithy.api#documentation": "

The type of credentials CodeBuild uses to pull images in your build. There are two valid\n values:

\n
\n
CODEBUILD
\n
\n

Specifies that CodeBuild uses its own credentials. This requires that you\n modify your ECR repository policy to trust CodeBuild's service principal.

\n
\n
SERVICE_ROLE
\n
\n

Specifies that CodeBuild uses your build project's service role.

\n
\n
\n

When using a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When using an CodeBuild curated image,\n you must use CODEBUILD credentials.

" } }, "debugSessionEnabled": { @@ -6010,7 +5981,7 @@ } }, "traits": { - "smithy.api#documentation": "

A tag, consisting of a key and a value.

\n

This tag is available for use by AWS services that support tags in AWS CodeBuild.

" + "smithy.api#documentation": "

A tag, consisting of a key and a value.

\n

This tag is available for use by Amazon Web Services services that support tags in CodeBuild.

" } }, "com.amazonaws.codebuild#TagList": { @@ -6200,7 +6171,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide. \n

" + "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

" } }, "secondarySourceVersions": { @@ -6236,13 +6207,13 @@ "serviceRole": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The replacement ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent\n AWS services on behalf of the AWS account.

" + "smithy.api#documentation": "

The replacement ARN of the Identity and Access Management role that enables CodeBuild to interact with dependent\n Amazon Web Services services on behalf of the Amazon Web Services account.

" } }, "timeoutInMinutes": { "target": "com.amazonaws.codebuild#TimeOut", "traits": { - "smithy.api#documentation": "

The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before\n timing out any related build that did not get marked as completed.

" + "smithy.api#documentation": "

The replacement value in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before\n timing out any related build that did not get marked as completed.

" } }, "queuedTimeoutInMinutes": { @@ -6254,19 +6225,19 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" + "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" } }, "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

An updated list of tag key and value pairs associated with this build project.

\n

These tags are available for use by AWS services that support AWS CodeBuild build project\n tags.

" + "smithy.api#documentation": "

An updated list of tag key and value pairs associated with this build project.

\n

These tags are available for use by Amazon Web Services services that support CodeBuild build project\n tags.

" } }, "vpcConfig": { "target": "com.amazonaws.codebuild#VpcConfig", "traits": { - "smithy.api#documentation": "

VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.

" + "smithy.api#documentation": "

VpcConfig enables CodeBuild to access resources in an Amazon VPC.

" } }, "badgeEnabled": { @@ -6278,7 +6249,7 @@ "logsConfig": { "target": "com.amazonaws.codebuild#LogsConfig", "traits": { - "smithy.api#documentation": "

Information about logs for the build project. A project can create logs in Amazon CloudWatch Logs,\n logs in an S3 bucket, or both.

" + "smithy.api#documentation": "

Information about logs for the build project. A project can create logs in CloudWatch Logs,\n logs in an S3 bucket, or both.

" } }, "fileSystemLocations": { @@ -6348,7 +6319,7 @@ "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

\n An updated list of tag key and value pairs associated with this report group.\n

\n

These tags are available for use by AWS services that support AWS CodeBuild report group\n tags.

" + "smithy.api#documentation": "

\n An updated list of tag key and value pairs associated with this report group.\n

\n

These tags are available for use by Amazon Web Services services that support CodeBuild report group\n tags.

" } } } @@ -6384,7 +6355,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the webhook associated with an AWS CodeBuild build project.

\n \n

If you use Bitbucket for your repository, rotateSecret is ignored.\n

\n
" + "smithy.api#documentation": "

Updates the webhook associated with an CodeBuild build project.

\n \n

If you use Bitbucket for your repository, rotateSecret is ignored.\n

\n
" } }, "com.amazonaws.codebuild#UpdateWebhookInput": { @@ -6393,7 +6364,7 @@ "projectName": { "target": "com.amazonaws.codebuild#ProjectName", "traits": { - "smithy.api#documentation": "

The name of the AWS CodeBuild project.

", + "smithy.api#documentation": "

The name of the CodeBuild project.

", "smithy.api#required": {} } }, @@ -6429,7 +6400,7 @@ "webhook": { "target": "com.amazonaws.codebuild#Webhook", "traits": { - "smithy.api#documentation": "

Information about a repository's webhook that is associated with a project in AWS CodeBuild.\n

" + "smithy.api#documentation": "

Information about a repository's webhook that is associated with a project in CodeBuild.\n

" } } } @@ -6467,7 +6438,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the VPC configuration that AWS CodeBuild accesses.

" + "smithy.api#documentation": "

Information about the VPC configuration that CodeBuild accesses.

" } }, "com.amazonaws.codebuild#Webhook": { @@ -6482,7 +6453,7 @@ "payloadUrl": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS CodeBuild endpoint where webhook events are sent.

" + "smithy.api#documentation": "

The CodeBuild endpoint where webhook events are sent.

" } }, "secret": { @@ -6517,7 +6488,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n AWS CodeBuild.

" + "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n CodeBuild.

" } }, "com.amazonaws.codebuild#WebhookBuildType": { @@ -6541,7 +6512,7 @@ "type": { "target": "com.amazonaws.codebuild#WebhookFilterType", "traits": { - "smithy.api#documentation": "

The type of webhook filter. There are six webhook filter types: EVENT,\n ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF,\n FILE_PATH, and COMMIT_MESSAGE.

\n
\n
\n EVENT\n
\n
\n

A webhook event triggers a build when the provided pattern\n matches one of five event types: PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED,\n PULL_REQUEST_REOPENED, and\n PULL_REQUEST_MERGED. The EVENT patterns are\n specified as a comma-separated string. For example, PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED filters all push, pull\n request created, and pull request updated events.

\n \n

The PULL_REQUEST_REOPENED works with GitHub and GitHub\n Enterprise only.

\n
\n
\n
\n ACTOR_ACCOUNT_ID\n
\n
\n

A webhook event triggers a build when a GitHub, GitHub Enterprise, or\n Bitbucket account ID matches the regular expression pattern.\n

\n
\n
\n HEAD_REF\n
\n
\n

A webhook event triggers a build when the head reference matches the\n regular expression pattern. For example,\n refs/heads/branch-name and refs/tags/tag-name.

\n

Works with GitHub and GitHub Enterprise push, GitHub and GitHub\n Enterprise pull request, Bitbucket push, and Bitbucket pull request events.\n

\n
\n
\n BASE_REF\n
\n
\n

A webhook event triggers a build when the base reference matches the\n regular expression pattern. For example,\n refs/heads/branch-name.

\n \n

Works with pull request events only.

\n
\n
\n
\n FILE_PATH\n
\n
\n

A webhook triggers a build when the path of a changed file matches the\n regular expression pattern.

\n \n

Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events.

\n
\n
\n
COMMIT_MESSAGE
\n
\n

A webhook triggers a build when the head commit message matches the\n regular expression pattern.

\n \n

Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events.

\n
\n
\n
", + "smithy.api#documentation": "

The type of webhook filter. There are six webhook filter types: EVENT,\n ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF,\n FILE_PATH, and COMMIT_MESSAGE.

\n
\n
EVENT
\n
\n

A webhook event triggers a build when the provided pattern\n matches one of five event types: PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED,\n PULL_REQUEST_REOPENED, and\n PULL_REQUEST_MERGED. The EVENT patterns are\n specified as a comma-separated string. For example, PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED filters all push, pull\n request created, and pull request updated events.

\n \n

The PULL_REQUEST_REOPENED works with GitHub and GitHub\n Enterprise only.

\n
\n
\n
ACTOR_ACCOUNT_ID
\n
\n

A webhook event triggers a build when a GitHub, GitHub Enterprise, or\n Bitbucket account ID matches the regular expression pattern.\n

\n
\n
HEAD_REF
\n
\n

A webhook event triggers a build when the head reference matches the\n regular expression pattern. For example,\n refs/heads/branch-name and refs/tags/tag-name.

\n

Works with GitHub and GitHub Enterprise push, GitHub and GitHub\n Enterprise pull request, Bitbucket push, and Bitbucket pull request events.\n

\n
\n
BASE_REF
\n
\n

A webhook event triggers a build when the base reference matches the\n regular expression pattern. For example,\n refs/heads/branch-name.

\n \n

Works with pull request events only.

\n
\n
\n
FILE_PATH
\n
\n

A webhook triggers a build when the path of a changed file matches the\n regular expression pattern.

\n \n

Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events.

\n
\n
\n
COMMIT_MESSAGE
\n
\n

A webhook triggers a build when the head commit message matches the\n regular expression pattern.

\n \n

Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events.

\n
\n
\n
", "smithy.api#required": {} } }, diff --git a/codegen/sdk-codegen/aws-models/cognitoidentityprovider.2016-04-18.json b/codegen/sdk-codegen/aws-models/cognitoidentityprovider.2016-04-18.json index e4efbcad6f2..08fd104adb2 100644 --- a/codegen/sdk-codegen/aws-models/cognitoidentityprovider.2016-04-18.json +++ b/codegen/sdk-codegen/aws-models/cognitoidentityprovider.2016-04-18.json @@ -661,7 +661,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

If your user pool configuration includes triggers, the AdminConfirmSignUp API action\n invokes the Lambda function that is specified for the post\n confirmation trigger. When Amazon Cognito invokes this function, it\n passes a JSON payload, which the function receives as input. In this payload, the\n clientMetadata attribute provides the data that you assigned to the\n ClientMetadata parameter in your AdminConfirmSignUp request. In your function code in\n Lambda, you can process the ClientMetadata value to enhance your workflow for your\n specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

If your user pool configuration includes triggers, the AdminConfirmSignUp API action\n invokes the AWS Lambda function that is specified for the post\n confirmation trigger. When Amazon Cognito invokes this function, it\n passes a JSON payload, which the function receives as input. In this payload, the\n clientMetadata attribute provides the data that you assigned to the\n ClientMetadata parameter in your AdminConfirmSignUp request. In your function code in\n AWS Lambda, you can process the ClientMetadata value to enhance your workflow for your\n specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -735,7 +735,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new user in the specified user pool.

\n

If MessageAction is not set, the default is to send a welcome message via\n email or phone (SMS).

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

This message is based on a template that you configured in your call to create or\n update a user pool. This template includes your custom sign-up instructions and\n placeholders for user name and temporary password.

\n

Alternatively, you can call AdminCreateUser with “SUPPRESS” for the\n MessageAction parameter, and Amazon Cognito will not send any email.

\n

In either case, the user will be in the FORCE_CHANGE_PASSWORD state until\n they sign in and change their password.

\n

\n AdminCreateUser requires developer credentials.

" + "smithy.api#documentation": "

Creates a new user in the specified user pool.

\n

If MessageAction is not set, the default is to send a welcome message via\n email or phone (SMS).

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

This message is based on a template that you configured in your call to create or\n update a user pool. This template includes your custom sign-up instructions and\n placeholders for user name and temporary password.

\n

Alternatively, you can call AdminCreateUser with “SUPPRESS” for the\n MessageAction parameter, and Amazon Cognito will not send any email.

\n

In either case, the user will be in the FORCE_CHANGE_PASSWORD state until\n they sign in and change their password.

\n

\n AdminCreateUser requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminCreateUserConfigType": { @@ -820,7 +820,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is\n assigned to the pre sign-up trigger. When Amazon Cognito invokes\n this function, it passes a JSON payload, which the function receives as input. This\n payload contains a clientMetadata attribute, which provides the data that\n you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your\n function code in Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is\n assigned to the pre sign-up trigger. When Amazon Cognito invokes\n this function, it passes a JSON payload, which the function receives as input. This\n payload contains a clientMetadata attribute, which provides the data that\n you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your\n function code in AWS Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -1460,7 +1460,7 @@ } ], "traits": { - "smithy.api#documentation": "

Initiates the authentication flow, as an administrator.

\n \n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" + "smithy.api#documentation": "

Initiates the authentication flow, as an administrator.

\n \n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminInitiateAuthRequest": { @@ -1496,7 +1496,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for certain custom\n workflows that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminInitiateAuth API action, Amazon Cognito invokes the Lambda\n functions that are specified for various triggers. The ClientMetadata value is passed as\n input to the functions for only the following triggers:

\n \n

When Amazon Cognito invokes the functions for these triggers, it passes a JSON\n payload, which the function receives as input. This payload contains a\n validationData attribute, which provides the data that you assigned to\n the ClientMetadata parameter in your AdminInitiateAuth request. In your function code in\n Lambda, you can process the validationData value to enhance your\n workflow for your specific needs.

\n

When you use the AdminInitiateAuth API action, Amazon Cognito also invokes the\n functions for the following triggers, but it does not provide the ClientMetadata value\n as input:

\n \n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for certain custom\n workflows that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminInitiateAuth API action, Amazon Cognito invokes the AWS Lambda\n functions that are specified for various triggers. The ClientMetadata value is passed as\n input to the functions for only the following triggers:

\n \n

When Amazon Cognito invokes the functions for these triggers, it passes a JSON\n payload, which the function receives as input. This payload contains a\n validationData attribute, which provides the data that you assigned to\n the ClientMetadata parameter in your AdminInitiateAuth request. In your function code in\n AWS Lambda, you can process the validationData value to enhance your\n workflow for your specific needs.

\n

When you use the AdminInitiateAuth API action, Amazon Cognito also invokes the\n functions for the following triggers, but it does not provide the ClientMetadata value\n as input:

\n \n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } }, "AnalyticsMetadata": { @@ -1982,7 +1982,7 @@ } ], "traits": { - "smithy.api#documentation": "

Resets the specified user's password in a user pool as an administrator. Works on any\n user.

\n

When a developer calls this API, the current password is invalidated, so it must be\n changed. If a user tries to sign in after the API is called, the app will get a\n PasswordResetRequiredException exception back and should direct the user down the flow\n to reset the password, which is the same as the forgot password flow. In addition, if\n the user pool has phone verification selected and a verified phone number exists for the\n user, or if email verification is selected and a verified email exists for the user,\n calling this API will also result in sending a message to the end user with the code to\n change their password.

\n \n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" + "smithy.api#documentation": "

Resets the specified user's password in a user pool as an administrator. Works on any\n user.

\n

When a developer calls this API, the current password is invalidated, so it must be\n changed. If a user tries to sign in after the API is called, the app will get a\n PasswordResetRequiredException exception back and should direct the user down the flow\n to reset the password, which is the same as the forgot password flow. In addition, if\n the user pool has phone verification selected and a verified phone number exists for the\n user, or if email verification is selected and a verified email exists for the user,\n calling this API will also result in sending a message to the end user with the code to\n change their password.

\n \n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminResetUserPasswordRequest": { @@ -2005,7 +2005,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminResetUserPassword API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your AdminResetUserPassword\n request. In your function code in Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminResetUserPassword API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your AdminResetUserPassword\n request. In your function code in AWS Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -2091,7 +2091,7 @@ } ], "traits": { - "smithy.api#documentation": "

Responds to an authentication challenge, as an administrator.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" + "smithy.api#documentation": "

Responds to an authentication challenge, as an administrator.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminRespondToAuthChallengeRequest": { @@ -2145,7 +2145,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminRespondToAuthChallenge API action, Amazon Cognito invokes any\n functions that are assigned to the following triggers: pre sign-up,\n custom message, post authentication,\n user migration, pre token generation,\n define auth challenge, create auth\n challenge, and verify auth challenge response. When\n Amazon Cognito invokes any of these functions, it passes a JSON payload, which the\n function receives as input. This payload contains a clientMetadata\n attribute, which provides the data that you assigned to the ClientMetadata parameter in\n your AdminRespondToAuthChallenge request. In your function code in Lambda, you can\n process the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminRespondToAuthChallenge API action, Amazon Cognito invokes any\n functions that are assigned to the following triggers: pre sign-up,\n custom message, post authentication,\n user migration, pre token generation,\n define auth challenge, create auth\n challenge, and verify auth challenge response. When\n Amazon Cognito invokes any of these functions, it passes a JSON payload, which the\n function receives as input. This payload contains a clientMetadata\n attribute, which provides the data that you assigned to the ClientMetadata parameter in\n your AdminRespondToAuthChallenge request. In your function code in AWS Lambda, you can\n process the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -2590,7 +2590,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the specified user's attributes, including developer attributes, as an\n administrator. Works on any user.

\n

For custom attributes, you must prepend the custom: prefix to the\n attribute name.

\n

In addition to updating user attributes, this API can also be used to mark phone and\n email as verified.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" + "smithy.api#documentation": "

Updates the specified user's attributes, including developer attributes, as an\n administrator. Works on any user.

\n

For custom attributes, you must prepend the custom: prefix to the\n attribute name.

\n

In addition to updating user attributes, this API can also be used to mark phone and\n email as verified.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminUpdateUserAttributesRequest": { @@ -2620,7 +2620,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminUpdateUserAttributes API action, Amazon Cognito invokes the\n function that is assigned to the custom message trigger. When\n Amazon Cognito invokes this function, it passes a JSON payload, which the function\n receives as input. This payload contains a clientMetadata attribute, which\n provides the data that you assigned to the ClientMetadata parameter in your\n AdminUpdateUserAttributes request. In your function code in Lambda, you can process\n the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminUpdateUserAttributes API action, Amazon Cognito invokes the\n function that is assigned to the custom message trigger. When\n Amazon Cognito invokes this function, it passes a JSON payload, which the function\n receives as input. This payload contains a clientMetadata attribute, which\n provides the data that you assigned to the ClientMetadata parameter in your\n AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can process\n the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -3775,7 +3775,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the ConfirmForgotPassword API action, Amazon Cognito invokes the function\n that is assigned to the post confirmation trigger. When Amazon\n Cognito invokes this function, it passes a JSON payload, which the function receives as\n input. This payload contains a clientMetadata attribute, which provides the\n data that you assigned to the ClientMetadata parameter in your ConfirmForgotPassword\n request. In your function code in Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the ConfirmForgotPassword API action, Amazon Cognito invokes the function\n that is assigned to the post confirmation trigger. When Amazon\n Cognito invokes this function, it passes a JSON payload, which the function receives as\n input. This payload contains a clientMetadata attribute, which provides the\n data that you assigned to the ClientMetadata parameter in your ConfirmForgotPassword\n request. In your function code in AWS Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -3899,7 +3899,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the ConfirmSignUp API action, Amazon Cognito invokes the function that is\n assigned to the post confirmation trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your ConfirmSignUp request. In your\n function code in Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the ConfirmSignUp API action, Amazon Cognito invokes the function that is\n assigned to the post confirmation trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your ConfirmSignUp request. In your\n function code in AWS Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -4333,7 +4333,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new Amazon Cognito user pool and sets the password policy for the\n pool.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" + "smithy.api#documentation": "

Creates a new Amazon Cognito user pool and sets the password policy for the\n pool.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" } }, "com.amazonaws.cognitoidentityprovider#CreateUserPoolClient": { @@ -4472,7 +4472,7 @@ "AllowedOAuthScopes": { "target": "com.amazonaws.cognitoidentityprovider#ScopeListType", "traits": { - "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by Amazon Web Services are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" + "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by AWS are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" } }, "AllowedOAuthFlowsUserPoolClient": { @@ -4602,7 +4602,7 @@ "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { - "smithy.api#documentation": "

The Lambda trigger configuration information for the new user pool.

\n \n

In a push model, event sources (such as Amazon S3 and custom applications) need\n permission to invoke a function. So you will need to make an extra call to add\n permission for these event sources to invoke your Lambda function.

\n

\n

For more information on using the Lambda API to add permission, see \n AddPermission .

\n

For adding permission using the CLI, see add-permission\n .

\n
" + "smithy.api#documentation": "

The Lambda trigger configuration information for the new user pool.

\n \n

In a push model, event sources (such as Amazon S3 and custom applications) need\n permission to invoke a function. So you will need to make an extra call to add\n permission for these event sources to invoke your Lambda function.

\n

\n

For more information on using the Lambda API to add permission, see \n AddPermission .

\n

For adding permission using the AWS CLI, see add-permission\n .

\n
" } }, "AutoVerifiedAttributes": { @@ -4760,7 +4760,7 @@ "CertificateArn": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Certificate Manager SSL certificate. You use\n this certificate for the subdomain of your custom domain.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. You use\n this certificate for the subdomain of your custom domain.

", "smithy.api#required": {} } } @@ -5835,7 +5835,7 @@ "AWSAccountId": { "target": "com.amazonaws.cognitoidentityprovider#AWSAccountIdType", "traits": { - "smithy.api#documentation": "

The account ID for the user pool owner.

" + "smithy.api#documentation": "

The AWS account ID for the user pool owner.

" } }, "Domain": { @@ -5962,7 +5962,7 @@ "EmailSendingAccount": { "target": "com.amazonaws.cognitoidentityprovider#EmailSendingAccountType", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon Cognito emails your users by using its built-in email\n functionality or your Amazon SES email configuration. Specify one of the following\n values:

\n
\n
COGNITO_DEFAULT
\n
\n

When Amazon Cognito emails your users, it uses its built-in email\n functionality. When you use the default option, Amazon Cognito allows only a\n limited number of emails each day for your user pool. For typical production\n environments, the default email limit is below the required delivery volume.\n To achieve a higher delivery volume, specify DEVELOPER to use your Amazon\n SES email configuration.

\n

To look up the email delivery limit for the default option, see Limits in Amazon Cognito in the Amazon Cognito\n Developer Guide.

\n

The default FROM address is no-reply@verificationemail.com. To customize\n the FROM address, provide the ARN of an Amazon SES verified email address\n for the SourceArn parameter.

\n

If EmailSendingAccount is COGNITO_DEFAULT, the following parameters\n aren't allowed:

\n \n \n

DEVELOPER EmailSendingAccount is required.

\n
\n
\n
DEVELOPER
\n
\n

When Amazon Cognito emails your users, it uses your Amazon SES\n configuration. Amazon Cognito calls Amazon SES on your behalf to send email\n from your verified email address. When you use this option, the email\n delivery limits are the same limits that apply to your Amazon SES verified\n email address in your account.

\n

If you use this option, you must provide the ARN of an Amazon SES verified\n email address for the SourceArn parameter.

\n

Before Amazon Cognito can email your users, it requires additional\n permissions to call Amazon SES on your behalf. When you update your user\n pool with this option, Amazon Cognito creates a service-linked\n role, which is a type of IAM role, in your account. This\n role contains the permissions that allow Amazon Cognito to access Amazon SES\n and send email messages with your address. For more information about the\n service-linked role that Amazon Cognito creates, see Using Service-Linked Roles for Amazon\n Cognito in the Amazon Cognito Developer\n Guide.

\n
\n
" + "smithy.api#documentation": "

Specifies whether Amazon Cognito emails your users by using its built-in email\n functionality or your Amazon SES email configuration. Specify one of the following\n values:

\n
\n
COGNITO_DEFAULT
\n
\n

When Amazon Cognito emails your users, it uses its built-in email\n functionality. When you use the default option, Amazon Cognito allows only a\n limited number of emails each day for your user pool. For typical production\n environments, the default email limit is below the required delivery volume.\n To achieve a higher delivery volume, specify DEVELOPER to use your Amazon\n SES email configuration.

\n

To look up the email delivery limit for the default option, see Limits in Amazon Cognito in the Amazon Cognito\n Developer Guide.

\n

The default FROM address is no-reply@verificationemail.com. To customize\n the FROM address, provide the ARN of an Amazon SES verified email address\n for the SourceArn parameter.

\n

If EmailSendingAccount is COGNITO_DEFAULT, the following parameters\n aren't allowed:

\n \n \n

DEVELOPER EmailSendingAccount is required.

\n
\n
\n
DEVELOPER
\n
\n

When Amazon Cognito emails your users, it uses your Amazon SES\n configuration. Amazon Cognito calls Amazon SES on your behalf to send email\n from your verified email address. When you use this option, the email\n delivery limits are the same limits that apply to your Amazon SES verified\n email address in your AWS account.

\n

If you use this option, you must provide the ARN of an Amazon SES verified\n email address for the SourceArn parameter.

\n

Before Amazon Cognito can email your users, it requires additional\n permissions to call Amazon SES on your behalf. When you update your user\n pool with this option, Amazon Cognito creates a service-linked\n role, which is a type of IAM role, in your AWS account. This\n role contains the permissions that allow Amazon Cognito to access Amazon SES\n and send email messages with your address. For more information about the\n service-linked role that Amazon Cognito creates, see Using Service-Linked Roles for Amazon\n Cognito in the Amazon Cognito Developer\n Guide.

\n
\n
" } }, "From": { @@ -5974,7 +5974,7 @@ "ConfigurationSet": { "target": "com.amazonaws.cognitoidentityprovider#SESConfigurationSet", "traits": { - "smithy.api#documentation": "

The set of configuration rules that can be applied to emails sent using Amazon SES. A\n configuration set is applied to an email by including a reference to the configuration\n set in the headers of the email. Once applied, all of the rules in that configuration\n set are applied to the email. Configuration sets can be used to apply the following\n types of rules to emails:

\n " + "smithy.api#documentation": "

The set of configuration rules that can be applied to emails sent using Amazon SES. A\n configuration set is applied to an email by including a reference to the configuration\n set in the headers of the email. Once applied, all of the rules in that configuration\n set are applied to the email. Configuration sets can be used to apply the following\n types of rules to emails:

\n " } } }, @@ -6426,7 +6426,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Calling this API causes a message to be sent to the end user with a confirmation code\n that is required to change the user's password. For the Username parameter,\n you can use the username or user alias. The method used to send the confirmation code is\n sent according to the specified AccountRecoverySetting. For more information, see Recovering\n User Accounts in the Amazon Cognito Developer Guide. If\n neither a verified phone number nor a verified email exists, an\n InvalidParameterException is thrown. To use the confirmation code for\n resetting the password, call ConfirmForgotPassword.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Calling this API causes a message to be sent to the end user with a confirmation code\n that is required to change the user's password. For the Username parameter,\n you can use the username or user alias. The method used to send the confirmation code is\n sent according to the specified AccountRecoverySetting. For more information, see Recovering\n User Accounts in the Amazon Cognito Developer Guide. If\n neither a verified phone number nor a verified email exists, an\n InvalidParameterException is thrown. To use the confirmation code for\n resetting the password, call ConfirmForgotPassword.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -6468,7 +6468,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the ForgotPassword API action, Amazon Cognito invokes any functions that\n are assigned to the following triggers: pre sign-up,\n custom message, and user migration. When\n Amazon Cognito invokes any of these functions, it passes a JSON payload, which the\n function receives as input. This payload contains a clientMetadata\n attribute, which provides the data that you assigned to the ClientMetadata parameter in\n your ForgotPassword request. In your function code in Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the ForgotPassword API action, Amazon Cognito invokes any functions that\n are assigned to the following triggers: pre sign-up,\n custom message, and user migration. When\n Amazon Cognito invokes any of these functions, it passes a JSON payload, which the\n function receives as input. This payload contains a clientMetadata\n attribute, which provides the data that you assigned to the ClientMetadata parameter in\n your ForgotPassword request. In your function code in AWS Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -6964,7 +6964,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Gets the user attribute verification code for the specified attribute name.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Gets the user attribute verification code for the specified attribute name.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -6988,7 +6988,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the GetUserAttributeVerificationCode API action, Amazon Cognito invokes the\n function that is assigned to the custom message trigger. When\n Amazon Cognito invokes this function, it passes a JSON payload, which the function\n receives as input. This payload contains a clientMetadata attribute, which\n provides the data that you assigned to the ClientMetadata parameter in your\n GetUserAttributeVerificationCode request. In your function code in Lambda, you can\n process the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the GetUserAttributeVerificationCode API action, Amazon Cognito invokes the\n function that is assigned to the custom message trigger. When\n Amazon Cognito invokes this function, it passes a JSON payload, which the function\n receives as input. This payload contains a clientMetadata attribute, which\n provides the data that you assigned to the ClientMetadata parameter in your\n GetUserAttributeVerificationCode request. In your function code in AWS Lambda, you can\n process the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -7476,7 +7476,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Initiates the authentication flow.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Initiates the authentication flow.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -7499,7 +7499,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for certain custom\n workflows that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the InitiateAuth API action, Amazon Cognito invokes the Lambda\n functions that are specified for various triggers. The ClientMetadata value is passed as\n input to the functions for only the following triggers:

\n \n

When Amazon Cognito invokes the functions for these triggers, it passes a JSON\n payload, which the function receives as input. This payload contains a\n validationData attribute, which provides the data that you assigned to\n the ClientMetadata parameter in your InitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow\n for your specific needs.

\n

When you use the InitiateAuth API action, Amazon Cognito also invokes the functions\n for the following triggers, but it does not provide the ClientMetadata value as\n input:

\n \n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for certain custom\n workflows that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the InitiateAuth API action, Amazon Cognito invokes the AWS Lambda\n functions that are specified for various triggers. The ClientMetadata value is passed as\n input to the functions for only the following triggers:

\n \n

When Amazon Cognito invokes the functions for these triggers, it passes a JSON\n payload, which the function receives as input. This payload contains a\n validationData attribute, which provides the data that you assigned to\n the ClientMetadata parameter in your InitiateAuth request. In your function code in AWS\n Lambda, you can process the validationData value to enhance your workflow\n for your specific needs.

\n

When you use the InitiateAuth API action, Amazon Cognito also invokes the functions\n for the following triggers, but it does not provide the ClientMetadata value as\n input:

\n \n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } }, "ClientId": { @@ -7598,12 +7598,12 @@ "message": { "target": "com.amazonaws.cognitoidentityprovider#MessageType", "traits": { - "smithy.api#documentation": "

The message returned when the Amazon Cognito service throws an invalid Lambda\n response exception.

" + "smithy.api#documentation": "

The message returned when the Amazon Cognito service throws an invalid AWS Lambda\n response exception.

" } } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters an invalid Lambda response.

", + "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters an invalid AWS\n Lambda response.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -7680,7 +7680,7 @@ } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when the trust relationship is invalid for the role provided\n for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com or the external ID provided in the role does\n not match what is provided in the SMS configuration for the user pool.

", + "smithy.api#documentation": "

This exception is thrown when the trust relationship is invalid for the role provided\n for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com or the external ID provided in the role does\n not match what is provided in the SMS configuration for the user pool.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -7707,31 +7707,31 @@ "PreSignUp": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A pre-registration Lambda trigger.

" + "smithy.api#documentation": "

A pre-registration AWS Lambda trigger.

" } }, "CustomMessage": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A custom Message Lambda trigger.

" + "smithy.api#documentation": "

A custom Message AWS Lambda trigger.

" } }, "PostConfirmation": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A post-confirmation Lambda trigger.

" + "smithy.api#documentation": "

A post-confirmation AWS Lambda trigger.

" } }, "PreAuthentication": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A pre-authentication Lambda trigger.

" + "smithy.api#documentation": "

A pre-authentication AWS Lambda trigger.

" } }, "PostAuthentication": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A post-authentication Lambda trigger.

" + "smithy.api#documentation": "

A post-authentication AWS Lambda trigger.

" } }, "DefineAuthChallenge": { @@ -7767,13 +7767,13 @@ "CustomSMSSender": { "target": "com.amazonaws.cognitoidentityprovider#CustomSMSLambdaVersionConfigType", "traits": { - "smithy.api#documentation": "

A custom SMS sender Lambda trigger.

" + "smithy.api#documentation": "

A custom SMS sender AWS Lambda trigger.

" } }, "CustomEmailSender": { "target": "com.amazonaws.cognitoidentityprovider#CustomEmailLambdaVersionConfigType", "traits": { - "smithy.api#documentation": "

A custom email sender Lambda trigger.

" + "smithy.api#documentation": "

A custom email sender AWS Lambda trigger.

" } }, "KMSKeyID": { @@ -7784,7 +7784,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies the configuration for Lambda triggers.

" + "smithy.api#documentation": "

Specifies the configuration for AWS Lambda triggers.

" } }, "com.amazonaws.cognitoidentityprovider#LimitExceededException": { @@ -7798,7 +7798,7 @@ } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when a user exceeds the limit for a requested Amazon Web Services\n resource.

", + "smithy.api#documentation": "

This exception is thrown when a user exceeds the limit for a requested AWS\n resource.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -8380,7 +8380,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the user pools associated with an account.

", + "smithy.api#documentation": "

Lists the user pools associated with an AWS account.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -9276,7 +9276,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Resends the confirmation (for confirmation of registration) to a specific user in the\n user pool.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Resends the confirmation (for confirmation of registration) to a specific user in the\n user pool.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -9318,7 +9318,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the ResendConfirmationCode API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your ResendConfirmationCode\n request. In your function code in Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the ResendConfirmationCode API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your ResendConfirmationCode\n request. In your function code in AWS Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -9539,7 +9539,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Responds to the authentication challenge.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Responds to the authentication challenge.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -9587,7 +9587,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the RespondToAuthChallenge API action, Amazon Cognito invokes any functions\n that are assigned to the following triggers: post authentication,\n pre token generation, define auth\n challenge, create auth challenge, and\n verify auth challenge. When Amazon Cognito invokes any of these\n functions, it passes a JSON payload, which the function receives as input. This payload\n contains a clientMetadata attribute, which provides the data that you\n assigned to the ClientMetadata parameter in your RespondToAuthChallenge request. In your\n function code in Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the RespondToAuthChallenge API action, Amazon Cognito invokes any functions\n that are assigned to the following triggers: post authentication,\n pre token generation, define auth\n challenge, create auth challenge, and\n verify auth challenge. When Amazon Cognito invokes any of these\n functions, it passes a JSON payload, which the function receives as input. This payload\n contains a clientMetadata attribute, which provides the data that you\n assigned to the ClientMetadata parameter in your RespondToAuthChallenge request. In your\n function code in AWS Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -10227,7 +10227,7 @@ } ], "traits": { - "smithy.api#documentation": "

Set the user pool multi-factor authentication (MFA) configuration.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" + "smithy.api#documentation": "

Set the user pool multi-factor authentication (MFA) configuration.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" } }, "com.amazonaws.cognitoidentityprovider#SetUserPoolMfaConfigRequest": { @@ -10403,7 +10403,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Registers the user in the specified user pool and creates a user name, password, and\n user attributes.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Registers the user in the specified user pool and creates a user name, password, and\n user attributes.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -10464,7 +10464,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the SignUp API action, Amazon Cognito invokes any functions that are\n assigned to the following triggers: pre sign-up, custom\n message, and post confirmation. When Amazon Cognito\n invokes any of these functions, it passes a JSON payload, which the function receives as\n input. This payload contains a clientMetadata attribute, which provides the\n data that you assigned to the ClientMetadata parameter in your SignUp request. In your\n function code in Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the SignUp API action, Amazon Cognito invokes any functions that are\n assigned to the following triggers: pre sign-up, custom\n message, and post confirmation. When Amazon Cognito\n invokes any of these functions, it passes a JSON payload, which the function receives as\n input. This payload contains a clientMetadata attribute, which provides the\n data that you assigned to the ClientMetadata parameter in your SignUp request. In your\n function code in AWS Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -10518,19 +10518,19 @@ "SnsCallerArn": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.\n This is the ARN of the IAM role in your account which Cognito will use to send SMS\n messages. SMS messages are subject to a spending limit.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.\n This is the ARN of the IAM role in your AWS account which Cognito will use to send SMS\n messages. SMS messages are subject to a spending limit.

", "smithy.api#required": {} } }, "ExternalId": { "target": "com.amazonaws.cognitoidentityprovider#StringType", "traits": { - "smithy.api#documentation": "

The external ID is a value that we recommend you use to add security to your IAM role\n which is used to call Amazon SNS to send SMS messages for your user pool. If you provide\n an ExternalId, the Cognito User Pool will include it when attempting to\n assume your IAM role, so that you can set your roles trust policy to require the\n ExternalID. If you use the Cognito Management Console to create a role\n for SMS MFA, Cognito will create a role with the required permissions and a trust policy\n that demonstrates use of the ExternalId.

\n

For more information about the ExternalId of a role, see How to use an\n external ID when granting access to your Amazon Web Services resources to a third\n party\n

" + "smithy.api#documentation": "

The external ID is a value that we recommend you use to add security to your IAM role\n which is used to call Amazon SNS to send SMS messages for your user pool. If you provide\n an ExternalId, the Cognito User Pool will include it when attempting to\n assume your IAM role, so that you can set your roles trust policy to require the\n ExternalID. If you use the Cognito Management Console to create a role\n for SMS MFA, Cognito will create a role with the required permissions and a trust policy\n that demonstrates use of the ExternalId.

\n

For more information about the ExternalId of a role, see How to use an\n external ID when granting access to your AWS resources to a third\n party\n

" } } }, "traits": { - "smithy.api#documentation": "

The SMS configuration type that includes the settings the Cognito User Pool needs to\n call for the Amazon SNS service to send an SMS message from your account. The\n Cognito User Pool makes the request to the Amazon SNS Service by using an IAM role\n that you provide for your account.

" + "smithy.api#documentation": "

The SMS configuration type that includes the settings the Cognito User Pool needs to\n call for the Amazon SNS service to send an SMS message from your AWS account. The\n Cognito User Pool makes the request to the Amazon SNS Service by using an AWS IAM role\n that you provide for your AWS account.

" } }, "com.amazonaws.cognitoidentityprovider#SmsMfaConfigType": { @@ -11036,12 +11036,12 @@ "message": { "target": "com.amazonaws.cognitoidentityprovider#MessageType", "traits": { - "smithy.api#documentation": "

The message returned when the Amazon Cognito service returns an unexpected Lambda\n exception.

" + "smithy.api#documentation": "

The message returned when the Amazon Cognito service returns an unexpected AWS Lambda\n exception.

" } } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters an unexpected\n exception with the Lambda service.

", + "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters an unexpected\n exception with the AWS Lambda service.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -11334,7 +11334,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the specified group with the specified attributes.

\n

Calling this action requires developer credentials.

" + "smithy.api#documentation": "

Updates the specified group with the specified attributes.

\n

Calling this action requires developer credentials.

\n \n

If you don't provide a value for an attribute, it will be set to the default\n value.

\n
" } }, "com.amazonaws.cognitoidentityprovider#UpdateGroupRequest": { @@ -11605,7 +11605,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Allows a user to update a specific attribute (one at a time).

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Allows a user to update a specific attribute (one at a time).

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -11629,7 +11629,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the UpdateUserAttributes API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your UpdateUserAttributes request.\n In your function code in Lambda, you can process the clientMetadata\n value to enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the UpdateUserAttributes API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your UpdateUserAttributes request.\n In your function code in AWS Lambda, you can process the clientMetadata\n value to enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -11695,7 +11695,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the specified user pool with the specified attributes. You can get a list of\n the current user pool settings using DescribeUserPool. If you don't provide a value for an attribute, it will be set to the default\n value.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" + "smithy.api#documentation": "

Updates the specified user pool with the specified attributes. You can get a list of\n the current user pool settings using DescribeUserPool. If you don't provide a value for an attribute, it will be set to the default\n value.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" } }, "com.amazonaws.cognitoidentityprovider#UpdateUserPoolClient": { @@ -11834,7 +11834,7 @@ "AllowedOAuthScopes": { "target": "com.amazonaws.cognitoidentityprovider#ScopeListType", "traits": { - "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by Amazon Web Services are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" + "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by AWS are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" } }, "AllowedOAuthFlowsUserPoolClient": { @@ -11906,7 +11906,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the Secure Sockets Layer (SSL) certificate for the custom domain for your user\n pool.

\n

You can use this operation to provide the Amazon Resource Name (ARN) of a new\n certificate to Amazon Cognito. You cannot use it to change the domain for a user\n pool.

\n

A custom domain is used to host the Amazon Cognito hosted UI, which provides sign-up\n and sign-in pages for your application. When you set up a custom domain, you provide a\n certificate that you manage with Certificate Manager (ACM). When necessary, you can\n use this operation to change the certificate that you applied to your custom\n domain.

\n

Usually, this is unnecessary following routine certificate renewal with ACM. When you\n renew your existing certificate in ACM, the ARN for your certificate remains the same,\n and your custom domain uses the new certificate automatically.

\n

However, if you replace your existing certificate with a new one, ACM gives the new\n certificate a new ARN. To apply the new certificate to your custom domain, you must\n provide this ARN to Amazon Cognito.

\n

When you add your new certificate in ACM, you must choose US East (N. Virginia) as the\n Region.

\n

After you submit your request, Amazon Cognito requires up to 1 hour to distribute your\n new certificate to your custom domain.

\n

For more information about adding a custom domain to your user pool, see Using Your Own Domain for the Hosted UI.

" + "smithy.api#documentation": "

Updates the Secure Sockets Layer (SSL) certificate for the custom domain for your user\n pool.

\n

You can use this operation to provide the Amazon Resource Name (ARN) of a new\n certificate to Amazon Cognito. You cannot use it to change the domain for a user\n pool.

\n

A custom domain is used to host the Amazon Cognito hosted UI, which provides sign-up\n and sign-in pages for your application. When you set up a custom domain, you provide a\n certificate that you manage with AWS Certificate Manager (ACM). When necessary, you can\n use this operation to change the certificate that you applied to your custom\n domain.

\n

Usually, this is unnecessary following routine certificate renewal with ACM. When you\n renew your existing certificate in ACM, the ARN for your certificate remains the same,\n and your custom domain uses the new certificate automatically.

\n

However, if you replace your existing certificate with a new one, ACM gives the new\n certificate a new ARN. To apply the new certificate to your custom domain, you must\n provide this ARN to Amazon Cognito.

\n

When you add your new certificate in ACM, you must choose US East (N. Virginia) as the\n AWS Region.

\n

After you submit your request, Amazon Cognito requires up to 1 hour to distribute your\n new certificate to your custom domain.

\n

For more information about adding a custom domain to your user pool, see Using Your Own Domain for the Hosted UI.

" } }, "com.amazonaws.cognitoidentityprovider#UpdateUserPoolDomainRequest": { @@ -11971,7 +11971,7 @@ "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { - "smithy.api#documentation": "

The Lambda configuration information from the request to update the user\n pool.

" + "smithy.api#documentation": "

The AWS Lambda configuration information from the request to update the user\n pool.

" } }, "AutoVerifiedAttributes": { @@ -12272,12 +12272,12 @@ "message": { "target": "com.amazonaws.cognitoidentityprovider#MessageType", "traits": { - "smithy.api#documentation": "

The message returned when the Amazon Cognito service returns a user validation\n exception with the Lambda service.

" + "smithy.api#documentation": "

The message returned when the Amazon Cognito service returns a user validation\n exception with the AWS Lambda service.

" } } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters a user validation\n exception with the Lambda service.

", + "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters a user validation\n exception with the AWS Lambda service.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -12494,7 +12494,7 @@ "AllowedOAuthScopes": { "target": "com.amazonaws.cognitoidentityprovider#ScopeListType", "traits": { - "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by Amazon Web Services are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" + "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by AWS are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" } }, "AllowedOAuthFlowsUserPoolClient": { @@ -12545,7 +12545,7 @@ "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { - "smithy.api#documentation": "

The Lambda configuration information in a user pool description.

" + "smithy.api#documentation": "

The AWS Lambda configuration information in a user pool description.

" } }, "Status": { @@ -12682,7 +12682,7 @@ "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { - "smithy.api#documentation": "

The Lambda triggers associated with the user pool.

" + "smithy.api#documentation": "

The AWS Lambda triggers associated with the user pool.

" } }, "Status": { @@ -12796,7 +12796,7 @@ "SmsConfigurationFailure": { "target": "com.amazonaws.cognitoidentityprovider#StringType", "traits": { - "smithy.api#documentation": "

The reason why the SMS configuration cannot send the messages to your users.

\n

This message might include comma-separated values to describe why your SMS configuration\n can't send messages to user pool end users.

\n \n " + "smithy.api#documentation": "

The reason why the SMS configuration cannot send the messages to your users.

\n

This message might include comma-separated values to describe why your SMS configuration\n can't send messages to user pool end users.

\n \n " } }, "EmailConfigurationFailure": { diff --git a/codegen/sdk-codegen/aws-models/computeoptimizer.2019-11-01.json b/codegen/sdk-codegen/aws-models/computeoptimizer.2019-11-01.json index 5cded38efde..14046f2dac8 100644 --- a/codegen/sdk-codegen/aws-models/computeoptimizer.2019-11-01.json +++ b/codegen/sdk-codegen/aws-models/computeoptimizer.2019-11-01.json @@ -175,7 +175,7 @@ "performanceRisk": { "target": "com.amazonaws.computeoptimizer#PerformanceRisk", "traits": { - "smithy.api#documentation": "

The performance risk of the Auto Scaling group configuration recommendation.

\n

Performance risk indicates the likelihood of the recommended instance type not meeting\n the resource needs of your workload. Compute Optimizer calculates an individual performance risk\n score for each specification of the recommended instance, including CPU, memory, EBS\n throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS.\n The performance\n risk of the recommended instance is calculated as the maximum performance risk score\n across the analyzed resource specifications.

\n

The value ranges from 0 - 4, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" + "smithy.api#documentation": "

The performance risk of the Auto Scaling group configuration recommendation.

\n

Performance risk indicates the likelihood of the recommended instance type not meeting\n the resource needs of your workload. Compute Optimizer calculates an individual performance risk\n score for each specification of the recommended instance, including CPU, memory, EBS\n throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS.\n The performance\n risk of the recommended instance is calculated as the maximum performance risk score\n across the analyzed resource specifications.

\n

The value ranges from 0 to 5, with 0 meaning that the recommended resource is\n predicted to always provide enough hardware capability. The higher the performance risk\n is, the more likely you should validate whether the recommended resource meets the\n performance requirements of your workload before migrating your resource.

" } }, "rank": { @@ -2402,7 +2402,7 @@ "performanceRisk": { "target": "com.amazonaws.computeoptimizer#PerformanceRisk", "traits": { - "smithy.api#documentation": "

The performance risk of the instance recommendation option.

\n

Performance risk indicates the likelihood of the recommended instance type not meeting\n the resource needs of your workload. Compute Optimizer calculates an individual performance risk\n score for each specification of the recommended instance, including CPU, memory, EBS\n throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS.\n The performance\n risk of the recommended instance is calculated as the maximum performance risk score\n across the analyzed resource specifications.

\n

The value ranges from 0 - 4, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" + "smithy.api#documentation": "

The performance risk of the instance recommendation option.

\n

Performance risk indicates the likelihood of the recommended instance type not meeting\n the resource needs of your workload. Compute Optimizer calculates an individual performance risk\n score for each specification of the recommended instance, including CPU, memory, EBS\n throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS.\n The performance\n risk of the recommended instance is calculated as the maximum performance risk score\n across the analyzed resource specifications.

\n

The value ranges from 0 to 5, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" } }, "rank": { @@ -3720,7 +3720,7 @@ "performanceRisk": { "target": "com.amazonaws.computeoptimizer#PerformanceRisk", "traits": { - "smithy.api#documentation": "

The performance risk of the volume recommendation option.

\n

Performance risk is the likelihood of the recommended volume type meeting the\n performance requirement of your workload.

\n

The value ranges from 0 - 4, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" + "smithy.api#documentation": "

The performance risk of the volume recommendation option.

\n

Performance risk is the likelihood of the recommended volume type meeting the\n performance requirement of your workload.

\n

The value ranges from 0 to 5, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" } }, "rank": { diff --git a/codegen/sdk-codegen/aws-models/databrew.2017-07-25.json b/codegen/sdk-codegen/aws-models/databrew.2017-07-25.json index 65356fd3c3e..97e7f172a24 100644 --- a/codegen/sdk-codegen/aws-models/databrew.2017-07-25.json +++ b/codegen/sdk-codegen/aws-models/databrew.2017-07-25.json @@ -335,69 +335,6 @@ } } }, - "com.amazonaws.databrew#ColumnSelector": { - "type": "structure", - "members": { - "Regex": { - "target": "com.amazonaws.databrew#ColumnName", - "traits": { - "smithy.api#documentation": "

A regular expression for selecting a column from a dataset.

" - } - }, - "Name": { - "target": "com.amazonaws.databrew#ColumnName", - "traits": { - "smithy.api#documentation": "

The name of a column from a dataset.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Selector of a column from a dataset for profile job configuration. One selector includes either a column name or a regular \n expression.

" - } - }, - "com.amazonaws.databrew#ColumnSelectorList": { - "type": "list", - "member": { - "target": "com.amazonaws.databrew#ColumnSelector" - }, - "traits": { - "smithy.api#length": { - "min": 1 - } - } - }, - "com.amazonaws.databrew#ColumnStatisticsConfiguration": { - "type": "structure", - "members": { - "Selectors": { - "target": "com.amazonaws.databrew#ColumnSelectorList", - "traits": { - "smithy.api#documentation": "

List of column selectors. Selectors can be used to select columns from the dataset. \n When selectors are undefined, configuration will be applied to all supported columns.\n

" - } - }, - "Statistics": { - "target": "com.amazonaws.databrew#StatisticsConfiguration", - "traits": { - "smithy.api#documentation": "

Configuration for evaluations. Statistics can be used to select evaluations and override \n parameters of evaluations. \n

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Configuration for column evaluations for a profile job. ColumnStatisticsConfiguration can be used to select \n evaluations and override parameters of evaluations for particular columns. \n

" - } - }, - "com.amazonaws.databrew#ColumnStatisticsConfigurationList": { - "type": "list", - "member": { - "target": "com.amazonaws.databrew#ColumnStatisticsConfiguration" - }, - "traits": { - "smithy.api#length": { - "min": 1 - } - } - }, "com.amazonaws.databrew#CompressionFormat": { "type": "string", "traits": { @@ -679,12 +616,6 @@ "smithy.api#required": {} } }, - "Configuration": { - "target": "com.amazonaws.databrew#ProfileConfiguration", - "traits": { - "smithy.api#documentation": "

Configuration for profile jobs. Used to select columns, do evaluations, \n and override default parameters of evaluations. When configuration is null, the\n profile job will run with default settings.

" - } - }, "RoleArn": { "target": "com.amazonaws.databrew#Arn", "traits": { @@ -926,13 +857,7 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output from running the job.

" - } - }, - "DatabaseOutputs": { - "target": "com.amazonaws.databrew#DatabaseOutputList", - "traits": { - "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output destination for \n a DataBrew recipe job to write to.

" + "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output from running the job.

" } }, "ProjectName": { @@ -1134,7 +1059,7 @@ } }, "traits": { - "smithy.api#documentation": "

Represents a set of options that define how DataBrew will write a \n comma-separated value (CSV) file.

" + "smithy.api#documentation": "

Represents a set of options that define how DataBrew will write a comma-separated value (CSV) file.

" } }, "com.amazonaws.databrew#DataCatalogInputDefinition": { @@ -1177,7 +1102,7 @@ "CatalogId": { "target": "com.amazonaws.databrew#CatalogId", "traits": { - "smithy.api#documentation": "

The unique identifier of the Amazon Web Services account that holds the Data Catalog that stores the data.

" + "smithy.api#documentation": "

The unique identifier of the AWS account that holds the Data Catalog that stores the data.

" } }, "DatabaseName": { @@ -1197,7 +1122,7 @@ "S3Options": { "target": "com.amazonaws.databrew#S3TableOutputOptions", "traits": { - "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the Amazon S3 output generated \n by recipe jobs.

" + "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the S3 output generated \n by recipe jobs.

" } }, "DatabaseOptions": { @@ -1214,7 +1139,7 @@ } }, "traits": { - "smithy.api#documentation": "

Represents options that specify how and where in the Glue Data Catalog DataBrew \n writes the output generated by recipe jobs.

" + "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the output generated by recipe \n jobs.

" } }, "com.amazonaws.databrew#DataCatalogOutputList": { @@ -1262,56 +1187,6 @@ } } }, - "com.amazonaws.databrew#DatabaseOutput": { - "type": "structure", - "members": { - "GlueConnectionName": { - "target": "com.amazonaws.databrew#GlueConnectionName", - "traits": { - "smithy.api#documentation": "

The Glue connection that stores the connection information for the \n target database.

", - "smithy.api#required": {} - } - }, - "DatabaseOptions": { - "target": "com.amazonaws.databrew#DatabaseTableOutputOptions", - "traits": { - "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the database output \n generated by recipe jobs.

", - "smithy.api#required": {} - } - }, - "DatabaseOutputMode": { - "target": "com.amazonaws.databrew#DatabaseOutputMode", - "traits": { - "smithy.api#documentation": "

The output mode to write into the database. Currently supported option: NEW_TABLE.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Represents a JDBC database output object which defines the output destination for \n a DataBrew recipe job to write into.

" - } - }, - "com.amazonaws.databrew#DatabaseOutputList": { - "type": "list", - "member": { - "target": "com.amazonaws.databrew#DatabaseOutput" - }, - "traits": { - "smithy.api#length": { - "min": 1 - } - } - }, - "com.amazonaws.databrew#DatabaseOutputMode": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "NEW_TABLE", - "name": "NEW_TABLE" - } - ] - } - }, "com.amazonaws.databrew#DatabaseTableName": { "type": "string", "traits": { @@ -2046,13 +1921,7 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output from running the job.

" - } - }, - "DatabaseOutputs": { - "target": "com.amazonaws.databrew#DatabaseOutputList", - "traits": { - "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output \n destination for a DataBrew recipe job to write into.

" + "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output from running the job.

" } }, "ProjectName": { @@ -2061,12 +1930,6 @@ "smithy.api#documentation": "

The DataBrew project associated with this job.

" } }, - "ProfileConfiguration": { - "target": "com.amazonaws.databrew#ProfileConfiguration", - "traits": { - "smithy.api#documentation": "

Configuration for profile jobs. Used to select columns, do evaluations, \n and override default parameters of evaluations. When configuration is null, the\n profile job will run with default settings.

" - } - }, "RecipeReference": { "target": "com.amazonaws.databrew#RecipeReference" }, @@ -2188,12 +2051,6 @@ "smithy.api#required": {} } }, - "ProfileConfiguration": { - "target": "com.amazonaws.databrew#ProfileConfiguration", - "traits": { - "smithy.api#documentation": "

Configuration for profile jobs. Used to select columns, do evaluations, \n and override default parameters of evaluations. When configuration is null, the\n profile job will run with default settings.

" - } - }, "RunId": { "target": "com.amazonaws.databrew#JobRunId", "traits": { @@ -2227,13 +2084,7 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output from running the job.

" - } - }, - "DatabaseOutputs": { - "target": "com.amazonaws.databrew#DatabaseOutputList", - "traits": { - "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output \n destination for a DataBrew recipe job to write into.

" + "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output from running the job.

" } }, "RecipeReference": { @@ -2929,13 +2780,7 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output \n from running the job.

" - } - }, - "DatabaseOutputs": { - "target": "com.amazonaws.databrew#DatabaseOutputList", - "traits": { - "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output \n destination for a DataBrew recipe job to write into.

" + "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output \n from running the job.

" } }, "ProjectName": { @@ -3084,13 +2929,7 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output \n from running the job.

" - } - }, - "DatabaseOutputs": { - "target": "com.amazonaws.databrew#DatabaseOutputList", - "traits": { - "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output \n destination for a DataBrew recipe job to write into.

" + "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output \n from running the job.

" } }, "RecipeReference": { @@ -3955,7 +3794,7 @@ } }, "traits": { - "smithy.api#documentation": "

Represents options that specify how and where in Amazon S3 DataBrew writes the output generated by\n recipe jobs or profile jobs.

" + "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the output generated by\n recipe jobs or profile jobs.

" } }, "com.amazonaws.databrew#OutputFormat": { @@ -4064,7 +3903,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 32768 + "max": 12288 } } }, @@ -4122,32 +3961,6 @@ "com.amazonaws.databrew#Preview": { "type": "boolean" }, - "com.amazonaws.databrew#ProfileConfiguration": { - "type": "structure", - "members": { - "DatasetStatisticsConfiguration": { - "target": "com.amazonaws.databrew#StatisticsConfiguration", - "traits": { - "smithy.api#documentation": "

Configuration for inter-column evaluations. Configuration can be used to select evaluations and override \n parameters of evaluations. When configuration is undefined, the profile job will run all supported \n inter-column evaluations.\n

" - } - }, - "ProfileColumns": { - "target": "com.amazonaws.databrew#ColumnSelectorList", - "traits": { - "smithy.api#documentation": "

List of column selectors. ProfileColumns can be used to select columns from the dataset. When \n ProfileColumns is undefined, the profile job will profile all supported columns.\n

" - } - }, - "ColumnStatisticsConfigurations": { - "target": "com.amazonaws.databrew#ColumnStatisticsConfigurationList", - "traits": { - "smithy.api#documentation": "

List of configurations for column evaluations. ColumnStatisticsConfigurations are used to \n select evaluations and override parameters of evaluations for particular columns. When \n ColumnStatisticsConfigurations is undefined, the profile job will profile all supported columns \n and run all supported evaluations.\n

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Configuration for profile jobs. Configuration can be used to select columns, do evaluations, and override default \n parameters of evaluations. When configuration is undefined, the profile job will apply default settings to all \n supported columns.\n

" - } - }, "com.amazonaws.databrew#Project": { "type": "structure", "members": { @@ -4604,7 +4417,7 @@ } }, "traits": { - "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the Amazon S3 output generated by \n recipe jobs.

" + "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the S3 output generated by \n recipe jobs.

" } }, "com.amazonaws.databrew#Sample": { @@ -5103,80 +4916,6 @@ "com.amazonaws.databrew#StartedBy": { "type": "string" }, - "com.amazonaws.databrew#Statistic": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - }, - "smithy.api#pattern": "^[A-Z\\_]+$" - } - }, - "com.amazonaws.databrew#StatisticList": { - "type": "list", - "member": { - "target": "com.amazonaws.databrew#Statistic" - }, - "traits": { - "smithy.api#length": { - "min": 1 - } - } - }, - "com.amazonaws.databrew#StatisticOverride": { - "type": "structure", - "members": { - "Statistic": { - "target": "com.amazonaws.databrew#Statistic", - "traits": { - "smithy.api#documentation": "

The name of an evaluation

", - "smithy.api#required": {} - } - }, - "Parameters": { - "target": "com.amazonaws.databrew#ParameterMap", - "traits": { - "smithy.api#documentation": "

A map that includes overrides of an evaluation’s parameters.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Override of a particular evaluation for a profile job.

" - } - }, - "com.amazonaws.databrew#StatisticOverrideList": { - "type": "list", - "member": { - "target": "com.amazonaws.databrew#StatisticOverride" - }, - "traits": { - "smithy.api#length": { - "min": 1 - } - } - }, - "com.amazonaws.databrew#StatisticsConfiguration": { - "type": "structure", - "members": { - "IncludedStatistics": { - "target": "com.amazonaws.databrew#StatisticList", - "traits": { - "smithy.api#documentation": "

List of included evaluations. When the list is undefined, all supported \n evaluations will be included.

" - } - }, - "Overrides": { - "target": "com.amazonaws.databrew#StatisticOverrideList", - "traits": { - "smithy.api#documentation": "

List of overrides for evaluations.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Configuration of evaluations for a profile job. This configuration can be used to select \n evaluations and override the parameters of selected evaluations.\n

" - } - }, "com.amazonaws.databrew#StepIndex": { "type": "integer", "traits": { @@ -5535,12 +5274,6 @@ "com.amazonaws.databrew#UpdateProfileJobRequest": { "type": "structure", "members": { - "Configuration": { - "target": "com.amazonaws.databrew#ProfileConfiguration", - "traits": { - "smithy.api#documentation": "

Configuration for profile jobs. Used to select columns, do evaluations, \n and override default parameters of evaluations. When configuration is null, the\n profile job will run with default settings.

" - } - }, "EncryptionKeyArn": { "target": "com.amazonaws.databrew#EncryptionKeyArn", "traits": { @@ -5787,13 +5520,7 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output from running the job.

" - } - }, - "DatabaseOutputs": { - "target": "com.amazonaws.databrew#DatabaseOutputList", - "traits": { - "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output destination for a \n DataBrew recipe job to write into.

" + "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output from running the job.

" } }, "RoleArn": { diff --git a/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json b/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json index 4ed757427c3..3113429d355 100644 --- a/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json +++ b/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json @@ -707,14 +707,11 @@ "awsDeviceV2": { "target": "com.amazonaws.directconnect#AwsDeviceV2", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates the BGP peer.

" + "smithy.api#documentation": "

The Direct Connect endpoint on which the BGP peer terminates.

" } }, "awsLogicalDeviceId": { - "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", - "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" - } + "target": "com.amazonaws.directconnect#AwsLogicalDeviceId" } }, "traits": { @@ -1072,13 +1069,13 @@ "awsDeviceV2": { "target": "com.amazonaws.directconnect#AwsDeviceV2", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates the physical connection.

" + "smithy.api#documentation": "

The Direct Connect endpoint on which the physical connection terminates.

" } }, "awsLogicalDeviceId": { "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates a physical connection's BGP sessions.

" } }, "hasLogicalRedundancy": { @@ -3464,13 +3461,13 @@ "awsDeviceV2": { "target": "com.amazonaws.directconnect#AwsDeviceV2", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates the physical connection.

" + "smithy.api#documentation": "

The Direct Connect endpoint on which the physical connection terminates.

" } }, "awsLogicalDeviceId": { "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates a physical connection's BGP sessions.

" } }, "hasLogicalRedundancy": { @@ -3632,7 +3629,7 @@ "awsLogicalDeviceId": { "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates a physical connection's BGP sessions.

" } }, "connections": { @@ -5385,13 +5382,13 @@ "awsDeviceV2": { "target": "com.amazonaws.directconnect#AwsDeviceV2", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates the physical connection.

" + "smithy.api#documentation": "

The Direct Connect endpoint on which the virtual interface terminates.

" } }, "awsLogicalDeviceId": { "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates a physical connection's BGP sessions.

" } }, "tags": { diff --git a/codegen/sdk-codegen/aws-models/ec2.2016-11-15.json b/codegen/sdk-codegen/aws-models/ec2.2016-11-15.json index 2b7ddf961d6..ab74b23878b 100644 --- a/codegen/sdk-codegen/aws-models/ec2.2016-11-15.json +++ b/codegen/sdk-codegen/aws-models/ec2.2016-11-15.json @@ -564,7 +564,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "NetworkInterfaceOwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the network interface.

", + "smithy.api#documentation": "

The ID of the account that owns the network interface.

", "smithy.api#xmlName": "networkInterfaceOwnerId" } }, @@ -774,7 +774,7 @@ "target": "com.amazonaws.ec2#AllocateAddressResult" }, "traits": { - "smithy.api#documentation": "

Allocates an Elastic IP address to your Amazon Web Services account. After you allocate the Elastic IP address you can associate \n it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address \n pool and can be allocated to a different Amazon Web Services account.

\n

You can allocate an Elastic IP address from an address pool owned by Amazon Web Services or from an address pool created \n from a public IPv4 address range that you have brought to Amazon Web Services for use with your Amazon Web Services resources using bring your own \n IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

\n

[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an \n Elastic IP address that you released after it is allocated to another Amazon Web Services account. You cannot recover an Elastic IP\n address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.

\n

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate\n 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic IP addresses for EC2-VPC per Region.

\n

For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

\n

You can allocate a carrier IP address which is a public IP address from a telecommunication carrier, to a network interface which resides in a subnet in a Wavelength Zone (for example an EC2 instance).

" + "smithy.api#documentation": "

Allocates an Elastic IP address to your account. After you allocate the Elastic IP address you can associate \n it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address \n pool and can be allocated to a different account.

\n

You can allocate an Elastic IP address from an address pool owned by Amazon Web Services or from an address pool created \n from a public IPv4 address range that you have brought to Amazon Web Services for use with your Amazon Web Services resources using bring your own \n IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

\n

[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an \n Elastic IP address that you released after it is allocated to another account. You cannot recover an Elastic IP\n address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.

\n

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate\n 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic IP addresses for EC2-VPC per Region.

\n

For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

\n

You can allocate a carrier IP address which is a public IP address from a telecommunication carrier, to a network interface which resides in a subnet in a Wavelength Zone (for example an EC2 instance).

" } }, "com.amazonaws.ec2#AllocateAddressRequest": { @@ -1201,9 +1201,6 @@ { "target": "com.amazonaws.ec2#AssociateIamInstanceProfile" }, - { - "target": "com.amazonaws.ec2#AssociateInstanceEventWindow" - }, { "target": "com.amazonaws.ec2#AssociateRouteTable" }, @@ -1324,9 +1321,6 @@ { "target": "com.amazonaws.ec2#CreateImage" }, - { - "target": "com.amazonaws.ec2#CreateInstanceEventWindow" - }, { "target": "com.amazonaws.ec2#CreateInstanceExportTask" }, @@ -1405,9 +1399,6 @@ { "target": "com.amazonaws.ec2#CreateSubnet" }, - { - "target": "com.amazonaws.ec2#CreateSubnetCidrReservation" - }, { "target": "com.amazonaws.ec2#CreateTags" }, @@ -1504,9 +1495,6 @@ { "target": "com.amazonaws.ec2#DeleteFpgaImage" }, - { - "target": "com.amazonaws.ec2#DeleteInstanceEventWindow" - }, { "target": "com.amazonaws.ec2#DeleteInternetGateway" }, @@ -1573,9 +1561,6 @@ { "target": "com.amazonaws.ec2#DeleteSubnet" }, - { - "target": "com.amazonaws.ec2#DeleteSubnetCidrReservation" - }, { "target": "com.amazonaws.ec2#DeleteTags" }, @@ -1789,9 +1774,6 @@ { "target": "com.amazonaws.ec2#DescribeInstanceEventNotificationAttributes" }, - { - "target": "com.amazonaws.ec2#DescribeInstanceEventWindows" - }, { "target": "com.amazonaws.ec2#DescribeInstances" }, @@ -2086,9 +2068,6 @@ { "target": "com.amazonaws.ec2#DisassociateIamInstanceProfile" }, - { - "target": "com.amazonaws.ec2#DisassociateInstanceEventWindow" - }, { "target": "com.amazonaws.ec2#DisassociateRouteTable" }, @@ -2200,9 +2179,6 @@ { "target": "com.amazonaws.ec2#GetSerialConsoleAccessStatus" }, - { - "target": "com.amazonaws.ec2#GetSubnetCidrReservations" - }, { "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagations" }, @@ -2284,9 +2260,6 @@ { "target": "com.amazonaws.ec2#ModifyInstanceEventStartTime" }, - { - "target": "com.amazonaws.ec2#ModifyInstanceEventWindow" - }, { "target": "com.amazonaws.ec2#ModifyInstanceMetadataOptions" }, @@ -2781,7 +2754,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "DestinationPrefixListId", - "smithy.api#documentation": "

The prefix of the Amazon Web Service.

", + "smithy.api#documentation": "

The prefix of the AWS service.

", "smithy.api#xmlName": "destinationPrefixListId" } }, @@ -3067,7 +3040,7 @@ "target": "com.amazonaws.ec2#AssignIpv6AddressesResult" }, "traits": { - "smithy.api#documentation": "

Assigns one or more IPv6 addresses to the specified network interface. You can\n specify one or more specific IPv6 addresses, or you can specify the number of IPv6\n addresses to be automatically assigned from within the subnet's IPv6 CIDR block range.\n You can assign as many IPv6 addresses to a network interface as you can assign private\n IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type\n in the Amazon Elastic Compute Cloud User Guide.

\n

You must specify either the IPv6 addresses or the IPv6 address count in the request.

\n

You can optionally use Prefix Delegation on the network interface. You must specify\n either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For\n information, see Prefix Delegation in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Assigns one or more IPv6 addresses to the specified network interface. You can\n specify one or more specific IPv6 addresses, or you can specify the number of IPv6\n addresses to be automatically assigned from within the subnet's IPv6 CIDR block range.\n You can assign as many IPv6 addresses to a network interface as you can assign private\n IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type\n in the Amazon Elastic Compute Cloud User Guide.

\n

You must specify either the IPv6 addresses or the IPv6 address count in the request.

" } }, "com.amazonaws.ec2#AssignIpv6AddressesRequest": { @@ -3089,19 +3062,6 @@ "smithy.api#xmlName": "ipv6Addresses" } }, - "Ipv6PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "smithy.api#documentation": "

The number of IPv6 Prefix Delegation prefixes that AWS automatically assigns to the\n network interface. You cannot use this option if you use the Ipv6Prefixes\n option.

" - } - }, - "Ipv6Prefixes": { - "target": "com.amazonaws.ec2#IpPrefixList", - "traits": { - "smithy.api#documentation": "

One or more IPv6 Prefix Delegation prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

", - "smithy.api#xmlName": "Ipv6Prefix" - } - }, "NetworkInterfaceId": { "target": "com.amazonaws.ec2#NetworkInterfaceId", "traits": { @@ -3124,14 +3084,6 @@ "smithy.api#xmlName": "assignedIpv6Addresses" } }, - "AssignedIpv6Prefixes": { - "target": "com.amazonaws.ec2#IpPrefixList", - "traits": { - "aws.protocols#ec2QueryName": "AssignedIpv6PrefixSet", - "smithy.api#documentation": "

The IPv6 Prefix Delegation prefixes\n that are\n assigned to the network interface.

", - "smithy.api#xmlName": "assignedIpv6PrefixSet" - } - }, "NetworkInterfaceId": { "target": "com.amazonaws.ec2#String", "traits": { @@ -3151,7 +3103,7 @@ "target": "com.amazonaws.ec2#AssignPrivateIpAddressesResult" }, "traits": { - "smithy.api#documentation": "

Assigns one or more secondary private IP addresses to the specified network interface.

\n

You can specify one or more specific secondary IP addresses, or you can specify the number \n of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. \n The number of secondary IP addresses that you can assign to an instance varies by instance type.\n For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about \n Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

\n

When you move a secondary private IP address to another network interface, any Elastic IP address \n that is associated with the IP address is also moved.

\n

Remapping an IP address is an asynchronous operation. When you move an IP address from one network\n interface to another, check network/interfaces/macs/mac/local-ipv4s in the instance\n metadata to confirm that the remapping is complete.

\n

You must specify either the IP addresses or the IP address count in the request.

\n

You can optionally use Prefix Delegation on the network interface. You must specify\n either the IPv4 Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For\n information, see Prefix Delegation in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Assigns one or more secondary private IP addresses to the specified network interface.

\n

You can specify one or more specific secondary IP addresses, or you can specify the number \n of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. \n The number of secondary IP addresses that you can assign to an instance varies by instance type.\n For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about \n Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

\n

When you move a secondary private IP address to another network interface, any Elastic IP address \n that is associated with the IP address is also moved.

\n

Remapping an IP address is an asynchronous operation. When you move an IP address from one network\n interface to another, check network/interfaces/macs/mac/local-ipv4s in the instance\n metadata to confirm that the remapping is complete.

\n

You must specify either the IP addresses or the IP address count in the request.

" } }, "com.amazonaws.ec2#AssignPrivateIpAddressesRequest": { @@ -3189,19 +3141,6 @@ "smithy.api#documentation": "

The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.

", "smithy.api#xmlName": "secondaryPrivateIpAddressCount" } - }, - "Ipv4Prefixes": { - "target": "com.amazonaws.ec2#IpPrefixList", - "traits": { - "smithy.api#documentation": "

One or more IPv4 Prefix Delegation prefixes assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

", - "smithy.api#xmlName": "Ipv4Prefix" - } - }, - "Ipv4PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "smithy.api#documentation": "

The number of IPv4 Prefix Delegation prefixes that AWS automatically assigns to the network interface. You cannot use this option if you use the Ipv4 Prefixes option.

" - } } }, "traits": { @@ -3226,14 +3165,6 @@ "smithy.api#documentation": "

The private IP addresses assigned to the network interface.

", "smithy.api#xmlName": "assignedPrivateIpAddressesSet" } - }, - "AssignedIpv4Prefixes": { - "target": "com.amazonaws.ec2#Ipv4PrefixesList", - "traits": { - "aws.protocols#ec2QueryName": "AssignedIpv4PrefixSet", - "smithy.api#documentation": "

The IPv4 Prefix Delegation prefixes\n that are\n assigned to the network interface.

", - "smithy.api#xmlName": "assignedIpv4PrefixSet" - } } } }, @@ -3413,7 +3344,7 @@ "target": "com.amazonaws.ec2#AssociateDhcpOptionsRequest" }, "traits": { - "smithy.api#documentation": "

Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

\n

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

\n

For more information, see DHCP options sets\n in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

\n

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

\n

For more information, see DHCP Options Sets\n in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#AssociateDhcpOptionsRequest": { @@ -3551,56 +3482,6 @@ } } }, - "com.amazonaws.ec2#AssociateInstanceEventWindow": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#AssociateInstanceEventWindowRequest" - }, - "output": { - "target": "com.amazonaws.ec2#AssociateInstanceEventWindowResult" - }, - "traits": { - "smithy.api#documentation": "

Associates one or more targets with an event window. Only one type of target (instance IDs,\n Dedicated Host IDs, or tags) can be specified with an event window.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" - } - }, - "com.amazonaws.ec2#AssociateInstanceEventWindowRequest": { - "type": "structure", - "members": { - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - }, - "InstanceEventWindowId": { - "target": "com.amazonaws.ec2#InstanceEventWindowId", - "traits": { - "smithy.api#documentation": "

The ID of the event window.

", - "smithy.api#required": {} - } - }, - "AssociationTarget": { - "target": "com.amazonaws.ec2#InstanceEventWindowAssociationRequest", - "traits": { - "smithy.api#documentation": "

One or more targets associated with the specified event window.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ec2#AssociateInstanceEventWindowResult": { - "type": "structure", - "members": { - "InstanceEventWindow": { - "target": "com.amazonaws.ec2#InstanceEventWindow", - "traits": { - "aws.protocols#ec2QueryName": "InstanceEventWindow", - "smithy.api#documentation": "

Information about the event window.

", - "smithy.api#xmlName": "instanceEventWindow" - } - } - } - }, "com.amazonaws.ec2#AssociateRouteTable": { "type": "operation", "input": { @@ -3610,7 +3491,7 @@ "target": "com.amazonaws.ec2#AssociateRouteTableResult" }, "traits": { - "smithy.api#documentation": "

Associates a subnet in your VPC or an internet gateway or virtual private gateway\n attached to your VPC with a route table in your VPC. This association causes traffic\n from the subnet or gateway to be routed according to the routes in the route table. The\n action returns an association ID, which you need in order to disassociate the route\n table later. A route table can be associated with multiple subnets.

\n

For more information, see Route tables in the\n Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Associates a subnet in your VPC or an internet gateway or virtual private gateway\n attached to your VPC with a route table in your VPC. This association causes traffic\n from the subnet or gateway to be routed according to the routes in the route table. The\n action returns an association ID, which you need in order to disassociate the route\n table later. A route table can be associated with multiple subnets.

\n

For more information, see Route Tables in the\n Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#AssociateRouteTableRequest": { @@ -3916,7 +3797,7 @@ "target": "com.amazonaws.ec2#AssociateVpcCidrBlockResult" }, "traits": { - "smithy.api#documentation": "

Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block,\n an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that\n you provisioned through bring your own IP addresses (BYOIP). The IPv6 CIDR block size is fixed\n at /56.

\n

You must specify one of the following in the request: an IPv4 CIDR block, an IPv6\n pool, or an Amazon-provided IPv6 CIDR block.

\n

For more information about associating CIDR blocks with your VPC and applicable\n restrictions, see VPC and subnet sizing in the\n Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block,\n an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that\n you provisioned through bring your own IP addresses (BYOIP). The IPv6 CIDR block size is fixed\n at /56.

\n

You must specify one of the following in the request: an IPv4 CIDR block, an IPv6\n pool, or an Amazon-provided IPv6 CIDR block.

\n

For more information about associating CIDR blocks with your VPC and applicable\n restrictions, see VPC and Subnet Sizing in the\n Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#AssociateVpcCidrBlockRequest": { @@ -4394,7 +4275,7 @@ "target": "com.amazonaws.ec2#VolumeAttachment" }, "traits": { - "smithy.api#documentation": "

Attaches an EBS volume to a running or stopped instance and exposes it to the instance\n with the specified device name.

\n

Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For\n more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

\n

After you attach an EBS volume, you must make it available. For more information, see \n Make an EBS volume available for use.

\n

If a volume has an Amazon Web Services Marketplace product code:

\n \n

For more information, see Attach an Amazon EBS volume to an instance in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Attaches an EBS volume to a running or stopped instance and exposes it to the instance\n with the specified device name.

\n

Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For\n more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

\n

After you attach an EBS volume, you must make it available. For more information, see \n Making an EBS volume available for use.

\n

If a volume has an AWS Marketplace product code:

\n \n

For more information, see Attaching Amazon EBS volumes in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#AttachVolumeRequest": { @@ -6259,7 +6140,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the Capacity Reservation.

", + "smithy.api#documentation": "

The ID of the account that owns the Capacity Reservation.

", "smithy.api#xmlName": "ownerId" } }, @@ -6307,7 +6188,7 @@ "target": "com.amazonaws.ec2#CapacityReservationTenancy", "traits": { "aws.protocols#ec2QueryName": "Tenancy", - "smithy.api#documentation": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

\n\t\t ", + "smithy.api#documentation": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

\n\t\t ", "smithy.api#xmlName": "tenancy" } }, @@ -6427,7 +6308,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the resource group.

", + "smithy.api#documentation": "

The ID of the account that owns the resource group.

", "smithy.api#xmlName": "ownerId" } } @@ -6723,7 +6604,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the carrier gateway.

", + "smithy.api#documentation": "

The AWS account ID of the owner of the carrier gateway.

", "smithy.api#xmlName": "ownerId" } }, @@ -6839,7 +6720,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides authorization for Amazon to bring a specific IP address range to a specific\n Amazon Web Services account using bring your own IP addresses (BYOIP). For more information, see Configuring your BYOIP address range in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Provides authorization for Amazon to bring a specific IP address range to a specific\n account using bring your own IP addresses (BYOIP). For more information, see Configuring your BYOIP address range in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CidrBlock": { @@ -8030,7 +7911,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The Amazon Web Services account ID of the instance owner. This is only present if the product code is\n attached to the instance.

", + "smithy.api#documentation": "

The account ID of the instance owner. This is only present if the product code is\n attached to the instance.

", "smithy.api#xmlName": "ownerId" } }, @@ -8508,7 +8389,7 @@ "target": "com.amazonaws.ec2#CopySnapshotResult" }, "traits": { - "smithy.api#documentation": "

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a\n snapshot within the same Region, from one Region to another, or from a Region to an Outpost. \n You can't copy a snapshot from an Outpost to a Region, from one Outpost to another, or within \n the same Outpost.

\n

You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).

\n \n \t\n

When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. \n \tCopies of unencrypted snapshots remain unencrypted, unless you enable encryption for the \n \tsnapshot copy operation. By default, encrypted snapshot copies use the default Key Management Service (KMS) \n \tKMS key; however, you can specify a different KMS key. To copy an encrypted \n \tsnapshot that has been shared from another account, you must have permissions for the KMS key \n \tused to encrypt the snapshot.

\n \t\n \t

Snapshots copied to an Outpost are encrypted by default using the default\n \t\tencryption key for the Region, or a different key that you specify in the request using \n \t\tKmsKeyId. Outposts do not support unencrypted \n \t\tsnapshots. For more information, \n \t\t\tAmazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.

\n

Snapshots created by copying another snapshot have an arbitrary volume ID that should not\n be used for any purpose.

\n

For more information, see Copy an Amazon EBS snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a\n snapshot within the same Region, from one Region to another, or from a Region to an Outpost. \n You can't copy a snapshot from an Outpost to a Region, from one Outpost to another, or within \n the same Outpost.

\n

You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).

\n \n \t\n

When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. \n \tCopies of unencrypted snapshots remain unencrypted, unless you enable encryption for the \n \tsnapshot copy operation. By default, encrypted snapshot copies use the default AWS Key Management Service (AWS KMS) \n \tcustomer master key (CMK); however, you can specify a different CMK. To copy an encrypted \n \tsnapshot that has been shared from another account, you must have permissions for the CMK \n \tused to encrypt the snapshot.

\n \t\n \t

Snapshots copied to an Outpost are encrypted by default using the default\n \t\tencryption key for the Region, or a different key that you specify in the request using \n \t\tKmsKeyId. Outposts do not support unencrypted \n \t\tsnapshots. For more information, \n \t\t\tAmazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.

\n

Snapshots created by copying another snapshot have an arbitrary volume ID that should not\n be used for any purpose.

\n

For more information, see Copying an Amazon EBS snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CopySnapshotRequest": { @@ -8523,14 +8404,14 @@ "DestinationOutpostArn": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot. Only \n\t\tspecify this parameter when copying a snapshot from an Amazon Web Services Region to an Outpost. \n\t\tThe snapshot must be in the Region for the destination Outpost. You cannot copy a \n\t\tsnapshot from an Outpost to a Region, from one Outpost to another, or within the same \n\t\tOutpost.

\n \t

For more information, see \n \t\tCopy snapshots from an Amazon Web Services Region to an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot. Only \n\t\tspecify this parameter when copying a snapshot from an AWS Region to an Outpost. \n\t\tThe snapshot must be in the Region for the destination Outpost. You cannot copy a \n\t\tsnapshot from an Outpost to a Region, from one Outpost to another, or within the same \n\t\tOutpost.

\n \t

For more information, see \n \t\tCopying snapshots from an AWS Region to an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" } }, "DestinationRegion": { "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "DestinationRegion", - "smithy.api#documentation": "

The destination Region to use in the PresignedUrl parameter of a snapshot\n copy operation. This parameter is only valid for specifying the destination Region in a\n PresignedUrl parameter, where it is required.

\n \n

The snapshot copy is sent to the regional endpoint that you sent the HTTP\n \trequest to (for example, ec2.us-east-1.amazonaws.com). With the CLI, this is\n specified using the --region parameter or the default Region in your Amazon Web Services\n configuration file.

", + "smithy.api#documentation": "

The destination Region to use in the PresignedUrl parameter of a snapshot\n copy operation. This parameter is only valid for specifying the destination Region in a\n PresignedUrl parameter, where it is required.

\n \n

The snapshot copy is sent to the regional endpoint that you sent the HTTP\n request to (for example, ec2.us-east-1.amazonaws.com). With the AWS CLI, this is\n specified using the --region parameter or the default Region in your AWS\n configuration file.

", "smithy.api#xmlName": "destinationRegion" } }, @@ -8546,7 +8427,7 @@ "target": "com.amazonaws.ec2#KmsKeyId", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS encryption.\n If this parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the KMS key using any of the following:

\n \n

Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

", + "smithy.api#documentation": "

The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.\n If this parameter is not specified, your AWS managed CMK for EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the CMK using any of the following:

\n \n

AWS authenticates the CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

", "smithy.api#xmlName": "kmsKeyId" } }, @@ -8554,7 +8435,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "PresignedUrl", - "smithy.api#documentation": "

When you copy an encrypted source snapshot using the Amazon EC2 Query API, you must supply a\n pre-signed URL. This parameter is optional for unencrypted snapshots. For more information,\n see Query\n requests.

\n

The PresignedUrl should use the snapshot source endpoint, the\n CopySnapshot action, and include the SourceRegion,\n SourceSnapshotId, and DestinationRegion parameters. The\n PresignedUrl must be signed using Amazon Web Services Signature Version 4. Because EBS\n snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic\n that is described in Authenticating Requests: Using Query\n Parameters (Amazon Web Services Signature Version 4) in the Amazon Simple Storage Service API Reference. An\n invalid or improperly signed PresignedUrl will cause the copy operation to fail\n asynchronously, and the snapshot will move to an error state.

", + "smithy.api#documentation": "

When you copy an encrypted source snapshot using the Amazon EC2 Query API, you must supply a\n pre-signed URL. This parameter is optional for unencrypted snapshots. For more information,\n see Query\n requests.

\n

The PresignedUrl should use the snapshot source endpoint, the\n CopySnapshot action, and include the SourceRegion,\n SourceSnapshotId, and DestinationRegion parameters. The\n PresignedUrl must be signed using AWS Signature Version 4. Because EBS\n snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic\n that is described in Authenticating Requests: Using Query\n Parameters (AWS Signature Version 4) in the Amazon Simple Storage Service API Reference. An\n invalid or improperly signed PresignedUrl will cause the copy operation to fail\n asynchronously, and the snapshot will move to an error state.

", "smithy.api#xmlName": "presignedUrl" } }, @@ -8730,7 +8611,7 @@ "Tenancy": { "target": "com.amazonaws.ec2#CapacityReservationTenancy", "traits": { - "smithy.api#documentation": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

\n\t\t " + "smithy.api#documentation": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

\n\t\t " } }, "InstanceCount": { @@ -8812,7 +8693,7 @@ "target": "com.amazonaws.ec2#CreateCarrierGatewayResult" }, "traits": { - "smithy.api#documentation": "

Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the Amazon Web Services Wavelength Developer Guide.

" + "smithy.api#documentation": "

Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the AWS Wavelength Developer\n Guide.

" } }, "com.amazonaws.ec2#CreateCarrierGatewayRequest": { @@ -8841,7 +8722,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. For more information, see How to ensure\n idempotency.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. For more information, see How to Ensure\n Idempotency.

", "smithy.api#idempotencyToken": {} } } @@ -9173,7 +9054,7 @@ "target": "com.amazonaws.ec2#CreateDefaultSubnetResult" }, "traits": { - "smithy.api#documentation": "

Creates a default subnet with a size /20 IPv4 CIDR block in the\n specified Availability Zone in your default VPC. You can have only one default subnet\n per Availability Zone. For more information, see Creating a default\n subnet in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a default subnet with a size /20 IPv4 CIDR block in the\n specified Availability Zone in your default VPC. You can have only one default subnet\n per Availability Zone. For more information, see Creating a Default\n Subnet in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateDefaultSubnetRequest": { @@ -9216,7 +9097,7 @@ "target": "com.amazonaws.ec2#CreateDefaultVpcResult" }, "traits": { - "smithy.api#documentation": "

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet\n\t\t\tin each Availability Zone. For more information about the components of a default VPC,\n\t\t\tsee Default VPC and\n\t\t\tdefault subnets in the Amazon Virtual Private Cloud User Guide. You cannot\n\t\t\tspecify the components of the default VPC yourself.

\n\t\t

If you deleted your previous default VPC, you can create a default VPC. You cannot have\n\t\t\tmore than one default VPC per Region.

\n\t\t

If your account supports EC2-Classic, you cannot use this action to create a default VPC\n\t\t\tin a Region that supports EC2-Classic. If you want a default VPC in a Region that\n\t\t\tsupports EC2-Classic, see \"I really want a default VPC for my existing EC2 account. Is\n\t\t\tthat possible?\" in the Default VPCs\n\t\t\tFAQ.

" + "smithy.api#documentation": "

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet\n\t\t\tin each Availability Zone. For more information about the components of a default VPC,\n\t\t\tsee Default VPC and\n\t\t\tDefault Subnets in the Amazon Virtual Private Cloud User Guide. You cannot\n\t\t\tspecify the components of the default VPC yourself.

\n\t\t

If you deleted your previous default VPC, you can create a default VPC. You cannot have\n\t\t\tmore than one default VPC per Region.

\n\t\t

If your account supports EC2-Classic, you cannot use this action to create a default VPC\n\t\t\tin a Region that supports EC2-Classic. If you want a default VPC in a Region that\n\t\t\tsupports EC2-Classic, see \"I really want a default VPC for my existing EC2 account. Is\n\t\t\tthat possible?\" in the Default VPCs\n\t\t\tFAQ.

" } }, "com.amazonaws.ec2#CreateDefaultVpcRequest": { @@ -9252,7 +9133,7 @@ "target": "com.amazonaws.ec2#CreateDhcpOptionsResult" }, "traits": { - "smithy.api#documentation": "

Creates a set of DHCP options for your VPC. After creating the set, you must\n\t\t\t\tassociate it with the VPC, causing all existing and new instances that you launch in\n\t\t\t\tthe VPC to use this set of DHCP options. The following are the individual DHCP\n\t\t\t\toptions you can specify. For more information about the options, see RFC 2132.

\n \n\n

Your VPC automatically starts out with a set of DHCP options that includes only a DNS\n\t\t\tserver that we provide (AmazonProvidedDNS). If you create a set of options, and if your\n\t\t\tVPC has an internet gateway, make sure to set the domain-name-servers\n\t\t\toption either to AmazonProvidedDNS or to a domain name server of your\n\t\t\tchoice. For more information, see DHCP options sets in the\n\t\t\tAmazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a set of DHCP options for your VPC. After creating the set, you must\n\t\t\t\tassociate it with the VPC, causing all existing and new instances that you launch in\n\t\t\t\tthe VPC to use this set of DHCP options. The following are the individual DHCP\n\t\t\t\toptions you can specify. For more information about the options, see RFC 2132.

\n \n\n

Your VPC automatically starts out with a set of DHCP options that includes only a DNS\n\t\t\tserver that we provide (AmazonProvidedDNS). If you create a set of options, and if your\n\t\t\tVPC has an internet gateway, make sure to set the domain-name-servers\n\t\t\toption either to AmazonProvidedDNS or to a domain name server of your\n\t\t\tchoice. For more information, see DHCP Options Sets in the\n\t\t\tAmazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateDhcpOptionsRequest": { @@ -9315,7 +9196,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n\t\t\trequest. For more information, see How to ensure\n\t\t\t\tidempotency.

" + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n\t\t\trequest. For more information, see How to Ensure\n\t\t\t\tIdempotency.

" } }, "DryRun": { @@ -9609,7 +9490,7 @@ "target": "com.amazonaws.ec2#CreateFlowLogsResult" }, "traits": { - "smithy.api#documentation": "

Creates one or more flow logs to capture information about IP traffic for a specific network interface,\n subnet, or VPC.

\n \n

Flow log data for a monitored network interface is recorded as flow log records, which are log events \n consisting of fields that describe the traffic flow. For more information, see \n Flow log records \n in the Amazon Virtual Private Cloud User Guide.

\n \n

When publishing to CloudWatch Logs, flow log records are published to a log group, and each network \n interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all \n of the monitored network interfaces are published to a single log file object that is stored in the specified \n bucket.

\n \n

For more information, see VPC Flow Logs in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates one or more flow logs to capture information about IP traffic for a specific network interface,\n subnet, or VPC.

\n \n

Flow log data for a monitored network interface is recorded as flow log records, which are log events \n consisting of fields that describe the traffic flow. For more information, see \n Flow Log Records \n in the Amazon Virtual Private Cloud User Guide.

\n \n

When publishing to CloudWatch Logs, flow log records are published to a log group, and each network \n interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all \n of the monitored network interfaces are published to a single log file object that is stored in the specified \n bucket.

\n \n

For more information, see VPC Flow Logs in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateFlowLogsRequest": { @@ -9624,7 +9505,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. For more information, see How to ensure\n idempotency.

" + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. For more information, see How to Ensure\n Idempotency.

" } }, "DeliverLogsPermissionArn": { @@ -9676,7 +9557,7 @@ "LogFormat": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The fields to include in the flow log record, in the order in which they should\n appear. For a list of available fields, see Flow log records. If you\n omit this parameter, the flow log is created using the default format. If you specify this parameter, \n you must specify at least one field.

\n

Specify the fields using the ${field-id} format, separated by spaces. For\n the CLI, use single quotation marks (' ') to surround the parameter value.

" + "smithy.api#documentation": "

The fields to include in the flow log record, in the order in which they should\n appear. For a list of available fields, see Flow Log Records. If you\n omit this parameter, the flow log is created using the default format. If you specify this parameter, you must specify at least one field.

\n

Specify the fields using the ${field-id} format, separated by spaces. For\n the AWS CLI, use single quotation marks (' ') to surround the parameter value.

" } }, "TagSpecifications": { @@ -9892,68 +9773,6 @@ } } }, - "com.amazonaws.ec2#CreateInstanceEventWindow": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#CreateInstanceEventWindowRequest" - }, - "output": { - "target": "com.amazonaws.ec2#CreateInstanceEventWindowResult" - }, - "traits": { - "smithy.api#documentation": "

Creates an event window in which scheduled events for the associated Amazon EC2 instances can\n run.

\n

You can define either a set of time ranges or a cron expression when creating the event\n window, but not both. All event window times are in UTC.

\n

You can create up to 200 event windows per Amazon Web Services Region.

\n

When you create the event window, targets (instance IDs, Dedicated Host IDs, or tags)\n are not yet associated with it. To ensure that the event window can be used, you must\n associate one or more targets with it by using the AssociateInstanceEventWindow API.

\n \n \n

Event windows are applicable only for scheduled events that stop, reboot, or\n terminate instances.

\n

Event windows are not applicable for:

\n \n
\n \n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" - } - }, - "com.amazonaws.ec2#CreateInstanceEventWindowRequest": { - "type": "structure", - "members": { - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - }, - "Name": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The name of the event window.

" - } - }, - "TimeRanges": { - "target": "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequestSet", - "traits": { - "smithy.api#documentation": "

The time range for the event window. If you specify a time range, you can't specify a cron\n expression.

", - "smithy.api#xmlName": "TimeRange" - } - }, - "CronExpression": { - "target": "com.amazonaws.ec2#InstanceEventWindowCronExpression", - "traits": { - "smithy.api#documentation": "

The cron expression for the event window, for example, * 0-4,20-23 * * 1,5. If\n you specify a cron expression, you can't specify a time range.

\n

Constraints:

\n \n

For more information about cron expressions, see cron on the Wikipedia\n website.

" - } - }, - "TagSpecifications": { - "target": "com.amazonaws.ec2#TagSpecificationList", - "traits": { - "smithy.api#documentation": "

The tags to apply to the event window.

", - "smithy.api#xmlName": "TagSpecification" - } - } - } - }, - "com.amazonaws.ec2#CreateInstanceEventWindowResult": { - "type": "structure", - "members": { - "InstanceEventWindow": { - "target": "com.amazonaws.ec2#InstanceEventWindow", - "traits": { - "aws.protocols#ec2QueryName": "InstanceEventWindow", - "smithy.api#documentation": "

Information about the event window.

", - "smithy.api#xmlName": "instanceEventWindow" - } - } - } - }, "com.amazonaws.ec2#CreateInstanceExportTask": { "type": "operation", "input": { @@ -10469,7 +10288,7 @@ "target": "com.amazonaws.ec2#CreateNatGatewayResult" }, "traits": { - "smithy.api#documentation": "

Creates a NAT gateway in the specified subnet. This action creates a network interface\n in the specified subnet with a private IP address from the IP address range of the\n subnet. You can create either a public NAT gateway or a private NAT gateway.

\n

With a public NAT gateway, internet-bound traffic from a private subnet can be routed\n to the NAT gateway, so that instances in a private subnet can connect to the internet.

\n

With a private NAT gateway, private communication is routed across VPCs and on-premises\n networks through a transit gateway or virtual private gateway. Common use cases include\n running large workloads behind a small pool of allowlisted IPv4 addresses, preserving\n private IPv4 addresses, and communicating between overlapping networks.

\n

For more information, see NAT gateways in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a NAT gateway in the specified subnet. This action creates a network interface\n in the specified subnet with a private IP address from the IP address range of the\n subnet. You can create either a public NAT gateway or a private NAT gateway.

\n

With a public NAT gateway, internet-bound traffic from a private subnet can be routed\n to the NAT gateway, so that instances in a private subnet can connect to the internet.

\n

With a private NAT gateway, private communication is routed across VPCs and on-premises\n networks through a transit gateway or virtual private gateway. Common use cases include\n running large workloads behind a small pool of allowlisted IPv4 addresses, preserving\n private IPv4 addresses, and communicating between overlapping networks.

\n

For more information, see NAT Gateways in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateNatGatewayRequest": { @@ -10484,7 +10303,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n\t\t\trequest. For more information, see How to ensure\n\t\t\t\tidempotency.

\n

Constraint: Maximum 64 ASCII characters.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n\t\t\trequest. For more information, see How to Ensure\n\t\t\t\tIdempotency.

\n

Constraint: Maximum 64 ASCII characters.

", "smithy.api#idempotencyToken": {} } }, @@ -10707,26 +10526,26 @@ "SourceIp": { "target": "com.amazonaws.ec2#IpAddress", "traits": { - "smithy.api#documentation": "

The IP address of the Amazon Web Services resource that is the source of the path.

" + "smithy.api#documentation": "

The IP address of the AWS resource that is the source of the path.

" } }, "DestinationIp": { "target": "com.amazonaws.ec2#IpAddress", "traits": { - "smithy.api#documentation": "

The IP address of the Amazon Web Services resource that is the destination of the path.

" + "smithy.api#documentation": "

The IP address of the AWS resource that is the destination of the path.

" } }, "Source": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services resource that is the source of the path.

", + "smithy.api#documentation": "

The AWS resource that is the source of the path.

", "smithy.api#required": {} } }, "Destination": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services resource that is the destination of the path.

", + "smithy.api#documentation": "

The AWS resource that is the destination of the path.

", "smithy.api#required": {} } }, @@ -10759,7 +10578,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to ensure idempotency.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to Ensure Idempotency.

", "smithy.api#idempotencyToken": {}, "smithy.api#required": {} } @@ -10800,7 +10619,7 @@ "target": "com.amazonaws.ec2#CreateNetworkInterfacePermissionResult" }, "traits": { - "smithy.api#documentation": "

Grants an Amazon Web Services-authorized account permission to attach the specified network interface to\n an instance in their account.

\n\t

You can grant permission to a single Amazon Web Services account only, and only one account at a time.

" + "smithy.api#documentation": "

Grants an Amazon Web Services-authorized account permission to attach the specified network interface to\n an instance in their account.

\n\t

You can grant permission to a single account only, and only one account at a time.

" } }, "com.amazonaws.ec2#CreateNetworkInterfacePermissionRequest": { @@ -10816,7 +10635,7 @@ "AwsAccountId": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID.

" + "smithy.api#documentation": "

The account ID.

" } }, "AwsService": { @@ -10925,32 +10744,6 @@ "smithy.api#xmlName": "secondaryPrivateIpAddressCount" } }, - "Ipv4Prefixes": { - "target": "com.amazonaws.ec2#Ipv4PrefixList", - "traits": { - "smithy.api#documentation": "

One or moreIPv4 Prefix Delegation prefixes assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

", - "smithy.api#xmlName": "Ipv4Prefix" - } - }, - "Ipv4PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "smithy.api#documentation": "

The number of IPv4 Prefix Delegation prefixes that AWS automatically assigns to the network interface. You cannot use this option if you use the Ipv4 Prefixes option.

" - } - }, - "Ipv6Prefixes": { - "target": "com.amazonaws.ec2#Ipv6PrefixList", - "traits": { - "smithy.api#documentation": "

One or moreIPv6 Prefix Delegation prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

", - "smithy.api#xmlName": "Ipv6Prefix" - } - }, - "Ipv6PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "smithy.api#documentation": "

The number of IPv6 Prefix Delegation prefixes that AWS automatically assigns to the network interface. You cannot use this option if you use the Ipv6Prefixes option.

" - } - }, "InterfaceType": { "target": "com.amazonaws.ec2#NetworkInterfaceCreationType", "traits": { @@ -11084,7 +10877,7 @@ "target": "com.amazonaws.ec2#CreateReplaceRootVolumeTaskResult" }, "traits": { - "smithy.api#documentation": "

Creates a root volume replacement task for an Amazon EC2 instance. The root volume \n can either be restored to its initial launch state, or it can be restored using a \n specific snapshot.

\n \n

For more information, see Replace a root volume in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Creates a root volume replacement task for an Amazon EC2 instance. The root volume \n can either be restored to its initial launch state, or it can be restored using a \n specific snapshot.

\n \n

For more information, see Replace a root volume \n in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateReplaceRootVolumeTaskRequest": { @@ -11106,7 +10899,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. \n If you do not specify a client token, a randomly generated token is used for the request \n to ensure idempotency. For more information, see Ensuring idempotency.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. \n If you do not specify a client token, a randomly generated token is used for the request \n to ensure idempotency. For more information, see Ensuring Idempotency.

", "smithy.api#idempotencyToken": {} } }, @@ -11282,7 +11075,7 @@ "target": "com.amazonaws.ec2#CreateRouteResult" }, "traits": { - "smithy.api#documentation": "

Creates a route in a route table within a VPC.

\n

You must specify one of the following targets: internet gateway or virtual private\n\t\t\tgateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

\n

When determining how to route traffic, we use the route with the most specific match.\n For example, traffic is destined for the IPv4 address 192.0.2.3, and the\n route table includes the following two IPv4 routes:

\n\t\t\t \n\t\t

Both routes apply to the traffic destined for 192.0.2.3. However, the second route\n\t\t\t\tin the list covers a smaller number of IP addresses and is therefore more specific,\n\t\t\t\tso we use that route to determine where to target the traffic.

\n

For more information about route tables, see Route tables in the\n Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a route in a route table within a VPC.

\n

You must specify one of the following targets: internet gateway or virtual private\n\t\t\tgateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

\n

When determining how to route traffic, we use the route with the most specific match.\n For example, traffic is destined for the IPv4 address 192.0.2.3, and the\n route table includes the following two IPv4 routes:

\n\t\t\t \n\t\t

Both routes apply to the traffic destined for 192.0.2.3. However, the second route\n\t\t\t\tin the list covers a smaller number of IP addresses and is therefore more specific,\n\t\t\t\tso we use that route to determine where to target the traffic.

\n

For more information about route tables, see Route Tables in the\n Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateRouteRequest": { @@ -11423,7 +11216,7 @@ "target": "com.amazonaws.ec2#CreateRouteTableResult" }, "traits": { - "smithy.api#documentation": "

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

\n

For more information, see Route tables in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

\n

For more information, see Route Tables in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateRouteTableRequest": { @@ -11551,7 +11344,7 @@ "target": "com.amazonaws.ec2#Snapshot" }, "traits": { - "smithy.api#documentation": "

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for\n \tbackups, to make copies of EBS volumes, and to save data before shutting down an\n \tinstance.

\n \n \n

You can create snapshots of volumes in a Region and volumes on an Outpost. If you \n \tcreate a snapshot of a volume in a Region, the snapshot must be stored in the same \n \tRegion as the volume. If you create a snapshot of a volume on an Outpost, the snapshot \n \tcan be stored on the same Outpost as the volume, or in the Region for that Outpost.

\n \t\n

When a snapshot is created, any Amazon Web Services Marketplace product codes that are associated with the\n source volume are propagated to the snapshot.

\n

You can take a snapshot of an attached volume that is in use. However, snapshots only\n capture data that has been written to your Amazon EBS volume at the time the snapshot command is\n issued; this might exclude any data that has been cached by any applications or the operating\n system. If you can pause any file systems on the volume long enough to take a snapshot, your\n snapshot should be complete. However, if you cannot pause all file writes to the volume, you\n should unmount the volume from within the instance, issue the snapshot command, and then\n remount the volume to ensure a consistent and complete snapshot. You may remount and use your\n volume while the snapshot status is pending.

\n

To create a snapshot for Amazon EBS volumes that serve as root devices, you should stop the\n instance before taking the snapshot.

\n

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that\n are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes\n and any associated snapshots always remain protected.

\n

You can tag your snapshots during creation. For more information, see Tag your Amazon EC2\n resources in the Amazon Elastic Compute Cloud User Guide.

\n

For more information, see Amazon Elastic Block Store and Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for\n \tbackups, to make copies of EBS volumes, and to save data before shutting down an\n \tinstance.

\n \n \n

You can create snapshots of volumes in a Region and volumes on an Outpost. If you \n \tcreate a snapshot of a volume in a Region, the snapshot must be stored in the same \n \tRegion as the volume. If you create a snapshot of a volume on an Outpost, the snapshot \n \tcan be stored on the same Outpost as the volume, or in the Region for that Outpost.

\n \t\n

When a snapshot is created, any AWS Marketplace product codes that are associated with the\n source volume are propagated to the snapshot.

\n

You can take a snapshot of an attached volume that is in use. However, snapshots only\n capture data that has been written to your EBS volume at the time the snapshot command is\n issued; this might exclude any data that has been cached by any applications or the operating\n system. If you can pause any file systems on the volume long enough to take a snapshot, your\n snapshot should be complete. However, if you cannot pause all file writes to the volume, you\n should unmount the volume from within the instance, issue the snapshot command, and then\n remount the volume to ensure a consistent and complete snapshot. You may remount and use your\n volume while the snapshot status is pending.

\n

To create a snapshot for EBS volumes that serve as root devices, you should stop the\n instance before taking the snapshot.

\n

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that\n are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes\n and any associated snapshots always remain protected.

\n

You can tag your snapshots during creation. For more information, see Tagging your Amazon EC2\n resources in the Amazon Elastic Compute Cloud User Guide.

\n

For more information, see Amazon Elastic Block Store and Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateSnapshotRequest": { @@ -11566,13 +11359,13 @@ "OutpostArn": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost on which to create a local \n \tsnapshot.

\n \t \n \t

For more information, see Create local snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Outpost on which to create a local \n \tsnapshot.

\n \t \n \t

For more information, see \n \t\tCreating local snapshots from volumes on an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" } }, "VolumeId": { "target": "com.amazonaws.ec2#VolumeId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon EBS volume.

", + "smithy.api#documentation": "

The ID of the EBS volume.

", "smithy.api#required": {} } }, @@ -11624,7 +11417,7 @@ "OutpostArn": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost on which to create the local \n \t\tsnapshots.

\n \t \n \t

For more information, see \n \t\tCreate multi-volume local snapshots from instances on an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Outpost on which to create the local \n \t\tsnapshots.

\n \t \n \t

For more information, see \n \t\tCreating multi-volume local snapshots from instances on an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" } }, "TagSpecifications": { @@ -11670,7 +11463,7 @@ "target": "com.amazonaws.ec2#CreateSpotDatafeedSubscriptionResult" }, "traits": { - "smithy.api#documentation": "

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs.\n\t\t\t\tYou can create one data feed per Amazon Web Services account. For more information, see\n Spot Instance data feed \n in the Amazon EC2 User Guide for Linux Instances.

" + "smithy.api#documentation": "

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs.\n\t\t\t\tYou can create one data feed per account. For more information, see\n Spot Instance data feed \n in the Amazon EC2 User Guide for Linux Instances.

" } }, "com.amazonaws.ec2#CreateSpotDatafeedSubscriptionRequest": { @@ -11788,77 +11581,7 @@ "target": "com.amazonaws.ec2#CreateSubnetResult" }, "traits": { - "smithy.api#documentation": "

Creates a subnet in a specified VPC.

\n

You must specify an IPv4 CIDR block for the subnet. After you create a subnet, you\n can't change its CIDR block. The allowed block size is between a /16 netmask (65,536 IP\n addresses) and /28 netmask (16 IP addresses). The CIDR block must not overlap with the\n CIDR block of an existing subnet in the VPC.

\n

If you've associated an IPv6 CIDR block with your VPC, you can create a subnet with an\n IPv6 CIDR block that uses a /64 prefix length.

\n \n

Amazon Web Services reserves both the first four and the last IPv4 address in each subnet's CIDR\n block. They're not available for use.

\n
\n

If you add more than one subnet to a VPC, they're set up in a star topology with a\n logical router in the middle.

\n

When you stop an instance in a subnet, it retains its private IPv4 address. It's\n therefore possible to have a subnet with no running instances (they're all stopped), but\n no remaining IP addresses available.

\n

For more information about subnets, see Your VPC and subnets in the\n Amazon Virtual Private Cloud User Guide.

" - } - }, - "com.amazonaws.ec2#CreateSubnetCidrReservation": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#CreateSubnetCidrReservationRequest" - }, - "output": { - "target": "com.amazonaws.ec2#CreateSubnetCidrReservationResult" - }, - "traits": { - "smithy.api#documentation": "

Creates a subnet CIDR reservation. For information about subnet CIDR reservations, see Subnet CIDR reservations in the Amazon Virtual Private Cloud User Guide.

" - } - }, - "com.amazonaws.ec2#CreateSubnetCidrReservationRequest": { - "type": "structure", - "members": { - "TagSpecifications": { - "target": "com.amazonaws.ec2#TagSpecificationList", - "traits": { - "smithy.api#documentation": "

The tags to assign to the subnet CIDR reservation.

", - "smithy.api#xmlName": "TagSpecification" - } - }, - "SubnetId": { - "target": "com.amazonaws.ec2#SubnetId", - "traits": { - "smithy.api#documentation": "

The ID of the subnet.

", - "smithy.api#required": {} - } - }, - "Cidr": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The IPv4 or IPV6 CIDR range to reserve.

", - "smithy.api#required": {} - } - }, - "ReservationType": { - "target": "com.amazonaws.ec2#SubnetCidrReservationType", - "traits": { - "smithy.api#documentation": "

The type of reservation.

\n

The following are valid values:

\n ", - "smithy.api#required": {} - } - }, - "Description": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The\n description\n to assign to the subnet CIDR reservation.

" - } - }, - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - } - } - }, - "com.amazonaws.ec2#CreateSubnetCidrReservationResult": { - "type": "structure", - "members": { - "SubnetCidrReservation": { - "target": "com.amazonaws.ec2#SubnetCidrReservation", - "traits": { - "aws.protocols#ec2QueryName": "SubnetCidrReservation", - "smithy.api#documentation": "

Information about the created subnet CIDR reservation.

", - "smithy.api#xmlName": "subnetCidrReservation" - } - } + "smithy.api#documentation": "

Creates a subnet in a specified VPC.

\n

You must specify an IPv4 CIDR block for the subnet. After you create a subnet, you\n can't change its CIDR block. The allowed block size is between a /16 netmask (65,536 IP\n addresses) and /28 netmask (16 IP addresses). The CIDR block must not overlap with the\n CIDR block of an existing subnet in the VPC.

\n

If you've associated an IPv6 CIDR block with your VPC, you can create a subnet with an\n IPv6 CIDR block that uses a /64 prefix length.

\n \n

AWS reserves both the first four and the last IPv4 address in each subnet's CIDR\n block. They're not available for use.

\n
\n

If you add more than one subnet to a VPC, they're set up in a star topology with a\n logical router in the middle.

\n

When you stop an instance in a subnet, it retains its private IPv4 address. It's\n therefore possible to have a subnet with no running instances (they're all stopped), but\n no remaining IP addresses available.

\n

For more information about subnets, see Your VPC and Subnets in the\n Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateSubnetRequest": { @@ -11874,7 +11597,7 @@ "AvailabilityZone": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Availability Zone or Local Zone for the subnet.

\n

Default: Amazon Web Services selects one for you. If you create more than one subnet in your VPC, we \n do not necessarily select a different zone for each subnet.

\n

To create a subnet in a Local Zone, set this value to the Local Zone ID, for example\n us-west-2-lax-1a. For information about the Regions that support Local Zones, \n see Available Regions in the Amazon Elastic Compute Cloud User Guide.

\n

To create a subnet in an Outpost, set this value to the Availability Zone for the\n Outpost and specify the Outpost ARN.

" + "smithy.api#documentation": "

The Availability Zone or Local Zone for the subnet.

\n

Default: AWS selects one for you. If you create more than one subnet in your VPC, we \n do not necessarily select a different zone for each subnet.

\n

To create a subnet in a Local Zone, set this value to the Local Zone ID, for example\n us-west-2-lax-1a. For information about the Regions that support Local Zones, \n see Available Regions in the Amazon Elastic Compute Cloud User Guide.

\n

To create a subnet in an Outpost, set this value to the Availability Zone for the\n Outpost and specify the Outpost ARN.

" } }, "AvailabilityZoneId": { @@ -11883,6 +11606,13 @@ "smithy.api#documentation": "

The AZ ID or the Local Zone ID of the subnet.

" } }, + "CidrBlock": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

", + "smithy.api#required": {} + } + }, "Ipv6CidrBlock": { "target": "com.amazonaws.ec2#String", "traits": { @@ -11909,13 +11639,6 @@ "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

", "smithy.api#xmlName": "dryRun" } - }, - "CidrBlock": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

", - "smithy.api#required": {} - } } } }, @@ -12964,7 +12687,7 @@ "target": "com.amazonaws.ec2#Volume" }, "traits": { - "smithy.api#documentation": "

Creates an EBS volume that can be attached to an instance in the same Availability Zone.

\n

You can create a new empty volume or restore a volume from an EBS snapshot.\n Any Amazon Web Services Marketplace product codes from the snapshot are propagated to the volume.

\n

You can create encrypted volumes. Encrypted volumes must be attached to instances that \n support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically \n encrypted. For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

\n

You can tag your volumes during creation. For more information, see Tag your Amazon EC2\n resources in the Amazon Elastic Compute Cloud User Guide.

\n

For more information, see Create an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Creates an EBS volume that can be attached to an instance in the same Availability Zone.

\n

You can create a new empty volume or restore a volume from an EBS snapshot.\n Any AWS Marketplace product codes from the snapshot are propagated to the volume.

\n

You can create encrypted volumes. Encrypted volumes must be attached to instances that \n support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically \n encrypted. For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

\n

You can tag your volumes during creation. For more information, see Tagging your Amazon EC2\n resources in the Amazon Elastic Compute Cloud User Guide.

\n

For more information, see Creating an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateVolumePermission": { @@ -12982,7 +12705,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "UserId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account to be added or removed.

", + "smithy.api#documentation": "

The AWS account ID to be added or removed.

", "smithy.api#xmlName": "userId" } } @@ -13006,13 +12729,13 @@ "Add": { "target": "com.amazonaws.ec2#CreateVolumePermissionList", "traits": { - "smithy.api#documentation": "

Adds the specified Amazon Web Services account ID or group to the list.

" + "smithy.api#documentation": "

Adds the specified AWS account ID or group to the list.

" } }, "Remove": { "target": "com.amazonaws.ec2#CreateVolumePermissionList", "traits": { - "smithy.api#documentation": "

Removes the specified Amazon Web Services account ID or group from the list.

" + "smithy.api#documentation": "

Removes the specified AWS account ID or group from the list.

" } } }, @@ -13041,13 +12764,13 @@ "Iops": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents \n the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline \n performance of the volume and the rate at which the volume accumulates I/O credits for bursting.

\n

The following are the supported values for each volume type:

\n \n

\n io1 and io2 volumes support up to 64,000 IOPS only on \n Instances built on the Nitro System. Other instance families support performance \n up to 32,000 IOPS.

\n

This parameter is required for io1 and io2 volumes.\n The default for gp3 volumes is 3,000 IOPS.\n This parameter is not supported for gp2, st1, sc1, or standard volumes.

" + "smithy.api#documentation": "

The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents \n the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline \n performance of the volume and the rate at which the volume accumulates I/O credits for bursting.

\n

The following are the supported values for each volume type:

\n \n

For io1 and io2 volumes, we guarantee 64,000 IOPS only for \n Instances built on the Nitro System. Other instance families guarantee performance \n up to 32,000 IOPS.

\n

This parameter is required for io1 and io2 volumes.\n The default for gp3 volumes is 3,000 IOPS.\n This parameter is not supported for gp2, st1, sc1, or standard volumes.

" } }, "KmsKeyId": { "target": "com.amazonaws.ec2#KmsKeyId", "traits": { - "smithy.api#documentation": "

The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS encryption.\n If this parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the KMS key using any of the following:

\n \n

Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

" + "smithy.api#documentation": "

The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.\n If this parameter is not specified, your AWS managed CMK for EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the CMK using any of the following:

\n \n

AWS authenticates the CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

" } }, "OutpostArn": { @@ -13100,13 +12823,6 @@ "traits": { "smithy.api#documentation": "

The throughput to provision for a volume, with a maximum of 1,000 MiB/s.

\n

This parameter is valid only for gp3 volumes.

\n \t

Valid Range: Minimum value of 125. Maximum value of 1000.

" } - }, - "ClientToken": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency \n of the request. For more information, see Ensure \n Idempotency.

", - "smithy.api#idempotencyToken": {} - } } } }, @@ -13119,7 +12835,7 @@ "target": "com.amazonaws.ec2#CreateVpcResult" }, "traits": { - "smithy.api#documentation": "

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create\n\t\t\tuses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4\n\t\t\taddresses). For more information about how large to make your VPC, see Your VPC and\n\t\t\t\tsubnets in the Amazon Virtual Private Cloud User Guide.

\n

You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided \n IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address \n pool that you provisioned through bring your own IP addresses (BYOIP).

\n\t

By default, each instance you launch in the VPC has the default DHCP options, which\n\t\t\tinclude only a default DNS server that we provide (AmazonProvidedDNS). For more\n\t\t\tinformation, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.

\n

You can specify the instance tenancy value for the VPC when you create it. You can't change\n this value for the VPC after you create it. For more information, see Dedicated Instances in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create\n\t\t\tuses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4\n\t\t\taddresses). For more information about how large to make your VPC, see Your VPC and\n\t\t\t\tSubnets in the Amazon Virtual Private Cloud User Guide.

\n

You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

\n\t\t

By default, each instance you launch in the VPC has the default DHCP options, which\n\t\t\tinclude only a default DNS server that we provide (AmazonProvidedDNS). For more\n\t\t\tinformation, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

\n

You can specify the instance tenancy value for the VPC when you create it. You can't change\n this value for the VPC after you create it. For more information, see Dedicated Instances in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateVpcEndpoint": { @@ -13406,7 +13122,7 @@ "target": "com.amazonaws.ec2#CreateVpcPeeringConnectionResult" }, "traits": { - "smithy.api#documentation": "

Requests a VPC peering connection between two VPCs: a requester VPC that you own and\n\t\t an accepter VPC with which to create the connection. The accepter VPC can belong to\n\t\t another Amazon Web Services account and can be in a different Region to the requester VPC. \n The requester VPC and accepter VPC cannot have overlapping CIDR blocks.

\n \n

Limitations and rules apply to a VPC peering connection. For more information, see \n the limitations section in the VPC Peering Guide.

\n
\n

The owner of the accepter VPC must accept the peering request to activate the peering\n connection. The VPC peering connection request expires after 7 days, after which it\n cannot be accepted or rejected.

\n

If you create a VPC peering connection request between VPCs with overlapping CIDR\n blocks, the VPC peering connection has a status of failed.

" + "smithy.api#documentation": "

Requests a VPC peering connection between two VPCs: a requester VPC that you own and\n\t\t\tan accepter VPC with which to create the connection. The accepter VPC can belong to\n\t\t\tanother AWS account and can be in a different Region to the requester VPC. The requester\n\t\t\tVPC and accepter VPC cannot have overlapping CIDR blocks.

\n \n

Limitations and rules apply to a VPC peering connection. For more information, see the limitations section in the VPC Peering Guide.

\n
\n

The owner of the accepter VPC must accept the peering request to activate the peering\n connection. The VPC peering connection request expires after 7 days, after which it\n cannot be accepted or rejected.

\n

If you create a VPC peering connection request between VPCs with overlapping CIDR\n blocks, the VPC peering connection has a status of failed.

" } }, "com.amazonaws.ec2#CreateVpcPeeringConnectionRequest": { @@ -13424,7 +13140,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "PeerOwnerId", - "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the accepter VPC.

\n

Default: Your Amazon Web Services account ID

", + "smithy.api#documentation": "

The AWS account ID of the owner of the accepter VPC.

\n

Default: Your AWS account ID

", "smithy.api#xmlName": "peerOwnerId" } }, @@ -13920,15 +13636,6 @@ "com.amazonaws.ec2#DedicatedHostId": { "type": "string" }, - "com.amazonaws.ec2#DedicatedHostIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#DedicatedHostId", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, "com.amazonaws.ec2#DefaultNetworkCardIndex": { "type": "integer", "traits": { @@ -14496,56 +14203,6 @@ } } }, - "com.amazonaws.ec2#DeleteInstanceEventWindow": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#DeleteInstanceEventWindowRequest" - }, - "output": { - "target": "com.amazonaws.ec2#DeleteInstanceEventWindowResult" - }, - "traits": { - "smithy.api#documentation": "

Deletes the specified event window.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" - } - }, - "com.amazonaws.ec2#DeleteInstanceEventWindowRequest": { - "type": "structure", - "members": { - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - }, - "ForceDelete": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Specify true to force delete the event window. Use the force delete parameter\n if the event window is currently associated with targets.

" - } - }, - "InstanceEventWindowId": { - "target": "com.amazonaws.ec2#InstanceEventWindowId", - "traits": { - "smithy.api#documentation": "

The ID of the event window.

", - "smithy.api#required": {}, - "smithy.api#xmlName": "InstanceEventWindowId" - } - } - } - }, - "com.amazonaws.ec2#DeleteInstanceEventWindowResult": { - "type": "structure", - "members": { - "InstanceEventWindowState": { - "target": "com.amazonaws.ec2#InstanceEventWindowStateChange", - "traits": { - "aws.protocols#ec2QueryName": "InstanceEventWindowState", - "smithy.api#documentation": "

The state of the event window.

", - "smithy.api#xmlName": "instanceEventWindowState" - } - } - } - }, "com.amazonaws.ec2#DeleteInternetGateway": { "type": "operation", "input": { @@ -15513,7 +15170,7 @@ "target": "com.amazonaws.ec2#DeleteSnapshotRequest" }, "traits": { - "smithy.api#documentation": "

Deletes the specified snapshot.

\n

When you make periodic snapshots of a volume, the snapshots are incremental, and only the\n blocks on the device that have changed since your last snapshot are saved in the new snapshot.\n When you delete a snapshot, only the data not needed for any other snapshot is removed. So\n regardless of which prior snapshots have been deleted, all active snapshots will have access\n to all the information needed to restore the volume.

\n

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI.\n You must first de-register the AMI before you can delete the snapshot.

\n

For more information, see Delete an Amazon EBS snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Deletes the specified snapshot.

\n

When you make periodic snapshots of a volume, the snapshots are incremental, and only the\n blocks on the device that have changed since your last snapshot are saved in the new snapshot.\n When you delete a snapshot, only the data not needed for any other snapshot is removed. So\n regardless of which prior snapshots have been deleted, all active snapshots will have access\n to all the information needed to restore the volume.

\n

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI.\n You must first de-register the AMI before you can delete the snapshot.

\n

For more information, see Deleting an Amazon EBS snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#DeleteSnapshotRequest": { @@ -15570,49 +15227,6 @@ "smithy.api#documentation": "

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

" } }, - "com.amazonaws.ec2#DeleteSubnetCidrReservation": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#DeleteSubnetCidrReservationRequest" - }, - "output": { - "target": "com.amazonaws.ec2#DeleteSubnetCidrReservationResult" - }, - "traits": { - "smithy.api#documentation": "

Deletes a subnet CIDR reservation.

" - } - }, - "com.amazonaws.ec2#DeleteSubnetCidrReservationRequest": { - "type": "structure", - "members": { - "SubnetCidrReservationId": { - "target": "com.amazonaws.ec2#SubnetCidrReservationId", - "traits": { - "smithy.api#documentation": "

The ID of the subnet CIDR reservation.

", - "smithy.api#required": {} - } - }, - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - } - } - }, - "com.amazonaws.ec2#DeleteSubnetCidrReservationResult": { - "type": "structure", - "members": { - "DeletedSubnetCidrReservation": { - "target": "com.amazonaws.ec2#SubnetCidrReservation", - "traits": { - "aws.protocols#ec2QueryName": "DeletedSubnetCidrReservation", - "smithy.api#documentation": "

Information about the deleted subnet CIDR reservation.

", - "smithy.api#xmlName": "deletedSubnetCidrReservation" - } - } - } - }, "com.amazonaws.ec2#DeleteSubnetRequest": { "type": "structure", "members": { @@ -15666,7 +15280,7 @@ "target": "com.amazonaws.ec2#TagList", "traits": { "aws.protocols#ec2QueryName": "Tag", - "smithy.api#documentation": "

The tags to delete. Specify a tag key and an optional tag value to delete\n specific tags. If you specify a tag key without a tag value, we delete any tag with this\n key regardless of its value. If you specify a tag key with an empty string as the tag\n value, we delete the tag only if its value is an empty string.

\n

If you omit this parameter, we delete all user-defined tags for the specified\n resources. We do not delete Amazon Web Services-generated tags (tags that have the aws:\n prefix).

", + "smithy.api#documentation": "

The tags to delete. Specify a tag key and an optional tag value to delete\n specific tags. If you specify a tag key without a tag value, we delete any tag with this\n key regardless of its value. If you specify a tag key with an empty string as the tag\n value, we delete the tag only if its value is an empty string.

\n

If you omit this parameter, we delete all user-defined tags for the specified\n resources. We do not delete AWS-generated tags (tags that have the aws:\n prefix).

", "smithy.api#xmlName": "tag" } } @@ -16251,7 +15865,7 @@ "target": "com.amazonaws.ec2#DeleteVolumeRequest" }, "traits": { - "smithy.api#documentation": "

Deletes the specified EBS volume. The volume must be in the available state\n (not attached to an instance).

\n

The volume can remain in the deleting state for several minutes.

\n

For more information, see Delete an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Deletes the specified EBS volume. The volume must be in the available state\n (not attached to an instance).

\n

The volume can remain in the deleting state for several minutes.

\n

For more information, see Deleting an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#DeleteVolumeRequest": { @@ -16667,7 +16281,7 @@ "target": "com.amazonaws.ec2#DeregisterInstanceEventNotificationAttributesResult" }, "traits": { - "smithy.api#documentation": "

c

\n \t

Deregisters tag keys to prevent tags that have the specified tag keys from being included\n\t\t\tin scheduled event notifications for resources in the Region.

" + "smithy.api#documentation": "

Deregisters tag keys to prevent tags that have the specified tag keys from being included\n\t\t\tin scheduled event notifications for resources in the Region.

" } }, "com.amazonaws.ec2#DeregisterInstanceEventNotificationAttributesRequest": { @@ -16968,7 +16582,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters. Filter names and values are case-sensitive.

\n ", + "smithy.api#documentation": "

One or more filters. Filter names and values are case-sensitive.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -17278,7 +16892,7 @@ "target": "com.amazonaws.ec2#DescribeCapacityReservationsResult" }, "traits": { - "smithy.api#documentation": "

Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the \n\t\t \tAmazon Web Services Region that you're currently using.

", + "smithy.api#documentation": "

Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the \n\t\t \tRegion that you're currently using.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -17321,7 +16935,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t \t ", + "smithy.api#documentation": "

One or more filters.

\n\t \t ", "smithy.api#xmlName": "Filter" } }, @@ -17385,7 +16999,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -18254,7 +17868,7 @@ "target": "com.amazonaws.ec2#DescribeDhcpOptionsResult" }, "traits": { - "smithy.api#documentation": "

Describes one or more of your DHCP options sets.

\n\t\t

For more information, see DHCP options sets in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", + "smithy.api#documentation": "

Describes one or more of your DHCP options sets.

\n\t\t

For more information, see DHCP Options Sets in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -18285,7 +17899,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -18705,7 +18319,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot.

", + "smithy.api#documentation": "

The ID of the AWS account that enabled fast snapshot restores on the snapshot.

", "smithy.api#xmlName": "ownerId" } }, @@ -18713,7 +18327,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerAlias", - "smithy.api#documentation": "

The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", + "smithy.api#documentation": "

The AWS owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", "smithy.api#xmlName": "ownerAlias" } }, @@ -18805,7 +18419,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters. The possible values are:

\n ", + "smithy.api#documentation": "

The filters. The possible values are:

\n ", "smithy.api#xmlName": "Filter" } }, @@ -20303,85 +19917,6 @@ } } }, - "com.amazonaws.ec2#DescribeInstanceEventWindows": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#DescribeInstanceEventWindowsRequest" - }, - "output": { - "target": "com.amazonaws.ec2#DescribeInstanceEventWindowsResult" - }, - "traits": { - "smithy.api#documentation": "

Describes the specified event windows or all event windows.

\n

If you specify event window IDs, the output includes information for only the specified\n event windows. If you specify filters, the output includes information for only those event\n windows that meet the filter criteria. If you do not specify event windows IDs or filters,\n the output includes information for all event windows, which can affect performance. We\n recommend that you use pagination to ensure that the operation returns quickly and\n successfully.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "InstanceEventWindows", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.ec2#DescribeInstanceEventWindowsRequest": { - "type": "structure", - "members": { - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - }, - "InstanceEventWindowIds": { - "target": "com.amazonaws.ec2#InstanceEventWindowIdSet", - "traits": { - "smithy.api#documentation": "

The IDs of the event windows.

", - "smithy.api#xmlName": "InstanceEventWindowId" - } - }, - "Filters": { - "target": "com.amazonaws.ec2#FilterList", - "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", - "smithy.api#xmlName": "Filter" - } - }, - "MaxResults": { - "target": "com.amazonaws.ec2#ResultRange", - "traits": { - "smithy.api#documentation": "

The maximum number of results to return in a single call. To retrieve the remaining\n results, make another call with the returned NextToken value. This value can\n be between 20 and 500. You cannot specify this parameter and the event window IDs parameter\n in the same call.

" - } - }, - "NextToken": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The token to request the next page of results.

" - } - } - }, - "traits": { - "smithy.api#documentation": "Describe instance event windows by InstanceEventWindow." - } - }, - "com.amazonaws.ec2#DescribeInstanceEventWindowsResult": { - "type": "structure", - "members": { - "InstanceEventWindows": { - "target": "com.amazonaws.ec2#InstanceEventWindowSet", - "traits": { - "aws.protocols#ec2QueryName": "InstanceEventWindowSet", - "smithy.api#documentation": "

Information about the event windows.

", - "smithy.api#xmlName": "instanceEventWindowSet" - } - }, - "NextToken": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "NextToken", - "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", - "smithy.api#xmlName": "nextToken" - } - } - } - }, "com.amazonaws.ec2#DescribeInstanceStatus": { "type": "operation", "input": { @@ -20831,7 +20366,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -20922,7 +20457,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -22128,7 +21663,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -22485,7 +22020,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -22590,7 +22125,7 @@ "target": "com.amazonaws.ec2#FilterList", "traits": { "aws.protocols#ec2QueryName": "Filter", - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "filter" } }, @@ -23001,7 +22536,7 @@ "target": "com.amazonaws.ec2#DescribeReplaceRootVolumeTasksResult" }, "traits": { - "smithy.api#documentation": "

Describes a root volume replacement task. For more information, see \n Replace a root volume in the Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

Describes a root volume replacement task. For more information, see \n Replace a root volume in the \n Amazon Elastic Compute Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -23039,7 +22574,7 @@ "MaxResults": { "target": "com.amazonaws.ec2#DescribeReplaceRootVolumeTasksMaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" + "smithy.api#documentation": "

The maximum number of results to return with a single call. To retrieve the remaining results, \n make another call with the returned nextToken value.

" } }, "NextToken": { @@ -23071,7 +22606,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "NextToken", - "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no \n more results to return.

", "smithy.api#xmlName": "nextToken" } } @@ -23440,7 +22975,7 @@ "target": "com.amazonaws.ec2#DescribeRouteTablesResult" }, "traits": { - "smithy.api#documentation": "

Describes one or more of your route tables.

\n

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

\n\t\t

For more information, see Route tables in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", + "smithy.api#documentation": "

Describes one or more of your route tables.

\n

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

\n\t\t

For more information, see Route Tables in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -23464,7 +22999,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -24044,7 +23579,7 @@ "target": "com.amazonaws.ec2#DescribeSnapshotsResult" }, "traits": { - "smithy.api#documentation": "

Describes the specified EBS snapshots available to you or all of the EBS snapshots\n available to you.

\n

The snapshots available to you include public snapshots, private snapshots that you own,\n and private snapshots owned by other Amazon Web Services accounts for which you have explicit create volume\n permissions.

\n

The create volume permissions fall into the following categories:

\n \n

The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot\n owners, or Amazon Web Services accounts with create volume permissions. If no options are specified, \n Amazon EC2 returns all snapshots for which you have create volume permissions.

\n

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are\n returned. If you specify an invalid snapshot ID, an error is returned. If you specify a\n snapshot ID for which you do not have access, it is not included in the returned\n results.

\n

If you specify one or more snapshot owners using the OwnerIds option, only\n snapshots from the specified owners and for which you have access are returned. The results\n can include the Amazon Web Services account IDs of the specified owners, amazon for snapshots\n owned by Amazon, or self for snapshots that you own.

\n

If you specify a list of restorable users, only snapshots with create snapshot permissions\n for those users are returned. You can specify Amazon Web Services account IDs (if you own the snapshots),\n self for snapshots for which you own or have explicit permissions, or\n all for public snapshots.

\n

If you are describing a long list of snapshots, we recommend that you paginate the output to make the\n list more manageable. The MaxResults parameter sets the maximum number of results\n returned in a single page. If the list of results exceeds your MaxResults value,\n then that number of results is returned along with a NextToken value that can be\n passed to a subsequent DescribeSnapshots request to retrieve the remaining\n results.

\n

To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

\n

For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

Describes the specified EBS snapshots available to you or all of the EBS snapshots\n available to you.

\n

The snapshots available to you include public snapshots, private snapshots that you own,\n and private snapshots owned by other AWS accounts for which you have explicit create volume\n permissions.

\n

The create volume permissions fall into the following categories:

\n \n

The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot\n owners, or AWS accounts with create volume permissions. If no options are specified, Amazon\n EC2 returns all snapshots for which you have create volume permissions.

\n

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are\n returned. If you specify an invalid snapshot ID, an error is returned. If you specify a\n snapshot ID for which you do not have access, it is not included in the returned\n results.

\n

If you specify one or more snapshot owners using the OwnerIds option, only\n snapshots from the specified owners and for which you have access are returned. The results\n can include the AWS account IDs of the specified owners, amazon for snapshots\n owned by Amazon, or self for snapshots that you own.

\n

If you specify a list of restorable users, only snapshots with create snapshot permissions\n for those users are returned. You can specify AWS account IDs (if you own the snapshots),\n self for snapshots for which you own or have explicit permissions, or\n all for public snapshots.

\n

If you are describing a long list of snapshots, we recommend that you paginate the output to make the\n list more manageable. The MaxResults parameter sets the maximum number of results\n returned in a single page. If the list of results exceeds your MaxResults value,\n then that number of results is returned along with a NextToken value that can be\n passed to a subsequent DescribeSnapshots request to retrieve the remaining\n results.

\n

To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

\n

For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -24076,7 +23611,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -24095,14 +23630,14 @@ "OwnerIds": { "target": "com.amazonaws.ec2#OwnerStringList", "traits": { - "smithy.api#documentation": "

Scopes the results to snapshots with the specified owners. You can specify a combination of\n Amazon Web Services account IDs, self, and amazon.

", + "smithy.api#documentation": "

Scopes the results to snapshots with the specified owners. You can specify a combination of\n AWS account IDs, self, and amazon.

", "smithy.api#xmlName": "Owner" } }, "RestorableByUserIds": { "target": "com.amazonaws.ec2#RestorableByStringList", "traits": { - "smithy.api#documentation": "

The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.

", + "smithy.api#documentation": "

The IDs of the AWS accounts that can create volumes from the snapshot.

", "smithy.api#xmlName": "RestorableBy" } }, @@ -24951,7 +24486,7 @@ "target": "com.amazonaws.ec2#DescribeSubnetsResult" }, "traits": { - "smithy.api#documentation": "

Describes one or more of your subnets.

\n

For more information, see Your VPC and subnets in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", + "smithy.api#documentation": "

Describes one or more of your subnets.

\n

For more information, see Your VPC and Subnets in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -24992,7 +24527,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -26105,7 +25640,7 @@ "target": "com.amazonaws.ec2#DescribeVolumeStatusResult" }, "traits": { - "smithy.api#documentation": "

Describes the status of the specified volumes. Volume status provides the result of the\n checks performed on your volumes to determine events that can impair the performance of your\n volumes. The performance of a volume can be affected if an issue occurs on the volume's\n underlying host. If the volume's underlying host experiences a power outage or system issue,\n after the system is restored, there could be data inconsistencies on the volume. Volume events\n notify you if this occurs. Volume actions notify you if any action needs to be taken in\n response to the event.

\n

The DescribeVolumeStatus operation provides the following information about\n the specified volumes:

\n

\n Status: Reflects the current status of the volume. The possible\n values are ok, impaired , warning, or\n insufficient-data. If all checks pass, the overall status of the volume is\n ok. If the check fails, the overall status is impaired. If the\n status is insufficient-data, then the checks might still be taking place on your\n volume at the time. We recommend that you retry the request. For more information about volume\n status, see Monitor the status of your volumes in the\n Amazon Elastic Compute Cloud User Guide.

\n

\n Events: Reflect the cause of a volume status and might require you to\n take action. For example, if your volume returns an impaired status, then the\n volume event might be potential-data-inconsistency. This means that your volume\n has been affected by an issue with the underlying host, has all I/O operations disabled, and\n might have inconsistent data.

\n

\n Actions: Reflect the actions you might have to take in response to an\n event. For example, if the status of the volume is impaired and the volume event\n shows potential-data-inconsistency, then the action shows\n enable-volume-io. This means that you may want to enable the I/O operations for\n the volume by calling the EnableVolumeIO action and then check the volume\n for data consistency.

\n

Volume status is based on the volume status checks, and does not reflect the volume state.\n Therefore, volume status does not indicate volumes in the error state (for\n example, when a volume is incapable of accepting I/O.)

", + "smithy.api#documentation": "

Describes the status of the specified volumes. Volume status provides the result of the\n checks performed on your volumes to determine events that can impair the performance of your\n volumes. The performance of a volume can be affected if an issue occurs on the volume's\n underlying host. If the volume's underlying host experiences a power outage or system issue,\n after the system is restored, there could be data inconsistencies on the volume. Volume events\n notify you if this occurs. Volume actions notify you if any action needs to be taken in\n response to the event.

\n

The DescribeVolumeStatus operation provides the following information about\n the specified volumes:

\n

\n Status: Reflects the current status of the volume. The possible\n values are ok, impaired , warning, or\n insufficient-data. If all checks pass, the overall status of the volume is\n ok. If the check fails, the overall status is impaired. If the\n status is insufficient-data, then the checks might still be taking place on your\n volume at the time. We recommend that you retry the request. For more information about volume\n status, see Monitoring the status of your volumes in the\n Amazon Elastic Compute Cloud User Guide.

\n

\n Events: Reflect the cause of a volume status and might require you to\n take action. For example, if your volume returns an impaired status, then the\n volume event might be potential-data-inconsistency. This means that your volume\n has been affected by an issue with the underlying host, has all I/O operations disabled, and\n might have inconsistent data.

\n

\n Actions: Reflect the actions you might have to take in response to an\n event. For example, if the status of the volume is impaired and the volume event\n shows potential-data-inconsistency, then the action shows\n enable-volume-io. This means that you may want to enable the I/O operations for\n the volume by calling the EnableVolumeIO action and then check the volume\n for data consistency.

\n

Volume status is based on the volume status checks, and does not reflect the volume state.\n Therefore, volume status does not indicate volumes in the error state (for\n example, when a volume is incapable of accepting I/O.)

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -26277,7 +25812,7 @@ "target": "com.amazonaws.ec2#DescribeVolumesModificationsResult" }, "traits": { - "smithy.api#documentation": "

Describes the most recent volume modification request for the specified EBS volumes.

\n

If a volume has never been modified, some information in the output will be null.\n If a volume has been modified more than once, the output includes only the most \n recent modification request.

\n

You can also use CloudWatch Events to check the status of a modification to an EBS\n volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see\n Monitor the progress of volume modifications in the Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

Describes the most recent volume modification request for the specified EBS volumes.

\n

If a volume has never been modified, some information in the output will be null.\n If a volume has been modified more than once, the output includes only the most \n recent modification request.

\n

You can also use CloudWatch Events to check the status of a modification to an EBS\n volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see\n Monitoring volume modifications in the\n Amazon Elastic Compute Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -27151,7 +26686,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -27275,7 +26810,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -27654,7 +27189,7 @@ "target": "com.amazonaws.ec2#VolumeAttachment" }, "traits": { - "smithy.api#documentation": "

Detaches an EBS volume from an instance. Make sure to unmount any file systems on the\n device within your operating system before detaching the volume. Failure to do so can result\n in the volume becoming stuck in the busy state while detaching. If this happens,\n detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot\n the instance, or all three. If an EBS volume is the root device of an instance, it can't be\n detached while the instance is running. To detach the root volume, stop the instance\n first.

\n

When a volume with an Amazon Web Services Marketplace product code is detached from an instance, the\n product code is no longer associated with the instance.

\n

For more information, see Detach an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Detaches an EBS volume from an instance. Make sure to unmount any file systems on the\n device within your operating system before detaching the volume. Failure to do so can result\n in the volume becoming stuck in the busy state while detaching. If this happens,\n detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot\n the instance, or all three. If an EBS volume is the root device of an instance, it can't be\n detached while the instance is running. To detach the root volume, stop the instance\n first.

\n

When a volume with an AWS Marketplace product code is detached from an instance, the\n product code is no longer associated with the instance.

\n

For more information, see Detaching an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#DetachVolumeRequest": { @@ -27814,7 +27349,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the DHCP options set.

", + "smithy.api#documentation": "

The ID of the AWS account that owns the DHCP options set.

", "smithy.api#xmlName": "ownerId" } }, @@ -28047,7 +27582,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot.

", + "smithy.api#documentation": "

The ID of the AWS account that enabled fast snapshot restores on the snapshot.

", "smithy.api#xmlName": "ownerId" } }, @@ -28055,7 +27590,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerAlias", - "smithy.api#documentation": "

The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", + "smithy.api#documentation": "

The AWS owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", "smithy.api#xmlName": "ownerAlias" } }, @@ -28600,63 +28135,13 @@ } } }, - "com.amazonaws.ec2#DisassociateInstanceEventWindow": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#DisassociateInstanceEventWindowRequest" - }, - "output": { - "target": "com.amazonaws.ec2#DisassociateInstanceEventWindowResult" - }, - "traits": { - "smithy.api#documentation": "

Disassociates one or more targets from an event window.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" - } - }, - "com.amazonaws.ec2#DisassociateInstanceEventWindowRequest": { - "type": "structure", - "members": { - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - }, - "InstanceEventWindowId": { - "target": "com.amazonaws.ec2#InstanceEventWindowId", - "traits": { - "smithy.api#documentation": "

The ID of the event window.

", - "smithy.api#required": {} - } - }, - "AssociationTarget": { - "target": "com.amazonaws.ec2#InstanceEventWindowDisassociationRequest", - "traits": { - "smithy.api#documentation": "

One or more targets to disassociate from the specified event window.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.ec2#DisassociateInstanceEventWindowResult": { - "type": "structure", - "members": { - "InstanceEventWindow": { - "target": "com.amazonaws.ec2#InstanceEventWindow", - "traits": { - "aws.protocols#ec2QueryName": "InstanceEventWindow", - "smithy.api#documentation": "

Information about the event window.

", - "smithy.api#xmlName": "instanceEventWindow" - } - } - } - }, "com.amazonaws.ec2#DisassociateRouteTable": { "type": "operation", "input": { "target": "com.amazonaws.ec2#DisassociateRouteTableRequest" }, "traits": { - "smithy.api#documentation": "

Disassociates a subnet or gateway from a route table.

\n\t\t

After you perform this action, the subnet no longer uses the routes in the route table.\n\t\t\t\tInstead, it uses the routes in the VPC's main route table. For more information\n\t\t\t\tabout route tables, see Route\n\t\t\t\ttables in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Disassociates a subnet or gateway from a route table.

\n\t\t

After you perform this action, the subnet no longer uses the routes in the route table.\n\t\t\t\tInstead, it uses the routes in the VPC's main route table. For more information\n\t\t\t\tabout route tables, see Route\n\t\t\t\tTables in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#DisassociateRouteTableRequest": { @@ -29987,7 +29472,7 @@ "target": "com.amazonaws.ec2#EnableEbsEncryptionByDefaultResult" }, "traits": { - "smithy.api#documentation": "

Enables EBS encryption by default for your account in the current Region.

\n

After you enable encryption by default, the EBS volumes that you create are\n \talways encrypted, either using the default KMS key or the KMS key that you specified\n when you created each volume. For more information, see Amazon EBS encryption in the\n Amazon Elastic Compute Cloud User Guide.

\n \t

You can specify the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId\n or ResetEbsDefaultKmsKeyId.

\n

Enabling encryption by default has no effect on the encryption status of your \n existing volumes.

\n

After you enable encryption by default, you can no longer launch instances\n using instance types that do not support encryption. For more information, see Supported\n instance types.

" + "smithy.api#documentation": "

Enables EBS encryption by default for your account in the current Region.

\n

After you enable encryption by default, the EBS volumes that you create are\n always encrypted, either using the default CMK or the CMK that you specified\n when you created each volume. For more information, see Amazon EBS encryption in the\n Amazon Elastic Compute Cloud User Guide.

\n

You can specify the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId\n or ResetEbsDefaultKmsKeyId.

\n

Enabling encryption by default has no effect on the encryption status of your \n existing volumes.

\n

After you enable encryption by default, you can no longer launch instances\n using instance types that do not support encryption. For more information, see Supported\n instance types.

" } }, "com.amazonaws.ec2#EnableEbsEncryptionByDefaultRequest": { @@ -30143,7 +29628,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot.

", + "smithy.api#documentation": "

The ID of the AWS account that enabled fast snapshot restores on the snapshot.

", "smithy.api#xmlName": "ownerId" } }, @@ -30151,7 +29636,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerAlias", - "smithy.api#documentation": "

The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", + "smithy.api#documentation": "

The AWS owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", "smithy.api#xmlName": "ownerAlias" } }, @@ -30235,7 +29720,7 @@ "SourceSnapshotIds": { "target": "com.amazonaws.ec2#SnapshotIdStringList", "traits": { - "smithy.api#documentation": "

The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify\n a snapshot that was shared with you from another Amazon Web Services account.

", + "smithy.api#documentation": "

The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify\n a snapshot that was shared with you from another AWS account.

", "smithy.api#required": {}, "smithy.api#xmlName": "SourceSnapshotId" } @@ -33253,7 +32738,7 @@ "target": "com.amazonaws.ec2#GetCapacityReservationUsageResult" }, "traits": { - "smithy.api#documentation": "

Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner \n\t\t\tand each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only \n\t\t\tthe Capacity Reservation owner's usage.

" + "smithy.api#documentation": "

Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner \n\t\t\tand each account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only \n\t\t\tthe Capacity Reservation owner's usage.

" } }, "com.amazonaws.ec2#GetCapacityReservationUsageRequest": { @@ -33610,7 +33095,7 @@ "target": "com.amazonaws.ec2#GetEbsDefaultKmsKeyIdResult" }, "traits": { - "smithy.api#documentation": "

Describes the default KMS key for EBS encryption by default for your account in this Region. \n \t\tYou can change the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or\n ResetEbsDefaultKmsKeyId.

\n

For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Describes the default customer master key (CMK) for EBS encryption by default for your account in this Region. \n You can change the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or\n ResetEbsDefaultKmsKeyId.

\n

For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#GetEbsDefaultKmsKeyIdRequest": { @@ -33631,7 +33116,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default KMS key for encryption by default.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default CMK for encryption by default.

", "smithy.api#xmlName": "kmsKeyId" } } @@ -34308,42 +33793,51 @@ } } }, - "com.amazonaws.ec2#GetSubnetCidrReservations": { + "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagations": { "type": "operation", "input": { - "target": "com.amazonaws.ec2#GetSubnetCidrReservationsRequest" + "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsRequest" }, "output": { - "target": "com.amazonaws.ec2#GetSubnetCidrReservationsResult" + "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsResult" }, "traits": { - "smithy.api#documentation": "

Gets information about the subnet CIDR reservations.

" - } - }, - "com.amazonaws.ec2#GetSubnetCidrReservationsMaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 5, - "max": 1000 + "smithy.api#documentation": "

Lists the route tables to which the specified resource attachment propagates routes.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "TransitGatewayAttachmentPropagations", + "pageSize": "MaxResults" } } }, - "com.amazonaws.ec2#GetSubnetCidrReservationsRequest": { + "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsRequest": { "type": "structure", "members": { + "TransitGatewayAttachmentId": { + "target": "com.amazonaws.ec2#TransitGatewayAttachmentId", + "traits": { + "smithy.api#documentation": "

The ID of the attachment.

", + "smithy.api#required": {} + } + }, "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", "smithy.api#xmlName": "Filter" } }, - "SubnetId": { - "target": "com.amazonaws.ec2#SubnetId", + "MaxResults": { + "target": "com.amazonaws.ec2#TransitGatewayMaxResults", "traits": { - "smithy.api#documentation": "

The ID of the subnet.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The token for the next page of results.

" } }, "DryRun": { @@ -34351,38 +33845,93 @@ "traits": { "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" } + } + } + }, + "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsResult": { + "type": "structure", + "members": { + "TransitGatewayAttachmentPropagations": { + "target": "com.amazonaws.ec2#TransitGatewayAttachmentPropagationList", + "traits": { + "aws.protocols#ec2QueryName": "TransitGatewayAttachmentPropagations", + "smithy.api#documentation": "

Information about the propagation route tables.

", + "smithy.api#xmlName": "transitGatewayAttachmentPropagations" + } }, "NextToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The token for the next page of results.

" + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "smithy.api#xmlName": "nextToken" + } + } + } + }, + "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociations": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsRequest" + }, + "output": { + "target": "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsResult" + }, + "traits": { + "smithy.api#documentation": "

Gets information about the associations for the transit gateway multicast domain.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "MulticastDomainAssociations", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsRequest": { + "type": "structure", + "members": { + "TransitGatewayMulticastDomainId": { + "target": "com.amazonaws.ec2#TransitGatewayMulticastDomainId", + "traits": { + "smithy.api#documentation": "

The ID of the transit gateway multicast domain.

" + } + }, + "Filters": { + "target": "com.amazonaws.ec2#FilterList", + "traits": { + "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", + "smithy.api#xmlName": "Filter" } }, "MaxResults": { - "target": "com.amazonaws.ec2#GetSubnetCidrReservationsMaxResults", + "target": "com.amazonaws.ec2#TransitGatewayMaxResults", "traits": { "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The token for the next page of results.

" + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } } } }, - "com.amazonaws.ec2#GetSubnetCidrReservationsResult": { + "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsResult": { "type": "structure", "members": { - "SubnetIpv4CidrReservations": { - "target": "com.amazonaws.ec2#SubnetCidrReservationList", - "traits": { - "aws.protocols#ec2QueryName": "SubnetIpv4CidrReservationSet", - "smithy.api#documentation": "

Information about the IPv4 subnet CIDR reservations.

", - "smithy.api#xmlName": "subnetIpv4CidrReservationSet" - } - }, - "SubnetIpv6CidrReservations": { - "target": "com.amazonaws.ec2#SubnetCidrReservationList", + "MulticastDomainAssociations": { + "target": "com.amazonaws.ec2#TransitGatewayMulticastDomainAssociationList", "traits": { - "aws.protocols#ec2QueryName": "SubnetIpv6CidrReservationSet", - "smithy.api#documentation": "

Information about the IPv6 subnet CIDR reservations.

", - "smithy.api#xmlName": "subnetIpv6CidrReservationSet" + "aws.protocols#ec2QueryName": "MulticastDomainAssociations", + "smithy.api#documentation": "

Information about the multicast domain associations.

", + "smithy.api#xmlName": "multicastDomainAssociations" } }, "NextToken": { @@ -34395,38 +33944,38 @@ } } }, - "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagations": { + "com.amazonaws.ec2#GetTransitGatewayPrefixListReferences": { "type": "operation", "input": { - "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsRequest" + "target": "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesRequest" }, "output": { - "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsResult" + "target": "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesResult" }, "traits": { - "smithy.api#documentation": "

Lists the route tables to which the specified resource attachment propagates routes.

", + "smithy.api#documentation": "

Gets information about the prefix list references in a specified transit gateway route table.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", - "items": "TransitGatewayAttachmentPropagations", + "items": "TransitGatewayPrefixListReferences", "pageSize": "MaxResults" } } }, - "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsRequest": { + "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesRequest": { "type": "structure", "members": { - "TransitGatewayAttachmentId": { - "target": "com.amazonaws.ec2#TransitGatewayAttachmentId", + "TransitGatewayRouteTableId": { + "target": "com.amazonaws.ec2#TransitGatewayRouteTableId", "traits": { - "smithy.api#documentation": "

The ID of the attachment.

", + "smithy.api#documentation": "

The ID of the transit gateway route table.

", "smithy.api#required": {} } }, "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", + "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", "smithy.api#xmlName": "Filter" } }, @@ -34450,15 +33999,15 @@ } } }, - "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsResult": { + "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesResult": { "type": "structure", "members": { - "TransitGatewayAttachmentPropagations": { - "target": "com.amazonaws.ec2#TransitGatewayAttachmentPropagationList", + "TransitGatewayPrefixListReferences": { + "target": "com.amazonaws.ec2#TransitGatewayPrefixListReferenceSet", "traits": { - "aws.protocols#ec2QueryName": "TransitGatewayAttachmentPropagations", - "smithy.api#documentation": "

Information about the propagation route tables.

", - "smithy.api#xmlName": "transitGatewayAttachmentPropagations" + "aws.protocols#ec2QueryName": "TransitGatewayPrefixListReferenceSet", + "smithy.api#documentation": "

Information about the prefix list references.

", + "smithy.api#xmlName": "transitGatewayPrefixListReferenceSet" } }, "NextToken": { @@ -34471,189 +34020,38 @@ } } }, - "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociations": { + "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociations": { "type": "operation", "input": { - "target": "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsRequest" + "target": "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsRequest" }, "output": { - "target": "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsResult" + "target": "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsResult" }, "traits": { - "smithy.api#documentation": "

Gets information about the associations for the transit gateway multicast domain.

", + "smithy.api#documentation": "

Gets information about the associations for the specified transit gateway route table.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", - "items": "MulticastDomainAssociations", + "items": "Associations", "pageSize": "MaxResults" } } }, - "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsRequest": { + "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsRequest": { "type": "structure", "members": { - "TransitGatewayMulticastDomainId": { - "target": "com.amazonaws.ec2#TransitGatewayMulticastDomainId", + "TransitGatewayRouteTableId": { + "target": "com.amazonaws.ec2#TransitGatewayRouteTableId", "traits": { - "smithy.api#documentation": "

The ID of the transit gateway multicast domain.

" + "smithy.api#documentation": "

The ID of the transit gateway route table.

", + "smithy.api#required": {} } }, "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", - "smithy.api#xmlName": "Filter" - } - }, - "MaxResults": { - "target": "com.amazonaws.ec2#TransitGatewayMaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" - } - }, - "NextToken": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The token for the next page of results.

" - } - }, - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - } - } - }, - "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsResult": { - "type": "structure", - "members": { - "MulticastDomainAssociations": { - "target": "com.amazonaws.ec2#TransitGatewayMulticastDomainAssociationList", - "traits": { - "aws.protocols#ec2QueryName": "MulticastDomainAssociations", - "smithy.api#documentation": "

Information about the multicast domain associations.

", - "smithy.api#xmlName": "multicastDomainAssociations" - } - }, - "NextToken": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "NextToken", - "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", - "smithy.api#xmlName": "nextToken" - } - } - } - }, - "com.amazonaws.ec2#GetTransitGatewayPrefixListReferences": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesRequest" - }, - "output": { - "target": "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesResult" - }, - "traits": { - "smithy.api#documentation": "

Gets information about the prefix list references in a specified transit gateway route table.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "TransitGatewayPrefixListReferences", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesRequest": { - "type": "structure", - "members": { - "TransitGatewayRouteTableId": { - "target": "com.amazonaws.ec2#TransitGatewayRouteTableId", - "traits": { - "smithy.api#documentation": "

The ID of the transit gateway route table.

", - "smithy.api#required": {} - } - }, - "Filters": { - "target": "com.amazonaws.ec2#FilterList", - "traits": { - "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", - "smithy.api#xmlName": "Filter" - } - }, - "MaxResults": { - "target": "com.amazonaws.ec2#TransitGatewayMaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" - } - }, - "NextToken": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The token for the next page of results.

" - } - }, - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - } - } - }, - "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesResult": { - "type": "structure", - "members": { - "TransitGatewayPrefixListReferences": { - "target": "com.amazonaws.ec2#TransitGatewayPrefixListReferenceSet", - "traits": { - "aws.protocols#ec2QueryName": "TransitGatewayPrefixListReferenceSet", - "smithy.api#documentation": "

Information about the prefix list references.

", - "smithy.api#xmlName": "transitGatewayPrefixListReferenceSet" - } - }, - "NextToken": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "NextToken", - "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", - "smithy.api#xmlName": "nextToken" - } - } - } - }, - "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociations": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsRequest" - }, - "output": { - "target": "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsResult" - }, - "traits": { - "smithy.api#documentation": "

Gets information about the associations for the specified transit gateway route table.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "Associations", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsRequest": { - "type": "structure", - "members": { - "TransitGatewayRouteTableId": { - "target": "com.amazonaws.ec2#TransitGatewayRouteTableId", - "traits": { - "smithy.api#documentation": "

The ID of the transit gateway route table.

", - "smithy.api#required": {} - } - }, - "Filters": { - "target": "com.amazonaws.ec2#FilterList", - "traits": { - "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", + "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", "smithy.api#xmlName": "Filter" } }, @@ -35187,7 +34585,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the Dedicated Host.

", + "smithy.api#documentation": "

The ID of the account that owns the Dedicated Host.

", "smithy.api#xmlName": "ownerId" } }, @@ -35235,7 +34633,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the instance.

", + "smithy.api#documentation": "

The ID of the account that owns the instance.

", "smithy.api#xmlName": "ownerId" } } @@ -35554,15 +34952,6 @@ ] } }, - "com.amazonaws.ec2#Hour": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 0, - "max": 23 - } - } - }, "com.amazonaws.ec2#HttpTokensState": { "type": "string", "traits": { @@ -38363,318 +37752,6 @@ "com.amazonaws.ec2#InstanceEventId": { "type": "string" }, - "com.amazonaws.ec2#InstanceEventWindow": { - "type": "structure", - "members": { - "InstanceEventWindowId": { - "target": "com.amazonaws.ec2#InstanceEventWindowId", - "traits": { - "aws.protocols#ec2QueryName": "InstanceEventWindowId", - "smithy.api#documentation": "

The ID of the event window.

", - "smithy.api#xmlName": "instanceEventWindowId" - } - }, - "TimeRanges": { - "target": "com.amazonaws.ec2#InstanceEventWindowTimeRangeList", - "traits": { - "aws.protocols#ec2QueryName": "TimeRangeSet", - "smithy.api#documentation": "

One or more time ranges defined for the event window.

", - "smithy.api#xmlName": "timeRangeSet" - } - }, - "Name": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Name", - "smithy.api#documentation": "

The name of the event window.

", - "smithy.api#xmlName": "name" - } - }, - "CronExpression": { - "target": "com.amazonaws.ec2#InstanceEventWindowCronExpression", - "traits": { - "aws.protocols#ec2QueryName": "CronExpression", - "smithy.api#documentation": "

The cron expression defined for the event window.

", - "smithy.api#xmlName": "cronExpression" - } - }, - "AssociationTarget": { - "target": "com.amazonaws.ec2#InstanceEventWindowAssociationTarget", - "traits": { - "aws.protocols#ec2QueryName": "AssociationTarget", - "smithy.api#documentation": "

One or more targets associated with the event window.

", - "smithy.api#xmlName": "associationTarget" - } - }, - "State": { - "target": "com.amazonaws.ec2#InstanceEventWindowState", - "traits": { - "aws.protocols#ec2QueryName": "State", - "smithy.api#documentation": "

The current state of the event window.

", - "smithy.api#xmlName": "state" - } - }, - "Tags": { - "target": "com.amazonaws.ec2#TagList", - "traits": { - "aws.protocols#ec2QueryName": "TagSet", - "smithy.api#documentation": "

The instance tags associated with the event window.

", - "smithy.api#xmlName": "tagSet" - } - } - }, - "traits": { - "smithy.api#documentation": "

The event window.

" - } - }, - "com.amazonaws.ec2#InstanceEventWindowAssociationRequest": { - "type": "structure", - "members": { - "InstanceIds": { - "target": "com.amazonaws.ec2#InstanceIdList", - "traits": { - "smithy.api#documentation": "

The IDs of the instances to associate with the event window. If the instance is on a\n Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated\n Host ID parameter.

", - "smithy.api#xmlName": "InstanceId" - } - }, - "InstanceTags": { - "target": "com.amazonaws.ec2#TagList", - "traits": { - "smithy.api#documentation": "

The instance tags to associate with the event window. Any instances associated with the\n tags will be associated with the event window.

", - "smithy.api#xmlName": "InstanceTag" - } - }, - "DedicatedHostIds": { - "target": "com.amazonaws.ec2#DedicatedHostIdList", - "traits": { - "smithy.api#documentation": "

The IDs of the Dedicated Hosts to associate with the event window.

", - "smithy.api#xmlName": "DedicatedHostId" - } - } - }, - "traits": { - "smithy.api#documentation": "

One or more targets associated with the specified event window. Only one\n type of target (instance ID, instance tag, or Dedicated Host ID)\n can be associated with an event window.

" - } - }, - "com.amazonaws.ec2#InstanceEventWindowAssociationTarget": { - "type": "structure", - "members": { - "InstanceIds": { - "target": "com.amazonaws.ec2#InstanceIdList", - "traits": { - "aws.protocols#ec2QueryName": "InstanceIdSet", - "smithy.api#documentation": "

The IDs of the instances associated with the event window.

", - "smithy.api#xmlName": "instanceIdSet" - } - }, - "Tags": { - "target": "com.amazonaws.ec2#TagList", - "traits": { - "aws.protocols#ec2QueryName": "TagSet", - "smithy.api#documentation": "

The instance tags associated with the event window. Any instances associated with the tags\n will be associated with the event window.

", - "smithy.api#xmlName": "tagSet" - } - }, - "DedicatedHostIds": { - "target": "com.amazonaws.ec2#DedicatedHostIdList", - "traits": { - "aws.protocols#ec2QueryName": "DedicatedHostIdSet", - "smithy.api#documentation": "

The IDs of the Dedicated Hosts associated with the event window.

", - "smithy.api#xmlName": "dedicatedHostIdSet" - } - } - }, - "traits": { - "smithy.api#documentation": "

One or more targets associated with the event window.

" - } - }, - "com.amazonaws.ec2#InstanceEventWindowCronExpression": { - "type": "string" - }, - "com.amazonaws.ec2#InstanceEventWindowDisassociationRequest": { - "type": "structure", - "members": { - "InstanceIds": { - "target": "com.amazonaws.ec2#InstanceIdList", - "traits": { - "smithy.api#documentation": "

The IDs of the instances to disassociate from the event window.

", - "smithy.api#xmlName": "InstanceId" - } - }, - "InstanceTags": { - "target": "com.amazonaws.ec2#TagList", - "traits": { - "smithy.api#documentation": "

The instance tags to disassociate from the event window. Any instances associated with\n the tags will be disassociated from the event window.

", - "smithy.api#xmlName": "InstanceTag" - } - }, - "DedicatedHostIds": { - "target": "com.amazonaws.ec2#DedicatedHostIdList", - "traits": { - "smithy.api#documentation": "

The IDs of the Dedicated Hosts to disassociate from the event window.

", - "smithy.api#xmlName": "DedicatedHostId" - } - } - }, - "traits": { - "smithy.api#documentation": "

The targets to disassociate from the specified event window.

" - } - }, - "com.amazonaws.ec2#InstanceEventWindowId": { - "type": "string" - }, - "com.amazonaws.ec2#InstanceEventWindowIdSet": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#InstanceEventWindowId", - "traits": { - "smithy.api#xmlName": "InstanceEventWindowId" - } - } - }, - "com.amazonaws.ec2#InstanceEventWindowSet": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#InstanceEventWindow", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#InstanceEventWindowState": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "creating", - "name": "creating" - }, - { - "value": "deleting", - "name": "deleting" - }, - { - "value": "active", - "name": "active" - }, - { - "value": "deleted", - "name": "deleted" - } - ] - } - }, - "com.amazonaws.ec2#InstanceEventWindowStateChange": { - "type": "structure", - "members": { - "InstanceEventWindowId": { - "target": "com.amazonaws.ec2#InstanceEventWindowId", - "traits": { - "aws.protocols#ec2QueryName": "InstanceEventWindowId", - "smithy.api#documentation": "

The ID of the event window.

", - "smithy.api#xmlName": "instanceEventWindowId" - } - }, - "State": { - "target": "com.amazonaws.ec2#InstanceEventWindowState", - "traits": { - "aws.protocols#ec2QueryName": "State", - "smithy.api#documentation": "

The current state of the event window.

", - "smithy.api#xmlName": "state" - } - } - }, - "traits": { - "smithy.api#documentation": "

The state of the event window.

" - } - }, - "com.amazonaws.ec2#InstanceEventWindowTimeRange": { - "type": "structure", - "members": { - "StartWeekDay": { - "target": "com.amazonaws.ec2#WeekDay", - "traits": { - "aws.protocols#ec2QueryName": "StartWeekDay", - "smithy.api#documentation": "

The day on which the time range begins.

", - "smithy.api#xmlName": "startWeekDay" - } - }, - "StartHour": { - "target": "com.amazonaws.ec2#Hour", - "traits": { - "aws.protocols#ec2QueryName": "StartHour", - "smithy.api#documentation": "

The hour when the time range begins.

", - "smithy.api#xmlName": "startHour" - } - }, - "EndWeekDay": { - "target": "com.amazonaws.ec2#WeekDay", - "traits": { - "aws.protocols#ec2QueryName": "EndWeekDay", - "smithy.api#documentation": "

The day on which the time range ends.

", - "smithy.api#xmlName": "endWeekDay" - } - }, - "EndHour": { - "target": "com.amazonaws.ec2#Hour", - "traits": { - "aws.protocols#ec2QueryName": "EndHour", - "smithy.api#documentation": "

The hour when the time range ends.

", - "smithy.api#xmlName": "endHour" - } - } - }, - "traits": { - "smithy.api#documentation": "

The start day and time and the end day and time of the time range, in UTC.

" - } - }, - "com.amazonaws.ec2#InstanceEventWindowTimeRangeList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#InstanceEventWindowTimeRange", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequest": { - "type": "structure", - "members": { - "StartWeekDay": { - "target": "com.amazonaws.ec2#WeekDay", - "traits": { - "smithy.api#documentation": "

The day on which the time range begins.

" - } - }, - "StartHour": { - "target": "com.amazonaws.ec2#Hour", - "traits": { - "smithy.api#documentation": "

The hour when the time range begins.

" - } - }, - "EndWeekDay": { - "target": "com.amazonaws.ec2#WeekDay", - "traits": { - "smithy.api#documentation": "

The day on which the time range ends.

" - } - }, - "EndHour": { - "target": "com.amazonaws.ec2#Hour", - "traits": { - "smithy.api#documentation": "

The hour when the time range ends.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The start day and time and the end day and time of the time range, in UTC.

" - } - }, - "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequestSet": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequest" - } - }, "com.amazonaws.ec2#InstanceExportDetails": { "type": "structure", "members": { @@ -38741,15 +37818,6 @@ "com.amazonaws.ec2#InstanceId": { "type": "string" }, - "com.amazonaws.ec2#InstanceIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#InstanceId", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, "com.amazonaws.ec2#InstanceIdSet": { "type": "list", "member": { @@ -38796,31 +37864,6 @@ ] } }, - "com.amazonaws.ec2#InstanceIpv4Prefix": { - "type": "structure", - "members": { - "Ipv4Prefix": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Ipv4Prefix", - "smithy.api#documentation": "

One or more IPv4 delegated prefixes assigned to the network interface.

", - "smithy.api#xmlName": "ipv4Prefix" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about an IPv4 delegated prefix.

" - } - }, - "com.amazonaws.ec2#InstanceIpv4PrefixList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#InstanceIpv4Prefix", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, "com.amazonaws.ec2#InstanceIpv6Address": { "type": "structure", "members": { @@ -38869,31 +37912,6 @@ "smithy.api#documentation": "

Describes an IPv6 address.

" } }, - "com.amazonaws.ec2#InstanceIpv6Prefix": { - "type": "structure", - "members": { - "Ipv6Prefix": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6Prefix", - "smithy.api#documentation": "

One or more IPv6 delegated prefixes assigned to the network interface.

", - "smithy.api#xmlName": "ipv6Prefix" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about an IPv6 delegated prefix.

" - } - }, - "com.amazonaws.ec2#InstanceIpv6PrefixList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#InstanceIpv6Prefix", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, "com.amazonaws.ec2#InstanceLifecycle": { "type": "string", "traits": { @@ -39160,7 +38178,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that created the network interface.

", + "smithy.api#documentation": "

The ID of the account that created the network interface.

", "smithy.api#xmlName": "ownerId" } }, @@ -39227,22 +38245,6 @@ "smithy.api#documentation": "

Describes the type of network interface.

\n\t

Valid values: interface | efa | trunk\n

", "smithy.api#xmlName": "interfaceType" } - }, - "Ipv4Prefixes": { - "target": "com.amazonaws.ec2#InstanceIpv4PrefixList", - "traits": { - "aws.protocols#ec2QueryName": "Ipv4PrefixSet", - "smithy.api#documentation": "

The IPv4 delegated prefixes that are assigned to the network interface.

", - "smithy.api#xmlName": "ipv4PrefixSet" - } - }, - "Ipv6Prefixes": { - "target": "com.amazonaws.ec2#InstanceIpv6PrefixList", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6PrefixSet", - "smithy.api#documentation": "

The IPv6 delegated prefixes that are assigned to the network interface.

", - "smithy.api#xmlName": "ipv6PrefixSet" - } } }, "traits": { @@ -39469,32 +38471,6 @@ "traits": { "smithy.api#documentation": "

The index of the network card. Some instance types support multiple network cards. \n The primary network interface must be assigned to network card index 0. \n The default is network card index 0.

" } - }, - "Ipv4Prefixes": { - "target": "com.amazonaws.ec2#Ipv4PrefixList", - "traits": { - "smithy.api#documentation": "

One or more IPv4 delegated prefixes to be assigned to the network interface. You cannot \n use this option if you use the Ipv4PrefixCount option.

", - "smithy.api#xmlName": "Ipv4Prefix" - } - }, - "Ipv4PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "smithy.api#documentation": "

The number of IPv4 delegated prefixes to be automatically assigned to the network interface. \n You cannot use this option if you use the Ipv4Prefix option.

" - } - }, - "Ipv6Prefixes": { - "target": "com.amazonaws.ec2#Ipv6PrefixList", - "traits": { - "smithy.api#documentation": "

One or more IPv6 delegated prefixes to be assigned to the network interface. You cannot \n use this option if you use the Ipv6PrefixCount option.

", - "smithy.api#xmlName": "Ipv6Prefix" - } - }, - "Ipv6PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "smithy.api#documentation": "

The number of IPv6 delegated prefixes to be automatically assigned to the network interface. \n You cannot use this option if you use the Ipv6Prefix option.

" - } } }, "traits": { @@ -40893,14 +39869,6 @@ "value": "g3s.xlarge", "name": "g3s_xlarge" }, - { - "value": "g4ad.xlarge", - "name": "g4ad_xlarge" - }, - { - "value": "g4ad.2xlarge", - "name": "g4ad_2xlarge" - }, { "value": "g4ad.4xlarge", "name": "g4ad_4xlarge" @@ -41866,7 +40834,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "AccountId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that is making use of the Capacity Reservation.

", + "smithy.api#documentation": "

The ID of the account that is making use of the Capacity Reservation.

", "smithy.api#xmlName": "accountId" } }, @@ -41874,7 +40842,7 @@ "target": "com.amazonaws.ec2#Integer", "traits": { "aws.protocols#ec2QueryName": "UsedInstanceCount", - "smithy.api#documentation": "

The number of instances the Amazon Web Services account currently has in the Capacity Reservation.

", + "smithy.api#documentation": "

The number of instances the account currently has in the Capacity Reservation.

", "smithy.api#xmlName": "usedInstanceCount" } } @@ -41963,7 +40931,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the internet gateway.

", + "smithy.api#documentation": "

The ID of the AWS account that owns the internet gateway.

", "smithy.api#xmlName": "ownerId" } }, @@ -42126,15 +41094,6 @@ } } }, - "com.amazonaws.ec2#IpPrefixList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, "com.amazonaws.ec2#IpRange": { "type": "structure", "members": { @@ -42180,79 +41139,6 @@ "com.amazonaws.ec2#Ipv4PoolEc2Id": { "type": "string" }, - "com.amazonaws.ec2#Ipv4PrefixList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv4PrefixSpecificationRequest", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv4PrefixListResponse": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv4PrefixSpecificationResponse", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv4PrefixSpecification": { - "type": "structure", - "members": { - "Ipv4Prefix": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Ipv4Prefix", - "smithy.api#documentation": "

The IPv4 Prefix Delegation prefix. For information, see Prefix Delegation in the\n Amazon Elastic Compute Cloud User Guide.

", - "smithy.api#xmlName": "ipv4Prefix" - } - } - }, - "traits": { - "smithy.api#documentation": "

Describes an IPv4 Prefix Delegation.

" - } - }, - "com.amazonaws.ec2#Ipv4PrefixSpecificationRequest": { - "type": "structure", - "members": { - "Ipv4Prefix": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The IPv4 Prefix Delegation prefix. For information, see Prefix Delegation in the\n Amazon Elastic Compute Cloud User Guide.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Describes the IPv4 Prefix Delegation option for a network interface.

" - } - }, - "com.amazonaws.ec2#Ipv4PrefixSpecificationResponse": { - "type": "structure", - "members": { - "Ipv4Prefix": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Ipv4Prefix", - "smithy.api#documentation": "

One or more IPv4 delegated prefixes assigned to the network interface.

", - "smithy.api#xmlName": "ipv4Prefix" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about the IPv4 delegated prefixes assigned \n to a network interface.

" - } - }, - "com.amazonaws.ec2#Ipv4PrefixesList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv4PrefixSpecification", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, "com.amazonaws.ec2#Ipv6Address": { "type": "string" }, @@ -42399,79 +41285,6 @@ } } }, - "com.amazonaws.ec2#Ipv6PrefixList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv6PrefixSpecificationRequest", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv6PrefixListResponse": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv6PrefixSpecificationResponse", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv6PrefixSpecification": { - "type": "structure", - "members": { - "Ipv6Prefix": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6Prefix", - "smithy.api#documentation": "

The IPv6 Prefix Delegation prefix.

", - "smithy.api#xmlName": "ipv6Prefix" - } - } - }, - "traits": { - "smithy.api#documentation": "

Describes the IPv6 Prefix Delegation.

" - } - }, - "com.amazonaws.ec2#Ipv6PrefixSpecificationRequest": { - "type": "structure", - "members": { - "Ipv6Prefix": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The IPv6 Prefix Delegation prefix.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Describes the IPv4 Prefix Delegation option for a network interface.

" - } - }, - "com.amazonaws.ec2#Ipv6PrefixSpecificationResponse": { - "type": "structure", - "members": { - "Ipv6Prefix": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6Prefix", - "smithy.api#documentation": "

One or more IPv6 delegated prefixes assigned to the network interface.

", - "smithy.api#xmlName": "ipv6Prefix" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about the IPv6 delegated prefixes assigned \n to a network interface.

" - } - }, - "com.amazonaws.ec2#Ipv6PrefixesList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv6PrefixSpecification", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, "com.amazonaws.ec2#Ipv6Range": { "type": "structure", "members": { @@ -43190,7 +42003,7 @@ "target": "com.amazonaws.ec2#KmsKeyId", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The ARN of the Key Management Service (KMS) CMK used for encryption.

", + "smithy.api#documentation": "

The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.

", "smithy.api#xmlName": "kmsKeyId" } }, @@ -43255,7 +42068,7 @@ "KmsKeyId": { "target": "com.amazonaws.ec2#KmsKeyId", "traits": { - "smithy.api#documentation": "

The ARN of the symmetric Key Management Service (KMS) CMK used for\n encryption.

" + "smithy.api#documentation": "

The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for\n encryption.

" } }, "SnapshotId": { @@ -43365,13 +42178,13 @@ "target": "com.amazonaws.ec2#Boolean", "traits": { "aws.protocols#ec2QueryName": "Enabled", - "smithy.api#documentation": "

If this parameter is set to true, the instance is enabled for Amazon Web Services Nitro Enclaves; \n\t\totherwise, it is not enabled for Amazon Web Services Nitro Enclaves.

", + "smithy.api#documentation": "

If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves; \n\t\totherwise, it is not enabled for AWS Nitro Enclaves.

", "smithy.api#xmlName": "enabled" } } }, "traits": { - "smithy.api#documentation": "

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.

" + "smithy.api#documentation": "

Indicates whether the instance is enabled for AWS Nitro Enclaves.

" } }, "com.amazonaws.ec2#LaunchTemplateEnclaveOptionsRequest": { @@ -43380,12 +42193,12 @@ "Enabled": { "target": "com.amazonaws.ec2#Boolean", "traits": { - "smithy.api#documentation": "

To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to true.

" + "smithy.api#documentation": "

To enable the instance for AWS Nitro Enclaves, set this parameter to true.

" } } }, "traits": { - "smithy.api#documentation": "

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, \n\t\tsee \n\t\t\tWhat is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.

" + "smithy.api#documentation": "

Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, \n\t\tsee \n\t\t\tWhat is AWS Nitro Enclaves? in the AWS Nitro Enclaves User Guide.

" } }, "com.amazonaws.ec2#LaunchTemplateErrorCode": { @@ -43667,7 +42480,7 @@ "target": "com.amazonaws.ec2#Boolean", "traits": { "aws.protocols#ec2QueryName": "AssociateCarrierIpAddress", - "smithy.api#documentation": "

Indicates whether to associate a Carrier IP address with eth0 for a new network interface.

\n

Use this option when you launch an instance in a Wavelength Zone and want to associate\n a Carrier IP address with the network interface. For more information about Carrier IP\n addresses, see Carrier IP addresses in the Wavelength Developer\n Guide.

", + "smithy.api#documentation": "

Indicates whether to associate a Carrier IP address with eth0 for a new network interface.

\n

Use this option when you launch an instance in a Wavelength Zone and want to associate\n a Carrier IP address with the network interface. For more information about Carrier IP\n addresses, see Carrier IP addresses in the AWS Wavelength Developer\n Guide.

", "smithy.api#xmlName": "associateCarrierIpAddress" } }, @@ -43782,38 +42595,6 @@ "smithy.api#documentation": "

The index of the network card.

", "smithy.api#xmlName": "networkCardIndex" } - }, - "Ipv4Prefixes": { - "target": "com.amazonaws.ec2#Ipv4PrefixListResponse", - "traits": { - "aws.protocols#ec2QueryName": "Ipv4PrefixSet", - "smithy.api#documentation": "

One or more IPv4 delegated prefixes assigned to the network interface.

", - "smithy.api#xmlName": "ipv4PrefixSet" - } - }, - "Ipv4PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "aws.protocols#ec2QueryName": "Ipv4PrefixCount", - "smithy.api#documentation": "

The number of IPv4 delegated prefixes that AWS automatically assigned to the \n network interface.

", - "smithy.api#xmlName": "ipv4PrefixCount" - } - }, - "Ipv6Prefixes": { - "target": "com.amazonaws.ec2#Ipv6PrefixListResponse", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6PrefixSet", - "smithy.api#documentation": "

One or more IPv6 delegated prefixes assigned to the network interface.

", - "smithy.api#xmlName": "ipv6PrefixSet" - } - }, - "Ipv6PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6PrefixCount", - "smithy.api#documentation": "

The number of IPv6 delegated prefixes that AWS automatically assigned to the network \n interface.

", - "smithy.api#xmlName": "ipv6PrefixCount" - } } }, "traits": { @@ -43835,7 +42616,7 @@ "AssociateCarrierIpAddress": { "target": "com.amazonaws.ec2#Boolean", "traits": { - "smithy.api#documentation": "

Associates a Carrier IP address with eth0 for a new network interface.

\n

Use this option when you launch an instance in a Wavelength Zone and want to associate\n a Carrier IP address with the network interface. For more information about Carrier IP\n addresses, see Carrier IP addresses in the Wavelength Developer\n Guide.

" + "smithy.api#documentation": "

Associates a Carrier IP address with eth0 for a new network interface.

\n

Use this option when you launch an instance in a Wavelength Zone and want to associate\n a Carrier IP address with the network interface. For more information about Carrier IP\n addresses, see Carrier IP addresses in the AWS Wavelength Developer\n Guide.

" } }, "AssociatePublicIpAddress": { @@ -43922,32 +42703,6 @@ "traits": { "smithy.api#documentation": "

The index of the network card. Some instance types support multiple network cards. \n The primary network interface must be assigned to network card index 0. \n The default is network card index 0.

" } - }, - "Ipv4Prefixes": { - "target": "com.amazonaws.ec2#Ipv4PrefixList", - "traits": { - "smithy.api#documentation": "

One or more IPv4 delegated prefixes to be assigned to the network interface. You cannot use \n this option if you use the Ipv4PrefixCount option.

", - "smithy.api#xmlName": "Ipv4Prefix" - } - }, - "Ipv4PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "smithy.api#documentation": "

The number of IPv4 delegated prefixes to be automatically assigned to the \n network interface. You cannot use this option if you use the Ipv4Prefix option.

" - } - }, - "Ipv6Prefixes": { - "target": "com.amazonaws.ec2#Ipv6PrefixList", - "traits": { - "smithy.api#documentation": "

One or more IPv6 delegated prefixes to be assigned to the network interface. You cannot \n use this option if you use the Ipv6PrefixCount option.

", - "smithy.api#xmlName": "Ipv6Prefix" - } - }, - "Ipv6PrefixCount": { - "target": "com.amazonaws.ec2#Integer", - "traits": { - "smithy.api#documentation": "

The number of IPv6 delegated prefixes to be automatically assigned to the network \n interface. You cannot use this option if you use the Ipv6Prefix option.

" - } } }, "traits": { @@ -45888,7 +44643,7 @@ "target": "com.amazonaws.ec2#ModifyDefaultCreditSpecificationResult" }, "traits": { - "smithy.api#documentation": "

Modifies the default credit option for CPU usage of burstable performance instances.\n The default credit option is set at the account level per Amazon Web Services Region, and is specified\n per instance family. All new burstable performance instances in the account launch using\n the default credit option.

\n

\n ModifyDefaultCreditSpecification is an asynchronous operation, which works at an Amazon Web Services Region \n level and modifies the credit option for each Availability Zone. All zones in a\n Region are updated within five minutes. But if instances are launched during this\n operation, they might not get the new credit option until the zone is updated. To verify\n whether the update has occurred, you can call GetDefaultCreditSpecification and check\n DefaultCreditSpecification for updates.

\n

For more information, see Burstable\n performance instances in the Amazon EC2 User Guide.

" + "smithy.api#documentation": "

Modifies the default credit option for CPU usage of burstable performance instances.\n The default credit option is set at the account level per Region, and is specified\n per instance family. All new burstable performance instances in the account launch using\n the default credit option.

\n

\n ModifyDefaultCreditSpecification is an asynchronous operation, which works at an Region \n level and modifies the credit option for each Availability Zone. All zones in a\n Region are updated within five minutes. But if instances are launched during this\n operation, they might not get the new credit option until the zone is updated. To verify\n whether the update has occurred, you can call GetDefaultCreditSpecification and check\n DefaultCreditSpecification for updates.

\n

For more information, see Burstable\n performance instances in the Amazon EC2 User Guide.

" } }, "com.amazonaws.ec2#ModifyDefaultCreditSpecificationRequest": { @@ -45938,7 +44693,7 @@ "target": "com.amazonaws.ec2#ModifyEbsDefaultKmsKeyIdResult" }, "traits": { - "smithy.api#documentation": "

Changes the default KMS key for EBS encryption by default for your account in this Region.

\n \t

Amazon Web Services creates a unique Amazon Web Services managed KMS key in each Region for use with encryption by default. If\n you change the default KMS key to a symmetric customer managed KMS key, it is used instead of the Amazon Web Services\n managed KMS key. To reset the default KMS key to the Amazon Web Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric KMS keys.

\n

If you delete or disable the customer managed KMS key that you specified for use with\n encryption by default, your instances will fail to launch.

\n

For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Changes the default customer master key (CMK) for EBS encryption by default for your account in this Region.

\n

AWS creates a unique AWS managed CMK in each Region for use with encryption by default. If\n you change the default CMK to a symmetric customer managed CMK, it is used instead of the AWS\n managed CMK. To reset the default CMK to the AWS managed CMK for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric CMKs.

\n

If you delete or disable the customer managed CMK that you specified for use with\n encryption by default, your instances will fail to launch.

\n

For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#ModifyEbsDefaultKmsKeyIdRequest": { @@ -45947,7 +44702,7 @@ "KmsKeyId": { "target": "com.amazonaws.ec2#KmsKeyId", "traits": { - "smithy.api#documentation": "

The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS encryption.\n If this parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the KMS key using any of the following:

\n \n

Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

\n

Amazon EBS does not support asymmetric KMS keys.

", + "smithy.api#documentation": "

The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.\n If this parameter is not specified, your AWS managed CMK for EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the CMK using any of the following:

\n \n

AWS authenticates the CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

\n

Amazon EBS does not support asymmetric CMKs.

", "smithy.api#required": {} } }, @@ -45966,7 +44721,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default KMS key for encryption by default.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default CMK for encryption by default.

", "smithy.api#xmlName": "kmsKeyId" } } @@ -46663,68 +45418,6 @@ } } }, - "com.amazonaws.ec2#ModifyInstanceEventWindow": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#ModifyInstanceEventWindowRequest" - }, - "output": { - "target": "com.amazonaws.ec2#ModifyInstanceEventWindowResult" - }, - "traits": { - "smithy.api#documentation": "

Modifies the specified event window.

\n

You can define either a set of time ranges or a cron expression when modifying the event\n window, but not both.

\n

To modify the targets associated with the event window, use the AssociateInstanceEventWindow and DisassociateInstanceEventWindow API.

\n

If Amazon Web Services has already scheduled an event, modifying an event window won't change the time\n of the scheduled event.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" - } - }, - "com.amazonaws.ec2#ModifyInstanceEventWindowRequest": { - "type": "structure", - "members": { - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } - }, - "Name": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The name of the event window.

" - } - }, - "InstanceEventWindowId": { - "target": "com.amazonaws.ec2#InstanceEventWindowId", - "traits": { - "smithy.api#documentation": "

The ID of the event window.

", - "smithy.api#required": {} - } - }, - "TimeRanges": { - "target": "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequestSet", - "traits": { - "smithy.api#documentation": "

The time ranges of the event window.

", - "smithy.api#xmlName": "TimeRange" - } - }, - "CronExpression": { - "target": "com.amazonaws.ec2#InstanceEventWindowCronExpression", - "traits": { - "smithy.api#documentation": "

The cron expression of the event window, for example, * 0-4,20-23 * * 1,5.

\n

Constraints:

\n \n

For more information about cron expressions, see cron on the Wikipedia\n website.

" - } - } - } - }, - "com.amazonaws.ec2#ModifyInstanceEventWindowResult": { - "type": "structure", - "members": { - "InstanceEventWindow": { - "target": "com.amazonaws.ec2#InstanceEventWindow", - "traits": { - "aws.protocols#ec2QueryName": "InstanceEventWindow", - "smithy.api#documentation": "

Information about the event window.

", - "smithy.api#xmlName": "instanceEventWindow" - } - } - } - }, "com.amazonaws.ec2#ModifyInstanceMetadataOptions": { "type": "operation", "input": { @@ -47187,7 +45880,7 @@ "target": "com.amazonaws.ec2#ModifySnapshotAttributeRequest" }, "traits": { - "smithy.api#documentation": "

Adds or removes permission settings for the specified snapshot. You may add or remove\n specified Amazon Web Services account IDs from a snapshot's list of create volume permissions, but you cannot\n do both in a single operation. If you need to both add and remove account IDs for a snapshot,\n you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

\n

Encrypted snapshots and snapshots with Amazon Web Services Marketplace product codes cannot be made\n public. Snapshots encrypted with your default KMS key cannot be shared with other accounts.

\n

For more information about modifying snapshot permissions, see Share a snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Adds or removes permission settings for the specified snapshot. You may add or remove\n specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot\n do both in a single operation. If you need to both add and remove account IDs for a snapshot,\n you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

\n

Encrypted snapshots and snapshots with AWS Marketplace product codes cannot be made\n public. Snapshots encrypted with your default CMK cannot be shared with other accounts.

\n

For more information about modifying snapshot permissions, see Sharing snapshots in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#ModifySnapshotAttributeRequest": { @@ -47890,7 +46583,7 @@ "target": "com.amazonaws.ec2#ModifyVolumeResult" }, "traits": { - "smithy.api#documentation": "

You can modify several parameters of an existing EBS volume, including volume size, volume\n type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance\n type, you might be able to apply these changes without stopping the instance or detaching the\n volume from it. For more information about modifying EBS volumes, see Amazon EBS Elastic Volumes (Linux instances) \n or Amazon EBS Elastic Volumes (Windows instances).

\n

When you complete a resize operation on your volume, you need to extend the volume's\n file-system size to take advantage of the new storage capacity. For more information, see Extend a Linux file system or \n Extend a Windows file system.

\n

You can use CloudWatch Events to check the status of a modification to an EBS volume. For\n information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a\n modification using DescribeVolumesModifications. For information\n about tracking status changes using either method, see Monitor the progress of volume modifications.

\n

With previous-generation instance types, resizing an EBS volume might require detaching and\n reattaching the volume or stopping and restarting the instance.

\n

If you reach the maximum volume modification rate per volume limit, you must wait\n at least six hours before applying further modifications to the affected EBS volume.

" + "smithy.api#documentation": "

You can modify several parameters of an existing EBS volume, including volume size, volume\n type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance\n type, you might be able to apply these changes without stopping the instance or detaching the\n volume from it. For more information about modifying an EBS volume running Linux, see Modifying the size, IOPS, or\n type of an EBS volume on Linux. For more information about modifying an EBS volume\n running Windows, see Modifying the size, IOPS, or type of an EBS volume on Windows.

\n

When you complete a resize operation on your volume, you need to extend the volume's\n file-system size to take advantage of the new storage capacity. For information about\n extending a Linux file system, see Extending a Linux\n file system. For information about extending a Windows file system, see Extending a\n Windows file system.

\n

You can use CloudWatch Events to check the status of a modification to an EBS volume. For\n information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a\n modification using DescribeVolumesModifications. For information\n about tracking status changes using either method, see Monitoring volume\n modifications.

\n

With previous-generation instance types, resizing an EBS volume might require detaching and\n reattaching the volume or stopping and restarting the instance. For more information, see\n Amazon EBS Elastic \n Volumes (Linux) or Amazon EBS Elastic Volumes (Windows).

\n

If you reach the maximum volume modification rate per volume limit, you will need to wait\n at least six hours before applying further modifications to the affected EBS volume.

" } }, "com.amazonaws.ec2#ModifyVolumeAttribute": { @@ -47947,25 +46640,25 @@ "Size": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The target size of the volume, in GiB. The target volume size must be greater than or\n equal to the existing size of the volume.

\n

The following are the supported volumes sizes for each volume type:

\n \n

Default: The existing size is retained.

" + "smithy.api#documentation": "

The target size of the volume, in GiB. The target volume size must be greater than or\n equal to the existing size of the volume.

\n

The following are the supported volumes sizes for each volume type:

\n \n

Default: If no size is specified, the existing size is retained.

" } }, "VolumeType": { "target": "com.amazonaws.ec2#VolumeType", "traits": { - "smithy.api#documentation": "

The target EBS volume type of the volume. For more information, see Amazon EBS volume types in the Amazon Elastic Compute Cloud User Guide.

\n

Default: The existing type is retained.

" + "smithy.api#documentation": "

The target EBS volume type of the volume. For more information, see Amazon EBS volume types in the Amazon Elastic Compute Cloud User Guide.

\n

Default: If no type is specified, the existing type is retained.

" } }, "Iops": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The target IOPS rate of the volume. This parameter is valid only for gp3, io1, and io2 volumes.

\n

The following are the supported values for each volume type:

\n \n

Default: The existing value is retained if you keep the same volume type. If you change\n the volume type to io1, io2, or gp3, the default is 3,000.

" + "smithy.api#documentation": "

The target IOPS rate of the volume. This parameter is valid only for gp3, io1, and io2 volumes.

\n

The following are the supported values for each volume type:

\n \n

Default: If no IOPS value is specified, the existing value is retained, unless a volume type is modified that supports different values.

" } }, "Throughput": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The target throughput of the volume, in MiB/s. This parameter is valid only for gp3 volumes. \n The maximum value is 1,000.

\n

Default: The existing value is retained if the source and target volume type is gp3.\n Otherwise, the default value is 125.

\n \t

Valid Range: Minimum value of 125. Maximum value of 1000.

" + "smithy.api#documentation": "

The target throughput of the volume, in MiB/s. This parameter is valid only for gp3 volumes. \n The maximum value is 1,000.

\n

Default: If no throughput value is specified, the existing value is retained.

\n \t

Valid Range: Minimum value of 125. Maximum value of 1000.

" } }, "MultiAttachEnabled": { @@ -48338,7 +47031,7 @@ "target": "com.amazonaws.ec2#ModifyVpcPeeringConnectionOptionsResult" }, "traits": { - "smithy.api#documentation": "

Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

\n \n

If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution \n for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP\n addresses in the peer VPC. This option is not available if the peered VPCs are in different\n different Amazon Web Services accounts or different Regions. For peered VPCs in different \n Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request \n to modify the peering connection options. For inter-region peering connections, you must use the \n Region for the requester VPC to modify the requester VPC peering options and the Region for the \n accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and \n the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

" + "smithy.api#documentation": "

Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

\n \n

If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries\n from the local VPC. This ensures that queries from the local VPC resolve to private IP\n addresses in the peer VPC. This option is not available if the peered VPCs are in\n different AWS accounts or different Regions. For peered VPCs in different AWS accounts,\n each AWS account owner must initiate a separate request to modify the peering connection\n options. For inter-region peering connections, you must use the Region for the requester\n VPC to modify the requester VPC peering options and the Region for the accepter VPC to\n modify the accepter VPC peering options. To verify which VPCs are the accepter and the\n requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

" } }, "com.amazonaws.ec2#ModifyVpcPeeringConnectionOptionsRequest": { @@ -49054,7 +47747,7 @@ "target": "com.amazonaws.ec2#ProvisionedBandwidth", "traits": { "aws.protocols#ec2QueryName": "ProvisionedBandwidth", - "smithy.api#documentation": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through \n the Support Center.

", + "smithy.api#documentation": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", "smithy.api#xmlName": "provisionedBandwidth" } }, @@ -49255,7 +47948,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the network ACL.

", + "smithy.api#documentation": "

The ID of the AWS account that owns the network ACL.

", "smithy.api#xmlName": "ownerId" } } @@ -49584,7 +48277,7 @@ "target": "com.amazonaws.ec2#ArnList", "traits": { "aws.protocols#ec2QueryName": "FilterInArnSet", - "smithy.api#documentation": "

The Amazon Resource Names (ARN) of the Amazon Web Services resources that the path must traverse.

", + "smithy.api#documentation": "

The Amazon Resource Names (ARN) of the AWS resources that the path must traverse.

", "smithy.api#xmlName": "filterInArnSet" } }, @@ -49726,7 +48419,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "Source", - "smithy.api#documentation": "

The Amazon Web Services resource that is the source of the path.

", + "smithy.api#documentation": "

The AWS resource that is the source of the path.

", "smithy.api#xmlName": "source" } }, @@ -49734,7 +48427,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "Destination", - "smithy.api#documentation": "

The Amazon Web Services resource that is the destination of the path.

", + "smithy.api#documentation": "

The AWS resource that is the destination of the path.

", "smithy.api#xmlName": "destination" } }, @@ -49742,7 +48435,7 @@ "target": "com.amazonaws.ec2#IpAddress", "traits": { "aws.protocols#ec2QueryName": "SourceIp", - "smithy.api#documentation": "

The IP address of the Amazon Web Services resource that is the source of the path.

", + "smithy.api#documentation": "

The IP address of the AWS resource that is the source of the path.

", "smithy.api#xmlName": "sourceIp" } }, @@ -49750,7 +48443,7 @@ "target": "com.amazonaws.ec2#IpAddress", "traits": { "aws.protocols#ec2QueryName": "DestinationIp", - "smithy.api#documentation": "

The IP address of the Amazon Web Services resource that is the destination of the path.

", + "smithy.api#documentation": "

The IP address of the AWS resource that is the destination of the path.

", "smithy.api#xmlName": "destinationIp" } }, @@ -49891,7 +48584,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the network interface.

", + "smithy.api#documentation": "

The account ID of the owner of the network interface.

", "smithy.api#xmlName": "ownerId" } }, @@ -49919,27 +48612,11 @@ "smithy.api#xmlName": "privateIpAddressesSet" } }, - "Ipv4Prefixes": { - "target": "com.amazonaws.ec2#Ipv4PrefixesList", - "traits": { - "aws.protocols#ec2QueryName": "Ipv4PrefixSet", - "smithy.api#documentation": "

The IPv4 Prefix Delegation prefixes\n that are\n assigned to the network interface.

", - "smithy.api#xmlName": "ipv4PrefixSet" - } - }, - "Ipv6Prefixes": { - "target": "com.amazonaws.ec2#Ipv6PrefixesList", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6PrefixSet", - "smithy.api#documentation": "

The IPv6 Prefix Delegation prefixes\n that are\n assigned to the network interface.

", - "smithy.api#xmlName": "ipv6PrefixSet" - } - }, "RequesterId": { "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "RequesterId", - "smithy.api#documentation": "

The alias or Amazon Web Services account ID of the principal or service that created the network interface.

", + "smithy.api#documentation": "

The alias or account ID of the principal or service that created the network interface.

", "smithy.api#xmlName": "requesterId" } }, @@ -50115,7 +48792,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "InstanceOwnerId", - "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the instance.

", + "smithy.api#documentation": "

The account ID of the owner of the instance.

", "smithy.api#xmlName": "instanceOwnerId" } }, @@ -50270,7 +48947,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "AwsAccountId", - "smithy.api#documentation": "

The Amazon Web Services account ID.

", + "smithy.api#documentation": "

The account ID.

", "smithy.api#xmlName": "awsAccountId" } }, @@ -53109,7 +51786,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "UserId", - "smithy.api#documentation": "

The Amazon Web Services account ID.

", + "smithy.api#documentation": "

The account ID.

", "smithy.api#xmlName": "userId" } }, @@ -53741,7 +52418,7 @@ "target": "com.amazonaws.ec2#ReleaseAddressRequest" }, "traits": { - "smithy.api#documentation": "

Releases the specified Elastic IP address.

\n

[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it\n\t\t\t\tfrom any instance that it's associated with. To disassociate an Elastic IP address without\n\t\t\t\treleasing it, use DisassociateAddress.

\n

[Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address\n\t\t\t before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

\n

After releasing an Elastic IP address, it is released to the IP address pool. \n Be sure to update your DNS records and any servers or devices that communicate with the address. \n If you attempt to release an Elastic IP address that you already released, you'll get an\n AuthFailure error if the address is already allocated to another Amazon Web Services account.

\n

[EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it.\n For more information, see AllocateAddress.

" + "smithy.api#documentation": "

Releases the specified Elastic IP address.

\n

[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it\n\t\t\t\tfrom any instance that it's associated with. To disassociate an Elastic IP address without\n\t\t\t\treleasing it, use DisassociateAddress.

\n

[Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address\n\t\t\t before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

\n

After releasing an Elastic IP address, it is released to the IP address pool. \n Be sure to update your DNS records and any servers or devices that communicate with the address. \n If you attempt to release an Elastic IP address that you already released, you'll get an\n AuthFailure error if the address is already allocated to another account.

\n

[EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it.\n For more information, see AllocateAddress.

" } }, "com.amazonaws.ec2#ReleaseAddressRequest": { @@ -54161,7 +52838,7 @@ "target": "com.amazonaws.ec2#ReplaceRouteRequest" }, "traits": { - "smithy.api#documentation": "

Replaces an existing route within a route table in a VPC. You must provide only one of\n the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC\n peering connection, network interface, egress-only internet gateway, or transit\n gateway.

\n

For more information, see Route tables in the\n Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Replaces an existing route within a route table in a VPC. You must provide only one of\n the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC\n peering connection, network interface, egress-only internet gateway, or transit\n gateway.

\n

For more information, see Route Tables in the\n Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#ReplaceRouteRequest": { @@ -54295,7 +52972,7 @@ "target": "com.amazonaws.ec2#ReplaceRouteTableAssociationResult" }, "traits": { - "smithy.api#documentation": "

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation\n completes, the subnet or gateway uses the routes in the new route table. For more\n information about route tables, see Route\n tables in the Amazon Virtual Private Cloud User Guide.

\n

You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

" + "smithy.api#documentation": "

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation\n completes, the subnet or gateway uses the routes in the new route table. For more\n information about route tables, see Route\n Tables in the Amazon Virtual Private Cloud User Guide.

\n

You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

" } }, "com.amazonaws.ec2#ReplaceRouteTableAssociationRequest": { @@ -54742,19 +53419,19 @@ "HibernationOptions": { "target": "com.amazonaws.ec2#LaunchTemplateHibernationOptionsRequest", "traits": { - "smithy.api#documentation": "

Indicates whether an instance is enabled for hibernation. This parameter is valid only\n if the instance meets the hibernation\n prerequisites. For\n more information, see Hibernate your instance in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Indicates whether an instance is enabled for hibernation. This parameter is valid only\n if the instance meets the hibernation\n prerequisites. For\n more information, see Hibernate Your Instance in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "MetadataOptions": { "target": "com.amazonaws.ec2#LaunchTemplateInstanceMetadataOptionsRequest", "traits": { - "smithy.api#documentation": "

The metadata options for the instance. For more information, see Instance metadata and user data in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

The metadata options for the instance. For more information, see Instance Metadata and User Data in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "EnclaveOptions": { "target": "com.amazonaws.ec2#LaunchTemplateEnclaveOptionsRequest", "traits": { - "smithy.api#documentation": "

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, \n\t\t\tsee \n\t\t\t\tWhat is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.

\t\t\n\t\t

You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance.

" + "smithy.api#documentation": "

Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, \n\t\t\tsee \n\t\t\t\tWhat is AWS Nitro Enclaves? in the AWS Nitro Enclaves User Guide.

\t\t\n\t\t

You can't enable AWS Nitro Enclaves and hibernation on the same instance.

" } } }, @@ -55124,7 +53801,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the reservation.

", + "smithy.api#documentation": "

The ID of the account that owns the reservation.

", "smithy.api#xmlName": "ownerId" } }, @@ -55132,7 +53809,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "RequesterId", - "smithy.api#documentation": "

The ID of the requester that launched the instances on your behalf (for example, \n Amazon Web Services Management Console or Auto Scaling).

", + "smithy.api#documentation": "

The ID of the requester that launched the instances on your behalf (for example, \n Management Console or Auto Scaling).

", "smithy.api#xmlName": "requesterId" } }, @@ -56004,7 +54681,7 @@ "target": "com.amazonaws.ec2#ResetEbsDefaultKmsKeyIdResult" }, "traits": { - "smithy.api#documentation": "

Resets the default KMS key for EBS encryption for your account in this Region \n to the Amazon Web Services managed KMS key for EBS.

\n

After resetting the default KMS key to the Amazon Web Services managed KMS key, you can continue to encrypt by a \n customer managed KMS key by specifying it when you create the volume. For more information, see\n Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Resets the default customer master key (CMK) for EBS encryption for your account in this Region \n to the AWS managed CMK for EBS.

\n

After resetting the default CMK to the AWS managed CMK, you can continue to encrypt by a \n customer managed CMK by specifying it when you create the volume. For more information, see\n Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#ResetEbsDefaultKmsKeyIdRequest": { @@ -56025,7 +54702,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by default.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default CMK for EBS encryption by default.

", "smithy.api#xmlName": "kmsKeyId" } } @@ -56229,7 +54906,7 @@ "target": "com.amazonaws.ec2#ResetSnapshotAttributeRequest" }, "traits": { - "smithy.api#documentation": "

Resets permission settings for the specified snapshot.

\n

For more information about modifying snapshot permissions, see Share a snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Resets permission settings for the specified snapshot.

\n

For more information about modifying snapshot permissions, see Sharing snapshots in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#ResetSnapshotAttributeRequest": { @@ -56351,10 +55028,6 @@ "value": "instance", "name": "instance" }, - { - "value": "instance-event-window", - "name": "instance_event_window" - }, { "value": "internet-gateway", "name": "internet_gateway" @@ -56703,7 +55376,7 @@ "target": "com.amazonaws.ec2#LaunchTemplateCpuOptions", "traits": { "aws.protocols#ec2QueryName": "CpuOptions", - "smithy.api#documentation": "

The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User\n\t\t\t\tGuide.

", + "smithy.api#documentation": "

The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User\n\t\t\t\tGuide.

", "smithy.api#xmlName": "cpuOptions" } }, @@ -56727,7 +55400,7 @@ "target": "com.amazonaws.ec2#LaunchTemplateHibernationOptions", "traits": { "aws.protocols#ec2QueryName": "HibernationOptions", - "smithy.api#documentation": "

Indicates whether an instance is configured for hibernation. For more information, see\n Hibernate\n your instance in the Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

Indicates whether an instance is configured for hibernation. For more information, see\n Hibernate\n Your Instance in the Amazon Elastic Compute Cloud User Guide.

", "smithy.api#xmlName": "hibernationOptions" } }, @@ -56735,7 +55408,7 @@ "target": "com.amazonaws.ec2#LaunchTemplateInstanceMetadataOptions", "traits": { "aws.protocols#ec2QueryName": "MetadataOptions", - "smithy.api#documentation": "

The metadata options for the instance. For more information, see Instance metadata and user data in the\n Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

The metadata options for the instance. For more information, see Instance Metadata and User Data in the\n Amazon Elastic Compute Cloud User Guide.

", "smithy.api#xmlName": "metadataOptions" } }, @@ -56743,7 +55416,7 @@ "target": "com.amazonaws.ec2#LaunchTemplateEnclaveOptions", "traits": { "aws.protocols#ec2QueryName": "EnclaveOptions", - "smithy.api#documentation": "

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.

", + "smithy.api#documentation": "

Indicates whether the instance is enabled for AWS Nitro Enclaves.

", "smithy.api#xmlName": "enclaveOptions" } } @@ -56870,15 +55543,6 @@ } } }, - "com.amazonaws.ec2#ResultRange": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 20, - "max": 500 - } - } - }, "com.amazonaws.ec2#RevokeClientVpnIngress": { "type": "operation", "input": { @@ -57213,7 +55877,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "DestinationPrefixListId", - "smithy.api#documentation": "

The prefix of the Amazon Web Service.

", + "smithy.api#documentation": "

The prefix of the AWS service.

", "smithy.api#xmlName": "destinationPrefixListId" } }, @@ -57245,7 +55909,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "InstanceOwnerId", - "smithy.api#documentation": "

The ID of Amazon Web Services account that owns the instance.

", + "smithy.api#documentation": "

The AWS account ID of the owner of the instance.

", "smithy.api#xmlName": "instanceOwnerId" } }, @@ -57419,7 +56083,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the route table.

", + "smithy.api#documentation": "

The ID of the AWS account that owns the route table.

", "smithy.api#xmlName": "ownerId" } } @@ -59148,7 +57812,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "GroupOwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the security group.

", + "smithy.api#documentation": "

The ID of the account that owns the security group.

", "smithy.api#xmlName": "groupOwnerId" } }, @@ -59830,7 +58494,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the\n volume encryption key for the parent volume.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the\n volume encryption key for the parent volume.

", "smithy.api#xmlName": "kmsKeyId" } }, @@ -59838,7 +58502,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the EBS snapshot.

", + "smithy.api#documentation": "

The AWS account ID of the EBS snapshot owner.

", "smithy.api#xmlName": "ownerId" } }, @@ -59878,7 +58542,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "StatusMessage", - "smithy.api#documentation": "

Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails\n (for example, if the proper Key Management Service (KMS) permissions are not obtained) this field displays error\n state details to help you diagnose why the error occurred. This parameter is only returned by\n DescribeSnapshots.

", + "smithy.api#documentation": "

Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails\n (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error\n state details to help you diagnose why the error occurred. This parameter is only returned by\n DescribeSnapshots.

", "smithy.api#xmlName": "statusMessage" } }, @@ -59902,7 +58566,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerAlias", - "smithy.api#documentation": "

The Amazon Web Services owner alias, from an Amazon-maintained list (amazon). This is not \n the user-configured Amazon Web Services account alias set using the IAM console.

", + "smithy.api#documentation": "

The AWS owner alias, from an Amazon-maintained list (amazon). This is not \n the user-configured AWS account alias set using the IAM console.

", "smithy.api#xmlName": "ownerAlias" } }, @@ -59910,7 +58574,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OutpostArn", - "smithy.api#documentation": "

The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the \n \t\tAmazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

The ARN of the AWS Outpost on which the snapshot is stored. For more information, see EBS Local Snapshot on Outposts in the \n \t\tAmazon Elastic Compute Cloud User Guide.

", "smithy.api#xmlName": "outpostArn" } }, @@ -60170,7 +58834,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OutpostArn", - "smithy.api#documentation": "

The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the \n \t\tAmazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

The ARN of the AWS Outpost on which the snapshot is stored. For more information, see EBS Local Snapshot on Outposts in the \n \t\tAmazon Elastic Compute Cloud User Guide.

", "smithy.api#xmlName": "outpostArn" } } @@ -60374,7 +59038,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The Amazon Web Services account ID of the account.

", + "smithy.api#documentation": "

The account ID of the account.

", "smithy.api#xmlName": "ownerId" } }, @@ -61218,7 +59882,7 @@ "BlockDurationMinutes": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

Deprecated.

" + "smithy.api#documentation": "

The required duration for the Spot Instances (also known as Spot blocks), in minutes.\n This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).

\n

The duration period starts as soon as your Spot Instance receives its instance ID. At\n the end of the duration period, Amazon EC2 marks the Spot Instance for termination and\n provides a Spot Instance termination notice, which gives the instance a two-minute\n warning before it terminates.

\n

You can't specify an Availability Zone group or a launch group if you specify a\n duration.

\n

New accounts or accounts with no previous billing history with Amazon Web Services are not eligible\n for Spot Instances with a defined duration (also known as Spot blocks).

" } }, "ValidUntil": { @@ -61684,7 +60348,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to ensure idempotency.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to Ensure Idempotency.

", "smithy.api#idempotencyToken": {}, "smithy.api#required": {} } @@ -62153,7 +60817,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the subnet.

", + "smithy.api#documentation": "

The ID of the AWS account that owns the subnet.

", "smithy.api#xmlName": "ownerId" } }, @@ -62293,97 +60957,6 @@ ] } }, - "com.amazonaws.ec2#SubnetCidrReservation": { - "type": "structure", - "members": { - "SubnetCidrReservationId": { - "target": "com.amazonaws.ec2#SubnetCidrReservationId", - "traits": { - "aws.protocols#ec2QueryName": "SubnetCidrReservationId", - "smithy.api#documentation": "

The ID of the subnet CIDR reservation.

", - "smithy.api#xmlName": "subnetCidrReservationId" - } - }, - "SubnetId": { - "target": "com.amazonaws.ec2#SubnetId", - "traits": { - "aws.protocols#ec2QueryName": "SubnetId", - "smithy.api#documentation": "

The ID of the subnet.

", - "smithy.api#xmlName": "subnetId" - } - }, - "Cidr": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Cidr", - "smithy.api#documentation": "

The CIDR that has been reserved.

", - "smithy.api#xmlName": "cidr" - } - }, - "ReservationType": { - "target": "com.amazonaws.ec2#SubnetCidrReservationType", - "traits": { - "aws.protocols#ec2QueryName": "ReservationType", - "smithy.api#documentation": "

The type of reservation.

", - "smithy.api#xmlName": "reservationType" - } - }, - "OwnerId": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the account that owns the subnet CIDR reservation.

", - "smithy.api#xmlName": "ownerId" - } - }, - "Description": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Description", - "smithy.api#documentation": "

The\n description\n assigned to the subnet CIDR\n reservation.

", - "smithy.api#xmlName": "description" - } - }, - "Tags": { - "target": "com.amazonaws.ec2#TagList", - "traits": { - "aws.protocols#ec2QueryName": "TagSet", - "smithy.api#documentation": "

The tags assigned to the subnet CIDR reservation.

", - "smithy.api#xmlName": "tagSet" - } - } - }, - "traits": { - "smithy.api#documentation": "

Describes a subnet CIDR reservation.

" - } - }, - "com.amazonaws.ec2#SubnetCidrReservationId": { - "type": "string" - }, - "com.amazonaws.ec2#SubnetCidrReservationList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#SubnetCidrReservation", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#SubnetCidrReservationType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "prefix", - "name": "prefix" - }, - { - "value": "explicit", - "name": "explicit" - } - ] - } - }, "com.amazonaws.ec2#SubnetId": { "type": "string" }, @@ -62627,7 +61200,7 @@ "target": "com.amazonaws.ec2#ResourceType", "traits": { "aws.protocols#ec2QueryName": "ResourceType", - "smithy.api#documentation": "

The type of resource to tag. Currently, the resource types that support tagging on\n creation are: capacity-reservation | carrier-gateway |\n client-vpn-endpoint | customer-gateway |\n \t dedicated-host | dhcp-options | egress-only-internet-gateway | elastic-ip | elastic-gpu |\n \t export-image-task\n | export-instance-task | fleet | fpga-image |\n \t host-reservation | image| import-image-task |\n \t import-snapshot-task | instance | instance-event-window |\n internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 |\n \t key-pair | launch-template | local-gateway-route-table-vpc-association | placement-group |\n \t prefix-list | natgateway | network-acl | network-interface | \n \t reserved-instances |route-table | security-group| snapshot | spot-fleet-request\n | spot-instances-request | snapshot | subnet |\n traffic-mirror-filter | traffic-mirror-session |\n traffic-mirror-target | transit-gateway |\n \t transit-gateway-attachment | transit-gateway-multicast-domain | transit-gateway-route-table |\n volume |vpc | vpc-peering-connection |\n vpc-endpoint (for interface and gateway endpoints) |\n \t vpc-endpoint-service (for Amazon Web Services PrivateLink) | vpc-flow-log |\n vpn-connection | vpn-gateway.

\n

To tag a resource after it has been created, see CreateTags.

", + "smithy.api#documentation": "

The type of resource to tag. Currently, the resource types that support tagging on\n creation are: capacity-reservation | carrier-gateway |\n client-vpn-endpoint | customer-gateway |\n \t dedicated-host | dhcp-options | egress-only-internet-gateway | elastic-ip | elastic-gpu |\n \t export-image-task\n | export-instance-task | fleet | fpga-image |\n \t host-reservation | image| import-image-task |\n import-snapshot-task | instance |\n internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 |\n \t key-pair | launch-template | local-gateway-route-table-vpc-association | placement-group |\n \t prefix-list | natgateway | network-acl | network-interface | \n \t reserved-instances |route-table | security-group| snapshot | spot-fleet-request\n | spot-instances-request | snapshot | subnet |\n traffic-mirror-filter | traffic-mirror-session |\n traffic-mirror-target | transit-gateway |\n \t transit-gateway-attachment | transit-gateway-multicast-domain | transit-gateway-route-table |\n volume |vpc | vpc-peering-connection |\n vpc-endpoint (for interface and gateway endpoints) |\n vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log |\n vpn-connection | vpn-gateway.

\n

To tag a resource after it has been created, see CreateTags.

", "smithy.api#xmlName": "resourceType" } }, @@ -66192,27 +64765,12 @@ "target": "com.amazonaws.ec2#UnassignIpv6AddressesResult" }, "traits": { - "smithy.api#documentation": "

Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.

" + "smithy.api#documentation": "

Unassigns one or more IPv6 addresses from a network interface.

" } }, "com.amazonaws.ec2#UnassignIpv6AddressesRequest": { "type": "structure", "members": { - "Ipv6Addresses": { - "target": "com.amazonaws.ec2#Ipv6AddressList", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6Addresses", - "smithy.api#documentation": "

The IPv6 addresses to unassign from the network interface.

", - "smithy.api#xmlName": "ipv6Addresses" - } - }, - "Ipv6Prefixes": { - "target": "com.amazonaws.ec2#IpPrefixList", - "traits": { - "smithy.api#documentation": "

One or moreIPv6 Prefix Delegation prefixes to unassign from the network interface.

", - "smithy.api#xmlName": "Ipv6Prefix" - } - }, "NetworkInterfaceId": { "target": "com.amazonaws.ec2#NetworkInterfaceId", "traits": { @@ -66221,6 +64779,15 @@ "smithy.api#required": {}, "smithy.api#xmlName": "networkInterfaceId" } + }, + "Ipv6Addresses": { + "target": "com.amazonaws.ec2#Ipv6AddressList", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6Addresses", + "smithy.api#documentation": "

The IPv6 addresses to unassign from the network interface.

", + "smithy.api#required": {}, + "smithy.api#xmlName": "ipv6Addresses" + } } } }, @@ -66242,14 +64809,6 @@ "smithy.api#documentation": "

The IPv6 addresses that have been unassigned from the network interface.

", "smithy.api#xmlName": "unassignedIpv6Addresses" } - }, - "UnassignedIpv6Prefixes": { - "target": "com.amazonaws.ec2#IpPrefixList", - "traits": { - "aws.protocols#ec2QueryName": "UnassignedIpv6PrefixSet", - "smithy.api#documentation": "

The IPv4 Prefix Delegation prefixes that have been unassigned from the network interface.

", - "smithy.api#xmlName": "unassignedIpv6PrefixSet" - } } } }, @@ -66259,7 +64818,7 @@ "target": "com.amazonaws.ec2#UnassignPrivateIpAddressesRequest" }, "traits": { - "smithy.api#documentation": "

Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.

" + "smithy.api#documentation": "

Unassigns one or more secondary private IP addresses from a network interface.

" } }, "com.amazonaws.ec2#UnassignPrivateIpAddressesRequest": { @@ -66279,15 +64838,9 @@ "traits": { "aws.protocols#ec2QueryName": "PrivateIpAddress", "smithy.api#documentation": "

The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.

", + "smithy.api#required": {}, "smithy.api#xmlName": "privateIpAddress" } - }, - "Ipv4Prefixes": { - "target": "com.amazonaws.ec2#IpPrefixList", - "traits": { - "smithy.api#documentation": "

The IPv4 Prefix Delegation prefixes to unassign from the network interface.

", - "smithy.api#xmlName": "Ipv4Prefix" - } } }, "traits": { @@ -66488,7 +65041,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the error that occurred. For more information about errors, see Error codes.

" + "smithy.api#documentation": "

Information about the error that occurred. For more information about errors, see Error Codes.

" } }, "com.amazonaws.ec2#UnsuccessfulItemList": { @@ -67065,7 +65618,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the\n volume encryption key for the volume.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the\n volume encryption key for the volume.

", "smithy.api#xmlName": "kmsKeyId" } }, @@ -67891,7 +66444,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the VPC.

", + "smithy.api#documentation": "

The ID of the AWS account that owns the VPC.

", "smithy.api#xmlName": "ownerId" } }, @@ -68729,7 +67282,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the VPC.

", + "smithy.api#documentation": "

The AWS account ID of the VPC owner.

", "smithy.api#xmlName": "ownerId" } }, @@ -69358,41 +67911,6 @@ "target": "com.amazonaws.ec2#VpnTunnelOptionsSpecification" } }, - "com.amazonaws.ec2#WeekDay": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "sunday", - "name": "sunday" - }, - { - "value": "monday", - "name": "monday" - }, - { - "value": "tuesday", - "name": "tuesday" - }, - { - "value": "wednesday", - "name": "wednesday" - }, - { - "value": "thursday", - "name": "thursday" - }, - { - "value": "friday", - "name": "friday" - }, - { - "value": "saturday", - "name": "saturday" - } - ] - } - }, "com.amazonaws.ec2#WithdrawByoipCidr": { "type": "operation", "input": { diff --git a/codegen/sdk-codegen/aws-models/ecs.2014-11-13.json b/codegen/sdk-codegen/aws-models/ecs.2014-11-13.json index 7fd0b1b2a8d..2c4ae4d00d3 100644 --- a/codegen/sdk-codegen/aws-models/ecs.2014-11-13.json +++ b/codegen/sdk-codegen/aws-models/ecs.2014-11-13.json @@ -245,7 +245,7 @@ "name": "ecs" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Amazon Elastic Container Service\n\t\t

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes\n\t\t\tit easy to run, stop, and manage Docker containers on a cluster. You can host your\n\t\t\tcluster on a serverless infrastructure that is managed by Amazon ECS by launching your\n\t\t\tservices or tasks on Fargate. For more control, you can host your tasks on a cluster\n\t\t\tof Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage.

\n\t\t

Amazon ECS makes it easy to launch and stop container-based applications with simple API\n\t\t\tcalls, allows you to get the state of your cluster from a centralized service, and gives\n\t\t\tyou access to many familiar Amazon EC2 features.

\n\t\t

You can use Amazon ECS to schedule the placement of containers across your cluster based on\n\t\t\tyour resource needs, isolation policies, and availability requirements. Amazon ECS eliminates\n\t\t\tthe need for you to operate your own cluster management and configuration management\n\t\t\tsystems or worry about scaling your management infrastructure.

", + "smithy.api#documentation": "Amazon Elastic Container Service\n\t\t

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes\n\t\t\tit easy to run, stop, and manage Docker containers on a cluster. You can host your\n\t\t\tcluster on a serverless infrastructure that is managed by Amazon ECS by launching your\n\t\t\tservices or tasks on AWS Fargate. For more control, you can host your tasks on a cluster\n\t\t\tof Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage.

\n\t\t

Amazon ECS makes it easy to launch and stop container-based applications with simple API\n\t\t\tcalls, allows you to get the state of your cluster from a centralized service, and gives\n\t\t\tyou access to many familiar Amazon EC2 features.

\n\t\t

You can use Amazon ECS to schedule the placement of containers across your cluster based on\n\t\t\tyour resource needs, isolation policies, and availability requirements. Amazon ECS eliminates\n\t\t\tthe need for you to operate your own cluster management and configuration management\n\t\t\tsystems or worry about scaling your management infrastructure.

", "smithy.api#title": "Amazon EC2 Container Service", "smithy.api#xmlNamespace": { "uri": "http://ecs.amazonaws.com/doc/2014-11-13/" @@ -409,7 +409,7 @@ "managedTerminationProtection": { "target": "com.amazonaws.ecs#ManagedTerminationProtection", "traits": { - "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection.

\n\t\t \n\t\t\t

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection will not work.

\n\t\t
\n\t\t

When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in\n\t\t\tan Auto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions enabled as well. For more information, see Instance Protection in the Auto Scaling User Guide.

\n\t\t

When managed termination protection is disabled, your Amazon EC2 instances are not\n\t\t\tprotected from termination when the Auto Scaling group scales in.

" + "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection.

\n\t\t \n\t\t\t

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection will not work.

\n\t\t
\n\t\t

When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in\n\t\t\tan Auto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions enabled as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide.

\n\t\t

When managed termination protection is disabled, your Amazon EC2 instances are not\n\t\t\tprotected from termination when the Auto Scaling group scales in.

" } } }, @@ -429,7 +429,7 @@ "managedTerminationProtection": { "target": "com.amazonaws.ecs#ManagedTerminationProtection", "traits": { - "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection.

\n\t\t \n\t\t\t

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection will not work.

\n\t\t
\n\t\t

When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in\n\t\t\tan Auto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions enabled as well. For more information, see Instance Protection in the Auto Scaling User Guide.

\n\t\t

When managed termination protection is disabled, your Amazon EC2 instances are not\n\t\t\tprotected from termination when the Auto Scaling group scales in.

" + "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection.

\n\t\t \n\t\t\t

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection will not work.

\n\t\t
\n\t\t

When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in\n\t\t\tan Auto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions enabled as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide.

\n\t\t

When managed termination protection is disabled, your Amazon EC2 instances are not\n\t\t\tprotected from termination when the Auto Scaling group scales in.

" } } }, @@ -443,14 +443,14 @@ "subnets": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The IDs of the subnets associated with the task or service. There is a limit of 16\n\t\t\tsubnets that can be specified per AwsVpcConfiguration.

\n\t\t\n\t\t \n\t\t\t

All specified subnets must be from the same VPC.

\n\t\t
", + "smithy.api#documentation": "

The IDs of the subnets associated with the task or service. There is a limit of 16\n\t\t\tsubnets that can be specified per AwsVpcConfiguration.

\n\t\t \n\t\t \n\t\t\t

All specified subnets must be from the same VPC.

\n\t\t
", "smithy.api#required": {} } }, "securityGroups": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The IDs of the security groups associated with the task or service. If you do not\n\t\t\tspecify a security group, the default security group for the VPC is used. There is a\n\t\t\tlimit of 5 security groups that can be specified per\n\t\t\tAwsVpcConfiguration.

\n\t\t\n\t\t \n\t\t\t

All specified security groups must be from the same VPC.

\n\t\t
" + "smithy.api#documentation": "

The IDs of the security groups associated with the task or service. If you do not\n\t\t\tspecify a security group, the default security group for the VPC is used. There is a\n\t\t\tlimit of 5 security groups that can be specified per\n\t\t\tAwsVpcConfiguration.

\n\t\t \n\t\t \n\t\t\t

All specified security groups must be from the same VPC.

\n\t\t
" } }, "assignPublicIp": { @@ -472,7 +472,7 @@ } }, "traits": { - "smithy.api#documentation": "

Your Amazon Web Services account has been blocked. For more information, contact \n\t\t\t\tAmazon Web Services Support.

", + "smithy.api#documentation": "

Your AWS account has been blocked. For more information, contact AWS Support.

", "smithy.api#error": "client" } }, @@ -533,7 +533,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and\n\t\t\torganize it. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and\n\t\t\torganize it. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } }, @@ -603,7 +603,7 @@ } }, "traits": { - "smithy.api#documentation": "

The details of a capacity provider strategy. A capacity provider strategy can be set\n\t\t\twhen using the RunTask or CreateCluster APIs or as\n\t\t\tthe default capacity provider strategy for a cluster with the CreateCluster API.

\n\t\t

Only capacity providers that are already associated with a cluster and have an\n\t\t\t\tACTIVE or UPDATING status can be used in a capacity\n\t\t\tprovider strategy. The PutClusterCapacityProviders API is used to\n\t\t\tassociate a capacity provider with a cluster.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New Auto Scaling group capacity providers can be\n\t\t\tcreated with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be used in a\n\t\t\tcapacity provider strategy.

" + "smithy.api#documentation": "

The details of a capacity provider strategy. A capacity provider strategy can be set\n\t\t\twhen using the RunTask or CreateCluster APIs or as\n\t\t\tthe default capacity provider strategy for a cluster with the CreateCluster API.

\n\t\t

Only capacity providers that are already associated with a cluster and have an\n\t\t\t\tACTIVE or UPDATING status can be used in a capacity\n\t\t\tprovider strategy. The PutClusterCapacityProviders API is used to\n\t\t\tassociate a capacity provider with a cluster.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New Auto Scaling group capacity providers can be\n\t\t\tcreated with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be used in a\n\t\t\tcapacity provider strategy.

" } }, "com.amazonaws.ecs#CapacityProviderStrategyItemBase": { @@ -679,7 +679,7 @@ "clusterArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs namespace, followed by the Region of the cluster, the account ID of the cluster owner, the cluster namespace, and then the cluster name. For example, arn:aws:ecs:region:012345678910:cluster/test.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs namespace, followed by the Region of the cluster, the AWS account ID of the cluster owner, the cluster namespace, and then the cluster name. For example, arn:aws:ecs:region:012345678910:cluster/test.

" } }, "clusterName": { @@ -733,7 +733,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "settings": { @@ -1232,7 +1232,7 @@ "privileged": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the host\n\t\t\tcontainer instance (similar to the root user). This parameter maps to\n\t\t\t\tPrivileged in the Create a container section of the\n\t\t\tDocker Remote API and the --privileged option to docker run.

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the host\n\t\t\tcontainer instance (similar to the root user). This parameter maps to\n\t\t\t\tPrivileged in the Create a container section of the\n\t\t\tDocker Remote API and the --privileged option to docker run.

\n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" } }, "readonlyRootFilesystem": { @@ -1364,13 +1364,13 @@ "containerInstanceArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

" } }, "ec2InstanceId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ID of the container instance. For Amazon EC2 instances, this value is the Amazon EC2\n\t\t\tinstance ID. For external instances, this value is the Amazon Web Services Systems Manager managed instance ID.

" + "smithy.api#documentation": "

The ID of the container instance. For Amazon EC2 instances, this value is the Amazon EC2\n\t\t\tinstance ID. For external instances, this value is the AWS Systems Manager managed instance ID.

" } }, "capacityProviderName": { @@ -1460,7 +1460,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } }, @@ -1668,7 +1668,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new capacity provider. Capacity providers are associated with an Amazon ECS\n\t\t\tcluster and are used in capacity provider strategies to facilitate cluster auto\n\t\t\tscaling.

\n\t\t

Only capacity providers using an Auto Scaling group can be created. Amazon ECS tasks on\n\t\t\tFargate use the FARGATE and FARGATE_SPOT capacity providers\n\t\t\twhich are already created and available to all accounts in Regions supported by\n\t\t\tFargate.

" + "smithy.api#documentation": "

Creates a new capacity provider. Capacity providers are associated with an Amazon ECS\n\t\t\tcluster and are used in capacity provider strategies to facilitate cluster auto\n\t\t\tscaling.

\n\t\t

Only capacity providers using an Auto Scaling group can be created. Amazon ECS tasks on\n\t\t\tAWS Fargate use the FARGATE and FARGATE_SPOT capacity providers\n\t\t\twhich are already created and available to all accounts in Regions supported by\n\t\t\tAWS Fargate.

" } }, "com.amazonaws.ecs#CreateCapacityProviderRequest": { @@ -1691,7 +1691,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } } @@ -1727,7 +1727,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new Amazon ECS cluster. By default, your account receives a default\n\t\t\tcluster when you launch your first container instance. However, you can create your own\n\t\t\tcluster with a unique name with the CreateCluster action.

\n\t\t \n\t\t\t

When you call the CreateCluster API operation, Amazon ECS attempts to\n\t\t\t\tcreate the Amazon ECS service-linked role for your account so that required resources in\n\t\t\t\tother Amazon Web Services services can be managed on your behalf. However, if the IAM user that\n\t\t\t\tmakes the call does not have permissions to create the service-linked role, it is\n\t\t\t\tnot created. For more information, see Using\n\t\t\t\t\tService-Linked Roles for Amazon ECS in the\n\t\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t
" + "smithy.api#documentation": "

Creates a new Amazon ECS cluster. By default, your account receives a default\n\t\t\tcluster when you launch your first container instance. However, you can create your own\n\t\t\tcluster with a unique name with the CreateCluster action.

\n\t\t \n\t\t\t

When you call the CreateCluster API operation, Amazon ECS attempts to\n\t\t\t\tcreate the Amazon ECS service-linked role for your account so that required resources in\n\t\t\t\tother AWS services can be managed on your behalf. However, if the IAM user that\n\t\t\t\tmakes the call does not have permissions to create the service-linked role, it is\n\t\t\t\tnot created. For more information, see Using\n\t\t\t\t\tService-Linked Roles for Amazon ECS in the\n\t\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t
" } }, "com.amazonaws.ecs#CreateClusterRequest": { @@ -1742,7 +1742,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "settings": { @@ -1760,7 +1760,7 @@ "capacityProviders": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The short name of one or more capacity providers to associate with the cluster. A\n\t\t\tcapacity provider must be associated with a cluster before it can be included as part of\n\t\t\tthe default capacity provider strategy of the cluster or used in a capacity provider\n\t\t\tstrategy when calling the CreateService or RunTask\n\t\t\tactions.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created and not already associated with another cluster. New\n\t\t\tAuto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

" + "smithy.api#documentation": "

The short name of one or more capacity providers to associate with the cluster. A\n\t\t\tcapacity provider must be associated with a cluster before it can be included as part of\n\t\t\tthe default capacity provider strategy of the cluster or used in a capacity provider\n\t\t\tstrategy when calling the CreateService or RunTask\n\t\t\tactions.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created and not already associated with another cluster. New\n\t\t\tAuto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

" } }, "defaultCapacityProviderStrategy": { @@ -1845,7 +1845,7 @@ "loadBalancers": { "target": "com.amazonaws.ecs#LoadBalancers", "traits": { - "smithy.api#documentation": "

A load balancer object representing the load balancers to use with your service. For\n\t\t\tmore information, see Service Load Balancing in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

If the service is using the rolling update (ECS) deployment controller\n\t\t\tand using either an Application Load Balancer or Network Load Balancer, you must specify one or more target group ARNs to\n\t\t\tattach to the service. The service-linked role is required for services that make use of\n\t\t\tmultiple target groups. For more information, see Using service-linked roles for Amazon ECS in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

If the service is using the CODE_DEPLOY deployment controller, the\n\t\t\tservice is required to use either an Application Load Balancer or Network Load Balancer. When creating an CodeDeploy deployment\n\t\t\tgroup, you specify two target groups (referred to as a targetGroupPair).\n\t\t\tDuring a deployment, CodeDeploy determines which task set in your service has the status\n\t\t\t\tPRIMARY and associates one target group with it, and then associates\n\t\t\tthe other target group with the replacement task set. The load balancer can also have up\n\t\t\tto two listeners: a required listener for production traffic and an optional listener\n\t\t\tthat allows you perform validation tests with Lambda functions before routing production\n\t\t\ttraffic to it.

\n\t\t

After you create a service using the ECS deployment controller, the load\n\t\t\tbalancer name or target group ARN, container name, and container port specified in the\n\t\t\tservice definition are immutable. If you are using the CODE_DEPLOY\n\t\t\tdeployment controller, these values can be changed when updating the service.

\n\t\t

For Application Load Balancers and Network Load Balancers, this object must contain the load balancer target group ARN,\n\t\t\tthe container name (as it appears in a container definition), and the container port to\n\t\t\taccess from the load balancer. The load balancer name parameter must be omitted. When a\n\t\t\ttask from this service is placed on a container instance, the container instance and\n\t\t\tport combination is registered as a target in the target group specified here.

\n\t\t

For Classic Load Balancers, this object must contain the load balancer name, the container name (as it\n\t\t\tappears in a container definition), and the container port to access from the load\n\t\t\tbalancer. The target group ARN parameter must be omitted. When a task from this service\n\t\t\tis placed on a container instance, the container instance is registered with the load\n\t\t\tbalancer specified here.

\n\t\t

Services with tasks that use the awsvpc network mode (for example, those\n\t\t\twith the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are\n\t\t\tnot supported. Also, when you create any target groups for these services, you must\n\t\t\tchoose ip as the target type, not instance, because tasks that\n\t\t\tuse the awsvpc network mode are associated with an elastic network\n\t\t\tinterface, not an Amazon EC2 instance.

" + "smithy.api#documentation": "

A load balancer object representing the load balancers to use with your service. For\n\t\t\tmore information, see Service Load Balancing in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

If the service is using the rolling update (ECS) deployment controller\n\t\t\tand using either an Application Load Balancer or Network Load Balancer, you must specify one or more target group ARNs to\n\t\t\tattach to the service. The service-linked role is required for services that make use of\n\t\t\tmultiple target groups. For more information, see Using service-linked roles for Amazon ECS in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

If the service is using the CODE_DEPLOY deployment controller, the\n\t\t\tservice is required to use either an Application Load Balancer or Network Load Balancer. When creating an AWS CodeDeploy deployment\n\t\t\tgroup, you specify two target groups (referred to as a targetGroupPair).\n\t\t\tDuring a deployment, AWS CodeDeploy determines which task set in your service has the status\n\t\t\t\tPRIMARY and associates one target group with it, and then associates\n\t\t\tthe other target group with the replacement task set. The load balancer can also have up\n\t\t\tto two listeners: a required listener for production traffic and an optional listener\n\t\t\tthat allows you perform validation tests with Lambda functions before routing production\n\t\t\ttraffic to it.

\n\t\t

After you create a service using the ECS deployment controller, the load\n\t\t\tbalancer name or target group ARN, container name, and container port specified in the\n\t\t\tservice definition are immutable. If you are using the CODE_DEPLOY\n\t\t\tdeployment controller, these values can be changed when updating the service.

\n\t\t

For Application Load Balancers and Network Load Balancers, this object must contain the load balancer target group ARN,\n\t\t\tthe container name (as it appears in a container definition), and the container port to\n\t\t\taccess from the load balancer. The load balancer name parameter must be omitted. When a\n\t\t\ttask from this service is placed on a container instance, the container instance and\n\t\t\tport combination is registered as a target in the target group specified here.

\n\t\t

For Classic Load Balancers, this object must contain the load balancer name, the container name (as it\n\t\t\tappears in a container definition), and the container port to access from the load\n\t\t\tbalancer. The target group ARN parameter must be omitted. When a task from this service\n\t\t\tis placed on a container instance, the container instance is registered with the load\n\t\t\tbalancer specified here.

\n\t\t

Services with tasks that use the awsvpc network mode (for example, those\n\t\t\twith the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are\n\t\t\tnot supported. Also, when you create any target groups for these services, you must\n\t\t\tchoose ip as the target type, not instance, because tasks that\n\t\t\tuse the awsvpc network mode are associated with an elastic network\n\t\t\tinterface, not an Amazon EC2 instance.

" } }, "serviceRegistries": { @@ -1869,7 +1869,7 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The infrastructure on which to run your service. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

\n\t\t

The FARGATE launch type runs your tasks on Fargate On-Demand\n\t\t\tinfrastructure.

\n\t\t \n\t\t\t

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see Fargate capacity providers in the\n\t\t\t\t\tAmazon ECS User Guide for Fargate.

\n\t\t
\n\t\t

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n\t\t

The EXTERNAL launch type runs your tasks on your on-premise server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n\t\t

A service can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

" + "smithy.api#documentation": "

The infrastructure on which to run your service. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

\n\t\t

The FARGATE launch type runs your tasks on AWS Fargate On-Demand\n\t\t\tinfrastructure.

\n\t\t \n\t\t\t

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see AWS Fargate capacity providers in the\n\t\t\t\t\tAmazon ECS User Guide for AWS Fargate.

\n\t\t
\n\t\t

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n\t\t

The EXTERNAL launch type runs your tasks on your on-premise server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n\t\t

A service can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

" } }, "capacityProviderStrategy": { @@ -1881,7 +1881,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version that your tasks in the service are running on. A platform version\n\t\t\tis specified only for tasks using the Fargate launch type. If one isn't\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see Fargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version that your tasks in the service are running on. A platform version\n\t\t\tis specified only for tasks using the Fargate launch type. If one isn't\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see AWS Fargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" } }, "role": { @@ -1935,7 +1935,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define. When a\n\t\t\tservice is deleted, the tags are deleted as well.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define. When a\n\t\t\tservice is deleted, the tags are deleted as well.

\n

The following basic restrictions apply to tags:

\n " } }, "enableECSManagedTags": { @@ -1964,7 +1964,7 @@ "service": { "target": "com.amazonaws.ecs#Service", "traits": { - "smithy.api#documentation": "

The full description of your service following the create call.

\n\t\t

A service will return either a capacityProviderStrategy or\n\t\t\t\tlaunchType parameter, but not both, depending on which one was\n\t\t\tspecified during creation.

\n\t\t

If a service is using the ECS deployment controller, the\n\t\t\t\tdeploymentController and taskSets parameters will not be\n\t\t\treturned.

\n\t\t

If the service is using the CODE_DEPLOY deployment controller, the\n\t\t\t\tdeploymentController, taskSets and\n\t\t\t\tdeployments parameters will be returned, however the\n\t\t\t\tdeployments parameter will be an empty list.

" + "smithy.api#documentation": "

The full description of your service following the create call.

\n\t\t

If a service is using the ECS deployment controller, the\n\t\t\t\tdeploymentController and taskSets parameters will not be\n\t\t\treturned.

\n\t\t

If the service is using the CODE_DEPLOY deployment controller, the\n\t\t\t\tdeploymentController, taskSets and\n\t\t\t\tdeployments parameters will be returned, however the\n\t\t\t\tdeployments parameter will be an empty list.

" } } } @@ -2033,7 +2033,7 @@ "externalId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

An optional non-unique tag that identifies this task set in external systems. If the\n\t\t\ttask set is associated with a service discovery registry, the tasks in this task set\n\t\t\twill have the ECS_TASK_SET_EXTERNAL_ID Cloud Map attribute set to the provided\n\t\t\tvalue.

" + "smithy.api#documentation": "

An optional non-unique tag that identifies this task set in external systems. If the\n\t\t\ttask set is associated with a service discovery registry, the tasks in this task set\n\t\t\twill have the ECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute set to the provided\n\t\t\tvalue.

" } }, "taskDefinition": { @@ -2070,7 +2070,7 @@ "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use for the task set.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

" + "smithy.api#documentation": "

The capacity provider strategy to use for the task set.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

" } }, "platformVersion": { @@ -2094,7 +2094,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define. When a\n\t\t\tservice is deleted, the tags are deleted as well.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define. When a\n\t\t\tservice is deleted, the tags are deleted as well.

\n

The following basic restrictions apply to tags:

\n " } } } @@ -2105,7 +2105,7 @@ "taskSet": { "target": "com.amazonaws.ecs#TaskSet", "traits": { - "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an\n\t\t\t\tEXTERNAL deployment. A task set includes details such as the desired\n\t\t\tnumber of tasks, how many tasks are running, and whether the task set serves production\n\t\t\ttraffic.

" + "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an\n\t\t\t\tEXTERNAL deployment. A task set includes details such as the desired\n\t\t\tnumber of tasks, how many tasks are running, and whether the task set serves production\n\t\t\ttraffic.

" } } } @@ -2541,7 +2541,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version on which your tasks in the service are running. A platform\n\t\t\tversion is only specified for tasks using the Fargate launch type. If one\n\t\t\tis not specified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version on which your tasks in the service are running. A platform\n\t\t\tversion is only specified for tasks using the Fargate launch type. If one\n\t\t\tis not specified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see AWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "networkConfiguration": { @@ -2621,7 +2621,7 @@ "type": { "target": "com.amazonaws.ecs#DeploymentControllerType", "traits": { - "smithy.api#documentation": "

The deployment controller type to use.

\n\t\t

There are three deployment controller types available:

\n\t\t
\n
ECS
\n
\n\t\t\t\t\t

The rolling update (ECS) deployment type involves replacing\n\t\t\t\t\t\tthe current running version of the container with the latest version. The\n\t\t\t\t\t\tnumber of containers Amazon ECS adds or removes from the service during a rolling\n\t\t\t\t\t\tupdate is controlled by adjusting the minimum and maximum number of healthy\n\t\t\t\t\t\ttasks allowed during a service deployment, as specified in the DeploymentConfiguration.

\n\t\t\t\t
\n
CODE_DEPLOY
\n
\n\t\t\t\t\t

The blue/green (CODE_DEPLOY) deployment type uses the\n\t\t\t\t\t\tblue/green deployment model powered by CodeDeploy, which allows you to verify a\n\t\t\t\t\t\tnew deployment of a service before sending production traffic to it.

\n\t\t\t\t
\n
EXTERNAL
\n
\n\t\t\t\t\t

The external (EXTERNAL) deployment type enables you to use\n\t\t\t\t\t\tany third-party deployment controller for full control over the deployment\n\t\t\t\t\t\tprocess for an Amazon ECS service.

\n\t\t\t\t
\n
", + "smithy.api#documentation": "

The deployment controller type to use.

\n\t\t

There are three deployment controller types available:

\n\t\t
\n
ECS
\n
\n\t\t\t\t\t

The rolling update (ECS) deployment type involves replacing\n\t\t\t\t\t\tthe current running version of the container with the latest version. The\n\t\t\t\t\t\tnumber of containers Amazon ECS adds or removes from the service during a rolling\n\t\t\t\t\t\tupdate is controlled by adjusting the minimum and maximum number of healthy\n\t\t\t\t\t\ttasks allowed during a service deployment, as specified in the DeploymentConfiguration.

\n\t\t\t\t
\n
CODE_DEPLOY
\n
\n\t\t\t\t\t

The blue/green (CODE_DEPLOY) deployment type uses the\n\t\t\t\t\t\tblue/green deployment model powered by AWS CodeDeploy, which allows you to verify a\n\t\t\t\t\t\tnew deployment of a service before sending production traffic to it.

\n\t\t\t\t
\n
EXTERNAL
\n
\n\t\t\t\t\t

The external (EXTERNAL) deployment type enables you to use\n\t\t\t\t\t\tany third-party deployment controller for full control over the deployment\n\t\t\t\t\t\tprocess for an Amazon ECS service.

\n\t\t\t\t
\n
", "smithy.api#required": {} } } @@ -2712,7 +2712,7 @@ "containerInstance": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The container instance ID or full ARN of the container instance to deregister.\n\t\t\tThe ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

", + "smithy.api#documentation": "

The container instance ID or full ARN of the container instance to deregister.\n\t\t\tThe ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

", "smithy.api#required": {} } }, @@ -3127,7 +3127,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that is applied to the task definition to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that is applied to the task definition to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } } @@ -3440,7 +3440,7 @@ "containerInstance": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The container instance ID or full ARN of the container instance.\n\t\t\tThe ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

" + "smithy.api#documentation": "

The container instance ID or full ARN of the container instance.\n\t\t\tThe ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

" } }, "cluster": { @@ -3664,7 +3664,7 @@ } }, "traits": { - "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on Fargate. For more information, see Fargate task\n\t\t\t\tstorage in the Amazon ECS User Guide for Fargate.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" + "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on AWS Fargate. For more information, see Fargate task\n\t\t\t\tstorage in the Amazon ECS User Guide for AWS Fargate.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on AWS Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" } }, "com.amazonaws.ecs#ExecuteCommand": { @@ -3705,7 +3705,7 @@ "kmsKeyId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

Specify an Key Management Service key ID to encrypt the data between the local client\n\t\t\tand the container.

" + "smithy.api#documentation": "

Specify an AWS Key Management Service key ID to encrypt the data between the local\n\t\t\tclient and the container.

" } }, "logging": { @@ -3867,14 +3867,14 @@ "credentialsParameter": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The authorization credential option to use. The authorization credential options can\n\t\t\tbe provided using either the Amazon Resource Name (ARN) of an Secrets Manager secret or SSM\n\t\t\tParameter Store parameter. The ARNs refer to the stored credentials.

", + "smithy.api#documentation": "

The authorization credential option to use. The authorization credential options can\n\t\t\tbe provided using either the Amazon Resource Name (ARN) of an AWS Secrets Manager secret or AWS Systems Manager\n\t\t\tParameter Store parameter. The ARNs refer to the stored credentials.

", "smithy.api#required": {} } }, "domain": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

A fully qualified domain name hosted by an Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on\n\t\t\tAmazon EC2.

", + "smithy.api#documentation": "

A fully qualified domain name hosted by an AWS Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on\n\t\t\tAmazon EC2.

", "smithy.api#required": {} } } @@ -3957,7 +3957,7 @@ "options": { "target": "com.amazonaws.ecs#FirelensConfigurationOptionsMap", "traits": { - "smithy.api#documentation": "

The options to use when configuring the log router. This field is optional and can be\n\t\t\tused to specify a custom configuration file or to add additional metadata, such as the\n\t\t\ttask, task definition, cluster, and container instance details to the log event. If\n\t\t\tspecified, the syntax to use is\n\t\t\t\t\"options\":{\"enable-ecs-log-metadata\":\"true|false\",\"config-file-type:\"s3|file\",\"config-file-value\":\"arn:aws:s3:::mybucket/fluent.conf|filepath\"}.\n\t\t\tFor more information, see Creating\n\t\t\t\ta Task Definition that Uses a FireLens Configuration in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

Tasks hosted on Fargate only support the file configuration file\n\t\t\t\ttype.

\n\t\t
" + "smithy.api#documentation": "

The options to use when configuring the log router. This field is optional and can be\n\t\t\tused to specify a custom configuration file or to add additional metadata, such as the\n\t\t\ttask, task definition, cluster, and container instance details to the log event. If\n\t\t\tspecified, the syntax to use is\n\t\t\t\t\"options\":{\"enable-ecs-log-metadata\":\"true|false\",\"config-file-type:\"s3|file\",\"config-file-value\":\"arn:aws:s3:::mybucket/fluent.conf|filepath\"}.\n\t\t\tFor more information, see Creating\n\t\t\t\ta Task Definition that Uses a FireLens Configuration in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

Tasks hosted on AWS Fargate only support the file configuration file\n\t\t\t\ttype.

\n\t\t
" } } }, @@ -4031,7 +4031,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing a container health check. Health check parameters that are\n\t\t\tspecified in a container definition override any Docker health checks that exist in the\n\t\t\tcontainer image (such as those specified in a parent image or from the image's\n\t\t\tDockerfile).

\n\t\t

You can view the health status of both individual containers and a task with the\n\t\t\tDescribeTasks API operation or when viewing the task details in the console.

\n\t\t

The following describes the possible healthStatus values for a\n\t\t\tcontainer:

\n\t\t \n\t\t

The following describes the possible healthStatus values for a task. The\n\t\t\tcontainer health check status of nonessential containers do not have an effect on the\n\t\t\thealth status of a task.

\n\t\t \n\t\t

If a task is run manually, and not as part of a service, the task will continue its\n\t\t\tlifecycle regardless of its health status. For tasks that are part of a service, if the\n\t\t\ttask reports as unhealthy then the task will be stopped and the service scheduler will\n\t\t\treplace it.

\n\t\t

The following are notes about container health check support:

\n\t\t " + "smithy.api#documentation": "

An object representing a container health check. Health check parameters that are\n\t\t\tspecified in a container definition override any Docker health checks that exist in the\n\t\t\tcontainer image (such as those specified in a parent image or from the image's\n\t\t\tDockerfile).

\n\t\t

You can view the health status of both individual containers and a task with the\n\t\t\tDescribeTasks API operation or when viewing the task details in the console.

\n\t\t

The following describes the possible healthStatus values for a\n\t\t\tcontainer:

\n\t\t \n\t\t

The following describes the possible healthStatus values for a task. The\n\t\t\tcontainer health check status of nonessential containers do not have an effect on the\n\t\t\thealth status of a task.

\n\t\t \n\t\t

If a task is run manually, and not as part of a service, the task will continue its\n\t\t\tlifecycle regardless of its health status. For tasks that are part of a service, if the\n\t\t\ttask reports as unhealthy then the task will be stopped and the service scheduler will\n\t\t\treplace it.

\n\t\t

The following are notes about container health check support:

\n\t\t " } }, "com.amazonaws.ecs#HealthStatus": { @@ -4189,7 +4189,7 @@ "add": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The Linux capabilities for the container that have been added to the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapAdd in the\n\t\t\tCreate a container section of the Docker Remote API and the\n\t\t\t\t--cap-add option to docker\n\t\t\t\trun.

\n\t\t \n\t\t\t

Tasks launched on Fargate only support adding the SYS_PTRACE kernel\n\t\t\t\tcapability.

\n\t\t
\n\t\t

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" + "smithy.api#documentation": "

The Linux capabilities for the container that have been added to the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapAdd in the\n\t\t\tCreate a container section of the Docker Remote API and the\n\t\t\t\t--cap-add option to docker\n\t\t\t\trun.

\n\t\t \n\t\t\t

Tasks launched on AWS Fargate only support adding the SYS_PTRACE kernel\n\t\t\t\tcapability.

\n\t\t
\n\t\t

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" } }, "drop": { @@ -5067,7 +5067,7 @@ "logDriver": { "target": "com.amazonaws.ecs#LogDriver", "traits": { - "smithy.api#documentation": "

The log driver to use for the container.

\n\t\t

For tasks on Fargate, the supported log drivers are awslogs,\n\t\t\t\tsplunk, and awsfirelens.

\n\t\t

For tasks hosted on Amazon EC2 instances, the supported log drivers are\n\t\t\t\tawslogs, fluentd, gelf,\n\t\t\t\tjson-file, journald,\n\t\t\t\tlogentries,syslog, splunk, and\n\t\t\t\tawsfirelens.

\n\t\t

For more information about using the awslogs log driver, see Using\n\t\t\t\tthe awslogs log driver in the Amazon Elastic Container Service Developer Guide.

\n\t\t

For more information about using the awsfirelens log driver, see Custom log routing in the Amazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

If you have a custom driver that is not listed, you can fork the Amazon ECS container\n\t\t\t\tagent project that is available\n\t\t\t\t\ton GitHub and customize it to work with that driver. We encourage you to\n\t\t\t\tsubmit pull requests for changes that you would like to have included. However, we\n\t\t\t\tdo not currently provide support for running modified copies of this\n\t\t\t\tsoftware.

\n\t\t
", + "smithy.api#documentation": "

The log driver to use for the container.

\n\t\t

For tasks on AWS Fargate, the supported log drivers are awslogs,\n\t\t\t\tsplunk, and awsfirelens.

\n\t\t

For tasks hosted on Amazon EC2 instances, the supported log drivers are\n\t\t\t\tawslogs, fluentd, gelf,\n\t\t\t\tjson-file, journald,\n\t\t\t\tlogentries,syslog, splunk, and\n\t\t\t\tawsfirelens.

\n\t\t

For more information about using the awslogs log driver, see Using\n\t\t\t\tthe awslogs log driver in the Amazon Elastic Container Service Developer Guide.

\n\t\t

For more information about using the awsfirelens log driver, see Custom log routing in the Amazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

If you have a custom driver that is not listed, you can fork the Amazon ECS container\n\t\t\t\tagent project that is available\n\t\t\t\t\ton GitHub and customize it to work with that driver. We encourage you to\n\t\t\t\tsubmit pull requests for changes that you would like to have included. However, we\n\t\t\t\tdo not currently provide support for running modified copies of this\n\t\t\t\tsoftware.

\n\t\t
", "smithy.api#required": {} } }, @@ -5085,7 +5085,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log configuration for the container. This parameter maps to LogConfig\n\t\t\tin the Create a container section of the Docker Remote API and the\n\t\t\t\t--log-driver option to \n docker\n\t\t\t\t\trun\n .

\n\t\t

By default, containers use the same logging driver that the Docker daemon uses;\n\t\t\thowever the container may use a different logging driver than the Docker daemon by\n\t\t\tspecifying a log driver configuration in the container definition. For more information\n\t\t\ton the options for different supported log drivers, see Configure logging\n\t\t\t\tdrivers in the Docker documentation.

\n\t\t

The following should be noted when specifying a log configuration for your\n\t\t\tcontainers:

\n\t\t " + "smithy.api#documentation": "

The log configuration for the container. This parameter maps to LogConfig\n\t\t\tin the Create a container section of the Docker Remote API and the\n\t\t\t\t--log-driver option to \n docker\n\t\t\t\t\trun\n .

\n\t\t

By default, containers use the same logging driver that the Docker daemon uses;\n\t\t\thowever the container may use a different logging driver than the Docker daemon by\n\t\t\tspecifying a log driver configuration in the container definition. For more information\n\t\t\ton the options for different supported log drivers, see Configure logging\n\t\t\t\tdrivers in the Docker documentation.

\n\t\t

The following should be noted when specifying a log configuration for your\n\t\t\tcontainers:

\n\t\t " } }, "com.amazonaws.ecs#LogConfigurationOptionsMap": { @@ -5957,14 +5957,14 @@ "capacityProviders": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The name of one or more capacity providers to associate with the cluster.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", + "smithy.api#documentation": "

The name of one or more capacity providers to associate with the cluster.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", "smithy.api#required": {} } }, "defaultCapacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use by default for the cluster.

\n\t\t

When creating a service or running a task on a cluster, if no capacity provider or\n\t\t\tlaunch type is specified then the default capacity provider strategy for the cluster is\n\t\t\tused.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", + "smithy.api#documentation": "

The capacity provider strategy to use by default for the cluster.

\n\t\t

When creating a service or running a task on a cluster, if no capacity provider or\n\t\t\tlaunch type is specified then the default capacity provider strategy for the cluster is\n\t\t\tused.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", "smithy.api#required": {} } } @@ -6058,7 +6058,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } } @@ -6094,7 +6094,7 @@ } ], "traits": { - "smithy.api#documentation": "

Registers a new task definition from the supplied family and\n\t\t\t\tcontainerDefinitions. Optionally, you can add data volumes to your\n\t\t\tcontainers with the volumes parameter. For more information about task\n\t\t\tdefinition parameters and defaults, see Amazon ECS Task\n\t\t\t\tDefinitions in the Amazon Elastic Container Service Developer Guide.

\n\t\t

You can specify an IAM role for your task with the taskRoleArn parameter.\n\t\t\tWhen you specify an IAM role for a task, its containers can then use the latest versions\n\t\t\tof the CLI or SDKs to make API requests to the Amazon Web Services services that are specified in\n\t\t\tthe IAM policy associated with the role. For more information, see IAM\n\t\t\t\tRoles for Tasks in the Amazon Elastic Container Service Developer Guide.

\n\t\t

You can specify a Docker networking mode for the containers in your task definition\n\t\t\twith the networkMode parameter. The available network modes correspond to\n\t\t\tthose described in Network\n\t\t\t\tsettings in the Docker run reference. If you specify the awsvpc\n\t\t\tnetwork mode, the task is allocated an elastic network interface, and you must specify a\n\t\t\t\tNetworkConfiguration when you create a service or run a task with\n\t\t\tthe task definition. For more information, see Task Networking\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Registers a new task definition from the supplied family and\n\t\t\t\tcontainerDefinitions. Optionally, you can add data volumes to your\n\t\t\tcontainers with the volumes parameter. For more information about task\n\t\t\tdefinition parameters and defaults, see Amazon ECS Task\n\t\t\t\tDefinitions in the Amazon Elastic Container Service Developer Guide.

\n\t\t

You can specify an IAM role for your task with the taskRoleArn parameter.\n\t\t\tWhen you specify an IAM role for a task, its containers can then use the latest versions\n\t\t\tof the AWS CLI or SDKs to make API requests to the AWS services that are specified in\n\t\t\tthe IAM policy associated with the role. For more information, see IAM\n\t\t\t\tRoles for Tasks in the Amazon Elastic Container Service Developer Guide.

\n\t\t

You can specify a Docker networking mode for the containers in your task definition\n\t\t\twith the networkMode parameter. The available network modes correspond to\n\t\t\tthose described in Network\n\t\t\t\tsettings in the Docker run reference. If you specify the awsvpc\n\t\t\tnetwork mode, the task is allocated an elastic network interface, and you must specify a\n\t\t\t\tNetworkConfiguration when you create a service or run a task with\n\t\t\tthe task definition. For more information, see Task Networking\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#RegisterTaskDefinitionRequest": { @@ -6116,13 +6116,13 @@ "executionRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent\n permission to make Amazon Web Services API calls on your behalf. The task execution IAM role is required\n depending on the requirements of your task. For more information, see Amazon ECS task\n execution IAM role in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent\n permission to make AWS API calls on your behalf. The task execution IAM role is required\n depending on the requirements of your task. For more information, see Amazon ECS task\n execution IAM role in the Amazon Elastic Container Service Developer Guide.

" } }, "networkMode": { "target": "com.amazonaws.ecs#NetworkMode", "traits": { - "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

For more information, see Network\n settings in the Docker run reference.

" + "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 instances, any network mode can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n \n

Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants with the\n ecs-init package, or AWS Fargate infrastructure support the\n awsvpc network mode.

\n
\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

Docker for Windows uses different network modes than Docker for Linux. When you\n register a task definition with Windows containers, you must not specify a network mode.\n If you use the console to register a task definition with Windows containers, you must\n choose the network mode object.

\n

For more information, see Network\n settings in the Docker run reference.

" } }, "containerDefinitions": { @@ -6165,19 +6165,19 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task definition to help you categorize and organize\n\t\t\tthem. Each tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task definition to help you categorize and organize\n\t\t\tthem. Each tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "pidMode": { "target": "com.amazonaws.ecs#PidMode", "traits": { - "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. If host\n is specified, then all containers within the tasks that specified the\n host PID mode on the same container instance share the\n same process namespace with the host Amazon EC2 instance. If task is\n specified, all containers within the specified task share the same\n process namespace. If no value is specified, the default is a private\n namespace. For more information, see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, be aware that there is a\n heightened risk of undesired process namespace expose. For more\n information, see Docker\n security.

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. If host\n is specified, then all containers within the tasks that specified the\n host PID mode on the same container instance share the\n same process namespace with the host Amazon EC2 instance. If task is\n specified, all containers within the specified task share the same\n process namespace. If no value is specified, the default is a private\n namespace. For more information, see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, be aware that there is a\n heightened risk of undesired process namespace expose. For more\n information, see Docker\n security.

\n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" } }, "ipcMode": { "target": "com.amazonaws.ecs#IpcMode", "traits": { - "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" } }, "proxyConfiguration": { @@ -6195,7 +6195,7 @@ "ephemeralStorage": { "target": "com.amazonaws.ecs#EphemeralStorage", "traits": { - "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on Fargate. For more information, see Fargate task\n\t\t\t\tstorage in the Amazon ECS User Guide for Fargate.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" + "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on AWS Fargate. For more information, see Fargate task\n\t\t\t\tstorage in the Amazon ECS User Guide for AWS Fargate.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on AWS Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" } } } @@ -6223,7 +6223,7 @@ "credentialsParameter": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret containing the private repository\n\t\t\tcredentials.

\n\t\t \n\t\t\t

When you are using the Amazon ECS API, CLI, or Amazon Web Services SDK, if the secret exists in the\n\t\t\t\tsame Region as the task that you are launching then you can use either the full ARN\n\t\t\t\tor the name of the secret. When you are using the Amazon Web Services Management Console, you must specify the\n\t\t\t\tfull ARN of the secret.

\n\t\t
", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret containing the private repository\n\t\t\tcredentials.

\n\t\t \n\t\t\t

When you are using the Amazon ECS API, AWS CLI, or AWS SDK, if the secret exists in the\n\t\t\t\tsame Region as the task that you are launching then you can use either the full ARN\n\t\t\t\tor the name of the secret. When you are using the AWS Management Console, you must specify the\n\t\t\t\tfull ARN of the secret.

\n\t\t
", "smithy.api#required": {} } } @@ -6402,7 +6402,7 @@ "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use for the task.

\n\t\t

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n\t\t

When you use cluster auto scaling, you must specify capacityProviderStrategy and not launchType.

" + "smithy.api#documentation": "

The capacity provider strategy to use for the task.

\n\t\t

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

" } }, "cluster": { @@ -6438,7 +6438,7 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The infrastructure on which to run your standalone task. For more information, see\n\t\t\t\tAmazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

\n\t\t

The FARGATE launch type runs your tasks on Fargate On-Demand\n\t\t\tinfrastructure.

\n\t\t \n\t\t\t

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see Fargate capacity providers in the\n\t\t\t\t\tAmazon ECS User Guide for Fargate.

\n\t\t
\n\t\t

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n\t\t

The EXTERNAL launch type runs your tasks on your on-premise server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n\t\t

A task can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

\n\t\t

When you use cluster auto scaling, you must specify capacityProviderStrategy and not launchType.

" + "smithy.api#documentation": "

The infrastructure on which to run your standalone task. For more information, see\n\t\t\t\tAmazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

\n\t\t

The FARGATE launch type runs your tasks on AWS Fargate On-Demand\n\t\t\tinfrastructure.

\n\t\t \n\t\t\t

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see AWS Fargate capacity providers in the\n\t\t\t\t\tAmazon ECS User Guide for AWS Fargate.

\n\t\t
\n\t\t

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n\t\t

The EXTERNAL launch type runs your tasks on your on-premise server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n\t\t

A task can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

" } }, "networkConfiguration": { @@ -6468,7 +6468,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version the task should run. A platform version is only specified for\n\t\t\ttasks using the Fargate launch type. If one is not specified, the\n\t\t\t\tLATEST platform version is used by default. For more information, see\n\t\t\t\tFargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version the task should run. A platform version is only specified for\n\t\t\ttasks using the Fargate launch type. If one is not specified, the\n\t\t\t\tLATEST platform version is used by default. For more information, see\n\t\t\t\tAWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "propagateTags": { @@ -6492,7 +6492,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "taskDefinition": { @@ -6595,7 +6595,7 @@ "valueFrom": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN of\n\t\t\tthe Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.

\n\t\t \n\t\t\t

If the SSM Parameter Store parameter exists in the same Region as the task you\n\t\t\t\tare launching, then you can use either the full ARN or name of the parameter. If the\n\t\t\t\tparameter exists in a different Region, then the full ARN must be specified.

\n\t\t
", + "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN of\n\t\t\tthe AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.

\n\t\t \n\t\t\t

If the AWS Systems Manager Parameter Store parameter exists in the same Region as the task you\n\t\t\t\tare launching, then you can use either the full ARN or name of the parameter. If the\n\t\t\t\tparameter exists in a different Region, then the full ARN must be specified.

\n\t\t
", "smithy.api#required": {} } } @@ -6634,7 +6634,7 @@ "serviceArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ARN that identifies the service. The ARN contains the arn:aws:ecs namespace, followed by the Region of the service, the account ID of the service owner, the service namespace, and then the service name. For example, arn:aws:ecs:region:012345678910:service/my-service.

" + "smithy.api#documentation": "

The ARN that identifies the service. The ARN contains the arn:aws:ecs namespace, followed by the Region of the service, the AWS account ID of the service owner, the service namespace, and then the service name. For example, arn:aws:ecs:region:012345678910:service/my-service.

" } }, "serviceName": { @@ -6688,19 +6688,19 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The launch type the service is using. When using the DescribeServices API, this field\n\t\t\tis omitted if the service was created using a capacity provider strategy.

" + "smithy.api#documentation": "

The infrastructure on which your service is running. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

" } }, "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy the service is using. When using the DescribeServices\n\t\t\tAPI, this field is omitted if the service was created using a launch type.

" + "smithy.api#documentation": "

The capacity provider strategy associated with the service.

" } }, "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version on which to run your service. A platform version is only\n\t\t\tspecified for tasks hosted on Fargate. If one is not specified, the\n\t\t\t\tLATEST platform version is used by default. For more information, see\n\t\t\t\tFargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version on which to run your service. A platform version is only\n\t\t\tspecified for tasks using the Fargate launch type. If one is not\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see AWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "taskDefinition": { @@ -6718,7 +6718,7 @@ "taskSets": { "target": "com.amazonaws.ecs#TaskSets", "traits": { - "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" + "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" } }, "deployments": { @@ -6784,7 +6784,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "createdBy": { @@ -6901,7 +6901,7 @@ "registryArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is\n\t\t\tCloud Map. For more information, see CreateService.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is\n\t\t\tAWS Cloud Map. For more information, see CreateService.

" } }, "port": { @@ -7141,7 +7141,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "taskDefinition": { @@ -7542,7 +7542,7 @@ } }, "traits": { - "smithy.api#documentation": "

The metadata that you apply to a resource to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to a resource to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "com.amazonaws.ecs#TagKey": { @@ -7603,7 +7603,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The tags to add to the resource. A tag is an array of key-value pairs.

\n\t\t

The following basic restrictions apply to tags:

\n ", + "smithy.api#documentation": "

The tags to add to the resource. A tag is an array of key-value pairs.

\n\t\t

The following basic restrictions apply to tags:

\n ", "smithy.api#required": {} } } @@ -7802,7 +7802,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version on which your task is running. A platform version is only\n\t\t\tspecified for tasks using the Fargate launch type. If one is not\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version on which your task is running. A platform version is only\n\t\t\tspecified for tasks using the Fargate launch type. If one is not\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see AWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "pullStartedAt": { @@ -7856,7 +7856,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "taskArn": { @@ -7912,19 +7912,19 @@ "taskRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the Identity and Access Management role that grants containers in the\n\t\t\ttask permission to call Amazon Web Services APIs on your behalf. For more information, see Amazon ECS\n\t\t\t\tTask Role in the Amazon Elastic Container Service Developer Guide.

\n\t\t

IAM roles for tasks on Windows require that the -EnableTaskIAMRole option\n\t\t\tis set when you launch the Amazon ECS-optimized Windows AMI. Your containers must also run some\n\t\t\tconfiguration code in order to take advantage of the feature. For more information, see\n\t\t\t\tWindows IAM roles\n\t\t\t\tfor tasks in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants containers in the\n\t\t\ttask permission to call AWS APIs on your behalf. For more information, see Amazon ECS\n\t\t\t\tTask Role in the Amazon Elastic Container Service Developer Guide.

\n\t\t

IAM roles for tasks on Windows require that the -EnableTaskIAMRole option\n\t\t\tis set when you launch the Amazon ECS-optimized Windows AMI. Your containers must also run some\n\t\t\tconfiguration code in order to take advantage of the feature. For more information, see\n\t\t\t\tWindows IAM roles\n\t\t\t\tfor tasks in the Amazon Elastic Container Service Developer Guide.

" } }, "executionRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent\n permission to make Amazon Web Services API calls on your behalf. The task execution IAM role is required\n depending on the requirements of your task. For more information, see Amazon ECS task\n execution IAM role in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent\n permission to make AWS API calls on your behalf. The task execution IAM role is required\n depending on the requirements of your task. For more information, see Amazon ECS task\n execution IAM role in the Amazon Elastic Container Service Developer Guide.

" } }, "networkMode": { "target": "com.amazonaws.ecs#NetworkMode", "traits": { - "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

For more information, see Network\n settings in the Docker run reference.

" + "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 instances, any network mode can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n \n

Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants with the\n ecs-init package, or AWS Fargate infrastructure support the\n awsvpc network mode.

\n
\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

Docker for Windows uses different network modes than Docker for Linux. When you\n register a task definition with Windows containers, you must not specify a network mode.\n If you use the console to register a task definition with Windows containers, you must\n choose the network mode object.

\n

For more information, see Network\n settings in the Docker run reference.

" } }, "revision": { @@ -7936,7 +7936,7 @@ "volumes": { "target": "com.amazonaws.ecs#VolumeList", "traits": { - "smithy.api#documentation": "

The list of data volume definitions for the task. For more information, see Using data volumes in tasks in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

The host and sourcePath parameters are not supported for\n\t\t\t\ttasks run on Fargate.

\n\t\t
" + "smithy.api#documentation": "

The list of data volume definitions for the task. For more information, see Using data volumes in tasks in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

The host and sourcePath parameters are not supported for\n\t\t\t\ttasks run on AWS Fargate.

\n\t\t
" } }, "status": { @@ -7948,13 +7948,13 @@ "requiresAttributes": { "target": "com.amazonaws.ecs#RequiresAttributes", "traits": { - "smithy.api#documentation": "

The container instance attributes required by your task. When an Amazon EC2 instance is\n\t\t\tregistered to your cluster, the Amazon ECS container agent assigns some standard attributes\n\t\t\tto the instance. You can apply custom attributes, specified as key-value pairs using the\n\t\t\tAmazon ECS console or the PutAttributes API. These attributes are used when\n\t\t\tconsidering task placement for tasks hosted on Amazon EC2 instances. For more information,\n\t\t\tsee Attributes in the Amazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

This parameter is not supported for tasks run on Fargate.

\n\t\t
" + "smithy.api#documentation": "

The container instance attributes required by your task. When an Amazon EC2 instance is\n\t\t\tregistered to your cluster, the Amazon ECS container agent assigns some standard attributes\n\t\t\tto the instance. You can apply custom attributes, specified as key-value pairs using the\n\t\t\tAmazon ECS console or the PutAttributes API. These attributes are used when\n\t\t\tconsidering task placement for tasks hosted on Amazon EC2 instances. For more information,\n\t\t\tsee Attributes in the Amazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

This parameter is not supported for tasks run on AWS Fargate.

\n\t\t
" } }, "placementConstraints": { "target": "com.amazonaws.ecs#TaskDefinitionPlacementConstraints", "traits": { - "smithy.api#documentation": "

An array of placement constraint objects to use for tasks.

\n\t\t \n\t\t\t

This parameter is not supported for tasks run on Fargate.

\n\t\t
" + "smithy.api#documentation": "

An array of placement constraint objects to use for tasks.

\n\t\t \n\t\t\t

This parameter is not supported for tasks run on AWS Fargate.

\n\t\t
" } }, "compatibilities": { @@ -7978,7 +7978,7 @@ "memory": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The amount (in MiB) of memory used by the task.

\n\t\t

If your tasks will be run on Amazon EC2 instances, you must specify either a task-level\n\t\t\tmemory value or a container-level memory value. This field is optional and any value can\n\t\t\tbe used. If a task-level memory value is specified then the container-level memory value\n\t\t\tis optional. For more information regarding container-level memory and memory\n\t\t\treservation, see ContainerDefinition.

\n\t\t

If your tasks will be run on Fargate, this field is required and you must use one of\n\t\t\tthe following values, which determines your range of valid values for the\n\t\t\t\tcpu parameter:

\n " + "smithy.api#documentation": "

The amount (in MiB) of memory used by the task.

\n\t\t

If your tasks will be run on Amazon EC2 instances, you must specify either a task-level\n\t\t\tmemory value or a container-level memory value. This field is optional and any value can\n\t\t\tbe used. If a task-level memory value is specified then the container-level memory value\n\t\t\tis optional. For more information regarding container-level memory and memory\n\t\t\treservation, see ContainerDefinition.

\n\t\t

If your tasks will be run on AWS Fargate, this field is required and you must use one of\n\t\t\tthe following values, which determines your range of valid values for the\n\t\t\t\tcpu parameter:

\n " } }, "inferenceAccelerators": { @@ -7990,13 +7990,13 @@ "pidMode": { "target": "com.amazonaws.ecs#PidMode", "traits": { - "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. If host\n is specified, then all containers within the tasks that specified the\n host PID mode on the same container instance share the\n same process namespace with the host Amazon EC2 instance. If task is\n specified, all containers within the specified task share the same\n process namespace. If no value is specified, the default is a private\n namespace. For more information, see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, be aware that there is a\n heightened risk of undesired process namespace expose. For more\n information, see Docker\n security.

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. If host\n is specified, then all containers within the tasks that specified the\n host PID mode on the same container instance share the\n same process namespace with the host Amazon EC2 instance. If task is\n specified, all containers within the specified task share the same\n process namespace. If no value is specified, the default is a private\n namespace. For more information, see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, be aware that there is a\n heightened risk of undesired process namespace expose. For more\n information, see Docker\n security.

\n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" } }, "ipcMode": { "target": "com.amazonaws.ecs#IpcMode", "traits": { - "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" } }, "proxyConfiguration": { @@ -8087,7 +8087,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing a constraint on task placement in the task definition. For more\n\t\t\tinformation, see Task placement constraints in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

Task placement constraints are not supported for tasks run on Fargate.

\n\t\t
" + "smithy.api#documentation": "

An object representing a constraint on task placement in the task definition. For more\n\t\t\tinformation, see Task placement constraints in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

Task placement constraints are not supported for tasks run on AWS Fargate.

\n\t\t
" } }, "com.amazonaws.ecs#TaskDefinitionPlacementConstraintType": { @@ -8181,7 +8181,7 @@ "ephemeralStorage": { "target": "com.amazonaws.ecs#EphemeralStorage", "traits": { - "smithy.api#documentation": "

The ephemeral storage setting override for the task.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" + "smithy.api#documentation": "

The ephemeral storage setting override for the task.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on AWS Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" } } }, @@ -8219,13 +8219,13 @@ "startedBy": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The tag specified when a task set is started. If the task set is created by an CodeDeploy\n\t\t\tdeployment, the startedBy parameter is CODE_DEPLOY. For a task\n\t\t\tset created for an external deployment, the startedBy field isn't used.

" + "smithy.api#documentation": "

The tag specified when a task set is started. If the task set is created by an AWS CodeDeploy\n\t\t\tdeployment, the startedBy parameter is CODE_DEPLOY. For a task\n\t\t\tset created for an external deployment, the startedBy field isn't used.

" } }, "externalId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The external ID associated with the task set.

\n\t\t

If a task set is created by an CodeDeploy deployment, the externalId parameter\n\t\t\tcontains the CodeDeploy deployment ID.

\n\t\t

If a task set is created for an external deployment and is associated with a service\n\t\t\tdiscovery registry, the externalId parameter contains the\n\t\t\t\tECS_TASK_SET_EXTERNAL_ID Cloud Map attribute.

" + "smithy.api#documentation": "

The external ID associated with the task set.

\n\t\t

If a task set is created by an AWS CodeDeploy deployment, the externalId parameter\n\t\t\tcontains the AWS CodeDeploy deployment ID.

\n\t\t

If a task set is created for an external deployment and is associated with a service\n\t\t\tdiscovery registry, the externalId parameter contains the\n\t\t\t\tECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute.

" } }, "status": { @@ -8285,7 +8285,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Fargate platform version on which the tasks in the task set are running. A\n\t\t\tplatform version is only specified for tasks run on Fargate. For more information, see\n\t\t\t\tFargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The AWS Fargate platform version on which the tasks in the task set are running. A\n\t\t\tplatform version is only specified for tasks run on AWS Fargate. For more information, see\n\t\t\t\tAWS Fargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" } }, "networkConfiguration": { @@ -8327,12 +8327,12 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } } }, "traits": { - "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" + "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" } }, "com.amazonaws.ecs#TaskSetField": { @@ -8965,7 +8965,7 @@ } ], "traits": { - "smithy.api#documentation": "\n\t\t\t

Updating the task placement strategies and constraints on an Amazon ECS service remains\n\t\t\t\tin preview and is a Beta Service as defined by and subject to the Beta Service\n\t\t\t\tParticipation Service Terms located at https://aws.amazon.com/service-terms (\"Beta Terms\"). These Beta Terms\n\t\t\t\tapply to your participation in this preview.

\n\t\t
\n\t\t

Modifies the parameters of a service.

\n\t\t

For services using the rolling update (ECS) deployment controller, the\n\t\t\tdesired count, deployment configuration, network configuration, task placement\n\t\t\tconstraints and strategies, or task definition used can be updated.

\n\t\t

For services using the blue/green (CODE_DEPLOY) deployment controller,\n\t\t\tonly the desired count, deployment configuration, task placement constraints and\n\t\t\tstrategies, and health check grace period can be updated using this API. If the network\n\t\t\tconfiguration, platform version, or task definition need to be updated, a new CodeDeploy\n\t\t\tdeployment should be created. For more information, see CreateDeployment in the CodeDeploy API Reference.

\n\t\t

For services using an external deployment controller, you can update only the desired\n\t\t\tcount, task placement constraints and strategies, and health check grace period using\n\t\t\tthis API. If the launch type, load balancer, network configuration, platform version, or\n\t\t\ttask definition need to be updated, you should create a new task set. For more\n\t\t\tinformation, see CreateTaskSet.

\n\t\t

You can add to or subtract from the number of instantiations of a task definition in a\n\t\t\tservice by specifying the cluster that the service is running in and a new\n\t\t\t\tdesiredCount parameter.

\n\t\t

If you have updated the Docker image of your application, you can create a new task\n\t\t\tdefinition with that image and deploy it to your service. The service scheduler uses the\n\t\t\tminimum healthy percent and maximum percent parameters (in the service's deployment\n\t\t\tconfiguration) to determine the deployment strategy.

\n\t\t \n\t\t\t

If your updated Docker image uses the same tag as what is in the existing task\n\t\t\t\tdefinition for your service (for example, my_image:latest), you do not\n\t\t\t\tneed to create a new revision of your task definition. You can update the service\n\t\t\t\tusing the forceNewDeployment option. The new tasks launched by the\n\t\t\t\tdeployment pull the current image/tag combination from your repository when they\n\t\t\t\tstart.

\n\t\t
\n\t\t

You can also update the deployment configuration of a service. When a deployment is\n\t\t\ttriggered by updating the task definition of a service, the service scheduler uses the\n\t\t\tdeployment configuration parameters, minimumHealthyPercent and\n\t\t\t\tmaximumPercent, to determine the deployment strategy.

\n\t\t \n\t\t

When UpdateService stops a task during a deployment, the equivalent\n\t\t\tof docker stop is issued to the containers running in the task. This\n\t\t\tresults in a SIGTERM and a 30-second timeout, after which\n\t\t\t\tSIGKILL is sent and the containers are forcibly stopped. If the\n\t\t\tcontainer handles the SIGTERM gracefully and exits within 30 seconds from\n\t\t\treceiving it, no SIGKILL is sent.

\n\t\t

When the service scheduler launches new tasks, it determines task placement in your\n\t\t\tcluster with the following logic:

\n\t\t \n\t\t

When the service scheduler stops running tasks, it attempts to maintain balance across\n\t\t\tthe Availability Zones in your cluster using the following logic:

\n\t\t " + "smithy.api#documentation": "\n\t\t\t

Updating the task placement strategies and constraints on an Amazon ECS service remains\n\t\t\t\tin preview and is a Beta Service as defined by and subject to the Beta Service\n\t\t\t\tParticipation Service Terms located at https://aws.amazon.com/service-terms (\"Beta Terms\"). These Beta Terms\n\t\t\t\tapply to your participation in this preview.

\n\t\t
\n\t\t

Modifies the parameters of a service.

\n\t\t

For services using the rolling update (ECS) deployment controller, the\n\t\t\tdesired count, deployment configuration, network configuration, task placement\n\t\t\tconstraints and strategies, or task definition used can be updated.

\n\t\t

For services using the blue/green (CODE_DEPLOY) deployment controller,\n\t\t\tonly the desired count, deployment configuration, task placement constraints and\n\t\t\tstrategies, and health check grace period can be updated using this API. If the network\n\t\t\tconfiguration, platform version, or task definition need to be updated, a new AWS CodeDeploy\n\t\t\tdeployment should be created. For more information, see CreateDeployment in the AWS CodeDeploy API Reference.

\n\t\t

For services using an external deployment controller, you can update only the desired\n\t\t\tcount, task placement constraints and strategies, and health check grace period using\n\t\t\tthis API. If the launch type, load balancer, network configuration, platform version, or\n\t\t\ttask definition need to be updated, you should create a new task set. For more\n\t\t\tinformation, see CreateTaskSet.

\n\t\t

You can add to or subtract from the number of instantiations of a task definition in a\n\t\t\tservice by specifying the cluster that the service is running in and a new\n\t\t\t\tdesiredCount parameter.

\n\t\t

If you have updated the Docker image of your application, you can create a new task\n\t\t\tdefinition with that image and deploy it to your service. The service scheduler uses the\n\t\t\tminimum healthy percent and maximum percent parameters (in the service's deployment\n\t\t\tconfiguration) to determine the deployment strategy.

\n\t\t \n\t\t\t

If your updated Docker image uses the same tag as what is in the existing task\n\t\t\t\tdefinition for your service (for example, my_image:latest), you do not\n\t\t\t\tneed to create a new revision of your task definition. You can update the service\n\t\t\t\tusing the forceNewDeployment option. The new tasks launched by the\n\t\t\t\tdeployment pull the current image/tag combination from your repository when they\n\t\t\t\tstart.

\n\t\t
\n\t\t

You can also update the deployment configuration of a service. When a deployment is\n\t\t\ttriggered by updating the task definition of a service, the service scheduler uses the\n\t\t\tdeployment configuration parameters, minimumHealthyPercent and\n\t\t\t\tmaximumPercent, to determine the deployment strategy.

\n\t\t \n\t\t

When UpdateService stops a task during a deployment, the equivalent\n\t\t\tof docker stop is issued to the containers running in the task. This\n\t\t\tresults in a SIGTERM and a 30-second timeout, after which\n\t\t\t\tSIGKILL is sent and the containers are forcibly stopped. If the\n\t\t\tcontainer handles the SIGTERM gracefully and exits within 30 seconds from\n\t\t\treceiving it, no SIGKILL is sent.

\n\t\t

When the service scheduler launches new tasks, it determines task placement in your\n\t\t\tcluster with the following logic:

\n\t\t \n\t\t

When the service scheduler stops running tasks, it attempts to maintain balance across\n\t\t\tthe Availability Zones in your cluster using the following logic:

\n\t\t " } }, "com.amazonaws.ecs#UpdateServicePrimaryTaskSet": { @@ -9077,7 +9077,7 @@ "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to update the service to use.

\n\t\t

If the service is using the default capacity provider strategy for the cluster, the\n\t\t\tservice can be updated to use one or more capacity providers as opposed to the default\n\t\t\tcapacity provider strategy. However, when a service is using a capacity provider\n\t\t\tstrategy that is not the default capacity provider strategy, the service cannot be\n\t\t\tupdated to use the cluster's default capacity provider strategy.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

\n\t\t

" + "smithy.api#documentation": "

The capacity provider strategy to update the service to use.

\n\t\t

If the service is using the default capacity provider strategy for the cluster, the\n\t\t\tservice can be updated to use one or more capacity providers as opposed to the default\n\t\t\tcapacity provider strategy. However, when a service is using a capacity provider\n\t\t\tstrategy that is not the default capacity provider strategy, the service cannot be\n\t\t\tupdated to use the cluster's default capacity provider strategy.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

\n\t\t

" } }, "deploymentConfiguration": { @@ -9107,7 +9107,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version on which your tasks in the service are running. A platform\n\t\t\tversion is only specified for tasks using the Fargate launch type. If a\n\t\t\tplatform version is not specified, the LATEST platform version is used by\n\t\t\tdefault. For more information, see Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version on which your tasks in the service are running. A platform\n\t\t\tversion is only specified for tasks using the Fargate launch type. If a\n\t\t\tplatform version is not specified, the LATEST platform version is used by\n\t\t\tdefault. For more information, see AWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "forceNewDeployment": { @@ -9270,7 +9270,7 @@ "dockerVolumeConfiguration": { "target": "com.amazonaws.ecs#DockerVolumeConfiguration", "traits": { - "smithy.api#documentation": "

This parameter is specified when you are using Docker volumes.

\n\t\t

Windows containers only support the use of the local driver. To use bind\n\t\t\tmounts, specify the host parameter instead.

\n\t\t \n\t\t\t

Docker volumes are not supported by tasks run on Fargate.

\n\t\t
" + "smithy.api#documentation": "

This parameter is specified when you are using Docker volumes.

\n\t\t

Windows containers only support the use of the local driver. To use bind\n\t\t\tmounts, specify the host parameter instead.

\n\t\t \n\t\t\t

Docker volumes are not supported by tasks run on AWS Fargate.

\n\t\t
" } }, "efsVolumeConfiguration": { diff --git a/codegen/sdk-codegen/aws-models/elasticloadbalancingv2.2015-12-01.json b/codegen/sdk-codegen/aws-models/elasticloadbalancingv2.2015-12-01.json index fea66f57345..5715aee94ac 100644 --- a/codegen/sdk-codegen/aws-models/elasticloadbalancingv2.2015-12-01.json +++ b/codegen/sdk-codegen/aws-models/elasticloadbalancingv2.2015-12-01.json @@ -1640,80 +1640,6 @@ "inputToken": "Marker", "outputToken": "NextMarker", "items": "LoadBalancers" - }, - "smithy.api#suppress": [ - "WaitableTraitInvalidErrorType" - ], - "smithy.waiters#waitable": { - "LoadBalancerAvailable": { - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "LoadBalancers[].State.Code", - "expected": "active", - "comparator": "allStringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "output": { - "path": "LoadBalancers[].State.Code", - "expected": "provisioning", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "errorType": "LoadBalancerNotFound" - } - } - ], - "minDelay": 15 - }, - "LoadBalancerExists": { - "acceptors": [ - { - "state": "success", - "matcher": { - "success": true - } - }, - { - "state": "retry", - "matcher": { - "errorType": "LoadBalancerNotFound" - } - } - ], - "minDelay": 15 - }, - "LoadBalancersDeleted": { - "acceptors": [ - { - "state": "retry", - "matcher": { - "output": { - "path": "LoadBalancers[].State.Code", - "expected": "active", - "comparator": "allStringEquals" - } - } - }, - { - "state": "success", - "matcher": { - "errorType": "LoadBalancerNotFound" - } - } - ], - "minDelay": 15 - } } } }, @@ -2075,54 +2001,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes the health of the specified targets or all of your targets.

", - "smithy.api#suppress": [ - "WaitableTraitInvalidErrorType" - ], - "smithy.waiters#waitable": { - "TargetDeregistered": { - "acceptors": [ - { - "state": "success", - "matcher": { - "errorType": "InvalidTarget" - } - }, - { - "state": "success", - "matcher": { - "output": { - "path": "TargetHealthDescriptions[].TargetHealth.State", - "expected": "unused", - "comparator": "allStringEquals" - } - } - } - ], - "minDelay": 15 - }, - "TargetInService": { - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "TargetHealthDescriptions[].TargetHealth.State", - "expected": "healthy", - "comparator": "allStringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "errorType": "InvalidInstance" - } - } - ], - "minDelay": 15 - } - } + "smithy.api#documentation": "

Describes the health of the specified targets or all of your targets.

" } }, "com.amazonaws.elasticloadbalancingv2#DescribeTargetHealthInput": { @@ -2940,7 +2819,7 @@ "Key": { "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerAttributeKey", "traits": { - "smithy.api#documentation": "

The name of the attribute.

\n\n

The following attribute is supported by all load balancers:

\n \n\n

The following attributes are supported by both Application Load Balancers and Network Load\n Balancers:

\n \n\n

The following attributes are supported by only Application Load Balancers:

\n \n\n

The following attribute is supported by Network Load Balancers and Gateway Load\n Balancers:

\n " + "smithy.api#documentation": "

The name of the attribute.

\n\n

The following attribute is supported by all load balancers:

\n \n\n

The following attributes are supported by both Application Load Balancers and Network Load\n Balancers:

\n \n\n

The following attributes are supported by only Application Load Balancers:

\n \n\n

The following attribute is supported by Network Load Balancers and Gateway Load\n Balancers:

\n " } }, "Value": { diff --git a/codegen/sdk-codegen/aws-models/emr.2009-03-31.json b/codegen/sdk-codegen/aws-models/emr.2009-03-31.json index 0e15e9615aa..d55356731fc 100644 --- a/codegen/sdk-codegen/aws-models/emr.2009-03-31.json +++ b/codegen/sdk-codegen/aws-models/emr.2009-03-31.json @@ -558,7 +558,7 @@ } }, "traits": { - "smithy.api#documentation": "

Properties that describe the Amazon Web Services principal that created the\n BlockPublicAccessConfiguration using the\n PutBlockPublicAccessConfiguration action as well as the date and time that\n the configuration was created. Each time a configuration for block public access is\n updated, Amazon EMR updates this metadata.

" + "smithy.api#documentation": "

Properties that describe the AWS principal that created the\n BlockPublicAccessConfiguration using the\n PutBlockPublicAccessConfiguration action as well as the date and time that\n the configuration was created. Each time a configuration for block public access is\n updated, Amazon EMR updates this metadata.

" } }, "com.amazonaws.emr#Boolean": { @@ -635,7 +635,7 @@ } ], "traits": { - "smithy.api#documentation": "

Cancels a pending step or steps in a running cluster. Available only in Amazon EMR\n versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps are allowed in\n each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee\n that a step will be canceled, even if the request is successfully submitted. When you use Amazon EMR versions 5.28.0 and later, you can cancel steps that are in a PENDING or RUNNING state. In earlier versions of Amazon EMR, you can only cancel steps that are in a PENDING state.

" + "smithy.api#documentation": "

Cancels a pending step or steps in a running cluster. Available only in Amazon EMR\n versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps are allowed in\n each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee\n that a step will be canceled, even if the request is successfully submitted. You can only\n cancel steps that are in a PENDING state.

" } }, "com.amazonaws.emr#CancelStepsInfo": { @@ -835,7 +835,7 @@ "LogEncryptionKmsKeyId": { "target": "com.amazonaws.emr#String", "traits": { - "smithy.api#documentation": "

The KMS key used for encrypting log files. This attribute is\n only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.

" + "smithy.api#documentation": "

The AWS KMS customer master key (CMK) used for encrypting log files. This attribute is\n only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.

" } }, "RequestedAmiVersion": { @@ -871,7 +871,7 @@ "VisibleToAllUsers": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

Indicates whether the cluster is visible to IAM principals in the account associated\n with the cluster. When true, IAM principals in the\n account can perform EMR cluster actions on the cluster that their IAM policies allow. When false, only the IAM principal that created the cluster and the account root user can perform EMR actions, regardless of IAM permissions policies attached to other IAM principals.

\n

The default value is false if a value is not provided when creating a cluster using the EMR API RunJobFlow command or the CLI create-cluster command. The default value is true when a cluster is created using the Management Console. IAM principals that are allowed to perform actions on the cluster can use the SetVisibleToAllUsers action to change the value on a running cluster. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Guide.

" + "smithy.api#documentation": "

Indicates whether the cluster is visible to all IAM users of the AWS account associated\n with the cluster. The default value, true, indicates that all IAM users in the\n AWS account can perform cluster actions if they have the proper IAM policy permissions. If\n this value is false, only the IAM user that created the cluster can perform\n actions. This value can be changed on a running cluster by using the SetVisibleToAllUsers action. You can override the default value of\n true when you create a cluster by using the VisibleToAllUsers\n parameter of the RunJobFlow action.

" } }, "Applications": { @@ -889,7 +889,7 @@ "ServiceRole": { "target": "com.amazonaws.emr#String", "traits": { - "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR service to access Amazon Web Services resources on\n your behalf.

" + "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR service to access AWS resources on\n your behalf.

" } }, "NormalizedInstanceHours": { @@ -1451,7 +1451,7 @@ "ServiceRole": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR Studio. The service role provides a\n way for Amazon EMR Studio to interoperate with other Amazon Web Services services.

", + "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR Studio. The service role provides a\n way for Amazon EMR Studio to interoperate with other AWS services.

", "smithy.api#required": {} } }, @@ -1538,13 +1538,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group from the Amazon Web Services SSO Identity\n Store. For more information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group from the AWS SSO Identity\n Store. For more information, see UserId and GroupId in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityType": { @@ -1557,7 +1557,7 @@ "SessionPolicyArn": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the session policy that will be applied to the user\n or group. You should specify the ARN for the session policy that you want to apply, not the ARN of your user role. For more information, see Create an EMR Studio User Role with Session Policies.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the session policy that will be applied to the user\n or group. Session policies refine Studio user permissions without the need to use multiple\n IAM user roles.

", "smithy.api#required": {} } } @@ -1661,13 +1661,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR\n Studio. For more information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR\n Studio. For more information, see UserId and GroupId in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user name or group to remove from the Amazon EMR Studio. For more information, see\n UserName and DisplayName in the Amazon Web Services SSO Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The name of the user name or group to remove from the Amazon EMR Studio. For more information, see\n UserName and DisplayName in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityType": { @@ -1917,72 +1917,6 @@ } } }, - "com.amazonaws.emr#DescribeReleaseLabel": { - "type": "operation", - "input": { - "target": "com.amazonaws.emr#DescribeReleaseLabelInput" - }, - "output": { - "target": "com.amazonaws.emr#DescribeReleaseLabelOutput" - }, - "errors": [ - { - "target": "com.amazonaws.emr#InternalServerException" - }, - { - "target": "com.amazonaws.emr#InvalidRequestException" - } - ], - "traits": { - "smithy.api#documentation": "

Provides EMR release label details, such as releases available the region where the API request is run, and the available applications for a specific EMR release label. Can also list EMR release versions that support a specified version of Spark.

" - } - }, - "com.amazonaws.emr#DescribeReleaseLabelInput": { - "type": "structure", - "members": { - "ReleaseLabel": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

The target release label to be described.

" - } - }, - "NextToken": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

The pagination token. Reserved for future use. Currently set to null.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.emr#MaxResultsNumber", - "traits": { - "smithy.api#documentation": "

Reserved for future use. Currently set to null.

" - } - } - } - }, - "com.amazonaws.emr#DescribeReleaseLabelOutput": { - "type": "structure", - "members": { - "ReleaseLabel": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

The target release label described in the response.

" - } - }, - "Applications": { - "target": "com.amazonaws.emr#SimplifiedApplicationList", - "traits": { - "smithy.api#documentation": "

The list of applications available for the target release label. Name is the name of the application. Version is the concise version of the application.

" - } - }, - "NextToken": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

The pagination token. Reserved for future use. Currently set to null.

" - } - } - } - }, "com.amazonaws.emr#DescribeSecurityConfiguration": { "type": "operation", "input": { @@ -2405,9 +2339,6 @@ { "target": "com.amazonaws.emr#DescribeNotebookExecution" }, - { - "target": "com.amazonaws.emr#DescribeReleaseLabel" - }, { "target": "com.amazonaws.emr#DescribeSecurityConfiguration" }, @@ -2444,9 +2375,6 @@ { "target": "com.amazonaws.emr#ListNotebookExecutions" }, - { - "target": "com.amazonaws.emr#ListReleaseLabels" - }, { "target": "com.amazonaws.emr#ListSecurityConfigurations" }, @@ -2523,7 +2451,7 @@ "name": "elasticmapreduce" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "

Amazon EMR is a web service that makes it easier to process large amounts of data\n efficiently. Amazon EMR uses Hadoop processing combined with several Amazon Web Services services to do\n tasks such as web indexing, data mining, log file analysis, machine learning, scientific\n simulation, and data warehouse management.

", + "smithy.api#documentation": "

Amazon EMR is a web service that makes it easier to process large amounts of data\n efficiently. Amazon EMR uses Hadoop processing combined with several AWS services to do\n tasks such as web indexing, data mining, log file analysis, machine learning, scientific\n simulation, and data warehouse management.

", "smithy.api#title": "Amazon Elastic MapReduce", "smithy.api#xmlNamespace": { "uri": "http://elasticmapreduce.amazonaws.com/doc/2009-03-31" @@ -2623,7 +2551,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the Amazon EMR block public access configuration for your account in the\n current Region. For more information see Configure Block\n Public Access for Amazon EMR in the Amazon EMR Management\n Guide.

" + "smithy.api#documentation": "

Returns the Amazon EMR block public access configuration for your AWS account in the\n current Region. For more information see Configure Block\n Public Access for Amazon EMR in the Amazon EMR Management\n Guide.

" } }, "com.amazonaws.emr#GetBlockPublicAccessConfigurationInput": { @@ -2643,7 +2571,7 @@ "BlockPublicAccessConfigurationMetadata": { "target": "com.amazonaws.emr#BlockPublicAccessConfigurationMetadata", "traits": { - "smithy.api#documentation": "

Properties that describe the Amazon Web Services principal that created the\n BlockPublicAccessConfiguration using the\n PutBlockPublicAccessConfiguration action as well as the date and time that\n the configuration was created. Each time a configuration for block public access is\n updated, Amazon EMR updates this metadata.

", + "smithy.api#documentation": "

Properties that describe the AWS principal that created the\n BlockPublicAccessConfiguration using the\n PutBlockPublicAccessConfiguration action as well as the date and time that\n the configuration was created. Each time a configuration for block public access is\n updated, Amazon EMR updates this metadata.

", "smithy.api#required": {} } } @@ -2717,13 +2645,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group. For more information, see\n UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group. For more information, see\n UserId and GroupId in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group to fetch. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The name of the user or group to fetch. For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityType": { @@ -2898,7 +2826,7 @@ "EbsVolumes": { "target": "com.amazonaws.emr#EbsVolumeList", "traits": { - "smithy.api#documentation": "

The list of Amazon EBS volumes that are attached to this instance.

" + "smithy.api#documentation": "

The list of EBS volumes that are attached to this instance.

" } } }, @@ -2975,7 +2903,7 @@ "InstanceTypeSpecifications": { "target": "com.amazonaws.emr#InstanceTypeSpecificationList", "traits": { - "smithy.api#documentation": "

An array of specifications for the instance types that comprise an instance fleet.

" + "smithy.api#documentation": "

The specification for the instance types that comprise an instance fleet. Up to five\n unique instance specifications may be defined for each instance fleet.

" } }, "LaunchSpecifications": { @@ -3305,7 +3233,7 @@ "Configurations": { "target": "com.amazonaws.emr#ConfigurationList", "traits": { - "smithy.api#documentation": "\n

Amazon EMR releases 4.x or later.

\n
\n

The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a\n separate configuration for each instance group (master, core, and task).

" + "smithy.api#documentation": "\n

Amazon EMR releases 4.x or later.

\n
\n

The list of configurations supplied for an EMR cluster instance group. You can specify a\n separate configuration for each instance group (master, core, and task).

" } }, "ConfigurationsVersion": { @@ -3955,7 +3883,7 @@ "min": 1, "max": 256 }, - "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" + "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" } }, "com.amazonaws.emr#InstanceTypeConfig": { @@ -3989,7 +3917,7 @@ "EbsConfiguration": { "target": "com.amazonaws.emr#EbsConfiguration", "traits": { - "smithy.api#documentation": "

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance\n as defined by InstanceType.

" + "smithy.api#documentation": "

The configuration of Amazon Elastic Block Storage (Amazon EBS) attached to each instance\n as defined by InstanceType.

" } }, "Configurations": { @@ -4000,7 +3928,7 @@ } }, "traits": { - "smithy.api#documentation": "

An instance type configuration for each instance type in an instance fleet, which\n determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot\n target capacities. When you use an allocation strategy, you can include a maximum of 30 instance type configurations for a fleet. For more information about how to use an allocation strategy, see Configure Instance Fleets. Without an allocation strategy, you may specify a maximum of five instance type configurations for a fleet.

\n \n

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and\n later, excluding 5.0.x versions.

\n
" + "smithy.api#documentation": "

An instance type configuration for each instance type in an instance fleet, which\n determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot\n target capacities. There can be a maximum of five instance type configurations in a\n fleet.

\n \n

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and\n later, excluding 5.0.x versions.

\n
" } }, "com.amazonaws.emr#InstanceTypeConfigList": { @@ -4045,7 +3973,7 @@ "EbsBlockDevices": { "target": "com.amazonaws.emr#EbsBlockDeviceList", "traits": { - "smithy.api#documentation": "

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance\n as defined by InstanceType.

" + "smithy.api#documentation": "

The configuration of Amazon Elastic Block Storage (Amazon EBS) attached to each instance\n as defined by InstanceType.

" } }, "EbsOptimized": { @@ -4075,10 +4003,6 @@ "type": "structure", "members": {}, "traits": { - "aws.protocols#awsQueryError": { - "code": "InternalFailure", - "httpResponseCode": 500 - }, "smithy.api#documentation": "

Indicates that an error occurred while processing the request and that the request was\n not completed.

", "smithy.api#error": "server", "smithy.api#httpError": 500 @@ -4146,7 +4070,7 @@ "LogEncryptionKmsKeyId": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The KMS key used for encrypting log files. This attribute is\n only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.

" + "smithy.api#documentation": "

The AWS KMS customer master key (CMK) used for encrypting log files. This attribute is\n only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.

" } }, "AmiVersion": { @@ -4190,7 +4114,7 @@ "VisibleToAllUsers": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

Indicates whether the cluster is visible to IAM principals in the account associated\n with the cluster. When true, IAM principals in the\n account can perform EMR cluster actions that their IAM policies allow. When false, only the IAM principal that created the cluster and the account root user can perform EMR actions, regardless of IAM permissions policies attached to other IAM principals.

\n

The default value is false if a value is not provided when creating a cluster using the EMR API RunJobFlow command or the CLI create-cluster command. The default value is true when a cluster is created using the Management Console. IAM principals that are authorized to perform actions on the cluster can use the SetVisibleToAllUsers action to change the value on a running cluster. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Guide.

" + "smithy.api#documentation": "

Indicates whether the cluster is visible to all IAM users of the AWS account associated\n with the cluster. The default value, true, indicates that all IAM users in the\n AWS account can perform cluster actions if they have the proper IAM policy permissions. If\n this value is false, only the IAM user that created the cluster can perform\n actions. This value can be changed on a running cluster by using the SetVisibleToAllUsers action. You can override the default value of\n true when you create a cluster by using the VisibleToAllUsers\n parameter of the RunJobFlow action.

" } }, "JobFlowRole": { @@ -4202,7 +4126,7 @@ "ServiceRole": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The IAM role that is assumed by the Amazon EMR service to access Amazon Web Services resources on your\n behalf.

" + "smithy.api#documentation": "

The IAM role that is assumed by the Amazon EMR service to access AWS resources on your\n behalf.

" } }, "AutoScalingRole": { @@ -4368,7 +4292,7 @@ "KeepJobFlowAliveWhenNoSteps": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether the cluster should remain available after completing all steps. Defaults to true. For more information about configuring cluster termination, see Control Cluster Termination in the EMR Management Guide.

" + "smithy.api#documentation": "

Specifies whether the cluster should remain available after completing all steps.

" } }, "TerminationProtected": { @@ -4398,13 +4322,13 @@ "EmrManagedMasterSecurityGroup": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon EC2 security group for the master node. If you specify EmrManagedMasterSecurityGroup, you must also specify EmrManagedSlaveSecurityGroup.

" + "smithy.api#documentation": "

The identifier of the Amazon EC2 security group for the master node.

" } }, "EmrManagedSlaveSecurityGroup": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon EC2 security group for the core and task nodes. If you specify EmrManagedSlaveSecurityGroup, you must also specify EmrManagedMasterSecurityGroup.

" + "smithy.api#documentation": "

The identifier of the Amazon EC2 security group for the core and task nodes.

" } }, "ServiceAccessSecurityGroup": { @@ -4668,7 +4592,7 @@ } ], "traits": { - "smithy.api#documentation": "

Provides the status of all clusters visible to this account. Allows you to filter\n the list of clusters based on certain criteria; for example, filtering by cluster creation\n date and time or by status. This call returns a maximum of 50 clusters in unsorted order per call, but\n returns a marker to track the paging of the cluster list across multiple ListClusters\n calls.

", + "smithy.api#documentation": "

Provides the status of all clusters visible to this AWS account. Allows you to filter\n the list of clusters based on certain criteria; for example, filtering by cluster creation\n date and time or by status. This call returns a maximum of 50 clusters per call, but\n returns a marker to track the paging of the cluster list across multiple ListClusters\n calls.

", "smithy.api#paginated": { "inputToken": "Marker", "outputToken": "Marker", @@ -4694,7 +4618,7 @@ "ClusterStates": { "target": "com.amazonaws.emr#ClusterStateList", "traits": { - "smithy.api#documentation": "

The cluster state filters to apply when listing clusters. Clusters that change state while this action runs may be not be returned as expected in the list of clusters.

" + "smithy.api#documentation": "

The cluster state filters to apply when listing clusters.

" } }, "Marker": { @@ -5027,71 +4951,6 @@ } } }, - "com.amazonaws.emr#ListReleaseLabels": { - "type": "operation", - "input": { - "target": "com.amazonaws.emr#ListReleaseLabelsInput" - }, - "output": { - "target": "com.amazonaws.emr#ListReleaseLabelsOutput" - }, - "errors": [ - { - "target": "com.amazonaws.emr#InternalServerException" - }, - { - "target": "com.amazonaws.emr#InvalidRequestException" - } - ], - "traits": { - "smithy.api#documentation": "

Retrieves release labels of EMR services in the region where the API is called.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.emr#ListReleaseLabelsInput": { - "type": "structure", - "members": { - "Filters": { - "target": "com.amazonaws.emr#ReleaseLabelFilter", - "traits": { - "smithy.api#documentation": "

Filters the results of the request. Prefix specifies the prefix of release labels to return. Application specifies the application (with/without version) of release labels to return.

" - } - }, - "NextToken": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

Specifies the next page of results. If NextToken is not specified, which is usually the case for the first request of ListReleaseLabels, the first page of results are determined by other filtering parameters or by the latest version. The ListReleaseLabels request fails if the identity (AWS AccountID) and all filtering parameters are different from the original request, or if the NextToken is expired or tampered with.

" - } - }, - "MaxResults": { - "target": "com.amazonaws.emr#MaxResultsNumber", - "traits": { - "smithy.api#documentation": "

Defines the maximum number of release labels to return in a single response. The default is 100.

" - } - } - } - }, - "com.amazonaws.emr#ListReleaseLabelsOutput": { - "type": "structure", - "members": { - "ReleaseLabels": { - "target": "com.amazonaws.emr#StringList", - "traits": { - "smithy.api#documentation": "

The returned release labels.

" - } - }, - "NextToken": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

Used to paginate the next page of results if specified in the next ListReleaseLabels request.

" - } - } - } - }, "com.amazonaws.emr#ListSecurityConfigurations": { "type": "operation", "input": { @@ -5162,7 +5021,7 @@ } ], "traits": { - "smithy.api#documentation": "

Provides a list of steps for the cluster in reverse order unless you specify\n stepIds with the request or filter by StepStates. You can\n specify a maximum of 10 stepIDs. The CLI automatically paginates results to return a list greater than 50 steps. To return more than 50 steps using the CLI, specify a Marker, which is a pagination token that indicates the next set of steps to retrieve.

", + "smithy.api#documentation": "

Provides a list of steps for the cluster in reverse order unless you specify\n stepIds with the request of filter by StepStates. You can\n specify a maximum of 10 stepIDs.

", "smithy.api#paginated": { "inputToken": "Marker", "outputToken": "Marker", @@ -5195,7 +5054,7 @@ "Marker": { "target": "com.amazonaws.emr#Marker", "traits": { - "smithy.api#documentation": "

The maximum number of steps that a single ListSteps action returns is 50. To return a longer list of steps, use multiple ListSteps actions along with the Marker parameter, which is a pagination token that indicates the next set of results to retrieve.

" + "smithy.api#documentation": "

The pagination token that indicates the next set of results to retrieve.

" } } }, @@ -5215,7 +5074,7 @@ "Marker": { "target": "com.amazonaws.emr#Marker", "traits": { - "smithy.api#documentation": "

The maximum number of steps that a single ListSteps action returns is 50. To return a longer list of steps, use multiple ListSteps actions along with the Marker parameter, which is a pagination token that indicates the next set of results to retrieve.

" + "smithy.api#documentation": "

The pagination token that indicates the next set of results to retrieve.

" } } }, @@ -5305,7 +5164,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of all Amazon EMR Studios associated with the account. The list\n includes details such as ID, Studio Access URL, and creation time for each Studio.

", + "smithy.api#documentation": "

Returns a list of all Amazon EMR Studios associated with the AWS account. The list\n includes details such as ID, Studio Access URL, and creation time for each Studio.

", "smithy.api#paginated": { "inputToken": "Marker", "outputToken": "Marker", @@ -5376,16 +5235,6 @@ ] } }, - "com.amazonaws.emr#MaxResultsNumber": { - "type": "integer", - "traits": { - "smithy.api#box": {}, - "smithy.api#range": { - "min": 1, - "max": 100 - } - } - }, "com.amazonaws.emr#MetricDimension": { "type": "structure", "members": { @@ -5445,7 +5294,7 @@ "StepConcurrencyLevel": { "target": "com.amazonaws.emr#Integer", "traits": { - "smithy.api#documentation": "

The number of steps that can be executed concurrently. You can specify a minimum of 1 step and a maximum of 256 steps. We recommend that you do not change this parameter while steps are running or the ActionOnFailure setting may not behave as expected. For more information see Step$ActionOnFailure.

" + "smithy.api#documentation": "

The number of steps that can be executed concurrently. You can specify a minimum of 1 step and a maximum of 256\n steps.

" } } } @@ -5491,7 +5340,7 @@ "InstanceFleet": { "target": "com.amazonaws.emr#InstanceFleetModifyConfig", "traits": { - "smithy.api#documentation": "

The configuration parameters of the instance fleet.

", + "smithy.api#documentation": "

The unique identifier of the instance fleet.

", "smithy.api#required": {} } } @@ -5720,7 +5569,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details for a notebook execution. The details include information such as the unique ID and status of the notebook execution.

" + "smithy.api#documentation": "

" } }, "com.amazonaws.emr#NotebookExecutionSummaryList": { @@ -5735,7 +5584,7 @@ "UsageStrategy": { "target": "com.amazonaws.emr#OnDemandCapacityReservationUsageStrategy", "traits": { - "smithy.api#documentation": "

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

\n

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

\n

If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

" + "smithy.api#documentation": "

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

\n

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

\n

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

" } }, "CapacityReservationPreference": { @@ -6013,7 +5862,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates or updates an Amazon EMR block public access configuration for your account\n in the current Region. For more information see Configure Block\n Public Access for Amazon EMR in the Amazon EMR Management\n Guide.

" + "smithy.api#documentation": "

Creates or updates an Amazon EMR block public access configuration for your AWS account\n in the current Region. For more information see Configure Block\n Public Access for Amazon EMR in the Amazon EMR Management\n Guide.

" } }, "com.amazonaws.emr#PutBlockPublicAccessConfigurationInput": { @@ -6067,26 +5916,6 @@ "type": "structure", "members": {} }, - "com.amazonaws.emr#ReleaseLabelFilter": { - "type": "structure", - "members": { - "Prefix": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

Optional release label version prefix filter. For example, emr-5.

" - } - }, - "Application": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

Optional release label application filter. For example, spark@2.1.0.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The release label filters by application or version prefix.

" - } - }, "com.amazonaws.emr#RemoveAutoScalingPolicy": { "type": "operation", "input": { @@ -6253,7 +6082,7 @@ "LogEncryptionKmsKeyId": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The KMS key used for encrypting log files. If a value is not\n provided, the logs remain encrypted by AES-256. This attribute is only available with\n Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0.

" + "smithy.api#documentation": "

The AWS KMS customer master key (CMK) used for encrypting log files. If a value is not\n provided, the logs remain encrypted by AES-256. This attribute is only available with\n Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0.

" } }, "AdditionalInfo": { @@ -6320,7 +6149,7 @@ "VisibleToAllUsers": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

Set this value to true so that IAM principals in the account associated with the cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults to false for clusters created using the EMR API or the CLI create-cluster command.

\n

When set to false, only the IAM principal that created the cluster and the account root user can perform EMR actions for the cluster, regardless of the IAM permissions policies attached to other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Guide.

" + "smithy.api#documentation": "

A value of true indicates that all IAM users in the AWS account can perform\n cluster actions if they have the proper IAM policy permissions. This is the default. A\n value of false indicates that only the IAM user who created the cluster can\n perform actions.

" } }, "JobFlowRole": { @@ -6332,7 +6161,7 @@ "ServiceRole": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR service to access Amazon Web Services resources on\n your behalf.

" + "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR service to access AWS resources on\n your behalf.

" } }, "Tags": { @@ -6546,7 +6375,7 @@ "Path": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

Location in Amazon S3 of the script to run during a bootstrap action.

", + "smithy.api#documentation": "

Location of the script to run during a bootstrap action. Can be either a location in\n Amazon S3 or on a local file system.

", "smithy.api#required": {} } }, @@ -6611,7 +6440,7 @@ "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API\n Reference.

" + "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the AWS SSO Identity Store API\n Reference.

" } }, "IdentityType": { @@ -6655,13 +6484,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group from the Amazon Web Services SSO Identity\n Store.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group from the AWS SSO Identity\n Store.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API\n Reference.

" + "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the AWS SSO Identity Store API\n Reference.

" } }, "IdentityType": { @@ -6704,7 +6533,7 @@ } ], "traits": { - "smithy.api#documentation": "

SetTerminationProtection locks a cluster (job flow) so the EC2 instances in the cluster\n cannot be terminated by user intervention, an API call, or in the event of a job-flow\n error. The cluster still terminates upon successful completion of the job flow. Calling\n SetTerminationProtection on a cluster is similar to calling the Amazon EC2\n DisableAPITermination API on all EC2 instances in a cluster.

\n

\n SetTerminationProtection is used to prevent accidental termination of a\n cluster and to ensure that in the event of an error, the instances persist so that you can\n recover any data stored in their ephemeral instance storage.

\n

To terminate a cluster that has been locked by setting\n SetTerminationProtection to true, you must first unlock the\n job flow by a subsequent call to SetTerminationProtection in which you set the\n value to false.

\n

For more information, seeManaging Cluster\n Termination in the Amazon EMR Management Guide.

" + "smithy.api#documentation": "

SetTerminationProtection locks a cluster (job flow) so the EC2 instances in the cluster\n cannot be terminated by user intervention, an API call, or in the event of a job-flow\n error. The cluster still terminates upon successful completion of the job flow. Calling\n SetTerminationProtection on a cluster is similar to calling the Amazon EC2\n DisableAPITermination API on all EC2 instances in a cluster.

\n

\n SetTerminationProtection is used to prevent accidental termination of a\n cluster and to ensure that in the event of an error, the instances persist so that you can\n recover any data stored in their ephemeral instance storage.

\n

To terminate a cluster that has been locked by setting\n SetTerminationProtection to true, you must first unlock the\n job flow by a subsequent call to SetTerminationProtection in which you set the\n value to false.

\n

For more information, seeManaging Cluster\n Termination in the Amazon EMR Management Guide.

" } }, "com.amazonaws.emr#SetTerminationProtectionInput": { @@ -6740,7 +6569,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets the Cluster$VisibleToAllUsers value for an EMR cluster. When true, IAM principals in the\n account can perform EMR cluster actions that their IAM policies allow. When false, only the IAM principal that created the cluster and the account root user can perform EMR actions on the cluster, regardless of IAM permissions policies attached to other IAM principals.

\n

This action works on running clusters. When you create a cluster, use the RunJobFlowInput$VisibleToAllUsers parameter.

\n

For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Guide.

" + "smithy.api#documentation": "

Sets the Cluster$VisibleToAllUsers value, which determines whether the\n cluster is visible to all IAM users of the AWS account associated with the cluster. Only\n the IAM user who created the cluster or the AWS account root user can call this action. The\n default value, true, indicates that all IAM users in the AWS account can\n perform cluster actions if they have the proper IAM policy permissions. If set to\n false, only the IAM user that created the cluster can perform actions. This\n action works on running clusters. You can override the default true setting\n when you create a cluster by using the VisibleToAllUsers parameter with\n RunJobFlow.

" } }, "com.amazonaws.emr#SetVisibleToAllUsersInput": { @@ -6756,7 +6585,7 @@ "VisibleToAllUsers": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

A value of true indicates that an IAM principal in the account can perform\n EMR actions on the cluster that the IAM policies attached to the principal allow. A\n value of false indicates that only the IAM principal that created the cluster and the Amazon Web Services root user can perform EMR actions on the cluster.

", + "smithy.api#documentation": "

A value of true indicates that all IAM users in the AWS account can perform\n cluster actions if they have the proper IAM policy permissions. This is the default. A\n value of false indicates that only the IAM user who created the cluster can\n perform actions.

", "smithy.api#required": {} } } @@ -6812,32 +6641,6 @@ "smithy.api#documentation": "

An automatic scaling configuration, which describes how the policy adds or removes\n instances, the cooldown period, and the number of EC2 instances that will be added each\n time the CloudWatch metric alarm condition is satisfied.

" } }, - "com.amazonaws.emr#SimplifiedApplication": { - "type": "structure", - "members": { - "Name": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

The returned release label application name. For example, hadoop.

" - } - }, - "Version": { - "target": "com.amazonaws.emr#String", - "traits": { - "smithy.api#documentation": "

The returned release label application version. For example, 3.2.1.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The returned release label application names or versions.

" - } - }, - "com.amazonaws.emr#SimplifiedApplicationList": { - "type": "list", - "member": { - "target": "com.amazonaws.emr#SimplifiedApplication" - } - }, "com.amazonaws.emr#SpotProvisioningAllocationStrategy": { "type": "string", "traits": { @@ -7037,7 +6840,7 @@ "ActionOnFailure": { "target": "com.amazonaws.emr#ActionOnFailure", "traits": { - "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility.\n We recommend using TERMINATE_CLUSTER instead.

\n

If a cluster's StepConcurrencyLevel is greater than 1, do not use AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the ActionOnFailure setting is not valid.

\n

If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running, the ActionOnFailure parameter may not behave as you expect. In this case, for a step that fails with this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER, the cluster does not terminate.

" + "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility.\n We recommend using TERMINATE_CLUSTER instead.

" } }, "Status": { @@ -7079,7 +6882,7 @@ "ActionOnFailure": { "target": "com.amazonaws.emr#ActionOnFailure", "traits": { - "smithy.api#documentation": "

The action to take when the step fails. Use one of the following values:

\n \n

If a cluster's StepConcurrencyLevel is greater than 1, do not use AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the ActionOnFailure setting is not valid.

\n

If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running, the ActionOnFailure parameter may not behave as you expect. In this case, for a step that fails with this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER, the cluster does not terminate.

" + "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility.\n We recommend using TERMINATE_CLUSTER instead.

" } }, "HadoopJarStep": { @@ -7091,7 +6894,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specification for a cluster (job flow) step.

" + "smithy.api#documentation": "

Specification of a cluster (job flow) step.

" } }, "com.amazonaws.emr#StepConfigList": { @@ -7340,7 +7143,7 @@ "ActionOnFailure": { "target": "com.amazonaws.emr#ActionOnFailure", "traits": { - "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is available for backward compatibility.

" + "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is available for backward compatibility.\n We recommend using TERMINATE_CLUSTER instead.

" } }, "Status": { @@ -7630,7 +7433,7 @@ } }, "traits": { - "smithy.api#documentation": "

A key-value pair containing user-defined metadata that you can associate with an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping\n clusters to track your Amazon EMR resource allocation costs. For more information, see\n Tag\n Clusters.

" + "smithy.api#documentation": "

A key-value pair containing user-defined metadata that you can associate with an Amazon\n EMR resource. Tags make it easier to associate clusters in various ways, such as grouping\n clusters to track your Amazon EMR resource allocation costs. For more information, see\n Tag\n Clusters.

" } }, "com.amazonaws.emr#TagList": { @@ -7866,13 +7669,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group. For more information, see\n UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group. For more information, see\n UserId and GroupId in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group to update. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The name of the user or group to update. For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityType": { @@ -7935,7 +7738,7 @@ "min": 0, "max": 10280 }, - "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" + "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" } }, "com.amazonaws.emr#XmlStringList": { @@ -7951,7 +7754,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" + "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" } }, "com.amazonaws.emr#XmlStringMaxLen256List": { diff --git a/codegen/sdk-codegen/aws-models/emrcontainers.2020-10-01.json b/codegen/sdk-codegen/aws-models/emrcontainers.2020-10-01.json index 5a6baef6e02..49248689f53 100644 --- a/codegen/sdk-codegen/aws-models/emrcontainers.2020-10-01.json +++ b/codegen/sdk-codegen/aws-models/emrcontainers.2020-10-01.json @@ -175,7 +175,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.emrcontainers#CloudWatchMonitoringConfiguration": { @@ -199,16 +199,6 @@ "smithy.api#documentation": "

A configuration for CloudWatch monitoring. You can configure your jobs to send log information to CloudWatch Logs.

" } }, - "com.amazonaws.emrcontainers#ClusterId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[0-9A-Za-z][A-Za-z0-9\\-_]*$" - } - }, "com.amazonaws.emrcontainers#Configuration": { "type": "structure", "members": { @@ -293,7 +283,7 @@ } }, "id": { - "target": "com.amazonaws.emrcontainers#ClusterId", + "target": "com.amazonaws.emrcontainers#String256", "traits": { "smithy.api#documentation": "

The ID of the container cluster.

", "smithy.api#required": {} @@ -821,7 +811,7 @@ "type": "structure", "members": { "namespace": { - "target": "com.amazonaws.emrcontainers#KubernetesNamespace", + "target": "com.amazonaws.emrcontainers#String256", "traits": { "smithy.api#documentation": "

The namespaces of the EKS cluster.

" } @@ -918,18 +908,6 @@ "smithy.api#documentation": "

The subnet IDs of the endpoint.\n

" } }, - "stateDetails": { - "target": "com.amazonaws.emrcontainers#String256", - "traits": { - "smithy.api#documentation": "

\n Additional details of the endpoint state.\n

" - } - }, - "failureReason": { - "target": "com.amazonaws.emrcontainers#FailureReason", - "traits": { - "smithy.api#documentation": "

\n The reasons why the endpoint has failed.\n

" - } - }, "tags": { "target": "com.amazonaws.emrcontainers#TagMap", "traits": { @@ -997,7 +975,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.emrcontainers#EndpointTypes": { @@ -1025,7 +1003,7 @@ "min": 1, "max": 10280 }, - "smithy.api#pattern": "^(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)$", + "smithy.api#pattern": "(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)", "smithy.api#sensitive": {} } }, @@ -1042,7 +1020,7 @@ "min": 1, "max": 256 }, - "smithy.api#pattern": "^(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)$", + "smithy.api#pattern": "(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)", "smithy.api#sensitive": {} } }, @@ -1279,16 +1257,6 @@ "target": "com.amazonaws.emrcontainers#JobRun" } }, - "com.amazonaws.emrcontainers#KubernetesNamespace": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 63 - }, - "smithy.api#pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" - } - }, "com.amazonaws.emrcontainers#ListJobRuns": { "type": "operation", "input": { @@ -1653,7 +1621,7 @@ "min": 1, "max": 512 }, - "smithy.api#pattern": "^[\\.\\-_/#A-Za-z0-9]+$" + "smithy.api#pattern": "[\\.\\-_/#A-Za-z0-9]+" } }, "com.amazonaws.emrcontainers#MonitoringConfiguration": { @@ -1689,7 +1657,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.emrcontainers#PersistentAppUI": { @@ -1714,7 +1682,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[\\.\\-_/A-Za-z0-9]+$" + "smithy.api#pattern": "[\\.\\-_/A-Za-z0-9]+" } }, "com.amazonaws.emrcontainers#RequestIdentityUserArn": { @@ -1734,7 +1702,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[0-9a-z]+$" + "smithy.api#pattern": "[0-9a-z]+" } }, "com.amazonaws.emrcontainers#ResourceNameString": { @@ -1744,7 +1712,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[\\.\\-_/#A-Za-z0-9]+$" + "smithy.api#pattern": "[\\.\\-_/#A-Za-z0-9]+" } }, "com.amazonaws.emrcontainers#ResourceNotFoundException": { @@ -1833,9 +1801,9 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 102400 + "max": 1024 }, - "smithy.api#pattern": "^(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)$", + "smithy.api#pattern": "(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)", "smithy.api#sensitive": {} } }, @@ -1963,7 +1931,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.emrcontainers#String128": { @@ -1973,7 +1941,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.emrcontainers#String256": { @@ -1983,7 +1951,7 @@ "min": 1, "max": 256 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.emrcontainers#StringEmpty256": { @@ -1993,7 +1961,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.emrcontainers#SubnetIds": { @@ -2141,7 +2109,7 @@ "min": 1, "max": 10280 }, - "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\r\\n\\t]*$" + "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\r\\n\\t]*" } }, "com.amazonaws.emrcontainers#ValidationException": { diff --git a/codegen/sdk-codegen/aws-models/health.2016-08-04.json b/codegen/sdk-codegen/aws-models/health.2016-08-04.json index a2242baa351..5ace346c8a3 100644 --- a/codegen/sdk-codegen/aws-models/health.2016-08-04.json +++ b/codegen/sdk-codegen/aws-models/health.2016-08-04.json @@ -331,7 +331,7 @@ } }, "maxResults": { - "target": "com.amazonaws.health#maxResultsLowerRange", + "target": "com.amazonaws.health#maxResults", "traits": { "smithy.api#documentation": "

The maximum number of items to return in one batch, between 10 and 100, inclusive.

" } @@ -787,7 +787,7 @@ } }, "maxResults": { - "target": "com.amazonaws.health#maxResultsLowerRange", + "target": "com.amazonaws.health#maxResults", "traits": { "smithy.api#documentation": "

The maximum number of items to return in one batch, between 10 and 100, inclusive.

" } @@ -1312,7 +1312,7 @@ "min": 3, "max": 100 }, - "smithy.api#pattern": "^[^:/]{3,100}$" + "smithy.api#pattern": "[^:/]{3,100}" } }, "com.amazonaws.health#EventTypeCategoryList": { @@ -1674,7 +1674,7 @@ "min": 6, "max": 18 }, - "smithy.api#pattern": "^[a-z]{2}\\-[0-9a-z\\-]{4,16}$" + "smithy.api#pattern": "[a-z]{2}\\-[0-9a-z\\-]{4,16}" } }, "com.amazonaws.health#availabilityZones": { @@ -1717,7 +1717,7 @@ "min": 0, "max": 1600 }, - "smithy.api#pattern": "^.{0,1600}$" + "smithy.api#pattern": ".{0,1600}" } }, "com.amazonaws.health#entityArnList": { @@ -1728,7 +1728,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 99 + "max": 100 } } }, @@ -1773,7 +1773,7 @@ "min": 0, "max": 1224 }, - "smithy.api#pattern": "^.{0,1224}$" + "smithy.api#pattern": ".{0,1224}" } }, "com.amazonaws.health#entityValueList": { @@ -1784,7 +1784,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 99 + "max": 100 } } }, @@ -1806,7 +1806,7 @@ "min": 0, "max": 1600 }, - "smithy.api#pattern": "^arn:aws(-[a-z]+(-[a-z]+)?)?:health:[^:]*:[^:]*:event(?:/[\\w-]+){3}$" + "smithy.api#pattern": "arn:aws(-[a-z]+(-[a-z]+)?)?:health:[^:]*:[^:]*:event(?:/[\\w-]+){3}" } }, "com.amazonaws.health#eventArnList": { @@ -1926,7 +1926,7 @@ "min": 3, "max": 100 }, - "smithy.api#pattern": "^[a-zA-Z0-9\\_\\-]{3,100}$" + "smithy.api#pattern": "[a-zA-Z0-9\\_\\-]{3,100}" } }, "com.amazonaws.health#eventTypeList2": { @@ -1951,7 +1951,7 @@ "min": 2, "max": 256 }, - "smithy.api#pattern": "^.{2,256}$" + "smithy.api#pattern": ".{2,256}" } }, "com.amazonaws.health#maxResults": { @@ -1964,16 +1964,6 @@ } } }, - "com.amazonaws.health#maxResultsLowerRange": { - "type": "integer", - "traits": { - "smithy.api#box": {}, - "smithy.api#range": { - "min": 1, - "max": 100 - } - } - }, "com.amazonaws.health#metadataKey": { "type": "string", "traits": { @@ -1999,7 +1989,7 @@ "min": 4, "max": 10000 }, - "smithy.api#pattern": "^[a-zA-Z0-9=/+_.-]{4,10000}$" + "smithy.api#pattern": "[a-zA-Z0-9=/+_.-]{4,10000}" } }, "com.amazonaws.health#region": { @@ -2009,7 +1999,7 @@ "min": 2, "max": 25 }, - "smithy.api#pattern": "^[^:/]{2,25}$" + "smithy.api#pattern": "[^:/]{2,25}" } }, "com.amazonaws.health#regionList": { @@ -2031,7 +2021,7 @@ "min": 2, "max": 30 }, - "smithy.api#pattern": "^[^:/]{2,30}$" + "smithy.api#pattern": "[^:/]{2,30}" } }, "com.amazonaws.health#serviceList": { @@ -2068,7 +2058,7 @@ "min": 0, "max": 127 }, - "smithy.api#pattern": "^.{0,127}$" + "smithy.api#pattern": ".{0,127}" } }, "com.amazonaws.health#tagSet": { @@ -2093,7 +2083,7 @@ "min": 0, "max": 255 }, - "smithy.api#pattern": "^.{0,255}$" + "smithy.api#pattern": ".{0,255}" } }, "com.amazonaws.health#timestamp": { diff --git a/codegen/sdk-codegen/aws-models/iam.2010-05-08.json b/codegen/sdk-codegen/aws-models/iam.2010-05-08.json index d361b1aad68..77f793ffd7b 100644 --- a/codegen/sdk-codegen/aws-models/iam.2010-05-08.json +++ b/codegen/sdk-codegen/aws-models/iam.2010-05-08.json @@ -1510,7 +1510,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).

\n

The OIDC provider that you create with this operation can be used as a principal in a\n role's trust policy. Such a policy establishes a trust relationship between Amazon Web Services and\n the OIDC provider.

\n

If you are using an OIDC identity provider from Google, Facebook, or Amazon Cognito, you don't\n need to create a separate IAM identity provider. These OIDC identity providers are\n already built-in to Amazon Web Services and are available for your use. Instead, you can move directly\n to creating new roles using your identity provider. To learn more, see Creating\n a role for web identity or OpenID connect federation in the IAM\n User Guide.

\n

When you create the IAM OIDC provider, you specify the following:

\n \n

You get all of this information from the OIDC IdP that you want to use to access\n Amazon Web Services.

\n \n

Amazon Web Services secures communication with some OIDC identity providers (IdPs) through our\n library of trusted certificate authorities (CAs) instead of using a certificate\n thumbprint to verify your IdP server certificate. These OIDC IdPs include Google, and\n those that use an Amazon S3 bucket to host a JSON Web Key Set (JWKS) endpoint. In these\n cases, your legacy thumbprint remains in your configuration, but is no longer used for validation.

\n
\n \n

The trust for the OIDC provider is derived from the IAM provider that this\n operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider operation to highly privileged\n users.

\n
" + "smithy.api#documentation": "

Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).

\n

The OIDC provider that you create with this operation can be used as a principal in a\n role's trust policy. Such a policy establishes a trust relationship between Amazon Web Services and\n the OIDC provider.

\n

If you are using an OIDC identity provider from Google, Facebook, or Amazon Cognito, you don't\n need to create a separate IAM identity provider. These OIDC identity providers are\n already built-in to Amazon Web Services and are available for your use. Instead, you can move directly\n to creating new roles using your identity provider. To learn more, see Creating\n a role for web identity or OpenID connect federation in the IAM\n User Guide.

\n

When you create the IAM OIDC provider, you specify the following:

\n \n

You get all of this information from the OIDC IdP that you want to use to access\n Amazon Web Services.

\n \n

The trust for the OIDC provider is derived from the IAM provider that this\n operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider operation to highly privileged\n users.

\n
" } }, "com.amazonaws.iam#CreateOpenIDConnectProviderRequest": { @@ -11479,7 +11479,7 @@ } ], "traits": { - "smithy.api#documentation": "

Replaces the existing list of server certificate thumbprints associated with an OpenID\n Connect (OIDC) provider resource object with a new list of thumbprints.

\n

The list that you pass with this operation completely replaces the existing list of\n thumbprints. (The lists are not merged.)

\n

Typically, you need to update a thumbprint only when the identity provider\n certificate changes, which occurs rarely. However, if the provider's certificate\n does change, any attempt to assume an IAM role that specifies\n the OIDC provider as a principal fails until the certificate thumbprint is\n updated.

\n \n

Amazon Web Services secures communication with some OIDC identity providers (IdPs) through our\n library of trusted certificate authorities (CAs) instead of using a certificate\n thumbprint to verify your IdP server certificate. These OIDC IdPs include Google, and\n those that use an Amazon S3 bucket to host a JSON Web Key Set (JWKS) endpoint. In these\n cases, your legacy thumbprint remains in your configuration, but is no longer used for validation.

\n
\n \n

Trust for the OIDC provider is derived from the provider certificate and is\n validated by the thumbprint. Therefore, it is best to limit access to the\n UpdateOpenIDConnectProviderThumbprint operation to highly\n privileged users.

\n
" + "smithy.api#documentation": "

Replaces the existing list of server certificate thumbprints associated with an OpenID\n Connect (OIDC) provider resource object with a new list of thumbprints.

\n

The list that you pass with this operation completely replaces the existing list of\n thumbprints. (The lists are not merged.)

\n

Typically, you need to update a thumbprint only when the identity provider's\n certificate changes, which occurs rarely. However, if the provider's certificate\n does change, any attempt to assume an IAM role that specifies\n the OIDC provider as a principal fails until the certificate thumbprint is\n updated.

\n \n

Trust for the OIDC provider is derived from the provider's certificate and is\n validated by the thumbprint. Therefore, it is best to limit access to the\n UpdateOpenIDConnectProviderThumbprint operation to highly\n privileged users.

\n
" } }, "com.amazonaws.iam#UpdateOpenIDConnectProviderThumbprintRequest": { diff --git a/codegen/sdk-codegen/aws-models/identitystore.2020-06-15.json b/codegen/sdk-codegen/aws-models/identitystore.2020-06-15.json index d7ffa7e6a52..533894f6eea 100644 --- a/codegen/sdk-codegen/aws-models/identitystore.2020-06-15.json +++ b/codegen/sdk-codegen/aws-models/identitystore.2020-06-15.json @@ -58,7 +58,6 @@ "name": "identitystore" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "

The AWS Single Sign-On (SSO) Identity Store service provides a single place to retrieve all of your\n identities (users and groups). For more information about AWS, see the AWS Single Sign-On User\n Guide.

", "smithy.api#title": "AWS SSO Identity Store" } }, @@ -88,7 +87,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}  ]+$" + "smithy.api#pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}  ]+" } }, "com.amazonaws.identitystore#DescribeGroup": { @@ -126,7 +125,7 @@ "IdentityStoreId": { "target": "com.amazonaws.identitystore#IdentityStoreId", "traits": { - "smithy.api#documentation": "

The globally unique identifier for the identity store, such as\n d-1234567890. In this example, d- is a fixed prefix, and\n 1234567890 is a randomly generated string that contains number and lower\n case letters. This value is generated at the time that a new identity store is\n created.

", + "smithy.api#documentation": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string which contains number and lower case letters. This value is generated at the time that a new identity store is created.

", "smithy.api#required": {} } }, @@ -152,7 +151,7 @@ "DisplayName": { "target": "com.amazonaws.identitystore#GroupDisplayName", "traits": { - "smithy.api#documentation": "

Contains the group’s display name value. The length limit is 1,024 characters. This\n value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new\n line, carriage return, space, and nonbreaking space in this attribute. The characters\n <>;:% are excluded. This value is specified at the time that the\n group is created and stored as an attribute of the group object in the identity\n store.

", + "smithy.api#documentation": "

Contains the group’s display name value. The length limit is 1024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space and non breaking space in this attribute. The characters “<>;:%” are excluded. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store.

", "smithy.api#required": {} } } @@ -193,7 +192,7 @@ "IdentityStoreId": { "target": "com.amazonaws.identitystore#IdentityStoreId", "traits": { - "smithy.api#documentation": "

The globally unique identifier for the identity store, such as\n d-1234567890. In this example, d- is a fixed prefix, and\n 1234567890 is a randomly generated string that contains number and lower\n case letters. This value is generated at the time that a new identity store is\n created.

", + "smithy.api#documentation": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string which contains number and lower case letters. This value is generated at the time that a new identity store is created.

", "smithy.api#required": {} } }, @@ -212,7 +211,7 @@ "UserName": { "target": "com.amazonaws.identitystore#UserName", "traits": { - "smithy.api#documentation": "

Contains the user’s user name value. The length limit is 128 characters. This value can\n consist of letters, accented characters, symbols, numbers, and punctuation. The characters\n <>;:% are excluded. This value is specified at the time the user is\n created and stored as an attribute of the user object in the identity store.

", + "smithy.api#documentation": "

Contains the user’s username value. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers and punctuation. The characters “<>;:%” are excluded. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

", "smithy.api#required": {} } }, @@ -231,7 +230,7 @@ "AttributePath": { "target": "com.amazonaws.identitystore#AttributePath", "traits": { - "smithy.api#documentation": "

The attribute path that is used to specify which attribute name to search. Length limit\n is 255 characters. For example, UserName is a valid attribute path for the\n ListUsers API, and DisplayName is a valid attribute path for\n the ListGroups API.

", + "smithy.api#documentation": "

The attribute path used to specify which attribute name to search. Length limit is 255 characters. For example, UserName is a valid attribute path for the ListUsers API, and DisplayName is a valid attribute path for the ListGroups API.

", "smithy.api#required": {} } }, @@ -244,7 +243,7 @@ } }, "traits": { - "smithy.api#documentation": "

A query filter used by ListUsers and ListGroup. This filter object provides the attribute name and attribute value to\n search users or groups.

" + "smithy.api#documentation": "

A query filter used by ListUsers and ListGroup. This filter object provides the attribute name and attribute value to search users or groups.

" } }, "com.amazonaws.identitystore#Filters": { @@ -266,7 +265,7 @@ "DisplayName": { "target": "com.amazonaws.identitystore#GroupDisplayName", "traits": { - "smithy.api#documentation": "

Contains the group’s display name value. The length limit is 1,024 characters. This\n value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new\n line, carriage return, space, and nonbreaking space in this attribute. The characters\n <>;:% are excluded. This value is specified at the time the group\n is created and stored as an attribute of the group object in the identity store.

", + "smithy.api#documentation": "

Contains the group’s display name value. The length limit is 1024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space and non breaking space in this attribute. The characters “<>;:%” are excluded. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store.

", "smithy.api#required": {} } } @@ -282,7 +281,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+$" + "smithy.api#pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+" } }, "com.amazonaws.identitystore#Groups": { @@ -346,7 +345,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the attribute name and value of the group that you specified in the search. We only support DisplayName as a valid filter\n attribute path currently, and filter is required. This API returns minimum attributes, including GroupId and group\n DisplayName in the response.

", + "smithy.api#documentation": "

Lists the attribute name and value of the group that you specified in the search. We only support DisplayName as a valid filter attribute path currently, and filter is required. This API returns minimum attributes, including GroupId and group DisplayName in the response.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -360,20 +359,20 @@ "IdentityStoreId": { "target": "com.amazonaws.identitystore#IdentityStoreId", "traits": { - "smithy.api#documentation": "

The globally unique identifier for the identity store, such as\n d-1234567890. In this example, d- is a fixed prefix, and\n 1234567890 is a randomly generated string that contains number and lower\n case letters. This value is generated at the time that a new identity store is\n created.

", + "smithy.api#documentation": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string which contains number and lower case letters. This value is generated at the time that a new identity store is created.

", "smithy.api#required": {} } }, "MaxResults": { "target": "com.amazonaws.identitystore#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned per request. This parameter is used in the\n ListUsers and ListGroups request to specify how many results\n to return in one page. The length limit is 50 characters.

" + "smithy.api#documentation": "

The maximum number of results to be returned per request, which is used in the ListUsers and ListGroups request to specify how many results to return in one page. The length limit is 50 characters.

" } }, "NextToken": { "target": "com.amazonaws.identitystore#NextToken", "traits": { - "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups API\n operations. This value is generated by the identity store service. It is returned in the\n API response if the total results are more than the size of one page. This token is also\n returned when it is used in the API request to search for the next page.

" + "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups APIs. This value is generated by the identity store service and is returned in the API response if the total results are more than the size of one page, and when this token is used in the API request to search for the next page.

" } }, "Filters": { @@ -397,7 +396,7 @@ "NextToken": { "target": "com.amazonaws.identitystore#NextToken", "traits": { - "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups API\n operations. This value is generated by the identity store service. It is returned in the\n API response if the total results are more than the size of one page. This token is also\n returned when it1 is used in the API request to search for the next page.

" + "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups APIs. This value is generated by the identity store service and is returned in the API response if the total results are more than the size of one page, and when this token is used in the API request to search for the next page.

" } } } @@ -428,7 +427,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the attribute name and value of the user that you specified in the search. We only support UserName as a valid filter attribute\n path currently, and filter is required. This API returns minimum attributes, including UserId and UserName in the\n response.

", + "smithy.api#documentation": "

Lists the attribute name and value of the user that you specified in the search. We only support UserName as a valid filter attribute path currently, and filter is required. This API returns minimum attributes, including UserId and UserName in the response.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -442,20 +441,20 @@ "IdentityStoreId": { "target": "com.amazonaws.identitystore#IdentityStoreId", "traits": { - "smithy.api#documentation": "

The globally unique identifier for the identity store, such as\n d-1234567890. In this example, d- is a fixed prefix, and\n 1234567890 is a randomly generated string that contains number and lower\n case letters. This value is generated at the time that a new identity store is\n created.

", + "smithy.api#documentation": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string which contains number and lower case letters. This value is generated at the time that a new identity store is created.

", "smithy.api#required": {} } }, "MaxResults": { "target": "com.amazonaws.identitystore#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned per request. This parameter is used in the\n ListUsers and ListGroups request to specify how many results\n to return in one page. The length limit is 50 characters.

" + "smithy.api#documentation": "

The maximum number of results to be returned per request, which is used in the ListUsers and ListGroups request to specify how many results to return in one page. The length limit is 50 characters.

" } }, "NextToken": { "target": "com.amazonaws.identitystore#NextToken", "traits": { - "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups API\n operations. This value is generated by the identity store service. It is returned in the\n API response if the total results are more than the size of one page. This token is also\n returned when it is used in the API request to search for the next page.

" + "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups APIs. This value is generated by the identity store service and is returned in the API response if the total results are more than the size of one page, and when this token is used in the API request to search for the next page.

" } }, "Filters": { @@ -479,7 +478,7 @@ "NextToken": { "target": "com.amazonaws.identitystore#NextToken", "traits": { - "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups API\n operations. This value is generated by the identity store service. It is returned in the\n API response if the total results are more than the size of one page. This token is also\n returned when it is used in the API request to search for the next page.

" + "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups APIs. This value is generated by the identity store service and is returned in the API response if the total results are more than the size of one page, and when this token is used in the API request to search for the next page.

" } } } @@ -510,13 +509,13 @@ "min": 1, "max": 65535 }, - "smithy.api#pattern": "^[-a-zA-Z0-9+=/:]*$" + "smithy.api#pattern": "^[-a-zA-Z0-9+=/:]*" } }, "com.amazonaws.identitystore#RequestId": { "type": "string", "traits": { - "smithy.api#pattern": "^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$" + "smithy.api#pattern": "[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}" } }, "com.amazonaws.identitystore#ResourceId": { @@ -586,7 +585,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+$", + "smithy.api#pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+", "smithy.api#sensitive": {} } }, @@ -615,7 +614,7 @@ "UserName": { "target": "com.amazonaws.identitystore#UserName", "traits": { - "smithy.api#documentation": "

Contains the user’s user name value. The length limit is 128 characters. This value can\n consist of letters, accented characters, symbols, numbers, and punctuation. The characters\n <>;:% are excluded. This value is specified at the time the user is\n created and stored as an attribute of the user object in the identity store.

", + "smithy.api#documentation": "

Contains the user’s username value. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers and punctuation. The characters “<>;:%” are excluded. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

", "smithy.api#required": {} } }, @@ -638,7 +637,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+$", + "smithy.api#pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+", "smithy.api#sensitive": {} } }, diff --git a/codegen/sdk-codegen/aws-models/imagebuilder.2019-12-02.json b/codegen/sdk-codegen/aws-models/imagebuilder.2019-12-02.json index 53e8a186d78..2e89ed41d8b 100644 --- a/codegen/sdk-codegen/aws-models/imagebuilder.2019-12-02.json +++ b/codegen/sdk-codegen/aws-models/imagebuilder.2019-12-02.json @@ -144,7 +144,7 @@ "launchPermission": { "target": "com.amazonaws.imagebuilder#LaunchPermissionConfiguration", "traits": { - "smithy.api#documentation": "

Launch permissions can be used to configure which accounts can use the AMI to launch\n\t\t\tinstances.

" + "smithy.api#documentation": "

Launch permissions can be used to configure which accounts can use the AMI to launch\n instances.

" } } }, @@ -222,7 +222,7 @@ } ], "traits": { - "smithy.api#documentation": "

CancelImageCreation cancels the creation of Image. This operation can only be used on\n\t\t\timages in a non-terminal state.

", + "smithy.api#documentation": "

CancelImageCreation cancels the creation of Image. This operation can only be used on\n images in a non-terminal state.

", "smithy.api#http": { "method": "PUT", "uri": "/CancelImageCreation", @@ -281,7 +281,7 @@ } }, "traits": { - "smithy.api#documentation": "

These errors are usually caused by a client action, such as using an action or resource on\n\t\t\tbehalf of a user that doesn't have permissions to use the action or resource, or specifying an\n\t\t\tinvalid resource identifier.

", + "smithy.api#documentation": "

These errors are usually caused by a client action, such as using an action or resource on\n behalf of a user that doesn't have permissions to use the action or resource, or specifying an\n invalid resource identifier.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -331,7 +331,7 @@ "type": { "target": "com.amazonaws.imagebuilder#ComponentType", "traits": { - "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n\t\t\tto test it.

" + "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n to test it.

" } }, "platform": { @@ -343,7 +343,7 @@ "supportedOsVersions": { "target": "com.amazonaws.imagebuilder#OsVersionList", "traits": { - "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n\t\t\tavailable, a prefix match is performed against the parent image OS version during image recipe\n\t\t\tcreation.

" + "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n available, a prefix match is performed against the parent image OS version during image recipe\n creation.

" } }, "parameters": { @@ -593,13 +593,13 @@ "supportedOsVersions": { "target": "com.amazonaws.imagebuilder#OsVersionList", "traits": { - "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n\t\t\tavailable, a prefix match is performed against the parent image OS version during image recipe\n\t\t\tcreation.

" + "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n available, a prefix match is performed against the parent image OS version during image recipe\n creation.

" } }, "type": { "target": "com.amazonaws.imagebuilder#ComponentType", "traits": { - "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n\t\t\tto test it.

" + "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n to test it.

" } }, "owner": { @@ -664,7 +664,7 @@ "arn": { "target": "com.amazonaws.imagebuilder#ImageBuilderArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the component.

\n\t\t \n\t\t\t

Semantic versioning is included in each object's Amazon Resource Name (ARN), \n\tat the level that applies to that object as follows:

\n\t
    \n
  1. \n\t\t\t

    Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are \n\t\t\t\teither left off entirely, or they are specified as wildcards, for example: x.x.x.

    \n\t\t
  2. \n
  3. \n\t\t\t

    Version ARNs have only the first three nodes: ..

    \n\t\t
  4. \n
  5. \n\t\t\t

    Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.

    \n\t\t
  6. \n
\n\t\t
" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the component.

" } }, "name": { @@ -676,7 +676,7 @@ "version": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the component.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" + "smithy.api#documentation": "

The semantic version of the component.

" } }, "description": { @@ -694,13 +694,13 @@ "supportedOsVersions": { "target": "com.amazonaws.imagebuilder#OsVersionList", "traits": { - "smithy.api#documentation": "

he operating system (OS) version supported by the component. If the OS information is\n\t\t\tavailable, a prefix match is performed against the parent image OS version during image recipe\n\t\t\tcreation.

" + "smithy.api#documentation": "

he operating system (OS) version supported by the component. If the OS information is\n available, a prefix match is performed against the parent image OS version during image recipe\n creation.

" } }, "type": { "target": "com.amazonaws.imagebuilder#ComponentType", "traits": { - "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n\t\t\tto test it.

" + "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n to test it.

" } }, "owner": { @@ -717,7 +717,7 @@ } }, "traits": { - "smithy.api#documentation": "

The defining characteristics of a specific version of an TOE component.

" + "smithy.api#documentation": "

A high-level overview of a component semantic version.

" } }, "com.amazonaws.imagebuilder#ComponentVersionArn": { @@ -797,7 +797,7 @@ "arn": { "target": "com.amazonaws.imagebuilder#ImageBuilderArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container recipe.

\n\t\t \n\t\t\t

Semantic versioning is included in each object's Amazon Resource Name (ARN), \n\tat the level that applies to that object as follows:

\n\t
    \n
  1. \n\t\t\t

    Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are \n\t\t\t\teither left off entirely, or they are specified as wildcards, for example: x.x.x.

    \n\t\t
  2. \n
  3. \n\t\t\t

    Version ARNs have only the first three nodes: ..

    \n\t\t
  4. \n
  5. \n\t\t\t

    Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.

    \n\t\t
  6. \n
\n\t\t
" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container recipe.

" } }, "containerType": { @@ -833,7 +833,7 @@ "version": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the container recipe.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" + "smithy.api#documentation": "

The semantic version of the container recipe (..).

" } }, "components": { @@ -1035,7 +1035,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new component that can be used to build, validate, test, and assess your\n\t\t\timage.

", + "smithy.api#documentation": "

Creates a new component that can be used to build, validate, test, and assess your\n image.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateComponent", @@ -1056,7 +1056,7 @@ "semanticVersion": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the component. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t
", + "smithy.api#documentation": "

The semantic version of the component. This version follows the semantic version syntax.\n For example, major.minor.patch. This could be versioned like software (2.0.1) or like a date\n (2019.12.01).

", "smithy.api#required": {} } }, @@ -1069,7 +1069,7 @@ "changeDescription": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The change description of the component. Describes what change has been made in this\n\t\t\tversion, or what makes this version different from other versions of this component.

" + "smithy.api#documentation": "

The change description of the component. Describes what change has been made in this\n version, or what makes this version different from other versions of this component.

" } }, "platform": { @@ -1082,19 +1082,19 @@ "supportedOsVersions": { "target": "com.amazonaws.imagebuilder#OsVersionList", "traits": { - "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n\t\t\tavailable, a prefix match is performed against the parent image OS version during image recipe\n\t\t\tcreation.

" + "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n available, a prefix match is performed against the parent image OS version during image recipe\n creation.

" } }, "data": { "target": "com.amazonaws.imagebuilder#InlineComponentData", "traits": { - "smithy.api#documentation": "

The data of the component. Used to specify the data inline. Either data or\n\t\t\turi can be used to specify the data within the component.

" + "smithy.api#documentation": "

The data of the component. Used to specify the data inline. Either data or\n uri can be used to specify the data within the component.

" } }, "uri": { "target": "com.amazonaws.imagebuilder#Uri", "traits": { - "smithy.api#documentation": "

The uri of the component. Must be an Amazon S3 URL and the requester must have permission to\n\t\t\taccess the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service\n\t\t\tquota. Either data or uri can be used to specify the data within the\n\t\t\tcomponent.

" + "smithy.api#documentation": "

The uri of the component. Must be an Amazon S3 URL and the requester must have permission to\n access the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service\n quota. Either data or uri can be used to specify the data within the\n component.

" } }, "kmsKeyId": { @@ -1220,7 +1220,7 @@ "semanticVersion": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the container recipe. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t
", + "smithy.api#documentation": "

The semantic version of the container recipe (..).

", "smithy.api#required": {} } }, @@ -1370,7 +1370,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new distribution configuration. Distribution configurations define and configure\n\t\t\tthe outputs of your pipeline.

", + "smithy.api#documentation": "

Creates a new distribution configuration. Distribution configurations define and configure\n the outputs of your pipeline.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateDistributionConfiguration", @@ -1435,7 +1435,7 @@ "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that was created by this\n\t\t\trequest.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that was created by this\n request.

" } } } @@ -1478,7 +1478,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new image. This request will create a new image along with all of the \n\t\t\tconfigured output resources defined in the distribution configuration. You must specify \n\t\t\texactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn.

", + "smithy.api#documentation": "

Creates a new image. This request will create a new image along with all of the \n configured output resources defined in the distribution configuration. You must specify \n exactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateImage", @@ -1527,7 +1527,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new image pipeline. Image pipelines enable you to automate the creation and\n\t\t\tdistribution of images.

", + "smithy.api#documentation": "

Creates a new image pipeline. Image pipelines enable you to automate the creation and\n distribution of images.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateImagePipeline", @@ -1554,7 +1554,7 @@ "imageRecipeArn": { "target": "com.amazonaws.imagebuilder#ImageRecipeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images\n\t\t\tcreated by this image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images\n created by this image pipeline.

" } }, "containerRecipeArn": { @@ -1566,14 +1566,14 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to\n\t\t\tbuild images created by this image pipeline.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to\n build images created by this image pipeline.

", "smithy.api#required": {} } }, "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that will be used to\n\t\t\tconfigure and distribute images created by this image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that will be used to\n configure and distribute images created by this image pipeline.

" } }, "imageTestsConfiguration": { @@ -1585,7 +1585,7 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" } }, "schedule": { @@ -1683,7 +1683,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new image recipe. Image recipes define how images are configured, tested, and\n\t\t\tassessed.

", + "smithy.api#documentation": "

Creates a new image recipe. Image recipes define how images are configured, tested, and\n assessed.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateImageRecipe", @@ -1710,7 +1710,7 @@ "semanticVersion": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the image recipe. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t
", + "smithy.api#documentation": "

The semantic version of the image recipe.

", "smithy.api#required": {} } }, @@ -1724,7 +1724,7 @@ "parentImage": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The parent image of the image recipe. The value of the string can be the ARN of the parent \n\t\t\timage or an AMI ID. The format for the ARN follows this example: \n\t\t\tarn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/x.x.x. \n\t\t\tYou can provide the specific version that you want to use, or you can use a wildcard in \n\t\t\tall of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, \n\t\t\tand the AMI must be in the same Region in which you are using Image Builder.

", + "smithy.api#documentation": "

The parent image of the image recipe. The value of the string can be the ARN of the parent \n image or an AMI ID. The format for the ARN follows this example: \n \tarn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/x.x.x. \n \tYou can provide the specific version that you want to use, or you can use a wildcard in \n \tall of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, \n \tand the AMI must be in the same Region in which you are using Image Builder.

", "smithy.api#required": {} } }, @@ -1791,7 +1791,7 @@ "imageRecipeArn": { "target": "com.amazonaws.imagebuilder#ImageRecipeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that defines how images are\n\t\t\tconfigured, tested, and assessed.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that defines how images are\n configured, tested, and assessed.

" } }, "containerRecipeArn": { @@ -1803,13 +1803,13 @@ "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that defines and\n\t\t\tconfigures the outputs of your pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that defines and\n configures the outputs of your pipeline.

" } }, "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that defines the\n\t\t\tenvironment in which your image will be built and tested.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that defines the\n environment in which your image will be built and tested.

", "smithy.api#required": {} } }, @@ -1822,7 +1822,7 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" } }, "tags": { @@ -1905,7 +1905,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new infrastructure configuration. An infrastructure configuration defines the\n\t\t\tenvironment in which your image will be built and tested.

", + "smithy.api#documentation": "

Creates a new infrastructure configuration. An infrastructure configuration defines the\n environment in which your image will be built and tested.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateInfrastructureConfiguration", @@ -1932,7 +1932,7 @@ "instanceTypes": { "target": "com.amazonaws.imagebuilder#InstanceTypeList", "traits": { - "smithy.api#documentation": "

The instance types of the infrastructure configuration. You can specify one or more\n\t\t\tinstance types to use for this build. The service will pick one of these instance types based\n\t\t\ton availability.

" + "smithy.api#documentation": "

The instance types of the infrastructure configuration. You can specify one or more\n instance types to use for this build. The service will pick one of these instance types based\n on availability.

" } }, "instanceProfileName": { @@ -1963,13 +1963,13 @@ "keyPair": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The key pair of the infrastructure configuration. This can be used to log on to and debug\n\t\t\tthe instance used to create your image.

" + "smithy.api#documentation": "

The key pair of the infrastructure configuration. This can be used to log on to and debug\n the instance used to create your image.

" } }, "terminateInstanceOnFailure": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

The terminate instance on failure setting of the infrastructure configuration. Set to\n\t\t\tfalse if you want Image Builder to retain the instance used to configure your AMI if the build\n\t\t\tor test phase of your workflow fails.

" + "smithy.api#documentation": "

The terminate instance on failure setting of the infrastructure configuration. Set to\n false if you want Image Builder to retain the instance used to configure your AMI if the build\n or test phase of your workflow fails.

" } }, "snsTopicArn": { @@ -2018,7 +2018,7 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that was created by\n\t\t\tthis request.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that was created by\n this request.

" } } } @@ -2535,19 +2535,19 @@ "containerDistributionConfiguration": { "target": "com.amazonaws.imagebuilder#ContainerDistributionConfiguration", "traits": { - "smithy.api#documentation": "

Container distribution settings for encryption, licensing, and sharing \n\t\t\tin a specific Region.

" + "smithy.api#documentation": "

Container distribution settings for encryption, licensing, and sharing \n in a specific Region.

" } }, "licenseConfigurationArns": { "target": "com.amazonaws.imagebuilder#LicenseConfigurationArnList", "traits": { - "smithy.api#documentation": "

The License Manager Configuration to associate with the AMI in the specified\n\t\t\tRegion.

" + "smithy.api#documentation": "

The License Manager Configuration to associate with the AMI in the specified\n Region.

" } }, "launchTemplateConfigurations": { "target": "com.amazonaws.imagebuilder#LaunchTemplateConfigurationList", "traits": { - "smithy.api#documentation": "

A group of launchTemplateConfiguration settings that apply to image distribution \n\t\t\tfor specified accounts.

" + "smithy.api#documentation": "

A group of launchTemplateConfiguration settings that apply to image distribution \n for specified accounts.

" } } }, @@ -2579,7 +2579,7 @@ "distributions": { "target": "com.amazonaws.imagebuilder#DistributionList", "traits": { - "smithy.api#documentation": "

The distribution objects that apply Region-specific \n\t\t\tsettings for the deployment of the image to targeted Regions.

" + "smithy.api#documentation": "

The distribution objects that apply Region-specific \n settings for the deployment of the image to targeted Regions.

" } }, "timeoutMinutes": { @@ -2827,7 +2827,7 @@ } }, "traits": { - "smithy.api#documentation": "

A filter name and value pair that is used to return a more specific list of results from a\n\t\t\tlist operation. Filters can be used to match a set of resources by specific criteria, such as\n\t\t\ttags, attributes, or IDs.

" + "smithy.api#documentation": "

A filter name and value pair that is used to return a more specific list of results from a\n list operation. Filters can be used to match a set of resources by specific criteria, such as\n tags, attributes, or IDs.

" } }, "com.amazonaws.imagebuilder#FilterList": { @@ -2989,7 +2989,7 @@ "componentBuildVersionArn": { "target": "com.amazonaws.imagebuilder#ComponentVersionArnOrBuildVersionArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the component that you want to retrieve. Regex requires\n\t\t\t\"/\\d+$\" suffix.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the component that you want to retrieve. Regex requires\n \"/\\d+$\" suffix.

", "smithy.api#httpQuery": "componentBuildVersionArn", "smithy.api#required": {} } @@ -3190,7 +3190,7 @@ "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that you want to\n\t\t\tretrieve.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that you want to\n retrieve.

", "smithy.api#httpQuery": "distributionConfigurationArn", "smithy.api#required": {} } @@ -3592,7 +3592,7 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that you want to\n\t\t\tretrieve.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that you want to\n retrieve.

", "smithy.api#httpQuery": "infrastructureConfigurationArn", "smithy.api#required": {} } @@ -3630,7 +3630,7 @@ } }, "traits": { - "smithy.api#documentation": "

You have specified a client token for an operation using parameter values that differ from\n\t\t\ta previous request that used the same client token.

", + "smithy.api#documentation": "

You have specified a client token for an operation using parameter values that differ from\n a previous request that used the same client token.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -3641,7 +3641,7 @@ "arn": { "target": "com.amazonaws.imagebuilder#ImageBuilderArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image.

\n\t\t \n\t\t\t

Semantic versioning is included in each object's Amazon Resource Name (ARN), \n\tat the level that applies to that object as follows:

\n\t
    \n
  1. \n\t\t\t

    Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are \n\t\t\t\teither left off entirely, or they are specified as wildcards, for example: x.x.x.

    \n\t\t
  2. \n
  3. \n\t\t\t

    Version ARNs have only the first three nodes: ..

    \n\t\t
  4. \n
  5. \n\t\t\t

    Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.

    \n\t\t
  6. \n
\n\t\t
" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image.

" } }, "type": { @@ -3659,7 +3659,7 @@ "version": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the image.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" + "smithy.api#documentation": "

The semantic version of the image.

" } }, "platform": { @@ -3671,13 +3671,13 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" } }, "osVersion": { "target": "com.amazonaws.imagebuilder#OsVersion", "traits": { - "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n\t\t\tMicrosoft Windows Server 2019.

" + "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n Microsoft Windows Server 2019.

" } }, "state": { @@ -3695,7 +3695,7 @@ "containerRecipe": { "target": "com.amazonaws.imagebuilder#ContainerRecipe", "traits": { - "smithy.api#documentation": "

The recipe that is used to create an Image Builder container image.

" + "smithy.api#documentation": "

The container recipe used to create the container image type.

" } }, "sourcePipelineName": { @@ -3748,7 +3748,7 @@ } }, "traits": { - "smithy.api#documentation": "

An Image Builder image. You must specify exactly one recipe for the image – either \n\t\t\ta container recipe (containerRecipe), which creates a container \n\t\t\timage, or an image recipe (imageRecipe), which creates an AMI.

" + "smithy.api#documentation": "

An image build version.

" } }, "com.amazonaws.imagebuilder#ImageBuildVersionArn": { @@ -3819,13 +3819,13 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" } }, "imageRecipeArn": { "target": "com.amazonaws.imagebuilder#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe associated with this image\n\t\t\tpipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe associated with this image\n pipeline.

" } }, "containerRecipeArn": { @@ -3837,13 +3837,13 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration associated with this\n\t\t\timage pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration associated with this\n image pipeline.

" } }, "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration associated with this\n\t\t\timage pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration associated with this\n image pipeline.

" } }, "imageTestsConfiguration": { @@ -3923,7 +3923,7 @@ "type": { "target": "com.amazonaws.imagebuilder#ImageType", "traits": { - "smithy.api#documentation": "

Specifies which type of image is created by the recipe - an AMI or a \n\t\t\tcontainer image.

" + "smithy.api#documentation": "

Specifies which type of image is created by the recipe - an AMI or a \n \tcontainer image.

" } }, "name": { @@ -3995,7 +3995,7 @@ "additionalInstanceConfiguration": { "target": "com.amazonaws.imagebuilder#AdditionalInstanceConfiguration", "traits": { - "smithy.api#documentation": "

Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to \n\t\t\tbuild and test your image configuration. Instance configuration adds a layer \n\t\t\tof control over those instances. You can define settings and add scripts to \n\t\t\trun when an instance is launched from your AMI.

" + "smithy.api#documentation": "

Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to \n \tbuild and test your image configuration. Instance configuration adds a layer \n \tof control over those instances. You can define settings and add scripts to \n \trun when an instance is launched from your AMI.

" } } }, @@ -4172,7 +4172,7 @@ "osVersion": { "target": "com.amazonaws.imagebuilder#OsVersion", "traits": { - "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n\t\t\tMicrosoft Windows Server 2019.

" + "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n Microsoft Windows Server 2019.

" } }, "state": { @@ -4267,54 +4267,54 @@ "arn": { "target": "com.amazonaws.imagebuilder#ImageBuilderArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a specific version of an Image Builder image.

\n\t\t \n\t\t\t

Semantic versioning is included in each object's Amazon Resource Name (ARN), \n\tat the level that applies to that object as follows:

\n\t
    \n
  1. \n\t\t\t

    Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are \n\t\t\t\teither left off entirely, or they are specified as wildcards, for example: x.x.x.

    \n\t\t
  2. \n
  3. \n\t\t\t

    Version ARNs have only the first three nodes: ..

    \n\t\t
  4. \n
  5. \n\t\t\t

    Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.

    \n\t\t
  6. \n
\n\t\t
" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image semantic version.

" } }, "name": { "target": "com.amazonaws.imagebuilder#ResourceName", "traits": { - "smithy.api#documentation": "

The name of this specific version of an Image Builder image.

" + "smithy.api#documentation": "

The name of the image semantic version.

" } }, "type": { "target": "com.amazonaws.imagebuilder#ImageType", "traits": { - "smithy.api#documentation": "

Specifies whether this image is an AMI or a container image.

" + "smithy.api#documentation": "

Specifies whether this is an AMI or container image.

" } }, "version": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

Details for a specific version of an Image Builder image. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" + "smithy.api#documentation": "

The semantic version of the image semantic version.

" } }, "platform": { "target": "com.amazonaws.imagebuilder#Platform", "traits": { - "smithy.api#documentation": "

The platform of the image version, for example \"Windows\" or \"Linux\".

" + "smithy.api#documentation": "

The platform of the image semantic version.

" } }, "osVersion": { "target": "com.amazonaws.imagebuilder#OsVersion", "traits": { - "smithy.api#documentation": "

The operating system version of the Amazon EC2 build instance. For example, Amazon Linux 2, Ubuntu 18, or\n\t\t\tMicrosoft Windows Server 2019.

" + "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n Microsoft Windows Server 2019.

" } }, "owner": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The owner of the image version.

" + "smithy.api#documentation": "

The owner of the image semantic version.

" } }, "dateCreated": { "target": "com.amazonaws.imagebuilder#DateTime", "traits": { - "smithy.api#documentation": "

The date on which this specific version of the Image Builder image was created.

" + "smithy.api#documentation": "

The date at which this image semantic version was created.

" } } }, "traits": { - "smithy.api#documentation": "

The defining characteristics of a specific version of an Image Builder image.

" + "smithy.api#documentation": "

An image semantic version.

" } }, "com.amazonaws.imagebuilder#ImageVersionArn": { @@ -4397,7 +4397,7 @@ "semanticVersion": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the component. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
", + "smithy.api#documentation": "

The semantic version of the component. This version follows the semantic version syntax.\n For example, major.minor.patch. This could be versioned like software (2.0.1) or like a date\n (2019.12.01).

", "smithy.api#required": {} } }, @@ -4410,13 +4410,13 @@ "changeDescription": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The change description of the component. Describes what change has been made in this\n\t\t\tversion, or what makes this version different from other versions of this component.

" + "smithy.api#documentation": "

The change description of the component. Describes what change has been made in this\n version, or what makes this version different from other versions of this component.

" } }, "type": { "target": "com.amazonaws.imagebuilder#ComponentType", "traits": { - "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image, or only\n\t\t\tto test it.

", + "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n to test it.

", "smithy.api#required": {} } }, @@ -4437,13 +4437,13 @@ "data": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The data of the component. Used to specify the data inline. Either data or\n\t\t\turi can be used to specify the data within the component.

" + "smithy.api#documentation": "

The data of the component. Used to specify the data inline. Either data or\n uri can be used to specify the data within the component.

" } }, "uri": { "target": "com.amazonaws.imagebuilder#Uri", "traits": { - "smithy.api#documentation": "

The uri of the component. Must be an Amazon S3 URL and the requester must have permission to\n\t\t\taccess the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service\n\t\t\tquota. Either data or uri can be used to specify the data within the\n\t\t\tcomponent.

" + "smithy.api#documentation": "

The uri of the component. Must be an Amazon S3 URL and the requester must have permission to\n access the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service\n quota. Either data or uri can be used to specify the data within the\n component.

" } }, "kmsKeyId": { @@ -4551,7 +4551,7 @@ "terminateInstanceOnFailure": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

The terminate instance on failure configuration of the infrastructure\n\t\t\tconfiguration.

" + "smithy.api#documentation": "

The terminate instance on failure configuration of the infrastructure\n configuration.

" } }, "snsTopicArn": { @@ -4727,7 +4727,7 @@ "image": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AMI ID to use as the base image for a container build and test instance. If not specified, \n\t\t\tImage Builder will use the appropriate ECS-optimized AMI as a base image.

" + "smithy.api#documentation": "

The AMI ID to use as the base image for a container build and test instance. If not specified, \n Image Builder will use the appropriate ECS-optimized AMI as a base image.

" } }, "blockDeviceMappings": { @@ -4738,7 +4738,7 @@ } }, "traits": { - "smithy.api#documentation": "

Defines a custom source AMI and block device mapping configurations of an instance \n\t\t\tused for building and testing container images.

" + "smithy.api#documentation": "

Defines a custom source AMI and block device mapping configurations of an instance \n used for building and testing container images.

" } }, "com.amazonaws.imagebuilder#InstanceProfileNameType": { @@ -4781,7 +4781,7 @@ } }, "traits": { - "smithy.api#documentation": "

You have specified two or more mutually exclusive parameters. Review the error message for\n\t\t\tdetails.

", + "smithy.api#documentation": "

You have specified two or more mutually exclusive parameters. Review the error message for\n details.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4794,7 +4794,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified parameter is invalid. Review the available parameters for the API\n\t\t\trequest.

", + "smithy.api#documentation": "

The specified parameter is invalid. Review the available parameters for the API\n request.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4855,7 +4855,7 @@ } }, "traits": { - "smithy.api#documentation": "

Describes the configuration for a launch permission. The launch permission modification request is sent to the \n\t\t\tAmazon EC2 ModifyImageAttribute \n\t\t\tAPI on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public, \n\t\t\tset the launch permission authorized accounts to all. See the examples for making an AMI public at \n\t\t\tAmazon EC2 ModifyImageAttribute.

" + "smithy.api#documentation": "

Describes the configuration for a launch permission. The launch permission modification request is sent to the \n Amazon EC2 ModifyImageAttribute \n API on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public, \n set the launch permission authorized accounts to all. See the examples for making an AMI public at \n Amazon EC2 ModifyImageAttribute.

" } }, "com.amazonaws.imagebuilder#LaunchTemplateConfiguration": { @@ -4953,7 +4953,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
", + "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

", "smithy.api#http": { "method": "POST", "uri": "/ListComponentBuildVersions", @@ -4986,7 +4986,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" } } } @@ -5009,7 +5009,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" } } } @@ -5046,7 +5046,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
", + "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

", "smithy.api#http": { "method": "POST", "uri": "/ListComponents", @@ -5065,7 +5065,7 @@ "owner": { "target": "com.amazonaws.imagebuilder#Ownership", "traits": { - "smithy.api#documentation": "

The owner defines which components you want to list. By default, this request will only\n\t\t\tshow components owned by your account. You can use this field to specify if you want to view\n\t\t\tcomponents owned by yourself, by Amazon, or those components that have been shared with you by\n\t\t\tother customers.

" + "smithy.api#documentation": "

The owner defines which components you want to list. By default, this request will only\n show components owned by your account. You can use this field to specify if you want to view\n components owned by yourself, by Amazon, or those components that have been shared with you by\n other customers.

" } }, "filters": { @@ -5077,7 +5077,7 @@ "byName": { "target": "com.amazonaws.imagebuilder#Boolean", "traits": { - "smithy.api#documentation": "

Returns the list of component build versions for the specified name.

" + "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

" } }, "maxResults": { @@ -5090,7 +5090,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" } } } @@ -5107,13 +5107,13 @@ "componentVersionList": { "target": "com.amazonaws.imagebuilder#ComponentVersionList", "traits": { - "smithy.api#documentation": "

The list of component semantic versions.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t
" + "smithy.api#documentation": "

The list of component semantic versions.

" } }, "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" } } } @@ -5267,7 +5267,7 @@ "filters": { "target": "com.amazonaws.imagebuilder#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n\t\t " + "smithy.api#documentation": "

The filters.

\n " } }, "maxResults": { @@ -5280,7 +5280,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" } } } @@ -5303,7 +5303,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" } } } @@ -5379,7 +5379,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" } } } @@ -5402,7 +5402,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" } } } @@ -5577,7 +5577,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" } } } @@ -5600,7 +5600,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" } } } @@ -5669,7 +5669,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" } } } @@ -5692,7 +5692,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" } } } @@ -5748,7 +5748,7 @@ "owner": { "target": "com.amazonaws.imagebuilder#Ownership", "traits": { - "smithy.api#documentation": "

The owner defines which image recipes you want to list. By default, this request will only\n\t\t\tshow image recipes owned by your account. You can use this field to specify if you want to\n\t\t\tview image recipes owned by yourself, by Amazon, or those image recipes that have been shared\n\t\t\twith you by other customers.

" + "smithy.api#documentation": "

The owner defines which image recipes you want to list. By default, this request will only\n show image recipes owned by your account. You can use this field to specify if you want to\n view image recipes owned by yourself, by Amazon, or those image recipes that have been shared\n with you by other customers.

" } }, "filters": { @@ -5767,7 +5767,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" } } } @@ -5790,7 +5790,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" } } } @@ -5846,7 +5846,7 @@ "owner": { "target": "com.amazonaws.imagebuilder#Ownership", "traits": { - "smithy.api#documentation": "

The owner defines which images you want to list. By default, this request will only show\n\t\t\timages owned by your account. You can use this field to specify if you want to view images\n\t\t\towned by yourself, by Amazon, or those images that have been shared with you by other\n\t\t\tcustomers.

" + "smithy.api#documentation": "

The owner defines which images you want to list. By default, this request will only show\n images owned by your account. You can use this field to specify if you want to view images\n owned by yourself, by Amazon, or those images that have been shared with you by other\n customers.

" } }, "filters": { @@ -5871,7 +5871,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" } }, "includeDeprecated": { @@ -5894,13 +5894,13 @@ "imageVersionList": { "target": "com.amazonaws.imagebuilder#ImageVersionList", "traits": { - "smithy.api#documentation": "

The list of image semantic versions.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" + "smithy.api#documentation": "

The list of image semantic versions.

" } }, "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" } } } @@ -5969,7 +5969,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" } } } @@ -5992,7 +5992,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" } } } @@ -6226,7 +6226,7 @@ } ], "traits": { - "smithy.api#documentation": "

Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n\t\t\tPutComponentPolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n\t\t\tall principals with whom the resource is shared.

", + "smithy.api#documentation": "

Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n PutComponentPolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n all principals with whom the resource is shared.

", "smithy.api#http": { "method": "PUT", "uri": "/PutComponentPolicy", @@ -6384,7 +6384,7 @@ } ], "traits": { - "smithy.api#documentation": "

Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n\t\t\tPutImagePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n\t\t\tall principals with whom the resource is shared.

", + "smithy.api#documentation": "

Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n PutImagePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n all principals with whom the resource is shared.

", "smithy.api#http": { "method": "PUT", "uri": "/PutImagePolicy", @@ -6463,7 +6463,7 @@ } ], "traits": { - "smithy.api#documentation": "

Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n\t\t\tPutImageRecipePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n\t\t\tall principals with whom the resource is shared.

", + "smithy.api#documentation": "

Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n PutImageRecipePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n all principals with whom the resource is shared.

", "smithy.api#http": { "method": "PUT", "uri": "/PutImageRecipePolicy", @@ -6534,7 +6534,7 @@ } }, "traits": { - "smithy.api#documentation": "

You have attempted to mutate or delete a resource with a dependency that prohibits this\n\t\t\taction. See the error message for more details.

", + "smithy.api#documentation": "

You have attempted to mutate or delete a resource with a dependency that prohibits this\n action. See the error message for more details.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -6547,7 +6547,7 @@ } }, "traits": { - "smithy.api#documentation": "

The resource that you are trying to operate on is currently in use. Review the message\n\t\t\tdetails and retry later.

", + "smithy.api#documentation": "

The resource that you are trying to operate on is currently in use. Review the message\n details and retry later.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -6630,19 +6630,19 @@ "scheduleExpression": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The cron expression determines how often EC2 Image Builder evaluates your\n\t\t\tpipelineExecutionStartCondition.

\n\t\t

For information on how to format a cron expression in Image Builder, see Use cron\n\t\t\texpressions in EC2 Image Builder.

" + "smithy.api#documentation": "

The cron expression determines how often EC2 Image Builder evaluates your\n pipelineExecutionStartCondition.

\n

For information on how to format a cron expression in Image Builder, see Use cron\n expressions in EC2 Image Builder.

" } }, "timezone": { "target": "com.amazonaws.imagebuilder#Timezone", "traits": { - "smithy.api#documentation": "

The timezone that applies to the scheduling expression. For example, \"Etc/UTC\", \n\t\t\t\"America/Los_Angeles\" in the IANA \n\t\t\t\ttimezone format. If not specified this defaults to UTC.

" + "smithy.api#documentation": "

The timezone that applies to the scheduling expression. For example, \"Etc/UTC\", \n \"America/Los_Angeles\" in the IANA \n timezone format. If not specified this defaults to UTC.

" } }, "pipelineExecutionStartCondition": { "target": "com.amazonaws.imagebuilder#PipelineExecutionStartCondition", "traits": { - "smithy.api#documentation": "

The condition configures when the pipeline should trigger a new image build. When the\n\t\t\tpipelineExecutionStartCondition is set to\n\t\t\tEXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, and you use semantic version\n\t\t\tfilters on the source image or components in your image recipe, EC2 Image Builder will build a\n\t\t\tnew image only when there are new versions of the image or components in your recipe that\n\t\t\tmatch the semantic version filter. When it is set to EXPRESSION_MATCH_ONLY, it\n\t\t\twill build a new image every time the CRON expression matches the current time. For semantic\n\t\t\tversion syntax, see CreateComponent in the EC2 Image Builder API\n\t\t\t\t\tReference.

" + "smithy.api#documentation": "

The condition configures when the pipeline should trigger a new image build. When the\n pipelineExecutionStartCondition is set to\n EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, and you use semantic version\n filters on the source image or components in your image recipe, EC2 Image Builder will build a\n new image only when there are new versions of the image or components in your recipe that\n match the semantic version filter. When it is set to EXPRESSION_MATCH_ONLY, it\n will build a new image every time the CRON expression matches the current time. For semantic\n version syntax, see CreateComponent in the EC2 Image Builder API\n Reference.

" } } }, @@ -6802,7 +6802,7 @@ "uninstallAfterBuild": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Controls whether the SSM agent is removed from your final build image, prior to creating \n\t\t\tthe new AMI. If this is set to true, then the agent is removed from the final image. If it's \n\t\t\tset to false, then the agent is left in, so that it is included in the new AMI. The default \n\t\t\tvalue is false.

" + "smithy.api#documentation": "

This property defaults to true. If Image Builder installs the SSM agent on a build \n\t\t\tinstance, it removes the agent before creating a snapshot for the AMI. To ensure that the AMI you create includes the SSM agent, set this property to false.

" } } }, @@ -7031,7 +7031,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates a new distribution configuration. Distribution configurations define and\n\t\t\tconfigure the outputs of your pipeline.

", + "smithy.api#documentation": "

Updates a new distribution configuration. Distribution configurations define and\n configure the outputs of your pipeline.

", "smithy.api#http": { "method": "PUT", "uri": "/UpdateDistributionConfiguration", @@ -7090,7 +7090,7 @@ "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that was updated by this\n\t\t\trequest.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that was updated by this\n request.

" } } } @@ -7130,7 +7130,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates an image pipeline. Image pipelines enable you to automate the creation and\n\t\t\tdistribution of images.

\n\t\t \n

UpdateImagePipeline does not support selective updates for the pipeline. \n\t\t\tYou must specify all of the required properties in the update request, not just \n\t\t\tthe properties that have changed.

\n
", + "smithy.api#documentation": "

Updates an image pipeline. Image pipelines enable you to automate the creation and\n distribution of images.

\n \t \n

UpdateImagePipeline does not support selective updates for the pipeline. \n \t\tYou must specify all of the required properties in the update request, not just \n \t\tthe properties that have changed.

\n
", "smithy.api#http": { "method": "PUT", "uri": "/UpdateImagePipeline", @@ -7157,7 +7157,7 @@ "imageRecipeArn": { "target": "com.amazonaws.imagebuilder#ImageRecipeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images\n\t\t\tupdated by this image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images\n updated by this image pipeline.

" } }, "containerRecipeArn": { @@ -7169,14 +7169,14 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to\n\t\t\tbuild images updated by this image pipeline.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to\n build images updated by this image pipeline.

", "smithy.api#required": {} } }, "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that will be used to\n\t\t\tconfigure and distribute images updated by this image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that will be used to\n configure and distribute images updated by this image pipeline.

" } }, "imageTestsConfiguration": { @@ -7188,7 +7188,7 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" } }, "schedule": { @@ -7271,7 +7271,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates a new infrastructure configuration. An infrastructure configuration defines the\n\t\t\tenvironment in which your image will be built and tested.

", + "smithy.api#documentation": "

Updates a new infrastructure configuration. An infrastructure configuration defines the\n environment in which your image will be built and tested.

", "smithy.api#http": { "method": "PUT", "uri": "/UpdateInfrastructureConfiguration", @@ -7285,7 +7285,7 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that you want to\n\t\t\tupdate.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that you want to\n update.

", "smithy.api#required": {} } }, @@ -7298,7 +7298,7 @@ "instanceTypes": { "target": "com.amazonaws.imagebuilder#InstanceTypeList", "traits": { - "smithy.api#documentation": "

The instance types of the infrastructure configuration. You can specify one or more\n\t\t\tinstance types to use for this build. The service will pick one of these instance types based\n\t\t\ton availability.

" + "smithy.api#documentation": "

The instance types of the infrastructure configuration. You can specify one or more\n instance types to use for this build. The service will pick one of these instance types based\n on availability.

" } }, "instanceProfileName": { @@ -7329,13 +7329,13 @@ "keyPair": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The key pair of the infrastructure configuration. This can be used to log on to and debug\n\t\t\tthe instance used to create your image.

" + "smithy.api#documentation": "

The key pair of the infrastructure configuration. This can be used to log on to and debug\n the instance used to create your image.

" } }, "terminateInstanceOnFailure": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

The terminate instance on failure setting of the infrastructure configuration. Set to\n\t\t\tfalse if you want Image Builder to retain the instance used to configure your AMI if the build\n\t\t\tor test phase of your workflow fails.

" + "smithy.api#documentation": "

The terminate instance on failure setting of the infrastructure configuration. Set to\n false if you want Image Builder to retain the instance used to configure your AMI if the build\n or test phase of your workflow fails.

" } }, "snsTopicArn": { @@ -7378,7 +7378,7 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that was updated by\n\t\t\tthis request.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that was updated by\n this request.

" } } } diff --git a/codegen/sdk-codegen/aws-models/iot.2015-05-28.json b/codegen/sdk-codegen/aws-models/iot.2015-05-28.json index 08c723c52f3..f301680d9fc 100644 --- a/codegen/sdk-codegen/aws-models/iot.2015-05-28.json +++ b/codegen/sdk-codegen/aws-models/iot.2015-05-28.json @@ -880,7 +880,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-z]{4,9}-\\d{1}:\\d{12}:certificate/[a-zA-Z0-9/-]+$" + "smithy.api#pattern": "arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-z]{4,9}-\\d{1}:\\d{12}:certificate/[a-zA-Z0-9/-]+" } }, "com.amazonaws.iot#Action": { @@ -1631,7 +1631,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches the specified policy to the specified principal (certificate or other\n credential).

", + "smithy.api#documentation": "

Attaches a policy to the specified target.

", "smithy.api#http": { "method": "PUT", "uri": "/target-policies/{policyName}", @@ -1861,7 +1861,7 @@ "min": 0, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_.,@/:#-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_.,@/:#-]+" } }, "com.amazonaws.iot#AttributePayload": { @@ -1891,7 +1891,7 @@ "min": 0, "max": 800 }, - "smithy.api#pattern": "^[a-zA-Z0-9_.,@/:#-]*$" + "smithy.api#pattern": "[a-zA-Z0-9_.,@/:#-]*" } }, "com.amazonaws.iot#Attributes": { @@ -2047,7 +2047,7 @@ "min": 0, "max": 1000 }, - "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" + "smithy.api#pattern": "[\\p{Graph}\\x20]*" } }, "com.amazonaws.iot#AuditDetails": { @@ -2471,7 +2471,7 @@ "min": 1, "max": 40 }, - "smithy.api#pattern": "^[a-zA-Z0-9\\-]+$" + "smithy.api#pattern": "[a-zA-Z0-9\\-]+" } }, "com.amazonaws.iot#AuditTaskMetadata": { @@ -2748,7 +2748,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[\\w=,@-]+$" + "smithy.api#pattern": "[\\w=,@-]+" } }, "com.amazonaws.iot#AuthorizerStatus": { @@ -2817,7 +2817,7 @@ "min": 12, "max": 12 }, - "smithy.api#pattern": "^[0-9]+$" + "smithy.api#pattern": "[0-9]+" } }, "com.amazonaws.iot#AwsArn": { @@ -3245,7 +3245,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#Behaviors": { @@ -3270,7 +3270,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" + "smithy.api#pattern": "[\\p{Graph}\\x20]*" } }, "com.amazonaws.iot#BillingGroupId": { @@ -3280,7 +3280,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9\\-]+$" + "smithy.api#pattern": "[a-zA-Z0-9\\-]+" } }, "com.amazonaws.iot#BillingGroupMetadata": { @@ -3304,7 +3304,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#BillingGroupNameAndArnList": { @@ -4047,7 +4047,7 @@ "min": 64, "max": 64 }, - "smithy.api#pattern": "^(0x)?[a-fA-F0-9]+$" + "smithy.api#pattern": "(0x)?[a-fA-F0-9]+" } }, "com.amazonaws.iot#CertificateMode": { @@ -4194,7 +4194,7 @@ "min": 2, "max": 43 }, - "smithy.api#pattern": "^[a-fA-F0-9:\\.\\/]+$" + "smithy.api#pattern": "[a-fA-F0-9:\\.\\/]+" } }, "com.amazonaws.iot#Cidrs": { @@ -4450,7 +4450,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "^[^\\p{C}]+$" + "smithy.api#pattern": "[^\\p{C}]+" } }, "com.amazonaws.iot#ComparisonOperator": { @@ -7301,7 +7301,7 @@ "smithy.api#box": {}, "smithy.api#range": { "min": 900, - "max": 43200 + "max": 3600 } } }, @@ -7347,7 +7347,7 @@ "min": 0, "max": 128 }, - "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" + "smithy.api#pattern": "[\\p{Graph}\\x20]*" } }, "com.amazonaws.iot#CustomMetricType": { @@ -11962,7 +11962,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#DetailsMap": { @@ -11980,7 +11980,7 @@ "smithy.api#length": { "min": 1 }, - "smithy.api#pattern": "^[^\\p{C}]+$" + "smithy.api#pattern": "[^\\p{C}]+" } }, "com.amazonaws.iot#DetectMitigationActionExecution": { @@ -12268,7 +12268,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#DimensionNames": { @@ -12384,7 +12384,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[\\w.-]+$" + "smithy.api#pattern": "[\\w.-]+" } }, "com.amazonaws.iot#DomainConfigurationStatus": { @@ -12677,7 +12677,7 @@ "com.amazonaws.iot#ElasticsearchEndpoint": { "type": "string", "traits": { - "smithy.api#pattern": "^https?://" + "smithy.api#pattern": "https?://.*" } }, "com.amazonaws.iot#ElasticsearchId": { @@ -12811,7 +12811,7 @@ "com.amazonaws.iot#EvaluationStatistic": { "type": "string", "traits": { - "smithy.api#pattern": "^(p0|p0\\.1|p0\\.01|p1|p10|p50|p90|p99|p99\\.9|p99\\.99|p100)$" + "smithy.api#pattern": "(p0|p0\\.1|p0\\.01|p1|p10|p50|p90|p99|p99\\.9|p99\\.99|p100)" } }, "com.amazonaws.iot#EventConfigurations": { @@ -13064,7 +13064,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#FindingIds": { @@ -13116,7 +13116,7 @@ "com.amazonaws.iot#FirehoseSeparator": { "type": "string", "traits": { - "smithy.api#pattern": "^([\\n\\t])|(\\r\\n)|(,)$" + "smithy.api#pattern": "([\\n\\t])|(\\r\\n)|(,)" } }, "com.amazonaws.iot#Flag": { @@ -14518,7 +14518,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#IndexNamesList": { @@ -14927,7 +14927,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "^[^\\p{C}]+$" + "smithy.api#pattern": "[^\\p{C}]+" } }, "com.amazonaws.iot#JobDocument": { @@ -15215,7 +15215,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#JobProcessDetails": { @@ -15393,7 +15393,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#JobTemplateSummary": { @@ -15488,7 +15488,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#KeyPair": { @@ -20410,7 +20410,7 @@ "min": 0, "max": 1024 }, - "smithy.api#pattern": "^[A-Za-z0-9+/]+={0,2}$" + "smithy.api#pattern": "[A-Za-z0-9+/]+={0,2}" } }, "com.amazonaws.iot#MaxJobExecutionsPerMin": { @@ -20506,7 +20506,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#MetricNames": { @@ -20684,7 +20684,7 @@ "min": 0, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#MitigationActionNameList": { @@ -20781,7 +20781,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#ModelStatus": { @@ -20863,7 +20863,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#NextToken": { @@ -20960,7 +20960,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "^[^\\p{C}]+$" + "smithy.api#pattern": "[^\\p{C}]+" } }, "com.amazonaws.iot#OTAUpdateErrorMessage": { @@ -21032,7 +21032,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#OTAUpdateInfo": { @@ -21392,7 +21392,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[\\w+=,.@-]+$" + "smithy.api#pattern": "[\\w+=,.@-]+" } }, "com.amazonaws.iot#PolicyNames": { @@ -21450,7 +21450,7 @@ "com.amazonaws.iot#PolicyVersionId": { "type": "string", "traits": { - "smithy.api#pattern": "^[0-9]+$" + "smithy.api#pattern": "[0-9]+" } }, "com.amazonaws.iot#PolicyVersionIdentifier": { @@ -21534,7 +21534,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9]+$" + "smithy.api#pattern": "[a-zA-Z0-9]+" } }, "com.amazonaws.iot#Principals": { @@ -21861,7 +21861,7 @@ "min": 0, "max": 128 }, - "smithy.api#pattern": "^[\\p{Upper}\\p{Digit}_]+$" + "smithy.api#pattern": "[\\p{Upper}\\p{Digit}_]+" } }, "com.amazonaws.iot#ReasonForNonCompliance": { @@ -22266,7 +22266,7 @@ "min": 64, "max": 64 }, - "smithy.api#pattern": "^(0x)?[a-fA-F0-9]+$" + "smithy.api#pattern": "(0x)?[a-fA-F0-9]+" } }, "com.amazonaws.iot#RegistrationCodeValidationException": { @@ -22322,7 +22322,7 @@ "min": 3, "max": 256 }, - "smithy.api#pattern": "^[a-zA-Z0-9._-]+$" + "smithy.api#pattern": "[a-zA-Z0-9._-]+" } }, "com.amazonaws.iot#RegistryS3KeyName": { @@ -22332,7 +22332,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "^[a-zA-Z0-9!_.*'()-\\/]+$" + "smithy.api#pattern": "[a-zA-Z0-9!_.*'()-\\/]+" } }, "com.amazonaws.iot#RejectCertificateTransfer": { @@ -22704,7 +22704,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[\\w.:-]+$" + "smithy.api#pattern": "[\\w.:-]+" } }, "com.amazonaws.iot#Resource": { @@ -22899,7 +22899,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[\\w=,@-]+$" + "smithy.api#pattern": "[\\w=,@-]+" } }, "com.amazonaws.iot#RoleAliasArn": { @@ -23146,7 +23146,7 @@ "min": 0, "max": 2000 }, - "smithy.api#pattern": "^https://ingestion-[a-zA-Z0-9]{1,12}\\.[a-zA-Z0-9]+\\.((sfdc-matrix\\.net)|(sfdcnow\\.com))/streams/\\w{1,20}/\\w{1,20}/event$" + "smithy.api#pattern": "https://ingestion-[a-zA-Z0-9]{1,12}\\.[a-zA-Z0-9]+\\.((sfdc-matrix\\.net)|(sfdcnow\\.com))/streams/\\w{1,20}/\\w{1,20}/event" } }, "com.amazonaws.iot#SalesforceToken": { @@ -23211,7 +23211,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#SearchIndex": { @@ -23347,7 +23347,7 @@ "min": 0, "max": 1000 }, - "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" + "smithy.api#pattern": "[\\p{Graph}\\x20]*" } }, "com.amazonaws.iot#SecurityProfileIdentifier": { @@ -23385,7 +23385,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#SecurityProfileTarget": { @@ -24550,7 +24550,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "^[^\\p{C}]+$" + "smithy.api#pattern": "[^\\p{C}]+" } }, "com.amazonaws.iot#StreamFile": { @@ -24592,7 +24592,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#StreamInfo": { @@ -25062,7 +25062,7 @@ "min": 0, "max": 500 }, - "smithy.api#pattern": "^[^\\p{C}]*$" + "smithy.api#pattern": "[^\\p{C}]*" } }, "com.amazonaws.iot#TemplateName": { @@ -25441,7 +25441,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" + "smithy.api#pattern": "[\\p{Graph}\\x20]*" } }, "com.amazonaws.iot#ThingGroupDocument": { @@ -25495,7 +25495,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9\\-]+$" + "smithy.api#pattern": "[a-zA-Z0-9\\-]+" } }, "com.amazonaws.iot#ThingGroupIndexingConfiguration": { @@ -25579,7 +25579,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#ThingGroupNameAndArnList": { @@ -25688,7 +25688,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#ThingNameList": { @@ -25739,7 +25739,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" + "smithy.api#pattern": "[\\p{Graph}\\x20]*" } }, "com.amazonaws.iot#ThingTypeId": { @@ -25784,7 +25784,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9:_-]+" } }, "com.amazonaws.iot#ThingTypeProperties": { @@ -26002,7 +26002,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + "smithy.api#pattern": "[a-zA-Z0-9_-]+" } }, "com.amazonaws.iot#TokenSignature": { @@ -26012,7 +26012,7 @@ "min": 1, "max": 2560 }, - "smithy.api#pattern": "^[A-Za-z0-9+/]+={0,2}$" + "smithy.api#pattern": "[A-Za-z0-9+/]+={0,2}" } }, "com.amazonaws.iot#Topic": { @@ -28724,7 +28724,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9\\-]+$" + "smithy.api#pattern": "[a-zA-Z0-9\\-]+" } }, "com.amazonaws.iot#VpcDestinationConfiguration": { diff --git a/codegen/sdk-codegen/aws-models/iotanalytics.2017-11-27.json b/codegen/sdk-codegen/aws-models/iotanalytics.2017-11-27.json index f86a2831022..573fcbc5fc4 100644 --- a/codegen/sdk-codegen/aws-models/iotanalytics.2017-11-27.json +++ b/codegen/sdk-codegen/aws-models/iotanalytics.2017-11-27.json @@ -148,7 +148,7 @@ "name": "iotanalytics" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

IoT Analytics allows you to collect large amounts of device data, process messages, and store them. \n You can then query the data and run sophisticated analytics on it. IoT Analytics enables advanced \n data exploration through integration with Jupyter Notebooks and data visualization through integration \n with Amazon QuickSight.

\n\n

Traditional analytics and business intelligence tools are designed to process structured data. IoT data \n often comes from devices that record noisy processes (such as temperature, motion, or sound). As a result \n the data from these devices can have significant gaps, corrupted messages, and false readings that must be \n cleaned up before analysis can occur. Also, IoT data is often only meaningful in the context of other data \n from external sources.

\n\n

IoT Analytics automates the steps required to analyze data from IoT devices. IoT Analytics \n filters, transforms, and enriches IoT data before storing it in a time-series data store for analysis. You \n can set up the service to collect only the data you need from your devices, apply mathematical transforms \n to process the data, and enrich the data with device-specific metadata such as device type and location \n before storing it. Then, you can analyze your data by running queries using the built-in SQL query engine, \n or perform more complex analytics and machine learning inference. IoT Analytics includes pre-built models \n for common IoT use cases so you can answer questions like which devices are about to fail or which customers \n are at risk of abandoning their wearable devices.

", + "smithy.api#documentation": "

AWS IoT Analytics allows you to collect large amounts of device data, process messages, and store them. \n You can then query the data and run sophisticated analytics on it. AWS IoT Analytics enables advanced \n data exploration through integration with Jupyter Notebooks and data visualization through integration \n with Amazon QuickSight.

\n\n

Traditional analytics and business intelligence tools are designed to process structured data. IoT data \n often comes from devices that record noisy processes (such as temperature, motion, or sound). As a result \n the data from these devices can have significant gaps, corrupted messages, and false readings that must be \n cleaned up before analysis can occur. Also, IoT data is often only meaningful in the context of other data \n from external sources.

\n\n

AWS IoT Analytics automates the steps required to analyze data from IoT devices. AWS IoT Analytics \n filters, transforms, and enriches IoT data before storing it in a time-series data store for analysis. You \n can set up the service to collect only the data you need from your devices, apply mathematical transforms \n to process the data, and enrich the data with device-specific metadata such as device type and location \n before storing it. Then, you can analyze your data by running queries using the built-in SQL query engine, \n or perform more complex analytics and machine learning inference. AWS IoT Analytics includes pre-built models \n for common IoT use cases so you can answer questions like which devices are about to fail or which customers \n are at risk of abandoning their wearable devices.

", "smithy.api#title": "AWS IoT Analytics" } }, @@ -314,7 +314,7 @@ "messages": { "target": "com.amazonaws.iotanalytics#Messages", "traits": { - "smithy.api#documentation": "

The list of messages to be sent. Each message has the format: { \"messageId\": \"string\",\n \"payload\": \"string\"}.

\n

The field names of message payloads (data) that you send to IoT Analytics:

\n \n

For example, {\"temp_01\": 29} or {\"_temp_01\": 29} are valid, but {\"temp-01\": 29},\n {\"01_temp\": 29} or {\"__temp_01\": 29} are invalid in message payloads.

", + "smithy.api#documentation": "

The list of messages to be sent. Each message has the format: { \"messageId\": \"string\",\n \"payload\": \"string\"}.

\n

The field names of message payloads (data) that you send to AWS IoT Analytics:

\n \n

For example, {\"temp_01\": 29} or {\"_temp_01\": 29} are valid, but {\"temp-01\": 29},\n {\"01_temp\": 29} or {\"__temp_01\": 29} are invalid in message payloads.

", "smithy.api#required": {} } } @@ -422,7 +422,7 @@ "storage": { "target": "com.amazonaws.iotanalytics#ChannelStorage", "traits": { - "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You can't change this storage option after the channel is\n created.

" + "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the channel is\n created.

" } }, "arn": { @@ -458,7 +458,7 @@ "lastMessageArrivalTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time when a new message arrived in the channel.

\n

IoT Analytics updates this value at most once per minute for one channel. Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" + "smithy.api#documentation": "

The last time when a new message arrived in the channel.

\n

AWS IoT Analytics updates this value at most once per minute for one channel. \n Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" } } }, @@ -503,7 +503,7 @@ "s3Paths": { "target": "com.amazonaws.iotanalytics#S3PathChannelMessages", "traits": { - "smithy.api#documentation": "

Specifies one or more keys that identify the Amazon Simple Storage Service (Amazon S3) objects that save your\n channel messages.

\n

You must use the full path for the key.

\n

Example path: channel/mychannel/__dt=2020-02-29\n 00:00:00/1582940490000_1582940520000_123456789012_mychannel_0_2118.0.json.gz\n

" + "smithy.api#documentation": "

Specifies one or more keys that identify the Amazon Simple Storage Service (Amazon S3) objects that save your\n channel messages.

\n

You must use the full path for the key.

\n

Example path: channel/mychannel/__dt=2020-02-29 00:00:00/1582940490000_1582940520000_123456789012_mychannel_0_2118.0.json.gz\n

" } } }, @@ -518,7 +518,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^(^(?!_{2}))(^[a-zA-Z0-9_]+$)$" + "smithy.api#pattern": "^[a-zA-Z0-9_]+$" } }, "com.amazonaws.iotanalytics#ChannelStatistics": { @@ -560,18 +560,18 @@ "serviceManagedS3": { "target": "com.amazonaws.iotanalytics#ServiceManagedChannelS3Storage", "traits": { - "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by IoT Analytics. You can't change the choice\n of S3 storage after the data store is created.

" + "smithy.api#documentation": "

Use this to store channel data in an S3 bucket managed by AWS IoT Analytics. You cannot\n change the choice of service-managed or customer-managed S3 storage after the channel is\n created.

" } }, "customerManagedS3": { "target": "com.amazonaws.iotanalytics#CustomerManagedChannelS3Storage", "traits": { - "smithy.api#documentation": "

Used to store channel data in an S3 bucket that you manage. If customer managed storage is\n selected, the retentionPeriod parameter is ignored. You can't change the choice\n of S3 storage after the data store is created.

" + "smithy.api#documentation": "

Use this to store channel data in an S3 bucket that you manage. If customer managed\n storage is selected, the retentionPeriod parameter is ignored. You cannot change\n the choice of service-managed or customer-managed S3 storage after the channel is\n created.

" } } }, "traits": { - "smithy.api#documentation": "

Where channel data is stored. You may choose one of serviceManagedS3,\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. This can't be changed after creation of the channel.

" + "smithy.api#documentation": "

Where channel data is stored. You may choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. This cannot be changed after creation of the channel.

" } }, "com.amazonaws.iotanalytics#ChannelStorageSummary": { @@ -580,7 +580,7 @@ "serviceManagedS3": { "target": "com.amazonaws.iotanalytics#ServiceManagedChannelS3StorageSummary", "traits": { - "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by IoT Analytics.

" + "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by AWS IoT Analytics.

" } }, "customerManagedS3": { @@ -636,7 +636,7 @@ "lastMessageArrivalTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time when a new message arrived in the channel.

\n

IoT Analytics updates this value at most once per minute for one channel. Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" + "smithy.api#documentation": "

The last time when a new message arrived in the channel.

\n

AWS IoT Analytics updates this value at most once per minute for one channel. \n Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" } } }, @@ -657,7 +657,7 @@ "type": { "target": "com.amazonaws.iotanalytics#ColumnDataType", "traits": { - "smithy.api#documentation": "

The type of data. For more information about the supported data types, see Common data types\n in the Glue Developer Guide.

", + "smithy.api#documentation": "

The type of data. For more information about the supported data types, see Common data types\n in the AWS Glue Developer Guide.

", "smithy.api#required": {} } } @@ -771,7 +771,7 @@ } ], "traits": { - "smithy.api#documentation": "

Used to create a channel. A channel collects data from an MQTT topic and archives the raw,\n unprocessed messages before publishing the data to a pipeline.

", + "smithy.api#documentation": "

Creates a channel. A channel collects data from an MQTT topic and archives the raw,\n unprocessed messages before publishing the data to a pipeline.

", "smithy.api#http": { "method": "POST", "uri": "/channels", @@ -792,7 +792,7 @@ "channelStorage": { "target": "com.amazonaws.iotanalytics#ChannelStorage", "traits": { - "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You can't change this storage option after the channel is\n created.

" + "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the channel is\n created.

" } }, "retentionPeriod": { @@ -861,7 +861,7 @@ } ], "traits": { - "smithy.api#documentation": "

Used to create a dataset. A dataset stores data retrieved from a data store by applying a\n queryAction (a SQL query) or a containerAction (executing a\n containerized application). This operation creates the skeleton of a dataset. The dataset can\n be populated manually by calling CreateDatasetContent or automatically according\n to a trigger you specify.

", + "smithy.api#documentation": "

Creates a dataset. A dataset stores data retrieved from a data store by applying a\n queryAction (a SQL query) or a containerAction (executing a\n containerized application). This operation creates the skeleton of a dataset. The dataset can\n be populated manually by calling CreateDatasetContent or automatically according\n to a trigger you specify.

", "smithy.api#http": { "method": "POST", "uri": "/datasets", @@ -895,7 +895,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates the content of a dataset by applying a queryAction (a SQL query) or a\n containerAction (executing a containerized application).

", + "smithy.api#documentation": "

Creates the content of a data set by applying a queryAction (a SQL query) or\n a containerAction (executing a containerized application).

", "smithy.api#http": { "method": "POST", "uri": "/datasets/{datasetName}/content", @@ -939,21 +939,21 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the dataset.

", + "smithy.api#documentation": "

The name of the data set.

", "smithy.api#required": {} } }, "actions": { "target": "com.amazonaws.iotanalytics#DatasetActions", "traits": { - "smithy.api#documentation": "

A list of actions that create the dataset contents.

", + "smithy.api#documentation": "

A list of actions that create the data set contents.

", "smithy.api#required": {} } }, "triggers": { "target": "com.amazonaws.iotanalytics#DatasetTriggers", "traits": { - "smithy.api#documentation": "

A list of triggers. A trigger causes dataset contents to be populated at a specified time\n interval or when another dataset's contents are created. The list of triggers can be empty or\n contain up to five DataSetTrigger objects.

" + "smithy.api#documentation": "

A list of triggers. A trigger causes data set contents to be populated at a specified time\n interval or when another data set's contents are created. The list of triggers can be empty or\n contain up to five DataSetTrigger objects.

" } }, "contentDeliveryRules": { @@ -965,25 +965,25 @@ "retentionPeriod": { "target": "com.amazonaws.iotanalytics#RetentionPeriod", "traits": { - "smithy.api#documentation": "

Optional. How long, in days, versions of dataset contents are kept for the dataset. If not\n specified or set to null, versions of dataset contents are retained for at most\n 90 days. The number of versions of dataset contents retained is determined by the\n versioningConfiguration parameter. For more information, see \n Keeping Multiple Versions of IoT Analytics datasets in the\n IoT Analytics User Guide.

" + "smithy.api#documentation": "

Optional. How long, in days, versions of dataset contents are kept for the dataset. If not\n specified or set to null, versions of dataset contents are retained for at most\n 90 days. The number of versions of dataset contents retained is determined by the\n versioningConfiguration parameter. For more information, see Keeping Multiple Versions of AWS IoT Analytics Data Sets in the AWS IoT\n Analytics User Guide.

" } }, "versioningConfiguration": { "target": "com.amazonaws.iotanalytics#VersioningConfiguration", "traits": { - "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of IoT Analytics datasets in the\n IoT Analytics User Guide.

" + "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of AWS IoT Analytics Data Sets in the AWS IoT\n Analytics User Guide.

" } }, "tags": { "target": "com.amazonaws.iotanalytics#TagList", "traits": { - "smithy.api#documentation": "

Metadata which can be used to manage the dataset.

" + "smithy.api#documentation": "

Metadata which can be used to manage the data set.

" } }, "lateDataRules": { "target": "com.amazonaws.iotanalytics#LateDataRules", "traits": { - "smithy.api#documentation": "

A list of data rules that send notifications to CloudWatch, when data arrives late. To specify lateDataRules, the dataset must use a DeltaTimer filter.

" + "smithy.api#documentation": "

A list of data rules that send notifications to Amazon CloudWatch, when data arrives late. To\n specify lateDataRules, the dataset must use a DeltaTimer\n filter.

" } } } @@ -1040,7 +1040,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a data store, which is a repository for messages.

", + "smithy.api#documentation": "

Creates a data store, which is a repository for messages. \n Only data stores that are used to save pipeline data can be configured with ParquetConfiguration.

", "smithy.api#http": { "method": "POST", "uri": "/datastores", @@ -1061,7 +1061,7 @@ "datastoreStorage": { "target": "com.amazonaws.iotanalytics#DatastoreStorage", "traits": { - "smithy.api#documentation": "

Where data in a data store is stored.. You can choose serviceManagedS3 storage, customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created.

" + "smithy.api#documentation": "

Where data store data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the data store is\n created.

" } }, "retentionPeriod": { @@ -1079,13 +1079,13 @@ "fileFormatConfiguration": { "target": "com.amazonaws.iotanalytics#FileFormatConfiguration", "traits": { - "smithy.api#documentation": "

Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" + "smithy.api#documentation": "

Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON \n and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" } }, "datastorePartitions": { "target": "com.amazonaws.iotanalytics#DatastorePartitions", "traits": { - "smithy.api#documentation": "

Contains information about the partition dimensions in a data store.

" + "smithy.api#documentation": "

\n Contains information about the partitions in a data store.\n

" } } } @@ -1163,7 +1163,7 @@ "pipelineActivities": { "target": "com.amazonaws.iotanalytics#PipelineActivities", "traits": { - "smithy.api#documentation": "

A list of PipelineActivity objects. Activities perform transformations on\n your messages, such as removing, renaming or adding message attributes; filtering messages\n based on attribute values; invoking your Lambda unctions on messages for advanced processing;\n or performing mathematical transformations to normalize device data.

\n

The list can be 2-25 PipelineActivity objects and must contain both a\n channel and a datastore activity. Each entry in the list must\n contain only one activity. For example:

\n

\n pipelineActivities = [ { \"channel\": { ... } }, { \"lambda\": { ... } }, ...\n ]\n

", + "smithy.api#documentation": "

A list of PipelineActivity objects. Activities perform transformations on\n your messages, such as removing, renaming or adding message attributes; filtering messages\n based on attribute values; invoking your Lambda functions on messages for advanced processing;\n or performing mathematical transformations to normalize device data.

\n

The list can be 2-25 PipelineActivity objects and must contain both a\n channel and a datastore activity. Each entry in the list must\n contain only one activity. For example:

\n

\n pipelineActivities = [ { \"channel\": { ... } }, { \"lambda\": { ... } }, ...\n ]\n

", "smithy.api#required": {} } }, @@ -1205,19 +1205,19 @@ "keyPrefix": { "target": "com.amazonaws.iotanalytics#S3KeyPrefix", "traits": { - "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the channel data objects. Each object in\n an S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket\n has exactly one key. The prefix must end with a forward slash (/).

" + "smithy.api#documentation": "

Optional. The prefix used to create the keys of the channel data objects. Each object in\n an S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket\n has exactly one key. The prefix must end with a forward slash (/).

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3\n resources.

", + "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 resources.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Used to store channel data in an S3 bucket that you manage. If customer-managed storage is\n selected, the retentionPeriod parameter is ignored. You can't change the choice\n of S3 storage after the data store is created.

" + "smithy.api#documentation": "

Use this to store channel data in an S3 bucket that you manage. If customer managed\n storage is selected, the retentionPeriod parameter is ignored. You cannot change\n the choice of service-managed or customer-managed S3 storage after the channel is\n created.

" } }, "com.amazonaws.iotanalytics#CustomerManagedChannelS3StorageSummary": { @@ -1232,13 +1232,13 @@ "keyPrefix": { "target": "com.amazonaws.iotanalytics#S3KeyPrefix", "traits": { - "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the channel data objects. Each object in\n an S3 bucket has a key that is its unique identifier within the bucket (each object in a\n bucket has exactly one key). The prefix must end with a forward slash (/).

" + "smithy.api#documentation": "

Optional. The prefix used to create the keys of the channel data objects. Each object in\n an S3 bucket has a key that is its unique identifier within the bucket (each object in a\n bucket has exactly one key). The prefix must end with a forward slash (/).

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3\n resources.

" + "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 resources.

" } } }, @@ -1252,26 +1252,26 @@ "bucket": { "target": "com.amazonaws.iotanalytics#BucketName", "traits": { - "smithy.api#documentation": "

The name of the Amazon S3 bucket where your data is stored.

", + "smithy.api#documentation": "

The name of the S3 bucket in which data store data is stored.

", "smithy.api#required": {} } }, "keyPrefix": { "target": "com.amazonaws.iotanalytics#S3KeyPrefix", "traits": { - "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).

" + "smithy.api#documentation": "

Optional. The prefix used to create the keys of the data store data objects. Each object\n in an S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket\n has exactly one key. The prefix must end with a forward slash (/).

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3 resources.

", + "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 resources.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

S3-customer-managed; When you choose customer-managed storage, the retentionPeriod parameter is ignored. You can't change the choice of Amazon S3 storage after your data store is created.

" + "smithy.api#documentation": "

Use this to store data store data in an S3 bucket that you manage. When customer-managed\n storage is selected, the retentionPeriod parameter is ignored. You cannot change\n the choice of service-managed or customer-managed S3 storage after the data store is\n created.

" } }, "com.amazonaws.iotanalytics#CustomerManagedDatastoreS3StorageSummary": { @@ -1280,24 +1280,24 @@ "bucket": { "target": "com.amazonaws.iotanalytics#BucketName", "traits": { - "smithy.api#documentation": "

The name of the Amazon S3 bucket where your data is stored.

" + "smithy.api#documentation": "

The name of the S3 bucket in which data store data is stored.

" } }, "keyPrefix": { "target": "com.amazonaws.iotanalytics#S3KeyPrefix", "traits": { - "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).

" + "smithy.api#documentation": "

Optional. The prefix used to create the keys of the data store data objects. Each object\n in an S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket\n has exactly one key. The prefix must end with a forward slash (/).

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3 resources.

" + "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 resources.

" } } }, "traits": { - "smithy.api#documentation": "

Contains information about the data store that you manage.

" + "smithy.api#documentation": "

Used to store data store data in an S3 bucket that you manage.

" } }, "com.amazonaws.iotanalytics#Dataset": { @@ -1306,25 +1306,25 @@ "name": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the dataset.

" + "smithy.api#documentation": "

The name of the data set.

" } }, "arn": { "target": "com.amazonaws.iotanalytics#DatasetArn", "traits": { - "smithy.api#documentation": "

The ARN of the dataset.

" + "smithy.api#documentation": "

The ARN of the data set.

" } }, "actions": { "target": "com.amazonaws.iotanalytics#DatasetActions", "traits": { - "smithy.api#documentation": "

The DatasetAction objects that automatically create the dataset\n contents.

" + "smithy.api#documentation": "

The DatasetAction objects that automatically create the data set\n contents.

" } }, "triggers": { "target": "com.amazonaws.iotanalytics#DatasetTriggers", "traits": { - "smithy.api#documentation": "

The DatasetTrigger objects that specify when the dataset is automatically\n updated.

" + "smithy.api#documentation": "

The DatasetTrigger objects that specify when the data set is automatically\n updated.

" } }, "contentDeliveryRules": { @@ -1336,42 +1336,42 @@ "status": { "target": "com.amazonaws.iotanalytics#DatasetStatus", "traits": { - "smithy.api#documentation": "

The status of the dataset.

" + "smithy.api#documentation": "

The status of the data set.

" } }, "creationTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

When the dataset was created.

" + "smithy.api#documentation": "

When the data set was created.

" } }, "lastUpdateTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time the dataset was updated.

" + "smithy.api#documentation": "

The last time the data set was updated.

" } }, "retentionPeriod": { "target": "com.amazonaws.iotanalytics#RetentionPeriod", "traits": { - "smithy.api#documentation": "

Optional. How long, in days, message data is kept for the dataset.

" + "smithy.api#documentation": "

Optional. How long, in days, message data is kept for the data set.

" } }, "versioningConfiguration": { "target": "com.amazonaws.iotanalytics#VersioningConfiguration", "traits": { - "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see \n Keeping Multiple Versions of IoT Analytics datasets in the\n IoT Analytics User Guide.

" + "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of AWS IoT Analytics Data Sets in the AWS IoT\n Analytics User Guide.

" } }, "lateDataRules": { "target": "com.amazonaws.iotanalytics#LateDataRules", "traits": { - "smithy.api#documentation": "

A list of data rules that send notifications to CloudWatch, when data arrives late. To specify lateDataRules, the dataset must use a DeltaTimer filter.

" + "smithy.api#documentation": "

A list of data rules that send notifications to Amazon CloudWatch, when data arrives late. To\n specify lateDataRules, the dataset must use a DeltaTimer\n filter.

" } } }, "traits": { - "smithy.api#documentation": "

Information about a dataset.

" + "smithy.api#documentation": "

Information about a data set.

" } }, "com.amazonaws.iotanalytics#DatasetAction": { @@ -1380,13 +1380,13 @@ "actionName": { "target": "com.amazonaws.iotanalytics#DatasetActionName", "traits": { - "smithy.api#documentation": "

The name of the dataset action by which dataset contents are automatically created.

" + "smithy.api#documentation": "

The name of the data set action by which data set contents are automatically\n created.

" } }, "queryAction": { "target": "com.amazonaws.iotanalytics#SqlQueryDatasetAction", "traits": { - "smithy.api#documentation": "

An SqlQueryDatasetAction object that uses an SQL query to automatically\n create dataset contents.

" + "smithy.api#documentation": "

An SqlQueryDatasetAction object that uses an SQL query to automatically\n create data set contents.

" } }, "containerAction": { @@ -1397,7 +1397,7 @@ } }, "traits": { - "smithy.api#documentation": "

A DatasetAction object that specifies how dataset contents are automatically\n created.

" + "smithy.api#documentation": "

A DatasetAction object that specifies how data set contents are automatically\n created.

" } }, "com.amazonaws.iotanalytics#DatasetActionName": { @@ -1478,7 +1478,7 @@ "iotEventsDestinationConfiguration": { "target": "com.amazonaws.iotanalytics#IotEventsDestinationConfiguration", "traits": { - "smithy.api#documentation": "

Configuration information for delivery of dataset contents to IoT Events.

" + "smithy.api#documentation": "

Configuration information for delivery of dataset contents to AWS IoT Events.

" } }, "s3DestinationConfiguration": { @@ -1550,18 +1550,18 @@ "state": { "target": "com.amazonaws.iotanalytics#DatasetContentState", "traits": { - "smithy.api#documentation": "

The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, or\n FAILED.

" + "smithy.api#documentation": "

The state of the data set contents. Can be one of READY, CREATING, SUCCEEDED, or\n FAILED.

" } }, "reason": { "target": "com.amazonaws.iotanalytics#Reason", "traits": { - "smithy.api#documentation": "

The reason the dataset contents are in this state.

" + "smithy.api#documentation": "

The reason the data set contents are in this state.

" } } }, "traits": { - "smithy.api#documentation": "

The state of the dataset contents and the reason they are in this state.

" + "smithy.api#documentation": "

The state of the data set contents and the reason they are in this state.

" } }, "com.amazonaws.iotanalytics#DatasetContentSummaries": { @@ -1582,7 +1582,7 @@ "status": { "target": "com.amazonaws.iotanalytics#DatasetContentStatus", "traits": { - "smithy.api#documentation": "

The status of the dataset contents.

" + "smithy.api#documentation": "

The status of the data set contents.

" } }, "creationTime": { @@ -1644,18 +1644,18 @@ "entryName": { "target": "com.amazonaws.iotanalytics#EntryName", "traits": { - "smithy.api#documentation": "

The name of the dataset item.

" + "smithy.api#documentation": "

The name of the data set item.

" } }, "dataURI": { "target": "com.amazonaws.iotanalytics#PresignedURI", "traits": { - "smithy.api#documentation": "

The presigned URI of the dataset item.

" + "smithy.api#documentation": "

The presigned URI of the data set item.

" } } }, "traits": { - "smithy.api#documentation": "

The reference to a dataset entry.

" + "smithy.api#documentation": "

The reference to a data set entry.

" } }, "com.amazonaws.iotanalytics#DatasetName": { @@ -1665,7 +1665,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^(^(?!_{2}))(^[a-zA-Z0-9_]+$)$" + "smithy.api#pattern": "^[a-zA-Z0-9_]+$" } }, "com.amazonaws.iotanalytics#DatasetStatus": { @@ -1699,31 +1699,31 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the dataset.

" + "smithy.api#documentation": "

The name of the data set.

" } }, "status": { "target": "com.amazonaws.iotanalytics#DatasetStatus", "traits": { - "smithy.api#documentation": "

The status of the dataset.

" + "smithy.api#documentation": "

The status of the data set.

" } }, "creationTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The time the dataset was created.

" + "smithy.api#documentation": "

The time the data set was created.

" } }, "lastUpdateTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time the dataset was updated.

" + "smithy.api#documentation": "

The last time the data set was updated.

" } }, "triggers": { "target": "com.amazonaws.iotanalytics#DatasetTriggers", "traits": { - "smithy.api#documentation": "

A list of triggers. A trigger causes dataset content to be populated at a specified time\n interval or when another dataset is populated. The list of triggers can be empty or contain up\n to five DataSetTrigger objects

" + "smithy.api#documentation": "

A list of triggers. A trigger causes data set content to be populated at a specified time\n interval or when another data set is populated. The list of triggers can be empty or contain\n up to five DataSetTrigger objects

" } }, "actions": { @@ -1734,7 +1734,7 @@ } }, "traits": { - "smithy.api#documentation": "

A summary of information about a dataset.

" + "smithy.api#documentation": "

A summary of information about a data set.

" } }, "com.amazonaws.iotanalytics#DatasetTrigger": { @@ -1749,12 +1749,12 @@ "dataset": { "target": "com.amazonaws.iotanalytics#TriggeringDataset", "traits": { - "smithy.api#documentation": "

The dataset whose content creation triggers the creation of this dataset's\n contents.

" + "smithy.api#documentation": "

The data set whose content creation triggers the creation of this data set's\n contents.

" } } }, "traits": { - "smithy.api#documentation": "

The DatasetTrigger that specifies when the dataset is automatically\n updated.

" + "smithy.api#documentation": "

The DatasetTrigger that specifies when the data set is automatically\n updated.

" } }, "com.amazonaws.iotanalytics#DatasetTriggers": { @@ -1781,7 +1781,7 @@ "storage": { "target": "com.amazonaws.iotanalytics#DatastoreStorage", "traits": { - "smithy.api#documentation": "

Where data in a data store is stored.. You can choose serviceManagedS3 storage, customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created.

" + "smithy.api#documentation": "

Where data store data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the data store is\n created.

" } }, "arn": { @@ -1817,19 +1817,19 @@ "lastMessageArrivalTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time when a new message arrived in the data store.

\n

IoT Analytics updates this value at most once per minute for Amazon Simple Storage Service one data store. Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" + "smithy.api#documentation": "

The last time when a new message arrived in the data store.

\n

AWS IoT Analytics updates this value at most once per minute for one data store. \n Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" } }, "fileFormatConfiguration": { "target": "com.amazonaws.iotanalytics#FileFormatConfiguration", "traits": { - "smithy.api#documentation": "

Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" + "smithy.api#documentation": "

Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON \n and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" } }, "datastorePartitions": { "target": "com.amazonaws.iotanalytics#DatastorePartitions", "traits": { - "smithy.api#documentation": "

Contains information about the partition dimensions in a data store.

" + "smithy.api#documentation": "

\n Contains information about the partitions in a data store.\n

" } } }, @@ -1862,35 +1862,6 @@ "com.amazonaws.iotanalytics#DatastoreArn": { "type": "string" }, - "com.amazonaws.iotanalytics#DatastoreIotSiteWiseMultiLayerStorage": { - "type": "structure", - "members": { - "customerManagedS3Storage": { - "target": "com.amazonaws.iotanalytics#IotSiteWiseCustomerManagedDatastoreS3Storage", - "traits": { - "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. You can't change the choice of Amazon S3 storage after your data store is created.

" - } - }, - "com.amazonaws.iotanalytics#DatastoreIotSiteWiseMultiLayerStorageSummary": { - "type": "structure", - "members": { - "customerManagedS3Storage": { - "target": "com.amazonaws.iotanalytics#IotSiteWiseCustomerManagedDatastoreS3StorageSummary", - "traits": { - "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Contains information about the data store that you manage, which stores data used by IoT SiteWise.

" - } - }, "com.amazonaws.iotanalytics#DatastoreName": { "type": "string", "traits": { @@ -1898,7 +1869,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^(^(?!_{2}))(^[a-zA-Z0-9_]+$)$" + "smithy.api#pattern": "^[a-zA-Z0-9_]+$" } }, "com.amazonaws.iotanalytics#DatastorePartition": { @@ -1907,18 +1878,18 @@ "attributePartition": { "target": "com.amazonaws.iotanalytics#Partition", "traits": { - "smithy.api#documentation": "

A partition dimension defined by an attributeName.

" + "smithy.api#documentation": "

\n A partition defined by an attributeName.\n

" } }, "timestampPartition": { "target": "com.amazonaws.iotanalytics#TimestampPartition", "traits": { - "smithy.api#documentation": "

A partition dimension defined by a timestamp attribute.

" + "smithy.api#documentation": "

\n A partition defined by an attributeName and a timestamp format.\n

" } } }, "traits": { - "smithy.api#documentation": "

A single dimension to partition a data store. The dimension must be an\n AttributePartition or a TimestampPartition.

" + "smithy.api#documentation": "

\n A single partition in a data store.\n

" } }, "com.amazonaws.iotanalytics#DatastorePartitions": { @@ -1927,12 +1898,12 @@ "partitions": { "target": "com.amazonaws.iotanalytics#Partitions", "traits": { - "smithy.api#documentation": "

A list of partition dimensions in a data store.

" + "smithy.api#documentation": "

\n A list of partitions in a data store.\n

" } } }, "traits": { - "smithy.api#documentation": "

Contains information about the partition dimensions in a data store.

" + "smithy.api#documentation": "

\n Contains information about partitions in a data store.\n

" } }, "com.amazonaws.iotanalytics#DatastoreStatistics": { @@ -1974,24 +1945,18 @@ "serviceManagedS3": { "target": "com.amazonaws.iotanalytics#ServiceManagedDatastoreS3Storage", "traits": { - "smithy.api#documentation": "

Used to store data in an Amazon S3 bucket managed by IoT Analytics. You can't change the choice of Amazon S3 storage after your data store is created.

" + "smithy.api#documentation": "

Use this to store data store data in an S3 bucket managed by AWS IoT Analytics. You cannot\n change the choice of service-managed or customer-managed S3 storage after the data store is\n created.

" } }, "customerManagedS3": { "target": "com.amazonaws.iotanalytics#CustomerManagedDatastoreS3Storage", "traits": { - "smithy.api#documentation": "

S3-customer-managed; When you choose customer-managed storage, the retentionPeriod parameter is ignored. You can't change the choice of Amazon S3 storage after your data store is created.

" - } - }, - "iotSiteWiseMultiLayerStorage": { - "target": "com.amazonaws.iotanalytics#DatastoreIotSiteWiseMultiLayerStorage", - "traits": { - "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. You can't change the choice of Amazon S3 storage after your data store is created.

" + "smithy.api#documentation": "

Use this to store data store data in an S3 bucket that you manage. When customer managed\n storage is selected, the retentionPeriod parameter is ignored. The choice of\n service-managed or customer-managed S3 storage cannot be changed after creation of the data\n store.

" } } }, "traits": { - "smithy.api#documentation": "

Where data in a data store is stored.. You can choose serviceManagedS3 storage, customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created.

" + "smithy.api#documentation": "

Where data store data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the data store is\n created.

" } }, "com.amazonaws.iotanalytics#DatastoreStorageSummary": { @@ -2000,24 +1965,18 @@ "serviceManagedS3": { "target": "com.amazonaws.iotanalytics#ServiceManagedDatastoreS3StorageSummary", "traits": { - "smithy.api#documentation": "

Used to store data in an Amazon S3 bucket managed by IoT Analytics.

" + "smithy.api#documentation": "

Used to store data store data in an S3 bucket managed by AWS IoT Analytics.

" } }, "customerManagedS3": { "target": "com.amazonaws.iotanalytics#CustomerManagedDatastoreS3StorageSummary", "traits": { - "smithy.api#documentation": "

Used to store data in an Amazon S3 bucket managed by IoT Analytics.

" - } - }, - "iotSiteWiseMultiLayerStorage": { - "target": "com.amazonaws.iotanalytics#DatastoreIotSiteWiseMultiLayerStorageSummary", - "traits": { - "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.

" + "smithy.api#documentation": "

Used to store data store data in an S3 bucket that you manage.

" } } }, "traits": { - "smithy.api#documentation": "

Contains information about your data store.

" + "smithy.api#documentation": "

Where data store data is stored.

" } }, "com.amazonaws.iotanalytics#DatastoreSummaries": { @@ -2038,7 +1997,7 @@ "datastoreStorage": { "target": "com.amazonaws.iotanalytics#DatastoreStorageSummary", "traits": { - "smithy.api#documentation": "

Where data in a data store is stored.

" + "smithy.api#documentation": "

Where data store data is stored.

" } }, "status": { @@ -2062,7 +2021,7 @@ "lastMessageArrivalTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time when a new message arrived in the data store.

\n

IoT Analytics updates this value at most once per minute for Amazon Simple Storage Service one data store. Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" + "smithy.api#documentation": "

The last time when a new message arrived in the data store.

\n

AWS IoT Analytics updates this value at most once per minute for one data store. \n Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" } }, "fileFormatType": { @@ -2074,7 +2033,7 @@ "datastorePartitions": { "target": "com.amazonaws.iotanalytics#DatastorePartitions", "traits": { - "smithy.api#documentation": "

Contains information about the partition dimensions in a data store.

" + "smithy.api#documentation": "

\n Contains information about the partitions in a data store.\n

" } } }, @@ -2214,7 +2173,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the dataset to delete.

", + "smithy.api#documentation": "

The name of the data set to delete.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2337,13 +2296,13 @@ "timeoutInMinutes": { "target": "com.amazonaws.iotanalytics#SessionTimeoutInMinutes", "traits": { - "smithy.api#documentation": "

A time interval. You can use timeoutInMinutes so that IoT Analytics can batch up late\n data notifications that have been generated since the last execution. IoT Analytics sends one batch of\n notifications to Amazon CloudWatch Events at one time.

\n

For more information about how to write a timestamp expression, see Date and Time Functions and\n Operators, in the Presto 0.172 Documentation.

", + "smithy.api#documentation": "

A time interval. You can use timeoutInMinutes so that AWS IoT Analytics can batch up late\n data notifications that have been generated since the last execution. AWS IoT Analytics sends one batch of\n notifications to Amazon CloudWatch Events at one time.

\n

For more information about how to write a timestamp expression, see Date and Time Functions and\n Operators, in the Presto 0.172 Documentation.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

A structure that contains the configuration information of a delta time session\n window.

\n

\n \n DeltaTime\n specifies a time interval. You can use\n DeltaTime to create dataset contents with data that has arrived in the data\n store since the last execution. For an example of DeltaTime, see Creating\n a SQL dataset with a delta window (CLI) in the\n IoT Analytics User Guide.

" + "smithy.api#documentation": "

A structure that contains the configuration information of a delta time session\n window.

\n

\n \n DeltaTime\n specifies a time interval. You can use\n DeltaTime to create dataset contents with data that has arrived in the data\n store since the last execution. For an example of DeltaTime, see Creating\n a SQL dataset with a delta window (CLI) in the\n AWS IoT Analytics User Guide.

" } }, "com.amazonaws.iotanalytics#DescribeChannel": { @@ -2394,7 +2353,7 @@ "includeStatistics": { "target": "com.amazonaws.iotanalytics#IncludeStatisticsFlag", "traits": { - "smithy.api#documentation": "

If true, additional statistical information about the channel is included in the response.\n This feature can't be used with a channel whose S3 storage is customer-managed.

", + "smithy.api#documentation": "

If true, additional statistical information about the channel is included in the response.\n This feature cannot be used with a channel whose S3 storage is customer-managed.

", "smithy.api#httpQuery": "includeStatistics" } } @@ -2457,7 +2416,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the dataset whose information is retrieved.

", + "smithy.api#documentation": "

The name of the data set whose information is retrieved.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2470,7 +2429,7 @@ "dataset": { "target": "com.amazonaws.iotanalytics#Dataset", "traits": { - "smithy.api#documentation": "

An object that contains information about the dataset.

" + "smithy.api#documentation": "

An object that contains information about the data set.

" } } } @@ -2523,7 +2482,7 @@ "includeStatistics": { "target": "com.amazonaws.iotanalytics#IncludeStatisticsFlag", "traits": { - "smithy.api#documentation": "

If true, additional statistical information about the data store is included in the\n response. This feature can't be used with a data store whose S3 storage is\n customer-managed.

", + "smithy.api#documentation": "

If true, additional statistical information about the data store is included in the\n response. This feature cannot be used with a data store whose S3 storage is\n customer-managed.

", "smithy.api#httpQuery": "includeStatistics" } } @@ -2572,7 +2531,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the current settings of the IoT Analytics logging options.

", + "smithy.api#documentation": "

Retrieves the current settings of the AWS IoT Analytics logging options.

", "smithy.api#http": { "method": "GET", "uri": "/logging", @@ -2590,7 +2549,7 @@ "loggingOptions": { "target": "com.amazonaws.iotanalytics#LoggingOptions", "traits": { - "smithy.api#documentation": "

The current settings of the IoT Analytics logging options.

" + "smithy.api#documentation": "

The current settings of the AWS IoT Analytics logging options.

" } } } @@ -2692,7 +2651,7 @@ } }, "traits": { - "smithy.api#documentation": "

An activity that adds data from the IoT device registry to your message.

" + "smithy.api#documentation": "

An activity that adds data from the AWS IoT device registry to your message.

" } }, "com.amazonaws.iotanalytics#DeviceShadowEnrichActivity": { @@ -2734,7 +2693,7 @@ } }, "traits": { - "smithy.api#documentation": "

An activity that adds information from the IoT Device Shadow service to a\n message.

" + "smithy.api#documentation": "

An activity that adds information from the AWS IoT Device Shadow service to a\n message.

" } }, "com.amazonaws.iotanalytics#DoubleValue": { @@ -2789,7 +2748,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" + "smithy.api#documentation": "

Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON \n and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" } }, "com.amazonaws.iotanalytics#FileFormatType": { @@ -2870,7 +2829,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the contents of a dataset as presigned URIs.

", + "smithy.api#documentation": "

Retrieves the contents of a data set as presigned URIs.

", "smithy.api#http": { "method": "GET", "uri": "/datasets/{datasetName}/content", @@ -2884,7 +2843,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the dataset whose contents are retrieved.

", + "smithy.api#documentation": "

The name of the data set whose contents are retrieved.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2892,7 +2851,7 @@ "versionId": { "target": "com.amazonaws.iotanalytics#DatasetContentVersion", "traits": { - "smithy.api#documentation": "

The version of the dataset whose contents are retrieved. You can also use the strings\n \"$LATEST\" or \"$LATEST_SUCCEEDED\" to retrieve the contents of the latest or latest successfully\n completed dataset. If not specified, \"$LATEST_SUCCEEDED\" is the default.

", + "smithy.api#documentation": "

The version of the data set whose contents are retrieved. You can also use the strings\n \"$LATEST\" or \"$LATEST_SUCCEEDED\" to retrieve the contents of the latest or latest successfully\n completed data set. If not specified, \"$LATEST_SUCCEEDED\" is the default.

", "smithy.api#httpQuery": "versionId" } } @@ -2916,7 +2875,7 @@ "status": { "target": "com.amazonaws.iotanalytics#DatasetContentStatus", "traits": { - "smithy.api#documentation": "

The status of the dataset content.

" + "smithy.api#documentation": "

The status of the data set content.

" } } } @@ -2927,20 +2886,20 @@ "tableName": { "target": "com.amazonaws.iotanalytics#GlueTableName", "traits": { - "smithy.api#documentation": "

The name of the table in your Glue Data Catalog that is used to perform the ETL\n operations. An Glue Data Catalog table contains partitioned data and descriptions of data\n sources and targets.

", + "smithy.api#documentation": "

The name of the table in your AWS Glue Data Catalog that is used to perform the ETL\n operations. An AWS Glue Data Catalog table contains partitioned data and descriptions of data\n sources and targets.

", "smithy.api#required": {} } }, "databaseName": { "target": "com.amazonaws.iotanalytics#GlueDatabaseName", "traits": { - "smithy.api#documentation": "

The name of the database in your Glue Data Catalog in which the table is located. An\n Glue Data Catalog database contains metadata tables.

", + "smithy.api#documentation": "

The name of the database in your AWS Glue Data Catalog in which the table is located. An\n AWS Glue Data Catalog database contains metadata tables.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Configuration information for coordination with Glue, a fully managed extract, transform\n and load (ETL) service.

" + "smithy.api#documentation": "

Configuration information for coordination with AWS Glue, a fully managed extract,\n transform and load (ETL) service.

" } }, "com.amazonaws.iotanalytics#GlueDatabaseName": { @@ -3007,20 +2966,20 @@ "inputName": { "target": "com.amazonaws.iotanalytics#IotEventsInputName", "traits": { - "smithy.api#documentation": "

The name of the IoT Events input to which dataset contents are delivered.

", + "smithy.api#documentation": "

The name of the AWS IoT Events input to which dataset contents are delivered.

", "smithy.api#required": {} } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to deliver dataset contents to an IoT Events\n input.

", + "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to deliver dataset contents\n to an AWS IoT Events input.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Configuration information for delivery of dataset contents to IoT Events.

" + "smithy.api#documentation": "

Configuration information for delivery of dataset contents to AWS IoT Events.

" } }, "com.amazonaws.iotanalytics#IotEventsInputName": { @@ -3033,47 +2992,6 @@ "smithy.api#pattern": "^[a-zA-Z][a-zA-Z0-9_]*$" } }, - "com.amazonaws.iotanalytics#IotSiteWiseCustomerManagedDatastoreS3Storage": { - "type": "structure", - "members": { - "bucket": { - "target": "com.amazonaws.iotanalytics#BucketName", - "traits": { - "smithy.api#documentation": "

The name of the Amazon S3 bucket where your data is stored.

", - "smithy.api#required": {} - } - }, - "keyPrefix": { - "target": "com.amazonaws.iotanalytics#S3KeyPrefix", - "traits": { - "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. You can't change the choice of Amazon S3 storage after your data store is created.

" - } - }, - "com.amazonaws.iotanalytics#IotSiteWiseCustomerManagedDatastoreS3StorageSummary": { - "type": "structure", - "members": { - "bucket": { - "target": "com.amazonaws.iotanalytics#BucketName", - "traits": { - "smithy.api#documentation": "

The name of the Amazon S3 bucket where your data is stored.

" - } - }, - "keyPrefix": { - "target": "com.amazonaws.iotanalytics#S3KeyPrefix", - "traits": { - "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Contains information about the data store that you manage, which stores data used by IoT SiteWise.

" - } - }, "com.amazonaws.iotanalytics#JsonConfiguration": { "type": "structure", "members": {}, @@ -3294,7 +3212,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists information about dataset contents that have been created.

", + "smithy.api#documentation": "

Lists information about data set contents that have been created.

", "smithy.api#http": { "method": "GET", "uri": "/datasets/{datasetName}/contents", @@ -3313,7 +3231,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the dataset whose contents information you want to list.

", + "smithy.api#documentation": "

The name of the data set whose contents information you want to list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3335,14 +3253,14 @@ "scheduledOnOrAfter": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

A filter to limit results to those dataset contents whose creation is scheduled on or\n after the given time. See the field triggers.schedule in the\n CreateDataset request. (timestamp)

", + "smithy.api#documentation": "

A filter to limit results to those data set contents whose creation is scheduled on or\n after the given time. See the field triggers.schedule in the\n CreateDataset request. (timestamp)

", "smithy.api#httpQuery": "scheduledOnOrAfter" } }, "scheduledBefore": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

A filter to limit results to those dataset contents whose creation is scheduled before the\n given time. See the field triggers.schedule in the CreateDataset\n request. (timestamp)

", + "smithy.api#documentation": "

A filter to limit results to those data set contents whose creation is scheduled before\n the given time. See the field triggers.schedule in the CreateDataset\n request. (timestamp)

", "smithy.api#httpQuery": "scheduledBefore" } } @@ -3354,7 +3272,7 @@ "datasetContentSummaries": { "target": "com.amazonaws.iotanalytics#DatasetContentSummaries", "traits": { - "smithy.api#documentation": "

Summary information about dataset contents that have been created.

" + "smithy.api#documentation": "

Summary information about data set contents that have been created.

" } }, "nextToken": { @@ -3388,7 +3306,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves information about datasets.

", + "smithy.api#documentation": "

Retrieves information about data sets.

", "smithy.api#http": { "method": "GET", "uri": "/datasets", @@ -3665,7 +3583,7 @@ "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants permission to IoT Analytics to perform logging.

", + "smithy.api#documentation": "

The ARN of the role that grants permission to AWS IoT Analytics to perform logging.

", "smithy.api#required": {} } }, @@ -3679,7 +3597,7 @@ "enabled": { "target": "com.amazonaws.iotanalytics#LoggingEnabled", "traits": { - "smithy.api#documentation": "

If true, logging is enabled for IoT Analytics.

", + "smithy.api#documentation": "

If true, logging is enabled for AWS IoT Analytics.

", "smithy.api#required": {} } } @@ -3865,13 +3783,13 @@ "attributeName": { "target": "com.amazonaws.iotanalytics#PartitionAttributeName", "traits": { - "smithy.api#documentation": "

The name of the attribute that defines a partition dimension.

", + "smithy.api#documentation": "

\n The attribute name of the partition.\n

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

A partition dimension defined by an attribute.

" + "smithy.api#documentation": "

\n A single partition.\n

" } }, "com.amazonaws.iotanalytics#PartitionAttributeName": { @@ -3988,7 +3906,7 @@ "selectAttributes": { "target": "com.amazonaws.iotanalytics#SelectAttributesActivity", "traits": { - "smithy.api#documentation": "

Used to create a new message using only the specified attributes from the original\n message.

" + "smithy.api#documentation": "

Creates a new message using only the specified attributes from the original message.\n

" } }, "filter": { @@ -4006,13 +3924,13 @@ "deviceRegistryEnrich": { "target": "com.amazonaws.iotanalytics#DeviceRegistryEnrichActivity", "traits": { - "smithy.api#documentation": "

Adds data from the IoT device registry to your message.

" + "smithy.api#documentation": "

Adds data from the AWS IoT device registry to your message.

" } }, "deviceShadowEnrich": { "target": "com.amazonaws.iotanalytics#DeviceShadowEnrichActivity", "traits": { - "smithy.api#documentation": "

Adds information from the IoT Device Shadow service to a message.

" + "smithy.api#documentation": "

Adds information from the AWS IoT Device Shadow service to a message.

" } } }, @@ -4030,7 +3948,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^(^(?!_{2}))(^[a-zA-Z0-9_]+$)$" + "smithy.api#pattern": "^[a-zA-Z0-9_]+$" } }, "com.amazonaws.iotanalytics#PipelineSummaries": { @@ -4094,7 +4012,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets or updates the IoT Analytics logging options.

\n

If you update the value of any loggingOptions field, it takes up to one\n minute for the change to take effect. Also, if you change the policy attached to the role you\n specified in the roleArn field (for example, to correct an invalid policy), it\n takes up to five minutes for that change to take effect.

", + "smithy.api#documentation": "

Sets or updates the AWS IoT Analytics logging options.

\n

If you update the value of any loggingOptions field, it takes up to one\n minute for the change to take effect. Also, if you change the policy attached to the role you\n specified in the roleArn field (for example, to correct an invalid policy), it\n takes up to five minutes for that change to take effect.

", "smithy.api#http": { "method": "PUT", "uri": "/logging", @@ -4108,7 +4026,7 @@ "loggingOptions": { "target": "com.amazonaws.iotanalytics#LoggingOptions", "traits": { - "smithy.api#documentation": "

The new values of the IoT Analytics logging options.

", + "smithy.api#documentation": "

The new values of the AWS IoT Analytics logging options.

", "smithy.api#required": {} } } @@ -4376,7 +4294,7 @@ "pipelineActivity": { "target": "com.amazonaws.iotanalytics#PipelineActivity", "traits": { - "smithy.api#documentation": "

The pipeline activity that is run. This must not be a channel activity or a data store\n activity because these activities are used in a pipeline only to load the original message and\n to store the (possibly) transformed message. If a Lambda activity is specified, only\n short-running Lambda functions (those with a timeout of less than 30 seconds or less) can be\n used.

", + "smithy.api#documentation": "

The pipeline activity that is run. This must not be a channel activity or a datastore\n activity because these activities are used in a pipeline only to load the original message and\n to store the (possibly) transformed message. If a lambda activity is specified, only\n short-running Lambda functions (those with a timeout of less than 30 seconds or less) can be\n used.

", "smithy.api#required": {} } }, @@ -4426,19 +4344,19 @@ "glueConfiguration": { "target": "com.amazonaws.iotanalytics#GlueConfiguration", "traits": { - "smithy.api#documentation": "

Configuration information for coordination with Glue, a fully managed extract, transform\n and load (ETL) service.

" + "smithy.api#documentation": "

Configuration information for coordination with AWS Glue, a fully managed extract,\n transform and load (ETL) service.

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3 and Glue\n resources.

", + "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 and AWS Glue resources.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Configuration information for delivery of dataset contents to Amazon Simple Storage Service (Amazon S3).

" + "smithy.api#documentation": "

Configuration information for delivery of dataset contents to Amazon Simple Storage\n Service (Amazon S3).

" } }, "com.amazonaws.iotanalytics#S3KeyPrefix": { @@ -4575,7 +4493,7 @@ "columns": { "target": "com.amazonaws.iotanalytics#Columns", "traits": { - "smithy.api#documentation": "

Specifies one or more columns that store your data.

\n

Each schema can have up to 100 columns. Each column can have up to 100 nested\n types.

" + "smithy.api#documentation": "

Specifies one or more columns that store your data.

\n

Each schema can have up to 100 columns. Each column can have up to 100 nested types.

" } } }, @@ -4608,35 +4526,35 @@ } }, "traits": { - "smithy.api#documentation": "

Used to create a new message using only the specified attributes from the original\n message.

" + "smithy.api#documentation": "

Creates a new message using only the specified attributes from the original\n message.

" } }, "com.amazonaws.iotanalytics#ServiceManagedChannelS3Storage": { "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by IoT Analytics. You can't change the choice\n of S3 storage after the data store is created.

" + "smithy.api#documentation": "

Use this to store channel data in an S3 bucket managed by AWS IoT Analytics. You cannot\n change the choice of service-managed or customer-managed S3 storage after the channel is\n created.

" } }, "com.amazonaws.iotanalytics#ServiceManagedChannelS3StorageSummary": { "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by IoT Analytics.

" + "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by AWS IoT Analytics.

" } }, "com.amazonaws.iotanalytics#ServiceManagedDatastoreS3Storage": { "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Used to store data in an Amazon S3 bucket managed by IoT Analytics. You can't change the choice of Amazon S3 storage after your data store is created.

" + "smithy.api#documentation": "

Use this to store data store data in an S3 bucket managed by AWS IoT Analytics. You cannot\n change the choice of service-managed or customer-managed S3 storage after the data store is\n created.

" } }, "com.amazonaws.iotanalytics#ServiceManagedDatastoreS3StorageSummary": { "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Contains information about the data store that is managed by IoT Analytics.

" + "smithy.api#documentation": "

Used to store data store data in an S3 bucket managed by AWS IoT Analytics.

" } }, "com.amazonaws.iotanalytics#ServiceUnavailableException": { @@ -4943,19 +4861,19 @@ "attributeName": { "target": "com.amazonaws.iotanalytics#PartitionAttributeName", "traits": { - "smithy.api#documentation": "

The attribute name of the partition defined by a timestamp.

", + "smithy.api#documentation": "

\n The attribute name of the partition defined by a timestamp.\n

", "smithy.api#required": {} } }, "timestampFormat": { "target": "com.amazonaws.iotanalytics#TimestampFormat", "traits": { - "smithy.api#documentation": "

The timestamp format of a partition defined by a timestamp. The default format is seconds\n since epoch (January 1, 1970 at midnight UTC time).

" + "smithy.api#documentation": "

\n The timestamp format of a partition defined by a timestamp. \n

" } } }, "traits": { - "smithy.api#documentation": "

A partition dimension defined by a timestamp attribute.

" + "smithy.api#documentation": "

\n A partition defined by a timestamp.\n

" } }, "com.amazonaws.iotanalytics#TriggeringDataset": { @@ -5064,7 +4982,7 @@ } ], "traits": { - "smithy.api#documentation": "

Used to update the settings of a channel.

", + "smithy.api#documentation": "

Updates the settings of a channel.

", "smithy.api#http": { "method": "PUT", "uri": "/channels/{channelName}", @@ -5086,13 +5004,13 @@ "channelStorage": { "target": "com.amazonaws.iotanalytics#ChannelStorage", "traits": { - "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You can't change this storage option after the channel is\n created.

" + "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the channel is\n created.

" } }, "retentionPeriod": { "target": "com.amazonaws.iotanalytics#RetentionPeriod", "traits": { - "smithy.api#documentation": "

How long, in days, message data is kept for the channel. The retention period can't be\n updated if the channel's Amazon S3 storage is customer-managed.

" + "smithy.api#documentation": "

How long, in days, message data is kept for the channel. The retention period cannot be\n updated if the channel's S3 storage is customer-managed.

" } } } @@ -5120,7 +5038,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the settings of a dataset.

", + "smithy.api#documentation": "

Updates the settings of a data set.

", "smithy.api#http": { "method": "PUT", "uri": "/datasets/{datasetName}", @@ -5134,7 +5052,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the dataset to update.

", + "smithy.api#documentation": "

The name of the data set to update.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5167,13 +5085,13 @@ "versioningConfiguration": { "target": "com.amazonaws.iotanalytics#VersioningConfiguration", "traits": { - "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of IoT Analytics datasets in the\n IoT Analytics User Guide.

" + "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of AWS IoT Analytics Data Sets in the AWS IoT\n Analytics User Guide.

" } }, "lateDataRules": { "target": "com.amazonaws.iotanalytics#LateDataRules", "traits": { - "smithy.api#documentation": "

A list of data rules that send notifications to CloudWatch, when data arrives late. To specify lateDataRules, the dataset must use a DeltaTimer filter.

" + "smithy.api#documentation": "

A list of data rules that send notifications to Amazon CloudWatch, when data arrives late. To\n specify lateDataRules, the dataset must use a DeltaTimer\n filter.

" } } } @@ -5201,7 +5119,7 @@ } ], "traits": { - "smithy.api#documentation": "

Used to update the settings of a data store.

", + "smithy.api#documentation": "

Updates the settings of a data store.

", "smithy.api#http": { "method": "PUT", "uri": "/datastores/{datastoreName}", @@ -5223,19 +5141,19 @@ "retentionPeriod": { "target": "com.amazonaws.iotanalytics#RetentionPeriod", "traits": { - "smithy.api#documentation": "

How long, in days, message data is kept for the data store. The retention period can't be\n updated if the data store's Amazon S3 storage is customer-managed.

" + "smithy.api#documentation": "

How long, in days, message data is kept for the data store. The retention period cannot be\n updated if the data store's S3 storage is customer-managed.

" } }, "datastoreStorage": { "target": "com.amazonaws.iotanalytics#DatastoreStorage", "traits": { - "smithy.api#documentation": "

Where data in a data store is stored.. You can choose serviceManagedS3 storage, customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created.

" + "smithy.api#documentation": "

Where data store data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default\n isserviceManagedS3. You cannot change this storage option after the data store\n is created.

" } }, "fileFormatConfiguration": { "target": "com.amazonaws.iotanalytics#FileFormatConfiguration", "traits": { - "smithy.api#documentation": "

Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" + "smithy.api#documentation": "

Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON \n and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" } } } diff --git a/codegen/sdk-codegen/aws-models/iotsitewise.2019-12-02.json b/codegen/sdk-codegen/aws-models/iotsitewise.2019-12-02.json index 5c22152bced..4da89a838dc 100644 --- a/codegen/sdk-codegen/aws-models/iotsitewise.2019-12-02.json +++ b/codegen/sdk-codegen/aws-models/iotsitewise.2019-12-02.json @@ -1237,7 +1237,7 @@ "traits": { "smithy.api#documentation": "

Associates a child asset with the given parent asset through a hierarchy defined in the\n parent asset's model. For more information, see Associating assets in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "POST", @@ -1745,10 +1745,6 @@ { "value": "SYNC_FAILED", "name": "SYNC_FAILED" - }, - { - "value": "UNKNOWN", - "name": "UNKNOWN" } ] } @@ -1791,21 +1787,6 @@ "smithy.api#documentation": "

Contains information about a composite model property on an asset.

" } }, - "com.amazonaws.iotsitewise#ComputeLocation": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "EDGE", - "name": "EDGE" - }, - { - "value": "CLOUD", - "name": "CLOUD" - } - ] - } - }, "com.amazonaws.iotsitewise#ConfigurationErrorDetails": { "type": "structure", "members": { @@ -1898,15 +1879,6 @@ "smithy.api#httpError": 409 } }, - "com.amazonaws.iotsitewise#CoreDeviceThingName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - } - } - }, "com.amazonaws.iotsitewise#CreateAccessPolicy": { "type": "operation", "input": { @@ -2036,7 +2008,7 @@ "traits": { "smithy.api#documentation": "

Creates an asset from an existing asset model. For more information, see Creating assets in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "POST", @@ -2079,7 +2051,7 @@ "traits": { "smithy.api#documentation": "

Creates an asset model from specified property and hierarchy definitions. You create\n assets from asset models. With asset models, you can easily create assets of the same type\n that have standardized definitions. Each asset created from a model inherits the asset model's\n property and hierarchy definitions. For more information, see Defining asset models in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "POST", @@ -2350,7 +2322,7 @@ "traits": { "smithy.api#documentation": "

Creates a gateway, which is a virtual or edge device that delivers industrial data streams\n from local servers to IoT SiteWise. For more information, see Ingesting data using a gateway in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "edge." }, "smithy.api#http": { "method": "POST", @@ -2818,7 +2790,7 @@ "traits": { "smithy.api#documentation": "

Deletes an asset. This action can't be undone. For more information, see Deleting assets and\n models in the IoT SiteWise User Guide.

\n \n

You can't delete an asset that's associated to another asset. For more information, see\n DisassociateAssets.

\n
", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "DELETE", @@ -2855,7 +2827,7 @@ "traits": { "smithy.api#documentation": "

Deletes an asset model. This action can't be undone. You must delete all assets created\n from an asset model before you can delete the model. Also, you can't delete an asset model if\n a parent asset model exists that contains a property formula expression that depends on the\n asset model that you want to delete. For more information, see Deleting assets and models in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "DELETE", @@ -3011,7 +2983,7 @@ "traits": { "smithy.api#documentation": "

Deletes a gateway from IoT SiteWise. When you delete a gateway, some of the gateway's files remain\n in your gateway's file system.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "edge." }, "smithy.api#http": { "method": "DELETE", @@ -3288,7 +3260,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about an asset.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "GET", @@ -3360,7 +3332,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about an asset model.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "GET", @@ -3519,7 +3491,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about an asset property.

\n \n

When you call this operation for an attribute property, this response includes the\n default attribute value that you define in the asset model. If you update the default value\n in the model, this operation's response includes the new default value.

\n
\n

This operation doesn't return the value of the asset property. To get the value of an\n asset property, use GetAssetPropertyValue.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "GET", @@ -3802,9 +3774,6 @@ ], "traits": { "smithy.api#documentation": "

Retrieves information about the default encryption configuration for the Amazon Web Services account in\n the default or specified Region. For more information, see Key management in the\n IoT SiteWise User Guide.

", - "smithy.api#endpoint": { - "hostPrefix": "api." - }, "smithy.api#http": { "method": "GET", "uri": "/configuration/account/encryption", @@ -3866,7 +3835,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about a gateway.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "edge." }, "smithy.api#http": { "method": "GET", @@ -3900,7 +3869,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about a gateway capability configuration.\n Each gateway capability defines data sources for a gateway. A capability configuration\n can contain multiple data source configurations. If you define OPC-UA sources for a gateway in\n the IoT SiteWise console, all of your OPC-UA sources are stored in one capability configuration. To\n list all capability configurations for a gateway, use DescribeGateway.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "edge." }, "smithy.api#http": { "method": "GET", @@ -4054,7 +4023,7 @@ "traits": { "smithy.api#documentation": "

Retrieves the current IoT SiteWise logging options.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "GET", @@ -4387,10 +4356,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves information about the storage configuration for IoT SiteWise.

\n \n

Exporting data to Amazon S3 is currently in preview release and is subject to change. We\n recommend that you use this feature only with test data, and not in production\n environments.

\n
", - "smithy.api#endpoint": { - "hostPrefix": "api." - }, + "smithy.api#documentation": "

Retrieves information about the storage configuration for IoT SiteWise.

", "smithy.api#http": { "method": "GET", "uri": "/configuration/account/storage", @@ -4442,52 +4408,6 @@ "smithy.api#pattern": "^[^\\u0000-\\u001F\\u007F]+$" } }, - "com.amazonaws.iotsitewise#DetailedError": { - "type": "structure", - "members": { - "code": { - "target": "com.amazonaws.iotsitewise#DetailedErrorCode", - "traits": { - "smithy.api#documentation": "

The error code.

", - "smithy.api#required": {} - } - }, - "message": { - "target": "com.amazonaws.iotsitewise#DetailedErrorMessage", - "traits": { - "smithy.api#documentation": "

The error message.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Contains detailed error information.

" - } - }, - "com.amazonaws.iotsitewise#DetailedErrorCode": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "INCOMPATIBLE_COMPUTE_LOCATION", - "name": "INCOMPATIBLE_COMPUTE_LOCATION" - }, - { - "value": "INCOMPATIBLE_FORWARDING_CONFIGURATION", - "name": "INCOMPATIBLE_FORWARDING_CONFIGURATION" - } - ] - } - }, - "com.amazonaws.iotsitewise#DetailedErrorMessage": { - "type": "string" - }, - "com.amazonaws.iotsitewise#DetailedErrors": { - "type": "list", - "member": { - "target": "com.amazonaws.iotsitewise#DetailedError" - } - }, "com.amazonaws.iotsitewise#DisassociateAssets": { "type": "operation", "input": { @@ -4513,7 +4433,7 @@ "traits": { "smithy.api#documentation": "

Disassociates a child asset from the given parent asset through a hierarchy defined in the\n parent asset's model.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "POST", @@ -4622,12 +4542,6 @@ "smithy.api#documentation": "

The error message.

", "smithy.api#required": {} } - }, - "details": { - "target": "com.amazonaws.iotsitewise#DetailedErrors", - "traits": { - "smithy.api#documentation": "

A list of detailed errors.

" - } } }, "traits": { @@ -4677,36 +4591,6 @@ "target": "com.amazonaws.iotsitewise#ExpressionVariable" } }, - "com.amazonaws.iotsitewise#ForwardingConfig": { - "type": "structure", - "members": { - "state": { - "target": "com.amazonaws.iotsitewise#ForwardingConfigState", - "traits": { - "smithy.api#documentation": "

The forwarding state for the given property.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The forwarding configuration for a given property.

" - } - }, - "com.amazonaws.iotsitewise#ForwardingConfigState": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "DISABLED", - "name": "DISABLED" - }, - { - "value": "ENABLED", - "name": "ENABLED" - } - ] - } - }, "com.amazonaws.iotsitewise#GatewayCapabilitySummaries": { "type": "list", "member": { @@ -4741,13 +4625,8 @@ "greengrass": { "target": "com.amazonaws.iotsitewise#Greengrass", "traits": { - "smithy.api#documentation": "

A gateway that runs on IoT Greengrass.

" - } - }, - "greengrassV2": { - "target": "com.amazonaws.iotsitewise#GreengrassV2", - "traits": { - "smithy.api#documentation": "

A gateway that runs on IoT Greengrass V2.

" + "smithy.api#documentation": "

A gateway that runs on IoT Greengrass.

", + "smithy.api#required": {} } } }, @@ -4778,9 +4657,6 @@ "smithy.api#required": {} } }, - "gatewayPlatform": { - "target": "com.amazonaws.iotsitewise#GatewayPlatform" - }, "gatewayCapabilitySummaries": { "target": "com.amazonaws.iotsitewise#GatewayCapabilitySummaries", "traits": { @@ -5180,7 +5056,7 @@ } ], "traits": { - "smithy.api#documentation": "

Get interpolated values for an asset property for a specified time interval, during a\n period of time. For example, you can use the this operation to return the interpolated\n temperature values for a wind turbine every 24 hours over a duration of 7 days.

\n

To identify an asset property, you must specify one of the following:

\n ", + "smithy.api#documentation": "

Get interpolated values for an asset property for a specified time interval, during a period of time. \n For example, you can use the this operation to return the interpolated temperature values for a wind turbine every 24 hours \n over a duration of 7 days.

\n

To identify an asset property, you must specify one of the following:

\n ", "smithy.api#endpoint": { "hostPrefix": "data." }, @@ -5323,21 +5199,6 @@ "smithy.api#documentation": "

Contains details for a gateway that runs on IoT Greengrass. To create a gateway that runs on IoT Greengrass,\n you must add the IoT SiteWise connector to a Greengrass group and deploy it. Your Greengrass\n group must also have permissions to upload data to IoT SiteWise. For more information, see Ingesting data using a\n gateway in the IoT SiteWise User Guide.

" } }, - "com.amazonaws.iotsitewise#GreengrassV2": { - "type": "structure", - "members": { - "coreDeviceThingName": { - "target": "com.amazonaws.iotsitewise#CoreDeviceThingName", - "traits": { - "smithy.api#documentation": "

The name of the IoT thing for your IoT Greengrass V2 core device.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Contains details for a gateway that runs on IoT Greengrass V2. To create a gateway that runs on IoT Greengrass V2, \n you must deploy the IoT SiteWise Edge component to your gateway device. \n Your Greengrass device role \n must use the AWSIoTSiteWiseEdgeAccess policy. For more information, \n see Using IoT SiteWise at the edge \n in the IoT SiteWise User Guide.

" - } - }, "com.amazonaws.iotsitewise#GroupIdentity": { "type": "structure", "members": { @@ -5789,7 +5650,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of summaries of all asset models.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "GET", @@ -5865,7 +5726,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of asset relationships for an asset. You can use this operation\n to identify an asset's root asset and all associated assets between that asset and its\n root.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "GET", @@ -5957,7 +5818,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of asset summaries.

\n

You can use this operation to do the following:

\n \n

You can't use this operation to list all assets. To retrieve summaries for all of your\n assets, use ListAssetModels to get all of your asset model IDs. Then, use ListAssets to get all\n assets for each asset model.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "GET", @@ -6062,7 +5923,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of associated assets.

\n

You can use this operation to do the following:

\n ", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "GET", @@ -6238,7 +6099,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of gateways.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "edge." }, "smithy.api#http": { "method": "GET", @@ -6556,9 +6417,6 @@ ], "traits": { "smithy.api#documentation": "

Retrieves the list of tags for an IoT SiteWise resource.

", - "smithy.api#endpoint": { - "hostPrefix": "api." - }, "smithy.api#http": { "method": "GET", "uri": "/tags", @@ -6655,33 +6513,11 @@ }, "com.amazonaws.iotsitewise#Measurement": { "type": "structure", - "members": { - "processingConfig": { - "target": "com.amazonaws.iotsitewise#MeasurementProcessingConfig", - "traits": { - "smithy.api#documentation": "

The processing configuration for the given measurement property. \n You can configure measurements to be kept at the edge or forwarded to the Amazon Web Services Cloud. \n By default, measurements are forwarded to the cloud.

" - } - } - }, + "members": {}, "traits": { "smithy.api#documentation": "

Contains an asset measurement property. For more information, see\n Measurements in the IoT SiteWise User Guide.

" } }, - "com.amazonaws.iotsitewise#MeasurementProcessingConfig": { - "type": "structure", - "members": { - "forwardingConfig": { - "target": "com.amazonaws.iotsitewise#ForwardingConfig", - "traits": { - "smithy.api#documentation": "

The forwarding configuration for the given measurement property.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The processing configuration for the given measurement property. \n You can configure measurements to be kept at the edge or forwarded to the Amazon Web Services Cloud. \n By default, measurements are forwarded to the cloud.

" - } - }, "com.amazonaws.iotsitewise#Metric": { "type": "structure", "members": { @@ -6705,33 +6541,12 @@ "smithy.api#documentation": "

The window (time interval) over which IoT SiteWise computes the metric's aggregation expression.\n IoT SiteWise computes one data point per window.

", "smithy.api#required": {} } - }, - "processingConfig": { - "target": "com.amazonaws.iotsitewise#MetricProcessingConfig", - "traits": { - "smithy.api#documentation": "

The processing configuration for the given metric property. \n You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. \n By default, metrics are forwarded to the cloud.

" - } } }, "traits": { "smithy.api#documentation": "

Contains an asset metric property. With metrics, you can calculate aggregate functions,\n such as an average, maximum, or minimum, as specified through an expression. A metric maps\n several values to a single value (such as a sum).

\n

The maximum number of dependent/cascading variables used in any one metric calculation is\n 10. Therefore, a root metric can have\n up to 10 cascading metrics in its computational dependency\n tree. Additionally, a metric can only have a data type of DOUBLE and consume\n properties with data types of INTEGER or DOUBLE.

\n

For more information, see Metrics in the IoT SiteWise User Guide.

" } }, - "com.amazonaws.iotsitewise#MetricProcessingConfig": { - "type": "structure", - "members": { - "computeLocation": { - "target": "com.amazonaws.iotsitewise#ComputeLocation", - "traits": { - "smithy.api#documentation": "

The compute location for the given metric property.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The processing configuration for the given metric property. \n You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. \n By default, metrics are forwarded to the cloud.

" - } - }, "com.amazonaws.iotsitewise#MetricWindow": { "type": "structure", "members": { @@ -7315,9 +7130,6 @@ ], "traits": { "smithy.api#documentation": "

Sets the default encryption configuration for the Amazon Web Services account. For more information, see\n Key management in\n the IoT SiteWise User Guide.

", - "smithy.api#endpoint": { - "hostPrefix": "api." - }, "smithy.api#http": { "method": "POST", "uri": "/configuration/account/encryption", @@ -7396,7 +7208,7 @@ "traits": { "smithy.api#documentation": "

Sets logging options for IoT SiteWise.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "PUT", @@ -7453,10 +7265,7 @@ } ], "traits": { - "smithy.api#documentation": "

Configures storage settings for IoT SiteWise.

\n \n

Exporting data to Amazon S3 is currently in preview release and is subject to change. We\n recommend that you use this feature only with test data, and not in production\n environments.

\n
", - "smithy.api#endpoint": { - "hostPrefix": "api." - }, + "smithy.api#documentation": "

Configures storage settings for IoT SiteWise.

", "smithy.api#http": { "method": "POST", "uri": "/configuration/account/storage", @@ -7747,9 +7556,6 @@ ], "traits": { "smithy.api#documentation": "

Adds tags to an IoT SiteWise resource. If a tag already exists for the resource, this operation\n updates the tag's value.

", - "smithy.api#endpoint": { - "hostPrefix": "api." - }, "smithy.api#http": { "method": "POST", "uri": "/tags", @@ -7896,36 +7702,12 @@ "smithy.api#documentation": "

The list of variables used in the expression.

", "smithy.api#required": {} } - }, - "processingConfig": { - "target": "com.amazonaws.iotsitewise#TransformProcessingConfig", - "traits": { - "smithy.api#documentation": "

The processing configuration for the given transform property. \n You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. \n You can also configure transforms to be computed at the edge or in the cloud.

" - } } }, "traits": { "smithy.api#documentation": "

Contains an asset transform property. A transform is a one-to-one mapping of a property's\n data points from one form to another. For example, you can use a transform to convert a\n Celsius data stream to Fahrenheit by applying the transformation expression to each data point\n of the Celsius stream. A transform can only have a data type of DOUBLE and\n consume properties with data types of INTEGER or DOUBLE.

\n

For more information, see Transforms in the IoT SiteWise User Guide.

" } }, - "com.amazonaws.iotsitewise#TransformProcessingConfig": { - "type": "structure", - "members": { - "computeLocation": { - "target": "com.amazonaws.iotsitewise#ComputeLocation", - "traits": { - "smithy.api#documentation": "

The compute location for the given transform property.

", - "smithy.api#required": {} - } - }, - "forwardingConfig": { - "target": "com.amazonaws.iotsitewise#ForwardingConfig" - } - }, - "traits": { - "smithy.api#documentation": "

The processing configuration for the given transform property. \n You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. \n You can also configure transforms to be computed at the edge or in the cloud.

" - } - }, "com.amazonaws.iotsitewise#TraversalDirection": { "type": "string", "traits": { @@ -8016,9 +7798,6 @@ ], "traits": { "smithy.api#documentation": "

Removes a tag from an IoT SiteWise resource.

", - "smithy.api#endpoint": { - "hostPrefix": "api." - }, "smithy.api#http": { "method": "DELETE", "uri": "/tags", @@ -8161,7 +7940,7 @@ "traits": { "smithy.api#documentation": "

Updates an asset's name. For more information, see Updating assets and models in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "PUT", @@ -8204,7 +7983,7 @@ "traits": { "smithy.api#documentation": "

Updates an asset model and all of the assets that were created from the model. Each asset\n created from the model inherits the updated asset model's property and hierarchy definitions.\n For more information, see Updating assets and models in the\n IoT SiteWise User Guide.

\n \n

This operation overwrites the existing model with the provided model. To avoid deleting\n your asset model's properties or hierarchies, you must include their IDs and definitions in\n the updated asset model payload. For more information, see DescribeAssetModel.

\n

If you remove a property from an asset model, IoT SiteWise deletes all previous data for that\n property. If you remove a hierarchy definition from an asset model, IoT SiteWise disassociates every\n asset associated with that hierarchy. You can't change the type or data type of an existing\n property.

\n
", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "PUT", @@ -8301,7 +8080,7 @@ "traits": { "smithy.api#documentation": "

Updates an asset property's alias and notification state.

\n \n

This operation overwrites the property's existing alias and notification state. To keep\n your existing property's alias or notification state, you must include the existing values\n in the UpdateAssetProperty request. For more information, see DescribeAssetProperty.

\n
", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "model." }, "smithy.api#http": { "method": "PUT", @@ -8492,7 +8271,7 @@ "traits": { "smithy.api#documentation": "

Updates a gateway's name.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "edge." }, "smithy.api#http": { "method": "PUT", @@ -8532,7 +8311,7 @@ "traits": { "smithy.api#documentation": "

Updates a gateway capability configuration or defines a new capability configuration.\n Each gateway capability defines data sources for a gateway. A capability configuration\n can contain multiple data source configurations. If you define OPC-UA sources for a gateway in\n the IoT SiteWise console, all of your OPC-UA sources are stored in one capability configuration. To\n list all capability configurations for a gateway, use DescribeGateway.

", "smithy.api#endpoint": { - "hostPrefix": "api." + "hostPrefix": "edge." }, "smithy.api#http": { "method": "POST", diff --git a/codegen/sdk-codegen/aws-models/iotwireless.2020-11-22.json b/codegen/sdk-codegen/aws-models/iotwireless.2020-11-22.json index 281a86e7f91..be0b5c81096 100644 --- a/codegen/sdk-codegen/aws-models/iotwireless.2020-11-22.json +++ b/codegen/sdk-codegen/aws-models/iotwireless.2020-11-22.json @@ -91,7 +91,6 @@ "com.amazonaws.iotwireless#AmazonId": { "type": "string", "traits": { - "smithy.api#documentation": "

The Sidewalk Amazon ID.

", "smithy.api#length": { "min": 0, "max": 2048 @@ -2294,7 +2293,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns current default log levels or log levels by resource types. Based on resource types, log levels can be\n for wireless device log options or wireless gateway log options.

", + "smithy.api#documentation": "

Returns current default log-levels, or log levels by resource types, could be for wireless device log options or wireless gateway log options.

", "smithy.api#http": { "method": "GET", "uri": "/log-levels", @@ -2415,7 +2414,7 @@ } ], "traits": { - "smithy.api#documentation": "

Fetches the log-level override, if any, for a given resource-ID and resource-type. It can be used for\n a wireless device or a wireless gateway.

", + "smithy.api#documentation": "

Fetches the log-level override if any for a given resource-ID and resource-type, coulde be a wireless device or a wireless gateway.

", "smithy.api#http": { "method": "GET", "uri": "/log-levels/{ResourceIdentifier}", @@ -2436,7 +2435,7 @@ "ResourceType": { "target": "com.amazonaws.iotwireless#ResourceType", "traits": { - "smithy.api#documentation": "

The type of the resource, which can be WirelessDevice or WirelessGateway.

", + "smithy.api#documentation": "

The type of the resource, currently support WirelessDevice and WirelessGateway.

", "smithy.api#httpQuery": "resourceType", "smithy.api#required": {} } @@ -4532,7 +4531,7 @@ "com.amazonaws.iotwireless#MessageType": { "type": "string", "traits": { - "smithy.api#documentation": "

Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY.

", + "smithy.api#documentation": "

Sidewalk device message type.

", "smithy.api#enum": [ { "value": "CUSTOM_COMMAND_ID_NOTIFY", @@ -4778,7 +4777,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets the log-level override for a resource-ID and resource-type. This option can be specified for a wireless gateway \n or a wireless device. A limit of 200 log level override can be set per account.

", + "smithy.api#documentation": "

Sets the log-level override for a resource-ID and resource-type, could be a wireless gateway or a wireless device.

", "smithy.api#http": { "method": "PUT", "uri": "/log-levels/{ResourceIdentifier}", @@ -4799,7 +4798,7 @@ "ResourceType": { "target": "com.amazonaws.iotwireless#ResourceType", "traits": { - "smithy.api#documentation": "

The type of the resource, which can be WirelessDevice or WirelessGateway.

", + "smithy.api#documentation": "

The type of the resource, currently support WirelessDevice and WirelessGateway.

", "smithy.api#httpQuery": "resourceType", "smithy.api#required": {} } @@ -4860,7 +4859,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes the log-level overrides for all resources; both wireless devices and wireless gateways.

", + "smithy.api#documentation": "

Remove log-level overrides if any for all resources (both wireless devices and wireless gateways).

", "smithy.api#http": { "method": "DELETE", "uri": "/log-levels", @@ -4902,7 +4901,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes the log-level override, if any, for a specific resource-ID and resource-type. It can be used for\n a wireless device or a wireless gateway.

", + "smithy.api#documentation": "

Remove log-level override if any for a specific resource-ID and resource-type, could be a wireless device or a wireless gateway.

", "smithy.api#http": { "method": "DELETE", "uri": "/log-levels/{ResourceIdentifier}", @@ -4923,7 +4922,7 @@ "ResourceType": { "target": "com.amazonaws.iotwireless#ResourceType", "traits": { - "smithy.api#documentation": "

The type of the resource, which can be WirelessDevice or WirelessGateway.

", + "smithy.api#documentation": "

The type of the resource, currently support WirelessDevice and WirelessGateway.

", "smithy.api#httpQuery": "resourceType", "smithy.api#required": {} } @@ -4940,7 +4939,7 @@ "com.amazonaws.iotwireless#ResourceIdentifier": { "type": "string", "traits": { - "smithy.api#documentation": "

The identifier of the resource. For a Wireless Device, it is the wireless device ID. For a wireless gateway, \n it is the wireless gateway ID.

", + "smithy.api#documentation": "

The identifier of the resource. For a Wireless Device, it is the wireless device id. For a wireless gateway, it is the wireless gateway id.

", "smithy.api#length": { "min": 0, "max": 256 @@ -5100,7 +5099,7 @@ "PayloadData": { "target": "com.amazonaws.iotwireless#PayloadData", "traits": { - "smithy.api#documentation": "

The binary to be sent to the end device, encoded in base64.

", + "smithy.api#documentation": "

The message payload to send.

", "smithy.api#required": {} } }, @@ -5293,9 +5292,6 @@ "com.amazonaws.iotwireless#SidewalkDevice": { "type": "structure", "members": { - "AmazonId": { - "target": "com.amazonaws.iotwireless#AmazonId" - }, "SidewalkId": { "target": "com.amazonaws.iotwireless#SidewalkId", "traits": { @@ -5934,7 +5930,7 @@ } ], "traits": { - "smithy.api#documentation": "

Set default log level, or log levels by resource types. This can be for wireless device log options or\n wireless gateways log options and is used to control the log messages that'll be displayed in CloudWatch.

", + "smithy.api#documentation": "

Set default log level, or log levels by resource types, could be for wireless device log options or wireless gateways log options. This is to control the log messages that will be displayed in CloudWatch.

", "smithy.api#http": { "method": "POST", "uri": "/log-levels", @@ -6289,7 +6285,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log options for a wireless device event and can be used to set log levels for a specific wireless device event.

\n

For a LoRaWAN device, possible events for a log messsage are: Join, Rejoin, \n Downlink_Data, and Uplink_Data. For a Sidewalk device, possible events for a log message are \n Registration, Downlink_Data, and Uplink_Data.

" + "smithy.api#documentation": "

The log option for a wireless device event. Can be used to set log level for a specific wireless device event. For a LoRaWAN device, the possible events for a log messsage are: Join, Rejoin, Downlink_Data, Uplink_Data. For a Sidewalk device, the possible events for a log message are: Registration, Downlink_Data, Uplink_Data.

" } }, "com.amazonaws.iotwireless#WirelessDeviceEventLogOptionList": { @@ -6325,10 +6321,6 @@ { "value": "ThingName", "name": "ThingName" - }, - { - "value": "SidewalkManufacturingSn", - "name": "SidewalkManufacturingSn" } ] } @@ -6354,7 +6346,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log options for wireless devices and can be used to set log levels for a specific type of wireless device.

" + "smithy.api#documentation": "

The log option for wireless devices. Can be used to set log level for a specific type of wireless device.

" } }, "com.amazonaws.iotwireless#WirelessDeviceLogOptionList": { @@ -6488,7 +6480,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log options for a wireless gateway event and can be used to set log levels for a specific wireless gateway event.

\n

For a LoRaWAN gateway, possible events for a log message are CUPS_Request and Certificate.

" + "smithy.api#documentation": "

The log option for a wireless gateway event. Can be used to set log level for a specific wireless gateway event. For a LoRaWAN gateway, the possible events for a log message are: CUPS_Request, Certificate.

" } }, "com.amazonaws.iotwireless#WirelessGatewayEventLogOptionList": { @@ -6548,7 +6540,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log options for wireless gateways and can be used to set log levels for a specific type of wireless gateway.

" + "smithy.api#documentation": "

The log option for wireless gateways. Can be used to set log level for a specific type of wireless gateway.

" } }, "com.amazonaws.iotwireless#WirelessGatewayLogOptionList": { diff --git a/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json b/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json index b46b9f05fa3..72c0f43c7e5 100644 --- a/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json +++ b/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json @@ -355,7 +355,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides filtering the query results based on document\n attributes.

\n

When you use the AndAllFilters or\n OrAllFilters, filters you can use 2 layers under the\n first attribute filter. For example, you can use:

\n

\n \n

\n
    \n
  1. \n

    \n \n

    \n
  2. \n
  3. \n

    \n \n

    \n
  4. \n
\n

If you use more than 2 layers, you receive a\n ValidationException exception with the message\n \"AttributeFilter cannot have a depth of more than\n 2.\"

\n

If you use more than 10 attribute filters, you receive a \n ValidationException exception with the message \n \"AttributeFilter cannot have a length of more than 10\".

" + "smithy.api#documentation": "

Provides filtering the query results based on document\n attributes.

\n

When you use the AndAllFilters or\n OrAllFilters, filters you can use 2 layers under the\n first attribute filter. For example, you can use:

\n

\n \n

\n
    \n
  1. \n

    \n \n

    \n
  2. \n
  3. \n

    \n \n

    \n
  4. \n
\n

If you use more than 2 layers, you receive a\n ValidationException exception with the message\n \"AttributeFilter cannot have a depth of more than\n 2.\"

" } }, "com.amazonaws.kendra#AttributeFilterList": { @@ -731,14 +731,14 @@ "StorageCapacityUnits": { "target": "com.amazonaws.kendra#StorageCapacityUnit", "traits": { - "smithy.api#documentation": "

The amount of extra storage capacity for an index. \n A single capacity unit provides 30 GB of storage space or 100,000 documents, \n whichever is reached first.

", + "smithy.api#documentation": "

The amount of extra storage capacity for an index. A single capacity\n unit for an index provides 150 GB of storage space or \n 500,000 documents, whichever is reached first.

", "smithy.api#required": {} } }, "QueryCapacityUnits": { "target": "com.amazonaws.kendra#QueryCapacityUnit", "traits": { - "smithy.api#documentation": "

The amount of extra query capacity for an index and \n GetQuerySuggestions \n capacity.

\n

A single extra capacity unit for an index provides 0.1 queries per second or approximately \n 8,000 queries per day.

\n

\n GetQuerySuggestions capacity is five times the \n provisioned query capacity for an index, or the base capacity of 2.5 calls per second, \n whichever is higher. For example, the base capacity for an index is 0.1 queries per \n second, and GetQuerySuggestions capacity has a base of 2.5 calls per second. \n If you add another 0.1 queries per second to total 0.2 queries per second for an index, the \n GetQuerySuggestions capacity is 2.5 calls per second \n (higher than five times 0.2 queries per second).

", + "smithy.api#documentation": "

The amount of extra query capacity for an index and \n GetQuerySuggestions \n capacity.

\n

A single extra capacity unit for an index provides 0.5 queries per second or \n approximately 40,000 queries per day.

\n

\n GetQuerySuggestions capacity is 5 times the provisioned query \n capacity for an index. For example, the base capacity for an index is 0.5 \n queries per second, so GetQuerySuggestions capacity is 2.5 calls per second. \n If adding another 0.5 queries per second to total 1 queries per second for an \n index, the GetQuerySuggestions capacity is 5 calls per second.

", "smithy.api#required": {} } } @@ -1462,7 +1462,7 @@ "SecretArn": { "target": "com.amazonaws.kendra#SecretArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of credentials stored in Secrets Manager.\n The credentials should be a user/password pair. For\n more information, see Using a\n Database Data Source. For more information about \n Secrets Manager, see What Is \n Secrets Manager in the Secrets Manager\n user guide.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of credentials stored in AWS\n Secrets Manager. The credentials should be a user/password pair. For\n more information, see Using a\n Database Data Source. For more information about AWS\n Secrets Manager, see What Is AWS\n Secrets Manager in the Secrets Manager\n user guide.

", "smithy.api#required": {} } } @@ -1773,7 +1773,7 @@ "Edition": { "target": "com.amazonaws.kendra#IndexEdition", "traits": { - "smithy.api#documentation": "

The Amazon Kendra edition to use for the index. Choose\n DEVELOPER_EDITION for indexes intended for development,\n testing, or proof of concept. Use ENTERPRISE_EDITION for your\n production databases. Once you set the edition for an index, it can't be\n changed.

\n

The Edition parameter is optional. If you don't supply a\n value, the default is ENTERPRISE_EDITION.

\n

For more information on quota limits for enterprise and developer editions, \n see Quotas.

" + "smithy.api#documentation": "

The Amazon Kendra edition to use for the index. Choose\n DEVELOPER_EDITION for indexes intended for development,\n testing, or proof of concept. Use ENTERPRISE_EDITION for your\n production databases. Once you set the edition for an index, it can't be\n changed.

\n

The Edition parameter is optional. If you don't supply a\n value, the default is ENTERPRISE_EDITION.

" } }, "RoleArn": { @@ -2082,12 +2082,6 @@ }, "WebCrawlerConfiguration": { "target": "com.amazonaws.kendra#WebCrawlerConfiguration" - }, - "WorkDocsConfiguration": { - "target": "com.amazonaws.kendra#WorkDocsConfiguration", - "traits": { - "smithy.api#documentation": "

Provides the configuration information to connect to WorkDocs \n as your data source.

" - } } }, "traits": { @@ -2515,10 +2509,6 @@ { "value": "WEBCRAWLER", "name": "WEBCRAWLER" - }, - { - "value": "WORKDOCS", - "name": "WORKDOCS" } ] } @@ -6036,16 +6026,6 @@ ] } }, - "com.amazonaws.kendra#OrganizationId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 12, - "max": 12 - }, - "smithy.api#pattern": "^d-[0-9a-fA-F]{10}$" - } - }, "com.amazonaws.kendra#Port": { "type": "integer", "traits": { @@ -7702,7 +7682,7 @@ "SecretArn": { "target": "com.amazonaws.kendra#SecretArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of credentials stored in \n Secrets Manager. The credentials should be a user/password pair. \n If you use SharePoint Server, you also need to provide the sever \n domain name as part of the credentials. For\n more information, see Using a\n Microsoft SharePoint Data Source. For more information\n about Secrets Manager, see What Is \n Secrets Manager in the Secrets Manager\n user guide.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of credentials stored in AWS\n Secrets Manager. The credentials should be a user/password pair. \n If you use SharePoint Sever, you also need to provide the sever \n domain name as part of the credentials. For\n more information, see Using a\n Microsoft SharePoint Data Source. For more information\n about AWS Secrets Manager, see What Is AWS\n Secrets Manager in the Secrets Manager\n user guide.

", "smithy.api#required": {} } }, @@ -8074,7 +8054,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables you to provide feedback to Amazon Kendra to improve the\n performance of your index.

" + "smithy.api#documentation": "

Enables you to provide feedback to Amazon Kendra to improve the\n performance of the service.

" } }, "com.amazonaws.kendra#SubmitFeedbackRequest": { @@ -9240,51 +9220,6 @@ } ] } - }, - "com.amazonaws.kendra#WorkDocsConfiguration": { - "type": "structure", - "members": { - "OrganizationId": { - "target": "com.amazonaws.kendra#OrganizationId", - "traits": { - "smithy.api#documentation": "

The identifier of the directory corresponding to your \n Amazon WorkDocs site repository.

\n

You can find the organization ID in the \n AWS Directory Service by going to \n Active Directory, then \n Directories. Your Amazon WorkDocs site directory has an \n ID, which is the organization ID. You can also set up a new Amazon WorkDocs \n directory in the AWS Directory Service console and enable a Amazon WorkDocs site \n for the directory in the Amazon WorkDocs console.

", - "smithy.api#required": {} - } - }, - "CrawlComments": { - "target": "com.amazonaws.kendra#Boolean", - "traits": { - "smithy.api#documentation": "

\n TRUE to include comments on documents \n in your index. Including comments in your index means each comment \n is a document that can be searched on.

\n

The default is set to FALSE.

" - } - }, - "UseChangeLog": { - "target": "com.amazonaws.kendra#Boolean", - "traits": { - "smithy.api#documentation": "

\n TRUE to use the change logs to update documents in your \n index instead of scanning all documents.

\n

If you are syncing your Amazon WorkDocs data source with your index for the \n first time, all documents are scanned. After your first sync, you can \n use the change logs to update your documents in your index for \n future syncs.

\n

The default is set to FALSE.

" - } - }, - "InclusionPatterns": { - "target": "com.amazonaws.kendra#DataSourceInclusionsExclusionsStrings", - "traits": { - "smithy.api#documentation": "

A list of regular expression patterns to include certain files \n in your Amazon WorkDocs site repository. Files that match the patterns \n are included in the index. Files that don't match the patterns are \n excluded from the index. If a file matches both an inclusion pattern \n and an exclusion pattern, the exclusion pattern takes precedence and \n the file isn’t included in the index.

" - } - }, - "ExclusionPatterns": { - "target": "com.amazonaws.kendra#DataSourceInclusionsExclusionsStrings", - "traits": { - "smithy.api#documentation": "

A list of regular expression patterns to exclude certain files \n in your Amazon WorkDocs site repository. Files that match the patterns \n are excluded from the index. Files that don’t match the patterns \n are included in the index. If a file matches both an inclusion \n pattern and an exclusion pattern, the exclusion pattern takes \n precedence and the file isn’t included in the index.

" - } - }, - "FieldMappings": { - "target": "com.amazonaws.kendra#DataSourceToIndexFieldMappingList", - "traits": { - "smithy.api#documentation": "

A list of DataSourceToIndexFieldMapping objects that map \n Amazon WorkDocs field names to custom index field names in Amazon Kendra. You must first \n create the custom index fields using the UpdateIndex operation before \n you map to Amazon WorkDocs fields. For more information, see \n Mapping \n Data Source Fields. The Amazon WorkDocs data source field names \n need to exist in your Amazon WorkDocs custom metadata.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Provides the configuration information to connect to Amazon WorkDocs \n as your data source.

\n

Amazon WorkDocs connector is available in Oregon, North Virginia, Sydney, Singapore and Ireland \n regions.

" - } } } } diff --git a/codegen/sdk-codegen/aws-models/lambda.2015-03-31.json b/codegen/sdk-codegen/aws-models/lambda.2015-03-31.json index 8513f099209..9b30e3ba6b4 100644 --- a/codegen/sdk-codegen/aws-models/lambda.2015-03-31.json +++ b/codegen/sdk-codegen/aws-models/lambda.2015-03-31.json @@ -1100,7 +1100,7 @@ "SourceAccessConfigurations": { "target": "com.amazonaws.lambda#SourceAccessConfigurations", "traits": { - "smithy.api#documentation": "

An array of authentication protocols or VPC components required to secure your event source.

" + "smithy.api#documentation": "

An array of the authentication protocol, or the VPC components to secure your event source.

" } }, "SelfManagedEventSource": { @@ -1583,9 +1583,6 @@ { "target": "com.amazonaws.lambda#InvalidParameterValueException" }, - { - "target": "com.amazonaws.lambda#ResourceConflictException" - }, { "target": "com.amazonaws.lambda#ResourceNotFoundException" }, @@ -2055,7 +2052,7 @@ "StartingPosition": { "target": "com.amazonaws.lambda#EventSourcePosition", "traits": { - "smithy.api#documentation": "

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis\n streams.

" + "smithy.api#documentation": "

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams\n sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

" } }, "StartingPositionTimestamp": { @@ -2073,13 +2070,13 @@ "MaximumBatchingWindowInSeconds": { "target": "com.amazonaws.lambda#MaximumBatchingWindowInSeconds", "traits": { - "smithy.api#documentation": "

(Streams and Amazon SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

" + "smithy.api#documentation": "

(Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

" } }, "ParallelizationFactor": { "target": "com.amazonaws.lambda#ParallelizationFactor", "traits": { - "smithy.api#documentation": "

(Streams only) The number of batches to process concurrently from each shard. The default value is 1.

" + "smithy.api#documentation": "

(Streams only) The number of batches to process from each shard concurrently. The default value is 1.

" } }, "EventSourceArn": { @@ -2097,25 +2094,25 @@ "LastModified": { "target": "com.amazonaws.lambda#Date", "traits": { - "smithy.api#documentation": "

The date that the event source mapping was last updated or that its state changed.

" + "smithy.api#documentation": "

The date that the event source mapping was last updated, or its state changed.

" } }, "LastProcessingResult": { "target": "com.amazonaws.lambda#String", "traits": { - "smithy.api#documentation": "

The result of the last Lambda invocation of your function.

" + "smithy.api#documentation": "

The result of the last Lambda invocation of your Lambda function.

" } }, "State": { "target": "com.amazonaws.lambda#String", "traits": { - "smithy.api#documentation": "

The state of the event source mapping. It can be one of the following: Creating,\n Enabling, Enabled, Disabling, Disabled,\n Updating, or Deleting.

" + "smithy.api#documentation": "

The state of the event source mapping. It can be one of the following: Creating,\n Enabling, Enabled, Disabling, Disabled,\n Updating, or Deleting.

" } }, "StateTransitionReason": { "target": "com.amazonaws.lambda#String", "traits": { - "smithy.api#documentation": "

Indicates whether a user or Lambda made the last change to the event source mapping.

" + "smithy.api#documentation": "

Indicates whether the last change to the event source mapping was made by a user, or by the Lambda\n service.

" } }, "DestinationConfig": { @@ -2133,19 +2130,19 @@ "Queues": { "target": "com.amazonaws.lambda#Queues", "traits": { - "smithy.api#documentation": "

(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.

" + "smithy.api#documentation": "

\n (MQ) The name of the Amazon MQ broker destination queue to consume.\n

" } }, "SourceAccessConfigurations": { "target": "com.amazonaws.lambda#SourceAccessConfigurations", "traits": { - "smithy.api#documentation": "

An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.

" + "smithy.api#documentation": "

An array of the authentication protocol, or the VPC components to secure your event source.

" } }, "SelfManagedEventSource": { "target": "com.amazonaws.lambda#SelfManagedEventSource", "traits": { - "smithy.api#documentation": "

The self-managed Apache Kafka cluster for your event source.

" + "smithy.api#documentation": "

The Self-Managed Apache Kafka cluster for your event source.

" } }, "MaximumRecordAgeInSeconds": { @@ -2169,7 +2166,7 @@ "TumblingWindowInSeconds": { "target": "com.amazonaws.lambda#TumblingWindowInSeconds", "traits": { - "smithy.api#documentation": "

(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.

" + "smithy.api#documentation": "

(Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

" } }, "FunctionResponseTypes": { @@ -2180,7 +2177,7 @@ } }, "traits": { - "smithy.api#documentation": "

A mapping between an Amazon Web Services resource and a Lambda function. For details, see CreateEventSourceMapping.

" + "smithy.api#documentation": "

A mapping between an Amazon Web Services resource and an Lambda function. See CreateEventSourceMapping for details.

" } }, "com.amazonaws.lambda#EventSourceMappingsList": { @@ -4696,7 +4693,7 @@ "MaxItems": { "target": "com.amazonaws.lambda#MaxListItems", "traits": { - "smithy.api#documentation": "

The maximum number of event source mappings to return. Note that ListEventSourceMappings returns\n a maximum of 100 items in each response, even if you set the number higher.

", + "smithy.api#documentation": "

The maximum number of event source mappings to return.

", "smithy.api#httpQuery": "MaxItems" } } @@ -6061,9 +6058,6 @@ { "target": "com.amazonaws.lambda#InvalidParameterValueException" }, - { - "target": "com.amazonaws.lambda#ResourceConflictException" - }, { "target": "com.amazonaws.lambda#ResourceNotFoundException" }, @@ -6654,12 +6648,12 @@ "Endpoints": { "target": "com.amazonaws.lambda#Endpoints", "traits": { - "smithy.api#documentation": "

The list of bootstrap servers for your Kafka brokers in the following format: \"KAFKA_BOOTSTRAP_SERVERS\":\n [\"abc.xyz.com:xxxx\",\"abc2.xyz.com:xxxx\"].

" + "smithy.api#documentation": "

The list of bootstrap servers for your Kafka brokers in the following format: \"KAFKA_BOOTSTRAP_SERVERS\": [\"abc.xyz.com:xxxx\",\"abc2.xyz.com:xxxx\"].

" } } }, "traits": { - "smithy.api#documentation": "

The self-managed Apache Kafka cluster for your event source.

" + "smithy.api#documentation": "

The Self-Managed Apache Kafka cluster for your event source.

" } }, "com.amazonaws.lambda#SensitiveString": { @@ -6702,7 +6696,7 @@ "Type": { "target": "com.amazonaws.lambda#SourceAccessType", "traits": { - "smithy.api#documentation": "

The type of authentication protocol, VPC components, or virtual host for your event source. For example: \"Type\":\"SASL_SCRAM_512_AUTH\".

\n " + "smithy.api#documentation": "

The type of authentication protocol or the VPC components for your event source. For example: \"Type\":\"SASL_SCRAM_512_AUTH\".

\n " } }, "URI": { @@ -6713,7 +6707,7 @@ } }, "traits": { - "smithy.api#documentation": "

To secure and define access to your event source, you can specify the authentication protocol, VPC components, or virtual host.

" + "smithy.api#documentation": "

You can specify the authentication protocol, or the VPC components to secure access to your event source.

" } }, "com.amazonaws.lambda#SourceAccessConfigurations": { @@ -7467,7 +7461,7 @@ "SourceAccessConfigurations": { "target": "com.amazonaws.lambda#SourceAccessConfigurations", "traits": { - "smithy.api#documentation": "

An array of authentication protocols or VPC components required to secure your event source.

" + "smithy.api#documentation": "

An array of the authentication protocol, or the VPC components to secure your event source.

" } }, "TumblingWindowInSeconds": { @@ -7755,9 +7749,6 @@ { "target": "com.amazonaws.lambda#InvalidParameterValueException" }, - { - "target": "com.amazonaws.lambda#ResourceConflictException" - }, { "target": "com.amazonaws.lambda#ResourceNotFoundException" }, diff --git a/codegen/sdk-codegen/aws-models/lexmodelbuildingservice.2017-04-19.json b/codegen/sdk-codegen/aws-models/lexmodelbuildingservice.2017-04-19.json index c865be54da6..d45ae03f4b4 100644 --- a/codegen/sdk-codegen/aws-models/lexmodelbuildingservice.2017-04-19.json +++ b/codegen/sdk-codegen/aws-models/lexmodelbuildingservice.2017-04-19.json @@ -4197,10 +4197,6 @@ "value": "en-GB", "name": "EN_GB" }, - { - "value": "en-IN", - "name": "EN_IN" - }, { "value": "en-US", "name": "EN_US" diff --git a/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json b/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json index 844226cb12b..6ecfc69395c 100644 --- a/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json +++ b/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json @@ -3790,54 +3790,6 @@ "method": "GET", "uri": "/bots/{botId}", "code": 200 - }, - "smithy.waiters#waitable": { - "BotAvailable": { - "documentation": "Wait until a bot is available", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "botStatus", - "expected": "Available", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botStatus", - "expected": "Deleting", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botStatus", - "expected": "Failed", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botStatus", - "expected": "Inactive", - "comparator": "stringEquals" - } - } - } - ], - "minDelay": 10 - } } } }, @@ -3872,44 +3824,6 @@ "method": "GET", "uri": "/bots/{botId}/botaliases/{botAliasId}", "code": 200 - }, - "smithy.waiters#waitable": { - "BotAliasAvailable": { - "documentation": "Wait until a bot alias is available", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "botAliasStatus", - "expected": "Available", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botAliasStatus", - "expected": "Failed", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botAliasStatus", - "expected": "Deleting", - "comparator": "stringEquals" - } - } - } - ], - "minDelay": 10 - } } } }, @@ -4039,166 +3953,6 @@ "method": "GET", "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}", "code": 200 - }, - "smithy.waiters#waitable": { - "BotLocaleBuilt": { - "documentation": "Wait until a bot locale is built", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "Built", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "Deleting", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "Failed", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "NotBuilt", - "comparator": "stringEquals" - } - } - } - ], - "minDelay": 10 - }, - "BotLocaleCreated": { - "documentation": "Wait unit a bot locale is created", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "Built", - "comparator": "stringEquals" - } - } - }, - { - "state": "success", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "ReadyExpressTesting", - "comparator": "stringEquals" - } - } - }, - { - "state": "success", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "NotBuilt", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "Deleting", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "Failed", - "comparator": "stringEquals" - } - } - } - ], - "minDelay": 10 - }, - "BotLocaleExpressTestingAvailable": { - "documentation": "Wait until a bot locale build is ready for express testing", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "Built", - "comparator": "stringEquals" - } - } - }, - { - "state": "success", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "ReadyExpressTesting", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "Deleting", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "Failed", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botLocaleStatus", - "expected": "NotBuilt", - "comparator": "stringEquals" - } - } - } - ], - "minDelay": 10 - } } } }, @@ -4429,50 +4183,6 @@ "method": "GET", "uri": "/bots/{botId}/botversions/{botVersion}", "code": 200 - }, - "smithy.waiters#waitable": { - "BotVersionAvailable": { - "documentation": "Wait until a bot version is available", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "botStatus", - "expected": "Available", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botStatus", - "expected": "Deleting", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "botStatus", - "expected": "Failed", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "errorType": "ResourceNotFoundException" - } - } - ], - "minDelay": 10 - } } } }, @@ -4590,44 +4300,6 @@ "method": "GET", "uri": "/exports/{exportId}", "code": 200 - }, - "smithy.waiters#waitable": { - "BotExportCompleted": { - "documentation": "Wait until a bot has been exported", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "exportStatus", - "expected": "Completed", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "exportStatus", - "expected": "Deleting", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "exportStatus", - "expected": "Failed", - "comparator": "stringEquals" - } - } - } - ], - "minDelay": 10 - } } } }, @@ -4725,44 +4397,6 @@ "method": "GET", "uri": "/imports/{importId}", "code": 200 - }, - "smithy.waiters#waitable": { - "BotImportCompleted": { - "documentation": "Wait until a bot has been imported", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "importStatus", - "expected": "Completed", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "importStatus", - "expected": "Deleting", - "comparator": "stringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "importStatus", - "expected": "Failed", - "comparator": "stringEquals" - } - } - } - ], - "minDelay": 10 - } } } }, diff --git a/codegen/sdk-codegen/aws-models/location.2020-11-19.json b/codegen/sdk-codegen/aws-models/location.2020-11-19.json index 441e7c5674b..3dd786826e1 100644 --- a/codegen/sdk-codegen/aws-models/location.2020-11-19.json +++ b/codegen/sdk-codegen/aws-models/location.2020-11-19.json @@ -13,7 +13,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request was denied because of insufficient access or permissions. Check with an\n administrator to verify your permissions.

", + "smithy.api#documentation": "

The request was denied due to insufficient access or permission. Check with an\n administrator to verify your permissions.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } @@ -55,9 +55,6 @@ { "target": "com.amazonaws.location#ResourceNotFoundException" }, - { - "target": "com.amazonaws.location#ServiceQuotaExceededException" - }, { "target": "com.amazonaws.location#ThrottlingException" }, @@ -66,7 +63,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an association between a geofence collection and a tracker resource. This\n allows the tracker resource to communicate location data to the linked geofence\n collection.

\n

You can associate up to five geofence collections to each tracker resource.

\n \n

Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.

\n
", + "smithy.api#documentation": "

Creates an association between a geofence collection and a tracker resource. This\n allows the tracker resource to communicate location data to the linked geofence\n collection.

\n \n

Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.

\n
", "smithy.api#endpoint": { "hostPrefix": "tracking." }, @@ -329,7 +326,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Evaluates device positions against the geofence geometries from a given geofence\n collection.

\n

This operation always returns an empty response because geofences are asynchronously\n evaluated. The evaluation determines if the device has entered or exited a geofenced\n area, and then publishes one of the following events to Amazon EventBridge:

\n \n \n

The last geofence that a device was observed within is tracked for 30 days after\n the most recent device position update.

\n
", + "smithy.api#documentation": "

Evaluates device positions against the geofence geometries from a given geofence\n collection. The evaluation determines if the device has entered or exited a geofenced\n area, which publishes ENTER or EXIT geofence events to Amazon EventBridge.

\n \n

The last geofence that a device was observed within, if any, is tracked for 30\n days after the most recent device position update

\n
", "smithy.api#endpoint": { "hostPrefix": "geofencing." }, @@ -437,7 +434,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the latest device positions for requested devices.

", + "smithy.api#documentation": "

A batch request to retrieve all device positions.

", "smithy.api#endpoint": { "hostPrefix": "tracking." }, @@ -895,7 +892,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Calculates a route given the following required parameters:\n DeparturePostiton and DestinationPosition. Requires that\n you first create a\n route calculator resource\n

\n

By default, a request that doesn't specify a departure time uses the best time of day\n to travel with the best traffic conditions when calculating the route.

\n

Additional options include:

\n \n

\n

", + "smithy.api#documentation": "

\n Calculates a route given the following required parameters:\n DeparturePostiton and DestinationPosition. Requires that\n you first create\n aroute calculator resource\n

\n

By default, a request that doesn't specify a departure time uses the best time of day\n to travel with the best traffic conditions when calculating the route.

\n

Additional options include:

\n \n

\n

", "smithy.api#endpoint": { "hostPrefix": "routes." }, @@ -1011,14 +1008,14 @@ "Legs": { "target": "com.amazonaws.location#LegList", "traits": { - "smithy.api#documentation": "

Contains details about each path between a pair of positions included along a route\n such as: StartPosition, EndPosition, Distance,\n DurationSeconds, Geometry, and Steps. The\n number of legs returned corresponds to one fewer than the total number of positions in\n the request.

\n

For example, a route with a departure position and destination position returns one\n leg with the positions snapped to a nearby road:

\n \n

A route with a waypoint between the departure and destination position returns two\n legs with the positions snapped to a nearby road:

\n ", + "smithy.api#documentation": "

Contains details about each path between a pair of positions included along a route\n such as: StartPosition, EndPosition, Distance,\n DurationSeconds, Geometry, and Steps. The\n number of legs returned corresponds to one less than the total number of positions in\n the request.

\n

For example, a route with a departure position and destination position returns one\n leg with the positions snapped to a nearby road:

\n \n

A route with a waypoint between the departure and destination position returns two\n legs with the positions snapped to a nearby road.:

\n ", "smithy.api#required": {} } }, "Summary": { "target": "com.amazonaws.location#CalculateRouteSummary", "traits": { - "smithy.api#documentation": "

Contains information about the whole route, such as: RouteBBox,\n DataSource, Distance, DistanceUnit, and\n DurationSeconds.

", + "smithy.api#documentation": "

Contains information about the whole route, such as: RouteBBox,\n DataSource, Distance, DistanceUnit, and\n DurationSeconds\n

", "smithy.api#required": {} } } @@ -1033,7 +1030,7 @@ "RouteBBox": { "target": "com.amazonaws.location#BoundingBox", "traits": { - "smithy.api#documentation": "

Specifies a geographical box surrounding a route. Used to zoom into a route when\n displaying it in a map. For example, [min x, min y, max x, max y].

\n

The first 2 bbox parameters describe the lower southwest corner:

\n \n

The next 2 bbox parameters describe the upper northeast corner:

\n ", + "smithy.api#documentation": "

Specifies a geographical box surrounding a route. Used to zoom into a route when\n displaying it in a map. For example, [min x, min y, max x, max y]\n

\n

The first 2 bbox parameters describe the lower southwest corner:

\n \n

The next 2 bbox parameters describe the upper northeast corner:

\n ", "smithy.api#required": {} } }, @@ -1120,7 +1117,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request was unsuccessful because of a conflict.

", + "smithy.api#documentation": "

The request was unsuccessful due to a conflict.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } @@ -1339,7 +1336,7 @@ "MapArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across\n all AWS.

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the map resource. Used when you need to specify a\n resource across all AWS.

\n ", "smithy.api#required": {} } }, @@ -1403,7 +1400,7 @@ "DataSource": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

Specifies the data provider of geospatial data.

\n \n

This field is case-sensitive. Enter the valid values as shown. For example, entering\n HERE returns an error.

\n
\n

Valid values include:

\n \n

For additional information , see Data providers\n on the Amazon Location Service Developer Guide.

", + "smithy.api#documentation": "

Specifies the data provider of geospatial data.

\n \n

This field is case-sensitive. Enter the valid values as shown. For example, entering\n HERE will return an error.

\n
\n

Valid values include:

\n \n

For additional details on data providers, see the Amazon Location Service data providers page.

", "smithy.api#required": {} } }, @@ -1423,7 +1420,7 @@ "DataSourceConfiguration": { "target": "com.amazonaws.location#DataSourceConfiguration", "traits": { - "smithy.api#documentation": "

Specifies the data storage option requesting Places.

" + "smithy.api#documentation": "

Specifies the data storage option for requesting Places.

" } }, "Tags": { @@ -1447,7 +1444,7 @@ "IndexArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource\n across AWS.

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource\n across all AWS.

\n ", "smithy.api#required": {} } }, @@ -1511,7 +1508,7 @@ "DataSource": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

Specifies the data provider of traffic and road network data.

\n \n

This field is case-sensitive. Enter the valid values as shown. For example,\n entering HERE returns an error.

\n
\n

Valid values include:

\n \n

For additional information , see Data\n providers on the Amazon Location Service Developer Guide.

", + "smithy.api#documentation": "

Specifies the data provider of traffic and road network data.

\n \n

This field is case-sensitive. Enter the valid values as shown. For example,\n entering HERE returns an error.

\n
\n

Valid Values: Esri | Here\n

\n

For more information about data providers, see Amazon Location Service data providers.

", "smithy.api#required": {} } }, @@ -1675,12 +1672,12 @@ "IntendedUse": { "target": "com.amazonaws.location#IntendedUse", "traits": { - "smithy.api#documentation": "

Specifies how the results of an operation will be stored by the caller.

\n

Valid values include:

\n \n

Default value: SingleUse\n

" + "smithy.api#documentation": "

Specifies how the results of an operation will be stored by the caller.

\n

Valid values include:

\n \n

Default value: SingleUse\n

" } } }, "traits": { - "smithy.api#documentation": "

Specifies the data storage option chosen for requesting Places.

\n \n

When using Amazon Location Places:

\n \n

For more information, see the AWS Service Terms for\n Amazon Location Service.

\n
" + "smithy.api#documentation": "

Specifies the data storage option chosen for requesting Places.

" } }, "com.amazonaws.location#DeleteGeofenceCollection": { @@ -2140,7 +2137,7 @@ "MapArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across\n all AWS.

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the map resource. Used when you need to specify a\n resource across all AWS.

\n ", "smithy.api#required": {} } }, @@ -2259,7 +2256,7 @@ "IndexArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource\n across AWS.

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource\n across all AWS.

\n ", "smithy.api#required": {} } }, @@ -2747,9 +2744,6 @@ "read": { "target": "com.amazonaws.location#DescribeGeofenceCollection" }, - "update": { - "target": "com.amazonaws.location#UpdateGeofenceCollection" - }, "delete": { "target": "com.amazonaws.location#DeleteGeofenceCollection" }, @@ -3142,7 +3136,7 @@ "FontStack": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

A comma-separated list of fonts to load glyphs from in order of preference. For\n example, Noto Sans Regular, Arial Unicode.

\n

Valid fonts for Esri styles:

\n \n

Valid fonts for HERE Technologies styles:

\n ", + "smithy.api#documentation": "

A comma-separated list of fonts to load glyphs from in order of preference.. For\n example, Noto Sans, Arial Unicode.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3234,7 +3228,7 @@ "FileName": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

The name of the sprite file. Use the following file names for the sprite sheet:

\n \n

For the JSON document contain image offsets. Use the following file names:

\n ", + "smithy.api#documentation": "

The name of the sprite file. Use the following file names for the sprite sheet:

\n \n

For the JSON document contain image offsets. Use the following file names:

\n ", "smithy.api#httpLabel": {}, "smithy.api#pattern": "^sprites(@2x)?\\.(png|json)$", "smithy.api#required": {} @@ -3541,7 +3535,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the calculated route's details for each path between a pair of positions. The\n number of legs returned corresponds to one fewer than the total number of positions in\n the request.

\n

For example, a route with a departure position and destination position returns one\n leg with the positions snapped to a nearby road:

\n \n

A route with a waypoint between the departure and destination position returns two\n legs with the positions snapped to a nearby road:

\n " + "smithy.api#documentation": "

Contains the calculated route's details for each path between a pair of positions. The\n number of legs returned corresponds to one less than the total number of positions in\n the request.

\n

For example, a route with a departure position and destination position returns one\n leg with the positions snapped to a nearby road:

\n \n

A route with a waypoint between the departure and destination position returns two\n legs with the positions snapped to a nearby road.:

\n " } }, "com.amazonaws.location#LegGeometry": { @@ -3626,7 +3620,7 @@ } ], "traits": { - "smithy.api#documentation": "

A batch request to retrieve all device positions.

", + "smithy.api#documentation": "

Lists the latest device positions for requested devices.

", "smithy.api#endpoint": { "hostPrefix": "tracking." }, @@ -4424,7 +4418,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of tags that are applied to the specified Amazon Location resource.

", + "smithy.api#documentation": "

Returns the tags for the specified Amazon Location Service resource.

", "smithy.api#endpoint": { "hostPrefix": "metadata." }, @@ -4442,7 +4436,7 @@ "ResourceArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.

\n\t ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4455,7 +4449,7 @@ "Tags": { "target": "com.amazonaws.location#TagMap", "traits": { - "smithy.api#documentation": "

Tags that have been applied to the specified resource. Tags are mapped from the tag key to the tag value: \"TagKey\" : \"TagValue\".

\n\t " + "smithy.api#documentation": "

The mapping from tag key to tag value for each tag associated with the specified resource.

" } } } @@ -4731,7 +4725,7 @@ "Style": { "target": "com.amazonaws.location#MapStyle", "traits": { - "smithy.api#documentation": "

Specifies the map style selected from an available data provider. For additional\n information on each map style and to preview each map style, see Esri map\n styles and HERE map\n styles.

\n

Valid Esri styles:

\n \n

Valid HERE\n Technologies styles:

\n ", + "smithy.api#documentation": "

Specifies the map style selected from an available data provider.

\n

Valid styles: RasterEsriImagery, VectorEsriStreets,\n VectorEsriTopographic, VectorEsriNavigation,\n VectorEsriDarkGrayCanvas, VectorEsriLightGrayCanvas,\n VectorHereBerlin.

\n \n

When using HERE as your data provider, and selecting the Style\n VectorHereBerlin, you may not use HERE Maps for Asset Management.\n See the AWS Service Terms for Amazon Location Service.

\n
", "smithy.api#required": {} } } @@ -4753,9 +4747,6 @@ "read": { "target": "com.amazonaws.location#DescribeMap" }, - "update": { - "target": "com.amazonaws.location#UpdateMap" - }, "delete": { "target": "com.amazonaws.location#DeleteMap" }, @@ -4891,9 +4882,6 @@ "read": { "target": "com.amazonaws.location#DescribePlaceIndex" }, - "update": { - "target": "com.amazonaws.location#UpdatePlaceIndex" - }, "delete": { "target": "com.amazonaws.location#DeletePlaceIndex" }, @@ -5105,9 +5093,6 @@ "read": { "target": "com.amazonaws.location#DescribeRouteCalculator" }, - "update": { - "target": "com.amazonaws.location#UpdateRouteCalculator" - }, "delete": { "target": "com.amazonaws.location#DeleteRouteCalculator" }, @@ -5441,24 +5426,6 @@ "smithy.api#documentation": "

A summary of the geocoding request sent using SearchPlaceIndexForText.

" } }, - "com.amazonaws.location#ServiceQuotaExceededException": { - "type": "structure", - "members": { - "Message": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

A message with the reason for the service quota exceeded exception error.

", - "smithy.api#jsonName": "message", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The operation was denied because the request would exceed the maximum quota\n set for Amazon Location Service.

", - "smithy.api#error": "client", - "smithy.api#httpError": 402 - } - }, "com.amazonaws.location#Step": { "type": "structure", "members": { @@ -5578,7 +5545,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified Amazon\n Location Service resource.

\n\n

Tags can help you organize and categorize your resources.\n You can also use them to scope user permissions, by granting a user\n permission to access or change only resources with certain tag values.

\n\n

You can use the TagResource operation with an Amazon Location Service\n resource that already has tags. If you specify a new tag key for the resource, this tag\n is appended to the tags already associated with the resource. If you specify a tag key\n that's already associated with the resource, the new tag value that you specify replaces\n the previous value for that tag.

\n\n

You can associate up to 50 tags with a resource.

", + "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified Amazon\n Location Service resource.

\n\n

Tags can help you organize and categorize your resources.\n You can also use them to scope user permissions, by granting a user\n permission to access or change only resources with certain tag values.

\n\n

Tags don't have any semantic meaning to AWS and are interpreted\n strictly as strings of characters.

\n\n

You can use the TagResource action with an Amazon\n Location Service resource that already has tags. If you specify a new\n tag key for the resource, this tag is appended to the tags already\n associated with the resource. If you specify a tag key that is already\n associated with the resource, the new tag value that you specify replaces\n the previous value for that tag.\n

\n\n

You can associate as many as 50 tags with a resource.

", "smithy.api#endpoint": { "hostPrefix": "metadata." }, @@ -5595,7 +5562,7 @@ "ResourceArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource whose tags you want to update.

\n\t ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource whose tags you want to update.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5603,7 +5570,7 @@ "Tags": { "target": "com.amazonaws.location#TagMap", "traits": { - "smithy.api#documentation": "

Tags that have been applied to the specified resource. Tags are mapped from the tag key to the tag value: \"TagKey\" : \"TagValue\".

\n\t ", + "smithy.api#documentation": "

The mapping from tag key to tag value for each tag associated with the specified resource.

", "smithy.api#required": {} } } @@ -5635,7 +5602,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request was denied because of request throttling.

", + "smithy.api#documentation": "

The request was denied due to request throttling.

", "smithy.api#error": "client", "smithy.api#httpError": 429, "smithy.api#retryable": {} @@ -5669,9 +5636,6 @@ "read": { "target": "com.amazonaws.location#DescribeTracker" }, - "update": { - "target": "com.amazonaws.location#UpdateTracker" - }, "delete": { "target": "com.amazonaws.location#DeleteTracker" }, @@ -5826,7 +5790,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes one or more tags from the specified Amazon Location resource.

", + "smithy.api#documentation": "

Removes one or more tags from the specified Amazon Location Service resource.

", "smithy.api#endpoint": { "hostPrefix": "metadata." }, @@ -5844,7 +5808,7 @@ "ResourceArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource from which you want to remove tags.

\n\t ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource from which you want to remove tags.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5852,7 +5816,7 @@ "TagKeys": { "target": "com.amazonaws.location#TagKeys", "traits": { - "smithy.api#documentation": "

The list of tag keys to remove from the specified resource.

", + "smithy.api#documentation": "

The list of tag keys to remove from the resource.

", "smithy.api#httpQuery": "tagKeys", "smithy.api#required": {} } @@ -5863,469 +5827,6 @@ "type": "structure", "members": {} }, - "com.amazonaws.location#UpdateGeofenceCollection": { - "type": "operation", - "input": { - "target": "com.amazonaws.location#UpdateGeofenceCollectionRequest" - }, - "output": { - "target": "com.amazonaws.location#UpdateGeofenceCollectionResponse" - }, - "errors": [ - { - "target": "com.amazonaws.location#AccessDeniedException" - }, - { - "target": "com.amazonaws.location#InternalServerException" - }, - { - "target": "com.amazonaws.location#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.location#ThrottlingException" - }, - { - "target": "com.amazonaws.location#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Updates the specified properties of a given geofence collection.

", - "smithy.api#endpoint": { - "hostPrefix": "geofencing." - }, - "smithy.api#http": { - "method": "PATCH", - "uri": "/geofencing/v0/collections/{CollectionName}", - "code": 200 - }, - "smithy.api#idempotent": {} - } - }, - "com.amazonaws.location#UpdateGeofenceCollectionRequest": { - "type": "structure", - "members": { - "CollectionName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the geofence collection to update.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "PricingPlan": { - "target": "com.amazonaws.location#PricingPlan", - "traits": { - "smithy.api#documentation": "

Updates the pricing plan for the geofence collection.

\n

For more information about each pricing plan option restrictions, see Amazon Location Service\n pricing.

" - } - }, - "PricingPlanDataSource": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

Updates the data provider for the geofence collection.

\n

A required value for the following pricing plans: MobileAssetTracking|\n MobileAssetManagement\n

\n

For more information about data providers and\n pricing plans, see the\n Amazon Location Service product page.

\n \n

This can only be updated when updating the PricingPlan in the same\n request.

\n

Amazon Location Service uses PricingPlanDataSource to calculate\n billing for your geofence collection. Your data won't be shared with the data\n provider, and will remain in your AWS account and Region unless you move it.

\n
" - } - }, - "Description": { - "target": "com.amazonaws.location#ResourceDescription", - "traits": { - "smithy.api#documentation": "

Updates the description for the geofence collection.

" - } - } - } - }, - "com.amazonaws.location#UpdateGeofenceCollectionResponse": { - "type": "structure", - "members": { - "CollectionName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the updated geofence collection.

", - "smithy.api#required": {} - } - }, - "CollectionArn": { - "target": "com.amazonaws.location#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the updated geofence collection. Used to specify a\n resource across AWS.

\n ", - "smithy.api#required": {} - } - }, - "UpdateTime": { - "target": "com.amazonaws.location#Timestamp", - "traits": { - "smithy.api#documentation": "

The time when the geofence collection was last updated in ISO 8601\n format: YYYY-MM-DDThh:mm:ss.sssZ\n

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.location#UpdateMap": { - "type": "operation", - "input": { - "target": "com.amazonaws.location#UpdateMapRequest" - }, - "output": { - "target": "com.amazonaws.location#UpdateMapResponse" - }, - "errors": [ - { - "target": "com.amazonaws.location#AccessDeniedException" - }, - { - "target": "com.amazonaws.location#InternalServerException" - }, - { - "target": "com.amazonaws.location#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.location#ThrottlingException" - }, - { - "target": "com.amazonaws.location#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Updates the specified properties of a given map resource.

", - "smithy.api#endpoint": { - "hostPrefix": "maps." - }, - "smithy.api#http": { - "method": "PATCH", - "uri": "/maps/v0/maps/{MapName}", - "code": 200 - }, - "smithy.api#idempotent": {} - } - }, - "com.amazonaws.location#UpdateMapRequest": { - "type": "structure", - "members": { - "MapName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the map resource to update.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "PricingPlan": { - "target": "com.amazonaws.location#PricingPlan", - "traits": { - "smithy.api#documentation": "

Updates the pricing plan for the map resource.

\n

For more information about each pricing plan option restrictions, see Amazon Location Service pricing.

" - } - }, - "Description": { - "target": "com.amazonaws.location#ResourceDescription", - "traits": { - "smithy.api#documentation": "

Updates the description for the map resource.

" - } - } - } - }, - "com.amazonaws.location#UpdateMapResponse": { - "type": "structure", - "members": { - "MapName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the updated map resource.

", - "smithy.api#required": {} - } - }, - "MapArn": { - "target": "com.amazonaws.location#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the updated map resource. Used to specify a resource\n across AWS.

\n ", - "smithy.api#required": {} - } - }, - "UpdateTime": { - "target": "com.amazonaws.location#Timestamp", - "traits": { - "smithy.api#documentation": "

The timestamp for when the map resource was last updated in ISO 8601\n format: YYYY-MM-DDThh:mm:ss.sssZ.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.location#UpdatePlaceIndex": { - "type": "operation", - "input": { - "target": "com.amazonaws.location#UpdatePlaceIndexRequest" - }, - "output": { - "target": "com.amazonaws.location#UpdatePlaceIndexResponse" - }, - "errors": [ - { - "target": "com.amazonaws.location#AccessDeniedException" - }, - { - "target": "com.amazonaws.location#InternalServerException" - }, - { - "target": "com.amazonaws.location#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.location#ThrottlingException" - }, - { - "target": "com.amazonaws.location#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Updates the specified properties of a given place index resource.

", - "smithy.api#endpoint": { - "hostPrefix": "places." - }, - "smithy.api#http": { - "method": "PATCH", - "uri": "/places/v0/indexes/{IndexName}", - "code": 200 - }, - "smithy.api#idempotent": {} - } - }, - "com.amazonaws.location#UpdatePlaceIndexRequest": { - "type": "structure", - "members": { - "IndexName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the place index resource to update.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "PricingPlan": { - "target": "com.amazonaws.location#PricingPlan", - "traits": { - "smithy.api#documentation": "

Updates the pricing plan for the place index resource.

\n

For more information about each pricing plan option restrictions, see Amazon Location Service pricing.

" - } - }, - "Description": { - "target": "com.amazonaws.location#ResourceDescription", - "traits": { - "smithy.api#documentation": "

Updates the description for the place index resource.

" - } - }, - "DataSourceConfiguration": { - "target": "com.amazonaws.location#DataSourceConfiguration", - "traits": { - "smithy.api#documentation": "

Updates the data storage option for the place index resource.

" - } - } - } - }, - "com.amazonaws.location#UpdatePlaceIndexResponse": { - "type": "structure", - "members": { - "IndexName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the updated place index resource.

", - "smithy.api#required": {} - } - }, - "IndexArn": { - "target": "com.amazonaws.location#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the upated place index resource. Used to specify a\n resource across AWS.

\n ", - "smithy.api#required": {} - } - }, - "UpdateTime": { - "target": "com.amazonaws.location#Timestamp", - "traits": { - "smithy.api#documentation": "

The timestamp for when the place index resource was last updated in ISO 8601 format:\n YYYY-MM-DDThh:mm:ss.sssZ.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.location#UpdateRouteCalculator": { - "type": "operation", - "input": { - "target": "com.amazonaws.location#UpdateRouteCalculatorRequest" - }, - "output": { - "target": "com.amazonaws.location#UpdateRouteCalculatorResponse" - }, - "errors": [ - { - "target": "com.amazonaws.location#AccessDeniedException" - }, - { - "target": "com.amazonaws.location#InternalServerException" - }, - { - "target": "com.amazonaws.location#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.location#ThrottlingException" - }, - { - "target": "com.amazonaws.location#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Updates the specified properties for a given route calculator resource.

", - "smithy.api#endpoint": { - "hostPrefix": "routes." - }, - "smithy.api#http": { - "method": "PATCH", - "uri": "/routes/v0/calculators/{CalculatorName}", - "code": 200 - }, - "smithy.api#idempotent": {} - } - }, - "com.amazonaws.location#UpdateRouteCalculatorRequest": { - "type": "structure", - "members": { - "CalculatorName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the route calculator resource to update.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "PricingPlan": { - "target": "com.amazonaws.location#PricingPlan", - "traits": { - "smithy.api#documentation": "

Updates the pricing plan for the route calculator resource.

\n

For more information about each pricing plan option restrictions, see Amazon Location\n Service pricing.

" - } - }, - "Description": { - "target": "com.amazonaws.location#ResourceDescription", - "traits": { - "smithy.api#documentation": "

Updates the description for the route calculator resource.

" - } - } - } - }, - "com.amazonaws.location#UpdateRouteCalculatorResponse": { - "type": "structure", - "members": { - "CalculatorName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the updated route calculator resource.

", - "smithy.api#required": {} - } - }, - "CalculatorArn": { - "target": "com.amazonaws.location#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the updated route calculator resource. Used to specify a resource\n across AWS.

\n ", - "smithy.api#required": {} - } - }, - "UpdateTime": { - "target": "com.amazonaws.location#Timestamp", - "traits": { - "smithy.api#documentation": "

The timestamp for when the route calculator was last updated in ISO 8601\n format: YYYY-MM-DDThh:mm:ss.sssZ.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.location#UpdateTracker": { - "type": "operation", - "input": { - "target": "com.amazonaws.location#UpdateTrackerRequest" - }, - "output": { - "target": "com.amazonaws.location#UpdateTrackerResponse" - }, - "errors": [ - { - "target": "com.amazonaws.location#AccessDeniedException" - }, - { - "target": "com.amazonaws.location#InternalServerException" - }, - { - "target": "com.amazonaws.location#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.location#ThrottlingException" - }, - { - "target": "com.amazonaws.location#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Updates the specified properties of a given tracker resource.

", - "smithy.api#endpoint": { - "hostPrefix": "tracking." - }, - "smithy.api#http": { - "method": "PATCH", - "uri": "/tracking/v0/trackers/{TrackerName}", - "code": 200 - }, - "smithy.api#idempotent": {} - } - }, - "com.amazonaws.location#UpdateTrackerRequest": { - "type": "structure", - "members": { - "TrackerName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the tracker resource to update.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "PricingPlan": { - "target": "com.amazonaws.location#PricingPlan", - "traits": { - "smithy.api#documentation": "

Updates the pricing plan for the tracker resource.

\n

For more information about each pricing plan option restrictions, see Amazon Location Service\n pricing.

" - } - }, - "PricingPlanDataSource": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

Updates the data provider for the tracker resource.

\n

A required value for the following pricing plans: MobileAssetTracking| MobileAssetManagement\n

\n

For more information about data providers and pricing plans, see the Amazon Location Service product\n page

\n \n

This can only be updated when updating the PricingPlan in the same\n request.

\n

Amazon Location Service uses PricingPlanDataSource to calculate\n billing for your tracker resource. Your data won't be shared with the data provider,\n and will remain in your AWS account and Region unless you move it.

\n
" - } - }, - "Description": { - "target": "com.amazonaws.location#ResourceDescription", - "traits": { - "smithy.api#documentation": "

Updates the description for the tracker resource.

" - } - } - } - }, - "com.amazonaws.location#UpdateTrackerResponse": { - "type": "structure", - "members": { - "TrackerName": { - "target": "com.amazonaws.location#ResourceName", - "traits": { - "smithy.api#documentation": "

The name of the updated tracker resource.

", - "smithy.api#required": {} - } - }, - "TrackerArn": { - "target": "com.amazonaws.location#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the updated tracker resource. Used to specify a resource across\n AWS.

\n ", - "smithy.api#required": {} - } - }, - "UpdateTime": { - "target": "com.amazonaws.location#Timestamp", - "traits": { - "smithy.api#documentation": "

The timestamp for when the tracker resource was last updated in ISO 8601\n format: YYYY-MM-DDThh:mm:ss.sssZ.

", - "smithy.api#required": {} - } - } - } - }, "com.amazonaws.location#ValidationException": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/medialive.2017-10-14.json b/codegen/sdk-codegen/aws-models/medialive.2017-10-14.json index 83b665715f3..874ee056790 100644 --- a/codegen/sdk-codegen/aws-models/medialive.2017-10-14.json +++ b/codegen/sdk-codegen/aws-models/medialive.2017-10-14.json @@ -824,30 +824,6 @@ ] } }, - "com.amazonaws.medialive#AudioHlsRenditionSelection": { - "type": "structure", - "members": { - "GroupId": { - "target": "com.amazonaws.medialive#__stringMin1", - "traits": { - "smithy.api#documentation": "Specifies the GROUP-ID in the #EXT-X-MEDIA tag of the target HLS audio rendition.", - "smithy.api#jsonName": "groupId", - "smithy.api#required": {} - } - }, - "Name": { - "target": "com.amazonaws.medialive#__stringMin1", - "traits": { - "smithy.api#documentation": "Specifies the NAME in the #EXT-X-MEDIA tag of the target HLS audio rendition.", - "smithy.api#jsonName": "name", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "Audio Hls Rendition Selection" - } - }, "com.amazonaws.medialive#AudioLanguageSelection": { "type": "structure", "members": { @@ -1062,12 +1038,6 @@ "com.amazonaws.medialive#AudioSelectorSettings": { "type": "structure", "members": { - "AudioHlsRenditionSelection": { - "target": "com.amazonaws.medialive#AudioHlsRenditionSelection", - "traits": { - "smithy.api#jsonName": "audioHlsRenditionSelection" - } - }, "AudioLanguageSelection": { "target": "com.amazonaws.medialive#AudioLanguageSelection", "traits": { @@ -20135,35 +20105,11 @@ }, "com.amazonaws.medialive#WebvttDestinationSettings": { "type": "structure", - "members": { - "StyleControl": { - "target": "com.amazonaws.medialive#WebvttDestinationStyleControl", - "traits": { - "smithy.api#documentation": "Controls whether the color and position of the source captions is passed through to the WebVTT output captions. PASSTHROUGH - Valid only if the source captions are EMBEDDED or TELETEXT. NO_STYLE_DATA - Don't pass through the style. The output captions will not contain any font styling information.", - "smithy.api#jsonName": "styleControl" - } - } - }, + "members": {}, "traits": { "smithy.api#documentation": "Webvtt Destination Settings" } }, - "com.amazonaws.medialive#WebvttDestinationStyleControl": { - "type": "string", - "traits": { - "smithy.api#documentation": "Webvtt Destination Style Control", - "smithy.api#enum": [ - { - "value": "NO_STYLE_DATA", - "name": "NO_STYLE_DATA" - }, - { - "value": "PASSTHROUGH", - "name": "PASSTHROUGH" - } - ] - } - }, "com.amazonaws.medialive#__double": { "type": "double", "traits": { diff --git a/codegen/sdk-codegen/aws-models/personalize.2018-05-22.json b/codegen/sdk-codegen/aws-models/personalize.2018-05-22.json index e1f2d9ca9aa..58e25d4a440 100644 --- a/codegen/sdk-codegen/aws-models/personalize.2018-05-22.json +++ b/codegen/sdk-codegen/aws-models/personalize.2018-05-22.json @@ -965,7 +965,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a campaign by deploying a solution version. When a client calls the\n GetRecommendations\n and\n GetPersonalizedRanking\n APIs, a campaign is specified in the request.

\n\n

\n Minimum Provisioned TPS and Auto-Scaling\n

\n \n

A transaction is a single GetRecommendations or\n GetPersonalizedRanking call. Transactions per second (TPS) is the throughput\n and unit of billing for Amazon Personalize. The minimum provisioned TPS\n (minProvisionedTPS) specifies the baseline throughput provisioned by\n Amazon Personalize, and thus, the minimum billing charge. \n

\n

\n If your TPS increases beyond\n minProvisionedTPS, Amazon Personalize auto-scales the provisioned capacity up and down,\n but never below minProvisionedTPS.\n There's a short time delay while the capacity is increased that might cause loss of\n transactions.

\n

The actual TPS used is calculated as the average requests/second within a 5-minute window.\n You pay for maximum of either the minimum provisioned TPS or the actual TPS.\n We recommend starting with a low minProvisionedTPS, track\n your usage using Amazon CloudWatch metrics, and then increase the minProvisionedTPS\n as necessary.

\n\n

\n Status\n

\n

A campaign can be in one of the following states:

\n \n

To get the campaign status, call DescribeCampaign.

\n \n

Wait until the status of the campaign\n is ACTIVE before asking the campaign for recommendations.

\n
\n \n

\n Related APIs\n

\n ", + "smithy.api#documentation": "

Creates a campaign by deploying a solution version. When a client calls the\n GetRecommendations\n and\n GetPersonalizedRanking\n APIs, a campaign is specified in the request.

\n\n

\n Minimum Provisioned TPS and Auto-Scaling\n

\n \n

A transaction is a single GetRecommendations or\n GetPersonalizedRanking call. Transactions per second (TPS) is the throughput\n and unit of billing for Amazon Personalize. The minimum provisioned TPS\n (minProvisionedTPS) specifies the baseline throughput provisioned by\n Amazon Personalize, and thus, the minimum billing charge. \n

\n

\n If your TPS increases beyond\n minProvisionedTPS, Amazon Personalize auto-scales the provisioned capacity up and down,\n but never below minProvisionedTPS.\n There's a short time delay while the capacity is increased that might cause loss of\n transactions.

\n

The actual TPS used is calculated as the average requests/second within a 5-minute window.\n You pay for maximum of either the minimum provisioned TPS or the actual TPS.\n We recommend starting with a low minProvisionedTPS, track\n your usage using Amazon CloudWatch metrics, and then increase the minProvisionedTPS\n as necessary.

\n\n

\n Status\n

\n

A campaign can be in one of the following states:

\n \n

To get the campaign status, call DescribeCampaign.

\n \n

Wait until the status of the campaign\n is ACTIVE before asking the campaign for recommendations.

\n
\n \n

\n Related APIs\n

\n ", "smithy.api#idempotent": {} } }, @@ -989,7 +989,8 @@ "minProvisionedTPS": { "target": "com.amazonaws.personalize#TransactionsPerSecond", "traits": { - "smithy.api#documentation": "

Specifies the requested minimum provisioned transactions (recommendations) per second that\n Amazon Personalize will support.

" + "smithy.api#documentation": "

Specifies the requested minimum provisioned transactions (recommendations) per second that\n Amazon Personalize will support.

", + "smithy.api#required": {} } }, "campaignConfig": { @@ -1067,7 +1068,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Creates a job that exports data from your dataset to an Amazon S3 bucket. \n To allow Amazon Personalize to export the training data, you must specify an\n service-linked IAM role that gives Amazon Personalize PutObject permissions for your Amazon S3 bucket. \n For information, see Exporting a dataset \n in the Amazon Personalize developer guide.\n

\n

\n Status\n

\n

A dataset export job can be in one of the following states:

\n \n

\n To get the status of the export job, call DescribeDatasetExportJob,\n and specify the Amazon Resource Name (ARN) of the dataset export job. The dataset export is\n complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response\n includes a failureReason key, which describes why the job failed.\n

", + "smithy.api#documentation": "

\n Creates a job that exports data from your dataset to an Amazon S3 bucket. \n To allow Amazon Personalize to export the training data, you must specify an\n service-linked AWS Identity and Access Management (IAM) role that gives Amazon Personalize PutObject permissions for your Amazon S3 bucket. \n For information, see Exporting a dataset \n in the Amazon Personalize developer guide.\n

\n

\n Status\n

\n

A dataset export job can be in one of the following states:

\n \n

\n To get the status of the export job, call DescribeDatasetExportJob,\n and specify the Amazon Resource Name (ARN) of the dataset export job. The dataset export is\n complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response\n includes a failureReason key, which describes why the job failed.\n

", "smithy.api#idempotent": {} } }, @@ -1097,7 +1098,7 @@ "roleArn": { "target": "com.amazonaws.personalize#RoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your\n output Amazon S3 bucket.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management service role that has permissions to add data to your\n output Amazon S3 bucket.

", "smithy.api#required": {} } }, @@ -1141,7 +1142,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an empty dataset group. A dataset group contains related datasets that supply data\n for training a model. A dataset group can contain at most three datasets, one for each type of\n dataset:

\n \n

To train a model (create a solution), a dataset group that contains an\n Interactions dataset is required. Call CreateDataset to add a\n dataset to the group.

\n

A dataset group can be in one of the following states:

\n \n

To get the status of the dataset group, call DescribeDatasetGroup. If\n the status shows as CREATE FAILED, the response includes a failureReason key,\n which describes why the creation failed.

\n \n

You must wait until the status of the dataset group is ACTIVE\n before adding a dataset to the group.

\n
\n

You can specify an Key Management Service (KMS) key to encrypt the datasets in the group. If you\n specify a KMS key, you must also include an Identity and Access Management (IAM) role that has permission to\n access the key.

\n

\n APIs that require a dataset group ARN in the request\n

\n \n

\n Related APIs\n

\n " + "smithy.api#documentation": "

Creates an empty dataset group. A dataset group contains related datasets that supply data\n for training a model. A dataset group can contain at most three datasets, one for each type of\n dataset:

\n \n

To train a model (create a solution), a dataset group that contains an\n Interactions dataset is required. Call CreateDataset to add a\n dataset to the group.

\n

A dataset group can be in one of the following states:

\n \n

To get the status of the dataset group, call DescribeDatasetGroup. If\n the status shows as CREATE FAILED, the response includes a failureReason key,\n which describes why the creation failed.

\n \n

You must wait until the status of the dataset group is ACTIVE\n before adding a dataset to the group.

\n
\n

You can specify an AWS Key Management Service (KMS) key to encrypt the datasets in the group. If you\n specify a KMS key, you must also include an AWS Identity and Access Management (IAM) role that has permission to\n access the key.

\n

\n APIs that require a dataset group ARN in the request\n

\n \n

\n Related APIs\n

\n " } }, "com.amazonaws.personalize#CreateDatasetGroupRequest": { @@ -1157,13 +1158,13 @@ "roleArn": { "target": "com.amazonaws.personalize#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management Service (KMS) key. Supplying an IAM\n role is only valid when also specifying a KMS key.

" + "smithy.api#documentation": "

The ARN of the IAM role that has permissions to access the KMS key. Supplying an IAM\n role is only valid when also specifying a KMS key.

" } }, "kmsKeyArn": { "target": "com.amazonaws.personalize#KmsKeyArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a KMS key used to encrypt the datasets.

" } } } @@ -1205,7 +1206,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a job that imports training data from your data source (an Amazon S3 bucket) to an\n Amazon Personalize dataset. To allow Amazon Personalize to import the training data, you must specify an\n IAM service role that has permission to read from the data source, as Amazon Personalize makes a\n copy of your data and processes it internally. For information on granting access\n to your Amazon S3 bucket, see Giving Amazon Personalize \n Access to Amazon S3 Resources.

\n \n

The dataset import job replaces any existing data in the dataset that you imported in bulk.

\n
\n

\n Status\n

\n

A dataset import job can be in one of the following states:

\n \n

To get the status of the import job, call DescribeDatasetImportJob,\n providing the Amazon Resource Name (ARN) of the dataset import job. The dataset import is\n complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response\n includes a failureReason key, which describes why the job failed.

\n \n

Importing takes time. You must wait until the status shows as ACTIVE before training a\n model using the dataset.

\n
\n \n

\n Related APIs\n

\n " + "smithy.api#documentation": "

Creates a job that imports training data from your data source (an Amazon S3 bucket) to an\n Amazon Personalize dataset. To allow Amazon Personalize to import the training data, you must specify an\n AWS Identity and Access Management (IAM) service role that has permission to read from the data source, as Amazon Personalize makes a\n copy of your data and processes it in an internal AWS system. For information on granting access\n to your Amazon S3 bucket, see Giving Amazon Personalize \n Access to Amazon S3 Resources.

\n \n

The dataset import job replaces any existing data in the dataset that you imported in bulk.

\n
\n

\n Status\n

\n

A dataset import job can be in one of the following states:

\n \n

To get the status of the import job, call DescribeDatasetImportJob,\n providing the Amazon Resource Name (ARN) of the dataset import job. The dataset import is\n complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response\n includes a failureReason key, which describes why the job failed.

\n \n

Importing takes time. You must wait until the status shows as ACTIVE before training a\n model using the dataset.

\n
\n \n

\n Related APIs\n

\n " } }, "com.amazonaws.personalize#CreateDatasetImportJobRequest": { @@ -1445,7 +1446,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an Amazon Personalize schema from the specified schema string. The schema you create\n must be in Avro JSON format.

\n

Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset\n type and has a set of required field and keywords.\n You specify a schema when you call CreateDataset.

\n \n

\n Related APIs\n

\n ", + "smithy.api#documentation": "

Creates an Amazon Personalize schema from the specified schema string. The schema you create\n must be in Avro JSON format.

\n

Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset\n type and has a set of required field and keywords.\n You specify a schema when you call CreateDataset.

\n \n

\n Related APIs\n

\n ", "smithy.api#idempotent": {} } }, @@ -1505,7 +1506,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates the configuration for training a model. A trained model is known as\n a solution. After the configuration is created, you train the model (create a solution)\n by calling the CreateSolutionVersion operation. Every time you call\n CreateSolutionVersion, a new version of the solution is created.

\n

After creating a solution version, you check its accuracy by calling\n GetSolutionMetrics. When you are satisfied with the version, you\n deploy it using CreateCampaign. The campaign provides recommendations\n to a client through the\n GetRecommendations API.

\n

To train a model, Amazon Personalize requires training data and a recipe. The training data\n comes from the dataset group that you provide in the request. A recipe specifies\n the training algorithm and a feature transformation. You can specify one of the predefined\n recipes provided by Amazon Personalize. Alternatively, you can specify\n performAutoML and Amazon Personalize will analyze your data and select the\n optimum USER_PERSONALIZATION recipe for you.

\n \n

Amazon Personalize doesn't support configuring the hpoObjective \n for solution hyperparameter optimization at this time.

\n
\n

\n Status\n

\n

A solution can be in one of the following states:

\n \n

To get the status of the solution, call DescribeSolution. Wait\n until the status shows as ACTIVE before calling CreateSolutionVersion.

\n \n \n \n

\n Related APIs\n

\n \n " + "smithy.api#documentation": "

Creates the configuration for training a model. A trained model is known as\n a solution. After the configuration is created, you train the model (create a solution)\n by calling the CreateSolutionVersion operation. Every time you call\n CreateSolutionVersion, a new version of the solution is created.

\n

After creating a solution version, you check its accuracy by calling\n GetSolutionMetrics. When you are satisfied with the version, you\n deploy it using CreateCampaign. The campaign provides recommendations\n to a client through the\n GetRecommendations API.

\n

To train a model, Amazon Personalize requires training data and a recipe. The training data\n comes from the dataset group that you provide in the request. A recipe specifies\n the training algorithm and a feature transformation. You can specify one of the predefined\n recipes provided by Amazon Personalize. Alternatively, you can specify\n performAutoML and Amazon Personalize will analyze your data and select the\n optimum USER_PERSONALIZATION recipe for you.

\n \n

Amazon Personalize doesn't support configuring the hpoObjective \n for solution hyperparameter optimization at this time.

\n
\n

\n Status\n

\n

A solution can be in one of the following states:

\n \n

To get the status of the solution, call DescribeSolution. Wait\n until the status shows as ACTIVE before calling CreateSolutionVersion.

\n \n \n \n

\n Related APIs\n

\n \n " } }, "com.amazonaws.personalize#CreateSolutionRequest": { @@ -1723,7 +1724,7 @@ "roleArn": { "target": "com.amazonaws.personalize#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your\n output Amazon S3 bucket.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management service role that has permissions to add data to your\n output Amazon S3 bucket.

" } }, "status": { @@ -1861,7 +1862,7 @@ "kmsKeyArn": { "target": "com.amazonaws.personalize#KmsKeyArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt the datasets.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the KMS key used to encrypt the datasets.

" } }, "creationDateTime": { @@ -1884,7 +1885,7 @@ } }, "traits": { - "smithy.api#documentation": "

A dataset group is a collection of related datasets (Interactions, User, and Item). You\n create a dataset group by calling CreateDatasetGroup. You then create a\n dataset and add it to a dataset group by calling CreateDataset. The dataset\n group is used to create and train a solution by calling CreateSolution. A\n dataset group can contain only one of each type of dataset.

\n

You can specify an Key Management Service (KMS) key to encrypt the datasets in the group.

" + "smithy.api#documentation": "

A dataset group is a collection of related datasets (Interactions, User, and Item). You\n create a dataset group by calling CreateDatasetGroup. You then create a\n dataset and add it to a dataset group by calling CreateDataset. The dataset\n group is used to create and train a solution by calling CreateSolution. A\n dataset group can contain only one of each type of dataset.

\n

You can specify an AWS Key Management Service (KMS) key to encrypt the datasets in the group.

" } }, "com.amazonaws.personalize#DatasetGroupSummary": { @@ -1973,7 +1974,7 @@ "roleArn": { "target": "com.amazonaws.personalize#Arn", "traits": { - "smithy.api#documentation": "

The ARN of the IAM role that has permissions to read from the Amazon S3 data\n source.

" + "smithy.api#documentation": "

The ARN of the AWS Identity and Access Management (IAM) role that has permissions to read from the Amazon S3 data\n source.

" } }, "status": { @@ -3230,7 +3231,7 @@ "accountId": { "target": "com.amazonaws.personalize#AccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account that owns the event tracker.

" + "smithy.api#documentation": "

The Amazon AWS account that owns the event tracker.

" } }, "trackingId": { @@ -4984,7 +4985,7 @@ "kmsKeyArn": { "target": "com.amazonaws.personalize#KmsKeyArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key that Amazon Personalize uses to\n encrypt or decrypt the input and output files of a batch inference job.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon Key Management Service (KMS) key that Amazon Personalize uses to\n encrypt or decrypt the input and output files of a batch inference job.

" } } }, diff --git a/codegen/sdk-codegen/aws-models/proton.2020-07-20.json b/codegen/sdk-codegen/aws-models/proton.2020-07-20.json index c4a31542805..3a569269dcf 100644 --- a/codegen/sdk-codegen/aws-models/proton.2020-07-20.json +++ b/codegen/sdk-codegen/aws-models/proton.2020-07-20.json @@ -30,7 +30,7 @@ } ], "traits": { - "smithy.api#documentation": "

In a management account, an environment account connection request is accepted. When the environment account connection request is\n accepted, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment\n account.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", + "smithy.api#documentation": "

In a management account, an environment account connection request is accepted. When the environment account connection request is\n accepted, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment\n account.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", "smithy.api#idempotent": {} } }, @@ -186,7 +186,7 @@ "name": "proton" }, "aws.protocols#awsJson1_0": {}, - "smithy.api#documentation": "

This is the AWS Proton Service API Reference. It provides descriptions, syntax and usage examples for each of the actions and data types for the AWS Proton service.

\n

The documentation for each action shows the Query API request parameters and the XML response.

\n

Alternatively, you can use the AWS CLI to access an API. For more information, see the AWS Command Line Interface User Guide.

\n

The AWS Proton service is a two-pronged automation framework. Administrators create service templates to provide standardized\n infrastructure and deployment tooling for serverless and container based applications. Developers, in turn, select from the available\n service templates to automate their application or service deployments.

\n

Because administrators define the infrastructure and tooling that AWS Proton deploys and manages, they need permissions to use all of the\n listed API operations.

\n

When developers select a specific infrastructure and tooling set, AWS Proton deploys their applications. To monitor their applications\n that are running on AWS Proton, developers need permissions to the service create, list,\n update and delete API operations and the service instance list and\n update API operations.

\n

To learn more about AWS Proton administration, see the AWS Proton\n Administrator Guide.

\n

To learn more about deploying serverless and containerized applications on AWS Proton, see the AWS Proton User Guide.

\n

\n Ensuring Idempotency\n

\n

When you make a mutating API request, the request typically returns a result before the asynchronous workflows of the operation are\n complete. Operations might also time out or encounter other server issues before they're complete, even if the request already returned a\n result. This might make it difficult to determine whether the request succeeded. Moreover, you might need to retry the request multiple\n times to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the\n operation occurs multiple times. This means that you might create more resources than you intended.

\n

\n Idempotency ensures that an API request action completes no more than one time. With an idempotent request, if the\n original request action completes successfully, any subsequent retries complete successfully without performing any further actions.\n However, the result might contain updated information, such as the current creation status.

\n

The following lists of APIs are grouped according to methods that ensure idempotency.

\n

\n Idempotent create APIs with a client token\n

\n

The API actions in this list support idempotency with the use of a client token. The corresponding AWS CLI\n commands also support idempotency using a client token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. To\n make an idempotent API request using one of these actions, specify a client token in the request. We recommend that you\n don't reuse the same client token for other API requests. If you don’t provide a client token for these APIs, a\n default client token is automatically provided by SDKs.

\n

Given a request action that has succeeded:

\n

If you retry the request using the same client token and the same parameters, the retry succeeds without performing any further actions\n other than returning the original resource detail data in the response.

\n

If you retry the request using the same client token, but one or more of the parameters are different, the retry throws a\n ValidationException with an IdempotentParameterMismatch error.

\n

Client tokens expire eight hours after a request is made. If you retry the request with the expired token, a new resource is\n created.

\n

If the original resource is deleted and you retry the request, a new resource is created.

\n

Idempotent create APIs with a client token:

\n \n

\n Idempotent delete APIs\n

\n

Given a request action that has succeeded:

\n

When you retry the request with an API from this group and the resource was deleted, its metadata is returned in the response.

\n

If you retry and the resource doesn't exist, the response is empty.

\n

In both cases, the retry succeeds.

\n

Idempotent delete APIs:

\n \n

\n Asynchronous idempotent delete APIs\n

\n

Given a request action that has succeeded:

\n

If you retry the request with an API from this group, if the original request delete operation status is\n DELETE_IN_PROGRESS, the retry returns the resource detail data in the response without performing any further actions.

\n

If the original request delete operation is complete, a retry returns an empty response.

\n

Asynchronous idempotent delete APIs:

\n ", + "smithy.api#documentation": "

This is the AWS Proton Service API Reference. It provides descriptions, syntax and usage examples for each of the actions and data types for the AWS Proton service.

\n

The documentation for each action shows the Query API request parameters and the XML response.

\n

Alternatively, you can use the AWS CLI to access an API. For more information, see the AWS Command Line Interface User Guide.

\n

The AWS Proton service is a two-pronged automation framework. Administrators create service templates to provide standardized\n infrastructure and deployment tooling for serverless and container based applications. Developers, in turn, select from the available\n service templates to automate their application or service deployments.

\n

Because administrators define the infrastructure and tooling that AWS Proton deploys and manages, they need permissions to use all of the\n listed API operations.

\n

When developers select a specific infrastructure and tooling set, AWS Proton deploys their applications. To monitor their applications that\n are running on AWS Proton, developers need permissions to the service create, list,\n update and delete API operations and the service instance list and\n update API operations.

\n

To learn more about AWS Proton administration, see the AWS Proton\n Administration Guide.

\n

To learn more about deploying serverless and containerized applications on AWS Proton, see the AWS Proton User Guide.

\n

\n Ensuring Idempotency\n

\n

When you make a mutating API request, the request typically returns a result before the asynchronous workflows of the operation are\n complete. Operations might also time out or encounter other server issues before they're complete, even if the request already returned a\n result. This might make it difficult to determine whether the request succeeded. Moreover, you might need to retry the request multiple\n times to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the\n operation occurs multiple times. This means that you might create more resources than you intended.

\n

\n Idempotency ensures that an API request action completes no more than one time. With an idempotent request, if the\n original request action completes successfully, any subsequent retries complete successfully without performing any further actions.\n However, the result might contain updated information, such as the current creation status.

\n

The following lists of APIs are grouped according to methods that ensure idempotency.

\n

\n Idempotent create APIs with a client token\n

\n

The API actions in this list support idempotency with the use of a client token. The corresponding AWS CLI commands\n also support idempotency using a client token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. To make an\n idempotent API request using one of these actions, specify a client token in the request. We recommend that you don't\n reuse the same client token for other API requests. If you don’t provide a client token for these APIs, a default client token is\n automatically provided by SDKs.

\n

Given a request action that has succeeded:

\n

If you retry the request using the same client token and the same parameters, the retry succeeds without performing any further actions\n other than returning the original resource detail data in the response.

\n

If you retry the request using the same client token, but one or more of the parameters are different, the retry throws a\n ValidationException with an IdempotentParameterMismatch error.

\n

Client tokens expire eight hours after a request is made. If you retry the request with the expired token, a new resource is\n created.

\n

If the original resource is deleted and you retry the request, a new resource is created.

\n

Idempotent create APIs with a client token:

\n \n\n

\n Idempotent delete APIs\n

\n

Given a request action that has succeeded:

\n

When you retry the request with an API from this group and the resource was deleted, its metadata is returned in the response.

\n

If you retry and the resource doesn't exist, the response is empty.

\n

In both cases, the retry succeeds.

\n

Idempotent delete APIs:

\n \n

\n Asynchronous idempotent delete APIs\n

\n

Given a request action that has succeeded:

\n

If you retry the request with an API from this group, if the original request delete operation status is\n DELETE_IN_PROGRESS, the retry returns the resource detail data in the response without performing any further actions.

\n

If the original request delete operation is complete, a retry returns an empty response.

\n

Asynchronous idempotent delete APIs:

\n ", "smithy.api#title": "AWS Proton" } }, @@ -219,7 +219,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is\n IN_PROGRESS. For more information, see Update an environment in the AWS Proton Administrator guide.

\n

The following list includes potential cancellation scenarios.

\n " + "smithy.api#documentation": "

Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is\n IN_PROGRESS. For more information, see Update an environment in the AWS Proton Administration guide.

\n

The following list includes potential cancellation scenarios.

\n " } }, "com.amazonaws.proton#CancelEnvironmentDeploymentInput": { @@ -285,7 +285,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is\n IN_PROGRESS. For more information, see Update a service instance in the AWS Proton Administrator guide or the AWS Proton User guide.

\n

The following list includes potential cancellation scenarios.

\n " + "smithy.api#documentation": "

Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is\n IN_PROGRESS. For more information, see Update a service instance in the AWS Proton Administration guide or the AWS Proton User guide.

\n

The following list includes potential cancellation scenarios.

\n " } }, "com.amazonaws.proton#CancelServiceInstanceDeploymentInput": { @@ -359,7 +359,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is\n IN_PROGRESS. For more information, see Update a service pipeline in the AWS Proton Administrator guide or the AWS Proton User guide.

\n

The following list includes potential cancellation scenarios.

\n " + "smithy.api#documentation": "

Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is\n IN_PROGRESS. For more information, see Update a service pipeline in the AWS Proton Administration guide or the AWS Proton User guide.

\n

The following list includes potential cancellation scenarios.

\n " } }, "com.amazonaws.proton#CancelServicePipelineDeploymentInput": { @@ -515,7 +515,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deploy a new environment. An AWS Proton environment is created from an environment template that defines infrastructure and resources\n that can be shared across services. For more information, see the Environments in the AWS Proton Administrator\n Guide.\n

", + "smithy.api#documentation": "

Deploy a new environment. An AWS Proton environment is created from an environment template that defines infrastructure and resources that\n can be shared across services. For more information, see the Environments in the AWS Proton Administration\n Guide.\n

", "smithy.api#idempotent": {} } }, @@ -548,7 +548,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in\n the environment account from a management account.

\n

An environment account connection is a secure bi-directional connection between a management account and an\n environment account that maintains authorization and permissions. For more information, see Environment account connections in the AWS Proton\n Administrator guide.

", + "smithy.api#documentation": "

Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in\n the environment account from the management account.

\n

An environment account connection is a secure bi-directional connection between a management account and an\n environment account that maintains authorization and permissions. For more information, see Environment account connections in the AWS Proton\n Administration guide.

", "smithy.api#idempotent": {} } }, @@ -610,7 +610,7 @@ "templateName": { "target": "com.amazonaws.proton#ResourceName", "traits": { - "smithy.api#documentation": "

The name of the environment template. For more information, see Environment Templates in the AWS Proton Administrator\n Guide.

", + "smithy.api#documentation": "

The name of the environment template. For more information, see Environment Templates in the AWS Proton Administration\n Guide.

", "smithy.api#required": {} } }, @@ -636,26 +636,26 @@ "spec": { "target": "com.amazonaws.proton#SpecContents", "traits": { - "smithy.api#documentation": "

A link to a YAML formatted spec file that provides inputs as defined in the environment template bundle schema file. For more\n information, see Environments in the\n AWS Proton Administrator Guide.

", + "smithy.api#documentation": "

A link to a YAML formatted spec file that provides inputs as defined in the environment template bundle schema file. For more\n information, see Environments in the\n AWS Proton Administration Guide.

", "smithy.api#required": {} } }, "protonServiceRoleArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf. You\n must include either the environmentAccountConnectionId or protonServiceRoleArn parameter and value.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf. You must\n include either the environmentAccountConnectionId or protonServiceRoleArn parameter and value.

" } }, "environmentAccountConnectionId": { "target": "com.amazonaws.proton#EnvironmentAccountConnectionId", "traits": { - "smithy.api#documentation": "

The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an\n environment account. You must include either the environmentAccountConnectionId or protonServiceRoleArn\n parameter and value. For more information, see Environment account\n connections in the AWS Proton Administrator guide.

" + "smithy.api#documentation": "

The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an\n environment account. You must include either the environmentAccountConnectionId or protonServiceRoleArn\n parameter and value. For more information, see Environment account\n connections in the AWS Proton Administration guide.

" } }, "tags": { "target": "com.amazonaws.proton#TagList", "traits": { - "smithy.api#documentation": "

Create tags for your environment. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

" + "smithy.api#documentation": "

Create tags for your environment. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

" } } } @@ -701,7 +701,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create an environment template for AWS Proton. For more information, see Environment Templates in the AWS Proton Administrator\n Guide.

\n

You can create an environment template in one of the two following ways:

\n ", + "smithy.api#documentation": "

Create an environment template for AWS Proton. For more information, see Environment Templates in the AWS Proton Administration\n Guide.

\n

You can create an environment template in one of the two following ways:

\n ", "smithy.api#idempotent": {} } }, @@ -742,7 +742,7 @@ "tags": { "target": "com.amazonaws.proton#TagList", "traits": { - "smithy.api#documentation": "

Create tags for your environment template. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

" + "smithy.api#documentation": "

Create tags for your environment template. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

" } } } @@ -821,7 +821,7 @@ "majorVersion": { "target": "com.amazonaws.proton#TemplateVersionPart", "traits": { - "smithy.api#documentation": "

To create a new minor version of the environment template, include a majorVersion.

\n

To create a new major and minor version of the environment template, exclude\n majorVersion.

" + "smithy.api#documentation": "

To create a new minor version of the environment template, include a majorVersion.

\n

To create a new major and minor version of the environment template, exclude majorVersion.

" } }, "source": { @@ -883,7 +883,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create an AWS Proton service. An AWS Proton service is an instantiation of a service template and often includes several service instances\n and pipeline. For more information, see Services in\n the AWS Proton Administrator Guide and Services in the AWS Proton User Guide.

", + "smithy.api#documentation": "

Create an AWS Proton service. An AWS Proton service is an instantiation of a service template and often includes several service instances and\n pipeline. For more information, see Services in the\n AWS Proton Administration Guide and Services in the AWS Proton User Guide.

", "smithy.api#idempotent": {} } }, @@ -926,14 +926,14 @@ "spec": { "target": "com.amazonaws.proton#SpecContents", "traits": { - "smithy.api#documentation": "

A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t\n include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more\n information, see Create a service in the\n AWS Proton Administrator Guide and Create a service in the AWS Proton User Guide.

", + "smithy.api#documentation": "

A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t\n include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the AWS Proton\n Administration Guide and Create a\n service in the AWS Proton User Guide.

", "smithy.api#required": {} } }, "repositoryConnectionArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the repository connection. For more information, see Set up repository connection in the\n AWS Proton Administrator Guide and Setting up with AWS Proton in the AWS Proton\n User Guide. Don't include this parameter if your service template doesn't include\n a service pipeline.

" + "smithy.api#documentation": "

The ARN of the repository connection. For more information, see Set up repository connection in the\n AWS Proton Administration Guide and Getting started in the AWS Proton User\n Guide. Don't include this parameter if your service template doesn't include a\n service pipeline.

" } }, "repositoryId": { @@ -945,13 +945,13 @@ "branchName": { "target": "com.amazonaws.proton#GitBranchName", "traits": { - "smithy.api#documentation": "

The name of the code repository branch that holds the code that's deployed in AWS Proton. Don't include this\n parameter if your service template doesn't include a service pipeline.

" + "smithy.api#documentation": "

The name of the code repository branch that holds the code that's deployed in AWS Proton. Don't include this parameter\n if your service template doesn't include a service pipeline.

" } }, "tags": { "target": "com.amazonaws.proton#TagList", "traits": { - "smithy.api#documentation": "

Create tags for your service. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

" + "smithy.api#documentation": "

Create tags for your service. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

" } } } @@ -997,7 +997,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CICD\n service pipeline. Developers, in turn, select the service template from AWS Proton. If the selected service template includes a service\n pipeline definition, they provide a link to their source code repository. AWS Proton then deploys and manages the infrastructure defined by\n the selected service template. For more information, see Service Templates in the AWS Proton Administrator\n Guide.

", + "smithy.api#documentation": "

Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CICD\n service pipeline. Developers, in turn, select the service template from AWS Proton. If the selected service template includes a service\n pipeline definition, they provide a link to their source code repository. AWS Proton then deploys and manages the infrastructure defined by the\n selected service template. For more information, see Service Templates in the AWS Proton Administration\n Guide.

", "smithy.api#idempotent": {} } }, @@ -1032,13 +1032,13 @@ "pipelineProvisioning": { "target": "com.amazonaws.proton#Provisioning", "traits": { - "smithy.api#documentation": "

AWS Proton includes a service pipeline for your service by default. When included, this parameter indicates that an AWS Proton service\n pipeline won't be included for your service. Once specified, this parameter can't be changed.\n For more information, see Service template\n bundles in the AWS Proton Administrator Guide.

" + "smithy.api#documentation": "

AWS Proton includes a service pipeline for your service by default. When included, this parameter indicates that an AWS Proton service\n pipeline won't be included for your service. Once specified, this parameter can't be changed.\n For more information, see Service template\n bundles in the AWS Proton Administration Guide.

" } }, "tags": { "target": "com.amazonaws.proton#TagList", "traits": { - "smithy.api#documentation": "

Create tags for your service template. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

" + "smithy.api#documentation": "

Create tags for your service template. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

" } } } @@ -1216,7 +1216,7 @@ } ], "traits": { - "smithy.api#documentation": "

In an environment account, delete an environment account connection.

\n

After you delete an environment account connection that’s in use by an AWS Proton environment, AWS Proton can’t\n manage the environment infrastructure resources until a new environment account connection is accepted for the environment account and\n associated environment. You're responsible for cleaning up provisioned resources that remain without an environment connection.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", + "smithy.api#documentation": "

In an environment account, delete an environment account connection.

\n

After you delete an environment account connection that’s in use by an AWS Proton environment, AWS Proton can’t\n manage the environment infrastructure resources until a new environment account connection is accepted for the environment account and\n associated environment. You're responsible for cleaning up provisioned resources that remain without an environment connection.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", "smithy.api#idempotent": {} } }, @@ -1752,7 +1752,7 @@ "templateName": { "target": "com.amazonaws.proton#ResourceName", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the environment template.

", + "smithy.api#documentation": "

The ARN of the environment template.

", "smithy.api#required": {} } }, @@ -1786,7 +1786,7 @@ "protonServiceRoleArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your\n behalf.

" + "smithy.api#documentation": "

The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

" } }, "environmentAccountConnectionId": { @@ -2180,7 +2180,7 @@ "protonServiceRoleArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your\n behalf.

" + "smithy.api#documentation": "

The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

" } }, "environmentAccountConnectionId": { @@ -2765,7 +2765,7 @@ } ], "traits": { - "smithy.api#documentation": "

In an environment account, view the detail data for an environment account connection.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", + "smithy.api#documentation": "

In an environment account, view the detail data for an environment account connection.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", "smithy.api#readonly": {} } }, @@ -3534,7 +3534,7 @@ } ], "traits": { - "smithy.api#documentation": "

View a list of environment account connections.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", + "smithy.api#documentation": "

View a list of environment account connections.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -4150,7 +4150,7 @@ } ], "traits": { - "smithy.api#documentation": "

List tags for a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

", + "smithy.api#documentation": "

List tags for a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -4166,7 +4166,7 @@ "resourceArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource for the listed tags.

", + "smithy.api#documentation": "

The ARN of the resource for the listed tags.

", "smithy.api#httpQuery": "resourceArn", "smithy.api#required": {} } @@ -4261,7 +4261,7 @@ } ], "traits": { - "smithy.api#documentation": "

In a management account, reject an environment account connection from another environment account.

\n

After you reject an environment account connection request, you won’t be able to accept or use the rejected\n environment account connection.

\n

You can’t reject an environment account connection that is connected to an environment.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", + "smithy.api#documentation": "

In a management account, reject an environment account connection from another environment account.

\n

After you reject an environment account connection request, you won’t be able to accept or use the rejected\n environment account connection.

\n

You can’t reject an environment account connection that is connected to an environment.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", "smithy.api#idempotent": {} } }, @@ -4445,7 +4445,7 @@ "repositoryConnectionArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the repository connection. For more information, see Set up a repository connection in the\n AWS Proton Administrator Guide and Setting up with AWS Proton in the AWS Proton\n User Guide.

" + "smithy.api#documentation": "

The ARN of the repository connection. For more information, see Set up a repository connection in the\n AWS Proton Administration Guide and Getting started in the AWS Proton User\n Guide.

" } }, "repositoryId": { @@ -4811,7 +4811,7 @@ } }, "traits": { - "smithy.api#documentation": "

A quota was exceeded. For more information, see AWS Proton\n Quotas in the AWS Proton Administrator Guide.

", + "smithy.api#documentation": "

A quota was exceeded. For more information, see AWS Proton\n Quotas in the AWS Proton Administration Guide.

", "smithy.api#error": "client", "smithy.api#httpError": 402 } @@ -5466,7 +5466,7 @@ } ], "traits": { - "smithy.api#documentation": "

Tag a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

", + "smithy.api#documentation": "

Tag a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

", "smithy.api#idempotent": {} } }, @@ -5609,7 +5609,7 @@ } ], "traits": { - "smithy.api#documentation": "

Remove a tag from a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

", + "smithy.api#documentation": "

Remove a tag from a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

", "smithy.api#idempotent": {} } }, @@ -5718,7 +5718,7 @@ } ], "traits": { - "smithy.api#documentation": "

Update an environment.

\n

If the environment is associated with an environment account connection, don't update or include the\n protonServiceRoleArn parameter to update or connect to an environment account connection.

\n

You can only update to a new environment account connection if it was created in the same environment account that the current\n environment account connection was created in and is associated with the current environment.

\n

If the environment isn't associated with an environment account connection, don't update or\n include the environmentAccountConnectionId parameter to update or connect to an environment account connection.

\n

You can update either the environmentAccountConnectionId or protonServiceRoleArn parameter and value. You\n can’t update both.

\n

There are four modes for updating an environment as described in the following. The deploymentType field defines the\n mode.

\n
\n
\n
\n

\n NONE\n

\n

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

\n
\n
\n
\n

\n CURRENT_VERSION\n

\n

In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are\n updated. Don’t include minor or major version parameters when you use this\n deployment-type.

\n
\n
\n
\n

\n MINOR_VERSION\n

\n

In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current\n major version in use, by default. You can also specify a different minor version of the current major version in use.

\n
\n
\n
\n

\n MAJOR_VERSION\n

\n

In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of\n the current template, by default. You can also specify a different major version that's higher than the major version in use\n and a minor version (optional).

\n
\n
" + "smithy.api#documentation": "

Update an environment.

\n

If the environment is associated with an environment account connection, don't update or include the\n protonServiceRoleArn parameter to update or connect to an environment account connection.

\n

You can only update to a new environment account connection if it was created in the same environment account that the current\n environment account connection was created in and associated with the current environment.

\n

If the environment isn't associated with an environment account connection, don't update or\n include the environmentAccountConnectionId parameter to update or connect to an environment account connection.

\n

You can update either the environmentAccountConnectionId or protonServiceRoleArn parameter and value. You\n can’t update both.

\n

There are four modes for updating an environment as described in the following. The deploymentType field defines the\n mode.

\n
\n
\n
\n

\n NONE\n

\n

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

\n
\n
\n
\n

\n CURRENT_VERSION\n

\n

In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are\n updated. Don’t include minor or major version parameters when you use this\n deployment-type.

\n
\n
\n
\n

\n MINOR_VERSION\n

\n

In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current\n major version in use, by default. You can also specify a different minor version of the current major version in use.

\n
\n
\n
\n

\n MAJOR_VERSION\n

\n

In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of\n the current template, by default. You can also specify a different major version that's higher than the major version in use\n and a minor version (optional).

\n
\n
" } }, "com.amazonaws.proton#UpdateEnvironmentAccountConnection": { @@ -5750,7 +5750,7 @@ } ], "traits": { - "smithy.api#documentation": "

In an environment account, update an environment account connection to use a new IAM role.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", + "smithy.api#documentation": "

In an environment account, update an environment account connection to use a new IAM role.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", "smithy.api#idempotent": {} } }, @@ -5829,7 +5829,7 @@ "protonServiceRoleArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make API calls to other services your\n behalf.

" + "smithy.api#documentation": "

The ARN of the AWS Proton service role that allows AWS Proton to make API calls to other services your behalf.

" } }, "deploymentType": { @@ -5842,7 +5842,7 @@ "environmentAccountConnectionId": { "target": "com.amazonaws.proton#EnvironmentAccountConnectionId", "traits": { - "smithy.api#documentation": "

The ID of the environment account connection.

\n

You can only update to a new environment account connection if it was created in the same environment account that the current\n environment account connection was created in and is associated with the current environment.

" + "smithy.api#documentation": "

The ID of the environment account connection.

\n

You can only update to a new environment account connection if it was created in the same environment account that the current\n environment account connection was created in and associated with the current environment.

" } } }, @@ -6084,7 +6084,7 @@ "spec": { "target": "com.amazonaws.proton#SpecContents", "traits": { - "smithy.api#documentation": "

Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the\n list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a\n service in the AWS Proton Administrator\n Guide or the AWS Proton User Guide.

" + "smithy.api#documentation": "

Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the\n list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a\n service in the AWS Proton Administration\n Guide or the AWS Proton User Guide.

" } } }, diff --git a/codegen/sdk-codegen/aws-models/qldb.2019-01-02.json b/codegen/sdk-codegen/aws-models/qldb.2019-01-02.json index dfbbdb0c63b..1c4d0d616da 100644 --- a/codegen/sdk-codegen/aws-models/qldb.2019-01-02.json +++ b/codegen/sdk-codegen/aws-models/qldb.2019-01-02.json @@ -211,7 +211,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new ledger in your account in the current Region.

", + "smithy.api#documentation": "

Creates a new ledger in your AWS account in the current Region.

", "smithy.api#http": { "method": "POST", "uri": "/ledgers", @@ -225,7 +225,7 @@ "Name": { "target": "com.amazonaws.qldb#LedgerName", "traits": { - "smithy.api#documentation": "

The name of the ledger that you want to create. The name must be unique among all of\n the ledgers in your account in the current Region.

\n

Naming constraints for ledger names are defined in Quotas in Amazon QLDB\n in the Amazon QLDB Developer Guide.

", + "smithy.api#documentation": "

The name of the ledger that you want to create. The name must be unique among all of\n your ledgers in the current AWS Region.

\n

Naming constraints for ledger names are defined in Quotas in Amazon QLDB\n in the Amazon QLDB Developer Guide.

", "smithy.api#required": {} } }, @@ -247,12 +247,6 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } - }, - "KmsKey": { - "target": "com.amazonaws.qldb#KmsKey", - "traits": { - "smithy.api#documentation": "

The key in Key Management Service (KMS) to use for encryption of data at rest in the ledger. For\n more information, see Encryption at rest in\n the Amazon QLDB Developer Guide.

\n

Use one of the following options to specify this parameter:

\n \n

To specify a customer managed KMS key, you can use its key ID, Amazon Resource Name\n (ARN), alias name, or alias ARN. When using an alias name, prefix it with\n \"alias/\". To specify a key in a different account, you must use the key\n ARN or alias ARN.

\n

For example:

\n \n

For more information, see Key identifiers (KeyId) in\n the Key Management Service Developer Guide.

" - } } } }, @@ -294,12 +288,6 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } - }, - "KmsKeyArn": { - "target": "com.amazonaws.qldb#Arn", - "traits": { - "smithy.api#documentation": "

The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If\n this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.

" - } } } }, @@ -482,7 +470,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns information about a ledger, including its state, permissions mode, encryption at\n rest settings, and when it was created.

", + "smithy.api#documentation": "

Returns information about a ledger, including its state and when it was created.

", "smithy.api#http": { "method": "GET", "uri": "/ledgers/{Name}", @@ -541,12 +529,6 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } - }, - "EncryptionDescription": { - "target": "com.amazonaws.qldb#LedgerEncryptionDescription", - "traits": { - "smithy.api#documentation": "

Information about the encryption of data at rest in the ledger. This includes the\n current status, the KMS key, and when the key became inaccessible (in the case of an\n error).

" - } } } }, @@ -559,25 +541,6 @@ } } }, - "com.amazonaws.qldb#EncryptionStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "ENABLED", - "name": "ENABLED" - }, - { - "value": "UPDATING", - "name": "UPDATING" - }, - { - "value": "KMS_KEY_INACCESSIBLE", - "name": "KMS_KEY_INACCESSIBLE" - } - ] - } - }, "com.amazonaws.qldb#ErrorCause": { "type": "string", "traits": { @@ -656,7 +619,7 @@ "RoleArn": { "target": "com.amazonaws.qldb#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a\n journal export job to do the following:

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a\n journal export job to do the following:

\n ", "smithy.api#required": {} } } @@ -958,7 +921,7 @@ "ExclusiveEndTime": { "target": "com.amazonaws.qldb#Timestamp", "traits": { - "smithy.api#documentation": "

The exclusive date and time that specifies when the stream ends. If this parameter is\n undefined, the stream runs indefinitely until you cancel it.

" + "smithy.api#documentation": "

The exclusive date and time that specifies when the stream ends. If this parameter is\n blank, the stream runs indefinitely until you cancel it.

" } }, "RoleArn": { @@ -1073,7 +1036,7 @@ "RoleArn": { "target": "com.amazonaws.qldb#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a\n journal export job to do the following:

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a\n journal export job to do the following:

\n ", "smithy.api#required": {} } } @@ -1109,43 +1072,6 @@ "smithy.api#documentation": "

The configuration settings of the Amazon Kinesis Data Streams destination for an Amazon QLDB journal\n stream.

" } }, - "com.amazonaws.qldb#KmsKey": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 1600 - } - } - }, - "com.amazonaws.qldb#LedgerEncryptionDescription": { - "type": "structure", - "members": { - "KmsKeyArn": { - "target": "com.amazonaws.qldb#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for\n encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key\n for encryption.

", - "smithy.api#required": {} - } - }, - "EncryptionStatus": { - "target": "com.amazonaws.qldb#EncryptionStatus", - "traits": { - "smithy.api#documentation": "

The current state of encryption at rest for the ledger. This can be one of the following\n values:

\n ", - "smithy.api#required": {} - } - }, - "InaccessibleKmsKeyDateTime": { - "target": "com.amazonaws.qldb#Timestamp", - "traits": { - "smithy.api#documentation": "

The date and time, in epoch time format, when the KMS key first became inaccessible,\n in the case of an error. (Epoch time format is the number of seconds that have elapsed\n since 12:00:00 AM January 1, 1970 UTC.)

\n

This parameter is undefined if the KMS key is accessible.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about the encryption of data at rest in an Amazon QLDB ledger. This includes\n the current status, the key in Key Management Service (KMS), and when the key became inaccessible (in\n the case of an error).

\n

For more information, see Encryption at rest in\n the Amazon QLDB Developer Guide.

" - } - }, "com.amazonaws.qldb#LedgerList": { "type": "list", "member": { @@ -1316,7 +1242,7 @@ "target": "com.amazonaws.qldb#ListJournalS3ExportsResponse" }, "traits": { - "smithy.api#documentation": "

Returns an array of journal export job descriptions for all ledgers that are associated\n with the current account and Region.

\n

This action returns a maximum of MaxResults items, and is paginated so that\n you can retrieve all the items by calling ListJournalS3Exports multiple\n times.

\n

This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer\n Guide.

", + "smithy.api#documentation": "

Returns an array of journal export job descriptions for all ledgers that are associated\n with the current AWS account and Region.

\n

This action returns a maximum of MaxResults items, and is paginated so that\n you can retrieve all the items by calling ListJournalS3Exports multiple\n times.

\n

This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer\n Guide.

", "smithy.api#http": { "method": "GET", "uri": "/journal-s3-exports", @@ -1420,7 +1346,7 @@ "JournalS3Exports": { "target": "com.amazonaws.qldb#JournalS3ExportList", "traits": { - "smithy.api#documentation": "

The array of journal export job descriptions for all ledgers that are associated with\n the current account and Region.

" + "smithy.api#documentation": "

The array of journal export job descriptions for all ledgers that are associated with\n the current AWS account and Region.

" } }, "NextToken": { @@ -1440,7 +1366,7 @@ "target": "com.amazonaws.qldb#ListLedgersResponse" }, "traits": { - "smithy.api#documentation": "

Returns an array of ledger summaries that are associated with the current account\n and Region.

\n

This action returns a maximum of 100 items and is paginated so that you can\n retrieve all the items by calling ListLedgers multiple times.

", + "smithy.api#documentation": "

Returns an array of ledger summaries that are associated with the current AWS account\n and Region.

\n

This action returns a maximum of 100 items and is paginated so that you can\n retrieve all the items by calling ListLedgers multiple times.

", "smithy.api#http": { "method": "GET", "uri": "/ledgers", @@ -1478,7 +1404,7 @@ "Ledgers": { "target": "com.amazonaws.qldb#LedgerList", "traits": { - "smithy.api#documentation": "

The array of ledger summaries that are associated with the current account and\n Region.

" + "smithy.api#documentation": "

The array of ledger summaries that are associated with the current AWS account and\n Region.

" } }, "NextToken": { @@ -1705,7 +1631,7 @@ "KmsKeyArn": { "target": "com.amazonaws.qldb#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) in Key Management Service\n (KMS). Amazon S3 does not support asymmetric CMKs.

\n

You must provide a KmsKeyArn if you specify SSE_KMS as the\n ObjectEncryptionType.

\n

\n KmsKeyArn is not required if you specify SSE_S3 as the\n ObjectEncryptionType.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for a symmetric customer master key (CMK) in AWS Key\n Management Service (AWS KMS). Amazon S3 does not support asymmetric CMKs.

\n

You must provide a KmsKeyArn if you specify SSE_KMS as the\n ObjectEncryptionType.

\n

\n KmsKeyArn is not required if you specify SSE_S3 as the\n ObjectEncryptionType.

" } } }, @@ -2166,12 +2092,6 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } - }, - "KmsKey": { - "target": "com.amazonaws.qldb#KmsKey", - "traits": { - "smithy.api#documentation": "

The key in Key Management Service (KMS) to use for encryption of data at rest in the ledger. For\n more information, see Encryption at rest in\n the Amazon QLDB Developer Guide.

\n

Use one of the following options to specify this parameter:

\n \n

To specify a customer managed KMS key, you can use its key ID, Amazon Resource Name\n (ARN), alias name, or alias ARN. When using an alias name, prefix it with\n \"alias/\". To specify a key in a different account, you must use the key\n ARN or alias ARN.

\n

For example:

\n \n

For more information, see Key identifiers (KeyId) in\n the Key Management Service Developer Guide.

" - } } } }, @@ -2207,12 +2127,6 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } - }, - "EncryptionDescription": { - "target": "com.amazonaws.qldb#LedgerEncryptionDescription", - "traits": { - "smithy.api#documentation": "

Information about the encryption of data at rest in the ledger. This includes the\n current status, the KMS key, and when the key became inaccessible (in the case of an\n error).

" - } } } }, diff --git a/codegen/sdk-codegen/aws-models/quicksight.2018-04-01.json b/codegen/sdk-codegen/aws-models/quicksight.2018-04-01.json index 8a066c641b5..4affa5fca06 100644 --- a/codegen/sdk-codegen/aws-models/quicksight.2018-04-01.json +++ b/codegen/sdk-codegen/aws-models/quicksight.2018-04-01.json @@ -38,7 +38,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -59,7 +59,7 @@ } }, "traits": { - "smithy.api#documentation": "

The Amazon QuickSight customizations associated with your Amazon Web Services account; or a QuickSight namespace in a specific Region;.

" + "smithy.api#documentation": "

The Amazon QuickSight customizations associated with your AWS account or a QuickSight namespace in a specific AWS Region.

" } }, "com.amazonaws.quicksight#AccountSettings": { @@ -68,7 +68,7 @@ "AccountName": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The \"account name\" you provided for the QuickSight subscription in your Amazon Web Services account;. \n You create this name when you sign up for QuickSight. It is unique in all of Amazon Web Services and \n it appears only when users sign in.

" + "smithy.api#documentation": "

The \"account name\" you provided for the QuickSight subscription in your AWS account. \n You create this name when you sign up for QuickSight. It is unique in all of AWS and \n it appears only in the console when users sign in.

" } }, "Edition": { @@ -80,7 +80,7 @@ "DefaultNamespace": { "target": "com.amazonaws.quicksight#Namespace", "traits": { - "smithy.api#documentation": "

The default QuickSight namespace for your Amazon Web Services account;.

" + "smithy.api#documentation": "

The default QuickSight namespace for your AWS account.

" } }, "NotificationEmail": { @@ -91,7 +91,7 @@ } }, "traits": { - "smithy.api#documentation": "

The QuickSight settings associated with your Amazon Web Services account;.

" + "smithy.api#documentation": "

The QuickSight settings associated with your AWS account.

" } }, "com.amazonaws.quicksight#ActionList": { @@ -123,7 +123,7 @@ } }, "traits": { - "smithy.api#documentation": "

The active Identity and Access Management (IAM) policy assignment.

" + "smithy.api#documentation": "

The active AWS Identity and Access Management (IAM) policy assignment.

" } }, "com.amazonaws.quicksight#ActiveIAMPolicyAssignmentList": { @@ -441,7 +441,7 @@ "Name": { "target": "com.amazonaws.quicksight#AnalysisName", "traits": { - "smithy.api#documentation": "

The name of the analysis. This name is displayed in the QuickSight console.

" + "smithy.api#documentation": "

The name of the analysis. This name is displayed in the QuickSight console.\n

" } }, "Status": { @@ -479,44 +479,9 @@ } } }, - "com.amazonaws.quicksight#AnonymousUserDashboardEmbeddingConfiguration": { - "type": "structure", - "members": { - "InitialDashboardId": { - "target": "com.amazonaws.quicksight#RestrictiveResourceId", - "traits": { - "smithy.api#documentation": "

The dashboard ID for the dashboard that you want the user to see first. This ID is included in the output URL. When the URL in response is accessed, Amazon QuickSight renders this dashboard.

\n

The Amazon Resource Name (ARN) of this dashboard must be included in the AuthorizedResourceArns parameter. Otherwise, the request will fail with InvalidParameterValueException.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about the dashboard that you want to embed.

" - } - }, - "com.amazonaws.quicksight#AnonymousUserEmbeddingExperienceConfiguration": { - "type": "structure", - "members": { - "Dashboard": { - "target": "com.amazonaws.quicksight#AnonymousUserDashboardEmbeddingConfiguration", - "traits": { - "smithy.api#documentation": "

The type of embedding experience. In this case, an Amazon QuickSight dashboard.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The type of experience you want to embed. For anonymous users, you can embed an Amazon QuickSight dashboard.

" - } - }, "com.amazonaws.quicksight#Arn": { "type": "string" }, - "com.amazonaws.quicksight#ArnList": { - "type": "list", - "member": { - "target": "com.amazonaws.quicksight#Arn" - } - }, "com.amazonaws.quicksight#AssignmentStatus": { "type": "string", "traits": { @@ -636,7 +601,7 @@ } }, "traits": { - "smithy.api#documentation": "

Amazon Web Services IoT Analytics parameters.

" + "smithy.api#documentation": "

AWS IoT Analytics parameters.

" } }, "com.amazonaws.quicksight#Boolean": { @@ -741,7 +706,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -782,7 +747,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -1158,7 +1123,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -1206,7 +1171,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates Amazon QuickSight customizations the current Region;. Currently, you can\n add a custom default theme by using the CreateAccountCustomization or\n UpdateAccountCustomization API operation. To further customize\n QuickSight by removing QuickSight sample assets and videos for all new users, see Customizing QuickSight in the Amazon QuickSight User\n Guide.\n

\n

You can create customizations for your Amazon Web Services account; or, if you specify a namespace, for\n a QuickSight namespace instead. Customizations that apply to a namespace always override\n customizations that apply to an Amazon Web Services account;. To find out which customizations apply, use\n the DescribeAccountCustomization API operation.

\n

Before you use the CreateAccountCustomization API operation to add a theme \n as the namespace default, make sure that you first share the theme with the namespace. \n If you don't share it with the namespace, the theme isn't visible to your users \n even if you make it the default theme. \n To check if the theme is shared, view the current permissions by using the \n \n DescribeThemePermissions\n API operation.\n To share the theme, grant permissions by using the \n \n UpdateThemePermissions\n API operation.

", + "smithy.api#documentation": "

Creates Amazon QuickSight customizations the current AWS Region. Currently, you can\n add a custom default theme by using the CreateAccountCustomization or\n UpdateAccountCustomization API operation. To further customize\n QuickSight by removing QuickSight sample assets and videos for all new users, see Customizing QuickSight in the Amazon QuickSight User\n Guide.\n

\n

You can create customizations for your AWS account or, if you specify a namespace, for\n a QuickSight namespace instead. Customizations that apply to a namespace always override\n customizations that apply to an AWS account. To find out which customizations apply, use\n the DescribeAccountCustomization API operation.

\n

Before you use the CreateAccountCustomization API operation to add a theme \n as the namespace default, make sure that you first share the theme with the namespace. \n If you don't share it with the namespace, the theme isn't visible to your users \n even if you make it the default theme. \n To check if the theme is shared, view the current permissions by using the \n \n DescribeThemePermissions\n API operation.\n To share the theme, grant permissions by using the \n \n UpdateThemePermissions\n API operation.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/customizations", @@ -1220,7 +1185,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to customize QuickSight for.

", + "smithy.api#documentation": "

The ID for the AWS account that you want to customize QuickSight for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1235,7 +1200,7 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations you're adding in the current Region;. You can add\n these to an Amazon Web Services account; and a QuickSight namespace.

\n

For example, you can add a default theme by setting AccountCustomization\n to the midnight theme: \"AccountCustomization\": { \"DefaultTheme\":\n \"arn:aws:quicksight::aws:theme/MIDNIGHT\" }. Or, you can add a custom theme by\n specifying \"AccountCustomization\": { \"DefaultTheme\":\n \"arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639\"\n }.

", + "smithy.api#documentation": "

The QuickSight customizations you're adding in the current AWS Region. You can add\n these to an AWS account and a QuickSight namespace.

\n

For example, you can add a default theme by setting AccountCustomization\n to the midnight theme: \"AccountCustomization\": { \"DefaultTheme\":\n \"arn:aws:quicksight::aws:theme/MIDNIGHT\" }. Or, you can add a custom theme by\n specifying \"AccountCustomization\": { \"DefaultTheme\":\n \"arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639\"\n }.

", "smithy.api#required": {} } }, @@ -1253,13 +1218,13 @@ "Arn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the customization that you created for this Amazon Web Services account;.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the customization that you created for this AWS account.

" } }, "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to customize QuickSight for.

" + "smithy.api#documentation": "

The ID for the AWS account that you want to customize QuickSight for.

" } }, "Namespace": { @@ -1271,13 +1236,13 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations you're adding in the current Region;.

" + "smithy.api#documentation": "

The QuickSight customizations you're adding in the current AWS Region.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -1335,7 +1300,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you are creating an analysis.

", + "smithy.api#documentation": "

The ID of the AWS account where you are creating an analysis.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1364,7 +1329,7 @@ "Permissions": { "target": "com.amazonaws.quicksight#ResourcePermissionList", "traits": { - "smithy.api#documentation": "

A structure that describes the principals and the resource-level permissions on an\n analysis. You can use the Permissions structure to grant permissions by\n providing a list of Identity and Access Management (IAM) action information for each\n principal listed by Amazon Resource Name (ARN).

\n \n

To specify no permissions, omit Permissions.

" + "smithy.api#documentation": "

A structure that describes the principals and the resource-level permissions on an\n analysis. You can use the Permissions structure to grant permissions by\n providing a list of AWS Identity and Access Management (IAM) action information for each\n principal listed by Amazon Resource Name (ARN).

\n \n

To specify no permissions, omit Permissions.

" } }, "SourceEntity": { @@ -1419,7 +1384,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -1471,7 +1436,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a dashboard from a template. To first create a template, see the \n CreateTemplate\n API operation.

\n

A dashboard is an entity in QuickSight that identifies QuickSight reports, created\n from analyses. You can share QuickSight dashboards. With the right permissions, you can\n create scheduled email reports from them. If you have the correct permissions, you can\n create a dashboard from a template that exists in a different Amazon Web Services account;.

", + "smithy.api#documentation": "

Creates a dashboard from a template. To first create a template, see the \n CreateTemplate\n API operation.

\n

A dashboard is an entity in QuickSight that identifies QuickSight reports, created\n from analyses. You can share QuickSight dashboards. With the right permissions, you can\n create scheduled email reports from them. If you have the correct permissions, you can \n create a dashboard from a template that exists in a different AWS account.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}", @@ -1485,7 +1450,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you want to create the dashboard.

", + "smithy.api#documentation": "

The ID of the AWS account where you want to create the dashboard.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1520,7 +1485,7 @@ "SourceEntity": { "target": "com.amazonaws.quicksight#DashboardSourceEntity", "traits": { - "smithy.api#documentation": "

The entity that you are using as a source when you create the dashboard. In\n SourceEntity, you specify the type of object you're using as source. You\n can only create a dashboard from a template, so you use a SourceTemplate\n entity. If you need to create a dashboard from an analysis, first convert the analysis\n to a template by using the CreateTemplate API operation. For\n SourceTemplate, specify the Amazon Resource Name (ARN) of the source\n template. The SourceTemplateARN can contain any Amazon Web Services account; and any\n QuickSight-supported Region;.

\n

Use the DataSetReferences entity within SourceTemplate to\n list the replacement datasets for the placeholders listed in the original. The schema in\n each dataset must match its placeholder.

", + "smithy.api#documentation": "

The entity that you are using as a source when you create the dashboard. In\n SourceEntity, you specify the type of object you're using as source. You\n can only create a dashboard from a template, so you use a SourceTemplate\n entity. If you need to create a dashboard from an analysis, first convert the analysis\n to a template by using the CreateTemplate API operation. For\n SourceTemplate, specify the Amazon Resource Name (ARN) of the source\n template. The SourceTemplateARN can contain any AWS Account and any\n QuickSight-supported AWS Region.

\n

Use the DataSetReferences entity within SourceTemplate to\n list the replacement datasets for the placeholders listed in the original. The schema in\n each dataset must match its placeholder.

", "smithy.api#required": {} } }, @@ -1545,7 +1510,7 @@ "ThemeArn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If\n you add a value for this field, it overrides the value that is used in the source\n entity. The theme ARN must exist in the same Amazon Web Services account; where you create the\n dashboard.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If\n you add a value for this field, it overrides the value that is used in the source\n entity. The theme ARN must exist in the same AWS account where you create the\n dashboard.

" } } } @@ -1587,7 +1552,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -1644,7 +1609,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1652,7 +1617,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

An ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

An ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

", "smithy.api#required": {} } }, @@ -1707,12 +1672,6 @@ "smithy.api#documentation": "

The row-level security configuration for the data that you want to create.

" } }, - "RowLevelPermissionTagConfiguration": { - "target": "com.amazonaws.quicksight#RowLevelPermissionTagConfiguration", - "traits": { - "smithy.api#documentation": "

The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.

" - } - }, "ColumnLevelPermissionRules": { "target": "com.amazonaws.quicksight#ColumnLevelPermissionRuleList", "traits": { @@ -1739,7 +1698,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

" } }, "IngestionArn": { @@ -1757,7 +1716,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -1818,7 +1777,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1826,7 +1785,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

An ID for the data source. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

An ID for the data source. This ID is unique per AWS Region for each AWS account.

", "smithy.api#required": {} } }, @@ -1894,7 +1853,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" } }, "CreationStatus": { @@ -1906,7 +1865,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -2256,7 +2215,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2283,7 +2242,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -2314,7 +2273,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2344,7 +2303,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -2391,7 +2350,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an assignment with one specified IAM policy, identified by its Amazon Resource Name \n\t\t\t(ARN). This policy assignment is attached to the specified groups or users of Amazon QuickSight.\n\t\t\tAssignment names are unique per Amazon Web Services account;. To avoid overwriting rules in other namespaces, \n\t\t\tuse assignment names that are unique.

", + "smithy.api#documentation": "

Creates an assignment with one specified IAM policy, identified by its Amazon Resource Name \n\t\t\t(ARN). This policy assignment is attached to the specified groups or users of Amazon QuickSight.\n\t\t\tAssignment names are unique per AWS account. To avoid overwriting rules in other namespaces, \n\t\t\tuse assignment names that are unique.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments", @@ -2405,7 +2364,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you want to assign an IAM policy to QuickSight users or\n\t\t\tgroups.

", + "smithy.api#documentation": "

The ID of the AWS account where you want to assign an IAM policy to QuickSight users or\n\t\t\tgroups.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2413,7 +2372,7 @@ "AssignmentName": { "target": "com.amazonaws.quicksight#IAMPolicyAssignmentName", "traits": { - "smithy.api#documentation": "

The name of the assignment, also called a rule. It must be unique within an Amazon Web Services account;.

", + "smithy.api#documentation": "

The name of the assignment, also called a rule. It must be unique within an AWS account.

", "smithy.api#required": {} } }, @@ -2452,7 +2411,7 @@ "AssignmentName": { "target": "com.amazonaws.quicksight#IAMPolicyAssignmentName", "traits": { - "smithy.api#documentation": "

The name of the assignment. This name must be unique within the Amazon Web Services account;.

" + "smithy.api#documentation": "

The name of the assignment. This name must be unique within the AWS account.

" } }, "AssignmentId": { @@ -2482,7 +2441,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -2526,7 +2485,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates and starts a new SPICE ingestion on a dataset

\n\t\t\n\t\t

Any ingestions operating on tagged datasets inherit the same tags automatically for use in\n\t\t\taccess control. For an example, see How do I create an IAM policy to control access to Amazon EC2 resources using\n\t\t\t\ttags? in the Amazon Web Services Knowledge Center. Tags are visible on the tagged dataset, but not on the ingestion resource.

", + "smithy.api#documentation": "

Creates and starts a new SPICE ingestion on a dataset

\n\t\t\n\t\t

Any ingestions operating on tagged datasets inherit the same tags automatically for use in\n\t\t\taccess control. For an example, see How do I create an IAM policy to control access to Amazon EC2 resources using\n\t\t\t\ttags? in the AWS Knowledge Center. Tags are visible on the tagged dataset, but not on the ingestion resource.

", "smithy.api#http": { "method": "PUT", "uri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}", @@ -2556,7 +2515,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2587,7 +2546,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -2640,7 +2599,7 @@ } ], "traits": { - "smithy.api#documentation": "

(Enterprise edition only) Creates a new namespace for you to use with Amazon QuickSight.

\n

A namespace allows you to isolate the QuickSight users and groups that are registered\n for that namespace. Users that access the namespace can share assets only with other\n users or groups in the same namespace. They can't see users and groups in other\n namespaces. You can create a namespace after your Amazon Web Services account; is subscribed to\n QuickSight. The namespace must be unique within the Amazon Web Services account;. By default, there is a\n limit of 100 namespaces per Amazon Web Services account;. To increase your limit, create a ticket with\n Amazon Web Services Support.

", + "smithy.api#documentation": "

(Enterprise edition only) Creates a new namespace for you to use with Amazon QuickSight.

\n

A namespace allows you to isolate the QuickSight users and groups that are registered\n for that namespace. Users that access the namespace can share assets only with other\n users or groups in the same namespace. They can't see users and groups in other\n namespaces. You can create a namespace after your AWS account is subscribed to\n QuickSight. The namespace must be unique within the AWS account. By default, there is a\n limit of 100 namespaces per AWS account. To increase your limit, create a ticket with\n AWS Support.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}", @@ -2654,7 +2613,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to create the QuickSight namespace in.

", + "smithy.api#documentation": "

The ID for the AWS account that you want to create the QuickSight namespace in.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2699,7 +2658,7 @@ "CapacityRegion": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Region; that you want to use for the free SPICE capacity for the new namespace.\n This is set to the region that you run CreateNamespace in.

" + "smithy.api#documentation": "

The AWS Region that you want to use for the free SPICE capacity for the new namespace.\n This is set to the region that you run CreateNamespace in.

" } }, "CreationStatus": { @@ -2717,7 +2676,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -2767,7 +2726,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a template from an existing Amazon QuickSight analysis or template. You can use the resulting\n\t\t\ttemplate to create a dashboard.

\n\t\t

A template is an entity in QuickSight that encapsulates the metadata\n\t\t\trequired to create an analysis and that you can use to create s dashboard. A template adds\n\t\t\ta layer of abstraction by using placeholders to replace the dataset associated with the\n\t\t\tanalysis. You can use templates to create dashboards by replacing dataset placeholders\n\t\t\twith datasets that follow the same schema that was used to create the source analysis\n\t\t\tand template.

", + "smithy.api#documentation": "

Creates a template from an existing QuickSight analysis or template. You can use the resulting\n\t\t\ttemplate to create a dashboard.

\n\t\t

A template is an entity in QuickSight that encapsulates the metadata\n\t\t\trequired to create an analysis and that you can use to create s dashboard. A template adds\n\t\t\ta layer of abstraction by using placeholders to replace the dataset associated with the\n\t\t\tanalysis. You can use templates to create dashboards by replacing dataset placeholders\n\t\t\twith datasets that follow the same schema that was used to create the source analysis\n\t\t\tand template.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/templates/{TemplateId}", @@ -2821,7 +2780,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you creating an alias for.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the template that you creating an alias for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2837,7 +2796,7 @@ "AliasName": { "target": "com.amazonaws.quicksight#AliasName", "traits": { - "smithy.api#documentation": "

The name that you want to give to the template alias that you're creating. Don't start the\n\t\t\talias name with the $ character. Alias names that start with $\n\t\t\tare reserved by Amazon QuickSight.

", + "smithy.api#documentation": "

The name that you want to give to the template alias that you're creating. Don't start the\n\t\t\talias name with the $ character. Alias names that start with $\n\t\t\tare reserved by QuickSight.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2870,7 +2829,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -2881,7 +2840,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2889,7 +2848,7 @@ "TemplateId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

An ID for the template that you want to create. This template is unique per Region; in\n\t\t\teach Amazon Web Services account;.

", + "smithy.api#documentation": "

An ID for the template that you want to create. This template is unique per AWS Region in\n\t\t\teach AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2909,7 +2868,7 @@ "SourceEntity": { "target": "com.amazonaws.quicksight#TemplateSourceEntity", "traits": { - "smithy.api#documentation": "

The entity that you are using as a source when you create the template. In\n\t\t\tSourceEntity, you specify the type of object you're using as source:\n\t\t\tSourceTemplate for a template or SourceAnalysis for an\n\t\t\tanalysis. Both of these require an Amazon Resource Name (ARN). For\n\t\t\tSourceTemplate, specify the ARN of the source template. For\n\t\t\tSourceAnalysis, specify the ARN of the source analysis. The SourceTemplate\n\t\t\tARN can contain any Amazon Web Services account; and any QuickSight-supported Region;.

\n\t\t

Use the DataSetReferences entity within SourceTemplate or\n\t\t\tSourceAnalysis to list the replacement datasets for the placeholders listed\n\t\t\tin the original. The schema in each dataset must match its placeholder.

", + "smithy.api#documentation": "

The entity that you are using as a source when you create the template. In\n\t\t\tSourceEntity, you specify the type of object you're using as source:\n\t\t\tSourceTemplate for a template or SourceAnalysis for an\n\t\t\tanalysis. Both of these require an Amazon Resource Name (ARN). For\n\t\t\tSourceTemplate, specify the ARN of the source template. For\n\t\t\tSourceAnalysis, specify the ARN of the source analysis. The SourceTemplate\n\t\t\tARN can contain any AWS Account and any QuickSight-supported AWS Region.

\n\t\t

Use the DataSetReferences entity within SourceTemplate or\n\t\t\tSourceAnalysis to list the replacement datasets for the placeholders listed\n\t\t\tin the original. The schema in each dataset must match its placeholder.

", "smithy.api#required": {} } }, @@ -2964,7 +2923,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -3061,7 +3020,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme for the new theme alias.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme for the new theme alias.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3110,7 +3069,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -3121,7 +3080,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you want to store the new theme.

", + "smithy.api#documentation": "

The ID of the AWS account where you want to store the new theme.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3129,7 +3088,7 @@ "ThemeId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

An ID for the theme that you want to create. The theme ID is unique per Region; in\n\t\t\teach Amazon Web Services account;.

", + "smithy.api#documentation": "

An ID for the theme that you want to create. The theme ID is unique per AWS Region in\n\t\t\teach AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3212,7 +3171,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -3861,12 +3820,6 @@ "smithy.api#documentation": "

The row-level security configuration for the dataset.

" } }, - "RowLevelPermissionTagConfiguration": { - "target": "com.amazonaws.quicksight#RowLevelPermissionTagConfiguration", - "traits": { - "smithy.api#documentation": "

The element you can use to define tags for row-level security.

" - } - }, "ColumnLevelPermissionRules": { "target": "com.amazonaws.quicksight#ColumnLevelPermissionRuleList", "traits": { @@ -4044,12 +3997,6 @@ "smithy.api#documentation": "

The row-level security configuration for the dataset.

" } }, - "RowLevelPermissionTagConfigurationApplied": { - "target": "com.amazonaws.quicksight#Boolean", - "traits": { - "smithy.api#documentation": "

Whether or not the row level permission tags are applied.

" - } - }, "ColumnLevelPermissionRulesApplied": { "target": "com.amazonaws.quicksight#Boolean", "traits": { @@ -4079,7 +4026,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each \n Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS\n account.

" } }, "Name": { @@ -4263,7 +4210,7 @@ "AwsIotAnalyticsParameters": { "target": "com.amazonaws.quicksight#AwsIotAnalyticsParameters", "traits": { - "smithy.api#documentation": "

Amazon Web Services IoT Analytics parameters.

" + "smithy.api#documentation": "

AWS IoT Analytics parameters.

" } }, "JiraParameters": { @@ -4578,7 +4525,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes all Amazon QuickSight customizations in this Region; for the specified \n Amazon Web Services account; and QuickSight namespace.

", + "smithy.api#documentation": "

Deletes all Amazon QuickSight customizations in this AWS Region for the specified AWS\n account and QuickSight namespace.

", "smithy.api#http": { "method": "DELETE", "uri": "/accounts/{AwsAccountId}/customizations", @@ -4592,7 +4539,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to delete QuickSight customizations from in\n this Region;.

", + "smithy.api#documentation": "

The ID for the AWS account that you want to delete QuickSight customizations from in\n this AWS Region.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4612,7 +4559,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -4667,7 +4614,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you want to delete an analysis.

", + "smithy.api#documentation": "

The ID of the AWS account where you want to delete an analysis.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4727,7 +4674,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -4775,7 +4722,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're\n deleting.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're\n deleting.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4822,7 +4769,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -4867,7 +4814,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4875,7 +4822,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4894,13 +4841,13 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -4952,7 +4899,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4960,7 +4907,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4979,13 +4926,13 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -5284,7 +5231,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5305,7 +5252,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -5331,7 +5278,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5352,7 +5299,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -5410,7 +5357,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID where you want to delete the IAM policy assignment.

", + "smithy.api#documentation": "

The AWS account ID where you want to delete the IAM policy assignment.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5445,7 +5392,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -5503,7 +5450,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to delete the QuickSight namespace from.

", + "smithy.api#documentation": "

The ID for the AWS account that you want to delete the QuickSight namespace from.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5524,7 +5471,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -5616,7 +5563,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the item to delete.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the item to delete.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5670,7 +5617,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -5681,7 +5628,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you're deleting.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the template that you're deleting.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5709,7 +5656,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Arn": { @@ -5816,7 +5763,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme alias to delete.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme alias to delete.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5857,7 +5804,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -5881,7 +5828,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme that you're deleting.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme that you're deleting.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5915,7 +5862,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -5965,7 +5912,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the Amazon QuickSight user that is associated with the identity of the \n\t\t\tIdentity and Access Management (IAM) user or role that's making the call. The IAM user\n\t\t\tisn't deleted as a result of this call.

", + "smithy.api#documentation": "

Deletes the Amazon QuickSight user that is associated with the identity of the AWS\n\t\t\tIdentity and Access Management (IAM) user or role that's making the call. The IAM user\n\t\t\tisn't deleted as a result of this call.

", "smithy.api#http": { "method": "DELETE", "uri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}", @@ -6027,7 +5974,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6051,7 +5998,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -6077,7 +6024,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6098,7 +6045,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -6148,7 +6095,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes the customizations associated with the provided Amazon Web Services account; and Amazon\n QuickSight namespace in an Region;. The QuickSight console evaluates which\n customizations to apply by running this API operation with the Resolved flag\n included.

\n

To determine what customizations display when you run this command, it can help to\n visualize the relationship of the entities involved.

\n ", + "smithy.api#documentation": "

Describes the customizations associated with the provided AWS account and Amazon\n QuickSight namespace in an AWS Region. The QuickSight console evaluates which\n customizations to apply by running this API operation with the Resolved flag\n included.

\n

To determine what customizations display when you run this command, it can help to\n visualize the relationship of the entities involved.

\n ", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/customizations", @@ -6162,7 +6109,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to describe QuickSight customizations\n for.

", + "smithy.api#documentation": "

The ID for the AWS account that you want to describe QuickSight customizations\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6189,13 +6136,13 @@ "Arn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the customization that's associated with this Amazon Web Services account;.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the customization that's associated with this AWS account.

" } }, "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you're describing.

" + "smithy.api#documentation": "

The ID for the AWS account that you're describing.

" } }, "Namespace": { @@ -6207,13 +6154,13 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations that exist in the current Region;.

" + "smithy.api#documentation": "

The QuickSight customizations that exist in the current AWS Region.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -6254,7 +6201,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes the settings that were used when your QuickSight subscription was first\n created in this Amazon Web Services account;.

", + "smithy.api#documentation": "

Describes the settings that were used when your QuickSight subscription was first\n created in this AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/settings", @@ -6268,7 +6215,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the settings that you want to list.

", + "smithy.api#documentation": "

The ID for the AWS account that contains the settings that you want to list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6281,13 +6228,13 @@ "AccountSettings": { "target": "com.amazonaws.quicksight#AccountSettings", "traits": { - "smithy.api#documentation": "

The QuickSight settings for this Amazon Web Services account;. This information includes the edition of Amazon\n QuickSight that you subscribed to (Standard or Enterprise) and the notification email for the\n QuickSight subscription. In the QuickSight console, the QuickSight subscription is sometimes\n referred to as a QuickSight \"account\" even though it's technically not an account\n by itself. Instead, it's a subscription to the QuickSight service for your Amazon Web Services account;. The\n edition that you subscribe to applies to QuickSight in every Region; where you use it.

" + "smithy.api#documentation": "

The QuickSight settings for this AWS account. This information includes the edition of Amazon\n QuickSight that you subscribed to (Standard or Enterprise) and the notification email for the\n QuickSight subscription. In the QuickSight console, the QuickSight subscription is sometimes\n referred to as a QuickSight \"account\" even though it's technically not an account\n by itself. Instead, it's a subscription to the QuickSight service for your AWS account. The\n edition that you subscribe to applies to QuickSight in every AWS Region where you use it.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -6376,7 +6323,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis whose permissions you're\n describing. You must be using the Amazon Web Services account; that the analysis is in.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the analysis whose permissions you're\n describing. You must be using the AWS account that the analysis is in.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6422,7 +6369,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -6433,7 +6380,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis. You must be using the \n Amazon Web Services account; that the analysis is in.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the analysis. You must be using the AWS\n account that the analysis is in.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6467,7 +6414,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -6549,7 +6496,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're describing\n permissions for.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're describing\n permissions for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6595,7 +6542,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -6606,7 +6553,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're\n describing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're\n describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6654,7 +6601,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -6733,7 +6680,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6741,7 +6688,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6760,7 +6707,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

" } }, "Permissions": { @@ -6772,7 +6719,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -6790,7 +6737,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6798,7 +6745,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6817,7 +6764,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -6903,7 +6850,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6911,7 +6858,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6930,7 +6877,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" } }, "Permissions": { @@ -6942,7 +6889,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -6960,7 +6907,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6968,7 +6915,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6987,7 +6934,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -7323,7 +7270,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7350,7 +7297,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -7405,7 +7352,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the assignment that you want to describe.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the assignment that you want to describe.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7440,7 +7387,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -7495,7 +7442,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7530,7 +7477,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -7585,7 +7532,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the QuickSight namespace that you want to describe.

", + "smithy.api#documentation": "

The ID for the AWS account that contains the QuickSight namespace that you want to describe.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7606,13 +7553,13 @@ "Namespace": { "target": "com.amazonaws.quicksight#NamespaceInfoV2", "traits": { - "smithy.api#documentation": "

The information about the namespace that you're describing. The response includes \n the namespace ARN, name, Region;, creation status, and identity store. DescribeNamespace also\n works for namespaces that are in the process of being created. For incomplete namespaces,\n this API operation lists the namespace error types and messages associated with the creation process.

" + "smithy.api#documentation": "

The information about the namespace that you're describing. The response includes \n the namespace ARN, name, AWS Region, creation status, and identity store. DescribeNamespace also\n works for namespaces that are in the process of being created. For incomplete namespaces,\n this API operation lists the namespace error types and messages associated with the creation process.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -7704,7 +7651,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template alias that you're\n\t\t\tdescribing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the template alias that you're\n\t\t\tdescribing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7746,7 +7693,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -7794,7 +7741,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you're describing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the template that you're describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7833,7 +7780,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -7851,7 +7798,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you're describing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the template that you're describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7899,7 +7846,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -7987,7 +7934,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme alias that you're\n\t\t\tdescribing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme alias that you're\n\t\t\tdescribing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -8029,7 +7976,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -8077,7 +8024,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme that you're describing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme that you're describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -8116,7 +8063,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -8134,7 +8081,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAndAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme that you're describing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme that you're describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -8182,7 +8129,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -8241,7 +8188,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -8268,7 +8215,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -8298,7 +8245,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -8357,15 +8304,6 @@ "smithy.api#sensitive": {} } }, - "com.amazonaws.quicksight#EntryPath": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 1000 - } - } - }, "com.amazonaws.quicksight#EntryPoint": { "type": "string", "traits": { @@ -8784,228 +8722,6 @@ ] } }, - "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUser": { - "type": "operation", - "input": { - "target": "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUserRequest" - }, - "output": { - "target": "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUserResponse" - }, - "errors": [ - { - "target": "com.amazonaws.quicksight#AccessDeniedException" - }, - { - "target": "com.amazonaws.quicksight#InternalFailureException" - }, - { - "target": "com.amazonaws.quicksight#InvalidParameterValueException" - }, - { - "target": "com.amazonaws.quicksight#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException" - }, - { - "target": "com.amazonaws.quicksight#ThrottlingException" - }, - { - "target": "com.amazonaws.quicksight#UnsupportedPricingPlanException" - }, - { - "target": "com.amazonaws.quicksight#UnsupportedUserEditionException" - } - ], - "traits": { - "smithy.api#documentation": "

Generates an embed URL that you can use to embed an Amazon QuickSight dashboard in your website, without having to register any reader users. Before you use this action, make sure that you have configured the dashboards and permissions.

\n

The following rules apply to the generated URL:

\n \n

For more information, see Embedded Analytics in the Amazon QuickSight User\n Guide.

\n

For more information about the high-level steps for embedding and for an interactive demo of the ways you can customize embedding, visit the Amazon QuickSight Developer Portal.

", - "smithy.api#http": { - "method": "POST", - "uri": "/accounts/{AwsAccountId}/embed-url/anonymous-user", - "code": 200 - } - } - }, - "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUserRequest": { - "type": "structure", - "members": { - "AwsAccountId": { - "target": "com.amazonaws.quicksight#AwsAccountId", - "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account that contains the dashboard that you're embedding.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "SessionLifetimeInMinutes": { - "target": "com.amazonaws.quicksight#SessionLifetimeInMinutes", - "traits": { - "smithy.api#documentation": "

How many minutes the session is valid. The session lifetime must be in [15-600] minutes range.

" - } - }, - "Namespace": { - "target": "com.amazonaws.quicksight#Namespace", - "traits": { - "smithy.api#documentation": "

The Amazon QuickSight namespace that the anonymous user virtually belongs to. If you are not using an Amazon QuickSight custom namespace, set this to default.

", - "smithy.api#required": {} - } - }, - "SessionTags": { - "target": "com.amazonaws.quicksight#SessionTagList", - "traits": { - "smithy.api#documentation": "

The session tags used for row-level security. Before you use this parameter, make sure that\n you have configured the relevant datasets using the DataSet$RowLevelPermissionTagConfiguration parameter so that session tags can be used to provide row-level security.

\n

These are not the tags used for the Amazon Web Services resource tagging feature. For more information, see Using Row-Level Security (RLS) with Tags.

" - } - }, - "AuthorizedResourceArns": { - "target": "com.amazonaws.quicksight#ArnList", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Names for the Amazon QuickSight resources that the user is authorized to access during the lifetime of the session. If you choose Dashboard embedding experience, pass the list of dashboard ARNs in the account that you want the user to be able to view.

", - "smithy.api#required": {} - } - }, - "ExperienceConfiguration": { - "target": "com.amazonaws.quicksight#AnonymousUserEmbeddingExperienceConfiguration", - "traits": { - "smithy.api#documentation": "

The configuration of the experience you are embedding.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUserResponse": { - "type": "structure", - "members": { - "EmbedUrl": { - "target": "com.amazonaws.quicksight#EmbeddingUrl", - "traits": { - "smithy.api#documentation": "

The embed URL for the dashboard.

", - "smithy.api#required": {} - } - }, - "Status": { - "target": "com.amazonaws.quicksight#StatusCode", - "traits": { - "smithy.api#documentation": "

The HTTP status of the request.

", - "smithy.api#httpResponseCode": {}, - "smithy.api#required": {} - } - }, - "RequestId": { - "target": "com.amazonaws.quicksight#String", - "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUser": { - "type": "operation", - "input": { - "target": "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUserRequest" - }, - "output": { - "target": "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUserResponse" - }, - "errors": [ - { - "target": "com.amazonaws.quicksight#AccessDeniedException" - }, - { - "target": "com.amazonaws.quicksight#InternalFailureException" - }, - { - "target": "com.amazonaws.quicksight#InvalidParameterValueException" - }, - { - "target": "com.amazonaws.quicksight#QuickSightUserNotFoundException" - }, - { - "target": "com.amazonaws.quicksight#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException" - }, - { - "target": "com.amazonaws.quicksight#ThrottlingException" - }, - { - "target": "com.amazonaws.quicksight#UnsupportedPricingPlanException" - }, - { - "target": "com.amazonaws.quicksight#UnsupportedUserEditionException" - } - ], - "traits": { - "smithy.api#documentation": "

Generates an embed URL that you can use to embed an Amazon QuickSight experience in your website. This action can be used for any type of user registered in an Amazon QuickSight account. Before you use this action, make sure that you have configured the relevant Amazon QuickSight resource and permissions.

\n

The following rules apply to the generated URL:

\n \n

For more information, see Embedded Analytics in the Amazon QuickSight User\n Guide.

\n

For more information about the high-level steps for embedding and for an interactive demo of the ways you can customize embedding, visit the Amazon QuickSight Developer Portal.

", - "smithy.api#http": { - "method": "POST", - "uri": "/accounts/{AwsAccountId}/embed-url/registered-user", - "code": 200 - } - } - }, - "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUserRequest": { - "type": "structure", - "members": { - "AwsAccountId": { - "target": "com.amazonaws.quicksight#AwsAccountId", - "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account that contains the dashboard that you're embedding.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "SessionLifetimeInMinutes": { - "target": "com.amazonaws.quicksight#SessionLifetimeInMinutes", - "traits": { - "smithy.api#documentation": "

How many minutes the session is valid. The session lifetime must be in [15-600] minutes range.

" - } - }, - "UserArn": { - "target": "com.amazonaws.quicksight#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name for the registered user.

", - "smithy.api#required": {} - } - }, - "ExperienceConfiguration": { - "target": "com.amazonaws.quicksight#RegisteredUserEmbeddingExperienceConfiguration", - "traits": { - "smithy.api#documentation": "

The experience you are embedding. For registered users, you can embed Amazon QuickSight dashboards or the entire Amazon QuickSight console.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUserResponse": { - "type": "structure", - "members": { - "EmbedUrl": { - "target": "com.amazonaws.quicksight#EmbeddingUrl", - "traits": { - "smithy.api#documentation": "

The embed URL for the Amazon QuickSight dashboard or console.

", - "smithy.api#required": {} - } - }, - "Status": { - "target": "com.amazonaws.quicksight#StatusCode", - "traits": { - "smithy.api#documentation": "

The HTTP status of the request.

", - "smithy.api#httpResponseCode": {}, - "smithy.api#required": {} - } - }, - "RequestId": { - "target": "com.amazonaws.quicksight#String", - "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

", - "smithy.api#required": {} - } - } - } - }, "com.amazonaws.quicksight#GeoSpatialColumnGroup": { "type": "structure", "members": { @@ -9128,7 +8844,7 @@ } ], "traits": { - "smithy.api#documentation": "

Generates a session URL and authorization code that you can use to embed an Amazon\n QuickSight read-only dashboard in your web server code. Before you use this command,\n make sure that you have configured the dashboards and permissions.

\n

Currently, you can use GetDashboardEmbedURL only from the server, not\n from the user's browser. The following rules apply to the combination of URL and\n authorization code:

\n \n

For more information, see Embedded Analytics in the Amazon QuickSight User\n Guide.

\n

For more information about the high-level steps for embedding and for an interactive demo of the ways you can customize embedding, visit the Amazon QuickSight Developer Portal.

", + "smithy.api#documentation": "

Generates a session URL and authorization code that you can use to embed an Amazon\n QuickSight read-only dashboard in your web server code. Before you use this command,\n make sure that you have configured the dashboards and permissions.

\n

Currently, you can use GetDashboardEmbedURL only from the server, not\n from the user's browser. The following rules apply to the combination of URL and\n authorization code:

\n \n

For more information, see Embedded Analytics in the Amazon QuickSight User\n Guide.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url", @@ -9142,7 +8858,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the dashboard that you're embedding.

", + "smithy.api#documentation": "

The ID for the AWS account that contains the dashboard that you're embedding.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -9150,7 +8866,7 @@ "DashboardId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dashboard, also added to the Identity and Access Management (IAM)\n policy.

", + "smithy.api#documentation": "

The ID for the dashboard, also added to the AWS Identity and Access Management (IAM)\n policy.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -9201,7 +8917,7 @@ "Namespace": { "target": "com.amazonaws.quicksight#Namespace", "traits": { - "smithy.api#documentation": "

The Amazon QuickSight namespace that the user virtually belongs to. If you are not using an Amazon QuickSight custom namespace, set this to default.

", + "smithy.api#documentation": "

The QuickSight namespace that contains the dashboard IDs in this request.\n \t If you're not using a custom namespace, set this to \n \t \"default\".

", "smithy.api#httpQuery": "namespace" } }, @@ -9233,7 +8949,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } }, @@ -9293,7 +9009,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; associated with your QuickSight subscription.

", + "smithy.api#documentation": "

The ID for the AWS account associated with your QuickSight subscription.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -9315,7 +9031,7 @@ "UserArn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type.\n\t\t\tYou can use this for any type of Amazon QuickSight users in your account (readers, authors, or\n\t\t\tadmins). They need to be authenticated as one of the following:

\n\t\t
    \n
  1. \n\t\t\t\t

    Active Directory (AD) users or group members

    \n\t\t\t
  2. \n
  3. \n\t\t\t\t

    Invited nonfederated users

    \n\t\t\t
  4. \n
  5. \n\t\t\t\t

    Identity and Access Management (IAM) users and IAM role-based sessions authenticated\n through Federated Single Sign-On using SAML, OpenID Connect, or IAM\n federation

    \n\t\t\t
  6. \n
\n

Omit this parameter for users in the third group, IAM users and IAM role-based\n sessions.

", + "smithy.api#documentation": "

The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type.\n\t\t\tYou can use this for any type of Amazon QuickSight users in your account (readers, authors, or\n\t\t\tadmins). They need to be authenticated as one of the following:

\n\t\t
    \n
  1. \n\t\t\t\t

    Active Directory (AD) users or group members

    \n\t\t\t
  2. \n
  3. \n\t\t\t\t

    Invited nonfederated users

    \n\t\t\t
  4. \n
  5. \n\t\t\t\t

    AWS Identity and Access Management (IAM) users and IAM role-based sessions authenticated\n through Federated Single Sign-On using SAML, OpenID Connect, or IAM\n federation

    \n\t\t\t
  6. \n
\n

Omit this parameter for users in the third group, IAM users and IAM role-based\n sessions.

", "smithy.api#httpQuery": "user-arn" } } @@ -9340,7 +9056,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -9473,7 +9189,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

" + "smithy.api#documentation": "

The AWS account ID.

" } }, "AssignmentId": { @@ -9508,7 +9224,7 @@ } }, "traits": { - "smithy.api#documentation": "

An Identity and Access Management (IAM) policy assignment.

" + "smithy.api#documentation": "

An AWS Identity and Access Management (IAM) policy assignment.

" } }, "com.amazonaws.quicksight#IAMPolicyAssignmentName": { @@ -9605,7 +9321,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -10070,7 +9786,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -10089,7 +9805,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -10108,7 +9824,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -10234,7 +9950,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -10267,7 +9983,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists Amazon QuickSight analyses that exist in the specified Amazon Web Services account;.

", + "smithy.api#documentation": "

Lists Amazon QuickSight analyses that exist in the specified AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/analyses", @@ -10286,7 +10002,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analyses.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the analyses.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10333,7 +10049,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -10386,7 +10102,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're listing versions\n for.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're listing versions\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10441,7 +10157,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -10469,7 +10185,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists dashboards in an Amazon Web Services account;.

", + "smithy.api#documentation": "

Lists dashboards in an AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/dashboards", @@ -10488,7 +10204,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboards that you're\n listing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the dashboards that you're\n listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10516,7 +10232,7 @@ "DashboardSummaryList": { "target": "com.amazonaws.quicksight#DashboardSummaryList", "traits": { - "smithy.api#documentation": "

A structure that contains all of the dashboards in your Amazon Web Services account;. This structure\n provides basic information about the dashboards.

" + "smithy.api#documentation": "

A structure that contains all of the dashboards in your AWS account. This structure\n provides basic information about the dashboards.

" } }, "NextToken": { @@ -10535,7 +10251,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -10566,7 +10282,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all of the datasets belonging to the current Amazon Web Services account; in an Region;.

\n\t\t

The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*.

", + "smithy.api#documentation": "

Lists all of the datasets belonging to the current AWS account in an AWS Region.

\n\t\t

The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/data-sets", @@ -10585,7 +10301,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10625,7 +10341,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -10663,7 +10379,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists data sources in current Region; that belong to this Amazon Web Services account;.

", + "smithy.api#documentation": "

Lists data sources in current AWS Region that belong to this AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/data-sources", @@ -10682,7 +10398,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10722,7 +10438,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -11010,7 +10726,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11043,7 +10759,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -11104,7 +10820,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11152,7 +10868,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -11247,7 +10963,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the assignments.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the assignments.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11297,7 +11013,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "NextToken": { @@ -11321,7 +11037,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains these IAM policy assignments.

", + "smithy.api#documentation": "

The ID of the AWS account that contains these IAM policy assignments.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11375,7 +11091,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -11453,7 +11169,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11486,7 +11202,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -11533,7 +11249,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the namespaces for the specified Amazon Web Services account;.

", + "smithy.api#documentation": "

Lists the namespaces for the specified AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/namespaces", @@ -11552,7 +11268,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the QuickSight namespaces that you want to list.

", + "smithy.api#documentation": "

The ID for the AWS account that contains the QuickSight namespaces that you want to list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11580,7 +11296,7 @@ "Namespaces": { "target": "com.amazonaws.quicksight#Namespaces", "traits": { - "smithy.api#documentation": "

The information about the namespaces in this Amazon Web Services account;. The response includes \n the namespace ARN, name, Region;, notification email address, creation status, and \n identity store.

" + "smithy.api#documentation": "

The information about the namespaces in this AWS account. The response includes \n the namespace ARN, name, AWS Region, notification email address, creation status, and \n identity store.

" } }, "NextToken": { @@ -11592,7 +11308,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -11663,7 +11379,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -11720,7 +11436,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template aliases that you're listing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the template aliases that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11769,7 +11485,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "NextToken": { @@ -11828,7 +11544,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the templates that you're listing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the templates that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11883,7 +11599,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -11936,7 +11652,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the templates that you're listing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the templates that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11983,7 +11699,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -12034,7 +11750,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme aliases that you're listing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme aliases that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12083,7 +11799,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "NextToken": { @@ -12126,7 +11842,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the versions of the themes in the current Amazon Web Services account;.

", + "smithy.api#documentation": "

Lists all the versions of the themes in the current AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/themes/{ThemeId}/versions", @@ -12145,7 +11861,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the themes that you're listing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the themes that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12200,7 +11916,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -12237,7 +11953,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the themes in the current Amazon Web Services account;.

", + "smithy.api#documentation": "

Lists all the themes in the current AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/themes", @@ -12256,7 +11972,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the themes that you're listing.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the themes that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12279,7 +11995,7 @@ "Type": { "target": "com.amazonaws.quicksight#ThemeType", "traits": { - "smithy.api#documentation": "

The type of themes that you want to list. Valid options include the following:

\n \t ", + "smithy.api#documentation": "

The type of themes that you want to list. Valid options include the following:

\n \t ", "smithy.api#httpQuery": "type" } } @@ -12310,7 +12026,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -12369,7 +12085,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID that the user is in. Currently, you use the ID for the Amazon Web Services account;\n\t\t\tthat contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The AWS account ID that the user is in. Currently, you use the ID for the AWS account\n\t\t\tthat contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12417,7 +12133,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -12478,7 +12194,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12526,7 +12242,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -12835,7 +12551,7 @@ "CapacityRegion": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The namespace Region;.

" + "smithy.api#documentation": "

The namespace AWS Region.

" } }, "CreationStatus": { @@ -13138,7 +12854,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -13265,7 +12981,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -13453,12 +13169,6 @@ { "target": "com.amazonaws.quicksight#DescribeUser" }, - { - "target": "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUser" - }, - { - "target": "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUser" - }, { "target": "com.amazonaws.quicksight#GetDashboardEmbedUrl" }, @@ -13631,7 +13341,7 @@ "name": "quicksight" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "Amazon QuickSight API Reference\n

Amazon QuickSight is a fully managed, serverless business intelligence service for the\n Cloud that makes it easy to extend data and insights to every user in your\n organization. This API reference contains documentation for a programming interface that\n you can use to manage Amazon QuickSight.

", + "smithy.api#documentation": "Amazon QuickSight API Reference\n

Amazon QuickSight is a fully managed, serverless business intelligence service for the\n AWS Cloud that makes it easy to extend data and insights to every user in your\n organization. This API reference contains documentation for a programming interface that\n you can use to manage Amazon QuickSight.

", "smithy.api#title": "Amazon QuickSight" } }, @@ -13785,7 +13495,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -13807,7 +13517,7 @@ "CustomPermissionsName": { "target": "com.amazonaws.quicksight#RoleName", "traits": { - "smithy.api#documentation": "

(Enterprise edition only) The name of the custom permissions profile that you want to\n assign to this user. Customized permissions allows you to control a user's access by\n restricting access the following operations:

\n \n

To add custom permissions to an existing user, use \n UpdateUser\n instead.

\n

A set of custom permissions includes any combination of these restrictions. Currently,\n you need to create the profile names for custom permission sets by using the QuickSight\n console. Then, you use the RegisterUser API operation to assign the named set of\n permissions to a QuickSight user.

\n

QuickSight custom permissions are applied through IAM policies. Therefore, they\n override the permissions typically granted by assigning QuickSight users to one of the\n default security cohorts in QuickSight (admin, author, reader).

\n

This feature is available only to QuickSight Enterprise edition subscriptions.

" + "smithy.api#documentation": "

(Enterprise edition only) The name of the custom permissions profile that you want to\n assign to this user. Customized permissions allows you to control a user's access by\n restricting access the following operations:

\n \n

To add custom permissions to an existing user, use \n UpdateUser\n instead.

\n

A set of custom permissions includes any combination of these restrictions. Currently,\n you need to create the profile names for custom permission sets by using the QuickSight\n console. Then, you use the RegisterUser API operation to assign the named set of\n permissions to a QuickSight user.

\n

QuickSight custom permissions are applied through IAM policies. Therefore, they\n override the permissions typically granted by assigning QuickSight users to one of the\n default security cohorts in QuickSight (admin, author, reader).

\n

This feature is available only to QuickSight Enterprise edition subscriptions that use\n SAML 2.0-Based Federation for Single Sign-On (SSO).

" } }, "ExternalLoginFederationProviderType": { @@ -13848,7 +13558,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -13860,55 +13570,6 @@ } } }, - "com.amazonaws.quicksight#RegisteredUserDashboardEmbeddingConfiguration": { - "type": "structure", - "members": { - "InitialDashboardId": { - "target": "com.amazonaws.quicksight#RestrictiveResourceId", - "traits": { - "smithy.api#documentation": "

The dashboard ID for the dashboard that you want the user to see first. This ID is included in the output URL. When the URL in response is accessed, Amazon QuickSight renders this dashboard if the user has permissions to view it.

\n

If the user does not have permission to view this dashboard, they see a permissions error message.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about the dashboard you want to embed.

" - } - }, - "com.amazonaws.quicksight#RegisteredUserEmbeddingExperienceConfiguration": { - "type": "structure", - "members": { - "Dashboard": { - "target": "com.amazonaws.quicksight#RegisteredUserDashboardEmbeddingConfiguration", - "traits": { - "smithy.api#documentation": "

The configuration details for providing a dashboard embedding experience.

" - } - }, - "QuickSightConsole": { - "target": "com.amazonaws.quicksight#RegisteredUserQuickSightConsoleEmbeddingConfiguration", - "traits": { - "smithy.api#documentation": "

The configuration details for providing an Amazon QuickSight console embedding experience. This can be used along with custom permissions to restrict access to certain features. For more information, see Customizing Access to the Amazon QuickSight Console in the Amazon QuickSight User\n Guide.

\n

Use GenerateEmbedUrlForRegisteredUser where\n you want to provide an authoring portal that allows users to create data sources,\n datasets, analyses, and dashboards. The users who accesses an embedded Amazon QuickSight console\n needs to belong to the author or admin security cohort. If you want to restrict permissions\n to some of these features, add a custom permissions profile to the user with the\n \n UpdateUser\n API operation. Use \n RegisterUser\n API operation to add a new user with a custom permission profile attached. For more\n information, see the following sections in the Amazon QuickSight User\n Guide:

\n \n

For more information about the high-level steps for embedding and for an interactive demo of the ways you can customize embedding, visit the Amazon QuickSight Developer Portal.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The type of experience you want to embed. For registered users, you can embed an Amazon QuickSight dashboard or the Amazon QuickSight console.

\n \n

Exactly one of the experience configurations is required. You can choose Dashboard or QuickSightConsole. You cannot choose more than one experience configuraton.

\n
" - } - }, - "com.amazonaws.quicksight#RegisteredUserQuickSightConsoleEmbeddingConfiguration": { - "type": "structure", - "members": { - "InitialPath": { - "target": "com.amazonaws.quicksight#EntryPath", - "traits": { - "smithy.api#documentation": "

The initial URL path for the Amazon QuickSight console. InitialPath is required.

\n

The entry point URL is constrained to the following paths:

\n " - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about the Amazon QuickSight console that you want to embed.

" - } - }, "com.amazonaws.quicksight#RelationalTable": { "type": "structure", "members": { @@ -14014,7 +13675,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -14051,7 +13712,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -14067,7 +13728,7 @@ "Principal": { "target": "com.amazonaws.quicksight#Principal", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n ", "smithy.api#required": {} } }, @@ -14145,7 +13806,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -14198,7 +13859,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the analysis.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -14238,7 +13899,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -14323,12 +13984,6 @@ "traits": { "smithy.api#documentation": "

The user or group rules associated with the dataset that contains permissions for RLS.

\n

By default, FormatVersion is VERSION_1. When FormatVersion is VERSION_1, UserName and GroupName are required. When FormatVersion is VERSION_2, UserARN and GroupARN are required, and Namespace must not exist.

" } - }, - "Status": { - "target": "com.amazonaws.quicksight#Status", - "traits": { - "smithy.api#documentation": "

The status of the row-level security permission dataset. If enabled, the status is ENABLED. If disabled, the status is DISABLED.

" - } } }, "traits": { @@ -14365,82 +14020,6 @@ ] } }, - "com.amazonaws.quicksight#RowLevelPermissionTagConfiguration": { - "type": "structure", - "members": { - "Status": { - "target": "com.amazonaws.quicksight#Status", - "traits": { - "smithy.api#documentation": "

The status of row-level security tags. If enabled, the status is ENABLED. If disabled, the status is DISABLED.

" - } - }, - "TagRules": { - "target": "com.amazonaws.quicksight#RowLevelPermissionTagRuleList", - "traits": { - "smithy.api#documentation": "

A set of rules associated with row-level security, such as the tag names and columns that they are assigned to.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The configuration of tags on a dataset to set row-level security.

" - } - }, - "com.amazonaws.quicksight#RowLevelPermissionTagDelimiter": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 10 - } - } - }, - "com.amazonaws.quicksight#RowLevelPermissionTagRule": { - "type": "structure", - "members": { - "TagKey": { - "target": "com.amazonaws.quicksight#SessionTagKey", - "traits": { - "smithy.api#documentation": "

The unique key for a tag.

", - "smithy.api#required": {} - } - }, - "ColumnName": { - "target": "com.amazonaws.quicksight#String", - "traits": { - "smithy.api#documentation": "

The column name that a tag key is assigned to.

", - "smithy.api#required": {} - } - }, - "TagMultiValueDelimiter": { - "target": "com.amazonaws.quicksight#RowLevelPermissionTagDelimiter", - "traits": { - "smithy.api#documentation": "

A string that you want to use to delimit the values when you pass the values at run time. For example, you can delimit the values with a comma.

" - } - }, - "MatchAllValue": { - "target": "com.amazonaws.quicksight#SessionTagValue", - "traits": { - "smithy.api#documentation": "

A string that you want to use to filter by all the values in a column in the dataset and don’t want to list the values one by one. For example, you can use an asterisk as your match all value.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A set of rules associated with a tag.

" - } - }, - "com.amazonaws.quicksight#RowLevelPermissionTagRuleList": { - "type": "list", - "member": { - "target": "com.amazonaws.quicksight#RowLevelPermissionTagRule" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 50 - } - } - }, "com.amazonaws.quicksight#S3Bucket": { "type": "string", "traits": { @@ -14465,7 +14044,7 @@ "ManifestFileLocation": { "target": "com.amazonaws.quicksight#ManifestFileLocation", "traits": { - "smithy.api#documentation": "

Location of the Amazon S3 manifest file. This is NULL if the manifest file was\n uploaded into QuickSight.

", + "smithy.api#documentation": "

Location of the Amazon S3 manifest file. This is NULL if the manifest file was\n uploaded in the console.

", "smithy.api#required": {} } } @@ -14531,7 +14110,7 @@ } ], "traits": { - "smithy.api#documentation": "

Searches for analyses that belong to the user specified in the filter.

\n \n

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

\n
", + "smithy.api#documentation": "

Searches for analyses that belong to the user specified in the filter.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/search/analyses", @@ -14550,7 +14129,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analyses that you're searching\n for.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the analyses that you're searching\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -14602,7 +14181,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -14636,7 +14215,7 @@ } ], "traits": { - "smithy.api#documentation": "

Searches for dashboards that belong to a user.

\n \n

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

\n
", + "smithy.api#documentation": "

Searches for dashboards that belong to a user.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/search/dashboards", @@ -14655,7 +14234,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the user whose dashboards you're searching\n for.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the user whose dashboards you're searching\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -14707,7 +14286,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -14849,7 +14428,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -14859,59 +14438,6 @@ "smithy.api#httpError": 400 } }, - "com.amazonaws.quicksight#SessionTag": { - "type": "structure", - "members": { - "Key": { - "target": "com.amazonaws.quicksight#SessionTagKey", - "traits": { - "smithy.api#documentation": "

The key for the tag.

", - "smithy.api#required": {} - } - }, - "Value": { - "target": "com.amazonaws.quicksight#SessionTagValue", - "traits": { - "smithy.api#documentation": "

The value that you want to assign the tag.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The key-value pair used for the row-level security tags feature.

" - } - }, - "com.amazonaws.quicksight#SessionTagKey": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - } - } - }, - "com.amazonaws.quicksight#SessionTagList": { - "type": "list", - "member": { - "target": "com.amazonaws.quicksight#SessionTag" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 50 - } - } - }, - "com.amazonaws.quicksight#SessionTagValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - }, - "smithy.api#sensitive": {} - } - }, "com.amazonaws.quicksight#Sheet": { "type": "structure", "members": { @@ -14929,7 +14455,7 @@ } }, "traits": { - "smithy.api#documentation": "

A sheet, which is an object that contains a set of visuals that\n are viewed together on one page in Amazon QuickSight. Every analysis and dashboard\n contains at least one sheet. Each sheet contains at least one visualization widget, for\n example a chart, pivot table, or narrative insight. Sheets can be associated with other\n components, such as controls, filters, and so on.

" + "smithy.api#documentation": "

A sheet, which is an object that contains a set of visuals that\n are viewed together on one page in the Amazon QuickSight console. Every analysis and dashboard\n contains at least one sheet. Each sheet contains at least one visualization widget, for\n example a chart, pivot table, or narrative insight. Sheets can be associated with other\n components, such as controls, filters, and so on.

" } }, "com.amazonaws.quicksight#SheetControlsOption": { @@ -15090,21 +14616,6 @@ "smithy.api#documentation": "

Secure Socket Layer (SSL) properties that apply when QuickSight connects to your\n underlying data source.

" } }, - "com.amazonaws.quicksight#Status": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "ENABLED", - "name": "ENABLED" - }, - { - "value": "DISABLED", - "name": "DISABLED" - } - ] - } - }, "com.amazonaws.quicksight#StatusCode": { "type": "integer" }, @@ -15186,7 +14697,7 @@ "Tags": { "target": "com.amazonaws.quicksight#ColumnTagList", "traits": { - "smithy.api#documentation": "

The dataset column tag, currently only used for geospatial type tagging.

\n \n

This is not tags for the Amazon Web Services tagging feature.

\n
", + "smithy.api#documentation": "

The dataset column tag, currently only used for geospatial type tagging. .

\n \n

This is not tags for the AWS tagging feature. .

\n
", "smithy.api#required": {} } } @@ -15257,7 +14768,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified QuickSight resource.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to\n\t\t\tscope user permissions, by granting a user permission to access or change only resources\n\t\t\twith certain tag values. You can use the TagResource operation with a\n\t\t\tresource that already has tags. If you specify a new tag key for the resource, this tag\n\t\t\tis appended to the list of tags associated with the resource. If you specify a tag key\n\t\t\tthat is already associated with the resource, the new tag value that you specify\n\t\t\treplaces the previous value for that tag.

\n\t\t

You can associate as many as 50 tags with a resource. QuickSight supports tagging on data\n\t\t\tset, data source, dashboard, and template.

\n\t\t

Tagging for QuickSight works in a similar way to tagging for other AWS services, except for\n\t\t\tthe following:

\n\t\t ", + "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified QuickSight resource.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to\n\t\t\tscope user permissions, by granting a user permission to access or change only resources\n\t\t\twith certain tag values. You can use the TagResource operation with a\n\t\t\tresource that already has tags. If you specify a new tag key for the resource, this tag\n\t\t\tis appended to the list of tags associated with the resource. If you specify a tag key\n\t\t\tthat is already associated with the resource, the new tag value that you specify\n\t\t\treplaces the previous value for that tag.

\n\t\t

You can associate as many as 50 tags with a resource. QuickSight supports tagging on data\n\t\t\tset, data source, dashboard, and template.

\n\t\t

Tagging for QuickSight works in a similar way to tagging for other AWS services, except for\n\t\t\tthe following:

\n\t\t ", "smithy.api#http": { "method": "POST", "uri": "/resources/{ResourceArn}/tags", @@ -15291,7 +14802,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -15336,7 +14847,7 @@ "TemplateId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The ID for the template. This is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID for the template. This is unique per AWS Region for each AWS account.

" } }, "LastUpdatedTime": { @@ -15353,7 +14864,7 @@ } }, "traits": { - "smithy.api#documentation": "

A template object. A template is an entity in QuickSight that\n encapsulates the metadata required to create an analysis and that you can use to create\n a dashboard. A template adds a layer of abstraction by using placeholders to replace the\n dataset associated with an analysis. You can use templates to create dashboards by\n replacing dataset placeholders with datasets that follow the same schema that was used\n to create the source analysis and template.

\n

You can share templates across Amazon Web Services accounts by allowing users in other Amazon Web Services accounts to\n create a template or a dashboard from an existing template.

" + "smithy.api#documentation": "

A template object. A template is an entity in QuickSight that\n encapsulates the metadata required to create an analysis and that you can use to create\n a dashboard. A template adds a layer of abstraction by using placeholders to replace the\n dataset associated with an analysis. You can use templates to create dashboards by\n replacing dataset placeholders with datasets that follow the same schema that was used\n to create the source analysis and template.

\n

You can share templates across AWS accounts by allowing users in other AWS accounts to\n create a template or a dashboard from an existing template.

" } }, "com.amazonaws.quicksight#TemplateAlias": { @@ -15526,7 +15037,7 @@ "TemplateId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The ID of the template. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID of the template. This ID is unique per AWS Region for each AWS account.

" } }, "Name": { @@ -15906,7 +15417,7 @@ "ThemeId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The ID of the theme. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID of the theme. This ID is unique per AWS Region for each AWS account.

" } }, "LatestVersionNumber": { @@ -16078,7 +15589,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -16331,12 +15842,12 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, "traits": { - "smithy.api#documentation": "

This error indicates that you are calling an embedding operation in Amazon QuickSight\n\t\t\twithout the required pricing plan on your Amazon Web Services account;. Before you can use embedding \n\t\t\tfor anonymous users, a QuickSight administrator needs to add capacity pricing to QuickSight. You \n\t\t can do this on the Manage QuickSight page.

\n

After capacity pricing is added, you can use the \n GetDashboardEmbedUrl API operation with the \n --identity-type ANONYMOUS option.

", + "smithy.api#documentation": "

This error indicates that you are calling an embedding operation in Amazon QuickSight\n\t\t\twithout the required pricing plan on your AWS account. Before you can use embedding \n\t\t\tfor anonymous users, a QuickSight administrator needs to add capacity pricing to QuickSight. You \n\t\t can do this on the Manage QuickSight page.

\n

After capacity pricing is added, you can use the \n GetDashboardEmbedUrl API operation with the \n --identity-type ANONYMOUS option.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } @@ -16350,7 +15861,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" + "smithy.api#documentation": "

The AWS request ID for this request.

" } } }, @@ -16421,7 +15932,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -16462,7 +15973,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates Amazon QuickSight customizations the current Region;. Currently, the only\n customization you can use is a theme.

\n

You can use customizations for your Amazon Web Services account; or, if you specify a namespace, for a\n QuickSight namespace instead. Customizations that apply to a namespace override\n customizations that apply to an Amazon Web Services account;. To find out which customizations apply, use\n the DescribeAccountCustomization API operation.

", + "smithy.api#documentation": "

Updates Amazon QuickSight customizations the current AWS Region. Currently, the only\n customization you can use is a theme.

\n

You can use customizations for your AWS account or, if you specify a namespace, for a\n QuickSight namespace instead. Customizations that apply to a namespace override\n customizations that apply to an AWS account. To find out which customizations apply, use\n the DescribeAccountCustomization API operation.

", "smithy.api#http": { "method": "PUT", "uri": "/accounts/{AwsAccountId}/customizations", @@ -16476,7 +15987,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to update QuickSight customizations\n for.

", + "smithy.api#documentation": "

The ID for the AWS account that you want to update QuickSight customizations\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16491,7 +16002,7 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations you're updating in the current Region;.

", + "smithy.api#documentation": "

The QuickSight customizations you're updating in the current AWS Region.

", "smithy.api#required": {} } } @@ -16503,13 +16014,13 @@ "Arn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the updated customization for this Amazon Web Services account;.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the updated customization for this AWS account.

" } }, "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to update QuickSight customizations\n for.

" + "smithy.api#documentation": "

The ID for the AWS account that you want to update QuickSight customizations\n for.

" } }, "Namespace": { @@ -16521,13 +16032,13 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations you're updating in the current Region;.

" + "smithy.api#documentation": "

The QuickSight customizations you're updating in the current AWS Region.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -16568,7 +16079,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the Amazon QuickSight settings in your Amazon Web Services account;.

", + "smithy.api#documentation": "

Updates the Amazon QuickSight settings in your AWS account.

", "smithy.api#http": { "method": "PUT", "uri": "/accounts/{AwsAccountId}/settings", @@ -16582,7 +16093,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the QuickSight settings that you want to\n list.

", + "smithy.api#documentation": "

The ID for the AWS account that contains the QuickSight settings that you want to\n list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16590,14 +16101,14 @@ "DefaultNamespace": { "target": "com.amazonaws.quicksight#Namespace", "traits": { - "smithy.api#documentation": "

The default namespace for this Amazon Web Services account;. Currently, the default is\n default. Identity and Access Management (IAM) users that register\n for the first time with QuickSight provide an email that becomes associated with the\n default namespace.

", + "smithy.api#documentation": "

The default namespace for this AWS account. Currently, the default is\n default. AWS Identity and Access Management (IAM) users that register\n for the first time with QuickSight provide an email that becomes associated with the\n default namespace.

", "smithy.api#required": {} } }, "NotificationEmail": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The email address that you want QuickSight to send notifications to regarding your \n Amazon Web Services account; or QuickSight subscription.

" + "smithy.api#documentation": "

The email address that you want QuickSight to send notifications to regarding your AWS\n account or QuickSight subscription.

" } } } @@ -16608,7 +16119,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -16703,7 +16214,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis whose permissions you're\n updating. You must be using the Amazon Web Services account; that the analysis is in.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the analysis whose permissions you're\n updating. You must be using the AWS account that the analysis is in.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16754,7 +16265,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -16772,7 +16283,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis that you're updating.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the analysis that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16844,7 +16355,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -16881,7 +16392,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates a dashboard in an Amazon Web Services account;.

\n \n

Updating a Dashboard creates a new dashboard version but does not immediately publish\n the new version. You can update the published version of a dashboard by\n using the UpdateDashboardPublishedVersion API operation.

\n
", + "smithy.api#documentation": "

Updates a dashboard in an AWS account.

", "smithy.api#http": { "method": "PUT", "uri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}", @@ -16932,7 +16443,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard whose permissions you're\n updating.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard whose permissions you're\n updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16983,7 +16494,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -17038,7 +16549,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're\n updating.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're\n updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17086,7 +16597,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -17097,7 +16608,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're\n updating.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're\n updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17120,7 +16631,7 @@ "SourceEntity": { "target": "com.amazonaws.quicksight#DashboardSourceEntity", "traits": { - "smithy.api#documentation": "

The entity that you are using as a source when you update the dashboard. In\n SourceEntity, you specify the type of object you're using as source. You\n can only update a dashboard from a template, so you use a SourceTemplate\n entity. If you need to update a dashboard from an analysis, first convert the analysis\n to a template by using the CreateTemplate API operation. For\n SourceTemplate, specify the Amazon Resource Name (ARN) of the source\n template. The SourceTemplate ARN can contain any Amazon Web Services account; and any\n QuickSight-supported Region;.

\n

Use the DataSetReferences entity within SourceTemplate to\n list the replacement datasets for the placeholders listed in the original. The schema in\n each dataset must match its placeholder.

", + "smithy.api#documentation": "

The entity that you are using as a source when you update the dashboard. In\n SourceEntity, you specify the type of object you're using as source. You\n can only update a dashboard from a template, so you use a SourceTemplate\n entity. If you need to update a dashboard from an analysis, first convert the analysis\n to a template by using the CreateTemplate API operation. For\n SourceTemplate, specify the Amazon Resource Name (ARN) of the source\n template. The SourceTemplate ARN can contain any AWS Account and any\n QuickSight-supported AWS Region.

\n

Use the DataSetReferences entity within SourceTemplate to\n list the replacement datasets for the placeholders listed in the original. The schema in\n each dataset must match its placeholder.

", "smithy.api#required": {} } }, @@ -17145,7 +16656,7 @@ "ThemeArn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If\n you add a value for this field, it overrides the value that was originally associated\n with the entity. The theme ARN must exist in the same Amazon Web Services account; where you create the\n dashboard.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If\n you add a value for this field, it overrides the value that was originally associated\n with the entity. The theme ARN must exist in the same AWS account where you create the\n dashboard.

" } } } @@ -17186,7 +16697,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -17277,7 +16788,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17285,7 +16796,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset whose permissions you want to update. This ID is unique per \n\t\t\tRegion; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

The ID for the dataset whose permissions you want to update. This ID is unique per AWS\n\t\t\tRegion for each AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17316,13 +16827,13 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset whose permissions you want to update. This ID is unique per \n\t\t\tRegion; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID for the dataset whose permissions you want to update. This ID is unique per AWS\n\t\t\tRegion for each AWS account.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -17340,7 +16851,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17348,7 +16859,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to update. This ID is unique per Region; for each\n\t\t\tAmazon Web Services account;.

", + "smithy.api#documentation": "

The ID for the dataset that you want to update. This ID is unique per AWS Region for each\n\t\t\tAWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17398,12 +16909,6 @@ "smithy.api#documentation": "

The row-level security configuration for the data you want to create.

" } }, - "RowLevelPermissionTagConfiguration": { - "target": "com.amazonaws.quicksight#RowLevelPermissionTagConfiguration", - "traits": { - "smithy.api#documentation": "

The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.

" - } - }, "ColumnLevelPermissionRules": { "target": "com.amazonaws.quicksight#ColumnLevelPermissionRuleList", "traits": { @@ -17424,7 +16929,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

" } }, "IngestionArn": { @@ -17442,7 +16947,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -17534,7 +17039,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17542,7 +17047,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17573,13 +17078,13 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -17597,7 +17102,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account; ID.

", + "smithy.api#documentation": "

The AWS account ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17605,7 +17110,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17655,7 +17160,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" } }, "UpdateStatus": { @@ -17667,7 +17172,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -17948,7 +17453,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17975,7 +17480,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -18033,7 +17538,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the IAM policy assignment.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the IAM policy assignment.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18041,7 +17546,7 @@ "AssignmentName": { "target": "com.amazonaws.quicksight#IAMPolicyAssignmentName", "traits": { - "smithy.api#documentation": "

The name of the assignment, also called a rule. This name must be unique within an Amazon Web Services account;.

", + "smithy.api#documentation": "

The name of the assignment, also called a rule. This name must be unique within an AWS account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18110,7 +17615,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -18217,7 +17722,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template alias that you're updating.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the template alias that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18266,7 +17771,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -18314,7 +17819,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the template.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18365,7 +17870,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -18383,7 +17888,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you're updating.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the template that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18399,7 +17904,7 @@ "SourceEntity": { "target": "com.amazonaws.quicksight#TemplateSourceEntity", "traits": { - "smithy.api#documentation": "

The entity that you are using as a source when you update the template. In\n\t\t\tSourceEntity, you specify the type of object you're using as source:\n\t\t\tSourceTemplate for a template or SourceAnalysis for an\n\t\t\tanalysis. Both of these require an Amazon Resource Name (ARN). For\n\t\t\tSourceTemplate, specify the ARN of the source template. For\n\t\t\tSourceAnalysis, specify the ARN of the source analysis. The SourceTemplate\n\t\t\tARN can contain any Amazon Web Services account; and any QuickSight-supported Region;.

\n\t\t

Use the DataSetReferences entity within SourceTemplate or\n\t\t\tSourceAnalysis to list the replacement datasets for the placeholders listed\n\t\t\tin the original. The schema in each dataset must match its placeholder.

", + "smithy.api#documentation": "

The entity that you are using as a source when you update the template. In\n\t\t\tSourceEntity, you specify the type of object you're using as source:\n\t\t\tSourceTemplate for a template or SourceAnalysis for an\n\t\t\tanalysis. Both of these require an Amazon Resource Name (ARN). For\n\t\t\tSourceTemplate, specify the ARN of the source template. For\n\t\t\tSourceAnalysis, specify the ARN of the source analysis. The SourceTemplate\n\t\t\tARN can contain any AWS Account and any QuickSight-supported AWS Region.

\n\t\t

Use the DataSetReferences entity within SourceTemplate or\n\t\t\tSourceAnalysis to list the replacement datasets for the placeholders listed\n\t\t\tin the original. The schema in each dataset must match its placeholder.

", "smithy.api#required": {} } }, @@ -18454,7 +17959,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -18548,7 +18053,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme alias that you're updating.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme alias that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18597,7 +18102,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -18645,7 +18150,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18696,7 +18201,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { @@ -18714,7 +18219,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme that you're updating.

", + "smithy.api#documentation": "

The ID of the AWS account that contains the theme that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18736,7 +18241,7 @@ "BaseThemeId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The theme ID, defined by Amazon QuickSight, that a custom theme inherits from.\n\t\tAll themes initially inherit from a default Amazon QuickSight theme.

", + "smithy.api#documentation": "

The theme ID, defined by Amazon QuickSight, that a custom theme inherits from.\n\t\tAll themes initially inherit from a default QuickSight theme.

", "smithy.api#required": {} } }, @@ -18791,7 +18296,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } } } @@ -18850,7 +18355,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18880,7 +18385,7 @@ "CustomPermissionsName": { "target": "com.amazonaws.quicksight#RoleName", "traits": { - "smithy.api#documentation": "

(Enterprise edition only) The name of the custom permissions profile that you want to\n assign to this user. Customized permissions allows you to control a user's access by\n restricting access the following operations:

\n \n

A set of custom permissions includes any combination of these restrictions. Currently,\n you need to create the profile names for custom permission sets by using the QuickSight\n console. Then, you use the RegisterUser API operation to assign the named set of\n permissions to a QuickSight user.

\n

QuickSight custom permissions are applied through IAM policies. Therefore, they\n override the permissions typically granted by assigning QuickSight users to one of the\n default security cohorts in QuickSight (admin, author, reader).

\n

This feature is available only to QuickSight Enterprise edition subscriptions.

" + "smithy.api#documentation": "

(Enterprise edition only) The name of the custom permissions profile that you want to\n assign to this user. Customized permissions allows you to control a user's access by\n restricting access the following operations:

\n \n

A set of custom permissions includes any combination of these restrictions. Currently,\n you need to create the profile names for custom permission sets by using the QuickSight\n console. Then, you use the RegisterUser API operation to assign the named set of\n permissions to a QuickSight user.

\n

QuickSight custom permissions are applied through IAM policies. Therefore, they\n override the permissions typically granted by assigning QuickSight users to one of the\n default security cohorts in QuickSight (admin, author, reader).

\n

This feature is available only to QuickSight Enterprise edition subscriptions that use\n SAML 2.0-Based Federation for Single Sign-On (SSO).

" } }, "UnapplyCustomPermissions": { @@ -18921,7 +18426,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" + "smithy.api#documentation": "

The AWS request ID for this operation.

" } }, "Status": { diff --git a/codegen/sdk-codegen/aws-models/rds.2014-10-31.json b/codegen/sdk-codegen/aws-models/rds.2014-10-31.json index 2bb3a2be76e..d3673b3a1c5 100644 --- a/codegen/sdk-codegen/aws-models/rds.2014-10-31.json +++ b/codegen/sdk-codegen/aws-models/rds.2014-10-31.json @@ -6946,7 +6946,7 @@ "SnapshotCreateTime": { "target": "com.amazonaws.rds#TStamp", "traits": { - "smithy.api#documentation": "

Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.

" + "smithy.api#documentation": "

Specifies when the snapshot was taken in Coordinated Universal Time (UTC).

" } }, "Engine": { @@ -7042,7 +7042,7 @@ "SourceDBSnapshotIdentifier": { "target": "com.amazonaws.rds#String", "traits": { - "smithy.api#documentation": "

The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. It only has a value in the case of a cross-account or cross-Region copy.

" + "smithy.api#documentation": "

The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. It only has value in case of cross-customer or cross-region copy.

" } }, "StorageType": { @@ -7101,12 +7101,6 @@ }, "TagList": { "target": "com.amazonaws.rds#TagList" - }, - "OriginalSnapshotCreateTime": { - "target": "com.amazonaws.rds#TStamp", - "traits": { - "smithy.api#documentation": "

Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.

" - } } }, "traits": { @@ -8832,7 +8826,7 @@ "Filters": { "target": "com.amazonaws.rds#FilterList", "traits": { - "smithy.api#documentation": "

A filter that specifies one or more DB clusters to describe.

\n

Supported filters:

\n " + "smithy.api#documentation": "

A filter that specifies one or more DB clusters to describe.

\n

Supported filters:

\n " } }, "MaxRecords": { @@ -9029,9 +9023,6 @@ "items": "DBInstances", "pageSize": "MaxRecords" }, - "smithy.api#suppress": [ - "WaitableTraitInvalidErrorType" - ], "smithy.waiters#waitable": { "DBInstanceAvailable": { "acceptors": [ @@ -9097,67 +9088,6 @@ } ], "minDelay": 30 - }, - "DBInstanceDeleted": { - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "length(DBInstances) == `0`", - "expected": "true", - "comparator": "booleanEquals" - } - } - }, - { - "state": "success", - "matcher": { - "errorType": "DBInstanceNotFound" - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "DBInstances[].DBInstanceStatus", - "expected": "creating", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "DBInstances[].DBInstanceStatus", - "expected": "modifying", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "DBInstances[].DBInstanceStatus", - "expected": "rebooting", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "DBInstances[].DBInstanceStatus", - "expected": "resetting-master-credentials", - "comparator": "anyStringEquals" - } - } - } - ], - "minDelay": 30 } } } @@ -9867,9 +9797,6 @@ "items": "DBSnapshots", "pageSize": "MaxRecords" }, - "smithy.api#suppress": [ - "WaitableTraitInvalidErrorType" - ], "smithy.waiters#waitable": { "DBSnapshotAvailable": { "acceptors": [ @@ -9935,67 +9862,6 @@ } ], "minDelay": 30 - }, - "DBSnapshotDeleted": { - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "length(DBSnapshots) == `0`", - "expected": "true", - "comparator": "booleanEquals" - } - } - }, - { - "state": "success", - "matcher": { - "errorType": "DBSnapshotNotFound" - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "DBSnapshots[].Status", - "expected": "creating", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "DBSnapshots[].Status", - "expected": "modifying", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "DBSnapshots[].Status", - "expected": "rebooting", - "comparator": "anyStringEquals" - } - } - }, - { - "state": "failure", - "matcher": { - "output": { - "path": "DBSnapshots[].Status", - "expected": "resetting-master-credentials", - "comparator": "anyStringEquals" - } - } - } - ], - "minDelay": 30 } } } @@ -10489,7 +10355,7 @@ "Filters": { "target": "com.amazonaws.rds#FilterList", "traits": { - "smithy.api#documentation": "

This parameter isn't currently supported.

" + "smithy.api#documentation": "

A filter that specifies one or more global DB clusters to describe.

\n

Supported filters:

\n " } }, "MaxRecords": { diff --git a/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json b/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json index 18019eb0e16..9b4600e23bc 100644 --- a/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json +++ b/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json @@ -14,143 +14,6 @@ "smithy.api#httpError": 400 } }, - "com.amazonaws.redshiftdata#BatchExecuteStatement": { - "type": "operation", - "input": { - "target": "com.amazonaws.redshiftdata#BatchExecuteStatementInput" - }, - "output": { - "target": "com.amazonaws.redshiftdata#BatchExecuteStatementOutput" - }, - "errors": [ - { - "target": "com.amazonaws.redshiftdata#ActiveStatementsExceededException" - }, - { - "target": "com.amazonaws.redshiftdata#BatchExecuteStatementException" - }, - { - "target": "com.amazonaws.redshiftdata#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Runs one or more SQL statements, which can be data manipulation language (DML) or data definition\n language (DDL). \n Depending on the authorization\n method, use one of the following combinations of request parameters:

\n " - } - }, - "com.amazonaws.redshiftdata#BatchExecuteStatementException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.redshiftdata#String", - "traits": { - "smithy.api#required": {} - } - }, - "StatementId": { - "target": "com.amazonaws.redshiftdata#String", - "traits": { - "smithy.api#documentation": "

Statement identifier of the exception.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

An SQL statement encountered an environmental error while running.

", - "smithy.api#error": "server", - "smithy.api#httpError": 500 - } - }, - "com.amazonaws.redshiftdata#BatchExecuteStatementInput": { - "type": "structure", - "members": { - "Sqls": { - "target": "com.amazonaws.redshiftdata#SqlList", - "traits": { - "smithy.api#documentation": "

One or more SQL statements to run.

", - "smithy.api#required": {} - } - }, - "ClusterIdentifier": { - "target": "com.amazonaws.redshiftdata#Location", - "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", - "smithy.api#required": {} - } - }, - "SecretArn": { - "target": "com.amazonaws.redshiftdata#SecretArn", - "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" - } - }, - "DbUser": { - "target": "com.amazonaws.redshiftdata#String", - "traits": { - "smithy.api#documentation": "

The database user name. This parameter is required when authenticating using temporary credentials.

" - } - }, - "Database": { - "target": "com.amazonaws.redshiftdata#String", - "traits": { - "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", - "smithy.api#required": {} - } - }, - "WithEvent": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.

" - } - }, - "StatementName": { - "target": "com.amazonaws.redshiftdata#StatementNameString", - "traits": { - "smithy.api#documentation": "

The name of the SQL statements. You can name the SQL statements when you create them to identify the query.

" - } - } - } - }, - "com.amazonaws.redshiftdata#BatchExecuteStatementOutput": { - "type": "structure", - "members": { - "Id": { - "target": "com.amazonaws.redshiftdata#StatementId", - "traits": { - "smithy.api#documentation": "

The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by BatchExecuteStatment.

" - } - }, - "CreatedAt": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

The date and time (UTC) the statement was created.

" - } - }, - "ClusterIdentifier": { - "target": "com.amazonaws.redshiftdata#Location", - "traits": { - "smithy.api#documentation": "

The cluster identifier.

" - } - }, - "DbUser": { - "target": "com.amazonaws.redshiftdata#String", - "traits": { - "smithy.api#documentation": "

The database user name.

" - } - }, - "Database": { - "target": "com.amazonaws.redshiftdata#String", - "traits": { - "smithy.api#documentation": "

The name of the database.

" - } - }, - "SecretArn": { - "target": "com.amazonaws.redshiftdata#SecretArn", - "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database.

" - } - } - } - }, "com.amazonaws.redshiftdata#Blob": { "type": "blob" }, @@ -186,9 +49,6 @@ }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { @@ -199,9 +59,9 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#StatementId", + "target": "com.amazonaws.redshiftdata#UUID", "traits": { - "smithy.api#documentation": "

The identifier of the SQL statement to cancel. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by BatchExecuteStatment, ExecuteStatment, and ListStatements.

", + "smithy.api#documentation": "

The identifier of the SQL statement to cancel. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by ExecuteStatment and ListStatements.

", "smithy.api#required": {} } } @@ -350,9 +210,9 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#StatementId", + "target": "com.amazonaws.redshiftdata#UUID", "traits": { - "smithy.api#documentation": "

The identifier of the SQL statement to describe. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n A suffix indicates the number of the SQL statement.\n For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.\n This identifier is returned by BatchExecuteStatment, ExecuteStatement, and ListStatements.

", + "smithy.api#documentation": "

The identifier of the SQL statement to describe. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by ExecuteStatment and ListStatements.

", "smithy.api#required": {} } } @@ -362,12 +222,18 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#StatementId", + "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

", "smithy.api#required": {} } }, + "QueryString": { + "target": "com.amazonaws.redshiftdata#StatementString", + "traits": { + "smithy.api#documentation": "

The SQL statement text.

" + } + }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { @@ -392,6 +258,18 @@ "smithy.api#documentation": "

The cluster identifier.

" } }, + "ResultRows": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

Either the number of rows returned from the SQL statement or the number of rows affected.\n If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others.

" + } + }, + "ResultSize": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

The size in bytes of the returned results.

" + } + }, "Duration": { "target": "com.amazonaws.redshiftdata#Long", "traits": { @@ -422,6 +300,12 @@ "smithy.api#documentation": "

The date and time (UTC) that the metadata for the SQL statement was last updated. An\n example is the time the status last changed.

" } }, + "RedshiftQueryId": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

The identifier of the query generated by Amazon Redshift. \n These identifiers are also available in the query column of the STL_QUERY system view.

" + } + }, "RedshiftPid": { "target": "com.amazonaws.redshiftdata#Long", "traits": { @@ -434,41 +318,11 @@ "smithy.api#documentation": "

A value that indicates whether the statement has a result set. The result set can be empty.

" } }, - "QueryString": { - "target": "com.amazonaws.redshiftdata#StatementString", - "traits": { - "smithy.api#documentation": "

The SQL statement text.

" - } - }, - "ResultRows": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

Either the number of rows returned from the SQL statement or the number of rows affected.\n If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. \n A -1 indicates the value is null.

" - } - }, - "ResultSize": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

The size in bytes of the returned results. A -1 indicates the value is null.

" - } - }, - "RedshiftQueryId": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

The identifier of the query generated by Amazon Redshift. \n These identifiers are also available in the query column of the STL_QUERY system view.

" - } - }, "QueryParameters": { "target": "com.amazonaws.redshiftdata#SqlParametersList", "traits": { "smithy.api#documentation": "

The parameters for the SQL statement.

" } - }, - "SubStatements": { - "target": "com.amazonaws.redshiftdata#SubStatementList", - "traits": { - "smithy.api#documentation": "

The SQL statements from a multiple statement run.

" - } } } }, @@ -489,7 +343,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes the detailed information about a table from metadata in the cluster. The\n information includes its columns. \n A token is returned to page through the column list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", + "smithy.api#documentation": "

Describes the detailed information about a table from metadata in the cluster. The\n information includes its columns. \n A token is returned to page through the column list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -505,14 +359,14 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" } }, "DbUser": { @@ -603,7 +457,7 @@ } ], "traits": { - "smithy.api#documentation": "

Runs an SQL statement, which can be data manipulation language (DML) or data definition\n language (DDL). This statement must be a single SQL statement. \n Depending on the authorization\n method, use one of the following combinations of request parameters:

\n " + "smithy.api#documentation": "

Runs an SQL statement, which can be data manipulation language (DML) or data definition\n language (DDL). This statement must be a single SQL statement. \n Depending on the authorization\n method, use one of the following combinations of request parameters:

\n " } }, "com.amazonaws.redshiftdata#ExecuteStatementException": { @@ -643,14 +497,14 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" } }, "DbUser": { @@ -662,8 +516,7 @@ "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using temporary credentials.

" } }, "WithEvent": { @@ -690,9 +543,9 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#StatementId", + "target": "com.amazonaws.redshiftdata#UUID", "traits": { - "smithy.api#documentation": "

The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

" + "smithy.api#documentation": "

The identifier of the statement to be run. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

" } }, "CreatedAt": { @@ -810,9 +663,9 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#StatementId", + "target": "com.amazonaws.redshiftdata#UUID", "traits": { - "smithy.api#documentation": "

The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n A suffix indicates then number of the SQL statement.\n For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.\n This identifier is returned by BatchExecuteStatment, ExecuteStatment, and ListStatements.

", + "smithy.api#documentation": "

The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by ExecuteStatment and ListStatements.

", "smithy.api#required": {} } }, @@ -891,7 +744,7 @@ } ], "traits": { - "smithy.api#documentation": "

List the databases in a cluster. \n A token is returned to page through the database list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", + "smithy.api#documentation": "

List the databases in a cluster. \n A token is returned to page through the database list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -907,21 +760,20 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using temporary credentials.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" } }, "DbUser": { @@ -978,7 +830,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the schemas in a database. \n A token is returned to page through the schema list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", + "smithy.api#documentation": "

Lists the schemas in a database. \n A token is returned to page through the schema list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -994,14 +846,14 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" } }, "DbUser": { @@ -1114,7 +966,7 @@ "StatementName": { "target": "com.amazonaws.redshiftdata#StatementNameString", "traits": { - "smithy.api#documentation": "

The name of the SQL statement specified as input to BatchExecuteStatement or ExecuteStatement to identify the query. \n You can list multiple statements by providing a prefix that matches the beginning of the statement name. \n For example, to list myStatement1, myStatement2, myStatement3, and so on, then provide the a value of myStatement. \n Data API does a case-sensitive match of SQL statement names to the prefix value you provide.

" + "smithy.api#documentation": "

The name of the SQL statement specified as input to ExecuteStatement to identify the query. \n You can list multiple statements by providing a prefix that matches the beginning of the statement name. \n For example, to list myStatement1, myStatement2, myStatement3, and so on, then provide the a value of myStatement. \n Data API does a case-sensitive match of SQL statement names to the prefix value you provide.

" } }, "Status": { @@ -1166,7 +1018,7 @@ } ], "traits": { - "smithy.api#documentation": "

List the tables in a database. If neither SchemaPattern nor TablePattern are specified, then \n all tables in the database are returned.\n A token is returned to page through the table list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", + "smithy.api#documentation": "

List the tables in a database. If neither SchemaPattern nor TablePattern are specified, then \n all tables in the database are returned.\n A token is returned to page through the table list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1182,14 +1034,14 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" } }, "DbUser": { @@ -1287,9 +1139,6 @@ "type": "service", "version": "2019-12-20", "operations": [ - { - "target": "com.amazonaws.redshiftdata#BatchExecuteStatement" - }, { "target": "com.amazonaws.redshiftdata#CancelStatement" }, @@ -1331,7 +1180,7 @@ }, "aws.protocols#awsJson1_1": {}, "smithy.api#cors": {}, - "smithy.api#documentation": "

You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You\n can run SQL statements, which are committed if the statement succeeds.

\n

For more information about the Amazon Redshift Data API, see \n Using the Amazon Redshift Data API in the \n Amazon Redshift Cluster Management Guide.

", + "smithy.api#documentation": "

You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You\n can run individual SQL statements, which are committed if the statement succeeds.

\n

For more information about the Amazon Redshift Data API, see \n Using the Amazon Redshift Data API in the \n Amazon Redshift Cluster Management Guide.

", "smithy.api#title": "Redshift Data API Service" } }, @@ -1368,18 +1217,6 @@ "com.amazonaws.redshiftdata#SecretArn": { "type": "string" }, - "com.amazonaws.redshiftdata#SqlList": { - "type": "list", - "member": { - "target": "com.amazonaws.redshiftdata#StatementString" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 40 - } - } - }, "com.amazonaws.redshiftdata#SqlParameter": { "type": "structure", "members": { @@ -1423,7 +1260,7 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#StatementId", + "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

", "smithy.api#required": {} @@ -1435,12 +1272,6 @@ "smithy.api#documentation": "

The SQL statement.

" } }, - "QueryStrings": { - "target": "com.amazonaws.redshiftdata#StatementStringList", - "traits": { - "smithy.api#documentation": "

One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.

" - } - }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { @@ -1476,24 +1307,12 @@ "traits": { "smithy.api#documentation": "

The parameters used in a SQL statement.

" } - }, - "IsBatchStatement": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

A value that indicates whether the statement is a batch query request.

" - } } }, "traits": { "smithy.api#documentation": "

The SQL statement to run.

" } }, - "com.amazonaws.redshiftdata#StatementId": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[a-z0-9]{8}(-[a-z0-9]{4}){3}-[a-z0-9]{12}(:\\d+)?$" - } - }, "com.amazonaws.redshiftdata#StatementList": { "type": "list", "member": { @@ -1508,46 +1327,9 @@ } } }, - "com.amazonaws.redshiftdata#StatementStatusString": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SUBMITTED", - "name": "SUBMITTED" - }, - { - "value": "PICKED", - "name": "PICKED" - }, - { - "value": "STARTED", - "name": "STARTED" - }, - { - "value": "FINISHED", - "name": "FINISHED" - }, - { - "value": "ABORTED", - "name": "ABORTED" - }, - { - "value": "FAILED", - "name": "FAILED" - } - ] - } - }, "com.amazonaws.redshiftdata#StatementString": { "type": "string" }, - "com.amazonaws.redshiftdata#StatementStringList": { - "type": "list", - "member": { - "target": "com.amazonaws.redshiftdata#StatementString" - } - }, "com.amazonaws.redshiftdata#StatusString": { "type": "string", "traits": { @@ -1586,87 +1368,6 @@ "com.amazonaws.redshiftdata#String": { "type": "string" }, - "com.amazonaws.redshiftdata#SubStatementData": { - "type": "structure", - "members": { - "Id": { - "target": "com.amazonaws.redshiftdata#StatementId", - "traits": { - "smithy.api#documentation": "

The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n A suffix indicates the number of the SQL statement.\n For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.

", - "smithy.api#required": {} - } - }, - "Duration": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

The amount of time in nanoseconds that the statement ran.

" - } - }, - "Error": { - "target": "com.amazonaws.redshiftdata#String", - "traits": { - "smithy.api#documentation": "

The error message from the cluster if the SQL statement encountered an error while running.

" - } - }, - "Status": { - "target": "com.amazonaws.redshiftdata#StatementStatusString", - "traits": { - "smithy.api#documentation": "

The status of the SQL statement. An\n example is the that the SQL statement finished.\n

" - } - }, - "CreatedAt": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

The date and time (UTC) the statement was created.

" - } - }, - "UpdatedAt": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

The date and time (UTC) that the statement metadata was last updated.

" - } - }, - "QueryString": { - "target": "com.amazonaws.redshiftdata#StatementString", - "traits": { - "smithy.api#documentation": "

The SQL statement text.

" - } - }, - "ResultRows": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

Either the number of rows returned from the SQL statement or the number of rows affected. \n If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others.\n A -1 indicates the value is null.

" - } - }, - "ResultSize": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

The size in bytes of the returned results. A -1 indicates the value is null.

" - } - }, - "RedshiftQueryId": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

" - } - }, - "HasResultSet": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

A value that indicates whether the statement has a result set. The result set can be empty.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about an SQL statement.

" - } - }, - "com.amazonaws.redshiftdata#SubStatementList": { - "type": "list", - "member": { - "target": "com.amazonaws.redshiftdata#SubStatementData" - } - }, "com.amazonaws.redshiftdata#TableList": { "type": "list", "member": { @@ -1699,6 +1400,9 @@ "smithy.api#documentation": "

The properties of a table.

" } }, + "com.amazonaws.redshiftdata#UUID": { + "type": "string" + }, "com.amazonaws.redshiftdata#ValidationException": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/robomaker.2018-06-29.json b/codegen/sdk-codegen/aws-models/robomaker.2018-06-29.json index da82ed1e348..a8b4f8b2829 100644 --- a/codegen/sdk-codegen/aws-models/robomaker.2018-06-29.json +++ b/codegen/sdk-codegen/aws-models/robomaker.2018-06-29.json @@ -55,7 +55,7 @@ "min": 1, "max": 1224 }, - "smithy.api#pattern": "^arn:" + "smithy.api#pattern": "arn:.*" } }, "com.amazonaws.robomaker#Arns": { @@ -458,7 +458,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[a-zA-Z0-9_\\-=]*$" + "smithy.api#pattern": "[a-zA-Z0-9_\\-=]*" } }, "com.amazonaws.robomaker#Command": { @@ -468,7 +468,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "^[a-zA-Z0-9_.\\-]*$" + "smithy.api#pattern": "[a-zA-Z0-9_.\\-]*" } }, "com.amazonaws.robomaker#Compute": { @@ -2573,7 +2573,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "^[0-9]*$" + "smithy.api#pattern": "[0-9]*" } }, "com.amazonaws.robomaker#DeregisterRobot": { @@ -3756,12 +3756,6 @@ "traits": { "smithy.api#documentation": "

A map that contains tag keys and tag values that are attached to the world.

" } - }, - "worldDescriptionBody": { - "target": "com.amazonaws.robomaker#Json", - "traits": { - "smithy.api#documentation": "

Returns the JSON formatted string that describes the contents of your world.

" - } } } }, @@ -3846,12 +3840,6 @@ "traits": { "smithy.api#documentation": "

A map that contains tag keys and tag values that are attached to the world\n template.

" } - }, - "version": { - "target": "com.amazonaws.robomaker#GenericString", - "traits": { - "smithy.api#documentation": "

The version of the world template that you're using.

" - } } } }, @@ -3862,7 +3850,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "^[A-Z_][A-Z0-9_]*$" + "smithy.api#pattern": "[A-Z_][A-Z0-9_]*" } }, "com.amazonaws.robomaker#EnvironmentVariableMap": { @@ -4195,7 +4183,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "^arn:aws:iam::\\w+:role/" + "smithy.api#pattern": "arn:aws:iam::\\w+:role/.*" } }, "com.amazonaws.robomaker#Id": { @@ -4266,7 +4254,7 @@ "min": 1, "max": 262144 }, - "smithy.api#pattern": "^[\\S\\s]+$" + "smithy.api#pattern": "[\\S\\s]+" } }, "com.amazonaws.robomaker#LastStartedAt": { @@ -5235,7 +5223,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "^[a-zA-Z0-9_\\-]*$" + "smithy.api#pattern": "[a-zA-Z0-9_\\-]*" } }, "com.amazonaws.robomaker#NetworkInterface": { @@ -5271,7 +5259,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "^.+$" + "smithy.api#pattern": ".+" } }, "com.amazonaws.robomaker#NonSystemPort": { @@ -5310,7 +5298,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^[a-zA-Z0-9_.\\-\\/+=]*$" + "smithy.api#pattern": "[a-zA-Z0-9_.\\-\\/+=]*" } }, "com.amazonaws.robomaker#Path": { @@ -5546,7 +5534,7 @@ "min": 1, "max": 4 }, - "smithy.api#pattern": "^1.x$" + "smithy.api#pattern": "1.x" } }, "com.amazonaws.robomaker#ResourceAlreadyExistsException": { @@ -5632,7 +5620,7 @@ "min": 1, "max": 40 }, - "smithy.api#pattern": "^[a-zA-Z0-9_.\\-]*$" + "smithy.api#pattern": "[a-zA-Z0-9_.\\-]*" } }, "com.amazonaws.robomaker#Robot": { @@ -6020,7 +6008,7 @@ "min": 3, "max": 63 }, - "smithy.api#pattern": "^[a-z0-9][a-z0-9.\\-]*[a-z0-9]$" + "smithy.api#pattern": "[a-z0-9][a-z0-9.\\-]*[a-z0-9]" } }, "com.amazonaws.robomaker#S3Etag": { @@ -6863,7 +6851,7 @@ "min": 0, "max": 1024 }, - "smithy.api#pattern": "^7|9|11|Kinetic|Melodic|Dashing|Foxy$" + "smithy.api#pattern": "7|9|11|Kinetic|Melodic|Dashing|Foxy" } }, "com.amazonaws.robomaker#SimulationTimeMillis": { @@ -7217,7 +7205,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9 _.\\-\\/+=:]*$" + "smithy.api#pattern": "[a-zA-Z0-9 _.\\-\\/+=:]*" } }, "com.amazonaws.robomaker#TagKeyList": { @@ -7303,7 +7291,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": "^[a-zA-Z0-9 _.\\-\\/+=:]*$" + "smithy.api#pattern": "[a-zA-Z0-9 _.\\-\\/+=:]*" } }, "com.amazonaws.robomaker#TemplateLocation": { @@ -7370,12 +7358,6 @@ "traits": { "smithy.api#documentation": "

The name of the template.

" } - }, - "version": { - "target": "com.amazonaws.robomaker#GenericString", - "traits": { - "smithy.api#documentation": "

The version of the template that you're using.

" - } } }, "traits": { @@ -7976,7 +7958,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "^(\\$LATEST)|[0-9]*$" + "smithy.api#pattern": "(\\$LATEST)|[0-9]*" } }, "com.amazonaws.robomaker#VersionQualifier": { @@ -7986,7 +7968,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "^ALL$" + "smithy.api#pattern": "ALL" } }, "com.amazonaws.robomaker#WorldConfig": { diff --git a/codegen/sdk-codegen/aws-models/route53.2013-04-01.json b/codegen/sdk-codegen/aws-models/route53.2013-04-01.json index bb543367718..bc57aec1d67 100644 --- a/codegen/sdk-codegen/aws-models/route53.2013-04-01.json +++ b/codegen/sdk-codegen/aws-models/route53.2013-04-01.json @@ -309,9 +309,6 @@ { "target": "com.amazonaws.route53#ConcurrentModification" }, - { - "target": "com.amazonaws.route53#InvalidInput" - }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -406,27 +403,27 @@ "HostedZoneId": { "target": "com.amazonaws.route53#ResourceId", "traits": { - "smithy.api#documentation": "

\n Alias resource records sets only: The value used depends on where you want to route traffic:

\n\t\t
\n
Amazon API Gateway custom regional APIs and edge-optimized APIs
\n
\n

Specify the hosted zone ID for your API. You can get the applicable value using the CLI command \n\t\t\t\t\tget-domain-names:

\n\t\t\t\t\t \n\t\t\t\t
\n
Amazon Virtual Private Cloud interface VPC endpoint
\n
\n

Specify the hosted zone ID for your interface endpoint. You can get the value of HostedZoneId \n\t\t\t\t\tusing the CLI command \n\t\t\t\t\tdescribe-vpc-endpoints.

\n\t\t\t\t
\n
CloudFront distribution
\n
\n\t\t\t\t\t

Specify Z2FDTNDATAQYW2.

\n\t\t\t\t\t \n\t\t\t\t\t\t

Alias resource record sets for CloudFront can't be created in a private zone.

\n\t\t\t\t\t
\n\t\t\t\t
\n
Elastic Beanstalk environment
\n
\n\t\t\t\t\t

Specify the hosted zone ID for the region that you created the environment in. The environment \n\t\t\t\t\t\tmust have a regionalized subdomain. For a list of regions and the corresponding hosted zone IDs, see \n\t\t\t\t\t Elastic Beanstalk endpoints and quotas in the \n\t\t\t\t\t\t the Amazon Web Services General Reference.

\n\t\t\t\t
\n
ELB load balancer
\n
\n\t\t\t\t\t

Specify the value of the hosted zone ID for the load balancer. Use the following methods to get the \n\t\t\t\t\t\thosted zone ID:

\n\t\t\t\t\t \n\t\t\t\t
\n
Global Accelerator accelerator
\n
\n

Specify Z2BJ6XQ5FK7U4H.

\n
\n
An Amazon S3 bucket configured as a static website
\n
\n\t\t\t\t\t

Specify the hosted zone ID for the region that you created the bucket in. For more information about \n\t\t\t\t\t\tvalid values, see the table \n\t\t\t\t\t\tAmazon S3 Website Endpoints \n\t\t\t\t\t\tin the Amazon Web Services General Reference.

\n\t\t\t\t
\n
Another Route 53 resource record set in your hosted zone
\n
\n\t\t\t\t\t

Specify the hosted zone ID of your hosted zone. (An alias resource record set\n\t\t\t\t\t\tcan't reference a resource record set in a different hosted zone.)

\n\t\t\t\t
\n
", + "smithy.api#documentation": "

\n Alias resource records sets only: The value used depends on where you want to route traffic:

\n\t\t
\n
Amazon API Gateway custom regional APIs and edge-optimized APIs
\n
\n

Specify the hosted zone ID for your API. You can get the applicable value using the AWS CLI command \n\t\t\t\t\tget-domain-names:

\n\t\t\t\t\t \n\t\t\t\t
\n
Amazon Virtual Private Cloud interface VPC endpoint
\n
\n

Specify the hosted zone ID for your interface endpoint. You can get the value of HostedZoneId \n\t\t\t\t\tusing the AWS CLI command \n\t\t\t\t\tdescribe-vpc-endpoints.

\n\t\t\t\t
\n
CloudFront distribution
\n
\n\t\t\t\t\t

Specify Z2FDTNDATAQYW2.

\n\t\t\t\t\t \n\t\t\t\t\t\t

Alias resource record sets for CloudFront can't be created in a private zone.

\n\t\t\t\t\t
\n\t\t\t\t
\n
Elastic Beanstalk environment
\n
\n\t\t\t\t\t

Specify the hosted zone ID for the region that you created the environment in. The environment \n\t\t\t\t\t\tmust have a regionalized subdomain. For a list of regions and the corresponding hosted zone IDs, see \n\t\t\t\t\t AWS Elastic Beanstalk endpoints and quotas in the \n\t\t\t\t\t\t the Amazon Web Services General Reference.

\n\t\t\t\t
\n
ELB load balancer
\n
\n\t\t\t\t\t

Specify the value of the hosted zone ID for the load balancer. Use the following methods to get the \n\t\t\t\t\t\thosted zone ID:

\n\t\t\t\t\t \n\t\t\t\t
\n
AWS Global Accelerator accelerator
\n
\n

Specify Z2BJ6XQ5FK7U4H.

\n
\n
An Amazon S3 bucket configured as a static website
\n
\n\t\t\t\t\t

Specify the hosted zone ID for the region that you created the bucket in. For more information about \n\t\t\t\t\t\tvalid values, see the table \n\t\t\t\t\t\tAmazon S3 Website Endpoints \n\t\t\t\t\t\tin the Amazon Web Services General Reference.

\n\t\t\t\t
\n
Another Route 53 resource record set in your hosted zone
\n
\n\t\t\t\t\t

Specify the hosted zone ID of your hosted zone. (An alias resource record set\n\t\t\t\t\t\tcan't reference a resource record set in a different hosted zone.)

\n\t\t\t\t
\n
", "smithy.api#required": {} } }, "DNSName": { "target": "com.amazonaws.route53#DNSName", "traits": { - "smithy.api#documentation": "

\n Alias resource record sets only: The value that you specify depends on where you want to route queries:

\n\t\t
\n
Amazon API Gateway custom regional APIs and edge-optimized APIs
\n
\n

Specify the applicable domain name for your API. You can get the applicable value using the CLI command \n\t\t\t\t\tget-domain-names:

\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t

The name of the record that you're creating must match a custom domain name for your API, such as \n\t\t\t\t\t\t\tapi.example.com.

\n\t\t\t\t\t
\n\t\t\t\t
\n
Amazon Virtual Private Cloud interface VPC endpoint
\n
\n

Enter the API endpoint for the interface endpoint, such as \n\t\t\t\t\tvpce-123456789abcdef01-example-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com. For edge-optimized APIs, \n\t\t\t\t\tthis is the domain name for the corresponding CloudFront distribution. You can get the value of DnsName using the CLI command \n\t\t\t\t\tdescribe-vpc-endpoints.

\n\t\t\t\t
\n
CloudFront distribution
\n
\n

Specify the domain name that CloudFront assigned when you created your distribution.

\n\t\t\t\t\t

Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. \n\t\t\t\t\t\tFor example, if the name of the resource record set is acme.example.com, your CloudFront distribution must \n\t\t\t\t\t\tinclude acme.example.com as one of the alternate domain names. For more information, see \n\t\t\t\t\t\tUsing Alternate Domain Names (CNAMEs) in the \n\t\t\t\t\t\tAmazon CloudFront Developer Guide.

\n\t\t\t\t\t

You can't create a resource record set in a private hosted zone to route traffic to a CloudFront distribution.

\n\t\t\t\t\t \n

For failover alias records, you can't specify a CloudFront distribution for both the primary and secondary records. \n\t\t\t\t\t\tA distribution must include an alternate domain name that matches the name of the record. However, the primary and secondary records \n\t\t\t\t\t\thave the same name, and you can't include the same alternate domain name in more than one distribution.

\n
\n\t\t\t\t
\n
Elastic Beanstalk environment
\n
\n\t\t\t\t\t

If the domain name for your Elastic Beanstalk environment includes the region that you deployed the environment in, \n\t\t\t\t\t\tyou can create an alias record that routes traffic to the environment. For example, the domain name \n\t\t\t\t\t\tmy-environment.us-west-2.elasticbeanstalk.com is a regionalized domain name.

\n\t\t\t\t\t \n\t\t\t\t\t\t

For environments that were created before early 2016, the domain name doesn't include the region. To route traffic \n\t\t\t\t\t\t\tto these environments, you must create a CNAME record instead of an alias record. Note that you can't create a \n\t\t\t\t\t\t\tCNAME record for the root domain name. For example, if your domain name is example.com, you can create a record \n\t\t\t\t\t\t\tthat routes traffic for acme.example.com to your Elastic Beanstalk environment, but you can't create a record \n\t\t\t\t\t\t\tthat routes traffic for example.com to your Elastic Beanstalk environment.

\n\t\t\t\t\t
\n\t\t\t\t\t

For Elastic Beanstalk environments that have regionalized subdomains, specify the CNAME attribute for the environment. \n\t\t\t\t\t\tYou can use the following methods to get the value of the CNAME attribute:

\n\t\t\t\t\t \n\t\t\t\t
\n
ELB load balancer
\n
\n

Specify the DNS name that is associated with the load balancer. Get the DNS name by using the Management Console, \n\t\t\t\t\tthe ELB API, or the CLI.

\n\t\t\t\t\t \n\t\t\t\t
\n
Global Accelerator accelerator
\n
\n

Specify the DNS name for your accelerator:

\n\t\t\t\t\t \n\t\t\t\t
\n
Amazon S3 bucket that is configured as a static website
\n
\n

Specify the domain name of the Amazon S3 website endpoint that you created the bucket in, for example, \n\t\t\t\t\ts3-website.us-east-2.amazonaws.com. For more information about valid values, see the table \n\t\t\t\t\tAmazon S3 Website Endpoints \n\t\t\t\t\tin the Amazon Web Services General Reference. For more information about using S3 buckets for websites, \n\t\t\t\t\tsee Getting Started with Amazon Route 53 \n\t\t\t\t\tin the Amazon Route 53 Developer Guide.\n

\n
\n
Another Route 53 resource record set
\n
\n

Specify the value of the Name element for a resource record set in the current hosted zone.

\n\t\t\t\t\t \n

If you're creating an alias record that has the same name as the hosted zone (known as the zone apex), \n\t\t\t\t\t\tyou can't specify the domain name for a record for which the value of Type is CNAME. This is because \n\t\t\t\t\t\tthe alias record must have the same type as the record that you're routing traffic to, and creating a CNAME record for the \n\t\t\t\t\t\tzone apex isn't supported even for an alias record.

\n
\n\t\t\t\t
\n
", + "smithy.api#documentation": "

\n Alias resource record sets only: The value that you specify depends on where you want to route queries:

\n\t\t
\n
Amazon API Gateway custom regional APIs and edge-optimized APIs
\n
\n

Specify the applicable domain name for your API. You can get the applicable value using the AWS CLI command \n\t\t\t\t\tget-domain-names:

\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t

The name of the record that you're creating must match a custom domain name for your API, such as \n\t\t\t\t\t\t\tapi.example.com.

\n\t\t\t\t\t
\n\t\t\t\t
\n
Amazon Virtual Private Cloud interface VPC endpoint
\n
\n

Enter the API endpoint for the interface endpoint, such as \n\t\t\t\t\tvpce-123456789abcdef01-example-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com. For edge-optimized APIs, \n\t\t\t\t\tthis is the domain name for the corresponding CloudFront distribution. You can get the value of DnsName using the AWS CLI command \n\t\t\t\t\tdescribe-vpc-endpoints.

\n\t\t\t\t
\n
CloudFront distribution
\n
\n

Specify the domain name that CloudFront assigned when you created your distribution.

\n\t\t\t\t\t

Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. \n\t\t\t\t\t\tFor example, if the name of the resource record set is acme.example.com, your CloudFront distribution must \n\t\t\t\t\t\tinclude acme.example.com as one of the alternate domain names. For more information, see \n\t\t\t\t\t\tUsing Alternate Domain Names (CNAMEs) in the \n\t\t\t\t\t\tAmazon CloudFront Developer Guide.

\n\t\t\t\t\t

You can't create a resource record set in a private hosted zone to route traffic to a CloudFront distribution.

\n\t\t\t\t\t \n

For failover alias records, you can't specify a CloudFront distribution for both the primary and secondary records. \n\t\t\t\t\t\tA distribution must include an alternate domain name that matches the name of the record. However, the primary and secondary records \n\t\t\t\t\t\thave the same name, and you can't include the same alternate domain name in more than one distribution.

\n
\n\t\t\t\t
\n
Elastic Beanstalk environment
\n
\n\t\t\t\t\t

If the domain name for your Elastic Beanstalk environment includes the region that you deployed the environment in, \n\t\t\t\t\t\tyou can create an alias record that routes traffic to the environment. For example, the domain name \n\t\t\t\t\t\tmy-environment.us-west-2.elasticbeanstalk.com is a regionalized domain name.

\n\t\t\t\t\t \n\t\t\t\t\t\t

For environments that were created before early 2016, the domain name doesn't include the region. To route traffic \n\t\t\t\t\t\t\tto these environments, you must create a CNAME record instead of an alias record. Note that you can't create a \n\t\t\t\t\t\t\tCNAME record for the root domain name. For example, if your domain name is example.com, you can create a record \n\t\t\t\t\t\t\tthat routes traffic for acme.example.com to your Elastic Beanstalk environment, but you can't create a record \n\t\t\t\t\t\t\tthat routes traffic for example.com to your Elastic Beanstalk environment.

\n\t\t\t\t\t
\n\t\t\t\t\t

For Elastic Beanstalk environments that have regionalized subdomains, specify the CNAME attribute for the environment. \n\t\t\t\t\t\tYou can use the following methods to get the value of the CNAME attribute:

\n\t\t\t\t\t \n\t\t\t\t
\n
ELB load balancer
\n
\n

Specify the DNS name that is associated with the load balancer. Get the DNS name by using the AWS Management Console, \n\t\t\t\t\tthe ELB API, or the AWS CLI.

\n\t\t\t\t\t \n\t\t\t\t
\n
AWS Global Accelerator accelerator
\n
\n

Specify the DNS name for your accelerator:

\n\t\t\t\t\t \n\t\t\t\t
\n
Amazon S3 bucket that is configured as a static website
\n
\n

Specify the domain name of the Amazon S3 website endpoint that you created the bucket in, for example, \n\t\t\t\t\ts3-website.us-east-2.amazonaws.com. For more information about valid values, see the table \n\t\t\t\t\tAmazon S3 Website Endpoints \n\t\t\t\t\tin the Amazon Web Services General Reference. For more information about using S3 buckets for websites, \n\t\t\t\t\tsee Getting Started with Amazon Route 53 \n\t\t\t\t\tin the Amazon Route 53 Developer Guide.\n

\n
\n
Another Route 53 resource record set
\n
\n

Specify the value of the Name element for a resource record set in the current hosted zone.

\n\t\t\t\t\t \n

If you're creating an alias record that has the same name as the hosted zone (known as the zone apex), \n\t\t\t\t\t\tyou can't specify the domain name for a record for which the value of Type is CNAME. This is because \n\t\t\t\t\t\tthe alias record must have the same type as the record that you're routing traffic to, and creating a CNAME record for the \n\t\t\t\t\t\tzone apex isn't supported even for an alias record.

\n
\n\t\t\t\t
\n
", "smithy.api#required": {} } }, "EvaluateTargetHealth": { "target": "com.amazonaws.route53#AliasHealthEnabled", "traits": { - "smithy.api#documentation": "

\n Applies only to alias, failover alias, geolocation alias, latency alias, and weighted alias resource record sets: \n\t\t\tWhen EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced Amazon Web Services resource, \n\t\t\tsuch as an ELB load balancer or another resource record set in the hosted zone.

\n\t\t

Note the following:

\n\n\t\t
\n
CloudFront distributions
\n
\n

You can't set EvaluateTargetHealth to true when the alias target is a \n\t\t\t\t\tCloudFront distribution.

\n
\n
Elastic Beanstalk environments that have regionalized subdomains
\n
\n

If you specify an Elastic Beanstalk environment in DNSName and the environment contains an ELB load balancer, \n\t\t\t\t\tElastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. (An environment automatically \n\t\t\t\t\tcontains an ELB load balancer if it includes more than one Amazon EC2 instance.) If you set EvaluateTargetHealth to \n\t\t\t\t\ttrue and either no Amazon EC2 instances are healthy or the load balancer itself is unhealthy, \n\t\t\t\t\tRoute 53 routes queries to other available resources that are healthy, if any.

\n\t\t\t\t\t

If the environment contains a single Amazon EC2 instance, there are no special requirements.

\n
\n
ELB load balancers
\n
\n

Health checking behavior depends on the type of load balancer:

\n\t\t\t\t\t \n\t\t\t\t\t \n

When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they're not Route 53 health checks, but \n\t\t\t\t\t\tthey perform a similar function. Do not create Route 53 health checks for the EC2 instances that you register with an ELB load balancer.

\n
\n\t\t\t\t
\n
S3 buckets
\n
\n

There are no special requirements for setting EvaluateTargetHealth to true \n\t\t\t\t\twhen the alias target is an S3 bucket.

\n
\n
Other records in the same hosted zone
\n
\n

If the Amazon Web Services resource that you specify in DNSName is a record or a group of records \n\t\t\t\t\t(for example, a group of weighted records) but is not another alias record, we recommend that you associate a health check \n\t\t\t\t\twith all of the records in the alias target. For more information, see \n\t\t\t\t\tWhat Happens When You Omit Health Checks? \n\t\t\t\t\tin the Amazon Route 53 Developer Guide.

\n
\n
\n\t\t\n\t\t

For more information and examples, see \n\t\t\tAmazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

", + "smithy.api#documentation": "

\n Applies only to alias, failover alias, geolocation alias, latency alias, and weighted alias resource record sets: \n\t\t\tWhen EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, \n\t\t\tsuch as an ELB load balancer or another resource record set in the hosted zone.

\n\t\t

Note the following:

\n\n\t\t
\n
CloudFront distributions
\n
\n

You can't set EvaluateTargetHealth to true when the alias target is a \n\t\t\t\t\tCloudFront distribution.

\n
\n
Elastic Beanstalk environments that have regionalized subdomains
\n
\n

If you specify an Elastic Beanstalk environment in DNSName and the environment contains an ELB load balancer, \n\t\t\t\t\tElastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. (An environment automatically \n\t\t\t\t\tcontains an ELB load balancer if it includes more than one Amazon EC2 instance.) If you set EvaluateTargetHealth to \n\t\t\t\t\ttrue and either no Amazon EC2 instances are healthy or the load balancer itself is unhealthy, \n\t\t\t\t\tRoute 53 routes queries to other available resources that are healthy, if any.

\n\t\t\t\t\t

If the environment contains a single Amazon EC2 instance, there are no special requirements.

\n
\n
ELB load balancers
\n
\n

Health checking behavior depends on the type of load balancer:

\n\t\t\t\t\t \n\t\t\t\t\t \n

When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they're not Route 53 health checks, but \n\t\t\t\t\t\tthey perform a similar function. Do not create Route 53 health checks for the EC2 instances that you register with an ELB load balancer.

\n
\n\t\t\t\t
\n
S3 buckets
\n
\n

There are no special requirements for setting EvaluateTargetHealth to true \n\t\t\t\t\twhen the alias target is an S3 bucket.

\n
\n
Other records in the same hosted zone
\n
\n

If the AWS resource that you specify in DNSName is a record or a group of records \n\t\t\t\t\t(for example, a group of weighted records) but is not another alias record, we recommend that you associate a health check \n\t\t\t\t\twith all of the records in the alias target. For more information, see \n\t\t\t\t\tWhat Happens When You Omit Health Checks? \n\t\t\t\t\tin the Amazon Route 53 Developer Guide.

\n
\n
\n\t\t\n\t\t

For more information and examples, see \n\t\t\tAmazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

\n Alias resource record sets only: Information about the Amazon Web Services resource, such as a CloudFront distribution or \n\t\t\tan Amazon S3 bucket, that you want to route traffic to.

\n\t\t

When creating resource record sets for a private hosted zone, note the following:

\n\t\t " + "smithy.api#documentation": "

\n Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or \n\t\t\tan Amazon S3 bucket, that you want to route traffic to.

\n\t\t

When creating resource record sets for a private hosted zone, note the following:

\n\t\t " } }, "com.amazonaws.route53#AssociateVPCComment": { @@ -467,7 +464,7 @@ } ], "traits": { - "smithy.api#documentation": "

Associates an Amazon VPC with a private hosted zone.

\n\t\t \n

To perform the association, the VPC and the private hosted zone must already exist. \n\t\t\tYou can't convert a public hosted zone into a private hosted zone.

\n
\n\t\t \n

If you want to associate a VPC that was created by using one account with a private hosted zone that was created \n\t\t\tby using a different account, the account that created the private hosted zone must first submit a \n\t\t\tCreateVPCAssociationAuthorization request. Then the account that created the VPC must submit an \n\t\t\tAssociateVPCWithHostedZone request.

\n
", + "smithy.api#documentation": "

Associates an Amazon VPC with a private hosted zone.

\n\t\t \n

To perform the association, the VPC and the private hosted zone must already exist. \n\t\t\tYou can't convert a public hosted zone into a private hosted zone.

\n
\n\t\t \n

If you want to associate a VPC that was created by using one AWS account with a private hosted zone that was created \n\t\t\tby using a different account, the AWS account that created the private hosted zone must first submit a \n\t\t\tCreateVPCAssociationAuthorization request. Then the account that created the VPC must submit an \n\t\t\tAssociateVPCWithHostedZone request.

\n
", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/associatevpc", @@ -587,7 +584,7 @@ "Id": { "target": "com.amazonaws.route53#ResourceId", "traits": { - "smithy.api#documentation": "

This element contains an ID that you use when performing a \n\t\t\tGetChange \n\t\t\taction to get detailed information about the change.

", + "smithy.api#documentation": "

The ID of the request.

", "smithy.api#required": {} } }, @@ -608,7 +605,7 @@ "Comment": { "target": "com.amazonaws.route53#ResourceDescription", "traits": { - "smithy.api#documentation": "

A comment you can provide.

" + "smithy.api#documentation": "

A complex type that describes change information about changes made to your hosted\n\t\t\tzone.

\n\t\t

This element contains an ID that you use when performing a \n\t\t\tGetChange \n\t\t\taction to get detailed information about the change.

" } } }, @@ -642,7 +639,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates, changes, or deletes a resource record set, which contains authoritative DNS information for a specified \n\t\t\tdomain name or subdomain name. For example, you can use ChangeResourceRecordSets to create a resource record set that \n\t\t\troutes traffic for test.example.com to a web server that has an IP address of 192.0.2.44.

\n\t\t\n\t\t

\n Deleting Resource Record Sets\n

\n\t\t

To delete a resource record set, you must specify all the same values that you specified when you created it.

\n\n\t\t

\n Change Batches and Transactional Changes\n

\n\t\t

The request body must include a document with a ChangeResourceRecordSetsRequest element. \n\t\t\tThe request body contains a list of change items, known as a change batch. Change batches are considered transactional changes.\n\t\t\tRoute 53 validates the changes in the request and then either makes all or none of the changes in the change batch request. \n\t\t\tThis ensures that DNS routing isn't adversely affected by partial changes to the resource record sets in a hosted zone.

\n\t\t

For example, suppose a change batch request contains two changes: it deletes the CNAME resource record set for www.example.com and \n\t\t\tcreates an alias resource record set for www.example.com. If validation for both records succeeds, Route 53 deletes the first resource record set and \n\t\t\tcreates the second resource record set in a single operation. If validation for either the DELETE or the CREATE action fails, \n\t\t\tthen the request is canceled, and the original CNAME record continues to exist.

\n\t\t \n\t\t\t

If you try to delete the same resource record set more than once in a single change batch, Route 53 returns an InvalidChangeBatch error.

\n\t\t
\n\t\t\n\t\t

\n Traffic Flow\n

\n\t\t

To create resource record sets for complex routing configurations, use either the traffic flow visual editor in the \n\t\t\tRoute 53 console or the API actions for traffic policies and traffic policy instances. Save the configuration as a traffic policy, \n\t\t\tthen associate the traffic policy with one or more domain names (such as example.com) or subdomain names (such as www.example.com), \n\t\t\tin the same hosted zone or in multiple hosted zones. You can roll back the updates if the new configuration isn't performing \n\t\t\tas expected. For more information, see Using Traffic Flow to Route DNS Traffic \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t\n\t\t

\n Create, Delete, and Upsert\n

\n\t\t

Use ChangeResourceRecordsSetsRequest to perform the following actions:

\n\t\t\t \n\t\t\n\t\t

\n Syntaxes for Creating, Updating, and Deleting Resource Record Sets\n

\n\t\t

The syntax for a request depends on the type of resource record set that you want to create, delete, or update, such as \n\t\t\tweighted, alias, or failover. The XML elements in your request must appear in the order listed in the syntax.

\n\n\t\t\n\t\t

For an example for each type of resource record set, see \"Examples.\"

\n\t\t\n\t\t\n\t\t

Don't refer to the syntax in the \"Parameter Syntax\" section, which includes all of the elements for every kind of \n\t\t\tresource record set that you can create, delete, or update by using ChangeResourceRecordSets.

\n\t\t\n\t\t

\n Change Propagation to Route 53 DNS Servers\n

\n\t\t

When you submit a ChangeResourceRecordSets request, Route 53 propagates your changes to all of the \n\t\t\tRoute 53 authoritative DNS servers. While your changes are propagating, GetChange returns a status of \n\t\t\tPENDING. When propagation is complete, GetChange returns a status of INSYNC. \n\t\t\tChanges generally propagate to all Route 53 name servers within 60 seconds. For more information, see \n\t\t\tGetChange.

\n\n\t\t

\n Limits on ChangeResourceRecordSets Requests\n

\n\t\t

For information about the limits on a ChangeResourceRecordSets request, see \n\t\t\tLimits in the \n\t\t\tAmazon Route 53 Developer Guide.

", + "smithy.api#documentation": "

Creates, changes, or deletes a resource record set, which contains authoritative DNS information for a specified \n\t\t\tdomain name or subdomain name. For example, you can use ChangeResourceRecordSets to create a resource record set that \n\t\t\troutes traffic for test.example.com to a web server that has an IP address of 192.0.2.44.

\n\t\t\n\t\t

\n Deleting Resource Record Sets\n

\n\t\t

To delete a resource record set, you must specify all the same values that you specified when you created it.

\n\n\t\t

\n Change Batches and Transactional Changes\n

\n\t\t

The request body must include a document with a ChangeResourceRecordSetsRequest element. \n\t\t\tThe request body contains a list of change items, known as a change batch. Change batches are considered transactional changes.\n\t\t\tRoute 53 validates the changes in the request and then either makes all or none of the changes in the change batch request. \n\t\t\tThis ensures that DNS routing isn't adversely affected by partial changes to the resource record sets in a hosted zone.

\n\t\t

For example, suppose a change batch request contains two changes: it deletes the CNAME resource record set for www.example.com and \n\t\t\tcreates an alias resource record set for www.example.com. If validation for both records succeeds, Route 53 deletes the first resource record set and \n\t\t\tcreates the second resource record set in a single operation. If validation for either the DELETE or the CREATE action fails, \n\t\t\tthen the request is canceled, and the original CNAME record continues to exist.

\n\t\t \n\t\t\t

If you try to delete the same resource record set more than once in a single change batch, Route 53 returns an InvalidChangeBatch error.

\n\t\t
\n\t\t\n\t\t

\n Traffic Flow\n

\n\t\t

To create resource record sets for complex routing configurations, use either the traffic flow visual editor in the \n\t\t\tRoute 53 console or the API actions for traffic policies and traffic policy instances. Save the configuration as a traffic policy, \n\t\t\tthen associate the traffic policy with one or more domain names (such as example.com) or subdomain names (such as www.example.com), \n\t\t\tin the same hosted zone or in multiple hosted zones. You can roll back the updates if the new configuration isn't performing \n\t\t\tas expected. For more information, see Using Traffic Flow to Route DNS Traffic \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t\n\t\t

\n Create, Delete, and Upsert\n

\n\t\t

Use ChangeResourceRecordsSetsRequest to perform the following actions:

\n\t\t\t \n\t\t\n\t\t

\n Syntaxes for Creating, Updating, and Deleting Resource Record Sets\n

\n\t\t

The syntax for a request depends on the type of resource record set that you want to create, delete, or update, such as \n\t\t\tweighted, alias, or failover. The XML elements in your request must appear in the order listed in the syntax.

\n\n\t\t\n\t\t

For an example for each type of resource record set, see \"Examples.\"

\n\t\t\n\t\t\n\t\t

Don't refer to the syntax in the \"Parameter Syntax\" section, which includes all of the elements for every kind of \n\t\t\tresource record set that you can create, delete, or update by using ChangeResourceRecordSets.

\n\t\t\n\t\t

\n Change Propagation to Route 53 DNS Servers\n

\n\t\t

When you submit a ChangeResourceRecordSets request, Route 53 propagates your changes to all of the \n\t\t\tRoute 53 authoritative DNS servers. While your changes are propagating, GetChange returns a status of \n\t\t\tPENDING. When propagation is complete, GetChange returns a status of INSYNC. \n\t\t\tChanges generally propagate to all Route 53 name servers within 60 seconds. For more information, see \n\t\t\tGetChange.

\n\n\t\t

\n Limits on ChangeResourceRecordSets Requests\n

\n\t\t

For information about the limits on a ChangeResourceRecordSets request, see \n\t\t\tLimits in the \n\t\t\tAmazon Route 53 Developer Guide.

", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/rrset", @@ -729,7 +726,7 @@ } ], "traits": { - "smithy.api#documentation": "

Adds, edits, or deletes tags for a health check or a hosted zone.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the Billing and Cost Management User Guide.

", + "smithy.api#documentation": "

Adds, edits, or deletes tags for a health check or a hosted zone.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the AWS Billing and Cost Management User Guide.

", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/tags/{ResourceType}/{ResourceId}", @@ -1338,7 +1335,7 @@ "KeyManagementServiceArn": { "target": "com.amazonaws.route53#SigningKeyString", "traits": { - "smithy.api#documentation": "

The Amazon resource name (ARN) for a customer managed customer master key (CMK) in Key Management Service (KMS).\n\t\t\tThe KeyManagementServiceArn must be unique for each key-signing key (KSK) in a single hosted zone. \n\t\t\tTo see an example of KeyManagementServiceArn that grants the correct permissions for DNSSEC, \n\t\t\tscroll down to Example.

\n\t\t

You must configure the customer managed CMK as follows:

\n\t\t
\n
Status
\n
\n

Enabled

\n
\n
Key spec
\n
\n

ECC_NIST_P256

\n
\n
Key usage
\n
\n

Sign and verify

\n
\n
Key policy
\n
\n

The key policy must give permission for the following actions:

\n\t\t\t\t\t \n\t\t\t\t\t

The key policy must also include the Amazon Route 53 service in the principal for your account. \n\t\t\t\t\t\tSpecify the following:

\n\t\t\t\t\t \n\t\t\t\t
\n
\n\t\t

For more information about working with a customer managed CMK in KMS, see \n\t\t\tKey Management Service concepts.

", + "smithy.api#documentation": "

The Amazon resource name (ARN) for a customer managed customer master key (CMK) in AWS Key Management Service (AWS KMS).\n\t\t\tThe KeyManagementServiceArn must be unique for each key-signing key (KSK) in a single hosted zone. \n\t\t\tTo see an example of KeyManagementServiceArn that grants the correct permissions for DNSSEC, \n\t\t\tscroll down to Example.

\n\t\t

You must configure the customer managed CMK as follows:

\n\t\t
\n
Status
\n
\n

Enabled

\n
\n
Key spec
\n
\n

ECC_NIST_P256

\n
\n
Key usage
\n
\n

Sign and verify

\n
\n
Key policy
\n
\n

The key policy must give permission for the following actions:

\n\t\t\t\t\t \n\t\t\t\t\t

The key policy must also include the Amazon Route 53 service in the principal for your account. \n\t\t\t\t\t\tSpecify the following:

\n\t\t\t\t\t \n\t\t\t\t
\n
\n\t\t

For more information about working with a customer managed CMK in AWS KMS, see \n\t\t\tAWS Key Management Service concepts.

", "smithy.api#required": {} } }, @@ -1413,7 +1410,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish \n\t\t\tlog data to an Amazon CloudWatch Logs log group.

\n\t\t

DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:

\n\t\t \n\t\t\n\t\t
\n
Log Group and Resource Policy
\n
\n

Before you create a query logging configuration, perform the following operations.

\n\t\t\t\t\t \n

If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically.

\n
\n\t\t\t\t\t
    \n
  1. \n

    Create a CloudWatch Logs log group, and make note of the ARN, which you specify when you create a \n\t\t\t\t\t\t\tquery logging configuration. Note the following:

    \n\t\t\t\t\t\t\t
      \n
    • \n

      You must create the log group in the us-east-1 region.

      \n
    • \n
    • \n

      You must use the same account to create the log group and the hosted zone that you want to \n\t\t\t\t\t\t\t\t\tconfigure query logging for.

      \n
    • \n
    • \n

      When you create log groups for query logging, we recommend that you use a consistent prefix, for example:

      \n\t\t\t\t\t\t\t\t\t

      \n /aws/route53/hosted zone name\n \n

      \n\t\t\t\t\t\t\t\t\t

      In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated \n\t\t\t\t\t\t\t\t\t\tAmazon Web Services resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so \n\t\t\t\t\t\t\t\t\t\twe recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create \n\t\t\t\t\t\t\t\t\t\tfor query logging.

      \n\t\t\t\t\t\t\t\t
    • \n
    \n\t\t\t\t\t\t
  2. \n
  3. \n

    Create a CloudWatch Logs resource policy, and give it the permissions that Route 53 needs to create log streams and to \n\t\t\t\t\t\t\tsend query logs to log streams. For the value of Resource, specify the ARN for the log group that you created \n\t\t\t\t\t\t\tin the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, \n\t\t\t\t\t\t\treplace the hosted zone name with *, for example:

    \n\t\t\t\t\t\t\t

    \n arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*\n

    \n\t\t\t\t\t\t\t \n

    You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the Amazon Web Services SDKs, \n\t\t\t\t\t\t\t\tor the CLI.

    \n
    \n\t\t\t\t\t\t
  4. \n
\n\t\t\t\t
\n
Log Streams and Edge Locations
\n
\n

When Route 53 finishes creating the configuration for DNS query logging, it does the following:

\n\t\t\t\t\t \n\t\t\t\t\t

The name of each log stream is in the following format:

\n\t\t\t\t\t

\n \n hosted zone ID/edge location code\n \n

\n\t\t\t\t\t

The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code \n\t\t\t\t\t\ttypically corresponds with the International Air Transport Association airport code for an airport near the edge location. \n\t\t\t\t\t\t(These abbreviations might change in the future.) For a list of edge locations, see \"The Route 53 Global Network\" on the \n\t\t\t\t\t\tRoute 53 Product Details page.

\n\t\t\t\t
\n
Queries That Are Logged
\n
\n

Query logs contain only the queries that DNS resolvers forward to Route 53. If a DNS resolver has already cached \n\t\t\t\t\tthe response to a query (such as the IP address for a load balancer for example.com), the resolver will continue to return \n\t\t\t\t\tthe cached response. It doesn't forward another query to Route 53 until the TTL for the corresponding resource record set expires. \n\t\t\t\t\tDepending on how many DNS queries are submitted for a resource record set, and depending on the TTL for that resource record set, \n\t\t\t\t\tquery logs might contain information about only one query out of every several thousand queries that are submitted to DNS. \n\t\t\t\t\tFor more information about how DNS works, see \n\t\t\t\t\tRouting Internet Traffic to Your Website or Web Application\n\t\t\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t\t\t
\n
Log File Format
\n
\n

For a list of the values in each query log and the format of each value, see \n\t\t\t\t\tLogging DNS Queries in the \n\t\t\t\t\tAmazon Route 53 Developer Guide.

\n\t\t\t\t
\n
Pricing
\n
\n

For information about charges for query logs, see \n\t\t\t\t\tAmazon CloudWatch Pricing.

\n
\n
How to Stop Logging
\n
\n

If you want Route 53 to stop sending query logs to CloudWatch Logs, delete the query logging configuration. For more information, see \n\t\t\t\t\tDeleteQueryLoggingConfig.

\n\t\t\t\t
\n
", + "smithy.api#documentation": "

Creates a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish \n\t\t\tlog data to an Amazon CloudWatch Logs log group.

\n\t\t

DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:

\n\t\t \n\t\t\n\t\t
\n
Log Group and Resource Policy
\n
\n

Before you create a query logging configuration, perform the following operations.

\n\t\t\t\t\t \n

If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically.

\n
\n\t\t\t\t\t
    \n
  1. \n

    Create a CloudWatch Logs log group, and make note of the ARN, which you specify when you create a \n\t\t\t\t\t\t\tquery logging configuration. Note the following:

    \n\t\t\t\t\t\t\t
      \n
    • \n

      You must create the log group in the us-east-1 region.

      \n
    • \n
    • \n

      You must use the same AWS account to create the log group and the hosted zone that you want to \n\t\t\t\t\t\t\t\t\tconfigure query logging for.

      \n
    • \n
    • \n

      When you create log groups for query logging, we recommend that you use a consistent prefix, for example:

      \n\t\t\t\t\t\t\t\t\t

      \n /aws/route53/hosted zone name\n \n

      \n\t\t\t\t\t\t\t\t\t

      In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated \n\t\t\t\t\t\t\t\t\t\tAWS resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so \n\t\t\t\t\t\t\t\t\t\twe recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create \n\t\t\t\t\t\t\t\t\t\tfor query logging.

      \n\t\t\t\t\t\t\t\t
    • \n
    \n\t\t\t\t\t\t
  2. \n
  3. \n

    Create a CloudWatch Logs resource policy, and give it the permissions that Route 53 needs to create log streams and to \n\t\t\t\t\t\t\tsend query logs to log streams. For the value of Resource, specify the ARN for the log group that you created \n\t\t\t\t\t\t\tin the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, \n\t\t\t\t\t\t\treplace the hosted zone name with *, for example:

    \n\t\t\t\t\t\t\t

    \n arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*\n

    \n\t\t\t\t\t\t\t \n

    You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the AWS SDKs, \n\t\t\t\t\t\t\t\tor the AWS CLI.

    \n
    \n\t\t\t\t\t\t
  4. \n
\n\t\t\t\t
\n
Log Streams and Edge Locations
\n
\n

When Route 53 finishes creating the configuration for DNS query logging, it does the following:

\n\t\t\t\t\t \n\t\t\t\t\t

The name of each log stream is in the following format:

\n\t\t\t\t\t

\n \n hosted zone ID/edge location code\n \n

\n\t\t\t\t\t

The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code \n\t\t\t\t\t\ttypically corresponds with the International Air Transport Association airport code for an airport near the edge location. \n\t\t\t\t\t\t(These abbreviations might change in the future.) For a list of edge locations, see \"The Route 53 Global Network\" on the \n\t\t\t\t\t\tRoute 53 Product Details page.

\n\t\t\t\t
\n
Queries That Are Logged
\n
\n

Query logs contain only the queries that DNS resolvers forward to Route 53. If a DNS resolver has already cached \n\t\t\t\t\tthe response to a query (such as the IP address for a load balancer for example.com), the resolver will continue to return \n\t\t\t\t\tthe cached response. It doesn't forward another query to Route 53 until the TTL for the corresponding resource record set expires. \n\t\t\t\t\tDepending on how many DNS queries are submitted for a resource record set, and depending on the TTL for that resource record set, \n\t\t\t\t\tquery logs might contain information about only one query out of every several thousand queries that are submitted to DNS. \n\t\t\t\t\tFor more information about how DNS works, see \n\t\t\t\t\tRouting Internet Traffic to Your Website or Web Application\n\t\t\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t\t\t
\n
Log File Format
\n
\n

For a list of the values in each query log and the format of each value, see \n\t\t\t\t\tLogging DNS Queries in the \n\t\t\t\t\tAmazon Route 53 Developer Guide.

\n\t\t\t\t
\n
Pricing
\n
\n

For information about charges for query logs, see \n\t\t\t\t\tAmazon CloudWatch Pricing.

\n
\n
How to Stop Logging
\n
\n

If you want Route 53 to stop sending query logs to CloudWatch Logs, delete the query logging configuration. For more information, see \n\t\t\t\t\tDeleteQueryLoggingConfig.

\n\t\t\t\t
\n
", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/queryloggingconfig", @@ -1434,7 +1431,7 @@ "CloudWatchLogsLogGroupArn": { "target": "com.amazonaws.route53#CloudWatchLogsLogGroupArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the log group that you want to Amazon Route 53 to send query logs to. This is the format \n\t\t\tof the ARN:

\n\t\t\n\t\t

arn:aws:logs:region:account-id:log-group:log_group_name\n

\n\t\t\n\t\t

To get the ARN for a log group, you can use the CloudWatch console, the \n\t\t\tDescribeLogGroups API action, \n\t\t\tthe describe-log-groups command, \n\t\t\tor the applicable command in one of the Amazon Web Services SDKs.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the log group that you want to Amazon Route 53 to send query logs to. This is the format \n\t\t\tof the ARN:

\n\t\t\n\t\t

arn:aws:logs:region:account-id:log-group:log_group_name\n

\n\t\t\n\t\t

To get the ARN for a log group, you can use the CloudWatch console, the \n\t\t\tDescribeLogGroups API action, \n\t\t\tthe describe-log-groups command, \n\t\t\tor the applicable command in one of the AWS SDKs.

", "smithy.api#required": {} } } @@ -1492,7 +1489,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones that were created by \n\t\t\tthe same account.

\n\t\t

You can also create a reusable delegation set that uses the four name servers that are associated \n\t\t\twith an existing hosted zone. Specify the hosted zone ID in the CreateReusableDelegationSet request.

\n\t\t \n\t\t\t

You can't associate a reusable delegation set with a private hosted zone.

\n\t\t
\n\t\t

For information about using a reusable delegation set to configure white label name servers, see \n\t\t\tConfiguring White Label Name Servers.

\n\t\t\n\t\t

The process for migrating existing hosted zones to use a reusable delegation set is comparable to the process for \n\t\t\tconfiguring white label name servers. You need to perform the following steps:

\n\t\t
    \n
  1. \n

    Create a reusable delegation set.

    \n
  2. \n
  3. \n

    Recreate hosted zones, and reduce the TTL to 60 seconds or less.

    \n
  4. \n
  5. \n

    Recreate resource record sets in the new hosted zones.

    \n
  6. \n
  7. \n

    Change the registrar's name servers to use the name servers for the new hosted zones.

    \n
  8. \n
  9. \n

    Monitor traffic for the website or application.

    \n
  10. \n
  11. \n

    Change TTLs back to their original values.

    \n
  12. \n
\n\t\t\n\t\t

If you want to migrate existing hosted zones to use a reusable delegation set, the existing hosted zones can't use \n\t\t\tany of the name servers that are assigned to the reusable delegation set. If one or more hosted zones do use one or more \n\t\t\tname servers that are assigned to the reusable delegation set, you can do one of the following:

\n\t\t ", + "smithy.api#documentation": "

Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones that were created by \n\t\t\tthe same AWS account.

\n\t\t

You can also create a reusable delegation set that uses the four name servers that are associated \n\t\t\twith an existing hosted zone. Specify the hosted zone ID in the CreateReusableDelegationSet request.

\n\t\t \n\t\t\t

You can't associate a reusable delegation set with a private hosted zone.

\n\t\t
\n\t\t

For information about using a reusable delegation set to configure white label name servers, see \n\t\t\tConfiguring White Label Name Servers.

\n\t\t\n\t\t

The process for migrating existing hosted zones to use a reusable delegation set is comparable to the process for \n\t\t\tconfiguring white label name servers. You need to perform the following steps:

\n\t\t
    \n
  1. \n

    Create a reusable delegation set.

    \n
  2. \n
  3. \n

    Recreate hosted zones, and reduce the TTL to 60 seconds or less.

    \n
  4. \n
  5. \n

    Recreate resource record sets in the new hosted zones.

    \n
  6. \n
  7. \n

    Change the registrar's name servers to use the name servers for the new hosted zones.

    \n
  8. \n
  9. \n

    Monitor traffic for the website or application.

    \n
  10. \n
  11. \n

    Change TTLs back to their original values.

    \n
  12. \n
\n\t\t\n\t\t

If you want to migrate existing hosted zones to use a reusable delegation set, the existing hosted zones can't use \n\t\t\tany of the name servers that are assigned to the reusable delegation set. If one or more hosted zones do use one or more \n\t\t\tname servers that are assigned to the reusable delegation set, you can do one of the following:

\n\t\t ", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/delegationset", @@ -1832,7 +1829,7 @@ } ], "traits": { - "smithy.api#documentation": "

Authorizes the account that created a specified VPC to submit an AssociateVPCWithHostedZone \n\t\t\trequest to associate the VPC with a specified hosted zone that was created by a different account. \n\t\t\tTo submit a CreateVPCAssociationAuthorization request, you must use the account that created the \n\t\t\thosted zone. After you authorize the association, use the account that created the VPC to submit an \n\t\t\tAssociateVPCWithHostedZone request.

\n\t\t \n

If you want to associate multiple VPCs that you created by using one account with a hosted zone \n\t\t\tthat you created by using a different account, you must submit one authorization request for each VPC.

\n
", + "smithy.api#documentation": "

Authorizes the AWS account that created a specified VPC to submit an AssociateVPCWithHostedZone \n\t\t\trequest to associate the VPC with a specified hosted zone that was created by a different account. \n\t\t\tTo submit a CreateVPCAssociationAuthorization request, you must use the account that created the \n\t\t\thosted zone. After you authorize the association, use the account that created the VPC to submit an \n\t\t\tAssociateVPCWithHostedZone request.

\n\t\t \n

If you want to associate multiple VPCs that you created by using one account with a hosted zone \n\t\t\tthat you created by using a different account, you must submit one authorization request for each VPC.

\n
", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation", @@ -1942,9 +1939,6 @@ { "target": "com.amazonaws.route53#ConcurrentModification" }, - { - "target": "com.amazonaws.route53#InvalidInput" - }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -2147,7 +2141,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a health check.

\n\t\t \n\t\t\t

Amazon Route 53 does not prevent you from deleting a health check even if the health check is associated with one or more \n\t\t\t\tresource record sets. If you delete a health check and you don't update the associated resource record sets, the future status \n\t\t\t\tof the health check can't be predicted and may change. This will affect the routing of DNS queries for your DNS failover \n\t\t\t\tconfiguration. For more information, see \n\t\t\t\tReplacing and Deleting Health Checks \n\t\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t
\n\t\t\n\t\t

If you're using Cloud Map and you configured Cloud Map to create a Route 53 health check when you register an instance, \n\t\t\tyou can't use the Route 53 DeleteHealthCheck command to delete the health check. The health check is deleted \n\t\t\tautomatically when you deregister the instance; there can be a delay of several hours before the health check is deleted \n\t\t\tfrom Route 53.

", + "smithy.api#documentation": "

Deletes a health check.

\n\t\t \n\t\t\t

Amazon Route 53 does not prevent you from deleting a health check even if the health check is associated with one or more \n\t\t\t\tresource record sets. If you delete a health check and you don't update the associated resource record sets, the future status \n\t\t\t\tof the health check can't be predicted and may change. This will affect the routing of DNS queries for your DNS failover \n\t\t\t\tconfiguration. For more information, see \n\t\t\t\tReplacing and Deleting Health Checks \n\t\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t
\n\t\t\n\t\t

If you're using AWS Cloud Map and you configured Cloud Map to create a Route 53 health check when you register an instance, \n\t\t\tyou can't use the Route 53 DeleteHealthCheck command to delete the health check. The health check is deleted \n\t\t\tautomatically when you deregister the instance; there can be a delay of several hours before the health check is deleted \n\t\t\tfrom Route 53.

", "smithy.api#http": { "method": "DELETE", "uri": "/2013-04-01/healthcheck/{HealthCheckId}", @@ -2204,7 +2198,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a hosted zone.

\n\t\t\n\t\t

If the hosted zone was created by another service, such as Cloud Map, see \n\t\t\tDeleting \n\t\t\tPublic Hosted Zones That Were Created by Another Service in the Amazon Route 53 Developer Guide for information about how to delete it. \n\t\t\t(The process is the same for public and private hosted zones that were created by another service.)

\n\t\t\n\t\t

If you want to keep your domain registration but you want to stop routing internet traffic to your website or web application, \n\t\t\twe recommend that you delete resource record sets in the hosted zone instead of deleting the hosted zone.

\n\t\t\n\t\t \n\t\t\t

If you delete a hosted zone, you can't undelete it. You must create a new hosted zone and update the name servers for your \n\t\t\t\tdomain registration, which can require up to 48 hours to take effect. (If you delegated responsibility for a subdomain to a hosted zone \n\t\t\t\tand you delete the child hosted zone, you must update the name servers in the parent hosted zone.) In addition, if you delete a hosted zone, \n\t\t\t\tsomeone could hijack the domain and route traffic to their own resources using your domain name.

\n\t\t
\n\t\t\n\t\t

If you want to avoid the monthly charge for the hosted zone, you can transfer DNS service for the domain to a free DNS service. \n\t\t\tWhen you transfer DNS service, you have to update the name servers for the domain registration. If the domain is registered with Route 53, \n\t\t\tsee UpdateDomainNameservers\n\t\t\tfor information about how to replace Route 53 name servers with name servers for the new DNS service. If the domain is registered with \n\t\t\tanother registrar, use the method provided by the registrar to update name servers for the domain registration. For more information, \n\t\t\tperform an internet search on \"free DNS service.\"

\n\n\t\t

You can delete a hosted zone only if it contains only the default SOA record and NS resource record sets. \n\t\t\tIf the hosted zone contains other resource record sets, you must delete them before you can delete the hosted zone. \n\t\t\tIf you try to delete a hosted zone that contains other resource record sets, the request fails, and Route 53 returns a \n\t\t\tHostedZoneNotEmpty error. For information about deleting records from your hosted zone, see \n\t\t\tChangeResourceRecordSets.

\n\t\t

To verify that the hosted zone has been deleted, do one of the following:

\n\t\t ", + "smithy.api#documentation": "

Deletes a hosted zone.

\n\t\t\n\t\t

If the hosted zone was created by another service, such as AWS Cloud Map, see \n\t\t\tDeleting \n\t\t\tPublic Hosted Zones That Were Created by Another Service in the Amazon Route 53 Developer Guide for information about how to delete it. \n\t\t\t(The process is the same for public and private hosted zones that were created by another service.)

\n\t\t\n\t\t

If you want to keep your domain registration but you want to stop routing internet traffic to your website or web application, \n\t\t\twe recommend that you delete resource record sets in the hosted zone instead of deleting the hosted zone.

\n\t\t\n\t\t \n\t\t\t

If you delete a hosted zone, you can't undelete it. You must create a new hosted zone and update the name servers for your \n\t\t\t\tdomain registration, which can require up to 48 hours to take effect. (If you delegated responsibility for a subdomain to a hosted zone \n\t\t\t\tand you delete the child hosted zone, you must update the name servers in the parent hosted zone.) In addition, if you delete a hosted zone, \n\t\t\t\tsomeone could hijack the domain and route traffic to their own resources using your domain name.

\n\t\t
\n\t\t\n\t\t

If you want to avoid the monthly charge for the hosted zone, you can transfer DNS service for the domain to a free DNS service. \n\t\t\tWhen you transfer DNS service, you have to update the name servers for the domain registration. If the domain is registered with Route 53, \n\t\t\tsee UpdateDomainNameservers\n\t\t\tfor information about how to replace Route 53 name servers with name servers for the new DNS service. If the domain is registered with \n\t\t\tanother registrar, use the method provided by the registrar to update name servers for the domain registration. For more information, \n\t\t\tperform an internet search on \"free DNS service.\"

\n\n\t\t

You can delete a hosted zone only if it contains only the default SOA record and NS resource record sets. \n\t\t\tIf the hosted zone contains other resource record sets, you must delete them before you can delete the hosted zone. \n\t\t\tIf you try to delete a hosted zone that contains other resource record sets, the request fails, and Route 53 returns a \n\t\t\tHostedZoneNotEmpty error. For information about deleting records from your hosted zone, see \n\t\t\tChangeResourceRecordSets.

\n\t\t

To verify that the hosted zone has been deleted, do one of the following:

\n\t\t ", "smithy.api#http": { "method": "DELETE", "uri": "/2013-04-01/hostedzone/{Id}", @@ -2255,9 +2249,6 @@ { "target": "com.amazonaws.route53#ConcurrentModification" }, - { - "target": "com.amazonaws.route53#InvalidInput" - }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -2550,7 +2541,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes authorization to submit an AssociateVPCWithHostedZone request to associate a specified VPC \n\t\t\twith a hosted zone that was created by a different account. You must use the account that created the hosted zone \n\t\t\tto submit a DeleteVPCAssociationAuthorization request.

\n\t\t \n\t\t\t

Sending this request only prevents the account that created the VPC from associating the VPC \n\t\t\t\twith the Amazon Route 53 hosted zone in the future. If the VPC is already associated with the hosted zone, \n\t\t\t\tDeleteVPCAssociationAuthorization won't disassociate the VPC from the hosted zone. \n\t\t\t\tIf you want to delete an existing association, use DisassociateVPCFromHostedZone.

\n\t\t
", + "smithy.api#documentation": "

Removes authorization to submit an AssociateVPCWithHostedZone request to associate a specified VPC \n\t\t\twith a hosted zone that was created by a different account. You must use the account that created the hosted zone \n\t\t\tto submit a DeleteVPCAssociationAuthorization request.

\n\t\t \n\t\t\t

Sending this request only prevents the AWS account that created the VPC from associating the VPC \n\t\t\t\twith the Amazon Route 53 hosted zone in the future. If the VPC is already associated with the hosted zone, \n\t\t\t\tDeleteVPCAssociationAuthorization won't disassociate the VPC from the hosted zone. \n\t\t\t\tIf you want to delete an existing association, use DisassociateVPCFromHostedZone.

\n\t\t
", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation", @@ -2564,7 +2555,7 @@ "HostedZoneId": { "target": "com.amazonaws.route53#ResourceId", "traits": { - "smithy.api#documentation": "

When removing authorization to associate a VPC that was created by one account with a hosted zone \n\t\t\tthat was created with a different account, the ID of the hosted zone.

", + "smithy.api#documentation": "

When removing authorization to associate a VPC that was created by one AWS account with a hosted zone \n\t\t\tthat was created with a different AWS account, the ID of the hosted zone.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2572,13 +2563,13 @@ "VPC": { "target": "com.amazonaws.route53#VPC", "traits": { - "smithy.api#documentation": "

When removing authorization to associate a VPC that was created by one account with a hosted zone \n\t\t\tthat was created with a different account, a complex type that includes the ID and region of the VPC.

", + "smithy.api#documentation": "

When removing authorization to associate a VPC that was created by one AWS account with a hosted zone \n\t\t\tthat was created with a different AWS account, a complex type that includes the ID and region of the VPC.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

A complex type that contains information about the request to remove authorization to associate a VPC \n\t\t\tthat was created by one account with a hosted zone that was created with a different account.

" + "smithy.api#documentation": "

A complex type that contains information about the request to remove authorization to associate a VPC \n\t\t\tthat was created by one AWS account with a hosted zone that was created with a different AWS account.

" } }, "com.amazonaws.route53#DeleteVPCAssociationAuthorizationResponse": { @@ -2652,9 +2643,6 @@ { "target": "com.amazonaws.route53#InvalidArgument" }, - { - "target": "com.amazonaws.route53#InvalidInput" - }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -2736,7 +2724,7 @@ } ], "traits": { - "smithy.api#documentation": "

Disassociates an Amazon Virtual Private Cloud (Amazon VPC) from an Amazon Route 53 private hosted zone. Note the following:

\n\t\t ", + "smithy.api#documentation": "

Disassociates an Amazon Virtual Private Cloud (Amazon VPC) from an Amazon Route 53 private hosted zone. Note the following:

\n\t\t ", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc", @@ -2809,9 +2797,6 @@ { "target": "com.amazonaws.route53#InvalidArgument" }, - { - "target": "com.amazonaws.route53#InvalidInput" - }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -3051,7 +3036,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets the specified limit for the current account, for example, the maximum number of health checks that you \n\t\t\tcan create using the account.

\n\t\t

For the default limit, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide. To request a higher limit, \n\t\t\topen a case.

\n\t\t \n

You can also view account limits in Amazon Web Services Trusted Advisor. Sign in to the Management Console and open the Trusted Advisor console at \n\t\t\thttps://console.aws.amazon.com/trustedadvisor/. Then choose \n\t\t\tService limits in the navigation pane.

\n\t\t
", + "smithy.api#documentation": "

Gets the specified limit for the current account, for example, the maximum number of health checks that you \n\t\t\tcan create using the account.

\n\t\t

For the default limit, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide. To request a higher limit, \n\t\t\topen a case.

\n\t\t \n

You can also view account limits in AWS Trusted Advisor. Sign in to the AWS Management Console and open the Trusted Advisor console at \n\t\t\thttps://console.aws.amazon.com/trustedadvisor/. Then choose \n\t\t\tService limits in the navigation pane.

\n\t\t
", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/accountlimit/{Type}", @@ -3179,7 +3164,7 @@ "target": "com.amazonaws.route53#GetCheckerIpRangesResponse" }, "traits": { - "smithy.api#documentation": "

Route 53 does not perform authorization for this API because it retrieves information that is already available to the public.

\n\t \n\t\t\t

\n GetCheckerIpRanges still works, but we recommend that you download \n\t\t\t\tip-ranges.json, which includes IP address ranges for all Amazon Web Services services. For more information, see \n\t\t\tIP Address Ranges of Amazon Route 53 Servers \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t
", + "smithy.api#documentation": "

Route 53 does not perform authorization for this API because it retrieves information that is already available to the public.

\n\t \n\t\t\t

\n GetCheckerIpRanges still works, but we recommend that you download \n\t\t\tip-ranges.json, which includes IP address ranges for all AWS services. For more information, see \n\t\t\tIP Address Ranges of Amazon Route 53 Servers \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t
", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/checkeripranges", @@ -3221,9 +3206,6 @@ { "target": "com.amazonaws.route53#InvalidArgument" }, - { - "target": "com.amazonaws.route53#InvalidInput" - }, { "target": "com.amazonaws.route53#NoSuchHostedZone" } @@ -3375,7 +3357,7 @@ "target": "com.amazonaws.route53#GetHealthCheckCountResponse" }, "traits": { - "smithy.api#documentation": "

Retrieves the number of health checks that are associated with the current account.

", + "smithy.api#documentation": "

Retrieves the number of health checks that are associated with the current AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/healthcheckcount", @@ -3387,7 +3369,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

A request for the number of health checks that are associated with the current account.

" + "smithy.api#documentation": "

A request for the number of health checks that are associated with the current AWS account.

" } }, "com.amazonaws.route53#GetHealthCheckCountResponse": { @@ -3396,7 +3378,7 @@ "HealthCheckCount": { "target": "com.amazonaws.route53#HealthCheckCount", "traits": { - "smithy.api#documentation": "

The number of health checks associated with the current account.

", + "smithy.api#documentation": "

The number of health checks associated with the current AWS account.

", "smithy.api#required": {} } } @@ -3483,7 +3465,7 @@ "HealthCheck": { "target": "com.amazonaws.route53#HealthCheck", "traits": { - "smithy.api#documentation": "

A complex type that contains information about one health check that is associated with\n\t\t\tthe current account.

", + "smithy.api#documentation": "

A complex type that contains information about one health check that is associated with\n\t\t\tthe current AWS account.

", "smithy.api#required": {} } } @@ -3509,7 +3491,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets status of a specified health check.

\n\t\t \n

This API is intended for use during development to diagnose behavior. It doesn’t support production use-cases with high query rates that require immediate and actionable responses.

\n
", + "smithy.api#documentation": "

Gets status of a specified health check.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/healthcheck/{HealthCheckId}/status", @@ -3587,7 +3569,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the number of hosted zones that are associated with the current account.

", + "smithy.api#documentation": "

Retrieves the number of hosted zones that are associated with the current AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/hostedzonecount", @@ -3599,7 +3581,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

A request to retrieve a count of all the hosted zones that are associated with the current account.

" + "smithy.api#documentation": "

A request to retrieve a count of all the hosted zones that are associated with the current AWS account.

" } }, "com.amazonaws.route53#GetHostedZoneCountResponse": { @@ -3608,7 +3590,7 @@ "HostedZoneCount": { "target": "com.amazonaws.route53#HostedZoneCount", "traits": { - "smithy.api#documentation": "

The total number of public and private hosted zones that are associated with the current account.

", + "smithy.api#documentation": "

The total number of public and private hosted zones that are associated with the current AWS account.

", "smithy.api#required": {} } } @@ -3973,7 +3955,7 @@ "target": "com.amazonaws.route53#GetTrafficPolicyInstanceCountResponse" }, "traits": { - "smithy.api#documentation": "

Gets the number of traffic policy instances that are associated with the current account.

", + "smithy.api#documentation": "

Gets the number of traffic policy instances that are associated with the current AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/trafficpolicyinstancecount", @@ -3985,7 +3967,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Request to get the number of traffic policy instances that are associated with the current account.

" + "smithy.api#documentation": "

Request to get the number of traffic policy instances that are associated with the current AWS account.

" } }, "com.amazonaws.route53#GetTrafficPolicyInstanceCountResponse": { @@ -3994,7 +3976,7 @@ "TrafficPolicyInstanceCount": { "target": "com.amazonaws.route53#TrafficPolicyInstanceCount", "traits": { - "smithy.api#documentation": "

The number of traffic policy instances that are associated with the current account.

", + "smithy.api#documentation": "

The number of traffic policy instances that are associated with the current AWS account.

", "smithy.api#required": {} } } @@ -4118,7 +4100,7 @@ } }, "traits": { - "smithy.api#documentation": "

A complex type that contains information about one health check that is associated with the current Amazon Web Services account.

" + "smithy.api#documentation": "

A complex type that contains information about one health check that is associated with the current AWS account.

" } }, "com.amazonaws.route53#HealthCheckAlreadyExists": { @@ -4155,7 +4137,7 @@ "Type": { "target": "com.amazonaws.route53#HealthCheckType", "traits": { - "smithy.api#documentation": "

The type of health check that you want to create, which indicates how Amazon Route 53 determines whether an endpoint is healthy.

\n\t\t \n\t\t\t

You can't change the value of Type after you create a health check.

\n\t\t
\n\t\t

You can create the following types of health checks:

\n\t\t \n\t\t

For more information, see \n\t\t\tHow Route 53 \n\t\t\tDetermines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

", + "smithy.api#documentation": "

The type of health check that you want to create, which indicates how Amazon Route 53 determines whether an endpoint is healthy.

\n\t\t \n\t\t\t

You can't change the value of Type after you create a health check.

\n\t\t
\n\t\t

You can create the following types of health checks:

\n\t\t \n\t\t

For more information, see \n\t\t\tHow Route 53 \n\t\t\tDetermines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

", "smithy.api#required": {} } }, @@ -4192,7 +4174,7 @@ "MeasureLatency": { "target": "com.amazonaws.route53#MeasureLatency", "traits": { - "smithy.api#documentation": "

Specify whether you want Amazon Route 53 to measure the latency between health checkers in multiple Amazon Web Services regions and your endpoint, and to \n\t\t\tdisplay CloudWatch latency graphs on the Health Checks page in the Route 53 console.

\n\t\t \n\t\t\t

You can't change the value of MeasureLatency after you create a health check.

\n\t\t
" + "smithy.api#documentation": "

Specify whether you want Amazon Route 53 to measure the latency between health checkers in multiple AWS regions and your endpoint, and to \n\t\t\tdisplay CloudWatch latency graphs on the Health Checks page in the Route 53 console.

\n\t\t \n\t\t\t

You can't change the value of MeasureLatency after you create a health check.

\n\t\t
" } }, "Inverted": { @@ -4242,12 +4224,6 @@ "traits": { "smithy.api#documentation": "

When CloudWatch has insufficient data about the metric to determine the alarm state, the status that you want Amazon Route 53 to assign to the health check:

\n\t\t " } - }, - "RoutingControlArn": { - "target": "com.amazonaws.route53#RoutingControlArn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for Route53 Application Recovery Controller routing control.

" - } } }, "traits": { @@ -4419,10 +4395,6 @@ { "value": "CLOUDWATCH_METRIC", "name": "CLOUDWATCH_METRIC" - }, - { - "value": "RECOVERY_CONTROL", - "name": "RECOVERY_CONTROL" } ] } @@ -4646,13 +4618,13 @@ "OwningAccount": { "target": "com.amazonaws.route53#AWSAccountID", "traits": { - "smithy.api#documentation": "

If the hosted zone was created by an account, or was created by an Amazon Web Services service that creates hosted zones using the current account, \n\t\t\tOwningAccount contains the account ID of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map \n\t\t\tcreates the hosted zone using the current account.

" + "smithy.api#documentation": "

If the hosted zone was created by an AWS account, or was created by an AWS service that creates hosted zones using the current account, \n\t\t\tOwningAccount contains the account ID of that account. For example, when you use AWS Cloud Map to create a hosted zone, Cloud Map \n\t\t\tcreates the hosted zone using the current AWS account.

" } }, "OwningService": { "target": "com.amazonaws.route53#HostedZoneOwningService", "traits": { - "smithy.api#documentation": "

If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified VPC with that hosted zone, OwningService \n\t\t\tcontains an abbreviation that identifies the service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and \n\t\t\tassociated a VPC with the hosted zone, the value of OwningService is efs.amazonaws.com.

" + "smithy.api#documentation": "

If an AWS service uses its own account to create a hosted zone and associate the specified VPC with that hosted zone, OwningService \n\t\t\tcontains an abbreviation that identifies the service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and \n\t\t\tassociated a VPC with the hosted zone, the value of OwningService is efs.amazonaws.com.

" } } }, @@ -4716,7 +4688,7 @@ "Owner": { "target": "com.amazonaws.route53#HostedZoneOwner", "traits": { - "smithy.api#documentation": "

The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an account or \n\t\t\tan Amazon Web Services service.

", + "smithy.api#documentation": "

The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an AWS account or \n\t\t\tan AWS service.

", "smithy.api#required": {} } } @@ -4741,7 +4713,7 @@ "min": 0, "max": 45 }, - "smithy.api#pattern": "^(^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$)$" + "smithy.api#pattern": "(^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$)" } }, "com.amazonaws.route53#IPAddressCidr": { @@ -4768,7 +4740,7 @@ } }, "traits": { - "smithy.api#documentation": "

Amazon Route 53 doesn't have the permissions required to create log streams and send query logs to log streams. Possible causes \n\t\t\tinclude the following:

\n\t\t ", + "smithy.api#documentation": "

Amazon Route 53 doesn't have the permissions required to create log streams and send query logs to log streams. Possible causes \n\t\t\tinclude the following:

\n\t\t ", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4973,7 +4945,7 @@ "KmsArn": { "target": "com.amazonaws.route53#SigningKeyString", "traits": { - "smithy.api#documentation": "

The Amazon resource name (ARN) used to identify the customer managed customer master key (CMK) in Key Management Service (KMS).\n\t\t\tThe KmsArn must be unique for each key-signing key (KSK) in a single hosted zone.

\n\t\t

You must configure the CMK as follows:

\n\t\t
\n
Status
\n
\n

Enabled

\n
\n
Key spec
\n
\n

ECC_NIST_P256

\n
\n
Key usage
\n
\n

Sign and verify

\n
\n
Key policy
\n
\n

The key policy must give permission for the following actions:

\n\t\t\t\t \n\t\t\t\t\t

The key policy must also include the Amazon Route 53 service in the principal for your account. \n\t\t\t\t\t\tSpecify the following:

\n\t\t\t\t\t \n\t\t\t\t
\n
\n\t\t

For more information about working with the customer managed CMK in KMS, see \n\t\t\tKey Management Service concepts.

" + "smithy.api#documentation": "

The Amazon resource name (ARN) used to identify the customer managed customer master key (CMK) in AWS Key Management Service (AWS KMS).\n\t\t\tThe KmsArn must be unique for each key-signing key (KSK) in a single hosted zone.

\n\t\t

You must configure the CMK as follows:

\n\t\t
\n
Status
\n
\n

Enabled

\n
\n
Key spec
\n
\n

ECC_NIST_P256

\n
\n
Key usage
\n
\n

Sign and verify

\n
\n
Key policy
\n
\n

The key policy must give permission for the following actions:

\n\t\t\t\t \n\t\t\t\t\t

The key policy must also include the Amazon Route 53 service in the principal for your account. \n\t\t\t\t\t\tSpecify the following:

\n\t\t\t\t\t \n\t\t\t\t
\n
\n\t\t

For more information about working with the customer managed CMK in AWS KMS, see \n\t\t\tAWS Key Management Service concepts.

" } }, "Flag": { @@ -5156,7 +5128,7 @@ } }, "traits": { - "smithy.api#documentation": "

This operation can't be completed either because the current account has reached the limit on reusable delegation sets \n\t\t\tthat it can create or because you've reached the limit on the number of Amazon VPCs that you can associate with a private hosted zone. \n\t\t\tTo get the current limit on the number of reusable delegation sets, see \n\t\t\tGetAccountLimit.\n\t\t\tTo get the current limit on the number of Amazon VPCs that you can associate with a private hosted zone, see \n\t\t\tGetHostedZoneLimit.\n\t\t\tTo request a higher limit, create a case with the Amazon Web Services Support Center.

", + "smithy.api#documentation": "

This operation can't be completed either because the current account has reached the limit on reusable delegation sets \n\t\t\tthat it can create or because you've reached the limit on the number of Amazon VPCs that you can associate with a private hosted zone. \n\t\t\tTo get the current limit on the number of reusable delegation sets, see \n\t\t\tGetAccountLimit.\n\t\t\tTo get the current limit on the number of Amazon VPCs that you can associate with a private hosted zone, see \n\t\t\tGetHostedZoneLimit.\n\t\t\tTo request a higher limit, create a case with the AWS Support Center.

", "smithy.api#error": "client" } }, @@ -5302,7 +5274,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieve a list of the health checks that are associated with the current account.

", + "smithy.api#documentation": "

Retrieve a list of the health checks that are associated with the current AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/healthcheck", @@ -5335,7 +5307,7 @@ } }, "traits": { - "smithy.api#documentation": "

A request to retrieve a list of the health checks that are associated with the current account.

" + "smithy.api#documentation": "

A request to retrieve a list of the health checks that are associated with the current AWS account.

" } }, "com.amazonaws.route53#ListHealthChecksResponse": { @@ -5344,7 +5316,7 @@ "HealthChecks": { "target": "com.amazonaws.route53#HealthChecks", "traits": { - "smithy.api#documentation": "

A complex type that contains one HealthCheck element for each health check that is associated with the current \n\t\t\taccount.

", + "smithy.api#documentation": "

A complex type that contains one HealthCheck element for each health check that is associated with the current \n\t\t\tAWS account.

", "smithy.api#required": {} } }, @@ -5400,7 +5372,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of the public and private hosted zones that are associated with the current account. The response \n\t\t\tincludes a HostedZones child element for each hosted zone.

\n\t\t

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of hosted zones, you can use the \n\t\t\tmaxitems parameter to list them in groups of up to 100.

", + "smithy.api#documentation": "

Retrieves a list of the public and private hosted zones that are associated with the current AWS account. The response \n\t\t\tincludes a HostedZones child element for each hosted zone.

\n\t\t

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of hosted zones, you can use the \n\t\t\tmaxitems parameter to list them in groups of up to 100.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/hostedzone", @@ -5431,7 +5403,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of your hosted zones in lexicographic order. The response includes a HostedZones child element \n\t\t\tfor each hosted zone created by the current account.

\n\t\t

\n ListHostedZonesByName sorts hosted zones by name with the labels reversed. For example:

\n\n\t\t

\n com.example.www.\n

\n\n\t\t

Note the trailing dot, which can change the sort order in some circumstances.

\n\t\t

If the domain name includes escape characters or Punycode, ListHostedZonesByName alphabetizes the domain name \n\t\t\tusing the escaped or Punycoded value, which is the format that Amazon Route 53 saves in its database. For example, to create a hosted zone \n\t\t\tfor exämple.com, you specify ex\\344mple.com for the domain name. ListHostedZonesByName alphabetizes it as:

\n\n\t\t

\n com.ex\\344mple.\n

\n\t\t\n\t\t

The labels are reversed and alphabetized using the escaped value. For more information about valid domain name formats, \n\t\t\tincluding internationalized domain names, see DNS Domain Name Format in the \n\t\t\tAmazon Route 53 Developer Guide.

\n\t\t

Route 53 returns up to 100 items in each response. If you have a lot of hosted zones, use the MaxItems parameter to list \n\t\t\tthem in groups of up to 100. The response includes values that help navigate from one group of MaxItems hosted zones to the next:

\n\t\t ", + "smithy.api#documentation": "

Retrieves a list of your hosted zones in lexicographic order. The response includes a HostedZones child element \n\t\t\tfor each hosted zone created by the current AWS account.

\n\t\t

\n ListHostedZonesByName sorts hosted zones by name with the labels reversed. For example:

\n\n\t\t

\n com.example.www.\n

\n\n\t\t

Note the trailing dot, which can change the sort order in some circumstances.

\n\t\t

If the domain name includes escape characters or Punycode, ListHostedZonesByName alphabetizes the domain name \n\t\t\tusing the escaped or Punycoded value, which is the format that Amazon Route 53 saves in its database. For example, to create a hosted zone \n\t\t\tfor exämple.com, you specify ex\\344mple.com for the domain name. ListHostedZonesByName alphabetizes it as:

\n\n\t\t

\n com.ex\\344mple.\n

\n\t\t\n\t\t

The labels are reversed and alphabetized using the escaped value. For more information about valid domain name formats, \n\t\t\tincluding internationalized domain names, see DNS Domain Name Format in the \n\t\t\tAmazon Route 53 Developer Guide.

\n\t\t

Route 53 returns up to 100 items in each response. If you have a lot of hosted zones, use the MaxItems parameter to list \n\t\t\tthem in groups of up to 100. The response includes values that help navigate from one group of MaxItems hosted zones to the next:

\n\t\t ", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/hostedzonesbyname", @@ -5445,7 +5417,7 @@ "DNSName": { "target": "com.amazonaws.route53#DNSName", "traits": { - "smithy.api#documentation": "

(Optional) For your first request to ListHostedZonesByName, include the dnsname parameter only if you want to \n\t\t\tspecify the name of the first hosted zone in the response. If you don't include the dnsname parameter, Amazon Route 53 returns all of \n\t\t\tthe hosted zones that were created by the current account, in ASCII order. For subsequent requests, include both dnsname and \n\t\t\thostedzoneid parameters. For dnsname, specify the value of NextDNSName from the previous response.

", + "smithy.api#documentation": "

(Optional) For your first request to ListHostedZonesByName, include the dnsname parameter only if you want to \n\t\t\tspecify the name of the first hosted zone in the response. If you don't include the dnsname parameter, Amazon Route 53 returns all of \n\t\t\tthe hosted zones that were created by the current AWS account, in ASCII order. For subsequent requests, include both dnsname and \n\t\t\thostedzoneid parameters. For dnsname, specify the value of NextDNSName from the previous response.

", "smithy.api#httpQuery": "dnsname" } }, @@ -5465,7 +5437,7 @@ } }, "traits": { - "smithy.api#documentation": "

Retrieves a list of the public and private hosted zones that are associated with the current account in ASCII order by domain \n\t\t\tname.

" + "smithy.api#documentation": "

Retrieves a list of the public and private hosted zones that are associated with the current AWS account in ASCII order by domain \n\t\t\tname.

" } }, "com.amazonaws.route53#ListHostedZonesByNameResponse": { @@ -5538,7 +5510,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the private hosted zones that a specified VPC is associated with, regardless of which account or Amazon Web Services service owns the \n\t\t\thosted zones. The HostedZoneOwner structure in the response contains one of the following values:

\n\t\t ", + "smithy.api#documentation": "

Lists all the private hosted zones that a specified VPC is associated with, regardless of which AWS account or AWS service owns the \n\t\t\thosted zones. The HostedZoneOwner structure in the response contains one of the following values:

\n\t\t ", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/hostedzonesbyvpc", @@ -5560,7 +5532,7 @@ "VPCRegion": { "target": "com.amazonaws.route53#VPCRegion", "traits": { - "smithy.api#documentation": "

For the Amazon VPC that you specified for VPCId, the Amazon Web Services Region that you created the VPC in.

", + "smithy.api#documentation": "

For the Amazon VPC that you specified for VPCId, the AWS Region that you created the VPC in.

", "smithy.api#httpQuery": "vpcregion", "smithy.api#required": {} } @@ -5581,7 +5553,7 @@ } }, "traits": { - "smithy.api#documentation": "

Lists all the private hosted zones that a specified VPC is associated with, regardless of which account created the hosted zones.

" + "smithy.api#documentation": "

Lists all the private hosted zones that a specified VPC is associated with, regardless of which AWS account created the hosted zones.

" } }, "com.amazonaws.route53#ListHostedZonesByVPCResponse": { @@ -5604,7 +5576,7 @@ "NextToken": { "target": "com.amazonaws.route53#PaginationToken", "traits": { - "smithy.api#documentation": "

The value that you will use for NextToken in the next ListHostedZonesByVPC request.

" + "smithy.api#documentation": "

The value that you specified for NextToken in the most recent ListHostedZonesByVPC request.

" } } } @@ -5635,7 +5607,7 @@ } }, "traits": { - "smithy.api#documentation": "

A request to retrieve a list of the public and private hosted zones that are associated with the current account.

" + "smithy.api#documentation": "

A request to retrieve a list of the public and private hosted zones that are associated with the current AWS account.

" } }, "com.amazonaws.route53#ListHostedZonesResponse": { @@ -5697,7 +5669,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the configurations for DNS query logging that are associated with the current account or the configuration \n\t\t\tthat is associated with a specified hosted zone.

\n\n\t\t

For more information about DNS query logs, see \n\t\t\tCreateQueryLoggingConfig. \n\t\t\tAdditional information, including the format of DNS query logs, appears in \n\t\t\tLogging DNS Queries \n\t\t\tin the Amazon Route 53 Developer Guide.

", + "smithy.api#documentation": "

Lists the configurations for DNS query logging that are associated with the current AWS account or the configuration \n\t\t\tthat is associated with a specified hosted zone.

\n\n\t\t

For more information about DNS query logs, see \n\t\t\tCreateQueryLoggingConfig. \n\t\t\tAdditional information, including the format of DNS query logs, appears in \n\t\t\tLogging DNS Queries \n\t\t\tin the Amazon Route 53 Developer Guide.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/queryloggingconfig", @@ -5717,21 +5689,21 @@ "HostedZoneId": { "target": "com.amazonaws.route53#ResourceId", "traits": { - "smithy.api#documentation": "

(Optional) If you want to list the query logging configuration that is associated with a hosted zone, specify the ID in \n\t\t\tHostedZoneId.

\n\t\t

If you don't specify a hosted zone ID, ListQueryLoggingConfigs returns all of the configurations \n\t\t\tthat are associated with the current account.

", + "smithy.api#documentation": "

(Optional) If you want to list the query logging configuration that is associated with a hosted zone, specify the ID in \n\t\t\tHostedZoneId.

\n\t\t

If you don't specify a hosted zone ID, ListQueryLoggingConfigs returns all of the configurations \n\t\t\tthat are associated with the current AWS account.

", "smithy.api#httpQuery": "hostedzoneid" } }, "NextToken": { "target": "com.amazonaws.route53#PaginationToken", "traits": { - "smithy.api#documentation": "

(Optional) If the current account has more than MaxResults query logging configurations, use NextToken \n\t\t\tto get the second and subsequent pages of results.

\n\t\t

For the first ListQueryLoggingConfigs request, omit this value.

\n\t\t

For the second and subsequent requests, get the value of NextToken from the previous response and specify that value \n\t\t\tfor NextToken in the request.

", + "smithy.api#documentation": "

(Optional) If the current AWS account has more than MaxResults query logging configurations, use NextToken \n\t\t\tto get the second and subsequent pages of results.

\n\t\t

For the first ListQueryLoggingConfigs request, omit this value.

\n\t\t

For the second and subsequent requests, get the value of NextToken from the previous response and specify that value \n\t\t\tfor NextToken in the request.

", "smithy.api#httpQuery": "nexttoken" } }, "MaxResults": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

(Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. \n\t\t\tIf the current account has more than MaxResults configurations, use the value of \n\t\t\tNextToken \n\t\t\tin the response to get the next page of results.

\n\t\t

If you don't specify a value for MaxResults, Route 53 returns up to 100 configurations.

", + "smithy.api#documentation": "

(Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. \n\t\t\tIf the current AWS account has more than MaxResults configurations, use the value of \n\t\t\tNextToken \n\t\t\tin the response to get the next page of results.

\n\t\t

If you don't specify a value for MaxResults, Route 53 returns up to 100 configurations.

", "smithy.api#httpQuery": "maxresults" } } @@ -5743,14 +5715,14 @@ "QueryLoggingConfigs": { "target": "com.amazonaws.route53#QueryLoggingConfigs", "traits": { - "smithy.api#documentation": "

An array that contains one \n\t\t\tQueryLoggingConfig element \n\t\t\tfor each configuration for DNS query logging that is associated with the current account.

", + "smithy.api#documentation": "

An array that contains one \n\t\t\tQueryLoggingConfig element \n\t\t\tfor each configuration for DNS query logging that is associated with the current AWS account.

", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.route53#PaginationToken", "traits": { - "smithy.api#documentation": "

If a response includes the last of the query logging configurations that are associated with the current account, \n\t\t\tNextToken doesn't appear in the response.

\n\t\t

If a response doesn't include the last of the configurations, you can get more configurations by submitting another \n\t\t\tListQueryLoggingConfigs \n\t\t\trequest. Get the value of NextToken that Amazon Route 53 returned in the previous response and include it in \n\t\t\tNextToken in the next request.

" + "smithy.api#documentation": "

If a response includes the last of the query logging configurations that are associated with the current AWS account, \n\t\t\tNextToken doesn't appear in the response.

\n\t\t

If a response doesn't include the last of the configurations, you can get more configurations by submitting another \n\t\t\tListQueryLoggingConfigs \n\t\t\trequest. Get the value of NextToken that Amazon Route 53 returned in the previous response and include it in \n\t\t\tNextToken in the next request.

" } } } @@ -5885,7 +5857,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of the reusable delegation sets that are associated with the current account.

", + "smithy.api#documentation": "

Retrieves a list of the reusable delegation sets that are associated with the current AWS account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/delegationset", @@ -5912,7 +5884,7 @@ } }, "traits": { - "smithy.api#documentation": "

A request to get a list of the reusable delegation sets that are associated with the current account.

" + "smithy.api#documentation": "

A request to get a list of the reusable delegation sets that are associated with the current AWS account.

" } }, "com.amazonaws.route53#ListReusableDelegationSetsResponse": { @@ -5921,7 +5893,7 @@ "DelegationSets": { "target": "com.amazonaws.route53#DelegationSets", "traits": { - "smithy.api#documentation": "

A complex type that contains one DelegationSet element for each reusable delegation set that was created \n\t\t\tby the current account.

", + "smithy.api#documentation": "

A complex type that contains one DelegationSet element for each reusable delegation set that was created \n\t\t\tby the current AWS account.

", "smithy.api#required": {} } }, @@ -5954,7 +5926,7 @@ } }, "traits": { - "smithy.api#documentation": "

A complex type that contains information about the reusable delegation sets that are associated with the current account.

" + "smithy.api#documentation": "

A complex type that contains information about the reusable delegation sets that are associated with the current AWS account.

" } }, "com.amazonaws.route53#ListTagsForResource": { @@ -5983,7 +5955,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists tags for one health check or hosted zone.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the Billing and Cost Management User Guide.

", + "smithy.api#documentation": "

Lists tags for one health check or hosted zone.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the AWS Billing and Cost Management User Guide.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/tags/{ResourceType}/{ResourceId}", @@ -6056,7 +6028,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists tags for up to 10 health checks or hosted zones.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the Billing and Cost Management User Guide.

", + "smithy.api#documentation": "

Lists tags for up to 10 health checks or hosted zones.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the AWS Billing and Cost Management User Guide.

", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/tags/{ResourceType}", @@ -6116,7 +6088,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets information about the latest version for every traffic policy that is associated with the current account. \n\t\t\tPolicies are listed in the order that they were created in.

\n\t\t\n\t\t

For information about how of deleting a traffic policy affects the response from ListTrafficPolicies, see \n\t\t\tDeleteTrafficPolicy.\n\n\t\t

", + "smithy.api#documentation": "

Gets information about the latest version for every traffic policy that is associated with the current AWS account. \n\t\t\tPolicies are listed in the order that they were created in.

\n\t\t\n\t\t

For information about how of deleting a traffic policy affects the response from ListTrafficPolicies, see \n\t\t\tDeleteTrafficPolicy.\n\n\t\t

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/trafficpolicies", @@ -6143,7 +6115,7 @@ } }, "traits": { - "smithy.api#documentation": "

A complex type that contains the information about the request to list the traffic policies that are associated \n\t\t\twith the current account.

" + "smithy.api#documentation": "

A complex type that contains the information about the request to list the traffic policies that are associated \n\t\t\twith the current AWS account.

" } }, "com.amazonaws.route53#ListTrafficPoliciesResponse": { @@ -6152,7 +6124,7 @@ "TrafficPolicySummaries": { "target": "com.amazonaws.route53#TrafficPolicySummaries", "traits": { - "smithy.api#documentation": "

A list that contains one TrafficPolicySummary element for each traffic policy that was created by the current account.

", + "smithy.api#documentation": "

A list that contains one TrafficPolicySummary element for each traffic policy that was created by the current AWS account.

", "smithy.api#required": {} } }, @@ -6199,7 +6171,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets information about the traffic policy instances that you created by using the current account.

\n\t\t \n\t\t\t

After you submit an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the \n\t\t\t\tresource record sets that are specified in the traffic policy definition. For more information, see the State response element.

\n\t\t
\n\t\t

Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the \n\t\t\tMaxItems parameter to list them in groups of up to 100.

", + "smithy.api#documentation": "

Gets information about the traffic policy instances that you created by using the current AWS account.

\n\t\t \n\t\t\t

After you submit an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the \n\t\t\t\tresource record sets that are specified in the traffic policy definition. For more information, see the State response element.

\n\t\t
\n\t\t

Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the \n\t\t\tMaxItems parameter to list them in groups of up to 100.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/trafficpolicyinstances", @@ -6473,7 +6445,7 @@ } }, "traits": { - "smithy.api#documentation": "

A request to get information about the traffic policy instances that you created by using the current account.

" + "smithy.api#documentation": "

A request to get information about the traffic policy instances that you created by using the current AWS account.

" } }, "com.amazonaws.route53#ListTrafficPolicyInstancesResponse": { @@ -7123,7 +7095,7 @@ "com.amazonaws.route53#RecordDataEntry": { "type": "string", "traits": { - "smithy.api#documentation": "

A value that Amazon Route 53 returned for this resource record set. A RecordDataEntry element is one of the following:

\n\t\t ", + "smithy.api#documentation": "

A value that Amazon Route 53 returned for this resource record set. A RecordDataEntry element is one of the following:

\n\t\t ", "smithy.api#length": { "min": 0, "max": 512 @@ -7256,7 +7228,7 @@ "Region": { "target": "com.amazonaws.route53#ResourceRecordSetRegion", "traits": { - "smithy.api#documentation": "

\n Latency-based resource record sets only: The Amazon EC2 Region where you created the resource that this \n\t\t\tresource record set refers to. The resource typically is an Amazon Web Services resource, such as an EC2 instance or an ELB load balancer, and is \n\t\t\treferred to by an IP address or a DNS domain name, depending on the record type.

\n\t\t \n\t\t\t

Although creating latency and latency alias resource record sets in a private hosted zone is allowed, \n\t\t\t\tit's not supported.

\n\t\t
\n\t\t

When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Route 53 \n\t\t\tselects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Route 53 then \n\t\t\treturns the value that is associated with the selected resource record set.

\n\t\t

Note the following:

\n\t\t " + "smithy.api#documentation": "

\n Latency-based resource record sets only: The Amazon EC2 Region where you created the resource that this \n\t\t\tresource record set refers to. The resource typically is an AWS resource, such as an EC2 instance or an ELB load balancer, and is \n\t\t\treferred to by an IP address or a DNS domain name, depending on the record type.

\n\t\t \n\t\t\t

Although creating latency and latency alias resource record sets in a private hosted zone is allowed, \n\t\t\t\tit's not supported.

\n\t\t
\n\t\t

When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Route 53 \n\t\t\tselects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Route 53 then \n\t\t\treturns the value that is associated with the selected resource record set.

\n\t\t

Note the following:

\n\t\t " } }, "GeoLocation": { @@ -7292,7 +7264,7 @@ "AliasTarget": { "target": "com.amazonaws.route53#AliasTarget", "traits": { - "smithy.api#documentation": "

\n Alias resource record sets only: Information about the Amazon Web Services resource, such as a CloudFront distribution or an \n\t\t\tAmazon S3 bucket, that you want to route traffic to.

\n\t\t

If you're creating resource records sets for a private hosted zone, note the following:

\n\t\t " + "smithy.api#documentation": "

\n Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or an \n\t\t\tAmazon S3 bucket, that you want to route traffic to.

\n\t\t

If you're creating resource records sets for a private hosted zone, note the following:

\n\t\t " } }, "HealthCheckId": { @@ -7555,15 +7527,6 @@ ] } }, - "com.amazonaws.route53#RoutingControlArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 255 - } - } - }, "com.amazonaws.route53#SearchString": { "type": "string", "traits": { @@ -7864,7 +7827,7 @@ "ResolverIP": { "target": "com.amazonaws.route53#IPAddress", "traits": { - "smithy.api#documentation": "

If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. \n\t\t\tIf you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the Amazon Web Services US East (N. Virginia) Region \n\t\t\t(us-east-1).

", + "smithy.api#documentation": "

If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. \n\t\t\tIf you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the AWS US East (N. Virginia) Region \n\t\t\t(us-east-1).

", "smithy.api#httpQuery": "resolverip" } }, @@ -7967,7 +7930,7 @@ } }, "traits": { - "smithy.api#documentation": "

This health check can't be created because the current account has reached the limit on the number of active health checks.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

For information about how to get the current limit for an account, see \n\t\t\tGetAccountLimit. To request a \n\t\t\thigher limit, create a case with the Amazon Web Services Support Center.

\n\n\t\t

You have reached the maximum number of active health checks for an account. To request a higher limit, \n\t\t\tcreate a case with the Amazon Web Services Support Center.

", + "smithy.api#documentation": "

This health check can't be created because the current account has reached the limit on the number of active health checks.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

For information about how to get the current limit for an account, see \n\t\t\tGetAccountLimit. To request a \n\t\t\thigher limit, create a case with the AWS Support Center.

\n\n\t\t

You have reached the maximum number of active health checks for an AWS account. To request a higher limit, \n\t\t\tcreate a case with the AWS Support Center.

", "smithy.api#error": "client" } }, @@ -7982,7 +7945,7 @@ } }, "traits": { - "smithy.api#documentation": "

This operation can't be completed either because the current account has reached the limit on the number of hosted zones \n\t\t\tor because you've reached the limit on the number of hosted zones that can be associated with a reusable delegation set.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

To get the current limit on hosted zones that can be created by an account, see \n\t\t\tGetAccountLimit.

\n\t\t

To get the current limit on hosted zones that can be associated with a reusable delegation set, see \n\t\t\tGetReusableDelegationSetLimit.

\n\t\t

To request a higher limit, create a case with the Amazon Web Services Support Center.

", + "smithy.api#documentation": "

This operation can't be completed either because the current account has reached the limit on the number of hosted zones \n\t\t\tor because you've reached the limit on the number of hosted zones that can be associated with a reusable delegation set.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

To get the current limit on hosted zones that can be created by an account, see \n\t\t\tGetAccountLimit.

\n\t\t

To get the current limit on hosted zones that can be associated with a reusable delegation set, see \n\t\t\tGetReusableDelegationSetLimit.

\n\t\t

To request a higher limit, create a case with the AWS Support Center.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -8010,7 +7973,7 @@ } }, "traits": { - "smithy.api#documentation": "

This traffic policy can't be created because the current account has reached the limit on the number of traffic policies.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

To get the current limit for an account, see \n\t\t\tGetAccountLimit. \n\t\t

\n\t\t

To request a higher limit, create a case with the Amazon Web Services Support Center.

", + "smithy.api#documentation": "

This traffic policy can't be created because the current account has reached the limit on the number of traffic policies.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

To get the current limit for an account, see \n\t\t\tGetAccountLimit. \n\t\t

\n\t\t

To request a higher limit, create a case with the AWS Support Center.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -8026,7 +7989,7 @@ } }, "traits": { - "smithy.api#documentation": "

This traffic policy instance can't be created because the current account has reached the limit on the number of \n\t\t\ttraffic policy instances.

\n\t\t

For information about default limits, see \n\t\t\tLimits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

For information about how to get the current limit for an account, see \n\t\t\tGetAccountLimit.

\n\t\t

To request a higher limit, create a case with the Amazon Web Services Support Center.

", + "smithy.api#documentation": "

This traffic policy instance can't be created because the current account has reached the limit on the number of \n\t\t\ttraffic policy instances.

\n\t\t

For information about default limits, see \n\t\t\tLimits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

For information about how to get the current limit for an account, see \n\t\t\tGetAccountLimit.

\n\t\t

To request a higher limit, create a case with the AWS Support Center.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -8346,13 +8309,13 @@ "TrafficPolicyCount": { "target": "com.amazonaws.route53#TrafficPolicyVersion", "traits": { - "smithy.api#documentation": "

The number of traffic policies that are associated with the current account.

", + "smithy.api#documentation": "

The number of traffic policies that are associated with the current AWS account.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

A complex type that contains information about the latest version of one traffic policy \n\t\t\tthat is associated with the current account.

" + "smithy.api#documentation": "

A complex type that contains information about the latest version of one traffic policy \n\t\t\tthat is associated with the current AWS account.

" } }, "com.amazonaws.route53#TrafficPolicyVersion": { diff --git a/codegen/sdk-codegen/aws-models/route53recoverycluster.2019-12-02.json b/codegen/sdk-codegen/aws-models/route53recoverycluster.2019-12-02.json deleted file mode 100644 index 5f5cf9ccd22..00000000000 --- a/codegen/sdk-codegen/aws-models/route53recoverycluster.2019-12-02.json +++ /dev/null @@ -1,511 +0,0 @@ -{ - "smithy": "1.0", - "metadata": { - "suppressions": [ - { - "id": "HttpMethodSemantics", - "namespace": "*" - }, - { - "id": "HttpResponseCodeSemantics", - "namespace": "*" - }, - { - "id": "PaginatedTrait", - "namespace": "*" - }, - { - "id": "HttpHeaderTrait", - "namespace": "*" - }, - { - "id": "HttpUriConflict", - "namespace": "*" - }, - { - "id": "Service", - "namespace": "*" - } - ] - }, - "shapes": { - "com.amazonaws.route53recoverycluster#AccessDeniedException": { - "type": "structure", - "members": { - "message": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

You don't have sufficient permissions to query the routing control state.

", - "smithy.api#error": "client", - "smithy.api#httpError": 403 - } - }, - "com.amazonaws.route53recoverycluster#Arn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 255 - }, - "smithy.api#pattern": "^[A-Za-z0-9:\\/_-]*$" - } - }, - "com.amazonaws.route53recoverycluster#ConflictException": { - "type": "structure", - "members": { - "message": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#documentation": "Description of the ConflictException error", - "smithy.api#required": {} - } - }, - "resourceId": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#documentation": "Identifier of the resource in use", - "smithy.api#required": {} - } - }, - "resourceType": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#documentation": "Type of the resource in use", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

There was a conflict with this request. Try again.

", - "smithy.api#error": "client", - "smithy.api#httpError": 409 - } - }, - "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException": { - "type": "structure", - "members": { - "message": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The cluster endpoint isn't available. Try another cluster endpoint.

", - "smithy.api#error": "server", - "smithy.api#httpError": 503 - } - }, - "com.amazonaws.route53recoverycluster#GetRoutingControlState": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycluster#GetRoutingControlStateRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycluster#GetRoutingControlStateResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycluster#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException" - }, - { - "target": "com.amazonaws.route53recoverycluster#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Get the state for a routing control. A routing control is a simple on/off switch\n\t\t\t\tthat you can use to route traffic to cells. When the state is On, traffic flows to a cell. When it's off, traffic does not flow.

\n\t\t\t

Before you can create a routing control, you first must create a cluster to host the control.\n\t\t\t\tFor more information, see \n\t\t\t\tCreateCluster.\n\t\t\t\tAccess one of the endpoints for the cluster to get or update the routing control state to\n\t\t\t\tredirect traffic.

\n\t\t\t

For more information about working with routing controls, see \n\t\t\t\tRouting control\n\t\t\t\tin the Route 53 Application Recovery Controller Developer Guide.

" - } - }, - "com.amazonaws.route53recoverycluster#GetRoutingControlStateRequest": { - "type": "structure", - "members": { - "RoutingControlArn": { - "target": "com.amazonaws.route53recoverycluster#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) for the routing control that you want to get the state for.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycluster#GetRoutingControlStateResponse": { - "type": "structure", - "members": { - "RoutingControlArn": { - "target": "com.amazonaws.route53recoverycluster#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the response.

", - "smithy.api#required": {} - } - }, - "RoutingControlState": { - "target": "com.amazonaws.route53recoverycluster#RoutingControlState", - "traits": { - "smithy.api#documentation": "

The state of the routing control.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycluster#InternalServerException": { - "type": "structure", - "members": { - "message": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#required": {} - } - }, - "retryAfterSeconds": { - "target": "com.amazonaws.route53recoverycluster#RetryAfterSeconds", - "traits": { - "smithy.api#httpHeader": "Retry-After" - } - } - }, - "traits": { - "smithy.api#documentation": "

There was an unexpected error during processing of the request.

", - "smithy.api#error": "server", - "smithy.api#httpError": 500 - } - }, - "com.amazonaws.route53recoverycluster#ResourceNotFoundException": { - "type": "structure", - "members": { - "message": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#required": {} - } - }, - "resourceId": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#documentation": "Hypothetical resource identifier that was not found", - "smithy.api#required": {} - } - }, - "resourceType": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#documentation": "Hypothetical resource type that was not found", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The request references a routing control that was not found.

", - "smithy.api#error": "client", - "smithy.api#httpError": 404 - } - }, - "com.amazonaws.route53recoverycluster#RetryAfterSeconds": { - "type": "integer", - "traits": { - "smithy.api#documentation": "Advice to clients on when the call can be safely retried" - } - }, - "com.amazonaws.route53recoverycluster#RoutingControlState": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "On", - "name": "On" - }, - { - "value": "Off", - "name": "Off" - } - ] - } - }, - "com.amazonaws.route53recoverycluster#String": { - "type": "string" - }, - "com.amazonaws.route53recoverycluster#ThrottlingException": { - "type": "structure", - "members": { - "message": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#required": {} - } - }, - "retryAfterSeconds": { - "target": "com.amazonaws.route53recoverycluster#RetryAfterSeconds", - "traits": { - "smithy.api#httpHeader": "Retry-After" - } - } - }, - "traits": { - "smithy.api#documentation": "

The request was denied because of request throttling.

", - "smithy.api#error": "client", - "smithy.api#httpError": 429 - } - }, - "com.amazonaws.route53recoverycluster#ToggleCustomerAPI": { - "type": "service", - "version": "2019-12-02", - "operations": [ - { - "target": "com.amazonaws.route53recoverycluster#GetRoutingControlState" - }, - { - "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlState" - }, - { - "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStates" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "Route53 Recovery Cluster", - "arnNamespace": "route53-recovery-cluster", - "cloudFormationName": "Route53RecoveryCluster", - "cloudTrailEventSource": "route53recoverycluster.amazonaws.com", - "endpointPrefix": "route53-recovery-cluster" - }, - "aws.auth#sigv4": { - "name": "route53-recovery-cluster" - }, - "aws.protocols#awsJson1_0": {}, - "smithy.api#documentation": "

Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .

\n\t\t\t

Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications \n\t\t\t\tby rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches \n\t\t\t\thosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or \n\t\t\t\tget the state of routing controls. You use routing controls to failover traffic to recover your application \n\t\t\t\tacross Availability Zones or Regions.

\n\t\t\t

This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.

\n\t\t\t

For more information about Route 53 Application Recovery Controller, see the following:

\n\t\t\t ", - "smithy.api#title": "Route53 Recovery Cluster" - } - }, - "com.amazonaws.route53recoverycluster#UpdateRoutingControlState": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycluster#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException" - }, - { - "target": "com.amazonaws.route53recoverycluster#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Set the state of the routing control to reroute traffic. You can set the value to be On or Off.\n\t\t\t\tWhen the state is On, traffic flows to a cell. When it's off, traffic does not flow.

\n\t\t\t

For more information about working with routing controls, see \n\t\t\t\tRouting control\n\t\t\t\tin the Route 53 Application Recovery Controller Developer Guide.

" - } - }, - "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateEntries": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateEntry" - } - }, - "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateEntry": { - "type": "structure", - "members": { - "RoutingControlArn": { - "target": "com.amazonaws.route53recoverycluster#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) for the routing control state entry.

", - "smithy.api#required": {} - } - }, - "RoutingControlState": { - "target": "com.amazonaws.route53recoverycluster#RoutingControlState", - "traits": { - "smithy.api#documentation": "

The routing control state in a set of routing control state entries.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

A routing control state.

" - } - }, - "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateRequest": { - "type": "structure", - "members": { - "RoutingControlArn": { - "target": "com.amazonaws.route53recoverycluster#Arn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) for the routing control that you want to update the state for.

", - "smithy.api#required": {} - } - }, - "RoutingControlState": { - "target": "com.amazonaws.route53recoverycluster#RoutingControlState", - "traits": { - "smithy.api#documentation": "

The state of the routing control. You can set the value to be On or Off.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.route53recoverycluster#UpdateRoutingControlStates": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStatesRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStatesResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycluster#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException" - }, - { - "target": "com.amazonaws.route53recoverycluster#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycluster#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Set multiple routing control states. You can set the value for each state to be On or Off.\n\t\t\tWhen the state is On, traffic flows to a cell. When it's off, traffic does not flow.

\n\t\t\t

For more information about working with routing controls, see \n\t\t\t\tRouting control\n\t\t\t\tin the Route 53 Application Recovery Controller Developer Guide.

" - } - }, - "com.amazonaws.route53recoverycluster#UpdateRoutingControlStatesRequest": { - "type": "structure", - "members": { - "UpdateRoutingControlStateEntries": { - "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateEntries", - "traits": { - "smithy.api#documentation": "

A set of routing control entries that you want to update.

", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycluster#UpdateRoutingControlStatesResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.route53recoverycluster#ValidationException": { - "type": "structure", - "members": { - "message": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#required": {} - } - }, - "reason": { - "target": "com.amazonaws.route53recoverycluster#ValidationExceptionReason" - }, - "fields": { - "target": "com.amazonaws.route53recoverycluster#ValidationExceptionFieldList" - } - }, - "traits": { - "smithy.api#documentation": "

There was a validation error on the request.

", - "smithy.api#error": "client", - "smithy.api#httpError": 400 - } - }, - "com.amazonaws.route53recoverycluster#ValidationExceptionField": { - "type": "structure", - "members": { - "name": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#documentation": "

The field that had the validation exception.

", - "smithy.api#required": {} - } - }, - "message": { - "target": "com.amazonaws.route53recoverycluster#String", - "traits": { - "smithy.api#documentation": "

Information about the validation exception.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

There was a validation error on the request.

" - } - }, - "com.amazonaws.route53recoverycluster#ValidationExceptionFieldList": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoverycluster#ValidationExceptionField" - }, - "traits": { - "smithy.api#documentation": "The fields that caused the error, if applicable" - } - }, - "com.amazonaws.route53recoverycluster#ValidationExceptionReason": { - "type": "string", - "traits": { - "smithy.api#documentation": "Reason the request failed validation", - "smithy.api#enum": [ - { - "value": "unknownOperation", - "name": "UNKNOWN_OPERATION" - }, - { - "value": "cannotParse", - "name": "CANNOT_PARSE" - }, - { - "value": "fieldValidationFailed", - "name": "FIELD_VALIDATION_FAILED" - }, - { - "value": "other", - "name": "OTHER" - } - ] - } - } - } -} diff --git a/codegen/sdk-codegen/aws-models/route53recoverycontrolconfig.2020-11-02.json b/codegen/sdk-codegen/aws-models/route53recoverycontrolconfig.2020-11-02.json deleted file mode 100644 index 8f988dcc62c..00000000000 --- a/codegen/sdk-codegen/aws-models/route53recoverycontrolconfig.2020-11-02.json +++ /dev/null @@ -1,2333 +0,0 @@ -{ - "smithy": "1.0", - "metadata": { - "suppressions": [ - { - "id": "HttpMethodSemantics", - "namespace": "*" - }, - { - "id": "HttpResponseCodeSemantics", - "namespace": "*" - }, - { - "id": "PaginatedTrait", - "namespace": "*" - }, - { - "id": "HttpHeaderTrait", - "namespace": "*" - }, - { - "id": "HttpUriConflict", - "namespace": "*" - }, - { - "id": "Service", - "namespace": "*" - } - ] - }, - "shapes": { - "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#jsonName": "message", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

403 response - AccessDeniedException. You do not have sufficient access to perform this action.

", - "smithy.api#error": "client", - "smithy.api#httpError": 403 - } - }, - "com.amazonaws.route53recoverycontrolconfig#AssertionRule": { - "type": "structure", - "members": { - "AssertedControls": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", - "traits": { - "smithy.api#documentation": "

The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.

", - "smithy.api#required": {} - } - }, - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

", - "smithy.api#required": {} - } - }, - "Name": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

Name of the assertion rule. You can use any non-white space character in the name.

", - "smithy.api#required": {} - } - }, - "RuleConfig": { - "target": "com.amazonaws.route53recoverycontrolconfig#RuleConfig", - "traits": { - "smithy.api#documentation": "

The criteria that you set for specific assertion controls (routing controls) that designate how many controls must be enabled as the result of a transaction. For example, if you have three assertion controls, you might specify atleast 2 for your rule configuration. This means that at least two assertion controls must be enabled, so that at least two Amazon Web Services Regions are enabled.

", - "smithy.api#required": {} - } - }, - "SafetyRuleArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the assertion rule.

", - "smithy.api#required": {} - } - }, - "Status": { - "target": "com.amazonaws.route53recoverycontrolconfig#Status", - "traits": { - "smithy.api#documentation": "

The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

", - "smithy.api#required": {} - } - }, - "WaitPeriodMs": { - "target": "com.amazonaws.route53recoverycontrolconfig#__integer", - "traits": { - "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#AssertionRuleUpdate": { - "type": "structure", - "members": { - "Name": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the assertion rule. You can use any non-white space character in the name.

", - "smithy.api#required": {} - } - }, - "SafetyRuleArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the assertion rule.

", - "smithy.api#required": {} - } - }, - "WaitPeriodMs": { - "target": "com.amazonaws.route53recoverycontrolconfig#__integer", - "traits": { - "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

An update to an assertion rule. You can update the name or the evaluation period (wait period). If you don't specify one of the items to update, the item is unchanged.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#Cluster": { - "type": "structure", - "members": { - "ClusterArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster.

" - } - }, - "ClusterEndpoints": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOfClusterEndpoint", - "traits": { - "smithy.api#documentation": "

Endpoints for a cluster. Specify one of these endpoints when you want to set or retrieve a routing control state in the cluster.

To get or update the routing control state, see the Amazon Route 53 Application Recovery Controller Cluster (Data Plane) Actions.

" - } - }, - "Name": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the cluster.

" - } - }, - "Status": { - "target": "com.amazonaws.route53recoverycontrolconfig#Status", - "traits": { - "smithy.api#documentation": "

Deployment status of a resource. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A cluster is a set of five consensus-forming Regional endpoints that represent the infrastructure that hosts your routing controls. Typically, you host together on one cluster all of the routing controls for your applications.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#ClusterEndpoint": { - "type": "structure", - "members": { - "Endpoint": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max128", - "traits": { - "smithy.api#documentation": "

A cluster endpoint. Specify an endpoint and Amazon Web Services Region when you want to set or retrieve a routing control state in the cluster.

To get or update the routing control state, see the Amazon Route 53 Application Recovery Controller Cluster (Data Plane) Actions.

" - } - }, - "Region": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max32", - "traits": { - "smithy.api#documentation": "

The Amazon Web Services Region for a cluster endpoint.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A cluster endpoint. Specify an endpoint when you want to set or retrieve a routing control state in the cluster.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#ConflictException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#jsonName": "message", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

409 response - ConflictException.

", - "smithy.api#error": "client", - "smithy.api#httpError": 409 - } - }, - "com.amazonaws.route53recoverycontrolconfig#ControlPanel": { - "type": "structure", - "members": { - "ClusterArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that includes the control panel.

" - } - }, - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

" - } - }, - "DefaultControlPanel": { - "target": "com.amazonaws.route53recoverycontrolconfig#__boolean", - "traits": { - "smithy.api#documentation": "

A flag that Amazon Route 53 Application Recovery Controller sets to true to designate the default control panel for a cluster. When you create a cluster, Amazon Route 53 Application Recovery Controller creates a control panel, and sets this flag for that control panel. If you create a control panel yourself, this flag is set to false.

" - } - }, - "Name": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the control panel. You can use any non-white space character in the name.

" - } - }, - "RoutingControlCount": { - "target": "com.amazonaws.route53recoverycontrolconfig#__integer", - "traits": { - "smithy.api#documentation": "

The number of routing controls in the control panel.

" - } - }, - "Status": { - "target": "com.amazonaws.route53recoverycontrolconfig#Status", - "traits": { - "smithy.api#documentation": "

The deployment status of control panel. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A control panel represents a group of routing controls that can be changed together in a single transaction.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateCluster": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateClusterRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateClusterResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Create a new cluster. A cluster is a set of redundant Regional endpoints against which you can run API calls to update or get the state of one or more routing controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an array of the five cluster endpoints (one for each supported Amazon Web Services Region) that you can use with API calls to the Amazon Route 53 Application Recovery Controller cluster data plane.

", - "smithy.api#http": { - "method": "POST", - "uri": "/cluster", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateClusterRequest": { - "type": "structure", - "members": { - "ClientToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax64", - "traits": { - "smithy.api#documentation": "

Unique client idempotency token.

", - "smithy.api#idempotencyToken": {} - } - }, - "ClusterName": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the cluster.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Creates a cluster.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateClusterResponse": { - "type": "structure", - "members": { - "Cluster": { - "target": "com.amazonaws.route53recoverycontrolconfig#Cluster", - "traits": { - "smithy.api#documentation": "

The cluster that was created.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateControlPanel": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateControlPanelRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateControlPanelResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Creates a new control panel. A control panel represents a group of routing controls that can be changed together in a single transaction. You can use a control panel to centrally view the operational status of applications across your organization, and trigger multi-app failovers in a single transaction, for example, to fail over an Availability Zone or AWS Region.

", - "smithy.api#http": { - "method": "POST", - "uri": "/controlpanel", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateControlPanelRequest": { - "type": "structure", - "members": { - "ClientToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax64", - "traits": { - "smithy.api#documentation": "

Unique client idempotency token.

", - "smithy.api#idempotencyToken": {} - } - }, - "ClusterArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster for the control panel.

", - "smithy.api#required": {} - } - }, - "ControlPanelName": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the control panel.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The details of the control panel that you're creating.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateControlPanelResponse": { - "type": "structure", - "members": { - "ControlPanel": { - "target": "com.amazonaws.route53recoverycontrolconfig#ControlPanel", - "traits": { - "smithy.api#documentation": "

Information about a control panel.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControl": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControlRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControlResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Creates a new routing control.

A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control traffic routing.

To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.

", - "smithy.api#http": { - "method": "POST", - "uri": "/routingcontrol", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControlRequest": { - "type": "structure", - "members": { - "ClientToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax64", - "traits": { - "smithy.api#documentation": "

Unique client idempotency token.

", - "smithy.api#idempotencyToken": {} - } - }, - "ClusterArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that includes the routing control.

", - "smithy.api#required": {} - } - }, - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that includes the routing control.

" - } - }, - "RoutingControlName": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the routing control.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The details of the routing control that you're creating.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControlResponse": { - "type": "structure", - "members": { - "RoutingControl": { - "target": "com.amazonaws.route53recoverycontrolconfig#RoutingControl", - "traits": { - "smithy.api#documentation": "

The routing control that is created.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRule": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRuleRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRuleResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Creates a safety rule in a control panel. Safety rules let you add safeguards around enabling and disabling routing controls, to help prevent unexpected outcomes.

There are two types of safety rules: assertion rules and gating rules.

Assertion rule: An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.

Gating rule: A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.

", - "smithy.api#http": { - "method": "POST", - "uri": "/safetyrule", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRuleRequest": { - "type": "structure", - "members": { - "AssertionRule": { - "target": "com.amazonaws.route53recoverycontrolconfig#NewAssertionRule" - }, - "ClientToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax64", - "traits": { - "smithy.api#documentation": "

Unique client idempotency token.

", - "smithy.api#idempotencyToken": {} - } - }, - "GatingRule": { - "target": "com.amazonaws.route53recoverycontrolconfig#NewGatingRule" - } - }, - "traits": { - "smithy.api#documentation": "

The request body that you include when you create a safety rule.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRuleResponse": { - "type": "structure", - "members": { - "AssertionRule": { - "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRule" - }, - "GatingRule": { - "target": "com.amazonaws.route53recoverycontrolconfig#GatingRule" - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteCluster": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteClusterRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteClusterResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Delete a cluster.

", - "smithy.api#http": { - "method": "DELETE", - "uri": "/cluster/{ClusterArn}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteClusterRequest": { - "type": "structure", - "members": { - "ClusterArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that you're deleting.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteClusterResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanel": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanelRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanelResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Deletes a control panel.

", - "smithy.api#http": { - "method": "DELETE", - "uri": "/controlpanel/{ControlPanelArn}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanelRequest": { - "type": "structure", - "members": { - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that you're deleting.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanelResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControl": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControlRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControlResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Deletes a routing control.

", - "smithy.api#http": { - "method": "DELETE", - "uri": "/routingcontrol/{RoutingControlArn}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControlRequest": { - "type": "structure", - "members": { - "RoutingControlArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control that you're deleting.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControlResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRule": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRuleRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRuleResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Deletes a safety rule.

/>", - "smithy.api#http": { - "method": "DELETE", - "uri": "/safetyrule/{SafetyRuleArn}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRuleRequest": { - "type": "structure", - "members": { - "SafetyRuleArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The request body that you include when you update a safety rule.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRuleResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeCluster": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeClusterRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeClusterResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Display the details about a cluster. The response includes the cluster name, endpoints, status, and Amazon Resource Name (ARN).

", - "smithy.api#http": { - "method": "GET", - "uri": "/cluster/{ClusterArn}", - "code": 200 - }, - "smithy.waiters#waitable": { - "ClusterCreated": { - "documentation": "Wait until a cluster is created", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "Cluster.Status", - "expected": "DEPLOYED", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "output": { - "path": "Cluster.Status", - "expected": "PENDING", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "errorType": "InternalServerException" - } - } - ], - "minDelay": 5 - }, - "ClusterDeleted": { - "documentation": "Wait for a cluster to be deleted", - "acceptors": [ - { - "state": "success", - "matcher": { - "errorType": "ResourceNotFoundException" - } - }, - { - "state": "retry", - "matcher": { - "output": { - "path": "Cluster.Status", - "expected": "PENDING_DELETION", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "errorType": "InternalServerException" - } - } - ], - "minDelay": 5 - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeClusterRequest": { - "type": "structure", - "members": { - "ClusterArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that you're getting details for.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeClusterResponse": { - "type": "structure", - "members": { - "Cluster": { - "target": "com.amazonaws.route53recoverycontrolconfig#Cluster", - "traits": { - "smithy.api#documentation": "

The cluster for the DescribeCluster request.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanel": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanelRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanelResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Displays details about a control panel.

", - "smithy.api#http": { - "method": "GET", - "uri": "/controlpanel/{ControlPanelArn}", - "code": 200 - }, - "smithy.waiters#waitable": { - "ControlPanelCreated": { - "documentation": "Wait until a control panel is created", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "ControlPanel.Status", - "expected": "DEPLOYED", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "output": { - "path": "ControlPanel.Status", - "expected": "PENDING", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "errorType": "InternalServerException" - } - } - ], - "minDelay": 5 - }, - "ControlPanelDeleted": { - "documentation": "Wait until a control panel is deleted", - "acceptors": [ - { - "state": "success", - "matcher": { - "errorType": "ResourceNotFoundException" - } - }, - { - "state": "retry", - "matcher": { - "output": { - "path": "ControlPanel.Status", - "expected": "PENDING_DELETION", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "errorType": "InternalServerException" - } - } - ], - "minDelay": 5 - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanelRequest": { - "type": "structure", - "members": { - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that you're getting details for.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanelResponse": { - "type": "structure", - "members": { - "ControlPanel": { - "target": "com.amazonaws.route53recoverycontrolconfig#ControlPanel", - "traits": { - "smithy.api#documentation": "

Information about the control panel.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControl": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControlRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControlResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Displays details about a routing control. A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.

To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.

", - "smithy.api#http": { - "method": "GET", - "uri": "/routingcontrol/{RoutingControlArn}", - "code": 200 - }, - "smithy.waiters#waitable": { - "RoutingControlCreated": { - "documentation": "Wait until a routing control is created", - "acceptors": [ - { - "state": "success", - "matcher": { - "output": { - "path": "RoutingControl.Status", - "expected": "DEPLOYED", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "output": { - "path": "RoutingControl.Status", - "expected": "PENDING", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "errorType": "InternalServerException" - } - } - ], - "minDelay": 5 - }, - "RoutingControlDeleted": { - "documentation": "Wait for a routing control to be deleted", - "acceptors": [ - { - "state": "success", - "matcher": { - "errorType": "ResourceNotFoundException" - } - }, - { - "state": "retry", - "matcher": { - "output": { - "path": "RoutingControl.Status", - "expected": "PENDING_DELETION", - "comparator": "stringEquals" - } - } - }, - { - "state": "retry", - "matcher": { - "errorType": "InternalServerException" - } - } - ], - "minDelay": 5 - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControlRequest": { - "type": "structure", - "members": { - "RoutingControlArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control that you're getting details for.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControlResponse": { - "type": "structure", - "members": { - "RoutingControl": { - "target": "com.amazonaws.route53recoverycontrolconfig#RoutingControl", - "traits": { - "smithy.api#documentation": "

Information about the routing control.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRule": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRuleRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRuleResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Describes the safety rules (that is, the assertion rules and gating rules) for the routing controls in a control panel.

", - "smithy.api#http": { - "method": "GET", - "uri": "/safetyrule/{SafetyRuleArn}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRuleRequest": { - "type": "structure", - "members": { - "SafetyRuleArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The request body that you include when you update a safety rule.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRuleResponse": { - "type": "structure", - "members": { - "AssertionRule": { - "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRule" - }, - "GatingRule": { - "target": "com.amazonaws.route53recoverycontrolconfig#GatingRule" - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#GatingRule": { - "type": "structure", - "members": { - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

", - "smithy.api#required": {} - } - }, - "GatingControls": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", - "traits": { - "smithy.api#documentation": "

The gating controls for the gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.

", - "smithy.api#required": {} - } - }, - "Name": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name for the gating rule.

", - "smithy.api#required": {} - } - }, - "RuleConfig": { - "target": "com.amazonaws.route53recoverycontrolconfig#RuleConfig", - "traits": { - "smithy.api#documentation": "

The criteria that you set for specific gating controls (routing controls) that designates how many controls must be enabled to allow you to change (set or unset) the target controls.

", - "smithy.api#required": {} - } - }, - "SafetyRuleArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the gating rule.

", - "smithy.api#required": {} - } - }, - "Status": { - "target": "com.amazonaws.route53recoverycontrolconfig#Status", - "traits": { - "smithy.api#documentation": "

The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

", - "smithy.api#required": {} - } - }, - "TargetControls": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", - "traits": { - "smithy.api#documentation": "

Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three Amazon Web Services Regions. Now you specify ATLEAST 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true.

In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.

", - "smithy.api#required": {} - } - }, - "WaitPeriodMs": { - "target": "com.amazonaws.route53recoverycontrolconfig#__integer", - "traits": { - "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#GatingRuleUpdate": { - "type": "structure", - "members": { - "Name": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name for the gating rule.

", - "smithy.api#required": {} - } - }, - "SafetyRuleArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the gating rule.

", - "smithy.api#required": {} - } - }, - "WaitPeriodMs": { - "target": "com.amazonaws.route53recoverycontrolconfig#__integer", - "traits": { - "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Update to a gating rule. You can update the name or the evaluation period (wait period). If you don't specify one of the items to update, the item is unchanged.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#InternalServerException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#jsonName": "message", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

500 response - InternalServiceError. Temporary service error. Retry the request.

", - "smithy.api#error": "server", - "smithy.api#httpError": 500 - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecks": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecksRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecksResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Returns an array of all Amazon Route 53 health checks associated with a specific routing control.

", - "smithy.api#http": { - "method": "GET", - "uri": "/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecksRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", - "traits": { - "smithy.api#documentation": "

The number of objects that you want to return with this call.

", - "smithy.api#httpQuery": "MaxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", - "smithy.api#httpQuery": "NextToken" - } - }, - "RoutingControlArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control that you're getting details for.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecksResponse": { - "type": "structure", - "members": { - "HealthCheckIds": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", - "traits": { - "smithy.api#documentation": "

Identifiers for the health checks.

" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListClusters": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListClustersRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListClustersResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Returns an array of all the clusters in an account.

", - "smithy.api#http": { - "method": "GET", - "uri": "/cluster", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListClustersRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", - "traits": { - "smithy.api#documentation": "

The number of objects that you want to return with this call.

", - "smithy.api#httpQuery": "MaxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", - "smithy.api#httpQuery": "NextToken" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListClustersResponse": { - "type": "structure", - "members": { - "Clusters": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOfCluster", - "traits": { - "smithy.api#documentation": "

An array of the clusters in an account.

" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListControlPanels": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListControlPanelsRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListControlPanelsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Returns an array of control panels for a cluster.

", - "smithy.api#http": { - "method": "GET", - "uri": "/controlpanels", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListControlPanelsRequest": { - "type": "structure", - "members": { - "ClusterArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a cluster.

", - "smithy.api#httpQuery": "ClusterArn" - } - }, - "MaxResults": { - "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", - "traits": { - "smithy.api#documentation": "

The number of objects that you want to return with this call.

", - "smithy.api#httpQuery": "MaxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", - "smithy.api#httpQuery": "NextToken" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListControlPanelsResponse": { - "type": "structure", - "members": { - "ControlPanels": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOfControlPanel", - "traits": { - "smithy.api#documentation": "

The result of a successful ListControlPanel request.

" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListRoutingControls": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListRoutingControlsRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListRoutingControlsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Returns an array of routing controls for a control panel. A routing control is an Amazon Route 53 Application Recovery Controller construct that has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.

", - "smithy.api#http": { - "method": "GET", - "uri": "/controlpanel/{ControlPanelArn}/routingcontrols", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListRoutingControlsRequest": { - "type": "structure", - "members": { - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that you're getting routing control details for.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "MaxResults": { - "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", - "traits": { - "smithy.api#documentation": "

The number of objects that you want to return with this call.

", - "smithy.api#httpQuery": "MaxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", - "smithy.api#httpQuery": "NextToken" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListRoutingControlsResponse": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" - } - }, - "RoutingControls": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOfRoutingControl", - "traits": { - "smithy.api#documentation": "

An array of routing controls.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListSafetyRules": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListSafetyRulesRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#ListSafetyRulesResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

List the safety rules (the assertion rules and gating rules) that you've defined for the routing controls in a control panel.

", - "smithy.api#http": { - "method": "GET", - "uri": "/controlpanel/{ControlPanelArn}/safetyrules", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListSafetyRulesRequest": { - "type": "structure", - "members": { - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that you're getting details for.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "MaxResults": { - "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", - "traits": { - "smithy.api#documentation": "

The number of objects that you want to return with this call.

", - "smithy.api#httpQuery": "MaxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", - "smithy.api#httpQuery": "NextToken" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ListSafetyRulesResponse": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", - "traits": { - "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" - } - }, - "SafetyRules": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOfRule", - "traits": { - "smithy.api#documentation": "

The list of safety rules in a control panel.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#MaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 1000 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#NewAssertionRule": { - "type": "structure", - "members": { - "AssertedControls": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", - "traits": { - "smithy.api#documentation": "

The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.

", - "smithy.api#required": {} - } - }, - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the control panel.

", - "smithy.api#required": {} - } - }, - "Name": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the assertion rule. You can use any non-white space character in the name.

", - "smithy.api#required": {} - } - }, - "RuleConfig": { - "target": "com.amazonaws.route53recoverycontrolconfig#RuleConfig", - "traits": { - "smithy.api#documentation": "

The criteria that you set for specific assertion controls (routing controls) that designate how many controls must be enabled as the result of a transaction. For example, if you have three assertion controls, you might specify atleast 2 for your rule configuration. This means that at least two assertion controls must be enabled, so that at least two Amazon Web Services Regions are enabled.

", - "smithy.api#required": {} - } - }, - "WaitPeriodMs": { - "target": "com.amazonaws.route53recoverycontrolconfig#__integer", - "traits": { - "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

A new assertion rule for a control panel.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#NewGatingRule": { - "type": "structure", - "members": { - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

", - "smithy.api#required": {} - } - }, - "GatingControls": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", - "traits": { - "smithy.api#documentation": "

The gating controls for the new gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.

", - "smithy.api#required": {} - } - }, - "Name": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name for the new gating rule.

", - "smithy.api#required": {} - } - }, - "RuleConfig": { - "target": "com.amazonaws.route53recoverycontrolconfig#RuleConfig", - "traits": { - "smithy.api#documentation": "

The criteria that you set for specific gating controls (routing controls) that designates how many controls must be enabled to allow you to change (set or unset) the target controls.

", - "smithy.api#required": {} - } - }, - "TargetControls": { - "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", - "traits": { - "smithy.api#documentation": "

Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three Amazon Web Services Regions. Now you specify AtLeast 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true.

In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.

", - "smithy.api#required": {} - } - }, - "WaitPeriodMs": { - "target": "com.amazonaws.route53recoverycontrolconfig#__integer", - "traits": { - "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

A new gating rule for a control panel.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#jsonName": "message", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

404 response - The query string contains a syntax error or resource not found.

", - "smithy.api#error": "client", - "smithy.api#httpError": 404 - } - }, - "com.amazonaws.route53recoverycontrolconfig#Route53RecoveryControlConfig": { - "type": "service", - "version": "2020-11-02", - "operations": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateCluster" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateControlPanel" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControl" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRule" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteCluster" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanel" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControl" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRule" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeCluster" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanel" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControl" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRule" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecks" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ListClusters" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ListControlPanels" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ListRoutingControls" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ListSafetyRules" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanel" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControl" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRule" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "Route53 Recovery Control Config", - "arnNamespace": "route53-recovery-control-config", - "cloudFormationName": "Route53RecoveryControlConfig", - "cloudTrailEventSource": "route53recoverycontrolconfig.amazonaws.com", - "endpointPrefix": "route53-recovery-control-config" - }, - "aws.auth#sigv4": { - "name": "route53-recovery-control-config" - }, - "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

Recovery Control Configuration API Reference for Amazon Route 53 Application Recovery Controller

", - "smithy.api#title": "AWS Route53 Recovery Control Config" - } - }, - "com.amazonaws.route53recoverycontrolconfig#RoutingControl": { - "type": "structure", - "members": { - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that includes the routing control.

" - } - }, - "Name": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the routing control.

" - } - }, - "RoutingControlArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control.

" - } - }, - "Status": { - "target": "com.amazonaws.route53recoverycontrolconfig#Status", - "traits": { - "smithy.api#documentation": "

The deployment status of a routing control. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control traffic routing.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#Rule": { - "type": "structure", - "members": { - "ASSERTION": { - "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRule", - "traits": { - "smithy.api#documentation": "

An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.

" - } - }, - "GATING": { - "target": "com.amazonaws.route53recoverycontrolconfig#GatingRule", - "traits": { - "smithy.api#documentation": "

A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A safety rule. A safety rule can be an assertion rule or a gating rule.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#RuleConfig": { - "type": "structure", - "members": { - "Inverted": { - "target": "com.amazonaws.route53recoverycontrolconfig#__boolean", - "traits": { - "smithy.api#documentation": "

Logical negation of the rule. If the rule would usually evaluate true, it's evaluated as false, and vice versa.

", - "smithy.api#required": {} - } - }, - "Threshold": { - "target": "com.amazonaws.route53recoverycontrolconfig#__integer", - "traits": { - "smithy.api#documentation": "

The value of N, when you specify an ATLEAST rule type. That is, Threshold is the number of controls that must be set when you specify an ATLEAST type.

", - "smithy.api#required": {} - } - }, - "Type": { - "target": "com.amazonaws.route53recoverycontrolconfig#RuleType", - "traits": { - "smithy.api#documentation": "

A rule can be one of the following: ATLEAST, AND, or OR.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The rule configuration for an assertion rule. That is, the criteria that you set for specific assertion controls (routing controls) that specify how many controls must be enabled after a transaction completes.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#RuleType": { - "type": "string", - "traits": { - "smithy.api#documentation": "

An enumerated type that determines how the evaluated rules are processed. RuleType can be one of the following:

ATLEAST - At least N routing controls must be set. You specify N as the Threshold in the rule configuration.

AND - All routing controls must be set. This is a shortcut for \"At least N,\" where N is the total number of controls in the rule.

OR - Any control must be set. This is a shortcut for \"At least N,\" where N is 1.

", - "smithy.api#enum": [ - { - "value": "ATLEAST", - "name": "ATLEAST" - }, - { - "value": "AND", - "name": "AND" - }, - { - "value": "OR", - "name": "OR" - } - ] - } - }, - "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#jsonName": "message", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

402 response

", - "smithy.api#error": "client", - "smithy.api#httpError": 402 - } - }, - "com.amazonaws.route53recoverycontrolconfig#Status": { - "type": "string", - "traits": { - "smithy.api#documentation": "

The deployment status of a resource. Status can be one of the following:

PENDING: Amazon Route 53 Application Recovery Controller is creating the resource.

DEPLOYED: The resource is deployed and ready to use.

PENDING_DELETION: Amazon Route 53 Application Recovery Controller is deleting the resource.

", - "smithy.api#enum": [ - { - "value": "PENDING", - "name": "PENDING" - }, - { - "value": "DEPLOYED", - "name": "DEPLOYED" - }, - { - "value": "PENDING_DELETION", - "name": "PENDING_DELETION" - } - ] - } - }, - "com.amazonaws.route53recoverycontrolconfig#ThrottlingException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#jsonName": "message", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

429 response - ThrottlingException.

", - "smithy.api#error": "client", - "smithy.api#httpError": 429 - } - }, - "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanel": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanelRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanelResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Updates a control panel. The only update you can make to a control panel is to change the name of the control panel.

", - "smithy.api#http": { - "method": "PUT", - "uri": "/controlpanel", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanelRequest": { - "type": "structure", - "members": { - "ControlPanelArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

", - "smithy.api#required": {} - } - }, - "ControlPanelName": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the control panel.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The details of the control panel that you're updating.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanelResponse": { - "type": "structure", - "members": { - "ControlPanel": { - "target": "com.amazonaws.route53recoverycontrolconfig#ControlPanel", - "traits": { - "smithy.api#documentation": "

The control panel to update.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControl": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControlRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControlResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Updates a routing control. You can only update the name of the routing control. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.

", - "smithy.api#http": { - "method": "PUT", - "uri": "/routingcontrol", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControlRequest": { - "type": "structure", - "members": { - "RoutingControlArn": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control.

", - "smithy.api#required": {} - } - }, - "RoutingControlName": { - "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", - "traits": { - "smithy.api#documentation": "

The name of the routing control.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

The details of the routing control that you're updating.

" - } - }, - "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControlResponse": { - "type": "structure", - "members": { - "RoutingControl": { - "target": "com.amazonaws.route53recoverycontrolconfig#RoutingControl", - "traits": { - "smithy.api#documentation": "

The routing control that was updated.

" - } - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRule": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRuleRequest" - }, - "output": { - "target": "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRuleResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Update a safety rule (an assertion rule or gating rule) for the routing controls in a control panel. You can only update the name and the waiting period for a safety rule. To make other updates, delete the safety rule and create a new safety rule.

", - "smithy.api#http": { - "method": "PUT", - "uri": "/safetyrule", - "code": 200 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRuleRequest": { - "type": "structure", - "members": { - "AssertionRuleUpdate": { - "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRuleUpdate" - }, - "GatingRuleUpdate": { - "target": "com.amazonaws.route53recoverycontrolconfig#GatingRuleUpdate" - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRuleResponse": { - "type": "structure", - "members": { - "AssertionRule": { - "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRule" - }, - "GatingRule": { - "target": "com.amazonaws.route53recoverycontrolconfig#GatingRule" - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#ValidationException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string", - "traits": { - "smithy.api#jsonName": "message", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you used parameters together incorrectly.

", - "smithy.api#error": "client", - "smithy.api#httpError": 400 - } - }, - "com.amazonaws.route53recoverycontrolconfig#__boolean": { - "type": "boolean" - }, - "com.amazonaws.route53recoverycontrolconfig#__integer": { - "type": "integer" - }, - "com.amazonaws.route53recoverycontrolconfig#__listOfCluster": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoverycontrolconfig#Cluster" - } - }, - "com.amazonaws.route53recoverycontrolconfig#__listOfClusterEndpoint": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoverycontrolconfig#ClusterEndpoint" - } - }, - "com.amazonaws.route53recoverycontrolconfig#__listOfControlPanel": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoverycontrolconfig#ControlPanel" - } - }, - "com.amazonaws.route53recoverycontrolconfig#__listOfRoutingControl": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoverycontrolconfig#RoutingControl" - } - }, - "com.amazonaws.route53recoverycontrolconfig#__listOfRule": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoverycontrolconfig#Rule" - } - }, - "com.amazonaws.route53recoverycontrolconfig#__listOf__string": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoverycontrolconfig#__string" - } - }, - "com.amazonaws.route53recoverycontrolconfig#__string": { - "type": "string" - }, - "com.amazonaws.route53recoverycontrolconfig#__stringMax64": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 64 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#__stringMax8096": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 8096 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max128": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max32": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 32 - } - } - }, - "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 64 - }, - "smithy.api#pattern": "^\\S+$" - } - } - } -} diff --git a/codegen/sdk-codegen/aws-models/route53recoveryreadiness.2019-12-02.json b/codegen/sdk-codegen/aws-models/route53recoveryreadiness.2019-12-02.json deleted file mode 100644 index 8cb4c8acee3..00000000000 --- a/codegen/sdk-codegen/aws-models/route53recoveryreadiness.2019-12-02.json +++ /dev/null @@ -1,3373 +0,0 @@ -{ - "smithy": "1.0", - "metadata": { - "suppressions": [ - { - "id": "HttpMethodSemantics", - "namespace": "*" - }, - { - "id": "HttpResponseCodeSemantics", - "namespace": "*" - }, - { - "id": "PaginatedTrait", - "namespace": "*" - }, - { - "id": "HttpHeaderTrait", - "namespace": "*" - }, - { - "id": "HttpUriConflict", - "namespace": "*" - }, - { - "id": "Service", - "namespace": "*" - } - ] - }, - "shapes": { - "com.amazonaws.route53recoveryreadiness#AccessDeniedException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#documentation": "User does not have sufficient access to perform this action.", - "smithy.api#error": "client", - "smithy.api#httpError": 403 - } - }, - "com.amazonaws.route53recoveryreadiness#CellOutput": { - "type": "structure", - "members": { - "CellArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the Cell", - "smithy.api#jsonName": "cellArn", - "smithy.api#required": {} - } - }, - "CellName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the Cell", - "smithy.api#jsonName": "cellName", - "smithy.api#required": {} - } - }, - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns", - "smithy.api#jsonName": "cells", - "smithy.api#required": {} - } - }, - "ParentReadinessScopes": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell ARNs and/or RecoveryGroup ARNs", - "smithy.api#jsonName": "parentReadinessScopes", - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#documentation": "A Cell and its properties" - } - }, - "com.amazonaws.route53recoveryreadiness#ConflictException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#documentation": "Updating or deleting a resource can cause an inconsistent state.", - "smithy.api#error": "client", - "smithy.api#httpError": 409 - } - }, - "com.amazonaws.route53recoveryreadiness#CreateCell": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#CreateCellRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#CreateCellResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ConflictException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Creates a new Cell.", - "smithy.api#http": { - "method": "POST", - "uri": "/cells", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#CreateCellRequest": { - "type": "structure", - "members": { - "CellName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The name of the Cell to create", - "smithy.api#jsonName": "cellName", - "smithy.api#required": {} - } - }, - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns contained within this Cell (for use in nested Cells, e.g. regions within which AZs)", - "smithy.api#jsonName": "cells" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#documentation": "The Cell to create" - } - }, - "com.amazonaws.route53recoveryreadiness#CreateCellResponse": { - "type": "structure", - "members": { - "CellArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the Cell", - "smithy.api#jsonName": "cellArn" - } - }, - "CellName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the Cell", - "smithy.api#jsonName": "cellName" - } - }, - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns", - "smithy.api#jsonName": "cells" - } - }, - "ParentReadinessScopes": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell ARNs and/or RecoveryGroup ARNs", - "smithy.api#jsonName": "parentReadinessScopes" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorization": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorizationRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorizationResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ConflictException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Create a new cross account readiness authorization.", - "smithy.api#http": { - "method": "POST", - "uri": "/crossaccountauthorizations", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorizationRequest": { - "type": "structure", - "members": { - "CrossAccountAuthorization": { - "target": "com.amazonaws.route53recoveryreadiness#CrossAccountAuthorization", - "traits": { - "smithy.api#documentation": "The cross account authorization", - "smithy.api#jsonName": "crossAccountAuthorization", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "The cross account authorization" - } - }, - "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorizationResponse": { - "type": "structure", - "members": { - "CrossAccountAuthorization": { - "target": "com.amazonaws.route53recoveryreadiness#CrossAccountAuthorization", - "traits": { - "smithy.api#documentation": "The cross account authorization", - "smithy.api#jsonName": "crossAccountAuthorization" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#CreateReadinessCheck": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#CreateReadinessCheckRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#CreateReadinessCheckResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ConflictException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Creates a new Readiness Check.", - "smithy.api#http": { - "method": "POST", - "uri": "/readinesschecks", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#CreateReadinessCheckRequest": { - "type": "structure", - "members": { - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The name of the ReadinessCheck to create", - "smithy.api#jsonName": "readinessCheckName", - "smithy.api#required": {} - } - }, - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The name of the ResourceSet to check", - "smithy.api#jsonName": "resourceSetName", - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#documentation": "The ReadinessCheck to create" - } - }, - "com.amazonaws.route53recoveryreadiness#CreateReadinessCheckResponse": { - "type": "structure", - "members": { - "ReadinessCheckArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "Arn associated with ReadinessCheck", - "smithy.api#jsonName": "readinessCheckArn" - } - }, - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "Name for a ReadinessCheck", - "smithy.api#jsonName": "readinessCheckName" - } - }, - "ResourceSet": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "Name of the ResourceSet to be checked", - "smithy.api#jsonName": "resourceSet" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroupRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ConflictException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Creates a new Recovery Group.", - "smithy.api#http": { - "method": "POST", - "uri": "/recoverygroups", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroupRequest": { - "type": "structure", - "members": { - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns", - "smithy.api#jsonName": "cells" - } - }, - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The name of the RecoveryGroup to create", - "smithy.api#jsonName": "recoveryGroupName", - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#documentation": "The RecoveryGroup to create" - } - }, - "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroupResponse": { - "type": "structure", - "members": { - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns", - "smithy.api#jsonName": "cells" - } - }, - "RecoveryGroupArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the RecoveryGroup", - "smithy.api#jsonName": "recoveryGroupArn" - } - }, - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the RecoveryGroup", - "smithy.api#jsonName": "recoveryGroupName" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#CreateResourceSet": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#CreateResourceSetRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#CreateResourceSetResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ConflictException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Creates a new Resource Set.", - "smithy.api#http": { - "method": "POST", - "uri": "/resourcesets", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#CreateResourceSetRequest": { - "type": "structure", - "members": { - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The name of the ResourceSet to create", - "smithy.api#jsonName": "resourceSetName", - "smithy.api#required": {} - } - }, - "ResourceSetType": { - "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", - "traits": { - "smithy.api#documentation": "AWS Resource type of the resources in the ResourceSet", - "smithy.api#jsonName": "resourceSetType", - "smithy.api#required": {} - } - }, - "Resources": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", - "traits": { - "smithy.api#documentation": "A list of Resource objects", - "smithy.api#jsonName": "resources", - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#documentation": "The ResourceSet to create" - } - }, - "com.amazonaws.route53recoveryreadiness#CreateResourceSetResponse": { - "type": "structure", - "members": { - "ResourceSetArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the ResourceSet", - "smithy.api#jsonName": "resourceSetArn" - } - }, - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the ResourceSet", - "smithy.api#jsonName": "resourceSetName" - } - }, - "ResourceSetType": { - "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", - "traits": { - "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", - "smithy.api#jsonName": "resourceSetType" - } - }, - "Resources": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", - "traits": { - "smithy.api#documentation": "A list of Resource objects", - "smithy.api#jsonName": "resources" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#CrossAccountAuthorization": { - "type": "string", - "traits": { - "smithy.api#documentation": "A cross-account authorization, e.g. arn:aws:iam::123456789012:root" - } - }, - "com.amazonaws.route53recoveryreadiness#DNSTargetResource": { - "type": "structure", - "members": { - "DomainName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The DNS Name that acts as ingress point to a portion of application", - "smithy.api#jsonName": "domainName" - } - }, - "HostedZoneArn": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The Hosted Zone ARN that contains the DNS record with the provided name of target resource.", - "smithy.api#jsonName": "hostedZoneArn" - } - }, - "RecordSetId": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The R53 Set Id to uniquely identify a record given a Name and a Type", - "smithy.api#jsonName": "recordSetId" - } - }, - "RecordType": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The Type of DNS Record of target resource", - "smithy.api#jsonName": "recordType" - } - }, - "TargetResource": { - "target": "com.amazonaws.route53recoveryreadiness#TargetResource", - "traits": { - "smithy.api#jsonName": "targetResource" - } - } - }, - "traits": { - "smithy.api#documentation": "A component for DNS/Routing Control Readiness Checks" - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteCell": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#DeleteCellRequest" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Deletes an existing Cell.", - "smithy.api#http": { - "method": "DELETE", - "uri": "/cells/{CellName}", - "code": 204 - } - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteCellRequest": { - "type": "structure", - "members": { - "CellName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The Cell to delete", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorization": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorizationRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorizationResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Delete cross account readiness authorization", - "smithy.api#http": { - "method": "DELETE", - "uri": "/crossaccountauthorizations/{CrossAccountAuthorization}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorizationRequest": { - "type": "structure", - "members": { - "CrossAccountAuthorization": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The cross account authorization", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorizationResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.route53recoveryreadiness#DeleteReadinessCheck": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#DeleteReadinessCheckRequest" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Deletes an existing Readiness Check.", - "smithy.api#http": { - "method": "DELETE", - "uri": "/readinesschecks/{ReadinessCheckName}", - "code": 204 - } - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteReadinessCheckRequest": { - "type": "structure", - "members": { - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ReadinessCheck to delete", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteRecoveryGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#DeleteRecoveryGroupRequest" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Deletes an existing Recovery Group.", - "smithy.api#http": { - "method": "DELETE", - "uri": "/recoverygroups/{RecoveryGroupName}", - "code": 204 - } - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteRecoveryGroupRequest": { - "type": "structure", - "members": { - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The RecoveryGroup to delete", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteResourceSet": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#DeleteResourceSetRequest" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Deletes an existing Resource Set.", - "smithy.api#http": { - "method": "DELETE", - "uri": "/resourcesets/{ResourceSetName}", - "code": 204 - } - } - }, - "com.amazonaws.route53recoveryreadiness#DeleteResourceSetRequest": { - "type": "structure", - "members": { - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ResourceSet to delete", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendations": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendationsRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendationsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns a collection of recommendations to improve resilliance and readiness check quality for a Recovery Group.", - "smithy.api#http": { - "method": "GET", - "uri": "/recoverygroups/{RecoveryGroupName}/architectureRecommendations", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendationsRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#httpQuery": "nextToken" - } - }, - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "Name of RecoveryGroup (top level resource) to be analyzed.", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendationsResponse": { - "type": "structure", - "members": { - "LastAuditTimestamp": { - "target": "com.amazonaws.route53recoveryreadiness#LastAuditTimestamp", - "traits": { - "smithy.api#documentation": "The time a Recovery Group was last assessed for recommendations in UTC ISO-8601 format.", - "smithy.api#jsonName": "lastAuditTimestamp" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection", - "smithy.api#jsonName": "nextToken" - } - }, - "Recommendations": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfRecommendation", - "traits": { - "smithy.api#documentation": "A list of recommendations for the customer's application", - "smithy.api#jsonName": "recommendations" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetCell": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#GetCellRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#GetCellResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns information about a Cell.", - "smithy.api#http": { - "method": "GET", - "uri": "/cells/{CellName}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummary": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummaryRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummaryResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns information about readiness of a Cell.", - "smithy.api#http": { - "method": "GET", - "uri": "/cellreadiness/{CellName}", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "ReadinessChecks", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummaryRequest": { - "type": "structure", - "members": { - "CellName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The name of the Cell", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummaryResponse": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - }, - "Readiness": { - "target": "com.amazonaws.route53recoveryreadiness#Readiness", - "traits": { - "smithy.api#documentation": "The readiness at Cell level.", - "smithy.api#jsonName": "readiness" - } - }, - "ReadinessChecks": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckSummary", - "traits": { - "smithy.api#documentation": "Summaries for the ReadinessChecks making up the Cell", - "smithy.api#jsonName": "readinessChecks" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetCellRequest": { - "type": "structure", - "members": { - "CellName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The Cell to get", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetCellResponse": { - "type": "structure", - "members": { - "CellArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the Cell", - "smithy.api#jsonName": "cellArn" - } - }, - "CellName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the Cell", - "smithy.api#jsonName": "cellName" - } - }, - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns", - "smithy.api#jsonName": "cells" - } - }, - "ParentReadinessScopes": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell ARNs and/or RecoveryGroup ARNs", - "smithy.api#jsonName": "parentReadinessScopes" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetReadinessCheck": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns information about a ReadinessCheck.", - "smithy.api#http": { - "method": "GET", - "uri": "/readinesschecks/{ReadinessCheckName}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetReadinessCheckRequest": { - "type": "structure", - "members": { - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ReadinessCheck to get", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatus": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatusRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatusResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns detailed information about the status of an individual resource within a Readiness Check's Resource Set.", - "smithy.api#http": { - "method": "GET", - "uri": "/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "Rules", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatusRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - }, - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ReadinessCheck to get", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "ResourceIdentifier": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The resource ARN or component Id to get", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatusResponse": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - }, - "Readiness": { - "target": "com.amazonaws.route53recoveryreadiness#Readiness", - "traits": { - "smithy.api#documentation": "The readiness at rule level.", - "smithy.api#jsonName": "readiness" - } - }, - "Rules": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfRuleResult", - "traits": { - "smithy.api#documentation": "Details of the rules's results", - "smithy.api#jsonName": "rules" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResponse": { - "type": "structure", - "members": { - "ReadinessCheckArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "Arn associated with ReadinessCheck", - "smithy.api#jsonName": "readinessCheckArn" - } - }, - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "Name for a ReadinessCheck", - "smithy.api#jsonName": "readinessCheckName" - } - }, - "ResourceSet": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "Name of the ResourceSet to be checked", - "smithy.api#jsonName": "resourceSet" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatus": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatusRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatusResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns information about the status of a Readiness Check.", - "smithy.api#http": { - "method": "GET", - "uri": "/readinesschecks/{ReadinessCheckName}/status", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "Resources", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatusRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - }, - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ReadinessCheck to get", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatusResponse": { - "type": "structure", - "members": { - "Messages": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfMessage", - "traits": { - "smithy.api#documentation": "Top level messages for readiness check status", - "smithy.api#jsonName": "messages" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - }, - "Readiness": { - "target": "com.amazonaws.route53recoveryreadiness#Readiness", - "traits": { - "smithy.api#documentation": "The readiness at rule level.", - "smithy.api#jsonName": "readiness" - } - }, - "Resources": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfResourceResult", - "traits": { - "smithy.api#documentation": "Summary of resources's readiness", - "smithy.api#jsonName": "resources" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetRecoveryGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns information about a Recovery Group.", - "smithy.api#http": { - "method": "GET", - "uri": "/recoverygroups/{RecoveryGroupName}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummary": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummaryRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummaryResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns information about a Recovery Group.", - "smithy.api#http": { - "method": "GET", - "uri": "/recoverygroupreadiness/{RecoveryGroupName}", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "ReadinessChecks", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummaryRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - }, - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The name of the RecoveryGroup", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummaryResponse": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - }, - "Readiness": { - "target": "com.amazonaws.route53recoveryreadiness#Readiness", - "traits": { - "smithy.api#documentation": "The readiness at RecoveryGroup level.", - "smithy.api#jsonName": "readiness" - } - }, - "ReadinessChecks": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckSummary", - "traits": { - "smithy.api#documentation": "Summaries for the ReadinessChecks making up the RecoveryGroup", - "smithy.api#jsonName": "readinessChecks" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupRequest": { - "type": "structure", - "members": { - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The RecoveryGroup to get", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupResponse": { - "type": "structure", - "members": { - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns", - "smithy.api#jsonName": "cells" - } - }, - "RecoveryGroupArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the RecoveryGroup", - "smithy.api#jsonName": "recoveryGroupArn" - } - }, - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the RecoveryGroup", - "smithy.api#jsonName": "recoveryGroupName" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetResourceSet": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#GetResourceSetRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#GetResourceSetResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns information about a Resource Set.", - "smithy.api#http": { - "method": "GET", - "uri": "/resourcesets/{ResourceSetName}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetResourceSetRequest": { - "type": "structure", - "members": { - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ResourceSet to get", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#GetResourceSetResponse": { - "type": "structure", - "members": { - "ResourceSetArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the ResourceSet", - "smithy.api#jsonName": "resourceSetArn" - } - }, - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the ResourceSet", - "smithy.api#jsonName": "resourceSetName" - } - }, - "ResourceSetType": { - "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", - "traits": { - "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", - "smithy.api#jsonName": "resourceSetType" - } - }, - "Resources": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", - "traits": { - "smithy.api#documentation": "A list of Resource objects", - "smithy.api#jsonName": "resources" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#InternalServerException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#documentation": "An unexpected error occurred.", - "smithy.api#error": "server", - "smithy.api#httpError": 500 - } - }, - "com.amazonaws.route53recoveryreadiness#LastAuditTimestamp": { - "type": "timestamp", - "traits": { - "smithy.api#documentation": "The time a Recovery Group was last assessed for recommendations in UTC ISO-8601 format", - "smithy.api#timestampFormat": "date-time" - } - }, - "com.amazonaws.route53recoveryreadiness#ListCells": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#ListCellsRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#ListCellsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns a collection of Cells.", - "smithy.api#http": { - "method": "GET", - "uri": "/cells", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "Cells", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListCellsRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListCellsResponse": { - "type": "structure", - "members": { - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfCellOutput", - "traits": { - "smithy.api#documentation": "A list of Cells", - "smithy.api#jsonName": "cells" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizations": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizationsRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizationsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns a collection of cross account readiness authorizations.", - "smithy.api#http": { - "method": "GET", - "uri": "/crossaccountauthorizations", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "CrossAccountAuthorizations", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizationsRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizationsResponse": { - "type": "structure", - "members": { - "CrossAccountAuthorizations": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfCrossAccountAuthorization", - "traits": { - "smithy.api#documentation": "A list of CrossAccountAuthorizations", - "smithy.api#jsonName": "crossAccountAuthorizations" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListReadinessChecks": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#ListReadinessChecksRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#ListReadinessChecksResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns a collection of Readiness Checks.", - "smithy.api#http": { - "method": "GET", - "uri": "/readinesschecks", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "ReadinessChecks", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListReadinessChecksRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListReadinessChecksResponse": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - }, - "ReadinessChecks": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckOutput", - "traits": { - "smithy.api#documentation": "A list of ReadinessCheck associated with the account", - "smithy.api#jsonName": "readinessChecks" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListRecoveryGroups": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#ListRecoveryGroupsRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#ListRecoveryGroupsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns a collection of Recovery Groups.", - "smithy.api#http": { - "method": "GET", - "uri": "/recoverygroups", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "RecoveryGroups", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListRecoveryGroupsRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListRecoveryGroupsResponse": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - }, - "RecoveryGroups": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfRecoveryGroupOutput", - "traits": { - "smithy.api#documentation": "A list of RecoveryGroups", - "smithy.api#jsonName": "recoveryGroups" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListResourceSets": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#ListResourceSetsRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#ListResourceSetsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns a collection of Resource Sets.", - "smithy.api#http": { - "method": "GET", - "uri": "/resourcesets", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "ResourceSets", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListResourceSetsRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListResourceSetsResponse": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - }, - "ResourceSets": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfResourceSetOutput", - "traits": { - "smithy.api#documentation": "A list of ResourceSets associated with the account", - "smithy.api#jsonName": "resourceSets" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListRules": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#ListRulesRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#ListRulesResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns a collection of rules that are applied as part of Readiness Checks.", - "smithy.api#http": { - "method": "GET", - "uri": "/rules", - "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "Rules", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListRulesOutput": { - "type": "structure", - "members": { - "ResourceType": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64", - "traits": { - "smithy.api#documentation": "The resource type the rule applies to.", - "smithy.api#jsonName": "resourceType", - "smithy.api#required": {} - } - }, - "RuleDescription": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "A description of the rule", - "smithy.api#jsonName": "ruleDescription", - "smithy.api#required": {} - } - }, - "RuleId": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64", - "traits": { - "smithy.api#documentation": "The Rule's ID.", - "smithy.api#jsonName": "ruleId", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "A collection of rules used in a readiness check" - } - }, - "com.amazonaws.route53recoveryreadiness#ListRulesRequest": { - "type": "structure", - "members": { - "MaxResults": { - "target": "com.amazonaws.route53recoveryreadiness#MaxResults", - "traits": { - "smithy.api#documentation": "Upper bound on number of records to return.", - "smithy.api#httpQuery": "maxResults" - } - }, - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", - "smithy.api#httpQuery": "nextToken" - } - }, - "ResourceType": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "Filter parameter which specifies the rules to return given a resource type.", - "smithy.api#httpQuery": "resourceType" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListRulesResponse": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", - "smithy.api#jsonName": "nextToken" - } - }, - "Rules": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfListRulesOutput", - "traits": { - "smithy.api#documentation": "A list of rules", - "smithy.api#jsonName": "rules" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListTagsForResources": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#ListTagsForResourcesRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#ListTagsForResourcesResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Returns a list of the tags assigned to the specified resource.", - "smithy.api#http": { - "method": "GET", - "uri": "/tags/{ResourceArn}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListTagsForResourcesRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ListTagsForResourcesResponse": { - "type": "structure", - "members": { - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#MaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 1000 - } - } - }, - "com.amazonaws.route53recoveryreadiness#Message": { - "type": "structure", - "members": { - "MessageText": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The text of a readiness check message", - "smithy.api#jsonName": "messageText" - } - } - }, - "traits": { - "smithy.api#documentation": "Information relating to readiness check status" - } - }, - "com.amazonaws.route53recoveryreadiness#NLBResource": { - "type": "structure", - "members": { - "Arn": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "An NLB resource arn", - "smithy.api#jsonName": "arn" - } - } - }, - "traits": { - "smithy.api#documentation": "The NLB resource a DNS Target Resource points to" - } - }, - "com.amazonaws.route53recoveryreadiness#R53ResourceRecord": { - "type": "structure", - "members": { - "DomainName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The DNS target name", - "smithy.api#jsonName": "domainName" - } - }, - "RecordSetId": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The Resource Record set id", - "smithy.api#jsonName": "recordSetId" - } - } - }, - "traits": { - "smithy.api#documentation": "The Route 53 resource a DNS Target Resource record points to" - } - }, - "com.amazonaws.route53recoveryreadiness#Readiness": { - "type": "string", - "traits": { - "smithy.api#documentation": "The readiness of an entire ReadinessCheck or an individual resource ARN.", - "smithy.api#enum": [ - { - "value": "READY", - "name": "READY" - }, - { - "value": "NOT_READY", - "name": "NOT_READY" - }, - { - "value": "UNKNOWN", - "name": "UNKNOWN" - }, - { - "value": "NOT_AUTHORIZED", - "name": "NOT_AUTHORIZED" - } - ] - } - }, - "com.amazonaws.route53recoveryreadiness#ReadinessCheckOutput": { - "type": "structure", - "members": { - "ReadinessCheckArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "Arn associated with ReadinessCheck", - "smithy.api#jsonName": "readinessCheckArn", - "smithy.api#required": {} - } - }, - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "Name for a ReadinessCheck", - "smithy.api#jsonName": "readinessCheckName" - } - }, - "ResourceSet": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "Name of the ResourceSet to be checked", - "smithy.api#jsonName": "resourceSet", - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#documentation": "A resource used for checking the readiness of a Resource Set" - } - }, - "com.amazonaws.route53recoveryreadiness#ReadinessCheckSummary": { - "type": "structure", - "members": { - "Readiness": { - "target": "com.amazonaws.route53recoveryreadiness#Readiness", - "traits": { - "smithy.api#documentation": "The readiness of this ReadinessCheck", - "smithy.api#jsonName": "readiness" - } - }, - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The name of a ReadinessCheck which is part of the given RecoveryGroup or Cell", - "smithy.api#jsonName": "readinessCheckName" - } - } - }, - "traits": { - "smithy.api#documentation": "Summary of ReadinessCheck status, paginated in GetRecoveryGroupReadinessSummary and GetCellReadinessSummary" - } - }, - "com.amazonaws.route53recoveryreadiness#ReadinessCheckTimestamp": { - "type": "timestamp", - "traits": { - "smithy.api#documentation": "The time the Cell was last checked for readiness, in ISO-8601 format, UTC.", - "smithy.api#timestampFormat": "date-time" - } - }, - "com.amazonaws.route53recoveryreadiness#Recommendation": { - "type": "structure", - "members": { - "RecommendationText": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "Guidance text for recommendation", - "smithy.api#jsonName": "recommendationText", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "Guidance for improving Recovery Group resilliancy" - } - }, - "com.amazonaws.route53recoveryreadiness#RecoveryGroupOutput": { - "type": "structure", - "members": { - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns", - "smithy.api#jsonName": "cells", - "smithy.api#required": {} - } - }, - "RecoveryGroupArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the RecoveryGroup", - "smithy.api#jsonName": "recoveryGroupArn", - "smithy.api#required": {} - } - }, - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the RecoveryGroup", - "smithy.api#jsonName": "recoveryGroupName", - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#documentation": "A Recovery Group generally containing multiple Cells" - } - }, - "com.amazonaws.route53recoveryreadiness#Resource": { - "type": "structure", - "members": { - "ComponentId": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The component id of the resource, generated by the service when dnsTargetResource is used", - "smithy.api#jsonName": "componentId" - } - }, - "DnsTargetResource": { - "target": "com.amazonaws.route53recoveryreadiness#DNSTargetResource", - "traits": { - "smithy.api#jsonName": "dnsTargetResource" - } - }, - "ReadinessScopes": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained within.", - "smithy.api#jsonName": "readinessScopes" - } - }, - "ResourceArn": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ARN of the AWS resource, can be skipped if dnsTargetResource is used", - "smithy.api#jsonName": "resourceArn" - } - } - }, - "traits": { - "smithy.api#documentation": "The resource element of a ResourceSet" - } - }, - "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#documentation": "The requested resource does not exist.", - "smithy.api#error": "client", - "smithy.api#httpError": 404 - } - }, - "com.amazonaws.route53recoveryreadiness#ResourceResult": { - "type": "structure", - "members": { - "ComponentId": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The component id of the resource", - "smithy.api#jsonName": "componentId" - } - }, - "LastCheckedTimestamp": { - "target": "com.amazonaws.route53recoveryreadiness#ReadinessCheckTimestamp", - "traits": { - "smithy.api#documentation": "The time the resource was last checked for readiness, in ISO-8601 format, UTC.", - "smithy.api#jsonName": "lastCheckedTimestamp", - "smithy.api#required": {} - } - }, - "Readiness": { - "target": "com.amazonaws.route53recoveryreadiness#Readiness", - "traits": { - "smithy.api#documentation": "The readiness of the resource.", - "smithy.api#jsonName": "readiness", - "smithy.api#required": {} - } - }, - "ResourceArn": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ARN of the resource", - "smithy.api#jsonName": "resourceArn" - } - } - }, - "traits": { - "smithy.api#documentation": "Result with status for an individual resource." - } - }, - "com.amazonaws.route53recoveryreadiness#ResourceSetOutput": { - "type": "structure", - "members": { - "ResourceSetArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the ResourceSet", - "smithy.api#jsonName": "resourceSetArn", - "smithy.api#required": {} - } - }, - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the ResourceSet", - "smithy.api#jsonName": "resourceSetName", - "smithy.api#required": {} - } - }, - "ResourceSetType": { - "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", - "traits": { - "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", - "smithy.api#jsonName": "resourceSetType", - "smithy.api#required": {} - } - }, - "Resources": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", - "traits": { - "smithy.api#documentation": "A list of Resource objects", - "smithy.api#jsonName": "resources", - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - }, - "traits": { - "smithy.api#documentation": "A collection of resources of the same type" - } - }, - "com.amazonaws.route53recoveryreadiness#Route53RecoveryReadiness": { - "type": "service", - "version": "2019-12-02", - "operations": [ - { - "target": "com.amazonaws.route53recoveryreadiness#CreateCell" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorization" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#CreateReadinessCheck" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroup" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#CreateResourceSet" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#DeleteCell" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorization" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#DeleteReadinessCheck" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#DeleteRecoveryGroup" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#DeleteResourceSet" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendations" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#GetCell" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummary" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheck" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatus" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatus" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroup" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummary" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#GetResourceSet" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ListCells" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizations" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ListReadinessChecks" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ListRecoveryGroups" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ListResourceSets" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ListRules" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ListTagsForResources" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#TagResource" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#UntagResource" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#UpdateCell" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheck" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroup" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#UpdateResourceSet" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "Route53 Recovery Readiness", - "arnNamespace": "route53-recovery-readiness", - "cloudFormationName": "Route53RecoveryReadiness", - "cloudTrailEventSource": "route53recoveryreadiness.amazonaws.com", - "endpointPrefix": "route53-recovery-readiness" - }, - "aws.auth#sigv4": { - "name": "route53-recovery-readiness" - }, - "aws.protocols#restJson1": {}, - "smithy.api#documentation": "AWS Route53 Recovery Readiness", - "smithy.api#title": "AWS Route53 Recovery Readiness" - } - }, - "com.amazonaws.route53recoveryreadiness#RuleResult": { - "type": "structure", - "members": { - "LastCheckedTimestamp": { - "target": "com.amazonaws.route53recoveryreadiness#ReadinessCheckTimestamp", - "traits": { - "smithy.api#documentation": "The time the resource was last checked for readiness, in ISO-8601 format, UTC.", - "smithy.api#jsonName": "lastCheckedTimestamp", - "smithy.api#required": {} - } - }, - "Messages": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfMessage", - "traits": { - "smithy.api#documentation": "Details about the resource's readiness", - "smithy.api#jsonName": "messages", - "smithy.api#required": {} - } - }, - "Readiness": { - "target": "com.amazonaws.route53recoveryreadiness#Readiness", - "traits": { - "smithy.api#documentation": "The readiness at rule level.", - "smithy.api#jsonName": "readiness", - "smithy.api#required": {} - } - }, - "RuleId": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The identifier of the rule.", - "smithy.api#jsonName": "ruleId", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "Result with status for an individual rule.." - } - }, - "com.amazonaws.route53recoveryreadiness#TagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#TagResourceRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#TagResourceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Adds tags to the specified resource. You can specify one or more tags to add.", - "smithy.api#http": { - "method": "POST", - "uri": "/tags/{ResourceArn}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#TagResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#TagResourceResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.route53recoveryreadiness#Tags": { - "type": "map", - "key": { - "target": "com.amazonaws.route53recoveryreadiness#__string" - }, - "value": { - "target": "com.amazonaws.route53recoveryreadiness#__string" - }, - "traits": { - "smithy.api#documentation": "A collection of tags associated with a resource" - } - }, - "com.amazonaws.route53recoveryreadiness#TargetResource": { - "type": "structure", - "members": { - "NLBResource": { - "target": "com.amazonaws.route53recoveryreadiness#NLBResource", - "traits": { - "smithy.api#jsonName": "nLBResource" - } - }, - "R53Resource": { - "target": "com.amazonaws.route53recoveryreadiness#R53ResourceRecord", - "traits": { - "smithy.api#jsonName": "r53Resource" - } - } - }, - "traits": { - "smithy.api#documentation": "The target resource the R53 record points to" - } - }, - "com.amazonaws.route53recoveryreadiness#ThrottlingException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#documentation": "Request was denied due to request throttling.", - "smithy.api#error": "client", - "smithy.api#httpError": 429 - } - }, - "com.amazonaws.route53recoveryreadiness#UntagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#UntagResourceRequest" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Removes tags from the specified resource. You can specify one or more tags to remove.", - "smithy.api#http": { - "method": "DELETE", - "uri": "/tags/{ResourceArn}", - "code": 204 - } - } - }, - "com.amazonaws.route53recoveryreadiness#UntagResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "TagKeys": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A comma-separated list of the tag keys to remove from the resource.", - "smithy.api#httpQuery": "tagKeys", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateCell": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#UpdateCellRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#UpdateCellResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Updates an existing Cell.", - "smithy.api#http": { - "method": "PUT", - "uri": "/cells/{CellName}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateCellRequest": { - "type": "structure", - "members": { - "CellName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The Cell to update", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns, completely replaces previous list", - "smithy.api#jsonName": "cells", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "Parameters to update for the Cell" - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateCellResponse": { - "type": "structure", - "members": { - "CellArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the Cell", - "smithy.api#jsonName": "cellArn" - } - }, - "CellName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the Cell", - "smithy.api#jsonName": "cellName" - } - }, - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns", - "smithy.api#jsonName": "cells" - } - }, - "ParentReadinessScopes": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell ARNs and/or RecoveryGroup ARNs", - "smithy.api#jsonName": "parentReadinessScopes" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheck": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheckRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheckResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Updates an exisiting Readiness Check.", - "smithy.api#http": { - "method": "PUT", - "uri": "/readinesschecks/{ReadinessCheckName}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheckRequest": { - "type": "structure", - "members": { - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ReadinessCheck to update", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The name of the ResourceSet to check", - "smithy.api#jsonName": "resourceSetName", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "The new Readiness Check values" - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheckResponse": { - "type": "structure", - "members": { - "ReadinessCheckArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "Arn associated with ReadinessCheck", - "smithy.api#jsonName": "readinessCheckArn" - } - }, - "ReadinessCheckName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "Name for a ReadinessCheck", - "smithy.api#jsonName": "readinessCheckName" - } - }, - "ResourceSet": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "Name of the ResourceSet to be checked", - "smithy.api#jsonName": "resourceSet" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroup": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroupRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroupResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Updates an existing Recovery Group.", - "smithy.api#http": { - "method": "PUT", - "uri": "/recoverygroups/{RecoveryGroupName}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroupRequest": { - "type": "structure", - "members": { - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns, completely replaces previous list", - "smithy.api#jsonName": "cells", - "smithy.api#required": {} - } - }, - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The RecoveryGroup to update", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "Parameters to update for the RecoveryGroup" - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroupResponse": { - "type": "structure", - "members": { - "Cells": { - "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", - "traits": { - "smithy.api#documentation": "A list of Cell arns", - "smithy.api#jsonName": "cells" - } - }, - "RecoveryGroupArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the RecoveryGroup", - "smithy.api#jsonName": "recoveryGroupArn" - } - }, - "RecoveryGroupName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the RecoveryGroup", - "smithy.api#jsonName": "recoveryGroupName" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateResourceSet": { - "type": "operation", - "input": { - "target": "com.amazonaws.route53recoveryreadiness#UpdateResourceSetRequest" - }, - "output": { - "target": "com.amazonaws.route53recoveryreadiness#UpdateResourceSetResponse" - }, - "errors": [ - { - "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" - }, - { - "target": "com.amazonaws.route53recoveryreadiness#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Updates an existing Resource Set.", - "smithy.api#http": { - "method": "PUT", - "uri": "/resourcesets/{ResourceSetName}", - "code": 200 - } - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateResourceSetRequest": { - "type": "structure", - "members": { - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#documentation": "The ResourceSet to update", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "ResourceSetType": { - "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", - "traits": { - "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", - "smithy.api#jsonName": "resourceSetType", - "smithy.api#required": {} - } - }, - "Resources": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", - "traits": { - "smithy.api#documentation": "A list of Resource objects", - "smithy.api#jsonName": "resources", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "configuration for the desired" - } - }, - "com.amazonaws.route53recoveryreadiness#UpdateResourceSetResponse": { - "type": "structure", - "members": { - "ResourceSetArn": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", - "traits": { - "smithy.api#documentation": "The arn for the ResourceSet", - "smithy.api#jsonName": "resourceSetArn" - } - }, - "ResourceSetName": { - "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", - "traits": { - "smithy.api#documentation": "The name of the ResourceSet", - "smithy.api#jsonName": "resourceSetName" - } - }, - "ResourceSetType": { - "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", - "traits": { - "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", - "smithy.api#jsonName": "resourceSetType" - } - }, - "Resources": { - "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", - "traits": { - "smithy.api#documentation": "A list of Resource objects", - "smithy.api#jsonName": "resources" - } - }, - "Tags": { - "target": "com.amazonaws.route53recoveryreadiness#Tags", - "traits": { - "smithy.api#jsonName": "tags" - } - } - } - }, - "com.amazonaws.route53recoveryreadiness#ValidationException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.route53recoveryreadiness#__string", - "traits": { - "smithy.api#jsonName": "message" - } - } - }, - "traits": { - "smithy.api#documentation": "The input fails to satisfy the constraints specified by an AWS service.", - "smithy.api#error": "client", - "smithy.api#httpError": 400 - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfCellOutput": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#CellOutput" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfCrossAccountAuthorization": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#CrossAccountAuthorization" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfListRulesOutput": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#ListRulesOutput" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfMessage": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#Message" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckOutput": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#ReadinessCheckOutput" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckSummary": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#ReadinessCheckSummary" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfRecommendation": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#Recommendation" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfRecoveryGroupOutput": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#RecoveryGroupOutput" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfResource": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#Resource" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfResourceResult": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#ResourceResult" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfResourceSetOutput": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#ResourceSetOutput" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOfRuleResult": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#RuleResult" - } - }, - "com.amazonaws.route53recoveryreadiness#__listOf__string": { - "type": "list", - "member": { - "target": "com.amazonaws.route53recoveryreadiness#__string" - } - }, - "com.amazonaws.route53recoveryreadiness#__string": { - "type": "string" - }, - "com.amazonaws.route53recoveryreadiness#__stringMax256": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 256 - } - } - }, - "com.amazonaws.route53recoveryreadiness#__stringMax64": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 64 - } - } - }, - "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 64 - }, - "smithy.api#pattern": "^\\A[a-zA-Z0-9_]+\\z$" - } - }, - "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09": { - "type": "string", - "traits": { - "smithy.api#pattern": "^AWS::[A-Za-z0-9]+::[A-Za-z0-9]+$" - } - } - } -} diff --git a/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json b/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json index 2e34eb6add2..6147f1a0a9b 100644 --- a/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json +++ b/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json @@ -193,7 +193,7 @@ "name": "s3" }, "aws.protocols#restXml": {}, - "smithy.api#documentation": "

\n Amazon Web Services S3 Control provides access to Amazon S3 control plane actions.\n \n

", + "smithy.api#documentation": "

\n AWS S3 Control provides access to Amazon S3 control plane actions.\n \n

", "smithy.api#title": "AWS S3 Control", "smithy.api#xmlNamespace": { "uri": "http://awss3control.amazonaws.com/doc/2018-08-20/" @@ -234,7 +234,7 @@ "VpcConfiguration": { "target": "com.amazonaws.s3control#VpcConfiguration", "traits": { - "smithy.api#documentation": "

The virtual private cloud (VPC) configuration for this access point, if one exists.

\n \n

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services.

\n
" + "smithy.api#documentation": "

The virtual private cloud (VPC) configuration for this access point, if one exists.

\n \n

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other AWS services.

\n
" } }, "Bucket": { @@ -249,12 +249,6 @@ "traits": { "smithy.api#documentation": "

The ARN for the access point.

" } - }, - "Alias": { - "target": "com.amazonaws.s3control#Alias", - "traits": { - "smithy.api#documentation": "

The name or alias of the access point.

" - } } }, "traits": { @@ -275,7 +269,7 @@ "traits": { "smithy.api#length": { "min": 3, - "max": 63 + "max": 50 } } }, @@ -324,23 +318,13 @@ "smithy.api#documentation": "

A container for the activity metrics.

" } }, - "com.amazonaws.s3control#Alias": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 63 - }, - "smithy.api#pattern": "^[0-9a-z\\\\-]{63}$" - } - }, "com.amazonaws.s3control#AwsLambdaTransformation": { "type": "structure", "members": { "FunctionArn": { "target": "com.amazonaws.s3control#FunctionArnString", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Lambda function.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Lambda function.

", "smithy.api#required": {} } }, @@ -352,7 +336,7 @@ } }, "traits": { - "smithy.api#documentation": "

Lambda function used to transform objects through an Object Lambda Access Point.

" + "smithy.api#documentation": "

AWS Lambda function used to transform objects through an Object Lambda Access Point.

" } }, "com.amazonaws.s3control#AwsLambdaTransformationPayload": { @@ -387,7 +371,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

The requested Outposts bucket name is not available. The bucket namespace is shared by\n all users of the Outposts in this Region. Select a different name and try\n again.

", + "smithy.api#documentation": "

The requested Outposts bucket name is not available. The bucket namespace is shared by\n all users of the AWS Outposts in this Region. Select a different name and try\n again.

", "smithy.api#error": "client" } }, @@ -576,7 +560,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for owner of the specified Object Lambda Access Point.

", + "smithy.api#documentation": "

The AWS account ID for owner of the specified Object Lambda Access Point.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -616,7 +600,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for the owner of the bucket for which you want to create an access point.

", + "smithy.api#documentation": "

The AWS account ID for the owner of the bucket for which you want to create an access point.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -633,7 +617,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket that you want to associate this access point with.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the bucket that you want to associate this access point with.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#required": {} } }, @@ -659,12 +643,6 @@ "traits": { "smithy.api#documentation": "

The ARN of the access point.

\n \n

This is only supported by Amazon S3 on Outposts.

\n
" } - }, - "Alias": { - "target": "com.amazonaws.s3control#Alias", - "traits": { - "smithy.api#documentation": "

The name or alias of the access point.

" - } } } }, @@ -798,7 +776,7 @@ "BucketArn": { "target": "com.amazonaws.s3control#S3RegionalBucketArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

" } } } @@ -843,7 +821,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID that creates the job.

", + "smithy.api#documentation": "

The AWS account ID that creates the job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -902,7 +880,7 @@ "RoleArn": { "target": "com.amazonaws.s3control#IAMRoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role\n that Batch Operations will use to run this job's action on every object in the\n manifest.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role\n that Batch Operations will use to run this job's action on every object in the\n manifest.

", "smithy.api#required": {} } }, @@ -1064,7 +1042,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point whose policy you want to delete.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point whose policy you want to delete.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1086,7 +1064,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point you want to delete.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point you want to delete.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1142,7 +1120,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1155,7 +1133,7 @@ "target": "com.amazonaws.s3control#DeleteBucketPolicyRequest" }, "traits": { - "smithy.api#documentation": "\n

This action deletes an Amazon S3 on Outposts bucket policy. To delete an \n S3 bucket policy, see DeleteBucketPolicy in the Amazon S3 API Reference.\n

\n
\n

This implementation of the DELETE action uses the policy subresource to delete the\n policy of a specified Amazon S3 on Outposts bucket. If you are using an identity other than the\n root user of the account that owns the bucket, the calling identity must have the\n s3-outposts:DeleteBucketPolicy permissions on the specified Outposts bucket\n and belong to the bucket owner's account to use this action. For more information, see\n Using Amazon S3 on Outposts in\n Amazon S3 User Guide.

\n \n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but you're\n not using an identity that belongs to the bucket owner's account, Amazon S3 returns a\n 405 Method Not Allowed error.

\n \n \n \n

As a security precaution, the root user of the account that owns a bucket can always use this action,\n even if the policy explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to DeleteBucketPolicy:

\n ", + "smithy.api#documentation": "\n

This action deletes an Amazon S3 on Outposts bucket policy. To delete an \n S3 bucket policy, see DeleteBucketPolicy in the Amazon S3 API Reference.\n

\n
\n

This implementation of the DELETE action uses the policy subresource to delete the\n policy of a specified Amazon S3 on Outposts bucket. If you are using an identity other than the\n root user of the AWS account that owns the bucket, the calling identity must have the\n s3-outposts:DeleteBucketPolicy permissions on the specified Outposts bucket\n and belong to the bucket owner's account to use this action. For more information, see\n Using Amazon S3 on Outposts in\n Amazon S3 User Guide.

\n \n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but you're\n not using an identity that belongs to the bucket owner's account, Amazon S3 returns a\n 405 Method Not Allowed error.

\n \n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this action,\n even if the policy explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to DeleteBucketPolicy:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1181,7 +1159,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1203,7 +1181,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket being deleted.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket being deleted.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1233,7 +1211,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID of the Outposts bucket tag set to be removed.

", + "smithy.api#documentation": "

The AWS account ID of the Outposts bucket tag set to be removed.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -1242,7 +1220,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The bucket ARN that has the tag set to be removed.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The bucket ARN that has the tag set to be removed.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1286,7 +1264,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -1312,7 +1290,7 @@ "target": "com.amazonaws.s3control#DeletePublicAccessBlockRequest" }, "traits": { - "smithy.api#documentation": "

Removes the PublicAccessBlock configuration for an account. For more\n information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Removes the PublicAccessBlock configuration for an AWS account. For more\n information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1329,7 +1307,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for the account whose PublicAccessBlock configuration you want\n to remove.

", + "smithy.api#documentation": "

The account ID for the AWS account whose PublicAccessBlock configuration you want\n to remove.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -1462,7 +1440,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -1489,15 +1467,6 @@ } } }, - "com.amazonaws.s3control#Endpoints": { - "type": "map", - "key": { - "target": "com.amazonaws.s3control#NonEmptyMaxLength64String" - }, - "value": { - "target": "com.amazonaws.s3control#NonEmptyMaxLength1024String" - } - }, "com.amazonaws.s3control#ExceptionMessage": { "type": "string", "traits": { @@ -1796,7 +1765,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point whose policy you want to retrieve.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point whose policy you want to retrieve.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1932,7 +1901,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point whose configuration information you want to retrieve.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point whose configuration information you want to retrieve.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1963,7 +1932,7 @@ "VpcConfiguration": { "target": "com.amazonaws.s3control#VpcConfiguration", "traits": { - "smithy.api#documentation": "

Contains the virtual private cloud (VPC) configuration for the specified access point.

\n \n

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services.

\n
" + "smithy.api#documentation": "

Contains the virtual private cloud (VPC) configuration for the specified access point.

\n \n

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other AWS services.

\n
" } }, "PublicAccessBlockConfiguration": { @@ -1974,24 +1943,6 @@ "traits": { "smithy.api#documentation": "

The date and time when the specified access point was created.

" } - }, - "Alias": { - "target": "com.amazonaws.s3control#Alias", - "traits": { - "smithy.api#documentation": "

The name or alias of the access point.

" - } - }, - "AccessPointArn": { - "target": "com.amazonaws.s3control#S3AccessPointArn", - "traits": { - "smithy.api#documentation": "

The ARN of the access point.

" - } - }, - "Endpoints": { - "target": "com.amazonaws.s3control#Endpoints", - "traits": { - "smithy.api#documentation": "

The VPC endpoint for the access point.

" - } } } }, @@ -2004,7 +1955,7 @@ "target": "com.amazonaws.s3control#GetBucketResult" }, "traits": { - "smithy.api#documentation": "

Gets an Amazon S3 on Outposts bucket. For more information, see \n Using Amazon S3 on Outposts in the Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the account \n that owns the Outposts bucket, the calling identity must have the \n s3-outposts:GetBucket permissions on the specified Outposts bucket and \n belong to the Outposts bucket owner's account in order to use this action. Only \n users from Outposts bucket owner account with the right permissions can perform \n actions on an Outposts bucket. \n

\n

\n If you don't have s3-outposts:GetBucket permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n

The following actions are related to GetBucket for Amazon S3 on Outposts:

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n ", + "smithy.api#documentation": "

Gets an Amazon S3 on Outposts bucket. For more information, see \n Using Amazon S3 on Outposts in the Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the AWS account \n that owns the Outposts bucket, the calling identity must have the \n s3-outposts:GetBucket permissions on the specified Outposts bucket and \n belong to the Outposts bucket owner's account in order to use this action. Only \n users from Outposts bucket owner account with the right permissions can perform \n actions on an Outposts bucket. \n

\n

\n If you don't have s3-outposts:GetBucket permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n

The following actions are related to GetBucket for Amazon S3 on Outposts:

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -2041,7 +1992,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2050,7 +2001,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2077,7 +2028,7 @@ "target": "com.amazonaws.s3control#GetBucketPolicyResult" }, "traits": { - "smithy.api#documentation": "\n

This action gets a bucket policy for an Amazon S3 on Outposts bucket. To get a policy for an S3\n bucket, see GetBucketPolicy in the\n Amazon S3 API Reference.

\n
\n

Returns the policy of a specified Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the account that owns the bucket, the calling identity \n must have the GetBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this action.

\n \n

Only users from Outposts bucket owner account with the right permissions can perform actions on an Outposts bucket. \n If you don't have s3-outposts:GetBucketPolicy permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n \n \n

As a security precaution, the root user of the account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to GetBucketPolicy:

\n ", + "smithy.api#documentation": "\n

This action gets a bucket policy for an Amazon S3 on Outposts bucket. To get a policy for an S3\n bucket, see GetBucketPolicy in the\n Amazon S3 API Reference.

\n
\n

Returns the policy of a specified Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity \n must have the GetBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this action.

\n \n

Only users from Outposts bucket owner account with the right permissions can perform actions on an Outposts bucket. \n If you don't have s3-outposts:GetBucketPolicy permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to GetBucketPolicy:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -2094,7 +2045,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2103,7 +2054,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2127,7 +2078,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2136,7 +2087,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2192,7 +2143,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2201,7 +2152,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2257,7 +2208,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2298,7 +2249,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the PublicAccessBlock configuration for an account. For more\n information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Retrieves the PublicAccessBlock configuration for an AWS account. For more\n information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -2315,7 +2266,7 @@ "PublicAccessBlockConfiguration": { "target": "com.amazonaws.s3control#PublicAccessBlockConfiguration", "traits": { - "smithy.api#documentation": "

The PublicAccessBlock configuration currently in effect for this account.

", + "smithy.api#documentation": "

The PublicAccessBlock configuration currently in effect for this AWS\n account.

", "smithy.api#httpPayload": {} } } @@ -2327,7 +2278,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for the account whose PublicAccessBlock configuration you want\n to retrieve.

", + "smithy.api#documentation": "

The account ID for the AWS account whose PublicAccessBlock configuration you want\n to retrieve.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2648,7 +2599,7 @@ "RoleArn": { "target": "com.amazonaws.s3control#IAMRoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role\n assigned to run the tasks for this job.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role\n assigned to run the tasks for this job.

" } }, "SuspendedDate": { @@ -2921,7 +2872,7 @@ "LambdaInvoke": { "target": "com.amazonaws.s3control#LambdaInvokeOperation", "traits": { - "smithy.api#documentation": "

Directs the specified job to invoke an Lambda function on every object in the manifest.

" + "smithy.api#documentation": "

Directs the specified job to invoke an AWS Lambda function on every object in the manifest.

" } }, "S3PutObjectCopy": { @@ -3180,7 +3131,7 @@ "FunctionArn": { "target": "com.amazonaws.s3control#FunctionArnString", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the Lambda function that the specified job will invoke on every object in the manifest.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Lambda function that the specified job will invoke on every object in the manifest.

" } } }, @@ -3438,7 +3389,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for owner of the bucket whose access points you want to list.

", + "smithy.api#documentation": "

The AWS account ID for owner of the bucket whose access points you want to list.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -3447,7 +3398,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket whose associated access points you want to list.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the bucket whose associated access points you want to list.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpQuery": "bucket" } }, @@ -3504,7 +3455,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists current S3 Batch Operations jobs and jobs that have ended within the last 30 days for\n the account making the request. For more information, see S3 Batch Operations in the\n Amazon S3 User Guide.

\n

Related actions include:

\n

\n ", + "smithy.api#documentation": "

Lists current S3 Batch Operations jobs and jobs that have ended within the last 30 days for\n the AWS account making the request. For more information, see S3 Batch Operations in the\n Amazon S3 User Guide.

\n

Related actions include:

\n

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -3526,7 +3477,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -3604,7 +3555,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -3627,7 +3578,7 @@ "OutpostId": { "target": "com.amazonaws.s3control#NonEmptyMaxLength64String", "traits": { - "smithy.api#documentation": "

The ID of the Outposts.

\n \n

This is required by Amazon S3 on Outposts buckets.

\n
", + "smithy.api#documentation": "

The ID of the AWS Outposts.

\n \n

This is required by Amazon S3 on Outposts buckets.

\n
", "smithy.api#httpHeader": "x-amz-outpost-id" } } @@ -3918,7 +3869,7 @@ } }, "traits": { - "smithy.api#documentation": "

An access point with an attached Lambda function used to access transformed data from an Amazon S3 bucket.

" + "smithy.api#documentation": "

An access point with an attached AWS Lambda function used to access transformed data from an Amazon S3 bucket.

" } }, "com.amazonaws.s3control#ObjectLambdaAccessPointArn": { @@ -4014,7 +3965,7 @@ "AwsLambda": { "target": "com.amazonaws.s3control#AwsLambdaTransformation", "traits": { - "smithy.api#documentation": "

A container for an Lambda function.

" + "smithy.api#documentation": "

A container for an AWS Lambda function.

" } } }, @@ -4219,7 +4170,7 @@ "RestrictPublicBuckets": { "target": "com.amazonaws.s3control#Setting", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account.\n Setting this element to TRUE restricts access to buckets with public policies\n to only Amazon Web Service principals and authorized users within this account.

\n

Enabling this setting doesn't affect previously stored bucket policies, except that public\n and cross-account access within any public bucket policy, including non-public delegation to\n specific accounts, is blocked.

\n

This is not supported for Amazon S3 on Outposts.

", + "smithy.api#documentation": "

Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account.\n Setting this element to TRUE restricts access to buckets with public policies\n to only AWS service principals and authorized users within this account.

\n

Enabling this setting doesn't affect previously stored bucket policies, except that public\n and cross-account access within any public bucket policy, including non-public delegation to\n specific accounts, is blocked.

\n

This is not supported for Amazon S3 on Outposts.

", "smithy.api#xmlName": "RestrictPublicBuckets" } } @@ -4346,7 +4297,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for owner of the bucket associated with the specified access point.

", + "smithy.api#documentation": "

The AWS account ID for owner of the bucket associated with the specified access point.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4355,7 +4306,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point that you want to associate with the specified policy.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point that you want to associate with the specified policy.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4393,7 +4344,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4423,7 +4374,7 @@ "target": "com.amazonaws.s3control#PutBucketPolicyRequest" }, "traits": { - "smithy.api#documentation": "\n

This action puts a bucket policy to an Amazon S3 on Outposts bucket. To put a policy on an S3 bucket, \n see PutBucketPolicy in the Amazon S3 API Reference.\n

\n
\n

Applies an Amazon S3 bucket policy to an Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the account that owns the\n Outposts bucket, the calling identity must have the PutBucketPolicy\n permissions on the specified Outposts bucket and belong to the bucket owner's account in\n order to use this action.

\n \n

If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, \n but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed error.

\n \n \n

As a security precaution, the root user of the account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.\n

\n
\n \n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketPolicy:

\n ", + "smithy.api#documentation": "\n

This action puts a bucket policy to an Amazon S3 on Outposts bucket. To put a policy on an S3 bucket, \n see PutBucketPolicy in the Amazon S3 API Reference.\n

\n
\n

Applies an Amazon S3 bucket policy to an Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the AWS account that owns the\n Outposts bucket, the calling identity must have the PutBucketPolicy\n permissions on the specified Outposts bucket and belong to the bucket owner's account in\n order to use this action.

\n \n

If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, \n but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed error.

\n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.\n

\n
\n \n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketPolicy:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -4441,7 +4392,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4450,7 +4401,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4477,7 +4428,7 @@ "target": "com.amazonaws.s3control#PutBucketTaggingRequest" }, "traits": { - "smithy.api#documentation": "\n

This action puts tags on an Amazon S3 on Outposts bucket. To put tags on an S3 bucket, see\n PutBucketTagging in the Amazon S3 API Reference.

\n
\n

Sets the tags for an S3 on Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

Use tags to organize your Amazon Web Services bill to reflect your own cost structure. To do this, sign up to get your \n account bill with tag key values included. Then, to see the cost of combined resources, organize your \n billing information according to resources with the same tag key values. For example, you can tag several \n resources with a specific application name, and then organize your billing information to see the total cost \n of that application across several services. For more information, see \n Cost \n allocation and tagging.

\n \n \n

Within a bucket, if you add a tag that has the same key as an existing tag, the new value overwrites \n the old value. For more information, see \n Using cost allocation in Amazon S3 bucket tags.

\n
\n

To use this action, you must have permissions to perform the\n s3-outposts:PutBucketTagging action. The Outposts bucket owner has this\n permission by default and can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing access permissions to your Amazon S3\n resources.

\n \n

\n PutBucketTagging has the following special errors:

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketTagging:

\n ", + "smithy.api#documentation": "\n

This action puts tags on an Amazon S3 on Outposts bucket. To put tags on an S3 bucket, see\n PutBucketTagging in the Amazon S3 API Reference.

\n
\n

Sets the tags for an S3 on Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

Use tags to organize your AWS bill to reflect your own cost structure. To do this, sign up to get your \n AWS account bill with tag key values included. Then, to see the cost of combined resources, organize your \n billing information according to resources with the same tag key values. For example, you can tag several \n resources with a specific application name, and then organize your billing information to see the total cost \n of that application across several services. For more information, see \n Cost \n allocation and tagging.

\n \n \n

Within a bucket, if you add a tag that has the same key as an existing tag, the new value overwrites \n the old value. For more information, see \n Using cost allocation in Amazon S3 bucket tags.

\n
\n

To use this action, you must have permissions to perform the\n s3-outposts:PutBucketTagging action. The Outposts bucket owner has this\n permission by default and can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing access permissions to your Amazon S3\n resources.

\n \n

\n PutBucketTagging has the following special errors:

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketTagging:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -4495,7 +4446,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4504,7 +4455,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4543,7 +4494,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets the supplied tag-set on an S3 Batch Operations job.

\n

A tag is a key-value pair. You can associate S3 Batch Operations tags with any job by sending\n a PUT request against the tagging subresource that is associated with the job. To modify\n the existing tag set, you can either replace the existing tag set entirely, or make changes\n within the existing tag set by retrieving the existing tag set using GetJobTagging, modify that tag set, and use this action to replace the\n tag set with the one you modified. For more information, see Controlling access and\n labeling jobs using tags in the Amazon S3 User Guide.

\n

\n \n \n \n

\n

To use this action, you must have permission to perform the s3:PutJobTagging action.

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Sets the supplied tag-set on an S3 Batch Operations job.

\n

A tag is a key-value pair. You can associate S3 Batch Operations tags with any job by sending\n a PUT request against the tagging subresource that is associated with the job. To modify\n the existing tag set, you can either replace the existing tag set entirely, or make changes\n within the existing tag set by retrieving the existing tag set using GetJobTagging, modify that tag set, and use this action to replace the\n tag set with the one you modified. For more information, see Controlling access and\n labeling jobs using tags in the Amazon S3 User Guide.

\n

\n \n \n \n

\n

To use this action, you must have permission to perform the s3:PutJobTagging action.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -4560,7 +4511,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4593,7 +4544,7 @@ "target": "com.amazonaws.s3control#PutPublicAccessBlockRequest" }, "traits": { - "smithy.api#documentation": "

Creates or modifies the PublicAccessBlock configuration for an account. For\n more information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Creates or modifies the PublicAccessBlock configuration for an AWS account. For\n more information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -4610,7 +4561,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for the account whose PublicAccessBlock configuration you want\n to set.

", + "smithy.api#documentation": "

The account ID for the AWS account whose PublicAccessBlock configuration you want\n to set.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4619,7 +4570,7 @@ "PublicAccessBlockConfiguration": { "target": "com.amazonaws.s3control#PublicAccessBlockConfiguration", "traits": { - "smithy.api#documentation": "

The PublicAccessBlock configuration that you want to apply to the specified account.

", + "smithy.api#documentation": "

The PublicAccessBlock configuration that you want to apply to the specified AWS\n account.

", "smithy.api#httpPayload": {}, "smithy.api#required": {}, "smithy.api#xmlName": "PublicAccessBlockConfiguration" @@ -4765,7 +4716,7 @@ "OutpostId": { "target": "com.amazonaws.s3control#NonEmptyMaxLength64String", "traits": { - "smithy.api#documentation": "

The Outposts ID of the regional bucket.

" + "smithy.api#documentation": "

The AWS Outposts ID of the regional bucket.

" } } }, @@ -5078,7 +5029,7 @@ "BucketKeyEnabled": { "target": "com.amazonaws.s3control#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with\n server-side encryption using Amazon Web Services KMS (SSE-KMS). Setting this header to true\n causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with an object action doesn’t affect\n bucket-level settings for S3 Bucket Key.

" + "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with\n server-side encryption using AWS KMS (SSE-KMS). Setting this header to true\n causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with an object action doesn’t affect\n bucket-level settings for S3 Bucket Key.

" } } }, @@ -5679,13 +5630,13 @@ "Arn": { "target": "com.amazonaws.s3control#AwsOrgArn", "traits": { - "smithy.api#documentation": "

A container for the Amazon Resource Name (ARN) of the Amazon Web Services organization.\n This property is read-only and follows the following format: \n arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck\n \n

", + "smithy.api#documentation": "

A container for the Amazon Resource Name (ARN) of the AWS organization.\n This property is read-only and follows the following format: \n arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck\n \n

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The Amazon Web Services organization for your S3 Storage Lens.

" + "smithy.api#documentation": "

The AWS organization for your S3 Storage Lens.

" } }, "com.amazonaws.s3control#StorageLensConfiguration": { @@ -5733,7 +5684,7 @@ "AwsOrg": { "target": "com.amazonaws.s3control#StorageLensAwsOrg", "traits": { - "smithy.api#documentation": "

A container for the Amazon Web Services organization for this S3 Storage Lens configuration.

" + "smithy.api#documentation": "

A container for the AWS organization for this S3 Storage Lens configuration.

" } }, "StorageLensArn": { @@ -6028,7 +5979,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -6114,7 +6065,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} diff --git a/codegen/sdk-codegen/aws-models/s3outposts.2017-07-25.json b/codegen/sdk-codegen/aws-models/s3outposts.2017-07-25.json index 07223a5040e..ddbf8a60e8c 100644 --- a/codegen/sdk-codegen/aws-models/s3outposts.2017-07-25.json +++ b/codegen/sdk-codegen/aws-models/s3outposts.2017-07-25.json @@ -43,7 +43,13 @@ } }, "com.amazonaws.s3outposts#CidrBlock": { - "type": "string" + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + } + } }, "com.amazonaws.s3outposts#ConflictException": { "type": "structure", @@ -84,7 +90,7 @@ } ], "traits": { - "smithy.api#documentation": "

Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts. \n S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your \n virtual private cloud (VPC). For more information, see \n Accessing S3 on Outposts using VPC only access points.

\n

This action creates an endpoint and associates it with the specified Outposts.

\n \n

It can take up to 5 minutes for this action to complete.

\n
\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

S3 on Outposts access points simplify managing data access at scale for shared datasets \n in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform \n actions within your virtual private cloud (VPC).

\n

This action creates an endpoint and associates it with the specified Outpost.

\n

\n

Related actions include:

\n ", "smithy.api#http": { "method": "POST", "uri": "/S3Outposts/CreateEndpoint", @@ -98,14 +104,14 @@ "OutpostId": { "target": "com.amazonaws.s3outposts#OutpostId", "traits": { - "smithy.api#documentation": "

The ID of the AWS Outposts.

", + "smithy.api#documentation": "

The ID of the AWS Outpost.

", "smithy.api#required": {} } }, "SubnetId": { "target": "com.amazonaws.s3outposts#SubnetId", "traits": { - "smithy.api#documentation": "

The ID of the subnet in the selected VPC. The endpoint subnet \n must belong to the Outpost that has the Amazon S3 on Outposts provisioned.

", + "smithy.api#documentation": "

The ID of the subnet in the selected VPC.

", "smithy.api#required": {} } }, @@ -115,18 +121,6 @@ "smithy.api#documentation": "

The ID of the security group to use with the endpoint.

", "smithy.api#required": {} } - }, - "AccessType": { - "target": "com.amazonaws.s3outposts#EndpointAccessType", - "traits": { - "smithy.api#documentation": "

The type of access for the on-premise network connectivity for the \n Outpost endpoint. To access the endpoint from an on-premises network, you must \n specify the access type and provide the customer owned IPv4 pool.

" - } - }, - "CustomerOwnedIpv4Pool": { - "target": "com.amazonaws.s3outposts#CustomerOwnedIpv4Pool", - "traits": { - "smithy.api#documentation": "

The ID of the customer-owned IPv4 pool for the endpoint. \n IP addresses will be allocated from this pool for the endpoint.

" - } } } }, @@ -144,12 +138,6 @@ "com.amazonaws.s3outposts#CreationTime": { "type": "timestamp" }, - "com.amazonaws.s3outposts#CustomerOwnedIpv4Pool": { - "type": "string", - "traits": { - "smithy.api#pattern": "^ipv4pool-coip-([0-9a-f]{17})$" - } - }, "com.amazonaws.s3outposts#DeleteEndpoint": { "type": "operation", "input": { @@ -170,7 +158,7 @@ } ], "traits": { - "smithy.api#documentation": "

Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts. \n S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your \n virtual private cloud (VPC). For more information, see \n Accessing S3 on Outposts using VPC only access points.

\n

This action deletes an endpoint.

\n \n

It can take up to 5 minutes for this action to complete.

\n
\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

S3 on Outposts access points simplify managing data access at scale for shared datasets \n in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform \n actions within your virtual private cloud (VPC).

\n

This action deletes an endpoint.\n

\n

\n

Related actions include:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/S3Outposts/DeleteEndpoint", @@ -184,7 +172,7 @@ "EndpointId": { "target": "com.amazonaws.s3outposts#EndpointId", "traits": { - "smithy.api#documentation": "

The ID of the endpoint.

", + "smithy.api#documentation": "

The ID of the end point.

", "smithy.api#httpQuery": "endpointId", "smithy.api#required": {} } @@ -192,7 +180,7 @@ "OutpostId": { "target": "com.amazonaws.s3outposts#OutpostId", "traits": { - "smithy.api#documentation": "

The ID of the AWS Outposts.

", + "smithy.api#documentation": "

The ID of the AWS Outpost.

", "smithy.api#httpQuery": "outpostId", "smithy.api#required": {} } @@ -211,7 +199,7 @@ "OutpostsId": { "target": "com.amazonaws.s3outposts#OutpostId", "traits": { - "smithy.api#documentation": "

The ID of the AWS Outposts.

" + "smithy.api#documentation": "

The ID of the AWS Outpost.

" } }, "CidrBlock": { @@ -237,66 +225,29 @@ "traits": { "smithy.api#documentation": "

The network interface of the endpoint.

" } - }, - "VpcId": { - "target": "com.amazonaws.s3outposts#VpcId", - "traits": { - "smithy.api#documentation": "

The ID of the VPC used for the endpoint.

" - } - }, - "SubnetId": { - "target": "com.amazonaws.s3outposts#SubnetId", - "traits": { - "smithy.api#documentation": "

The ID of the subnet used for the endpoint.

" - } - }, - "SecurityGroupId": { - "target": "com.amazonaws.s3outposts#SecurityGroupId", - "traits": { - "smithy.api#documentation": "

The ID of the security group used for the endpoint.

" - } - }, - "AccessType": { - "target": "com.amazonaws.s3outposts#EndpointAccessType", - "traits": { - "smithy.api#documentation": "

" - } - }, - "CustomerOwnedIpv4Pool": { - "target": "com.amazonaws.s3outposts#CustomerOwnedIpv4Pool", - "traits": { - "smithy.api#documentation": "

The ID of the customer-owned IPv4 pool used for the endpoint.

" - } } }, "traits": { - "smithy.api#documentation": "

Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts. \n S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your \n virtual private cloud (VPC). For more information, see \n Accessing S3 on Outposts using VPC only access points.

" - } - }, - "com.amazonaws.s3outposts#EndpointAccessType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Private", - "name": "PRIVATE" - }, - { - "value": "CustomerOwnedIp", - "name": "CUSTOMER_OWNED_IP" - } - ] + "smithy.api#documentation": "

S3 on Outposts access points simplify managing data access at scale for shared datasets \n in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform \n actions within your virtual private cloud (VPC).

" } }, "com.amazonaws.s3outposts#EndpointArn": { "type": "string", "traits": { + "smithy.api#length": { + "min": 5, + "max": 500 + }, "smithy.api#pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):s3-outposts:[a-z\\-0-9]*:[0-9]{12}:outpost/(op-[a-f0-9]{17}|ec2)/endpoint/[a-zA-Z0-9]{19}$" } }, "com.amazonaws.s3outposts#EndpointId": { "type": "string", "traits": { + "smithy.api#length": { + "min": 5, + "max": 500 + }, "smithy.api#pattern": "^[a-zA-Z0-9]{19}$" } }, @@ -305,16 +256,12 @@ "traits": { "smithy.api#enum": [ { - "value": "Pending", + "value": "PENDING", "name": "PENDING" }, { - "value": "Available", + "value": "AVAILABLE", "name": "AVAILABLE" - }, - { - "value": "Deleting", - "name": "DELETING" } ] } @@ -364,7 +311,7 @@ } ], "traits": { - "smithy.api#documentation": "

Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts. \n S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your \n virtual private cloud (VPC). For more information, see \n Accessing S3 on Outposts using VPC only access points.

\n

This action lists endpoints associated with the Outposts.\n

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

S3 on Outposts access points simplify managing data access at scale for shared datasets \n in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform \n actions within your virtual private cloud (VPC).

\n

This action lists endpoints associated with the Outpost.\n

\n

\n

Related actions include:

\n ", "smithy.api#http": { "method": "GET", "uri": "/S3Outposts/ListEndpoints", @@ -403,7 +350,7 @@ "Endpoints": { "target": "com.amazonaws.s3outposts#Endpoints", "traits": { - "smithy.api#documentation": "

Returns an array of endpoints associated with AWS Outposts.

" + "smithy.api#documentation": "

Returns an array of endpoints associated with AWS Outpost.

" } }, "NextToken": { @@ -438,7 +385,13 @@ } }, "com.amazonaws.s3outposts#NetworkInterfaceId": { - "type": "string" + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } }, "com.amazonaws.s3outposts#NetworkInterfaces": { "type": "list", @@ -459,6 +412,10 @@ "com.amazonaws.s3outposts#OutpostId": { "type": "string", "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, "smithy.api#pattern": "^(op-[a-f0-9]{17}|\\d{12}|ec2)$" } }, @@ -508,12 +465,20 @@ "com.amazonaws.s3outposts#SecurityGroupId": { "type": "string", "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, "smithy.api#pattern": "^sg-([0-9a-f]{8}|[0-9a-f]{17})$" } }, "com.amazonaws.s3outposts#SubnetId": { "type": "string", "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, "smithy.api#pattern": "^subnet-([0-9a-f]{8}|[0-9a-f]{17})$" } }, @@ -529,9 +494,6 @@ "smithy.api#error": "client", "smithy.api#httpError": 400 } - }, - "com.amazonaws.s3outposts#VpcId": { - "type": "string" } } } diff --git a/codegen/sdk-codegen/aws-models/savingsplans.2019-06-28.json b/codegen/sdk-codegen/aws-models/savingsplans.2019-06-28.json index 616add24fd5..197b6f3dcbf 100644 --- a/codegen/sdk-codegen/aws-models/savingsplans.2019-06-28.json +++ b/codegen/sdk-codegen/aws-models/savingsplans.2019-06-28.json @@ -659,10 +659,6 @@ } }, "traits": { - "aws.protocols#awsQueryError": { - "code": "InternalServerException", - "httpResponseCode": 500 - }, "smithy.api#documentation": "

An unexpected error occurred.

", "smithy.api#error": "server", "smithy.api#httpError": 500 @@ -818,10 +814,6 @@ } }, "traits": { - "aws.protocols#awsQueryError": { - "code": "ResourceNotFoundException", - "httpResponseCode": 404 - }, "smithy.api#documentation": "

The specified resource was not found.

", "smithy.api#error": "client", "smithy.api#httpError": 404 @@ -946,7 +938,7 @@ "com.amazonaws.savingsplans#SavingsPlanArn": { "type": "string", "traits": { - "smithy.api#pattern": "^arn:aws:[a-z]+:([a-z]{2}-[a-z]+-\\d{1}|):(\\d{12}):savingsplan\\/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$" + "smithy.api#pattern": "arn:aws:[a-z]+:([a-z]{2}-[a-z]+-\\d{1}|):(\\d{12}):savingsplan\\/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$" } }, "com.amazonaws.savingsplans#SavingsPlanArnList": { @@ -1817,10 +1809,6 @@ } }, "traits": { - "aws.protocols#awsQueryError": { - "code": "ServiceQuotaExceededException", - "httpResponseCode": 402 - }, "smithy.api#documentation": "

A service quota has been exceeded.

", "smithy.api#error": "client", "smithy.api#httpError": 402 @@ -1910,7 +1898,7 @@ "com.amazonaws.savingsplans#UUID": { "type": "string", "traits": { - "smithy.api#pattern": "^[a-f0-9]+(-[a-f0-9]+)*$" + "smithy.api#pattern": "^(([0-9a-f]+)(-?))+$" } }, "com.amazonaws.savingsplans#UUIDs": { @@ -1981,10 +1969,6 @@ } }, "traits": { - "aws.protocols#awsQueryError": { - "code": "ValidationException", - "httpResponseCode": 400 - }, "smithy.api#documentation": "

One of the input parameters is not valid.

", "smithy.api#error": "client", "smithy.api#httpError": 400 diff --git a/codegen/sdk-codegen/aws-models/securityhub.2018-10-26.json b/codegen/sdk-codegen/aws-models/securityhub.2018-10-26.json index 211d48f9975..7f77eaa0cd9 100644 --- a/codegen/sdk-codegen/aws-models/securityhub.2018-10-26.json +++ b/codegen/sdk-codegen/aws-models/securityhub.2018-10-26.json @@ -168,19 +168,19 @@ "AccountId": { "target": "com.amazonaws.securityhub#AccountId", "traits": { - "smithy.api#documentation": "

The ID of an Amazon Web Services account.

", + "smithy.api#documentation": "

The ID of an AWS account.

", "smithy.api#required": {} } }, "Email": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The email of an Amazon Web Services account.

" + "smithy.api#documentation": "

The email of an AWS account.

" } } }, "traits": { - "smithy.api#documentation": "

The details of an Amazon Web Services account.

" + "smithy.api#documentation": "

The details of an AWS account.

" } }, "com.amazonaws.securityhub#AccountDetailsList": { @@ -233,7 +233,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides details about one of the following actions that affects or that was taken on a resource:

\n " + "smithy.api#documentation": "

Provides details about one of the following actions that affects or that was taken on a resource:

\n " } }, "com.amazonaws.securityhub#ActionLocalIpDetails": { @@ -369,7 +369,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account identifier of the Security Hub administrator account.

" + "smithy.api#documentation": "

The AWS account identifier of the Security Hub administrator account.

" } }, "Status": { @@ -457,7 +457,7 @@ "ServiceName": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the Amazon Web Services service that the API method belongs to.

" + "smithy.api#documentation": "

The name of the AWS service that the API method belongs to.

" } }, "CallerType": { @@ -807,7 +807,7 @@ "TracingEnabled": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

Indicates whether active tracing with X-Ray is enabled for the stage.

" + "smithy.api#documentation": "

Indicates whether active tracing with AWS X-Ray is enabled for the stage.

" } }, "CreatedDate": { @@ -1111,7 +1111,7 @@ "InUseBy": { "target": "com.amazonaws.securityhub#StringList", "traits": { - "smithy.api#documentation": "

The list of ARNs for the Amazon Web Services resources that use the certificate.

" + "smithy.api#documentation": "

The list of ARNs for the AWS resources that use the certificate.

" } }, "IssuedAt": { @@ -1165,7 +1165,7 @@ "RenewalSummary": { "target": "com.amazonaws.securityhub#AwsCertificateManagerCertificateRenewalSummary", "traits": { - "smithy.api#documentation": "

Information about the status of the Certificate Manager managed renewal for the\n certificate. Provided only when the certificate type is AMAZON_ISSUED.

" + "smithy.api#documentation": "

Information about the status of the AWS Certificate Manager managed renewal for the\n certificate. Provided only when the certificate type is AMAZON_ISSUED.

" } }, "Serial": { @@ -1201,12 +1201,12 @@ "Type": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The source of the certificate. For certificates that Certificate Manager provides,\n Type is AMAZON_ISSUED. For certificates that are imported with\n ImportCertificate, Type is IMPORTED.

\n

Valid values: IMPORTED | AMAZON_ISSUED |\n PRIVATE\n

" + "smithy.api#documentation": "

The source of the certificate. For certificates that AWS Certificate Manager provides,\n Type is AMAZON_ISSUED. For certificates that are imported with\n ImportCertificate, Type is IMPORTED.

\n

Valid values: IMPORTED | AMAZON_ISSUED |\n PRIVATE\n

" } } }, "traits": { - "smithy.api#documentation": "

Provides details about an Certificate Manager certificate.

" + "smithy.api#documentation": "

Provides details about an AWS Certificate Manager certificate.

" } }, "com.amazonaws.securityhub#AwsCertificateManagerCertificateDomainValidationOption": { @@ -1227,13 +1227,13 @@ "ValidationDomain": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The domain name that Certificate Manager uses to send domain validation\n emails.

" + "smithy.api#documentation": "

The domain name that AWS Certificate Manager uses to send domain validation\n emails.

" } }, "ValidationEmails": { "target": "com.amazonaws.securityhub#StringList", "traits": { - "smithy.api#documentation": "

A list of email addresses that Certificate Manager uses to send domain validation\n emails.

" + "smithy.api#documentation": "

A list of email addresses that AWS Certificate Manager uses to send domain validation\n emails.

" } }, "ValidationMethod": { @@ -1250,7 +1250,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about one of the following:

\n " + "smithy.api#documentation": "

Contains information about one of the following:

\n " } }, "com.amazonaws.securityhub#AwsCertificateManagerCertificateDomainValidationOptions": { @@ -1325,13 +1325,13 @@ "DomainValidationOptions": { "target": "com.amazonaws.securityhub#AwsCertificateManagerCertificateDomainValidationOptions", "traits": { - "smithy.api#documentation": "

Information about the validation of each domain name in the certificate, as it pertains\n to Certificate Manager managed renewal. Provided only when the certificate type is\n AMAZON_ISSUED.

" + "smithy.api#documentation": "

Information about the validation of each domain name in the certificate, as it pertains\n to AWS Certificate Manager managed renewal. Provided only when the certificate type is\n AMAZON_ISSUED.

" } }, "RenewalStatus": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The status of the Certificate Manager managed renewal of the certificate.

\n

Valid values: PENDING_AUTO_RENEWAL | PENDING_VALIDATION |\n SUCCESS | FAILED\n

" + "smithy.api#documentation": "

The status of the AWS Certificate Manager managed renewal of the certificate.

\n

Valid values: PENDING_AUTO_RENEWAL | PENDING_VALIDATION |\n SUCCESS | FAILED\n

" } }, "RenewalStatusReason": { @@ -1348,7 +1348,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about the Certificate Manager managed renewal for an\n AMAZON_ISSUED certificate.

" + "smithy.api#documentation": "

Contains information about the AWS Certificate Manager managed renewal for an\n AMAZON_ISSUED certificate.

" } }, "com.amazonaws.securityhub#AwsCertificateManagerCertificateResourceRecord": { @@ -1491,7 +1491,7 @@ "WebAclId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution.

" + "smithy.api#documentation": "

A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution.

" } } }, @@ -1505,7 +1505,7 @@ "Bucket": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The S3 bucket to store the access logs in.

" + "smithy.api#documentation": "

The Amazon S3 bucket to store the access logs in.

" } }, "Enabled": { @@ -1611,7 +1611,7 @@ "DomainName": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Amazon S3 origins: The DNS name of the S3 bucket from which you want CloudFront to get objects for this origin.

" + "smithy.api#documentation": "

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin.

" } }, "Id": { @@ -1634,7 +1634,7 @@ } }, "traits": { - "smithy.api#documentation": "

A complex type that describes the S3 bucket, HTTP server (for example, a web\n server), AWS Elemental MediaStore, or other server from which CloudFront gets your\n files.

" + "smithy.api#documentation": "

A complex type that describes the Amazon S3 bucket, HTTP server (for example, a web\n server), Amazon Elemental MediaStore, or other server from which CloudFront gets your\n files.

" } }, "com.amazonaws.securityhub#AwsCloudFrontDistributionOriginItemList": { @@ -1683,7 +1683,7 @@ "CloudWatchLogsRoleArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log\n group.

" + "smithy.api#documentation": "

The ARN of the role that the CloudWatch Logs endpoint assumes when it writes to the log\n group.

" } }, "HasCustomEventSelectors": { @@ -1713,13 +1713,13 @@ "IsOrganizationTrail": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

Whether the trail is created for all accounts in an organization in Organizations,\n or only for the current Amazon Web Services account.

" + "smithy.api#documentation": "

Whether the trail is created for all accounts in an organization in AWS Organizations,\n or only for the current AWS account.

" } }, "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The KMS key ID to use to encrypt the logs.

" + "smithy.api#documentation": "

The AWS KMS key ID to use to encrypt the logs.

" } }, "LogFileValidationEnabled": { @@ -1775,7 +1775,7 @@ "EncryptionKey": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The KMS customer master key (CMK) used to encrypt the\n build output artifacts.

\n

You can specify either the ARN of the CMK or, if available, the\n CMK alias (using the format alias/alias-name).

" + "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) used to encrypt the\n build output artifacts.

\n

You can specify either the ARN of the CMK or, if available, the\n CMK alias (using the format alias/alias-name).

" } }, "Environment": { @@ -1799,18 +1799,18 @@ "ServiceRole": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services\n services on behalf of the Amazon Web Services account.

" + "smithy.api#documentation": "

The ARN of the IAM role that enables AWS CodeBuild to interact with dependent AWS\n services on behalf of the AWS account.

" } }, "VpcConfig": { "target": "com.amazonaws.securityhub#AwsCodeBuildProjectVpcConfig", "traits": { - "smithy.api#documentation": "

Information about the VPC configuration that CodeBuild accesses.

" + "smithy.api#documentation": "

Information about the VPC configuration that AWS CodeBuild accesses.

" } } }, "traits": { - "smithy.api#documentation": "

Information about an CodeBuild project.

" + "smithy.api#documentation": "

Information about an AWS CodeBuild project.

" } }, "com.amazonaws.securityhub#AwsCodeBuildProjectEnvironment": { @@ -1825,7 +1825,7 @@ "ImagePullCredentialsType": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The type of credentials CodeBuild uses to pull images in your build.

\n

Valid values:

\n \n

When you use a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When you use an CodeBuild curated image, you\n must use CODEBUILD credentials.

" + "smithy.api#documentation": "

The type of credentials AWS CodeBuild uses to pull images in your build.

\n

Valid values:

\n \n

When you use a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When you use an AWS CodeBuild curated image, you\n must use CODEBUILD credentials.

" } }, "RegistryCredential": { @@ -1851,13 +1851,13 @@ "Credential": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN or name of credentials created using Secrets Manager.

\n \n

The credential can use the name of the credentials only if they exist in your current\n Amazon Web Services Region.

\n
" + "smithy.api#documentation": "

The ARN or name of credentials created using AWS Secrets\n Manager.

\n \n

The credential can use the name of the credentials only if they exist in your current\n AWS Region.

\n
" } }, "CredentialProvider": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The service that created the credentials to access a private Docker registry.

\n

The valid value, SECRETS_MANAGER, is for Secrets Manager.

" + "smithy.api#documentation": "

The service that created the credentials to access a private Docker registry.

\n

The valid value, SECRETS_MANAGER, is for AWS Secrets Manager.

" } } }, @@ -1871,13 +1871,13 @@ "Type": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The type of repository that contains the source code to be built. Valid values\n are:

\n " + "smithy.api#documentation": "

The type of repository that contains the source code to be built. Valid values\n are:

\n " } }, "Location": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Information about the location of the source code to be built.

\n

Valid values include:

\n " + "smithy.api#documentation": "

Information about the location of the source code to be built.

\n

Valid values include:

\n " } }, "GitCloneDepth": { @@ -1909,18 +1909,18 @@ "Subnets": { "target": "com.amazonaws.securityhub#NonEmptyStringList", "traits": { - "smithy.api#documentation": "

A list of one or more subnet IDs in your VPC.

" + "smithy.api#documentation": "

A list of one or more subnet IDs in your Amazon VPC.

" } }, "SecurityGroupIds": { "target": "com.amazonaws.securityhub#NonEmptyStringList", "traits": { - "smithy.api#documentation": "

A list of one or more security group IDs in your VPC.

" + "smithy.api#documentation": "

A list of one or more security group IDs in your Amazon VPC.

" } } }, "traits": { - "smithy.api#documentation": "

Information about the VPC configuration that CodeBuild accesses.

" + "smithy.api#documentation": "

Information about the VPC configuration that AWS CodeBuild accesses.

" } }, "com.amazonaws.securityhub#AwsCorsConfiguration": { @@ -2351,7 +2351,7 @@ "KmsMasterKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the KMS customer master key (CMK) that will be used for KMS\n encryption for the replica.

" + "smithy.api#documentation": "

The identifier of the AWS KMS customer master key (CMK) that will be used for AWS KMS\n encryption for the replica.

" } }, "ProvisionedThroughputOverride": { @@ -2471,7 +2471,7 @@ "KmsMasterKeyArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the KMS customer master key (CMK) that is used for the KMS\n encryption.

" + "smithy.api#documentation": "

The ARN of the AWS KMS customer master key (CMK) that is used for the AWS KMS\n encryption.

" } } }, @@ -2517,7 +2517,7 @@ "AllocationId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier that Amazon Web Services assigns to represent the allocation of the Elastic IP address\n for use with Amazon VPC.

" + "smithy.api#documentation": "

The identifier that AWS assigns to represent the allocation of the Elastic IP address\n for use with Amazon VPC.

" } }, "AssociationId": { @@ -2553,7 +2553,7 @@ "NetworkInterfaceOwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the network interface.

" + "smithy.api#documentation": "

The AWS account ID of the owner of the network interface.

" } }, "PrivateIpAddress": { @@ -2705,7 +2705,7 @@ "OwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Web Services account that owns the network ACL.

" + "smithy.api#documentation": "

The identifier of the AWS account that owns the network ACL.

" } }, "VpcId": { @@ -2829,7 +2829,7 @@ "InstanceOwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the instance.

" + "smithy.api#documentation": "

The AWS account ID of the owner of the instance.

" } }, "Status": { @@ -2989,7 +2989,7 @@ "OwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the security group.

" + "smithy.api#documentation": "

The AWS account ID of the owner of the security group.

" } }, "VpcId": { @@ -3039,7 +3039,7 @@ "UserIdGroupPairs": { "target": "com.amazonaws.securityhub#AwsEc2SecurityGroupUserIdGroupPairList", "traits": { - "smithy.api#documentation": "

The security group and Amazon Web Services account ID pairs.

" + "smithy.api#documentation": "

The security group and AWS account ID pairs.

" } }, "IpRanges": { @@ -3057,7 +3057,7 @@ "PrefixListIds": { "target": "com.amazonaws.securityhub#AwsEc2SecurityGroupPrefixListIdList", "traits": { - "smithy.api#documentation": "

[VPC only] The prefix list IDs for an Amazon Web Services service. With outbound rules, this is the Amazon Web Services\n service to access through a VPC endpoint from instances associated with the security\n group.

" + "smithy.api#documentation": "

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS\n service to access through a VPC endpoint from instances associated with the security\n group.

" } } }, @@ -3155,7 +3155,7 @@ "UserId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ID of an Amazon Web Services account.

\n

For a referenced security group in another VPC, the account ID of the referenced\n security group is returned in the response. If the referenced security group is deleted,\n this value is not returned.

\n

[EC2-Classic] Required when adding or removing rules that reference a security group in\n another VPC.

" + "smithy.api#documentation": "

The ID of an AWS account.

\n

For a referenced security group in another VPC, the account ID of the referenced\n security group is returned in the response. If the referenced security group is deleted,\n this value is not returned.

\n

[EC2-Classic] Required when adding or removing rules that reference a security group in\n another VPC.

" } }, "VpcId": { @@ -3229,7 +3229,7 @@ "OwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Web Services account that owns the subnet.

" + "smithy.api#documentation": "

The identifier of the AWS account that owns the subnet.

" } }, "State": { @@ -3264,7 +3264,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about a subnet in Amazon EC2.

" + "smithy.api#documentation": "

Contains information about a subnet in EC2.

" } }, "com.amazonaws.securityhub#AwsEc2VolumeAttachment": { @@ -3296,7 +3296,7 @@ } }, "traits": { - "smithy.api#documentation": "

An attachment to an Amazon EC2 volume.

" + "smithy.api#documentation": "

An attachment to an AWS EC2 volume.

" } }, "com.amazonaws.securityhub#AwsEc2VolumeAttachmentList": { @@ -3341,7 +3341,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the KMS customer master key (CMK) that was\n used to protect the volume encryption key for the volume.

" + "smithy.api#documentation": "

The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was\n used to protect the volume encryption key for the volume.

" } }, "Attachments": { @@ -3555,406 +3555,6 @@ "smithy.api#documentation": "

provides details about an ECS cluster.

" } }, - "com.amazonaws.securityhub#AwsEcsServiceCapacityProviderStrategyDetails": { - "type": "structure", - "members": { - "Base": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for Base.

\n

The value must be between 0 and 100000.

" - } - }, - "CapacityProvider": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The short name of the capacity provider.

" - } - }, - "Weight": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

The relative percentage of the total number of tasks that should use the capacity provider.

\n

If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.

\n

The value can be between 0 and 1000.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Strategy item for the capacity provider strategy that the service uses.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceCapacityProviderStrategyList": { - "type": "list", - "member": { - "target": "com.amazonaws.securityhub#AwsEcsServiceCapacityProviderStrategyDetails" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails": { - "type": "structure", - "members": { - "Enable": { - "target": "com.amazonaws.securityhub#Boolean", - "traits": { - "smithy.api#documentation": "

Whether to enable the deployment circuit breaker logic for the service.

" - } - }, - "Rollback": { - "target": "com.amazonaws.securityhub#Boolean", - "traits": { - "smithy.api#documentation": "

Whether to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Determines whether a service deployment fails if a service cannot reach a steady state.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceDeploymentConfigurationDetails": { - "type": "structure", - "members": { - "DeploymentCircuitBreaker": { - "target": "com.amazonaws.securityhub#AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails", - "traits": { - "smithy.api#documentation": "

Determines whether a service deployment fails if a service cannot reach a steady state.

" - } - }, - "MaximumPercent": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

For a service that uses the rolling update (ECS) deployment type, the maximum number of tasks in a service that are allowed in the RUNNING or PENDING state during a deployment, and for tasks that use the EC2 launch type, when any container instances are in the DRAINING state. Provided as a percentage of the desired number of tasks. The default value is 200%.

\n

For a service that uses the blue/green (CODE_DEPLOY) or EXTERNAL deployment types, and tasks that use the EC2 launch type, the maximum number of tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

\n

For the Fargate launch type, the maximum percent value is not used.

" - } - }, - "MinimumHealthyPercent": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

For a service that uses the rolling update (ECS) deployment type, the minimum number of tasks in a service that must remain in the RUNNING state during a deployment, and while any container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Expressed as a percentage of the desired number of tasks. The default value is 100%.

\n

For a service that uses the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and tasks that use the EC2 launch type, the minimum number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

\n

For the Fargate launch type, the minimum healthy percent value is not used.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Optional deployment parameters for the service.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceDeploymentControllerDetails": { - "type": "structure", - "members": { - "Type": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The rolling update (ECS) deployment type replaces the current running version of the container with the latest version.

\n

The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model that is powered by CodeDeploy. This deployment model a new deployment of a service can be verified before production traffic is sent to it.

\n

The external (EXTERNAL) deployment type allows the use of any third-party deployment controller for full control over the deployment process for an Amazon ECS service.

\n

Valid values: ECS | CODE_DEPLOY | EXTERNAL\n

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about the deployment controller type that the service uses.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceDetails": { - "type": "structure", - "members": { - "CapacityProviderStrategy": { - "target": "com.amazonaws.securityhub#AwsEcsServiceCapacityProviderStrategyList", - "traits": { - "smithy.api#documentation": "

The capacity provider strategy that the service uses.

" - } - }, - "Cluster": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The ARN of the cluster that hosts the service.

" - } - }, - "DeploymentConfiguration": { - "target": "com.amazonaws.securityhub#AwsEcsServiceDeploymentConfigurationDetails", - "traits": { - "smithy.api#documentation": "

Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.

" - } - }, - "DeploymentController": { - "target": "com.amazonaws.securityhub#AwsEcsServiceDeploymentControllerDetails", - "traits": { - "smithy.api#documentation": "

Contains the deployment controller type that the service uses.

" - } - }, - "DesiredCount": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

The number of instantiations of the task definition to run on the service.

" - } - }, - "EnableEcsManagedTags": { - "target": "com.amazonaws.securityhub#Boolean", - "traits": { - "smithy.api#documentation": "

Whether to enable Amazon ECS managed tags for the tasks in the service.

" - } - }, - "EnableExecuteCommand": { - "target": "com.amazonaws.securityhub#Boolean", - "traits": { - "smithy.api#documentation": "

Whether the execute command functionality is enabled for the service.

" - } - }, - "HealthCheckGracePeriodSeconds": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.

" - } - }, - "LaunchType": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The launch type that the service uses.

\n

Valid values: EC2 | FARGATE | EXTERNAL\n

" - } - }, - "LoadBalancers": { - "target": "com.amazonaws.securityhub#AwsEcsServiceLoadBalancersList", - "traits": { - "smithy.api#documentation": "

Information about the load balancers that the service uses.

" - } - }, - "Name": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The name of the service.

" - } - }, - "NetworkConfiguration": { - "target": "com.amazonaws.securityhub#AwsEcsServiceNetworkConfigurationDetails", - "traits": { - "smithy.api#documentation": "

For tasks that use the awsvpc networking mode, the VPC subnet and security group configuration.

" - } - }, - "PlacementConstraints": { - "target": "com.amazonaws.securityhub#AwsEcsServicePlacementConstraintsList", - "traits": { - "smithy.api#documentation": "

The placement constraints for the tasks in the service.

" - } - }, - "PlacementStrategies": { - "target": "com.amazonaws.securityhub#AwsEcsServicePlacementStrategiesList", - "traits": { - "smithy.api#documentation": "

Information about how tasks for the service are placed.

" - } - }, - "PlatformVersion": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, the LATEST platform version is used by default.

" - } - }, - "PropagateTags": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.

\n

Valid values: TASK_DEFINITION | SERVICE\n

" - } - }, - "Role": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.

" - } - }, - "SchedulingStrategy": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The scheduling strategy to use for the service.

\n

The REPLICA scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.

\n

The DAEMON scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that do not meet the placement constraints.

\n

Valid values: REPLICA | DAEMON\n

" - } - }, - "ServiceArn": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The ARN of the service.

" - } - }, - "ServiceName": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The name of the service.

\n

The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.

" - } - }, - "ServiceRegistries": { - "target": "com.amazonaws.securityhub#AwsEcsServiceServiceRegistriesList", - "traits": { - "smithy.api#documentation": "

Information about the service discovery registries to assign to the service.

" - } - }, - "TaskDefinition": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The task definition to use for tasks in the service.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Provides details about a service within an ECS cluster.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceLoadBalancersDetails": { - "type": "structure", - "members": { - "ContainerName": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The name of the container to associate with the load balancer.

" - } - }, - "ContainerPort": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

The port on the container to associate with the load balancer. This port must correspond to a containerPort in the task definition the tasks in the service are using. For tasks that use the EC2 launch type, the container instance they are launched on must allow ingress traffic on the hostPort of the port mapping.

" - } - }, - "LoadBalancerName": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The name of the load balancer to associate with the Amazon ECS service or task set.

\n

Only specified when using a Classic Load Balancer. For an Application Load Balancer or a Network Load Balancer, the load balancer name is omitted.

" - } - }, - "TargetGroupArn": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The ARN of the Elastic Load Balancing target group or groups associated with a service or task set.

\n

Only specified when using an Application Load Balancer or a Network Load Balancer. For a Classic Load Balancer, the target group ARN is omitted.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about a load balancer that the service uses.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceLoadBalancersList": { - "type": "list", - "member": { - "target": "com.amazonaws.securityhub#AwsEcsServiceLoadBalancersDetails" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails": { - "type": "structure", - "members": { - "AssignPublicIp": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.

\n

Valid values: ENABLED | DISABLED\n

" - } - }, - "SecurityGroups": { - "target": "com.amazonaws.securityhub#NonEmptyStringList", - "traits": { - "smithy.api#documentation": "

The IDs of the security groups associated with the task or service.

\n

You can provide up to five security groups.

" - } - }, - "Subnets": { - "target": "com.amazonaws.securityhub#NonEmptyStringList", - "traits": { - "smithy.api#documentation": "

The IDs of the subnets associated with the task or service.

\n

You can provide up to 16 subnets.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

For tasks that use the awsvpc networking mode, the VPC subnet and security group configuration.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceNetworkConfigurationDetails": { - "type": "structure", - "members": { - "AwsVpcConfiguration": { - "target": "com.amazonaws.securityhub#AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails", - "traits": { - "smithy.api#documentation": "

The VPC subnet and security group configuration.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

For tasks that use the awsvpc networking mode, the VPC subnet and security group configuration.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServicePlacementConstraintsDetails": { - "type": "structure", - "members": { - "Expression": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance.

" - } - }, - "Type": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The type of constraint. Use distinctInstance to run each task in a particular group on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

\n

Valid values: distinctInstance | memberOf\n

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A placement constraint for the tasks in the service.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServicePlacementConstraintsList": { - "type": "list", - "member": { - "target": "com.amazonaws.securityhub#AwsEcsServicePlacementConstraintsDetails" - } - }, - "com.amazonaws.securityhub#AwsEcsServicePlacementStrategiesDetails": { - "type": "structure", - "members": { - "Field": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The field to apply the placement strategy against.

\n

For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone.

\n

For the binpack placement strategy, valid values are cpu and memory.

\n

For the random placement strategy, this attribute is not used.

" - } - }, - "Type": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The type of placement strategy.

\n

The random placement strategy randomly places tasks on available candidates.

\n

The spread placement strategy spreads placement across available candidates evenly based on the value of Field.

\n

The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified in Field.

\n

Valid values: random | spread | binpack\n

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A placement strategy that determines how to place the tasks for the service.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServicePlacementStrategiesList": { - "type": "list", - "member": { - "target": "com.amazonaws.securityhub#AwsEcsServicePlacementStrategiesDetails" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceServiceRegistriesDetails": { - "type": "structure", - "members": { - "ContainerName": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The container name value to use for the service discovery service.

\n

If the task definition uses the bridge or host network mode, you must specify ContainerName and ContainerPort.

\n

If the task definition uses the awsvpc network mode and a type SRV DNS record, you must specify either ContainerName and ContainerPort, or Port , but not both.

" - } - }, - "ContainerPort": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

The port value to use for the service discovery service.

\n

If the task definition uses the bridge or host network mode, you must specify ContainerName and ContainerPort.

\n

If the task definition uses the awsvpc network mode and a type SRV DNS record, you must specify either ContainerName and ContainerPort, or Port , but not both.

" - } - }, - "Port": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

The port value to use for a service discovery service that specifies an SRV record. This field can be used if both the awsvpcawsvpc network mode and SRV records are used.

" - } - }, - "RegistryArn": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The ARN of the service registry.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Information about a service discovery registry to assign to the service.

" - } - }, - "com.amazonaws.securityhub#AwsEcsServiceServiceRegistriesList": { - "type": "list", - "member": { - "target": "com.amazonaws.securityhub#AwsEcsServiceServiceRegistriesDetails" - } - }, "com.amazonaws.securityhub#AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails": { "type": "structure", "members": { @@ -4843,7 +4443,7 @@ "TaskRoleArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.

" + "smithy.api#documentation": "

The short name or ARN of the IAM role that grants containers in the task permission to call AWS API operations on your behalf.

" } }, "Volumes": { @@ -5309,7 +4909,7 @@ "AccessPolicies": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

IAM policy document specifying the access policies for the new Elasticsearch domain.

" + "smithy.api#documentation": "

IAM policy document specifying the access policies for the new Amazon ES domain.

" } }, "DomainEndpointOptions": { @@ -5321,25 +4921,25 @@ "DomainId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Unique identifier for an Elasticsearch domain.

" + "smithy.api#documentation": "

Unique identifier for an Amazon ES domain.

" } }, "DomainName": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Name of an Elasticsearch domain.

\n

Domain names are unique across all domains owned by the same account within an Amazon Web Services\n Region.

\n

Domain names must start with a lowercase letter and must be between 3 and 28\n characters.

\n

Valid characters are a-z (lowercase only), 0-9, and – (hyphen).

" + "smithy.api#documentation": "

Name of an Amazon ES domain.

\n

Domain names are unique across all domains owned by the same account within an AWS\n Region.

\n

Domain names must start with a lowercase letter and must be between 3 and 28\n characters.

\n

Valid characters are a-z (lowercase only), 0-9, and – (hyphen).

" } }, "Endpoint": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Domain-specific endpoint used to submit index, search, and data upload requests to an\n Elasticsearch domain.

\n

The endpoint is a service URL.

" + "smithy.api#documentation": "

Domain-specific endpoint used to submit index, search, and data upload requests to an\n Amazon ES domain.

\n

The endpoint is a service URL.

" } }, "Endpoints": { "target": "com.amazonaws.securityhub#FieldMap", "traits": { - "smithy.api#documentation": "

The key-value pair that exists if the Elasticsearch domain uses VPC endpoints.

" + "smithy.api#documentation": "

The key-value pair that exists if the Amazon ES domain uses VPC endpoints.

" } }, "ElasticsearchVersion": { @@ -5348,12 +4948,6 @@ "smithy.api#documentation": "

Elasticsearch version.

" } }, - "ElasticsearchClusterConfig": { - "target": "com.amazonaws.securityhub#AwsElasticsearchDomainElasticsearchClusterConfigDetails", - "traits": { - "smithy.api#documentation": "

Information about an Elasticsearch cluster configuration.

" - } - }, "EncryptionAtRestOptions": { "target": "com.amazonaws.securityhub#AwsElasticsearchDomainEncryptionAtRestOptions", "traits": { @@ -5381,12 +4975,12 @@ "VPCOptions": { "target": "com.amazonaws.securityhub#AwsElasticsearchDomainVPCOptions", "traits": { - "smithy.api#documentation": "

Information that Elasticsearch derives based on VPCOptions for the\n domain.

" + "smithy.api#documentation": "

Information that Amazon ES derives based on VPCOptions for the\n domain.

" } } }, "traits": { - "smithy.api#documentation": "

Information about an Amazon Elasticsearch Service domain.

" + "smithy.api#documentation": "

Information about an Elasticsearch domain.

" } }, "com.amazonaws.securityhub#AwsElasticsearchDomainDomainEndpointOptions": { @@ -5409,70 +5003,6 @@ "smithy.api#documentation": "

Additional options for the domain endpoint, such as whether to require HTTPS for all\n traffic.

" } }, - "com.amazonaws.securityhub#AwsElasticsearchDomainElasticsearchClusterConfigDetails": { - "type": "structure", - "members": { - "DedicatedMasterCount": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

The number of instances to use for the master node. If this attribute is specified, then DedicatedMasterEnabled must be true.

" - } - }, - "DedicatedMasterEnabled": { - "target": "com.amazonaws.securityhub#Boolean", - "traits": { - "smithy.api#documentation": "

Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs cluster management tasks, but doesn't hold data or respond to data upload requests.

" - } - }, - "DedicatedMasterType": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The hardware configuration of the computer that hosts the dedicated master node. For example, m3.medium.elasticsearch. If this attribute is specified, then DedicatedMasterEnabled must be true.

" - } - }, - "InstanceCount": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

The number of data nodes to use in the Elasticsearch domain.

" - } - }, - "InstanceType": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The instance type for your data nodes. For example, m3.medium.elasticsearch.

" - } - }, - "ZoneAwarenessConfig": { - "target": "com.amazonaws.securityhub#AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails", - "traits": { - "smithy.api#documentation": "

Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is true.

" - } - }, - "ZoneAwarenessEnabled": { - "target": "com.amazonaws.securityhub#Boolean", - "traits": { - "smithy.api#documentation": "

Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, Elasticsearch allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This prevents data loss and minimizes downtime if a node or data center fails.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

details about the configuration of an Elasticsearch cluster.

" - } - }, - "com.amazonaws.securityhub#AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails": { - "type": "structure", - "members": { - "AvailabilityZoneCount": { - "target": "com.amazonaws.securityhub#Integer", - "traits": { - "smithy.api#documentation": "

he number of Availability Zones that the domain uses. Valid values are 2 and 3. The default is 2.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Configuration options for zone awareness.

" - } - }, "com.amazonaws.securityhub#AwsElasticsearchDomainEncryptionAtRestOptions": { "type": "structure", "members": { @@ -5507,9 +5037,6 @@ "traits": { "smithy.api#documentation": "

Configures the Elasticsearch search slow log\n publishing.

" } - }, - "AuditLogs": { - "target": "com.amazonaws.securityhub#AwsElasticsearchDomainLogPublishingOptionsLogConfig" } }, "traits": { @@ -5629,7 +5156,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information that Elasticsearch derives based on VPCOptions for the\n domain.

" + "smithy.api#documentation": "

Information that Amazon ES derives based on VPCOptions for the\n domain.

" } }, "com.amazonaws.securityhub#AwsElbAppCookieStickinessPolicies": { @@ -6213,7 +5740,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID of the account for the key.

" + "smithy.api#documentation": "

The AWS account ID of the account for the key.

" } }, "AccessKeyId": { @@ -6297,7 +5824,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Web Services account that created the session.

" + "smithy.api#documentation": "

The identifier of the AWS account that created the session.

" } }, "UserName": { @@ -6819,7 +6346,7 @@ "AWSAccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The twelve-digit account ID of the Amazon Web Services account that owns the CMK.

" + "smithy.api#documentation": "

The twelve-digit account ID of the AWS account that owns the CMK.

" } }, "CreationDate": { @@ -6837,7 +6364,7 @@ "KeyManager": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The manager of the CMK. CMKs in your Amazon Web Services account are either customer managed or Amazon Web Services managed.

" + "smithy.api#documentation": "

The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed.

" } }, "KeyState": { @@ -6849,7 +6376,7 @@ "Origin": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The source of the CMK's key material.

\n

When this value is AWS_KMS, KMS created the key material.

\n

When this value is EXTERNAL, the key material was imported from your\n existing key management infrastructure or the CMK lacks key material.

\n

When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster associated with a custom key store.

" + "smithy.api#documentation": "

The source of the CMK's key material.

\n

When this value is AWS_KMS, AWS KMS created the key material.

\n

When this value is EXTERNAL, the key material was imported from your\n existing key management infrastructure or the CMK lacks key material.

\n

When this value is AWS_CLOUDHSM, the key material was created in the AWS\n CloudHSM cluster associated with a custom key store.

" } }, "Description": { @@ -6869,7 +6396,7 @@ "S3Bucket": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account.

" + "smithy.api#documentation": "

An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.

" } }, "S3Key": { @@ -6887,7 +6414,7 @@ "ZipFile": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.

" + "smithy.api#documentation": "

The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for you.

" } } }, @@ -6901,7 +6428,7 @@ "TargetArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of an SQS queue or SNS topic.

" + "smithy.api#documentation": "

The ARN of an Amazon SQS queue or Amazon SNS topic.

" } } }, @@ -6951,7 +6478,7 @@ "KmsKeyArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed CMK.

" + "smithy.api#documentation": "

The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed CMK.

" } }, "LastModified": { @@ -7005,7 +6532,7 @@ "TracingConfig": { "target": "com.amazonaws.securityhub#AwsLambdaFunctionTracingConfig", "traits": { - "smithy.api#documentation": "

The function's X-Ray tracing configuration.

" + "smithy.api#documentation": "

The function's AWS X-Ray tracing configuration.

" } }, "VpcConfig": { @@ -7082,7 +6609,7 @@ } }, "traits": { - "smithy.api#documentation": "

An Lambda layer.

" + "smithy.api#documentation": "

An AWS Lambda layer.

" } }, "com.amazonaws.securityhub#AwsLambdaFunctionLayerList": { @@ -7102,7 +6629,7 @@ } }, "traits": { - "smithy.api#documentation": "

The function's X-Ray tracing configuration.

" + "smithy.api#documentation": "

The function's AWS X-Ray tracing configuration.

" } }, "com.amazonaws.securityhub#AwsLambdaFunctionVpcConfig": { @@ -7306,13 +6833,13 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the KMS master key that is used to encrypt the database instances in the\n DB cluster.

" + "smithy.api#documentation": "

The ARN of the AWS KMS master key that is used to encrypt the database instances in the\n DB cluster.

" } }, "DbClusterResourceId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the DB cluster. The identifier must be unique within each Amazon Web Services Region\n and is immutable.

" + "smithy.api#documentation": "

The identifier of the DB cluster. The identifier must be unique within each AWS Region\n and is immutable.

" } }, "AssociatedRoles": { @@ -7366,7 +6893,7 @@ "CrossAccountClone": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

Whether the DB cluster is a clone of a DB cluster owned by a different Amazon Web Services\n account.

" + "smithy.api#documentation": "

Whether the DB cluster is a clone of a DB cluster owned by a different AWS\n account.

" } }, "DomainMemberships": { @@ -7570,7 +7097,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the KMS master key that is used to encrypt the database instances in the\n DB cluster.

" + "smithy.api#documentation": "

The ARN of the AWS KMS master key that is used to encrypt the database instances in the\n DB cluster.

" } }, "DbClusterIdentifier": { @@ -7646,18 +7173,18 @@ "FeatureName": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the feature associated with the IAM role.

" + "smithy.api#documentation": "

The name of the feature associated with the IAM)role.

" } }, "Status": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Describes the state of the association between the IAM role and the DB instance. The\n Status property returns one of the following values:

\n " + "smithy.api#documentation": "

Describes the state of the association between the IAM role and the DB instance. The\n Status property returns one of the following values:

\n " } } }, "traits": { - "smithy.api#documentation": "

An IAM role associated with the DB instance.

" + "smithy.api#documentation": "

An AWS Identity and Access Management (IAM) role associated with the DB instance.

" } }, "com.amazonaws.securityhub#AwsRdsDbInstanceAssociatedRoles": { @@ -7672,7 +7199,7 @@ "AssociatedRoles": { "target": "com.amazonaws.securityhub#AwsRdsDbInstanceAssociatedRoles", "traits": { - "smithy.api#documentation": "

The IAM roles associated with the DB\n instance.

" + "smithy.api#documentation": "

The AWS Identity and Access Management (IAM) roles associated with the DB\n instance.

" } }, "CACertificateIdentifier": { @@ -7708,7 +7235,7 @@ "DbiResourceId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services Region-unique, immutable identifier for the DB instance. This identifier is\n found in CloudTrail log entries whenever the KMS key for the DB instance is\n accessed.

" + "smithy.api#documentation": "

The AWS Region-unique, immutable identifier for the DB instance. This identifier is\n found in AWS CloudTrail log entries whenever the AWS KMS key for the DB instance is\n accessed.

" } }, "DBName": { @@ -7744,7 +7271,7 @@ "IAMDatabaseAuthenticationEnabled": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

True if mapping of IAM accounts to database\n accounts is enabled, and otherwise false.

\n

IAM database authentication can be enabled for the following database engines.

\n " + "smithy.api#documentation": "

True if mapping of AWS Identity and Access Management (IAM) accounts to database\n accounts is enabled, and otherwise false.

\n

IAM database authentication can be enabled for the following database engines.

\n " } }, "InstanceCreateTime": { @@ -7756,7 +7283,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

If StorageEncrypted is true, the KMS key identifier for the encrypted\n DB instance.

" + "smithy.api#documentation": "

If StorageEncrypted is true, the AWS KMS key identifier for the encrypted\n DB instance.

" } }, "PubliclyAccessible": { @@ -7978,7 +7505,7 @@ "PerformanceInsightsKmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the KMS key used to encrypt the Performance Insights data.

" + "smithy.api#documentation": "

The identifier of the AWS KMS key used to encrypt the Performance Insights data.

" } }, "PerformanceInsightsRetentionPeriod": { @@ -7990,7 +7517,7 @@ "EnabledCloudWatchLogsExports": { "target": "com.amazonaws.securityhub#StringList", "traits": { - "smithy.api#documentation": "

A list of log types that this DB instance is configured to export to CloudWatch Logs.

" + "smithy.api#documentation": "

A list of log types that this DB instance is configured to export to CloudWatch\n Logs.

" } }, "ProcessorFeatures": { @@ -8349,7 +7876,7 @@ "SourceRegion": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services Region that the DB snapshot was created in or copied from.

" + "smithy.api#documentation": "

The AWS Region that the DB snapshot was created in or copied from.

" } }, "SourceDbSnapshotIdentifier": { @@ -8379,7 +7906,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.

" + "smithy.api#documentation": "

If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.

" } }, "Timezone": { @@ -8539,74 +8066,6 @@ "target": "com.amazonaws.securityhub#AwsRdsDbSubnetGroupSubnet" } }, - "com.amazonaws.securityhub#AwsRdsEventSubscriptionDetails": { - "type": "structure", - "members": { - "CustSubscriptionId": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The identifier of the account that is associated with the event notification subscription.

" - } - }, - "CustomerAwsId": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The identifier of the event notification subscription.

" - } - }, - "Enabled": { - "target": "com.amazonaws.securityhub#Boolean", - "traits": { - "smithy.api#documentation": "

Whether the event notification subscription is enabled.

" - } - }, - "EventCategoriesList": { - "target": "com.amazonaws.securityhub#NonEmptyStringList", - "traits": { - "smithy.api#documentation": "

The list of event categories for the event notification subscription.

" - } - }, - "EventSubscriptionArn": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The ARN of the event notification subscription.

" - } - }, - "SnsTopicArn": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The ARN of the SNS topic to post the event notifications to.

" - } - }, - "SourceIdsList": { - "target": "com.amazonaws.securityhub#NonEmptyStringList", - "traits": { - "smithy.api#documentation": "

A list of source identifiers for the event notification subscription.

" - } - }, - "SourceType": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The source type for the event notification subscription.

" - } - }, - "Status": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The status of the event notification subscription.

\n

Valid values: creating | modifying | deleting | active | no-permission | topic-not-exist\n

" - } - }, - "SubscriptionCreationTime": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The datetime when the event notification subscription was created.

\n

Uses the date-time format specified in RFC 3339 section 5.6, Internet\n Date/Time Format. The value cannot contain spaces. For example,\n 2020-03-22T13:22:13.933Z.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Details about an Amazon RDS event notification subscription. The subscription allows Amazon RDS to post events to an SNS topic.

" - } - }, "com.amazonaws.securityhub#AwsRdsPendingCloudWatchLogsExports": { "type": "structure", "members": { @@ -8969,13 +8428,13 @@ "IamRoles": { "target": "com.amazonaws.securityhub#AwsRedshiftClusterIamRoles", "traits": { - "smithy.api#documentation": "

A list of IAM roles that the cluster can use to access other Amazon Web Services services.

" + "smithy.api#documentation": "

A list of IAM roles that the cluster can use to access other AWS services.

" } }, "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the KMS encryption key that is used to encrypt data in the\n cluster.

" + "smithy.api#documentation": "

The identifier of the AWS KMS encryption key that is used to encrypt data in the\n cluster.

" } }, "MaintenanceTrackName": { @@ -9162,7 +8621,7 @@ } }, "traits": { - "smithy.api#documentation": "

An IAM role that the cluster can use to access other Amazon Web Services services.

" + "smithy.api#documentation": "

An IAM role that the cluster can use to access other AWS services.

" } }, "com.amazonaws.securityhub#AwsRedshiftClusterIamRoles": { @@ -9359,7 +8818,7 @@ "RestrictPublicBuckets": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web Services service principals and authorized users within the S3 bucket owner's account.

" + "smithy.api#documentation": "

Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only AWS service principals and authorized users within the S3 bucket owner's account.

" } } }, @@ -9707,7 +9166,7 @@ "KMSMasterKeyID": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

KMS customer master key (CMK) ID to use for the default encryption.

" + "smithy.api#documentation": "

AWS KMS customer master key (CMK) ID to use for the default encryption.

" } } }, @@ -9785,7 +9244,7 @@ "SSEKMSKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the KMS symmetric customer managed\n customer master key (CMK) that was used for the object.

" + "smithy.api#documentation": "

The identifier of the AWS Key Management Service (AWS KMS) symmetric customer managed\n customer master key (CMK) that was used for the object.

" } } }, @@ -9811,7 +9270,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN, Key ID, or alias of the KMS customer master key (CMK) used to encrypt the\n SecretString or SecretBinary values for versions of this\n secret.

" + "smithy.api#documentation": "

The ARN, Key ID, or alias of the AWS KMS customer master key (CMK) used to encrypt the\n SecretString or SecretBinary values for versions of this\n secret.

" } }, "RotationEnabled": { @@ -9846,7 +9305,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details about an Secrets Manager secret.

" + "smithy.api#documentation": "

Details about an AWS Secrets Manager secret.

" } }, "com.amazonaws.securityhub#AwsSecretsManagerSecretRotationRules": { @@ -9887,24 +9346,6 @@ "smithy.api#required": {} } }, - "ProductName": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The name of the product that generated the finding.

\n

Security Hub populates this attribute automatically for each finding. You cannot update it using BatchImportFindings or BatchUpdateFindings. The exception to this is when you use a custom integration.

\n

When you use the Security Hub console to filter findings by product name, you use this attribute.

\n

When you use the Security Hub API to filter findings by product name, you use the aws/securityhub/ProductyName attribute under ProductFields.

\n

Security Hub does not synchronize those two attributes.

" - } - }, - "CompanyName": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The name of the company for the product that generated the finding.

\n

Security Hub populates this attribute automatically for each finding. You cannot be updated using BatchImportFindings or BatchUpdateFindings. The exception to this is when you use a custom integration.

\n

When you use the Security Hub console to filter findings by company name, you use this attribute.

\n

When you use the Security Hub API to filter findings by company name, you use the aws/securityhub/CompanyName attribute under ProductFields.

\n

Security Hub does not synchronize those two attributes.

" - } - }, - "Region": { - "target": "com.amazonaws.securityhub#NonEmptyString", - "traits": { - "smithy.api#documentation": "

The Region from which the finding was generated.

\n

Security Hub populates this attribute automatically for each finding. You cannot update it using BatchImportFindings or BatchUpdateFindings.

" - } - }, "GeneratorId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { @@ -9915,7 +9356,7 @@ "AwsAccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID that a finding is generated in.

", + "smithy.api#documentation": "

The AWS account ID that a finding is generated in.

", "smithy.api#required": {} } }, @@ -9998,7 +9439,7 @@ "ProductFields": { "target": "com.amazonaws.securityhub#FieldMap", "traits": { - "smithy.api#documentation": "

A data type where security-findings providers can include additional solution-specific\n details that aren't part of the defined AwsSecurityFinding format.

\n

Can contain up to 50 key-value pairs. For each key-value pair, the key can contain up to 128 characters, and the value can contain up to 2048 characters.

" + "smithy.api#documentation": "

A data type where security-findings providers can include additional solution-specific\n details that aren't part of the defined AwsSecurityFinding format.

" } }, "UserDefinedFields": { @@ -10047,7 +9488,7 @@ "Compliance": { "target": "com.amazonaws.securityhub#Compliance", "traits": { - "smithy.api#documentation": "

This data type is exclusive to findings that are generated as the result of a check run\n against a specific rule in a supported security standard, such as CIS Amazon Web Services Foundations.\n Contains security standard-related finding details.

" + "smithy.api#documentation": "

This data type is exclusive to findings that are generated as the result of a check run\n against a specific rule in a supported security standard, such as CIS AWS Foundations.\n Contains security standard-related finding details.

" } }, "VerificationState": { @@ -10112,7 +9553,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides consistent format for the contents of the Security Hub-aggregated findings.\n AwsSecurityFinding format enables you to share findings between Amazon Web Services\n security services and third-party solutions, and security standards checks.

\n \n

A finding is a potential security issue generated either by Amazon Web Services services or by the integrated third-party\n solutions and standards checks.

\n
" + "smithy.api#documentation": "

Provides consistent format for the contents of the Security Hub-aggregated findings.\n AwsSecurityFinding format enables you to share findings between AWS\n security services and third-party solutions, and security standards checks.

\n \n

A finding is a potential security issue generated either by AWS services (Amazon\n GuardDuty, Amazon Inspector, and Amazon Macie) or by the integrated third-party\n solutions and standards checks.

\n
" } }, "com.amazonaws.securityhub#AwsSecurityFindingFilters": { @@ -10127,7 +9568,7 @@ "AwsAccountId": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID that a finding is generated in.

" + "smithy.api#documentation": "

The AWS account ID that a finding is generated in.

" } }, "Id": { @@ -10142,12 +9583,6 @@ "smithy.api#documentation": "

The identifier for the solution-specific component (a discrete unit of logic) that\n generated a finding. In various security-findings providers' solutions, this generator can\n be called a rule, a check, a detector, a plugin, etc.

" } }, - "Region": { - "target": "com.amazonaws.securityhub#StringFilterList", - "traits": { - "smithy.api#documentation": "

The Region from which the finding was generated.

" - } - }, "Type": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { @@ -10182,7 +9617,7 @@ "target": "com.amazonaws.securityhub#NumberFilterList", "traits": { "smithy.api#deprecated": { - "message": "This filter is deprecated. Instead, use FindingProviderSeverityOriginal." + "message": "This filter is deprecated, use FindingProviiltersSeverityOriginal instead." }, "smithy.api#documentation": "

The native severity as defined by the security-findings provider's solution that\n generated the finding.

" } @@ -10191,7 +9626,7 @@ "target": "com.amazonaws.securityhub#NumberFilterList", "traits": { "smithy.api#deprecated": { - "message": "This filter is deprecated. Instead, use SeverityLabel or FindingProviderFieldsSeverityLabel." + "message": "This filter is deprecated, use SeverityLabel or FindingProviderFieldsSeverityLabel instead." }, "smithy.api#documentation": "

The normalized severity of a finding.

" } @@ -10247,13 +9682,13 @@ "ProductName": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The name of the solution (product) that generates findings.

\n

Note that this is a filter against the aws/securityhub/ProductName field in ProductFields. It is not a filter for the top-level ProductName field.

" + "smithy.api#documentation": "

The name of the solution (product) that generates findings.

" } }, "CompanyName": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The name of the findings provider (company) that owns the solution (product) that\n generates findings.

\n

Note that this is a filter against the aws/securityhub/CompanyName field in ProductFields. It is not a filter for the top-level CompanyName field.

" + "smithy.api#documentation": "

The name of the findings provider (company) that owns the solution (product) that\n generates findings.

" } }, "UserDefinedFields": { @@ -10439,19 +9874,19 @@ "ResourcePartition": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The canonical Amazon Web Services partition name that the Region is assigned to.

" + "smithy.api#documentation": "

The canonical AWS partition name that the Region is assigned to.

" } }, "ResourceRegion": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The canonical Amazon Web Services external Region name where this resource is located.

" + "smithy.api#documentation": "

The canonical AWS external Region name where this resource is located.

" } }, "ResourceTags": { "target": "com.amazonaws.securityhub#MapFilterList", "traits": { - "smithy.api#documentation": "

A list of Amazon Web Services tags associated with a resource at the time the finding was\n processed.

" + "smithy.api#documentation": "

A list of AWS tags associated with a resource at the time the finding was\n processed.

" } }, "ResourceAwsEc2InstanceType": { @@ -10523,18 +9958,9 @@ "ResourceAwsIamAccessKeyUserName": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#deprecated": { - "message": "This filter is deprecated. Instead, use ResourceAwsIamAccessKeyPrincipalName." - }, "smithy.api#documentation": "

The user associated with the IAM access key related to a finding.

" } }, - "ResourceAwsIamAccessKeyPrincipalName": { - "target": "com.amazonaws.securityhub#StringFilterList", - "traits": { - "smithy.api#documentation": "

The name of the principal that is associated with an IAM access key.

" - } - }, "ResourceAwsIamAccessKeyStatus": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { @@ -10547,12 +9973,6 @@ "smithy.api#documentation": "

The creation date/time of the IAM access key related to a finding.

" } }, - "ResourceAwsIamUserUserName": { - "target": "com.amazonaws.securityhub#StringFilterList", - "traits": { - "smithy.api#documentation": "

The name of an IAM user.

" - } - }, "ResourceContainerName": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { @@ -10586,7 +10006,7 @@ "ComplianceStatus": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

Exclusive to findings that are generated as the result of a check run against a specific\n rule in a supported standard, such as CIS Amazon Web Services Foundations. Contains security\n standard-related finding details.

" + "smithy.api#documentation": "

Exclusive to findings that are generated as the result of a check run against a specific\n rule in a supported standard, such as CIS AWS Foundations. Contains security\n standard-related finding details.

" } }, "VerificationState": { @@ -10739,13 +10159,13 @@ "KmsMasterKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SNS or a custom\n CMK.

" + "smithy.api#documentation": "

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom\n CMK.

" } }, "Subscription": { "target": "com.amazonaws.securityhub#AwsSnsTopicSubscriptionList", "traits": { - "smithy.api#documentation": "

Subscription is an embedded property that describes the subscription endpoints of an SNS topic.

" + "smithy.api#documentation": "

Subscription is an embedded property that describes the subscription endpoints of an Amazon SNS topic.

" } }, "TopicName": { @@ -10797,13 +10217,13 @@ "KmsDataKeyReusePeriodSeconds": { "target": "com.amazonaws.securityhub#Integer", "traits": { - "smithy.api#documentation": "

The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling KMS again.

" + "smithy.api#documentation": "

The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again.

" } }, "KmsMasterKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SQS or a custom\n CMK.

" + "smithy.api#documentation": "

The ID of an AWS managed customer master key (CMK) for Amazon SQS or a custom\n CMK.

" } }, "QueueName": { @@ -10996,7 +10416,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details about an WAF WebACL.

" + "smithy.api#documentation": "

Details about a WAF WebACL.

" } }, "com.amazonaws.securityhub#AwsWafWebAclRule": { @@ -11005,7 +10425,7 @@ "Action": { "target": "com.amazonaws.securityhub#WafAction", "traits": { - "smithy.api#documentation": "

Specifies the action that CloudFront or WAF takes when a web request matches the\n conditions in the rule.

" + "smithy.api#documentation": "

Specifies the action that CloudFront or AWS WAF takes when a web request matches the\n conditions in the rule.

" } }, "ExcludedRules": { @@ -11040,7 +10460,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details for a rule in an WAF WebACL.

" + "smithy.api#documentation": "

Details for a rule in a WAF WebACL.

" } }, "com.amazonaws.securityhub#AwsWafWebAclRuleList": { @@ -11072,7 +10492,7 @@ } ], "traits": { - "smithy.api#documentation": "

Disables the standards specified by the provided\n StandardsSubscriptionArns.

\n

For more information, see Security Standards section of the Security Hub User\n Guide.

", + "smithy.api#documentation": "

Disables the standards specified by the provided\n StandardsSubscriptionArns.

\n

For more information, see Security Standards section of the AWS Security Hub User\n Guide.

", "smithy.api#http": { "method": "POST", "uri": "/standards/deregister", @@ -11126,7 +10546,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables the standards specified by the provided StandardsArn. To obtain the\n ARN for a standard, use the DescribeStandards\n operation.

\n

For more information, see the Security Standards\n section of the Security Hub User Guide.

", + "smithy.api#documentation": "

Enables the standards specified by the provided StandardsArn. To obtain the\n ARN for a standard, use the \n DescribeStandards\n \n operation.

\n

For more information, see the Security Standards\n section of the AWS Security Hub User Guide.

", "smithy.api#http": { "method": "POST", "uri": "/standards/register", @@ -11194,7 +10614,7 @@ "Findings": { "target": "com.amazonaws.securityhub#BatchImportFindingsRequestFindingList", "traits": { - "smithy.api#documentation": "

A list of findings to import. To successfully import a finding, it must follow the\n Amazon Web Services Security Finding Format. Maximum of 100 findings per request.

", + "smithy.api#documentation": "

A list of findings to import. To successfully import a finding, it must follow the\n AWS Security Finding Format. Maximum of 100 findings per request.

", "smithy.api#required": {} } } @@ -11260,7 +10680,7 @@ } ], "traits": { - "smithy.api#documentation": "

Used by Security Hub customers to update information about their investigation into a finding.\n Requested by administrator accounts or member accounts. Administrator accounts can update findings for\n their account and their member accounts. Member accounts can update findings for their\n account.

\n

Updates from BatchUpdateFindings do not affect the value of\n UpdatedAt for a finding.

\n

Administrator and member accounts can use BatchUpdateFindings to update the\n following finding fields and objects.

\n \n

You can configure IAM policies to restrict access to fields and field values. For\n example, you might not want member accounts to be able to suppress findings or change the\n finding severity. See Configuring access to BatchUpdateFindings in the\n Security Hub User Guide.

", + "smithy.api#documentation": "

Used by Security Hub customers to update information about their investigation into a finding.\n Requested by administrator accounts or member accounts. Administrator accounts can update findings for\n their account and their member accounts. Member accounts can update findings for their\n account.

\n

Updates from BatchUpdateFindings do not affect the value of\n UpdatedAt for a finding.

\n

Administrator and member accounts can use BatchUpdateFindings to update the\n following finding fields and objects.

\n \n

You can configure IAM policies to restrict access to fields and field values. For\n example, you might not want member accounts to be able to suppress findings or change the\n finding severity. See Configuring access to BatchUpdateFindings in the\n AWS Security Hub User Guide.

", "smithy.api#http": { "method": "PATCH", "uri": "/findings/batchupdate", @@ -11548,7 +10968,7 @@ "Status": { "target": "com.amazonaws.securityhub#ComplianceStatus", "traits": { - "smithy.api#documentation": "

The result of a standards check.

\n

The valid values for Status are as follows.

\n " + "smithy.api#documentation": "

The result of a standards check.

\n

The valid values for Status are as follows.

\n " } }, "RelatedRequirements": { @@ -11560,7 +10980,7 @@ "StatusReasons": { "target": "com.amazonaws.securityhub#StatusReasonsList", "traits": { - "smithy.api#documentation": "

For findings generated from controls, a list of reasons behind the value of\n Status. For the list of status reason codes and their meanings, see Standards-related information in the ASFF in the\n Security Hub User Guide.

" + "smithy.api#documentation": "

For findings generated from controls, a list of reasons behind the value of\n Status. For the list of status reason codes and their meanings, see Standards-related information in the ASFF in the\n AWS Security Hub User Guide.

" } } }, @@ -11828,7 +11248,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a member association in Security Hub between the specified accounts and the account\n used to make the request, which is the administrator account. If you are integrated with\n Organizations, then the administrator account is designated by the organization management account.

\n

\n CreateMembers is always used to add accounts that are not organization\n members.

\n

For accounts that are managed using Organizations, CreateMembers is only used\n in the following cases:

\n \n

This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you\n can use the EnableSecurityHub operation.

\n

For accounts that are not organization members, you create the account association and\n then send an invitation to the member account. To send the invitation, you use the\n InviteMembers operation. If the account owner accepts\n the invitation, the account becomes a member account in Security Hub.

\n

Accounts that are managed using Organizations do not receive an invitation. They\n automatically become a member account in Security Hub, and Security Hub is automatically enabled for those accounts. Note that Security Hub cannot be enabled automatically for the organization management account. The organization management account must enable Security Hub before the administrator account enables it as a member account.

\n

A permissions policy is added that permits the administrator account to view the findings\n generated in the member account. When Security Hub is enabled in a member account, the member account findings are\n also visible to the administrator account.

\n

To remove the association between the administrator and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.

", + "smithy.api#documentation": "

Creates a member association in Security Hub between the specified accounts and the account\n used to make the request, which is the administrator account. If you are integrated with\n Organizations, then the administrator account is designated by the organization management account.

\n

\n CreateMembers is always used to add accounts that are not organization\n members.

\n

For accounts that are part of an organization, CreateMembers is only used\n in the following cases:

\n \n

This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you\n can use the \n EnableSecurityHub\n operation.

\n

For accounts that are not organization members, you create the account association and\n then send an invitation to the member account. To send the invitation, you use the\n \n InviteMembers\n operation. If the account owner accepts\n the invitation, the account becomes a member account in Security Hub.

\n

Accounts that are part of an organization do not receive an invitation. They\n automatically become a member account in Security Hub.

\n

A permissions policy is added that permits the administrator account to view the findings\n generated in the member account. When Security Hub is enabled in a member account, the member account findings are\n also visible to the administrator account.

\n

To remove the association between the administrator and member accounts, use the \n DisassociateFromMasterAccount\n or \n DisassociateMembers\n operation.

", "smithy.api#http": { "method": "POST", "uri": "/members", @@ -11854,7 +11274,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of Amazon Web Services accounts that were not processed. For each account, the list includes\n the account ID and the email address.

" + "smithy.api#documentation": "

The list of AWS accounts that were not processed. For each account, the list includes\n the account ID and the email address.

" } } } @@ -12090,7 +11510,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of Amazon Web Services accounts that were not processed. For each account, the list includes\n the account ID and the email address.

" + "smithy.api#documentation": "

The list of AWS accounts that were not processed. For each account, the list includes\n the account ID and the email address.

" } } } @@ -12236,7 +11656,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes invitations received by the Amazon Web Services account to become a member account.

\n

This operation is only used by accounts that are not part of an organization.\n Organization accounts do not receive invitations.

", + "smithy.api#documentation": "

Deletes invitations received by the AWS account to become a member account.

\n

This operation is only used by accounts that are not part of an organization.\n Organization accounts do not receive invitations.

", "smithy.api#http": { "method": "POST", "uri": "/invitations/delete", @@ -12262,7 +11682,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of Amazon Web Services accounts for which the invitations were not deleted. For each account,\n the list includes the account ID and the email address.

" + "smithy.api#documentation": "

The list of AWS accounts for which the invitations were not deleted. For each account,\n the list includes the account ID and the email address.

" } } } @@ -12319,7 +11739,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of Amazon Web Services accounts that were not deleted. For each account, the list includes the\n account ID and the email address.

" + "smithy.api#documentation": "

The list of AWS accounts that were not deleted. For each account, the list includes the\n account ID and the email address.

" } } } @@ -12427,7 +11847,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns details about the Hub resource in your account, including the\n HubArn and the time when you enabled Security Hub.

", + "smithy.api#documentation": "

Returns details about the Hub resource in your account, including the\n HubArn and the time when you enabled Security Hub.

", "smithy.api#http": { "method": "GET", "uri": "/accounts", @@ -12677,7 +12097,7 @@ "StandardsSubscriptionArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of a resource that represents your subscription to a supported standard. To get\n the subscription ARNs of the standards you have enabled, use the GetEnabledStandards operation.

", + "smithy.api#documentation": "

The ARN of a resource that represents your subscription to a supported standard. To get\n the subscription ARNs of the standards you have enabled, use the \n GetEnabledStandards\n operation.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12839,7 +12259,7 @@ "AdminAccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account identifier of the Security Hub administrator account.

", + "smithy.api#documentation": "

The AWS account identifier of the Security Hub administrator account.

", "smithy.api#required": {} } } @@ -13148,7 +12568,7 @@ "AdminAccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account identifier of the account to designate as the Security Hub administrator\n account.

", + "smithy.api#documentation": "

The AWS account identifier of the account to designate as the Security Hub administrator\n account.

", "smithy.api#required": {} } } @@ -13184,7 +12604,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables Security Hub for your account in the current Region or the Region you specify in the\n request.

\n

When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings\n from other services that are integrated with Security Hub.

\n

When you use the EnableSecurityHub operation to enable Security Hub, you also\n automatically enable the following standards.

\n \n

You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.

\n

To not enable the automatically enabled standards, set\n EnableDefaultStandards to false.

\n

After you enable Security Hub, to enable a standard, use the BatchEnableStandards operation. To disable a standard, use the\n BatchDisableStandards operation.

\n

To learn more, see the setup information in the Security Hub User Guide.

", + "smithy.api#documentation": "

Enables Security Hub for your account in the current Region or the Region you specify in the\n request.

\n

When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings\n from other services that are integrated with Security Hub.

\n

When you use the EnableSecurityHub operation to enable Security Hub, you also\n automatically enable the following standards.

\n \n

You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.

\n

To not enable the automatically enabled standards, set\n EnableDefaultStandards to false.

\n

After you enable Security Hub, to enable a standard, use the \n BatchEnableStandards\n operation. To disable a standard, use the\n \n BatchDisableStandards\n operation.

\n

To learn more, see Setting Up\n AWS Security Hub in the AWS Security Hub User Guide.

", "smithy.api#http": { "method": "POST", "uri": "/accounts", @@ -13800,7 +13220,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of Amazon Web Services accounts that could not be processed. For each account, the list\n includes the account ID and the email address.

" + "smithy.api#documentation": "

The list of AWS accounts that could not be processed. For each account, the list\n includes the account ID and the email address.

" } } } @@ -14099,7 +13519,7 @@ } ], "traits": { - "smithy.api#documentation": "

Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account that\n the invitation is sent from.

\n

This operation is only used to invite accounts that do not belong to an organization.\n Organization accounts do not receive invitations.

\n

Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

\n

When the account owner enables Security Hub and accepts the invitation to become a member\n account, the administrator account can view the findings generated from the member account.

", + "smithy.api#documentation": "

Invites other AWS accounts to become member accounts for the Security Hub administrator account that\n the invitation is sent from.

\n

This operation is only used to invite accounts that do not belong to an organization.\n Organization accounts do not receive invitations.

\n

Before you can use this action to invite a member, you must first use the \n CreateMembers\n action to create the member account in Security Hub.

\n

When the account owner enables Security Hub and accepts the invitation to become a member\n account, the administrator account can view the findings generated from the member account.

", "smithy.api#http": { "method": "POST", "uri": "/members/invite", @@ -14113,7 +13533,7 @@ "AccountIds": { "target": "com.amazonaws.securityhub#AccountIdList", "traits": { - "smithy.api#documentation": "

The list of account IDs of the Amazon Web Services accounts to invite to Security Hub as members.

", + "smithy.api#documentation": "

The list of account IDs of the AWS accounts to invite to Security Hub as members.

", "smithy.api#required": {} } } @@ -14125,7 +13545,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of Amazon Web Services accounts that could not be processed. For each account, the list\n includes the account ID and the email address.

" + "smithy.api#documentation": "

The list of AWS accounts that could not be processed. For each account, the list\n includes the account ID and the email address.

" } } } @@ -14245,7 +13665,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request was rejected because it attempted to create resources beyond the current Amazon Web Services\n account or throttling limits. The error code describes the limit exceeded.

", + "smithy.api#documentation": "

The request was rejected because it attempted to create resources beyond the current AWS\n account or throttling limits. The error code describes the limit exceeded.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } @@ -14342,7 +13762,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all Security Hub membership invitations that were sent to the current Amazon Web Services account.

\n

This operation is only used by accounts that are managed by invitation.\n Accounts that are managed using the integration with Organizations do not receive invitations.

", + "smithy.api#documentation": "

Lists all Security Hub membership invitations that were sent to the current AWS account.

\n

This operation is only used by accounts that are managed by invitation.\n Accounts that are managed using the integration with AWS Organizations do not receive invitations.

", "smithy.api#http": { "method": "GET", "uri": "/invitations", @@ -14804,7 +14224,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#AccountId", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID of the member account.

" + "smithy.api#documentation": "

The AWS account ID of the member account.

" } }, "Email": { @@ -14819,19 +14239,19 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use AdministratorId instead." }, - "smithy.api#documentation": "

This is replaced by AdministratorID.

\n

The Amazon Web Services account ID of the Security Hub administrator account associated with this member account.

" + "smithy.api#documentation": "

This is replaced by AdministratorID.

\n

The AWS account ID of the Security Hub administrator account associated with this member account.

" } }, "AdministratorId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID of the Security Hub administrator account associated with this member account.

" + "smithy.api#documentation": "

The AWS account ID of the Security Hub administrator account associated with this member account.

" } }, "MemberStatus": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The status of the relationship between the member account and its administrator account.\n

\n

The status can have one of the following values:

\n " + "smithy.api#documentation": "

The status of the relationship between the member account and its administrator account.\n

\n

The status can have one of the following values:

\n " } }, "InvitedAt": { @@ -15527,7 +14947,7 @@ "MarketplaceUrl": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

For integrations with Amazon Web Services services, the Amazon Web Services Console URL from which to activate the service.

\n

For integrations with third-party products, the Marketplace URL from which to subscribe to or purchase the product.

" + "smithy.api#documentation": "

For integrations with AWS services, the AWS Console URL from which to activate the service.

\n

For integrations with third-party products, the AWS Marketplace URL from which to subscribe to or purchase the product.

" } }, "ActivationUrl": { @@ -15729,13 +15149,13 @@ "Partition": { "target": "com.amazonaws.securityhub#Partition", "traits": { - "smithy.api#documentation": "

The canonical Amazon Web Services partition name that the Region is assigned to.

" + "smithy.api#documentation": "

The canonical AWS partition name that the Region is assigned to.

" } }, "Region": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The canonical Amazon Web Services external Region name where this resource is located.

" + "smithy.api#documentation": "

The canonical AWS external Region name where this resource is located.

" } }, "ResourceRole": { @@ -15747,7 +15167,7 @@ "Tags": { "target": "com.amazonaws.securityhub#FieldMap", "traits": { - "smithy.api#documentation": "

A list of Amazon Web Services tags associated with a resource at the time the finding was\n processed.

" + "smithy.api#documentation": "

A list of AWS tags associated with a resource at the time the finding was\n processed.

" } }, "DataClassification": { @@ -15801,7 +15221,7 @@ "AwsCodeBuildProject": { "target": "com.amazonaws.securityhub#AwsCodeBuildProjectDetails", "traits": { - "smithy.api#documentation": "

Details for an CodeBuild project.

" + "smithy.api#documentation": "

Details for an AWS CodeBuild project.

" } }, "AwsCloudFrontDistribution": { @@ -15819,7 +15239,7 @@ "AwsEc2NetworkInterface": { "target": "com.amazonaws.securityhub#AwsEc2NetworkInterfaceDetails", "traits": { - "smithy.api#documentation": "

Details for an EC2 network interface.

" + "smithy.api#documentation": "

Details for an Amazon EC2 network interface.

" } }, "AwsEc2SecurityGroup": { @@ -15849,7 +15269,7 @@ "AwsEc2Subnet": { "target": "com.amazonaws.securityhub#AwsEc2SubnetDetails", "traits": { - "smithy.api#documentation": "

Details about a subnet in Amazon EC2.

" + "smithy.api#documentation": "

Details about a subnet in EC2.

" } }, "AwsEc2NetworkAcl": { @@ -15879,7 +15299,7 @@ "AwsS3Bucket": { "target": "com.amazonaws.securityhub#AwsS3BucketDetails", "traits": { - "smithy.api#documentation": "

Details about an S3 bucket related to a finding.

" + "smithy.api#documentation": "

Details about an Amazon S3 bucket related to a finding.

" } }, "AwsS3AccountPublicAccessBlock": { @@ -15891,7 +15311,7 @@ "AwsS3Object": { "target": "com.amazonaws.securityhub#AwsS3ObjectDetails", "traits": { - "smithy.api#documentation": "

Details about an S3 object related to a finding.

" + "smithy.api#documentation": "

Details about an Amazon S3 object related to a finding.

" } }, "AwsSecretsManagerSecret": { @@ -15963,7 +15383,7 @@ "AwsCertificateManagerCertificate": { "target": "com.amazonaws.securityhub#AwsCertificateManagerCertificateDetails", "traits": { - "smithy.api#documentation": "

Provides details about an Certificate Manager certificate.

" + "smithy.api#documentation": "

Provides details about an AWS Certificate Manager (ACM) certificate.

" } }, "AwsRedshiftCluster": { @@ -15993,7 +15413,7 @@ "AwsKmsKey": { "target": "com.amazonaws.securityhub#AwsKmsKeyDetails", "traits": { - "smithy.api#documentation": "

Details about an KMS key.

" + "smithy.api#documentation": "

Details about a KMS key.

" } }, "AwsLambdaFunction": { @@ -16029,7 +15449,7 @@ "AwsWafWebAcl": { "target": "com.amazonaws.securityhub#AwsWafWebAclDetails", "traits": { - "smithy.api#documentation": "

Details for an WAF WebACL.

" + "smithy.api#documentation": "

Details for a WAF WebACL.

" } }, "AwsRdsDbSnapshot": { @@ -16073,18 +15493,6 @@ "traits": { "smithy.api#documentation": "

Details about a resource that are not available in a type-specific details object. Use\n the Other object in the following cases.

\n " } - }, - "AwsRdsEventSubscription": { - "target": "com.amazonaws.securityhub#AwsRdsEventSubscriptionDetails", - "traits": { - "smithy.api#documentation": "

Details about an RDS event notification subscription.

" - } - }, - "AwsEcsService": { - "target": "com.amazonaws.securityhub#AwsEcsServiceDetails", - "traits": { - "smithy.api#documentation": "

Details about a service within an ECS cluster.

" - } } }, "traits": { @@ -16119,7 +15527,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#AccountId", "traits": { - "smithy.api#documentation": "

An Amazon Web Services account ID of the account that was not processed.

" + "smithy.api#documentation": "

An AWS account ID of the account that was not processed.

" } }, "ProcessingResult": { @@ -16315,7 +15723,7 @@ "name": "securityhub" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

Security Hub provides you with a comprehensive view of the security state of your Amazon Web Services environment and resources. It also provides you with the readiness status\n of your environment based on controls from supported security standards. Security Hub collects\n security data from Amazon Web Services accounts, services, and integrated third-party products and helps\n you analyze security trends in your environment to identify the highest priority security\n issues. For more information about Security Hub, see the Security HubUser\n Guide\n .

\n

When you use operations in the Security Hub API, the requests are executed only in the Amazon Web Services\n Region that is currently active or in the specific Amazon Web Services Region that you specify in your\n request. Any configuration or settings change that results from the operation is applied\n only to that Region. To make the same change in other Regions, execute the same command for\n each Region to apply the change to.

\n

For example, if your Region is set to us-west-2, when you use CreateMembers to add a member account to Security Hub, the association of\n the member account with the administrator account is created only in the us-west-2\n Region. Security Hub must be enabled for the member account in the same Region that the invitation\n was sent from.

\n

The following throttling limits apply to using Security Hub API operations.

\n ", + "smithy.api#documentation": "

Security Hub provides you with a comprehensive view of the security state of your AWS\n environment and resources. It also provides you with the readiness status of your\n environment based on controls from supported security standards. Security Hub collects security\n data from AWS accounts, services, and integrated third-party products and helps you analyze\n security trends in your environment to identify the highest priority security issues. For\n more information about Security Hub, see the \n AWS Security Hub User\n Guide\n .

\n

When you use operations in the Security Hub API, the requests are executed only in the AWS\n Region that is currently active or in the specific AWS Region that you specify in your\n request. Any configuration or settings change that results from the operation is applied\n only to that Region. To make the same change in other Regions, execute the same command for\n each Region to apply the change to.

\n

For example, if your Region is set to us-west-2, when you use \n CreateMembers\n to add a member account to Security Hub, the association of\n the member account with the administrator account is created only in the us-west-2\n Region. Security Hub must be enabled for the member account in the same Region that the invitation\n was sent from.

\n

The following throttling limits apply to using Security Hub API operations.

\n ", "smithy.api#title": "AWS SecurityHub" } }, @@ -16389,7 +15797,7 @@ "Product": { "target": "com.amazonaws.securityhub#Double", "traits": { - "smithy.api#documentation": "

Deprecated. This attribute is being deprecated. Instead of providing\n Product, provide Original.

\n

The native severity as defined by the Amazon Web Services service or integrated partner product that\n generated the finding.

" + "smithy.api#documentation": "

Deprecated. This attribute is being deprecated. Instead of providing\n Product, provide Original.

\n

The native severity as defined by the AWS service or integrated partner product that\n generated the finding.

" } }, "Label": { @@ -16477,7 +15885,7 @@ "Product": { "target": "com.amazonaws.securityhub#Double", "traits": { - "smithy.api#documentation": "

The native severity as defined by the Amazon Web Services service or integrated partner product that\n generated the finding.

" + "smithy.api#documentation": "

The native severity as defined by the AWS service or integrated partner product that\n generated the finding.

" } }, "Label": { @@ -16671,7 +16079,7 @@ "SeverityRating": { "target": "com.amazonaws.securityhub#SeverityRating", "traits": { - "smithy.api#documentation": "

The severity of findings generated from this security standard control.

\n

The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services\n resources if the issue is detected.

" + "smithy.api#documentation": "

The severity of findings generated from this security standard control.

\n

The finding severity is based on an assessment of how easy it would be to compromise AWS\n resources if the issue is detected.

" } }, "RelatedRequirements": { @@ -16781,7 +16189,7 @@ "StandardsArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the standard that you want to enable. To view the list of available standards\n and their ARNs, use the DescribeStandards operation.

", + "smithy.api#documentation": "

The ARN of the standard that you want to enable. To view the list of available standards\n and their ARNs, use the \n DescribeStandards\n operation.

", "smithy.api#required": {} } }, @@ -16820,7 +16228,7 @@ "ReasonCode": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

A code that represents a reason for the control status. For the list of status reason\n codes and their meanings, see Standards-related information in the ASFF in the\n Security Hub User Guide.

", + "smithy.api#documentation": "

A code that represents a reason for the control status. For the list of status reason\n codes and their meanings, see Standards-related information in the ASFF in the\n AWS Security Hub User Guide.

", "smithy.api#required": {} } }, @@ -16853,7 +16261,7 @@ "Comparison": { "target": "com.amazonaws.securityhub#StringFilterComparison", "traits": { - "smithy.api#documentation": "

The condition to apply to a string value when querying for findings. To search for\n values that contain the filter criteria value, use one of the following comparison\n operators:

\n \n

\n EQUALS and PREFIX filters on the same field are joined by\n OR. A finding matches if it matches any one of those filters.

\n

To search for values that do not contain the filter criteria value, use one of the\n following comparison operators:

\n \n

\n NOT_EQUALS and PREFIX_NOT_EQUALS filters on the same field are\n joined by AND. A finding matches only if it matches all of those\n filters.

\n

For filters on the same field, you cannot provide both an EQUALS filter and\n a NOT_EQUALS or PREFIX_NOT_EQUALS filter. Combining filters in\n this way always returns an error, even if the provided filter values would return valid\n results.

\n

You can combine PREFIX filters with NOT_EQUALS or\n PREFIX_NOT_EQUALS filters for the same field. Security Hub first processes the\n PREFIX filters, then the NOT_EQUALS or\n PREFIX_NOT_EQUALS filters.

\n

For example, for the following filter, Security Hub first identifies findings that have\n resource types that start with either AwsIAM or AwsEc2. It then\n excludes findings that have a resource type of AwsIamPolicy and findings that\n have a resource type of AwsEc2NetworkInterface.

\n " + "smithy.api#documentation": "

The condition to apply to a string value when querying for findings. To search for\n values that contain the filter criteria value, use one of the following comparison\n operators:

\n \n

\n EQUALS and PREFIX filters on the same field are joined by\n OR. A finding matches if it matches any one of those filters.

\n

To search for values that do not contain the filter criteria value, use one of the\n following comparison operators:

\n \n

\n NOT_EQUALS and PREFIX_NOT_EQUALS filters on the same field are\n joined by AND. A finding matches only if it matches all of those\n filters.

\n

For filters on the same field, you cannot provide both an EQUALS filter and\n a NOT_EQUALS or PREFIX_NOT_EQUALS filter. Combining filters in\n this way always returns an error, even if the provided filter values would return valid\n results.

\n

You can combine PREFIX filters with NOT_EQUALS or\n PREFIX_NOT_EQUALS filters for the same field. Security Hub first processes the\n PREFIX filters, then the NOT_EQUALS or\n PREFIX_NOT_EQUALS filters.

\n

For example, for the following filter, Security Hub first identifies findings that have\n resource types that start with either AwsIAM or AwsEc2. It then\n excludes findings that have a resource type of AwsIamPolicy and findings that\n have a resource type of AwsEc2NetworkInterface.

\n " } } }, @@ -17657,12 +17065,12 @@ "Type": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Specifies how you want WAF to respond to requests that match the settings in a\n rule.

\n

Valid settings include the following:

\n " + "smithy.api#documentation": "

Specifies how you want AWS WAF to respond to requests that match the settings in a\n rule.

\n

Valid settings include the following:

\n " } } }, "traits": { - "smithy.api#documentation": "

Details about the action that CloudFront or WAF takes when a web request matches the\n conditions in the rule.

" + "smithy.api#documentation": "

Details about the action that CloudFront or AWS WAF takes when a web request matches the\n conditions in the rule.

" } }, "com.amazonaws.securityhub#WafExcludedRule": { diff --git a/codegen/sdk-codegen/aws-models/shield.2016-06-02.json b/codegen/sdk-codegen/aws-models/shield.2016-06-02.json index 7baa4bac8bc..a432abb3707 100644 --- a/codegen/sdk-codegen/aws-models/shield.2016-06-02.json +++ b/codegen/sdk-codegen/aws-models/shield.2016-06-02.json @@ -145,7 +145,7 @@ "name": "shield" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Shield Advanced\n

This is the Shield Advanced API Reference. This guide is for developers who need detailed information about the Shield Advanced API actions, \n data types, and errors. For detailed information about WAF and Shield Advanced features and an overview of how to use the WAF and Shield Advanced APIs, see the \n WAF and Shield Developer Guide.

", + "smithy.api#documentation": "AWS Shield Advanced\n

This is the AWS Shield Advanced API Reference. This guide is for developers who need detailed information about the AWS Shield Advanced API actions, \n data types, and errors. For detailed information about AWS WAF and AWS Shield Advanced features and an overview of how to use the AWS WAF and AWS Shield Advanced APIs, see the \n AWS WAF and AWS Shield Developer Guide.

", "smithy.api#title": "AWS Shield", "smithy.api#xmlNamespace": { "uri": "http://ddp.amazonaws.com/doc/2016-06-02/" @@ -172,7 +172,7 @@ } }, "traits": { - "smithy.api#documentation": "

In order to grant the necessary access to the Shield Response Team (SRT) the user submitting the request must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see Granting a User Permissions to Pass a Role to an Amazon Web Services Service.

", + "smithy.api#documentation": "

In order to grant the necessary access to the DDoS Response Team (DRT), the user submitting the request must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see Granting a User Permissions to Pass a Role to an AWS Service.

", "smithy.api#error": "client" } }, @@ -211,7 +211,7 @@ } ], "traits": { - "smithy.api#documentation": "

Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription.

\n\t

To use the services of the SRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

" + "smithy.api#documentation": "

Authorizes the DDoS Response Team (DRT) to access the specified Amazon S3 bucket containing your AWS WAF logs. You can associate up to 10 Amazon S3 buckets with your subscription.

\n\t

To use the services of the DRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

" } }, "com.amazonaws.shield#AssociateDRTLogBucketRequest": { @@ -220,7 +220,7 @@ "LogBucket": { "target": "com.amazonaws.shield#LogBucket", "traits": { - "smithy.api#documentation": "

The Amazon S3 bucket that contains the logs that you want to share.

", + "smithy.api#documentation": "

The Amazon S3 bucket that contains your AWS WAF logs.

", "smithy.api#required": {} } } @@ -259,7 +259,7 @@ } ], "traits": { - "smithy.api#documentation": "

Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your WAF configuration and create or update WAF rules and web ACLs.

\n

You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn.

\n

Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal.

\n\n

The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you.

\n

You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an Amazon Web Services Service.

\n

To use the services of the SRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

" + "smithy.api#documentation": "

Authorizes the DDoS Response Team (DRT), using the specified role, to access your AWS account to assist with DDoS attack mitigation during potential attacks. This enables the DRT to inspect your AWS WAF configuration and create or update AWS WAF rules and web ACLs.

\n

You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn.

\n

Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal.

\n\n

The DRT will have access only to your AWS WAF and Shield resources. By submitting this request, you authorize the DRT to inspect your AWS WAF and Shield configuration and create and update AWS WAF rules and web ACLs on your behalf. The DRT takes these actions only if explicitly authorized by you.

\n

You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an AWS Service.

\n

To use the services of the DRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

" } }, "com.amazonaws.shield#AssociateDRTRoleRequest": { @@ -268,7 +268,7 @@ "RoleArn": { "target": "com.amazonaws.shield#RoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role the SRT will use to access your Amazon Web Services account.

\n\t

Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to this role. For more information see Attaching and Detaching IAM Policies.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role the DRT will use to access your AWS account.

\n\t

Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to this role. For more information see Attaching and Detaching IAM Policies.

", "smithy.api#required": {} } } @@ -304,7 +304,7 @@ } ], "traits": { - "smithy.api#documentation": "

Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and mitigation.

\n

You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide.

" + "smithy.api#documentation": "

Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

\n

You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

" } }, "com.amazonaws.shield#AssociateHealthCheckRequest": { @@ -356,7 +356,7 @@ } ], "traits": { - "smithy.api#documentation": "

Initializes proactive engagement and sets the list of contacts for the Shield Response Team (SRT) to use. You must provide at least one phone number in the emergency contact list.

\n

After you have initialized proactive engagement using this call, to disable or enable proactive engagement, use the calls DisableProactiveEngagement and EnableProactiveEngagement.

\n \n

This call defines the list of email addresses and phone numbers that the SRT can use to contact you for escalations to the SRT and to initiate proactive customer support.

\n

The contacts that you provide in the request replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it to this call.

\n
" + "smithy.api#documentation": "

Initializes proactive engagement and sets the list of contacts for the DDoS Response Team (DRT) to use. You must provide at least one phone number in the emergency contact list.

\n

After you have initialized proactive engagement using this call, to disable or enable proactive engagement, use the calls DisableProactiveEngagement and EnableProactiveEngagement.

\n \n

This call defines the list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you for escalations to the DRT and to initiate proactive customer support.

\n

The contacts that you provide in the request replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it to this call.

\n
" } }, "com.amazonaws.shield#AssociateProactiveEngagementDetailsRequest": { @@ -365,7 +365,7 @@ "EmergencyContactList": { "target": "com.amazonaws.shield#EmergencyContactList", "traits": { - "smithy.api#documentation": "

A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.

\n

To enable proactive engagement, the contact list must include at least one phone number.

\n \n

The contacts that you provide here replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it here.

\n
", + "smithy.api#documentation": "

A list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you for escalations to the DRT and to initiate proactive customer support.

\n

To enable proactive engagement, the contact list must include at least one phone number.

\n \n

The contacts that you provide here replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it here.

\n
", "smithy.api#required": {} } } @@ -417,7 +417,7 @@ "AttackProperties": { "target": "com.amazonaws.shield#AttackProperties", "traits": { - "smithy.api#documentation": "

The array of objects that provide details of the Shield event.

\n

For infrastructure \n layer events (L3 and L4 events) after January 25, 2021, you can view metrics for top contributors in Amazon CloudWatch metrics. \n For more information, see Shield metrics and alarms \n in the WAF Developer Guide.

" + "smithy.api#documentation": "

The array of AttackProperty objects.

" } }, "Mitigations": { @@ -438,7 +438,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9\\\\-]*$" + "smithy.api#pattern": "[a-zA-Z0-9\\\\-]*" } }, "com.amazonaws.shield#AttackLayer": { @@ -468,36 +468,36 @@ "AttackLayer": { "target": "com.amazonaws.shield#AttackLayer", "traits": { - "smithy.api#documentation": "

The type of Shield event that was observed. NETWORK indicates layer 3 and layer 4 events and APPLICATION\n indicates layer 7 events.

\n

For infrastructure \n layer events (L3 and L4 events) after January 25, 2021, you can view metrics for top contributors in Amazon CloudWatch metrics. \n For more information, see Shield metrics and alarms \n in the WAF Developer Guide.

" + "smithy.api#documentation": "

The type of distributed denial of service (DDoS) event that was observed.\n NETWORK indicates layer 3 and layer 4 events and APPLICATION\n indicates layer 7 events.

" } }, "AttackPropertyIdentifier": { "target": "com.amazonaws.shield#AttackPropertyIdentifier", "traits": { - "smithy.api#documentation": "

Defines the Shield event property information that is provided. The\n WORDPRESS_PINGBACK_REFLECTOR and WORDPRESS_PINGBACK_SOURCE\n values are valid only for WordPress reflective pingback events.

" + "smithy.api#documentation": "

Defines the DDoS attack property information that is provided. The\n WORDPRESS_PINGBACK_REFLECTOR and WORDPRESS_PINGBACK_SOURCE\n values are valid only for WordPress reflective pingback DDoS attacks.

" } }, "TopContributors": { "target": "com.amazonaws.shield#TopContributors", "traits": { - "smithy.api#documentation": "

Contributor objects for the top five contributors to a Shield event.

" + "smithy.api#documentation": "

The array of contributor objects that includes the top five contributors to an attack.

" } }, "Unit": { "target": "com.amazonaws.shield#Unit", "traits": { - "smithy.api#documentation": "

The unit used for the Contributor \n Value property.

" + "smithy.api#documentation": "

The unit of the Value of the contributions.

" } }, "Total": { "target": "com.amazonaws.shield#Long", "traits": { - "smithy.api#documentation": "

The total contributions made to this Shield event by all contributors.

" + "smithy.api#documentation": "

The total contributions made to this attack by all contributors, not just the five listed in the TopContributors list.

" } } }, "traits": { - "smithy.api#documentation": "

Details of a Shield event. This is provided as part of an AttackDetail.

" + "smithy.api#documentation": "

Details of the described attack.

" } }, "com.amazonaws.shield#AttackPropertyIdentifier": { @@ -755,7 +755,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.

\n

You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the WAF console. For more information see Getting Started with Shield Advanced and Add Shield Advanced Protection to more Amazon Web Services Resources.

" + "smithy.api#documentation": "

Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon\n CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.

\n

You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console. For more information see Getting Started with AWS Shield Advanced and Add AWS Shield Advanced Protection to more AWS Resources.

" } }, "com.amazonaws.shield#CreateProtectionGroup": { @@ -803,7 +803,7 @@ "Aggregation": { "target": "com.amazonaws.shield#ProtectionGroupAggregation", "traits": { - "smithy.api#documentation": "

Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", + "smithy.api#documentation": "

Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", "smithy.api#required": {} } }, @@ -851,7 +851,7 @@ "ResourceArn": { "target": "com.amazonaws.shield#ResourceArn", "traits": { - "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the resource to be protected.

\n

The ARN should be in one of the following formats:

\n ", + "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the resource to be protected.

\n

The ARN should be in one of the following formats:

\n ", "smithy.api#required": {} } }, @@ -891,7 +891,7 @@ } ], "traits": { - "smithy.api#documentation": "

Activates Shield Advanced for an account.

\n \n

When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.

" + "smithy.api#documentation": "

Activates AWS Shield Advanced for an account.

\n \n

When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.

" } }, "com.amazonaws.shield#CreateSubscriptionRequest": { @@ -922,7 +922,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes an Shield Advanced Protection.

" + "smithy.api#documentation": "

Deletes an AWS Shield Advanced Protection.

" } }, "com.amazonaws.shield#DeleteProtectionGroup": { @@ -1001,7 +1001,7 @@ ], "traits": { "smithy.api#deprecated": {}, - "smithy.api#documentation": "

Removes Shield Advanced from an account. Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.

" + "smithy.api#documentation": "

Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.

" } }, "com.amazonaws.shield#DeleteSubscriptionRequest": { @@ -1075,7 +1075,7 @@ } ], "traits": { - "smithy.api#documentation": "

Provides information about the number and type of attacks Shield has detected in the last year for all resources that belong to your account, regardless of whether you've defined Shield protections for them. This operation is available to Shield customers as well as to Shield Advanced customers.

\n

The operation returns data for the time range of midnight UTC, one year ago, to midnight UTC, today. For example, if the current time is 2020-10-26 15:39:32 PDT, equal to 2020-10-26 22:39:32 UTC, then the time range for the attack data returned is from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC.

\n

The time range indicates the period covered by the attack statistics data items.

" + "smithy.api#documentation": "

Provides information about the number and type of attacks AWS Shield has detected in the last year for all resources that belong to your account, regardless of whether you've defined Shield protections for them. This operation is available to Shield customers as well as to Shield Advanced customers.

\n

The operation returns data for the time range of midnight UTC, one year ago, to midnight UTC, today. For example, if the current time is 2020-10-26 15:39:32 PDT, equal to 2020-10-26 22:39:32 UTC, then the time range for the attack data returned is from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC.

\n

The time range indicates the period covered by the attack statistics data items.

" } }, "com.amazonaws.shield#DescribeAttackStatisticsRequest": { @@ -1117,7 +1117,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the current role and list of Amazon S3 log buckets used by the Shield Response Team (SRT) to access your Amazon Web Services account while assisting with attack mitigation.

" + "smithy.api#documentation": "

Returns the current role and list of Amazon S3 log buckets used by the DDoS Response Team (DRT) to access your AWS account while assisting with attack mitigation.

" } }, "com.amazonaws.shield#DescribeDRTAccessRequest": { @@ -1130,13 +1130,13 @@ "RoleArn": { "target": "com.amazonaws.shield#RoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon Web Services account.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role the DRT used to access your AWS account.

" } }, "LogBucketList": { "target": "com.amazonaws.shield#LogBucketList", "traits": { - "smithy.api#documentation": "

The list of Amazon S3 buckets accessed by the SRT.

" + "smithy.api#documentation": "

The list of Amazon S3 buckets accessed by the DRT.

" } } } @@ -1158,7 +1158,7 @@ } ], "traits": { - "smithy.api#documentation": "

A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

A list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#DescribeEmergencyContactSettingsRequest": { @@ -1171,7 +1171,7 @@ "EmergencyContactList": { "target": "com.amazonaws.shield#EmergencyContactList", "traits": { - "smithy.api#documentation": "

A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

A list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

" } } } @@ -1237,7 +1237,7 @@ "ProtectionGroup": { "target": "com.amazonaws.shield#ProtectionGroup", "traits": { - "smithy.api#documentation": "

A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

", + "smithy.api#documentation": "

A grouping of protected resources that you and AWS Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

", "smithy.api#required": {} } } @@ -1255,7 +1255,7 @@ "ResourceArn": { "target": "com.amazonaws.shield#ResourceArn", "traits": { - "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the Amazon Web Services resource for the Protection object that is\n described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

" + "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the AWS resource for the Protection object that is\n described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

" } } } @@ -1288,7 +1288,7 @@ } ], "traits": { - "smithy.api#documentation": "

Provides details about the Shield Advanced subscription for an account.

" + "smithy.api#documentation": "

Provides details about the AWS Shield Advanced subscription for an account.

" } }, "com.amazonaws.shield#DescribeSubscriptionRequest": { @@ -1301,7 +1301,7 @@ "Subscription": { "target": "com.amazonaws.shield#Subscription", "traits": { - "smithy.api#documentation": "

The Shield Advanced subscription details for an account.

" + "smithy.api#documentation": "

The AWS Shield Advanced subscription details for an account.

" } } } @@ -1332,7 +1332,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes authorization from the Shield Response Team (SRT) to notify contacts about escalations to the SRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

Removes authorization from the DDoS Response Team (DRT) to notify contacts about escalations to the DRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#DisableProactiveEngagementRequest": { @@ -1372,7 +1372,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes the Shield Response Team's (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously.

\n\t

To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the SRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.

" + "smithy.api#documentation": "

Removes the DDoS Response Team's (DRT) access to the specified Amazon S3 bucket containing your AWS WAF logs.

\n\t

To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.

" } }, "com.amazonaws.shield#DisassociateDRTLogBucketRequest": { @@ -1381,7 +1381,7 @@ "LogBucket": { "target": "com.amazonaws.shield#LogBucket", "traits": { - "smithy.api#documentation": "

The Amazon S3 bucket that contains the logs that you want to share.

", + "smithy.api#documentation": "

The Amazon S3 bucket that contains your AWS WAF logs.

", "smithy.api#required": {} } } @@ -1414,7 +1414,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes the Shield Response Team's (SRT) access to your Amazon Web Services account.

\n\t

To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the SRT access to your account, you can submit a DisassociateDRTRole request to remove this access.

" + "smithy.api#documentation": "

Removes the DDoS Response Team's (DRT) access to your AWS account.

\n\t

To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTRole request to remove this access.

" } }, "com.amazonaws.shield#DisassociateDRTRoleRequest": { @@ -1448,7 +1448,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and mitigation.

\n

You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide.

" + "smithy.api#documentation": "

Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

\n

You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

" } }, "com.amazonaws.shield#DisassociateHealthCheckRequest": { @@ -1519,7 +1519,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contact information that the SRT can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

Contact information that the DRT can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#EmergencyContactList": { @@ -1560,7 +1560,7 @@ } ], "traits": { - "smithy.api#documentation": "

Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

Authorizes the DDoS Response Team (DRT) to use email and phone to notify contacts about escalations to the DRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#EnableProactiveEngagementRequest": { @@ -1893,7 +1893,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "

If you specify a value for MaxResults and you have more protection groups than the value of MaxResults, Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

" + "smithy.api#documentation": "

If you specify a value for MaxResults and you have more protection groups than the value of MaxResults, AWS Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

" } } } @@ -1956,7 +1956,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "

If you specify a value for MaxResults and you have more Protections than the value of MaxResults, Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.

\n

Shield Advanced might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, Shield Advanced will always also return a NextToken.

" + "smithy.api#documentation": "

If you specify a value for MaxResults and you have more Protections than the value of MaxResults, AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.

\n

Shield Advanced might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, Shield Advanced will always also return a NextToken.

" } } } @@ -2026,7 +2026,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "

If you specify a value for MaxResults and you have more resources in the protection group than the value of MaxResults, Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

" + "smithy.api#documentation": "

If you specify a value for MaxResults and you have more resources in the protection group than the value of MaxResults, AWS Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

" } } } @@ -2051,7 +2051,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield.

" + "smithy.api#documentation": "

Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS Shield.

" } }, "com.amazonaws.shield#ListTagsForResourceRequest": { @@ -2246,7 +2246,7 @@ "ResourceArn": { "target": "com.amazonaws.shield#ResourceArn", "traits": { - "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.

" + "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the AWS resource that is protected.

" } }, "HealthCheckIds": { @@ -2279,7 +2279,7 @@ "Aggregation": { "target": "com.amazonaws.shield#ProtectionGroupAggregation", "traits": { - "smithy.api#documentation": "

Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", + "smithy.api#documentation": "

Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", "smithy.api#required": {} } }, @@ -2311,7 +2311,7 @@ } }, "traits": { - "smithy.api#documentation": "

A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

" + "smithy.api#documentation": "

A grouping of protected resources that you and AWS Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

" } }, "com.amazonaws.shield#ProtectionGroupAggregation": { @@ -2355,7 +2355,7 @@ "min": 1, "max": 36 }, - "smithy.api#pattern": "^[a-zA-Z0-9\\\\-]*$" + "smithy.api#pattern": "[a-zA-Z0-9\\\\-]*" } }, "com.amazonaws.shield#ProtectionGroupLimits": { @@ -2439,7 +2439,7 @@ "min": 1, "max": 36 }, - "smithy.api#pattern": "^[a-zA-Z0-9\\\\-]*$" + "smithy.api#pattern": "[a-zA-Z0-9\\\\-]*" } }, "com.amazonaws.shield#ProtectionLimits": { @@ -2464,7 +2464,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[ a-zA-Z0-9_\\\\.\\\\-]*$" + "smithy.api#pattern": "[ a-zA-Z0-9_\\\\.\\\\-]*" } }, "com.amazonaws.shield#Protections": { @@ -2498,7 +2498,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^arn:aws" + "smithy.api#pattern": "^arn:aws.*" } }, "com.amazonaws.shield#ResourceArnFilterList": { @@ -2538,7 +2538,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$" + "smithy.api#pattern": "^arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" } }, "com.amazonaws.shield#String": { @@ -2615,7 +2615,7 @@ "TimeCommitmentInSeconds": { "target": "com.amazonaws.shield#DurationInSeconds", "traits": { - "smithy.api#documentation": "

The length, in seconds, of the Shield Advanced subscription for the account.

" + "smithy.api#documentation": "

The length, in seconds, of the AWS Shield Advanced subscription for the account.

" } }, "AutoRenew": { @@ -2633,7 +2633,7 @@ "ProactiveEngagementStatus": { "target": "com.amazonaws.shield#ProactiveEngagementStatus", "traits": { - "smithy.api#documentation": "

If ENABLED, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.

\n

If PENDING, you have requested proactive engagement and the request is pending. The status changes to ENABLED when your request is fully processed.

\n

If DISABLED, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.

" + "smithy.api#documentation": "

If ENABLED, the DDoS Response Team (DRT) will use email and phone to notify contacts about escalations to the DRT and to initiate proactive customer support.

\n

If PENDING, you have requested proactive engagement and the request is pending. The status changes to ENABLED when your request is fully processed.

\n

If DISABLED, the DRT will not proactively notify contacts about escalations or to initiate proactive customer support.

" } }, "SubscriptionLimits": { @@ -2651,7 +2651,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the Shield Advanced subscription for an account.

" + "smithy.api#documentation": "

Information about the AWS Shield Advanced subscription for an account.

" } }, "com.amazonaws.shield#SubscriptionLimits": { @@ -2785,7 +2785,7 @@ } }, "traits": { - "smithy.api#documentation": "

A tag associated with an Amazon Web Services resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as \"environment\", and the tag value represents a specific value within that category, such as \"test,\" \"development,\" or \"production\". Or you might set the tag key to \"customer\" and the value to the customer name or ID. You can specify one or more tags to add to each Amazon Web Services resource, up to 50 tags for a resource.

" + "smithy.api#documentation": "

A tag associated with an AWS resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as \"environment\", and the tag value represents a specific value within that category, such as \"test,\" \"development,\" or \"production\". Or you might set the tag key to \"customer\" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.

" } }, "com.amazonaws.shield#TagKey": { @@ -2844,7 +2844,7 @@ } ], "traits": { - "smithy.api#documentation": "

Adds or updates tags for a resource in Shield.

" + "smithy.api#documentation": "

Adds or updates tags for a resource in AWS Shield.

" } }, "com.amazonaws.shield#TagResourceRequest": { @@ -2964,7 +2964,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes tags from a resource in Shield.

" + "smithy.api#documentation": "

Removes tags from a resource in AWS Shield.

" } }, "com.amazonaws.shield#UntagResourceRequest": { @@ -3013,7 +3013,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the details of the list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

Updates the details of the list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#UpdateEmergencyContactSettingsRequest": { @@ -3022,7 +3022,7 @@ "EmergencyContactList": { "target": "com.amazonaws.shield#EmergencyContactList", "traits": { - "smithy.api#documentation": "

A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

\n

If you have proactive engagement enabled, the contact list must include at least one phone number.

" + "smithy.api#documentation": "

A list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

\n

If you have proactive engagement enabled, the contact list must include at least one phone number.

" } } } @@ -3070,7 +3070,7 @@ "Aggregation": { "target": "com.amazonaws.shield#ProtectionGroupAggregation", "traits": { - "smithy.api#documentation": "

Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", + "smithy.api#documentation": "

Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", "smithy.api#required": {} } }, diff --git a/codegen/sdk-codegen/aws-models/ssoadmin.2020-07-20.json b/codegen/sdk-codegen/aws-models/ssoadmin.2020-07-20.json index 01cd4f3158a..cc23fd2dbc6 100644 --- a/codegen/sdk-codegen/aws-models/ssoadmin.2020-07-20.json +++ b/codegen/sdk-codegen/aws-models/ssoadmin.2020-07-20.json @@ -35,7 +35,7 @@ "Key": { "target": "com.amazonaws.ssoadmin#AccessControlAttributeKey", "traits": { - "smithy.api#documentation": "

The name of the attribute associated with your identities in your identity source. This is\n used to map a specified attribute in your identity source with an attribute in Amazon Web Services\n SSO.

", + "smithy.api#documentation": "

The name of the attribute associated with your identities in your identity source. This is used to map a specified attribute in your identity source with an attribute in AWS SSO.

", "smithy.api#required": {} } }, @@ -48,7 +48,7 @@ } }, "traits": { - "smithy.api#documentation": "

These are Amazon Web Services SSO identity store attributes that you can configure for use in\n attributes-based access control (ABAC). You can create permissions policies that determine who\n can access your Amazon Web Services resources based upon the configured attribute values. When you enable\n ABAC and specify AccessControlAttributes, Amazon Web Services SSO passes the attribute values\n of the authenticated user into IAM for use in policy evaluation.

" + "smithy.api#documentation": "

These are AWS SSO identity store attributes that you can configure for use in attributes-based access control (ABAC). You can create permission policies that determine who can access your AWS resources based upon the configured attribute value(s). When you enable ABAC and specify AccessControlAttributes, AWS SSO passes the attribute(s) value of the authenticated user into IAM for use in policy evaluation.

" } }, "com.amazonaws.ssoadmin#AccessControlAttributeKey": { @@ -58,7 +58,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]+$" + "smithy.api#pattern": "[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]+" } }, "com.amazonaws.ssoadmin#AccessControlAttributeList": { @@ -79,7 +79,7 @@ "Source": { "target": "com.amazonaws.ssoadmin#AccessControlAttributeValueSourceList", "traits": { - "smithy.api#documentation": "

The identity source to use when mapping a specified attribute to Amazon Web Services SSO.

", + "smithy.api#documentation": "

The identity source to use when mapping a specified attribute to AWS SSO.

", "smithy.api#required": {} } } @@ -95,7 +95,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": "^[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@\\[\\]\\{\\}\\$\\\\\"]*$" + "smithy.api#pattern": "[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@\\[\\]\\{\\}\\$\\\\\"]*" } }, "com.amazonaws.ssoadmin#AccessControlAttributeValueSourceList": { @@ -132,13 +132,13 @@ "AccountId": { "target": "com.amazonaws.ssoadmin#AccountId", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Web Services account.

" + "smithy.api#documentation": "

The identifier of the AWS account.

" } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" + "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" } }, "PrincipalType": { @@ -150,12 +150,12 @@ "PrincipalId": { "target": "com.amazonaws.ssoadmin#PrincipalId", "traits": { - "smithy.api#documentation": "

An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

" + "smithy.api#documentation": "

An identifier for an object in AWS SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API Reference.

" } } }, "traits": { - "smithy.api#documentation": "

The assignment that indicates a principal's limited access to a specified Amazon Web Services account\n with a specified permission set.

\n \n

The term principal here refers to a user or group that is defined\n in Amazon Web Services SSO.

\n
" + "smithy.api#documentation": "

The assignment that indicates a principal's limited access to a specified AWS account\n with a specified permission set.

\n \n

The term principal here refers to a user or group that is defined in AWS SSO.

\n
" } }, "com.amazonaws.ssoadmin#AccountAssignmentList": { @@ -188,7 +188,7 @@ "TargetId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

" + "smithy.api#documentation": "

TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).

" } }, "TargetType": { @@ -200,7 +200,7 @@ "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" + "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" } }, "PrincipalType": { @@ -212,7 +212,7 @@ "PrincipalId": { "target": "com.amazonaws.ssoadmin#PrincipalId", "traits": { - "smithy.api#documentation": "

An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

" + "smithy.api#documentation": "

An identifier for an object in AWS SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API Reference.

" } }, "CreatedDate": { @@ -261,7 +261,7 @@ "com.amazonaws.ssoadmin#AccountId": { "type": "string", "traits": { - "smithy.api#pattern": "^\\d{12}$" + "smithy.api#pattern": "\\d{12}" } }, "com.amazonaws.ssoadmin#AccountList": { @@ -302,7 +302,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches an IAM managed policy ARN to a permission set.

\n \n

If the permission set is already referenced by one or more account assignments, you will\n need to call \n ProvisionPermissionSet\n after this operation.\n Calling ProvisionPermissionSet applies the corresponding IAM policy updates to\n all assigned accounts.

\n
" + "smithy.api#documentation": "

Attaches an IAM managed policy ARN to a permission set.

\n \n

If the permission set is already referenced by one or more account assignments, you will need to call \n ProvisionPermissionSet\n after this action to apply the corresponding IAM policy updates to all assigned accounts.

\n
" } }, "com.amazonaws.ssoadmin#AttachManagedPolicyToPermissionSetRequest": { @@ -311,14 +311,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the PermissionSet that the managed policy should be attached\n to.

", + "smithy.api#documentation": "

The ARN of the PermissionSet that the managed policy should be attached\n to.

", "smithy.api#required": {} } }, @@ -347,7 +347,7 @@ "Arn": { "target": "com.amazonaws.ssoadmin#ManagedPolicyArn", "traits": { - "smithy.api#documentation": "

The ARN of the IAM managed policy. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" + "smithy.api#documentation": "

The ARN of the IAM managed policy. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" } } }, @@ -369,7 +369,7 @@ } }, "traits": { - "smithy.api#documentation": "

Occurs when a conflict with a previous successful write is detected. This generally occurs\n when the previous write did not have time to propagate to the host serving the current\n request. A retry (with appropriate backoff logic) is the recommended response to this\n exception.

", + "smithy.api#documentation": "

Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } @@ -409,7 +409,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns access to a principal for a specified Amazon Web Services account using a specified permission\n set.

\n \n

The term principal here refers to a user or group that is defined\n in Amazon Web Services SSO.

\n
\n \n

As part of a successful CreateAccountAssignment call, the specified\n permission set will automatically be provisioned to the account in the form of an IAM\n policy. That policy is attached to the SSO-created IAM role. If the permission set is\n subsequently updated, the corresponding IAM policies attached to roles in your accounts will\n not be updated automatically. In this case, you must call \n ProvisionPermissionSet\n to make these updates.

\n
" + "smithy.api#documentation": "

Assigns access to a principal for a specified AWS account using a specified permission\n set.

\n \n

The term principal here refers to a user or group that is defined in AWS SSO.

\n
\n \n

As part of a successful CreateAccountAssignment call, the specified permission set will automatically be provisioned to the account in the form of an IAM policy attached to the SSO-created IAM role. If the permission set is subsequently updated, the corresponding IAM policies attached to roles in your accounts will not be updated automatically. In this case, you will need to call \n ProvisionPermissionSet\n to make these updates.

\n
" } }, "com.amazonaws.ssoadmin#CreateAccountAssignmentRequest": { @@ -418,14 +418,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, "TargetId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

", + "smithy.api#documentation": "

TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).

", "smithy.api#required": {} } }, @@ -439,7 +439,7 @@ "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set that the admin wants to grant the principal access\n to.

", + "smithy.api#documentation": "

The ARN of the permission set that the admin wants to grant the principal access to.

", "smithy.api#required": {} } }, @@ -453,7 +453,7 @@ "PrincipalId": { "target": "com.amazonaws.ssoadmin#PrincipalId", "traits": { - "smithy.api#documentation": "

An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

", + "smithy.api#documentation": "

An identifier for an object in AWS SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API Reference.

", "smithy.api#required": {} } } @@ -499,7 +499,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables the attributes-based access control (ABAC) feature for the specified Amazon Web Services SSO\n instance. You can also specify new attributes to add to your ABAC configuration during the\n enabling process. For more information about ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User Guide.

" + "smithy.api#documentation": "

Enables the attributes-based access control (ABAC) feature for the specified AWS SSO instance. You can also specify new attributes to add to your ABAC configuration during the enabling process. For more information about ABAC, see Attribute-Based Access Control in the AWS SSO User Guide.

" } }, "com.amazonaws.ssoadmin#CreateInstanceAccessControlAttributeConfigurationRequest": { @@ -515,7 +515,7 @@ "InstanceAccessControlAttributeConfiguration": { "target": "com.amazonaws.ssoadmin#InstanceAccessControlAttributeConfiguration", "traits": { - "smithy.api#documentation": "

Specifies the Amazon Web Services SSO identity store attributes to add to your ABAC configuration.\n When using an external identity provider as an identity source, you can pass attributes\n through the SAML assertion. Doing so provides an alternative to configuring attributes from\n the Amazon Web Services SSO identity store. If a SAML assertion passes any of these attributes, Amazon Web Services\n SSO will replace the attribute value with the value from the Amazon Web Services SSO identity\n store.

", + "smithy.api#documentation": "

Specifies the AWS SSO identity store attributes to add to your ABAC configuration. When using an external identity provider as an identity source, you can pass attributes through the SAML assertion as an alternative to configuring attributes from the AWS SSO identity store. If a SAML assertion passes any of these attributes, AWS SSO will replace the attribute value with the value from the AWS SSO identity store.

", "smithy.api#required": {} } } @@ -557,7 +557,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a permission set within a specified SSO instance.

\n \n

To grant users and groups access to Amazon Web Services account resources, use \n CreateAccountAssignment\n .

\n
" + "smithy.api#documentation": "

Creates a permission set within a specified SSO instance.

\n \n

To grant users and groups access to AWS account resources, use \n CreateAccountAssignment\n .

\n
" } }, "com.amazonaws.ssoadmin#CreatePermissionSetRequest": { @@ -579,7 +579,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -592,7 +592,7 @@ "RelayState": { "target": "com.amazonaws.ssoadmin#RelayState", "traits": { - "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" + "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" } }, "Tags": { @@ -609,7 +609,7 @@ "PermissionSet": { "target": "com.amazonaws.ssoadmin#PermissionSet", "traits": { - "smithy.api#documentation": "

Defines the level of access on an Amazon Web Services account.

" + "smithy.api#documentation": "

Defines the level of access on an AWS account.

" } } } @@ -646,7 +646,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a principal's access from a specified Amazon Web Services account using a specified permission\n set.

" + "smithy.api#documentation": "

Deletes a principal's access from a specified AWS account using a specified permission\n set.

" } }, "com.amazonaws.ssoadmin#DeleteAccountAssignmentRequest": { @@ -655,14 +655,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, "TargetId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

", + "smithy.api#documentation": "

TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).

", "smithy.api#required": {} } }, @@ -690,7 +690,7 @@ "PrincipalId": { "target": "com.amazonaws.ssoadmin#PrincipalId", "traits": { - "smithy.api#documentation": "

An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

", + "smithy.api#documentation": "

An identifier for an object in AWS SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API Reference.

", "smithy.api#required": {} } } @@ -745,7 +745,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -791,7 +791,7 @@ } ], "traits": { - "smithy.api#documentation": "

Disables the attributes-based access control (ABAC) feature for the specified Amazon Web Services SSO\n instance and deletes all of the attribute mappings that have been configured. Once deleted,\n any attributes that are received from an identity source and any custom attributes you have\n previously configured will not be passed. For more information about ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User Guide.

" + "smithy.api#documentation": "

Disables the attributes-based access control (ABAC) feature for the specified AWS SSO instance and deletes all of the attribute mappings that have been configured. Once deleted, any attributes that are received from an identity source and any custom attributes you have previously configured will not be passed. For more information about ABAC, see Attribute-Based Access Control in the AWS SSO User Guide.

" } }, "com.amazonaws.ssoadmin#DeleteInstanceAccessControlAttributeConfigurationRequest": { @@ -848,7 +848,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -900,7 +900,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -959,7 +959,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -1009,7 +1009,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the list of Amazon Web Services SSO identity store attributes that have been configured to\n work with attributes-based access control (ABAC) for the specified Amazon Web Services SSO instance. This\n will not return attributes configured and sent by an external identity provider.\n For more information about ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User Guide.

" + "smithy.api#documentation": "

Returns the list of AWS SSO identity store attributes that have been configured to work with attributes-based access control (ABAC) for the specified AWS SSO instance. This will not return attributes configured and sent by an external identity provider. For more information about ABAC, see Attribute-Based Access Control in the AWS SSO User Guide.

" } }, "com.amazonaws.ssoadmin#DescribeInstanceAccessControlAttributeConfigurationRequest": { @@ -1042,7 +1042,7 @@ "InstanceAccessControlAttributeConfiguration": { "target": "com.amazonaws.ssoadmin#InstanceAccessControlAttributeConfiguration", "traits": { - "smithy.api#documentation": "

Gets the list of Amazon Web Services SSO identity store attributes that have been added to your ABAC\n configuration.

" + "smithy.api#documentation": "

Gets the list of AWS SSO identity store attributes added to your ABAC configuration.

" } } } @@ -1111,14 +1111,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, "ProvisionPermissionSetRequestId": { "target": "com.amazonaws.ssoadmin#UUId", "traits": { - "smithy.api#documentation": "

The identifier that is provided by the ProvisionPermissionSet call to\n retrieve the current status of the provisioning workflow.

", + "smithy.api#documentation": "

The identifier that is provided by the ProvisionPermissionSet call to\n retrieve the current status of the provisioning workflow.

", "smithy.api#required": {} } } @@ -1141,7 +1141,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -1160,7 +1160,7 @@ "PermissionSet": { "target": "com.amazonaws.ssoadmin#PermissionSet", "traits": { - "smithy.api#documentation": "

Describes the level of access on an Amazon Web Services account.

" + "smithy.api#documentation": "

Describes the level of access on an AWS account.

" } } } @@ -1203,14 +1203,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the PermissionSet from which the policy should be\n detached.

", + "smithy.api#documentation": "

The ARN of the PermissionSet from which the policy should be detached.

", "smithy.api#required": {} } }, @@ -1244,7 +1244,7 @@ "min": 10, "max": 2048 }, - "smithy.api#pattern": "^arn:aws:sso:([a-zA-Z0-9-]+)?:(\\d{12})?:[a-zA-Z0-9-]+/[a-zA-Z0-9-/.]+$" + "smithy.api#pattern": "arn:aws:sso:([a-zA-Z0-9-]+)?:(\\d{12})?:[a-zA-Z0-9-]+/[a-zA-Z0-9-/.]+" } }, "com.amazonaws.ssoadmin#GetInlinePolicyForPermissionSet": { @@ -1282,7 +1282,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -1313,7 +1313,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[a-zA-Z0-9-]*$" + "smithy.api#pattern": "^[a-zA-Z0-9-]*" } }, "com.amazonaws.ssoadmin#InstanceAccessControlAttributeConfiguration": { @@ -1322,13 +1322,13 @@ "AccessControlAttributes": { "target": "com.amazonaws.ssoadmin#AccessControlAttributeList", "traits": { - "smithy.api#documentation": "

Lists the attributes that are configured for ABAC in the specified Amazon Web Services SSO\n instance.

", + "smithy.api#documentation": "

Lists the attributes that are configured for ABAC in the specified AWS SSO instance.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Specifies the attributes to add to your attribute-based access control (ABAC)\n configuration.

" + "smithy.api#documentation": "

Specifies the attributes to add to your attribute-based access control (ABAC) configuration.

" } }, "com.amazonaws.ssoadmin#InstanceAccessControlAttributeConfigurationStatus": { @@ -1360,7 +1360,7 @@ "min": 10, "max": 1224 }, - "smithy.api#pattern": "^arn:aws:sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}$" + "smithy.api#pattern": "arn:aws:sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}" } }, "com.amazonaws.ssoadmin#InstanceList": { @@ -1375,7 +1375,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" } }, "IdentityStoreId": { @@ -1431,7 +1431,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the status of the Amazon Web Services account assignment creation requests for a specified SSO\n instance.

", + "smithy.api#documentation": "

Lists the status of the AWS account assignment creation requests for a specified SSO\n instance.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1446,7 +1446,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -1513,7 +1513,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the status of the Amazon Web Services account assignment deletion requests for a specified SSO\n instance.

", + "smithy.api#documentation": "

Lists the status of the AWS account assignment deletion requests for a specified SSO\n instance.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1528,7 +1528,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -1595,7 +1595,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the assignee of the specified Amazon Web Services account with the specified permission\n set.

", + "smithy.api#documentation": "

Lists the assignee of the specified AWS account with the specified permission\n set.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1610,14 +1610,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, "AccountId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Web Services account from which to list the assignments.

", + "smithy.api#documentation": "

The identifier of the AWS account from which to list the assignments.

", "smithy.api#required": {} } }, @@ -1648,7 +1648,7 @@ "AccountAssignments": { "target": "com.amazonaws.ssoadmin#AccountAssignmentList", "traits": { - "smithy.api#documentation": "

The list of assignments that match the input Amazon Web Services account and permission set.

" + "smithy.api#documentation": "

The list of assignments that match the input AWS account and permission set.

" } }, "NextToken": { @@ -1685,7 +1685,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the Amazon Web Services accounts where the specified permission set is provisioned.

", + "smithy.api#documentation": "

Lists all the AWS accounts where the specified permission set is provisioned.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1700,21 +1700,21 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the PermissionSet from which the associated Amazon Web Services accounts\n will be listed.

", + "smithy.api#documentation": "

The ARN of the PermissionSet from which the associated AWS accounts\n will be listed.

", "smithy.api#required": {} } }, "ProvisioningStatus": { "target": "com.amazonaws.ssoadmin#ProvisioningStatus", "traits": { - "smithy.api#documentation": "

The permission set provisioning status for an Amazon Web Services account.

" + "smithy.api#documentation": "

The permission set provisioning status for an AWS account.

" } }, "MaxResults": { @@ -1737,7 +1737,7 @@ "AccountIds": { "target": "com.amazonaws.ssoadmin#AccountList", "traits": { - "smithy.api#documentation": "

The list of Amazon Web Services AccountIds.

" + "smithy.api#documentation": "

The list of AWS AccountIds.

" } }, "NextToken": { @@ -1855,14 +1855,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the PermissionSet whose managed policies will be\n listed.

", + "smithy.api#documentation": "

The ARN of the PermissionSet whose managed policies will be listed.

", "smithy.api#required": {} } }, @@ -1938,7 +1938,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -2040,7 +2040,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the permission sets that are provisioned to a specified Amazon Web Services account.

", + "smithy.api#documentation": "

Lists all the permission sets that are provisioned to a specified AWS account.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -2055,14 +2055,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, "AccountId": { "target": "com.amazonaws.ssoadmin#AccountId", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Web Services account from which to list the assignments.

", + "smithy.api#documentation": "

The identifier of the AWS account from which to list the assignments.

", "smithy.api#required": {} } }, @@ -2098,7 +2098,7 @@ "PermissionSets": { "target": "com.amazonaws.ssoadmin#PermissionSetList", "traits": { - "smithy.api#documentation": "

Defines the level of access that an Amazon Web Services account has.

" + "smithy.api#documentation": "

Defines the level of access that an AWS account has.

" } } } @@ -2109,7 +2109,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -2133,7 +2133,7 @@ "PermissionSets": { "target": "com.amazonaws.ssoadmin#PermissionSetList", "traits": { - "smithy.api#documentation": "

Defines the level of access on an Amazon Web Services account.

" + "smithy.api#documentation": "

Defines the level of access on an AWS account.

" } }, "NextToken": { @@ -2184,7 +2184,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -2274,7 +2274,7 @@ "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" + "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" } }, "Description": { @@ -2292,13 +2292,13 @@ "SessionDuration": { "target": "com.amazonaws.ssoadmin#Duration", "traits": { - "smithy.api#documentation": "

The length of time that the application user sessions are valid for in the ISO-8601\n standard.

" + "smithy.api#documentation": "

The length of time that the application user sessions are valid for in the ISO-8601\n standard.

" } }, "RelayState": { "target": "com.amazonaws.ssoadmin#RelayState", "traits": { - "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" + "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" } } }, @@ -2313,7 +2313,7 @@ "min": 10, "max": 1224 }, - "smithy.api#pattern": "^arn:aws:sso:::permissionSet/(sso)?ins-[a-zA-Z0-9-.]{16}/ps-[a-zA-Z0-9-./]{16}$" + "smithy.api#pattern": "arn:aws:sso:::permissionSet/(sso)?ins-[a-zA-Z0-9-.]{16}/ps-[a-zA-Z0-9-./]{16}" } }, "com.amazonaws.ssoadmin#PermissionSetDescription": { @@ -2323,7 +2323,7 @@ "min": 1, "max": 700 }, - "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*$" + "smithy.api#pattern": "[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*" } }, "com.amazonaws.ssoadmin#PermissionSetList": { @@ -2339,7 +2339,7 @@ "min": 1, "max": 32 }, - "smithy.api#pattern": "^[\\w+=,.@-]+$" + "smithy.api#pattern": "[\\w+=,.@-]+" } }, "com.amazonaws.ssoadmin#PermissionSetPolicyDocument": { @@ -2349,7 +2349,7 @@ "min": 1, "max": 10240 }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$", + "smithy.api#pattern": "[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+", "smithy.api#sensitive": {} } }, @@ -2371,13 +2371,13 @@ "AccountId": { "target": "com.amazonaws.ssoadmin#AccountId", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Web Services account from which to list the assignments.

" + "smithy.api#documentation": "

The identifier of the AWS account from which to list the assignments.

" } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set that is being provisioned. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" + "smithy.api#documentation": "

The ARN of the permission set that is being provisioned. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" } }, "FailureReason": { @@ -2483,7 +2483,7 @@ } ], "traits": { - "smithy.api#documentation": "

The process by which a specified permission set is provisioned to the specified\n target.

" + "smithy.api#documentation": "

The process by which a specified permission set is provisioned to the specified target.

" } }, "com.amazonaws.ssoadmin#ProvisionPermissionSetRequest": { @@ -2492,7 +2492,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -2506,7 +2506,7 @@ "TargetId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

" + "smithy.api#documentation": "

TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).

" } }, "TargetType": { @@ -2591,7 +2591,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches an IAM inline policy to a permission set.

\n \n

If the permission set is already referenced by one or more account assignments, you will\n need to call \n ProvisionPermissionSet\n after this action to\n apply the corresponding IAM policy updates to all assigned accounts.

\n
" + "smithy.api#documentation": "

Attaches an IAM inline policy to a permission set.

\n \n

If the permission set is already referenced by one or more account assignments, you will need to call \n ProvisionPermissionSet\n after this action to apply the corresponding IAM policy updates to all assigned accounts.

\n
" } }, "com.amazonaws.ssoadmin#PutInlinePolicyToPermissionSetRequest": { @@ -2600,7 +2600,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -2627,7 +2627,7 @@ "com.amazonaws.ssoadmin#Reason": { "type": "string", "traits": { - "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*$" + "smithy.api#pattern": "[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*" } }, "com.amazonaws.ssoadmin#RelayState": { @@ -2637,7 +2637,7 @@ "min": 1, "max": 240 }, - "smithy.api#pattern": "^[a-zA-Z0-9&$@#\\\\\\/%?=~\\-_'\"|!:,.;*+\\[\\]\\ \\(\\)\\{\\}]+$" + "smithy.api#pattern": "[a-zA-Z0-9&$@#\\\\\\/%?=~\\-_'\"|!:,.;*+\\[\\]\\ \\(\\)\\{\\}]+" } }, "com.amazonaws.ssoadmin#ResourceNotFoundException": { @@ -2766,7 +2766,6 @@ "name": "sso" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "

Amazon Web Services Single Sign On (SSO) is a cloud SSO service that makes it easy to centrally manage SSO\n access to multiple Amazon Web Services accounts and business applications. This guide provides information on\n SSO operations which could be used for access management of Amazon Web Services accounts. For information about\n Amazon Web Services SSO features, see the Amazon Web Services Single Sign-On User Guide.

\n

Many operations in the SSO APIs rely on identifiers for users and groups, known as\n principals. For more information about how to work with principals and principal IDs in Amazon Web Services SSO,\n see the Amazon Web Services SSO Identity Store API\n Reference.

", "smithy.api#title": "AWS Single Sign-On Admin" } }, @@ -2778,7 +2777,7 @@ } }, "traits": { - "smithy.api#documentation": "

Indicates that the principal has crossed the permitted number of resources that can be\n created.

", + "smithy.api#documentation": "

Indicates that the principal has crossed the permitted number of resources that can be created.

", "smithy.api#error": "client", "smithy.api#httpError": 402 } @@ -2822,7 +2821,7 @@ } }, "traits": { - "smithy.api#documentation": "

A set of key-value pairs that are used to manage the resource. Tags can only be applied to\n permission sets and cannot be applied to corresponding roles that Amazon Web Services SSO creates in Amazon Web Services\n accounts.

" + "smithy.api#documentation": "

A set of key-value pairs that are used to manage the resource. Tags can only be applied to permission sets and cannot be applied to corresponding roles\n that AWS SSO creates in AWS accounts.

" } }, "com.amazonaws.ssoadmin#TagKey": { @@ -2900,7 +2899,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -2937,7 +2936,7 @@ "com.amazonaws.ssoadmin#TargetId": { "type": "string", "traits": { - "smithy.api#pattern": "^\\d{12}$" + "smithy.api#pattern": "\\d{12}" } }, "com.amazonaws.ssoadmin#TargetType": { @@ -2959,7 +2958,7 @@ } }, "traits": { - "smithy.api#documentation": "

Indicates that the principal has crossed the throttling limits of the API\n operations.

", + "smithy.api#documentation": "

Indicates that the principal has crossed the throttling limits of the API operations.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } @@ -2974,13 +2973,13 @@ "min": 0, "max": 2048 }, - "smithy.api#pattern": "^[-a-zA-Z0-9+=/_]*$" + "smithy.api#pattern": "^[-a-zA-Z0-9+=/_]*" } }, "com.amazonaws.ssoadmin#UUId": { "type": "string", "traits": { - "smithy.api#pattern": "^\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b$" + "smithy.api#pattern": "\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b" } }, "com.amazonaws.ssoadmin#UntagResource": { @@ -3021,7 +3020,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -3074,7 +3073,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the Amazon Web Services SSO identity store attributes that you can use with the Amazon Web Services SSO\n instance for attributes-based access control (ABAC). When using an external identity provider\n as an identity source, you can pass attributes through the SAML assertion as an alternative to\n configuring attributes from the Amazon Web Services SSO identity store. If a SAML assertion passes any of\n these attributes, Amazon Web Services SSO replaces the attribute value with the value from the Amazon Web Services SSO\n identity store. For more information about ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User Guide.

" + "smithy.api#documentation": "

Updates the AWS SSO identity store attributes to use with the AWS SSO instance for attributes-based access control (ABAC). When using an external identity provider as an identity source, you can pass attributes through the SAML assertion as an alternative to configuring attributes from the AWS SSO identity store. If a SAML assertion passes any of these attributes, AWS SSO will replace the attribute value with the value from the AWS SSO identity store. For more information about ABAC, see Attribute-Based Access Control in the AWS SSO User Guide.

" } }, "com.amazonaws.ssoadmin#UpdateInstanceAccessControlAttributeConfigurationRequest": { @@ -3138,7 +3137,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", "smithy.api#required": {} } }, @@ -3158,13 +3157,13 @@ "SessionDuration": { "target": "com.amazonaws.ssoadmin#Duration", "traits": { - "smithy.api#documentation": "

The length of time that the application user sessions are valid for in the ISO-8601\n standard.

" + "smithy.api#documentation": "

The length of time that the application user sessions are valid for in the ISO-8601\n standard.

" } }, "RelayState": { "target": "com.amazonaws.ssoadmin#RelayState", "traits": { - "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" + "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" } } } diff --git a/codegen/sdk-codegen/aws-models/synthetics.2017-10-11.json b/codegen/sdk-codegen/aws-models/synthetics.2017-10-11.json index 71b2a2d8f10..21893bddb2b 100644 --- a/codegen/sdk-codegen/aws-models/synthetics.2017-10-11.json +++ b/codegen/sdk-codegen/aws-models/synthetics.2017-10-11.json @@ -29,44 +29,6 @@ ] }, "shapes": { - "com.amazonaws.synthetics#BaseScreenshot": { - "type": "structure", - "members": { - "ScreenshotName": { - "target": "com.amazonaws.synthetics#String", - "traits": { - "smithy.api#required": {} - } - }, - "IgnoreCoordinates": { - "target": "com.amazonaws.synthetics#BaseScreenshotIgnoreCoordinates" - } - } - }, - "com.amazonaws.synthetics#BaseScreenshotConfigIgnoreCoordinate": { - "type": "string", - "traits": { - "smithy.api#pattern": "^(-?\\d{1,5}\\.?\\d{0,2},){3}(-?\\d{1,5}\\.?\\d{0,2}){1}$" - } - }, - "com.amazonaws.synthetics#BaseScreenshotIgnoreCoordinates": { - "type": "list", - "member": { - "target": "com.amazonaws.synthetics#BaseScreenshotConfigIgnoreCoordinate" - }, - "traits": { - "smithy.api#length": { - "min": 0, - "max": 20 - } - } - }, - "com.amazonaws.synthetics#BaseScreenshots": { - "type": "list", - "member": { - "target": "com.amazonaws.synthetics#BaseScreenshot" - } - }, "com.amazonaws.synthetics#Blob": { "type": "blob", "traits": { @@ -166,9 +128,6 @@ "VpcConfig": { "target": "com.amazonaws.synthetics#VpcConfigOutput" }, - "VisualReference": { - "target": "com.amazonaws.synthetics#VisualReferenceOutput" - }, "Tags": { "target": "com.amazonaws.synthetics#TagMap", "traits": { @@ -187,7 +146,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:canary:[0-9a-z_\\-]{1,21}$" + "smithy.api#pattern": "arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:canary:[0-9a-z_\\-]{1,21}" } }, "com.amazonaws.synthetics#CanaryCodeInput": { @@ -196,7 +155,7 @@ "S3Bucket": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

If your canary script is located in S3, specify the bucket name here. Do not include s3:// as the \n start of the bucket name.

" + "smithy.api#documentation": "

If your canary script is located in S3, specify the full bucket name here. The bucket\n must already exist. Specify the full bucket name, including s3:// as the \n start of the bucket name.

" } }, "S3Key": { @@ -214,13 +173,13 @@ "ZipFile": { "target": "com.amazonaws.synthetics#Blob", "traits": { - "smithy.api#documentation": "

If you input your canary script directly into the canary instead of referring to an S3\n location, the value of this parameter is the base64-encoded contents of the .zip file that \n contains the script. It can be\n up to 5 MB.

" + "smithy.api#documentation": "

If you input your canary script directly into the canary instead of referring to an S3\n location, the value of this parameter is the .zip file that contains the script. It can be\n up to 5 MB.

" } }, "Handler": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

The entry point to use for the source code when running the canary. This value must end\n with the string .handler. The string is limited to 29 characters or fewer.

", + "smithy.api#documentation": "

The entry point to use for the source code when running the canary. This value must end\n with the string .handler.

", "smithy.api#required": {} } } @@ -335,7 +294,7 @@ "ActiveTracing": { "target": "com.amazonaws.synthetics#NullableBoolean", "traits": { - "smithy.api#documentation": "

Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing \n enables\n this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does \n not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges.\n For more information, see \n Canaries and X-Ray tracing.

\n

You can enable active tracing only for canaries that use version syn-nodejs-2.0 \n or later for their canary runtime.

" + "smithy.api#documentation": "

Specifies whether this canary is to use active AWS X-Ray tracing when it runs. Active tracing \n enables\n this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does \n not hit an endpoint that has X-ray tracing enabled. Using X-Ray tracing incurs charges.\n For more information, see \n Canaries and X-Ray tracing.

\n

You can enable active tracing only for canaries that use version syn-nodejs-2.0 \n or later for their canary runtime.

" } }, "EnvironmentVariables": { @@ -367,7 +326,7 @@ "ActiveTracing": { "target": "com.amazonaws.synthetics#NullableBoolean", "traits": { - "smithy.api#documentation": "

Displays whether this canary run used active X-Ray tracing.

" + "smithy.api#documentation": "

Displays whether this canary run used active AWS X-Ray tracing.

" } } }, @@ -467,7 +426,7 @@ "Expression": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

A rate expression or a cron expression that defines how often the canary is to run.

\n

For a rate expression, The syntax is\n rate(number unit). unit\n can be minute, minutes, or hour.

\n

For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every \n 10 minutes, and rate(1 hour) runs it once every hour. You can\n specify a frequency between rate(1 minute) and rate(1 hour).

\n

Specifying rate(0 minute) or rate(0 hour) is a special value \n that causes the \n canary to run only once when it is started.

\n

Use cron(expression) to specify a cron \n expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see \n \n Scheduling canary runs using cron.

", + "smithy.api#documentation": "

A rate expression that defines how often the canary is to run. The syntax is\n rate(number unit). unit\n can be minute, minutes, or hour.

\n

For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every \n 10 minutes, and rate(1 hour) runs it once every hour. You can\n specify a frequency between rate(1 minute) and rate(1 hour).

\n

Specifying rate(0 minute) or rate(0 hour) is a special value \n that causes the \n canary to run only once when it is started.

", "smithy.api#required": {} } }, @@ -488,7 +447,7 @@ "Expression": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

A rate expression or a cron expression that defines how often the canary is to run.

\n

For a rate expression, The syntax is\n rate(number unit). unit\n can be minute, minutes, or hour.

\n

For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every \n 10 minutes, and rate(1 hour) runs it once every hour. You can\n specify a frequency between rate(1 minute) and rate(1 hour).

\n

Specifying rate(0 minute) or rate(0 hour) is a special value \n that causes the \n canary to run only once when it is started.

\n

Use cron(expression) to specify a cron \n expression. For information about the syntax for cron expressions, see \n \n Scheduling canary runs using cron.

" + "smithy.api#documentation": "

A rate expression that defines how often the canary is to run. The syntax is\n rate(number unit). unit\n can be minute, minutes, or hour.

\n

For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every \n 10 minutes, and rate(1 hour) runs it once every hour.

\n

Specifying rate(0 minute) or rate(0 hour) is a special value \n that causes the \n canary to run only once when it is started.

" } }, "DurationInSeconds": { @@ -672,7 +631,7 @@ "ArtifactS3Location": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

The location in Amazon S3 where Synthetics stores artifacts from the test runs of this\n canary. Artifacts include the log file, screenshots, and HAR files. The name of the \n S3 bucket can't include a period (.).

", + "smithy.api#documentation": "

The location in Amazon S3 where Synthetics stores artifacts from the test runs of this\n canary. Artifacts include the log file, screenshots, and HAR files.

", "smithy.api#required": {} } }, @@ -983,7 +942,7 @@ "com.amazonaws.synthetics#EnvironmentVariableName": { "type": "string", "traits": { - "smithy.api#pattern": "^[a-zA-Z]([a-zA-Z0-9_])+$" + "smithy.api#pattern": "[a-zA-Z]([a-zA-Z0-9_])+" } }, "com.amazonaws.synthetics#EnvironmentVariableValue": { @@ -1008,7 +967,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$" + "smithy.api#pattern": "arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" } }, "com.amazonaws.synthetics#GetCanary": { @@ -1286,7 +1245,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$" + "smithy.api#pattern": "arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" } }, "com.amazonaws.synthetics#RuntimeVersion": { @@ -1579,7 +1538,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified canary.

\n

Tags can help you organize and categorize your\n resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with\n certain tag values.

\n

Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

\n

You can use the TagResource action with a canary that already has tags. If you specify a new tag key for the alarm, \n this tag is appended to the list of tags associated\n with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces\n the previous value for that tag.

\n

You can associate as many as 50 tags with a canary.

", + "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified canary.

\n

Tags can help you organize and categorize your\n resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with\n certain tag values.

\n

Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.

\n

You can use the TagResource action with a canary that already has tags. If you specify a new tag key for the alarm, \n this tag is appended to the list of tags associated\n with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces\n the previous value for that tag.

\n

You can associate as many as 50 tags with a canary.

", "smithy.api#http": { "method": "POST", "uri": "/tags/{ResourceArn}", @@ -1780,9 +1739,6 @@ "traits": { "smithy.api#documentation": "

If this canary is to test an endpoint in a VPC, this structure contains\n information about the subnet and security groups of the VPC endpoint. \n For more information, see \n Running a Canary in a VPC.

" } - }, - "VisualReference": { - "target": "com.amazonaws.synthetics#VisualReferenceInput" } } }, @@ -1803,31 +1759,6 @@ "smithy.api#httpError": 400 } }, - "com.amazonaws.synthetics#VisualReferenceInput": { - "type": "structure", - "members": { - "BaseScreenshots": { - "target": "com.amazonaws.synthetics#BaseScreenshots" - }, - "BaseCanaryRunId": { - "target": "com.amazonaws.synthetics#String", - "traits": { - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.synthetics#VisualReferenceOutput": { - "type": "structure", - "members": { - "BaseScreenshots": { - "target": "com.amazonaws.synthetics#BaseScreenshots" - }, - "BaseCanaryRunId": { - "target": "com.amazonaws.synthetics#String" - } - } - }, "com.amazonaws.synthetics#VpcConfigInput": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/textract.2018-06-27.json b/codegen/sdk-codegen/aws-models/textract.2018-06-27.json index 13f62ff80b2..6ae251cba04 100644 --- a/codegen/sdk-codegen/aws-models/textract.2018-06-27.json +++ b/codegen/sdk-codegen/aws-models/textract.2018-06-27.json @@ -142,72 +142,6 @@ } } }, - "com.amazonaws.textract#AnalyzeExpense": { - "type": "operation", - "input": { - "target": "com.amazonaws.textract#AnalyzeExpenseRequest" - }, - "output": { - "target": "com.amazonaws.textract#AnalyzeExpenseResponse" - }, - "errors": [ - { - "target": "com.amazonaws.textract#AccessDeniedException" - }, - { - "target": "com.amazonaws.textract#BadDocumentException" - }, - { - "target": "com.amazonaws.textract#DocumentTooLargeException" - }, - { - "target": "com.amazonaws.textract#InternalServerError" - }, - { - "target": "com.amazonaws.textract#InvalidParameterException" - }, - { - "target": "com.amazonaws.textract#InvalidS3ObjectException" - }, - { - "target": "com.amazonaws.textract#ProvisionedThroughputExceededException" - }, - { - "target": "com.amazonaws.textract#ThrottlingException" - }, - { - "target": "com.amazonaws.textract#UnsupportedDocumentException" - } - ], - "traits": { - "smithy.api#documentation": "

Analyzes an input document for financially related relationships between text.

\n

Information is returned as ExpenseDocuments and seperated as follows.

\n " - } - }, - "com.amazonaws.textract#AnalyzeExpenseRequest": { - "type": "structure", - "members": { - "Document": { - "target": "com.amazonaws.textract#Document", - "traits": { - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.textract#AnalyzeExpenseResponse": { - "type": "structure", - "members": { - "DocumentMetadata": { - "target": "com.amazonaws.textract#DocumentMetadata" - }, - "ExpenseDocuments": { - "target": "com.amazonaws.textract#ExpenseDocumentList", - "traits": { - "smithy.api#documentation": "

The expenses detected by Amazon Textract.

" - } - } - } - }, "com.amazonaws.textract#BadDocumentException": { "type": "structure", "members": { @@ -247,7 +181,7 @@ "TextType": { "target": "com.amazonaws.textract#TextType", "traits": { - "smithy.api#documentation": "

The kind of text that Amazon Textract has detected. Can check for handwritten text and\n printed text.

" + "smithy.api#documentation": "

The kind of text that Amazon Textract has detected. Can check for handwritten text and printed text.

" } }, "RowIndex": { @@ -265,13 +199,13 @@ "RowSpan": { "target": "com.amazonaws.textract#UInteger", "traits": { - "smithy.api#documentation": "

The number of rows that a table cell spans. Currently this value is always 1, even if\n the number of rows spanned is greater than 1. RowSpan isn't returned by\n DetectDocumentText and GetDocumentTextDetection.

" + "smithy.api#documentation": "

The number of rows that a table cell spans. Currently this value is always 1, even\n if the number of rows spanned is greater than 1. RowSpan isn't returned by\n DetectDocumentText and GetDocumentTextDetection.

" } }, "ColumnSpan": { "target": "com.amazonaws.textract#UInteger", "traits": { - "smithy.api#documentation": "

The number of columns that a table cell spans. Currently this value is always 1, even if\n the number of columns spanned is greater than 1. ColumnSpan isn't returned by\n DetectDocumentText and GetDocumentTextDetection.

" + "smithy.api#documentation": "

The number of columns that a table cell spans. Currently this value is always 1, even\n if the number of columns spanned is greater than 1. ColumnSpan isn't returned by\n DetectDocumentText and GetDocumentTextDetection.

" } }, "Geometry": { @@ -301,7 +235,7 @@ "SelectionStatus": { "target": "com.amazonaws.textract#SelectionStatus", "traits": { - "smithy.api#documentation": "

The selection status of a selection element, such as an option button or check box.\n

" + "smithy.api#documentation": "

The selection status of a selection element, such as an option button or check box.

" } }, "Page": { @@ -385,7 +319,7 @@ } }, "traits": { - "smithy.api#documentation": "

The bounding box around the detected page, text, key-value pair, table, table cell, or\n selection element on a document page. The left (x-coordinate) and\n top (y-coordinate) are coordinates that represent the top and left sides of\n the bounding box. Note that the upper-left corner of the image is the origin (0,0).

\n

The top and left values returned are ratios of the overall\n document page size. For example, if the input image is 700 x 200 pixels, and the top-left\n coordinate of the bounding box is 350 x 50 pixels, the API returns a left\n value of 0.5 (350/700) and a top value of 0.25 (50/200).

\n

The width and height values represent the dimensions of the\n bounding box as a ratio of the overall document page dimension. For example, if the\n document page size is 700 x 200 pixels, and the bounding box width is 70 pixels, the width\n returned is 0.1.

" + "smithy.api#documentation": "

The bounding box around the detected page, text, key-value pair, table, table cell, or selection element on a\n document page. The left (x-coordinate) and top (y-coordinate) are\n coordinates that represent the top and left sides of the bounding box. Note that the\n upper-left corner of the image is the origin (0,0).

\n

The top and left values returned are ratios of the overall\n document page size. For example, if the input image is 700 x 200 pixels, and the top-left\n coordinate of the bounding box is 350 x 50 pixels, the API returns a left\n value of 0.5 (350/700) and a top value of 0.25 (50/200).

\n

The width and height values represent the dimensions of the\n bounding box as a ratio of the overall document page dimension. For example, if the\n document page size is 700 x 200 pixels, and the bounding box width is 70 pixels, the width\n returned is 0.1.

" } }, "com.amazonaws.textract#ClientRequestToken": { @@ -588,119 +522,6 @@ "com.amazonaws.textract#ErrorCode": { "type": "string" }, - "com.amazonaws.textract#ExpenseDetection": { - "type": "structure", - "members": { - "Text": { - "target": "com.amazonaws.textract#String", - "traits": { - "smithy.api#documentation": "

The word or line of text recognized by Amazon Textract

" - } - }, - "Geometry": { - "target": "com.amazonaws.textract#Geometry" - }, - "Confidence": { - "target": "com.amazonaws.textract#Percent", - "traits": { - "smithy.api#documentation": "

The confidence in detection, as a percentage

" - } - } - }, - "traits": { - "smithy.api#documentation": "

An object used to store information about the Value or Label detected by Amazon Textract.

" - } - }, - "com.amazonaws.textract#ExpenseDocument": { - "type": "structure", - "members": { - "ExpenseIndex": { - "target": "com.amazonaws.textract#UInteger", - "traits": { - "smithy.api#documentation": "

Denotes which invoice or receipt in the document the information is coming from. \n First document will be 1, the second 2, and so on.

" - } - }, - "SummaryFields": { - "target": "com.amazonaws.textract#ExpenseFieldList", - "traits": { - "smithy.api#documentation": "

Any information found outside of a table by Amazon Textract.

" - } - }, - "LineItemGroups": { - "target": "com.amazonaws.textract#LineItemGroupList", - "traits": { - "smithy.api#documentation": "

Information detected on each table of a document, seperated into LineItems.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The structure holding all the information returned by AnalyzeExpense

" - } - }, - "com.amazonaws.textract#ExpenseDocumentList": { - "type": "list", - "member": { - "target": "com.amazonaws.textract#ExpenseDocument" - } - }, - "com.amazonaws.textract#ExpenseField": { - "type": "structure", - "members": { - "Type": { - "target": "com.amazonaws.textract#ExpenseType", - "traits": { - "smithy.api#documentation": "

The implied label of a detected element. Present alongside LabelDetection for explicit elements.

" - } - }, - "LabelDetection": { - "target": "com.amazonaws.textract#ExpenseDetection", - "traits": { - "smithy.api#documentation": "

The explicitly stated label of a detected element.

" - } - }, - "ValueDetection": { - "target": "com.amazonaws.textract#ExpenseDetection", - "traits": { - "smithy.api#documentation": "

The value of a detected element. Present in explicit and implicit elements.

" - } - }, - "PageNumber": { - "target": "com.amazonaws.textract#UInteger", - "traits": { - "smithy.api#documentation": "

The page number the value was detected on.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Breakdown of detected information, seperated into \n the catagories Type, LableDetection, and ValueDetection

" - } - }, - "com.amazonaws.textract#ExpenseFieldList": { - "type": "list", - "member": { - "target": "com.amazonaws.textract#ExpenseField" - } - }, - "com.amazonaws.textract#ExpenseType": { - "type": "structure", - "members": { - "Text": { - "target": "com.amazonaws.textract#String", - "traits": { - "smithy.api#documentation": "

The word or line of text detected by Amazon Textract.

" - } - }, - "Confidence": { - "target": "com.amazonaws.textract#Percent", - "traits": { - "smithy.api#documentation": "

The confidence of accuracy, as a percentage.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

An object used to store information about the Type detected by Amazon Textract.

" - } - }, "com.amazonaws.textract#FeatureType": { "type": "string", "traits": { @@ -772,9 +593,6 @@ { "target": "com.amazonaws.textract#InvalidJobIdException" }, - { - "target": "com.amazonaws.textract#InvalidKMSKeyException" - }, { "target": "com.amazonaws.textract#InvalidParameterException" }, @@ -881,9 +699,6 @@ { "target": "com.amazonaws.textract#InvalidJobIdException" }, - { - "target": "com.amazonaws.textract#InvalidKMSKeyException" - }, { "target": "com.amazonaws.textract#InvalidParameterException" }, @@ -990,12 +805,12 @@ "HumanLoopActivationConditionsEvaluationResults": { "target": "com.amazonaws.textract#SynthesizedJsonHumanLoopActivationConditionsEvaluationResults", "traits": { - "smithy.api#documentation": "

Shows the result of condition evaluations, including those conditions which activated a\n human review.

" + "smithy.api#documentation": "

Shows the result of condition evaluations, including those conditions which activated a human review.

" } } }, "traits": { - "smithy.api#documentation": "

Shows the results of the human in the loop evaluation. If there is no HumanLoopArn, the\n input did not trigger human review.

" + "smithy.api#documentation": "

Shows the results of the human in the loop evaluation. If there is no HumanLoopArn, the input \n did not trigger human review.

" } }, "com.amazonaws.textract#HumanLoopActivationReason": { @@ -1027,7 +842,7 @@ "HumanLoopName": { "target": "com.amazonaws.textract#HumanLoopName", "traits": { - "smithy.api#documentation": "

The name of the human workflow used for this image. This should be kept unique within a\n region.

", + "smithy.api#documentation": "

The name of the human workflow used for this image. This should be kept unique within a region.

", "smithy.api#required": {} } }, @@ -1046,7 +861,7 @@ } }, "traits": { - "smithy.api#documentation": "

Sets up the human review workflow the document will be sent to if one of the conditions\n is met. You can also set certain attributes of the image before review.

" + "smithy.api#documentation": "

Sets up the human review workflow the document will be sent to if one of the conditions is met. You can also set certain attributes \n of the image before review.

" } }, "com.amazonaws.textract#HumanLoopDataAttributes": { @@ -1055,12 +870,12 @@ "ContentClassifiers": { "target": "com.amazonaws.textract#ContentClassifiers", "traits": { - "smithy.api#documentation": "

Sets whether the input image is free of personally identifiable information or adult\n content.

" + "smithy.api#documentation": "

Sets whether the input image is free of personally identifiable information or adult content.

" } } }, "traits": { - "smithy.api#documentation": "

Allows you to set attributes of the image. Currently, you can declare an image as free\n of personally identifiable information and adult content.

" + "smithy.api#documentation": "

Allows you to set attributes of the image. Currently, you can declare an image as free of\n personally identifiable information and adult content.

" } }, "com.amazonaws.textract#HumanLoopName": { @@ -1070,7 +885,7 @@ "min": 1, "max": 63 }, - "smithy.api#pattern": "^[a-z0-9](-*[a-z0-9])*$" + "smithy.api#pattern": "^[a-z0-9](-*[a-z0-9])*" } }, "com.amazonaws.textract#HumanLoopQuotaExceededException": { @@ -1252,7 +1067,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[a-zA-Z0-9_.\\-:]+$" + "smithy.api#pattern": "[a-zA-Z0-9_.\\-:]+" } }, "com.amazonaws.textract#KMSKeyId": { @@ -1280,52 +1095,6 @@ "smithy.api#error": "client" } }, - "com.amazonaws.textract#LineItemFields": { - "type": "structure", - "members": { - "LineItemExpenseFields": { - "target": "com.amazonaws.textract#ExpenseFieldList", - "traits": { - "smithy.api#documentation": "

ExpenseFields used to show information from detected lines on a table.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A structure that holds information about the different lines found in a document's tables.

" - } - }, - "com.amazonaws.textract#LineItemGroup": { - "type": "structure", - "members": { - "LineItemGroupIndex": { - "target": "com.amazonaws.textract#UInteger", - "traits": { - "smithy.api#documentation": "

The number used to identify a specific table in a document. The first table encountered will have a LineItemGroupIndex of 1, the second 2, etc.

" - } - }, - "LineItems": { - "target": "com.amazonaws.textract#LineItemList", - "traits": { - "smithy.api#documentation": "

The breakdown of information on a particular line of a table.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

A grouping of tables which contain LineItems, with each table identified by the table's LineItemGroupIndex.

" - } - }, - "com.amazonaws.textract#LineItemGroupList": { - "type": "list", - "member": { - "target": "com.amazonaws.textract#LineItemGroup" - } - }, - "com.amazonaws.textract#LineItemList": { - "type": "list", - "member": { - "target": "com.amazonaws.textract#LineItemFields" - } - }, "com.amazonaws.textract#MaxResults": { "type": "integer", "traits": { @@ -1338,7 +1107,7 @@ "com.amazonaws.textract#NonEmptyString": { "type": "string", "traits": { - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.textract#NotificationChannel": { @@ -1376,12 +1145,12 @@ "S3Prefix": { "target": "com.amazonaws.textract#S3ObjectName", "traits": { - "smithy.api#documentation": "

The prefix of the object key that the output will be saved to. When not enabled, the\n prefix will be “textract_output\".

" + "smithy.api#documentation": "

The prefix of the object key that the output will be saved to. When \n not enabled, the prefix will be “textract_output\".

" } } }, "traits": { - "smithy.api#documentation": "

Sets whether or not your output will go to a user created bucket. Used to set the name\n of the bucket, and the prefix on the output file.

\n

\n OutputConfig is an optional parameter which lets you adjust where your output will be placed. \n By default, Amazon Textract will store the results internally and can only be accessed by the Get \n API operations. With OutputConfig enabled, you can set the name of the bucket the output will be \n sent to and the file prefix of the results where you can download your results. Additionally, you \n can set the KMSKeyID parameter to a customer master key (CMK) to encrypt your output. Without this\n parameter set Amazon Textract will encrypt server-side using the AWS managed CMK for Amazon S3.

\n

Decryption of Customer Content is necessary for processing of the documents by Amazon Textract. If your account \n is opted out under an AI services opt out policy then all unencrypted Customer Content is immediately and permanently deleted after \n the Customer Content has been processed by the service. No copy of of the output is retained by Amazon Textract. For information about how to opt out, see Managing AI services opt-out policy. \n

\n

For more information on data privacy,\n see the Data Privacy\n FAQ.

" + "smithy.api#documentation": "

Sets whether or not your output will go to a user created bucket. \n Used to set the name of the bucket, and the prefix on the output \n file.

" } }, "com.amazonaws.textract#Pages": { @@ -1397,7 +1166,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.textract#Percent": { @@ -1457,7 +1226,7 @@ "Type": { "target": "com.amazonaws.textract#RelationshipType", "traits": { - "smithy.api#documentation": "

The type of relationship that the blocks in the IDs array have with the current block.\n The relationship can be VALUE or CHILD. A relationship of type\n VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a\n key-value pair. A relationship of type CHILD is a list of IDs that identify WORD blocks in\n the case of lines Cell blocks in the case of Tables, and WORD blocks in the case of\n Selection Elements.

" + "smithy.api#documentation": "

The type of relationship that the blocks in the IDs array have with the current block.\n The relationship can be VALUE or CHILD. A relationship of type \n VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. \n A relationship of type CHILD is a list of IDs that identify WORD blocks in the case of lines\n Cell blocks in the case of Tables, and WORD blocks in the case of Selection Elements.

" } }, "Ids": { @@ -1503,7 +1272,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "^arn:([a-z\\d-]+):iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$" + "smithy.api#pattern": "arn:([a-z\\d-]+):iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" } }, "com.amazonaws.textract#S3Bucket": { @@ -1513,7 +1282,7 @@ "min": 3, "max": 255 }, - "smithy.api#pattern": "^[0-9A-Za-z\\.\\-_]*$" + "smithy.api#pattern": "[0-9A-Za-z\\.\\-_]*" } }, "com.amazonaws.textract#S3Object": { @@ -1522,7 +1291,7 @@ "Bucket": { "target": "com.amazonaws.textract#S3Bucket", "traits": { - "smithy.api#documentation": "

The name of the S3 bucket. Note that the # character is not valid in the file\n name.

" + "smithy.api#documentation": "

The name of the S3 bucket.

" } }, "Name": { @@ -1549,7 +1318,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.textract#S3ObjectVersion": { @@ -1559,7 +1328,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "\\S" + "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.textract#SNSTopicArn": { @@ -1569,7 +1338,7 @@ "min": 20, "max": 1024 }, - "smithy.api#pattern": "^(^arn:([a-z\\d-]+):sns:[a-zA-Z\\d-]{1,20}:\\w{12}:.+$)$" + "smithy.api#pattern": "(^arn:([a-z\\d-]+):sns:[a-zA-Z\\d-]{1,20}:\\w{12}:.+$)" } }, "com.amazonaws.textract#SelectionStatus": { @@ -1838,9 +1607,6 @@ { "target": "com.amazonaws.textract#AnalyzeDocument" }, - { - "target": "com.amazonaws.textract#AnalyzeExpense" - }, { "target": "com.amazonaws.textract#DetectDocumentText" }, diff --git a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json index 58aab318563..eac65a57d69 100644 --- a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json +++ b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json @@ -214,9 +214,6 @@ "RoboMaker": "robomaker", "Route 53": "route53", "Route 53 Domains": "route53domains", - "Route53 Recovery Cluster": "route53-recovery-cluster", - "Route53 Recovery Control Config": "route53-recovery-control-config", - "Route53 Recovery Readiness": "route53-recovery-readiness", "Route53Resolver": "route53resolver", "S3": "s3", "S3 Control": "s3-control", diff --git a/config/go.mod b/config/go.mod index b0309515603..6641066df07 100644 --- a/config/go.mod +++ b/config/go.mod @@ -9,7 +9,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/ini v1.1.1 github.com/aws/aws-sdk-go-v2/service/sso v1.3.1 github.com/aws/aws-sdk-go-v2/service/sts v1.6.0 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/config/go.sum b/config/go.sum index a8411cb9e1d..829b1536381 100644 --- a/config/go.sum +++ b/config/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/credentials/go.mod b/credentials/go.mod index 3b1c594aa19..4e8cbd202dd 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.3.0 github.com/aws/aws-sdk-go-v2/service/sso v1.3.1 github.com/aws/aws-sdk-go-v2/service/sts v1.6.0 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/credentials/go.sum b/credentials/go.sum index a8411cb9e1d..829b1536381 100644 --- a/credentials/go.sum +++ b/credentials/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/example/service/s3/listObjects/go.sum b/example/service/s3/listObjects/go.sum index a8411cb9e1d..829b1536381 100644 --- a/example/service/s3/listObjects/go.sum +++ b/example/service/s3/listObjects/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/example/service/s3/usingPrivateLink/go.sum b/example/service/s3/usingPrivateLink/go.sum index a8411cb9e1d..829b1536381 100644 --- a/example/service/s3/usingPrivateLink/go.sum +++ b/example/service/s3/usingPrivateLink/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/cloudfront/sign/go.sum b/feature/cloudfront/sign/go.sum index a8411cb9e1d..829b1536381 100644 --- a/feature/cloudfront/sign/go.sum +++ b/feature/cloudfront/sign/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/dynamodb/attributevalue/go.mod b/feature/dynamodb/attributevalue/go.mod index aa662fc4c71..277d862c598 100644 --- a/feature/dynamodb/attributevalue/go.mod +++ b/feature/dynamodb/attributevalue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.4.1 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.3.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/feature/dynamodb/attributevalue/go.sum b/feature/dynamodb/attributevalue/go.sum index 83be82a84e4..22181669cd3 100644 --- a/feature/dynamodb/attributevalue/go.sum +++ b/feature/dynamodb/attributevalue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/feature/dynamodb/expression/go.sum b/feature/dynamodb/expression/go.sum index 83be82a84e4..22181669cd3 100644 --- a/feature/dynamodb/expression/go.sum +++ b/feature/dynamodb/expression/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/feature/dynamodbstreams/attributevalue/go.mod b/feature/dynamodbstreams/attributevalue/go.mod index a38d89ef073..bd64a93ffb8 100644 --- a/feature/dynamodbstreams/attributevalue/go.mod +++ b/feature/dynamodbstreams/attributevalue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.4.1 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.3.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/feature/dynamodbstreams/attributevalue/go.sum b/feature/dynamodbstreams/attributevalue/go.sum index 83be82a84e4..22181669cd3 100644 --- a/feature/dynamodbstreams/attributevalue/go.sum +++ b/feature/dynamodbstreams/attributevalue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/feature/ec2/imds/go.mod b/feature/ec2/imds/go.mod index 119fe19da5a..e8c932de92f 100644 --- a/feature/ec2/imds/go.mod +++ b/feature/ec2/imds/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/feature/ec2/imds/go.sum b/feature/ec2/imds/go.sum index a8411cb9e1d..829b1536381 100644 --- a/feature/ec2/imds/go.sum +++ b/feature/ec2/imds/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/ec2/imds/internal/configtesting/go.sum b/feature/ec2/imds/internal/configtesting/go.sum index a8411cb9e1d..829b1536381 100644 --- a/feature/ec2/imds/internal/configtesting/go.sum +++ b/feature/ec2/imds/internal/configtesting/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/rds/auth/go.sum b/feature/rds/auth/go.sum index a8411cb9e1d..829b1536381 100644 --- a/feature/rds/auth/go.sum +++ b/feature/rds/auth/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod index 900a685768a..7dd78b5231d 100644 --- a/feature/s3/manager/go.mod +++ b/feature/s3/manager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/config v1.5.0 github.com/aws/aws-sdk-go-v2/service/s3 v1.11.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/feature/s3/manager/go.sum b/feature/s3/manager/go.sum index 83be82a84e4..22181669cd3 100644 --- a/feature/s3/manager/go.sum +++ b/feature/s3/manager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/go.mod b/go.mod index 02ab9f19dfa..4b106fd0dff 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/aws/aws-sdk-go-v2 require ( - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/go.sum b/go.sum index 83be82a84e4..22181669cd3 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/internal/configsources/configtesting/go.sum b/internal/configsources/configtesting/go.sum index a8411cb9e1d..829b1536381 100644 --- a/internal/configsources/configtesting/go.sum +++ b/internal/configsources/configtesting/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/configsources/go.sum b/internal/configsources/go.sum index a8411cb9e1d..829b1536381 100644 --- a/internal/configsources/go.sum +++ b/internal/configsources/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/ini/go.sum b/internal/ini/go.sum index fd4236020d0..4363468a30f 100644 --- a/internal/ini/go.sum +++ b/internal/ini/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/internal/protocoltest/awsrestjson/go.mod b/internal/protocoltest/awsrestjson/go.mod index 03695ded269..793db606e1f 100644 --- a/internal/protocoltest/awsrestjson/go.mod +++ b/internal/protocoltest/awsrestjson/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/awsrestjson/go.sum b/internal/protocoltest/awsrestjson/go.sum index a8411cb9e1d..829b1536381 100644 --- a/internal/protocoltest/awsrestjson/go.sum +++ b/internal/protocoltest/awsrestjson/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/ec2query/go.mod b/internal/protocoltest/ec2query/go.mod index 9d6ba927b53..caef40f3435 100644 --- a/internal/protocoltest/ec2query/go.mod +++ b/internal/protocoltest/ec2query/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/ec2query/go.sum b/internal/protocoltest/ec2query/go.sum index a8411cb9e1d..829b1536381 100644 --- a/internal/protocoltest/ec2query/go.sum +++ b/internal/protocoltest/ec2query/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/jsonrpc/go.mod b/internal/protocoltest/jsonrpc/go.mod index 0dc3df4f28e..ddb4105799a 100644 --- a/internal/protocoltest/jsonrpc/go.mod +++ b/internal/protocoltest/jsonrpc/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/jsonrpc/go.sum b/internal/protocoltest/jsonrpc/go.sum index a8411cb9e1d..829b1536381 100644 --- a/internal/protocoltest/jsonrpc/go.sum +++ b/internal/protocoltest/jsonrpc/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/jsonrpc10/go.mod b/internal/protocoltest/jsonrpc10/go.mod index 0e7d3c057b2..c2c57cb6d3c 100644 --- a/internal/protocoltest/jsonrpc10/go.mod +++ b/internal/protocoltest/jsonrpc10/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/jsonrpc10/go.sum b/internal/protocoltest/jsonrpc10/go.sum index a8411cb9e1d..829b1536381 100644 --- a/internal/protocoltest/jsonrpc10/go.sum +++ b/internal/protocoltest/jsonrpc10/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/query/go.mod b/internal/protocoltest/query/go.mod index b9412582fdb..eef0cf1ebda 100644 --- a/internal/protocoltest/query/go.mod +++ b/internal/protocoltest/query/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/query/go.sum b/internal/protocoltest/query/go.sum index a8411cb9e1d..829b1536381 100644 --- a/internal/protocoltest/query/go.sum +++ b/internal/protocoltest/query/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/restxml/go.mod b/internal/protocoltest/restxml/go.mod index c971e982a2a..9b660fb903f 100644 --- a/internal/protocoltest/restxml/go.mod +++ b/internal/protocoltest/restxml/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/restxml/go.sum b/internal/protocoltest/restxml/go.sum index a8411cb9e1d..829b1536381 100644 --- a/internal/protocoltest/restxml/go.sum +++ b/internal/protocoltest/restxml/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/restxmlwithnamespace/go.mod b/internal/protocoltest/restxmlwithnamespace/go.mod index 854ff44607c..81b10e9b6a9 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.mod +++ b/internal/protocoltest/restxmlwithnamespace/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/restxmlwithnamespace/go.sum b/internal/protocoltest/restxmlwithnamespace/go.sum index a8411cb9e1d..829b1536381 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.sum +++ b/internal/protocoltest/restxmlwithnamespace/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/modman.toml b/modman.toml index a81e253fd3b..47a0e9e775a 100644 --- a/modman.toml +++ b/modman.toml @@ -1,5 +1,5 @@ [dependencies] -"github.com/aws/smithy-go" = "v1.6.1-0.20210729222435-d3a155d0ce54" +"github.com/aws/smithy-go" = "v1.6.1-0.20210719175327-4970553d9934" "github.com/google/go-cmp" = "v0.5.6" "github.com/jmespath/go-jmespath" = "v0.4.0" diff --git a/service/accessanalyzer/go.mod b/service/accessanalyzer/go.mod index 598ee373952..cbeca07188c 100644 --- a/service/accessanalyzer/go.mod +++ b/service/accessanalyzer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/accessanalyzer/go.sum b/service/accessanalyzer/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/accessanalyzer/go.sum +++ b/service/accessanalyzer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/acm/go.mod b/service/acm/go.mod index 52180fbce4e..8c3e9ee8ec0 100644 --- a/service/acm/go.mod +++ b/service/acm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acm/go.sum b/service/acm/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/acm/go.sum +++ b/service/acm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/acmpca/go.mod b/service/acmpca/go.mod index 60728344329..7aee14cf18a 100644 --- a/service/acmpca/go.mod +++ b/service/acmpca/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/acmpca/go.sum +++ b/service/acmpca/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/alexaforbusiness/go.mod b/service/alexaforbusiness/go.mod index b916cdd4d3e..ab7dbb1e6e0 100644 --- a/service/alexaforbusiness/go.mod +++ b/service/alexaforbusiness/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/alexaforbusiness/go.sum b/service/alexaforbusiness/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/alexaforbusiness/go.sum +++ b/service/alexaforbusiness/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/amp/go.mod b/service/amp/go.mod index aa02170f27b..f758eb764cd 100644 --- a/service/amp/go.mod +++ b/service/amp/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amp/go.sum b/service/amp/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/amp/go.sum +++ b/service/amp/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/amplify/go.mod b/service/amplify/go.mod index 6ee1d67d7db..170f6306837 100644 --- a/service/amplify/go.mod +++ b/service/amplify/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amplify/go.sum b/service/amplify/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/amplify/go.sum +++ b/service/amplify/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/amplifybackend/go.mod b/service/amplifybackend/go.mod index 3f66e47298e..bde3bcfc36f 100644 --- a/service/amplifybackend/go.mod +++ b/service/amplifybackend/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amplifybackend/go.sum b/service/amplifybackend/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/amplifybackend/go.sum +++ b/service/amplifybackend/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/apigateway/go.mod b/service/apigateway/go.mod index 03ef228accb..42f63eab084 100644 --- a/service/apigateway/go.mod +++ b/service/apigateway/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigateway/go.sum b/service/apigateway/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/apigateway/go.sum +++ b/service/apigateway/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/apigatewaymanagementapi/go.mod b/service/apigatewaymanagementapi/go.mod index f90005d5c8b..27a30c2dedd 100644 --- a/service/apigatewaymanagementapi/go.mod +++ b/service/apigatewaymanagementapi/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigatewaymanagementapi/go.sum b/service/apigatewaymanagementapi/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/apigatewaymanagementapi/go.sum +++ b/service/apigatewaymanagementapi/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/apigatewayv2/go.mod b/service/apigatewayv2/go.mod index d0d9718eec9..eab3b8eac00 100644 --- a/service/apigatewayv2/go.mod +++ b/service/apigatewayv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigatewayv2/go.sum b/service/apigatewayv2/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/apigatewayv2/go.sum +++ b/service/apigatewayv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appconfig/go.mod b/service/appconfig/go.mod index bced8a93876..db393d8a91a 100644 --- a/service/appconfig/go.mod +++ b/service/appconfig/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appconfig/go.sum b/service/appconfig/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/appconfig/go.sum +++ b/service/appconfig/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appflow/go.mod b/service/appflow/go.mod index 85346fb2b03..1fb78462eec 100644 --- a/service/appflow/go.mod +++ b/service/appflow/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appflow/go.sum b/service/appflow/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/appflow/go.sum +++ b/service/appflow/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appintegrations/api_op_CreateEventIntegration.go b/service/appintegrations/api_op_CreateEventIntegration.go index 7cdd791ccca..ad4b3daf0ff 100644 --- a/service/appintegrations/api_op_CreateEventIntegration.go +++ b/service/appintegrations/api_op_CreateEventIntegration.go @@ -12,9 +12,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates an EventIntegration, given a specified name, description, and a -// reference to an Amazon EventBridge bus in your account and a partner event -// source that pushes events to that bus. No objects are created in the your +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. Creates an EventIntegration, given a specified name, description, and a +// reference to an Amazon Eventbridge bus in your account and a partner event +// source that will push events to that bus. No objects are created in the your // account, only metadata that is persisted on the EventIntegration control plane. func (c *Client) CreateEventIntegration(ctx context.Context, params *CreateEventIntegrationInput, optFns ...func(*Options)) (*CreateEventIntegrationOutput, error) { if params == nil { @@ -33,7 +34,7 @@ func (c *Client) CreateEventIntegration(ctx context.Context, params *CreateEvent type CreateEventIntegrationInput struct { - // The EventBridge bus. + // The Eventbridge bus. // // This member is required. EventBridgeBus *string diff --git a/service/appintegrations/api_op_DeleteEventIntegration.go b/service/appintegrations/api_op_DeleteEventIntegration.go index 7e484221c75..8d51af006b6 100644 --- a/service/appintegrations/api_op_DeleteEventIntegration.go +++ b/service/appintegrations/api_op_DeleteEventIntegration.go @@ -10,8 +10,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes the specified existing event integration. If the event integration is -// associated with clients, the request is rejected. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. Deletes the specified existing event integration. If the event +// integration is associated with clients, the request is rejected. func (c *Client) DeleteEventIntegration(ctx context.Context, params *DeleteEventIntegrationInput, optFns ...func(*Options)) (*DeleteEventIntegrationOutput, error) { if params == nil { params = &DeleteEventIntegrationInput{} diff --git a/service/appintegrations/api_op_GetEventIntegration.go b/service/appintegrations/api_op_GetEventIntegration.go index cdb5fe9e35d..972f09bfaac 100644 --- a/service/appintegrations/api_op_GetEventIntegration.go +++ b/service/appintegrations/api_op_GetEventIntegration.go @@ -11,7 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Return information about the event integration. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. Return information about the event integration. func (c *Client) GetEventIntegration(ctx context.Context, params *GetEventIntegrationInput, optFns ...func(*Options)) (*GetEventIntegrationOutput, error) { if params == nil { params = &GetEventIntegrationInput{} @@ -42,7 +43,7 @@ type GetEventIntegrationOutput struct { // The description of the event integration. Description *string - // The EventBridge bus. + // The Eventbridge bus. EventBridgeBus *string // The event filter. diff --git a/service/appintegrations/api_op_ListEventIntegrationAssociations.go b/service/appintegrations/api_op_ListEventIntegrationAssociations.go index 3771585d364..5b095005f14 100644 --- a/service/appintegrations/api_op_ListEventIntegrationAssociations.go +++ b/service/appintegrations/api_op_ListEventIntegrationAssociations.go @@ -11,7 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a paginated list of event integration associations in the account. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. Returns a paginated list of event integration associations in the +// account. func (c *Client) ListEventIntegrationAssociations(ctx context.Context, params *ListEventIntegrationAssociationsInput, optFns ...func(*Options)) (*ListEventIntegrationAssociationsOutput, error) { if params == nil { params = &ListEventIntegrationAssociationsInput{} diff --git a/service/appintegrations/api_op_ListEventIntegrations.go b/service/appintegrations/api_op_ListEventIntegrations.go index 5d797e5abc4..ee95555462a 100644 --- a/service/appintegrations/api_op_ListEventIntegrations.go +++ b/service/appintegrations/api_op_ListEventIntegrations.go @@ -11,7 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a paginated list of event integrations in the account. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. Returns a paginated list of event integrations in the account. func (c *Client) ListEventIntegrations(ctx context.Context, params *ListEventIntegrationsInput, optFns ...func(*Options)) (*ListEventIntegrationsOutput, error) { if params == nil { params = &ListEventIntegrationsInput{} diff --git a/service/appintegrations/api_op_ListTagsForResource.go b/service/appintegrations/api_op_ListTagsForResource.go index 03f0ae37c90..acc3748dad9 100644 --- a/service/appintegrations/api_op_ListTagsForResource.go +++ b/service/appintegrations/api_op_ListTagsForResource.go @@ -10,7 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the tags for the specified resource. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. Lists the tags for the specified resource. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/appintegrations/api_op_TagResource.go b/service/appintegrations/api_op_TagResource.go index 1a8302baa66..413f1975124 100644 --- a/service/appintegrations/api_op_TagResource.go +++ b/service/appintegrations/api_op_TagResource.go @@ -10,7 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Adds the specified tags to the specified resource. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. Adds the specified tags to the specified resource. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/appintegrations/api_op_UntagResource.go b/service/appintegrations/api_op_UntagResource.go index 2ef4fb42ff4..15c2716339d 100644 --- a/service/appintegrations/api_op_UntagResource.go +++ b/service/appintegrations/api_op_UntagResource.go @@ -10,7 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes the specified tags from the specified resource. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. Removes the specified tags from the specified resource. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/appintegrations/api_op_UpdateEventIntegration.go b/service/appintegrations/api_op_UpdateEventIntegration.go index fca740f5fd6..217552ce5f4 100644 --- a/service/appintegrations/api_op_UpdateEventIntegration.go +++ b/service/appintegrations/api_op_UpdateEventIntegration.go @@ -10,7 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the description of an event integration. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. Updates the description of an event integration. func (c *Client) UpdateEventIntegration(ctx context.Context, params *UpdateEventIntegrationInput, optFns ...func(*Options)) (*UpdateEventIntegrationOutput, error) { if params == nil { params = &UpdateEventIntegrationInput{} diff --git a/service/appintegrations/doc.go b/service/appintegrations/doc.go index 0c739ea5add..d79ab188eff 100644 --- a/service/appintegrations/doc.go +++ b/service/appintegrations/doc.go @@ -3,7 +3,8 @@ // Package appintegrations provides the API client, operations, and parameter types // for Amazon AppIntegrations Service. // -// The Amazon AppIntegrations service enables you to configure and reuse +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. The Amazon AppIntegrations service enables you to configure and reuse // connections to external applications. For information about how you can use // external applications with Amazon Connect, see Set up pre-built integrations // (https://docs.aws.amazon.com/connect/latest/adminguide/crm.html) in the Amazon diff --git a/service/appintegrations/go.mod b/service/appintegrations/go.mod index 4da9f6a4496..1965bc7c167 100644 --- a/service/appintegrations/go.mod +++ b/service/appintegrations/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appintegrations/go.sum b/service/appintegrations/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/appintegrations/go.sum +++ b/service/appintegrations/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appintegrations/types/types.go b/service/appintegrations/types/types.go index 1c647e5df72..599ae781fb6 100644 --- a/service/appintegrations/types/types.go +++ b/service/appintegrations/types/types.go @@ -6,7 +6,8 @@ import ( smithydocument "github.com/aws/smithy-go/document" ) -// The event filter. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. The event filter. type EventFilter struct { // The source of the events. @@ -17,13 +18,14 @@ type EventFilter struct { noSmithyDocumentSerde } -// The event integration. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. The event integration. type EventIntegration struct { // The event integration description. Description *string - // The Amazon EventBridge bus for the event integration. + // The Amazon Eventbridge bus for the event integration. EventBridgeBus *string // The event integration filter. @@ -41,7 +43,8 @@ type EventIntegration struct { noSmithyDocumentSerde } -// The event integration association. +// The Amazon AppIntegrations APIs are in preview release and are subject to +// change. The event integration association. type EventIntegrationAssociation struct { // The metadata associated with the client. @@ -50,7 +53,7 @@ type EventIntegrationAssociation struct { // The identifier for the client that is associated with the event integration. ClientId *string - // The name of the EventBridge rule. + // The name of the Eventbridge rule. EventBridgeRuleName *string // The Amazon Resource Name (ARN) for the event integration association. diff --git a/service/applicationautoscaling/go.mod b/service/applicationautoscaling/go.mod index 180c27a2aa3..e9126ea3699 100644 --- a/service/applicationautoscaling/go.mod +++ b/service/applicationautoscaling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationautoscaling/go.sum b/service/applicationautoscaling/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/applicationautoscaling/go.sum +++ b/service/applicationautoscaling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/applicationcostprofiler/go.mod b/service/applicationcostprofiler/go.mod index fde4d548956..ecc8d101bd2 100644 --- a/service/applicationcostprofiler/go.mod +++ b/service/applicationcostprofiler/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationcostprofiler/go.sum b/service/applicationcostprofiler/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/applicationcostprofiler/go.sum +++ b/service/applicationcostprofiler/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/applicationdiscoveryservice/go.mod b/service/applicationdiscoveryservice/go.mod index 4db8cd53c30..0456aa93edf 100644 --- a/service/applicationdiscoveryservice/go.mod +++ b/service/applicationdiscoveryservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationdiscoveryservice/go.sum b/service/applicationdiscoveryservice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/applicationdiscoveryservice/go.sum +++ b/service/applicationdiscoveryservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/applicationinsights/go.mod b/service/applicationinsights/go.mod index c5f15793e62..3087ae320b4 100644 --- a/service/applicationinsights/go.mod +++ b/service/applicationinsights/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationinsights/go.sum b/service/applicationinsights/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/applicationinsights/go.sum +++ b/service/applicationinsights/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appmesh/go.mod b/service/appmesh/go.mod index 8568d1fded4..a43c4520132 100644 --- a/service/appmesh/go.mod +++ b/service/appmesh/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appmesh/go.sum b/service/appmesh/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/appmesh/go.sum +++ b/service/appmesh/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/apprunner/go.mod b/service/apprunner/go.mod index 231fd9c092f..dcccfee7b54 100644 --- a/service/apprunner/go.mod +++ b/service/apprunner/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apprunner/go.sum b/service/apprunner/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/apprunner/go.sum +++ b/service/apprunner/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appstream/go.mod b/service/appstream/go.mod index d884b620883..0efc1f289c4 100644 --- a/service/appstream/go.mod +++ b/service/appstream/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/appstream/go.sum b/service/appstream/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/appstream/go.sum +++ b/service/appstream/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/appsync/go.mod b/service/appsync/go.mod index 2a4091922f5..6d968ed9fb9 100644 --- a/service/appsync/go.mod +++ b/service/appsync/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appsync/go.sum b/service/appsync/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/appsync/go.sum +++ b/service/appsync/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/athena/go.mod b/service/athena/go.mod index a405abc0715..c8cd1dcdbd1 100644 --- a/service/athena/go.mod +++ b/service/athena/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/athena/go.sum b/service/athena/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/athena/go.sum +++ b/service/athena/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/auditmanager/api_op_AssociateAssessmentReportEvidenceFolder.go b/service/auditmanager/api_op_AssociateAssessmentReportEvidenceFolder.go index f3cd1dd0839..b2b77d49536 100644 --- a/service/auditmanager/api_op_AssociateAssessmentReportEvidenceFolder.go +++ b/service/auditmanager/api_op_AssociateAssessmentReportEvidenceFolder.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Associates an evidence folder to the specified assessment report in Audit +// Associates an evidence folder to the specified assessment report in AWS Audit // Manager. func (c *Client) AssociateAssessmentReportEvidenceFolder(ctx context.Context, params *AssociateAssessmentReportEvidenceFolderInput, optFns ...func(*Options)) (*AssociateAssessmentReportEvidenceFolderOutput, error) { if params == nil { diff --git a/service/auditmanager/api_op_BatchAssociateAssessmentReportEvidence.go b/service/auditmanager/api_op_BatchAssociateAssessmentReportEvidence.go index 11898431b75..c56647f52f5 100644 --- a/service/auditmanager/api_op_BatchAssociateAssessmentReportEvidence.go +++ b/service/auditmanager/api_op_BatchAssociateAssessmentReportEvidence.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Associates a list of evidence to an assessment report in an Audit Manager +// Associates a list of evidence to an assessment report in an AWS Audit Manager // assessment. func (c *Client) BatchAssociateAssessmentReportEvidence(ctx context.Context, params *BatchAssociateAssessmentReportEvidenceInput, optFns ...func(*Options)) (*BatchAssociateAssessmentReportEvidenceOutput, error) { if params == nil { diff --git a/service/auditmanager/api_op_BatchCreateDelegationByAssessment.go b/service/auditmanager/api_op_BatchCreateDelegationByAssessment.go index 81eebf711d2..370a2ab2fff 100644 --- a/service/auditmanager/api_op_BatchCreateDelegationByAssessment.go +++ b/service/auditmanager/api_op_BatchCreateDelegationByAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Create a batch of delegations for a specified assessment in Audit Manager. +// Create a batch of delegations for a specified assessment in AWS Audit Manager. func (c *Client) BatchCreateDelegationByAssessment(ctx context.Context, params *BatchCreateDelegationByAssessmentInput, optFns ...func(*Options)) (*BatchCreateDelegationByAssessmentOutput, error) { if params == nil { params = &BatchCreateDelegationByAssessmentInput{} @@ -34,7 +34,7 @@ type BatchCreateDelegationByAssessmentInput struct { // This member is required. AssessmentId *string - // The API request to batch create delegations in Audit Manager. + // The API request to batch create delegations in AWS Audit Manager. // // This member is required. CreateDelegationRequests []types.CreateDelegationRequest diff --git a/service/auditmanager/api_op_BatchDeleteDelegationByAssessment.go b/service/auditmanager/api_op_BatchDeleteDelegationByAssessment.go index 2368faf7312..ed456aa874a 100644 --- a/service/auditmanager/api_op_BatchDeleteDelegationByAssessment.go +++ b/service/auditmanager/api_op_BatchDeleteDelegationByAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes the delegations in the specified Audit Manager assessment. +// Deletes the delegations in the specified AWS Audit Manager assessment. func (c *Client) BatchDeleteDelegationByAssessment(ctx context.Context, params *BatchDeleteDelegationByAssessmentInput, optFns ...func(*Options)) (*BatchDeleteDelegationByAssessmentOutput, error) { if params == nil { params = &BatchDeleteDelegationByAssessmentInput{} diff --git a/service/auditmanager/api_op_BatchDisassociateAssessmentReportEvidence.go b/service/auditmanager/api_op_BatchDisassociateAssessmentReportEvidence.go index 55f7aa9b122..3ba364fdac0 100644 --- a/service/auditmanager/api_op_BatchDisassociateAssessmentReportEvidence.go +++ b/service/auditmanager/api_op_BatchDisassociateAssessmentReportEvidence.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Disassociates a list of evidence from the specified assessment report in Audit -// Manager. +// Disassociates a list of evidence from the specified assessment report in AWS +// Audit Manager. func (c *Client) BatchDisassociateAssessmentReportEvidence(ctx context.Context, params *BatchDisassociateAssessmentReportEvidenceInput, optFns ...func(*Options)) (*BatchDisassociateAssessmentReportEvidenceOutput, error) { if params == nil { params = &BatchDisassociateAssessmentReportEvidenceInput{} diff --git a/service/auditmanager/api_op_BatchImportEvidenceToAssessmentControl.go b/service/auditmanager/api_op_BatchImportEvidenceToAssessmentControl.go index 6b9f822bb5c..a961ddb9d68 100644 --- a/service/auditmanager/api_op_BatchImportEvidenceToAssessmentControl.go +++ b/service/auditmanager/api_op_BatchImportEvidenceToAssessmentControl.go @@ -12,7 +12,7 @@ import ( ) // Uploads one or more pieces of evidence to the specified control in the -// assessment in Audit Manager. +// assessment in AWS Audit Manager. func (c *Client) BatchImportEvidenceToAssessmentControl(ctx context.Context, params *BatchImportEvidenceToAssessmentControlInput, optFns ...func(*Options)) (*BatchImportEvidenceToAssessmentControlOutput, error) { if params == nil { params = &BatchImportEvidenceToAssessmentControlInput{} diff --git a/service/auditmanager/api_op_CreateAssessment.go b/service/auditmanager/api_op_CreateAssessment.go index 9f93d67f9e9..dd6994944d9 100644 --- a/service/auditmanager/api_op_CreateAssessment.go +++ b/service/auditmanager/api_op_CreateAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates an assessment in Audit Manager. +// Creates an assessment in AWS Audit Manager. func (c *Client) CreateAssessment(ctx context.Context, params *CreateAssessmentInput, optFns ...func(*Options)) (*CreateAssessmentOutput, error) { if params == nil { params = &CreateAssessmentInput{} @@ -50,7 +50,8 @@ type CreateAssessmentInput struct { // This member is required. Roles []types.Role - // The wrapper that contains the accounts and services in scope for the assessment. + // The wrapper that contains the AWS accounts and AWS services in scope for the + // assessment. // // This member is required. Scope *types.Scope @@ -66,8 +67,9 @@ type CreateAssessmentInput struct { type CreateAssessmentOutput struct { - // An entity that defines the scope of audit evidence collected by Audit Manager. - // An Audit Manager assessment is an implementation of an Audit Manager framework. + // An entity that defines the scope of audit evidence collected by AWS Audit + // Manager. An AWS Audit Manager assessment is an implementation of an AWS Audit + // Manager framework. Assessment *types.Assessment // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_CreateAssessmentFramework.go b/service/auditmanager/api_op_CreateAssessmentFramework.go index 5d55852ac32..60892937d31 100644 --- a/service/auditmanager/api_op_CreateAssessmentFramework.go +++ b/service/auditmanager/api_op_CreateAssessmentFramework.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a custom framework in Audit Manager. +// Creates a custom framework in AWS Audit Manager. func (c *Client) CreateAssessmentFramework(ctx context.Context, params *CreateAssessmentFrameworkInput, optFns ...func(*Options)) (*CreateAssessmentFrameworkOutput, error) { if params == nil { params = &CreateAssessmentFrameworkInput{} diff --git a/service/auditmanager/api_op_CreateControl.go b/service/auditmanager/api_op_CreateControl.go index e3ab8b3f77e..25aa6ff32ac 100644 --- a/service/auditmanager/api_op_CreateControl.go +++ b/service/auditmanager/api_op_CreateControl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a new custom control in Audit Manager. +// Creates a new custom control in AWS Audit Manager. func (c *Client) CreateControl(ctx context.Context, params *CreateControlInput, optFns ...func(*Options)) (*CreateControlOutput, error) { if params == nil { params = &CreateControlInput{} diff --git a/service/auditmanager/api_op_DeleteAssessment.go b/service/auditmanager/api_op_DeleteAssessment.go index ed750a20a3b..9ef44ac8462 100644 --- a/service/auditmanager/api_op_DeleteAssessment.go +++ b/service/auditmanager/api_op_DeleteAssessment.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an assessment in Audit Manager. +// Deletes an assessment in AWS Audit Manager. func (c *Client) DeleteAssessment(ctx context.Context, params *DeleteAssessmentInput, optFns ...func(*Options)) (*DeleteAssessmentOutput, error) { if params == nil { params = &DeleteAssessmentInput{} diff --git a/service/auditmanager/api_op_DeleteAssessmentFramework.go b/service/auditmanager/api_op_DeleteAssessmentFramework.go index 8f0f6318f78..32839cd1408 100644 --- a/service/auditmanager/api_op_DeleteAssessmentFramework.go +++ b/service/auditmanager/api_op_DeleteAssessmentFramework.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a custom framework in Audit Manager. +// Deletes a custom framework in AWS Audit Manager. func (c *Client) DeleteAssessmentFramework(ctx context.Context, params *DeleteAssessmentFrameworkInput, optFns ...func(*Options)) (*DeleteAssessmentFrameworkOutput, error) { if params == nil { params = &DeleteAssessmentFrameworkInput{} diff --git a/service/auditmanager/api_op_DeleteAssessmentReport.go b/service/auditmanager/api_op_DeleteAssessmentReport.go index 8f388ceada7..21fb55a3662 100644 --- a/service/auditmanager/api_op_DeleteAssessmentReport.go +++ b/service/auditmanager/api_op_DeleteAssessmentReport.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an assessment report from an assessment in Audit Manager. +// Deletes an assessment report from an assessment in AWS Audit Manager. func (c *Client) DeleteAssessmentReport(ctx context.Context, params *DeleteAssessmentReportInput, optFns ...func(*Options)) (*DeleteAssessmentReportOutput, error) { if params == nil { params = &DeleteAssessmentReportInput{} diff --git a/service/auditmanager/api_op_DeleteControl.go b/service/auditmanager/api_op_DeleteControl.go index 6d73dc2aab9..8edc2323475 100644 --- a/service/auditmanager/api_op_DeleteControl.go +++ b/service/auditmanager/api_op_DeleteControl.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a custom control in Audit Manager. +// Deletes a custom control in AWS Audit Manager. func (c *Client) DeleteControl(ctx context.Context, params *DeleteControlInput, optFns ...func(*Options)) (*DeleteControlOutput, error) { if params == nil { params = &DeleteControlInput{} diff --git a/service/auditmanager/api_op_DeregisterAccount.go b/service/auditmanager/api_op_DeregisterAccount.go index 0be2caf5e29..dfab1bb03e7 100644 --- a/service/auditmanager/api_op_DeregisterAccount.go +++ b/service/auditmanager/api_op_DeregisterAccount.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deregisters an account in Audit Manager. +// Deregisters an account in AWS Audit Manager. func (c *Client) DeregisterAccount(ctx context.Context, params *DeregisterAccountInput, optFns ...func(*Options)) (*DeregisterAccountOutput, error) { if params == nil { params = &DeregisterAccountInput{} diff --git a/service/auditmanager/api_op_DeregisterOrganizationAdminAccount.go b/service/auditmanager/api_op_DeregisterOrganizationAdminAccount.go index 4af37fe9b83..203a8583ca5 100644 --- a/service/auditmanager/api_op_DeregisterOrganizationAdminAccount.go +++ b/service/auditmanager/api_op_DeregisterOrganizationAdminAccount.go @@ -10,12 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes the specified member account as a delegated administrator for Audit -// Manager. When you remove a delegated administrator from your Audit Manager -// settings, or when you deregister a delegated administrator from Organizations, -// you continue to have access to the evidence that you previously collected under -// that account. However, Audit Manager will stop collecting and attaching evidence -// to that delegated administrator account moving forward. +// Deregisters the delegated AWS administrator account from the AWS organization. func (c *Client) DeregisterOrganizationAdminAccount(ctx context.Context, params *DeregisterOrganizationAdminAccountInput, optFns ...func(*Options)) (*DeregisterOrganizationAdminAccountOutput, error) { if params == nil { params = &DeregisterOrganizationAdminAccountInput{} diff --git a/service/auditmanager/api_op_DisassociateAssessmentReportEvidenceFolder.go b/service/auditmanager/api_op_DisassociateAssessmentReportEvidenceFolder.go index 399d66b1e70..74998dbcac7 100644 --- a/service/auditmanager/api_op_DisassociateAssessmentReportEvidenceFolder.go +++ b/service/auditmanager/api_op_DisassociateAssessmentReportEvidenceFolder.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Disassociates an evidence folder from the specified assessment report in Audit -// Manager. +// Disassociates an evidence folder from the specified assessment report in AWS +// Audit Manager. func (c *Client) DisassociateAssessmentReportEvidenceFolder(ctx context.Context, params *DisassociateAssessmentReportEvidenceFolderInput, optFns ...func(*Options)) (*DisassociateAssessmentReportEvidenceFolderOutput, error) { if params == nil { params = &DisassociateAssessmentReportEvidenceFolderInput{} diff --git a/service/auditmanager/api_op_GetAccountStatus.go b/service/auditmanager/api_op_GetAccountStatus.go index 31aeeef4186..4f6e11c3ac4 100644 --- a/service/auditmanager/api_op_GetAccountStatus.go +++ b/service/auditmanager/api_op_GetAccountStatus.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the registration status of an account in Audit Manager. +// Returns the registration status of an account in AWS Audit Manager. func (c *Client) GetAccountStatus(ctx context.Context, params *GetAccountStatusInput, optFns ...func(*Options)) (*GetAccountStatusOutput, error) { if params == nil { params = &GetAccountStatusInput{} @@ -33,7 +33,7 @@ type GetAccountStatusInput struct { type GetAccountStatusOutput struct { - // The status of the specified account. + // The status of the specified AWS account. Status types.AccountStatus // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_GetAssessment.go b/service/auditmanager/api_op_GetAssessment.go index 24072cad4b4..795dee92afb 100644 --- a/service/auditmanager/api_op_GetAssessment.go +++ b/service/auditmanager/api_op_GetAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns an assessment from Audit Manager. +// Returns an assessment from AWS Audit Manager. func (c *Client) GetAssessment(ctx context.Context, params *GetAssessmentInput, optFns ...func(*Options)) (*GetAssessmentOutput, error) { if params == nil { params = &GetAssessmentInput{} @@ -39,11 +39,12 @@ type GetAssessmentInput struct { type GetAssessmentOutput struct { - // An entity that defines the scope of audit evidence collected by Audit Manager. - // An Audit Manager assessment is an implementation of an Audit Manager framework. + // An entity that defines the scope of audit evidence collected by AWS Audit + // Manager. An AWS Audit Manager assessment is an implementation of an AWS Audit + // Manager framework. Assessment *types.Assessment - // The wrapper that contains the Audit Manager role information of the current + // The wrapper that contains the AWS Audit Manager role information of the current // user, such as the role type and IAM Amazon Resource Name (ARN). UserRole *types.Role diff --git a/service/auditmanager/api_op_GetAssessmentFramework.go b/service/auditmanager/api_op_GetAssessmentFramework.go index 9a5b082bd65..3315428e2a1 100644 --- a/service/auditmanager/api_op_GetAssessmentFramework.go +++ b/service/auditmanager/api_op_GetAssessmentFramework.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a framework from Audit Manager. +// Returns a framework from AWS Audit Manager. func (c *Client) GetAssessmentFramework(ctx context.Context, params *GetAssessmentFrameworkInput, optFns ...func(*Options)) (*GetAssessmentFrameworkOutput, error) { if params == nil { params = &GetAssessmentFrameworkInput{} diff --git a/service/auditmanager/api_op_GetAssessmentReportUrl.go b/service/auditmanager/api_op_GetAssessmentReportUrl.go index 54fffb2cc99..452413c6486 100644 --- a/service/auditmanager/api_op_GetAssessmentReportUrl.go +++ b/service/auditmanager/api_op_GetAssessmentReportUrl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the URL of a specified assessment report in Audit Manager. +// Returns the URL of a specified assessment report in AWS Audit Manager. func (c *Client) GetAssessmentReportUrl(ctx context.Context, params *GetAssessmentReportUrlInput, optFns ...func(*Options)) (*GetAssessmentReportUrlOutput, error) { if params == nil { params = &GetAssessmentReportUrlInput{} diff --git a/service/auditmanager/api_op_GetChangeLogs.go b/service/auditmanager/api_op_GetChangeLogs.go index 9be0f0867d5..bb6bab4ec16 100644 --- a/service/auditmanager/api_op_GetChangeLogs.go +++ b/service/auditmanager/api_op_GetChangeLogs.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of changelogs from Audit Manager. +// Returns a list of changelogs from AWS Audit Manager. func (c *Client) GetChangeLogs(ctx context.Context, params *GetChangeLogsInput, optFns ...func(*Options)) (*GetChangeLogsOutput, error) { if params == nil { params = &GetChangeLogsInput{} diff --git a/service/auditmanager/api_op_GetControl.go b/service/auditmanager/api_op_GetControl.go index 82ab62654c0..969e391a2f0 100644 --- a/service/auditmanager/api_op_GetControl.go +++ b/service/auditmanager/api_op_GetControl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a control from Audit Manager. +// Returns a control from AWS Audit Manager. func (c *Client) GetControl(ctx context.Context, params *GetControlInput, optFns ...func(*Options)) (*GetControlOutput, error) { if params == nil { params = &GetControlInput{} diff --git a/service/auditmanager/api_op_GetEvidence.go b/service/auditmanager/api_op_GetEvidence.go index 17cd735ef88..979c5817ec0 100644 --- a/service/auditmanager/api_op_GetEvidence.go +++ b/service/auditmanager/api_op_GetEvidence.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns evidence from Audit Manager. +// Returns evidence from AWS Audit Manager. func (c *Client) GetEvidence(ctx context.Context, params *GetEvidenceInput, optFns ...func(*Options)) (*GetEvidenceOutput, error) { if params == nil { params = &GetEvidenceInput{} diff --git a/service/auditmanager/api_op_GetEvidenceByEvidenceFolder.go b/service/auditmanager/api_op_GetEvidenceByEvidenceFolder.go index 485ae14f842..2b524379ee7 100644 --- a/service/auditmanager/api_op_GetEvidenceByEvidenceFolder.go +++ b/service/auditmanager/api_op_GetEvidenceByEvidenceFolder.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns all evidence from a specified evidence folder in Audit Manager. +// Returns all evidence from a specified evidence folder in AWS Audit Manager. func (c *Client) GetEvidenceByEvidenceFolder(ctx context.Context, params *GetEvidenceByEvidenceFolderInput, optFns ...func(*Options)) (*GetEvidenceByEvidenceFolderOutput, error) { if params == nil { params = &GetEvidenceByEvidenceFolderInput{} diff --git a/service/auditmanager/api_op_GetEvidenceFolder.go b/service/auditmanager/api_op_GetEvidenceFolder.go index b1dbb5eddca..b670d799748 100644 --- a/service/auditmanager/api_op_GetEvidenceFolder.go +++ b/service/auditmanager/api_op_GetEvidenceFolder.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns an evidence folder from the specified assessment in Audit Manager. +// Returns an evidence folder from the specified assessment in AWS Audit Manager. func (c *Client) GetEvidenceFolder(ctx context.Context, params *GetEvidenceFolderInput, optFns ...func(*Options)) (*GetEvidenceFolderOutput, error) { if params == nil { params = &GetEvidenceFolderInput{} diff --git a/service/auditmanager/api_op_GetEvidenceFoldersByAssessment.go b/service/auditmanager/api_op_GetEvidenceFoldersByAssessment.go index 548d98133a0..eb88fdf6a3f 100644 --- a/service/auditmanager/api_op_GetEvidenceFoldersByAssessment.go +++ b/service/auditmanager/api_op_GetEvidenceFoldersByAssessment.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the evidence folders from a specified assessment in Audit Manager. +// Returns the evidence folders from a specified assessment in AWS Audit Manager. func (c *Client) GetEvidenceFoldersByAssessment(ctx context.Context, params *GetEvidenceFoldersByAssessmentInput, optFns ...func(*Options)) (*GetEvidenceFoldersByAssessmentOutput, error) { if params == nil { params = &GetEvidenceFoldersByAssessmentInput{} diff --git a/service/auditmanager/api_op_GetEvidenceFoldersByAssessmentControl.go b/service/auditmanager/api_op_GetEvidenceFoldersByAssessmentControl.go index 22d0c6e0a85..076f23a70ef 100644 --- a/service/auditmanager/api_op_GetEvidenceFoldersByAssessmentControl.go +++ b/service/auditmanager/api_op_GetEvidenceFoldersByAssessmentControl.go @@ -13,7 +13,7 @@ import ( ) // Returns a list of evidence folders associated with a specified control of an -// assessment in Audit Manager. +// assessment in AWS Audit Manager. func (c *Client) GetEvidenceFoldersByAssessmentControl(ctx context.Context, params *GetEvidenceFoldersByAssessmentControlInput, optFns ...func(*Options)) (*GetEvidenceFoldersByAssessmentControlOutput, error) { if params == nil { params = &GetEvidenceFoldersByAssessmentControlInput{} diff --git a/service/auditmanager/api_op_GetOrganizationAdminAccount.go b/service/auditmanager/api_op_GetOrganizationAdminAccount.go index f4e63b9a566..bc43216ac31 100644 --- a/service/auditmanager/api_op_GetOrganizationAdminAccount.go +++ b/service/auditmanager/api_op_GetOrganizationAdminAccount.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the name of the delegated Amazon Web Services administrator account for -// the organization. +// Returns the name of the delegated AWS administrator account for the AWS +// organization. func (c *Client) GetOrganizationAdminAccount(ctx context.Context, params *GetOrganizationAdminAccountInput, optFns ...func(*Options)) (*GetOrganizationAdminAccountOutput, error) { if params == nil { params = &GetOrganizationAdminAccountInput{} diff --git a/service/auditmanager/api_op_GetServicesInScope.go b/service/auditmanager/api_op_GetServicesInScope.go index 788718502b4..3a4642383f7 100644 --- a/service/auditmanager/api_op_GetServicesInScope.go +++ b/service/auditmanager/api_op_GetServicesInScope.go @@ -11,8 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of the in-scope Amazon Web Services services for the specified -// assessment. +// Returns a list of the in-scope AWS services for the specified assessment. func (c *Client) GetServicesInScope(ctx context.Context, params *GetServicesInScopeInput, optFns ...func(*Options)) (*GetServicesInScopeOutput, error) { if params == nil { params = &GetServicesInScopeInput{} @@ -34,7 +33,7 @@ type GetServicesInScopeInput struct { type GetServicesInScopeOutput struct { - // The metadata associated with the Amazon Web Service. + // The metadata associated with the aAWS service. ServiceMetadata []types.ServiceMetadata // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_GetSettings.go b/service/auditmanager/api_op_GetSettings.go index fffaa68651f..54eff824cfa 100644 --- a/service/auditmanager/api_op_GetSettings.go +++ b/service/auditmanager/api_op_GetSettings.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the settings for the specified account. +// Returns the settings for the specified AWS account. func (c *Client) GetSettings(ctx context.Context, params *GetSettingsInput, optFns ...func(*Options)) (*GetSettingsOutput, error) { if params == nil { params = &GetSettingsInput{} @@ -39,7 +39,7 @@ type GetSettingsInput struct { type GetSettingsOutput struct { - // The settings object that holds all supported Audit Manager settings. + // The settings object that holds all supported AWS Audit Manager settings. Settings *types.Settings // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_ListAssessmentFrameworks.go b/service/auditmanager/api_op_ListAssessmentFrameworks.go index 1ad85f67403..f7eb26095bd 100644 --- a/service/auditmanager/api_op_ListAssessmentFrameworks.go +++ b/service/auditmanager/api_op_ListAssessmentFrameworks.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of the frameworks available in the Audit Manager framework +// Returns a list of the frameworks available in the AWS Audit Manager framework // library. func (c *Client) ListAssessmentFrameworks(ctx context.Context, params *ListAssessmentFrameworksInput, optFns ...func(*Options)) (*ListAssessmentFrameworksOutput, error) { if params == nil { diff --git a/service/auditmanager/api_op_ListAssessmentReports.go b/service/auditmanager/api_op_ListAssessmentReports.go index becd82c0bce..367095d9a7c 100644 --- a/service/auditmanager/api_op_ListAssessmentReports.go +++ b/service/auditmanager/api_op_ListAssessmentReports.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of assessment reports created in Audit Manager. +// Returns a list of assessment reports created in AWS Audit Manager. func (c *Client) ListAssessmentReports(ctx context.Context, params *ListAssessmentReportsInput, optFns ...func(*Options)) (*ListAssessmentReportsOutput, error) { if params == nil { params = &ListAssessmentReportsInput{} diff --git a/service/auditmanager/api_op_ListAssessments.go b/service/auditmanager/api_op_ListAssessments.go index 373a7f20ff3..e552f98c420 100644 --- a/service/auditmanager/api_op_ListAssessments.go +++ b/service/auditmanager/api_op_ListAssessments.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of current and past assessments from Audit Manager. +// Returns a list of current and past assessments from AWS Audit Manager. func (c *Client) ListAssessments(ctx context.Context, params *ListAssessmentsInput, optFns ...func(*Options)) (*ListAssessmentsOutput, error) { if params == nil { params = &ListAssessmentsInput{} diff --git a/service/auditmanager/api_op_ListControls.go b/service/auditmanager/api_op_ListControls.go index 3574fb42677..56463b9e687 100644 --- a/service/auditmanager/api_op_ListControls.go +++ b/service/auditmanager/api_op_ListControls.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of controls from Audit Manager. +// Returns a list of controls from AWS Audit Manager. func (c *Client) ListControls(ctx context.Context, params *ListControlsInput, optFns ...func(*Options)) (*ListControlsOutput, error) { if params == nil { params = &ListControlsInput{} diff --git a/service/auditmanager/api_op_ListNotifications.go b/service/auditmanager/api_op_ListNotifications.go index a42f811fca7..151cea7cec9 100644 --- a/service/auditmanager/api_op_ListNotifications.go +++ b/service/auditmanager/api_op_ListNotifications.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of all Audit Manager notifications. +// Returns a list of all AWS Audit Manager notifications. func (c *Client) ListNotifications(ctx context.Context, params *ListNotificationsInput, optFns ...func(*Options)) (*ListNotificationsOutput, error) { if params == nil { params = &ListNotificationsInput{} diff --git a/service/auditmanager/api_op_ListTagsForResource.go b/service/auditmanager/api_op_ListTagsForResource.go index f35a9d33484..a9e95a13419 100644 --- a/service/auditmanager/api_op_ListTagsForResource.go +++ b/service/auditmanager/api_op_ListTagsForResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of tags for the specified resource in Audit Manager. +// Returns a list of tags for the specified resource in AWS Audit Manager. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/auditmanager/api_op_RegisterAccount.go b/service/auditmanager/api_op_RegisterAccount.go index d338e461fbd..a17fd39df83 100644 --- a/service/auditmanager/api_op_RegisterAccount.go +++ b/service/auditmanager/api_op_RegisterAccount.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables Audit Manager for the specified account. +// Enables AWS Audit Manager for the specified AWS account. func (c *Client) RegisterAccount(ctx context.Context, params *RegisterAccountInput, optFns ...func(*Options)) (*RegisterAccountOutput, error) { if params == nil { params = &RegisterAccountInput{} @@ -29,10 +29,10 @@ func (c *Client) RegisterAccount(ctx context.Context, params *RegisterAccountInp type RegisterAccountInput struct { - // The delegated administrator account for Audit Manager. + // The delegated administrator account for AWS Audit Manager. DelegatedAdminAccount *string - // The KMS key details. + // The AWS KMS key details. KmsKey *string noSmithyDocumentSerde diff --git a/service/auditmanager/api_op_RegisterOrganizationAdminAccount.go b/service/auditmanager/api_op_RegisterOrganizationAdminAccount.go index e8f5ec7a6de..a12eadf9527 100644 --- a/service/auditmanager/api_op_RegisterOrganizationAdminAccount.go +++ b/service/auditmanager/api_op_RegisterOrganizationAdminAccount.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables an account within the organization as the delegated administrator for -// Audit Manager. +// Enables an AWS account within the organization as the delegated administrator +// for AWS Audit Manager. func (c *Client) RegisterOrganizationAdminAccount(ctx context.Context, params *RegisterOrganizationAdminAccountInput, optFns ...func(*Options)) (*RegisterOrganizationAdminAccountOutput, error) { if params == nil { params = &RegisterOrganizationAdminAccountInput{} @@ -42,7 +42,7 @@ type RegisterOrganizationAdminAccountOutput struct { // The identifier for the specified delegated administrator account. AdminAccountId *string - // The identifier for the specified organization. + // The identifier for the specified AWS organization. OrganizationId *string // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_TagResource.go b/service/auditmanager/api_op_TagResource.go index 849fb60d1d0..8e5c940391f 100644 --- a/service/auditmanager/api_op_TagResource.go +++ b/service/auditmanager/api_op_TagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Tags the specified resource in Audit Manager. +// Tags the specified resource in AWS Audit Manager. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/auditmanager/api_op_UntagResource.go b/service/auditmanager/api_op_UntagResource.go index 7ac6e22282e..bb76e4b2729 100644 --- a/service/auditmanager/api_op_UntagResource.go +++ b/service/auditmanager/api_op_UntagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes a tag from a resource in Audit Manager. +// Removes a tag from a resource in AWS Audit Manager. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/auditmanager/api_op_UpdateAssessment.go b/service/auditmanager/api_op_UpdateAssessment.go index 2e21d467cda..9f8e22a4c92 100644 --- a/service/auditmanager/api_op_UpdateAssessment.go +++ b/service/auditmanager/api_op_UpdateAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Edits an Audit Manager assessment. +// Edits an AWS Audit Manager assessment. func (c *Client) UpdateAssessment(ctx context.Context, params *UpdateAssessmentInput, optFns ...func(*Options)) (*UpdateAssessmentOutput, error) { if params == nil { params = &UpdateAssessmentInput{} diff --git a/service/auditmanager/api_op_UpdateAssessmentControl.go b/service/auditmanager/api_op_UpdateAssessmentControl.go index c88430b4c03..c5f0cfbd003 100644 --- a/service/auditmanager/api_op_UpdateAssessmentControl.go +++ b/service/auditmanager/api_op_UpdateAssessmentControl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates a control within an assessment in Audit Manager. +// Updates a control within an assessment in AWS Audit Manager. func (c *Client) UpdateAssessmentControl(ctx context.Context, params *UpdateAssessmentControlInput, optFns ...func(*Options)) (*UpdateAssessmentControlOutput, error) { if params == nil { params = &UpdateAssessmentControlInput{} diff --git a/service/auditmanager/api_op_UpdateAssessmentControlSetStatus.go b/service/auditmanager/api_op_UpdateAssessmentControlSetStatus.go index 620cc8455ee..aebe6d31a75 100644 --- a/service/auditmanager/api_op_UpdateAssessmentControlSetStatus.go +++ b/service/auditmanager/api_op_UpdateAssessmentControlSetStatus.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the status of a control set in an Audit Manager assessment. +// Updates the status of a control set in an AWS Audit Manager assessment. func (c *Client) UpdateAssessmentControlSetStatus(ctx context.Context, params *UpdateAssessmentControlSetStatusInput, optFns ...func(*Options)) (*UpdateAssessmentControlSetStatusOutput, error) { if params == nil { params = &UpdateAssessmentControlSetStatusInput{} diff --git a/service/auditmanager/api_op_UpdateAssessmentFramework.go b/service/auditmanager/api_op_UpdateAssessmentFramework.go index 6e2844ff6cd..c2bd59f21b5 100644 --- a/service/auditmanager/api_op_UpdateAssessmentFramework.go +++ b/service/auditmanager/api_op_UpdateAssessmentFramework.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates a custom framework in Audit Manager. +// Updates a custom framework in AWS Audit Manager. func (c *Client) UpdateAssessmentFramework(ctx context.Context, params *UpdateAssessmentFrameworkInput, optFns ...func(*Options)) (*UpdateAssessmentFrameworkOutput, error) { if params == nil { params = &UpdateAssessmentFrameworkInput{} diff --git a/service/auditmanager/api_op_UpdateAssessmentStatus.go b/service/auditmanager/api_op_UpdateAssessmentStatus.go index 93b8874030d..6e84ed52714 100644 --- a/service/auditmanager/api_op_UpdateAssessmentStatus.go +++ b/service/auditmanager/api_op_UpdateAssessmentStatus.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the status of an assessment in Audit Manager. +// Updates the status of an assessment in AWS Audit Manager. func (c *Client) UpdateAssessmentStatus(ctx context.Context, params *UpdateAssessmentStatusInput, optFns ...func(*Options)) (*UpdateAssessmentStatusOutput, error) { if params == nil { params = &UpdateAssessmentStatusInput{} diff --git a/service/auditmanager/api_op_UpdateControl.go b/service/auditmanager/api_op_UpdateControl.go index b907874dbe9..4ed5a43e7bb 100644 --- a/service/auditmanager/api_op_UpdateControl.go +++ b/service/auditmanager/api_op_UpdateControl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates a custom control in Audit Manager. +// Updates a custom control in AWS Audit Manager. func (c *Client) UpdateControl(ctx context.Context, params *UpdateControlInput, optFns ...func(*Options)) (*UpdateControlOutput, error) { if params == nil { params = &UpdateControlInput{} diff --git a/service/auditmanager/api_op_UpdateSettings.go b/service/auditmanager/api_op_UpdateSettings.go index f3711490a4a..9fdee362e2f 100644 --- a/service/auditmanager/api_op_UpdateSettings.go +++ b/service/auditmanager/api_op_UpdateSettings.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates Audit Manager settings for the current user account. +// Updates AWS Audit Manager settings for the current user account. func (c *Client) UpdateSettings(ctx context.Context, params *UpdateSettingsInput, optFns ...func(*Options)) (*UpdateSettingsOutput, error) { if params == nil { params = &UpdateSettingsInput{} @@ -35,11 +35,11 @@ type UpdateSettingsInput struct { // A list of the default audit owners. DefaultProcessOwners []types.Role - // The KMS key details. + // The AWS KMS key details. KmsKey *string - // The Amazon Simple Notification Service (Amazon SNS) topic to which Audit Manager - // sends notifications. + // The Amazon Simple Notification Service (Amazon SNS) topic to which AWS Audit + // Manager sends notifications. SnsTopic *string noSmithyDocumentSerde diff --git a/service/auditmanager/api_op_ValidateAssessmentReportIntegrity.go b/service/auditmanager/api_op_ValidateAssessmentReportIntegrity.go index 601acf99ed4..e059ec783bc 100644 --- a/service/auditmanager/api_op_ValidateAssessmentReportIntegrity.go +++ b/service/auditmanager/api_op_ValidateAssessmentReportIntegrity.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Validates the integrity of an assessment report in Audit Manager. +// Validates the integrity of an assessment report in AWS Audit Manager. func (c *Client) ValidateAssessmentReportIntegrity(ctx context.Context, params *ValidateAssessmentReportIntegrityInput, optFns ...func(*Options)) (*ValidateAssessmentReportIntegrityOutput, error) { if params == nil { params = &ValidateAssessmentReportIntegrityInput{} diff --git a/service/auditmanager/doc.go b/service/auditmanager/doc.go index 96c563232df..ca6ad3b6855 100644 --- a/service/auditmanager/doc.go +++ b/service/auditmanager/doc.go @@ -3,26 +3,26 @@ // Package auditmanager provides the API client, operations, and parameter types // for AWS Audit Manager. // -// Welcome to the Audit Manager API reference. This guide is for developers who -// need detailed information about the Audit Manager API operations, data types, -// and errors. Audit Manager is a service that provides automated evidence -// collection so that you can continuously audit your Amazon Web Services usage, -// and assess the effectiveness of your controls to better manage risk and simplify -// compliance. Audit Manager provides pre-built frameworks that structure and +// Welcome to the AWS Audit Manager API reference. This guide is for developers who +// need detailed information about the AWS Audit Manager API operations, data +// types, and errors. AWS Audit Manager is a service that provides automated +// evidence collection so that you can continuously audit your AWS usage, and +// assess the effectiveness of your controls to better manage risk and simplify +// compliance. AWS Audit Manager provides pre-built frameworks that structure and // automate assessments for a given compliance standard. Frameworks include a // pre-built collection of controls with descriptions and testing procedures, which // are grouped according to the requirements of the specified compliance standard // or regulation. You can also customize frameworks and controls to support // internal audits with unique requirements. Use the following links to get started -// with the Audit Manager API: +// with the AWS Audit Manager API: // // * Actions // (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Operations.html): -// An alphabetical list of all Audit Manager API operations. +// An alphabetical list of all AWS Audit Manager API operations. // // * Data types // (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Types.html): -// An alphabetical list of all Audit Manager data types. +// An alphabetical list of all AWS Audit Manager data types. // // * Common parameters // (https://docs.aws.amazon.com/audit-manager/latest/APIReference/CommonParameters.html): @@ -32,7 +32,7 @@ // (https://docs.aws.amazon.com/audit-manager/latest/APIReference/CommonErrors.html): // Client and server errors that all operations can return. // -// If you're new to Audit -// Manager, we recommend that you review the Audit Manager User Guide +// If you're new to AWS +// Audit Manager, we recommend that you review the AWS Audit Manager User Guide // (https://docs.aws.amazon.com/audit-manager/latest/userguide/what-is.html). package auditmanager diff --git a/service/auditmanager/go.mod b/service/auditmanager/go.mod index b5ed03b1ebf..3d305b101e3 100644 --- a/service/auditmanager/go.mod +++ b/service/auditmanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/auditmanager/go.sum b/service/auditmanager/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/auditmanager/go.sum +++ b/service/auditmanager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/auditmanager/types/errors.go b/service/auditmanager/types/errors.go index 84a0c6396b3..97c5f897cac 100644 --- a/service/auditmanager/types/errors.go +++ b/service/auditmanager/types/errors.go @@ -7,8 +7,8 @@ import ( smithy "github.com/aws/smithy-go" ) -// Your account is not registered with Audit Manager. Check the delegated -// administrator setup on the Audit Manager settings page, and try again. +// Your account is not registered with AWS Audit Manager. Check the delegated +// administrator setup on the AWS Audit Manager settings page, and try again. type AccessDeniedException struct { Message *string diff --git a/service/auditmanager/types/types.go b/service/auditmanager/types/types.go index 30d12d1e44c..8729a7eecef 100644 --- a/service/auditmanager/types/types.go +++ b/service/auditmanager/types/types.go @@ -7,14 +7,15 @@ import ( "time" ) -// An entity that defines the scope of audit evidence collected by Audit Manager. -// An Audit Manager assessment is an implementation of an Audit Manager framework. +// An entity that defines the scope of audit evidence collected by AWS Audit +// Manager. An AWS Audit Manager assessment is an implementation of an AWS Audit +// Manager framework. type Assessment struct { // The Amazon Resource Name (ARN) of the assessment. Arn *string - // The account associated with the assessment. + // The AWS account associated with the assessment. AwsAccount *AWSAccount // The framework from which the assessment was created. @@ -29,8 +30,8 @@ type Assessment struct { noSmithyDocumentSerde } -// The control entity that represents a standard or custom control used in an Audit -// Manager assessment. +// The control entity that represents a standard or custom control used in an AWS +// Audit Manager assessment. type AssessmentControl struct { // The amount of evidence in the assessment report. @@ -63,7 +64,7 @@ type AssessmentControl struct { noSmithyDocumentSerde } -// Represents a set of controls in an Audit Manager assessment. +// Represents a set of controls in an AWS Audit Manager assessment. type AssessmentControlSet struct { // The list of controls contained with the control set. @@ -95,7 +96,7 @@ type AssessmentControlSet struct { noSmithyDocumentSerde } -// The folder in which Audit Manager stores evidence for an assessment. +// The folder in which AWS Audit Manager stores evidence for an assessment. type AssessmentEvidenceFolder struct { // The identifier for the specified assessment. @@ -116,27 +117,26 @@ type AssessmentEvidenceFolder struct { // The identifier for the control set. ControlSetId *string - // The Amazon Web Service from which the evidence was collected. + // The AWS service from which the evidence was collected. DataSource *string // The date when the first evidence was added to the evidence folder. Date *time.Time - // The total number of Amazon Web Services resources assessed to generate the - // evidence. + // The total number of AWS resources assessed to generate the evidence. EvidenceAwsServiceSourceCount int32 // The number of evidence that falls under the compliance check category. This - // evidence is collected from Config or Security Hub. + // evidence is collected from AWS Config or AWS Security Hub. EvidenceByTypeComplianceCheckCount int32 - // The total number of issues that were reported directly from Security Hub, - // Config, or both. + // The total number of issues that were reported directly from AWS Security Hub, + // AWS Config, or both. EvidenceByTypeComplianceCheckIssuesCount int32 // The number of evidence that falls under the configuration data category. This - // evidence is collected from configuration snapshots of other Amazon Web Services - // services such as Amazon EC2, Amazon S3, or IAM. + // evidence is collected from configuration snapshots of other AWS services such as + // Amazon EC2, Amazon S3, or IAM. EvidenceByTypeConfigurationDataCount int32 // The number of evidence that falls under the manual category. This evidence is @@ -144,7 +144,7 @@ type AssessmentEvidenceFolder struct { EvidenceByTypeManualCount int32 // The number of evidence that falls under the user activity category. This - // evidence is collected from CloudTrail logs. + // evidence is collected from AWS CloudTrail logs. EvidenceByTypeUserActivityCount int32 // The amount of evidence included in the evidence folder. @@ -162,8 +162,8 @@ type AssessmentEvidenceFolder struct { noSmithyDocumentSerde } -// The file used to structure and automate Audit Manager assessments for a given -// compliance standard. +// The file used to structure and automate AWS Audit Manager assessments for a +// given compliance standard. type AssessmentFramework struct { // The Amazon Resource Name (ARN) of the specified framework. @@ -252,7 +252,7 @@ type AssessmentMetadata struct { // The roles associated with the assessment. Roles []Role - // The wrapper of accounts and services in scope for the assessment. + // The wrapper of AWS accounts and services in scope for the assessment. Scope *Scope // The overall status of the assessment. @@ -261,7 +261,7 @@ type AssessmentMetadata struct { noSmithyDocumentSerde } -// A metadata object associated with an assessment in Audit Manager. +// A metadata object associated with an assessment in AWS Audit Manager. type AssessmentMetadataItem struct { // The name of the compliance standard related to the assessment, such as PCI-DSS. @@ -291,9 +291,9 @@ type AssessmentMetadataItem struct { noSmithyDocumentSerde } -// A finalized document generated from an Audit Manager assessment. These reports -// summarize the relevant evidence collected for your audit, and link to the -// relevant evidence folders which are named and organized according to the +// A finalized document generated from an AWS Audit Manager assessment. These +// reports summarize the relevant evidence collected for your audit, and link to +// the relevant evidence folders which are named and organized according to the // controls specified in your assessment. type AssessmentReport struct { @@ -306,7 +306,7 @@ type AssessmentReport struct { // The name of the user who created the assessment report. Author *string - // The identifier for the specified account. + // The identifier for the specified AWS account. AwsAccountId *string // Specifies when the assessment report was created. @@ -373,7 +373,7 @@ type AssessmentReportMetadata struct { noSmithyDocumentSerde } -// The location in which Audit Manager saves assessment reports for the given +// The location in which AWS Audit Manager saves assessment reports for the given // assessment. type AssessmentReportsDestination struct { @@ -386,25 +386,26 @@ type AssessmentReportsDestination struct { noSmithyDocumentSerde } -// The wrapper of account details, such as account ID, email address, and so on. +// The wrapper of AWS account details, such as account ID, email address, and so +// on. type AWSAccount struct { - // The email address associated with the specified account. + // The email address associated with the specified AWS account. EmailAddress *string - // The identifier for the specified account. + // The identifier for the specified AWS account. Id *string - // The name of the specified account. + // The name of the specified AWS account. Name *string noSmithyDocumentSerde } -// An Amazon Web Service such as Amazon S3, CloudTrail, and so on. +// An AWS service such as Amazon S3, AWS CloudTrail, and so on. type AWSService struct { - // The name of the Amazon Web Service. + // The name of the AWS service. ServiceName *string noSmithyDocumentSerde @@ -414,7 +415,7 @@ type AWSService struct { // provide more meaningful errors than a simple string message. type BatchCreateDelegationByAssessmentError struct { - // The API request to batch create delegations in Audit Manager. + // The API request to batch create delegations in AWS Audit Manager. CreateDelegationRequest *CreateDelegationRequest // The error code returned by the BatchCreateDelegationByAssessment API. @@ -452,14 +453,14 @@ type BatchImportEvidenceToAssessmentControlError struct { // The error message returned by the BatchImportEvidenceToAssessmentControl API. ErrorMessage *string - // Manual evidence that cannot be collected automatically by Audit Manager. + // Manual evidence that cannot be collected automatically by AWS Audit Manager. ManualEvidence *ManualEvidence noSmithyDocumentSerde } -// The record of a change within Audit Manager, such as a modified assessment, a -// delegated control set, and so on. +// The record of a change within AWS Audit Manager, such as a modified assessment, +// a delegated control set, and so on. type ChangeLog struct { // The action performed. @@ -480,7 +481,7 @@ type ChangeLog struct { noSmithyDocumentSerde } -// A control in Audit Manager. +// A control in AWS Audit Manager. type Control struct { // The recommended actions to carry out if the control is not fulfilled. @@ -495,8 +496,8 @@ type Control struct { // The data mapping sources for the specified control. ControlMappingSources []ControlMappingSource - // The data source that determines from where Audit Manager collects evidence for - // the control. + // The data source that determines from where AWS Audit Manager collects evidence + // for the control. ControlSources *string // Specifies when the control was created. @@ -548,8 +549,8 @@ type ControlComment struct { noSmithyDocumentSerde } -// The data source that determines from where Audit Manager collects evidence for -// the control. +// The data source that determines from where AWS Audit Manager collects evidence +// for the control. type ControlMappingSource struct { // The description of the specified source. @@ -561,8 +562,8 @@ type ControlMappingSource struct { // The unique identifier for the specified source. SourceId *string - // The keyword to search for in CloudTrail logs, Config rules, Security Hub checks, - // and Amazon Web Services API names. + // The keyword to search for in AWS CloudTrail logs, AWS Config rules, AWS Security + // Hub checks, and AWS API names. SourceKeyword *SourceKeyword // The name of the specified source. @@ -587,8 +588,8 @@ type ControlMetadata struct { // The Amazon Resource Name (ARN) of the specified control. Arn *string - // The data source that determines from where Audit Manager collects evidence for - // the control. + // The data source that determines from where AWS Audit Manager collects evidence + // for the control. ControlSources *string // Specifies when the control was created. @@ -606,7 +607,7 @@ type ControlMetadata struct { noSmithyDocumentSerde } -// A set of controls in Audit Manager. +// A set of controls in AWS Audit Manager. type ControlSet struct { // The list of controls within the control set. @@ -623,7 +624,7 @@ type ControlSet struct { } // Control entity attributes that uniquely identify an existing control to be added -// to a framework in Audit Manager. +// to a framework in AWS Audit Manager. type CreateAssessmentFrameworkControl struct { // The unique identifier of the control. @@ -632,8 +633,8 @@ type CreateAssessmentFrameworkControl struct { noSmithyDocumentSerde } -// A controlSet entity that represents a collection of controls in Audit Manager. -// This does not contain the control set ID. +// A controlSet entity that represents a collection of controls in AWS Audit +// Manager. This does not contain the control set ID. type CreateAssessmentFrameworkControlSet struct { // The name of the specified control set. @@ -652,15 +653,15 @@ type CreateAssessmentFrameworkControlSet struct { // with related parameters and metadata. This does not contain mappingID. type CreateControlMappingSource struct { - // The description of the data source that determines from where Audit Manager + // The description of the data source that determines from where AWS Audit Manager // collects evidence for the control. SourceDescription *string // The frequency of evidence collection for the specified control mapping source. SourceFrequency SourceFrequency - // The keyword to search for in CloudTrail logs, Config rules, Security Hub checks, - // and Amazon Web Services API names. + // The keyword to search for in AWS CloudTrail logs, AWS Config rules, AWS Security + // Hub checks, and AWS API names. SourceKeyword *SourceKeyword // The name of the control mapping data source. @@ -679,7 +680,7 @@ type CreateControlMappingSource struct { noSmithyDocumentSerde } -// A collection of attributes used to create a delegation for an assessment in +// A collection of attributes used to create a delegation for an assessment in AWS // Audit Manager. type CreateDelegationRequest struct { @@ -780,16 +781,17 @@ type Evidence struct { // (such as allowUsersToChangePassword) and value (such as true or false). Attributes map[string]string - // The identifier for the specified account. + // The identifier for the specified AWS account. AwsAccountId *string - // The account from which the evidence is collected, and its organization path. + // The AWS account from which the evidence is collected, and its AWS organization + // path. AwsOrganization *string // The evaluation status for evidence that falls under the compliance check - // category. For evidence collected from Security Hub, a Pass or Fail result is - // shown. For evidence collected from Config, a Compliant or Noncompliant result is - // shown. + // category. For evidence collected from AWS Security Hub, a Pass or Fail result is + // shown. For evidence collected from AWS Config, a Compliant or Noncompliant + // result is shown. ComplianceCheck *string // The data source from which the specified evidence was collected. @@ -798,10 +800,10 @@ type Evidence struct { // The name of the specified evidence event. EventName *string - // The Amazon Web Service from which the evidence is collected. + // The AWS service from which the evidence is collected. EventSource *string - // The identifier for the specified account. + // The identifier for the specified AWS account. EvidenceAwsAccountId *string // The type of automated evidence. @@ -825,8 +827,8 @@ type Evidence struct { noSmithyDocumentSerde } -// The file used to structure and automate Audit Manager assessments for a given -// compliance standard. +// The file used to structure and automate AWS Audit Manager assessments for a +// given compliance standard. type Framework struct { // The Amazon Resource Name (ARN) of the specified framework. @@ -839,7 +841,7 @@ type Framework struct { // The control sets associated with the framework. ControlSets []ControlSet - // The sources from which Audit Manager collects evidence for the control. + // The sources from which AWS Audit Manager collects evidence for the control. ControlSources *string // Specifies when the framework was created. @@ -893,7 +895,7 @@ type FrameworkMetadata struct { noSmithyDocumentSerde } -// Evidence that is uploaded to Audit Manager manually. +// Evidence that is uploaded to AWS Audit Manager manually. type ManualEvidence struct { // The Amazon S3 URL that points to a manual evidence object. @@ -902,7 +904,7 @@ type ManualEvidence struct { noSmithyDocumentSerde } -// The notification used to inform a user of an update in Audit Manager. For +// The notification used to inform a user of an update in AWS Audit Manager. For // example, this includes the notification that is sent when a control set is // delegated for review. type Notification struct { @@ -934,7 +936,7 @@ type Notification struct { noSmithyDocumentSerde } -// A system asset that is evaluated in an Audit Manager assessment. +// A system asset that is evaluated in an AWS Audit Manager assessment. type Resource struct { // The Amazon Resource Name (ARN) for the specified resource. @@ -946,7 +948,7 @@ type Resource struct { noSmithyDocumentSerde } -// The wrapper that contains the Audit Manager role information of the current +// The wrapper that contains the AWS Audit Manager role information of the current // user, such as the role type and IAM Amazon Resource Name (ARN). type Role struct { @@ -961,38 +963,39 @@ type Role struct { noSmithyDocumentSerde } -// The wrapper that contains the accounts and services in scope for the assessment. +// The wrapper that contains the AWS accounts and AWS services in scope for the +// assessment. type Scope struct { - // The accounts included in the scope of the assessment. + // The AWS accounts included in the scope of the assessment. AwsAccounts []AWSAccount - // The Amazon Web Services services included in the scope of the assessment. + // The AWS services included in the scope of the assessment. AwsServices []AWSService noSmithyDocumentSerde } -// The metadata associated with the specified Amazon Web Service. +// The metadata associated with the specified AWS service. type ServiceMetadata struct { - // The category in which the Amazon Web Service belongs, such as compute, storage, + // The category in which the AWS service belongs, such as compute, storage, // database, and so on. Category *string - // The description of the specified Amazon Web Service. + // The description of the specified AWS service. Description *string - // The display name of the Amazon Web Service. + // The display name of the AWS service. DisplayName *string - // The name of the Amazon Web Service. + // The name of the AWS service. Name *string noSmithyDocumentSerde } -// The settings object that holds all supported Audit Manager settings. +// The settings object that holds all supported AWS Audit Manager settings. type Settings struct { // The default storage destination for assessment reports. @@ -1001,10 +1004,10 @@ type Settings struct { // The designated default audit owners. DefaultProcessOwners []Role - // Specifies whether Organizations is enabled. + // Specifies whether AWS Organizations is enabled. IsAwsOrgEnabled *bool - // The KMS key details. + // The AWS KMS key details. KmsKey *string // The designated Amazon Simple Notification Service (Amazon SNS) topic. @@ -1013,23 +1016,22 @@ type Settings struct { noSmithyDocumentSerde } -// The keyword to search for in CloudTrail logs, Config rules, Security Hub checks, -// and Amazon Web Services API names. +// The keyword to search for in AWS CloudTrail logs, AWS Config rules, AWS Security +// Hub checks, and AWS API names. type SourceKeyword struct { // The method of input for the specified keyword. KeywordInputType KeywordInputType - // The value of the keyword used to search CloudTrail logs, Config rules, Security - // Hub checks, and Amazon Web Services API names when mapping a control data - // source. + // The value of the keyword used to search AWS CloudTrail logs, AWS Config rules, + // AWS Security Hub checks, and AWS API names when mapping a control data source. KeywordValue *string noSmithyDocumentSerde } -// A controlSet entity that represents a collection of controls in Audit Manager. -// This does not contain the control set ID. +// A controlSet entity that represents a collection of controls in AWS Audit +// Manager. This does not contain the control set ID. type UpdateAssessmentFrameworkControlSet struct { // The name of the control set. diff --git a/service/autoscaling/go.mod b/service/autoscaling/go.mod index cd9a6e751d5..b14b7b5232c 100644 --- a/service/autoscaling/go.mod +++ b/service/autoscaling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/autoscaling/go.sum +++ b/service/autoscaling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/autoscalingplans/go.mod b/service/autoscalingplans/go.mod index 23ca2b633bd..8b3412cd759 100644 --- a/service/autoscalingplans/go.mod +++ b/service/autoscalingplans/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/autoscalingplans/go.sum b/service/autoscalingplans/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/autoscalingplans/go.sum +++ b/service/autoscalingplans/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/backup/go.mod b/service/backup/go.mod index f09b4d80d70..36fb797106c 100644 --- a/service/backup/go.mod +++ b/service/backup/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/backup/go.sum b/service/backup/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/backup/go.sum +++ b/service/backup/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/batch/api_op_CancelJob.go b/service/batch/api_op_CancelJob.go index 407d40e102e..2f419b6e0b2 100644 --- a/service/batch/api_op_CancelJob.go +++ b/service/batch/api_op_CancelJob.go @@ -10,10 +10,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED, PENDING, or -// RUNNABLE state are canceled. Jobs that have progressed to STARTING or RUNNING -// aren't canceled, but the API operation still succeeds, even if no job is -// canceled. These jobs must be terminated with the TerminateJob operation. +// Cancels a job in an AWS Batch job queue. Jobs that are in the SUBMITTED, +// PENDING, or RUNNABLE state are canceled. Jobs that have progressed to STARTING +// or RUNNING aren't canceled, but the API operation still succeeds, even if no job +// is canceled. These jobs must be terminated with the TerminateJob operation. func (c *Client) CancelJob(ctx context.Context, params *CancelJobInput, optFns ...func(*Options)) (*CancelJobOutput, error) { if params == nil { params = &CancelJobInput{} @@ -32,14 +32,14 @@ func (c *Client) CancelJob(ctx context.Context, params *CancelJobInput, optFns . // Contains the parameters for CancelJob. type CancelJobInput struct { - // The Batch job ID of the job to cancel. + // The AWS Batch job ID of the job to cancel. // // This member is required. JobId *string // A message to attach to the job that explains the reason for canceling it. This // message is returned by future DescribeJobs operations on the job. This message - // is also recorded in the Batch activity logs. + // is also recorded in the AWS Batch activity logs. // // This member is required. Reason *string diff --git a/service/batch/api_op_CreateComputeEnvironment.go b/service/batch/api_op_CreateComputeEnvironment.go index 9d59c64681a..11a16ccb94b 100644 --- a/service/batch/api_op_CreateComputeEnvironment.go +++ b/service/batch/api_op_CreateComputeEnvironment.go @@ -11,11 +11,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates an Batch compute environment. You can create MANAGED or UNMANAGED -// compute environments. MANAGED compute environments can use Amazon EC2 or Fargate -// resources. UNMANAGED compute environments can only use EC2 resources. In a -// managed compute environment, Batch manages the capacity and instance types of -// the compute resources within the environment. This is based on the compute +// Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED +// compute environments. MANAGED compute environments can use Amazon EC2 or AWS +// Fargate resources. UNMANAGED compute environments can only use EC2 resources. In +// a managed compute environment, AWS Batch manages the capacity and instance types +// of the compute resources within the environment. This is based on the compute // resource specification that you define or the launch template // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) // that you specify when you create the compute environment. Either, you can choose @@ -36,24 +36,24 @@ import ( // your container instances into that Amazon ECS cluster. For more information, see // Launching an Amazon ECS container instance // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html) -// in the Amazon Elastic Container Service Developer Guide. Batch doesn't upgrade -// the AMIs in a compute environment after the environment is created. For example, -// it doesn't update the AMIs when a newer version of the Amazon ECS optimized AMI -// is available. Therefore, you're responsible for managing the guest operating -// system (including its updates and security patches) and any additional +// in the Amazon Elastic Container Service Developer Guide. AWS Batch doesn't +// upgrade the AMIs in a compute environment after the environment is created. For +// example, it doesn't update the AMIs when a newer version of the Amazon ECS +// optimized AMI is available. Therefore, you're responsible for managing the guest +// operating system (including its updates and security patches) and any additional // application software or utilities that you install on the compute resources. To -// use a new AMI for your Batch jobs, complete these steps: +// use a new AMI for your AWS Batch jobs, complete these steps: // -// * Create a new compute -// environment with the new AMI. +// * Create a new +// compute environment with the new AMI. // -// * Add the compute environment to an existing job -// queue. +// * Add the compute environment to an +// existing job queue. // -// * Remove the earlier compute environment from your job queue. +// * Remove the earlier compute environment from your job +// queue. // -// * Delete -// the earlier compute environment. +// * Delete the earlier compute environment. func (c *Client) CreateComputeEnvironment(ctx context.Context, params *CreateComputeEnvironmentInput, optFns ...func(*Options)) (*CreateComputeEnvironmentOutput, error) { if params == nil { params = &CreateComputeEnvironmentInput{} @@ -81,7 +81,7 @@ type CreateComputeEnvironmentInput struct { // The type of the compute environment: MANAGED or UNMANAGED. For more information, // see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the Batch User Guide. + // in the AWS Batch User Guide. // // This member is required. Type types.CEType @@ -90,48 +90,47 @@ type CreateComputeEnvironmentInput struct { // parameter is required for managed compute environments. For more information, // see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the Batch User Guide. + // in the AWS Batch User Guide. ComputeResources *types.ComputeResource - // The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make - // calls to other Amazon Web Services services on your behalf. For more - // information, see Batch service IAM role + // The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to + // make calls to other AWS services on your behalf. For more information, see AWS + // Batch service IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) in - // the Batch User Guide. If your account already created the Batch service-linked - // role, that role is used by default for your compute environment unless you - // specify a different role here. If the Batch service-linked role doesn't exist in - // your account, and no role is specified here, the service attempts to create the - // Batch service-linked role in your account. If your specified role has a path - // other than /, then you must specify either the full role ARN (recommended) or - // prefix the role name with the path. For example, if a role with the name bar has - // a path of /foo/ then you would specify /foo/bar as the role name. For more - // information, see Friendly names and paths + // the AWS Batch User Guide. If your account has already created the AWS Batch + // service-linked role, that role is used by default for your compute environment + // unless you specify a role here. If the AWS Batch service-linked role does not + // exist in your account, and no role is specified here, the service will try to + // create the AWS Batch service-linked role in your account. If your specified role + // has a path other than /, then you must specify either the full role ARN + // (recommended) or prefix the role name with the path. For example, if a role with + // the name bar has a path of /foo/ then you would specify /foo/bar as the role + // name. For more information, see Friendly names and paths // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) - // in the IAM User Guide. Depending on how you created your Batch service role, its - // ARN might contain the service-role path prefix. When you only specify the name - // of the service role, Batch assumes that your ARN doesn't use the service-role - // path prefix. Because of this, we recommend that you specify the full ARN of your - // service role when you create compute environments. + // in the IAM User Guide. Depending on how you created your AWS Batch service role, + // its ARN might contain the service-role path prefix. When you only specify the + // name of the service role, AWS Batch assumes that your ARN doesn't use the + // service-role path prefix. Because of this, we recommend that you specify the + // full ARN of your service role when you create compute environments. ServiceRole *string // The state of the compute environment. If the state is ENABLED, then the compute // environment accepts jobs from a queue and can scale out automatically based on - // queues. If the state is ENABLED, then the Batch scheduler can attempt to place - // jobs from an associated job queue on the compute resources within the + // queues. If the state is ENABLED, then the AWS Batch scheduler can attempt to + // place jobs from an associated job queue on the compute resources within the // environment. If the compute environment is managed, then it can scale its // instances out or in automatically, based on the job queue demand. If the state - // is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the - // environment. Jobs in a STARTING or RUNNING state continue to progress normally. - // Managed compute environments in the DISABLED state don't scale out. However, - // they scale in to minvCpus value after instances become idle. + // is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within + // the environment. Jobs in a STARTING or RUNNING state continue to progress + // normally. Managed compute environments in the DISABLED state don't scale out. + // However, they scale in to minvCpus value after instances become idle. State types.CEState // The tags that you apply to the compute environment to help you categorize and // organize your resources. Each tag consists of a key and an optional value. For - // more information, see Tagging Amazon Web Services Resources - // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in Amazon Web - // Services General Reference. These tags can be updated or removed using the - // TagResource + // more information, see Tagging AWS Resources + // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in AWS General + // Reference. These tags can be updated or removed using the TagResource // (https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html) and // UntagResource // (https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html) diff --git a/service/batch/api_op_CreateJobQueue.go b/service/batch/api_op_CreateJobQueue.go index f3bfcc89b26..e43da0292c8 100644 --- a/service/batch/api_op_CreateJobQueue.go +++ b/service/batch/api_op_CreateJobQueue.go @@ -11,13 +11,13 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates an Batch job queue. When you create a job queue, you associate one or -// more compute environments to the queue and assign an order of preference for the -// compute environments. You also set a priority to the job queue that determines -// the order that the Batch scheduler places jobs onto its associated compute -// environments. For example, if a compute environment is associated with more than -// one job queue, the job queue with a higher priority is given preference for -// scheduling jobs to that compute environment. +// Creates an AWS Batch job queue. When you create a job queue, you associate one +// or more compute environments to the queue and assign an order of preference for +// the compute environments. You also set a priority to the job queue that +// determines the order that the AWS Batch scheduler places jobs onto its +// associated compute environments. For example, if a compute environment is +// associated with more than one job queue, the job queue with a higher priority is +// given preference for scheduling jobs to that compute environment. func (c *Client) CreateJobQueue(ctx context.Context, params *CreateJobQueueInput, optFns ...func(*Options)) (*CreateJobQueueOutput, error) { if params == nil { params = &CreateJobQueueInput{} @@ -43,7 +43,7 @@ type CreateJobQueueInput struct { // three compute environments with a job queue. All of the compute environments // must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and // Fargate compute environments can't be mixed. All compute environments that are - // associated with a job queue must share the same architecture. Batch doesn't + // associated with a job queue must share the same architecture. AWS Batch doesn't // support mixing compute environment architecture types in a single job queue. // // This member is required. @@ -61,7 +61,7 @@ type CreateJobQueueInput struct { // For example, a job queue with a priority value of 10 is given scheduling // preference over a job queue with a priority value of 1. All of the compute // environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or - // FARGATE_SPOT); EC2 and Fargate compute environments can't be mixed. + // FARGATE_SPOT); EC2 and Fargate compute environments cannot be mixed. // // This member is required. Priority int32 @@ -73,9 +73,9 @@ type CreateJobQueueInput struct { // The tags that you apply to the job queue to help you categorize and organize // your resources. Each tag consists of a key and an optional value. For more - // information, see Tagging your Batch resources - // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in Batch - // User Guide. + // information, see Tagging your AWS Batch resources + // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in AWS + // Batch User Guide. Tags map[string]string noSmithyDocumentSerde diff --git a/service/batch/api_op_DeleteComputeEnvironment.go b/service/batch/api_op_DeleteComputeEnvironment.go index acf282c9329..79c2d612b85 100644 --- a/service/batch/api_op_DeleteComputeEnvironment.go +++ b/service/batch/api_op_DeleteComputeEnvironment.go @@ -10,10 +10,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an Batch compute environment. Before you can delete a compute +// Deletes an AWS Batch compute environment. Before you can delete a compute // environment, you must set its state to DISABLED with the // UpdateComputeEnvironment API operation and disassociate it from any job queues -// with the UpdateJobQueue API operation. Compute environments that use Fargate +// with the UpdateJobQueue API operation. Compute environments that use AWS Fargate // resources must terminate all active jobs on that compute environment before // deleting the compute environment. If this isn't done, the compute environment // enters an invalid state. diff --git a/service/batch/api_op_DeregisterJobDefinition.go b/service/batch/api_op_DeregisterJobDefinition.go index ac0b00491e2..0054046af00 100644 --- a/service/batch/api_op_DeregisterJobDefinition.go +++ b/service/batch/api_op_DeregisterJobDefinition.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deregisters an Batch job definition. Job definitions are permanently deleted +// Deregisters an AWS Batch job definition. Job definitions are permanently deleted // after 180 days. func (c *Client) DeregisterJobDefinition(ctx context.Context, params *DeregisterJobDefinitionInput, optFns ...func(*Options)) (*DeregisterJobDefinitionOutput, error) { if params == nil { diff --git a/service/batch/api_op_DescribeJobDefinitions.go b/service/batch/api_op_DescribeJobDefinitions.go index 0c04e78680a..accb2cd46fd 100644 --- a/service/batch/api_op_DescribeJobDefinitions.go +++ b/service/batch/api_op_DescribeJobDefinitions.go @@ -35,10 +35,8 @@ type DescribeJobDefinitionsInput struct { // The name of the job definition to describe. JobDefinitionName *string - // A list of up to 100 job definitions. Each entry in the list can either be an ARN - // of the form - // arn:aws:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision} - // or a short version using the form ${JobDefinitionName}:${Revision}. + // A list of up to 100 job definition names or full Amazon Resource Name (ARN) + // entries. JobDefinitions []string // The maximum number of results returned by DescribeJobDefinitions in paginated diff --git a/service/batch/api_op_DescribeJobs.go b/service/batch/api_op_DescribeJobs.go index 019fad8d89b..e9b0d7c7f59 100644 --- a/service/batch/api_op_DescribeJobs.go +++ b/service/batch/api_op_DescribeJobs.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes a list of Batch jobs. +// Describes a list of AWS Batch jobs. func (c *Client) DescribeJobs(ctx context.Context, params *DescribeJobsInput, optFns ...func(*Options)) (*DescribeJobsOutput, error) { if params == nil { params = &DescribeJobsInput{} diff --git a/service/batch/api_op_ListJobs.go b/service/batch/api_op_ListJobs.go index e109095d1b3..39891855846 100644 --- a/service/batch/api_op_ListJobs.go +++ b/service/batch/api_op_ListJobs.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of Batch jobs. You must specify only one of the following +// Returns a list of AWS Batch jobs. You must specify only one of the following // items: // // * A job queue ID to return a list of jobs in that job queue @@ -48,42 +48,11 @@ type ListJobsInput struct { // lists all child jobs from within the specified array. ArrayJobId *string - // The filter to apply to the query. Only one filter can be used at a time. When - // the filter is used, jobStatus is ignored. The filter doesn't apply to child jobs - // in an array or multi-node parallel (MNP) jobs. The results are sorted by the - // createdAt field, with the most recent jobs being first. JOB_NAME The value of - // the filter is a case-insensitive match for the job name. If the value ends with - // an asterisk (*), the filter will match any job name that begins with the string - // before the '*'. This corresponds to the jobName value. For example, test1 - // matches both Test1 and test1, and test1* matches both test1 and Test10. When the - // JOB_NAME filter is used, the results are grouped by the job name and version. - // JOB_DEFINITION The value for the filter is the name or Amazon Resource Name - // (ARN) of the job definition. This corresponds to the jobDefinition value. The - // value is case sensitive. When the value for the filter is the job definition - // name, the results include all the jobs that used any revision of that job - // definition name. If the value ends with an asterisk (*), the filter will match - // any job definition name that begins with the string before the '*'. For example, - // jd1 matches only jd1, and jd1* matches both jd1 and jd1A. The version of the job - // definition that's used doesn't affect the sort order. When the JOB_DEFINITION - // filter is used and the ARN is used (which is in the form - // arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}), - // the results include jobs that used the specified revision of the job definition. - // Asterisk (*) is not supported when the ARN is used. BEFORE_CREATED_AT The value - // for the filter is the time that's before the job was created. This corresponds - // to the createdAt value. The value is a string representation of the number of - // seconds since 00:00:00 UTC (midnight) on January 1, 1970. AFTER_CREATED_AT The - // value for the filter is the time that's after the job was created. This - // corresponds to the createdAt value. The value is a string representation of the - // number of seconds since 00:00:00 UTC (midnight) on January 1, 1970. - Filters []types.KeyValuesPair - // The name or full Amazon Resource Name (ARN) of the job queue used to list jobs. JobQueue *string - // The job status used to filter jobs in the specified queue. If the filters - // parameter is specified, the jobStatus parameter is ignored and jobs with any - // status are returned. If you don't specify a status, only RUNNING jobs are - // returned. + // The job status used to filter jobs in the specified queue. If you don't specify + // a status, only RUNNING jobs are returned. JobStatus types.JobStatus // The maximum number of results returned by ListJobs in paginated output. When diff --git a/service/batch/api_op_ListTagsForResource.go b/service/batch/api_op_ListTagsForResource.go index 0efe4cbd250..def4f363736 100644 --- a/service/batch/api_op_ListTagsForResource.go +++ b/service/batch/api_op_ListTagsForResource.go @@ -10,9 +10,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the tags for an Batch resource. Batch resources that support tags are -// compute environments, jobs, job definitions, and job queues. ARNs for child jobs -// of array and multi-node parallel (MNP) jobs are not supported. +// Lists the tags for an AWS Batch resource. AWS Batch resources that support tags +// are compute environments, jobs, job definitions, and job queues. ARNs for child +// jobs of array and multi-node parallel (MNP) jobs are not supported. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} @@ -31,7 +31,7 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) that identifies the resource that tags are listed - // for. Batch resources that support tags are compute environments, jobs, job + // for. AWS Batch resources that support tags are compute environments, jobs, job // definitions, and job queues. ARNs for child jobs of array and multi-node // parallel (MNP) jobs are not supported. // diff --git a/service/batch/api_op_RegisterJobDefinition.go b/service/batch/api_op_RegisterJobDefinition.go index fda30f0602b..5af84c0e3d3 100644 --- a/service/batch/api_op_RegisterJobDefinition.go +++ b/service/batch/api_op_RegisterJobDefinition.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Registers an Batch job definition. +// Registers an AWS Batch job definition. func (c *Client) RegisterJobDefinition(ctx context.Context, params *RegisterJobDefinitionInput, optFns ...func(*Options)) (*RegisterJobDefinitionOutput, error) { if params == nil { params = &RegisterJobDefinitionInput{} @@ -39,7 +39,7 @@ type RegisterJobDefinitionInput struct { // The type of job definition. For more information about multi-node parallel jobs, // see Creating a multi-node parallel job definition // (https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html) in - // the Batch User Guide. If the job is run on Fargate resources, then multinode + // the AWS Batch User Guide. If the job is run on Fargate resources, then multinode // isn't supported. // // This member is required. @@ -56,10 +56,10 @@ type RegisterJobDefinitionInput struct { // specify node properties for a job, it becomes a multi-node parallel job. For // more information, see Multi-node Parallel Jobs // (https://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html) - // in the Batch User Guide. If the job definition's type parameter is container, - // then you must specify either containerProperties or nodeProperties. If the job - // runs on Fargate resources, then you must not specify nodeProperties; use - // containerProperties instead. + // in the AWS Batch User Guide. If the job definition's type parameter is + // container, then you must specify either containerProperties or nodeProperties. + // If the job runs on Fargate resources, then you must not specify nodeProperties; + // use containerProperties instead. NodeProperties *types.NodeProperties // Default parameter substitution placeholders to set in the job definition. @@ -88,19 +88,19 @@ type RegisterJobDefinitionInput struct { // The tags that you apply to the job definition to help you categorize and // organize your resources. Each tag consists of a key and an optional value. For - // more information, see Tagging Amazon Web Services Resources - // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in Batch - // User Guide. + // more information, see Tagging AWS Resources + // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in AWS + // Batch User Guide. Tags map[string]string // The timeout configuration for jobs that are submitted with this job definition, - // after which Batch terminates your jobs if they have not finished. If a job is - // terminated due to a timeout, it isn't retried. The minimum value for the timeout - // is 60 seconds. Any timeout configuration that's specified during a SubmitJob - // operation overrides the timeout configuration defined here. For more + // after which AWS Batch terminates your jobs if they have not finished. If a job + // is terminated due to a timeout, it isn't retried. The minimum value for the + // timeout is 60 seconds. Any timeout configuration that's specified during a + // SubmitJob operation overrides the timeout configuration defined here. For more // information, see Job Timeouts // (https://docs.aws.amazon.com/batch/latest/userguide/job_timeouts.html) in the - // Batch User Guide. + // AWS Batch User Guide. Timeout *types.JobTimeout noSmithyDocumentSerde diff --git a/service/batch/api_op_SubmitJob.go b/service/batch/api_op_SubmitJob.go index 6f619136101..29947457b32 100644 --- a/service/batch/api_op_SubmitJob.go +++ b/service/batch/api_op_SubmitJob.go @@ -11,12 +11,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Submits an Batch job from a job definition. Parameters that are specified during -// SubmitJob override parameters defined in the job definition. vCPU and memory -// requirements that are specified in the ResourceRequirements objects in the job -// definition are the exception. They can't be overridden this way using the memory -// and vcpus parameters. Rather, you must specify updates to job definition -// parameters in a ResourceRequirements object that's included in the +// Submits an AWS Batch job from a job definition. Parameters that are specified +// during SubmitJob override parameters defined in the job definition. vCPU and +// memory requirements that are specified in the ResourceRequirements objects in +// the job definition are the exception. They can't be overridden this way using +// the memory and vcpus parameters. Rather, you must specify updates to job +// definition parameters in a ResourceRequirements object that's included in the // containerOverrides parameter. Jobs that run on Fargate resources can't be // guaranteed to run for more than 14 days. This is because, after 14 days, Fargate // resources might become unavailable and job might be terminated. @@ -61,7 +61,7 @@ type SubmitJobInput struct { // The array properties for the submitted job, such as the size of the array. The // array size can be between 2 and 10,000. If you specify array properties for a // job, it becomes an array job. For more information, see Array Jobs - // (https://docs.aws.amazon.com/batch/latest/userguide/array_jobs.html) in the + // (https://docs.aws.amazon.com/batch/latest/userguide/array_jobs.html) in the AWS // Batch User Guide. ArrayProperties *types.ArrayProperties @@ -83,7 +83,7 @@ type SubmitJobInput struct { // A list of node overrides in JSON format that specify the node range to target // and the container overrides for that node range. This parameter isn't applicable - // to jobs that are running on Fargate resources; use containerOverrides instead. + // to jobs running on Fargate resources; use containerOverrides instead. NodeOverrides *types.NodeOverrides // Additional parameters passed to the job that replace parameter substitution @@ -108,13 +108,13 @@ type SubmitJobInput struct { // The tags that you apply to the job request to help you categorize and organize // your resources. Each tag consists of a key and an optional value. For more - // information, see Tagging Amazon Web Services Resources - // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in Amazon Web - // Services General Reference. + // information, see Tagging AWS Resources + // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in AWS General + // Reference. Tags map[string]string // The timeout configuration for this SubmitJob operation. You can specify a - // timeout duration after which Batch terminates your jobs if they haven't + // timeout duration after which AWS Batch terminates your jobs if they haven't // finished. If a job is terminated due to a timeout, it isn't retried. The minimum // value for the timeout is 60 seconds. This configuration overrides any timeout // configuration specified in the job definition. For array jobs, child jobs have diff --git a/service/batch/api_op_TagResource.go b/service/batch/api_op_TagResource.go index 7c75c598039..987fbb93c5e 100644 --- a/service/batch/api_op_TagResource.go +++ b/service/batch/api_op_TagResource.go @@ -12,8 +12,8 @@ import ( // Associates the specified tags to a resource with the specified resourceArn. If // existing tags on a resource aren't specified in the request parameters, they -// aren't changed. When a resource is deleted, the tags that are associated with -// that resource are deleted as well. Batch resources that support tags are compute +// aren't changed. When a resource is deleted, the tags associated with that +// resource are deleted as well. AWS Batch resources that support tags are compute // environments, jobs, job definitions, and job queues. ARNs for child jobs of // array and multi-node parallel (MNP) jobs are not supported. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { @@ -33,7 +33,7 @@ func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optF type TagResourceInput struct { - // The Amazon Resource Name (ARN) of the resource that tags are added to. Batch + // The Amazon Resource Name (ARN) of the resource that tags are added to. AWS Batch // resources that support tags are compute environments, jobs, job definitions, and // job queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are // not supported. @@ -43,9 +43,9 @@ type TagResourceInput struct { // The tags that you apply to the resource to help you categorize and organize your // resources. Each tag consists of a key and an optional value. For more - // information, see Tagging Amazon Web Services Resources - // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in Amazon Web - // Services General Reference. + // information, see Tagging AWS Resources + // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in AWS General + // Reference. // // This member is required. Tags map[string]string diff --git a/service/batch/api_op_TerminateJob.go b/service/batch/api_op_TerminateJob.go index 1796614fbf6..ad204c859e6 100644 --- a/service/batch/api_op_TerminateJob.go +++ b/service/batch/api_op_TerminateJob.go @@ -31,14 +31,14 @@ func (c *Client) TerminateJob(ctx context.Context, params *TerminateJobInput, op // Contains the parameters for TerminateJob. type TerminateJobInput struct { - // The Batch job ID of the job to terminate. + // The AWS Batch job ID of the job to terminate. // // This member is required. JobId *string // A message to attach to the job that explains the reason for canceling it. This // message is returned by future DescribeJobs operations on the job. This message - // is also recorded in the Batch activity logs. + // is also recorded in the AWS Batch activity logs. // // This member is required. Reason *string diff --git a/service/batch/api_op_UntagResource.go b/service/batch/api_op_UntagResource.go index f3211c46869..7537bf1ff07 100644 --- a/service/batch/api_op_UntagResource.go +++ b/service/batch/api_op_UntagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes specified tags from an Batch resource. +// Deletes specified tags from an AWS Batch resource. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} @@ -28,10 +28,10 @@ func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, type UntagResourceInput struct { - // The Amazon Resource Name (ARN) of the resource from which to delete tags. Batch - // resources that support tags are compute environments, jobs, job definitions, and - // job queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are - // not supported. + // The Amazon Resource Name (ARN) of the resource from which to delete tags. AWS + // Batch resources that support tags are compute environments, jobs, job + // definitions, and job queues. ARNs for child jobs of array and multi-node + // parallel (MNP) jobs are not supported. // // This member is required. ResourceArn *string diff --git a/service/batch/api_op_UpdateComputeEnvironment.go b/service/batch/api_op_UpdateComputeEnvironment.go index 020ad4a0fca..77525625007 100644 --- a/service/batch/api_op_UpdateComputeEnvironment.go +++ b/service/batch/api_op_UpdateComputeEnvironment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates an Batch compute environment. +// Updates an AWS Batch compute environment. func (c *Client) UpdateComputeEnvironment(ctx context.Context, params *UpdateComputeEnvironmentInput, optFns ...func(*Options)) (*UpdateComputeEnvironmentOutput, error) { if params == nil { params = &UpdateComputeEnvironmentInput{} @@ -40,35 +40,36 @@ type UpdateComputeEnvironmentInput struct { // for a managed compute environment. For more information, see Compute // Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the Batch User Guide. + // in the AWS Batch User Guide. ComputeResources *types.ComputeResourceUpdate - // The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make - // calls to other Amazon Web Services services on your behalf. For more - // information, see Batch service IAM role + // The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to + // make calls to other AWS services on your behalf. For more information, see AWS + // Batch service IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) in - // the Batch User Guide. If the compute environment has a service-linked role, it - // can't be changed to use a regular IAM role. Likewise, if the compute environment - // has a regular IAM role, it can't be changed to use a service-linked role. If - // your specified role has a path other than /, then you must either specify the - // full role ARN (this is recommended) or prefix the role name with the path. - // Depending on how you created your Batch service role, its ARN might contain the + // the AWS Batch User Guide. If the compute environment has a service-linked role, + // it cannot be changed to use a regular IAM role. If the compute environment has a + // regular IAM role, it cannot be changed to use a service-linked role. If your + // specified role has a path other than /, then you must either specify the full + // role ARN (this is recommended) or prefix the role name with the path. Depending + // on how you created your AWS Batch service role, its ARN might contain the // service-role path prefix. When you only specify the name of the service role, - // Batch assumes that your ARN doesn't use the service-role path prefix. Because of - // this, we recommend that you specify the full ARN of your service role when you - // create compute environments. + // AWS Batch assumes that your ARN doesn't use the service-role path prefix. + // Because of this, we recommend that you specify the full ARN of your service role + // when you create compute environments. ServiceRole *string // The state of the compute environment. Compute environments in the ENABLED state // can accept jobs from a queue and scale in or out automatically based on the - // workload demand of its associated queues. If the state is ENABLED, then the + // workload demand of its associated queues. If the state is ENABLED, then the AWS // Batch scheduler can attempt to place jobs from an associated job queue on the // compute resources within the environment. If the compute environment is managed, // then it can scale its instances out or in automatically, based on the job queue - // demand. If the state is DISABLED, then the Batch scheduler doesn't attempt to - // place jobs within the environment. Jobs in a STARTING or RUNNING state continue - // to progress normally. Managed compute environments in the DISABLED state don't - // scale out. However, they scale in to minvCpus value after instances become idle. + // demand. If the state is DISABLED, then the AWS Batch scheduler doesn't attempt + // to place jobs within the environment. Jobs in a STARTING or RUNNING state + // continue to progress normally. Managed compute environments in the DISABLED + // state don't scale out. However, they scale in to minvCpus value after instances + // become idle. State types.CEState noSmithyDocumentSerde diff --git a/service/batch/api_op_UpdateJobQueue.go b/service/batch/api_op_UpdateJobQueue.go index 46e510ecb7a..d6036a4f4f9 100644 --- a/service/batch/api_op_UpdateJobQueue.go +++ b/service/batch/api_op_UpdateJobQueue.go @@ -42,7 +42,7 @@ type UpdateJobQueueInput struct { // queue. All of the compute environments must be either EC2 (EC2 or SPOT) or // Fargate (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be // mixed. All compute environments that are associated with a job queue must share - // the same architecture. Batch doesn't support mixing compute environment + // the same architecture. AWS Batch doesn't support mixing compute environment // architecture types in a single job queue. ComputeEnvironmentOrder []types.ComputeEnvironmentOrder diff --git a/service/batch/deserializers.go b/service/batch/deserializers.go index b02bd776986..e5294894e97 100644 --- a/service/batch/deserializers.go +++ b/service/batch/deserializers.go @@ -5090,15 +5090,6 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte sv.JobArn = ptr.String(jtv) } - case "jobDefinition": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.JobDefinition = ptr.String(jtv) - } - case "jobId": if value != nil { jtv, ok := value.(string) diff --git a/service/batch/doc.go b/service/batch/doc.go index 354c4620d35..7ddfe0c2865 100644 --- a/service/batch/doc.go +++ b/service/batch/doc.go @@ -3,18 +3,18 @@ // Package batch provides the API client, operations, and parameter types for AWS // Batch. // -// Batch Using Batch, you can run batch computing workloads on the Cloud. Batch +// Using AWS Batch, you can run batch computing workloads on the AWS Cloud. Batch // computing is a common means for developers, scientists, and engineers to access -// large amounts of compute resources. Batch uses the advantages of this computing -// workload to remove the undifferentiated heavy lifting of configuring and -// managing required infrastructure. At the same time, it also adopts a familiar -// batch computing software approach. Given these advantages, Batch can help you to -// efficiently provision resources in response to jobs submitted, thus effectively -// helping you to eliminate capacity constraints, reduce compute costs, and deliver -// your results more quickly. As a fully managed service, Batch can run batch -// computing workloads of any scale. Batch automatically provisions compute -// resources and optimizes workload distribution based on the quantity and scale of -// your specific workloads. With Batch, there's no need to install or manage batch -// computing software. This means that you can focus your time and energy on -// analyzing results and solving your specific problems. +// large amounts of compute resources. AWS Batch uses the advantages of this +// computing workload to remove the undifferentiated heavy lifting of configuring +// and managing required infrastructure. At the same time, it also adopts a +// familiar batch computing software approach. Given these advantages, AWS Batch +// can help you to efficiently provision resources in response to jobs submitted, +// thus effectively helping you to eliminate capacity constraints, reduce compute +// costs, and deliver your results more quickly. As a fully managed service, AWS +// Batch can run batch computing workloads of any scale. AWS Batch automatically +// provisions compute resources and optimizes workload distribution based on the +// quantity and scale of your specific workloads. With AWS Batch, there's no need +// to install or manage batch computing software. This means that you can focus +// your time and energy on analyzing results and solving your specific problems. package batch diff --git a/service/batch/go.mod b/service/batch/go.mod index fe00b3a8db3..f1a363b3577 100644 --- a/service/batch/go.mod +++ b/service/batch/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/batch/go.sum b/service/batch/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/batch/go.sum +++ b/service/batch/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/batch/serializers.go b/service/batch/serializers.go index 9dd11acac96..614ed5b72e0 100644 --- a/service/batch/serializers.go +++ b/service/batch/serializers.go @@ -865,13 +865,6 @@ func awsRestjson1_serializeOpDocumentListJobsInput(v *ListJobsInput, value smith ok.String(*v.ArrayJobId) } - if v.Filters != nil { - ok := object.Key("filters") - if err := awsRestjson1_serializeDocumentListJobsFilterList(v.Filters, ok); err != nil { - return err - } - } - if v.JobQueue != nil { ok := object.Key("jobQueue") ok.String(*v.JobQueue) @@ -2233,25 +2226,6 @@ func awsRestjson1_serializeDocumentKeyValuePair(v *types.KeyValuePair, value smi return nil } -func awsRestjson1_serializeDocumentKeyValuesPair(v *types.KeyValuesPair, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Name != nil { - ok := object.Key("name") - ok.String(*v.Name) - } - - if v.Values != nil { - ok := object.Key("values") - if err := awsRestjson1_serializeDocumentStringList(v.Values, ok); err != nil { - return err - } - } - - return nil -} - func awsRestjson1_serializeDocumentLaunchTemplateSpecification(v *types.LaunchTemplateSpecification, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2315,19 +2289,6 @@ func awsRestjson1_serializeDocumentLinuxParameters(v *types.LinuxParameters, val return nil } -func awsRestjson1_serializeDocumentListJobsFilterList(v []types.KeyValuesPair, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentKeyValuesPair(&v[i], av); err != nil { - return err - } - } - return nil -} - func awsRestjson1_serializeDocumentLogConfiguration(v *types.LogConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/batch/types/types.go b/service/batch/types/types.go index b84e2ea3a56..37683006df2 100644 --- a/service/batch/types/types.go +++ b/service/batch/types/types.go @@ -6,7 +6,7 @@ import ( smithydocument "github.com/aws/smithy-go/document" ) -// An object representing an Batch array job. +// An object representing an AWS Batch array job. type ArrayProperties struct { // The size of the array job. @@ -56,8 +56,8 @@ type AttemptContainerDetail struct { ExitCode int32 // The name of the CloudWatch Logs log stream associated with the container. The - // log group for Batch jobs is /aws/batch/job. Each container attempt receives a - // log stream name when they reach the RUNNING status. + // log group for AWS Batch jobs is /aws/batch/job. Each container attempt receives + // a log stream name when they reach the RUNNING status. LogStreamName *string // The network interfaces associated with the job attempt. @@ -97,7 +97,7 @@ type AttemptDetail struct { noSmithyDocumentSerde } -// An object representing an Batch compute environment. +// An object representing an AWS Batch compute environment. type ComputeEnvironmentDetail struct { // The Amazon Resource Name (ARN) of the compute environment. @@ -120,23 +120,23 @@ type ComputeEnvironmentDetail struct { // The compute resources defined for the compute environment. For more information, // see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the Batch User Guide. + // in the AWS Batch User Guide. ComputeResources *ComputeResource - // The service role associated with the compute environment that allows Batch to - // make calls to Amazon Web Services API operations on your behalf. For more - // information, see Batch service IAM role + // The service role associated with the compute environment that allows AWS Batch + // to make calls to AWS API operations on your behalf. For more information, see + // AWS Batch service IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) in - // the Batch User Guide. + // the AWS Batch User Guide. ServiceRole *string // The state of the compute environment. The valid values are ENABLED or DISABLED. - // If the state is ENABLED, then the Batch scheduler can attempt to place jobs from - // an associated job queue on the compute resources within the environment. If the - // compute environment is managed, then it can scale its instances out or in + // If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs + // from an associated job queue on the compute resources within the environment. If + // the compute environment is managed, then it can scale its instances out or in // automatically, based on the job queue demand. If the state is DISABLED, then the - // Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a - // STARTING or RUNNING state continue to progress normally. Managed compute + // AWS Batch scheduler doesn't attempt to place jobs within the environment. Jobs + // in a STARTING or RUNNING state continue to progress normally. Managed compute // environments in the DISABLED state don't scale out. However, they scale in to // minvCpus value after instances become idle. State CEState @@ -154,7 +154,7 @@ type ComputeEnvironmentDetail struct { // The type of the compute environment: MANAGED or UNMANAGED. For more information, // see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the Batch User Guide. + // in the AWS Batch User Guide. Type CEType noSmithyDocumentSerde @@ -168,7 +168,7 @@ type ComputeEnvironmentDetail struct { // queue. All of the compute environments must be either EC2 (EC2 or SPOT) or // Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute environments can't be // mixed. All compute environments that are associated with a job queue must share -// the same architecture. Batch doesn't support mixing compute environment +// the same architecture. AWS Batch doesn't support mixing compute environment // architecture types in a single job queue. type ComputeEnvironmentOrder struct { @@ -188,25 +188,25 @@ type ComputeEnvironmentOrder struct { noSmithyDocumentSerde } -// An object representing an Batch compute resource. For more information, see +// An object representing an AWS Batch compute resource. For more information, see // Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) -// in the Batch User Guide. +// in the AWS Batch User Guide. type ComputeResource struct { // The maximum number of Amazon EC2 vCPUs that a compute environment can reach. // With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation - // strategies, Batch might need to exceed maxvCpus to meet your capacity - // requirements. In this event, Batch never exceeds maxvCpus by more than a single - // instance. For example, no more than a single instance from among those specified - // in your compute environment is allocated. + // strategies, AWS Batch might need to exceed maxvCpus to meet your capacity + // requirements. In this event, AWS Batch never exceeds maxvCpus by more than a + // single instance. For example, no more than a single instance from among those + // specified in your compute environment is allocated. // // This member is required. MaxvCpus int32 - // The VPC subnets where the compute resources are launched. These subnets must be - // within the same VPC. Fargate compute resources can contain up to 16 subnets. For - // more information, see VPCs and Subnets + // The VPC subnets into which the compute resources are launched. These subnets + // must be within the same VPC. Fargate compute resources can contain up to 16 + // subnets. For more information, see VPCs and Subnets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the // Amazon VPC User Guide. // @@ -216,11 +216,11 @@ type ComputeResource struct { // The type of compute environment: EC2, SPOT, FARGATE, or FARGATE_SPOT. For more // information, see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the Batch User Guide. If you choose SPOT, you must also specify an Amazon EC2 - // Spot Fleet role with the spotIamFleetRole parameter. For more information, see - // Amazon EC2 Spot Fleet role + // in the AWS Batch User Guide. If you choose SPOT, you must also specify an Amazon + // EC2 Spot Fleet role with the spotIamFleetRole parameter. For more information, + // see Amazon EC2 Spot Fleet role // (https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html) in - // the Batch User Guide. + // the AWS Batch User Guide. // // This member is required. Type CRType @@ -231,28 +231,29 @@ type ComputeResource struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html). // For more information, see Allocation Strategies // (https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html) - // in the Batch User Guide. This parameter isn't applicable to jobs that are - // running on Fargate resources, and shouldn't be specified. BEST_FIT (default) - // Batch selects an instance type that best fits the needs of the jobs with a - // preference for the lowest-cost instance type. If additional instances of the - // selected instance type aren't available, Batch waits for the additional - // instances to be available. If there aren't enough instances available, or if the - // user is reaching Amazon EC2 service limits + // in the AWS Batch User Guide. This parameter isn't applicable to jobs running on + // Fargate resources, and shouldn't be specified. BEST_FIT (default) AWS Batch + // selects an instance type that best fits the needs of the jobs with a preference + // for the lowest-cost instance type. If additional instances of the selected + // instance type aren't available, AWS Batch waits for the additional instances to + // be available. If there aren't enough instances available, or if the user is + // hitting Amazon EC2 service limits // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html) // then additional jobs aren't run until the currently running jobs have completed. // This allocation strategy keeps costs lower but can limit scaling. If you are // using Spot Fleets with BEST_FIT then the Spot Fleet IAM Role must be specified. - // BEST_FIT_PROGRESSIVE Batch will select additional instance types that are large - // enough to meet the requirements of the jobs in the queue, with a preference for - // instance types with a lower cost per unit vCPU. If additional instances of the - // previously selected instance types aren't available, Batch will select new - // instance types. SPOT_CAPACITY_OPTIMIZED Batch will select one or more instance - // types that are large enough to meet the requirements of the jobs in the queue, - // with a preference for instance types that are less likely to be interrupted. - // This allocation strategy is only available for Spot Instance compute resources. - // With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies, Batch - // might need to go above maxvCpus to meet your capacity requirements. In this - // event, Batch never exceeds maxvCpus by more than a single instance. + // BEST_FIT_PROGRESSIVE AWS Batch will select additional instance types that are + // large enough to meet the requirements of the jobs in the queue, with a + // preference for instance types with a lower cost per unit vCPU. If additional + // instances of the previously selected instance types aren't available, AWS Batch + // will select new instance types. SPOT_CAPACITY_OPTIMIZED AWS Batch will select + // one or more instance types that are large enough to meet the requirements of the + // jobs in the queue, with a preference for instance types that are less likely to + // be interrupted. This allocation strategy is only available for Spot Instance + // compute resources. With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED + // strategies, AWS Batch might need to go above maxvCpus to meet your capacity + // requirements. In this event, AWS Batch never exceeds maxvCpus by more than a + // single instance. AllocationStrategy CRAllocationStrategy // The maximum percentage that a Spot Instance price can be when compared with the @@ -261,37 +262,37 @@ type ComputeResource struct { // than 20% of the current On-Demand price for that Amazon EC2 instance. You always // pay the lowest (market) price and never more than your maximum percentage. If // you leave this field empty, the default value is 100% of the On-Demand price. - // This parameter isn't applicable to jobs that are running on Fargate resources, - // and shouldn't be specified. + // This parameter isn't applicable to jobs running on Fargate resources, and + // shouldn't be specified. BidPercentage int32 - // The desired number of Amazon EC2 vCPUS in the compute environment. Batch + // The desired number of Amazon EC2 vCPUS in the compute environment. AWS Batch // modifies this value between the minimum and maximum values, based on job queue - // demand. This parameter isn't applicable to jobs that are running on Fargate - // resources, and shouldn't be specified. + // demand. This parameter isn't applicable to jobs running on Fargate resources, + // and shouldn't be specified. DesiredvCpus int32 // Provides information used to select Amazon Machine Images (AMIs) for EC2 // instances in the compute environment. If Ec2Configuration isn't specified, the - // default is ECS_AL1. This parameter isn't applicable to jobs that are running on - // Fargate resources, and shouldn't be specified. + // default is ECS_AL1. This parameter isn't applicable to jobs running on Fargate + // resources, and shouldn't be specified. Ec2Configuration []Ec2Configuration // The Amazon EC2 key pair that's used for instances launched in the compute // environment. You can use this key pair to log in to your instances with SSH. - // This parameter isn't applicable to jobs that are running on Fargate resources, - // and shouldn't be specified. + // This parameter isn't applicable to jobs running on Fargate resources, and + // shouldn't be specified. Ec2KeyPair *string // The Amazon Machine Image (AMI) ID used for instances launched in the compute // environment. This parameter is overridden by the imageIdOverride member of the - // Ec2Configuration structure. This parameter isn't applicable to jobs that are - // running on Fargate resources, and shouldn't be specified. The AMI that you - // choose for a compute environment must match the architecture of the instance - // types that you intend to use for that compute environment. For example, if your - // compute environment uses A1 instance types, the compute resource AMI that you - // choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of - // the Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see Amazon + // Ec2Configuration structure. This parameter isn't applicable to jobs running on + // Fargate resources, and shouldn't be specified. The AMI that you choose for a + // compute environment must match the architecture of the instance types that you + // intend to use for that compute environment. For example, if your compute + // environment uses A1 instance types, the compute resource AMI that you choose + // must support ARM instances. Amazon ECS vends both x86 and ARM versions of the + // Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see Amazon // ECS-optimized Amazon Linux 2 AMI // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html) // in the Amazon Elastic Container Service Developer Guide. @@ -306,8 +307,8 @@ type ComputeResource struct { // arn:aws:iam:::instance-profile/ecsInstanceRole . For more information, see // Amazon ECS Instance Role // (https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html) in - // the Batch User Guide. This parameter isn't applicable to jobs that are running - // on Fargate resources, and shouldn't be specified. + // the AWS Batch User Guide. This parameter isn't applicable to jobs running on + // Fargate resources, and shouldn't be specified. InstanceRole *string // The instances types that can be launched. You can specify instance families to @@ -315,13 +316,13 @@ type ComputeResource struct { // can specify specific sizes within a family (such as c5.8xlarge). You can also // choose optimal to select instance types (from the C4, M4, and R4 instance // families) that match the demand of your job queues. This parameter isn't - // applicable to jobs that are running on Fargate resources, and shouldn't be - // specified. When you create a compute environment, the instance types that you - // select for the compute environment must share the same architecture. For - // example, you can't mix x86 and ARM instances in the same compute environment. - // Currently, optimal uses instance types from the C4, M4, and R4 instance - // families. In Regions that don't have instance types from those instance - // families, instance types from the C5, M5. and R5 instance families are used. + // applicable to jobs running on Fargate resources, and shouldn't be specified. + // When you create a compute environment, the instance types that you select for + // the compute environment must share the same architecture. For example, you can't + // mix x86 and ARM instances in the same compute environment. Currently, optimal + // uses instance types from the C4, M4, and R4 instance families. In Regions that + // don't have instance types from those instance families, instance types from the + // C5, M5. and R5 instance families are used. InstanceTypes []string // The launch template to use for your compute resources. Any other compute @@ -330,13 +331,13 @@ type ComputeResource struct { // launch template ID or launch template name in the request, but not both. For // more information, see Launch Template Support // (https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html) in - // the Batch User Guide. This parameter isn't applicable to jobs that are running - // on Fargate resources, and shouldn't be specified. + // the AWS Batch User Guide. This parameter isn't applicable to jobs running on + // Fargate resources, and shouldn't be specified. LaunchTemplate *LaunchTemplateSpecification // The minimum number of Amazon EC2 vCPUs that an environment should maintain (even // if the compute environment is DISABLED). This parameter isn't applicable to jobs - // that are running on Fargate resources, and shouldn't be specified. + // running on Fargate resources, and shouldn't be specified. MinvCpus int32 // The Amazon EC2 placement group to associate with your compute resources. If you @@ -347,16 +348,16 @@ type ComputeResource struct { // For more information, see Placement Groups // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in // the Amazon EC2 User Guide for Linux Instances. This parameter isn't applicable - // to jobs that are running on Fargate resources, and shouldn't be specified. + // to jobs running on Fargate resources, and shouldn't be specified. PlacementGroup *string // The Amazon EC2 security groups associated with instances launched in the compute // environment. One or more security groups must be specified, either in // securityGroupIds or using a launch template referenced in launchTemplate. This - // parameter is required for jobs that are running on Fargate resources and must - // contain at least one security group. Fargate doesn't support launch templates. - // If security groups are specified using both securityGroupIds and launchTemplate, - // the values in securityGroupIds are used. + // parameter is required for jobs running on Fargate resources and must contain at + // least one security group. Fargate doesn't support launch templates. If security + // groups are specified using both securityGroupIds and launchTemplate, the values + // in securityGroupIds is used. SecurityGroupIds []string // The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to @@ -364,26 +365,26 @@ type ComputeResource struct { // to BEST_FIT or if the allocation strategy isn't specified. For more information, // see Amazon EC2 Spot Fleet Role // (https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html) in - // the Batch User Guide. This parameter isn't applicable to jobs that are running - // on Fargate resources, and shouldn't be specified. To tag your Spot Instances on + // the AWS Batch User Guide. This parameter isn't applicable to jobs running on + // Fargate resources, and shouldn't be specified. To tag your Spot Instances on // creation, the Spot Fleet IAM role specified here must use the newer // AmazonEC2SpotFleetTaggingRole managed policy. The previously recommended // AmazonEC2SpotFleetRole managed policy doesn't have the required permissions to // tag Spot Instances. For more information, see Spot Instances not tagged on // creation // (https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#spot-instance-no-tag) - // in the Batch User Guide. + // in the AWS Batch User Guide. SpotIamFleetRole *string // Key-value pair tags to be applied to EC2 resources that are launched in the - // compute environment. For Batch, these take the form of "String1": "String2", + // compute environment. For AWS Batch, these take the form of "String1": "String2", // where String1 is the tag key and String2 is the tag value−for example, { "Name": - // "Batch Instance - C4OnDemand" }. This is helpful for recognizing your Batch - // instances in the Amazon EC2 console. These tags can't be updated or removed - // after the compute environment is created.Aany changes to these tags require that - // you create a new compute environment and remove the old compute environment. - // These tags aren't seen when using the Batch ListTagsForResource API operation. - // This parameter isn't applicable to jobs that are running on Fargate resources, + // "AWS Batch Instance - C4OnDemand" }. This is helpful for recognizing your AWS + // Batch instances in the Amazon EC2 console. These tags can't be updated or + // removed after the compute environment has been created; any changes require + // creating a new compute environment and removing the old compute environment. + // These tags aren't seen when using the AWS Batch ListTagsForResource API + // operation. This parameter isn't applicable to jobs running on Fargate resources, // and shouldn't be specified. Tags map[string]string @@ -393,24 +394,25 @@ type ComputeResource struct { // An object representing the attributes of a compute environment that can be // updated. For more information, see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) -// in the Batch User Guide. +// in the AWS Batch User Guide. type ComputeResourceUpdate struct { // The desired number of Amazon EC2 vCPUS in the compute environment. This - // parameter isn't applicable to jobs that are running on Fargate resources, and - // shouldn't be specified. + // parameter isn't applicable to jobs running on Fargate resources, and shouldn't + // be specified. DesiredvCpus int32 // The maximum number of Amazon EC2 vCPUs that an environment can reach. With both - // BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies, Batch - // might need to exceed maxvCpus to meet your capacity requirements. In this event, - // Batch never exceeds maxvCpus by more than a single instance. That is, no more - // than a single instance from among those specified in your compute environment. + // BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies, AWS + // Batch might need to exceed maxvCpus to meet your capacity requirements. In this + // event, AWS Batch never exceeds maxvCpus by more than a single instance. That is, + // no more than a single instance from among those specified in your compute + // environment. MaxvCpus int32 // The minimum number of Amazon EC2 vCPUs that an environment should maintain. This - // parameter isn't applicable to jobs that are running on Fargate resources, and - // shouldn't be specified. + // parameter isn't applicable to jobs running on Fargate resources, and shouldn't + // be specified. MinvCpus int32 // The Amazon EC2 security groups associated with instances launched in the compute @@ -420,7 +422,7 @@ type ComputeResourceUpdate struct { // specified and no change is made. SecurityGroupIds []string - // The VPC subnets where the compute resources are launched. Fargate compute + // The VPC subnets that the compute resources are launched into. Fargate compute // resources can contain up to 16 subnets. Providing an empty list will be handled // as if this parameter wasn't specified and no change is made. This can't be // specified for EC2 compute resources. For more information, see VPCs and Subnets @@ -443,28 +445,27 @@ type ContainerDetail struct { // The environment variables to pass to a container. Environment variables must not // start with AWS_BATCH; this naming convention is reserved for variables that are - // set by the Batch service. + // set by the AWS Batch service. Environment []KeyValuePair - // The Amazon Resource Name (ARN) of the execution role that Batch can assume. For - // more information, see Batch execution IAM role + // The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. + // For more information, see AWS Batch execution IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) in - // the Batch User Guide. + // the AWS Batch User Guide. ExecutionRoleArn *string // The exit code to return upon completion. ExitCode int32 - // The platform configuration for jobs that are running on Fargate resources. Jobs - // that are running on EC2 resources must not specify this parameter. + // The platform configuration for jobs running on Fargate resources. Jobs running + // on EC2 resources must not specify this parameter. FargatePlatformConfiguration *FargatePlatformConfiguration // The image used to start the container. Image *string // The instance type of the underlying host infrastructure of a multi-node parallel - // job. This parameter isn't applicable to jobs that are running on Fargate - // resources. + // job. This parameter isn't applicable to jobs running on Fargate resources. InstanceType *string // The Amazon Resource Name (ARN) associated with the job upon execution. @@ -488,7 +489,7 @@ type ContainerDetail struct { // server for remote logging options. For more information on the options for // different supported log drivers, see Configure logging drivers // (https://docs.docker.com/engine/admin/logging/overview/) in the Docker - // documentation. Batch currently supports a subset of the logging drivers + // documentation. AWS Batch currently supports a subset of the logging drivers // available to the Docker daemon (shown in the LogConfiguration data type). // Additional log drivers might be available in future releases of the Amazon ECS // container agent. This parameter requires version 1.18 of the Docker Remote API @@ -505,8 +506,8 @@ type ContainerDetail struct { LogConfiguration *LogConfiguration // The name of the CloudWatch Logs log stream associated with the container. The - // log group for Batch jobs is /aws/batch/job. Each container attempt receives a - // log stream name when they reach the RUNNING status. + // log group for AWS Batch jobs is /aws/batch/job. Each container attempt receives + // a log stream name when they reach the RUNNING status. LogStreamName *string // For jobs run on EC2 resources that didn't specify memory requirements using @@ -517,8 +518,8 @@ type ContainerDetail struct { // The mount points for data volumes in your container. MountPoints []MountPoint - // The network configuration for jobs that are running on Fargate resources. Jobs - // that are running on EC2 resources must not specify this parameter. + // The network configuration for jobs running on Fargate resources. Jobs running on + // EC2 resources must not specify this parameter. NetworkConfiguration *NetworkConfiguration // The network interfaces associated with the job. @@ -526,8 +527,8 @@ type ContainerDetail struct { // When this parameter is true, the container is given elevated permissions on the // host container instance (similar to the root user). The default value is false. - // This parameter isn't applicable to jobs that are running on Fargate resources - // and shouldn't be provided, or specified as false. + // This parameter isn't applicable to jobs running on Fargate resources and + // shouldn't be provided, or specified as false. Privileged bool // When this parameter is true, the container is given read-only access to its root @@ -549,7 +550,7 @@ type ContainerDetail struct { // The secrets to pass to the container. For more information, see Specifying // sensitive data // (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) - // in the Batch User Guide. + // in the AWS Batch User Guide. Secrets []Secret // The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the @@ -562,7 +563,7 @@ type ContainerDetail struct { // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --ulimit // option to docker run (https://docs.docker.com/engine/reference/run/). This - // parameter isn't applicable to jobs that are running on Fargate resources. + // parameter isn't applicable to jobs running on Fargate resources. Ulimits []Ulimit // The user name to use inside the container. This parameter maps to User in the @@ -605,23 +606,20 @@ type ContainerOverrides struct { // variables, which are added to the container at launch, or you can override the // existing environment variables from the Docker image or the job definition. // Environment variables must not start with AWS_BATCH; this naming convention is - // reserved for variables that are set by the Batch service. + // reserved for variables that are set by the AWS Batch service. Environment []KeyValuePair // The instance type to use for a multi-node parallel job. This parameter isn't - // applicable to single-node container jobs or jobs that run on Fargate resources, - // and shouldn't be provided. + // applicable to single-node container jobs or for jobs running on Fargate + // resources and shouldn't be provided. InstanceType *string // This parameter indicates the amount of memory (in MiB) that's reserved for the // job. It overrides the memory parameter set in the job definition, but doesn't // override any memory requirement specified in the ResourceRequirement structure - // in the job definition. To override memory requirements that are specified in the - // ResourceRequirement structure in the job definition, ResourceRequirement must be - // specified in the SubmitJob request, with type set to MEMORY and value set to the - // new value. This parameter is supported for jobs that run on EC2 resources, but - // isn't supported for jobs that run on Fargate resources. For these resources, use - // resourceRequirement instead. + // in the job definition. This parameter is supported for jobs that run on EC2 + // resources, but isn't supported for jobs that run on Fargate resources. For these + // resources, use resourceRequirement instead. // // Deprecated: This field is deprecated, use resourceRequirements instead. Memory int32 @@ -634,19 +632,19 @@ type ContainerOverrides struct { // This parameter indicates the number of vCPUs reserved for the container.It // overrides the vcpus parameter that's set in the job definition, but doesn't // override any vCPU requirement specified in the resourceRequirement structure in - // the job definition. To override vCPU requirements that are specified in the - // ResourceRequirement structure in the job definition, ResourceRequirement must be - // specified in the SubmitJob request, with type set to VCPU and value set to the - // new value. This parameter maps to CpuShares in the Create a container + // the job definition. This parameter is supported for jobs that run on EC2 + // resources, but isn't supported for jobs that run on Fargate resources. For + // Fargate resources, you can only use resourceRequirement. For EC2 resources, you + // can use either this parameter or resourceRequirement but not both. This + // parameter maps to CpuShares in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --cpu-shares option to docker run // (https://docs.docker.com/engine/reference/run/). Each vCPU is equivalent to - // 1,024 CPU shares. You must specify at least one vCPU. This parameter is - // supported for jobs that run on EC2 resources, but isn't supported for jobs that - // run on Fargate resources. For Fargate resources, you can only use - // resourceRequirement. For EC2 resources, you can use either this parameter or - // resourceRequirement but not both. + // 1,024 CPU shares. You must specify at least one vCPU. This parameter isn't + // applicable to jobs that run on Fargate resources and shouldn't be provided. For + // jobs that run on Fargate resources, you must specify the vCPU requirement for + // the job using resourceRequirements. // // Deprecated: This field is deprecated, use resourceRequirements instead. Vcpus int32 @@ -674,18 +672,19 @@ type ContainerProperties struct { // option to docker run (https://docs.docker.com/engine/reference/run/). We don't // recommend using plaintext environment variables for sensitive information, such // as credential data. Environment variables must not start with AWS_BATCH; this - // naming convention is reserved for variables that are set by the Batch service. + // naming convention is reserved for variables that are set by the AWS Batch + // service. Environment []KeyValuePair - // The Amazon Resource Name (ARN) of the execution role that Batch can assume. For - // jobs that run on Fargate resources, you must provide an execution role. For more - // information, see Batch execution IAM role + // The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. + // For jobs that run on Fargate resources, you must provide an execution role. For + // more information, see AWS Batch execution IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) in - // the Batch User Guide. + // the AWS Batch User Guide. ExecutionRoleArn *string - // The platform configuration for jobs that are running on Fargate resources. Jobs - // that are running on EC2 resources must not specify this parameter. + // The platform configuration for jobs running on Fargate resources. Jobs running + // on EC2 resources must not specify this parameter. FargatePlatformConfiguration *FargatePlatformConfiguration // The image used to start a container. This string is passed directly to the @@ -718,12 +717,12 @@ type ContainerProperties struct { // The instance type to use for a multi-node parallel job. All node groups in a // multi-node parallel job must use the same instance type. This parameter isn't - // applicable to single-node container jobs or jobs that run on Fargate resources, - // and shouldn't be provided. + // applicable to single-node container jobs or for jobs that run on Fargate + // resources and shouldn't be provided. InstanceType *string // The Amazon Resource Name (ARN) of the IAM role that the container can assume for - // Amazon Web Services permissions. For more information, see IAM Roles for Tasks + // AWS permissions. For more information, see IAM Roles for Tasks // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) // in the Amazon Elastic Container Service Developer Guide. JobRoleArn *string @@ -746,7 +745,7 @@ type ContainerProperties struct { // For more information on the options for different supported log drivers, see // Configure logging drivers // (https://docs.docker.com/engine/admin/logging/overview/) in the Docker - // documentation. Batch currently supports a subset of the logging drivers + // documentation. AWS Batch currently supports a subset of the logging drivers // available to the Docker daemon (shown in the LogConfiguration data type). This // parameter requires version 1.18 of the Docker Remote API or greater on your // container instance. To check the Docker Remote API version on your container @@ -761,7 +760,7 @@ type ContainerProperties struct { LogConfiguration *LogConfiguration // This parameter indicates the memory hard limit (in MiB) for a container. If your - // container attempts to exceed the specified number, it's terminated. You must + // container attempts to exceed the specified number, it is terminated. You must // specify at least 4 MiB of memory for a job using this parameter. The memory hard // limit can be specified in several places. It must be specified for each node at // least once. This parameter maps to Memory in the Create a container @@ -770,11 +769,11 @@ type ContainerProperties struct { // option to docker run (https://docs.docker.com/engine/reference/run/). This // parameter is supported on EC2 resources but isn't supported on Fargate // resources. For Fargate resources, you should specify the memory requirement - // using resourceRequirement. You can also do this for EC2 resources. If you're - // trying to maximize your resource utilization by providing your jobs as much - // memory as possible for a particular instance type, see Memory Management + // using resourceRequirement. You can do this for EC2 resources. If you're trying + // to maximize your resource utilization by providing your jobs as much memory as + // possible for a particular instance type, see Memory Management // (https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html) in - // the Batch User Guide. + // the AWS Batch User Guide. // // Deprecated: This field is deprecated, use resourceRequirements instead. Memory int32 @@ -786,8 +785,8 @@ type ContainerProperties struct { // option to docker run (https://docs.docker.com/engine/reference/run/). MountPoints []MountPoint - // The network configuration for jobs that are running on Fargate resources. Jobs - // that are running on EC2 resources must not specify this parameter. + // The network configuration for jobs running on Fargate resources. Jobs running on + // EC2 resources must not specify this parameter. NetworkConfiguration *NetworkConfiguration // When this parameter is true, the container is given elevated permissions on the @@ -797,8 +796,8 @@ type ContainerProperties struct { // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --privileged option to docker run // (https://docs.docker.com/engine/reference/run/). The default value is false. - // This parameter isn't applicable to jobs that are running on Fargate resources - // and shouldn't be provided, or specified as false. + // This parameter isn't applicable to jobs running on Fargate resources and + // shouldn't be provided, or specified as false. Privileged bool // When this parameter is true, the container is given read-only access to its root @@ -815,7 +814,7 @@ type ContainerProperties struct { // The secrets for the container. For more information, see Specifying sensitive // data // (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) - // in the Batch User Guide. + // in the AWS Batch User Guide. Secrets []Secret // A list of ulimits to set in the container. This parameter maps to Ulimits in the @@ -823,8 +822,8 @@ type ContainerProperties struct { // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --ulimit // option to docker run (https://docs.docker.com/engine/reference/run/). This - // parameter isn't applicable to jobs that are running on Fargate resources and - // shouldn't be provided. + // parameter isn't applicable to jobs running on Fargate resources and shouldn't be + // provided. Ulimits []Ulimit // The user name to use inside the container. This parameter maps to User in the @@ -840,12 +839,12 @@ type ContainerProperties struct { // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --cpu-shares option to docker run // (https://docs.docker.com/engine/reference/run/). The number of vCPUs must be - // specified but can be specified in several places. You must specify it at least - // once for each node. This parameter is supported on EC2 resources but isn't + // specified but can be be specified in several places. You must specify it at + // least once for each node. This parameter is supported on EC2 resources but isn't // supported for jobs that run on Fargate resources. For these resources, use // resourceRequirement instead. You can use this parameter or resourceRequirements - // structure but not both. This parameter isn't applicable to jobs that are running - // on Fargate resources and shouldn't be provided. For jobs that run on Fargate + // structure but not both. This parameter isn't applicable to jobs running on + // Fargate resources and shouldn't be provided. For jobs that run on Fargate // resources, you must specify the vCPU requirement for the job using // resourceRequirements. // @@ -872,8 +871,7 @@ type ContainerSummary struct { } // An object representing a container instance host device. This object isn't -// applicable to jobs that are running on Fargate resources and shouldn't be -// provided. +// applicable to jobs running on Fargate resources and shouldn't be provided. type Device struct { // The path for the device on the host container instance. @@ -881,8 +879,8 @@ type Device struct { // This member is required. HostPath *string - // The path inside the container that's used to expose the host device. By default, - // the hostPath value is used. + // The path inside the container used to expose the host device. By default, the + // hostPath value is used. ContainerPath *string // The explicit permissions to provide to the container for the device. By default, @@ -896,10 +894,10 @@ type Device struct { // in the compute environment. If Ec2Configuration isn't specified, the default is // currently ECS_AL1 (Amazon Linux // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami)) -// for non-GPU, non AWSGraviton instances. Starting on March 31, 2021, this default +// for non-GPU, non-Graviton instances. Starting on March 31, 2021, this default // will be changing to ECS_AL2 (Amazon Linux 2 // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)). -// This object isn't applicable to jobs that are running on Fargate resources. +// This object isn't applicable to jobs running on Fargate resources. type Ec2Configuration struct { // The image type to match with the instance type to select an AMI. If the @@ -911,16 +909,16 @@ type Ec2Configuration struct { // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)). // ECS_AL2 Amazon Linux 2 // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)− - // Default for all Amazon Web Services Graviton-based instance families (for - // example, C6g, M6g, R6g, and T4g) and can be used for all non-GPU instance types. - // ECS_AL2_NVIDIA Amazon Linux 2 (GPU) + // Default for all AWS Graviton-based instance families (for example, C6g, M6g, + // R6g, and T4g) and can be used for all non-GPU instance types. ECS_AL2_NVIDIA + // Amazon Linux 2 (GPU) // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami)−Default // for all GPU instance families (for example P4 and G4) and can be used for all - // non Amazon Web Services Graviton-based instance types. ECS_AL1 Amazon Linux + // non-AWS Graviton-based instance types. ECS_AL1 Amazon Linux // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami)−Default - // for all non-GPU, non Amazon Web Services Graviton instance families. Amazon - // Linux is reaching the end-of-life of standard support. For more information, see - // Amazon Linux AMI (http://aws.amazon.com/amazon-linux-ami/). + // for all non-GPU, non-AWS Graviton instance families. Amazon Linux is reaching + // the end-of-life of standard support. For more information, see Amazon Linux AMI + // (http://aws.amazon.com/amazon-linux-ami/). // // This member is required. ImageType *string @@ -945,23 +943,23 @@ type EFSAuthorizationConfig struct { // Amazon Elastic File System User Guide. AccessPointId *string - // Whether or not to use the Batch job IAM role defined in a job definition when - // mounting the Amazon EFS file system. If enabled, transit encryption must be - // enabled in the EFSVolumeConfiguration. If this parameter is omitted, the default - // value of DISABLED is used. For more information, see Using Amazon EFS Access - // Points - // (https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html#efs-volume-accesspoints) - // in the Batch User Guide. EFS IAM authorization requires that TransitEncryption - // be ENABLED and that a JobRoleArn is specified. + // Whether or not to use the AWS Batch execution IAM role defined in a job + // definition when mounting the Amazon EFS file system. If enabled, transit + // encryption must be enabled in the EFSVolumeConfiguration. If this parameter is + // omitted, the default value of DISABLED is used. For more information, see Using + // Amazon EFS Access Points + // (https://docs.aws.amazon.com/batch/latest/ug/efs-volumes.html#efs-volume-accesspoints) + // in the AWS Batch User Guide. EFS IAM authorization requires that + // TransitEncryption be ENABLED and that a JobRoleArn is specified. Iam EFSAuthorizationConfigIAM noSmithyDocumentSerde } -// This is used when you're using an Amazon Elastic File System file system for job -// storage. For more information, see Amazon EFS Volumes -// (https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html) in the -// Batch User Guide. +// This parameter is specified when you are using an Amazon Elastic File System +// file system for task storage. For more information, see Amazon EFS Volumes +// (https://docs.aws.amazon.com/batch/latest/ug/efs-volumes.html) in the AWS Batch +// User Guide. type EFSVolumeConfiguration struct { // The Amazon EFS file system ID to use. @@ -974,25 +972,24 @@ type EFSVolumeConfiguration struct { // The directory within the Amazon EFS file system to mount as the root directory // inside the host. If this parameter is omitted, the root of the Amazon EFS volume - // is used instead. Specifying / has the same effect as omitting this parameter. - // The maximum length is 4,096 characters. If an EFS access point is specified in - // the authorizationConfig, the root directory parameter must either be omitted or - // set to /, which enforces the path set on the Amazon EFS access point. + // will be used. Specifying / will have the same effect as omitting this parameter. + // If an EFS access point is specified in the authorizationConfig, the root + // directory parameter must either be omitted or set to / which will enforce the + // path set on the Amazon EFS access point. RootDirectory *string - // Determines whether to enable encryption for Amazon EFS data in transit between - // the Amazon ECS host and the Amazon EFS server. Transit encryption must be - // enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, - // the default value of DISABLED is used. For more information, see Encrypting data - // in transit + // Whether or not to enable encryption for Amazon EFS data in transit between the + // Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if + // Amazon EFS IAM authorization is used. If this parameter is omitted, the default + // value of DISABLED is used. For more information, see Encrypting data in transit // (https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html) in the // Amazon Elastic File System User Guide. TransitEncryption EFSTransitEncryption // The port to use when sending encrypted data between the Amazon ECS host and the - // Amazon EFS server. If you don't specify a transit encryption port, it uses the - // port selection strategy that the Amazon EFS mount helper uses. The value must be - // between 0 and 65,535. For more information, see EFS Mount Helper + // Amazon EFS server. If you do not specify a transit encryption port, it will use + // the port selection strategy that the Amazon EFS mount helper uses. For more + // information, see EFS Mount Helper // (https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html) in the Amazon // Elastic File System User Guide. TransitEncryptionPort int32 @@ -1011,37 +1008,37 @@ type EvaluateOnExit struct { Action RetryAction // Contains a glob pattern to match against the decimal representation of the - // ExitCode returned for a job. The pattern can be up to 512 characters in length. - // It can contain only numbers, and can optionally end with an asterisk (*) so that - // only the start of the string needs to be an exact match. + // ExitCode returned for a job. The pattern can be up to 512 characters long, can + // contain only numbers, and can optionally end with an asterisk (*) so that only + // the start of the string needs to be an exact match. OnExitCode *string // Contains a glob pattern to match against the Reason returned for a job. The - // pattern can be up to 512 characters in length. It can contain letters, numbers, + // pattern can be up to 512 characters long, and can contain letters, numbers, // periods (.), colons (:), and white space (including spaces and tabs). It can // optionally end with an asterisk (*) so that only the start of the string needs // to be an exact match. OnReason *string // Contains a glob pattern to match against the StatusReason returned for a job. - // The pattern can be up to 512 characters in length. It can contain letters, - // numbers, periods (.), colons (:), and white space (including spaces or tabs). It - // can optionally end with an asterisk (*) so that only the start of the string - // needs to be an exact match. + // The pattern can be up to 512 characters long, and can contain letters, numbers, + // periods (.), colons (:), and white space (including spaces or tabs). It can + // optionally end with an asterisk (*) so that only the start of the string needs + // to be an exact match. OnStatusReason *string noSmithyDocumentSerde } -// The platform configuration for jobs that are running on Fargate resources. Jobs -// that run on EC2 resources must not specify this parameter. +// The platform configuration for jobs running on Fargate resources. For jobs that +// run on EC2 resources, you shouldn't specify this parameter. type FargatePlatformConfiguration struct { - // The Fargate platform version where the jobs are running. A platform version is - // specified only for jobs that are running on Fargate resources. If one isn't - // specified, the LATEST platform version is used by default. This uses a recent, - // approved version of the Fargate platform for compute resources. For more - // information, see Fargate platform versions + // The AWS Fargate platform version where the jobs are running. A platform version + // is specified only for jobs running on Fargate resources. If one isn't specified, + // the LATEST platform version is used by default. This uses a recent, approved + // version of the AWS Fargate platform for compute resources. For more information, + // see AWS Fargate platform versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -1068,7 +1065,7 @@ type Host struct { noSmithyDocumentSerde } -// An object representing an Batch job definition. +// An object representing an AWS Batch job definition. type JobDefinition struct { // The Amazon Resource Name (ARN) for the job definition. @@ -1090,7 +1087,7 @@ type JobDefinition struct { // multinode isn't supported. For more information about multi-node parallel jobs, // see Creating a multi-node parallel job definition // (https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html) in - // the Batch User Guide. + // the AWS Batch User Guide. // // This member is required. Type *string @@ -1109,7 +1106,7 @@ type JobDefinition struct { // job definition. For more information about specifying parameters, see Job // Definition Parameters // (https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html) - // in the Batch User Guide. + // in the AWS Batch User Guide. Parameters map[string]string // The platform capabilities required by the job definition. If no value is @@ -1135,17 +1132,17 @@ type JobDefinition struct { Tags map[string]string // The timeout configuration for jobs that are submitted with this job definition. - // You can specify a timeout duration after which Batch terminates your jobs if + // You can specify a timeout duration after which AWS Batch terminates your jobs if // they haven't finished. Timeout *JobTimeout noSmithyDocumentSerde } -// An object representing an Batch job dependency. +// An object representing an AWS Batch job dependency. type JobDependency struct { - // The job ID of the Batch job associated with this dependency. + // The job ID of the AWS Batch job associated with this dependency. JobId *string // The type of the job dependency. @@ -1154,7 +1151,7 @@ type JobDependency struct { noSmithyDocumentSerde } -// An object representing an Batch job. +// An object representing an AWS Batch job. type JobDetail struct { // The job definition that's used by this job. @@ -1187,7 +1184,7 @@ type JobDetail struct { // The current status for the job. If your jobs don't progress to STARTING, see // Jobs Stuck in RUNNABLE Status // (https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable) - // in the troubleshooting section of the Batch User Guide. + // in the troubleshooting section of the AWS Batch User Guide. // // This member is required. Status JobStatus @@ -1219,7 +1216,7 @@ type JobDetail struct { NodeDetails *NodeDetails // An object representing the node properties of a multi-node parallel job. This - // isn't applicable to jobs that are running on Fargate resources. + // isn't applicable to jobs running on Fargate resources. NodeProperties *NodeProperties // Additional parameters passed to the job that replace parameter substitution @@ -1260,7 +1257,7 @@ type JobDetail struct { noSmithyDocumentSerde } -// An object representing the details of an Batch job queue. +// An object representing the details of an AWS Batch job queue. type JobQueueDetail struct { // The compute environments that are attached to the job queue and the order that @@ -1305,9 +1302,10 @@ type JobQueueDetail struct { // status of the job queue. StatusReason *string - // The tags applied to the job queue. For more information, see Tagging your Batch - // resources (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) - // in Batch User Guide. + // The tags applied to the job queue. For more information, see Tagging your AWS + // Batch resources + // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in AWS + // Batch User Guide. Tags map[string]string noSmithyDocumentSerde @@ -1342,11 +1340,8 @@ type JobSummary struct { // The Amazon Resource Name (ARN) of the job. JobArn *string - // The Amazon Resource Name (ARN) of the job definition. - JobDefinition *string - // The node properties for a single node in a job summary list. This isn't - // applicable to jobs that are running on Fargate resources. + // applicable to jobs running on Fargate resources. NodeProperties *NodePropertiesSummary // The Unix timestamp for when the job was started (when the job transitioned from @@ -1371,8 +1366,8 @@ type JobSummary struct { type JobTimeout struct { // The time duration in seconds (measured from the job attempt's startedAt - // timestamp) after which Batch terminates your jobs if they have not finished. The - // minimum value for the timeout is 60 seconds. + // timestamp) after which AWS Batch terminates your jobs if they have not finished. + // The minimum value for the timeout is 60 seconds. AttemptDurationSeconds int32 noSmithyDocumentSerde @@ -1392,26 +1387,12 @@ type KeyValuePair struct { noSmithyDocumentSerde } -// A filter name and value pair that's used to return a more specific list of -// results from a ListJobs API operation. -type KeyValuesPair struct { - - // The name of the filter. Filter names are case sensitive. - Name *string - - // The filter values. - Values []string - - noSmithyDocumentSerde -} - // An object representing a launch template associated with a compute resource. You // must specify either the launch template ID or launch template name in the // request, but not both. If security groups are specified using both the // securityGroupIds parameter of CreateComputeEnvironment and the launch template, // the values in the securityGroupIds parameter of CreateComputeEnvironment will be -// used. This object isn't applicable to jobs that are running on Fargate -// resources. +// used. This object isn't applicable to jobs running on Fargate resources. type LaunchTemplateSpecification struct { // The ID of the launch template. @@ -1423,7 +1404,7 @@ type LaunchTemplateSpecification struct { // The version number of the launch template, $Latest, or $Default. If the value is // $Latest, the latest version of the launch template is used. If the value is // $Default, the default version of the launch template is used. After the compute - // environment is created, the launch template version that's used isn't changed, + // environment is created, the launch template version used will not be changed, // even if the $Default or $Latest version for the launch template is updated. To // use a new launch template version, create a new compute environment, add the new // compute environment to the existing job queue, remove the old compute @@ -1443,8 +1424,8 @@ type LinuxParameters struct { // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --device // option to docker run (https://docs.docker.com/engine/reference/run/). This - // parameter isn't applicable to jobs that are running on Fargate resources and - // shouldn't be provided. + // parameter isn't applicable to jobs running on Fargate resources and shouldn't be + // provided. Devices []Device // If true, run an init process inside the container that forwards signals and @@ -1466,31 +1447,31 @@ type LinuxParameters struct { // doesn't use swap. Accepted values are 0 or any positive integer. If the maxSwap // parameter is omitted, the container doesn't use the swap configuration for the // container instance it is running on. A maxSwap value must be set for the - // swappiness parameter to be used. This parameter isn't applicable to jobs that - // are running on Fargate resources and shouldn't be provided. + // swappiness parameter to be used. This parameter isn't applicable to jobs running + // on Fargate resources and shouldn't be provided. MaxSwap int32 // The value for the size (in MiB) of the /dev/shm volume. This parameter maps to // the --shm-size option to docker run // (https://docs.docker.com/engine/reference/run/). This parameter isn't applicable - // to jobs that are running on Fargate resources and shouldn't be provided. + // to jobs running on Fargate resources and shouldn't be provided. SharedMemorySize int32 // This allows you to tune a container's memory swappiness behavior. A swappiness // value of 0 causes swapping not to happen unless absolutely necessary. A // swappiness value of 100 causes pages to be swapped very aggressively. Accepted // values are whole numbers between 0 and 100. If the swappiness parameter isn't - // specified, a default value of 60 is used. If a value isn't specified for - // maxSwap, then this parameter is ignored. If maxSwap is set to 0, the container - // doesn't use swap. This parameter maps to the --memory-swappiness option to - // docker run (https://docs.docker.com/engine/reference/run/). Consider the - // following when you use a per-container swap configuration. + // specified, a default value of 60 is used. If a value isn't specified for maxSwap + // then this parameter is ignored. If maxSwap is set to 0, the container doesn't + // use swap. This parameter maps to the --memory-swappiness option to docker run + // (https://docs.docker.com/engine/reference/run/). Consider the following when you + // use a per-container swap configuration. // - // * Swap space must be - // enabled and allocated on the container instance for the containers to use. The - // Amazon ECS optimized AMIs don't have swap enabled by default. You must enable - // swap on the instance to use this feature. For more information, see Instance - // Store Swap Volumes + // * Swap space must be enabled and + // allocated on the container instance for the containers to use. The Amazon ECS + // optimized AMIs don't have swap enabled by default. You must enable swap on the + // instance to use this feature. For more information, see Instance Store Swap + // Volumes // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-store-swap-volumes.html) // in the Amazon EC2 User Guide for Linux Instances or How do I allocate memory to // work as swap space in an Amazon EC2 instance by using a swap file? @@ -1505,14 +1486,14 @@ type LinuxParameters struct { // total swap usage will be limited to two times the memory reservation of the // container. // - // This parameter isn't applicable to jobs that are running on Fargate - // resources and shouldn't be provided. + // This parameter isn't applicable to jobs running on Fargate resources + // and shouldn't be provided. Swappiness int32 // The container path, mount options, and size (in MiB) of the tmpfs mount. This // parameter maps to the --tmpfs option to docker run // (https://docs.docker.com/engine/reference/run/). This parameter isn't applicable - // to jobs that are running on Fargate resources and shouldn't be provided. + // to jobs running on Fargate resources and shouldn't be provided. Tmpfs []Tmpfs noSmithyDocumentSerde @@ -1524,12 +1505,12 @@ type LogConfiguration struct { // The log driver to use for the container. The valid values listed for this // parameter are log drivers that the Amazon ECS container agent can communicate // with by default. The supported log drivers are awslogs, fluentd, gelf, - // json-file, journald, logentries, syslog, and splunk. Jobs that are running on - // Fargate resources are restricted to the awslogs and splunk log drivers. awslogs + // json-file, journald, logentries, syslog, and splunk. Jobs running on Fargate + // resources are restricted to the awslogs and splunk log drivers. awslogs // Specifies the Amazon CloudWatch Logs logging driver. For more information, see // Using the awslogs Log Driver // (https://docs.aws.amazon.com/batch/latest/userguide/using_awslogs.html) in the - // Batch User Guide and Amazon CloudWatch Logs logging driver + // AWS Batch User Guide and Amazon CloudWatch Logs logging driver // (https://docs.docker.com/config/containers/logging/awslogs/) in the Docker // documentation. fluentd Specifies the Fluentd logging driver. For more // information, including usage and options, see Fluentd logging driver @@ -1573,7 +1554,7 @@ type LogConfiguration struct { // The secrets to pass to the log configuration. For more information, see // Specifying Sensitive Data // (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) - // in the Batch User Guide. + // in the AWS Batch User Guide. SecretOptions []Secret noSmithyDocumentSerde @@ -1598,13 +1579,13 @@ type MountPoint struct { noSmithyDocumentSerde } -// The network configuration for jobs that are running on Fargate resources. Jobs -// that are running on EC2 resources must not specify this parameter. +// The network configuration for jobs running on Fargate resources. Jobs running on +// EC2 resources must not specify this parameter. type NetworkConfiguration struct { - // Indicates whether the job should have a public IP address. For a job that is - // running on Fargate resources in a private subnet to send outbound traffic to the - // internet (for example, to pull container images), the private subnet requires a + // Indicates whether the job should have a public IP address. For a job running on + // Fargate resources in a private subnet to send outbound traffic to the internet + // (for example, in order to pull container images), the private subnet requires a // NAT gateway be attached to route requests to the internet. For more information, // see Amazon ECS task networking // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html). @@ -1646,8 +1627,8 @@ type NodeDetails struct { } // Object representing any node overrides to a job definition that's used in a -// SubmitJob API operation. This isn't applicable to jobs that are running on -// Fargate resources and shouldn't be provided; use containerOverrides instead. +// SubmitJob API operation. This isn't applicable to jobs running on Fargate +// resources and shouldn't be provided; use containerOverrides instead. type NodeOverrides struct { // The node property overrides for the job. @@ -1767,11 +1748,11 @@ type ResourceRequirement struct { // vary based on the type specified. type="GPU" The number of physical GPUs to // reserve for the container. The number of GPUs reserved for all containers in a // job shouldn't exceed the number of available GPUs on the compute resource that - // the job is launched on. GPUs are not available for jobs that are running on - // Fargate resources. type="MEMORY" The memory hard limit (in MiB) present to the - // container. This parameter is supported for jobs that are running on EC2 - // resources. If your container attempts to exceed the memory specified, the - // container is terminated. This parameter maps to Memory in the Create a container + // the job is launched on. GPUs are not available for jobs running on Fargate + // resources. type="MEMORY" The memory hard limit (in MiB) present to the + // container. This parameter is supported for jobs running on EC2 resources. If + // your container attempts to exceed the memory specified, the container is + // terminated. This parameter maps to Memory in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --memory // option to docker run (https://docs.docker.com/engine/reference/run/). You must @@ -1785,31 +1766,31 @@ type ResourceRequirement struct { // trying to maximize your resource utilization by providing your jobs as much // memory as possible for a particular instance type, see Memory Management // (https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html) in - // the Batch User Guide. For jobs that are running on Fargate resources, then value - // is the hard limit (in MiB), and must match one of the supported values and the - // VCPU values must be one of the values supported for that memory value. value = - // 512 VCPU = 0.25 value = 1024 VCPU = 0.25 or 0.5 value = 2048 VCPU = 0.25, 0.5, - // or 1 value = 3072 VCPU = 0.5, or 1 value = 4096 VCPU = 0.5, 1, or 2 value = - // 5120, 6144, or 7168 VCPU = 1 or 2 value = 8192 VCPU = 1, 2, or 4 value = 9216, - // 10240, 11264, 12288, 13312, 14336, 15360, or 16384 VCPU = 2 or 4 value = 17408, - // 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, - // 29696, or 30720 VCPU = 4 type="VCPU" The number of vCPUs reserved for the - // container. This parameter maps to CpuShares in the Create a container + // the AWS Batch User Guide. For jobs running on Fargate resources, then value is + // the hard limit (in MiB), and must match one of the supported values and the VCPU + // values must be one of the values supported for that memory value. value = 512 + // VCPU = 0.25 value = 1024 VCPU = 0.25 or 0.5 value = 2048 VCPU = 0.25, 0.5, or 1 + // value = 3072 VCPU = 0.5, or 1 value = 4096 VCPU = 0.5, 1, or 2 value = 5120, + // 6144, or 7168 VCPU = 1 or 2 value = 8192 VCPU = 1, 2, or 4 value = 9216, 10240, + // 11264, 12288, 13312, 14336, 15360, or 16384 VCPU = 2 or 4 value = 17408, 18432, + // 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or + // 30720 VCPU = 4 type="VCPU" The number of vCPUs reserved for the container. This + // parameter maps to CpuShares in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --cpu-shares option to docker run // (https://docs.docker.com/engine/reference/run/). Each vCPU is equivalent to // 1,024 CPU shares. For EC2 resources, you must specify at least one vCPU. This is // required but can be specified in several places; it must be specified for each - // node at least once. For jobs that are running on Fargate resources, then value - // must match one of the supported values and the MEMORY values must be one of the - // values supported for that VCPU value. The supported values are 0.25, 0.5, 1, 2, - // and 4 value = 0.25 MEMORY = 512, 1024, or 2048 value = 0.5 MEMORY = 1024, 2048, - // 3072, or 4096 value = 1 MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192 - // value = 2 MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, - // 13312, 14336, 15360, or 16384 value = 4 MEMORY = 8192, 9216, 10240, 11264, - // 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, - // 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720 + // node at least once. For jobs running on Fargate resources, then value must match + // one of the supported values and the MEMORY values must be one of the values + // supported for that VCPU value. The supported values are 0.25, 0.5, 1, 2, and 4 + // value = 0.25 MEMORY = 512, 1024, or 2048 value = 0.5 MEMORY = 1024, 2048, 3072, + // or 4096 value = 1 MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192 value = 2 + // MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, + // 15360, or 16384 value = 4 MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, + // 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, + // 25600, 26624, 27648, 28672, 29696, or 30720 // // This member is required. Value *string @@ -1819,7 +1800,7 @@ type ResourceRequirement struct { // The retry strategy associated with a job. For more information, see Automated // job retries -// (https://docs.aws.amazon.com/batch/latest/userguide/job_retries.html) in the +// (https://docs.aws.amazon.com/batch/latest/userguide/job_retries.html) in the AWS // Batch User Guide. type RetryStrategy struct { @@ -1849,7 +1830,7 @@ type RetryStrategy struct { // For more // information, see Specifying sensitive data // (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) -// in the Batch User Guide. +// in the AWS Batch User Guide. type Secret struct { // The name of the secret. @@ -1858,11 +1839,11 @@ type Secret struct { Name *string // The secret to expose to the container. The supported values are either the full - // ARN of the Secrets Manager secret or the full ARN of the parameter in the Amazon - // Web Services Systems Manager Parameter Store. If the Amazon Web Services Systems - // Manager Parameter Store parameter exists in the same Region as the job you're - // launching, then you can use either the full ARN or name of the parameter. If the - // parameter exists in a different Region, then the full ARN must be specified. + // ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the + // AWS Systems Manager Parameter Store. If the AWS Systems Manager Parameter Store + // parameter exists in the same Region as the job you're launching, then you can + // use either the full ARN or name of the parameter. If the parameter exists in a + // different Region, then the full ARN must be specified. // // This member is required. ValueFrom *string @@ -1871,7 +1852,7 @@ type Secret struct { } // The container path, mount options, and size of the tmpfs mount. This object -// isn't applicable to jobs that are running on Fargate resources. +// isn't applicable to jobs running on Fargate resources. type Tmpfs struct { // The absolute file path in the container where the tmpfs volume is mounted. @@ -1897,7 +1878,7 @@ type Tmpfs struct { } // The ulimit settings to pass to the container. This object isn't applicable to -// jobs that are running on Fargate resources. +// jobs running on Fargate resources. type Ulimit struct { // The hard limit for the ulimit type. @@ -1922,16 +1903,16 @@ type Ulimit struct { type Volume struct { // This parameter is specified when you are using an Amazon Elastic File System - // file system for job storage. Jobs that are running on Fargate resources must - // specify a platformVersion of at least 1.4.0. + // file system for job storage. Jobs running on Fargate resources must specify a + // platformVersion of at least 1.4.0. EfsVolumeConfiguration *EFSVolumeConfiguration // The contents of the host parameter determine whether your data volume persists // on the host container instance and where it is stored. If the host parameter is // empty, then the Docker daemon assigns a host path for your data volume. However, // the data isn't guaranteed to persist after the containers associated with it - // stop running. This parameter isn't applicable to jobs that are running on - // Fargate resources and shouldn't be provided. + // stop running. This parameter isn't applicable to jobs running on Fargate + // resources and shouldn't be provided. Host *Host // The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, diff --git a/service/braket/go.mod b/service/braket/go.mod index 8833a2fb0d9..87fa8521384 100644 --- a/service/braket/go.mod +++ b/service/braket/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/braket/go.sum b/service/braket/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/braket/go.sum +++ b/service/braket/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/budgets/go.mod b/service/budgets/go.mod index 57b48aaba24..d4cf38d8799 100644 --- a/service/budgets/go.mod +++ b/service/budgets/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/budgets/go.sum b/service/budgets/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/budgets/go.sum +++ b/service/budgets/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/chime/api_op_StartMeetingTranscription.go b/service/chime/api_op_StartMeetingTranscription.go deleted file mode 100644 index f5114639564..00000000000 --- a/service/chime/api_op_StartMeetingTranscription.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package chime - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/chime/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Start transcription for the specified meetingId. -func (c *Client) StartMeetingTranscription(ctx context.Context, params *StartMeetingTranscriptionInput, optFns ...func(*Options)) (*StartMeetingTranscriptionOutput, error) { - if params == nil { - params = &StartMeetingTranscriptionInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "StartMeetingTranscription", params, optFns, c.addOperationStartMeetingTranscriptionMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*StartMeetingTranscriptionOutput) - out.ResultMetadata = metadata - return out, nil -} - -type StartMeetingTranscriptionInput struct { - - // The unique ID of the meeting being transcribed. - // - // This member is required. - MeetingId *string - - // The configuration for the current transcription operation. Must contain - // EngineTranscribeSettings or EngineTranscribeMedicalSettings. - // - // This member is required. - TranscriptionConfiguration *types.TranscriptionConfiguration - - noSmithyDocumentSerde -} - -type StartMeetingTranscriptionOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationStartMeetingTranscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpStartMeetingTranscription{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartMeetingTranscription{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpStartMeetingTranscriptionValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartMeetingTranscription(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opStartMeetingTranscription(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "chime", - OperationName: "StartMeetingTranscription", - } -} diff --git a/service/chime/api_op_StopMeetingTranscription.go b/service/chime/api_op_StopMeetingTranscription.go deleted file mode 100644 index be905eadb92..00000000000 --- a/service/chime/api_op_StopMeetingTranscription.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package chime - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Stops transcription for the specified meetingId. -func (c *Client) StopMeetingTranscription(ctx context.Context, params *StopMeetingTranscriptionInput, optFns ...func(*Options)) (*StopMeetingTranscriptionOutput, error) { - if params == nil { - params = &StopMeetingTranscriptionInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "StopMeetingTranscription", params, optFns, c.addOperationStopMeetingTranscriptionMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*StopMeetingTranscriptionOutput) - out.ResultMetadata = metadata - return out, nil -} - -type StopMeetingTranscriptionInput struct { - - // The unique ID of the meeting for which you stop transcription. - // - // This member is required. - MeetingId *string - - noSmithyDocumentSerde -} - -type StopMeetingTranscriptionOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationStopMeetingTranscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpStopMeetingTranscription{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStopMeetingTranscription{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpStopMeetingTranscriptionValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopMeetingTranscription(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opStopMeetingTranscription(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "chime", - OperationName: "StopMeetingTranscription", - } -} diff --git a/service/chime/deserializers.go b/service/chime/deserializers.go index b253f3d410a..3c2ef2ad720 100644 --- a/service/chime/deserializers.go +++ b/service/chime/deserializers.go @@ -24906,217 +24906,6 @@ func awsRestjson1_deserializeOpDocumentSendChannelMessageOutput(v **SendChannelM return nil } -type awsRestjson1_deserializeOpStartMeetingTranscription struct { -} - -func (*awsRestjson1_deserializeOpStartMeetingTranscription) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpStartMeetingTranscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorStartMeetingTranscription(response, &metadata) - } - output := &StartMeetingTranscriptionOutput{} - out.Result = output - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorStartMeetingTranscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("BadRequestException", errorCode): - return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) - - case strings.EqualFold("ForbiddenException", errorCode): - return awsRestjson1_deserializeErrorForbiddenException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsRestjson1_deserializeErrorNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceLimitExceededException", errorCode): - return awsRestjson1_deserializeErrorResourceLimitExceededException(response, errorBody) - - case strings.EqualFold("ServiceFailureException", errorCode): - return awsRestjson1_deserializeErrorServiceFailureException(response, errorBody) - - case strings.EqualFold("ServiceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody) - - case strings.EqualFold("ThrottledClientException", errorCode): - return awsRestjson1_deserializeErrorThrottledClientException(response, errorBody) - - case strings.EqualFold("UnauthorizedClientException", errorCode): - return awsRestjson1_deserializeErrorUnauthorizedClientException(response, errorBody) - - case strings.EqualFold("UnprocessableEntityException", errorCode): - return awsRestjson1_deserializeErrorUnprocessableEntityException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpStopMeetingTranscription struct { -} - -func (*awsRestjson1_deserializeOpStopMeetingTranscription) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpStopMeetingTranscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorStopMeetingTranscription(response, &metadata) - } - output := &StopMeetingTranscriptionOutput{} - out.Result = output - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorStopMeetingTranscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("BadRequestException", errorCode): - return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) - - case strings.EqualFold("ForbiddenException", errorCode): - return awsRestjson1_deserializeErrorForbiddenException(response, errorBody) - - case strings.EqualFold("NotFoundException", errorCode): - return awsRestjson1_deserializeErrorNotFoundException(response, errorBody) - - case strings.EqualFold("ServiceFailureException", errorCode): - return awsRestjson1_deserializeErrorServiceFailureException(response, errorBody) - - case strings.EqualFold("ServiceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody) - - case strings.EqualFold("ThrottledClientException", errorCode): - return awsRestjson1_deserializeErrorThrottledClientException(response, errorBody) - - case strings.EqualFold("UnauthorizedClientException", errorCode): - return awsRestjson1_deserializeErrorUnauthorizedClientException(response, errorBody) - - case strings.EqualFold("UnprocessableEntityException", errorCode): - return awsRestjson1_deserializeErrorUnprocessableEntityException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsRestjson1_deserializeOpTagAttendee struct { } @@ -29503,15 +29292,6 @@ func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{ sv.AccountId = ptr.String(jtv) } - case "AccountStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AccountStatus to be of type string, got %T instead", value) - } - sv.AccountStatus = types.AccountStatus(jtv) - } - case "AccountType": if value != nil { jtv, ok := value.(string) diff --git a/service/chime/generated.json b/service/chime/generated.json index 1e9eed180ed..6ae4a1d40a2 100644 --- a/service/chime/generated.json +++ b/service/chime/generated.json @@ -166,8 +166,6 @@ "api_op_RestorePhoneNumber.go", "api_op_SearchAvailablePhoneNumbers.go", "api_op_SendChannelMessage.go", - "api_op_StartMeetingTranscription.go", - "api_op_StopMeetingTranscription.go", "api_op_TagAttendee.go", "api_op_TagMeeting.go", "api_op_TagResource.go", diff --git a/service/chime/go.mod b/service/chime/go.mod index 8827f8d4047..d82dfbb4ce6 100644 --- a/service/chime/go.mod +++ b/service/chime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chime/go.sum b/service/chime/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/chime/go.sum +++ b/service/chime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/chime/serializers.go b/service/chime/serializers.go index 558f25428f3..a160d46f681 100644 --- a/service/chime/serializers.go +++ b/service/chime/serializers.go @@ -11446,147 +11446,6 @@ func awsRestjson1_serializeOpDocumentSendChannelMessageInput(v *SendChannelMessa return nil } -type awsRestjson1_serializeOpStartMeetingTranscription struct { -} - -func (*awsRestjson1_serializeOpStartMeetingTranscription) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpStartMeetingTranscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*StartMeetingTranscriptionInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/meetings/{MeetingId}/transcription?operation=start") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsStartMeetingTranscriptionInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentStartMeetingTranscriptionInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsStartMeetingTranscriptionInput(v *StartMeetingTranscriptionInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MeetingId == nil || len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } - if v.MeetingId != nil { - if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentStartMeetingTranscriptionInput(v *StartMeetingTranscriptionInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.TranscriptionConfiguration != nil { - ok := object.Key("TranscriptionConfiguration") - if err := awsRestjson1_serializeDocumentTranscriptionConfiguration(v.TranscriptionConfiguration, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpStopMeetingTranscription struct { -} - -func (*awsRestjson1_serializeOpStopMeetingTranscription) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpStopMeetingTranscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*StopMeetingTranscriptionInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/meetings/{MeetingId}/transcription?operation=stop") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsStopMeetingTranscriptionInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsStopMeetingTranscriptionInput(v *StopMeetingTranscriptionInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MeetingId == nil || len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } - if v.MeetingId != nil { - if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { - return err - } - } - - return nil -} - type awsRestjson1_serializeOpTagAttendee struct { } @@ -14241,70 +14100,6 @@ func awsRestjson1_serializeDocumentEmergencyCallingConfiguration(v *types.Emerge return nil } -func awsRestjson1_serializeDocumentEngineTranscribeMedicalSettings(v *types.EngineTranscribeMedicalSettings, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.LanguageCode) > 0 { - ok := object.Key("LanguageCode") - ok.String(string(v.LanguageCode)) - } - - if len(v.Region) > 0 { - ok := object.Key("Region") - ok.String(string(v.Region)) - } - - if len(v.Specialty) > 0 { - ok := object.Key("Specialty") - ok.String(string(v.Specialty)) - } - - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) - } - - if v.VocabularyName != nil { - ok := object.Key("VocabularyName") - ok.String(*v.VocabularyName) - } - - return nil -} - -func awsRestjson1_serializeDocumentEngineTranscribeSettings(v *types.EngineTranscribeSettings, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.LanguageCode) > 0 { - ok := object.Key("LanguageCode") - ok.String(string(v.LanguageCode)) - } - - if len(v.Region) > 0 { - ok := object.Key("Region") - ok.String(string(v.Region)) - } - - if len(v.VocabularyFilterMethod) > 0 { - ok := object.Key("VocabularyFilterMethod") - ok.String(string(v.VocabularyFilterMethod)) - } - - if v.VocabularyFilterName != nil { - ok := object.Key("VocabularyFilterName") - ok.String(*v.VocabularyFilterName) - } - - if v.VocabularyName != nil { - ok := object.Key("VocabularyName") - ok.String(*v.VocabularyName) - } - - return nil -} - func awsRestjson1_serializeDocumentGeoMatchParams(v *types.GeoMatchParams, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -14813,27 +14608,6 @@ func awsRestjson1_serializeDocumentTermination(v *types.Termination, value smith return nil } -func awsRestjson1_serializeDocumentTranscriptionConfiguration(v *types.TranscriptionConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.EngineTranscribeMedicalSettings != nil { - ok := object.Key("EngineTranscribeMedicalSettings") - if err := awsRestjson1_serializeDocumentEngineTranscribeMedicalSettings(v.EngineTranscribeMedicalSettings, ok); err != nil { - return err - } - } - - if v.EngineTranscribeSettings != nil { - ok := object.Key("EngineTranscribeSettings") - if err := awsRestjson1_serializeDocumentEngineTranscribeSettings(v.EngineTranscribeSettings, ok); err != nil { - return err - } - } - - return nil -} - func awsRestjson1_serializeDocumentUpdatePhoneNumberRequestItem(v *types.UpdatePhoneNumberRequestItem, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/chime/types/enums.go b/service/chime/types/enums.go index 5939a4e48ee..77b13243b8d 100644 --- a/service/chime/types/enums.go +++ b/service/chime/types/enums.go @@ -2,24 +2,6 @@ package types -type AccountStatus string - -// Enum values for AccountStatus -const ( - AccountStatusSuspended AccountStatus = "Suspended" - AccountStatusActive AccountStatus = "Active" -) - -// Values returns all known values for AccountStatus. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (AccountStatus) Values() []AccountStatus { - return []AccountStatus{ - "Suspended", - "Active", - } -} - type AccountType string // Enum values for AccountType @@ -691,188 +673,6 @@ func (SortOrder) Values() []SortOrder { } } -type TranscribeLanguageCode string - -// Enum values for TranscribeLanguageCode -const ( - TranscribeLanguageCodeEnUs TranscribeLanguageCode = "en-US" - TranscribeLanguageCodeEnGb TranscribeLanguageCode = "en-GB" - TranscribeLanguageCodeEsUs TranscribeLanguageCode = "es-US" - TranscribeLanguageCodeFrCa TranscribeLanguageCode = "fr-CA" - TranscribeLanguageCodeFrFr TranscribeLanguageCode = "fr-FR" - TranscribeLanguageCodeEnAu TranscribeLanguageCode = "en-AU" - TranscribeLanguageCodeItIt TranscribeLanguageCode = "it-IT" - TranscribeLanguageCodeDeDe TranscribeLanguageCode = "de-DE" - TranscribeLanguageCodePtBr TranscribeLanguageCode = "pt-BR" - TranscribeLanguageCodeJaJp TranscribeLanguageCode = "ja-JP" - TranscribeLanguageCodeKoKr TranscribeLanguageCode = "ko-KR" - TranscribeLanguageCodeZhCn TranscribeLanguageCode = "zh-CN" -) - -// Values returns all known values for TranscribeLanguageCode. Note that this can -// be expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (TranscribeLanguageCode) Values() []TranscribeLanguageCode { - return []TranscribeLanguageCode{ - "en-US", - "en-GB", - "es-US", - "fr-CA", - "fr-FR", - "en-AU", - "it-IT", - "de-DE", - "pt-BR", - "ja-JP", - "ko-KR", - "zh-CN", - } -} - -type TranscribeMedicalLanguageCode string - -// Enum values for TranscribeMedicalLanguageCode -const ( - TranscribeMedicalLanguageCodeEnUs TranscribeMedicalLanguageCode = "en-US" -) - -// Values returns all known values for TranscribeMedicalLanguageCode. Note that -// this can be expanded in the future, and so it is only as up to date as the -// client. The ordering of this slice is not guaranteed to be stable across -// updates. -func (TranscribeMedicalLanguageCode) Values() []TranscribeMedicalLanguageCode { - return []TranscribeMedicalLanguageCode{ - "en-US", - } -} - -type TranscribeMedicalRegion string - -// Enum values for TranscribeMedicalRegion -const ( - TranscribeMedicalRegionUsEast1 TranscribeMedicalRegion = "us-east-1" - TranscribeMedicalRegionUsEast2 TranscribeMedicalRegion = "us-east-2" - TranscribeMedicalRegionUsWest2 TranscribeMedicalRegion = "us-west-2" - TranscribeMedicalRegionApSoutheast2 TranscribeMedicalRegion = "ap-southeast-2" - TranscribeMedicalRegionCaCentral1 TranscribeMedicalRegion = "ca-central-1" - TranscribeMedicalRegionEuWest1 TranscribeMedicalRegion = "eu-west-1" -) - -// Values returns all known values for TranscribeMedicalRegion. Note that this can -// be expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (TranscribeMedicalRegion) Values() []TranscribeMedicalRegion { - return []TranscribeMedicalRegion{ - "us-east-1", - "us-east-2", - "us-west-2", - "ap-southeast-2", - "ca-central-1", - "eu-west-1", - } -} - -type TranscribeMedicalSpecialty string - -// Enum values for TranscribeMedicalSpecialty -const ( - TranscribeMedicalSpecialtyPrimaryCare TranscribeMedicalSpecialty = "PRIMARYCARE" - TranscribeMedicalSpecialtyCardiology TranscribeMedicalSpecialty = "CARDIOLOGY" - TranscribeMedicalSpecialtyNeurology TranscribeMedicalSpecialty = "NEUROLOGY" - TranscribeMedicalSpecialtyOncology TranscribeMedicalSpecialty = "ONCOLOGY" - TranscribeMedicalSpecialtyRadiology TranscribeMedicalSpecialty = "RADIOLOGY" - TranscribeMedicalSpecialtyUrology TranscribeMedicalSpecialty = "UROLOGY" -) - -// Values returns all known values for TranscribeMedicalSpecialty. Note that this -// can be expanded in the future, and so it is only as up to date as the client. -// The ordering of this slice is not guaranteed to be stable across updates. -func (TranscribeMedicalSpecialty) Values() []TranscribeMedicalSpecialty { - return []TranscribeMedicalSpecialty{ - "PRIMARYCARE", - "CARDIOLOGY", - "NEUROLOGY", - "ONCOLOGY", - "RADIOLOGY", - "UROLOGY", - } -} - -type TranscribeMedicalType string - -// Enum values for TranscribeMedicalType -const ( - TranscribeMedicalTypeConversation TranscribeMedicalType = "CONVERSATION" - TranscribeMedicalTypeDictation TranscribeMedicalType = "DICTATION" -) - -// Values returns all known values for TranscribeMedicalType. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (TranscribeMedicalType) Values() []TranscribeMedicalType { - return []TranscribeMedicalType{ - "CONVERSATION", - "DICTATION", - } -} - -type TranscribeRegion string - -// Enum values for TranscribeRegion -const ( - TranscribeRegionUsEast2 TranscribeRegion = "us-east-2" - TranscribeRegionUsEast1 TranscribeRegion = "us-east-1" - TranscribeRegionUsWest2 TranscribeRegion = "us-west-2" - TranscribeRegionApNortheast2 TranscribeRegion = "ap-northeast-2" - TranscribeRegionApSoutheast2 TranscribeRegion = "ap-southeast-2" - TranscribeRegionApNortheast1 TranscribeRegion = "ap-northeast-1" - TranscribeRegionCaCentral1 TranscribeRegion = "ca-central-1" - TranscribeRegionEuCentral1 TranscribeRegion = "eu-central-1" - TranscribeRegionEuWest1 TranscribeRegion = "eu-west-1" - TranscribeRegionEuWest2 TranscribeRegion = "eu-west-2" - TranscribeRegionSaEast1 TranscribeRegion = "sa-east-1" -) - -// Values returns all known values for TranscribeRegion. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (TranscribeRegion) Values() []TranscribeRegion { - return []TranscribeRegion{ - "us-east-2", - "us-east-1", - "us-west-2", - "ap-northeast-2", - "ap-southeast-2", - "ap-northeast-1", - "ca-central-1", - "eu-central-1", - "eu-west-1", - "eu-west-2", - "sa-east-1", - } -} - -type TranscribeVocabularyFilterMethod string - -// Enum values for TranscribeVocabularyFilterMethod -const ( - TranscribeVocabularyFilterMethodRemove TranscribeVocabularyFilterMethod = "remove" - TranscribeVocabularyFilterMethodMask TranscribeVocabularyFilterMethod = "mask" - TranscribeVocabularyFilterMethodTag TranscribeVocabularyFilterMethod = "tag" -) - -// Values returns all known values for TranscribeVocabularyFilterMethod. Note that -// this can be expanded in the future, and so it is only as up to date as the -// client. The ordering of this slice is not guaranteed to be stable across -// updates. -func (TranscribeVocabularyFilterMethod) Values() []TranscribeVocabularyFilterMethod { - return []TranscribeVocabularyFilterMethod{ - "remove", - "mask", - "tag", - } -} - type UserType string // Enum values for UserType diff --git a/service/chime/types/types.go b/service/chime/types/types.go index 1dbdb16f72f..58e46133ce1 100644 --- a/service/chime/types/types.go +++ b/service/chime/types/types.go @@ -26,9 +26,6 @@ type Account struct { // This member is required. Name *string - // The status of the account. - AccountStatus AccountStatus - // The Amazon Chime account type. For more information about different account // types, see Managing Your Amazon Chime Accounts // (https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) in the @@ -655,58 +652,6 @@ type EmergencyCallingConfiguration struct { noSmithyDocumentSerde } -// Settings specific to the Amazon Transcribe Medical engine. -type EngineTranscribeMedicalSettings struct { - - // The language code specified for the Amazon Transcribe Medical engine. - // - // This member is required. - LanguageCode TranscribeMedicalLanguageCode - - // The specialty specified for the Amazon Transcribe Medical engine. - // - // This member is required. - Specialty TranscribeMedicalSpecialty - - // The type of transcription. - // - // This member is required. - Type TranscribeMedicalType - - // The AWS Region passed to Amazon Transcribe Medical. If you don't specify a - // Region, Amazon Chime uses the Region closest to the meeting's Region. - Region TranscribeMedicalRegion - - // The name of the vocabulary passed to Amazon Transcribe Medical. - VocabularyName *string - - noSmithyDocumentSerde -} - -// Settings specific to the Amazon Transcribe engine. -type EngineTranscribeSettings struct { - - // The language code specified for the Amazon Transcribe engine. - // - // This member is required. - LanguageCode TranscribeLanguageCode - - // The AWS Region passed to Amazon Transcribe. If you don't specify a Region, - // Amazon Chime uses the Region closest to the meeting's Region. - Region TranscribeRegion - - // The filtering method passed to Amazon Transcribe. - VocabularyFilterMethod TranscribeVocabularyFilterMethod - - // The name of the vocabulary filter passed to Amazon Transcribe. - VocabularyFilterName *string - - // The name of the vocabulary passed to Amazon Transcribe. - VocabularyName *string - - noSmithyDocumentSerde -} - // The configuration that allows a bot to receive outgoing events. Can be either an // HTTPS endpoint or a Lambda function ARN. type EventsConfiguration struct { @@ -813,7 +758,7 @@ type MediaCapturePipeline struct { noSmithyDocumentSerde } -// A set of endpoints used by clients to connect to the media service group for an +// A set of endpoints used by clients to connect to the media service group for a // Amazon Chime SDK meeting. type MediaPlacement struct { @@ -823,7 +768,7 @@ type MediaPlacement struct { // The audio host URL. AudioHostUrl *string - // The URL of the S3 bucket used to store the captured media. + // The event ingestion URL. EventIngestionUrl *string // The screen data URL. @@ -1504,19 +1449,6 @@ type TerminationHealth struct { noSmithyDocumentSerde } -// The configuration for the current transcription operation. Must contain -// EngineTranscribeSettings or EngineTranscribeMedicalSettings. -type TranscriptionConfiguration struct { - - // The transcription configuration settings passed to Amazon Transcribe. - EngineTranscribeMedicalSettings *EngineTranscribeMedicalSettings - - // The transcription configuration settings passed to Amazon Transcribe. - EngineTranscribeSettings *EngineTranscribeSettings - - noSmithyDocumentSerde -} - // The phone number ID, product type, or calling name fields to update, used with // the BatchUpdatePhoneNumber and UpdatePhoneNumber actions. type UpdatePhoneNumberRequestItem struct { diff --git a/service/chime/validators.go b/service/chime/validators.go index 41441db7162..19da9401947 100644 --- a/service/chime/validators.go +++ b/service/chime/validators.go @@ -2910,46 +2910,6 @@ func (m *validateOpSendChannelMessage) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } -type validateOpStartMeetingTranscription struct { -} - -func (*validateOpStartMeetingTranscription) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpStartMeetingTranscription) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*StartMeetingTranscriptionInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpStartMeetingTranscriptionInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpStopMeetingTranscription struct { -} - -func (*validateOpStopMeetingTranscription) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpStopMeetingTranscription) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*StopMeetingTranscriptionInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpStopMeetingTranscriptionInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpTagAttendee struct { } @@ -4070,14 +4030,6 @@ func addOpSendChannelMessageValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpSendChannelMessage{}, middleware.After) } -func addOpStartMeetingTranscriptionValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpStartMeetingTranscription{}, middleware.After) -} - -func addOpStopMeetingTranscriptionValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpStopMeetingTranscription{}, middleware.After) -} - func addOpTagAttendeeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpTagAttendee{}, middleware.After) } @@ -4344,42 +4296,6 @@ func validateEmergencyCallingConfiguration(v *types.EmergencyCallingConfiguratio } } -func validateEngineTranscribeMedicalSettings(v *types.EngineTranscribeMedicalSettings) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "EngineTranscribeMedicalSettings"} - if len(v.LanguageCode) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("LanguageCode")) - } - if len(v.Specialty) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Specialty")) - } - if len(v.Type) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Type")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateEngineTranscribeSettings(v *types.EngineTranscribeSettings) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "EngineTranscribeSettings"} - if len(v.LanguageCode) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("LanguageCode")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateGeoMatchParams(v *types.GeoMatchParams) error { if v == nil { return nil @@ -4523,28 +4439,6 @@ func validateTelephonySettings(v *types.TelephonySettings) error { } } -func validateTranscriptionConfiguration(v *types.TranscriptionConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "TranscriptionConfiguration"} - if v.EngineTranscribeSettings != nil { - if err := validateEngineTranscribeSettings(v.EngineTranscribeSettings); err != nil { - invalidParams.AddNested("EngineTranscribeSettings", err.(smithy.InvalidParamsError)) - } - } - if v.EngineTranscribeMedicalSettings != nil { - if err := validateEngineTranscribeMedicalSettings(v.EngineTranscribeMedicalSettings); err != nil { - invalidParams.AddNested("EngineTranscribeMedicalSettings", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateUpdatePhoneNumberRequestItem(v *types.UpdatePhoneNumberRequestItem) error { if v == nil { return nil @@ -7210,43 +7104,6 @@ func validateOpSendChannelMessageInput(v *SendChannelMessageInput) error { } } -func validateOpStartMeetingTranscriptionInput(v *StartMeetingTranscriptionInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "StartMeetingTranscriptionInput"} - if v.MeetingId == nil { - invalidParams.Add(smithy.NewErrParamRequired("MeetingId")) - } - if v.TranscriptionConfiguration == nil { - invalidParams.Add(smithy.NewErrParamRequired("TranscriptionConfiguration")) - } else if v.TranscriptionConfiguration != nil { - if err := validateTranscriptionConfiguration(v.TranscriptionConfiguration); err != nil { - invalidParams.AddNested("TranscriptionConfiguration", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpStopMeetingTranscriptionInput(v *StopMeetingTranscriptionInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "StopMeetingTranscriptionInput"} - if v.MeetingId == nil { - invalidParams.Add(smithy.NewErrParamRequired("MeetingId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpTagAttendeeInput(v *TagAttendeeInput) error { if v == nil { return nil diff --git a/service/cloud9/go.mod b/service/cloud9/go.mod index c79ab7325e9..bb6378d05cd 100644 --- a/service/cloud9/go.mod +++ b/service/cloud9/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloud9/go.sum b/service/cloud9/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cloud9/go.sum +++ b/service/cloud9/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/clouddirectory/go.mod b/service/clouddirectory/go.mod index 989c05edb77..8877b6a9af1 100644 --- a/service/clouddirectory/go.mod +++ b/service/clouddirectory/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/clouddirectory/go.sum b/service/clouddirectory/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/clouddirectory/go.sum +++ b/service/clouddirectory/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudformation/api_op_CancelUpdateStack.go b/service/cloudformation/api_op_CancelUpdateStack.go index 67631fcc8de..7a9474081d4 100644 --- a/service/cloudformation/api_op_CancelUpdateStack.go +++ b/service/cloudformation/api_op_CancelUpdateStack.go @@ -37,10 +37,10 @@ type CancelUpdateStackInput struct { StackName *string // A unique identifier for this CancelUpdateStack request. Specify this token if - // you plan to retry requests so that CloudFormation knows that you're not + // you plan to retry requests so that AWS CloudFormation knows that you're not // attempting to cancel an update on a stack with the same name. You might retry - // CancelUpdateStack requests to ensure that CloudFormation successfully received - // them. + // CancelUpdateStack requests to ensure that AWS CloudFormation successfully + // received them. ClientRequestToken *string noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_ContinueUpdateRollback.go b/service/cloudformation/api_op_ContinueUpdateRollback.go index 801cc336596..42ce3c32033 100644 --- a/service/cloudformation/api_op_ContinueUpdateRollback.go +++ b/service/cloudformation/api_op_ContinueUpdateRollback.go @@ -16,12 +16,13 @@ import ( // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) // and continue the rollback. By continuing the rollback, you can return your stack // to a working state (the UPDATE_ROLLBACK_COMPLETE state), and then try to update -// the stack again. A stack goes into the UPDATE_ROLLBACK_FAILED state when +// the stack again. A stack goes into the UPDATE_ROLLBACK_FAILED state when AWS // CloudFormation cannot roll back all changes after a failed stack update. For // example, you might have a stack that is rolling back to an old database instance -// that was deleted outside of CloudFormation. Because CloudFormation doesn't know -// the database was deleted, it assumes that the database instance still exists and -// attempts to roll back to it, causing the update rollback to fail. +// that was deleted outside of AWS CloudFormation. Because AWS CloudFormation +// doesn't know the database was deleted, it assumes that the database instance +// still exists and attempts to roll back to it, causing the update rollback to +// fail. func (c *Client) ContinueUpdateRollback(ctx context.Context, params *ContinueUpdateRollbackInput, optFns ...func(*Options)) (*ContinueUpdateRollbackOutput, error) { if params == nil { params = &ContinueUpdateRollbackInput{} @@ -49,50 +50,52 @@ type ContinueUpdateRollbackInput struct { StackName *string // A unique identifier for this ContinueUpdateRollback request. Specify this token - // if you plan to retry requests so that CloudFormationknows that you're not + // if you plan to retry requests so that AWS CloudFormation knows that you're not // attempting to continue the rollback to a stack with the same name. You might - // retry ContinueUpdateRollback requests to ensure that CloudFormation successfully - // received them. + // retry ContinueUpdateRollback requests to ensure that AWS CloudFormation + // successfully received them. ClientRequestToken *string - // A list of the logical IDs of the resources that CloudFormation skips during the - // continue update rollback operation. You can specify only resources that are in - // the UPDATE_FAILED state because a rollback failed. You can't specify resources - // that are in the UPDATE_FAILED state for other reasons, for example, because an - // update was cancelled. To check why a resource update failed, use the + // A list of the logical IDs of the resources that AWS CloudFormation skips during + // the continue update rollback operation. You can specify only resources that are + // in the UPDATE_FAILED state because a rollback failed. You can't specify + // resources that are in the UPDATE_FAILED state for other reasons, for example, + // because an update was cancelled. To check why a resource update failed, use the // DescribeStackResources action, and view the resource status reason. Specify this - // property to skip rolling back resources that CloudFormation can't successfully - // roll back. We recommend that you troubleshoot + // property to skip rolling back resources that AWS CloudFormation can't + // successfully roll back. We recommend that you troubleshoot // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) - // resources before skipping them. CloudFormation sets the status of the specified - // resources to UPDATE_COMPLETE and continues to roll back the stack. After the - // rollback is complete, the state of the skipped resources will be inconsistent - // with the state of the resources in the stack template. Before performing another - // stack update, you must update the stack or resources to be consistent with each - // other. If you don't, subsequent stack updates might fail, and the stack will - // become unrecoverable. Specify the minimum number of resources required to - // successfully roll back your stack. For example, a failed resource update might - // cause dependent resources to fail. In this case, it might not be necessary to - // skip the dependent resources. To skip resources that are part of nested stacks, - // use the following format: NestedStackName.ResourceLogicalID. If you want to - // specify the logical ID of a stack resource (Type: AWS::CloudFormation::Stack) in - // the ResourcesToSkip list, then its corresponding embedded stack must be in one - // of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or DELETE_FAILED. - // Don't confuse a child stack's name with its corresponding logical ID defined in - // the parent stack. For an example of a continue update rollback operation with - // nested stacks, see Using ResourcesToSkip to recover a nested stacks hierarchy + // resources before skipping them. AWS CloudFormation sets the status of the + // specified resources to UPDATE_COMPLETE and continues to roll back the stack. + // After the rollback is complete, the state of the skipped resources will be + // inconsistent with the state of the resources in the stack template. Before + // performing another stack update, you must update the stack or resources to be + // consistent with each other. If you don't, subsequent stack updates might fail, + // and the stack will become unrecoverable. Specify the minimum number of resources + // required to successfully roll back your stack. For example, a failed resource + // update might cause dependent resources to fail. In this case, it might not be + // necessary to skip the dependent resources. To skip resources that are part of + // nested stacks, use the following format: NestedStackName.ResourceLogicalID. If + // you want to specify the logical ID of a stack resource (Type: + // AWS::CloudFormation::Stack) in the ResourcesToSkip list, then its corresponding + // embedded stack must be in one of the following states: DELETE_IN_PROGRESS, + // DELETE_COMPLETE, or DELETE_FAILED. Don't confuse a child stack's name with its + // corresponding logical ID defined in the parent stack. For an example of a + // continue update rollback operation with nested stacks, see Using ResourcesToSkip + // to recover a nested stacks hierarchy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html#nested-stacks). ResourcesToSkip []string - // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role - // that CloudFormation assumes to roll back the stack. CloudFormation uses the - // role's credentials to make calls on your behalf. CloudFormation always uses this - // role for all future operations on the stack. As long as users have permission to - // operate on the stack, CloudFormation uses this role even if the users don't have - // permission to pass it. Ensure that the role grants least privilege. If you don't - // specify a value, CloudFormation uses the role that was previously associated - // with the stack. If no role is available, CloudFormation uses a temporary session - // that is generated from your user credentials. + // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) + // role that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation + // uses the role's credentials to make calls on your behalf. AWS CloudFormation + // always uses this role for all future operations on the stack. As long as users + // have permission to operate on the stack, AWS CloudFormation uses this role even + // if the users don't have permission to pass it. Ensure that the role grants least + // privilege. If you don't specify a value, AWS CloudFormation uses the role that + // was previously associated with the stack. If no role is available, AWS + // CloudFormation uses a temporary session that is generated from your user + // credentials. RoleARN *string noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_CreateChangeSet.go b/service/cloudformation/api_op_CreateChangeSet.go index a93e2522c0f..2c318d621b0 100644 --- a/service/cloudformation/api_op_CreateChangeSet.go +++ b/service/cloudformation/api_op_CreateChangeSet.go @@ -14,22 +14,22 @@ import ( // Creates a list of changes that will be applied to a stack so that you can review // the changes before executing them. You can create a change set for a stack that // doesn't exist or an existing stack. If you create a change set for a stack that -// doesn't exist, the change set shows all of the resources that CloudFormation -// will create. If you create a change set for an existing stack, CloudFormation -// compares the stack's information with the information that you submit in the -// change set and lists the differences. Use change sets to understand which -// resources CloudFormation will create or change, and how it will change resources -// in an existing stack, before you create or update a stack. To create a change -// set for a stack that doesn't exist, for the ChangeSetType parameter, specify -// CREATE. To create a change set for an existing stack, specify UPDATE for the -// ChangeSetType parameter. To create a change set for an import operation, specify -// IMPORT for the ChangeSetType parameter. After the CreateChangeSet call -// successfully completes, CloudFormation starts creating the change set. To check -// the status of the change set or to review it, use the DescribeChangeSet action. -// When you are satisfied with the changes the change set will make, execute the -// change set by using the ExecuteChangeSet action. CloudFormation doesn't make -// changes until you execute the change set. To create a change set for the entire -// stack hierachy, set IncludeNestedStacks to True. +// doesn't exist, the change set shows all of the resources that AWS CloudFormation +// will create. If you create a change set for an existing stack, AWS +// CloudFormation compares the stack's information with the information that you +// submit in the change set and lists the differences. Use change sets to +// understand which resources AWS CloudFormation will create or change, and how it +// will change resources in an existing stack, before you create or update a stack. +// To create a change set for a stack that doesn't exist, for the ChangeSetType +// parameter, specify CREATE. To create a change set for an existing stack, specify +// UPDATE for the ChangeSetType parameter. To create a change set for an import +// operation, specify IMPORT for the ChangeSetType parameter. After the +// CreateChangeSet call successfully completes, AWS CloudFormation starts creating +// the change set. To check the status of the change set or to review it, use the +// DescribeChangeSet action. When you are satisfied with the changes the change set +// will make, execute the change set by using the ExecuteChangeSet action. AWS +// CloudFormation doesn't make changes until you execute the change set. To create +// a change set for the entire stack hierachy, set IncludeNestedStacks to True. func (c *Client) CreateChangeSet(ctx context.Context, params *CreateChangeSetInput, optFns ...func(*Options)) (*CreateChangeSetOutput, error) { if params == nil { params = &CreateChangeSetInput{} @@ -57,22 +57,22 @@ type CreateChangeSetInput struct { ChangeSetName *string // The name or the unique ID of the stack for which you are creating a change set. - // CloudFormation generates the change set by comparing this stack's information - // with the information that you submit, such as a modified template or different - // parameter input values. + // AWS CloudFormation generates the change set by comparing this stack's + // information with the information that you submit, such as a modified template or + // different parameter input values. // // This member is required. StackName *string // In some cases, you must explicitly acknowledge that your stack template contains - // certain capabilities in order for CloudFormation to create the stack. + // certain capabilities in order for AWS CloudFormation to create the stack. // // * // CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include - // resources that can affect permissions in your account; for example, by creating - // new Identity and Access Management (IAM) users. For those stacks, you must - // explicitly acknowledge this by specifying one of these capabilities. The - // following IAM resources require you to specify either the CAPABILITY_IAM or + // resources that can affect permissions in your AWS account; for example, by + // creating new AWS Identity and Access Management (IAM) users. For those stacks, + // you must explicitly acknowledge this by specifying one of these capabilities. + // The following IAM resources require you to specify either the CAPABILITY_IAM or // CAPABILITY_NAMED_IAM capability. // // * If you have IAM resources, you can specify @@ -82,10 +82,10 @@ type CreateChangeSetInput struct { // specify CAPABILITY_NAMED_IAM. // // * If you don't specify either of these - // capabilities, CloudFormation returns an InsufficientCapabilities error. + // capabilities, AWS CloudFormation returns an InsufficientCapabilities error. // - // If your - // stack template contains these resources, we recommend that you review all + // If + // your stack template contains these resources, we recommend that you review all // permissions associated with them and edit their permissions if necessary. // // * @@ -117,7 +117,8 @@ type CreateChangeSetInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in CloudFormation Templates + // more information, see Acknowledging IAM Resources in AWS CloudFormation + // Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -133,31 +134,33 @@ type CreateChangeSetInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by CloudFormation. This capacity does not - // apply to creating change sets, and specifying it when creating change sets has - // no effect. If you want to create a stack from a stack template that contains + // transforms, which are macros hosted by AWS CloudFormation. This capacity does + // not apply to creating change sets, and specifying it when creating change sets + // has no effect. If you want to create a stack from a stack template that contains // macros and nested stacks, you must create or update the stack directly from the // template using the CreateStack or UpdateStack action, and specifying this - // capability. For more information on macros, see Using CloudFormation Macros to - // Perform Custom Processing on Templates + // capability. For more information on macros, see Using AWS CloudFormation Macros + // to Perform Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). Capabilities []types.Capability // The type of change set operation. To create a change set for a new stack, // specify CREATE. To create a change set for an existing stack, specify UPDATE. To // create a change set for an import operation, specify IMPORT. If you create a - // change set for a new stack, CloudFormation creates a stack with a unique stack - // ID, but no template or resources. The stack will be in the REVIEW_IN_PROGRESS + // change set for a new stack, AWS Cloudformation creates a stack with a unique + // stack ID, but no template or resources. The stack will be in the + // REVIEW_IN_PROGRESS // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995) - // state until you execute the change set. By default, CloudFormation specifies + // state until you execute the change set. By default, AWS CloudFormation specifies // UPDATE. You can't use the UPDATE type to create a change set for a new stack or // the CREATE type to create a change set for an existing stack. ChangeSetType types.ChangeSetType // A unique identifier for this CreateChangeSet request. Specify this token if you - // plan to retry requests so that CloudFormation knows that you're not attempting - // to create another change set with the same name. You might retry CreateChangeSet - // requests to ensure that CloudFormation successfully received them. + // plan to retry requests so that AWS CloudFormation knows that you're not + // attempting to create another change set with the same name. You might retry + // CreateChangeSet requests to ensure that AWS CloudFormation successfully received + // them. ClientToken *string // A description to help you identify this change set. @@ -169,7 +172,7 @@ type CreateChangeSetInput struct { IncludeNestedStacks *bool // The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon - // SNS) topics that CloudFormation associates with the stack. To remove all + // SNS) topics that AWS CloudFormation associates with the stack. To remove all // associated notification topics, specify an empty list. NotificationARNs []string @@ -180,48 +183,50 @@ type CreateChangeSetInput struct { // The template resource types that you have permissions to work with if you // execute this change set, such as AWS::EC2::Instance, AWS::EC2::*, or // Custom::MyCustomInstance. If the list of resource types doesn't include a - // resource type that you're updating, the stack update fails. By default, - // CloudFormation grants permissions to all resource types. Identity and Access - // Management (IAM) uses this parameter for condition keys in IAM policies for - // CloudFormation. For more information, see Controlling Access with Identity and - // Access Management + // resource type that you're updating, the stack update fails. By default, AWS + // CloudFormation grants permissions to all resource types. AWS Identity and Access + // Management (IAM) uses this parameter for condition keys in IAM policies for AWS + // CloudFormation. For more information, see Controlling Access with AWS Identity + // and Access Management // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. ResourceTypes []string // The resources to import into your stack. ResourcesToImport []types.ResourceToImport - // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role - // that CloudFormation assumes when executing the change set. CloudFormation uses - // the role's credentials to make calls on your behalf. CloudFormation uses this - // role for all future operations on the stack. As long as users have permission to - // operate on the stack, CloudFormation uses this role even if the users don't have - // permission to pass it. Ensure that the role grants least privilege. If you don't - // specify a value, CloudFormation uses the role that was previously associated - // with the stack. If no role is available, CloudFormation uses a temporary session - // that is generated from your user credentials. + // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) + // role that AWS CloudFormation assumes when executing the change set. AWS + // CloudFormation uses the role's credentials to make calls on your behalf. AWS + // CloudFormation uses this role for all future operations on the stack. As long as + // users have permission to operate on the stack, AWS CloudFormation uses this role + // even if the users don't have permission to pass it. Ensure that the role grants + // least privilege. If you don't specify a value, AWS CloudFormation uses the role + // that was previously associated with the stack. If no role is available, AWS + // CloudFormation uses a temporary session that is generated from your user + // credentials. RoleARN *string - // The rollback triggers for CloudFormation to monitor during stack creation and - // updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for AWS CloudFormation to monitor during stack creation + // and updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *types.RollbackConfiguration - // Key-value pairs to associate with this stack. CloudFormation also propagates + // Key-value pairs to associate with this stack. AWS CloudFormation also propagates // these tags to resources in the stack. You can specify a maximum of 50 tags. Tags []types.Tag // A structure that contains the body of the revised template, with a minimum - // length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates - // the change set by comparing this template with the template of the stack that - // you specified. Conditional: You must specify only TemplateBody or TemplateURL. + // length of 1 byte and a maximum length of 51,200 bytes. AWS CloudFormation + // generates the change set by comparing this template with the template of the + // stack that you specified. Conditional: You must specify only TemplateBody or + // TemplateURL. TemplateBody *string // The location of the file that contains the revised template. The URL must point // to a template (max size: 460,800 bytes) that is located in an S3 bucket or a - // Systems Manager document. CloudFormation generates the change set by comparing - // this template with the stack that you specified. Conditional: You must specify - // only TemplateBody or TemplateURL. + // Systems Manager document. AWS CloudFormation generates the change set by + // comparing this template with the stack that you specified. Conditional: You must + // specify only TemplateBody or TemplateURL. TemplateURL *string // Whether to reuse the template that is associated with the stack to create the diff --git a/service/cloudformation/api_op_CreateStack.go b/service/cloudformation/api_op_CreateStack.go index 9348571f038..21508f7f826 100644 --- a/service/cloudformation/api_op_CreateStack.go +++ b/service/cloudformation/api_op_CreateStack.go @@ -41,14 +41,14 @@ type CreateStackInput struct { StackName *string // In some cases, you must explicitly acknowledge that your stack template contains - // certain capabilities in order for CloudFormation to create the stack. + // certain capabilities in order for AWS CloudFormation to create the stack. // // * // CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include - // resources that can affect permissions in your account; for example, by creating - // new Identity and Access Management (IAM) users. For those stacks, you must - // explicitly acknowledge this by specifying one of these capabilities. The - // following IAM resources require you to specify either the CAPABILITY_IAM or + // resources that can affect permissions in your AWS account; for example, by + // creating new AWS Identity and Access Management (IAM) users. For those stacks, + // you must explicitly acknowledge this by specifying one of these capabilities. + // The following IAM resources require you to specify either the CAPABILITY_IAM or // CAPABILITY_NAMED_IAM capability. // // * If you have IAM resources, you can specify @@ -58,10 +58,10 @@ type CreateStackInput struct { // specify CAPABILITY_NAMED_IAM. // // * If you don't specify either of these - // capabilities, CloudFormation returns an InsufficientCapabilities error. + // capabilities, AWS CloudFormation returns an InsufficientCapabilities error. // - // If your - // stack template contains these resources, we recommend that you review all + // If + // your stack template contains these resources, we recommend that you review all // permissions associated with them and edit their permissions if necessary. // // * @@ -93,7 +93,8 @@ type CreateStackInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in CloudFormation Templates + // more information, see Acknowledging IAM Resources in AWS CloudFormation + // Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -109,24 +110,24 @@ type CreateStackInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by CloudFormation. If you want to create a - // stack from a stack template that contains macros and nested stacks, you must + // transforms, which are macros hosted by AWS CloudFormation. If you want to create + // a stack from a stack template that contains macros and nested stacks, you must // create the stack directly from the template using this capability. You should // only create stacks directly from a stack template that contains macros if you // know what processing the macro performs. Each macro relies on an underlying // Lambda service function for processing stack templates. Be aware that the Lambda - // function owner can update the function operation without CloudFormation being - // notified. For more information, see Using CloudFormation Macros to Perform - // Custom Processing on Templates + // function owner can update the function operation without AWS CloudFormation + // being notified. For more information, see Using AWS CloudFormation Macros to + // Perform Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). Capabilities []types.Capability // A unique identifier for this CreateStack request. Specify this token if you plan - // to retry requests so that CloudFormation knows that you're not attempting to + // to retry requests so that AWS CloudFormation knows that you're not attempting to // create a stack with the same name. You might retry CreateStack requests to - // ensure that CloudFormation successfully received them. All events triggered by a - // given stack operation are assigned the same client request token, which you can - // use to track operations. For example, if you execute a CreateStack operation + // ensure that AWS CloudFormation successfully received them. All events triggered + // by a given stack operation are assigned the same client request token, which you + // can use to track operations. For example, if you execute a CreateStack operation // with the token token1, then all the StackEvents generated by that operation will // have ClientRequestToken set as token1. In the console, stack operations display // the client request token on the Events tab. Stack operations that are initiated @@ -145,8 +146,8 @@ type CreateStackInput struct { // fails and the stack remains unchanged. For more information, see Protecting a // Stack From Being Deleted // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html) - // in the CloudFormation User Guide. Termination protection is disabled on stacks - // by default. For nested stacks + // in the AWS CloudFormation User Guide. Termination protection is disabled on + // stacks by default. For nested stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html), // termination protection is set on the root stack and cannot be changed directly // on the nested stack. @@ -171,38 +172,39 @@ type CreateStackInput struct { // The template resource types that you have permissions to work with for this // create stack action, such as AWS::EC2::Instance, AWS::EC2::*, or // Custom::MyCustomInstance. Use the following syntax to describe template resource - // types: AWS::* (for all Amazon Web Services resources), Custom::* (for all custom - // resources), Custom::logical_ID (for a specific custom resource), - // AWS::service_name::* (for all resources of a particular Amazon Web Services - // service), and AWS::service_name::resource_logical_ID (for a specific Amazon Web - // Services resource). If the list of resource types doesn't include a resource - // that you're creating, the stack creation fails. By default, CloudFormation - // grants permissions to all resource types. Identity and Access Management (IAM) - // uses this parameter for CloudFormation-specific condition keys in IAM policies. - // For more information, see Controlling Access with Identity and Access Management + // types: AWS::* (for all AWS resource), Custom::* (for all custom resources), + // Custom::logical_ID (for a specific custom resource), AWS::service_name::* (for + // all resources of a particular AWS service), and + // AWS::service_name::resource_logical_ID (for a specific AWS resource). If the + // list of resource types doesn't include a resource that you're creating, the + // stack creation fails. By default, AWS CloudFormation grants permissions to all + // resource types. AWS Identity and Access Management (IAM) uses this parameter for + // AWS CloudFormation-specific condition keys in IAM policies. For more + // information, see Controlling Access with AWS Identity and Access Management // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html). ResourceTypes []string - // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role - // that CloudFormation assumes to create the stack. CloudFormation uses the role's - // credentials to make calls on your behalf. CloudFormation always uses this role - // for all future operations on the stack. As long as users have permission to - // operate on the stack, CloudFormation uses this role even if the users don't have - // permission to pass it. Ensure that the role grants least privilege. If you don't - // specify a value, CloudFormation uses the role that was previously associated - // with the stack. If no role is available, CloudFormation uses a temporary session - // that is generated from your user credentials. + // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) + // role that AWS CloudFormation assumes to create the stack. AWS CloudFormation + // uses the role's credentials to make calls on your behalf. AWS CloudFormation + // always uses this role for all future operations on the stack. As long as users + // have permission to operate on the stack, AWS CloudFormation uses this role even + // if the users don't have permission to pass it. Ensure that the role grants least + // privilege. If you don't specify a value, AWS CloudFormation uses the role that + // was previously associated with the stack. If no role is available, AWS + // CloudFormation uses a temporary session that is generated from your user + // credentials. RoleARN *string - // The rollback triggers for CloudFormation to monitor during stack creation and - // updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for AWS CloudFormation to monitor during stack creation + // and updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *types.RollbackConfiguration // Structure containing the stack policy body. For more information, go to Prevent // Updates to Stack Resources // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) - // in the CloudFormation User Guide. You can specify either the StackPolicyBody or - // the StackPolicyURL parameter, but not both. + // in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody + // or the StackPolicyURL parameter, but not both. StackPolicyBody *string // Location of a file containing the stack policy. The URL must point to a policy @@ -211,7 +213,7 @@ type CreateStackInput struct { // not both. StackPolicyURL *string - // Key-value pairs to associate with this stack. CloudFormation also propagates + // Key-value pairs to associate with this stack. AWS CloudFormation also propagates // these tags to the resources created in the stack. A maximum number of 50 tags // can be specified. Tags []types.Tag @@ -219,7 +221,7 @@ type CreateStackInput struct { // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must specify either the + // in the AWS CloudFormation User Guide. Conditional: You must specify either the // TemplateBody or the TemplateURL parameter, but not both. TemplateBody *string @@ -227,7 +229,7 @@ type CreateStackInput struct { // (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems // Manager document. For more information, go to the Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must specify either the + // in the AWS CloudFormation User Guide. Conditional: You must specify either the // TemplateBody or the TemplateURL parameter, but not both. TemplateURL *string diff --git a/service/cloudformation/api_op_CreateStackInstances.go b/service/cloudformation/api_op_CreateStackInstances.go index 528f4268ddc..f349f6aefbb 100644 --- a/service/cloudformation/api_op_CreateStackInstances.go +++ b/service/cloudformation/api_op_CreateStackInstances.go @@ -34,7 +34,7 @@ func (c *Client) CreateStackInstances(ctx context.Context, params *CreateStackIn type CreateStackInstancesInput struct { // The names of one or more Regions where you want to create stack instances using - // the specified accounts. + // the specified AWS account(s). // // This member is required. Regions []string @@ -45,9 +45,9 @@ type CreateStackInstancesInput struct { // This member is required. StackSetName *string - // [Self-managed permissions] The names of one or more accounts that you want to - // create stack instances in the specified Region(s) for. You can specify Accounts - // or DeploymentTargets, but not both. + // [Self-managed permissions] The names of one or more AWS accounts that you want + // to create stack instances in the specified Region(s) for. You can specify + // Accounts or DeploymentTargets, but not both. Accounts []string // [Service-managed permissions] Specifies whether you are acting as an account @@ -59,55 +59,60 @@ type CreateStackInstancesInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs - // [Service-managed permissions] The Organizations accounts for which to create + // [Service-managed permissions] The AWS Organizations accounts for which to create // stack instances in the specified Regions. You can specify Accounts or // DeploymentTargets, but not both. DeploymentTargets *types.DeploymentTargets // The unique identifier for this stack set operation. The operation ID also - // functions as an idempotency token, to ensure that CloudFormation performs the - // stack set operation only once, even if you retry the request multiple times. You - // might retry stack set operation requests to ensure that CloudFormation + // functions as an idempotency token, to ensure that AWS CloudFormation performs + // the stack set operation only once, even if you retry the request multiple times. + // You might retry stack set operation requests to ensure that AWS CloudFormation // successfully received them. If you don't specify an operation ID, the SDK // generates one automatically. Repeating this stack set operation with a new // operation ID retries all stack instances whose status is OUTDATED. OperationId *string - // Preferences for how CloudFormation performs this stack set operation. + // Preferences for how AWS CloudFormation performs this stack set operation. OperationPreferences *types.StackSetOperationPreferences // A list of stack set parameters whose values you want to override in the selected // stack instances. Any overridden parameter values will be applied to all stack // instances in the specified accounts and Regions. When specifying parameters and - // their values, be aware of how CloudFormation sets parameter values during stack - // instance operations: + // their values, be aware of how AWS CloudFormation sets parameter values during + // stack instance operations: // - // * To override the current value for a parameter, include - // the parameter and specify its value. + // * To override the current value for a parameter, + // include the parameter and specify its value. // - // * To leave an overridden parameter set to - // its present value, include the parameter and specify UsePreviousValue as true. - // (You cannot specify both a value and set UsePreviousValue to true.) + // * To leave a parameter set to its + // present value, you can do one of the following: // - // * To set an - // overridden parameter back to the value specified in the stack set, specify a - // parameter list but do not include the parameter in the list. + // * Do not include the parameter + // in the list. // - // * To leave all - // parameters set to their present values, do not specify this property at - // all. + // * Include the parameter and specify UsePreviousValue as true. (You + // cannot specify both a value and set UsePreviousValue to true.) // - // During stack set updates, any parameter values overridden for a stack - // instance are not updated, but retain their overridden value. You can only - // override the parameter values that are specified in the stack set; to add or - // delete a parameter itself, use UpdateStackSet + // * To set all + // overridden parameter back to the values specified in the stack set, specify a + // parameter list but do not include any parameters. + // + // * To leave all parameters set + // to their present values, do not specify this property at all. + // + // During stack set + // updates, any parameter values overridden for a stack instance are not updated, + // but retain their overridden value. You can only override the parameter values + // that are specified in the stack set; to add or delete a parameter itself, use + // UpdateStackSet // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html) // to update the stack set template. ParameterOverrides []types.Parameter diff --git a/service/cloudformation/api_op_CreateStackSet.go b/service/cloudformation/api_op_CreateStackSet.go index d0e611c4c32..fcaea81121d 100644 --- a/service/cloudformation/api_op_CreateStackSet.go +++ b/service/cloudformation/api_op_CreateStackSet.go @@ -44,12 +44,12 @@ type CreateStackSetInput struct { // administrator account. For more information, see Prerequisites: Granting // Permissions for Stack Set Operations // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. AdministrationRoleARN *string - // Describes whether StackSets automatically deploys to Organizations accounts that - // are added to the target organization or organizational unit (OU). Specify only - // if PermissionModel is SERVICE_MANAGED. + // Describes whether StackSets automatically deploys to AWS Organizations accounts + // that are added to the target organization or organizational unit (OU). Specify + // only if PermissionModel is SERVICE_MANAGED. AutoDeployment *types.AutoDeployment // [Service-managed permissions] Specifies whether you are acting as an account @@ -62,43 +62,44 @@ type CreateStackSetInput struct { // SELF. // // * To create a stack set with service-managed permissions while signed in - // to a delegated administrator account, specify DELEGATED_ADMIN. Your account must - // be registered as a delegated admin in the management account. For more + // to a delegated administrator account, specify DELEGATED_ADMIN. Your AWS account + // must be registered as a delegated admin in the management account. For more // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. // - // Stack sets with service-managed permissions - // are created in the management account, including stack sets that are created by - // delegated administrators. + // Stack sets with service-managed + // permissions are created in the management account, including stack sets that are + // created by delegated administrators. CallAs types.CallAs // In some cases, you must explicitly acknowledge that your stack set template - // contains certain capabilities in order for CloudFormation to create the stack - // set and related stack instances. + // contains certain capabilities in order for AWS CloudFormation to create the + // stack set and related stack instances. // - // * CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some - // stack templates might include resources that can affect permissions in your - // account; for example, by creating new Identity and Access Management (IAM) - // users. For those stack sets, you must explicitly acknowledge this by specifying - // one of these capabilities. The following IAM resources require you to specify - // either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. + // * CAPABILITY_IAM and + // CAPABILITY_NAMED_IAM Some stack templates might include resources that can + // affect permissions in your AWS account; for example, by creating new AWS + // Identity and Access Management (IAM) users. For those stack sets, you must + // explicitly acknowledge this by specifying one of these capabilities. The + // following IAM resources require you to specify either the CAPABILITY_IAM or + // CAPABILITY_NAMED_IAM capability. // - // * If you have IAM - // resources, you can specify either capability. + // * If you have IAM resources, you can specify + // either capability. // - // * If you have IAM resources with - // custom names, you must specify CAPABILITY_NAMED_IAM. + // * If you have IAM resources with custom names, you must + // specify CAPABILITY_NAMED_IAM. // - // * If you don't specify - // either of these capabilities, CloudFormation returns an InsufficientCapabilities - // error. + // * If you don't specify either of these + // capabilities, AWS CloudFormation returns an InsufficientCapabilities error. // - // If your stack template contains these resources, we recommend that you - // review all permissions associated with them and edit their permissions if - // necessary. + // If + // your stack template contains these resources, we recommend that you review all + // permissions associated with them and edit their permissions if necessary. // - // * AWS::IAM::AccessKey + // * + // AWS::IAM::AccessKey // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html) // // * @@ -126,7 +127,8 @@ type CreateStackSetInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in CloudFormation Templates + // more information, see Acknowledging IAM Resources in AWS CloudFormation + // Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -134,7 +136,7 @@ type CreateStackSetInput struct { // template references one or more macros, you must create the stack set directly // from the processed template, without first reviewing the resulting changes in a // change set. To create the stack set directly, you must acknowledge this - // capability. For more information, see Using CloudFormation Macros to Perform + // capability. For more information, see Using AWS CloudFormation Macros to Perform // Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). // Stack sets with service-managed permissions do not currently support the use of @@ -142,16 +144,16 @@ type CreateStackSetInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by CloudFormation.) Even if you specify this - // capability for a stack set with service-managed permissions, if you reference a - // macro in your template the stack set operation will fail. + // transforms, which are macros hosted by AWS CloudFormation.) Even if you specify + // this capability for a stack set with service-managed permissions, if you + // reference a macro in your template the stack set operation will fail. Capabilities []types.Capability // A unique identifier for this CreateStackSet request. Specify this token if you - // plan to retry requests so that CloudFormation knows that you're not attempting - // to create another stack set with the same name. You might retry CreateStackSet - // requests to ensure that CloudFormation successfully received them. If you don't - // specify an operation ID, the SDK generates one automatically. + // plan to retry requests so that AWS CloudFormation knows that you're not + // attempting to create another stack set with the same name. You might retry + // CreateStackSet requests to ensure that AWS CloudFormation successfully received + // them. If you don't specify an operation ID, the SDK generates one automatically. ClientRequestToken *string // A description of the stack set. You can use the description to identify the @@ -159,7 +161,7 @@ type CreateStackSetInput struct { Description *string // The name of the IAM execution role to use to create the stack set. If you do not - // specify an execution role, CloudFormation uses the + // specify an execution role, AWS CloudFormation uses the // AWSCloudFormationStackSetExecutionRole role for the stack set operation. Specify // an IAM role only if you are using customized execution roles to control which // stack resources users and groups can include in their stack sets. @@ -178,28 +180,24 @@ type CreateStackSetInput struct { // // * // With service-managed permissions, StackSets automatically creates the IAM roles - // required to deploy to accounts managed by Organizations. For more information, - // see Grant Service-Managed Stack Set Permissions + // required to deploy to accounts managed by AWS Organizations. For more + // information, see Grant Service-Managed Stack Set Permissions // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html). PermissionModel types.PermissionModels - // The stack ID you are importing into a new stack set. Specify the Amazon Resource - // Number (ARN) of the stack. - StackId *string - // The key-value pairs to associate with this stack set and the stacks created from - // it. CloudFormation also propagates these tags to supported resources that are - // created in the stacks. A maximum number of 50 tags can be specified. If you - // specify tags as part of a CreateStackSet action, CloudFormation checks to see if - // you have the required IAM permission to tag resources. If you don't, the entire - // CreateStackSet action fails with an access denied error, and the stack set is - // not created. + // it. AWS CloudFormation also propagates these tags to supported resources that + // are created in the stacks. A maximum number of 50 tags can be specified. If you + // specify tags as part of a CreateStackSet action, AWS CloudFormation checks to + // see if you have the required IAM permission to tag resources. If you don't, the + // entire CreateStackSet action fails with an access denied error, and the stack + // set is not created. Tags []types.Tag // The structure that contains the template body, with a minimum length of 1 byte // and a maximum length of 51,200 bytes. For more information, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must specify either the + // in the AWS CloudFormation User Guide. Conditional: You must specify either the // TemplateBody or the TemplateURL parameter, but not both. TemplateBody *string @@ -207,7 +205,7 @@ type CreateStackSetInput struct { // a template (maximum size: 460,800 bytes) that's located in an Amazon S3 bucket // or a Systems Manager document. For more information, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must specify either the + // in the AWS CloudFormation User Guide. Conditional: You must specify either the // TemplateBody or the TemplateURL parameter, but not both. TemplateURL *string diff --git a/service/cloudformation/api_op_DeleteChangeSet.go b/service/cloudformation/api_op_DeleteChangeSet.go index 4f929717225..c4b80e501d3 100644 --- a/service/cloudformation/api_op_DeleteChangeSet.go +++ b/service/cloudformation/api_op_DeleteChangeSet.go @@ -11,7 +11,7 @@ import ( ) // Deletes the specified change set. Deleting change sets ensures that no one -// executes the wrong change set. If the call successfully completes, +// executes the wrong change set. If the call successfully completes, AWS // CloudFormation successfully deleted the change set. If IncludeNestedStacks // specifies True during the creation of the nested change set, then // DeleteChangeSet will delete all change sets that belong to the stacks hierarchy diff --git a/service/cloudformation/api_op_DeleteStack.go b/service/cloudformation/api_op_DeleteStack.go index d31f44b2760..9b4b06861eb 100644 --- a/service/cloudformation/api_op_DeleteStack.go +++ b/service/cloudformation/api_op_DeleteStack.go @@ -37,11 +37,11 @@ type DeleteStackInput struct { StackName *string // A unique identifier for this DeleteStack request. Specify this token if you plan - // to retry requests so that CloudFormation knows that you're not attempting to + // to retry requests so that AWS CloudFormation knows that you're not attempting to // delete a stack with the same name. You might retry DeleteStack requests to - // ensure that CloudFormation successfully received them. All events triggered by a - // given stack operation are assigned the same client request token, which you can - // use to track operations. For example, if you execute a CreateStack operation + // ensure that AWS CloudFormation successfully received them. All events triggered + // by a given stack operation are assigned the same client request token, which you + // can use to track operations. For example, if you execute a CreateStack operation // with the token token1, then all the StackEvents generated by that operation will // have ClientRequestToken set as token1. In the console, stack operations display // the client request token on the Events tab. Stack operations that are initiated @@ -52,18 +52,18 @@ type DeleteStackInput struct { ClientRequestToken *string // For stacks in the DELETE_FAILED state, a list of resource logical IDs that are - // associated with the resources you want to retain. During deletion, + // associated with the resources you want to retain. During deletion, AWS // CloudFormation deletes the stack but does not delete the retained resources. // Retaining resources is useful when you cannot delete a resource, such as a // non-empty S3 bucket, but you want to delete the stack. RetainResources []string - // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role - // that CloudFormation assumes to delete the stack. CloudFormation uses the role's - // credentials to make calls on your behalf. If you don't specify a value, - // CloudFormation uses the role that was previously associated with the stack. If - // no role is available, CloudFormation uses a temporary session that is generated - // from your user credentials. + // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) + // role that AWS CloudFormation assumes to delete the stack. AWS CloudFormation + // uses the role's credentials to make calls on your behalf. If you don't specify a + // value, AWS CloudFormation uses the role that was previously associated with the + // stack. If no role is available, AWS CloudFormation uses a temporary session that + // is generated from your user credentials. RoleARN *string noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DeleteStackInstances.go b/service/cloudformation/api_op_DeleteStackInstances.go index 0984acda4bb..6836050801c 100644 --- a/service/cloudformation/api_op_DeleteStackInstances.go +++ b/service/cloudformation/api_op_DeleteStackInstances.go @@ -49,7 +49,7 @@ type DeleteStackInstancesInput struct { // This member is required. StackSetName *string - // [Self-managed permissions] The names of the accounts that you want to delete + // [Self-managed permissions] The names of the AWS accounts that you want to delete // stack instances for. You can specify Accounts or DeploymentTargets, but not // both. Accounts []string @@ -63,27 +63,28 @@ type DeleteStackInstancesInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs - // [Service-managed permissions] The Organizations accounts from which to delete - // stack instances. You can specify Accounts or DeploymentTargets, but not both. + // [Service-managed permissions] The AWS Organizations accounts from which to + // delete stack instances. You can specify Accounts or DeploymentTargets, but not + // both. DeploymentTargets *types.DeploymentTargets // The unique identifier for this stack set operation. If you don't specify an // operation ID, the SDK generates one automatically. The operation ID also - // functions as an idempotency token, to ensure that CloudFormation performs the - // stack set operation only once, even if you retry the request multiple times. You - // can retry stack set operation requests to ensure that CloudFormation + // functions as an idempotency token, to ensure that AWS CloudFormation performs + // the stack set operation only once, even if you retry the request multiple times. + // You can retry stack set operation requests to ensure that AWS CloudFormation // successfully received them. Repeating this stack set operation with a new // operation ID retries all stack instances whose status is OUTDATED. OperationId *string - // Preferences for how CloudFormation performs this stack set operation. + // Preferences for how AWS CloudFormation performs this stack set operation. OperationPreferences *types.StackSetOperationPreferences noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DeleteStackSet.go b/service/cloudformation/api_op_DeleteStackSet.go index f038328ed6b..f0d20940486 100644 --- a/service/cloudformation/api_op_DeleteStackSet.go +++ b/service/cloudformation/api_op_DeleteStackSet.go @@ -46,11 +46,11 @@ type DeleteStackSetInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DescribeAccountLimits.go b/service/cloudformation/api_op_DescribeAccountLimits.go index ec05c7ff086..72386ad1f0b 100644 --- a/service/cloudformation/api_op_DescribeAccountLimits.go +++ b/service/cloudformation/api_op_DescribeAccountLimits.go @@ -12,11 +12,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves your account's CloudFormation limits, such as the maximum number of -// stacks that you can create in your account. For more information about account -// limits, see CloudFormation Limits +// Retrieves your account's AWS CloudFormation limits, such as the maximum number +// of stacks that you can create in your account. For more information about +// account limits, see AWS CloudFormation Limits // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) -// in the CloudFormation User Guide. +// in the AWS CloudFormation User Guide. func (c *Client) DescribeAccountLimits(ctx context.Context, params *DescribeAccountLimitsInput, optFns ...func(*Options)) (*DescribeAccountLimitsOutput, error) { if params == nil { params = &DescribeAccountLimitsInput{} @@ -44,8 +44,8 @@ type DescribeAccountLimitsInput struct { // The output for the DescribeAccountLimits action. type DescribeAccountLimitsOutput struct { - // An account limit structure that contain a list of CloudFormation account limits - // and their values. + // An account limit structure that contain a list of AWS CloudFormation account + // limits and their values. AccountLimits []types.AccountLimit // If the output exceeds 1 MB in size, a string that identifies the next page of diff --git a/service/cloudformation/api_op_DescribeChangeSet.go b/service/cloudformation/api_op_DescribeChangeSet.go index 694374e9fa9..d596ec7e893 100644 --- a/service/cloudformation/api_op_DescribeChangeSet.go +++ b/service/cloudformation/api_op_DescribeChangeSet.go @@ -4,25 +4,19 @@ package cloudformation import ( "context" - "errors" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/cloudformation/types" - smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" "time" ) -// Returns the inputs for the change set and a list of changes that CloudFormation -// will make if you execute the change set. For more information, see Updating -// Stacks Using Change Sets +// Returns the inputs for the change set and a list of changes that AWS +// CloudFormation will make if you execute the change set. For more information, +// see Updating Stacks Using Change Sets // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html) -// in the CloudFormation User Guide. +// in the AWS CloudFormation User Guide. func (c *Client) DescribeChangeSet(ctx context.Context, params *DescribeChangeSetInput, optFns ...func(*Options)) (*DescribeChangeSetOutput, error) { if params == nil { params = &DescribeChangeSetInput{} @@ -71,8 +65,8 @@ type DescribeChangeSetOutput struct { // The name of the change set. ChangeSetName *string - // A list of Change structures that describes the resources CloudFormation changes - // if you execute the change set. + // A list of Change structures that describes the resources AWS CloudFormation + // changes if you execute the change set. Changes []types.Change // The start time when the change set was created, in UTC. @@ -83,7 +77,7 @@ type DescribeChangeSetOutput struct { // If the change set execution status is AVAILABLE, you can execute the change set. // If you can’t execute the change set, the status indicates why. For example, a - // change set might be in an UNAVAILABLE state because CloudFormation is still + // change set might be in an UNAVAILABLE state because AWS CloudFormation is still // creating it or in an OBSOLETE state because the stack was already updated. ExecutionStatus types.ExecutionStatus @@ -108,8 +102,8 @@ type DescribeChangeSetOutput struct { // change set hierarchy. ParentChangeSetId *string - // The rollback triggers for CloudFormation to monitor during stack creation and - // updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for AWS CloudFormation to monitor during stack creation + // and updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *types.RollbackConfiguration // Specifies the change set ID of the root change set in the current nested change @@ -127,7 +121,7 @@ type DescribeChangeSetOutput struct { Status types.ChangeSetStatus // A description of the change set's status. For example, if your attempt to create - // a change set failed, CloudFormation shows the error message. + // a change set failed, AWS CloudFormation shows the error message. StatusReason *string // If you execute the change set, the tags that will be associated with the stack. @@ -202,196 +196,6 @@ func (c *Client) addOperationDescribeChangeSetMiddlewares(stack *middleware.Stac return nil } -// DescribeChangeSetAPIClient is a client that implements the DescribeChangeSet -// operation. -type DescribeChangeSetAPIClient interface { - DescribeChangeSet(context.Context, *DescribeChangeSetInput, ...func(*Options)) (*DescribeChangeSetOutput, error) -} - -var _ DescribeChangeSetAPIClient = (*Client)(nil) - -// ChangeSetCreateCompleteWaiterOptions are waiter options for -// ChangeSetCreateCompleteWaiter -type ChangeSetCreateCompleteWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // ChangeSetCreateCompleteWaiter will use default minimum delay of 30 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, ChangeSetCreateCompleteWaiter will use default max delay of 120 - // seconds. Note that MaxDelay must resolve to value greater than or equal to the - // MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeChangeSetInput, *DescribeChangeSetOutput, error) (bool, error) -} - -// ChangeSetCreateCompleteWaiter defines the waiters for ChangeSetCreateComplete -type ChangeSetCreateCompleteWaiter struct { - client DescribeChangeSetAPIClient - - options ChangeSetCreateCompleteWaiterOptions -} - -// NewChangeSetCreateCompleteWaiter constructs a ChangeSetCreateCompleteWaiter. -func NewChangeSetCreateCompleteWaiter(client DescribeChangeSetAPIClient, optFns ...func(*ChangeSetCreateCompleteWaiterOptions)) *ChangeSetCreateCompleteWaiter { - options := ChangeSetCreateCompleteWaiterOptions{} - options.MinDelay = 30 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = changeSetCreateCompleteStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &ChangeSetCreateCompleteWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for ChangeSetCreateComplete waiter. The -// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is -// required and must be greater than zero. -func (w *ChangeSetCreateCompleteWaiter) Wait(ctx context.Context, params *DescribeChangeSetInput, maxWaitDur time.Duration, optFns ...func(*ChangeSetCreateCompleteWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeChangeSet(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for ChangeSetCreateComplete waiter") -} - -func changeSetCreateCompleteStateRetryable(ctx context.Context, input *DescribeChangeSetInput, output *DescribeChangeSetOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "CREATE_COMPLETE" - value, ok := pathValue.(types.ChangeSetStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.ChangeSetStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "FAILED" - value, ok := pathValue.(types.ChangeSetStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.ChangeSetStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "ValidationError" == apiErr.ErrorCode() { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeChangeSet(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go b/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go index 25fd6b6675e..f36c3e83687 100644 --- a/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go +++ b/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go @@ -42,9 +42,9 @@ func (c *Client) DescribeStackDriftDetectionStatus(ctx context.Context, params * type DescribeStackDriftDetectionStatusInput struct { - // The ID of the drift detection results of this operation. CloudFormation + // The ID of the drift detection results of this operation. AWS CloudFormation // generates new results, with a new drift detection ID, each time this operation - // is run. However, the number of drift results CloudFormation retains for any + // is run. However, the number of drift results AWS CloudFormation retains for any // given stack, and for how long, may vary. // // This member is required. @@ -60,13 +60,13 @@ type DescribeStackDriftDetectionStatusOutput struct { // * DETECTION_COMPLETE: The // stack drift detection operation has successfully completed for all resources in // the stack that support drift detection. (Resources that do not currently support - // stack detection remain unchecked.) If you specified logical resource IDs for + // stack detection remain unchecked.) If you specified logical resource IDs for AWS // CloudFormation to use as a filter for the stack drift detection operation, only // the resources with those logical IDs are checked for drift. // // * DETECTION_FAILED: // The stack drift detection operation has failed for at least one resource in the - // stack. Results will be available for resources on which CloudFormation + // stack. Results will be available for resources on which AWS CloudFormation // successfully completed drift detection. // // * DETECTION_IN_PROGRESS: The stack @@ -75,9 +75,9 @@ type DescribeStackDriftDetectionStatusOutput struct { // This member is required. DetectionStatus types.StackDriftDetectionStatus - // The ID of the drift detection results of this operation. CloudFormation + // The ID of the drift detection results of this operation. AWS CloudFormation // generates new results, with a new drift detection ID, each time this operation - // is run. However, the number of reports CloudFormation retains for any given + // is run. However, the number of reports AWS CloudFormation retains for any given // stack, and for how long, may vary. // // This member is required. @@ -108,14 +108,14 @@ type DescribeStackDriftDetectionStatusOutput struct { // configuration. A stack is considered to have drifted if one or more of its // resources have drifted. // - // * NOT_CHECKED: CloudFormation has not checked if the - // stack differs from its expected template configuration. + // * NOT_CHECKED: AWS CloudFormation has not checked if + // the stack differs from its expected template configuration. // - // * IN_SYNC: The stack's - // actual configuration matches its expected template configuration. + // * IN_SYNC: The + // stack's actual configuration matches its expected template configuration. // - // * UNKNOWN: - // This value is reserved for future use. + // * + // UNKNOWN: This value is reserved for future use. StackDriftStatus types.StackDriftStatus // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_DescribeStackEvents.go b/service/cloudformation/api_op_DescribeStackEvents.go index d3fa87f42f2..af4776ba446 100644 --- a/service/cloudformation/api_op_DescribeStackEvents.go +++ b/service/cloudformation/api_op_DescribeStackEvents.go @@ -15,7 +15,7 @@ import ( // Returns all stack related events for a specified stack in reverse chronological // order. For more information about a stack's event history, go to Stacks // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html) -// in the CloudFormation User Guide. You can list events for stacks that have +// in the AWS CloudFormation User Guide. You can list events for stacks that have // failed to create or have been deleted by specifying the unique stack identifier // (stack ID). func (c *Client) DescribeStackEvents(ctx context.Context, params *DescribeStackEventsInput, optFns ...func(*Options)) (*DescribeStackEventsOutput, error) { diff --git a/service/cloudformation/api_op_DescribeStackInstance.go b/service/cloudformation/api_op_DescribeStackInstance.go index 48433c673e9..d32306653e1 100644 --- a/service/cloudformation/api_op_DescribeStackInstance.go +++ b/service/cloudformation/api_op_DescribeStackInstance.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the stack instance that's associated with the specified stack set, +// Returns the stack instance that's associated with the specified stack set, AWS // account, and Region. For a list of stack instances that are associated with a // specific stack set, use ListStackInstances. func (c *Client) DescribeStackInstance(ctx context.Context, params *DescribeStackInstanceInput, optFns ...func(*Options)) (*DescribeStackInstanceOutput, error) { @@ -31,7 +31,7 @@ func (c *Client) DescribeStackInstance(ctx context.Context, params *DescribeStac type DescribeStackInstanceInput struct { - // The ID of an account that's associated with this stack instance. + // The ID of an AWS account that's associated with this stack instance. // // This member is required. StackInstanceAccount *string @@ -56,11 +56,11 @@ type DescribeStackInstanceInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DescribeStackResourceDrifts.go b/service/cloudformation/api_op_DescribeStackResourceDrifts.go index 5bc495bf553..74cddd51ac3 100644 --- a/service/cloudformation/api_op_DescribeStackResourceDrifts.go +++ b/service/cloudformation/api_op_DescribeStackResourceDrifts.go @@ -14,10 +14,10 @@ import ( // Returns drift information for the resources that have been checked for drift in // the specified stack. This includes actual and expected configuration values for -// resources where CloudFormation detects configuration drift. For a given stack, -// there will be one StackResourceDrift for each stack resource that has been -// checked for drift. Resources that have not yet been checked for drift are not -// included. Resources that do not currently support drift detection are not +// resources where AWS CloudFormation detects configuration drift. For a given +// stack, there will be one StackResourceDrift for each stack resource that has +// been checked for drift. Resources that have not yet been checked for drift are +// not included. Resources that do not currently support drift detection are not // checked, and so not included. For a list of resources that support drift // detection, see Resources that Support Drift Detection // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). @@ -67,7 +67,7 @@ type DescribeStackResourceDriftsInput struct { // resources's actual configuration matches its expected template configuration. // // * - // NOT_CHECKED: CloudFormation does not currently return this value. + // NOT_CHECKED: AWS CloudFormation does not currently return this value. StackResourceDriftStatusFilters []types.StackResourceDriftStatus noSmithyDocumentSerde @@ -77,12 +77,12 @@ type DescribeStackResourceDriftsOutput struct { // Drift information for the resources that have been checked for drift in the // specified stack. This includes actual and expected configuration values for - // resources where CloudFormation detects drift. For a given stack, there will be - // one StackResourceDrift for each stack resource that has been checked for drift. - // Resources that have not yet been checked for drift are not included. Resources - // that do not currently support drift detection are not checked, and so not - // included. For a list of resources that support drift detection, see Resources - // that Support Drift Detection + // resources where AWS CloudFormation detects drift. For a given stack, there will + // be one StackResourceDrift for each stack resource that has been checked for + // drift. Resources that have not yet been checked for drift are not included. + // Resources that do not currently support drift detection are not checked, and so + // not included. For a list of resources that support drift detection, see + // Resources that Support Drift Detection // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). // // This member is required. diff --git a/service/cloudformation/api_op_DescribeStackResources.go b/service/cloudformation/api_op_DescribeStackResources.go index a27fdf599a3..8edc7b50489 100644 --- a/service/cloudformation/api_op_DescribeStackResources.go +++ b/service/cloudformation/api_op_DescribeStackResources.go @@ -11,17 +11,17 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns Amazon Web Services resource descriptions for running and deleted -// stacks. If StackName is specified, all the associated resources that are part of -// the stack are returned. If PhysicalResourceId is specified, the associated -// resources of the stack that the resource belongs to are returned. Only the first -// 100 resources will be returned. If your stack has more resources than this, you -// should use ListStackResources instead. For deleted stacks, -// DescribeStackResources returns resource information for up to 90 days after the -// stack has been deleted. You must specify either StackName or PhysicalResourceId, -// but not both. In addition, you can specify LogicalResourceId to filter the -// returned result. For more information about resources, the LogicalResourceId and -// PhysicalResourceId, go to the CloudFormation User Guide +// Returns AWS resource descriptions for running and deleted stacks. If StackName +// is specified, all the associated resources that are part of the stack are +// returned. If PhysicalResourceId is specified, the associated resources of the +// stack that the resource belongs to are returned. Only the first 100 resources +// will be returned. If your stack has more resources than this, you should use +// ListStackResources instead. For deleted stacks, DescribeStackResources returns +// resource information for up to 90 days after the stack has been deleted. You +// must specify either StackName or PhysicalResourceId, but not both. In addition, +// you can specify LogicalResourceId to filter the returned result. For more +// information about resources, the LogicalResourceId and PhysicalResourceId, go to +// the AWS CloudFormation User Guide // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/). A // ValidationError is returned if you specify both StackName and PhysicalResourceId // in the same request. @@ -48,12 +48,12 @@ type DescribeStackResourcesInput struct { LogicalResourceId *string // The name or unique identifier that corresponds to a physical instance ID of a - // resource supported by CloudFormation. For example, for an Amazon Elastic Compute - // Cloud (EC2) instance, PhysicalResourceId corresponds to the InstanceId. You can - // pass the EC2 InstanceId to DescribeStackResources to find which stack the - // instance belongs to and what other resources are part of the stack. Required: - // Conditional. If you do not specify PhysicalResourceId, you must specify - // StackName. Default: There is no default value. + // resource supported by AWS CloudFormation. For example, for an Amazon Elastic + // Compute Cloud (EC2) instance, PhysicalResourceId corresponds to the InstanceId. + // You can pass the EC2 InstanceId to DescribeStackResources to find which stack + // the instance belongs to and what other resources are part of the stack. + // Required: Conditional. If you do not specify PhysicalResourceId, you must + // specify StackName. Default: There is no default value. PhysicalResourceId *string // The name or the unique stack ID that is associated with the stack, which are not diff --git a/service/cloudformation/api_op_DescribeStackSet.go b/service/cloudformation/api_op_DescribeStackSet.go index be30543c6e1..49e43b7a258 100644 --- a/service/cloudformation/api_op_DescribeStackSet.go +++ b/service/cloudformation/api_op_DescribeStackSet.go @@ -43,11 +43,11 @@ type DescribeStackSetInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DescribeStackSetOperation.go b/service/cloudformation/api_op_DescribeStackSetOperation.go index d5ef58b2f1b..30a444f4850 100644 --- a/service/cloudformation/api_op_DescribeStackSetOperation.go +++ b/service/cloudformation/api_op_DescribeStackSetOperation.go @@ -48,11 +48,11 @@ type DescribeStackSetOperationInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DescribeStacks.go b/service/cloudformation/api_op_DescribeStacks.go index f37b0ea171b..074d12d6767 100644 --- a/service/cloudformation/api_op_DescribeStacks.go +++ b/service/cloudformation/api_op_DescribeStacks.go @@ -4,18 +4,12 @@ package cloudformation import ( "context" - "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/cloudformation/types" - smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" - "time" ) // Returns the description for the specified stack; if no stack name was specified, @@ -207,1579 +201,6 @@ func (p *DescribeStacksPaginator) NextPage(ctx context.Context, optFns ...func(* return result, nil } -// StackCreateCompleteWaiterOptions are waiter options for -// StackCreateCompleteWaiter -type StackCreateCompleteWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // StackCreateCompleteWaiter will use default minimum delay of 30 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, StackCreateCompleteWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) -} - -// StackCreateCompleteWaiter defines the waiters for StackCreateComplete -type StackCreateCompleteWaiter struct { - client DescribeStacksAPIClient - - options StackCreateCompleteWaiterOptions -} - -// NewStackCreateCompleteWaiter constructs a StackCreateCompleteWaiter. -func NewStackCreateCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackCreateCompleteWaiterOptions)) *StackCreateCompleteWaiter { - options := StackCreateCompleteWaiterOptions{} - options.MinDelay = 30 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = stackCreateCompleteStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &StackCreateCompleteWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for StackCreateComplete waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *StackCreateCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackCreateCompleteWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for StackCreateComplete waiter") -} - -func stackCreateCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "CREATE_COMPLETE" - var match = true - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - if len(listOfValues) == 0 { - match = false - } - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) != expectedValue { - match = false - } - } - - if match { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "CREATE_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "DELETE_COMPLETE" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "DELETE_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "ROLLBACK_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "ROLLBACK_COMPLETE" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "ValidationError" == apiErr.ErrorCode() { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - -// StackDeleteCompleteWaiterOptions are waiter options for -// StackDeleteCompleteWaiter -type StackDeleteCompleteWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // StackDeleteCompleteWaiter will use default minimum delay of 30 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, StackDeleteCompleteWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) -} - -// StackDeleteCompleteWaiter defines the waiters for StackDeleteComplete -type StackDeleteCompleteWaiter struct { - client DescribeStacksAPIClient - - options StackDeleteCompleteWaiterOptions -} - -// NewStackDeleteCompleteWaiter constructs a StackDeleteCompleteWaiter. -func NewStackDeleteCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackDeleteCompleteWaiterOptions)) *StackDeleteCompleteWaiter { - options := StackDeleteCompleteWaiterOptions{} - options.MinDelay = 30 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = stackDeleteCompleteStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &StackDeleteCompleteWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for StackDeleteComplete waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *StackDeleteCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackDeleteCompleteWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for StackDeleteComplete waiter") -} - -func stackDeleteCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "DELETE_COMPLETE" - var match = true - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - if len(listOfValues) == 0 { - match = false - } - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) != expectedValue { - match = false - } - } - - if match { - return false, nil - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "ValidationError" == apiErr.ErrorCode() { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "DELETE_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "CREATE_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "ROLLBACK_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_ROLLBACK_IN_PROGRESS" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_ROLLBACK_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_ROLLBACK_COMPLETE" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - return true, nil -} - -// StackExistsWaiterOptions are waiter options for StackExistsWaiter -type StackExistsWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // StackExistsWaiter will use default minimum delay of 5 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, StackExistsWaiter will use default max delay of 120 seconds. Note that - // MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) -} - -// StackExistsWaiter defines the waiters for StackExists -type StackExistsWaiter struct { - client DescribeStacksAPIClient - - options StackExistsWaiterOptions -} - -// NewStackExistsWaiter constructs a StackExistsWaiter. -func NewStackExistsWaiter(client DescribeStacksAPIClient, optFns ...func(*StackExistsWaiterOptions)) *StackExistsWaiter { - options := StackExistsWaiterOptions{} - options.MinDelay = 5 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = stackExistsStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &StackExistsWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for StackExists waiter. The maxWaitDur is the -// maximum wait duration the waiter will wait. The maxWaitDur is required and must -// be greater than zero. -func (w *StackExistsWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackExistsWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for StackExists waiter") -} - -func stackExistsStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { - - if err == nil { - return false, nil - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "ValidationError" == apiErr.ErrorCode() { - return true, nil - } - } - - return true, nil -} - -// StackImportCompleteWaiterOptions are waiter options for -// StackImportCompleteWaiter -type StackImportCompleteWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // StackImportCompleteWaiter will use default minimum delay of 30 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, StackImportCompleteWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) -} - -// StackImportCompleteWaiter defines the waiters for StackImportComplete -type StackImportCompleteWaiter struct { - client DescribeStacksAPIClient - - options StackImportCompleteWaiterOptions -} - -// NewStackImportCompleteWaiter constructs a StackImportCompleteWaiter. -func NewStackImportCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackImportCompleteWaiterOptions)) *StackImportCompleteWaiter { - options := StackImportCompleteWaiterOptions{} - options.MinDelay = 30 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = stackImportCompleteStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &StackImportCompleteWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for StackImportComplete waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *StackImportCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackImportCompleteWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for StackImportComplete waiter") -} - -func stackImportCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "IMPORT_COMPLETE" - var match = true - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - if len(listOfValues) == 0 { - match = false - } - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) != expectedValue { - match = false - } - } - - if match { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "ROLLBACK_COMPLETE" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "ROLLBACK_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "IMPORT_ROLLBACK_IN_PROGRESS" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "IMPORT_ROLLBACK_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "IMPORT_ROLLBACK_COMPLETE" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "ValidationError" == apiErr.ErrorCode() { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - -// StackRollbackCompleteWaiterOptions are waiter options for -// StackRollbackCompleteWaiter -type StackRollbackCompleteWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // StackRollbackCompleteWaiter will use default minimum delay of 30 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, StackRollbackCompleteWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) -} - -// StackRollbackCompleteWaiter defines the waiters for StackRollbackComplete -type StackRollbackCompleteWaiter struct { - client DescribeStacksAPIClient - - options StackRollbackCompleteWaiterOptions -} - -// NewStackRollbackCompleteWaiter constructs a StackRollbackCompleteWaiter. -func NewStackRollbackCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackRollbackCompleteWaiterOptions)) *StackRollbackCompleteWaiter { - options := StackRollbackCompleteWaiterOptions{} - options.MinDelay = 30 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = stackRollbackCompleteStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &StackRollbackCompleteWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for StackRollbackComplete waiter. The maxWaitDur -// is the maximum wait duration the waiter will wait. The maxWaitDur is required -// and must be greater than zero. -func (w *StackRollbackCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackRollbackCompleteWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for StackRollbackComplete waiter") -} - -func stackRollbackCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_ROLLBACK_COMPLETE" - var match = true - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - if len(listOfValues) == 0 { - match = false - } - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) != expectedValue { - match = false - } - } - - if match { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_ROLLBACK_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "DELETE_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "ValidationError" == apiErr.ErrorCode() { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - -// StackUpdateCompleteWaiterOptions are waiter options for -// StackUpdateCompleteWaiter -type StackUpdateCompleteWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // StackUpdateCompleteWaiter will use default minimum delay of 30 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, StackUpdateCompleteWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) -} - -// StackUpdateCompleteWaiter defines the waiters for StackUpdateComplete -type StackUpdateCompleteWaiter struct { - client DescribeStacksAPIClient - - options StackUpdateCompleteWaiterOptions -} - -// NewStackUpdateCompleteWaiter constructs a StackUpdateCompleteWaiter. -func NewStackUpdateCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackUpdateCompleteWaiterOptions)) *StackUpdateCompleteWaiter { - options := StackUpdateCompleteWaiterOptions{} - options.MinDelay = 30 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = stackUpdateCompleteStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &StackUpdateCompleteWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for StackUpdateComplete waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *StackUpdateCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackUpdateCompleteWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for StackUpdateComplete waiter") -} - -func stackUpdateCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_COMPLETE" - var match = true - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - if len(listOfValues) == 0 { - match = false - } - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) != expectedValue { - match = false - } - } - - if match { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_ROLLBACK_FAILED" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("Stacks[].StackStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "UPDATE_ROLLBACK_COMPLETE" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.StackStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "ValidationError" == apiErr.ErrorCode() { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeStacks(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/cloudformation/api_op_DescribeType.go b/service/cloudformation/api_op_DescribeType.go index 5df38018aba..f802dc87bfe 100644 --- a/service/cloudformation/api_op_DescribeType.go +++ b/service/cloudformation/api_op_DescribeType.go @@ -70,7 +70,7 @@ type DescribeTypeOutput struct { // Whether CloudFormation automatically updates the extension in this account and // region when a new minor version is published by the extension publisher. Major // versions released by the publisher must be manually updated. For more - // information, see Activating public extensions for use in your account in the + // information, see Activating public extensions for use in your account in the AWS // CloudFormation User Guide. AutoUpdate *bool @@ -116,12 +116,11 @@ type DescribeTypeOutput struct { // extension. This applies only to private extensions you have registered in your // account. For more information, see RegisterType // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html). - // If the registered extension calls any Amazon Web Services APIs, you must create - // an IAM execution role - // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) that includes - // the necessary permissions to call those Amazon Web Services APIs, and provision - // that execution role in your account. CloudFormation then assumes that execution - // role to provide your extension with the appropriate credentials. + // If the registered extension calls any AWS APIs, you must create an IAM execution + // role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) that + // includes the necessary permissions to call those AWS APIs, and provision that + // execution role in your account. CloudFormation then assumes that execution role + // to provide your extension with the appropriate credentials. ExecutionRoleArn *string // Whether or not the extension is activated in the account and region. This only @@ -175,8 +174,8 @@ type DescribeTypeOutput struct { OriginalTypeName *string // For resource type extensions, the provisioning behavior of the resource type. - // CloudFormation determines the provisioning type during registration, based on - // the types of handlers in the schema handler package submitted. Valid values + // AWS CloudFormation determines the provisioning type during registration, based + // on the types of handlers in the schema handler package submitted. Valid values // include: // // * FULLY_MUTABLE: The resource type includes an update handler to @@ -269,8 +268,8 @@ type DescribeTypeOutput struct { // operations. Valid values include: // // * PRIVATE: The extension is only visible and - // usable within the account in which it is registered. CloudFormation marks any - // extensions you register as PRIVATE. + // usable within the account in which it is registered. AWS CloudFormation marks + // any extensions you register as PRIVATE. // // * PUBLIC: The extension is publically // visible and usable within any Amazon account. diff --git a/service/cloudformation/api_op_DetectStackDrift.go b/service/cloudformation/api_op_DetectStackDrift.go index 415e086b6cb..5d9f4f572cc 100644 --- a/service/cloudformation/api_op_DetectStackDrift.go +++ b/service/cloudformation/api_op_DetectStackDrift.go @@ -13,7 +13,7 @@ import ( // Detects whether a stack's actual configuration differs, or has drifted, from // it's expected configuration, as defined in the stack template and any values // specified as template parameters. For each resource in the stack that supports -// drift detection, CloudFormation compares the actual configuration of the +// drift detection, AWS CloudFormation compares the actual configuration of the // resource with its expected template configuration. Only resource properties // explicitly defined in the stack template are checked for drift. A stack is // considered to have drifted if one or more of its resources differ from their @@ -30,7 +30,7 @@ import ( // monitor the progress of a detect stack drift operation. Once the drift detection // operation has completed, use DescribeStackResourceDrifts to return drift // information about the stack and its resources. When detecting drift on a stack, -// CloudFormation does not detect drift on any nested stacks belonging to that +// AWS CloudFormation does not detect drift on any nested stacks belonging to that // stack. Perform DetectStackDrift directly on the nested stack itself. func (c *Client) DetectStackDrift(ctx context.Context, params *DetectStackDriftInput, optFns ...func(*Options)) (*DetectStackDriftOutput, error) { if params == nil { @@ -62,9 +62,9 @@ type DetectStackDriftInput struct { type DetectStackDriftOutput struct { - // The ID of the drift detection results of this operation. CloudFormation + // The ID of the drift detection results of this operation. AWS CloudFormation // generates new results, with a new drift detection ID, each time this operation - // is run. However, the number of drift results CloudFormation retains for any + // is run. However, the number of drift results AWS CloudFormation retains for any // given stack, and for how long, may vary. // // This member is required. diff --git a/service/cloudformation/api_op_DetectStackResourceDrift.go b/service/cloudformation/api_op_DetectStackResourceDrift.go index f5c91c5ae22..cc4598b17dd 100644 --- a/service/cloudformation/api_op_DetectStackResourceDrift.go +++ b/service/cloudformation/api_op_DetectStackResourceDrift.go @@ -14,7 +14,7 @@ import ( // Returns information about whether a resource's actual configuration differs, or // has drifted, from it's expected configuration, as defined in the stack template // and any values specified as template parameters. This information includes -// actual and expected property values for resources in which CloudFormation +// actual and expected property values for resources in which AWS CloudFormation // detects drift. Only resource properties explicitly defined in the stack template // are checked for drift. For more information about stack and resource drift, see // Detecting Unregulated Configuration Changes to Stacks and Resources diff --git a/service/cloudformation/api_op_DetectStackSetDrift.go b/service/cloudformation/api_op_DetectStackSetDrift.go index e6e366fff16..84b0637a54c 100644 --- a/service/cloudformation/api_op_DetectStackSetDrift.go +++ b/service/cloudformation/api_op_DetectStackSetDrift.go @@ -75,17 +75,17 @@ type DetectStackSetDriftInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs // The ID of the stack set operation. OperationId *string - // The user-specified preferences for how CloudFormation performs a stack set + // The user-specified preferences for how AWS CloudFormation performs a stack set // operation. For more information on maximum concurrent accounts and failure // tolerance, see Stack set operation options // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). diff --git a/service/cloudformation/api_op_EstimateTemplateCost.go b/service/cloudformation/api_op_EstimateTemplateCost.go index f4e5839b3ff..05ff9f2674e 100644 --- a/service/cloudformation/api_op_EstimateTemplateCost.go +++ b/service/cloudformation/api_op_EstimateTemplateCost.go @@ -11,9 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the estimated monthly cost of a template. The return value is an Amazon -// Web Services Simple Monthly Calculator URL with a query string that describes -// the resources required to run the template. +// Returns the estimated monthly cost of a template. The return value is an AWS +// Simple Monthly Calculator URL with a query string that describes the resources +// required to run the template. func (c *Client) EstimateTemplateCost(ctx context.Context, params *EstimateTemplateCostInput, optFns ...func(*Options)) (*EstimateTemplateCostOutput, error) { if params == nil { params = &EstimateTemplateCostInput{} @@ -38,15 +38,15 @@ type EstimateTemplateCostInput struct { // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. (For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide.) Conditional: You must pass TemplateBody or - // TemplateURL. If both are passed, only TemplateBody is used. + // in the AWS CloudFormation User Guide.) Conditional: You must pass TemplateBody + // or TemplateURL. If both are passed, only TemplateBody is used. TemplateBody *string // Location of file containing the template body. The URL must point to a template // that is located in an Amazon S3 bucket or a Systems Manager document. For more // information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must pass TemplateURL or + // in the AWS CloudFormation User Guide. Conditional: You must pass TemplateURL or // TemplateBody. If both are passed, only TemplateBody is used. TemplateURL *string @@ -56,8 +56,8 @@ type EstimateTemplateCostInput struct { // The output for a EstimateTemplateCost action. type EstimateTemplateCostOutput struct { - // An Amazon Web Services Simple Monthly Calculator URL with a query string that - // describes the resources required to run the template. + // An AWS Simple Monthly Calculator URL with a query string that describes the + // resources required to run the template. Url *string // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_ExecuteChangeSet.go b/service/cloudformation/api_op_ExecuteChangeSet.go index b93b9b72164..d1a86cf0e3a 100644 --- a/service/cloudformation/api_op_ExecuteChangeSet.go +++ b/service/cloudformation/api_op_ExecuteChangeSet.go @@ -11,14 +11,14 @@ import ( ) // Updates a stack using the input information that was provided when the specified -// change set was created. After the call successfully completes, CloudFormation -// starts updating the stack. Use the DescribeStacks action to view the status of -// the update. When you execute a change set, CloudFormation deletes all other -// change sets associated with the stack because they aren't valid for the updated -// stack. If a stack policy is associated with the stack, CloudFormation enforces -// the policy during the update. You can't specify a temporary stack policy that -// overrides the current policy. To create a change set for the entire stack -// hierachy, IncludeNestedStacks must have been set to True. +// change set was created. After the call successfully completes, AWS +// CloudFormation starts updating the stack. Use the DescribeStacks action to view +// the status of the update. When you execute a change set, AWS CloudFormation +// deletes all other change sets associated with the stack because they aren't +// valid for the updated stack. If a stack policy is associated with the stack, AWS +// CloudFormation enforces the policy during the update. You can't specify a +// temporary stack policy that overrides the current policy. To create a change set +// for the entire stack hierachy, IncludeNestedStacks must have been set to True. func (c *Client) ExecuteChangeSet(ctx context.Context, params *ExecuteChangeSetInput, optFns ...func(*Options)) (*ExecuteChangeSetOutput, error) { if params == nil { params = &ExecuteChangeSetInput{} @@ -44,10 +44,10 @@ type ExecuteChangeSetInput struct { ChangeSetName *string // A unique identifier for this ExecuteChangeSet request. Specify this token if you - // plan to retry requests so that CloudFormation knows that you're not attempting - // to execute a change set to update a stack with the same name. You might retry - // ExecuteChangeSet requests to ensure that CloudFormation successfully received - // them. + // plan to retry requests so that AWS CloudFormation knows that you're not + // attempting to execute a change set to update a stack with the same name. You + // might retry ExecuteChangeSet requests to ensure that AWS CloudFormation + // successfully received them. ClientRequestToken *string // If you specified the name of a change set, specify the stack name or ID (ARN) diff --git a/service/cloudformation/api_op_GetStackPolicy.go b/service/cloudformation/api_op_GetStackPolicy.go index baf6d7b316d..1a5d007b634 100644 --- a/service/cloudformation/api_op_GetStackPolicy.go +++ b/service/cloudformation/api_op_GetStackPolicy.go @@ -45,7 +45,7 @@ type GetStackPolicyOutput struct { // Structure containing the stack policy body. (For more information, go to // Prevent Updates to Stack Resources // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) - // in the CloudFormation User Guide.) + // in the AWS CloudFormation User Guide.) StackPolicyBody *string // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_GetTemplate.go b/service/cloudformation/api_op_GetTemplate.go index 390b95c419e..a3c93ffdfa6 100644 --- a/service/cloudformation/api_op_GetTemplate.go +++ b/service/cloudformation/api_op_GetTemplate.go @@ -33,9 +33,9 @@ func (c *Client) GetTemplate(ctx context.Context, params *GetTemplateInput, optF // The input for a GetTemplate action. type GetTemplateInput struct { - // The name or Amazon Resource Name (ARN) of a change set for which CloudFormation - // returns the associated template. If you specify a name, you must also specify - // the StackName. + // The name or Amazon Resource Name (ARN) of a change set for which AWS + // CloudFormation returns the associated template. If you specify a name, you must + // also specify the StackName. ChangeSetName *string // The name or the unique stack ID that is associated with the stack, which are not @@ -50,11 +50,11 @@ type GetTemplateInput struct { // Default: There is no default value. StackName *string - // For templates that include transforms, the stage of the template that + // For templates that include transforms, the stage of the template that AWS // CloudFormation returns. To get the user-submitted template, specify Original. To - // get the template after CloudFormation has processed all transforms, specify + // get the template after AWS CloudFormation has processed all transforms, specify // Processed. If the template doesn't include transforms, Original and Processed - // return the same template. By default, CloudFormation specifies Processed. + // return the same template. By default, AWS CloudFormation specifies Processed. TemplateStage types.TemplateStage noSmithyDocumentSerde @@ -65,15 +65,15 @@ type GetTemplateOutput struct { // The stage of the template that you can retrieve. For stacks, the Original and // Processed templates are always available. For change sets, the Original template - // is always available. After CloudFormation finishes creating the change set, the - // Processed template becomes available. + // is always available. After AWS CloudFormation finishes creating the change set, + // the Processed template becomes available. StagesAvailable []types.TemplateStage // Structure containing the template body. (For more information, go to Template // Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide.) CloudFormation returns the same template that - // was used when the stack was created. + // in the AWS CloudFormation User Guide.) AWS CloudFormation returns the same + // template that was used when the stack was created. TemplateBody *string // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_GetTemplateSummary.go b/service/cloudformation/api_op_GetTemplateSummary.go index 1a2850f98bd..263acf4a5ea 100644 --- a/service/cloudformation/api_op_GetTemplateSummary.go +++ b/service/cloudformation/api_op_GetTemplateSummary.go @@ -46,11 +46,11 @@ type GetTemplateSummaryInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs // The name or the stack ID that is associated with the stack, which are not always @@ -69,16 +69,16 @@ type GetTemplateSummaryInput struct { // maximum length of 51,200 bytes. For more information about templates, see // Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must specify only one of the - // following parameters: StackName, StackSetName, TemplateBody, or TemplateURL. + // in the AWS CloudFormation User Guide. Conditional: You must specify only one of + // the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL. TemplateBody *string // Location of file containing the template body. The URL must point to a template // (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems // Manager document. For more information about templates, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must specify only one of the - // following parameters: StackName, StackSetName, TemplateBody, or TemplateURL. + // in the AWS CloudFormation User Guide. Conditional: You must specify only one of + // the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL. TemplateURL *string noSmithyDocumentSerde @@ -91,7 +91,8 @@ type GetTemplateSummaryOutput struct { // resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for // this parameter when you use the CreateStack or UpdateStack actions with your // template; otherwise, those actions return an InsufficientCapabilities error. For - // more information, see Acknowledging IAM Resources in CloudFormation Templates + // more information, see Acknowledging IAM Resources in AWS CloudFormation + // Templates // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). Capabilities []types.Capability @@ -122,8 +123,8 @@ type GetTemplateSummaryOutput struct { // as AWS::EC2::Instance, AWS::Dynamo::Table, and Custom::MyCustomInstance. ResourceTypes []string - // The Amazon Web Services template format version, which identifies the - // capabilities of the template. + // The AWS template format version, which identifies the capabilities of the + // template. Version *string // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_ImportStacksToStackSet.go b/service/cloudformation/api_op_ImportStacksToStackSet.go deleted file mode 100644 index a52b3bec2cc..00000000000 --- a/service/cloudformation/api_op_ImportStacksToStackSet.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package cloudformation - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/cloudformation/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Import existing stacks into a new stack sets. Use the stack import operation to -// import up to 10 stacks into a new stack set in the same account as the source -// stack or in a different administrator account and Region, by specifying the -// stack ID of the stack you intend to import. ImportStacksToStackSet is only -// supported by self-managed permissions. -func (c *Client) ImportStacksToStackSet(ctx context.Context, params *ImportStacksToStackSetInput, optFns ...func(*Options)) (*ImportStacksToStackSetOutput, error) { - if params == nil { - params = &ImportStacksToStackSetInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ImportStacksToStackSet", params, optFns, c.addOperationImportStacksToStackSetMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ImportStacksToStackSetOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ImportStacksToStackSetInput struct { - - // The IDs of the stacks you are importing into a stack set. You import up to 10 - // stacks per stack set at a time. - // - // This member is required. - StackIds []string - - // The name of the stack set. The name must be unique in the Region where you - // create your stack set. - // - // This member is required. - StackSetName *string - - // By default, SELF is specified. Use SELF for stack sets with self-managed - // permissions. - // - // * If you are signed in to the management account, specify SELF. - // - // * - // For service managed stack sets, specify DELEGATED_ADMIN. - CallAs types.CallAs - - // A unique, user defined, identifier for the stack set operation. - OperationId *string - - // The user-specified preferences for how CloudFormation performs a stack set - // operation. For more information on maximum concurrent accounts and failure - // tolerance, see Stack set operation options - // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). - OperationPreferences *types.StackSetOperationPreferences - - noSmithyDocumentSerde -} - -type ImportStacksToStackSetOutput struct { - - // The unique identifier for the stack set operation. - OperationId *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationImportStacksToStackSetMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpImportStacksToStackSet{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpImportStacksToStackSet{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opImportStacksToStackSetMiddleware(stack, options); err != nil { - return err - } - if err = addOpImportStacksToStackSetValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportStacksToStackSet(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpImportStacksToStackSet struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpImportStacksToStackSet) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpImportStacksToStackSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*ImportStacksToStackSetInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *ImportStacksToStackSetInput ") - } - - if input.OperationId == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.OperationId = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opImportStacksToStackSetMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpImportStacksToStackSet{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opImportStacksToStackSet(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "cloudformation", - OperationName: "ImportStacksToStackSet", - } -} diff --git a/service/cloudformation/api_op_ListChangeSets.go b/service/cloudformation/api_op_ListChangeSets.go index a0abc0324eb..828fbed5811 100644 --- a/service/cloudformation/api_op_ListChangeSets.go +++ b/service/cloudformation/api_op_ListChangeSets.go @@ -13,7 +13,7 @@ import ( ) // Returns the ID and status of each active change set for a stack. For example, -// CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or +// AWS CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or // CREATE_PENDING state. func (c *Client) ListChangeSets(ctx context.Context, params *ListChangeSetsInput, optFns ...func(*Options)) (*ListChangeSetsOutput, error) { if params == nil { diff --git a/service/cloudformation/api_op_ListExports.go b/service/cloudformation/api_op_ListExports.go index 00e3e4a948c..398e9544b9a 100644 --- a/service/cloudformation/api_op_ListExports.go +++ b/service/cloudformation/api_op_ListExports.go @@ -16,7 +16,8 @@ import ( // this action. Use this action to see the exported output values that you can // import into other stacks. To import values, use the Fn::ImportValue // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html) -// function. For more information, see CloudFormation Export Stack Output Values +// function. For more information, see AWS CloudFormation Export Stack Output +// Values // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html). func (c *Client) ListExports(ctx context.Context, params *ListExportsInput, optFns ...func(*Options)) (*ListExportsOutput, error) { if params == nil { diff --git a/service/cloudformation/api_op_ListImports.go b/service/cloudformation/api_op_ListImports.go index 896cc2b8805..de0783b0bdc 100644 --- a/service/cloudformation/api_op_ListImports.go +++ b/service/cloudformation/api_op_ListImports.go @@ -35,8 +35,8 @@ func (c *Client) ListImports(ctx context.Context, params *ListImportsInput, optF type ListImportsInput struct { - // The name of the exported output value. CloudFormation returns the stack names - // that are importing this value. + // The name of the exported output value. AWS CloudFormation returns the stack + // names that are importing this value. // // This member is required. ExportName *string diff --git a/service/cloudformation/api_op_ListStackInstances.go b/service/cloudformation/api_op_ListStackInstances.go index 23003c5e385..d62c9bba3bd 100644 --- a/service/cloudformation/api_op_ListStackInstances.go +++ b/service/cloudformation/api_op_ListStackInstances.go @@ -14,7 +14,7 @@ import ( // Returns summary information about stack instances that are associated with the // specified stack set. You can filter for stack instances that are associated with -// a specific account name or Region, or that have a specific status. +// a specific AWS account name or Region, or that have a specific status. func (c *Client) ListStackInstances(ctx context.Context, params *ListStackInstancesInput, optFns ...func(*Options)) (*ListStackInstancesOutput, error) { if params == nil { params = &ListStackInstancesInput{} @@ -47,11 +47,11 @@ type ListStackInstancesInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs // The status that stack instances are filtered by. @@ -70,7 +70,7 @@ type ListStackInstancesInput struct { // response object's NextToken parameter is set to null. NextToken *string - // The name of the account that you want to list stack instances for. + // The name of the AWS account that you want to list stack instances for. StackInstanceAccount *string // The name of the Region where you want to list stack instances. diff --git a/service/cloudformation/api_op_ListStackSetOperationResults.go b/service/cloudformation/api_op_ListStackSetOperationResults.go index 00a3bc3faad..fde06c2af0f 100644 --- a/service/cloudformation/api_op_ListStackSetOperationResults.go +++ b/service/cloudformation/api_op_ListStackSetOperationResults.go @@ -50,11 +50,11 @@ type ListStackSetOperationResultsInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs // The maximum number of results to be returned with a single call. If the number diff --git a/service/cloudformation/api_op_ListStackSetOperations.go b/service/cloudformation/api_op_ListStackSetOperations.go index 8196a416c7f..7059300d6dc 100644 --- a/service/cloudformation/api_op_ListStackSetOperations.go +++ b/service/cloudformation/api_op_ListStackSetOperations.go @@ -45,11 +45,11 @@ type ListStackSetOperationsInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs // The maximum number of results to be returned with a single call. If the number diff --git a/service/cloudformation/api_op_ListStackSets.go b/service/cloudformation/api_op_ListStackSets.go index ae100ebce1a..0b9934d30f2 100644 --- a/service/cloudformation/api_op_ListStackSets.go +++ b/service/cloudformation/api_op_ListStackSets.go @@ -16,12 +16,12 @@ import ( // user. // // * [Self-managed permissions] If you set the CallAs parameter to SELF -// while signed in to your account, ListStackSets returns all self-managed stack -// sets in your account. +// while signed in to your AWS account, ListStackSets returns all self-managed +// stack sets in your AWS account. // -// * [Service-managed permissions] If you set the CallAs -// parameter to SELF while signed in to the organization's management account, -// ListStackSets returns all stack sets in the management account. +// * [Service-managed permissions] If you set the +// CallAs parameter to SELF while signed in to the organization's management +// account, ListStackSets returns all stack sets in the management account. // // * // [Service-managed permissions] If you set the CallAs parameter to DELEGATED_ADMIN @@ -53,11 +53,11 @@ type ListStackSetsInput struct { // specify SELF. // // * If you are signed in to a delegated administrator account, - // specify DELEGATED_ADMIN. Your account must be registered as a delegated + // specify DELEGATED_ADMIN. Your AWS account must be registered as a delegated // administrator in the management account. For more information, see Register a // delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs // The maximum number of results to be returned with a single call. If the number diff --git a/service/cloudformation/api_op_ListTypes.go b/service/cloudformation/api_op_ListTypes.go index e81211c4933..6e987155441 100644 --- a/service/cloudformation/api_op_ListTypes.go +++ b/service/cloudformation/api_op_ListTypes.go @@ -59,7 +59,7 @@ type ListTypesInput struct { // previous response object's NextToken parameter is set to null. NextToken *string - // For resource types, the provisioning behavior of the resource type. + // For resource types, the provisioning behavior of the resource type. AWS // CloudFormation determines the provisioning type during registration, based on // the types of handlers in the schema handler package submitted. Valid values // include: diff --git a/service/cloudformation/api_op_PublishType.go b/service/cloudformation/api_op_PublishType.go index 1ab69a2b8ed..54e5d02bf63 100644 --- a/service/cloudformation/api_op_PublishType.go +++ b/service/cloudformation/api_op_PublishType.go @@ -45,9 +45,7 @@ type PublishTypeInput struct { // format, and adhere to semantic versioning when assigning a version number to // your extension: MAJOR.MINOR.PATCH For more information, see Semantic Versioning // 2.0.0 (https://semver.org/). If you do not specify a version number, - // CloudFormation increments the version number by one minor version release. The - // first time you publish a type, CloudFormation sets the version number to 1.0.0, - // regardless of the value you specify. + // CloudFormation increments the version number by one minor version release. PublicVersionNumber *string // The type of the extension. Conditional: You must specify Arn, or TypeName and diff --git a/service/cloudformation/api_op_RegisterPublisher.go b/service/cloudformation/api_op_RegisterPublisher.go index 406feced49e..f4ee70cae71 100644 --- a/service/cloudformation/api_op_RegisterPublisher.go +++ b/service/cloudformation/api_op_RegisterPublisher.go @@ -12,7 +12,7 @@ import ( // Registers your account as a publisher of public extensions in the CloudFormation // registry. Public extensions are available for use by all CloudFormation users. -// This publisher ID applies to your account in all Regions. For information on +// This publisher ID applies to your account in all AWS regions. For information on // requirements for registering as a public extension publisher, see Registering // your account to publish CloudFormation extensions // (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) @@ -34,11 +34,10 @@ func (c *Client) RegisterPublisher(ctx context.Context, params *RegisterPublishe type RegisterPublisherInput struct { - // Whether you accept the Terms and Conditions - // (https://cloudformation-registry-documents.s3.amazonaws.com/Terms_and_Conditions_for_AWS_CloudFormation_Registry_Publishers.pdf) - // for publishing extensions in the CloudFormation registry. You must accept the - // terms and conditions in order to register to publish public extensions to the - // CloudFormation registry. The default is false. + // Whether you accept the terms and conditions for publishing extensions in the + // CloudFormation registry. You must accept the terms and conditions in order to + // register to publish public extensions to the CloudFormation registry. The + // default is false. AcceptTermsAndConditions *bool // If you are using a Bitbucket or GitHub account for identity verification, the diff --git a/service/cloudformation/api_op_RegisterType.go b/service/cloudformation/api_op_RegisterType.go index b467f20e461..1db68bd0e79 100644 --- a/service/cloudformation/api_op_RegisterType.go +++ b/service/cloudformation/api_op_RegisterType.go @@ -12,7 +12,7 @@ import ( ) // Registers an extension with the CloudFormation service. Registering an extension -// makes it available for use in CloudFormation templates in your account, and +// makes it available for use in CloudFormation templates in your AWS account, and // includes: // // * Validating the extension schema @@ -63,7 +63,7 @@ type RegisterTypeInput struct { // GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) // permissions for the schema handler package. For more information, see Actions, // Resources, and Condition Keys for Amazon S3 - // (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html) in the + // (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html) in the AWS // Identity and Access Management User Guide. // // This member is required. @@ -107,15 +107,15 @@ type RegisterTypeInput struct { // invoking the extension. For CloudFormation to assume the specified execution // role, the role must contain a trust relationship with the CloudFormation service // principle (resources.cloudformation.amazonaws.com). For more information on - // adding trust relationships, see Modifying a role trust policy in the Identity - // and Access Management User Guide. If your extension calls Amazon Web Services - // APIs in any of its handlers, you must create an IAM execution role + // adding trust relationships, see Modifying a role trust policy in the AWS + // Identity and Access Management User Guide. If your extension calls AWS APIs in + // any of its handlers, you must create an IAM execution role // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) that includes - // the necessary permissions to call those Amazon Web Services APIs, and provision - // that execution role in your account. When CloudFormation needs to invoke the - // resource type handler, CloudFormation assumes this execution role to create a - // temporary session token, which it then passes to the resource type handler, - // thereby supplying your resource type with the appropriate credentials. + // the necessary permissions to call those AWS APIs, and provision that execution + // role in your account. When CloudFormation needs to invoke the resource type + // handler, CloudFormation assumes this execution role to create a temporary + // session token, which it then passes to the resource type handler, thereby + // supplying your resource type with the appropriate credentials. ExecutionRoleArn *string // Specifies logging configuration information for an extension. diff --git a/service/cloudformation/api_op_SetStackPolicy.go b/service/cloudformation/api_op_SetStackPolicy.go index 4e9f3eb039f..0200dba9d02 100644 --- a/service/cloudformation/api_op_SetStackPolicy.go +++ b/service/cloudformation/api_op_SetStackPolicy.go @@ -37,8 +37,8 @@ type SetStackPolicyInput struct { // Structure containing the stack policy body. For more information, go to Prevent // Updates to Stack Resources // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) - // in the CloudFormation User Guide. You can specify either the StackPolicyBody or - // the StackPolicyURL parameter, but not both. + // in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody + // or the StackPolicyURL parameter, but not both. StackPolicyBody *string // Location of a file containing the stack policy. The URL must point to a policy diff --git a/service/cloudformation/api_op_SetTypeConfiguration.go b/service/cloudformation/api_op_SetTypeConfiguration.go index 4a82aae576d..f8b810fb865 100644 --- a/service/cloudformation/api_op_SetTypeConfiguration.go +++ b/service/cloudformation/api_op_SetTypeConfiguration.go @@ -20,7 +20,7 @@ import ( // dynamic references to restrict sensitive configuration definitions, such as // third-party credentials. For more details on dynamic references, see Using // dynamic references to specify template values (https://docs.aws.amazon.com/) in -// the CloudFormation User Guide. +// the AWS CloudFormation User Guide. func (c *Client) SetTypeConfiguration(ctx context.Context, params *SetTypeConfigurationInput, optFns ...func(*Options)) (*SetTypeConfigurationOutput, error) { if params == nil { params = &SetTypeConfigurationInput{} diff --git a/service/cloudformation/api_op_SignalResource.go b/service/cloudformation/api_op_SignalResource.go index 6ae03608087..efce165b309 100644 --- a/service/cloudformation/api_op_SignalResource.go +++ b/service/cloudformation/api_op_SignalResource.go @@ -13,7 +13,7 @@ import ( // Sends a signal to the specified resource with a success or failure status. You // can use the SignalResource API in conjunction with a creation policy or update -// policy. CloudFormation doesn't proceed with a stack creation or update until +// policy. AWS CloudFormation doesn't proceed with a stack creation or update until // resources receive the required number of signals or the timeout period is // exceeded. The SignalResource API is useful in cases where you want to send // signals from anywhere other than an Amazon EC2 instance. @@ -48,7 +48,7 @@ type SignalResourceInput struct { StackName *string // The status of the signal, which is either success or failure. A failure signal - // causes CloudFormation to immediately fail the stack creation or update. + // causes AWS CloudFormation to immediately fail the stack creation or update. // // This member is required. Status types.ResourceSignalStatus diff --git a/service/cloudformation/api_op_StopStackSetOperation.go b/service/cloudformation/api_op_StopStackSetOperation.go index ca7de1afaf2..f86aa72f107 100644 --- a/service/cloudformation/api_op_StopStackSetOperation.go +++ b/service/cloudformation/api_op_StopStackSetOperation.go @@ -49,11 +49,11 @@ type StopStackSetOperationInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_TestType.go b/service/cloudformation/api_op_TestType.go index 8a1d72dbbc8..cd8a430e27d 100644 --- a/service/cloudformation/api_op_TestType.go +++ b/service/cloudformation/api_op_TestType.go @@ -27,7 +27,7 @@ import ( // in the CloudFormation CLI User Guide. If you do not specify a version, // CloudFormation uses the default version of the extension in your account and // region for testing. To perform testing, CloudFormation assumes the execution -// role specified when the type was registered. For more information, see +// role specified when the test was registered. For more information, see // RegisterType. Once you've initiated testing on an extension using TestType, you // can use DescribeType // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html) @@ -72,7 +72,7 @@ type TestTypeInput struct { // For more information, see Actions, Resources, and Condition Keys for // Amazon S3 // (https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html) - // in the Amazon Web Services Identity and Access Management User Guide. + // in the AWS Identity and Access Management User Guide. LogDeliveryBucket *string // The type of the extension to test. Conditional: You must specify Arn, or diff --git a/service/cloudformation/api_op_UpdateStack.go b/service/cloudformation/api_op_UpdateStack.go index 9a913348536..956f4c4e22d 100644 --- a/service/cloudformation/api_op_UpdateStack.go +++ b/service/cloudformation/api_op_UpdateStack.go @@ -42,14 +42,14 @@ type UpdateStackInput struct { StackName *string // In some cases, you must explicitly acknowledge that your stack template contains - // certain capabilities in order for CloudFormation to update the stack. + // certain capabilities in order for AWS CloudFormation to update the stack. // // * // CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include - // resources that can affect permissions in your account; for example, by creating - // new Identity and Access Management (IAM) users. For those stacks, you must - // explicitly acknowledge this by specifying one of these capabilities. The - // following IAM resources require you to specify either the CAPABILITY_IAM or + // resources that can affect permissions in your AWS account; for example, by + // creating new AWS Identity and Access Management (IAM) users. For those stacks, + // you must explicitly acknowledge this by specifying one of these capabilities. + // The following IAM resources require you to specify either the CAPABILITY_IAM or // CAPABILITY_NAMED_IAM capability. // // * If you have IAM resources, you can specify @@ -59,10 +59,10 @@ type UpdateStackInput struct { // specify CAPABILITY_NAMED_IAM. // // * If you don't specify either of these - // capabilities, CloudFormation returns an InsufficientCapabilities error. + // capabilities, AWS CloudFormation returns an InsufficientCapabilities error. // - // If your - // stack template contains these resources, we recommend that you review all + // If + // your stack template contains these resources, we recommend that you review all // permissions associated with them and edit their permissions if necessary. // // * @@ -94,7 +94,8 @@ type UpdateStackInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in CloudFormation Templates + // more information, see Acknowledging IAM Resources in AWS CloudFormation + // Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -110,24 +111,24 @@ type UpdateStackInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by CloudFormation. If you want to update a - // stack from a stack template that contains macros and nested stacks, you must + // transforms, which are macros hosted by AWS CloudFormation. If you want to update + // a stack from a stack template that contains macros and nested stacks, you must // update the stack directly from the template using this capability. You should // only update stacks directly from a stack template that contains macros if you // know what processing the macro performs. Each macro relies on an underlying // Lambda service function for processing stack templates. Be aware that the Lambda - // function owner can update the function operation without CloudFormation being - // notified. For more information, see Using CloudFormation Macros to Perform - // Custom Processing on Templates + // function owner can update the function operation without AWS CloudFormation + // being notified. For more information, see Using AWS CloudFormation Macros to + // Perform Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). Capabilities []types.Capability // A unique identifier for this UpdateStack request. Specify this token if you plan - // to retry requests so that CloudFormation knows that you're not attempting to + // to retry requests so that AWS CloudFormation knows that you're not attempting to // update a stack with the same name. You might retry UpdateStack requests to - // ensure that CloudFormation successfully received them. All events triggered by a - // given stack operation are assigned the same client request token, which you can - // use to track operations. For example, if you execute a CreateStack operation + // ensure that AWS CloudFormation successfully received them. All events triggered + // by a given stack operation are assigned the same client request token, which you + // can use to track operations. For example, if you execute a CreateStack operation // with the token token1, then all the StackEvents generated by that operation will // have ClientRequestToken set as token1. In the console, stack operations display // the client request token on the Events tab. Stack operations that are initiated @@ -137,7 +138,7 @@ type UpdateStackInput struct { // format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002. ClientRequestToken *string - // Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that + // Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that AWS // CloudFormation associates with the stack. Specify an empty list to remove all // notification topics. NotificationARNs []string @@ -151,27 +152,28 @@ type UpdateStackInput struct { // The template resource types that you have permissions to work with for this // update stack action, such as AWS::EC2::Instance, AWS::EC2::*, or // Custom::MyCustomInstance. If the list of resource types doesn't include a - // resource that you're updating, the stack update fails. By default, - // CloudFormation grants permissions to all resource types. Identity and Access - // Management (IAM) uses this parameter for CloudFormation-specific condition keys - // in IAM policies. For more information, see Controlling Access with Identity and - // Access Management + // resource that you're updating, the stack update fails. By default, AWS + // CloudFormation grants permissions to all resource types. AWS Identity and Access + // Management (IAM) uses this parameter for AWS CloudFormation-specific condition + // keys in IAM policies. For more information, see Controlling Access with AWS + // Identity and Access Management // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html). ResourceTypes []string - // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role - // that CloudFormation assumes to update the stack. CloudFormation uses the role's - // credentials to make calls on your behalf. CloudFormation always uses this role - // for all future operations on the stack. As long as users have permission to - // operate on the stack, CloudFormation uses this role even if the users don't have - // permission to pass it. Ensure that the role grants least privilege. If you don't - // specify a value, CloudFormation uses the role that was previously associated - // with the stack. If no role is available, CloudFormation uses a temporary session - // that is generated from your user credentials. + // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) + // role that AWS CloudFormation assumes to update the stack. AWS CloudFormation + // uses the role's credentials to make calls on your behalf. AWS CloudFormation + // always uses this role for all future operations on the stack. As long as users + // have permission to operate on the stack, AWS CloudFormation uses this role even + // if the users don't have permission to pass it. Ensure that the role grants least + // privilege. If you don't specify a value, AWS CloudFormation uses the role that + // was previously associated with the stack. If no role is available, AWS + // CloudFormation uses a temporary session that is generated from your user + // credentials. RoleARN *string - // The rollback triggers for CloudFormation to monitor during stack creation and - // updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for AWS CloudFormation to monitor during stack creation + // and updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *types.RollbackConfiguration // Structure containing a new stack policy body. You can specify either the @@ -205,28 +207,28 @@ type UpdateStackInput struct { // stack policy, the current policy that is associated with the stack is unchanged. StackPolicyURL *string - // Key-value pairs to associate with this stack. CloudFormation also propagates + // Key-value pairs to associate with this stack. AWS CloudFormation also propagates // these tags to supported resources in the stack. You can specify a maximum number - // of 50 tags. If you don't specify this parameter, CloudFormation doesn't modify - // the stack's tags. If you specify an empty value, CloudFormation removes all - // associated tags. + // of 50 tags. If you don't specify this parameter, AWS CloudFormation doesn't + // modify the stack's tags. If you specify an empty value, AWS CloudFormation + // removes all associated tags. Tags []types.Tag // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. (For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide.) Conditional: You must specify only one of the - // following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate - // to true. + // in the AWS CloudFormation User Guide.) Conditional: You must specify only one of + // the following parameters: TemplateBody, TemplateURL, or set the + // UsePreviousTemplate to true. TemplateBody *string // Location of file containing the template body. The URL must point to a template // that is located in an Amazon S3 bucket or a Systems Manager document. For more // information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must specify only one of the - // following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate - // to true. + // in the AWS CloudFormation User Guide. Conditional: You must specify only one of + // the following parameters: TemplateBody, TemplateURL, or set the + // UsePreviousTemplate to true. TemplateURL *string // Reuse the existing template that is associated with the stack that you are diff --git a/service/cloudformation/api_op_UpdateStackInstances.go b/service/cloudformation/api_op_UpdateStackInstances.go index 9c9f8e3c360..85e15c45751 100644 --- a/service/cloudformation/api_op_UpdateStackInstances.go +++ b/service/cloudformation/api_op_UpdateStackInstances.go @@ -59,10 +59,10 @@ type UpdateStackInstancesInput struct { // This member is required. StackSetName *string - // [Self-managed permissions] The names of one or more accounts for which you want - // to update parameter values for stack instances. The overridden parameter values - // will be applied to all stack instances in the specified accounts and Regions. - // You can specify Accounts or DeploymentTargets, but not both. + // [Self-managed permissions] The names of one or more AWS accounts for which you + // want to update parameter values for stack instances. The overridden parameter + // values will be applied to all stack instances in the specified accounts and + // Regions. You can specify Accounts or DeploymentTargets, but not both. Accounts []string // [Service-managed permissions] Specifies whether you are acting as an account @@ -74,15 +74,15 @@ type UpdateStackInstancesInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs - // [Service-managed permissions] The Organizations accounts for which you want to - // update parameter values for stack instances. If your update targets OUs, the + // [Service-managed permissions] The AWS Organizations accounts for which you want + // to update parameter values for stack instances. If your update targets OUs, the // overridden parameter values only apply to the accounts that are currently in the // target OUs and their child OUs. Accounts added to the target OUs and their child // OUs in the future won't use the overridden values. You can specify Accounts or @@ -90,36 +90,41 @@ type UpdateStackInstancesInput struct { DeploymentTargets *types.DeploymentTargets // The unique identifier for this stack set operation. The operation ID also - // functions as an idempotency token, to ensure that CloudFormation performs the - // stack set operation only once, even if you retry the request multiple times. You - // might retry stack set operation requests to ensure that CloudFormation + // functions as an idempotency token, to ensure that AWS CloudFormation performs + // the stack set operation only once, even if you retry the request multiple times. + // You might retry stack set operation requests to ensure that AWS CloudFormation // successfully received them. If you don't specify an operation ID, the SDK // generates one automatically. OperationId *string - // Preferences for how CloudFormation performs this stack set operation. + // Preferences for how AWS CloudFormation performs this stack set operation. OperationPreferences *types.StackSetOperationPreferences // A list of input parameters whose values you want to update for the specified // stack instances. Any overridden parameter values will be applied to all stack // instances in the specified accounts and Regions. When specifying parameters and - // their values, be aware of how CloudFormation sets parameter values during stack - // instance update operations: + // their values, be aware of how AWS CloudFormation sets parameter values during + // stack instance update operations: // - // * To override the current value for a parameter, - // include the parameter and specify its value. + // * To override the current value for a + // parameter, include the parameter and specify its value. // - // * To leave an overridden parameter - // set to its present value, include the parameter and specify UsePreviousValue as + // * To leave a parameter + // set to its present value, you can do one of the following: + // + // * Do not include the + // parameter in the list. + // + // * Include the parameter and specify UsePreviousValue as // true. (You cannot specify both a value and set UsePreviousValue to true.) // // * To - // set an overridden parameter back to the value specified in the stack set, - // specify a parameter list but do not include the parameter in the list. + // set all overridden parameter back to the values specified in the stack set, + // specify a parameter list but do not include any parameters. // - // * To - // leave all parameters set to their present values, do not specify this property - // at all. + // * To leave all + // parameters set to their present values, do not specify this property at + // all. // // During stack set updates, any parameter values overridden for a stack // instance are not updated, but retain their overridden value. You can only diff --git a/service/cloudformation/api_op_UpdateStackSet.go b/service/cloudformation/api_op_UpdateStackSet.go index 701178625ab..185cb533a0e 100644 --- a/service/cloudformation/api_op_UpdateStackSet.go +++ b/service/cloudformation/api_op_UpdateStackSet.go @@ -44,10 +44,10 @@ type UpdateStackSetInput struct { // to update stack set instances. To update all the stack instances associated with // this stack set, do not specify the Accounts or Regions properties. If the stack // set update includes changes to the template (that is, if the TemplateBody or - // TemplateURL properties are specified), or the Parameters property, + // TemplateURL properties are specified), or the Parameters property, AWS // CloudFormation marks all stack instances with a status of OUTDATED prior to // updating the stack instances in the specified accounts and Regions. If the stack - // set update does not include changes to the template or parameters, + // set update does not include changes to the template or parameters, AWS // CloudFormation updates the stack instances in the specified accounts and // Regions, while leaving all other stack instances with their existing stack // instance status. @@ -59,14 +59,14 @@ type UpdateStackSetInput struct { // administrator account. For more information, see Granting Permissions for Stack // Set Operations // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html) - // in the CloudFormation User Guide. If you specified a customized administrator - // role when you created the stack set, you must specify a customized administrator - // role, even if it is the same customized administrator role used with this stack - // set previously. + // in the AWS CloudFormation User Guide. If you specified a customized + // administrator role when you created the stack set, you must specify a customized + // administrator role, even if it is the same customized administrator role used + // with this stack set previously. AdministrationRoleARN *string // [Service-managed permissions] Describes whether StackSets automatically deploys - // to Organizations accounts that are added to a target organization or + // to AWS Organizations accounts that are added to a target organization or // organizational unit (OU). If you specify AutoDeployment, do not specify // DeploymentTargets or Regions. AutoDeployment *types.AutoDeployment @@ -80,20 +80,20 @@ type UpdateStackSetInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your account must be registered - // as a delegated administrator in the management account. For more information, - // see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your AWS account must be + // registered as a delegated administrator in the management account. For more + // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. CallAs types.CallAs // In some cases, you must explicitly acknowledge that your stack template contains - // certain capabilities in order for CloudFormation to update the stack set and its - // associated stack instances. + // certain capabilities in order for AWS CloudFormation to update the stack set and + // its associated stack instances. // // * CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some - // stack templates might include resources that can affect permissions in your - // account; for example, by creating new Identity and Access Management (IAM) + // stack templates might include resources that can affect permissions in your AWS + // account; for example, by creating new AWS Identity and Access Management (IAM) // users. For those stacks sets, you must explicitly acknowledge this by specifying // one of these capabilities. The following IAM resources require you to specify // either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. @@ -105,12 +105,12 @@ type UpdateStackSetInput struct { // custom names, you must specify CAPABILITY_NAMED_IAM. // // * If you don't specify - // either of these capabilities, CloudFormation returns an InsufficientCapabilities - // error. + // either of these capabilities, AWS CloudFormation returns an + // InsufficientCapabilities error. // - // If your stack template contains these resources, we recommend that you - // review all permissions associated with them and edit their permissions if - // necessary. + // If your stack template contains these + // resources, we recommend that you review all permissions associated with them and + // edit their permissions if necessary. // // * AWS::IAM::AccessKey // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html) @@ -140,7 +140,8 @@ type UpdateStackSetInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in CloudFormation Templates + // more information, see Acknowledging IAM Resources in AWS CloudFormation + // Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -148,7 +149,7 @@ type UpdateStackSetInput struct { // template references one or more macros, you must update the stack set directly // from the processed template, without first reviewing the resulting changes in a // change set. To update the stack set directly, you must acknowledge this - // capability. For more information, see Using CloudFormation Macros to Perform + // capability. For more information, see Using AWS CloudFormation Macros to Perform // Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). // Stack sets with service-managed permissions do not currently support the use of @@ -156,19 +157,19 @@ type UpdateStackSetInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by CloudFormation.) Even if you specify this - // capability for a stack set with service-managed permissions, if you reference a - // macro in your template the stack set operation will fail. + // transforms, which are macros hosted by AWS CloudFormation.) Even if you specify + // this capability for a stack set with service-managed permissions, if you + // reference a macro in your template the stack set operation will fail. Capabilities []types.Capability - // [Service-managed permissions] The Organizations accounts in which to update + // [Service-managed permissions] The AWS Organizations accounts in which to update // associated stack instances. To update all the stack instances associated with // this stack set, do not specify DeploymentTargets or Regions. If the stack set // update includes changes to the template (that is, if TemplateBody or TemplateURL - // is specified), or the Parameters, CloudFormation marks all stack instances with - // a status of OUTDATED prior to updating the stack instances in the specified + // is specified), or the Parameters, AWS CloudFormation marks all stack instances + // with a status of OUTDATED prior to updating the stack instances in the specified // accounts and Regions. If the stack set update does not include changes to the - // template or parameters, CloudFormation updates the stack instances in the + // template or parameters, AWS CloudFormation updates the stack instances in the // specified accounts and Regions, while leaving all other stack instances with // their existing stack instance status. DeploymentTargets *types.DeploymentTargets @@ -177,26 +178,26 @@ type UpdateStackSetInput struct { Description *string // The name of the IAM execution role to use to update the stack set. If you do not - // specify an execution role, CloudFormation uses the + // specify an execution role, AWS CloudFormation uses the // AWSCloudFormationStackSetExecutionRole role for the stack set operation. Specify // an IAM role only if you are using customized execution roles to control which // stack resources users and groups can include in their stack sets. If you specify - // a customized execution role, CloudFormation uses that role to update the stack. - // If you do not specify a customized execution role, CloudFormation performs the - // update using the role previously associated with the stack set, so long as you - // have permissions to perform operations on the stack set. + // a customized execution role, AWS CloudFormation uses that role to update the + // stack. If you do not specify a customized execution role, AWS CloudFormation + // performs the update using the role previously associated with the stack set, so + // long as you have permissions to perform operations on the stack set. ExecutionRoleName *string // The unique ID for this stack set operation. The operation ID also functions as - // an idempotency token, to ensure that CloudFormation performs the stack set + // an idempotency token, to ensure that AWS CloudFormation performs the stack set // operation only once, even if you retry the request multiple times. You might - // retry stack set operation requests to ensure that CloudFormation successfully - // received them. If you don't specify an operation ID, CloudFormation generates - // one automatically. Repeating this stack set operation with a new operation ID - // retries all stack instances whose status is OUTDATED. + // retry stack set operation requests to ensure that AWS CloudFormation + // successfully received them. If you don't specify an operation ID, AWS + // CloudFormation generates one automatically. Repeating this stack set operation + // with a new operation ID retries all stack instances whose status is OUTDATED. OperationId *string - // Preferences for how CloudFormation performs this stack set operation. + // Preferences for how AWS CloudFormation performs this stack set operation. OperationPreferences *types.StackSetOperationPreferences // A list of input parameters for the stack set template. @@ -213,8 +214,8 @@ type UpdateStackSetInput struct { // // * // With service-managed permissions, StackSets automatically creates the IAM roles - // required to deploy to accounts managed by Organizations. For more information, - // see Grant Service-Managed Stack Set Permissions + // required to deploy to accounts managed by AWS Organizations. For more + // information, see Grant Service-Managed Stack Set Permissions // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html). PermissionModel types.PermissionModels @@ -223,22 +224,22 @@ type UpdateStackSetInput struct { // To update all the stack instances associated with this stack set, do not specify // the Accounts or Regions properties. If the stack set update includes changes to // the template (that is, if the TemplateBody or TemplateURL properties are - // specified), or the Parameters property, CloudFormation marks all stack instances - // with a status of OUTDATED prior to updating the stack instances in the specified - // accounts and Regions. If the stack set update does not include changes to the - // template or parameters, CloudFormation updates the stack instances in the - // specified accounts and Regions, while leaving all other stack instances with + // specified), or the Parameters property, AWS CloudFormation marks all stack + // instances with a status of OUTDATED prior to updating the stack instances in the + // specified accounts and Regions. If the stack set update does not include changes + // to the template or parameters, AWS CloudFormation updates the stack instances in + // the specified accounts and Regions, while leaving all other stack instances with // their existing stack instance status. Regions []string // The key-value pairs to associate with this stack set and the stacks created from - // it. CloudFormation also propagates these tags to supported resources that are - // created in the stacks. You can specify a maximum number of 50 tags. If you + // it. AWS CloudFormation also propagates these tags to supported resources that + // are created in the stacks. You can specify a maximum number of 50 tags. If you // specify tags for this parameter, those tags replace any list of tags that are // currently associated with this stack set. This means: // // * If you don't specify - // this parameter, CloudFormation doesn't modify the stack's tags. + // this parameter, AWS CloudFormation doesn't modify the stack's tags. // // * If you // specify any tags using this parameter, you must specify all the tags that you @@ -248,13 +249,13 @@ type UpdateStackSetInput struct { // from the stack set, and therefore from the stacks and resources as well. // // * If - // you specify an empty value, CloudFormation removes all currently associated + // you specify an empty value, AWS CloudFormation removes all currently associated // tags. // - // If you specify new tags as part of an UpdateStackSet action, + // If you specify new tags as part of an UpdateStackSet action, AWS // CloudFormation checks to see if you have the required IAM permission to tag // resources. If you omit tags that are currently associated with the stack set - // from the list of tags you specify, CloudFormation assumes that you want to + // from the list of tags you specify, AWS CloudFormation assumes that you want to // remove those tags from the stack set, and checks to see if you have permission // to untag resources. If you don't have the necessary permission(s), the entire // UpdateStackSet action fails with an access denied error, and the stack set is @@ -264,18 +265,18 @@ type UpdateStackSetInput struct { // The structure that contains the template body, with a minimum length of 1 byte // and a maximum length of 51,200 bytes. For more information, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must specify only one of the - // following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to - // true. + // in the AWS CloudFormation User Guide. Conditional: You must specify only one of + // the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate + // to true. TemplateBody *string // The location of the file that contains the template body. The URL must point to // a template (maximum size: 460,800 bytes) that is located in an Amazon S3 bucket // or a Systems Manager document. For more information, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must specify only one of the - // following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to - // true. + // in the AWS CloudFormation User Guide. Conditional: You must specify only one of + // the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate + // to true. TemplateURL *string // Use the existing template that's associated with the stack set that you're diff --git a/service/cloudformation/api_op_UpdateTerminationProtection.go b/service/cloudformation/api_op_UpdateTerminationProtection.go index 85d38ed2971..7ff82f75e40 100644 --- a/service/cloudformation/api_op_UpdateTerminationProtection.go +++ b/service/cloudformation/api_op_UpdateTerminationProtection.go @@ -15,7 +15,7 @@ import ( // stack remains unchanged. For more information, see Protecting a Stack From Being // Deleted // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html) -// in the CloudFormation User Guide. For nested stacks +// in the AWS CloudFormation User Guide. For nested stacks // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html), // termination protection is set on the root stack and cannot be changed directly // on the nested stack. diff --git a/service/cloudformation/api_op_ValidateTemplate.go b/service/cloudformation/api_op_ValidateTemplate.go index 113f7f09cd1..56e7592a679 100644 --- a/service/cloudformation/api_op_ValidateTemplate.go +++ b/service/cloudformation/api_op_ValidateTemplate.go @@ -11,9 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Validates a specified template. CloudFormation first checks if the template is -// valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If -// both these checks fail, CloudFormation returns a template validation error. +// Validates a specified template. AWS CloudFormation first checks if the template +// is valid JSON. If it isn't, AWS CloudFormation checks if the template is valid +// YAML. If both these checks fail, AWS CloudFormation returns a template +// validation error. func (c *Client) ValidateTemplate(ctx context.Context, params *ValidateTemplateInput, optFns ...func(*Options)) (*ValidateTemplateOutput, error) { if params == nil { params = &ValidateTemplateInput{} @@ -35,7 +36,7 @@ type ValidateTemplateInput struct { // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must pass TemplateURL or + // in the AWS CloudFormation User Guide. Conditional: You must pass TemplateURL or // TemplateBody. If both are passed, only TemplateBody is used. TemplateBody *string @@ -43,7 +44,7 @@ type ValidateTemplateInput struct { // (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems // Manager document. For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the CloudFormation User Guide. Conditional: You must pass TemplateURL or + // in the AWS CloudFormation User Guide. Conditional: You must pass TemplateURL or // TemplateBody. If both are passed, only TemplateBody is used. TemplateURL *string @@ -57,7 +58,8 @@ type ValidateTemplateOutput struct { // resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for // this parameter when you use the CreateStack or UpdateStack actions with your // template; otherwise, those actions return an InsufficientCapabilities error. For - // more information, see Acknowledging IAM Resources in CloudFormation Templates + // more information, see Acknowledging IAM Resources in AWS CloudFormation + // Templates // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). Capabilities []types.Capability diff --git a/service/cloudformation/deserializers.go b/service/cloudformation/deserializers.go index 954b68ad7c4..6fc2e932022 100644 --- a/service/cloudformation/deserializers.go +++ b/service/cloudformation/deserializers.go @@ -3895,132 +3895,6 @@ func awsAwsquery_deserializeOpErrorGetTemplateSummary(response *smithyhttp.Respo } } -type awsAwsquery_deserializeOpImportStacksToStackSet struct { -} - -func (*awsAwsquery_deserializeOpImportStacksToStackSet) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpImportStacksToStackSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorImportStacksToStackSet(response, &metadata) - } - output := &ImportStacksToStackSetOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ImportStacksToStackSetResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentImportStacksToStackSetOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorImportStacksToStackSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidOperationException", errorCode): - return awsAwsquery_deserializeErrorInvalidOperationException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsquery_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("OperationIdAlreadyExistsException", errorCode): - return awsAwsquery_deserializeErrorOperationIdAlreadyExistsException(response, errorBody) - - case strings.EqualFold("OperationInProgressException", errorCode): - return awsAwsquery_deserializeErrorOperationInProgressException(response, errorBody) - - case strings.EqualFold("StackNotFoundException", errorCode): - return awsAwsquery_deserializeErrorStackNotFoundException(response, errorBody) - - case strings.EqualFold("StackSetNotFoundException", errorCode): - return awsAwsquery_deserializeErrorStackSetNotFoundException(response, errorBody) - - case strings.EqualFold("StaleRequestException", errorCode): - return awsAwsquery_deserializeErrorStaleRequestException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsAwsquery_deserializeOpListChangeSets struct { } @@ -7554,50 +7428,6 @@ func awsAwsquery_deserializeErrorStackInstanceNotFoundException(response *smithy return output } -func awsAwsquery_deserializeErrorStackNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.StackNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentStackNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - func awsAwsquery_deserializeErrorStackSetNotEmptyException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.StackSetNotEmptyException{} var buff [1024]byte @@ -13446,55 +13276,6 @@ func awsAwsquery_deserializeDocumentStackInstanceSummary(v **types.StackInstance return nil } -func awsAwsquery_deserializeDocumentStackNotFoundException(v **types.StackNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.StackNotFoundException - if *v == nil { - sv = &types.StackNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -20073,55 +19854,6 @@ func awsAwsquery_deserializeOpDocumentGetTemplateSummaryOutput(v **GetTemplateSu return nil } -func awsAwsquery_deserializeOpDocumentImportStacksToStackSetOutput(v **ImportStacksToStackSetOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ImportStacksToStackSetOutput - if *v == nil { - sv = &ImportStacksToStackSetOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("OperationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.OperationId = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsAwsquery_deserializeOpDocumentListChangeSetsOutput(v **ListChangeSetsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/cloudformation/doc.go b/service/cloudformation/doc.go index c2a2ee047cd..1a977c2f83d 100644 --- a/service/cloudformation/doc.go +++ b/service/cloudformation/doc.go @@ -3,20 +3,19 @@ // Package cloudformation provides the API client, operations, and parameter types // for AWS CloudFormation. // -// AWS CloudFormation CloudFormation allows you to create and manage Amazon Web -// Services infrastructure deployments predictably and repeatedly. You can use -// CloudFormation to leverage Amazon Web Services products, such as Amazon Elastic -// Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification Service, -// Elastic Load Balancing, and Auto Scaling to build highly-reliable, highly -// scalable, cost-effective applications without creating or configuring the -// underlying Amazon Web Services infrastructure. With CloudFormation, you declare -// all of your resources and dependencies in a template file. The template defines -// a collection of resources as a single unit called a stack. CloudFormation -// creates and deletes all member resources of the stack together and manages all -// dependencies between the resources for you. For more information about -// CloudFormation, see the CloudFormation Product Page -// (http://aws.amazon.com/cloudformation/). CloudFormation makes use of other -// Amazon Web Services products. If you need additional technical information about -// a specific Amazon Web Services product, you can find the product's technical +// AWS CloudFormation AWS CloudFormation allows you to create and manage AWS +// infrastructure deployments predictably and repeatedly. You can use AWS +// CloudFormation to leverage AWS products, such as Amazon Elastic Compute Cloud, +// Amazon Elastic Block Store, Amazon Simple Notification Service, Elastic Load +// Balancing, and Auto Scaling to build highly-reliable, highly scalable, +// cost-effective applications without creating or configuring the underlying AWS +// infrastructure. With AWS CloudFormation, you declare all of your resources and +// dependencies in a template file. The template defines a collection of resources +// as a single unit called a stack. AWS CloudFormation creates and deletes all +// member resources of the stack together and manages all dependencies between the +// resources for you. For more information about AWS CloudFormation, see the AWS +// CloudFormation Product Page (http://aws.amazon.com/cloudformation/). Amazon +// CloudFormation makes use of other AWS products. If you need additional technical +// information about a specific AWS product, you can find the product's technical // documentation at docs.aws.amazon.com (https://docs.aws.amazon.com/). package cloudformation diff --git a/service/cloudformation/generated.json b/service/cloudformation/generated.json index d1884c3dd73..6f4e7a263f3 100644 --- a/service/cloudformation/generated.json +++ b/service/cloudformation/generated.json @@ -42,7 +42,6 @@ "api_op_GetStackPolicy.go", "api_op_GetTemplate.go", "api_op_GetTemplateSummary.go", - "api_op_ImportStacksToStackSet.go", "api_op_ListChangeSets.go", "api_op_ListExports.go", "api_op_ListImports.go", diff --git a/service/cloudformation/go.mod b/service/cloudformation/go.mod index cf699686875..33734799f9c 100644 --- a/service/cloudformation/go.mod +++ b/service/cloudformation/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/cloudformation/go.sum +++ b/service/cloudformation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudformation/serializers.go b/service/cloudformation/serializers.go index 0f49909349c..b8483664c9c 100644 --- a/service/cloudformation/serializers.go +++ b/service/cloudformation/serializers.go @@ -2031,62 +2031,6 @@ func (m *awsAwsquery_serializeOpGetTemplateSummary) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpImportStacksToStackSet struct { -} - -func (*awsAwsquery_serializeOpImportStacksToStackSet) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpImportStacksToStackSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ImportStacksToStackSetInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ImportStacksToStackSet") - body.Key("Version").String("2010-05-15") - - if err := awsAwsquery_serializeOpDocumentImportStacksToStackSetInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsAwsquery_serializeOpListChangeSets struct { } @@ -3926,19 +3870,6 @@ func awsAwsquery_serializeDocumentRollbackTriggers(v []types.RollbackTrigger, va return nil } -func awsAwsquery_serializeDocumentStackIdList(v []string, value query.Value) error { - if len(v) == 0 { - return nil - } - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - func awsAwsquery_serializeDocumentStackInstanceFilter(v *types.StackInstanceFilter, value query.Value) error { object := value.Object() _ = object @@ -4578,11 +4509,6 @@ func awsAwsquery_serializeOpDocumentCreateStackSetInput(v *CreateStackSetInput, objectKey.String(string(v.PermissionModel)) } - if v.StackId != nil { - objectKey := object.Key("StackId") - objectKey.String(*v.StackId) - } - if v.StackSetName != nil { objectKey := object.Key("StackSetName") objectKey.String(*v.StackSetName) @@ -5227,42 +5153,6 @@ func awsAwsquery_serializeOpDocumentGetTemplateSummaryInput(v *GetTemplateSummar return nil } -func awsAwsquery_serializeOpDocumentImportStacksToStackSetInput(v *ImportStacksToStackSetInput, value query.Value) error { - object := value.Object() - _ = object - - if len(v.CallAs) > 0 { - objectKey := object.Key("CallAs") - objectKey.String(string(v.CallAs)) - } - - if v.OperationId != nil { - objectKey := object.Key("OperationId") - objectKey.String(*v.OperationId) - } - - if v.OperationPreferences != nil { - objectKey := object.Key("OperationPreferences") - if err := awsAwsquery_serializeDocumentStackSetOperationPreferences(v.OperationPreferences, objectKey); err != nil { - return err - } - } - - if v.StackIds != nil { - objectKey := object.Key("StackIds") - if err := awsAwsquery_serializeDocumentStackIdList(v.StackIds, objectKey); err != nil { - return err - } - } - - if v.StackSetName != nil { - objectKey := object.Key("StackSetName") - objectKey.String(*v.StackSetName) - } - - return nil -} - func awsAwsquery_serializeOpDocumentListChangeSetsInput(v *ListChangeSetsInput, value query.Value) error { object := value.Object() _ = object diff --git a/service/cloudformation/types/errors.go b/service/cloudformation/types/errors.go index e4dc6c63467..0bc43515a09 100644 --- a/service/cloudformation/types/errors.go +++ b/service/cloudformation/types/errors.go @@ -170,7 +170,7 @@ func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { retur // The quota for the resource has already been reached. For information on resource // and stack limitations, see Limits // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) -// in the CloudFormation User Guide. +// in the AWS CloudFormation User Guide. type LimitExceededException struct { Message *string @@ -310,26 +310,6 @@ func (e *StackInstanceNotFoundException) ErrorMessage() string { func (e *StackInstanceNotFoundException) ErrorCode() string { return "StackInstanceNotFoundException" } func (e *StackInstanceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The specified stack ARN doesn’t exist or stack doesn’t exist corresponding to -// the ARN in input. -type StackNotFoundException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *StackNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *StackNotFoundException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *StackNotFoundException) ErrorCode() string { return "StackNotFoundException" } -func (e *StackNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - // You can't yet delete this stack set, because it still contains one or more stack // instances. Delete all stack instances from the stack set before deleting the // stack set. diff --git a/service/cloudformation/types/types.go b/service/cloudformation/types/types.go index 98c7b8500c1..45caa095897 100644 --- a/service/cloudformation/types/types.go +++ b/service/cloudformation/types/types.go @@ -7,13 +7,13 @@ import ( "time" ) -// Structure that contains the results of the account gate function which +// Structure that contains the results of the account gate function which AWS // CloudFormation invokes, if present, before proceeding with a stack set operation -// in an account and Region. For each account and Region, CloudFormation lets you -// specify a Lamdba function that encapsulates any requirements that must be met -// before CloudFormation can proceed with a stack set operation in that account and -// Region. CloudFormation invokes the function each time a stack set operation is -// requested for that account and Region; if the function returns FAILED, +// in an account and Region. For each account and Region, AWS CloudFormation lets +// you specify a Lamdba function that encapsulates any requirements that must be +// met before CloudFormation can proceed with a stack set operation in that account +// and Region. CloudFormation invokes the function each time a stack set operation +// is requested for that account and Region; if the function returns FAILED, // CloudFormation cancels the operation in that account and Region, and sets the // stack set operation result status for that account and Region to FAILED. For // more information, see Configuring a target account gate @@ -24,30 +24,31 @@ type AccountGateResult struct { // // * SUCCEEDED: The account gate function // has determined that the account and Region passes any requirements for a stack - // set operation to occur. CloudFormation proceeds with the stack operation in that - // account and Region. + // set operation to occur. AWS CloudFormation proceeds with the stack operation in + // that account and Region. // - // * FAILED: The account gate function has determined that the - // account and Region does not meet the requirements for a stack set operation to - // occur. AWS CloudFormation cancels the stack set operation in that account and - // Region, and sets the stack set operation result status for that account and - // Region to FAILED. + // * FAILED: The account gate function has determined + // that the account and Region does not meet the requirements for a stack set + // operation to occur. AWS CloudFormation cancels the stack set operation in that + // account and Region, and sets the stack set operation result status for that + // account and Region to FAILED. // - // * SKIPPED: CloudFormation has skipped calling the account - // gate function for this account and Region, for one of the following reasons: + // * SKIPPED: AWS CloudFormation has skipped calling + // the account gate function for this account and Region, for one of the following + // reasons: // - // * - // An account gate function has not been specified for the account and Region. - // CloudFormation proceeds with the stack set operation in this account and - // Region. + // * An account gate function has not been specified for the account and + // Region. AWS CloudFormation proceeds with the stack set operation in this account + // and Region. // // * The AWSCloudFormationStackSetExecutionRole of the stack set - // adminstration account lacks permissions to invoke the function. CloudFormation - // proceeds with the stack set operation in this account and Region. + // adminstration account lacks permissions to invoke the function. AWS + // CloudFormation proceeds with the stack set operation in this account and + // Region. // - // * Either no - // action is necessary, or no action is possible, on the stack. CloudFormation - // skips the stack set operation in this account and Region. + // * Either no action is necessary, or no action is possible, on the + // stack. AWS CloudFormation skips the stack set operation in this account and + // Region. Status AccountGateStatus // The reason for the account gate status assigned to this account and Region for @@ -68,9 +69,9 @@ type AccountGateResult struct { // stack outputs // // For more information about these account limits, and other -// CloudFormation limits, see CloudFormation Limits +// CloudFormation limits, see AWS CloudFormation Limits // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) -// in the CloudFormation User Guide. +// in the AWS CloudFormation User Guide. type AccountLimit struct { // The name of the account limit. Values: ConcurrentResourcesLimit | StackLimit | @@ -84,15 +85,15 @@ type AccountLimit struct { } // [Service-managed permissions] Describes whether StackSets automatically deploys -// to Organizations accounts that are added to a target organization or +// to AWS Organizations accounts that are added to a target organization or // organizational unit (OU). type AutoDeployment struct { // If set to true, StackSets automatically deploys additional stack instances to - // Organizations accounts that are added to a target organization or organizational - // unit (OU) in the specified Regions. If an account is removed from a target - // organization or OU, StackSets deletes stack instances from the account in the - // specified Regions. + // AWS Organizations accounts that are added to a target organization or + // organizational unit (OU) in the specified Regions. If an account is removed from + // a target organization or OU, StackSets deletes stack instances from the account + // in the specified Regions. Enabled *bool // If set to true, stack resources are retained when an account is removed from a @@ -119,16 +120,16 @@ type BatchDescribeTypeConfigurationsError struct { noSmithyDocumentSerde } -// The Change structure describes the changes CloudFormation will perform if you -// execute the change set. +// The Change structure describes the changes AWS CloudFormation will perform if +// you execute the change set. type Change struct { - // A ResourceChange structure that describes the resource and action that + // A ResourceChange structure that describes the resource and action that AWS // CloudFormation will perform. ResourceChange *ResourceChange - // The type of entity that CloudFormation changes. Currently, the only entity type - // is Resource. + // The type of entity that AWS CloudFormation changes. Currently, the only entity + // type is Resource. Type ChangeType noSmithyDocumentSerde @@ -152,7 +153,7 @@ type ChangeSetSummary struct { // If the change set execution status is AVAILABLE, you can execute the change set. // If you can’t execute the change set, the status indicates why. For example, a - // change set might be in an UNAVAILABLE state because CloudFormation is still + // change set might be in an UNAVAILABLE state because AWS CloudFormation is still // creating it or in an OBSOLETE state because the stack was already updated. ExecutionStatus ExecutionStatus @@ -176,13 +177,13 @@ type ChangeSetSummary struct { Status ChangeSetStatus // A description of the change set's status. For example, if your change set is in - // the FAILED state, CloudFormation shows the error message. + // the FAILED state, AWS CloudFormation shows the error message. StatusReason *string noSmithyDocumentSerde } -// [Service-managed permissions] The Organizations accounts to which StackSets +// [Service-managed permissions] The AWS Organizations accounts to which StackSets // deploys. StackSets does not deploy stack instances to the organization // management account, even if the organization management account is in your // organization or in an OU in your organization. For update operations, you can @@ -190,7 +191,7 @@ type ChangeSetSummary struct { // operations, specify OrganizationalUnitIds. type DeploymentTargets struct { - // The names of one or more accounts for which you want to deploy stack set + // The names of one or more AWS accounts for which you want to deploy stack set // updates. Accounts []string @@ -287,8 +288,8 @@ type Output struct { type Parameter struct { // The key associated with the parameter. If you don't specify a key and value for - // a particular parameter, CloudFormation uses the default value that is specified - // in your template. + // a particular parameter, AWS CloudFormation uses the default value that is + // specified in your template. ParameterKey *string // The input value associated with the parameter. @@ -308,8 +309,8 @@ type Parameter struct { noSmithyDocumentSerde } -// A set of criteria that CloudFormation uses to validate parameter values. -// Although other constraints might be defined in the stack template, +// A set of criteria that AWS CloudFormation uses to validate parameter values. +// Although other constraints might be defined in the stack template, AWS // CloudFormation returns only the AllowedValues property. type ParameterConstraints struct { @@ -329,10 +330,10 @@ type ParameterDeclaration struct { Description *string // Flag that indicates whether the parameter value is shown as plain text in logs - // and in the Management Console. + // and in the AWS Management Console. NoEcho *bool - // The criteria that CloudFormation uses to validate parameter values. + // The criteria that AWS CloudFormation uses to validate parameter values. ParameterConstraints *ParameterConstraints // The name that is associated with the parameter. @@ -344,10 +345,11 @@ type ParameterDeclaration struct { noSmithyDocumentSerde } -// Context information that enables CloudFormation to uniquely identify a resource. -// CloudFormation uses context key-value pairs in cases where a resource's logical -// and physical IDs are not enough to uniquely identify that resource. Each context -// key-value pair specifies a resource that contains the targeted resource. +// Context information that enables AWS CloudFormation to uniquely identify a +// resource. AWS CloudFormation uses context key-value pairs in cases where a +// resource's logical and physical IDs are not enough to uniquely identify that +// resource. Each context key-value pair specifies a resource that contains the +// targeted resource. type PhysicalResourceIdContextKeyValuePair struct { // The resource context key. @@ -409,7 +411,7 @@ type PropertyDifference struct { // activated in your account in order for the module itself to be activated. For // more information, see Activating public modules for use in your account // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/modules.html#module-enabling) -// in the CloudFormation User Guide. +// in the AWS CloudFormation User Guide. type RequiredActivatedType struct { // The type name of the public extension. If you specified a TypeNameAlias when @@ -436,12 +438,12 @@ type RequiredActivatedType struct { noSmithyDocumentSerde } -// The ResourceChange structure describes the resource and the action that +// The ResourceChange structure describes the resource and the action that AWS // CloudFormation will perform on it if you execute this change set. type ResourceChange struct { - // The action that CloudFormation takes on the resource, such as Add (adds a new - // resource), Modify (changes a resource), Remove (deletes a resource), Import + // The action that AWS CloudFormation takes on the resource, such as Add (adds a + // new resource), Modify (changes a resource), Remove (deletes a resource), Import // (imports a resource), or Dynamic (exact action for the resource cannot be // determined). Action ChangeAction @@ -450,7 +452,7 @@ type ResourceChange struct { ChangeSetId *string // For the Modify action, a list of ResourceChangeDetail structures that describes - // the changes that CloudFormation will make to the resource. + // the changes that AWS CloudFormation will make to the resource. Details []ResourceChangeDetail // The resource's logical ID, which is defined in the stack's template. @@ -464,7 +466,7 @@ type ResourceChange struct { // have physical IDs because they haven't been created. PhysicalResourceId *string - // For the Modify action, indicates whether CloudFormation will replace the + // For the Modify action, indicates whether AWS CloudFormation will replace the // resource by creating a new one and deleting the old one. This value depends on // the value of the RequiresRecreation property in the ResourceTargetDefinition // structure. For example, if the RequiresRecreation field is Always and the @@ -476,7 +478,7 @@ type ResourceChange struct { // Conditionally, and then Never. Replacement Replacement - // The type of CloudFormation resource, such as AWS::S3::Bucket. + // The type of AWS CloudFormation resource, such as AWS::S3::Bucket. ResourceType *string // For the Modify action, indicates which resource attribute is triggering this @@ -488,7 +490,7 @@ type ResourceChange struct { } // For a resource with Modify as the action, the ResourceChange structure describes -// the changes CloudFormation will make to that resource. +// the changes AWS CloudFormation will make to that resource. type ResourceChangeDetail struct { // The identity of the entity that triggered this change. This entity is a member @@ -518,28 +520,28 @@ type ResourceChangeDetail struct { // // * Automatic entities are AWS::CloudFormation::Stack // resource types, which are also known as nested stacks. If you made no changes to - // the AWS::CloudFormation::Stack resource, CloudFormation sets the ChangeSource to - // Automatic because the nested stack's template might have changed. Changes to a - // nested stack's template aren't visible to CloudFormation until you run an update - // on the parent stack. + // the AWS::CloudFormation::Stack resource, AWS CloudFormation sets the + // ChangeSource to Automatic because the nested stack's template might have + // changed. Changes to a nested stack's template aren't visible to AWS + // CloudFormation until you run an update on the parent stack. ChangeSource ChangeSource - // Indicates whether CloudFormation can determine the target value, and whether the - // target value will change before you execute a change set. For Static - // evaluations, CloudFormation can determine that the target value will change, and - // its value. For example, if you directly modify the InstanceType property of an - // EC2 instance, CloudFormation knows that this property value will change, and its - // value, so this is a Static evaluation. For Dynamic evaluations, cannot determine - // the target value because it depends on the result of an intrinsic function, such - // as a Ref or Fn::GetAtt intrinsic function, when the stack is updated. For - // example, if your template includes a reference to a resource that is - // conditionally recreated, the value of the reference (the physical ID of the + // Indicates whether AWS CloudFormation can determine the target value, and whether + // the target value will change before you execute a change set. For Static + // evaluations, AWS CloudFormation can determine that the target value will change, + // and its value. For example, if you directly modify the InstanceType property of + // an EC2 instance, AWS CloudFormation knows that this property value will change, + // and its value, so this is a Static evaluation. For Dynamic evaluations, cannot + // determine the target value because it depends on the result of an intrinsic + // function, such as a Ref or Fn::GetAtt intrinsic function, when the stack is + // updated. For example, if your template includes a reference to a resource that + // is conditionally recreated, the value of the reference (the physical ID of the // resource) might change, depending on if the resource is recreated. If the // resource is recreated, it will have a new physical ID, so all references to that // resource will also be updated. Evaluation EvaluationType - // A ResourceTargetDefinition structure that describes the field that + // A ResourceTargetDefinition structure that describes the field that AWS // CloudFormation will change and whether the resource will be recreated. Target *ResourceTargetDefinition @@ -566,7 +568,7 @@ type ResourceIdentifierSummary struct { noSmithyDocumentSerde } -// The field that CloudFormation will change, such as the name of a resource's +// The field that AWS CloudFormation will change, such as the name of a resource's // property, and whether the resource will be recreated. type ResourceTargetDefinition struct { @@ -583,7 +585,7 @@ type ResourceTargetDefinition struct { // Conditionally. To determine the conditions for a Conditionally recreation, see // the update behavior for that property // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. RequiresRecreation RequiresRecreation noSmithyDocumentSerde @@ -607,7 +609,7 @@ type ResourceToImport struct { // The type of resource to import into your stack, such as AWS::S3::Bucket. For a // list of supported resource types, see Resources that support import operations // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. // // This member is required. ResourceType *string @@ -615,12 +617,12 @@ type ResourceToImport struct { noSmithyDocumentSerde } -// Structure containing the rollback triggers for CloudFormation to monitor during -// stack creation and updating operations, and for the specified monitoring period -// afterwards. Rollback triggers enable you to have CloudFormation monitor the -// state of your application during stack creation and updating, and to roll back -// that operation if the application breaches the threshold of any of the alarms -// you've specified. For more information, see Monitor and Roll Back Stack +// Structure containing the rollback triggers for AWS CloudFormation to monitor +// during stack creation and updating operations, and for the specified monitoring +// period afterwards. Rollback triggers enable you to have AWS CloudFormation +// monitor the state of your application during stack creation and updating, and to +// roll back that operation if the application breaches the threshold of any of the +// alarms you've specified. For more information, see Monitor and Roll Back Stack // Operations // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-rollback-triggers.html). type RollbackConfiguration struct { @@ -640,7 +642,7 @@ type RollbackConfiguration struct { // immediately once the operation completes. MonitoringTimeInMinutes *int32 - // The triggers to monitor during stack creation or update actions. By default, + // The triggers to monitor during stack creation or update actions. By default, AWS // CloudFormation saves the rollback triggers specified for a stack and applies // them to any subsequent update operations for the stack, unless you specify // otherwise. If you do specify rollback triggers for this parameter, those @@ -667,7 +669,7 @@ type RollbackConfiguration struct { noSmithyDocumentSerde } -// A rollback trigger CloudFormation monitors during creation and updating of +// A rollback trigger AWS CloudFormation monitors during creation and updating of // stacks. If any of the alarms you specify goes to ALARM state during the stack // operation or within the specified monitoring period afterwards, CloudFormation // rolls back the entire stack operation. @@ -740,7 +742,7 @@ type Stack struct { // on the nested stack. For more information, see Protecting a Stack From Being // Deleted // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. EnableTerminationProtection *bool // The time the stack was last updated. This field will only be returned if the @@ -761,23 +763,23 @@ type Stack struct { // root stack is also the parent stack. For more information, see Working with // Nested Stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. ParentId *string - // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role - // that is associated with the stack. During a stack operation, CloudFormation uses - // this role's credentials to make calls on your behalf. + // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) + // role that is associated with the stack. During a stack operation, AWS + // CloudFormation uses this role's credentials to make calls on your behalf. RoleARN *string - // The rollback triggers for CloudFormation to monitor during stack creation and - // updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for AWS CloudFormation to monitor during stack creation + // and updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *RollbackConfiguration // For nested stacks--stacks created as resources for another stack--the stack ID // of the top-level stack to which the nested stack ultimately belongs. For more // information, see Working with Nested Stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. RootId *string // Unique identifier of the stack. @@ -808,14 +810,14 @@ type StackDriftInformation struct { // configuration. A stack is considered to have drifted if one or more of its // resources have drifted. // - // * NOT_CHECKED: CloudFormation has not checked if the - // stack differs from its expected template configuration. + // * NOT_CHECKED: AWS CloudFormation has not checked if + // the stack differs from its expected template configuration. // - // * IN_SYNC: The stack's - // actual configuration matches its expected template configuration. + // * IN_SYNC: The + // stack's actual configuration matches its expected template configuration. // - // * UNKNOWN: - // This value is reserved for future use. + // * + // UNKNOWN: This value is reserved for future use. // // This member is required. StackDriftStatus StackDriftStatus @@ -840,14 +842,14 @@ type StackDriftInformationSummary struct { // configuration. A stack is considered to have drifted if one or more of its // resources have drifted. // - // * NOT_CHECKED: CloudFormation has not checked if the - // stack differs from its expected template configuration. + // * NOT_CHECKED: AWS CloudFormation has not checked if + // the stack differs from its expected template configuration. // - // * IN_SYNC: The stack's - // actual configuration matches its expected template configuration. + // * IN_SYNC: The + // stack's actual configuration matches its expected template configuration. // - // * UNKNOWN: - // This value is reserved for future use. + // * + // UNKNOWN: This value is reserved for future use. // // This member is required. StackDriftStatus StackDriftStatus @@ -911,16 +913,15 @@ type StackEvent struct { // Success/failure message associated with the resource. ResourceStatusReason *string - // Type of resource. (For more information, go to Amazon Web Services Resource - // Types Reference + // Type of resource. (For more information, go to AWS Resource Types Reference // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the CloudFormation User Guide.) + // in the AWS CloudFormation User Guide.) ResourceType *string noSmithyDocumentSerde } -// An CloudFormation stack, in a specific account and Region, that's part of a +// An AWS CloudFormation stack, in a specific account and Region, that's part of a // stack set operation. A stack instance is a reference to an attempted or actual // stack in a given account within a given Region. A stack instance can exist // without a stack—for example, if the stack couldn't be created for some reason. A @@ -929,8 +930,8 @@ type StackEvent struct { // stack and the stack status. type StackInstance struct { - // [Self-managed permissions] The name of the account that the stack instance is - // associated with. + // [Self-managed permissions] The name of the AWS account that the stack instance + // is associated with. Account *string // Status of the stack instance's actual configuration compared to the expected @@ -942,11 +943,11 @@ type StackInstance struct { // considered to have drifted if one or more of the resources in the associated // stack have drifted. // - // * NOT_CHECKED: CloudFormation has not checked if the stack - // instance differs from its expected stack set configuration. + // * NOT_CHECKED: AWS CloudFormation has not checked if the + // stack instance differs from its expected stack set configuration. // - // * IN_SYNC: The - // stack instance's actual configuration matches its expected stack set + // * IN_SYNC: + // The stack instance's actual configuration matches its expected stack set // configuration. // // * UNKNOWN: This value is reserved for future use. @@ -966,7 +967,7 @@ type StackInstance struct { // overridden in this stack instance. ParameterOverrides []Parameter - // The name of the Region that the stack instance is associated with. + // The name of the AWS Region that the stack instance is associated with. Region *string // The ID of the stack instance. @@ -1056,8 +1057,8 @@ type StackInstanceFilter struct { // The structure that contains summary information about a stack instance. type StackInstanceSummary struct { - // [Self-managed permissions] The name of the account that the stack instance is - // associated with. + // [Self-managed permissions] The name of the AWS account that the stack instance + // is associated with. Account *string // Status of the stack instance's actual configuration compared to the expected @@ -1069,11 +1070,11 @@ type StackInstanceSummary struct { // considered to have drifted if one or more of the resources in the associated // stack have drifted. // - // * NOT_CHECKED: CloudFormation has not checked if the stack - // instance differs from its expected stack set configuration. + // * NOT_CHECKED: AWS CloudFormation has not checked if the + // stack instance differs from its expected stack set configuration. // - // * IN_SYNC: The - // stack instance's actual configuration matches its expected stack set + // * IN_SYNC: + // The stack instance's actual configuration matches its expected stack set // configuration. // // * UNKNOWN: This value is reserved for future use. @@ -1089,7 +1090,7 @@ type StackInstanceSummary struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html). OrganizationalUnitId *string - // The name of the Region that the stack instance is associated with. + // The name of the AWS Region that the stack instance is associated with. Region *string // The ID of the stack instance. @@ -1144,10 +1145,9 @@ type StackResource struct { // This member is required. ResourceStatus ResourceStatus - // Type of resource. (For more information, go to Amazon Web Services Resource - // Types Reference + // Type of resource. (For more information, go to AWS Resource Types Reference // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the CloudFormation User Guide.) + // in the AWS CloudFormation User Guide.) // // This member is required. ResourceType *string @@ -1172,7 +1172,7 @@ type StackResource struct { ModuleInfo *ModuleInfo // The name or unique identifier that corresponds to a physical instance ID of a - // resource supported by CloudFormation. + // resource supported by AWS CloudFormation. PhysicalResourceId *string // Success/failure message associated with the resource. @@ -1205,10 +1205,9 @@ type StackResourceDetail struct { // This member is required. ResourceStatus ResourceStatus - // Type of resource. ((For more information, go to Amazon Web Services Resource - // Types Reference + // Type of resource. ((For more information, go to AWS Resource Types Reference // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the CloudFormation User Guide.) + // in the AWS CloudFormation User Guide.) // // This member is required. ResourceType *string @@ -1226,7 +1225,7 @@ type StackResourceDetail struct { // The content of the Metadata attribute declared for the resource. For more // information, see Metadata Attribute // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. Metadata *string // Contains information about the module from which the resource was created, if @@ -1234,7 +1233,7 @@ type StackResourceDetail struct { ModuleInfo *ModuleInfo // The name or unique identifier that corresponds to a physical instance ID of a - // resource supported by CloudFormation. + // resource supported by AWS CloudFormation. PhysicalResourceId *string // Success/failure message associated with the resource. @@ -1250,7 +1249,7 @@ type StackResourceDetail struct { } // Contains the drift information for a resource that has been checked for drift. -// This includes actual and expected property values for resources in which +// This includes actual and expected property values for resources in which AWS // CloudFormation has detected drift. Only resource properties explicitly defined // in the stack template are checked for drift. For more information, see Detecting // Unregulated Configuration Changes to Stacks and Resources @@ -1293,12 +1292,13 @@ type StackResourceDrift struct { // resources's actual configuration matches its expected template configuration. // // * - // NOT_CHECKED: CloudFormation does not currently return this value. + // NOT_CHECKED: AWS CloudFormation does not currently return this value. // // This member is required. StackResourceDriftStatus StackResourceDriftStatus - // Time at which CloudFormation performed drift detection on the stack resource. + // Time at which AWS CloudFormation performed drift detection on the stack + // resource. // // This member is required. Timestamp *time.Time @@ -1319,13 +1319,14 @@ type StackResourceDrift struct { ModuleInfo *ModuleInfo // The name or unique identifier that corresponds to a physical instance ID of a - // resource supported by CloudFormation. + // resource supported by AWS CloudFormation. PhysicalResourceId *string - // Context information that enables CloudFormation to uniquely identify a resource. - // CloudFormation uses context key-value pairs in cases where a resource's logical - // and physical IDs are not enough to uniquely identify that resource. Each context - // key-value pair specifies a unique resource that contains the targeted resource. + // Context information that enables AWS CloudFormation to uniquely identify a + // resource. AWS CloudFormation uses context key-value pairs in cases where a + // resource's logical and physical IDs are not enough to uniquely identify that + // resource. Each context key-value pair specifies a unique resource that contains + // the targeted resource. PhysicalResourceIdContext []PhysicalResourceIdContextKeyValuePair // A collection of the resource properties whose actual values differ from their @@ -1349,10 +1350,10 @@ type StackResourceDriftInformation struct { // * MODIFIED: The resource differs from its expected // configuration. // - // * NOT_CHECKED: CloudFormation has not checked if the resource - // differs from its expected configuration. Any resources that do not currently - // support drift detection have a status of NOT_CHECKED. For more information, see - // Resources that Support Drift Detection + // * NOT_CHECKED: AWS CloudFormation has not checked if the + // resource differs from its expected configuration. Any resources that do not + // currently support drift detection have a status of NOT_CHECKED. For more + // information, see Resources that Support Drift Detection // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). // // * @@ -1362,8 +1363,8 @@ type StackResourceDriftInformation struct { // This member is required. StackResourceDriftStatus StackResourceDriftStatus - // When CloudFormation last checked if the resource had drifted from its expected - // configuration. + // When AWS CloudFormation last checked if the resource had drifted from its + // expected configuration. LastCheckTimestamp *time.Time noSmithyDocumentSerde @@ -1382,17 +1383,17 @@ type StackResourceDriftInformationSummary struct { // * MODIFIED: The resource differs from its expected // configuration. // - // * NOT_CHECKED: CloudFormation has not checked if the resource - // differs from its expected configuration. Any resources that do not currently - // support drift detection have a status of NOT_CHECKED. For more information, see - // Resources that Support Drift Detection + // * NOT_CHECKED: AWS CloudFormation has not checked if the + // resource differs from its expected configuration. Any resources that do not + // currently support drift detection have a status of NOT_CHECKED. For more + // information, see Resources that Support Drift Detection // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). // If you performed an ContinueUpdateRollback operation on a stack, any resources // included in ResourcesToSkip will also have a status of NOT_CHECKED. For more // information on skipping resources during rollback operations, see Continue // Rolling Back an Update // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. // // * IN_SYNC: The resources's actual // configuration matches its expected configuration. @@ -1400,8 +1401,8 @@ type StackResourceDriftInformationSummary struct { // This member is required. StackResourceDriftStatus StackResourceDriftStatus - // When CloudFormation last checked if the resource had drifted from its expected - // configuration. + // When AWS CloudFormation last checked if the resource had drifted from its + // expected configuration. LastCheckTimestamp *time.Time noSmithyDocumentSerde @@ -1425,10 +1426,9 @@ type StackResourceSummary struct { // This member is required. ResourceStatus ResourceStatus - // Type of resource. (For more information, go to Amazon Web Services Resource - // Types Reference + // Type of resource. (For more information, go to AWS Resource Types Reference // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the CloudFormation User Guide.) + // in the AWS CloudFormation User Guide.) // // This member is required. ResourceType *string @@ -1455,7 +1455,7 @@ type StackResourceSummary struct { } // A structure that contains information about a stack set. A stack set enables you -// to provision stacks into accounts and across Regions by using a single +// to provision stacks into AWS accounts and across Regions by using a single // CloudFormation template. In the stack set, you specify the template to use, as // well as any parameters and capabilities that the template requires. type StackSet struct { @@ -1465,18 +1465,19 @@ type StackSet struct { // can manage specific stack sets within the same administrator account. For more // information, see Prerequisites: Granting Permissions for Stack Set Operations // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. AdministrationRoleARN *string // [Service-managed permissions] Describes whether StackSets automatically deploys - // to Organizations accounts that are added to a target organization or + // to AWS Organizations accounts that are added to a target organization or // organizational unit (OU). AutoDeployment *AutoDeployment // The capabilities that are allowed in the stack set. Some stack set templates - // might include resources that can affect permissions in your account—for example, - // by creating new Identity and Access Management (IAM) users. For more - // information, see Acknowledging IAM Resources in CloudFormation Templates. + // might include resources that can affect permissions in your AWS account—for + // example, by creating new AWS Identity and Access Management (IAM) users. For + // more information, see Acknowledging IAM Resources in AWS CloudFormation + // Templates. // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities) Capabilities []Capability @@ -1507,8 +1508,8 @@ type StackSet struct { // // * // With service-managed permissions, StackSets automatically creates the IAM roles - // required to deploy to accounts managed by Organizations. For more information, - // see Grant Service-Managed Stack Set Permissions + // required to deploy to accounts managed by AWS Organizations. For more + // information, see Grant Service-Managed Stack Set Permissions // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html). PermissionModel PermissionModels @@ -1548,7 +1549,7 @@ type StackSet struct { // being performed on the stack set. For more information, see Detecting Unmanaged // Changes in Stack Sets // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html) -// in the CloudFormation User Guide. +// in the AWS CloudFormation User Guide. type StackSetDriftDetectionDetails struct { // The status of the stack set drift detection operation. @@ -1581,10 +1582,10 @@ type StackSetDriftDetectionDetails struct { // or more of the resources in the associated stack have drifted. // // * NOT_CHECKED: - // CloudFormation has not checked the stack set for drift. + // AWS CloudFormation has not checked the stack set for drift. // - // * IN_SYNC: All of the - // stack instances belonging to the stack set stack match from the expected + // * IN_SYNC: All of + // the stack instances belonging to the stack set stack match from the expected // template and parameter configuration. DriftStatus StackSetDriftStatus @@ -1641,18 +1642,18 @@ type StackSetOperation struct { // can manage specific stack sets within the same administrator account. For more // information, see Define Permissions for Multiple Administrators // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. AdministrationRoleARN *string // The time at which the operation was initiated. Note that the creation times for // the stack set operation might differ from the creation time of the individual - // stacks themselves. This is because CloudFormation needs to perform preparatory - // work for the operation, such as dispatching the work to the requested Regions, - // before actually creating the first stacks. + // stacks themselves. This is because AWS CloudFormation needs to perform + // preparatory work for the operation, such as dispatching the work to the + // requested Regions, before actually creating the first stacks. CreationTimestamp *time.Time - // [Service-managed permissions] The Organizations accounts affected by the stack - // operation. + // [Service-managed permissions] The AWS Organizations accounts affected by the + // stack operation. DeploymentTargets *DeploymentTargets // The time at which the stack set operation ended, across all accounts and Regions @@ -1668,7 +1669,7 @@ type StackSetOperation struct { // The unique ID of a stack set operation. OperationId *string - // The preferences for how CloudFormation performs this stack set operation. + // The preferences for how AWS CloudFormation performs this stack set operation. OperationPreferences *StackSetOperationPreferences // For stack set operations of action type DELETE, specifies whether to remove the @@ -1683,7 +1684,7 @@ type StackSetOperation struct { // is DETECT_DRIFT. For more information, see Detecting Unmanaged Changes in Stack // Sets // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. StackSetDriftDetectionDetails *StackSetDriftDetectionDetails // The ID of the stack set. @@ -1696,7 +1697,7 @@ type StackSetOperation struct { // is applied for each Region during stack create and update operations. If the // number of failed stacks within a Region exceeds the failure tolerance, the // status of the operation in the Region is set to FAILED. This in turn sets the - // status of the operation as a whole to FAILED, and CloudFormation cancels the + // status of the operation as a whole to FAILED, and AWS CloudFormation cancels the // operation in any remaining Regions. // // * QUEUED: [Service-managed permissions] For @@ -1704,15 +1705,15 @@ type StackSetOperation struct { // queued to be performed. For more information, see the stack set operation status // codes // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. // - // * RUNNING: The operation is currently being - // performed. + // * RUNNING: The operation is currently + // being performed. // // * STOPPED: The user has cancelled the operation. // - // * STOPPING: The - // operation is in the process of stopping, at user request. + // * STOPPING: + // The operation is in the process of stopping, at user request. // // * SUCCEEDED: The // operation completed creating or updating all the specified stacks without @@ -1722,24 +1723,24 @@ type StackSetOperation struct { noSmithyDocumentSerde } -// The user-specified preferences for how CloudFormation performs a stack set +// The user-specified preferences for how AWS CloudFormation performs a stack set // operation. For more information on maximum concurrent accounts and failure // tolerance, see Stack set operation options // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). type StackSetOperationPreferences struct { - // The number of accounts, per Region, for which this operation can fail before + // The number of accounts, per Region, for which this operation can fail before AWS // CloudFormation stops the operation in that Region. If the operation is stopped - // in a Region, CloudFormation doesn't attempt the operation in any subsequent + // in a Region, AWS CloudFormation doesn't attempt the operation in any subsequent // Regions. Conditional: You must specify either FailureToleranceCount or // FailureTolerancePercentage (but not both). By default, 0 is specified. FailureToleranceCount *int32 // The percentage of accounts, per Region, for which this stack operation can fail - // before CloudFormation stops the operation in that Region. If the operation is - // stopped in a Region, CloudFormation doesn't attempt the operation in any + // before AWS CloudFormation stops the operation in that Region. If the operation + // is stopped in a Region, AWS CloudFormation doesn't attempt the operation in any // subsequent Regions. When calculating the number of accounts based on the - // specified percentage, CloudFormation rounds down to the next whole number. + // specified percentage, AWS CloudFormation rounds down to the next whole number. // Conditional: You must specify either FailureToleranceCount or // FailureTolerancePercentage, but not both. By default, 0 is specified. FailureTolerancePercentage *int32 @@ -1756,7 +1757,7 @@ type StackSetOperationPreferences struct { // The maximum percentage of accounts in which to perform this operation at one // time. When calculating the number of accounts based on the specified percentage, - // CloudFormation rounds down to the next whole number. This is true except in + // AWS CloudFormation rounds down to the next whole number. This is true except in // cases where rounding down would result is zero. In this case, CloudFormation // sets the number as one instead. Note that this setting lets you specify the // maximum for operations. For large deployments, under certain circumstances the @@ -1765,8 +1766,8 @@ type StackSetOperationPreferences struct { // MaxConcurrentPercentage, but not both. By default, 1 is specified. MaxConcurrentPercentage *int32 - // The concurrency type of deploying StackSets operations in Regions, could be in - // parallel or one Region at a time. + // The concurrency type of deploying StackSets operations in regions, could be in + // parallel or one region at a time. RegionConcurrencyType RegionConcurrencyType // The order of the Regions in where you want to perform the stack operation. @@ -1779,10 +1780,11 @@ type StackSetOperationPreferences struct { // for a given account in a given Region. type StackSetOperationResultSummary struct { - // [Self-managed permissions] The name of the account for this operation result. + // [Self-managed permissions] The name of the AWS account for this operation + // result. Account *string - // The results of the account gate function CloudFormation invokes, if present, + // The results of the account gate function AWS CloudFormation invokes, if present, // before proceeding with stack set operations in an account AccountGateResult *AccountGateResult @@ -1791,7 +1793,7 @@ type StackSetOperationResultSummary struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html). OrganizationalUnitId *string - // The name of the Region for this operation result. + // The name of the AWS Region for this operation result. Region *string // The result status of the stack set operation for the given account in the given @@ -1834,9 +1836,9 @@ type StackSetOperationSummary struct { // The time at which the operation was initiated. Note that the creation times for // the stack set operation might differ from the creation time of the individual - // stacks themselves. This is because CloudFormation needs to perform preparatory - // work for the operation, such as dispatching the work to the requested Regions, - // before actually creating the first stacks. + // stacks themselves. This is because AWS CloudFormation needs to perform + // preparatory work for the operation, such as dispatching the work to the + // requested Regions, before actually creating the first stacks. CreationTimestamp *time.Time // The time at which the stack set operation ended, across all accounts and Regions @@ -1854,23 +1856,23 @@ type StackSetOperationSummary struct { // operation is applied for each Region during stack create and update operations. // If the number of failed stacks within a Region exceeds the failure tolerance, // the status of the operation in the Region is set to FAILED. This in turn sets - // the status of the operation as a whole to FAILED, and CloudFormation cancels the - // operation in any remaining Regions. + // the status of the operation as a whole to FAILED, and AWS CloudFormation cancels + // the operation in any remaining Regions. // - // * QUEUED: [Service-managed permissions] For - // automatic deployments that require a sequence of operations, the operation is - // queued to be performed. For more information, see the stack set operation status - // codes + // * QUEUED: [Service-managed permissions] + // For automatic deployments that require a sequence of operations, the operation + // is queued to be performed. For more information, see the stack set operation + // status codes // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. // - // * RUNNING: The operation is currently being - // performed. + // * RUNNING: The operation is currently + // being performed. // // * STOPPED: The user has cancelled the operation. // - // * STOPPING: The - // operation is in the process of stopping, at user request. + // * STOPPING: + // The operation is in the process of stopping, at user request. // // * SUCCEEDED: The // operation completed creating or updating all the specified stacks without @@ -1884,7 +1886,8 @@ type StackSetOperationSummary struct { type StackSetSummary struct { // [Service-managed permissions] Describes whether StackSets automatically deploys - // to Organizations accounts that are added to a target organizational unit (OU). + // to AWS Organizations accounts that are added to a target organizational unit + // (OU). AutoDeployment *AutoDeployment // A description of the stack set that you specify when the stack set is created or @@ -1902,10 +1905,10 @@ type StackSetSummary struct { // or more of the resources in the associated stack have drifted. // // * NOT_CHECKED: - // CloudFormation has not checked the stack set for drift. + // AWS CloudFormation has not checked the stack set for drift. // - // * IN_SYNC: All of the - // stack instances belonging to the stack set stack match from the expected + // * IN_SYNC: All of + // the stack instances belonging to the stack set stack match from the expected // template and parameter configuration. // // * UNKNOWN: This value is reserved for @@ -1927,8 +1930,8 @@ type StackSetSummary struct { // // * // With service-managed permissions, StackSets automatically creates the IAM roles - // required to deploy to accounts managed by Organizations. For more information, - // see Grant Service-Managed Stack Set Permissions + // required to deploy to accounts managed by AWS Organizations. For more + // information, see Grant Service-Managed Stack Set Permissions // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html). PermissionModel PermissionModels @@ -1981,14 +1984,14 @@ type StackSummary struct { // root stack is also the parent stack. For more information, see Working with // Nested Stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. ParentId *string // For nested stacks--stacks created as resources for another stack--the stack ID // of the top-level stack to which the nested stack ultimately belongs. For more // information, see Working with Nested Stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html) - // in the CloudFormation User Guide. + // in the AWS CloudFormation User Guide. RootId *string // Unique stack identifier. @@ -2004,12 +2007,12 @@ type StackSummary struct { } // The Tag type enables you to specify a key-value pair that can be used to store -// information about an CloudFormation stack. +// information about an AWS CloudFormation stack. type Tag struct { // Required. A string used to identify this tag. You can specify a maximum of 128 - // characters for a tag key. Tags owned by Amazon Web Services (Amazon Web - // Services) have the reserved prefix: aws:. + // characters for a tag key. Tags owned by Amazon Web Services (AWS) have the + // reserved prefix: aws:. // // This member is required. Key *string diff --git a/service/cloudformation/validators.go b/service/cloudformation/validators.go index 2c9654abef2..b6ccfcff709 100644 --- a/service/cloudformation/validators.go +++ b/service/cloudformation/validators.go @@ -510,26 +510,6 @@ func (m *validateOpGetStackPolicy) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } -type validateOpImportStacksToStackSet struct { -} - -func (*validateOpImportStacksToStackSet) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpImportStacksToStackSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ImportStacksToStackSetInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpImportStacksToStackSetInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpListChangeSets struct { } @@ -950,10 +930,6 @@ func addOpGetStackPolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetStackPolicy{}, middleware.After) } -func addOpImportStacksToStackSetValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpImportStacksToStackSet{}, middleware.After) -} - func addOpListChangeSetsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListChangeSets{}, middleware.After) } @@ -1592,24 +1568,6 @@ func validateOpGetStackPolicyInput(v *GetStackPolicyInput) error { } } -func validateOpImportStacksToStackSetInput(v *ImportStacksToStackSetInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ImportStacksToStackSetInput"} - if v.StackSetName == nil { - invalidParams.Add(smithy.NewErrParamRequired("StackSetName")) - } - if v.StackIds == nil { - invalidParams.Add(smithy.NewErrParamRequired("StackIds")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpListChangeSetsInput(v *ListChangeSetsInput) error { if v == nil { return nil diff --git a/service/cloudfront/go.mod b/service/cloudfront/go.mod index a28183291ed..ab89d70c399 100644 --- a/service/cloudfront/go.mod +++ b/service/cloudfront/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/cloudfront/go.sum +++ b/service/cloudfront/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudhsm/go.mod b/service/cloudhsm/go.mod index ef12b221803..869e92fd956 100644 --- a/service/cloudhsm/go.mod +++ b/service/cloudhsm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudhsm/go.sum b/service/cloudhsm/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cloudhsm/go.sum +++ b/service/cloudhsm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudhsmv2/go.mod b/service/cloudhsmv2/go.mod index f7dba92950d..b42adbeccf7 100644 --- a/service/cloudhsmv2/go.mod +++ b/service/cloudhsmv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudhsmv2/go.sum b/service/cloudhsmv2/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cloudhsmv2/go.sum +++ b/service/cloudhsmv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudsearch/go.mod b/service/cloudsearch/go.mod index 9a10b1aed02..8a6d9dfde71 100644 --- a/service/cloudsearch/go.mod +++ b/service/cloudsearch/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudsearch/go.sum b/service/cloudsearch/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cloudsearch/go.sum +++ b/service/cloudsearch/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudsearchdomain/go.mod b/service/cloudsearchdomain/go.mod index d2f11453fdc..75e1ca8e7c0 100644 --- a/service/cloudsearchdomain/go.mod +++ b/service/cloudsearchdomain/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudsearchdomain/go.sum b/service/cloudsearchdomain/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cloudsearchdomain/go.sum +++ b/service/cloudsearchdomain/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudtrail/go.mod b/service/cloudtrail/go.mod index e89c83827f8..0e620aae245 100644 --- a/service/cloudtrail/go.mod +++ b/service/cloudtrail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudtrail/go.sum b/service/cloudtrail/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cloudtrail/go.sum +++ b/service/cloudtrail/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudwatch/api_op_GetMetricStatistics.go b/service/cloudwatch/api_op_GetMetricStatistics.go index 4aa58cc521c..c0bf73b4afa 100644 --- a/service/cloudwatch/api_op_GetMetricStatistics.go +++ b/service/cloudwatch/api_op_GetMetricStatistics.go @@ -60,8 +60,7 @@ import ( // 5 minutes. After 63 days, the data is further aggregated and is available with a // resolution of 1 hour. CloudWatch started retaining 5-minute and 1-hour metric // data as of July 9, 2016. For information about metrics and dimensions supported -// by Amazon Web Services services, see the Amazon CloudWatch Metrics and -// Dimensions Reference +// by AWS services, see the Amazon CloudWatch Metrics and Dimensions Reference // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html) // in the Amazon CloudWatch User Guide. func (c *Client) GetMetricStatistics(ctx context.Context, params *GetMetricStatisticsInput, optFns ...func(*Options)) (*GetMetricStatisticsOutput, error) { diff --git a/service/cloudwatch/api_op_GetMetricWidgetImage.go b/service/cloudwatch/api_op_GetMetricWidgetImage.go index 3331987d370..e9f8308ad3b 100644 --- a/service/cloudwatch/api_op_GetMetricWidgetImage.go +++ b/service/cloudwatch/api_op_GetMetricWidgetImage.go @@ -64,10 +64,9 @@ type GetMetricWidgetImageInput struct { // 6f0d4192-4d42-11e8-82c1-f539a07e0e3b // // The image/png setting is intended only for - // custom HTTP requests. For most use cases, and all actions using an Amazon Web - // Services SDK, you should use png. If you specify image/png, the HTTP response - // has a content-type set to image/png, and the body of the response is a PNG - // image. + // custom HTTP requests. For most use cases, and all actions using an AWS SDK, you + // should use png. If you specify image/png, the HTTP response has a content-type + // set to image/png, and the body of the response is a PNG image. OutputFormat *string noSmithyDocumentSerde diff --git a/service/cloudwatch/api_op_PutMetricAlarm.go b/service/cloudwatch/api_op_PutMetricAlarm.go index 9f372581a7c..e9ee534a57d 100644 --- a/service/cloudwatch/api_op_PutMetricAlarm.go +++ b/service/cloudwatch/api_op_PutMetricAlarm.go @@ -27,33 +27,13 @@ import ( // * The iam:CreateServiceLinkedRole to create an alarm with Systems // Manager OpsItem actions. // -// The first time you create an alarm in the Management -// Console, the CLI, or by using the PutMetricAlarm API, CloudWatch creates the -// necessary service-linked role for you. The service-linked roles are called -// AWSServiceRoleForCloudWatchEvents and -// AWSServiceRoleForCloudWatchAlarms_ActionSSM. For more information, see Amazon -// Web Services service-linked role +// The first time you create an alarm in the AWS +// Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch +// creates the necessary service-linked role for you. The service-linked roles are +// called AWSServiceRoleForCloudWatchEvents and +// AWSServiceRoleForCloudWatchAlarms_ActionSSM. For more information, see AWS +// service-linked role // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role). -// Cross-account alarms You can set an alarm on metrics in the current account, or -// in another account. To create a cross-account alarm that watches a metric in a -// different account, you must have completed the following pre-requisites: -// -// * The -// account where the metrics are located (the sharing account) must already have a -// sharing role named CloudWatch-CrossAccountSharingRole. If it does not already -// have this role, you must create it using the instructions in Set up a sharing -// account in Cross-account cross-Region CloudWatch console -// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region). -// The policy for that role must grant access to the ID of the account where you -// are creating the alarm. -// -// * The account where you are creating the alarm (the -// monitoring account) must already have a service-linked role named -// AWSServiceRoleForCloudWatchCrossAccount to allow CloudWatch to assume the -// sharing role in the sharing account. If it does not, you must create it -// following the directions in Set up a monitoring account in Cross-account -// cross-Region CloudWatch console -// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region). func (c *Client) PutMetricAlarm(ctx context.Context, params *PutMetricAlarmInput, optFns ...func(*Options)) (*PutMetricAlarmOutput, error) { if params == nil { params = &PutMetricAlarmInput{} @@ -105,13 +85,10 @@ type PutMetricAlarmInput struct { // | arn:aws:automate:region:ec2:recover | arn:aws:automate:region:ec2:reboot | // arn:aws:sns:region:account-id:sns-topic-name | // arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name - // | arn:aws:ssm:region:account-id:opsitem:severity | - // arn:aws:ssm-incidents::account-id:response-plan:response-plan-name Valid Values - // (for use with IAM roles): - // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | - // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | - // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 | - // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0 + // | arn:aws:ssm:region:account-id:opsitem:severity Valid Values (for use with IAM + // roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 + // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 + // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 AlarmActions []string // The description for the alarm. diff --git a/service/cloudwatch/api_op_PutMetricData.go b/service/cloudwatch/api_op_PutMetricData.go index 5a6826c97f3..dcce98dc560 100644 --- a/service/cloudwatch/api_op_PutMetricData.go +++ b/service/cloudwatch/api_op_PutMetricData.go @@ -76,8 +76,8 @@ type PutMetricDataInput struct { // This member is required. MetricData []types.MetricDatum - // The namespace for the metric data. To avoid conflicts with Amazon Web Services - // service namespaces, you should not specify a namespace that begins with AWS/ + // The namespace for the metric data. To avoid conflicts with AWS service + // namespaces, you should not specify a namespace that begins with AWS/ // // This member is required. Namespace *string diff --git a/service/cloudwatch/api_op_PutMetricStream.go b/service/cloudwatch/api_op_PutMetricStream.go index 75d167bf74c..5d82f67966d 100644 --- a/service/cloudwatch/api_op_PutMetricStream.go +++ b/service/cloudwatch/api_op_PutMetricStream.go @@ -12,8 +12,8 @@ import ( ) // Creates or updates a metric stream. Metric streams can automatically stream -// CloudWatch metrics to Amazon Web Services destinations including Amazon S3 and -// to many third-party solutions. For more information, see Using Metric Streams +// CloudWatch metrics to AWS destinations including Amazon S3 and to many +// third-party solutions. For more information, see Using Metric Streams // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html). // To create a metric stream, you must be logged on to an account that has the // iam:PassRole permission and either the CloudWatchFullAccess policy or the @@ -99,13 +99,7 @@ type PutMetricStreamInput struct { // as many as 50 tags with a metric stream. Tags can help you organize and // categorize your resources. You can also use them to scope user permissions by // granting a user permission to access or change only resources with certain tag - // values. You can use this parameter only when you are creating a new metric - // stream. If you are using this operation to update an existing metric stream, any - // tags you specify in this parameter are ignored. To change the tags of an - // existing metric stream, use TagResource - // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html) - // or UntagResource - // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html). + // values. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/cloudwatch/api_op_TagResource.go b/service/cloudwatch/api_op_TagResource.go index ef0bc34498e..dc9d34fe67a 100644 --- a/service/cloudwatch/api_op_TagResource.go +++ b/service/cloudwatch/api_op_TagResource.go @@ -16,13 +16,13 @@ import ( // Contributor Insights rules. Tags can help you organize and categorize your // resources. You can also use them to scope user permissions by granting a user // permission to access or change only resources with certain tag values. Tags -// don't have any semantic meaning to Amazon Web Services and are interpreted -// strictly as strings of characters. You can use the TagResource action with an -// alarm that already has tags. If you specify a new tag key for the alarm, this -// tag is appended to the list of tags associated with the alarm. If you specify a -// tag key that is already associated with the alarm, the new tag value that you -// specify replaces the previous value for that tag. You can associate as many as -// 50 tags with a CloudWatch resource. +// don't have any semantic meaning to AWS and are interpreted strictly as strings +// of characters. You can use the TagResource action with an alarm that already has +// tags. If you specify a new tag key for the alarm, this tag is appended to the +// list of tags associated with the alarm. If you specify a tag key that is already +// associated with the alarm, the new tag value that you specify replaces the +// previous value for that tag. You can associate as many as 50 tags with a +// CloudWatch resource. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/cloudwatch/deserializers.go b/service/cloudwatch/deserializers.go index 14d7ebf3b1c..fe1f7790bd2 100644 --- a/service/cloudwatch/deserializers.go +++ b/service/cloudwatch/deserializers.go @@ -8030,19 +8030,6 @@ func awsAwsquery_deserializeDocumentMetricDataQuery(v **types.MetricDataQuery, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AccountId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AccountId = ptr.String(xtv) - } - case strings.EqualFold("Expression", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/cloudwatch/doc.go b/service/cloudwatch/doc.go index 7c7a039e6f2..c59d6569ff6 100644 --- a/service/cloudwatch/doc.go +++ b/service/cloudwatch/doc.go @@ -3,17 +3,16 @@ // Package cloudwatch provides the API client, operations, and parameter types for // Amazon CloudWatch. // -// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) -// resources and the applications you run on Amazon Web Services in real time. You -// can use CloudWatch to collect and track metrics, which are the variables you -// want to measure for your resources and applications. CloudWatch alarms send -// notifications or automatically change the resources you are monitoring based on -// rules that you define. For example, you can monitor the CPU usage and disk reads -// and writes of your Amazon EC2 instances. Then, use this data to determine -// whether you should launch additional instances to handle increased load. You can -// also use this data to stop under-used instances to save money. In addition to -// monitoring the built-in metrics that come with Amazon Web Services, you can -// monitor your own custom metrics. With CloudWatch, you gain system-wide -// visibility into resource utilization, application performance, and operational -// health. +// Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the +// applications you run on AWS in real time. You can use CloudWatch to collect and +// track metrics, which are the variables you want to measure for your resources +// and applications. CloudWatch alarms send notifications or automatically change +// the resources you are monitoring based on rules that you define. For example, +// you can monitor the CPU usage and disk reads and writes of your Amazon EC2 +// instances. Then, use this data to determine whether you should launch additional +// instances to handle increased load. You can also use this data to stop +// under-used instances to save money. In addition to monitoring the built-in +// metrics that come with AWS, you can monitor your own custom metrics. With +// CloudWatch, you gain system-wide visibility into resource utilization, +// application performance, and operational health. package cloudwatch diff --git a/service/cloudwatch/go.mod b/service/cloudwatch/go.mod index d6d86221ad2..bebe46ea08c 100644 --- a/service/cloudwatch/go.mod +++ b/service/cloudwatch/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/cloudwatch/go.sum +++ b/service/cloudwatch/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudwatch/serializers.go b/service/cloudwatch/serializers.go index 0dce7f740c3..5ff6b8409c7 100644 --- a/service/cloudwatch/serializers.go +++ b/service/cloudwatch/serializers.go @@ -2303,11 +2303,6 @@ func awsAwsquery_serializeDocumentMetricDataQuery(v *types.MetricDataQuery, valu object := value.Object() _ = object - if v.AccountId != nil { - objectKey := object.Key("AccountId") - objectKey.String(*v.AccountId) - } - if v.Expression != nil { objectKey := object.Key("Expression") objectKey.String(*v.Expression) diff --git a/service/cloudwatch/types/types.go b/service/cloudwatch/types/types.go index a68cc724bf7..e654115f750 100644 --- a/service/cloudwatch/types/types.go +++ b/service/cloudwatch/types/types.go @@ -199,14 +199,14 @@ type Datapoint struct { // of your metrics, you are creating a new variation of that metric. type Dimension struct { - // The name of the dimension. Dimension names must contain only ASCII characters - // and must include at least one non-whitespace character. + // The name of the dimension. Dimension names cannot contain blank spaces or + // non-ASCII characters. // // This member is required. Name *string - // The value of the dimension. Dimension values must contain only ASCII characters - // and must include at least one non-whitespace character. + // The value of the dimension. Dimension values cannot contain blank spaces or + // non-ASCII characters. // // This member is required. Value *string @@ -376,10 +376,6 @@ type LabelOptions struct { } // A message returned by the GetMetricDataAPI, including a code and a description. -// If a cross-Region GetMetricData operation fails with a code of Forbidden and a -// value of Authentication too complex to retrieve cross region data, you can -// correct the problem by running the GetMetricData operation in the same Region -// where the metric data is. type MessageData struct { // The error code or status code associated with the message. @@ -542,11 +538,6 @@ type MetricDataQuery struct { // This member is required. Id *string - // The ID of the account where the metrics are located, if this is a cross-account - // alarm. Use this field only for PutMetricAlarm operations. It is not used in - // GetMetricData operations. - AccountId *string - // The math expression to be performed on the returned data, if this object is // performing a math expression. This expression can use the Id of the other // metrics to refer to those metrics, and can also use the Id of other expressions diff --git a/service/cloudwatchevents/go.mod b/service/cloudwatchevents/go.mod index 812fe49ebbf..473df91a2e8 100644 --- a/service/cloudwatchevents/go.mod +++ b/service/cloudwatchevents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudwatchevents/go.sum b/service/cloudwatchevents/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cloudwatchevents/go.sum +++ b/service/cloudwatchevents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudwatchlogs/go.mod b/service/cloudwatchlogs/go.mod index a1845287c86..d9bf7043cc6 100644 --- a/service/cloudwatchlogs/go.mod +++ b/service/cloudwatchlogs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudwatchlogs/go.sum b/service/cloudwatchlogs/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cloudwatchlogs/go.sum +++ b/service/cloudwatchlogs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codeartifact/go.mod b/service/codeartifact/go.mod index 668888efd22..f1c3b5cef70 100644 --- a/service/codeartifact/go.mod +++ b/service/codeartifact/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codeartifact/go.sum b/service/codeartifact/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/codeartifact/go.sum +++ b/service/codeartifact/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codebuild/api_op_BatchGetProjects.go b/service/codebuild/api_op_BatchGetProjects.go index a0342d2451c..b4960210798 100644 --- a/service/codebuild/api_op_BatchGetProjects.go +++ b/service/codebuild/api_op_BatchGetProjects.go @@ -30,8 +30,8 @@ func (c *Client) BatchGetProjects(ctx context.Context, params *BatchGetProjectsI type BatchGetProjectsInput struct { // The names or ARNs of the build projects. To get information about a project - // shared with your AWS account, its ARN must be specified. You cannot specify a - // shared project using its name. + // shared with your Amazon Web Services account, its ARN must be specified. You + // cannot specify a shared project using its name. // // This member is required. Names []string diff --git a/service/codebuild/api_op_CreateProject.go b/service/codebuild/api_op_CreateProject.go index 334ba4f6466..1b6b39fa3d4 100644 --- a/service/codebuild/api_op_CreateProject.go +++ b/service/codebuild/api_op_CreateProject.go @@ -44,8 +44,9 @@ type CreateProjectInput struct { // This member is required. Name *string - // The ARN of the AWS Identity and Access Management (IAM) role that enables AWS - // CodeBuild to interact with dependent AWS services on behalf of the AWS account. + // The ARN of the Identity and Access Management role that enables CodeBuild to + // interact with dependent Amazon Web Services services on behalf of the Amazon Web + // Services account. // // This member is required. ServiceRole *string @@ -76,11 +77,11 @@ type CreateProjectInput struct { // A description that makes the build project easy to identify. Description *string - // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used - // for encrypting the build output artifacts. You can use a cross-account KMS key - // to encrypt the build output artifacts if your service role has permission to - // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, - // if available, the CMK's alias (using the format alias/). + // The Key Management Service customer master key (CMK) to be used for encrypting + // the build output artifacts. You can use a cross-account KMS key to encrypt the + // build output artifacts if your service role has permission to that key. You can + // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the + // CMK's alias (using the format alias/). EncryptionKey *string // An array of ProjectFileSystemLocation objects for a CodeBuild build project. A @@ -89,8 +90,8 @@ type CreateProjectInput struct { // File System. FileSystemLocations []types.ProjectFileSystemLocation - // Information about logs for the build project. These can be logs in Amazon - // CloudWatch Logs, logs uploaded to a specified S3 bucket, or both. + // Information about logs for the build project. These can be logs in CloudWatch + // Logs, logs uploaded to a specified S3 bucket, or both. LogsConfig *types.LogsConfig // The number of minutes a build is allowed to be queued before it times out. @@ -110,43 +111,43 @@ type CreateProjectInput struct { // A version of the build input to be built for this project. If not specified, the // latest version is used. If specified, it must be one of: // - // * For AWS CodeCommit: - // the commit ID, branch, or Git tag to use. + // * For CodeCommit: the + // commit ID, branch, or Git tag to use. // - // * For GitHub: the commit ID, pull - // request ID, branch name, or tag name that corresponds to the version of the - // source code you want to build. If a pull request ID is specified, it must use - // the format pr/pull-request-ID (for example pr/25). If a branch name is - // specified, the branch's HEAD commit ID is used. If not specified, the default - // branch's HEAD commit ID is used. + // * For GitHub: the commit ID, pull request + // ID, branch name, or tag name that corresponds to the version of the source code + // you want to build. If a pull request ID is specified, it must use the format + // pr/pull-request-ID (for example pr/25). If a branch name is specified, the + // branch's HEAD commit ID is used. If not specified, the default branch's HEAD + // commit ID is used. // - // * For Bitbucket: the commit ID, branch name, - // or tag name that corresponds to the version of the source code you want to - // build. If a branch name is specified, the branch's HEAD commit ID is used. If - // not specified, the default branch's HEAD commit ID is used. + // * For Bitbucket: the commit ID, branch name, or tag name + // that corresponds to the version of the source code you want to build. If a + // branch name is specified, the branch's HEAD commit ID is used. If not specified, + // the default branch's HEAD commit ID is used. // - // * For Amazon S3: - // the version ID of the object that represents the build input ZIP file to - // use. + // * For Amazon S3: the version ID of + // the object that represents the build input ZIP file to use. // - // If sourceVersion is specified at the build level, then that version takes - // precedence over this sourceVersion (at the project level). For more information, - // see Source Version Sample with CodeBuild + // If sourceVersion is + // specified at the build level, then that version takes precedence over this + // sourceVersion (at the project level). For more information, see Source Version + // Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. SourceVersion *string // A list of tag key and value pairs associated with this build project. These tags - // are available for use by AWS services that support AWS CodeBuild build project - // tags. + // are available for use by Amazon Web Services services that support CodeBuild + // build project tags. Tags []types.Tag - // How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before - // it times out any build that has not been marked as completed. The default is 60 + // How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before it + // times out any build that has not been marked as completed. The default is 60 // minutes. TimeoutInMinutes *int32 - // VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC. + // VpcConfig enables CodeBuild to access resources in an Amazon VPC. VpcConfig *types.VpcConfig noSmithyDocumentSerde diff --git a/service/codebuild/api_op_CreateReportGroup.go b/service/codebuild/api_op_CreateReportGroup.go index 304e6a0c5d6..b03c35e23e2 100644 --- a/service/codebuild/api_op_CreateReportGroup.go +++ b/service/codebuild/api_op_CreateReportGroup.go @@ -46,8 +46,8 @@ type CreateReportGroupInput struct { Type types.ReportType // A list of tag key and value pairs associated with this report group. These tags - // are available for use by AWS services that support AWS CodeBuild report group - // tags. + // are available for use by Amazon Web Services services that support CodeBuild + // report group tags. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/codebuild/api_op_CreateWebhook.go b/service/codebuild/api_op_CreateWebhook.go index e23a85b6edb..af039845dad 100644 --- a/service/codebuild/api_op_CreateWebhook.go +++ b/service/codebuild/api_op_CreateWebhook.go @@ -11,16 +11,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// For an existing AWS CodeBuild build project that has its source code stored in a -// GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding the -// source code every time a code change is pushed to the repository. If you enable -// webhooks for an AWS CodeBuild project, and the project is used as a build step -// in AWS CodePipeline, then two identical builds are created for each commit. One -// build is triggered through webhooks, and one through AWS CodePipeline. Because -// billing is on a per-build basis, you are billed for both builds. Therefore, if -// you are using AWS CodePipeline, we recommend that you disable webhooks in AWS -// CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more -// information, see step 5 in Change a Build Project's Settings +// For an existing CodeBuild build project that has its source code stored in a +// GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source +// code every time a code change is pushed to the repository. If you enable +// webhooks for an CodeBuild project, and the project is used as a build step in +// CodePipeline, then two identical builds are created for each commit. One build +// is triggered through webhooks, and one through CodePipeline. Because billing is +// on a per-build basis, you are billed for both builds. Therefore, if you are +// using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the +// CodeBuild console, clear the Webhook box. For more information, see step 5 in +// Change a Build Project's Settings // (https://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console). func (c *Client) CreateWebhook(ctx context.Context, params *CreateWebhookInput, optFns ...func(*Options)) (*CreateWebhookOutput, error) { if params == nil { @@ -39,7 +39,7 @@ func (c *Client) CreateWebhook(ctx context.Context, params *CreateWebhookInput, type CreateWebhookInput struct { - // The name of the AWS CodeBuild project. + // The name of the CodeBuild project. // // This member is required. ProjectName *string @@ -65,7 +65,7 @@ type CreateWebhookInput struct { type CreateWebhookOutput struct { // Information about a webhook that connects repository events to a build project - // in AWS CodeBuild. + // in CodeBuild. Webhook *types.Webhook // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_DeleteWebhook.go b/service/codebuild/api_op_DeleteWebhook.go index 63a90f1eb8e..3ce25502894 100644 --- a/service/codebuild/api_op_DeleteWebhook.go +++ b/service/codebuild/api_op_DeleteWebhook.go @@ -10,9 +10,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// For an existing AWS CodeBuild build project that has its source code stored in a -// GitHub or Bitbucket repository, stops AWS CodeBuild from rebuilding the source -// code every time a code change is pushed to the repository. +// For an existing CodeBuild build project that has its source code stored in a +// GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code +// every time a code change is pushed to the repository. func (c *Client) DeleteWebhook(ctx context.Context, params *DeleteWebhookInput, optFns ...func(*Options)) (*DeleteWebhookOutput, error) { if params == nil { params = &DeleteWebhookInput{} @@ -30,7 +30,7 @@ func (c *Client) DeleteWebhook(ctx context.Context, params *DeleteWebhookInput, type DeleteWebhookInput struct { - // The name of the AWS CodeBuild project. + // The name of the CodeBuild project. // // This member is required. ProjectName *string diff --git a/service/codebuild/api_op_ImportSourceCredentials.go b/service/codebuild/api_op_ImportSourceCredentials.go index 4fa2da59b1e..93d990bfb93 100644 --- a/service/codebuild/api_op_ImportSourceCredentials.go +++ b/service/codebuild/api_op_ImportSourceCredentials.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Imports the source repository credentials for an AWS CodeBuild project that has -// its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. +// Imports the source repository credentials for an CodeBuild project that has its +// source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. func (c *Client) ImportSourceCredentials(ctx context.Context, params *ImportSourceCredentialsInput, optFns ...func(*Options)) (*ImportSourceCredentialsOutput, error) { if params == nil { params = &ImportSourceCredentialsInput{} @@ -32,7 +32,7 @@ type ImportSourceCredentialsInput struct { // The type of authentication used to connect to a GitHub, GitHub Enterprise, or // Bitbucket repository. An OAUTH connection is not supported by the API and must - // be created using the AWS CodeBuild console. + // be created using the CodeBuild console. // // This member is required. AuthType types.AuthType diff --git a/service/codebuild/api_op_InvalidateProjectCache.go b/service/codebuild/api_op_InvalidateProjectCache.go index def0a121d06..429220b3d6f 100644 --- a/service/codebuild/api_op_InvalidateProjectCache.go +++ b/service/codebuild/api_op_InvalidateProjectCache.go @@ -28,7 +28,7 @@ func (c *Client) InvalidateProjectCache(ctx context.Context, params *InvalidateP type InvalidateProjectCacheInput struct { - // The name of the AWS CodeBuild build project that the cache is reset for. + // The name of the CodeBuild build project that the cache is reset for. // // This member is required. ProjectName *string diff --git a/service/codebuild/api_op_ListBuildsForProject.go b/service/codebuild/api_op_ListBuildsForProject.go index 19a86d2c88d..2dfe79b204b 100644 --- a/service/codebuild/api_op_ListBuildsForProject.go +++ b/service/codebuild/api_op_ListBuildsForProject.go @@ -31,7 +31,7 @@ func (c *Client) ListBuildsForProject(ctx context.Context, params *ListBuildsFor type ListBuildsForProjectInput struct { - // The name of the AWS CodeBuild project. + // The name of the CodeBuild project. // // This member is required. ProjectName *string diff --git a/service/codebuild/api_op_ListCuratedEnvironmentImages.go b/service/codebuild/api_op_ListCuratedEnvironmentImages.go index 4bf82282810..3e26c75234e 100644 --- a/service/codebuild/api_op_ListCuratedEnvironmentImages.go +++ b/service/codebuild/api_op_ListCuratedEnvironmentImages.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets information about Docker images that are managed by AWS CodeBuild. +// Gets information about Docker images that are managed by CodeBuild. func (c *Client) ListCuratedEnvironmentImages(ctx context.Context, params *ListCuratedEnvironmentImagesInput, optFns ...func(*Options)) (*ListCuratedEnvironmentImagesOutput, error) { if params == nil { params = &ListCuratedEnvironmentImagesInput{} @@ -33,7 +33,7 @@ type ListCuratedEnvironmentImagesInput struct { type ListCuratedEnvironmentImagesOutput struct { - // Information about supported platforms for Docker images that are managed by AWS + // Information about supported platforms for Docker images that are managed by // CodeBuild. Platforms []types.EnvironmentPlatform diff --git a/service/codebuild/api_op_ListReportGroups.go b/service/codebuild/api_op_ListReportGroups.go index c8cee96e63e..5777b757716 100644 --- a/service/codebuild/api_op_ListReportGroups.go +++ b/service/codebuild/api_op_ListReportGroups.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets a list ARNs for the report groups in the current AWS account. +// Gets a list ARNs for the report groups in the current Amazon Web Services +// account. func (c *Client) ListReportGroups(ctx context.Context, params *ListReportGroupsInput, optFns ...func(*Options)) (*ListReportGroupsOutput, error) { if params == nil { params = &ListReportGroupsInput{} @@ -72,7 +73,8 @@ type ListReportGroupsOutput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The list of ARNs for the report groups in the current AWS account. + // The list of ARNs for the report groups in the current Amazon Web Services + // account. ReportGroups []string // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_ListReports.go b/service/codebuild/api_op_ListReports.go index bea59d8ecba..73e3eabf89e 100644 --- a/service/codebuild/api_op_ListReports.go +++ b/service/codebuild/api_op_ListReports.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of ARNs for the reports in the current AWS account. +// Returns a list of ARNs for the reports in the current Amazon Web Services +// account. func (c *Client) ListReports(ctx context.Context, params *ListReportsInput, optFns ...func(*Options)) (*ListReportsOutput, error) { if params == nil { params = &ListReportsInput{} @@ -68,7 +69,8 @@ type ListReportsOutput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The list of returned ARNs for the reports in the current AWS account. + // The list of returned ARNs for the reports in the current Amazon Web Services + // account. Reports []string // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_ListSharedProjects.go b/service/codebuild/api_op_ListSharedProjects.go index 1015ed1afab..67da01f8f4c 100644 --- a/service/codebuild/api_op_ListSharedProjects.go +++ b/service/codebuild/api_op_ListSharedProjects.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets a list of projects that are shared with other AWS accounts or users. +// Gets a list of projects that are shared with other Amazon Web Services accounts +// or users. func (c *Client) ListSharedProjects(ctx context.Context, params *ListSharedProjectsInput, optFns ...func(*Options)) (*ListSharedProjectsOutput, error) { if params == nil { params = &ListSharedProjectsInput{} @@ -43,14 +44,14 @@ type ListSharedProjectsInput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The criterion to be used to list build projects shared with the current AWS - // account or user. Valid values include: + // The criterion to be used to list build projects shared with the current Amazon + // Web Services account or user. Valid values include: // - // * ARN: List based on the ARN. + // * ARN: List based on the + // ARN. // - // * - // MODIFIED_TIME: List based on when information about the shared project was last - // changed. + // * MODIFIED_TIME: List based on when information about the shared project + // was last changed. SortBy types.SharedResourceSortByType // The order in which to list shared build projects. Valid values include: @@ -74,8 +75,8 @@ type ListSharedProjectsOutput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The list of ARNs for the build projects shared with the current AWS account or - // user. + // The list of ARNs for the build projects shared with the current Amazon Web + // Services account or user. Projects []string // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_ListSharedReportGroups.go b/service/codebuild/api_op_ListSharedReportGroups.go index 269e558491b..cfda106d3db 100644 --- a/service/codebuild/api_op_ListSharedReportGroups.go +++ b/service/codebuild/api_op_ListSharedReportGroups.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets a list of report groups that are shared with other AWS accounts or users. +// Gets a list of report groups that are shared with other Amazon Web Services +// accounts or users. func (c *Client) ListSharedReportGroups(ctx context.Context, params *ListSharedReportGroupsInput, optFns ...func(*Options)) (*ListSharedReportGroupsOutput, error) { if params == nil { params = &ListSharedReportGroupsInput{} @@ -43,14 +44,14 @@ type ListSharedReportGroupsInput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The criterion to be used to list report groups shared with the current AWS - // account or user. Valid values include: + // The criterion to be used to list report groups shared with the current Amazon + // Web Services account or user. Valid values include: // - // * ARN: List based on the ARN. + // * ARN: List based on the + // ARN. // - // * - // MODIFIED_TIME: List based on when information about the shared report group was - // last changed. + // * MODIFIED_TIME: List based on when information about the shared report + // group was last changed. SortBy types.SharedResourceSortByType // The order in which to list shared report groups. Valid values include: @@ -74,8 +75,8 @@ type ListSharedReportGroupsOutput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The list of ARNs for the report groups shared with the current AWS account or - // user. + // The list of ARNs for the report groups shared with the current Amazon Web + // Services account or user. ReportGroups []string // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_PutResourcePolicy.go b/service/codebuild/api_op_PutResourcePolicy.go index eae33a56061..076cb21b8ea 100644 --- a/service/codebuild/api_op_PutResourcePolicy.go +++ b/service/codebuild/api_op_PutResourcePolicy.go @@ -32,7 +32,7 @@ type PutResourcePolicyInput struct { // (https://docs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share) // and Sharing a Report Group // (https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html#report-groups-sharing-share) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. // // This member is required. Policy *string diff --git a/service/codebuild/api_op_RetryBuild.go b/service/codebuild/api_op_RetryBuild.go index a7adc0cf976..364f8ccdd43 100644 --- a/service/codebuild/api_op_RetryBuild.go +++ b/service/codebuild/api_op_RetryBuild.go @@ -35,7 +35,7 @@ type RetryBuildInput struct { // A unique, case sensitive identifier you provide to ensure the idempotency of the // RetryBuild request. The token is included in the RetryBuild request and is valid // for five minutes. If you repeat the RetryBuild request with the same token, but - // change a parameter, AWS CodeBuild returns a parameter mismatch error. + // change a parameter, CodeBuild returns a parameter mismatch error. IdempotencyToken *string noSmithyDocumentSerde diff --git a/service/codebuild/api_op_RetryBuildBatch.go b/service/codebuild/api_op_RetryBuildBatch.go index 47a638340e1..f1d77ef4091 100644 --- a/service/codebuild/api_op_RetryBuildBatch.go +++ b/service/codebuild/api_op_RetryBuildBatch.go @@ -36,8 +36,8 @@ type RetryBuildBatchInput struct { // A unique, case sensitive identifier you provide to ensure the idempotency of the // RetryBuildBatch request. The token is included in the RetryBuildBatch request // and is valid for five minutes. If you repeat the RetryBuildBatch request with - // the same token, but change a parameter, AWS CodeBuild returns a parameter - // mismatch error. + // the same token, but change a parameter, CodeBuild returns a parameter mismatch + // error. IdempotencyToken *string // Specifies the type of retry to perform. diff --git a/service/codebuild/api_op_StartBuild.go b/service/codebuild/api_op_StartBuild.go index 955a1a6e208..3b44b805677 100644 --- a/service/codebuild/api_op_StartBuild.go +++ b/service/codebuild/api_op_StartBuild.go @@ -29,7 +29,7 @@ func (c *Client) StartBuild(ctx context.Context, params *StartBuildInput, optFns type StartBuildInput struct { - // The name of the AWS CodeBuild build project to start running a build. + // The name of the CodeBuild build project to start running a build. // // This member is required. ProjectName *string @@ -47,7 +47,7 @@ type StartBuildInput struct { // already defined in the build project. If this value is set, it can be either an // inline buildspec definition, the path to an alternate buildspec file relative to // the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to - // an S3 bucket. The bucket must be in the same AWS Region as the build project. + // an S3 bucket. The bucket must be in the same Region as the build project. // Specify the buildspec file using its ARN (for example, // arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided // or is set to an empty string, the source code must contain a buildspec file in @@ -73,12 +73,12 @@ type StartBuildInput struct { // (https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html). DebugSessionEnabled *bool - // The AWS Key Management Service (AWS KMS) customer master key (CMK) that - // overrides the one specified in the build project. The CMK key encrypts the build - // output artifacts. You can use a cross-account KMS key to encrypt the build - // output artifacts if your service role has permission to that key. You can - // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the - // CMK's alias (using the format alias/). + // The Key Management Service customer master key (CMK) that overrides the one + // specified in the build project. The CMK key encrypts the build output artifacts. + // You can use a cross-account KMS key to encrypt the build output artifacts if + // your service role has permission to that key. You can specify either the Amazon + // Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the + // format alias/). EncryptionKeyOverride *string // A container type for this build that overrides the one specified in the build @@ -93,27 +93,27 @@ type StartBuildInput struct { // for this build only, any previous depth of history defined in the build project. GitCloneDepthOverride *int32 - // Information about the Git submodules configuration for this build of an AWS + // Information about the Git submodules configuration for this build of an // CodeBuild build project. GitSubmodulesConfigOverride *types.GitSubmodulesConfig // A unique, case sensitive identifier you provide to ensure the idempotency of the // StartBuild request. The token is included in the StartBuild request and is valid // for 5 minutes. If you repeat the StartBuild request with the same token, but - // change a parameter, AWS CodeBuild returns a parameter mismatch error. + // change a parameter, CodeBuild returns a parameter mismatch error. IdempotencyToken *string // The name of an image for this build that overrides the one specified in the // build project. ImageOverride *string - // The type of credentials AWS CodeBuild uses to pull images in your build. There - // are two valid values: CODEBUILD Specifies that AWS CodeBuild uses its own - // credentials. This requires that you modify your ECR repository policy to trust - // AWS CodeBuild's service principal. SERVICE_ROLE Specifies that AWS CodeBuild - // uses your build project's service role. When using a cross-account or private - // registry image, you must use SERVICE_ROLE credentials. When using an AWS - // CodeBuild curated image, you must use CODEBUILD credentials. + // The type of credentials CodeBuild uses to pull images in your build. There are + // two valid values: CODEBUILD Specifies that CodeBuild uses its own credentials. + // This requires that you modify your ECR repository policy to trust CodeBuild's + // service principal. SERVICE_ROLE Specifies that CodeBuild uses your build + // project's service role. When using a cross-account or private registry image, + // you must use SERVICE_ROLE credentials. When using an CodeBuild curated image, + // you must use CODEBUILD credentials. ImagePullCredentialsTypeOverride types.ImagePullCredentialsType // Enable this flag to override the insecure SSL setting that is specified in the @@ -143,8 +143,8 @@ type StartBuildInput struct { // write access, the build status cannot be updated. For more information, see // Source provider access // (https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html) in - // the AWS CodeBuild User Guide. The status of a build triggered by a webhook is - // always reported to your source provider. + // the CodeBuild User Guide. The status of a build triggered by a webhook is always + // reported to your source provider. ReportBuildStatusOverride *bool // An array of ProjectArtifacts objects. @@ -176,8 +176,8 @@ type StartBuildInput struct { // The version of the build input to be built, for this build only. If not // specified, the latest version is used. If specified, the contents depends on the - // source provider: AWS CodeCommit The commit ID, branch, or Git tag to use. GitHub - // The commit ID, pull request ID, branch name, or tag name that corresponds to the + // source provider: CodeCommit The commit ID, branch, or Git tag to use. GitHub The + // commit ID, pull request ID, branch name, or tag name that corresponds to the // version of the source code you want to build. If a pull request ID is specified, // it must use the format pr/pull-request-ID (for example pr/25). If a branch name // is specified, the branch's HEAD commit ID is used. If not specified, the default @@ -189,7 +189,7 @@ type StartBuildInput struct { // specified at the project level, then this sourceVersion (at the build level) // takes precedence. For more information, see Source Version Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. SourceVersion *string // The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, diff --git a/service/codebuild/api_op_StartBuildBatch.go b/service/codebuild/api_op_StartBuildBatch.go index 4f6afc1b77a..3ab28769745 100644 --- a/service/codebuild/api_op_StartBuildBatch.go +++ b/service/codebuild/api_op_StartBuildBatch.go @@ -49,7 +49,7 @@ type StartBuildBatchInput struct { // already defined in the build project. If this value is set, it can be either an // inline buildspec definition, the path to an alternate buildspec file relative to // the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to - // an S3 bucket. The bucket must be in the same AWS Region as the build project. + // an S3 bucket. The bucket must be in the same Region as the build project. // Specify the buildspec file using its ARN (for example, // arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided // or is set to an empty string, the source code must contain a buildspec file in @@ -75,12 +75,12 @@ type StartBuildBatchInput struct { // Batch session debugging is not supported for matrix batch builds. DebugSessionEnabled *bool - // The AWS Key Management Service (AWS KMS) customer master key (CMK) that - // overrides the one specified in the batch build project. The CMK key encrypts the - // build output artifacts. You can use a cross-account KMS key to encrypt the build - // output artifacts if your service role has permission to that key. You can - // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the - // CMK's alias (using the format alias/). + // The Key Management Service customer master key (CMK) that overrides the one + // specified in the batch build project. The CMK key encrypts the build output + // artifacts. You can use a cross-account KMS key to encrypt the build output + // artifacts if your service role has permission to that key. You can specify + // either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's + // alias (using the format alias/). EncryptionKeyOverride *string // A container type for this batch build that overrides the one specified in the @@ -103,21 +103,21 @@ type StartBuildBatchInput struct { // A unique, case sensitive identifier you provide to ensure the idempotency of the // StartBuildBatch request. The token is included in the StartBuildBatch request // and is valid for five minutes. If you repeat the StartBuildBatch request with - // the same token, but change a parameter, AWS CodeBuild returns a parameter - // mismatch error. + // the same token, but change a parameter, CodeBuild returns a parameter mismatch + // error. IdempotencyToken *string // The name of an image for this batch build that overrides the one specified in // the batch build project. ImageOverride *string - // The type of credentials AWS CodeBuild uses to pull images in your batch build. - // There are two valid values: CODEBUILD Specifies that AWS CodeBuild uses its own + // The type of credentials CodeBuild uses to pull images in your batch build. There + // are two valid values: CODEBUILD Specifies that CodeBuild uses its own // credentials. This requires that you modify your ECR repository policy to trust - // AWS CodeBuild's service principal. SERVICE_ROLE Specifies that AWS CodeBuild - // uses your build project's service role. When using a cross-account or private - // registry image, you must use SERVICE_ROLE credentials. When using an AWS - // CodeBuild curated image, you must use CODEBUILD credentials. + // CodeBuild's service principal. SERVICE_ROLE Specifies that CodeBuild uses your + // build project's service role. When using a cross-account or private registry + // image, you must use SERVICE_ROLE credentials. When using an CodeBuild curated + // image, you must use CODEBUILD credentials. ImagePullCredentialsTypeOverride types.ImagePullCredentialsType // Enable this flag to override the insecure SSL setting that is specified in the @@ -177,8 +177,8 @@ type StartBuildBatchInput struct { // The version of the batch build input to be built, for this build only. If not // specified, the latest version is used. If specified, the contents depends on the - // source provider: AWS CodeCommit The commit ID, branch, or Git tag to use. GitHub - // The commit ID, pull request ID, branch name, or tag name that corresponds to the + // source provider: CodeCommit The commit ID, branch, or Git tag to use. GitHub The + // commit ID, pull request ID, branch name, or tag name that corresponds to the // version of the source code you want to build. If a pull request ID is specified, // it must use the format pr/pull-request-ID (for example pr/25). If a branch name // is specified, the branch's HEAD commit ID is used. If not specified, the default @@ -190,7 +190,7 @@ type StartBuildBatchInput struct { // specified at the project level, then this sourceVersion (at the build level) // takes precedence. For more information, see Source Version Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. SourceVersion *string noSmithyDocumentSerde diff --git a/service/codebuild/api_op_UpdateProject.go b/service/codebuild/api_op_UpdateProject.go index 206eaa608ed..59007e7e5af 100644 --- a/service/codebuild/api_op_UpdateProject.go +++ b/service/codebuild/api_op_UpdateProject.go @@ -58,11 +58,11 @@ type UpdateProjectInput struct { // A new or replacement description of the build project. Description *string - // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used - // for encrypting the build output artifacts. You can use a cross-account KMS key - // to encrypt the build output artifacts if your service role has permission to - // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, - // if available, the CMK's alias (using the format alias/). + // The Key Management Service customer master key (CMK) to be used for encrypting + // the build output artifacts. You can use a cross-account KMS key to encrypt the + // build output artifacts if your service role has permission to that key. You can + // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the + // CMK's alias (using the format alias/). EncryptionKey *string // Information to be changed about the build environment for the build project. @@ -75,7 +75,7 @@ type UpdateProjectInput struct { FileSystemLocations []types.ProjectFileSystemLocation // Information about logs for the build project. A project can create logs in - // Amazon CloudWatch Logs, logs in an S3 bucket, or both. + // CloudWatch Logs, logs in an S3 bucket, or both. LogsConfig *types.LogsConfig // The number of minutes a build is allowed to be queued before it times out. @@ -92,9 +92,9 @@ type UpdateProjectInput struct { // An array of ProjectSource objects. SecondarySources []types.ProjectSource - // The replacement ARN of the AWS Identity and Access Management (IAM) role that - // enables AWS CodeBuild to interact with dependent AWS services on behalf of the - // AWS account. + // The replacement ARN of the Identity and Access Management role that enables + // CodeBuild to interact with dependent Amazon Web Services services on behalf of + // the Amazon Web Services account. ServiceRole *string // Information to be changed about the build input source code for the build @@ -104,42 +104,42 @@ type UpdateProjectInput struct { // A version of the build input to be built for this project. If not specified, the // latest version is used. If specified, it must be one of: // - // * For AWS CodeCommit: - // the commit ID, branch, or Git tag to use. + // * For CodeCommit: the + // commit ID, branch, or Git tag to use. // - // * For GitHub: the commit ID, pull - // request ID, branch name, or tag name that corresponds to the version of the - // source code you want to build. If a pull request ID is specified, it must use - // the format pr/pull-request-ID (for example pr/25). If a branch name is - // specified, the branch's HEAD commit ID is used. If not specified, the default - // branch's HEAD commit ID is used. + // * For GitHub: the commit ID, pull request + // ID, branch name, or tag name that corresponds to the version of the source code + // you want to build. If a pull request ID is specified, it must use the format + // pr/pull-request-ID (for example pr/25). If a branch name is specified, the + // branch's HEAD commit ID is used. If not specified, the default branch's HEAD + // commit ID is used. // - // * For Bitbucket: the commit ID, branch name, - // or tag name that corresponds to the version of the source code you want to - // build. If a branch name is specified, the branch's HEAD commit ID is used. If - // not specified, the default branch's HEAD commit ID is used. + // * For Bitbucket: the commit ID, branch name, or tag name + // that corresponds to the version of the source code you want to build. If a + // branch name is specified, the branch's HEAD commit ID is used. If not specified, + // the default branch's HEAD commit ID is used. // - // * For Amazon S3: - // the version ID of the object that represents the build input ZIP file to - // use. + // * For Amazon S3: the version ID of + // the object that represents the build input ZIP file to use. // - // If sourceVersion is specified at the build level, then that version takes - // precedence over this sourceVersion (at the project level). For more information, - // see Source Version Sample with CodeBuild + // If sourceVersion is + // specified at the build level, then that version takes precedence over this + // sourceVersion (at the project level). For more information, see Source Version + // Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. SourceVersion *string // An updated list of tag key and value pairs associated with this build project. - // These tags are available for use by AWS services that support AWS CodeBuild - // build project tags. + // These tags are available for use by Amazon Web Services services that support + // CodeBuild build project tags. Tags []types.Tag - // The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to - // wait before timing out any related build that did not get marked as completed. + // The replacement value in minutes, from 5 to 480 (8 hours), for CodeBuild to wait + // before timing out any related build that did not get marked as completed. TimeoutInMinutes *int32 - // VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC. + // VpcConfig enables CodeBuild to access resources in an Amazon VPC. VpcConfig *types.VpcConfig noSmithyDocumentSerde diff --git a/service/codebuild/api_op_UpdateReportGroup.go b/service/codebuild/api_op_UpdateReportGroup.go index b9cfe6b15db..c775189657e 100644 --- a/service/codebuild/api_op_UpdateReportGroup.go +++ b/service/codebuild/api_op_UpdateReportGroup.go @@ -44,8 +44,8 @@ type UpdateReportGroupInput struct { ExportConfig *types.ReportExportConfig // An updated list of tag key and value pairs associated with this report group. - // These tags are available for use by AWS services that support AWS CodeBuild - // report group tags. + // These tags are available for use by Amazon Web Services services that support + // CodeBuild report group tags. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/codebuild/api_op_UpdateWebhook.go b/service/codebuild/api_op_UpdateWebhook.go index bbe46072729..96e15a201c8 100644 --- a/service/codebuild/api_op_UpdateWebhook.go +++ b/service/codebuild/api_op_UpdateWebhook.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the webhook associated with an AWS CodeBuild build project. If you use +// Updates the webhook associated with an CodeBuild build project. If you use // Bitbucket for your repository, rotateSecret is ignored. func (c *Client) UpdateWebhook(ctx context.Context, params *UpdateWebhookInput, optFns ...func(*Options)) (*UpdateWebhookOutput, error) { if params == nil { @@ -30,7 +30,7 @@ func (c *Client) UpdateWebhook(ctx context.Context, params *UpdateWebhookInput, type UpdateWebhookInput struct { - // The name of the AWS CodeBuild project. + // The name of the CodeBuild project. // // This member is required. ProjectName *string @@ -60,7 +60,7 @@ type UpdateWebhookInput struct { type UpdateWebhookOutput struct { // Information about a repository's webhook that is associated with a project in - // AWS CodeBuild. + // CodeBuild. Webhook *types.Webhook // Metadata pertaining to the operation's result. diff --git a/service/codebuild/deserializers.go b/service/codebuild/deserializers.go index deee75ff9a4..6902de76bf7 100644 --- a/service/codebuild/deserializers.go +++ b/service/codebuild/deserializers.go @@ -5577,15 +5577,6 @@ func awsAwsjson11_deserializeDocumentBuildArtifacts(v **types.BuildArtifacts, va sv.ArtifactIdentifier = ptr.String(jtv) } - case "bucketOwnerAccess": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BucketOwnerAccess to be of type string, got %T instead", value) - } - sv.BucketOwnerAccess = types.BucketOwnerAccess(jtv) - } - case "encryptionDisabled": if value != nil { jtv, ok := value.(bool) @@ -8492,15 +8483,6 @@ func awsAwsjson11_deserializeDocumentProjectArtifacts(v **types.ProjectArtifacts sv.ArtifactIdentifier = ptr.String(jtv) } - case "bucketOwnerAccess": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BucketOwnerAccess to be of type string, got %T instead", value) - } - sv.BucketOwnerAccess = types.BucketOwnerAccess(jtv) - } - case "encryptionDisabled": if value != nil { jtv, ok := value.(bool) @@ -10186,15 +10168,6 @@ func awsAwsjson11_deserializeDocumentS3LogsConfig(v **types.S3LogsConfig, value for key, value := range shape { switch key { - case "bucketOwnerAccess": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BucketOwnerAccess to be of type string, got %T instead", value) - } - sv.BucketOwnerAccess = types.BucketOwnerAccess(jtv) - } - case "encryptionDisabled": if value != nil { jtv, ok := value.(bool) diff --git a/service/codebuild/doc.go b/service/codebuild/doc.go index d7be2975260..7f75d1e4de2 100644 --- a/service/codebuild/doc.go +++ b/service/codebuild/doc.go @@ -3,14 +3,14 @@ // Package codebuild provides the API client, operations, and parameter types for // AWS CodeBuild. // -// AWS CodeBuild AWS CodeBuild is a fully managed build service in the cloud. AWS -// CodeBuild compiles your source code, runs unit tests, and produces artifacts -// that are ready to deploy. AWS CodeBuild eliminates the need to provision, -// manage, and scale your own build servers. It provides prepackaged build -// environments for the most popular programming languages and build tools, such as -// Apache Maven, Gradle, and more. You can also fully customize build environments -// in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically -// to meet peak build requests. You pay only for the build time you consume. For -// more information about AWS CodeBuild, see the AWS CodeBuild User Guide +// CodeBuild is a fully managed build service in the cloud. CodeBuild compiles your +// source code, runs unit tests, and produces artifacts that are ready to deploy. +// CodeBuild eliminates the need to provision, manage, and scale your own build +// servers. It provides prepackaged build environments for the most popular +// programming languages and build tools, such as Apache Maven, Gradle, and more. +// You can also fully customize build environments in CodeBuild to use your own +// build tools. CodeBuild scales automatically to meet peak build requests. You pay +// only for the build time you consume. For more information about CodeBuild, see +// the CodeBuild User Guide // (https://docs.aws.amazon.com/codebuild/latest/userguide/welcome.html). package codebuild diff --git a/service/codebuild/go.mod b/service/codebuild/go.mod index 43399c0a469..7961677b7f7 100644 --- a/service/codebuild/go.mod +++ b/service/codebuild/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codebuild/go.sum b/service/codebuild/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/codebuild/go.sum +++ b/service/codebuild/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codebuild/serializers.go b/service/codebuild/serializers.go index 1b2f4d776c6..b01f9e66779 100644 --- a/service/codebuild/serializers.go +++ b/service/codebuild/serializers.go @@ -2291,11 +2291,6 @@ func awsAwsjson11_serializeDocumentProjectArtifacts(v *types.ProjectArtifacts, v ok.String(*v.ArtifactIdentifier) } - if len(v.BucketOwnerAccess) > 0 { - ok := object.Key("bucketOwnerAccess") - ok.String(string(v.BucketOwnerAccess)) - } - if v.EncryptionDisabled != nil { ok := object.Key("encryptionDisabled") ok.Boolean(*v.EncryptionDisabled) @@ -2703,11 +2698,6 @@ func awsAwsjson11_serializeDocumentS3LogsConfig(v *types.S3LogsConfig, value smi object := value.Object() defer object.Close() - if len(v.BucketOwnerAccess) > 0 { - ok := object.Key("bucketOwnerAccess") - ok.String(string(v.BucketOwnerAccess)) - } - if v.EncryptionDisabled != nil { ok := object.Key("encryptionDisabled") ok.Boolean(*v.EncryptionDisabled) diff --git a/service/codebuild/types/enums.go b/service/codebuild/types/enums.go index 0c7901e0202..16926bc1a19 100644 --- a/service/codebuild/types/enums.go +++ b/service/codebuild/types/enums.go @@ -78,26 +78,6 @@ func (AuthType) Values() []AuthType { } } -type BucketOwnerAccess string - -// Enum values for BucketOwnerAccess -const ( - BucketOwnerAccessNone BucketOwnerAccess = "NONE" - BucketOwnerAccessReadOnly BucketOwnerAccess = "READ_ONLY" - BucketOwnerAccessFull BucketOwnerAccess = "FULL" -) - -// Values returns all known values for BucketOwnerAccess. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (BucketOwnerAccess) Values() []BucketOwnerAccess { - return []BucketOwnerAccess{ - "NONE", - "READ_ONLY", - "FULL", - } -} - type BuildBatchPhaseType string // Enum values for BuildBatchPhaseType diff --git a/service/codebuild/types/errors.go b/service/codebuild/types/errors.go index d9f62b1774c..906da671c36 100644 --- a/service/codebuild/types/errors.go +++ b/service/codebuild/types/errors.go @@ -7,7 +7,8 @@ import ( smithy "github.com/aws/smithy-go" ) -// An AWS service limit was exceeded for the calling AWS account. +// An Amazon Web Services service limit was exceeded for the calling Amazon Web +// Services account. type AccountLimitExceededException struct { Message *string @@ -64,8 +65,8 @@ func (e *OAuthProviderException) ErrorMessage() string { func (e *OAuthProviderException) ErrorCode() string { return "OAuthProviderException" } func (e *OAuthProviderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The specified AWS resource cannot be created, because an AWS resource with the -// same settings already exists. +// The specified Amazon Web Services resource cannot be created, because an Amazon +// Web Services resource with the same settings already exists. type ResourceAlreadyExistsException struct { Message *string @@ -84,7 +85,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The specified AWS resource cannot be found. +// The specified Amazon Web Services resource cannot be found. type ResourceNotFoundException struct { Message *string diff --git a/service/codebuild/types/types.go b/service/codebuild/types/types.go index b85cd3faadc..38d9985d445 100644 --- a/service/codebuild/types/types.go +++ b/service/codebuild/types/types.go @@ -13,7 +13,7 @@ type BatchRestrictions struct { // An array of strings that specify the compute types that are allowed for the // batch build. See Build environment compute types // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) - // in the AWS CodeBuild User Guide for these values. + // in the CodeBuild User Guide for these values. ComputeTypesAllowed []string // Specifies the maximum number of builds allowed. @@ -69,11 +69,11 @@ type Build struct { // Contains information about the debug session for this build. DebugSession *DebugSession - // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used - // for encrypting the build output artifacts. You can use a cross-account KMS key - // to encrypt the build output artifacts if your service role has permission to - // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, - // if available, the CMK's alias (using the format alias/). + // The Key Management Service customer master key (CMK) to be used for encrypting + // the build output artifacts. You can use a cross-account KMS key to encrypt the + // build output artifacts if your service role has permission to that key. You can + // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the + // CMK's alias (using the format alias/). EncryptionKey *string // When the build process ended, expressed in Unix time format. @@ -83,11 +83,11 @@ type Build struct { Environment *ProjectEnvironment // A list of exported environment variables for this build. Exported environment - // variables are used in conjunction with AWS CodePipeline to export environment + // variables are used in conjunction with CodePipeline to export environment // variables from the current build stage to subsequent stages in the pipeline. For // more information, see Working with variables // (https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html) - // in the AWS CodePipeline User Guide. + // in the CodePipeline User Guide. ExportedEnvironmentVariables []ExportedEnvironmentVariable // An array of ProjectFileSystemLocation objects for a CodeBuild build project. A @@ -101,19 +101,18 @@ type Build struct { // The entity that started the build. Valid values include: // - // * If AWS CodePipeline + // * If CodePipeline // started the build, the pipeline's name (for example, // codepipeline/my-demo-pipeline). // - // * If an AWS Identity and Access Management - // (IAM) user started the build, the user's name (for example, MyUserName). + // * If an Identity and Access Management user + // started the build, the user's name (for example, MyUserName). // - // * If - // the Jenkins plugin for AWS CodeBuild started the build, the string - // CodeBuild-Jenkins-Plugin. + // * If the Jenkins + // plugin for CodeBuild started the build, the string CodeBuild-Jenkins-Plugin. Initiator *string - // Information about the build's logs in Amazon CloudWatch Logs. + // Information about the build's logs in CloudWatch Logs. Logs *LogsLocation // Describes a network interface. @@ -123,7 +122,7 @@ type Build struct { // about any current build phase that is not yet complete. Phases []BuildPhase - // The name of the AWS CodeBuild project. + // The name of the CodeBuild project. ProjectName *string // The number of minutes a build is allowed to be queued before it times out. @@ -134,14 +133,14 @@ type Build struct { // An identifier for the version of this build's source code. // - // * For AWS - // CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. + // * For CodeCommit, + // GitHub, GitHub Enterprise, and BitBucket, the commit ID. // - // * For AWS - // CodePipeline, the source revision provided by AWS CodePipeline. + // * For CodePipeline, + // the source revision provided by CodePipeline. // - // * For Amazon - // S3, this does not apply. + // * For Amazon S3, this does not + // apply. ResolvedSourceVersion *string // An array of ProjectArtifacts objects. @@ -150,23 +149,22 @@ type Build struct { // An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one // of: // - // * For AWS CodeCommit: the commit ID, branch, or Git tag to use. + // * For CodeCommit: the commit ID, branch, or Git tag to use. // - // * For - // GitHub: the commit ID, pull request ID, branch name, or tag name that - // corresponds to the version of the source code you want to build. If a pull - // request ID is specified, it must use the format pr/pull-request-ID (for example, - // pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If - // not specified, the default branch's HEAD commit ID is used. + // * For GitHub: + // the commit ID, pull request ID, branch name, or tag name that corresponds to the + // version of the source code you want to build. If a pull request ID is specified, + // it must use the format pr/pull-request-ID (for example, pr/25). If a branch name + // is specified, the branch's HEAD commit ID is used. If not specified, the default + // branch's HEAD commit ID is used. // - // * For Bitbucket: - // the commit ID, branch name, or tag name that corresponds to the version of the - // source code you want to build. If a branch name is specified, the branch's HEAD - // commit ID is used. If not specified, the default branch's HEAD commit ID is - // used. + // * For Bitbucket: the commit ID, branch name, + // or tag name that corresponds to the version of the source code you want to + // build. If a branch name is specified, the branch's HEAD commit ID is used. If + // not specified, the default branch's HEAD commit ID is used. // - // * For Amazon S3: the version ID of the object that represents the build - // input ZIP file to use. + // * For Amazon S3: + // the version ID of the object that represents the build input ZIP file to use. SecondarySourceVersions []ProjectSourceVersion // An array of ProjectSource objects. @@ -183,18 +181,18 @@ type Build struct { // build level) takes precedence. For more information, see Source Version Sample // with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. SourceVersion *string // When the build process started, expressed in Unix time format. StartTime *time.Time - // How long, in minutes, for AWS CodeBuild to wait before timing out this build if - // it does not get marked as completed. + // How long, in minutes, for CodeBuild to wait before timing out this build if it + // does not get marked as completed. TimeoutInMinutes *int32 - // If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide - // this parameter that identifies the VPC ID and the list of security group IDs and + // If your CodeBuild project accesses resources in an Amazon VPC, you provide this + // parameter that identifies the VPC ID and the list of security group IDs and // subnet IDs. The security groups and subnets must belong to the same VPC. You // must provide at least one security group and one subnet ID. VpcConfig *VpcConfig @@ -208,29 +206,6 @@ type BuildArtifacts struct { // An identifier for this artifact definition. ArtifactIdentifier *string - // Specifies the access for objects that are uploaded to an Amazon S3 bucket that - // is owned by another account. By default, only the account that uploads the - // objects to the bucket has access to these objects. This property allows you to - // give the bucket owner access to these objects. NONE The bucket owner does not - // have access to the objects. This is the default. READ_ONLY The bucket owner has - // read only access to the objects. The uploading account retains ownership of the - // objects. FULL The bucket owner has full access to the objects. Object ownership - // is determined by the following criteria: - // - // * If the bucket is configured with the - // Bucket owner preferred setting, the bucket owner owns the objects. The uploading - // account will have object access as specified by the bucket's policy. - // - // * - // Otherwise, the uploading account retains ownership of the objects. - // - // For more - // information about Amazon S3 object ownership, see Controlling ownership of - // uploaded objects using S3 Object Ownership - // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) - // in the Amazon Simple Storage Service User Guide. - BucketOwnerAccess BucketOwnerAccess - // Information that tells you if encryption for build artifacts is disabled. EncryptionDisabled *bool @@ -299,11 +274,11 @@ type BuildBatch struct { // Batch session debugging is not supported for matrix batch builds. DebugSessionEnabled *bool - // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used - // for encrypting the batch build output artifacts. You can use a cross-account KMS - // key to encrypt the build output artifacts if your service role has permission to - // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, - // if available, the CMK's alias (using the format alias/). + // The Key Management Service customer master key (CMK) to be used for encrypting + // the batch build output artifacts. You can use a cross-account KMS key to encrypt + // the build output artifacts if your service role has permission to that key. You + // can specify either the Amazon Resource Name (ARN) of the CMK or, if available, + // the CMK's alias (using the format alias/). EncryptionKey *string // The date and time that the batch build ended. @@ -323,19 +298,19 @@ type BuildBatch struct { // The entity that started the batch build. Valid values include: // - // * If AWS + // * If // CodePipeline started the build, the pipeline's name (for example, // codepipeline/my-demo-pipeline). // - // * If an AWS Identity and Access Management - // (IAM) user started the build, the user's name. + // * If an Identity and Access Management user + // started the build, the user's name. // - // * If the Jenkins plugin for AWS - // CodeBuild started the build, the string CodeBuild-Jenkins-Plugin. + // * If the Jenkins plugin for CodeBuild + // started the build, the string CodeBuild-Jenkins-Plugin. Initiator *string - // Information about logs for a build project. These can be logs in Amazon - // CloudWatch Logs, built in a specified S3 bucket, or both. + // Information about logs for a build project. These can be logs in CloudWatch + // Logs, built in a specified S3 bucket, or both. LogConfig *LogsConfig // An array of BuildBatchPhase objects the specify the phases of the batch build. @@ -351,13 +326,13 @@ type BuildBatch struct { // The identifier of the resolved version of this batch build's source code. // // * For - // AWS CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. + // CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. // // * For - // AWS CodePipeline, the source revision provided by AWS CodePipeline. + // CodePipeline, the source revision provided by CodePipeline. // - // * For - // Amazon S3, this does not apply. + // * For Amazon S3, + // this does not apply. ResolvedSourceVersion *string // An array of BuildArtifacts objects the define the build artifacts for this batch @@ -367,23 +342,22 @@ type BuildBatch struct { // An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one // of: // - // * For AWS CodeCommit: the commit ID, branch, or Git tag to use. + // * For CodeCommit: the commit ID, branch, or Git tag to use. // - // * For - // GitHub: the commit ID, pull request ID, branch name, or tag name that - // corresponds to the version of the source code you want to build. If a pull - // request ID is specified, it must use the format pr/pull-request-ID (for example, - // pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If - // not specified, the default branch's HEAD commit ID is used. + // * For GitHub: + // the commit ID, pull request ID, branch name, or tag name that corresponds to the + // version of the source code you want to build. If a pull request ID is specified, + // it must use the format pr/pull-request-ID (for example, pr/25). If a branch name + // is specified, the branch's HEAD commit ID is used. If not specified, the default + // branch's HEAD commit ID is used. // - // * For Bitbucket: - // the commit ID, branch name, or tag name that corresponds to the version of the - // source code you want to build. If a branch name is specified, the branch's HEAD - // commit ID is used. If not specified, the default branch's HEAD commit ID is - // used. + // * For Bitbucket: the commit ID, branch name, + // or tag name that corresponds to the version of the source code you want to + // build. If a branch name is specified, the branch's HEAD commit ID is used. If + // not specified, the default branch's HEAD commit ID is used. // - // * For Amazon S3: the version ID of the object that represents the build - // input ZIP file to use. + // * For Amazon S3: + // the version ID of the object that represents the build input ZIP file to use. SecondarySourceVersions []ProjectSourceVersion // An array of ProjectSource objects that define the sources for the batch build. @@ -401,7 +375,7 @@ type BuildBatch struct { // The date and time that the batch build started. StartTime *time.Time - // Information about the VPC configuration that AWS CodeBuild accesses. + // Information about the VPC configuration that CodeBuild accesses. VpcConfig *VpcConfig noSmithyDocumentSerde @@ -551,8 +525,8 @@ type BuildPhase struct { noSmithyDocumentSerde } -// Contains information that defines how the AWS CodeBuild build project reports -// the build status to the source provider. +// Contains information that defines how the CodeBuild build project reports the +// build status to the source provider. type BuildStatusConfig struct { // Specifies the context of the build status CodeBuild sends to the source @@ -608,28 +582,27 @@ type BuildSummary struct { noSmithyDocumentSerde } -// Information about Amazon CloudWatch Logs for a build project. +// Information about CloudWatch Logs for a build project. type CloudWatchLogsConfig struct { - // The current status of the logs in Amazon CloudWatch Logs for a build project. - // Valid values are: + // The current status of the logs in CloudWatch Logs for a build project. Valid + // values are: // - // * ENABLED: Amazon CloudWatch Logs are enabled for this build - // project. + // * ENABLED: CloudWatch Logs are enabled for this build project. // - // * DISABLED: Amazon CloudWatch Logs are not enabled for this build - // project. + // * + // DISABLED: CloudWatch Logs are not enabled for this build project. // // This member is required. Status LogsConfigStatusType - // The group name of the logs in Amazon CloudWatch Logs. For more information, see - // Working with Log Groups and Log Streams + // The group name of the logs in CloudWatch Logs. For more information, see Working + // with Log Groups and Log Streams // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html). GroupName *string - // The prefix of the stream name of the Amazon CloudWatch Logs. For more - // information, see Working with Log Groups and Log Streams + // The prefix of the stream name of the CloudWatch Logs. For more information, see + // Working with Log Groups and Log Streams // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html). StreamName *string @@ -718,7 +691,7 @@ type DebugSession struct { noSmithyDocumentSerde } -// Information about a Docker image that is managed by AWS CodeBuild. +// Information about a Docker image that is managed by CodeBuild. type EnvironmentImage struct { // The description of the Docker image. @@ -734,7 +707,7 @@ type EnvironmentImage struct { } // A set of Docker images that are related by programming language and are managed -// by AWS CodeBuild. +// by CodeBuild. type EnvironmentLanguage struct { // The list of Docker images that are related by the specified programming @@ -747,7 +720,7 @@ type EnvironmentLanguage struct { noSmithyDocumentSerde } -// A set of Docker images that are related by platform and are managed by AWS +// A set of Docker images that are related by platform and are managed by // CodeBuild. type EnvironmentPlatform struct { @@ -769,11 +742,11 @@ type EnvironmentVariable struct { Name *string // The value of the environment variable. We strongly discourage the use of - // PLAINTEXT environment variables to store sensitive values, especially AWS secret - // key IDs and secret access keys. PLAINTEXT environment variables can be displayed - // in plain text using the AWS CodeBuild console and the AWS Command Line Interface - // (AWS CLI). For sensitive values, we recommend you use an environment variable of - // type PARAMETER_STORE or SECRETS_MANAGER. + // PLAINTEXT environment variables to store sensitive values, especially Amazon Web + // Services secret key IDs and secret access keys. PLAINTEXT environment variables + // can be displayed in plain text using the CodeBuild console and the AWS Command + // Line Interface (AWS CLI). For sensitive values, we recommend you use an + // environment variable of type PARAMETER_STORE or SECRETS_MANAGER. // // This member is required. Value *string @@ -781,31 +754,30 @@ type EnvironmentVariable struct { // The type of environment variable. Valid values include: // // * PARAMETER_STORE: An - // environment variable stored in Amazon EC2 Systems Manager Parameter Store. To - // learn how to specify a parameter store environment variable, see - // env/parameter-store + // environment variable stored in Systems Manager Parameter Store. To learn how to + // specify a parameter store environment variable, see env/parameter-store // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.parameter-store) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. // - // * PLAINTEXT: An environment variable in plain - // text format. This is the default value. + // * PLAINTEXT: An environment variable in plain text + // format. This is the default value. // - // * SECRETS_MANAGER: An environment - // variable stored in AWS Secrets Manager. To learn how to specify a secrets - // manager environment variable, see env/secrets-manager + // * SECRETS_MANAGER: An environment variable + // stored in Secrets Manager. To learn how to specify a secrets manager environment + // variable, see env/secrets-manager // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. Type EnvironmentVariableType noSmithyDocumentSerde } // Contains information about an exported environment variable. Exported -// environment variables are used in conjunction with AWS CodePipeline to export +// environment variables are used in conjunction with CodePipeline to export // environment variables from the current build stage to subsequent stages in the // pipeline. For more information, see Working with variables // (https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html) -// in the AWS CodePipeline User Guide. During a build, the value of a variable is +// in the CodePipeline User Guide. During a build, the value of a variable is // available starting with the install phase. It can be updated between the start // of the install phase and the end of the post_build phase. After the post_build // phase ends, the value of exported variables cannot change. @@ -820,11 +792,11 @@ type ExportedEnvironmentVariable struct { noSmithyDocumentSerde } -// Information about the Git submodules configuration for an AWS CodeBuild build +// Information about the Git submodules configuration for an CodeBuild build // project. type GitSubmodulesConfig struct { - // Set to true to fetch Git submodules for your AWS CodeBuild build project. + // Set to true to fetch Git submodules for your CodeBuild build project. // // This member is required. FetchSubmodules *bool @@ -832,12 +804,12 @@ type GitSubmodulesConfig struct { noSmithyDocumentSerde } -// Information about logs for a build project. These can be logs in Amazon -// CloudWatch Logs, built in a specified S3 bucket, or both. +// Information about logs for a build project. These can be logs in CloudWatch +// Logs, built in a specified S3 bucket, or both. type LogsConfig struct { - // Information about Amazon CloudWatch Logs for a build project. Amazon CloudWatch - // Logs are enabled by default. + // Information about CloudWatch Logs for a build project. CloudWatch Logs are + // enabled by default. CloudWatchLogs *CloudWatchLogsConfig // Information about logs built to an S3 bucket for a build project. S3 logs are @@ -847,22 +819,22 @@ type LogsConfig struct { noSmithyDocumentSerde } -// Information about build logs in Amazon CloudWatch Logs. +// Information about build logs in CloudWatch Logs. type LogsLocation struct { - // Information about Amazon CloudWatch Logs for a build project. + // Information about CloudWatch Logs for a build project. CloudWatchLogs *CloudWatchLogsConfig - // The ARN of Amazon CloudWatch Logs for a build project. Its format is + // The ARN of CloudWatch Logs for a build project. Its format is // arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}. - // For more information, see Resources Defined by Amazon CloudWatch Logs + // For more information, see Resources Defined by CloudWatch Logs // (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies). CloudWatchLogsArn *string - // The URL to an individual build log in Amazon CloudWatch Logs. + // The URL to an individual build log in CloudWatch Logs. DeepLink *string - // The name of the Amazon CloudWatch Logs group for the build logs. + // The name of the CloudWatch Logs group for the build logs. GroupName *string // The URL to a build log in an S3 bucket. @@ -877,7 +849,7 @@ type LogsLocation struct { // (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies). S3LogsArn *string - // The name of the Amazon CloudWatch Logs stream for the build logs. + // The name of the CloudWatch Logs stream for the build logs. StreamName *string noSmithyDocumentSerde @@ -940,11 +912,12 @@ type Project struct { // A description that makes the build project easy to identify. Description *string - // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used - // for encrypting the build output artifacts. You can use a cross-account KMS key - // to encrypt the build output artifacts if your service role has permission to - // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, - // if available, the CMK's alias (using the format alias/). + // The Key Management Service customer master key (CMK) to be used for encrypting + // the build output artifacts. You can use a cross-account KMS key to encrypt the + // build output artifacts if your service role has permission to that key. You can + // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the + // CMK's alias (using the format alias/). If you don't specify a value, CodeBuild + // uses the managed CMK for Amazon Simple Storage Service (Amazon S3). EncryptionKey *string // Information about the build environment for this build project. @@ -961,7 +934,7 @@ type Project struct { LastModified *time.Time // Information about logs for the build project. A project can create logs in - // Amazon CloudWatch Logs, an S3 bucket, or both. + // CloudWatch Logs, an S3 bucket, or both. LogsConfig *LogsConfig // The name of the build project. @@ -981,8 +954,9 @@ type Project struct { // An array of ProjectSource objects. SecondarySources []ProjectSource - // The ARN of the AWS Identity and Access Management (IAM) role that enables AWS - // CodeBuild to interact with dependent AWS services on behalf of the AWS account. + // The ARN of the Identity and Access Management role that enables CodeBuild to + // interact with dependent Amazon Web Services services on behalf of the Amazon Web + // Services account. ServiceRole *string // Information about the build input source code for this build project. @@ -991,47 +965,47 @@ type Project struct { // A version of the build input to be built for this project. If not specified, the // latest version is used. If specified, it must be one of: // - // * For AWS CodeCommit: - // the commit ID, branch, or Git tag to use. + // * For CodeCommit: the + // commit ID, branch, or Git tag to use. // - // * For GitHub: the commit ID, pull - // request ID, branch name, or tag name that corresponds to the version of the - // source code you want to build. If a pull request ID is specified, it must use - // the format pr/pull-request-ID (for example pr/25). If a branch name is - // specified, the branch's HEAD commit ID is used. If not specified, the default - // branch's HEAD commit ID is used. + // * For GitHub: the commit ID, pull request + // ID, branch name, or tag name that corresponds to the version of the source code + // you want to build. If a pull request ID is specified, it must use the format + // pr/pull-request-ID (for example pr/25). If a branch name is specified, the + // branch's HEAD commit ID is used. If not specified, the default branch's HEAD + // commit ID is used. // - // * For Bitbucket: the commit ID, branch name, - // or tag name that corresponds to the version of the source code you want to - // build. If a branch name is specified, the branch's HEAD commit ID is used. If - // not specified, the default branch's HEAD commit ID is used. + // * For Bitbucket: the commit ID, branch name, or tag name + // that corresponds to the version of the source code you want to build. If a + // branch name is specified, the branch's HEAD commit ID is used. If not specified, + // the default branch's HEAD commit ID is used. // - // * For Amazon S3: - // the version ID of the object that represents the build input ZIP file to - // use. + // * For Amazon S3: the version ID of + // the object that represents the build input ZIP file to use. // - // If sourceVersion is specified at the build level, then that version takes - // precedence over this sourceVersion (at the project level). For more information, - // see Source Version Sample with CodeBuild + // If sourceVersion is + // specified at the build level, then that version takes precedence over this + // sourceVersion (at the project level). For more information, see Source Version + // Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. SourceVersion *string // A list of tag key and value pairs associated with this build project. These tags - // are available for use by AWS services that support AWS CodeBuild build project - // tags. + // are available for use by Amazon Web Services services that support CodeBuild + // build project tags. Tags []Tag - // How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before + // How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before // timing out any related build that did not get marked as completed. The default // is 60 minutes. TimeoutInMinutes *int32 - // Information about the VPC configuration that AWS CodeBuild accesses. + // Information about the VPC configuration that CodeBuild accesses. VpcConfig *VpcConfig // Information about a webhook that connects repository events to a build project - // in AWS CodeBuild. + // in CodeBuild. Webhook *Webhook noSmithyDocumentSerde @@ -1043,14 +1017,14 @@ type ProjectArtifacts struct { // The type of build output artifact. Valid values include: // // * CODEPIPELINE: The - // build project has build output generated through AWS CodePipeline. The - // CODEPIPELINE type is not supported for secondaryArtifacts. + // build project has build output generated through CodePipeline. The CODEPIPELINE + // type is not supported for secondaryArtifacts. // - // * NO_ARTIFACTS: The - // build project does not produce any build output. + // * NO_ARTIFACTS: The build project + // does not produce any build output. // - // * S3: The build project stores - // build output in Amazon S3. + // * S3: The build project stores build output + // in Amazon S3. // // This member is required. Type ArtifactsType @@ -1058,29 +1032,6 @@ type ProjectArtifacts struct { // An identifier for this artifact definition. ArtifactIdentifier *string - // Specifies the access for objects that are uploaded to an Amazon S3 bucket that - // is owned by another account. By default, only the account that uploads the - // objects to the bucket has access to these objects. This property allows you to - // give the bucket owner access to these objects. NONE The bucket owner does not - // have access to the objects. This is the default. READ_ONLY The bucket owner has - // read only access to the objects. The uploading account retains ownership of the - // objects. FULL The bucket owner has full access to the objects. Object ownership - // is determined by the following criteria: - // - // * If the bucket is configured with the - // Bucket owner preferred setting, the bucket owner owns the objects. The uploading - // account will have object access as specified by the bucket's policy. - // - // * - // Otherwise, the uploading account retains ownership of the objects. - // - // For more - // information about Amazon S3 object ownership, see Controlling ownership of - // uploaded objects using S3 Object Ownership - // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) - // in the Amazon Simple Storage Service User Guide. - BucketOwnerAccess BucketOwnerAccess - // Set to true if you do not want your output artifacts encrypted. This option is // valid only if your artifacts type is Amazon S3. If this is set with another // artifacts type, an invalidInputException is thrown. @@ -1089,65 +1040,64 @@ type ProjectArtifacts struct { // Information about the build output artifact location: // // * If type is set to - // CODEPIPELINE, AWS CodePipeline ignores this value if specified. This is because - // AWS CodePipeline manages its build output locations instead of AWS CodeBuild. + // CODEPIPELINE, CodePipeline ignores this value if specified. This is because + // CodePipeline manages its build output locations instead of CodeBuild. // - // * - // If type is set to NO_ARTIFACTS, this value is ignored if specified, because no - // build output is produced. + // * If type + // is set to NO_ARTIFACTS, this value is ignored if specified, because no build + // output is produced. // - // * If type is set to S3, this is the name of the - // output bucket. + // * If type is set to S3, this is the name of the output + // bucket. Location *string - // Along with path and namespaceType, the pattern that AWS CodeBuild uses to name - // and store the output artifact: + // Along with path and namespaceType, the pattern that CodeBuild uses to name and + // store the output artifact: // - // * If type is set to CODEPIPELINE, AWS - // CodePipeline ignores this value if specified. This is because AWS CodePipeline - // manages its build output names instead of AWS CodeBuild. + // * If type is set to CODEPIPELINE, CodePipeline + // ignores this value if specified. This is because CodePipeline manages its build + // output names instead of CodeBuild. // - // * If type is set to - // NO_ARTIFACTS, this value is ignored if specified, because no build output is - // produced. + // * If type is set to NO_ARTIFACTS, this value + // is ignored if specified, because no build output is produced. // - // * If type is set to S3, this is the name of the output artifact - // object. If you set the name to be a forward slash ("/"), the artifact is stored - // in the root of the output bucket. + // * If type is set + // to S3, this is the name of the output artifact object. If you set the name to be + // a forward slash ("/"), the artifact is stored in the root of the output + // bucket. // // For example: // - // * If path is set to - // MyArtifacts, namespaceType is set to BUILD_ID, and name is set to - // MyArtifact.zip, then the output artifact is stored in - // MyArtifacts//MyArtifact.zip. + // * If path is set to MyArtifacts, namespaceType is set to + // BUILD_ID, and name is set to MyArtifact.zip, then the output artifact is stored + // in MyArtifacts//MyArtifact.zip. // - // * If path is empty, namespaceType is set to NONE, - // and name is set to "/", the output artifact is stored in the root of the output - // bucket. + // * If path is empty, namespaceType is set to + // NONE, and name is set to "/", the output artifact is stored in the root of the + // output bucket. // - // * If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and - // name is set to "/", the output artifact is stored in MyArtifacts/. + // * If path is set to MyArtifacts, namespaceType is set to + // BUILD_ID, and name is set to "/", the output artifact is stored in MyArtifacts/. Name *string - // Along with path and name, the pattern that AWS CodeBuild uses to determine the - // name and location to store the output artifact: + // Along with path and name, the pattern that CodeBuild uses to determine the name + // and location to store the output artifact: // - // * If type is set to - // CODEPIPELINE, AWS CodePipeline ignores this value if specified. This is because - // AWS CodePipeline manages its build output names instead of AWS CodeBuild. + // * If type is set to CODEPIPELINE, + // CodePipeline ignores this value if specified. This is because CodePipeline + // manages its build output names instead of CodeBuild. // - // * If - // type is set to NO_ARTIFACTS, this value is ignored if specified, because no - // build output is produced. + // * If type is set to + // NO_ARTIFACTS, this value is ignored if specified, because no build output is + // produced. // // * If type is set to S3, valid values include: // - // * - // BUILD_ID: Include the build ID in the location of the build output artifact. + // * BUILD_ID: Include + // the build ID in the location of the build output artifact. // - // * - // NONE: Do not include the build ID. This is the default if namespaceType is not + // * NONE: Do not + // include the build ID. This is the default if namespaceType is not // specified. // // For example, if path is set to MyArtifacts, namespaceType is set to @@ -1164,42 +1114,40 @@ type ProjectArtifacts struct { // The type of build output artifact to create: // // * If type is set to CODEPIPELINE, - // AWS CodePipeline ignores this value if specified. This is because AWS - // CodePipeline manages its build output artifacts instead of AWS CodeBuild. + // CodePipeline ignores this value if specified. This is because CodePipeline + // manages its build output artifacts instead of CodeBuild. // - // * If - // type is set to NO_ARTIFACTS, this value is ignored if specified, because no - // build output is produced. + // * If type is set to + // NO_ARTIFACTS, this value is ignored if specified, because no build output is + // produced. // // * If type is set to S3, valid values include: // - // * - // NONE: AWS CodeBuild creates in the output bucket a folder that contains the - // build output. This is the default if packaging is not specified. + // * NONE: CodeBuild + // creates in the output bucket a folder that contains the build output. This is + // the default if packaging is not specified. // - // * ZIP: AWS - // CodeBuild creates in the output bucket a ZIP file that contains the build - // output. + // * ZIP: CodeBuild creates in the + // output bucket a ZIP file that contains the build output. Packaging ArtifactPackaging - // Along with namespaceType and name, the pattern that AWS CodeBuild uses to name - // and store the output artifact: + // Along with namespaceType and name, the pattern that CodeBuild uses to name and + // store the output artifact: // - // * If type is set to CODEPIPELINE, AWS - // CodePipeline ignores this value if specified. This is because AWS CodePipeline - // manages its build output names instead of AWS CodeBuild. + // * If type is set to CODEPIPELINE, CodePipeline + // ignores this value if specified. This is because CodePipeline manages its build + // output names instead of CodeBuild. // - // * If type is set to - // NO_ARTIFACTS, this value is ignored if specified, because no build output is - // produced. + // * If type is set to NO_ARTIFACTS, this value + // is ignored if specified, because no build output is produced. // - // * If type is set to S3, this is the path to the output artifact. If - // path is not specified, path is not used. + // * If type is set + // to S3, this is the path to the output artifact. If path is not specified, path + // is not used. // - // For example, if path is set to - // MyArtifacts, namespaceType is set to NONE, and name is set to MyArtifact.zip, - // the output artifact is stored in the output bucket at - // MyArtifacts/MyArtifact.zip. + // For example, if path is set to MyArtifacts, namespaceType is set + // to NONE, and name is set to MyArtifact.zip, the output artifact is stored in the + // output bucket at MyArtifacts/MyArtifact.zip. Path *string noSmithyDocumentSerde @@ -1340,7 +1288,7 @@ type ProjectEnvironment struct { // For more // information, see Build Environment Compute Types // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. // // This member is required. ComputeType ComputeType @@ -1357,6 +1305,11 @@ type ProjectEnvironment struct { // "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf," use // /@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf. // + // For + // more information, see Docker images provided by CodeBuild + // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html) + // in the CodeBuild user guide. + // // This member is required. Image *string @@ -1380,6 +1333,15 @@ type ProjectEnvironment struct { // Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific // (Sydney) , China (Beijing), and China (Ningxia). // + // * The environment types + // WINDOWS_CONTAINER and WINDOWS_SERVER_2019_CONTAINER are available only in + // regions US East (N. Virginia), US East (Ohio), US West (Oregon), and EU + // (Ireland). + // + // For more information, see Build environment compute types + // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) + // in the CodeBuild user guide. + // // This member is required. Type EnvironmentType @@ -1387,26 +1349,26 @@ type ProjectEnvironment struct { // PEM-encoded certificate for the build project. For more information, see // certificate // (https://docs.aws.amazon.com/codebuild/latest/userguide/create-project-cli.html#cli.environment.certificate) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. Certificate *string // A set of environment variables to make available to builds for this build // project. EnvironmentVariables []EnvironmentVariable - // The type of credentials AWS CodeBuild uses to pull images in your build. There - // are two valid values: + // The type of credentials CodeBuild uses to pull images in your build. There are + // two valid values: // - // * CODEBUILD specifies that AWS CodeBuild uses its own + // * CODEBUILD specifies that CodeBuild uses its own // credentials. This requires that you modify your ECR repository policy to trust - // AWS CodeBuild's service principal. + // CodeBuild service principal. // - // * SERVICE_ROLE specifies that AWS CodeBuild - // uses your build project's service role. + // * SERVICE_ROLE specifies that CodeBuild uses your + // build project's service role. // - // When you use a cross-account or private - // registry image, you must use SERVICE_ROLE credentials. When you use an AWS - // CodeBuild curated image, you must use CODEBUILD credentials. + // When you use a cross-account or private registry + // image, you must use SERVICE_ROLE credentials. When you use an CodeBuild curated + // image, you must use CODEBUILD credentials. ImagePullCredentialsType ImagePullCredentialsType // Enables running the Docker daemon inside a Docker container. Set to true only if @@ -1445,8 +1407,8 @@ type ProjectFileSystemLocation struct { // A string that specifies the location of the file system created by Amazon EFS. // Its format is efs-dns-name:/directory-path. You can find the DNS name of file - // system when you view it in the AWS EFS console. The directory path is a path to - // a directory in the file system that CodeBuild mounts. For example, if the DNS + // system when you view it in the Amazon EFS console. The directory path is a path + // to a directory in the file system that CodeBuild mounts. For example, if the DNS // name of a file system is fs-abcd1234.efs.us-west-2.amazonaws.com, and its mount // directory is my-efs-mount-directory, then the location is // fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory. The directory @@ -1455,7 +1417,7 @@ type ProjectFileSystemLocation struct { // the entire file system. Location *string - // The mount options for a file system created by AWS EFS. The default mount + // The mount options for a file system created by Amazon EFS. The default mount // options used by CodeBuild are // nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2. For more // information, see Recommended NFS Mount Options @@ -1480,10 +1442,10 @@ type ProjectSource struct { // * BITBUCKET: The source code is in a Bitbucket repository. // // * - // CODECOMMIT: The source code is in an AWS CodeCommit repository. + // CODECOMMIT: The source code is in an CodeCommit repository. // - // * CODEPIPELINE: - // The source code settings are specified in the source action of a pipeline in AWS + // * CODEPIPELINE: The + // source code settings are specified in the source action of a pipeline in // CodePipeline. // // * GITHUB: The source code is in a GitHub or GitHub Enterprise @@ -1500,9 +1462,9 @@ type ProjectSource struct { // This member is required. Type SourceType - // Information about the authorization settings for AWS CodeBuild to access the - // source code to be built. This information is for the AWS CodeBuild console's use - // only. Your code should not get or set this information directly. + // Information about the authorization settings for CodeBuild to access the source + // code to be built. This information is for the CodeBuild console's use only. Your + // code should not get or set this information directly. Auth *SourceAuth // Contains information that defines how the build project reports the build status @@ -1514,7 +1476,7 @@ type ProjectSource struct { // this value is set, it can be either an inline buildspec definition, the path to // an alternate buildspec file relative to the value of the built-in // CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket. The bucket - // must be in the same AWS Region as the build project. Specify the buildspec file + // must be in the same Region as the build project. Specify the buildspec file // using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If // this value is not provided or is set to an empty string, the source code must // contain a buildspec file in its root directory. For more information, see @@ -1536,13 +1498,13 @@ type ProjectSource struct { // include: // // * For source code settings that are specified in the source action of - // a pipeline in AWS CodePipeline, location should not be specified. If it is - // specified, AWS CodePipeline ignores it. This is because AWS CodePipeline uses - // the settings in a pipeline's source action instead of this value. + // a pipeline in CodePipeline, location should not be specified. If it is + // specified, CodePipeline ignores it. This is because CodePipeline uses the + // settings in a pipeline's source action instead of this value. // - // * For source - // code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that - // contains the source code and the buildspec file (for example, + // * For source code + // in an CodeCommit repository, the HTTPS clone URL to the repository that contains + // the source code and the buildspec file (for example, // https://git-codecommit..amazonaws.com/v1/repos/). // // * For source code in an @@ -1556,26 +1518,29 @@ type ProjectSource struct { // // * For source code in a GitHub // repository, the HTTPS clone URL to the repository that contains the source and - // the buildspec file. You must connect your AWS account to your GitHub account. - // Use the AWS CodeBuild console to start creating a build project. When you use - // the console to connect (or reconnect) with GitHub, on the GitHub Authorize + // the buildspec file. You must connect your account to your GitHub account. Use + // the CodeBuild console to start creating a build project. When you use the + // console to connect (or reconnect) with GitHub, on the GitHub Authorize // application page, for Organization access, choose Request access next to each - // repository you want to allow AWS CodeBuild to have access to, and then choose + // repository you want to allow CodeBuild to have access to, and then choose // Authorize application. (After you have connected to your GitHub account, you do - // not need to finish creating the build project. You can leave the AWS CodeBuild - // console.) To instruct AWS CodeBuild to use this connection, in the source - // object, set the auth object's type value to OAUTH. - // - // * For source code in a - // Bitbucket repository, the HTTPS clone URL to the repository that contains the - // source and the buildspec file. You must connect your AWS account to your - // Bitbucket account. Use the AWS CodeBuild console to start creating a build - // project. When you use the console to connect (or reconnect) with Bitbucket, on - // the Bitbucket Confirm access to your account page, choose Grant access. (After - // you have connected to your Bitbucket account, you do not need to finish creating - // the build project. You can leave the AWS CodeBuild console.) To instruct AWS - // CodeBuild to use this connection, in the source object, set the auth object's - // type value to OAUTH. + // not need to finish creating the build project. You can leave the CodeBuild + // console.) To instruct CodeBuild to use this connection, in the source object, + // set the auth object's type value to OAUTH. + // + // * For source code in a Bitbucket + // repository, the HTTPS clone URL to the repository that contains the source and + // the buildspec file. You must connect your Amazon Web Services account to your + // Bitbucket account. Use the CodeBuild console to start creating a build project. + // When you use the console to connect (or reconnect) with Bitbucket, on the + // Bitbucket Confirm access to your account page, choose Grant access. (After you + // have connected to your Bitbucket account, you do not need to finish creating the + // build project. You can leave the CodeBuild console.) To instruct CodeBuild to + // use this connection, in the source object, set the auth object's type value to + // OAUTH. + // + // If you specify CODEPIPELINE for the Type property, don't specify this + // property. For all of the other types, you must specify Location. Location *string // Set to true to report the status of a build's start and finish to your source @@ -1586,8 +1551,8 @@ type ProjectSource struct { // have write access to the repo. If the user does not have write access, the build // status cannot be updated. For more information, see Source provider access // (https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html) in - // the AWS CodeBuild User Guide. The status of a build triggered by a webhook is - // always reported to your source provider. + // the CodeBuild User Guide. The status of a build triggered by a webhook is always + // reported to your source provider. ReportBuildStatus *bool // An identifier for this project source. The identifier can only contain @@ -1611,10 +1576,10 @@ type ProjectSourceVersion struct { // The source version for the corresponding source identifier. If specified, must // be one of: // - // * For AWS CodeCommit: the commit ID, branch, or Git tag to use. + // * For CodeCommit: the commit ID, branch, or Git tag to use. // - // * - // For GitHub: the commit ID, pull request ID, branch name, or tag name that + // * For + // GitHub: the commit ID, pull request ID, branch name, or tag name that // corresponds to the version of the source code you want to build. If a pull // request ID is specified, it must use the format pr/pull-request-ID (for example, // pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If @@ -1632,7 +1597,7 @@ type ProjectSourceVersion struct { // For more information, see Source Version Sample with // CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the AWS CodeBuild User Guide. + // in the CodeBuild User Guide. // // This member is required. SourceVersion *string @@ -1649,19 +1614,19 @@ type ProjectSourceVersion struct { // images cannot be curated or an Amazon ECR image. // // For more information, see -// Private Registry with AWS Secrets Manager Sample for AWS CodeBuild +// Private Registry with Secrets Manager Sample for CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-private-registry.html). type RegistryCredential struct { - // The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets + // The Amazon Resource Name (ARN) or name of credentials created using Secrets // Manager. The credential can use the name of the credentials only if they exist - // in your current AWS Region. + // in your current Region. // // This member is required. Credential *string // The service that created the credentials to access a private Docker registry. - // The valid value, SECRETS_MANAGER, is for AWS Secrets Manager. + // The valid value, SECRETS_MANAGER, is for Secrets Manager. // // This member is required. CredentialProvider CredentialProviderType @@ -1774,8 +1739,8 @@ type ReportGroup struct { Status ReportGroupStatusType // A list of tag key and value pairs associated with this report group. These tags - // are available for use by AWS services that support AWS CodeBuild report group - // tags. + // are available for use by Amazon Web Services services that support CodeBuild + // report group tags. Tags []Tag // The type of the ReportGroup. This can be one of the following values: @@ -1844,29 +1809,6 @@ type S3LogsConfig struct { // This member is required. Status LogsConfigStatusType - // Specifies the access for objects that are uploaded to an Amazon S3 bucket that - // is owned by another account. By default, only the account that uploads the - // objects to the bucket has access to these objects. This property allows you to - // give the bucket owner access to these objects. NONE The bucket owner does not - // have access to the objects. This is the default. READ_ONLY The bucket owner has - // read only access to the objects. The uploading account retains ownership of the - // objects. FULL The bucket owner has full access to the objects. Object ownership - // is determined by the following criteria: - // - // * If the bucket is configured with the - // Bucket owner preferred setting, the bucket owner owns the objects. The uploading - // account will have object access as specified by the bucket's policy. - // - // * - // Otherwise, the uploading account retains ownership of the objects. - // - // For more - // information about Amazon S3 object ownership, see Controlling ownership of - // uploaded objects using S3 Object Ownership - // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) - // in the Amazon Simple Storage Service User Guide. - BucketOwnerAccess BucketOwnerAccess - // Set to true if you do not want your S3 build log output encrypted. By default S3 // build logs are encrypted. EncryptionDisabled *bool @@ -1885,9 +1827,9 @@ type S3ReportExportConfig struct { // The name of the S3 bucket where the raw data of a report are exported. Bucket *string - // The AWS account identifier of the owner of the Amazon S3 bucket. This allows - // report data to be exported to an Amazon S3 bucket that is owned by an account - // other than the account running the build. + // The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. + // This allows report data to be exported to an Amazon S3 bucket that is owned by + // an account other than the account running the build. BucketOwner *string // A boolean value that specifies if the results of a report are encrypted. @@ -1898,12 +1840,12 @@ type S3ReportExportConfig struct { // The type of build output artifact to create. Valid values include: // - // * NONE: AWS + // * NONE: // CodeBuild creates the raw data in the output bucket. This is the default if // packaging is not specified. // - // * ZIP: AWS CodeBuild creates a ZIP file with the - // raw data in the output bucket. + // * ZIP: CodeBuild creates a ZIP file with the raw + // data in the output bucket. Packaging ReportPackagingType // The path to the exported report's raw data results. @@ -1912,9 +1854,9 @@ type S3ReportExportConfig struct { noSmithyDocumentSerde } -// Information about the authorization settings for AWS CodeBuild to access the -// source code to be built. This information is for the AWS CodeBuild console's use -// only. Your code should not get or set this information directly. +// Information about the authorization settings for CodeBuild to access the source +// code to be built. This information is for the CodeBuild console's use only. Your +// code should not get or set this information directly. type SourceAuth struct { // This data type is deprecated and is no longer accurate or used. The @@ -1948,8 +1890,8 @@ type SourceCredentialsInfo struct { noSmithyDocumentSerde } -// A tag, consisting of a key and a value. This tag is available for use by AWS -// services that support tags in AWS CodeBuild. +// A tag, consisting of a key and a value. This tag is available for use by Amazon +// Web Services services that support tags in CodeBuild. type Tag struct { // The tag's key. @@ -2045,7 +1987,7 @@ type TestReportSummary struct { noSmithyDocumentSerde } -// Information about the VPC configuration that AWS CodeBuild accesses. +// Information about the VPC configuration that CodeBuild accesses. type VpcConfig struct { // A list of one or more security groups IDs in your Amazon VPC. @@ -2061,7 +2003,7 @@ type VpcConfig struct { } // Information about a webhook that connects repository events to a build project -// in AWS CodeBuild. +// in CodeBuild. type Webhook struct { // A regular expression used to determine which repository branches are built when @@ -2083,7 +2025,7 @@ type Webhook struct { // modified. LastModifiedSecret *time.Time - // The AWS CodeBuild endpoint where webhook events are sent. + // The CodeBuild endpoint where webhook events are sent. PayloadUrl *string // The secret token of the associated repository. A Bitbucket webhook does not diff --git a/service/codecommit/go.mod b/service/codecommit/go.mod index 45277969da5..152b1846bdc 100644 --- a/service/codecommit/go.mod +++ b/service/codecommit/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codecommit/go.sum b/service/codecommit/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/codecommit/go.sum +++ b/service/codecommit/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codedeploy/go.mod b/service/codedeploy/go.mod index e6a34ee4e5b..bef531188e6 100644 --- a/service/codedeploy/go.mod +++ b/service/codedeploy/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codedeploy/go.sum b/service/codedeploy/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/codedeploy/go.sum +++ b/service/codedeploy/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codeguruprofiler/go.mod b/service/codeguruprofiler/go.mod index df00b2373f0..bdf4559c4d4 100644 --- a/service/codeguruprofiler/go.mod +++ b/service/codeguruprofiler/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codeguruprofiler/go.sum b/service/codeguruprofiler/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/codeguruprofiler/go.sum +++ b/service/codeguruprofiler/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codegurureviewer/go.mod b/service/codegurureviewer/go.mod index 64d32826e2c..891ec48fe9b 100644 --- a/service/codegurureviewer/go.mod +++ b/service/codegurureviewer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codegurureviewer/go.sum b/service/codegurureviewer/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/codegurureviewer/go.sum +++ b/service/codegurureviewer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codepipeline/go.mod b/service/codepipeline/go.mod index 763169102e8..3f744bd9732 100644 --- a/service/codepipeline/go.mod +++ b/service/codepipeline/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codepipeline/go.sum b/service/codepipeline/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/codepipeline/go.sum +++ b/service/codepipeline/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codestar/go.mod b/service/codestar/go.mod index c0d6aa9e57d..4a910990912 100644 --- a/service/codestar/go.mod +++ b/service/codestar/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestar/go.sum b/service/codestar/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/codestar/go.sum +++ b/service/codestar/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codestarconnections/go.mod b/service/codestarconnections/go.mod index d2f86a652e1..9ee0a86f1f4 100644 --- a/service/codestarconnections/go.mod +++ b/service/codestarconnections/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestarconnections/go.sum b/service/codestarconnections/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/codestarconnections/go.sum +++ b/service/codestarconnections/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codestarnotifications/go.mod b/service/codestarnotifications/go.mod index 997f2f5d2e2..4e2a7dbf2df 100644 --- a/service/codestarnotifications/go.mod +++ b/service/codestarnotifications/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestarnotifications/go.sum b/service/codestarnotifications/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/codestarnotifications/go.sum +++ b/service/codestarnotifications/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cognitoidentity/go.mod b/service/cognitoidentity/go.mod index c1345a8e474..4f34a1eced7 100644 --- a/service/cognitoidentity/go.mod +++ b/service/cognitoidentity/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitoidentity/go.sum b/service/cognitoidentity/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cognitoidentity/go.sum +++ b/service/cognitoidentity/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go b/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go index 4267df2a11f..c18c7c1438f 100644 --- a/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go +++ b/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go @@ -42,12 +42,12 @@ type AdminConfirmSignUpInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. If your user pool configuration includes - // triggers, the AdminConfirmSignUp API action invokes the Lambda function that is - // specified for the post confirmation trigger. When Amazon Cognito invokes this + // triggers, the AdminConfirmSignUp API action invokes the AWS Lambda function that + // is specified for the post confirmation trigger. When Amazon Cognito invokes this // function, it passes a JSON payload, which the function receives as input. In // this payload, the clientMetadata attribute provides the data that you assigned // to the ClientMetadata parameter in your AdminConfirmSignUp request. In your - // function code in Lambda, you can process the ClientMetadata value to enhance + // function code in AWS Lambda, you can process the ClientMetadata value to enhance // your workflow for your specific needs. For more information, see Customizing // User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -55,7 +55,7 @@ type AdminConfirmSignUpInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminCreateUser.go b/service/cognitoidentityprovider/api_op_AdminCreateUser.go index 767d4da3a5f..828bd05c3c7 100644 --- a/service/cognitoidentityprovider/api_op_AdminCreateUser.go +++ b/service/cognitoidentityprovider/api_op_AdminCreateUser.go @@ -20,8 +20,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -67,21 +67,21 @@ type AdminCreateUserInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the AdminCreateUser API + // AWS Lambda functions to user pool triggers. When you use the AdminCreateUser API // action, Amazon Cognito invokes the function that is assigned to the pre sign-up // trigger. When Amazon Cognito invokes this function, it passes a JSON payload, // which the function receives as input. This payload contains a clientMetadata // attribute, which provides the data that you assigned to the ClientMetadata - // parameter in your AdminCreateUser request. In your function code in Lambda, you - // can process the clientMetadata value to enhance your workflow for your specific - // needs. For more information, see Customizing User Pool Workflows with Lambda - // Triggers + // parameter in your AdminCreateUser request. In your function code in AWS Lambda, + // you can process the clientMetadata value to enhance your workflow for your + // specific needs. For more information, see Customizing User Pool Workflows with + // Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go b/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go index c3c6c49f10d..ec835d91ccb 100644 --- a/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go +++ b/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go @@ -19,8 +19,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -126,49 +126,49 @@ type AdminInitiateAuthInput struct { // A map of custom key-value pairs that you can provide as input for certain custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the AdminInitiateAuth API - // action, Amazon Cognito invokes the Lambda functions that are specified for - // various triggers. The ClientMetadata value is passed as input to the functions - // for only the following triggers: + // AWS Lambda functions to user pool triggers. When you use the AdminInitiateAuth + // API action, Amazon Cognito invokes the AWS Lambda functions that are specified + // for various triggers. The ClientMetadata value is passed as input to the + // functions for only the following triggers: // // * Pre signup // - // * Pre authentication + // * Pre + // authentication // - // * User - // migration + // * User migration // - // When Amazon Cognito invokes the functions for these triggers, it - // passes a JSON payload, which the function receives as input. This payload - // contains a validationData attribute, which provides the data that you assigned - // to the ClientMetadata parameter in your AdminInitiateAuth request. In your - // function code in Lambda, you can process the validationData value to enhance - // your workflow for your specific needs. When you use the AdminInitiateAuth API - // action, Amazon Cognito also invokes the functions for the following triggers, - // but it does not provide the ClientMetadata value as input: + // When Amazon Cognito invokes the functions for + // these triggers, it passes a JSON payload, which the function receives as input. + // This payload contains a validationData attribute, which provides the data that + // you assigned to the ClientMetadata parameter in your AdminInitiateAuth request. + // In your function code in AWS Lambda, you can process the validationData value to + // enhance your workflow for your specific needs. When you use the + // AdminInitiateAuth API action, Amazon Cognito also invokes the functions for the + // following triggers, but it does not provide the ClientMetadata value as + // input: // - // * Post - // authentication + // * Post authentication // // * Custom message // // * Pre token generation // - // * Create auth - // challenge + // * + // Create auth challenge // // * Define auth challenge // // * Verify auth challenge // - // For more - // information, see Customizing User Pool Workflows with Lambda Triggers + // For + // more information, see Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go b/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go index 605aa658f46..db80095796e 100644 --- a/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go +++ b/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go @@ -27,7 +27,7 @@ import ( // use the the registered number automatically. Otherwise, Cognito users that must // receive SMS messages might be unable to sign up, activate their accounts, or // sign in. If you have never used SMS text messages with Amazon Cognito or any -// other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In +// other AWS service, Amazon SNS might place your account in SMS sandbox. In // sandbox mode (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , // you’ll have limitations, such as sending messages to only verified phone // numbers. After testing in the sandbox environment, you can move out of the SMS @@ -66,21 +66,21 @@ type AdminResetUserPasswordInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the AdminResetUserPassword - // API action, Amazon Cognito invokes the function that is assigned to the custom - // message trigger. When Amazon Cognito invokes this function, it passes a JSON - // payload, which the function receives as input. This payload contains a - // clientMetadata attribute, which provides the data that you assigned to the - // ClientMetadata parameter in your AdminResetUserPassword request. In your - // function code in Lambda, you can process the clientMetadata value to enhance - // your workflow for your specific needs. For more information, see Customizing - // User Pool Workflows with Lambda Triggers + // AWS Lambda functions to user pool triggers. When you use the + // AdminResetUserPassword API action, Amazon Cognito invokes the function that is + // assigned to the custom message trigger. When Amazon Cognito invokes this + // function, it passes a JSON payload, which the function receives as input. This + // payload contains a clientMetadata attribute, which provides the data that you + // assigned to the ClientMetadata parameter in your AdminResetUserPassword request. + // In your function code in AWS Lambda, you can process the clientMetadata value to + // enhance your workflow for your specific needs. For more information, see + // Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go b/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go index 6f659a39654..97602d75503 100644 --- a/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go +++ b/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go @@ -19,8 +19,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -97,7 +97,7 @@ type AdminRespondToAuthChallengeInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the + // AWS Lambda functions to user pool triggers. When you use the // AdminRespondToAuthChallenge API action, Amazon Cognito invokes any functions // that are assigned to the following triggers: pre sign-up, custom message, post // authentication, user migration, pre token generation, define auth challenge, @@ -105,8 +105,8 @@ type AdminRespondToAuthChallengeInput struct { // invokes any of these functions, it passes a JSON payload, which the function // receives as input. This payload contains a clientMetadata attribute, which // provides the data that you assigned to the ClientMetadata parameter in your - // AdminRespondToAuthChallenge request. In your function code in Lambda, you can - // process the clientMetadata value to enhance your workflow for your specific + // AdminRespondToAuthChallenge request. In your function code in AWS Lambda, you + // can process the clientMetadata value to enhance your workflow for your specific // needs. For more information, see Customizing User Pool Workflows with Lambda // Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -114,7 +114,7 @@ type AdminRespondToAuthChallengeInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go b/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go index 355cfc3aa89..4b5d392824e 100644 --- a/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go +++ b/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go @@ -22,8 +22,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -68,13 +68,13 @@ type AdminUpdateUserAttributesInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the + // AWS Lambda functions to user pool triggers. When you use the // AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that // is assigned to the custom message trigger. When Amazon Cognito invokes this // function, it passes a JSON payload, which the function receives as input. This // payload contains a clientMetadata attribute, which provides the data that you // assigned to the ClientMetadata parameter in your AdminUpdateUserAttributes - // request. In your function code in Lambda, you can process the clientMetadata + // request. In your function code in AWS Lambda, you can process the clientMetadata // value to enhance your workflow for your specific needs. For more information, // see Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -82,7 +82,7 @@ type AdminUpdateUserAttributesInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go b/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go index 92b7c78c093..889a6d68583 100644 --- a/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go +++ b/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go @@ -58,21 +58,21 @@ type ConfirmForgotPasswordInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the ConfirmForgotPassword - // API action, Amazon Cognito invokes the function that is assigned to the post - // confirmation trigger. When Amazon Cognito invokes this function, it passes a - // JSON payload, which the function receives as input. This payload contains a - // clientMetadata attribute, which provides the data that you assigned to the - // ClientMetadata parameter in your ConfirmForgotPassword request. In your function - // code in Lambda, you can process the clientMetadata value to enhance your - // workflow for your specific needs. For more information, see Customizing User - // Pool Workflows with Lambda Triggers + // AWS Lambda functions to user pool triggers. When you use the + // ConfirmForgotPassword API action, Amazon Cognito invokes the function that is + // assigned to the post confirmation trigger. When Amazon Cognito invokes this + // function, it passes a JSON payload, which the function receives as input. This + // payload contains a clientMetadata attribute, which provides the data that you + // assigned to the ClientMetadata parameter in your ConfirmForgotPassword request. + // In your function code in AWS Lambda, you can process the clientMetadata value to + // enhance your workflow for your specific needs. For more information, see + // Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_ConfirmSignUp.go b/service/cognitoidentityprovider/api_op_ConfirmSignUp.go index 9f0f2f4d4bb..533eb7def3c 100644 --- a/service/cognitoidentityprovider/api_op_ConfirmSignUp.go +++ b/service/cognitoidentityprovider/api_op_ConfirmSignUp.go @@ -51,21 +51,21 @@ type ConfirmSignUpInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the ConfirmSignUp API + // AWS Lambda functions to user pool triggers. When you use the ConfirmSignUp API // action, Amazon Cognito invokes the function that is assigned to the post // confirmation trigger. When Amazon Cognito invokes this function, it passes a // JSON payload, which the function receives as input. This payload contains a // clientMetadata attribute, which provides the data that you assigned to the // ClientMetadata parameter in your ConfirmSignUp request. In your function code in - // Lambda, you can process the clientMetadata value to enhance your workflow for - // your specific needs. For more information, see Customizing User Pool Workflows - // with Lambda Triggers + // AWS Lambda, you can process the clientMetadata value to enhance your workflow + // for your specific needs. For more information, see Customizing User Pool + // Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_CreateUserPool.go b/service/cognitoidentityprovider/api_op_CreateUserPool.go index d4a952dac7c..68daf5dcde5 100644 --- a/service/cognitoidentityprovider/api_op_CreateUserPool.go +++ b/service/cognitoidentityprovider/api_op_CreateUserPool.go @@ -19,8 +19,8 @@ import ( // Pinpoint (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the // the registered number automatically. Otherwise, Cognito users that must receive // SMS messages might be unable to sign up, activate their accounts, or sign in. If -// you have never used SMS text messages with Amazon Cognito or any other Amazon -// Web Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// you have never used SMS text messages with Amazon Cognito or any other AWS +// service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -94,7 +94,7 @@ type CreateUserPoolInput struct { // for these event sources to invoke your Lambda function. For more information on // using the Lambda API to add permission, see AddPermission // (https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html). For - // adding permission using the CLI, see add-permission + // adding permission using the AWS CLI, see add-permission // (https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html). LambdaConfig *types.LambdaConfigType diff --git a/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go b/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go index b7e8372ece7..039bcd45d30 100644 --- a/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go +++ b/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go @@ -62,7 +62,7 @@ type CreateUserPoolClientInput struct { AllowedOAuthFlowsUserPoolClient bool // The allowed OAuth scopes. Possible values provided by OAuth are: phone, email, - // openid, and profile. Possible values provided by Amazon Web Services are: + // openid, and profile. Possible values provided by AWS are: // aws.cognito.signin.user.admin. Custom scopes created in Resource Servers are // also supported. AllowedOAuthScopes []string diff --git a/service/cognitoidentityprovider/api_op_ForgotPassword.go b/service/cognitoidentityprovider/api_op_ForgotPassword.go index de5ea0ab3eb..72175125dfd 100644 --- a/service/cognitoidentityprovider/api_op_ForgotPassword.go +++ b/service/cognitoidentityprovider/api_op_ForgotPassword.go @@ -27,8 +27,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -71,13 +71,13 @@ type ForgotPasswordInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the ForgotPassword API + // AWS Lambda functions to user pool triggers. When you use the ForgotPassword API // action, Amazon Cognito invokes any functions that are assigned to the following // triggers: pre sign-up, custom message, and user migration. When Amazon Cognito // invokes any of these functions, it passes a JSON payload, which the function // receives as input. This payload contains a clientMetadata attribute, which // provides the data that you assigned to the ClientMetadata parameter in your - // ForgotPassword request. In your function code in Lambda, you can process the + // ForgotPassword request. In your function code in AWS Lambda, you can process the // clientMetadata value to enhance your workflow for your specific needs. For more // information, see Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -85,7 +85,7 @@ type ForgotPasswordInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go b/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go index 5f444ad0037..9071951c8b8 100644 --- a/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go +++ b/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go @@ -18,8 +18,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -59,22 +59,22 @@ type GetUserAttributeVerificationCodeInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the + // AWS Lambda functions to user pool triggers. When you use the // GetUserAttributeVerificationCode API action, Amazon Cognito invokes the function // that is assigned to the custom message trigger. When Amazon Cognito invokes this // function, it passes a JSON payload, which the function receives as input. This // payload contains a clientMetadata attribute, which provides the data that you // assigned to the ClientMetadata parameter in your - // GetUserAttributeVerificationCode request. In your function code in Lambda, you - // can process the clientMetadata value to enhance your workflow for your specific - // needs. For more information, see Customizing User Pool Workflows with Lambda - // Triggers + // GetUserAttributeVerificationCode request. In your function code in AWS Lambda, + // you can process the clientMetadata value to enhance your workflow for your + // specific needs. For more information, see Customizing User Pool Workflows with + // Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_InitiateAuth.go b/service/cognitoidentityprovider/api_op_InitiateAuth.go index 79492c327dd..783eb50f146 100644 --- a/service/cognitoidentityprovider/api_op_InitiateAuth.go +++ b/service/cognitoidentityprovider/api_op_InitiateAuth.go @@ -18,8 +18,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -113,8 +113,8 @@ type InitiateAuthInput struct { // A map of custom key-value pairs that you can provide as input for certain custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the InitiateAuth API - // action, Amazon Cognito invokes the Lambda functions that are specified for + // AWS Lambda functions to user pool triggers. When you use the InitiateAuth API + // action, Amazon Cognito invokes the AWS Lambda functions that are specified for // various triggers. The ClientMetadata value is passed as input to the functions // for only the following triggers: // @@ -129,7 +129,7 @@ type InitiateAuthInput struct { // passes a JSON payload, which the function receives as input. This payload // contains a validationData attribute, which provides the data that you assigned // to the ClientMetadata parameter in your InitiateAuth request. In your function - // code in Lambda, you can process the validationData value to enhance your + // code in AWS Lambda, you can process the validationData value to enhance your // workflow for your specific needs. When you use the InitiateAuth API action, // Amazon Cognito also invokes the functions for the following triggers, but it // does not provide the ClientMetadata value as input: @@ -155,7 +155,7 @@ type InitiateAuthInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_ListUserPools.go b/service/cognitoidentityprovider/api_op_ListUserPools.go index 2898747eec1..a4fa781641d 100644 --- a/service/cognitoidentityprovider/api_op_ListUserPools.go +++ b/service/cognitoidentityprovider/api_op_ListUserPools.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the user pools associated with an account. +// Lists the user pools associated with an AWS account. func (c *Client) ListUserPools(ctx context.Context, params *ListUserPoolsInput, optFns ...func(*Options)) (*ListUserPoolsOutput, error) { if params == nil { params = &ListUserPoolsInput{} diff --git a/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go b/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go index 41d1cafcbb1..6c6041cba93 100644 --- a/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go +++ b/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go @@ -18,8 +18,8 @@ import ( // Pinpoint (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the // the registered number automatically. Otherwise, Cognito users that must receive // SMS messages might be unable to sign up, activate their accounts, or sign in. If -// you have never used SMS text messages with Amazon Cognito or any other Amazon -// Web Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// you have never used SMS text messages with Amazon Cognito or any other AWS +// service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -61,21 +61,21 @@ type ResendConfirmationCodeInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the ResendConfirmationCode - // API action, Amazon Cognito invokes the function that is assigned to the custom - // message trigger. When Amazon Cognito invokes this function, it passes a JSON - // payload, which the function receives as input. This payload contains a - // clientMetadata attribute, which provides the data that you assigned to the - // ClientMetadata parameter in your ResendConfirmationCode request. In your - // function code in Lambda, you can process the clientMetadata value to enhance - // your workflow for your specific needs. For more information, see Customizing - // User Pool Workflows with Lambda Triggers + // AWS Lambda functions to user pool triggers. When you use the + // ResendConfirmationCode API action, Amazon Cognito invokes the function that is + // assigned to the custom message trigger. When Amazon Cognito invokes this + // function, it passes a JSON payload, which the function receives as input. This + // payload contains a clientMetadata attribute, which provides the data that you + // assigned to the ClientMetadata parameter in your ResendConfirmationCode request. + // In your function code in AWS Lambda, you can process the clientMetadata value to + // enhance your workflow for your specific needs. For more information, see + // Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go b/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go index 40a75bbdba9..bbeb63d3772 100644 --- a/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go +++ b/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go @@ -18,8 +18,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -90,22 +90,23 @@ type RespondToAuthChallengeInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the RespondToAuthChallenge - // API action, Amazon Cognito invokes any functions that are assigned to the - // following triggers: post authentication, pre token generation, define auth - // challenge, create auth challenge, and verify auth challenge. When Amazon Cognito - // invokes any of these functions, it passes a JSON payload, which the function - // receives as input. This payload contains a clientMetadata attribute, which - // provides the data that you assigned to the ClientMetadata parameter in your - // RespondToAuthChallenge request. In your function code in Lambda, you can process - // the clientMetadata value to enhance your workflow for your specific needs. For - // more information, see Customizing User Pool Workflows with Lambda Triggers + // AWS Lambda functions to user pool triggers. When you use the + // RespondToAuthChallenge API action, Amazon Cognito invokes any functions that are + // assigned to the following triggers: post authentication, pre token generation, + // define auth challenge, create auth challenge, and verify auth challenge. When + // Amazon Cognito invokes any of these functions, it passes a JSON payload, which + // the function receives as input. This payload contains a clientMetadata + // attribute, which provides the data that you assigned to the ClientMetadata + // parameter in your RespondToAuthChallenge request. In your function code in AWS + // Lambda, you can process the clientMetadata value to enhance your workflow for + // your specific needs. For more information, see Customizing User Pool Workflows + // with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_SetUserPoolMfaConfig.go b/service/cognitoidentityprovider/api_op_SetUserPoolMfaConfig.go index 2c71e2722ca..e941767044b 100644 --- a/service/cognitoidentityprovider/api_op_SetUserPoolMfaConfig.go +++ b/service/cognitoidentityprovider/api_op_SetUserPoolMfaConfig.go @@ -19,8 +19,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into diff --git a/service/cognitoidentityprovider/api_op_SignUp.go b/service/cognitoidentityprovider/api_op_SignUp.go index c57c826a31b..85dc72c7558 100644 --- a/service/cognitoidentityprovider/api_op_SignUp.go +++ b/service/cognitoidentityprovider/api_op_SignUp.go @@ -19,7 +19,7 @@ import ( // use the the registered number automatically. Otherwise, Cognito users that must // receive SMS messages might be unable to sign up, activate their accounts, or // sign in. If you have never used SMS text messages with Amazon Cognito or any -// other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In +// other AWS service, Amazon SNS might place your account in SMS sandbox. In // sandbox mode (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , // you’ll have limitations, such as sending messages to only verified phone // numbers. After testing in the sandbox environment, you can move out of the SMS @@ -65,13 +65,13 @@ type SignUpInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the SignUp API action, + // AWS Lambda functions to user pool triggers. When you use the SignUp API action, // Amazon Cognito invokes any functions that are assigned to the following // triggers: pre sign-up, custom message, and post confirmation. When Amazon // Cognito invokes any of these functions, it passes a JSON payload, which the // function receives as input. This payload contains a clientMetadata attribute, // which provides the data that you assigned to the ClientMetadata parameter in - // your SignUp request. In your function code in Lambda, you can process the + // your SignUp request. In your function code in AWS Lambda, you can process the // clientMetadata value to enhance your workflow for your specific needs. For more // information, see Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -79,7 +79,7 @@ type SignUpInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_UpdateGroup.go b/service/cognitoidentityprovider/api_op_UpdateGroup.go index 3bb448870b7..fec5585e539 100644 --- a/service/cognitoidentityprovider/api_op_UpdateGroup.go +++ b/service/cognitoidentityprovider/api_op_UpdateGroup.go @@ -12,7 +12,8 @@ import ( ) // Updates the specified group with the specified attributes. Calling this action -// requires developer credentials. +// requires developer credentials. If you don't provide a value for an attribute, +// it will be set to the default value. func (c *Client) UpdateGroup(ctx context.Context, params *UpdateGroupInput, optFns ...func(*Options)) (*UpdateGroupOutput, error) { if params == nil { params = &UpdateGroupInput{} diff --git a/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go b/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go index eef69c22dcb..456e49140d7 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go @@ -18,8 +18,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other Amazon Web -// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other AWS service, +// Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -58,21 +58,21 @@ type UpdateUserAttributesInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // Lambda functions to user pool triggers. When you use the UpdateUserAttributes - // API action, Amazon Cognito invokes the function that is assigned to the custom - // message trigger. When Amazon Cognito invokes this function, it passes a JSON - // payload, which the function receives as input. This payload contains a - // clientMetadata attribute, which provides the data that you assigned to the - // ClientMetadata parameter in your UpdateUserAttributes request. In your function - // code in Lambda, you can process the clientMetadata value to enhance your - // workflow for your specific needs. For more information, see Customizing User - // Pool Workflows with Lambda Triggers + // AWS Lambda functions to user pool triggers. When you use the + // UpdateUserAttributes API action, Amazon Cognito invokes the function that is + // assigned to the custom message trigger. When Amazon Cognito invokes this + // function, it passes a JSON payload, which the function receives as input. This + // payload contains a clientMetadata attribute, which provides the data that you + // assigned to the ClientMetadata parameter in your UpdateUserAttributes request. + // In your function code in AWS Lambda, you can process the clientMetadata value to + // enhance your workflow for your specific needs. For more information, see + // Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to Lambda + // not store the ClientMetadata value. This data is available only to AWS Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_UpdateUserPool.go b/service/cognitoidentityprovider/api_op_UpdateUserPool.go index 69755b94dca..be09d827015 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserPool.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserPool.go @@ -22,8 +22,8 @@ import ( // Pinpoint (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the // the registered number automatically. Otherwise, Cognito users that must receive // SMS messages might be unable to sign up, activate their accounts, or sign in. If -// you have never used SMS text messages with Amazon Cognito or any other Amazon -// Web Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// you have never used SMS text messages with Amazon Cognito or any other AWS +// service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -82,7 +82,8 @@ type UpdateUserPoolInput struct { // The subject of the email verification message. EmailVerificationSubject *string - // The Lambda configuration information from the request to update the user pool. + // The AWS Lambda configuration information from the request to update the user + // pool. LambdaConfig *types.LambdaConfigType // Can be one of the following values: diff --git a/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go b/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go index a5482d2ac96..ee15c405824 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go @@ -66,7 +66,7 @@ type UpdateUserPoolClientInput struct { AllowedOAuthFlowsUserPoolClient bool // The allowed OAuth scopes. Possible values provided by OAuth are: phone, email, - // openid, and profile. Possible values provided by Amazon Web Services are: + // openid, and profile. Possible values provided by AWS are: // aws.cognito.signin.user.admin. Custom scopes created in Resource Servers are // also supported. AllowedOAuthScopes []string diff --git a/service/cognitoidentityprovider/api_op_UpdateUserPoolDomain.go b/service/cognitoidentityprovider/api_op_UpdateUserPoolDomain.go index e86fad42cd1..5509bc88e26 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserPoolDomain.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserPoolDomain.go @@ -16,7 +16,7 @@ import ( // (ARN) of a new certificate to Amazon Cognito. You cannot use it to change the // domain for a user pool. A custom domain is used to host the Amazon Cognito // hosted UI, which provides sign-up and sign-in pages for your application. When -// you set up a custom domain, you provide a certificate that you manage with +// you set up a custom domain, you provide a certificate that you manage with AWS // Certificate Manager (ACM). When necessary, you can use this operation to change // the certificate that you applied to your custom domain. Usually, this is // unnecessary following routine certificate renewal with ACM. When you renew your @@ -25,7 +25,7 @@ import ( // replace your existing certificate with a new one, ACM gives the new certificate // a new ARN. To apply the new certificate to your custom domain, you must provide // this ARN to Amazon Cognito. When you add your new certificate in ACM, you must -// choose US East (N. Virginia) as the Region. After you submit your request, +// choose US East (N. Virginia) as the AWS Region. After you submit your request, // Amazon Cognito requires up to 1 hour to distribute your new certificate to your // custom domain. For more information about adding a custom domain to your user // pool, see Using Your Own Domain for the Hosted UI diff --git a/service/cognitoidentityprovider/go.mod b/service/cognitoidentityprovider/go.mod index a81be4e45b1..baa13e3b6a4 100644 --- a/service/cognitoidentityprovider/go.mod +++ b/service/cognitoidentityprovider/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitoidentityprovider/go.sum b/service/cognitoidentityprovider/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cognitoidentityprovider/go.sum +++ b/service/cognitoidentityprovider/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cognitoidentityprovider/types/errors.go b/service/cognitoidentityprovider/types/errors.go index 010759fdbf2..ca3b2019ebc 100644 --- a/service/cognitoidentityprovider/types/errors.go +++ b/service/cognitoidentityprovider/types/errors.go @@ -215,7 +215,7 @@ func (e *InvalidEmailRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { } // This exception is thrown when the Amazon Cognito service encounters an invalid -// Lambda response. +// AWS Lambda response. type InvalidLambdaResponseException struct { Message *string @@ -366,8 +366,8 @@ func (e *InvalidUserPoolConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// This exception is thrown when a user exceeds the limit for a requested Amazon -// Web Services resource. +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. type LimitExceededException struct { Message *string @@ -585,7 +585,7 @@ func (e *UnauthorizedException) ErrorCode() string { return "Unautho func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the Amazon Cognito service encounters an -// unexpected exception with the Lambda service. +// unexpected exception with the AWS Lambda service. type UnexpectedLambdaException struct { Message *string @@ -706,7 +706,7 @@ func (e *UserImportInProgressException) ErrorCode() string { return func (e *UserImportInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the Amazon Cognito service encounters a user -// validation exception with the Lambda service. +// validation exception with the AWS Lambda service. type UserLambdaValidationException struct { Message *string diff --git a/service/cognitoidentityprovider/types/types.go b/service/cognitoidentityprovider/types/types.go index aa21e39b61a..08061bc7783 100644 --- a/service/cognitoidentityprovider/types/types.go +++ b/service/cognitoidentityprovider/types/types.go @@ -298,8 +298,8 @@ type ContextDataType struct { // webpages for your application. type CustomDomainConfigType struct { - // The Amazon Resource Name (ARN) of an Certificate Manager SSL certificate. You - // use this certificate for the subdomain of your custom domain. + // The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. + // You use this certificate for the subdomain of your custom domain. // // This member is required. CertificateArn *string @@ -394,7 +394,7 @@ type DeviceType struct { // A container for information about a domain. type DomainDescriptionType struct { - // The account ID for the user pool owner. + // The AWS account ID for the user pool owner. AWSAccountId *string // The ARN of the CloudFront distribution. @@ -437,12 +437,12 @@ type EmailConfigurationType struct { // * Event publishing – Amazon // SES can track the number of send, delivery, open, click, bounce, and complaint // events for each email sent. Use event publishing to send information about these - // events to other Amazon Web Services services such as SNS and CloudWatch. + // events to other AWS services such as SNS and CloudWatch. // - // * IP - // pool management – When leasing dedicated IP addresses with Amazon SES, you can - // create groups of IP addresses, called dedicated IP pools. You can then associate - // the dedicated IP pools with configuration sets. + // * IP pool management – + // When leasing dedicated IP addresses with Amazon SES, you can create groups of IP + // addresses, called dedicated IP pools. You can then associate the dedicated IP + // pools with configuration sets. ConfigurationSet *string // Specifies whether Amazon Cognito emails your users by using its built-in email @@ -487,15 +487,15 @@ type EmailConfigurationType struct { // SES configuration. Amazon Cognito calls Amazon SES on your behalf to send email // from your verified email address. When you use this option, the email delivery // limits are the same limits that apply to your Amazon SES verified email address - // in your account. If you use this option, you must provide the ARN of an Amazon - // SES verified email address for the SourceArn parameter. Before Amazon Cognito - // can email your users, it requires additional permissions to call Amazon SES on - // your behalf. When you update your user pool with this option, Amazon Cognito - // creates a service-linked role, which is a type of IAM role, in your account. - // This role contains the permissions that allow Amazon Cognito to access Amazon - // SES and send email messages with your address. For more information about the - // service-linked role that Amazon Cognito creates, see Using Service-Linked Roles - // for Amazon Cognito + // in your AWS account. If you use this option, you must provide the ARN of an + // Amazon SES verified email address for the SourceArn parameter. Before Amazon + // Cognito can email your users, it requires additional permissions to call Amazon + // SES on your behalf. When you update your user pool with this option, Amazon + // Cognito creates a service-linked role, which is a type of IAM role, in your AWS + // account. This role contains the permissions that allow Amazon Cognito to access + // Amazon SES and send email messages with your address. For more information about + // the service-linked role that Amazon Cognito creates, see Using Service-Linked + // Roles for Amazon Cognito // (https://docs.aws.amazon.com/cognito/latest/developerguide/using-service-linked-roles.html) // in the Amazon Cognito Developer Guide. EmailSendingAccount EmailSendingAccountType @@ -728,19 +728,19 @@ type IdentityProviderType struct { noSmithyDocumentSerde } -// Specifies the configuration for Lambda triggers. +// Specifies the configuration for AWS Lambda triggers. type LambdaConfigType struct { // Creates an authentication challenge. CreateAuthChallenge *string - // A custom email sender Lambda trigger. + // A custom email sender AWS Lambda trigger. CustomEmailSender *CustomEmailLambdaVersionConfigType - // A custom Message Lambda trigger. + // A custom Message AWS Lambda trigger. CustomMessage *string - // A custom SMS sender Lambda trigger. + // A custom SMS sender AWS Lambda trigger. CustomSMSSender *CustomSMSLambdaVersionConfigType // Defines the authentication challenge. @@ -751,16 +751,16 @@ type LambdaConfigType struct { // CustomEmailSender and CustomSMSSender. KMSKeyID *string - // A post-authentication Lambda trigger. + // A post-authentication AWS Lambda trigger. PostAuthentication *string - // A post-confirmation Lambda trigger. + // A post-confirmation AWS Lambda trigger. PostConfirmation *string - // A pre-authentication Lambda trigger. + // A pre-authentication AWS Lambda trigger. PreAuthentication *string - // A pre-registration Lambda trigger. + // A pre-registration AWS Lambda trigger. PreSignUp *string // A Lambda trigger that is invoked before token generation. @@ -1083,14 +1083,14 @@ type SchemaAttributeType struct { } // The SMS configuration type that includes the settings the Cognito User Pool -// needs to call for the Amazon SNS service to send an SMS message from your +// needs to call for the Amazon SNS service to send an SMS message from your AWS // account. The Cognito User Pool makes the request to the Amazon SNS Service by -// using an IAM role that you provide for your account. +// using an AWS IAM role that you provide for your AWS account. type SmsConfigurationType struct { // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) - // caller. This is the ARN of the IAM role in your account which Cognito will use - // to send SMS messages. SMS messages are subject to a spending limit + // caller. This is the ARN of the IAM role in your AWS account which Cognito will + // use to send SMS messages. SMS messages are subject to a spending limit // (https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html). // // This member is required. @@ -1104,7 +1104,7 @@ type SmsConfigurationType struct { // role for SMS MFA, Cognito will create a role with the required permissions and a // trust policy that demonstrates use of the ExternalId. For more information about // the ExternalId of a role, see How to use an external ID when granting access to - // your Amazon Web Services resources to a third party + // your AWS resources to a third party // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) ExternalId *string @@ -1387,7 +1387,7 @@ type UserPoolClientType struct { AllowedOAuthFlowsUserPoolClient bool // The allowed OAuth scopes. Possible values provided by OAuth are: phone, email, - // openid, and profile. Possible values provided by Amazon Web Services are: + // openid, and profile. Possible values provided by AWS are: // aws.cognito.signin.user.admin. Custom scopes created in Resource Servers are // also supported. AllowedOAuthScopes []string @@ -1537,7 +1537,7 @@ type UserPoolDescriptionType struct { // The ID in a user pool description. Id *string - // The Lambda configuration information in a user pool description. + // The AWS Lambda configuration information in a user pool description. LambdaConfig *LambdaConfigType // The date the user pool description was last modified. @@ -1619,7 +1619,7 @@ type UserPoolType struct { // The ID of the user pool. Id *string - // The Lambda triggers associated with the user pool. + // The AWS Lambda triggers associated with the user pool. LambdaConfig *LambdaConfigType // The date the user pool was last modified. @@ -1664,10 +1664,10 @@ type UserPoolType struct { // (https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SmsConfigurationType.html). // // * - // SNSSandbox - The account is in SNS Sandbox and messages won’t reach unverified - // end users. This parameter won’t get populated with SNSSandbox if the IAM user - // creating the user pool doesn’t have SNS permissions. To learn how to move your - // account out of the sandbox, see Moving out of the SMS sandbox + // SNSSandbox - The AWS account is in SNS Sandbox and messages won’t reach + // unverified end users. This parameter won’t get populated with SNSSandbox if the + // IAM user creating the user pool doesn’t have SNS permissions. To learn how to + // move your AWS account out of the sandbox, see Moving out of the SMS sandbox // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox-moving-to-production.html). SmsConfigurationFailure *string diff --git a/service/cognitosync/go.mod b/service/cognitosync/go.mod index 5f701e3d6d2..c928d804a3c 100644 --- a/service/cognitosync/go.mod +++ b/service/cognitosync/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitosync/go.sum b/service/cognitosync/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/cognitosync/go.sum +++ b/service/cognitosync/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/comprehend/go.mod b/service/comprehend/go.mod index 6ae5c6a348d..f5652e186b1 100644 --- a/service/comprehend/go.mod +++ b/service/comprehend/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/comprehend/go.sum b/service/comprehend/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/comprehend/go.sum +++ b/service/comprehend/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/comprehendmedical/go.mod b/service/comprehendmedical/go.mod index 340982c9e48..21cc318d983 100644 --- a/service/comprehendmedical/go.mod +++ b/service/comprehendmedical/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/comprehendmedical/go.sum b/service/comprehendmedical/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/comprehendmedical/go.sum +++ b/service/comprehendmedical/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/computeoptimizer/go.mod b/service/computeoptimizer/go.mod index 71c7b1823a2..df55376a3ed 100644 --- a/service/computeoptimizer/go.mod +++ b/service/computeoptimizer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/computeoptimizer/go.sum b/service/computeoptimizer/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/computeoptimizer/go.sum +++ b/service/computeoptimizer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/computeoptimizer/types/types.go b/service/computeoptimizer/types/types.go index e5e0cf3f17e..304dc928ed6 100644 --- a/service/computeoptimizer/types/types.go +++ b/service/computeoptimizer/types/types.go @@ -86,10 +86,10 @@ type AutoScalingGroupRecommendationOption struct { // instance, including CPU, memory, EBS throughput, EBS IOPS, disk throughput, disk // IOPS, network throughput, and network PPS. The performance risk of the // recommended instance is calculated as the maximum performance risk score across - // the analyzed resource specifications. The value ranges from 0 - 4, with 0 + // the analyzed resource specifications. The value ranges from 0 to 5, with 0 // meaning that the recommended resource is predicted to always provide enough // hardware capability. The higher the performance risk is, the more likely you - // should validate whether the recommendation will meet the performance + // should validate whether the recommended resource meets the performance // requirements of your workload before migrating your resource. PerformanceRisk float64 @@ -500,7 +500,7 @@ type InstanceRecommendationOption struct { // including CPU, memory, EBS throughput, EBS IOPS, disk throughput, disk IOPS, // network throughput, and network PPS. The performance risk of the recommended // instance is calculated as the maximum performance risk score across the analyzed - // resource specifications. The value ranges from 0 - 4, with 0 meaning that the + // resource specifications. The value ranges from 0 to 5, with 0 meaning that the // recommended resource is predicted to always provide enough hardware capability. // The higher the performance risk is, the more likely you should validate whether // the recommendation will meet the performance requirements of your workload @@ -1187,7 +1187,7 @@ type VolumeRecommendationOption struct { // The performance risk of the volume recommendation option. Performance risk is // the likelihood of the recommended volume type meeting the performance - // requirement of your workload. The value ranges from 0 - 4, with 0 meaning that + // requirement of your workload. The value ranges from 0 to 5, with 0 meaning that // the recommended resource is predicted to always provide enough hardware // capability. The higher the performance risk is, the more likely you should // validate whether the recommendation will meet the performance requirements of diff --git a/service/configservice/go.mod b/service/configservice/go.mod index a6a452f696a..cec38f0d6b5 100644 --- a/service/configservice/go.mod +++ b/service/configservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/configservice/go.sum b/service/configservice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/configservice/go.sum +++ b/service/configservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/connect/go.mod b/service/connect/go.mod index 429d6bc8c10..5cd5e0ecd43 100644 --- a/service/connect/go.mod +++ b/service/connect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connect/go.sum b/service/connect/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/connect/go.sum +++ b/service/connect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/connectcontactlens/go.mod b/service/connectcontactlens/go.mod index e5de7ef00e6..e84cbd66df4 100644 --- a/service/connectcontactlens/go.mod +++ b/service/connectcontactlens/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectcontactlens/go.sum b/service/connectcontactlens/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/connectcontactlens/go.sum +++ b/service/connectcontactlens/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/connectparticipant/go.mod b/service/connectparticipant/go.mod index 3890646c247..88de366c921 100644 --- a/service/connectparticipant/go.mod +++ b/service/connectparticipant/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectparticipant/go.sum b/service/connectparticipant/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/connectparticipant/go.sum +++ b/service/connectparticipant/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/costandusagereportservice/go.mod b/service/costandusagereportservice/go.mod index bc0bafebd58..ef856848c72 100644 --- a/service/costandusagereportservice/go.mod +++ b/service/costandusagereportservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/costandusagereportservice/go.sum b/service/costandusagereportservice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/costandusagereportservice/go.sum +++ b/service/costandusagereportservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/costexplorer/go.mod b/service/costexplorer/go.mod index 59a405bf9e9..6b287dc929f 100644 --- a/service/costexplorer/go.mod +++ b/service/costexplorer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/costexplorer/go.sum b/service/costexplorer/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/costexplorer/go.sum +++ b/service/costexplorer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/customerprofiles/go.mod b/service/customerprofiles/go.mod index 102adb15280..4b0a3be53e1 100644 --- a/service/customerprofiles/go.mod +++ b/service/customerprofiles/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/customerprofiles/go.sum b/service/customerprofiles/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/customerprofiles/go.sum +++ b/service/customerprofiles/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/databasemigrationservice/go.mod b/service/databasemigrationservice/go.mod index 4ced7cfc51d..2e34a6833c7 100644 --- a/service/databasemigrationservice/go.mod +++ b/service/databasemigrationservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/databasemigrationservice/go.sum +++ b/service/databasemigrationservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/databrew/api_op_CreateProfileJob.go b/service/databrew/api_op_CreateProfileJob.go index b64a3b1b990..f8ceef9af12 100644 --- a/service/databrew/api_op_CreateProfileJob.go +++ b/service/databrew/api_op_CreateProfileJob.go @@ -52,11 +52,6 @@ type CreateProfileJobInput struct { // This member is required. RoleArn *string - // Configuration for profile jobs. Used to select columns, do evaluations, and - // override default parameters of evaluations. When configuration is null, the - // profile job will run with default settings. - Configuration *types.ProfileConfiguration - // The Amazon Resource Name (ARN) of an encryption key that is used to protect the // job. EncryptionKeyArn *string diff --git a/service/databrew/api_op_CreateRecipeJob.go b/service/databrew/api_op_CreateRecipeJob.go index a2146b4ced7..a5e75b526f9 100644 --- a/service/databrew/api_op_CreateRecipeJob.go +++ b/service/databrew/api_op_CreateRecipeJob.go @@ -42,14 +42,10 @@ type CreateRecipeJobInput struct { // This member is required. RoleArn *string - // One or more artifacts that represent the Glue Data Catalog output from running - // the job. + // One or more artifacts that represent the AWS Glue Data Catalog output from + // running the job. DataCatalogOutputs []types.DataCatalogOutput - // Represents a list of JDBC database output objects which defines the output - // destination for a DataBrew recipe job to write to. - DatabaseOutputs []types.DatabaseOutput - // The name of the dataset that this job processes. DatasetName *string diff --git a/service/databrew/api_op_DescribeJob.go b/service/databrew/api_op_DescribeJob.go index 9d5fbbdaa59..27beb918097 100644 --- a/service/databrew/api_op_DescribeJob.go +++ b/service/databrew/api_op_DescribeJob.go @@ -51,14 +51,10 @@ type DescribeJobOutput struct { // The identifier (user name) of the user associated with the creation of the job. CreatedBy *string - // One or more artifacts that represent the Glue Data Catalog output from running - // the job. + // One or more artifacts that represent the AWS Glue Data Catalog output from + // running the job. DataCatalogOutputs []types.DataCatalogOutput - // Represents a list of JDBC database output objects which defines the output - // destination for a DataBrew recipe job to write into. - DatabaseOutputs []types.DatabaseOutput - // The dataset that the job acts upon. DatasetName *string @@ -98,11 +94,6 @@ type DescribeJobOutput struct { // One or more artifacts that represent the output from running the job. Outputs []types.Output - // Configuration for profile jobs. Used to select columns, do evaluations, and - // override default parameters of evaluations. When configuration is null, the - // profile job will run with default settings. - ProfileConfiguration *types.ProfileConfiguration - // The DataBrew project associated with this job. ProjectName *string diff --git a/service/databrew/api_op_DescribeJobRun.go b/service/databrew/api_op_DescribeJobRun.go index 638d48aadbb..703f0c6093b 100644 --- a/service/databrew/api_op_DescribeJobRun.go +++ b/service/databrew/api_op_DescribeJobRun.go @@ -56,14 +56,10 @@ type DescribeJobRunOutput struct { // The date and time when the job completed processing. CompletedOn *time.Time - // One or more artifacts that represent the Glue Data Catalog output from running - // the job. + // One or more artifacts that represent the AWS Glue Data Catalog output from + // running the job. DataCatalogOutputs []types.DataCatalogOutput - // Represents a list of JDBC database output objects which defines the output - // destination for a DataBrew recipe job to write into. - DatabaseOutputs []types.DatabaseOutput - // The name of the dataset for the job to process. DatasetName *string @@ -89,11 +85,6 @@ type DescribeJobRunOutput struct { // One or more output artifacts from a job run. Outputs []types.Output - // Configuration for profile jobs. Used to select columns, do evaluations, and - // override default parameters of evaluations. When configuration is null, the - // profile job will run with default settings. - ProfileConfiguration *types.ProfileConfiguration - // Represents the name and version of a DataBrew recipe. RecipeReference *types.RecipeReference diff --git a/service/databrew/api_op_UpdateProfileJob.go b/service/databrew/api_op_UpdateProfileJob.go index ef478854aa9..c14cbafe356 100644 --- a/service/databrew/api_op_UpdateProfileJob.go +++ b/service/databrew/api_op_UpdateProfileJob.go @@ -46,11 +46,6 @@ type UpdateProfileJobInput struct { // This member is required. RoleArn *string - // Configuration for profile jobs. Used to select columns, do evaluations, and - // override default parameters of evaluations. When configuration is null, the - // profile job will run with default settings. - Configuration *types.ProfileConfiguration - // The Amazon Resource Name (ARN) of an encryption key that is used to protect the // job. EncryptionKeyArn *string diff --git a/service/databrew/api_op_UpdateRecipeJob.go b/service/databrew/api_op_UpdateRecipeJob.go index 55d03f548c8..047d29c0e8f 100644 --- a/service/databrew/api_op_UpdateRecipeJob.go +++ b/service/databrew/api_op_UpdateRecipeJob.go @@ -40,14 +40,10 @@ type UpdateRecipeJobInput struct { // This member is required. RoleArn *string - // One or more artifacts that represent the Glue Data Catalog output from running - // the job. + // One or more artifacts that represent the AWS Glue Data Catalog output from + // running the job. DataCatalogOutputs []types.DataCatalogOutput - // Represents a list of JDBC database output objects which defines the output - // destination for a DataBrew recipe job to write into. - DatabaseOutputs []types.DatabaseOutput - // The Amazon Resource Name (ARN) of an encryption key that is used to protect the // job. EncryptionKeyArn *string diff --git a/service/databrew/deserializers.go b/service/databrew/deserializers.go index 5117a930a5c..dd843e9b536 100644 --- a/service/databrew/deserializers.go +++ b/service/databrew/deserializers.go @@ -2344,11 +2344,6 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, sv.CreatedBy = ptr.String(jtv) } - case "DatabaseOutputs": - if err := awsRestjson1_deserializeDocumentDatabaseOutputList(&sv.DatabaseOutputs, value); err != nil { - return err - } - case "DataCatalogOutputs": if err := awsRestjson1_deserializeDocumentDataCatalogOutputList(&sv.DataCatalogOutputs, value); err != nil { return err @@ -2460,11 +2455,6 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, return err } - case "ProfileConfiguration": - if err := awsRestjson1_deserializeDocumentProfileConfiguration(&sv.ProfileConfiguration, value); err != nil { - return err - } - case "ProjectName": if value != nil { jtv, ok := value.(string) @@ -2698,11 +2688,6 @@ func awsRestjson1_deserializeOpDocumentDescribeJobRunOutput(v **DescribeJobRunOu } } - case "DatabaseOutputs": - if err := awsRestjson1_deserializeDocumentDatabaseOutputList(&sv.DatabaseOutputs, value); err != nil { - return err - } - case "DataCatalogOutputs": if err := awsRestjson1_deserializeDocumentDataCatalogOutputList(&sv.DataCatalogOutputs, value); err != nil { return err @@ -2776,11 +2761,6 @@ func awsRestjson1_deserializeOpDocumentDescribeJobRunOutput(v **DescribeJobRunOu return err } - case "ProfileConfiguration": - if err := awsRestjson1_deserializeDocumentProfileConfiguration(&sv.ProfileConfiguration, value); err != nil { - return err - } - case "RecipeReference": if err := awsRestjson1_deserializeDocumentRecipeReference(&sv.RecipeReference, value); err != nil { return err @@ -7118,164 +7098,6 @@ func awsRestjson1_deserializeDocumentColumnNameList(v *[]string, value interface return nil } -func awsRestjson1_deserializeDocumentColumnSelector(v **types.ColumnSelector, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ColumnSelector - if *v == nil { - sv = &types.ColumnSelector{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "Regex": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) - } - sv.Regex = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentColumnSelectorList(v *[]types.ColumnSelector, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ColumnSelector - if *v == nil { - cv = []types.ColumnSelector{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ColumnSelector - destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnSelector(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentColumnStatisticsConfiguration(v **types.ColumnStatisticsConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ColumnStatisticsConfiguration - if *v == nil { - sv = &types.ColumnStatisticsConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Selectors": - if err := awsRestjson1_deserializeDocumentColumnSelectorList(&sv.Selectors, value); err != nil { - return err - } - - case "Statistics": - if err := awsRestjson1_deserializeDocumentStatisticsConfiguration(&sv.Statistics, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentColumnStatisticsConfigurationList(v *[]types.ColumnStatisticsConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ColumnStatisticsConfiguration - if *v == nil { - cv = []types.ColumnStatisticsConfiguration{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ColumnStatisticsConfiguration - destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnStatisticsConfiguration(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - func awsRestjson1_deserializeDocumentConditionExpression(v **types.ConditionExpression, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7551,94 +7373,6 @@ func awsRestjson1_deserializeDocumentDatabaseInputDefinition(v **types.DatabaseI return nil } -func awsRestjson1_deserializeDocumentDatabaseOutput(v **types.DatabaseOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DatabaseOutput - if *v == nil { - sv = &types.DatabaseOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DatabaseOptions": - if err := awsRestjson1_deserializeDocumentDatabaseTableOutputOptions(&sv.DatabaseOptions, value); err != nil { - return err - } - - case "DatabaseOutputMode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DatabaseOutputMode to be of type string, got %T instead", value) - } - sv.DatabaseOutputMode = types.DatabaseOutputMode(jtv) - } - - case "GlueConnectionName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GlueConnectionName to be of type string, got %T instead", value) - } - sv.GlueConnectionName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentDatabaseOutputList(v *[]types.DatabaseOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.DatabaseOutput - if *v == nil { - cv = []types.DatabaseOutput{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.DatabaseOutput - destAddr := &col - if err := awsRestjson1_deserializeDocumentDatabaseOutput(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - func awsRestjson1_deserializeDocumentDatabaseTableOutputOptions(v **types.DatabaseTableOutputOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8509,11 +8243,6 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error sv.CreatedBy = ptr.String(jtv) } - case "DatabaseOutputs": - if err := awsRestjson1_deserializeDocumentDatabaseOutputList(&sv.DatabaseOutputs, value); err != nil { - return err - } - case "DataCatalogOutputs": if err := awsRestjson1_deserializeDocumentDataCatalogOutputList(&sv.DataCatalogOutputs, value); err != nil { return err @@ -8814,11 +8543,6 @@ func awsRestjson1_deserializeDocumentJobRun(v **types.JobRun, value interface{}) } } - case "DatabaseOutputs": - if err := awsRestjson1_deserializeDocumentDatabaseOutputList(&sv.DatabaseOutputs, value); err != nil { - return err - } - case "DataCatalogOutputs": if err := awsRestjson1_deserializeDocumentDataCatalogOutputList(&sv.DataCatalogOutputs, value); err != nil { return err @@ -9336,52 +9060,6 @@ func awsRestjson1_deserializeDocumentPathParametersMap(v *map[string]types.Datas return nil } -func awsRestjson1_deserializeDocumentProfileConfiguration(v **types.ProfileConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ProfileConfiguration - if *v == nil { - sv = &types.ProfileConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ColumnStatisticsConfigurations": - if err := awsRestjson1_deserializeDocumentColumnStatisticsConfigurationList(&sv.ColumnStatisticsConfigurations, value); err != nil { - return err - } - - case "DatasetStatisticsConfiguration": - if err := awsRestjson1_deserializeDocumentStatisticsConfiguration(&sv.DatasetStatisticsConfiguration, value); err != nil { - return err - } - - case "ProfileColumns": - if err := awsRestjson1_deserializeDocumentColumnSelectorList(&sv.ProfileColumns, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentProject(v **types.Project, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -10497,162 +10175,6 @@ func awsRestjson1_deserializeDocumentSheetNameList(v *[]string, value interface{ return nil } -func awsRestjson1_deserializeDocumentStatisticList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentStatisticOverride(v **types.StatisticOverride, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.StatisticOverride - if *v == nil { - sv = &types.StatisticOverride{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Parameters": - if err := awsRestjson1_deserializeDocumentParameterMap(&sv.Parameters, value); err != nil { - return err - } - - case "Statistic": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) - } - sv.Statistic = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentStatisticOverrideList(v *[]types.StatisticOverride, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.StatisticOverride - if *v == nil { - cv = []types.StatisticOverride{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.StatisticOverride - destAddr := &col - if err := awsRestjson1_deserializeDocumentStatisticOverride(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentStatisticsConfiguration(v **types.StatisticsConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.StatisticsConfiguration - if *v == nil { - sv = &types.StatisticsConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "IncludedStatistics": - if err := awsRestjson1_deserializeDocumentStatisticList(&sv.IncludedStatistics, value); err != nil { - return err - } - - case "Overrides": - if err := awsRestjson1_deserializeDocumentStatisticOverrideList(&sv.Overrides, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/databrew/go.mod b/service/databrew/go.mod index 28f326a1abb..524f0c52a34 100644 --- a/service/databrew/go.mod +++ b/service/databrew/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/databrew/go.sum b/service/databrew/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/databrew/go.sum +++ b/service/databrew/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/databrew/serializers.go b/service/databrew/serializers.go index 02242334afc..b7249510f8a 100644 --- a/service/databrew/serializers.go +++ b/service/databrew/serializers.go @@ -258,13 +258,6 @@ func awsRestjson1_serializeOpDocumentCreateProfileJobInput(v *CreateProfileJobIn object := value.Object() defer object.Close() - if v.Configuration != nil { - ok := object.Key("Configuration") - if err := awsRestjson1_serializeDocumentProfileConfiguration(v.Configuration, ok); err != nil { - return err - } - } - if v.DatasetName != nil { ok := object.Key("DatasetName") ok.String(*v.DatasetName) @@ -578,13 +571,6 @@ func awsRestjson1_serializeOpDocumentCreateRecipeJobInput(v *CreateRecipeJobInpu object := value.Object() defer object.Close() - if v.DatabaseOutputs != nil { - ok := object.Key("DatabaseOutputs") - if err := awsRestjson1_serializeDocumentDatabaseOutputList(v.DatabaseOutputs, ok); err != nil { - return err - } - } - if v.DataCatalogOutputs != nil { ok := object.Key("DataCatalogOutputs") if err := awsRestjson1_serializeDocumentDataCatalogOutputList(v.DataCatalogOutputs, ok); err != nil { @@ -2613,13 +2599,6 @@ func awsRestjson1_serializeOpDocumentUpdateProfileJobInput(v *UpdateProfileJobIn object := value.Object() defer object.Close() - if v.Configuration != nil { - ok := object.Key("Configuration") - if err := awsRestjson1_serializeDocumentProfileConfiguration(v.Configuration, ok); err != nil { - return err - } - } - if v.EncryptionKeyArn != nil { ok := object.Key("EncryptionKeyArn") ok.String(*v.EncryptionKeyArn) @@ -2921,13 +2900,6 @@ func awsRestjson1_serializeOpDocumentUpdateRecipeJobInput(v *UpdateRecipeJobInpu object := value.Object() defer object.Close() - if v.DatabaseOutputs != nil { - ok := object.Key("DatabaseOutputs") - if err := awsRestjson1_serializeDocumentDatabaseOutputList(v.DatabaseOutputs, ok); err != nil { - return err - } - } - if v.DataCatalogOutputs != nil { ok := object.Key("DataCatalogOutputs") if err := awsRestjson1_serializeDocumentDataCatalogOutputList(v.DataCatalogOutputs, ok); err != nil { @@ -3079,70 +3051,6 @@ func awsRestjson1_serializeDocumentColumnNameList(v []string, value smithyjson.V return nil } -func awsRestjson1_serializeDocumentColumnSelector(v *types.ColumnSelector, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.Regex != nil { - ok := object.Key("Regex") - ok.String(*v.Regex) - } - - return nil -} - -func awsRestjson1_serializeDocumentColumnSelectorList(v []types.ColumnSelector, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentColumnSelector(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentColumnStatisticsConfiguration(v *types.ColumnStatisticsConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Selectors != nil { - ok := object.Key("Selectors") - if err := awsRestjson1_serializeDocumentColumnSelectorList(v.Selectors, ok); err != nil { - return err - } - } - - if v.Statistics != nil { - ok := object.Key("Statistics") - if err := awsRestjson1_serializeDocumentStatisticsConfiguration(v.Statistics, ok); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeDocumentColumnStatisticsConfigurationList(v []types.ColumnStatisticsConfiguration, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentColumnStatisticsConfiguration(&v[i], av); err != nil { - return err - } - } - return nil -} - func awsRestjson1_serializeDocumentConditionExpression(v *types.ConditionExpression, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3231,43 +3139,6 @@ func awsRestjson1_serializeDocumentDatabaseInputDefinition(v *types.DatabaseInpu return nil } -func awsRestjson1_serializeDocumentDatabaseOutput(v *types.DatabaseOutput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DatabaseOptions != nil { - ok := object.Key("DatabaseOptions") - if err := awsRestjson1_serializeDocumentDatabaseTableOutputOptions(v.DatabaseOptions, ok); err != nil { - return err - } - } - - if len(v.DatabaseOutputMode) > 0 { - ok := object.Key("DatabaseOutputMode") - ok.String(string(v.DatabaseOutputMode)) - } - - if v.GlueConnectionName != nil { - ok := object.Key("GlueConnectionName") - ok.String(*v.GlueConnectionName) - } - - return nil -} - -func awsRestjson1_serializeDocumentDatabaseOutputList(v []types.DatabaseOutput, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentDatabaseOutput(&v[i], av); err != nil { - return err - } - } - return nil -} - func awsRestjson1_serializeDocumentDatabaseTableOutputOptions(v *types.DatabaseTableOutputOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3725,34 +3596,6 @@ func awsRestjson1_serializeDocumentPathParametersMap(v map[string]types.DatasetP return nil } -func awsRestjson1_serializeDocumentProfileConfiguration(v *types.ProfileConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ColumnStatisticsConfigurations != nil { - ok := object.Key("ColumnStatisticsConfigurations") - if err := awsRestjson1_serializeDocumentColumnStatisticsConfigurationList(v.ColumnStatisticsConfigurations, ok); err != nil { - return err - } - } - - if v.DatasetStatisticsConfiguration != nil { - ok := object.Key("DatasetStatisticsConfiguration") - if err := awsRestjson1_serializeDocumentStatisticsConfiguration(v.DatasetStatisticsConfiguration, ok); err != nil { - return err - } - } - - if v.ProfileColumns != nil { - ok := object.Key("ProfileColumns") - if err := awsRestjson1_serializeDocumentColumnSelectorList(v.ProfileColumns, ok); err != nil { - return err - } - } - - return nil -} - func awsRestjson1_serializeDocumentRecipeAction(v *types.RecipeAction, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3904,70 +3747,6 @@ func awsRestjson1_serializeDocumentSheetNameList(v []string, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentStatisticList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsRestjson1_serializeDocumentStatisticOverride(v *types.StatisticOverride, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Parameters != nil { - ok := object.Key("Parameters") - if err := awsRestjson1_serializeDocumentParameterMap(v.Parameters, ok); err != nil { - return err - } - } - - if v.Statistic != nil { - ok := object.Key("Statistic") - ok.String(*v.Statistic) - } - - return nil -} - -func awsRestjson1_serializeDocumentStatisticOverrideList(v []types.StatisticOverride, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentStatisticOverride(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentStatisticsConfiguration(v *types.StatisticsConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.IncludedStatistics != nil { - ok := object.Key("IncludedStatistics") - if err := awsRestjson1_serializeDocumentStatisticList(v.IncludedStatistics, ok); err != nil { - return err - } - } - - if v.Overrides != nil { - ok := object.Key("Overrides") - if err := awsRestjson1_serializeDocumentStatisticOverrideList(v.Overrides, ok); err != nil { - return err - } - } - - return nil -} - func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/databrew/types/enums.go b/service/databrew/types/enums.go index c4dc3f0107d..5519bbe0119 100644 --- a/service/databrew/types/enums.go +++ b/service/databrew/types/enums.go @@ -34,22 +34,6 @@ func (CompressionFormat) Values() []CompressionFormat { } } -type DatabaseOutputMode string - -// Enum values for DatabaseOutputMode -const ( - DatabaseOutputModeNewTable DatabaseOutputMode = "NEW_TABLE" -) - -// Values returns all known values for DatabaseOutputMode. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (DatabaseOutputMode) Values() []DatabaseOutputMode { - return []DatabaseOutputMode{ - "NEW_TABLE", - } -} - type EncryptionMode string // Enum values for EncryptionMode diff --git a/service/databrew/types/types.go b/service/databrew/types/types.go index a20c0d34039..7b3454503fd 100644 --- a/service/databrew/types/types.go +++ b/service/databrew/types/types.go @@ -7,38 +7,6 @@ import ( "time" ) -// Selector of a column from a dataset for profile job configuration. One selector -// includes either a column name or a regular expression. -type ColumnSelector struct { - - // The name of a column from a dataset. - Name *string - - // A regular expression for selecting a column from a dataset. - Regex *string - - noSmithyDocumentSerde -} - -// Configuration for column evaluations for a profile job. -// ColumnStatisticsConfiguration can be used to select evaluations and override -// parameters of evaluations for particular columns. -type ColumnStatisticsConfiguration struct { - - // Configuration for evaluations. Statistics can be used to select evaluations and - // override parameters of evaluations. - // - // This member is required. - Statistics *StatisticsConfiguration - - // List of column selectors. Selectors can be used to select columns from the - // dataset. When selectors are undefined, configuration will be applied to all - // supported columns. - Selectors []ColumnSelector - - noSmithyDocumentSerde -} - // Represents an individual condition that evaluates to true or false. Conditions // are used with recipe actions. The action is only performed for column values // where the condition evaluates to true. If a recipe requires more than one @@ -111,29 +79,6 @@ type DatabaseInputDefinition struct { noSmithyDocumentSerde } -// Represents a JDBC database output object which defines the output destination -// for a DataBrew recipe job to write into. -type DatabaseOutput struct { - - // Represents options that specify how and where DataBrew writes the database - // output generated by recipe jobs. - // - // This member is required. - DatabaseOptions *DatabaseTableOutputOptions - - // The Glue connection that stores the connection information for the target - // database. - // - // This member is required. - GlueConnectionName *string - - // The output mode to write into the database. Currently supported option: - // NEW_TABLE. - DatabaseOutputMode DatabaseOutputMode - - noSmithyDocumentSerde -} - // Represents options that specify how and where DataBrew writes the database // output generated by recipe jobs. type DatabaseTableOutputOptions struct { @@ -175,8 +120,8 @@ type DataCatalogInputDefinition struct { noSmithyDocumentSerde } -// Represents options that specify how and where in the Glue Data Catalog DataBrew -// writes the output generated by recipe jobs. +// Represents options that specify how and where DataBrew writes the output +// generated by recipe jobs. type DataCatalogOutput struct { // The name of a database in the Data Catalog. @@ -189,8 +134,8 @@ type DataCatalogOutput struct { // This member is required. TableName *string - // The unique identifier of the Amazon Web Services account that holds the Data - // Catalog that stores the data. + // The unique identifier of the AWS account that holds the Data Catalog that stores + // the data. CatalogId *string // Represents options that specify how and where DataBrew writes the database @@ -201,8 +146,8 @@ type DataCatalogOutput struct { // is overwritten with new output. Not supported with DatabaseOptions. Overwrite bool - // Represents options that specify how and where DataBrew writes the Amazon S3 - // output generated by recipe jobs. + // Represents options that specify how and where DataBrew writes the S3 output + // generated by recipe jobs. S3Options *S3TableOutputOptions noSmithyDocumentSerde @@ -426,14 +371,10 @@ type Job struct { // The Amazon Resource Name (ARN) of the user who created the job. CreatedBy *string - // One or more artifacts that represent the Glue Data Catalog output from running - // the job. + // One or more artifacts that represent the AWS Glue Data Catalog output from + // running the job. DataCatalogOutputs []DataCatalogOutput - // Represents a list of JDBC database output objects which defines the output - // destination for a DataBrew recipe job to write into. - DatabaseOutputs []DatabaseOutput - // A dataset that the job is to process. DatasetName *string @@ -515,14 +456,10 @@ type JobRun struct { // The date and time when the job completed processing. CompletedOn *time.Time - // One or more artifacts that represent the Glue Data Catalog output from running - // the job. + // One or more artifacts that represent the AWS Glue Data Catalog output from + // running the job. DataCatalogOutputs []DataCatalogOutput - // Represents a list of JDBC database output objects which defines the output - // destination for a DataBrew recipe job to write into. - DatabaseOutputs []DatabaseOutput - // The name of the dataset for the job to process. DatasetName *string @@ -603,8 +540,8 @@ type JsonOptions struct { noSmithyDocumentSerde } -// Represents options that specify how and where in Amazon S3 DataBrew writes the -// output generated by recipe jobs or profile jobs. +// Represents options that specify how and where DataBrew writes the output +// generated by recipe jobs or profile jobs. type Output struct { // The location in Amazon S3 where the job writes its output. @@ -661,32 +598,6 @@ type PathOptions struct { noSmithyDocumentSerde } -// Configuration for profile jobs. Configuration can be used to select columns, do -// evaluations, and override default parameters of evaluations. When configuration -// is undefined, the profile job will apply default settings to all supported -// columns. -type ProfileConfiguration struct { - - // List of configurations for column evaluations. ColumnStatisticsConfigurations - // are used to select evaluations and override parameters of evaluations for - // particular columns. When ColumnStatisticsConfigurations is undefined, the - // profile job will profile all supported columns and run all supported - // evaluations. - ColumnStatisticsConfigurations []ColumnStatisticsConfiguration - - // Configuration for inter-column evaluations. Configuration can be used to select - // evaluations and override parameters of evaluations. When configuration is - // undefined, the profile job will run all supported inter-column evaluations. - DatasetStatisticsConfiguration *StatisticsConfiguration - - // List of column selectors. ProfileColumns can be used to select columns from the - // dataset. When ProfileColumns is undefined, the profile job will profile all - // supported columns. - ProfileColumns []ColumnSelector - - noSmithyDocumentSerde -} - // Represents all of the attributes of a DataBrew project. type Project struct { @@ -876,8 +787,8 @@ type S3Location struct { noSmithyDocumentSerde } -// Represents options that specify how and where DataBrew writes the Amazon S3 -// output generated by recipe jobs. +// Represents options that specify how and where DataBrew writes the S3 output +// generated by recipe jobs. type S3TableOutputOptions struct { // Represents an Amazon S3 location (bucket name and object key) where DataBrew can @@ -944,36 +855,6 @@ type Schedule struct { noSmithyDocumentSerde } -// Override of a particular evaluation for a profile job. -type StatisticOverride struct { - - // A map that includes overrides of an evaluation’s parameters. - // - // This member is required. - Parameters map[string]string - - // The name of an evaluation - // - // This member is required. - Statistic *string - - noSmithyDocumentSerde -} - -// Configuration of evaluations for a profile job. This configuration can be used -// to select evaluations and override the parameters of selected evaluations. -type StatisticsConfiguration struct { - - // List of included evaluations. When the list is undefined, all supported - // evaluations will be included. - IncludedStatistics []string - - // List of overrides for evaluations. - Overrides []StatisticOverride - - noSmithyDocumentSerde -} - // Represents the data being transformed during an action. type ViewFrame struct { diff --git a/service/databrew/validators.go b/service/databrew/validators.go index 469a7ee0935..87e15db9b64 100644 --- a/service/databrew/validators.go +++ b/service/databrew/validators.go @@ -826,42 +826,6 @@ func addOpUpdateScheduleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateSchedule{}, middleware.After) } -func validateColumnStatisticsConfiguration(v *types.ColumnStatisticsConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ColumnStatisticsConfiguration"} - if v.Statistics == nil { - invalidParams.Add(smithy.NewErrParamRequired("Statistics")) - } else if v.Statistics != nil { - if err := validateStatisticsConfiguration(v.Statistics); err != nil { - invalidParams.AddNested("Statistics", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateColumnStatisticsConfigurationList(v []types.ColumnStatisticsConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ColumnStatisticsConfigurationList"} - for i := range v { - if err := validateColumnStatisticsConfiguration(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateConditionExpression(v *types.ConditionExpression) error { if v == nil { return nil @@ -920,45 +884,6 @@ func validateDatabaseInputDefinition(v *types.DatabaseInputDefinition) error { } } -func validateDatabaseOutput(v *types.DatabaseOutput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DatabaseOutput"} - if v.GlueConnectionName == nil { - invalidParams.Add(smithy.NewErrParamRequired("GlueConnectionName")) - } - if v.DatabaseOptions == nil { - invalidParams.Add(smithy.NewErrParamRequired("DatabaseOptions")) - } else if v.DatabaseOptions != nil { - if err := validateDatabaseTableOutputOptions(v.DatabaseOptions); err != nil { - invalidParams.AddNested("DatabaseOptions", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateDatabaseOutputList(v []types.DatabaseOutput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DatabaseOutputList"} - for i := range v { - if err := validateDatabaseOutput(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateDatabaseTableOutputOptions(v *types.DatabaseTableOutputOptions) error { if v == nil { return nil @@ -1228,28 +1153,6 @@ func validatePathParametersMap(v map[string]types.DatasetParameter) error { } } -func validateProfileConfiguration(v *types.ProfileConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ProfileConfiguration"} - if v.DatasetStatisticsConfiguration != nil { - if err := validateStatisticsConfiguration(v.DatasetStatisticsConfiguration); err != nil { - invalidParams.AddNested("DatasetStatisticsConfiguration", err.(smithy.InvalidParamsError)) - } - } - if v.ColumnStatisticsConfigurations != nil { - if err := validateColumnStatisticsConfigurationList(v.ColumnStatisticsConfigurations); err != nil { - invalidParams.AddNested("ColumnStatisticsConfigurations", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateRecipeAction(v *types.RecipeAction) error { if v == nil { return nil @@ -1370,58 +1273,6 @@ func validateSample(v *types.Sample) error { } } -func validateStatisticOverride(v *types.StatisticOverride) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "StatisticOverride"} - if v.Statistic == nil { - invalidParams.Add(smithy.NewErrParamRequired("Statistic")) - } - if v.Parameters == nil { - invalidParams.Add(smithy.NewErrParamRequired("Parameters")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateStatisticOverrideList(v []types.StatisticOverride) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "StatisticOverrideList"} - for i := range v { - if err := validateStatisticOverride(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateStatisticsConfiguration(v *types.StatisticsConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "StatisticsConfiguration"} - if v.Overrides != nil { - if err := validateStatisticOverrideList(v.Overrides); err != nil { - invalidParams.AddNested("Overrides", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateViewFrame(v *types.ViewFrame) error { if v == nil { return nil @@ -1500,11 +1351,6 @@ func validateOpCreateProfileJobInput(v *CreateProfileJobInput) error { invalidParams.AddNested("OutputLocation", err.(smithy.InvalidParamsError)) } } - if v.Configuration != nil { - if err := validateProfileConfiguration(v.Configuration); err != nil { - invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError)) - } - } if v.RoleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) } @@ -1584,11 +1430,6 @@ func validateOpCreateRecipeJobInput(v *CreateRecipeJobInput) error { invalidParams.AddNested("DataCatalogOutputs", err.(smithy.InvalidParamsError)) } } - if v.DatabaseOutputs != nil { - if err := validateDatabaseOutputList(v.DatabaseOutputs); err != nil { - invalidParams.AddNested("DatabaseOutputs", err.(smithy.InvalidParamsError)) - } - } if v.RecipeReference != nil { if err := validateRecipeReference(v.RecipeReference); err != nil { invalidParams.AddNested("RecipeReference", err.(smithy.InvalidParamsError)) @@ -1994,11 +1835,6 @@ func validateOpUpdateProfileJobInput(v *UpdateProfileJobInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateProfileJobInput"} - if v.Configuration != nil { - if err := validateProfileConfiguration(v.Configuration); err != nil { - invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError)) - } - } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } @@ -2080,11 +1916,6 @@ func validateOpUpdateRecipeJobInput(v *UpdateRecipeJobInput) error { invalidParams.AddNested("DataCatalogOutputs", err.(smithy.InvalidParamsError)) } } - if v.DatabaseOutputs != nil { - if err := validateDatabaseOutputList(v.DatabaseOutputs); err != nil { - invalidParams.AddNested("DatabaseOutputs", err.(smithy.InvalidParamsError)) - } - } if v.RoleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) } diff --git a/service/dataexchange/go.mod b/service/dataexchange/go.mod index 33b7b5b428d..278abfa81ae 100644 --- a/service/dataexchange/go.mod +++ b/service/dataexchange/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dataexchange/go.sum b/service/dataexchange/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/dataexchange/go.sum +++ b/service/dataexchange/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/datapipeline/go.mod b/service/datapipeline/go.mod index ecc8aeaec7e..39cdb75b984 100644 --- a/service/datapipeline/go.mod +++ b/service/datapipeline/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/datapipeline/go.sum b/service/datapipeline/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/datapipeline/go.sum +++ b/service/datapipeline/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/datasync/go.mod b/service/datasync/go.mod index 2f2dcc63121..c7ebec05545 100644 --- a/service/datasync/go.mod +++ b/service/datasync/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/datasync/go.sum b/service/datasync/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/datasync/go.sum +++ b/service/datasync/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/dax/go.mod b/service/dax/go.mod index 27ae09dcea4..fa88c41249f 100644 --- a/service/dax/go.mod +++ b/service/dax/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dax/go.sum b/service/dax/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/dax/go.sum +++ b/service/dax/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/detective/go.mod b/service/detective/go.mod index 43314dd70a7..dcd470ff603 100644 --- a/service/detective/go.mod +++ b/service/detective/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/detective/go.sum b/service/detective/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/detective/go.sum +++ b/service/detective/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/devicefarm/go.mod b/service/devicefarm/go.mod index 7c606773a96..fc0089ad1ab 100644 --- a/service/devicefarm/go.mod +++ b/service/devicefarm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/devicefarm/go.sum b/service/devicefarm/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/devicefarm/go.sum +++ b/service/devicefarm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/devopsguru/go.mod b/service/devopsguru/go.mod index 62cbf342658..218e6aa6ac0 100644 --- a/service/devopsguru/go.mod +++ b/service/devopsguru/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/devopsguru/go.sum b/service/devopsguru/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/devopsguru/go.sum +++ b/service/devopsguru/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/directconnect/api_op_AllocateConnectionOnInterconnect.go b/service/directconnect/api_op_AllocateConnectionOnInterconnect.go index c6c4e8d198a..4453c9fb637 100644 --- a/service/directconnect/api_op_AllocateConnectionOnInterconnect.go +++ b/service/directconnect/api_op_AllocateConnectionOnInterconnect.go @@ -75,11 +75,11 @@ type AllocateConnectionOnInterconnectOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_AllocateHostedConnection.go b/service/directconnect/api_op_AllocateHostedConnection.go index d5d75cb3c29..7d2c1cb011c 100644 --- a/service/directconnect/api_op_AllocateHostedConnection.go +++ b/service/directconnect/api_op_AllocateHostedConnection.go @@ -78,11 +78,11 @@ type AllocateHostedConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_AllocatePrivateVirtualInterface.go b/service/directconnect/api_op_AllocatePrivateVirtualInterface.go index 241c5e11db9..fc762914229 100644 --- a/service/directconnect/api_op_AllocatePrivateVirtualInterface.go +++ b/service/directconnect/api_op_AllocatePrivateVirtualInterface.go @@ -70,11 +70,11 @@ type AllocatePrivateVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the virtual interface terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_AllocatePublicVirtualInterface.go b/service/directconnect/api_op_AllocatePublicVirtualInterface.go index e36ae6e86db..b76f6711205 100644 --- a/service/directconnect/api_op_AllocatePublicVirtualInterface.go +++ b/service/directconnect/api_op_AllocatePublicVirtualInterface.go @@ -75,11 +75,11 @@ type AllocatePublicVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the virtual interface terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_AssociateConnectionWithLag.go b/service/directconnect/api_op_AssociateConnectionWithLag.go index 5c5a48fd5f8..b67d187b309 100644 --- a/service/directconnect/api_op_AssociateConnectionWithLag.go +++ b/service/directconnect/api_op_AssociateConnectionWithLag.go @@ -64,11 +64,11 @@ type AssociateConnectionWithLagOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_AssociateHostedConnection.go b/service/directconnect/api_op_AssociateHostedConnection.go index 9c8e0b85ef3..2a7f29d9ca2 100644 --- a/service/directconnect/api_op_AssociateHostedConnection.go +++ b/service/directconnect/api_op_AssociateHostedConnection.go @@ -56,11 +56,11 @@ type AssociateHostedConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_AssociateVirtualInterface.go b/service/directconnect/api_op_AssociateVirtualInterface.go index 5d818876844..138c622f82b 100644 --- a/service/directconnect/api_op_AssociateVirtualInterface.go +++ b/service/directconnect/api_op_AssociateVirtualInterface.go @@ -72,11 +72,11 @@ type AssociateVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the virtual interface terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_CreateConnection.go b/service/directconnect/api_op_CreateConnection.go index 87d845570f2..3781ade30ae 100644 --- a/service/directconnect/api_op_CreateConnection.go +++ b/service/directconnect/api_op_CreateConnection.go @@ -80,11 +80,11 @@ type CreateConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_CreateInterconnect.go b/service/directconnect/api_op_CreateInterconnect.go index 6618f9c7a46..1bf4c032abb 100644 --- a/service/directconnect/api_op_CreateInterconnect.go +++ b/service/directconnect/api_op_CreateInterconnect.go @@ -81,11 +81,11 @@ type CreateInterconnectOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_CreateLag.go b/service/directconnect/api_op_CreateLag.go index 3db3ccd65ba..64ba569b964 100644 --- a/service/directconnect/api_op_CreateLag.go +++ b/service/directconnect/api_op_CreateLag.go @@ -105,8 +105,8 @@ type CreateLagOutput struct { // The Direct Connect endpoint that hosts the LAG. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The connections bundled by the LAG. diff --git a/service/directconnect/api_op_CreatePrivateVirtualInterface.go b/service/directconnect/api_op_CreatePrivateVirtualInterface.go index 6bbe03ff79c..25209e06d2b 100644 --- a/service/directconnect/api_op_CreatePrivateVirtualInterface.go +++ b/service/directconnect/api_op_CreatePrivateVirtualInterface.go @@ -74,11 +74,11 @@ type CreatePrivateVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the virtual interface terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_CreatePublicVirtualInterface.go b/service/directconnect/api_op_CreatePublicVirtualInterface.go index ef49e4024f0..8f4de75c4c5 100644 --- a/service/directconnect/api_op_CreatePublicVirtualInterface.go +++ b/service/directconnect/api_op_CreatePublicVirtualInterface.go @@ -67,11 +67,11 @@ type CreatePublicVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the virtual interface terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_DeleteConnection.go b/service/directconnect/api_op_DeleteConnection.go index ebc408bab7a..84a426f474a 100644 --- a/service/directconnect/api_op_DeleteConnection.go +++ b/service/directconnect/api_op_DeleteConnection.go @@ -49,11 +49,11 @@ type DeleteConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_DeleteLag.go b/service/directconnect/api_op_DeleteLag.go index 3f4b50511a9..307e8e9a072 100644 --- a/service/directconnect/api_op_DeleteLag.go +++ b/service/directconnect/api_op_DeleteLag.go @@ -52,8 +52,8 @@ type DeleteLagOutput struct { // The Direct Connect endpoint that hosts the LAG. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The connections bundled by the LAG. diff --git a/service/directconnect/api_op_DisassociateConnectionFromLag.go b/service/directconnect/api_op_DisassociateConnectionFromLag.go index f2f7565f76d..d50bdfd5c21 100644 --- a/service/directconnect/api_op_DisassociateConnectionFromLag.go +++ b/service/directconnect/api_op_DisassociateConnectionFromLag.go @@ -60,11 +60,11 @@ type DisassociateConnectionFromLagOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_UpdateConnection.go b/service/directconnect/api_op_UpdateConnection.go index 88227a74067..f2503d31c1a 100644 --- a/service/directconnect/api_op_UpdateConnection.go +++ b/service/directconnect/api_op_UpdateConnection.go @@ -60,11 +60,11 @@ type UpdateConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_UpdateLag.go b/service/directconnect/api_op_UpdateLag.go index 0dfa11fc85c..bdde9fdeac4 100644 --- a/service/directconnect/api_op_UpdateLag.go +++ b/service/directconnect/api_op_UpdateLag.go @@ -79,8 +79,8 @@ type UpdateLagOutput struct { // The Direct Connect endpoint that hosts the LAG. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The connections bundled by the LAG. diff --git a/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go b/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go index 0862d52259a..fcd763e9366 100644 --- a/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go +++ b/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go @@ -68,11 +68,11 @@ type UpdateVirtualInterfaceAttributesOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the virtual interface terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/go.mod b/service/directconnect/go.mod index 0950c1170be..a981d60f13e 100644 --- a/service/directconnect/go.mod +++ b/service/directconnect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/directconnect/go.sum b/service/directconnect/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/directconnect/go.sum +++ b/service/directconnect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/directconnect/types/types.go b/service/directconnect/types/types.go index 0494ee18f31..e4378f0d8f3 100644 --- a/service/directconnect/types/types.go +++ b/service/directconnect/types/types.go @@ -43,11 +43,9 @@ type BGPPeer struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint that terminates the BGP peer. + // The Direct Connect endpoint on which the BGP peer terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The ID of the BGP peer. @@ -98,11 +96,11 @@ type Connection struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. @@ -381,11 +379,11 @@ type Interconnect struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The bandwidth of the connection. @@ -463,8 +461,8 @@ type Lag struct { // The Direct Connect endpoint that hosts the LAG. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The connections bundled by the LAG. @@ -984,11 +982,11 @@ type VirtualInterface struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint that terminates the physical connection. + // The Direct Connect endpoint on which the virtual interface terminates. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates the logical connection. This device - // might be different than the device that terminates the physical connection. + // The Direct Connect endpoint that terminates a physical connection's BGP + // sessions. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directoryservice/go.mod b/service/directoryservice/go.mod index d1e3386a608..1cef9765db3 100644 --- a/service/directoryservice/go.mod +++ b/service/directoryservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/directoryservice/go.sum b/service/directoryservice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/directoryservice/go.sum +++ b/service/directoryservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/dlm/go.mod b/service/dlm/go.mod index 3b5b2f2120a..bd3fbb79f32 100644 --- a/service/dlm/go.mod +++ b/service/dlm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dlm/go.sum b/service/dlm/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/dlm/go.sum +++ b/service/dlm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/docdb/go.mod b/service/docdb/go.mod index 8b8149903c9..964fade1cdc 100644 --- a/service/docdb/go.mod +++ b/service/docdb/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/docdb/go.sum b/service/docdb/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/docdb/go.sum +++ b/service/docdb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/dynamodb/go.mod b/service/dynamodb/go.mod index 77a2400e0ec..ee9d660341b 100644 --- a/service/dynamodb/go.mod +++ b/service/dynamodb/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.0.1 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.2.1 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.0.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum index e637979fcce..4ba11c58549 100644 --- a/service/dynamodb/go.sum +++ b/service/dynamodb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/service/dynamodbstreams/go.mod b/service/dynamodbstreams/go.mod index 62fee0eace1..82708c8c63f 100644 --- a/service/dynamodbstreams/go.mod +++ b/service/dynamodbstreams/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dynamodbstreams/go.sum b/service/dynamodbstreams/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/dynamodbstreams/go.sum +++ b/service/dynamodbstreams/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ebs/go.mod b/service/ebs/go.mod index 928af201439..efbc74b072b 100644 --- a/service/ebs/go.mod +++ b/service/ebs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ebs/go.sum b/service/ebs/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/ebs/go.sum +++ b/service/ebs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ec2/api_op_AllocateAddress.go b/service/ec2/api_op_AllocateAddress.go index f973238b9ec..ef3960e49dd 100644 --- a/service/ec2/api_op_AllocateAddress.go +++ b/service/ec2/api_op_AllocateAddress.go @@ -11,25 +11,24 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Allocates an Elastic IP address to your Amazon Web Services account. After you -// allocate the Elastic IP address you can associate it with an instance or network -// interface. After you release an Elastic IP address, it is released to the IP -// address pool and can be allocated to a different Amazon Web Services account. -// You can allocate an Elastic IP address from an address pool owned by Amazon Web -// Services or from an address pool created from a public IPv4 address range that -// you have brought to Amazon Web Services for use with your Amazon Web Services -// resources using bring your own IP addresses (BYOIP). For more information, see -// Bring Your Own IP Addresses (BYOIP) +// Allocates an Elastic IP address to your account. After you allocate the Elastic +// IP address you can associate it with an instance or network interface. After you +// release an Elastic IP address, it is released to the IP address pool and can be +// allocated to a different account. You can allocate an Elastic IP address from an +// address pool owned by Amazon Web Services or from an address pool created from a +// public IPv4 address range that you have brought to Amazon Web Services for use +// with your Amazon Web Services resources using bring your own IP addresses +// (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the // Amazon Elastic Compute Cloud User Guide. [EC2-VPC] If you release an Elastic IP // address, you might be able to recover it. You cannot recover an Elastic IP -// address that you released after it is allocated to another Amazon Web Services -// account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to -// recover an Elastic IP address that you released, specify it in this operation. -// An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. -// By default, you can allocate 5 Elastic IP addresses for EC2-Classic per Region -// and 5 Elastic IP addresses for EC2-VPC per Region. For more information, see -// Elastic IP Addresses +// address that you released after it is allocated to another account. You cannot +// recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic +// IP address that you released, specify it in this operation. An Elastic IP +// address is for use either in the EC2-Classic platform or in a VPC. By default, +// you can allocate 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic +// IP addresses for EC2-VPC per Region. For more information, see Elastic IP +// Addresses // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. You can allocate a carrier IP // address which is a public IP address from a telecommunication carrier, to a diff --git a/service/ec2/api_op_AssignIpv6Addresses.go b/service/ec2/api_op_AssignIpv6Addresses.go index bcf0849f4d8..2a79e5579d1 100644 --- a/service/ec2/api_op_AssignIpv6Addresses.go +++ b/service/ec2/api_op_AssignIpv6Addresses.go @@ -18,12 +18,7 @@ import ( // information, see IP Addresses Per Network Interface Per Instance Type // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) // in the Amazon Elastic Compute Cloud User Guide. You must specify either the IPv6 -// addresses or the IPv6 address count in the request. You can optionally use -// Prefix Delegation on the network interface. You must specify either the IPV6 -// Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For -// information, see Prefix Delegation -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation) in -// the Amazon Elastic Compute Cloud User Guide. +// addresses or the IPv6 address count in the request. func (c *Client) AssignIpv6Addresses(ctx context.Context, params *AssignIpv6AddressesInput, optFns ...func(*Options)) (*AssignIpv6AddressesOutput, error) { if params == nil { params = &AssignIpv6AddressesInput{} @@ -57,15 +52,6 @@ type AssignIpv6AddressesInput struct { // can't use this option if you're specifying a number of IPv6 addresses. Ipv6Addresses []string - // The number of IPv6 Prefix Delegation prefixes that AWS automatically assigns to - // the network interface. You cannot use this option if you use the Ipv6Prefixes - // option. - Ipv6PrefixCount *int32 - - // One or more IPv6 Prefix Delegation prefixes assigned to the network interface. - // You cannot use this option if you use the Ipv6PrefixCount option. - Ipv6Prefixes []string - noSmithyDocumentSerde } @@ -76,9 +62,6 @@ type AssignIpv6AddressesOutput struct { // included. AssignedIpv6Addresses []string - // The IPv6 Prefix Delegation prefixes that are assigned to the network interface. - AssignedIpv6Prefixes []string - // The ID of the network interface. NetworkInterfaceId *string diff --git a/service/ec2/api_op_AssignPrivateIpAddresses.go b/service/ec2/api_op_AssignPrivateIpAddresses.go index 051d3d1a433..841b068a4c5 100644 --- a/service/ec2/api_op_AssignPrivateIpAddresses.go +++ b/service/ec2/api_op_AssignPrivateIpAddresses.go @@ -27,12 +27,7 @@ import ( // asynchronous operation. When you move an IP address from one network interface // to another, check network/interfaces/macs/mac/local-ipv4s in the instance // metadata to confirm that the remapping is complete. You must specify either the -// IP addresses or the IP address count in the request. You can optionally use -// Prefix Delegation on the network interface. You must specify either the IPv4 -// Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For -// information, see Prefix Delegation -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation) in -// the Amazon Elastic Compute Cloud User Guide. +// IP addresses or the IP address count in the request. func (c *Client) AssignPrivateIpAddresses(ctx context.Context, params *AssignPrivateIpAddressesInput, optFns ...func(*Options)) (*AssignPrivateIpAddressesOutput, error) { if params == nil { params = &AssignPrivateIpAddressesInput{} @@ -61,15 +56,6 @@ type AssignPrivateIpAddressesInput struct { // interface. AllowReassignment *bool - // The number of IPv4 Prefix Delegation prefixes that AWS automatically assigns to - // the network interface. You cannot use this option if you use the Ipv4 Prefixes - // option. - Ipv4PrefixCount *int32 - - // One or more IPv4 Prefix Delegation prefixes assigned to the network interface. - // You cannot use this option if you use the Ipv4PrefixCount option. - Ipv4Prefixes []string - // One or more IP addresses to be assigned as a secondary private IP address to the // network interface. You can't specify this parameter when also specifying a // number of secondary IP addresses. If you don't specify an IP address, Amazon EC2 @@ -85,9 +71,6 @@ type AssignPrivateIpAddressesInput struct { type AssignPrivateIpAddressesOutput struct { - // The IPv4 Prefix Delegation prefixes that are assigned to the network interface. - AssignedIpv4Prefixes []types.Ipv4PrefixSpecification - // The private IP addresses assigned to the network interface. AssignedPrivateIpAddresses []types.AssignedPrivateIpAddress diff --git a/service/ec2/api_op_AssociateDhcpOptions.go b/service/ec2/api_op_AssociateDhcpOptions.go index 59bfc13880d..3709a854c09 100644 --- a/service/ec2/api_op_AssociateDhcpOptions.go +++ b/service/ec2/api_op_AssociateDhcpOptions.go @@ -17,7 +17,7 @@ import ( // instances. They automatically pick up the changes within a few hours, depending // on how frequently the instance renews its DHCP lease. You can explicitly renew // the lease using the operating system on the instance. For more information, see -// DHCP options sets +// DHCP Options Sets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) AssociateDhcpOptions(ctx context.Context, params *AssociateDhcpOptionsInput, optFns ...func(*Options)) (*AssociateDhcpOptionsOutput, error) { diff --git a/service/ec2/api_op_AssociateInstanceEventWindow.go b/service/ec2/api_op_AssociateInstanceEventWindow.go deleted file mode 100644 index 105c9b9e6eb..00000000000 --- a/service/ec2/api_op_AssociateInstanceEventWindow.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package ec2 - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Associates one or more targets with an event window. Only one type of target -// (instance IDs, Dedicated Host IDs, or tags) can be specified with an event -// window. For more information, see Define event windows for scheduled events -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the -// Amazon EC2 User Guide. -func (c *Client) AssociateInstanceEventWindow(ctx context.Context, params *AssociateInstanceEventWindowInput, optFns ...func(*Options)) (*AssociateInstanceEventWindowOutput, error) { - if params == nil { - params = &AssociateInstanceEventWindowInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "AssociateInstanceEventWindow", params, optFns, c.addOperationAssociateInstanceEventWindowMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*AssociateInstanceEventWindowOutput) - out.ResultMetadata = metadata - return out, nil -} - -type AssociateInstanceEventWindowInput struct { - - // One or more targets associated with the specified event window. - // - // This member is required. - AssociationTarget *types.InstanceEventWindowAssociationRequest - - // The ID of the event window. - // - // This member is required. - InstanceEventWindowId *string - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have the - // required permissions, the error response is DryRunOperation. Otherwise, it is - // UnauthorizedOperation. - DryRun *bool - - noSmithyDocumentSerde -} - -type AssociateInstanceEventWindowOutput struct { - - // Information about the event window. - InstanceEventWindow *types.InstanceEventWindow - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationAssociateInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpAssociateInstanceEventWindowValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateInstanceEventWindow(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opAssociateInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "ec2", - OperationName: "AssociateInstanceEventWindow", - } -} diff --git a/service/ec2/api_op_AssociateRouteTable.go b/service/ec2/api_op_AssociateRouteTable.go index 5a9edbe4f48..8ade9439631 100644 --- a/service/ec2/api_op_AssociateRouteTable.go +++ b/service/ec2/api_op_AssociateRouteTable.go @@ -16,7 +16,7 @@ import ( // causes traffic from the subnet or gateway to be routed according to the routes // in the route table. The action returns an association ID, which you need in // order to disassociate the route table later. A route table can be associated -// with multiple subnets. For more information, see Route tables +// with multiple subnets. For more information, see Route Tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) AssociateRouteTable(ctx context.Context, params *AssociateRouteTableInput, optFns ...func(*Options)) (*AssociateRouteTableOutput, error) { diff --git a/service/ec2/api_op_AssociateVpcCidrBlock.go b/service/ec2/api_op_AssociateVpcCidrBlock.go index 919b3c5c8f7..0081df34bf7 100644 --- a/service/ec2/api_op_AssociateVpcCidrBlock.go +++ b/service/ec2/api_op_AssociateVpcCidrBlock.go @@ -18,7 +18,7 @@ import ( // CIDR block size is fixed at /56. You must specify one of the following in the // request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR // block. For more information about associating CIDR blocks with your VPC and -// applicable restrictions, see VPC and subnet sizing +// applicable restrictions, see VPC and Subnet Sizing // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html#VPC_Sizing) // in the Amazon Virtual Private Cloud User Guide. func (c *Client) AssociateVpcCidrBlock(ctx context.Context, params *AssociateVpcCidrBlockInput, optFns ...func(*Options)) (*AssociateVpcCidrBlockOutput, error) { diff --git a/service/ec2/api_op_AttachVolume.go b/service/ec2/api_op_AttachVolume.go index 949d3b6d005..765f8b62c39 100644 --- a/service/ec2/api_op_AttachVolume.go +++ b/service/ec2/api_op_AttachVolume.go @@ -18,26 +18,25 @@ import ( // Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. After you attach an EBS volume, you -// must make it available. For more information, see Make an EBS volume available +// must make it available. For more information, see Making an EBS volume available // for use // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html). If -// a volume has an Amazon Web Services Marketplace product code: +// a volume has an AWS Marketplace product code: // -// * The volume can -// be attached only to a stopped instance. +// * The volume can be attached only +// to a stopped instance. // -// * Amazon Web Services Marketplace -// product codes are copied from the volume to the instance. +// * AWS Marketplace product codes are copied from the +// volume to the instance. // -// * You must be -// subscribed to the product. +// * You must be subscribed to the product. // -// * The instance type and operating system of the -// instance must support the product. For example, you can't detach a volume from a -// Windows instance and attach it to a Linux instance. +// * The +// instance type and operating system of the instance must support the product. For +// example, you can't detach a volume from a Windows instance and attach it to a +// Linux instance. // -// For more information, see -// Attach an Amazon EBS volume to an instance +// For more information, see Attaching Amazon EBS volumes // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) AttachVolume(ctx context.Context, params *AttachVolumeInput, optFns ...func(*Options)) (*AttachVolumeOutput, error) { diff --git a/service/ec2/api_op_ConfirmProductInstance.go b/service/ec2/api_op_ConfirmProductInstance.go index bfad4916266..5f7d3fb2490 100644 --- a/service/ec2/api_op_ConfirmProductInstance.go +++ b/service/ec2/api_op_ConfirmProductInstance.go @@ -51,8 +51,8 @@ type ConfirmProductInstanceInput struct { type ConfirmProductInstanceOutput struct { - // The Amazon Web Services account ID of the instance owner. This is only present - // if the product code is attached to the instance. + // The account ID of the instance owner. This is only present if the product code + // is attached to the instance. OwnerId *string // The return value of the request. Returns true if the specified product code is diff --git a/service/ec2/api_op_CopySnapshot.go b/service/ec2/api_op_CopySnapshot.go index a4648c5e05f..4414b9dc278 100644 --- a/service/ec2/api_op_CopySnapshot.go +++ b/service/ec2/api_op_CopySnapshot.go @@ -21,17 +21,17 @@ import ( // snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. // Copies of unencrypted snapshots remain unencrypted, unless you enable encryption // for the snapshot copy operation. By default, encrypted snapshot copies use the -// default Key Management Service (KMS) KMS key; however, you can specify a -// different KMS key. To copy an encrypted snapshot that has been shared from -// another account, you must have permissions for the KMS key used to encrypt the -// snapshot. Snapshots copied to an Outpost are encrypted by default using the -// default encryption key for the Region, or a different key that you specify in -// the request using KmsKeyId. Outposts do not support unencrypted snapshots. For -// more information, Amazon EBS local snapshots on Outposts +// default AWS Key Management Service (AWS KMS) customer master key (CMK); however, +// you can specify a different CMK. To copy an encrypted snapshot that has been +// shared from another account, you must have permissions for the CMK used to +// encrypt the snapshot. Snapshots copied to an Outpost are encrypted by default +// using the default encryption key for the Region, or a different key that you +// specify in the request using KmsKeyId. Outposts do not support unencrypted +// snapshots. For more information, Amazon EBS local snapshots on Outposts // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami) // in the Amazon Elastic Compute Cloud User Guide. Snapshots created by copying // another snapshot have an arbitrary volume ID that should not be used for any -// purpose. For more information, see Copy an Amazon EBS snapshot +// purpose. For more information, see Copying an Amazon EBS snapshot // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) in // the Amazon Elastic Compute Cloud User Guide. func (c *Client) CopySnapshot(ctx context.Context, params *CopySnapshotInput, optFns ...func(*Options)) (*CopySnapshotOutput, error) { @@ -65,11 +65,11 @@ type CopySnapshotInput struct { Description *string // The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot. - // Only specify this parameter when copying a snapshot from an Amazon Web Services - // Region to an Outpost. The snapshot must be in the Region for the destination - // Outpost. You cannot copy a snapshot from an Outpost to a Region, from one - // Outpost to another, or within the same Outpost. For more information, see Copy - // snapshots from an Amazon Web Services Region to an Outpost + // Only specify this parameter when copying a snapshot from an AWS Region to an + // Outpost. The snapshot must be in the Region for the destination Outpost. You + // cannot copy a snapshot from an Outpost to a Region, from one Outpost to another, + // or within the same Outpost. For more information, see Copying snapshots from an + // AWS Region to an Outpost // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#copy-snapshots) // in the Amazon Elastic Compute Cloud User Guide. DestinationOutpostArn *string @@ -89,13 +89,13 @@ type CopySnapshotInput struct { // Amazon Elastic Compute Cloud User Guide. Encrypted *bool - // The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS - // encryption. If this parameter is not specified, your KMS key for Amazon EBS is - // used. If KmsKeyId is specified, the encrypted state must be true. You can - // specify the KMS key using any of the following: + // The identifier of the AWS Key Management Service (AWS KMS) customer master key + // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your + // AWS managed CMK for EBS is used. If KmsKeyId is specified, the encrypted state + // must be true. You can specify the CMK using any of the following: // - // * Key ID. For example, - // 1234abcd-12ab-34cd-56ef-1234567890ab. + // * Key ID. For + // example, 1234abcd-12ab-34cd-56ef-1234567890ab. // // * Key alias. For example, // alias/ExampleAlias. @@ -107,10 +107,9 @@ type CopySnapshotInput struct { // Alias ARN. For example, // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // - // Amazon Web Services - // authenticates the KMS key asynchronously. Therefore, if you specify an ID, - // alias, or ARN that is not valid, the action can appear to complete, but - // eventually fails. + // AWS authenticates the + // CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not + // valid, the action can appear to complete, but eventually fails. KmsKeyId *string // When you copy an encrypted source snapshot using the Amazon EC2 Query API, you @@ -119,10 +118,10 @@ type CopySnapshotInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html). // The PresignedUrl should use the snapshot source endpoint, the CopySnapshot // action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion - // parameters. The PresignedUrl must be signed using Amazon Web Services Signature - // Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm - // for this parameter uses the same logic that is described in Authenticating - // Requests: Using Query Parameters (Amazon Web Services Signature Version 4) + // parameters. The PresignedUrl must be signed using AWS Signature Version 4. + // Because EBS snapshots are stored in Amazon S3, the signing algorithm for this + // parameter uses the same logic that is described in Authenticating Requests: + // Using Query Parameters (AWS Signature Version 4) // (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) // in the Amazon Simple Storage Service API Reference. An invalid or improperly // signed PresignedUrl will cause the copy operation to fail asynchronously, and diff --git a/service/ec2/api_op_CreateCapacityReservation.go b/service/ec2/api_op_CreateCapacityReservation.go index d46d64ac6fa..abbdca36fc5 100644 --- a/service/ec2/api_op_CreateCapacityReservation.go +++ b/service/ec2/api_op_CreateCapacityReservation.go @@ -147,11 +147,11 @@ type CreateCapacityReservationInput struct { // have one of the following tenancy settings: // // * default - The Capacity - // Reservation is created on hardware that is shared with other Amazon Web Services - // accounts. + // Reservation is created on hardware that is shared with other accounts. // - // * dedicated - The Capacity Reservation is created on single-tenant - // hardware that is dedicated to a single Amazon Web Services account. + // * + // dedicated - The Capacity Reservation is created on single-tenant hardware that + // is dedicated to a single account. Tenancy types.CapacityReservationTenancy noSmithyDocumentSerde diff --git a/service/ec2/api_op_CreateCarrierGateway.go b/service/ec2/api_op_CreateCarrierGateway.go index d8e4045fbc4..471990f6cc6 100644 --- a/service/ec2/api_op_CreateCarrierGateway.go +++ b/service/ec2/api_op_CreateCarrierGateway.go @@ -15,7 +15,7 @@ import ( // Creates a carrier gateway. For more information about carrier gateways, see // Carrier gateways // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#wavelength-carrier-gateway) -// in the Amazon Web Services Wavelength Developer Guide. +// in the AWS Wavelength Developer Guide. func (c *Client) CreateCarrierGateway(ctx context.Context, params *CreateCarrierGatewayInput, optFns ...func(*Options)) (*CreateCarrierGatewayOutput, error) { if params == nil { params = &CreateCarrierGatewayInput{} @@ -39,7 +39,7 @@ type CreateCarrierGatewayInput struct { VpcId *string // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to ensure idempotency + // the request. For more information, see How to Ensure Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). ClientToken *string diff --git a/service/ec2/api_op_CreateDefaultSubnet.go b/service/ec2/api_op_CreateDefaultSubnet.go index 86b347a1386..df4e8bc230a 100644 --- a/service/ec2/api_op_CreateDefaultSubnet.go +++ b/service/ec2/api_op_CreateDefaultSubnet.go @@ -13,7 +13,7 @@ import ( // Creates a default subnet with a size /20 IPv4 CIDR block in the specified // Availability Zone in your default VPC. You can have only one default subnet per -// Availability Zone. For more information, see Creating a default subnet +// Availability Zone. For more information, see Creating a Default Subnet // (https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html#create-default-subnet) // in the Amazon Virtual Private Cloud User Guide. func (c *Client) CreateDefaultSubnet(ctx context.Context, params *CreateDefaultSubnetInput, optFns ...func(*Options)) (*CreateDefaultSubnetOutput, error) { diff --git a/service/ec2/api_op_CreateDefaultVpc.go b/service/ec2/api_op_CreateDefaultVpc.go index f73b31d19d9..be209e33655 100644 --- a/service/ec2/api_op_CreateDefaultVpc.go +++ b/service/ec2/api_op_CreateDefaultVpc.go @@ -13,7 +13,7 @@ import ( // Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in // each Availability Zone. For more information about the components of a default -// VPC, see Default VPC and default subnets +// VPC, see Default VPC and Default Subnets // (https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html) in the // Amazon Virtual Private Cloud User Guide. You cannot specify the components of // the default VPC yourself. If you deleted your previous default VPC, you can diff --git a/service/ec2/api_op_CreateDhcpOptions.go b/service/ec2/api_op_CreateDhcpOptions.go index d9bfb9bb855..3caa8a75cec 100644 --- a/service/ec2/api_op_CreateDhcpOptions.go +++ b/service/ec2/api_op_CreateDhcpOptions.go @@ -52,7 +52,7 @@ import ( // (AmazonProvidedDNS). If you create a set of options, and if your VPC has an // internet gateway, make sure to set the domain-name-servers option either to // AmazonProvidedDNS or to a domain name server of your choice. For more -// information, see DHCP options sets +// information, see DHCP Options Sets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) CreateDhcpOptions(ctx context.Context, params *CreateDhcpOptionsInput, optFns ...func(*Options)) (*CreateDhcpOptionsOutput, error) { diff --git a/service/ec2/api_op_CreateEgressOnlyInternetGateway.go b/service/ec2/api_op_CreateEgressOnlyInternetGateway.go index 9c494b7266f..38b1085c712 100644 --- a/service/ec2/api_op_CreateEgressOnlyInternetGateway.go +++ b/service/ec2/api_op_CreateEgressOnlyInternetGateway.go @@ -38,7 +38,7 @@ type CreateEgressOnlyInternetGatewayInput struct { VpcId *string // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to ensure idempotency + // the request. For more information, see How to Ensure Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). ClientToken *string diff --git a/service/ec2/api_op_CreateFlowLogs.go b/service/ec2/api_op_CreateFlowLogs.go index b564c2eb573..d4bff30df23 100644 --- a/service/ec2/api_op_CreateFlowLogs.go +++ b/service/ec2/api_op_CreateFlowLogs.go @@ -15,7 +15,7 @@ import ( // specific network interface, subnet, or VPC. Flow log data for a monitored // network interface is recorded as flow log records, which are log events // consisting of fields that describe the traffic flow. For more information, see -// Flow log records +// Flow Log Records // (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records) // in the Amazon Virtual Private Cloud User Guide. When publishing to CloudWatch // Logs, flow log records are published to a log group, and each network interface @@ -61,7 +61,7 @@ type CreateFlowLogsInput struct { TrafficType types.TrafficType // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to ensure idempotency + // the request. For more information, see How to Ensure Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). ClientToken *string @@ -100,11 +100,11 @@ type CreateFlowLogsInput struct { LogDestinationType types.LogDestinationType // The fields to include in the flow log record, in the order in which they should - // appear. For a list of available fields, see Flow log records + // appear. For a list of available fields, see Flow Log Records // (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records). // If you omit this parameter, the flow log is created using the default format. If // you specify this parameter, you must specify at least one field. Specify the - // fields using the ${field-id} format, separated by spaces. For the CLI, use + // fields using the ${field-id} format, separated by spaces. For the AWS CLI, use // single quotation marks (' ') to surround the parameter value. LogFormat *string diff --git a/service/ec2/api_op_CreateInstanceEventWindow.go b/service/ec2/api_op_CreateInstanceEventWindow.go deleted file mode 100644 index 9d0e1d63aac..00000000000 --- a/service/ec2/api_op_CreateInstanceEventWindow.go +++ /dev/null @@ -1,174 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package ec2 - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates an event window in which scheduled events for the associated Amazon EC2 -// instances can run. You can define either a set of time ranges or a cron -// expression when creating the event window, but not both. All event window times -// are in UTC. You can create up to 200 event windows per Amazon Web Services -// Region. When you create the event window, targets (instance IDs, Dedicated Host -// IDs, or tags) are not yet associated with it. To ensure that the event window -// can be used, you must associate one or more targets with it by using the -// AssociateInstanceEventWindow API. Event windows are applicable only for -// scheduled events that stop, reboot, or terminate instances. Event windows are -// not applicable for: -// -// * Expedited scheduled events and network maintenance -// events. -// -// * Unscheduled maintenance such as AutoRecovery and unplanned -// reboots. -// -// For more information, see Define event windows for scheduled events -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the -// Amazon EC2 User Guide. -func (c *Client) CreateInstanceEventWindow(ctx context.Context, params *CreateInstanceEventWindowInput, optFns ...func(*Options)) (*CreateInstanceEventWindowOutput, error) { - if params == nil { - params = &CreateInstanceEventWindowInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateInstanceEventWindow", params, optFns, c.addOperationCreateInstanceEventWindowMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateInstanceEventWindowOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateInstanceEventWindowInput struct { - - // The cron expression for the event window, for example, * 0-4,20-23 * * 1,5. If - // you specify a cron expression, you can't specify a time range. Constraints: - // - // * - // Only hour and day of the week values are supported. - // - // * For day of the week - // values, you can specify either integers 0 through 6, or alternative single - // values SUN through SAT. - // - // * The minute, month, and year must be specified by - // *. - // - // * The hour value must be one or a multiple range, for example, 0-4 or - // 0-4,20-23. - // - // * Each hour range must be >= 2 hours, for example, 0-2 or 20-23. - // - // * - // The event window must be >= 4 hours. The combined total time ranges in the event - // window must be >= 4 hours. - // - // For more information about cron expressions, see - // cron (https://en.wikipedia.org/wiki/Cron) on the Wikipedia website. - CronExpression *string - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have the - // required permissions, the error response is DryRunOperation. Otherwise, it is - // UnauthorizedOperation. - DryRun *bool - - // The name of the event window. - Name *string - - // The tags to apply to the event window. - TagSpecifications []types.TagSpecification - - // The time range for the event window. If you specify a time range, you can't - // specify a cron expression. - TimeRanges []types.InstanceEventWindowTimeRangeRequest - - noSmithyDocumentSerde -} - -type CreateInstanceEventWindowOutput struct { - - // Information about the event window. - InstanceEventWindow *types.InstanceEventWindow - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsEc2query_serializeOpCreateInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInstanceEventWindow(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opCreateInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "ec2", - OperationName: "CreateInstanceEventWindow", - } -} diff --git a/service/ec2/api_op_CreateNatGateway.go b/service/ec2/api_op_CreateNatGateway.go index 339bec2d501..09fcd1d4d60 100644 --- a/service/ec2/api_op_CreateNatGateway.go +++ b/service/ec2/api_op_CreateNatGateway.go @@ -22,7 +22,7 @@ import ( // private gateway. Common use cases include running large workloads behind a small // pool of allowlisted IPv4 addresses, preserving private IPv4 addresses, and // communicating between overlapping networks. For more information, see NAT -// gateways (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html) +// Gateways (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html) // in the Amazon Virtual Private Cloud User Guide. func (c *Client) CreateNatGateway(ctx context.Context, params *CreateNatGatewayInput, optFns ...func(*Options)) (*CreateNatGatewayOutput, error) { if params == nil { @@ -53,7 +53,7 @@ type CreateNatGatewayInput struct { AllocationId *string // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to ensure idempotency + // the request. For more information, see How to Ensure Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). // Constraint: Maximum 64 ASCII characters. ClientToken *string diff --git a/service/ec2/api_op_CreateNetworkInsightsPath.go b/service/ec2/api_op_CreateNetworkInsightsPath.go index 82402c4c4e5..5fbc191ce08 100644 --- a/service/ec2/api_op_CreateNetworkInsightsPath.go +++ b/service/ec2/api_op_CreateNetworkInsightsPath.go @@ -34,13 +34,13 @@ func (c *Client) CreateNetworkInsightsPath(ctx context.Context, params *CreateNe type CreateNetworkInsightsPathInput struct { // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to ensure idempotency + // the request. For more information, see How to Ensure Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). // // This member is required. ClientToken *string - // The Amazon Web Services resource that is the destination of the path. + // The AWS resource that is the destination of the path. // // This member is required. Destination *string @@ -50,13 +50,12 @@ type CreateNetworkInsightsPathInput struct { // This member is required. Protocol types.Protocol - // The Amazon Web Services resource that is the source of the path. + // The AWS resource that is the source of the path. // // This member is required. Source *string - // The IP address of the Amazon Web Services resource that is the destination of - // the path. + // The IP address of the AWS resource that is the destination of the path. DestinationIp *string // The destination port. @@ -68,8 +67,7 @@ type CreateNetworkInsightsPathInput struct { // UnauthorizedOperation. DryRun *bool - // The IP address of the Amazon Web Services resource that is the source of the - // path. + // The IP address of the AWS resource that is the source of the path. SourceIp *string // The tags to add to the path. diff --git a/service/ec2/api_op_CreateNetworkInterface.go b/service/ec2/api_op_CreateNetworkInterface.go index 0474d93482a..828646a3be4 100644 --- a/service/ec2/api_op_CreateNetworkInterface.go +++ b/service/ec2/api_op_CreateNetworkInterface.go @@ -65,15 +65,6 @@ type CreateNetworkInterfaceInput struct { // Amazon Elastic Compute Cloud User Guide. InterfaceType types.NetworkInterfaceCreationType - // The number of IPv4 Prefix Delegation prefixes that AWS automatically assigns to - // the network interface. You cannot use this option if you use the Ipv4 Prefixes - // option. - Ipv4PrefixCount *int32 - - // One or moreIPv4 Prefix Delegation prefixes assigned to the network interface. - // You cannot use this option if you use the Ipv4PrefixCount option. - Ipv4Prefixes []types.Ipv4PrefixSpecificationRequest - // The number of IPv6 addresses to assign to a network interface. Amazon EC2 // automatically selects the IPv6 addresses from the subnet range. You can't use // this option if specifying specific IPv6 addresses. If your subnet has the @@ -86,15 +77,6 @@ type CreateNetworkInterfaceInput struct { // addresses. Ipv6Addresses []types.InstanceIpv6Address - // The number of IPv6 Prefix Delegation prefixes that AWS automatically assigns to - // the network interface. You cannot use this option if you use the Ipv6Prefixes - // option. - Ipv6PrefixCount *int32 - - // One or moreIPv6 Prefix Delegation prefixes assigned to the network interface. - // You cannot use this option if you use the Ipv6PrefixCount option. - Ipv6Prefixes []types.Ipv6PrefixSpecificationRequest - // The primary private IPv4 address of the network interface. If you don't specify // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR // range. If you specify an IP address, you cannot indicate any IP addresses diff --git a/service/ec2/api_op_CreateNetworkInterfacePermission.go b/service/ec2/api_op_CreateNetworkInterfacePermission.go index 0b3fb26bb6e..a3e6337d23f 100644 --- a/service/ec2/api_op_CreateNetworkInterfacePermission.go +++ b/service/ec2/api_op_CreateNetworkInterfacePermission.go @@ -13,8 +13,7 @@ import ( // Grants an Amazon Web Services-authorized account permission to attach the // specified network interface to an instance in their account. You can grant -// permission to a single Amazon Web Services account only, and only one account at -// a time. +// permission to a single account only, and only one account at a time. func (c *Client) CreateNetworkInterfacePermission(ctx context.Context, params *CreateNetworkInterfacePermissionInput, optFns ...func(*Options)) (*CreateNetworkInterfacePermissionOutput, error) { if params == nil { params = &CreateNetworkInterfacePermissionInput{} @@ -43,7 +42,7 @@ type CreateNetworkInterfacePermissionInput struct { // This member is required. Permission types.InterfacePermissionType - // The Amazon Web Services account ID. + // The account ID. AwsAccountId *string // The Amazon Web Service. Currently not supported. diff --git a/service/ec2/api_op_CreateReplaceRootVolumeTask.go b/service/ec2/api_op_CreateReplaceRootVolumeTask.go index f706c6a85fd..5d856b040ad 100644 --- a/service/ec2/api_op_CreateReplaceRootVolumeTask.go +++ b/service/ec2/api_op_CreateReplaceRootVolumeTask.go @@ -15,8 +15,7 @@ import ( // Creates a root volume replacement task for an Amazon EC2 instance. The root // volume can either be restored to its initial launch state, or it can be restored // using a specific snapshot. For more information, see Replace a root volume -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-restoring-volume.html#replace-root) -// in the Amazon Elastic Compute Cloud User Guide. +// (https://docs.aws.amazon.com/) in the Amazon Elastic Compute Cloud User Guide. func (c *Client) CreateReplaceRootVolumeTask(ctx context.Context, params *CreateReplaceRootVolumeTaskInput, optFns ...func(*Options)) (*CreateReplaceRootVolumeTaskOutput, error) { if params == nil { params = &CreateReplaceRootVolumeTaskInput{} @@ -42,7 +41,7 @@ type CreateReplaceRootVolumeTaskInput struct { // Unique, case-sensitive identifier you provide to ensure the idempotency of the // request. If you do not specify a client token, a randomly generated token is // used for the request to ensure idempotency. For more information, see Ensuring - // idempotency + // Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string diff --git a/service/ec2/api_op_CreateRoute.go b/service/ec2/api_op_CreateRoute.go index 9ade8de0418..f152e60e4f3 100644 --- a/service/ec2/api_op_CreateRoute.go +++ b/service/ec2/api_op_CreateRoute.go @@ -26,7 +26,7 @@ import ( // Both routes apply to the traffic destined for 192.0.2.3. However, the // second route in the list covers a smaller number of IP addresses and is // therefore more specific, so we use that route to determine where to target the -// traffic. For more information about route tables, see Route tables +// traffic. For more information about route tables, see Route Tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) CreateRoute(ctx context.Context, params *CreateRouteInput, optFns ...func(*Options)) (*CreateRouteOutput, error) { diff --git a/service/ec2/api_op_CreateRouteTable.go b/service/ec2/api_op_CreateRouteTable.go index b5439145427..dd15350985f 100644 --- a/service/ec2/api_op_CreateRouteTable.go +++ b/service/ec2/api_op_CreateRouteTable.go @@ -13,7 +13,7 @@ import ( // Creates a route table for the specified VPC. After you create a route table, you // can add routes and associate the table with a subnet. For more information, see -// Route tables +// Route Tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) CreateRouteTable(ctx context.Context, params *CreateRouteTableInput, optFns ...func(*Options)) (*CreateRouteTableOutput, error) { diff --git a/service/ec2/api_op_CreateSnapshot.go b/service/ec2/api_op_CreateSnapshot.go index 06b478988ac..02601937661 100644 --- a/service/ec2/api_op_CreateSnapshot.go +++ b/service/ec2/api_op_CreateSnapshot.go @@ -19,23 +19,23 @@ import ( // snapshot must be stored in the same Region as the volume. If you create a // snapshot of a volume on an Outpost, the snapshot can be stored on the same // Outpost as the volume, or in the Region for that Outpost. When a snapshot is -// created, any Amazon Web Services Marketplace product codes that are associated -// with the source volume are propagated to the snapshot. You can take a snapshot -// of an attached volume that is in use. However, snapshots only capture data that -// has been written to your Amazon EBS volume at the time the snapshot command is -// issued; this might exclude any data that has been cached by any applications or -// the operating system. If you can pause any file systems on the volume long -// enough to take a snapshot, your snapshot should be complete. However, if you -// cannot pause all file writes to the volume, you should unmount the volume from -// within the instance, issue the snapshot command, and then remount the volume to -// ensure a consistent and complete snapshot. You may remount and use your volume -// while the snapshot status is pending. To create a snapshot for Amazon EBS -// volumes that serve as root devices, you should stop the instance before taking -// the snapshot. Snapshots that are taken from encrypted volumes are automatically -// encrypted. Volumes that are created from encrypted snapshots are also -// automatically encrypted. Your encrypted volumes and any associated snapshots -// always remain protected. You can tag your snapshots during creation. For more -// information, see Tag your Amazon EC2 resources +// created, any AWS Marketplace product codes that are associated with the source +// volume are propagated to the snapshot. You can take a snapshot of an attached +// volume that is in use. However, snapshots only capture data that has been +// written to your EBS volume at the time the snapshot command is issued; this +// might exclude any data that has been cached by any applications or the operating +// system. If you can pause any file systems on the volume long enough to take a +// snapshot, your snapshot should be complete. However, if you cannot pause all +// file writes to the volume, you should unmount the volume from within the +// instance, issue the snapshot command, and then remount the volume to ensure a +// consistent and complete snapshot. You may remount and use your volume while the +// snapshot status is pending. To create a snapshot for EBS volumes that serve as +// root devices, you should stop the instance before taking the snapshot. Snapshots +// that are taken from encrypted volumes are automatically encrypted. Volumes that +// are created from encrypted snapshots are also automatically encrypted. Your +// encrypted volumes and any associated snapshots always remain protected. You can +// tag your snapshots during creation. For more information, see Tagging your +// Amazon EC2 resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the // Amazon Elastic Compute Cloud User Guide. For more information, see Amazon // Elastic Block Store @@ -60,7 +60,7 @@ func (c *Client) CreateSnapshot(ctx context.Context, params *CreateSnapshotInput type CreateSnapshotInput struct { - // The ID of the Amazon EBS volume. + // The ID of the EBS volume. // // This member is required. VolumeId *string @@ -74,7 +74,7 @@ type CreateSnapshotInput struct { // UnauthorizedOperation. DryRun *bool - // The Amazon Resource Name (ARN) of the Outpost on which to create a local + // The Amazon Resource Name (ARN) of the AWS Outpost on which to create a local // snapshot. // // * To create a snapshot of a volume in a Region, omit this parameter. @@ -89,7 +89,7 @@ type CreateSnapshotInput struct { // Outpost, specify the ARN of the destination Outpost. The snapshot must be // created on the same Outpost as the volume. // - // For more information, see Create + // For more information, see Creating // local snapshots from volumes on an Outpost // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#create-snapshot) // in the Amazon Elastic Compute Cloud User Guide. @@ -118,22 +118,22 @@ type CreateSnapshotOutput struct { // Indicates whether the snapshot is encrypted. Encrypted *bool - // The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that - // was used to protect the volume encryption key for the parent volume. + // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) + // customer master key (CMK) that was used to protect the volume encryption key for + // the parent volume. KmsKeyId *string - // The ARN of the Outpost on which the snapshot is stored. For more information, - // see Amazon EBS local snapshots on Outposts + // The ARN of the AWS Outpost on which the snapshot is stored. For more + // information, see EBS Local Snapshot on Outposts // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html) in // the Amazon Elastic Compute Cloud User Guide. OutpostArn *string - // The Amazon Web Services owner alias, from an Amazon-maintained list (amazon). - // This is not the user-configured Amazon Web Services account alias set using the - // IAM console. + // The AWS owner alias, from an Amazon-maintained list (amazon). This is not the + // user-configured AWS account alias set using the IAM console. OwnerAlias *string - // The ID of the Amazon Web Services account that owns the EBS snapshot. + // The AWS account ID of the EBS snapshot owner. OwnerId *string // The progress of the snapshot, as a percentage. @@ -150,7 +150,7 @@ type CreateSnapshotOutput struct { State types.SnapshotState // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy - // operation fails (for example, if the proper Key Management Service (KMS) + // operation fails (for example, if the proper AWS Key Management Service (AWS KMS) // permissions are not obtained) this field displays error state details to help // you diagnose why the error occurred. This parameter is only returned by // DescribeSnapshots. diff --git a/service/ec2/api_op_CreateSnapshots.go b/service/ec2/api_op_CreateSnapshots.go index 0f349502617..49f83686b9e 100644 --- a/service/ec2/api_op_CreateSnapshots.go +++ b/service/ec2/api_op_CreateSnapshots.go @@ -54,7 +54,7 @@ type CreateSnapshotsInput struct { // UnauthorizedOperation. DryRun *bool - // The Amazon Resource Name (ARN) of the Outpost on which to create the local + // The Amazon Resource Name (ARN) of the AWS Outpost on which to create the local // snapshots. // // * To create snapshots from an instance in a Region, omit this @@ -70,7 +70,7 @@ type CreateSnapshotsInput struct { // snapshots must be created on the same Outpost as the instance. // // For more - // information, see Create multi-volume local snapshots from instances on an + // information, see Creating multi-volume local snapshots from instances on an // Outpost // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#create-multivol-snapshot) // in the Amazon Elastic Compute Cloud User Guide. diff --git a/service/ec2/api_op_CreateSpotDatafeedSubscription.go b/service/ec2/api_op_CreateSpotDatafeedSubscription.go index 343a6eabb7c..33c393d9182 100644 --- a/service/ec2/api_op_CreateSpotDatafeedSubscription.go +++ b/service/ec2/api_op_CreateSpotDatafeedSubscription.go @@ -12,8 +12,8 @@ import ( ) // Creates a data feed for Spot Instances, enabling you to view Spot Instance usage -// logs. You can create one data feed per Amazon Web Services account. For more -// information, see Spot Instance data feed +// logs. You can create one data feed per account. For more information, see Spot +// Instance data feed // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) in // the Amazon EC2 User Guide for Linux Instances. func (c *Client) CreateSpotDatafeedSubscription(ctx context.Context, params *CreateSpotDatafeedSubscriptionInput, optFns ...func(*Options)) (*CreateSpotDatafeedSubscriptionOutput, error) { diff --git a/service/ec2/api_op_CreateSubnet.go b/service/ec2/api_op_CreateSubnet.go index 6829fdd3ca0..64cbfc3f594 100644 --- a/service/ec2/api_op_CreateSubnet.go +++ b/service/ec2/api_op_CreateSubnet.go @@ -16,14 +16,14 @@ import ( // block size is between a /16 netmask (65,536 IP addresses) and /28 netmask (16 IP // addresses). The CIDR block must not overlap with the CIDR block of an existing // subnet in the VPC. If you've associated an IPv6 CIDR block with your VPC, you -// can create a subnet with an IPv6 CIDR block that uses a /64 prefix length. -// Amazon Web Services reserves both the first four and the last IPv4 address in -// each subnet's CIDR block. They're not available for use. If you add more than -// one subnet to a VPC, they're set up in a star topology with a logical router in -// the middle. When you stop an instance in a subnet, it retains its private IPv4 -// address. It's therefore possible to have a subnet with no running instances -// (they're all stopped), but no remaining IP addresses available. For more -// information about subnets, see Your VPC and subnets +// can create a subnet with an IPv6 CIDR block that uses a /64 prefix length. AWS +// reserves both the first four and the last IPv4 address in each subnet's CIDR +// block. They're not available for use. If you add more than one subnet to a VPC, +// they're set up in a star topology with a logical router in the middle. When you +// stop an instance in a subnet, it retains its private IPv4 address. It's +// therefore possible to have a subnet with no running instances (they're all +// stopped), but no remaining IP addresses available. For more information about +// subnets, see Your VPC and Subnets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) CreateSubnet(ctx context.Context, params *CreateSubnetInput, optFns ...func(*Options)) (*CreateSubnetOutput, error) { @@ -55,12 +55,11 @@ type CreateSubnetInput struct { // This member is required. VpcId *string - // The Availability Zone or Local Zone for the subnet. Default: Amazon Web Services - // selects one for you. If you create more than one subnet in your VPC, we do not - // necessarily select a different zone for each subnet. To create a subnet in a - // Local Zone, set this value to the Local Zone ID, for example us-west-2-lax-1a. - // For information about the Regions that support Local Zones, see Available - // Regions + // The Availability Zone or Local Zone for the subnet. Default: AWS selects one for + // you. If you create more than one subnet in your VPC, we do not necessarily + // select a different zone for each subnet. To create a subnet in a Local Zone, set + // this value to the Local Zone ID, for example us-west-2-lax-1a. For information + // about the Regions that support Local Zones, see Available Regions // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions) // in the Amazon Elastic Compute Cloud User Guide. To create a subnet in an // Outpost, set this value to the Availability Zone for the Outpost and specify the diff --git a/service/ec2/api_op_CreateSubnetCidrReservation.go b/service/ec2/api_op_CreateSubnetCidrReservation.go deleted file mode 100644 index 6f44675010c..00000000000 --- a/service/ec2/api_op_CreateSubnetCidrReservation.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package ec2 - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a subnet CIDR reservation. For information about subnet CIDR -// reservations, see Subnet CIDR reservations -// (https://docs.aws.amazon.com/vpc/latest/userguide/subnet-cidr-reservation.html) -// in the Amazon Virtual Private Cloud User Guide. -func (c *Client) CreateSubnetCidrReservation(ctx context.Context, params *CreateSubnetCidrReservationInput, optFns ...func(*Options)) (*CreateSubnetCidrReservationOutput, error) { - if params == nil { - params = &CreateSubnetCidrReservationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateSubnetCidrReservation", params, optFns, c.addOperationCreateSubnetCidrReservationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateSubnetCidrReservationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateSubnetCidrReservationInput struct { - - // The IPv4 or IPV6 CIDR range to reserve. - // - // This member is required. - Cidr *string - - // The type of reservation. The following are valid values: - // - // * prefix: The Amazon - // EC2 Prefix Delegation feature assigns the IP addresses to network interfaces - // that are associated with an instance. For information about Prefix Delegation, - // see Prefix Delegation for Amazon EC2 network interfaces - // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation.html) - // in the Amazon Elastic Compute Cloud User Guide. - // - // * explicit: You manually assign - // the IP addresses to resources that reside in your subnet. - // - // This member is required. - ReservationType types.SubnetCidrReservationType - - // The ID of the subnet. - // - // This member is required. - SubnetId *string - - // The description to assign to the subnet CIDR reservation. - Description *string - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have the - // required permissions, the error response is DryRunOperation. Otherwise, it is - // UnauthorizedOperation. - DryRun *bool - - // The tags to assign to the subnet CIDR reservation. - TagSpecifications []types.TagSpecification - - noSmithyDocumentSerde -} - -type CreateSubnetCidrReservationOutput struct { - - // Information about the created subnet CIDR reservation. - SubnetCidrReservation *types.SubnetCidrReservation - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateSubnetCidrReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSubnetCidrReservation{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateSubnetCidrReservation{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpCreateSubnetCidrReservationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSubnetCidrReservation(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opCreateSubnetCidrReservation(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "ec2", - OperationName: "CreateSubnetCidrReservation", - } -} diff --git a/service/ec2/api_op_CreateVolume.go b/service/ec2/api_op_CreateVolume.go index 4fc5110beb6..3bd3290a01f 100644 --- a/service/ec2/api_op_CreateVolume.go +++ b/service/ec2/api_op_CreateVolume.go @@ -4,7 +4,6 @@ package ec2 import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" @@ -15,16 +14,16 @@ import ( // Creates an EBS volume that can be attached to an instance in the same // Availability Zone. You can create a new empty volume or restore a volume from an -// EBS snapshot. Any Amazon Web Services Marketplace product codes from the -// snapshot are propagated to the volume. You can create encrypted volumes. -// Encrypted volumes must be attached to instances that support Amazon EBS -// encryption. Volumes that are created from encrypted snapshots are also -// automatically encrypted. For more information, see Amazon EBS encryption +// EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated +// to the volume. You can create encrypted volumes. Encrypted volumes must be +// attached to instances that support Amazon EBS encryption. Volumes that are +// created from encrypted snapshots are also automatically encrypted. For more +// information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. You can tag your volumes during -// creation. For more information, see Tag your Amazon EC2 resources +// creation. For more information, see Tagging your Amazon EC2 resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the -// Amazon Elastic Compute Cloud User Guide. For more information, see Create an +// Amazon Elastic Compute Cloud User Guide. For more information, see Creating an // Amazon EBS volume // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -50,11 +49,6 @@ type CreateVolumeInput struct { // This member is required. AvailabilityZone *string - // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see Ensure Idempotency - // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). - ClientToken *string - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is @@ -85,21 +79,21 @@ type CreateVolumeInput struct { // // * io2: 100-64,000 IOPS // - // io1 and io2 volumes support up to - // 64,000 IOPS only on Instances built on the Nitro System + // For io1 and io2 volumes, we guarantee + // 64,000 IOPS only for Instances built on the Nitro System // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). - // Other instance families support performance up to 32,000 IOPS. This parameter is - // required for io1 and io2 volumes. The default for gp3 volumes is 3,000 IOPS. + // Other instance families guarantee performance up to 32,000 IOPS. This parameter + // is required for io1 and io2 volumes. The default for gp3 volumes is 3,000 IOPS. // This parameter is not supported for gp2, st1, sc1, or standard volumes. Iops *int32 - // The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS - // encryption. If this parameter is not specified, your KMS key for Amazon EBS is - // used. If KmsKeyId is specified, the encrypted state must be true. You can - // specify the KMS key using any of the following: + // The identifier of the AWS Key Management Service (AWS KMS) customer master key + // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your + // AWS managed CMK for EBS is used. If KmsKeyId is specified, the encrypted state + // must be true. You can specify the CMK using any of the following: // - // * Key ID. For example, - // 1234abcd-12ab-34cd-56ef-1234567890ab. + // * Key ID. For + // example, 1234abcd-12ab-34cd-56ef-1234567890ab. // // * Key alias. For example, // alias/ExampleAlias. @@ -111,10 +105,9 @@ type CreateVolumeInput struct { // Alias ARN. For example, // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // - // Amazon Web Services - // authenticates the KMS key asynchronously. Therefore, if you specify an ID, - // alias, or ARN that is not valid, the action can appear to complete, but - // eventually fails. + // AWS authenticates the + // CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not + // valid, the action can appear to complete, but eventually fails. KmsKeyId *string // Indicates whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, @@ -204,8 +197,9 @@ type CreateVolumeOutput struct { // which the volume accumulates I/O credits for bursting. Iops *int32 - // The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that - // was used to protect the volume encryption key for the volume. + // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) + // customer master key (CMK) that was used to protect the volume encryption key for + // the volume. KmsKeyId *string // Indicates whether Amazon EBS Multi-Attach is enabled. @@ -286,9 +280,6 @@ func (c *Client) addOperationCreateVolumeMiddlewares(stack *middleware.Stack, op if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } - if err = addIdempotencyToken_opCreateVolumeMiddleware(stack, options); err != nil { - return err - } if err = addOpCreateVolumeValidationMiddleware(stack); err != nil { return err } @@ -307,39 +298,6 @@ func (c *Client) addOperationCreateVolumeMiddlewares(stack *middleware.Stack, op return nil } -type idempotencyToken_initializeOpCreateVolume struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateVolume) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateVolume) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateVolumeInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateVolumeInput ") - } - - if input.ClientToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateVolumeMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateVolume{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - func newServiceMetadataMiddleware_opCreateVolume(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/ec2/api_op_CreateVpc.go b/service/ec2/api_op_CreateVpc.go index 9335754fba4..639abf0350f 100644 --- a/service/ec2/api_op_CreateVpc.go +++ b/service/ec2/api_op_CreateVpc.go @@ -14,7 +14,7 @@ import ( // Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can // create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 // netmask (65,536 IPv4 addresses). For more information about how large to make -// your VPC, see Your VPC and subnets +// your VPC, see Your VPC and Subnets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the // Amazon Virtual Private Cloud User Guide. You can optionally request an IPv6 CIDR // block for the VPC. You can request an Amazon-provided IPv6 CIDR block from @@ -23,7 +23,7 @@ import ( // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html)). By // default, each instance you launch in the VPC has the default DHCP options, which // include only a default DNS server that we provide (AmazonProvidedDNS). For more -// information, see DHCP options sets +// information, see DHCP Options Sets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the // Amazon Virtual Private Cloud User Guide. You can specify the instance tenancy // value for the VPC when you create it. You can't change this value for the VPC diff --git a/service/ec2/api_op_CreateVpcPeeringConnection.go b/service/ec2/api_op_CreateVpcPeeringConnection.go index fb38cdf7e82..c8155967f32 100644 --- a/service/ec2/api_op_CreateVpcPeeringConnection.go +++ b/service/ec2/api_op_CreateVpcPeeringConnection.go @@ -13,10 +13,10 @@ import ( // Requests a VPC peering connection between two VPCs: a requester VPC that you own // and an accepter VPC with which to create the connection. The accepter VPC can -// belong to another Amazon Web Services account and can be in a different Region -// to the requester VPC. The requester VPC and accepter VPC cannot have overlapping -// CIDR blocks. Limitations and rules apply to a VPC peering connection. For more -// information, see the limitations +// belong to another AWS account and can be in a different Region to the requester +// VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks. +// Limitations and rules apply to a VPC peering connection. For more information, +// see the limitations // (https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-basics.html#vpc-peering-limitations) // section in the VPC Peering Guide. The owner of the accepter VPC must accept the // peering request to activate the peering connection. The VPC peering connection @@ -46,8 +46,8 @@ type CreateVpcPeeringConnectionInput struct { // UnauthorizedOperation. DryRun *bool - // The Amazon Web Services account ID of the owner of the accepter VPC. Default: - // Your Amazon Web Services account ID + // The AWS account ID of the owner of the accepter VPC. Default: Your AWS account + // ID PeerOwnerId *string // The Region code for the accepter VPC, if the accepter VPC is located in a Region diff --git a/service/ec2/api_op_DeleteInstanceEventWindow.go b/service/ec2/api_op_DeleteInstanceEventWindow.go deleted file mode 100644 index a4fc2aa9782..00000000000 --- a/service/ec2/api_op_DeleteInstanceEventWindow.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package ec2 - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes the specified event window. For more information, see Define event -// windows for scheduled events -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the -// Amazon EC2 User Guide. -func (c *Client) DeleteInstanceEventWindow(ctx context.Context, params *DeleteInstanceEventWindowInput, optFns ...func(*Options)) (*DeleteInstanceEventWindowOutput, error) { - if params == nil { - params = &DeleteInstanceEventWindowInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteInstanceEventWindow", params, optFns, c.addOperationDeleteInstanceEventWindowMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteInstanceEventWindowOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteInstanceEventWindowInput struct { - - // The ID of the event window. - // - // This member is required. - InstanceEventWindowId *string - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have the - // required permissions, the error response is DryRunOperation. Otherwise, it is - // UnauthorizedOperation. - DryRun *bool - - // Specify true to force delete the event window. Use the force delete parameter if - // the event window is currently associated with targets. - ForceDelete *bool - - noSmithyDocumentSerde -} - -type DeleteInstanceEventWindowOutput struct { - - // The state of the event window. - InstanceEventWindowState *types.InstanceEventWindowStateChange - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteInstanceEventWindowValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteInstanceEventWindow(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "ec2", - OperationName: "DeleteInstanceEventWindow", - } -} diff --git a/service/ec2/api_op_DeleteSnapshot.go b/service/ec2/api_op_DeleteSnapshot.go index 111ce40b217..1939ec89fef 100644 --- a/service/ec2/api_op_DeleteSnapshot.go +++ b/service/ec2/api_op_DeleteSnapshot.go @@ -18,7 +18,7 @@ import ( // have access to all the information needed to restore the volume. You cannot // delete a snapshot of the root device of an EBS volume used by a registered AMI. // You must first de-register the AMI before you can delete the snapshot. For more -// information, see Delete an Amazon EBS snapshot +// information, see Deleting an Amazon EBS snapshot // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) DeleteSnapshot(ctx context.Context, params *DeleteSnapshotInput, optFns ...func(*Options)) (*DeleteSnapshotOutput, error) { diff --git a/service/ec2/api_op_DeleteSubnetCidrReservation.go b/service/ec2/api_op_DeleteSubnetCidrReservation.go deleted file mode 100644 index 4b964f2b0a3..00000000000 --- a/service/ec2/api_op_DeleteSubnetCidrReservation.go +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package ec2 - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a subnet CIDR reservation. -func (c *Client) DeleteSubnetCidrReservation(ctx context.Context, params *DeleteSubnetCidrReservationInput, optFns ...func(*Options)) (*DeleteSubnetCidrReservationOutput, error) { - if params == nil { - params = &DeleteSubnetCidrReservationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteSubnetCidrReservation", params, optFns, c.addOperationDeleteSubnetCidrReservationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteSubnetCidrReservationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteSubnetCidrReservationInput struct { - - // The ID of the subnet CIDR reservation. - // - // This member is required. - SubnetCidrReservationId *string - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have the - // required permissions, the error response is DryRunOperation. Otherwise, it is - // UnauthorizedOperation. - DryRun *bool - - noSmithyDocumentSerde -} - -type DeleteSubnetCidrReservationOutput struct { - - // Information about the deleted subnet CIDR reservation. - DeletedSubnetCidrReservation *types.SubnetCidrReservation - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteSubnetCidrReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSubnetCidrReservation{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteSubnetCidrReservation{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteSubnetCidrReservationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSubnetCidrReservation(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteSubnetCidrReservation(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "ec2", - OperationName: "DeleteSubnetCidrReservation", - } -} diff --git a/service/ec2/api_op_DeleteTags.go b/service/ec2/api_op_DeleteTags.go index e087038e6a2..0d7a96264fa 100644 --- a/service/ec2/api_op_DeleteTags.go +++ b/service/ec2/api_op_DeleteTags.go @@ -50,8 +50,7 @@ type DeleteTagsInput struct { // with this key regardless of its value. If you specify a tag key with an empty // string as the tag value, we delete the tag only if its value is an empty string. // If you omit this parameter, we delete all user-defined tags for the specified - // resources. We do not delete Amazon Web Services-generated tags (tags that have - // the aws: prefix). + // resources. We do not delete AWS-generated tags (tags that have the aws: prefix). Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ec2/api_op_DeleteVolume.go b/service/ec2/api_op_DeleteVolume.go index 9c132308aae..a66dbb4be7f 100644 --- a/service/ec2/api_op_DeleteVolume.go +++ b/service/ec2/api_op_DeleteVolume.go @@ -12,7 +12,7 @@ import ( // Deletes the specified EBS volume. The volume must be in the available state (not // attached to an instance). The volume can remain in the deleting state for -// several minutes. For more information, see Delete an Amazon EBS volume +// several minutes. For more information, see Deleting an Amazon EBS volume // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) DeleteVolume(ctx context.Context, params *DeleteVolumeInput, optFns ...func(*Options)) (*DeleteVolumeOutput, error) { diff --git a/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go b/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go index 7eb386691ec..94b4a0fef49 100644 --- a/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go +++ b/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// c Deregisters tag keys to prevent tags that have the specified tag keys from -// being included in scheduled event notifications for resources in the Region. +// Deregisters tag keys to prevent tags that have the specified tag keys from being +// included in scheduled event notifications for resources in the Region. func (c *Client) DeregisterInstanceEventNotificationAttributes(ctx context.Context, params *DeregisterInstanceEventNotificationAttributesInput, optFns ...func(*Options)) (*DeregisterInstanceEventNotificationAttributesOutput, error) { if params == nil { params = &DeregisterInstanceEventNotificationAttributesInput{} diff --git a/service/ec2/api_op_DescribeAddresses.go b/service/ec2/api_op_DescribeAddresses.go index 9b39fe99b51..a273a323e6f 100644 --- a/service/ec2/api_op_DescribeAddresses.go +++ b/service/ec2/api_op_DescribeAddresses.go @@ -64,24 +64,24 @@ type DescribeAddressesInput struct { // network-interface-id - [EC2-VPC] The ID of the network interface that the // address is associated with, if any. // - // * network-interface-owner-id - The Amazon - // Web Services account ID of the owner. + // * network-interface-owner-id - The account + // ID of the owner. // - // * private-ip-address - [EC2-VPC] The - // private IP address associated with the Elastic IP address. + // * private-ip-address - [EC2-VPC] The private IP address + // associated with the Elastic IP address. // - // * public-ip - The - // Elastic IP address, or the carrier IP address. + // * public-ip - The Elastic IP address, + // or the carrier IP address. // - // * tag: - The key/value - // combination of a tag assigned to the resource. Use the tag key in the filter - // name and the tag value as the filter value. For example, to find all resources - // that have a tag with the key Owner and the value TeamA, specify tag:Owner for - // the filter name and TeamA for the filter value. + // * tag: - The key/value combination of a tag assigned + // to the resource. Use the tag key in the filter name and the tag value as the + // filter value. For example, to find all resources that have a tag with the key + // Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for + // the filter value. // - // * tag-key - The key of a tag - // assigned to the resource. Use this filter to find all resources assigned a tag - // with a specific key, regardless of the tag value. + // * tag-key - The key of a tag assigned to the resource. Use + // this filter to find all resources assigned a tag with a specific key, regardless + // of the tag value. Filters []types.Filter // One or more Elastic IP addresses. Default: Describes all your Elastic IP diff --git a/service/ec2/api_op_DescribeCapacityReservations.go b/service/ec2/api_op_DescribeCapacityReservations.go index 8dd2b494cc7..0b0a07903ab 100644 --- a/service/ec2/api_op_DescribeCapacityReservations.go +++ b/service/ec2/api_op_DescribeCapacityReservations.go @@ -13,8 +13,7 @@ import ( ) // Describes one or more of your Capacity Reservations. The results describe only -// the Capacity Reservations in the Amazon Web Services Region that you're -// currently using. +// the Capacity Reservations in the Region that you're currently using. func (c *Client) DescribeCapacityReservations(ctx context.Context, params *DescribeCapacityReservationsInput, optFns ...func(*Options)) (*DescribeCapacityReservationsOutput, error) { if params == nil { params = &DescribeCapacityReservationsInput{} @@ -46,88 +45,87 @@ type DescribeCapacityReservationsInput struct { // * instance-type - The type of instance for which the // Capacity Reservation reserves capacity. // - // * owner-id - The ID of the Amazon Web - // Services account that owns the Capacity Reservation. + // * owner-id - The ID of the account that + // owns the Capacity Reservation. // - // * availability-zone-id - - // The Availability Zone ID of the Capacity Reservation. + // * availability-zone-id - The Availability Zone + // ID of the Capacity Reservation. // - // * instance-platform - The - // type of operating system for which the Capacity Reservation reserves - // capacity. + // * instance-platform - The type of operating + // system for which the Capacity Reservation reserves capacity. // - // * availability-zone - The Availability Zone ID of the Capacity - // Reservation. + // * + // availability-zone - The Availability Zone ID of the Capacity Reservation. + // + // * + // tenancy - Indicates the tenancy of the Capacity Reservation. A Capacity + // Reservation can have one of the following tenancy settings: // - // * tenancy - Indicates the tenancy of the Capacity Reservation. A - // Capacity Reservation can have one of the following tenancy settings: + // * default - The + // Capacity Reservation is created on hardware that is shared with other + // accounts. // - // * default - // - The Capacity Reservation is created on hardware that is shared with other - // Amazon Web Services accounts. + // * dedicated - The Capacity Reservation is created on single-tenant + // hardware that is dedicated to a single account. // - // * dedicated - The Capacity Reservation is created - // on single-tenant hardware that is dedicated to a single Amazon Web Services - // account. + // * outpost-arn - The Amazon + // Resource Name (ARN) of the Outpost on which the Capacity Reservation was + // created. // - // * outpost-arn - The Amazon Resource Name (ARN) of the Outpost on which - // the Capacity Reservation was created. + // * state - The current state of the Capacity Reservation. A Capacity + // Reservation can be in one of the following states: // - // * state - The current state of the - // Capacity Reservation. A Capacity Reservation can be in one of the following - // states: + // * active- The Capacity + // Reservation is active and the capacity is available for your use. // - // * active- The Capacity Reservation is active and the capacity is - // available for your use. + // * expired - + // The Capacity Reservation expired automatically at the date and time specified in + // your request. The reserved capacity is no longer available for your use. // - // * expired - The Capacity Reservation expired - // automatically at the date and time specified in your request. The reserved - // capacity is no longer available for your use. + // * + // cancelled - The Capacity Reservation was cancelled. The reserved capacity is no + // longer available for your use. // - // * cancelled - The Capacity - // Reservation was cancelled. The reserved capacity is no longer available for your - // use. + // * pending - The Capacity Reservation request was + // successful but the capacity provisioning is still pending. // - // * pending - The Capacity Reservation request was successful but the - // capacity provisioning is still pending. + // * failed - The + // Capacity Reservation request has failed. A request might fail due to invalid + // request parameters, capacity constraints, or instance limit constraints. Failed + // requests are retained for 60 minutes. // - // * failed - The Capacity Reservation - // request has failed. A request might fail due to invalid request parameters, - // capacity constraints, or instance limit constraints. Failed requests are - // retained for 60 minutes. + // * start-date - The date and time at which + // the Capacity Reservation was started. // - // * start-date - The date and time at which the Capacity - // Reservation was started. + // * end-date - The date and time at which + // the Capacity Reservation expires. When a Capacity Reservation expires, the + // reserved capacity is released and you can no longer launch instances into it. + // The Capacity Reservation's state changes to expired when it reaches its end date + // and time. // - // * end-date - The date and time at which the Capacity - // Reservation expires. When a Capacity Reservation expires, the reserved capacity - // is released and you can no longer launch instances into it. The Capacity - // Reservation's state changes to expired when it reaches its end date and time. + // * end-date-type - Indicates the way in which the Capacity Reservation + // ends. A Capacity Reservation can have one of the following end types: // // * - // end-date-type - Indicates the way in which the Capacity Reservation ends. A - // Capacity Reservation can have one of the following end types: - // - // * unlimited - The - // Capacity Reservation remains active until you explicitly cancel it. + // unlimited - The Capacity Reservation remains active until you explicitly cancel + // it. // - // * limited - - // The Capacity Reservation expires automatically at a specified date and time. + // * limited - The Capacity Reservation expires automatically at a specified + // date and time. // - // * - // instance-match-criteria - Indicates the type of instance launches that the - // Capacity Reservation accepts. The options include: + // * instance-match-criteria - Indicates the type of instance + // launches that the Capacity Reservation accepts. The options include: // - // * open - The Capacity - // Reservation accepts all instances that have matching attributes (instance type, - // platform, and Availability Zone). Instances that have matching attributes launch - // into the Capacity Reservation automatically without specifying any additional - // parameters. + // * open - + // The Capacity Reservation accepts all instances that have matching attributes + // (instance type, platform, and Availability Zone). Instances that have matching + // attributes launch into the Capacity Reservation automatically without specifying + // any additional parameters. // - // * targeted - The Capacity Reservation only accepts instances that - // have matching attributes (instance type, platform, and Availability Zone), and - // explicitly target the Capacity Reservation. This ensures that only permitted - // instances can use the reserved capacity. + // * targeted - The Capacity Reservation only accepts + // instances that have matching attributes (instance type, platform, and + // Availability Zone), and explicitly target the Capacity Reservation. This ensures + // that only permitted instances can use the reserved capacity. Filters []types.Filter // The maximum number of results to return for the request in a single page. The diff --git a/service/ec2/api_op_DescribeCarrierGateways.go b/service/ec2/api_op_DescribeCarrierGateways.go index f59dba19c98..a934ee7848d 100644 --- a/service/ec2/api_op_DescribeCarrierGateways.go +++ b/service/ec2/api_op_DescribeCarrierGateways.go @@ -47,21 +47,20 @@ type DescribeCarrierGatewaysInput struct { // state - The state of the carrier gateway (pending | failed | available | // deleting | deleted). // - // * owner-id - The Amazon Web Services account ID of the - // owner of the carrier gateway. + // * owner-id - The AWS account ID of the owner of the + // carrier gateway. // - // * tag: - The key/value combination of a tag - // assigned to the resource. Use the tag key in the filter name and the tag value - // as the filter value. For example, to find all resources that have a tag with the - // key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA - // for the filter value. + // * tag: - The key/value combination of a tag assigned to the + // resource. Use the tag key in the filter name and the tag value as the filter + // value. For example, to find all resources that have a tag with the key Owner and + // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter + // value. // - // * tag-key - The key of a tag assigned to the resource. - // Use this filter to find all resources assigned a tag with a specific key, - // regardless of the tag value. + // * tag-key - The key of a tag assigned to the resource. Use this filter + // to find all resources assigned a tag with a specific key, regardless of the tag + // value. // - // * vpc-id - The ID of the VPC associated with the - // carrier gateway. + // * vpc-id - The ID of the VPC associated with the carrier gateway. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeDhcpOptions.go b/service/ec2/api_op_DescribeDhcpOptions.go index 76414644524..544323a1670 100644 --- a/service/ec2/api_op_DescribeDhcpOptions.go +++ b/service/ec2/api_op_DescribeDhcpOptions.go @@ -13,7 +13,7 @@ import ( ) // Describes one or more of your DHCP options sets. For more information, see DHCP -// options sets +// Options Sets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) DescribeDhcpOptions(ctx context.Context, params *DescribeDhcpOptionsInput, optFns ...func(*Options)) (*DescribeDhcpOptionsOutput, error) { @@ -53,18 +53,18 @@ type DescribeDhcpOptionsInput struct { // * value - The value // for one of the options. // - // * owner-id - The ID of the Amazon Web Services account - // that owns the DHCP options set. + // * owner-id - The ID of the AWS account that owns the + // DHCP options set. // - // * tag: - The key/value combination of a tag - // assigned to the resource. Use the tag key in the filter name and the tag value - // as the filter value. For example, to find all resources that have a tag with the - // key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA - // for the filter value. + // * tag: - The key/value combination of a tag assigned to the + // resource. Use the tag key in the filter name and the tag value as the filter + // value. For example, to find all resources that have a tag with the key Owner and + // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter + // value. // - // * tag-key - The key of a tag assigned to the resource. - // Use this filter to find all resources assigned a tag with a specific key, - // regardless of the tag value. + // * tag-key - The key of a tag assigned to the resource. Use this filter + // to find all resources assigned a tag with a specific key, regardless of the tag + // value. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeFastSnapshotRestores.go b/service/ec2/api_op_DescribeFastSnapshotRestores.go index 1355444a565..8bac217f900 100644 --- a/service/ec2/api_op_DescribeFastSnapshotRestores.go +++ b/service/ec2/api_op_DescribeFastSnapshotRestores.go @@ -41,14 +41,14 @@ type DescribeFastSnapshotRestoresInput struct { // * availability-zone: The Availability // Zone of the snapshot. // - // * owner-id: The ID of the Amazon Web Services account - // that enabled fast snapshot restore on the snapshot. + // * owner-id: The ID of the AWS account that enabled fast + // snapshot restore on the snapshot. // - // * snapshot-id: The ID of - // the snapshot. + // * snapshot-id: The ID of the snapshot. // - // * state: The state of fast snapshot restores for the snapshot - // (enabling | optimizing | enabled | disabling | disabled). + // * + // state: The state of fast snapshot restores for the snapshot (enabling | + // optimizing | enabled | disabling | disabled). Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeInstanceEventWindows.go b/service/ec2/api_op_DescribeInstanceEventWindows.go deleted file mode 100644 index 47b1318932f..00000000000 --- a/service/ec2/api_op_DescribeInstanceEventWindows.go +++ /dev/null @@ -1,274 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package ec2 - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Describes the specified event windows or all event windows. If you specify event -// window IDs, the output includes information for only the specified event -// windows. If you specify filters, the output includes information for only those -// event windows that meet the filter criteria. If you do not specify event windows -// IDs or filters, the output includes information for all event windows, which can -// affect performance. We recommend that you use pagination to ensure that the -// operation returns quickly and successfully. For more information, see Define -// event windows for scheduled events -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the -// Amazon EC2 User Guide. -func (c *Client) DescribeInstanceEventWindows(ctx context.Context, params *DescribeInstanceEventWindowsInput, optFns ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error) { - if params == nil { - params = &DescribeInstanceEventWindowsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceEventWindows", params, optFns, c.addOperationDescribeInstanceEventWindowsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DescribeInstanceEventWindowsOutput) - out.ResultMetadata = metadata - return out, nil -} - -// Describe instance event windows by InstanceEventWindow. -type DescribeInstanceEventWindowsInput struct { - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have the - // required permissions, the error response is DryRunOperation. Otherwise, it is - // UnauthorizedOperation. - DryRun *bool - - // One or more filters. - // - // * dedicated-host-id - The event windows associated with - // the specified Dedicated Host ID. - // - // * event-window-name - The event windows - // associated with the specified names. - // - // * instance-id - The event windows - // associated with the specified instance ID. - // - // * instance-tag - The event windows - // associated with the specified tag and value. - // - // * instance-tag-key - The event - // windows associated with the specified tag key, regardless of the value. - // - // * - // instance-tag-value - The event windows associated with the specified tag value, - // regardless of the key. - // - // * tag: - The key/value combination of a tag assigned to - // the event window. Use the tag key in the filter name and the tag value as the - // filter value. For example, to find all resources that have a tag with the key - // Owner and the value CMX, specify tag:Owner for the filter name and CMX for the - // filter value. - // - // * tag-key - The key of a tag assigned to the event window. Use - // this filter to find all event windows that have a tag with a specific key, - // regardless of the tag value. - // - // * tag-value - The value of a tag assigned to the - // event window. Use this filter to find all event windows that have a tag with a - // specific value, regardless of the tag key. - Filters []types.Filter - - // The IDs of the event windows. - InstanceEventWindowIds []string - - // The maximum number of results to return in a single call. To retrieve the - // remaining results, make another call with the returned NextToken value. This - // value can be between 20 and 500. You cannot specify this parameter and the event - // window IDs parameter in the same call. - MaxResults *int32 - - // The token to request the next page of results. - NextToken *string - - noSmithyDocumentSerde -} - -type DescribeInstanceEventWindowsOutput struct { - - // Information about the event windows. - InstanceEventWindows []types.InstanceEventWindow - - // The token to use to retrieve the next page of results. This value is null when - // there are no more results to return. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDescribeInstanceEventWindowsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceEventWindows{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceEventWindows{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceEventWindows(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// DescribeInstanceEventWindowsAPIClient is a client that implements the -// DescribeInstanceEventWindows operation. -type DescribeInstanceEventWindowsAPIClient interface { - DescribeInstanceEventWindows(context.Context, *DescribeInstanceEventWindowsInput, ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error) -} - -var _ DescribeInstanceEventWindowsAPIClient = (*Client)(nil) - -// DescribeInstanceEventWindowsPaginatorOptions is the paginator options for -// DescribeInstanceEventWindows -type DescribeInstanceEventWindowsPaginatorOptions struct { - // The maximum number of results to return in a single call. To retrieve the - // remaining results, make another call with the returned NextToken value. This - // value can be between 20 and 500. You cannot specify this parameter and the event - // window IDs parameter in the same call. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// DescribeInstanceEventWindowsPaginator is a paginator for -// DescribeInstanceEventWindows -type DescribeInstanceEventWindowsPaginator struct { - options DescribeInstanceEventWindowsPaginatorOptions - client DescribeInstanceEventWindowsAPIClient - params *DescribeInstanceEventWindowsInput - nextToken *string - firstPage bool -} - -// NewDescribeInstanceEventWindowsPaginator returns a new -// DescribeInstanceEventWindowsPaginator -func NewDescribeInstanceEventWindowsPaginator(client DescribeInstanceEventWindowsAPIClient, params *DescribeInstanceEventWindowsInput, optFns ...func(*DescribeInstanceEventWindowsPaginatorOptions)) *DescribeInstanceEventWindowsPaginator { - if params == nil { - params = &DescribeInstanceEventWindowsInput{} - } - - options := DescribeInstanceEventWindowsPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &DescribeInstanceEventWindowsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *DescribeInstanceEventWindowsPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next DescribeInstanceEventWindows page. -func (p *DescribeInstanceEventWindowsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.DescribeInstanceEventWindows(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opDescribeInstanceEventWindows(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "ec2", - OperationName: "DescribeInstanceEventWindows", - } -} diff --git a/service/ec2/api_op_DescribeInstances.go b/service/ec2/api_op_DescribeInstances.go index 0f629f83ddc..a1610832618 100644 --- a/service/ec2/api_op_DescribeInstances.go +++ b/service/ec2/api_op_DescribeInstances.go @@ -278,62 +278,61 @@ type DescribeInstancesInput struct { // * outpost-arn - The Amazon Resource Name (ARN) of the Outpost. // // * - // owner-id - The Amazon Web Services account ID of the instance owner. + // owner-id - The account ID of the instance owner. // - // * - // placement-group-name - The name of the placement group for the instance. + // * placement-group-name - The + // name of the placement group for the instance. // - // * - // placement-partition-number - The partition in which the instance is located. + // * placement-partition-number - + // The partition in which the instance is located. // - // * - // platform - The platform. To list only Windows instances, use windows. + // * platform - The platform. To + // list only Windows instances, use windows. // - // * - // private-dns-name - The private IPv4 DNS name of the instance. + // * private-dns-name - The private IPv4 + // DNS name of the instance. // - // * - // private-ip-address - The private IPv4 address of the instance. + // * private-ip-address - The private IPv4 address of + // the instance. // - // * product-code - - // The product code associated with the AMI used to launch the instance. + // * product-code - The product code associated with the AMI used to + // launch the instance. // - // * - // product-code.type - The type of product code (devpay | marketplace). + // * product-code.type - The type of product code (devpay | + // marketplace). // - // * - // ramdisk-id - The RAM disk ID. + // * ramdisk-id - The RAM disk ID. // - // * reason - The reason for the current state of - // the instance (for example, shows "User Initiated [date]" when you stop or - // terminate the instance). Similar to the state-reason-code filter. + // * reason - The reason for the + // current state of the instance (for example, shows "User Initiated [date]" when + // you stop or terminate the instance). Similar to the state-reason-code filter. // // * // requester-id - The ID of the entity that launched the instance on your behalf - // (for example, Amazon Web Services Management Console, Auto Scaling, and so - // on). - // - // * reservation-id - The ID of the instance's reservation. A reservation ID - // is created any time you launch an instance. A reservation ID has a one-to-one - // relationship with an instance launch request, but can be associated with more - // than one instance if you launch multiple instances using the same launch - // request. For example, if you launch one instance, you get one reservation ID. If - // you launch ten instances using the same launch request, you also get one - // reservation ID. - // - // * root-device-name - The device name of the root device volume - // (for example, /dev/sda1). - // - // * root-device-type - The type of the root device - // volume (ebs | instance-store). - // - // * source-dest-check - Indicates whether the - // instance performs source/destination checking. A value of true means that - // checking is enabled, and false means that checking is disabled. The value must - // be false for the instance to perform network address translation (NAT) in your - // VPC. + // (for example, Management Console, Auto Scaling, and so on). + // + // * reservation-id - + // The ID of the instance's reservation. A reservation ID is created any time you + // launch an instance. A reservation ID has a one-to-one relationship with an + // instance launch request, but can be associated with more than one instance if + // you launch multiple instances using the same launch request. For example, if you + // launch one instance, you get one reservation ID. If you launch ten instances + // using the same launch request, you also get one reservation ID. + // + // * + // root-device-name - The device name of the root device volume (for example, + // /dev/sda1). // - // * spot-instance-request-id - The ID of the Spot Instance request. + // * root-device-type - The type of the root device volume (ebs | + // instance-store). + // + // * source-dest-check - Indicates whether the instance performs + // source/destination checking. A value of true means that checking is enabled, and + // false means that checking is disabled. The value must be false for the instance + // to perform network address translation (NAT) in your VPC. + // + // * + // spot-instance-request-id - The ID of the Spot Instance request. // // * // state-reason-code - The reason code for the state change. diff --git a/service/ec2/api_op_DescribeInternetGateways.go b/service/ec2/api_op_DescribeInternetGateways.go index 5309e65a3c3..c59eb895257 100644 --- a/service/ec2/api_op_DescribeInternetGateways.go +++ b/service/ec2/api_op_DescribeInternetGateways.go @@ -48,17 +48,17 @@ type DescribeInternetGatewaysInput struct { // internet-gateway-id - The ID of the Internet gateway. // // * owner-id - The ID of - // the Amazon Web Services account that owns the internet gateway. + // the AWS account that owns the internet gateway. // - // * tag: - The - // key/value combination of a tag assigned to the resource. Use the tag key in the - // filter name and the tag value as the filter value. For example, to find all - // resources that have a tag with the key Owner and the value TeamA, specify - // tag:Owner for the filter name and TeamA for the filter value. + // * tag: - The key/value + // combination of a tag assigned to the resource. Use the tag key in the filter + // name and the tag value as the filter value. For example, to find all resources + // that have a tag with the key Owner and the value TeamA, specify tag:Owner for + // the filter name and TeamA for the filter value. // - // * tag-key - The - // key of a tag assigned to the resource. Use this filter to find all resources - // assigned a tag with a specific key, regardless of the tag value. + // * tag-key - The key of a tag + // assigned to the resource. Use this filter to find all resources assigned a tag + // with a specific key, regardless of the tag value. Filters []types.Filter // One or more internet gateway IDs. Default: Describes all your internet gateways. diff --git a/service/ec2/api_op_DescribeNetworkAcls.go b/service/ec2/api_op_DescribeNetworkAcls.go index b825cc5beeb..a4d7d362e53 100644 --- a/service/ec2/api_op_DescribeNetworkAcls.go +++ b/service/ec2/api_op_DescribeNetworkAcls.go @@ -82,20 +82,20 @@ type DescribeNetworkAclsInput struct { // * network-acl-id - The ID of the network // ACL. // - // * owner-id - The ID of the Amazon Web Services account that owns the - // network ACL. + // * owner-id - The ID of the AWS account that owns the network ACL. // - // * tag: - The key/value combination of a tag assigned to the - // resource. Use the tag key in the filter name and the tag value as the filter - // value. For example, to find all resources that have a tag with the key Owner and - // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter - // value. + // * tag: + // - The key/value combination of a tag assigned to the resource. Use the tag key + // in the filter name and the tag value as the filter value. For example, to find + // all resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. // - // * tag-key - The key of a tag assigned to the resource. Use this filter - // to find all resources assigned a tag with a specific key, regardless of the tag - // value. + // * tag-key - The + // key of a tag assigned to the resource. Use this filter to find all resources + // assigned a tag with a specific key, regardless of the tag value. // - // * vpc-id - The ID of the VPC for the network ACL. + // * vpc-id - The + // ID of the VPC for the network ACL. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeNetworkInterfacePermissions.go b/service/ec2/api_op_DescribeNetworkInterfacePermissions.go index da06300b346..5bc6781ad43 100644 --- a/service/ec2/api_op_DescribeNetworkInterfacePermissions.go +++ b/service/ec2/api_op_DescribeNetworkInterfacePermissions.go @@ -40,14 +40,14 @@ type DescribeNetworkInterfacePermissionsInput struct { // * network-interface-permission.network-interface-id - The ID of the // network interface. // - // * network-interface-permission.aws-account-id - The Amazon - // Web Services account ID. + // * network-interface-permission.aws-account-id - The account + // ID. // - // * network-interface-permission.aws-service - The - // Amazon Web Service. + // * network-interface-permission.aws-service - The Amazon Web Service. // - // * network-interface-permission.permission - The type of - // permission (INSTANCE-ATTACH | EIP-ASSOCIATE). + // * + // network-interface-permission.permission - The type of permission + // (INSTANCE-ATTACH | EIP-ASSOCIATE). Filters []types.Filter // The maximum number of results to return in a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeNetworkInterfaces.go b/service/ec2/api_op_DescribeNetworkInterfaces.go index 59fc1ac9399..189560e0ce8 100644 --- a/service/ec2/api_op_DescribeNetworkInterfaces.go +++ b/service/ec2/api_op_DescribeNetworkInterfaces.go @@ -120,47 +120,47 @@ type DescribeNetworkInterfacesInput struct { // * network-interface-id - The ID of the network interface. // // * - // owner-id - The Amazon Web Services account ID of the network interface owner. + // owner-id - The account ID of the network interface owner. // - // * - // private-ip-address - The private IPv4 address or addresses of the network - // interface. + // * private-ip-address + // - The private IPv4 address or addresses of the network interface. // - // * private-dns-name - The private DNS name of the network interface - // (IPv4). + // * + // private-dns-name - The private DNS name of the network interface (IPv4). // - // * requester-id - The alias or Amazon Web Services account ID of the - // principal or service that created the network interface. + // * + // requester-id - The alias or account ID of the principal or service that created + // the network interface. // - // * requester-managed - - // Indicates whether the network interface is being managed by an Amazon Web - // Service (for example, Amazon Web Services Management Console, Auto Scaling, and - // so on). + // * requester-managed - Indicates whether the network + // interface is being managed by an Amazon Web Service (for example, Management + // Console, Auto Scaling, and so on). // - // * source-dest-check - Indicates whether the network interface performs - // source/destination checking. A value of true means checking is enabled, and - // false means checking is disabled. The value must be false for the network - // interface to perform network address translation (NAT) in your VPC. + // * source-dest-check - Indicates whether the + // network interface performs source/destination checking. A value of true means + // checking is enabled, and false means checking is disabled. The value must be + // false for the network interface to perform network address translation (NAT) in + // your VPC. // - // * status - - // The status of the network interface. If the network interface is not attached to - // an instance, the status is available; if a network interface is attached to an - // instance the status is in-use. + // * status - The status of the network interface. If the network + // interface is not attached to an instance, the status is available; if a network + // interface is attached to an instance the status is in-use. // - // * subnet-id - The ID of the subnet for the - // network interface. + // * subnet-id - The ID + // of the subnet for the network interface. // - // * tag: - The key/value combination of a tag assigned to the - // resource. Use the tag key in the filter name and the tag value as the filter - // value. For example, to find all resources that have a tag with the key Owner and - // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter - // value. + // * tag: - The key/value combination of + // a tag assigned to the resource. Use the tag key in the filter name and the tag + // value as the filter value. For example, to find all resources that have a tag + // with the key Owner and the value TeamA, specify tag:Owner for the filter name + // and TeamA for the filter value. // - // * tag-key - The key of a tag assigned to the resource. Use this filter - // to find all resources assigned a tag with a specific key, regardless of the tag - // value. + // * tag-key - The key of a tag assigned to the + // resource. Use this filter to find all resources assigned a tag with a specific + // key, regardless of the tag value. // - // * vpc-id - The ID of the VPC for the network interface. + // * vpc-id - The ID of the VPC for the network + // interface. Filters []types.Filter // The maximum number of items to return for this request. The request returns a diff --git a/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go b/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go index a966c86e4be..fe3d85179f4 100644 --- a/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go +++ b/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go @@ -13,9 +13,8 @@ import ( ) // Describes a root volume replacement task. For more information, see Replace a -// root volume -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-restoring-volume.html#replace-root) -// in the Amazon Elastic Compute Cloud User Guide. +// root volume (https://docs.aws.amazon.com/) in the Amazon Elastic Compute Cloud +// User Guide. func (c *Client) DescribeReplaceRootVolumeTasks(ctx context.Context, params *DescribeReplaceRootVolumeTasksInput, optFns ...func(*Options)) (*DescribeReplaceRootVolumeTasksOutput, error) { if params == nil { params = &DescribeReplaceRootVolumeTasksInput{} diff --git a/service/ec2/api_op_DescribeRouteTables.go b/service/ec2/api_op_DescribeRouteTables.go index dff2a4300c0..a4ce3536210 100644 --- a/service/ec2/api_op_DescribeRouteTables.go +++ b/service/ec2/api_op_DescribeRouteTables.go @@ -16,7 +16,7 @@ import ( // associated with a route table. If a subnet is not explicitly associated with any // route table, it is implicitly associated with the main route table. This command // does not return the subnet ID for implicit associations. For more information, -// see Route tables +// see Route Tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) DescribeRouteTables(ctx context.Context, params *DescribeRouteTablesInput, optFns ...func(*Options)) (*DescribeRouteTablesOutput, error) { @@ -58,20 +58,20 @@ type DescribeRouteTablesInput struct { // Route tables that do not have an association ID are not returned in the // response. // - // * owner-id - The ID of the Amazon Web Services account that owns the - // route table. - // - // * route-table-id - The ID of the route table. + // * owner-id - The ID of the AWS account that owns the route table. // // * - // route.destination-cidr-block - The IPv4 CIDR range specified in a route in the - // table. + // route-table-id - The ID of the route table. + // + // * route.destination-cidr-block - + // The IPv4 CIDR range specified in a route in the table. // - // * route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in a - // route in the route table. + // * + // route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in a route in + // the route table. // - // * route.destination-prefix-list-id - The ID (prefix) - // of the Amazon Web Service specified in a route in the table. + // * route.destination-prefix-list-id - The ID (prefix) of the + // AWS service specified in a route in the table. // // * // route.egress-only-internet-gateway-id - The ID of an egress-only Internet diff --git a/service/ec2/api_op_DescribeSnapshots.go b/service/ec2/api_op_DescribeSnapshots.go index ed3fa4916b7..b475e7d778c 100644 --- a/service/ec2/api_op_DescribeSnapshots.go +++ b/service/ec2/api_op_DescribeSnapshots.go @@ -19,44 +19,43 @@ import ( // Describes the specified EBS snapshots available to you or all of the EBS // snapshots available to you. The snapshots available to you include public // snapshots, private snapshots that you own, and private snapshots owned by other -// Amazon Web Services accounts for which you have explicit create volume -// permissions. The create volume permissions fall into the following -// categories: +// AWS accounts for which you have explicit create volume permissions. The create +// volume permissions fall into the following categories: // -// * public: The owner of the snapshot granted create volume -// permissions for the snapshot to the all group. All Amazon Web Services accounts -// have create volume permissions for these snapshots. +// * public: The owner of +// the snapshot granted create volume permissions for the snapshot to the all +// group. All AWS accounts have create volume permissions for these snapshots. // -// * explicit: The owner of -// the snapshot granted create volume permissions to a specific Amazon Web Services -// account. +// * +// explicit: The owner of the snapshot granted create volume permissions to a +// specific AWS account. // -// * implicit: An Amazon Web Services account has implicit create volume +// * implicit: An AWS account has implicit create volume // permissions for all snapshots it owns. // // The list of snapshots returned can be -// filtered by specifying snapshot IDs, snapshot owners, or Amazon Web Services -// accounts with create volume permissions. If no options are specified, Amazon EC2 -// returns all snapshots for which you have create volume permissions. If you -// specify one or more snapshot IDs, only snapshots that have the specified IDs are -// returned. If you specify an invalid snapshot ID, an error is returned. If you -// specify a snapshot ID for which you do not have access, it is not included in -// the returned results. If you specify one or more snapshot owners using the -// OwnerIds option, only snapshots from the specified owners and for which you have -// access are returned. The results can include the Amazon Web Services account IDs -// of the specified owners, amazon for snapshots owned by Amazon, or self for -// snapshots that you own. If you specify a list of restorable users, only -// snapshots with create snapshot permissions for those users are returned. You can -// specify Amazon Web Services account IDs (if you own the snapshots), self for -// snapshots for which you own or have explicit permissions, or all for public -// snapshots. If you are describing a long list of snapshots, we recommend that you -// paginate the output to make the list more manageable. The MaxResults parameter -// sets the maximum number of results returned in a single page. If the list of -// results exceeds your MaxResults value, then that number of results is returned -// along with a NextToken value that can be passed to a subsequent -// DescribeSnapshots request to retrieve the remaining results. To get the state of -// fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores. For -// more information about EBS snapshots, see Amazon EBS snapshots +// filtered by specifying snapshot IDs, snapshot owners, or AWS accounts with +// create volume permissions. If no options are specified, Amazon EC2 returns all +// snapshots for which you have create volume permissions. If you specify one or +// more snapshot IDs, only snapshots that have the specified IDs are returned. If +// you specify an invalid snapshot ID, an error is returned. If you specify a +// snapshot ID for which you do not have access, it is not included in the returned +// results. If you specify one or more snapshot owners using the OwnerIds option, +// only snapshots from the specified owners and for which you have access are +// returned. The results can include the AWS account IDs of the specified owners, +// amazon for snapshots owned by Amazon, or self for snapshots that you own. If you +// specify a list of restorable users, only snapshots with create snapshot +// permissions for those users are returned. You can specify AWS account IDs (if +// you own the snapshots), self for snapshots for which you own or have explicit +// permissions, or all for public snapshots. If you are describing a long list of +// snapshots, we recommend that you paginate the output to make the list more +// manageable. The MaxResults parameter sets the maximum number of results returned +// in a single page. If the list of results exceeds your MaxResults value, then +// that number of results is returned along with a NextToken value that can be +// passed to a subsequent DescribeSnapshots request to retrieve the remaining +// results. To get the state of fast snapshot restores for a snapshot, use +// DescribeFastSnapshotRestores. For more information about EBS snapshots, see +// Amazon EBS snapshots // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) in the // Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeSnapshots(ctx context.Context, params *DescribeSnapshotsInput, optFns ...func(*Options)) (*DescribeSnapshotsOutput, error) { @@ -91,39 +90,38 @@ type DescribeSnapshotsInput struct { // // * owner-alias - The // owner alias, from an Amazon-maintained list (amazon). This is not the - // user-configured Amazon Web Services account alias set using the IAM console. We - // recommend that you use the related parameter instead of this filter. + // user-configured AWS account alias set using the IAM console. We recommend that + // you use the related parameter instead of this filter. // - // * owner-id - // - The Amazon Web Services account ID of the owner. We recommend that you use the - // related parameter instead of this filter. + // * owner-id - The AWS + // account ID of the owner. We recommend that you use the related parameter instead + // of this filter. // - // * progress - The progress of the - // snapshot, as a percentage (for example, 80%). + // * progress - The progress of the snapshot, as a percentage (for + // example, 80%). // - // * snapshot-id - The snapshot - // ID. + // * snapshot-id - The snapshot ID. // - // * start-time - The time stamp when the snapshot was initiated. + // * start-time - The time stamp + // when the snapshot was initiated. // - // * status - - // The status of the snapshot (pending | completed | error). + // * status - The status of the snapshot (pending + // | completed | error). // - // * tag: - The - // key/value combination of a tag assigned to the resource. Use the tag key in the - // filter name and the tag value as the filter value. For example, to find all - // resources that have a tag with the key Owner and the value TeamA, specify - // tag:Owner for the filter name and TeamA for the filter value. + // * tag: - The key/value combination of a tag assigned to + // the resource. Use the tag key in the filter name and the tag value as the filter + // value. For example, to find all resources that have a tag with the key Owner and + // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter + // value. // - // * tag-key - The - // key of a tag assigned to the resource. Use this filter to find all resources - // assigned a tag with a specific key, regardless of the tag value. + // * tag-key - The key of a tag assigned to the resource. Use this filter + // to find all resources assigned a tag with a specific key, regardless of the tag + // value. // - // * volume-id - - // The ID of the volume the snapshot is for. + // * volume-id - The ID of the volume the snapshot is for. // - // * volume-size - The size of the - // volume, in GiB. + // * volume-size - + // The size of the volume, in GiB. Filters []types.Filter // The maximum number of snapshot results returned by DescribeSnapshots in @@ -144,11 +142,10 @@ type DescribeSnapshotsInput struct { NextToken *string // Scopes the results to snapshots with the specified owners. You can specify a - // combination of Amazon Web Services account IDs, self, and amazon. + // combination of AWS account IDs, self, and amazon. OwnerIds []string - // The IDs of the Amazon Web Services accounts that can create volumes from the - // snapshot. + // The IDs of the AWS accounts that can create volumes from the snapshot. RestorableByUserIds []string // The snapshot IDs. Default: Describes the snapshots for which you have create diff --git a/service/ec2/api_op_DescribeSubnets.go b/service/ec2/api_op_DescribeSubnets.go index 70ad461001b..14f5398e56a 100644 --- a/service/ec2/api_op_DescribeSubnets.go +++ b/service/ec2/api_op_DescribeSubnets.go @@ -17,7 +17,7 @@ import ( ) // Describes one or more of your subnets. For more information, see Your VPC and -// subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in +// Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in // the Amazon Virtual Private Cloud User Guide. func (c *Client) DescribeSubnets(ctx context.Context, params *DescribeSubnetsInput, optFns ...func(*Options)) (*DescribeSubnetsOutput, error) { if params == nil { @@ -76,29 +76,28 @@ type DescribeSubnetsInput struct { // * outpost-arn - The // Amazon Resource Name (ARN) of the Outpost. // - // * owner-id - The ID of the Amazon - // Web Services account that owns the subnet. + // * owner-id - The ID of the AWS + // account that owns the subnet. // - // * state - The state of the subnet - // (pending | available). + // * state - The state of the subnet (pending | + // available). // - // * subnet-arn - The Amazon Resource Name (ARN) of the - // subnet. + // * subnet-arn - The Amazon Resource Name (ARN) of the subnet. // - // * subnet-id - The ID of the subnet. + // * + // subnet-id - The ID of the subnet. // - // * tag: - The key/value combination - // of a tag assigned to the resource. Use the tag key in the filter name and the - // tag value as the filter value. For example, to find all resources that have a - // tag with the key Owner and the value TeamA, specify tag:Owner for the filter - // name and TeamA for the filter value. + // * tag: - The key/value combination of a tag + // assigned to the resource. Use the tag key in the filter name and the tag value + // as the filter value. For example, to find all resources that have a tag with the + // key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA + // for the filter value. // - // * tag-key - The key of a tag assigned to - // the resource. Use this filter to find all resources assigned a tag with a - // specific key, regardless of the tag value. + // * tag-key - The key of a tag assigned to the resource. + // Use this filter to find all resources assigned a tag with a specific key, + // regardless of the tag value. // - // * vpc-id - The ID of the VPC for the - // subnet. + // * vpc-id - The ID of the VPC for the subnet. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeVolumeStatus.go b/service/ec2/api_op_DescribeVolumeStatus.go index 5e4ee0f61d7..1f4fd395608 100644 --- a/service/ec2/api_op_DescribeVolumeStatus.go +++ b/service/ec2/api_op_DescribeVolumeStatus.go @@ -25,7 +25,7 @@ import ( // checks pass, the overall status of the volume is ok. If the check fails, the // overall status is impaired. If the status is insufficient-data, then the checks // might still be taking place on your volume at the time. We recommend that you -// retry the request. For more information about volume status, see Monitor the +// retry the request. For more information about volume status, see Monitoring the // status of your volumes // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html) // in the Amazon Elastic Compute Cloud User Guide. Events: Reflect the cause of a diff --git a/service/ec2/api_op_DescribeVolumesModifications.go b/service/ec2/api_op_DescribeVolumesModifications.go index afc77da948a..e560869c10d 100644 --- a/service/ec2/api_op_DescribeVolumesModifications.go +++ b/service/ec2/api_op_DescribeVolumesModifications.go @@ -19,8 +19,8 @@ import ( // check the status of a modification to an EBS volume. For information about // CloudWatch Events, see the Amazon CloudWatch Events User Guide // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). For more -// information, see Monitor the progress of volume modifications -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-modifications.html) +// information, see Monitoring volume modifications +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeVolumesModifications(ctx context.Context, params *DescribeVolumesModificationsInput, optFns ...func(*Options)) (*DescribeVolumesModificationsOutput, error) { if params == nil { diff --git a/service/ec2/api_op_DescribeVpcPeeringConnections.go b/service/ec2/api_op_DescribeVpcPeeringConnections.go index 1b436e83092..2dd8ccfbd06 100644 --- a/service/ec2/api_op_DescribeVpcPeeringConnections.go +++ b/service/ec2/api_op_DescribeVpcPeeringConnections.go @@ -47,44 +47,43 @@ type DescribeVpcPeeringConnectionsInput struct { // * accepter-vpc-info.cidr-block - The IPv4 CIDR block of // the accepter VPC. // - // * accepter-vpc-info.owner-id - The ID of the Amazon Web - // Services account that owns the accepter VPC. + // * accepter-vpc-info.owner-id - The AWS account ID of the + // owner of the accepter VPC. // - // * accepter-vpc-info.vpc-id - The - // ID of the accepter VPC. + // * accepter-vpc-info.vpc-id - The ID of the accepter + // VPC. // - // * expiration-time - The expiration date and time for - // the VPC peering connection. + // * expiration-time - The expiration date and time for the VPC peering + // connection. // - // * requester-vpc-info.cidr-block - The IPv4 CIDR - // block of the requester's VPC. + // * requester-vpc-info.cidr-block - The IPv4 CIDR block of the + // requester's VPC. // - // * requester-vpc-info.owner-id - The ID of the - // Amazon Web Services account that owns the requester VPC. + // * requester-vpc-info.owner-id - The AWS account ID of the + // owner of the requester VPC. // - // * - // requester-vpc-info.vpc-id - The ID of the requester VPC. + // * requester-vpc-info.vpc-id - The ID of the + // requester VPC. // - // * status-code - The - // status of the VPC peering connection (pending-acceptance | failed | expired | - // provisioning | active | deleting | deleted | rejected). + // * status-code - The status of the VPC peering connection + // (pending-acceptance | failed | expired | provisioning | active | deleting | + // deleted | rejected). // - // * status-message - A - // message that provides more information about the status of the VPC peering - // connection, if applicable. + // * status-message - A message that provides more + // information about the status of the VPC peering connection, if applicable. // - // * tag: - The key/value combination of a tag assigned - // to the resource. Use the tag key in the filter name and the tag value as the - // filter value. For example, to find all resources that have a tag with the key - // Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for - // the filter value. + // * + // tag: - The key/value combination of a tag assigned to the resource. Use the tag + // key in the filter name and the tag value as the filter value. For example, to + // find all resources that have a tag with the key Owner and the value TeamA, + // specify tag:Owner for the filter name and TeamA for the filter value. // - // * tag-key - The key of a tag assigned to the resource. Use - // this filter to find all resources assigned a tag with a specific key, regardless - // of the tag value. + // * tag-key + // - The key of a tag assigned to the resource. Use this filter to find all + // resources assigned a tag with a specific key, regardless of the tag value. // - // * vpc-peering-connection-id - The ID of the VPC peering - // connection. + // * + // vpc-peering-connection-id - The ID of the VPC peering connection. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeVpcs.go b/service/ec2/api_op_DescribeVpcs.go index 9f177fd106e..5f8fc2704d9 100644 --- a/service/ec2/api_op_DescribeVpcs.go +++ b/service/ec2/api_op_DescribeVpcs.go @@ -75,26 +75,26 @@ type DescribeVpcsInput struct { // * ipv6-cidr-block-association.state - The state // of an IPv6 CIDR block associated with the VPC. // - // * is-default - Indicates whether + // * isDefault - Indicates whether // the VPC is the default VPC. // - // * owner-id - The ID of the Amazon Web Services - // account that owns the VPC. + // * owner-id - The ID of the AWS account that owns + // the VPC. // - // * state - The state of the VPC (pending | - // available). + // * state - The state of the VPC (pending | available). // - // * tag: - The key/value combination of a tag assigned to the - // resource. Use the tag key in the filter name and the tag value as the filter - // value. For example, to find all resources that have a tag with the key Owner and - // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter - // value. + // * tag: - The + // key/value combination of a tag assigned to the resource. Use the tag key in the + // filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. // - // * tag-key - The key of a tag assigned to the resource. Use this filter - // to find all resources assigned a tag with a specific key, regardless of the tag - // value. + // * tag-key - The + // key of a tag assigned to the resource. Use this filter to find all resources + // assigned a tag with a specific key, regardless of the tag value. // - // * vpc-id - The ID of the VPC. + // * vpc-id - The + // ID of the VPC. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DetachVolume.go b/service/ec2/api_op_DetachVolume.go index 997a20e80c9..a222644663d 100644 --- a/service/ec2/api_op_DetachVolume.go +++ b/service/ec2/api_op_DetachVolume.go @@ -19,9 +19,9 @@ import ( // unmount the volume, force detachment, reboot the instance, or all three. If an // EBS volume is the root device of an instance, it can't be detached while the // instance is running. To detach the root volume, stop the instance first. When a -// volume with an Amazon Web Services Marketplace product code is detached from an -// instance, the product code is no longer associated with the instance. For more -// information, see Detach an Amazon EBS volume +// volume with an AWS Marketplace product code is detached from an instance, the +// product code is no longer associated with the instance. For more information, +// see Detaching an Amazon EBS volume // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) DetachVolume(ctx context.Context, params *DetachVolumeInput, optFns ...func(*Options)) (*DetachVolumeOutput, error) { diff --git a/service/ec2/api_op_DisassociateInstanceEventWindow.go b/service/ec2/api_op_DisassociateInstanceEventWindow.go deleted file mode 100644 index 6399d7fbb58..00000000000 --- a/service/ec2/api_op_DisassociateInstanceEventWindow.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package ec2 - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Disassociates one or more targets from an event window. For more information, -// see Define event windows for scheduled events -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the -// Amazon EC2 User Guide. -func (c *Client) DisassociateInstanceEventWindow(ctx context.Context, params *DisassociateInstanceEventWindowInput, optFns ...func(*Options)) (*DisassociateInstanceEventWindowOutput, error) { - if params == nil { - params = &DisassociateInstanceEventWindowInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DisassociateInstanceEventWindow", params, optFns, c.addOperationDisassociateInstanceEventWindowMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DisassociateInstanceEventWindowOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DisassociateInstanceEventWindowInput struct { - - // One or more targets to disassociate from the specified event window. - // - // This member is required. - AssociationTarget *types.InstanceEventWindowDisassociationRequest - - // The ID of the event window. - // - // This member is required. - InstanceEventWindowId *string - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have the - // required permissions, the error response is DryRunOperation. Otherwise, it is - // UnauthorizedOperation. - DryRun *bool - - noSmithyDocumentSerde -} - -type DisassociateInstanceEventWindowOutput struct { - - // Information about the event window. - InstanceEventWindow *types.InstanceEventWindow - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDisassociateInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDisassociateInstanceEventWindowValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateInstanceEventWindow(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDisassociateInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "ec2", - OperationName: "DisassociateInstanceEventWindow", - } -} diff --git a/service/ec2/api_op_DisassociateRouteTable.go b/service/ec2/api_op_DisassociateRouteTable.go index 06739ce34e4..16cd8e751bd 100644 --- a/service/ec2/api_op_DisassociateRouteTable.go +++ b/service/ec2/api_op_DisassociateRouteTable.go @@ -13,7 +13,7 @@ import ( // Disassociates a subnet or gateway from a route table. After you perform this // action, the subnet no longer uses the routes in the route table. Instead, it // uses the routes in the VPC's main route table. For more information about route -// tables, see Route tables +// tables, see Route Tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) DisassociateRouteTable(ctx context.Context, params *DisassociateRouteTableInput, optFns ...func(*Options)) (*DisassociateRouteTableOutput, error) { diff --git a/service/ec2/api_op_EnableEbsEncryptionByDefault.go b/service/ec2/api_op_EnableEbsEncryptionByDefault.go index 0edf76bf52b..4ecbbac2d6e 100644 --- a/service/ec2/api_op_EnableEbsEncryptionByDefault.go +++ b/service/ec2/api_op_EnableEbsEncryptionByDefault.go @@ -12,10 +12,10 @@ import ( // Enables EBS encryption by default for your account in the current Region. After // you enable encryption by default, the EBS volumes that you create are always -// encrypted, either using the default KMS key or the KMS key that you specified -// when you created each volume. For more information, see Amazon EBS encryption +// encrypted, either using the default CMK or the CMK that you specified when you +// created each volume. For more information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the -// Amazon Elastic Compute Cloud User Guide. You can specify the default KMS key for +// Amazon Elastic Compute Cloud User Guide. You can specify the default CMK for // encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId. // Enabling encryption by default has no effect on the encryption status of your // existing volumes. After you enable encryption by default, you can no longer diff --git a/service/ec2/api_op_EnableFastSnapshotRestores.go b/service/ec2/api_op_EnableFastSnapshotRestores.go index b1bd03a7e61..77c8310c527 100644 --- a/service/ec2/api_op_EnableFastSnapshotRestores.go +++ b/service/ec2/api_op_EnableFastSnapshotRestores.go @@ -42,8 +42,7 @@ type EnableFastSnapshotRestoresInput struct { AvailabilityZones []string // The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can - // specify a snapshot that was shared with you from another Amazon Web Services - // account. + // specify a snapshot that was shared with you from another AWS account. // // This member is required. SourceSnapshotIds []string diff --git a/service/ec2/api_op_GetCapacityReservationUsage.go b/service/ec2/api_op_GetCapacityReservationUsage.go index 0b2105abd64..6ae1cb111ad 100644 --- a/service/ec2/api_op_GetCapacityReservationUsage.go +++ b/service/ec2/api_op_GetCapacityReservationUsage.go @@ -13,9 +13,8 @@ import ( // Gets usage information about a Capacity Reservation. If the Capacity Reservation // is shared, it shows usage information for the Capacity Reservation owner and -// each Amazon Web Services account that is currently using the shared capacity. If -// the Capacity Reservation is not shared, it shows only the Capacity Reservation -// owner's usage. +// each account that is currently using the shared capacity. If the Capacity +// Reservation is not shared, it shows only the Capacity Reservation owner's usage. func (c *Client) GetCapacityReservationUsage(ctx context.Context, params *GetCapacityReservationUsageInput, optFns ...func(*Options)) (*GetCapacityReservationUsageOutput, error) { if params == nil { params = &GetCapacityReservationUsageInput{} diff --git a/service/ec2/api_op_GetEbsDefaultKmsKeyId.go b/service/ec2/api_op_GetEbsDefaultKmsKeyId.go index 775ea24ab63..774dae70245 100644 --- a/service/ec2/api_op_GetEbsDefaultKmsKeyId.go +++ b/service/ec2/api_op_GetEbsDefaultKmsKeyId.go @@ -10,10 +10,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the default KMS key for EBS encryption by default for your account in -// this Region. You can change the default KMS key for encryption by default using -// ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId. For more information, see -// Amazon EBS encryption +// Describes the default customer master key (CMK) for EBS encryption by default +// for your account in this Region. You can change the default CMK for encryption +// by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId. For more +// information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. func (c *Client) GetEbsDefaultKmsKeyId(ctx context.Context, params *GetEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*GetEbsDefaultKmsKeyIdOutput, error) { @@ -44,7 +44,7 @@ type GetEbsDefaultKmsKeyIdInput struct { type GetEbsDefaultKmsKeyIdOutput struct { - // The Amazon Resource Name (ARN) of the default KMS key for encryption by default. + // The Amazon Resource Name (ARN) of the default CMK for encryption by default. KmsKeyId *string // Metadata pertaining to the operation's result. diff --git a/service/ec2/api_op_GetSubnetCidrReservations.go b/service/ec2/api_op_GetSubnetCidrReservations.go deleted file mode 100644 index f1da5b1bc32..00000000000 --- a/service/ec2/api_op_GetSubnetCidrReservations.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package ec2 - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Gets information about the subnet CIDR reservations. -func (c *Client) GetSubnetCidrReservations(ctx context.Context, params *GetSubnetCidrReservationsInput, optFns ...func(*Options)) (*GetSubnetCidrReservationsOutput, error) { - if params == nil { - params = &GetSubnetCidrReservationsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetSubnetCidrReservations", params, optFns, c.addOperationGetSubnetCidrReservationsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetSubnetCidrReservationsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetSubnetCidrReservationsInput struct { - - // The ID of the subnet. - // - // This member is required. - SubnetId *string - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have the - // required permissions, the error response is DryRunOperation. Otherwise, it is - // UnauthorizedOperation. - DryRun *bool - - // One or more filters. - // - // * reservationType - The type of reservation (prefix | - // explicit). - // - // * subnet-id - The ID of the subnet. - // - // * tag: - The key/value - // combination of a tag assigned to the resource. Use the tag key in the filter - // name and the tag value as the filter value. For example, to find all resources - // that have a tag with the key Owner and the value TeamA, specify tag:Owner for - // the filter name and TeamA for the filter value. - // - // * tag-key - The key of a tag - // assigned to the resource. Use this filter to find all resources assigned a tag - // with a specific key, regardless of the tag value. - Filters []types.Filter - - // The maximum number of results to return with a single call. To retrieve the - // remaining results, make another call with the returned nextToken value. - MaxResults *int32 - - // The token for the next page of results. - NextToken *string - - noSmithyDocumentSerde -} - -type GetSubnetCidrReservationsOutput struct { - - // The token to use to retrieve the next page of results. This value is null when - // there are no more results to return. - NextToken *string - - // Information about the IPv4 subnet CIDR reservations. - SubnetIpv4CidrReservations []types.SubnetCidrReservation - - // Information about the IPv6 subnet CIDR reservations. - SubnetIpv6CidrReservations []types.SubnetCidrReservation - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetSubnetCidrReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsEc2query_serializeOpGetSubnetCidrReservations{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetSubnetCidrReservations{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetSubnetCidrReservationsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSubnetCidrReservations(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetSubnetCidrReservations(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "ec2", - OperationName: "GetSubnetCidrReservations", - } -} diff --git a/service/ec2/api_op_ModifyDefaultCreditSpecification.go b/service/ec2/api_op_ModifyDefaultCreditSpecification.go index aafc7d5ef83..b44eae51efa 100644 --- a/service/ec2/api_op_ModifyDefaultCreditSpecification.go +++ b/service/ec2/api_op_ModifyDefaultCreditSpecification.go @@ -12,16 +12,16 @@ import ( ) // Modifies the default credit option for CPU usage of burstable performance -// instances. The default credit option is set at the account level per Amazon Web -// Services Region, and is specified per instance family. All new burstable -// performance instances in the account launch using the default credit option. -// ModifyDefaultCreditSpecification is an asynchronous operation, which works at an -// Amazon Web Services Region level and modifies the credit option for each -// Availability Zone. All zones in a Region are updated within five minutes. But if -// instances are launched during this operation, they might not get the new credit -// option until the zone is updated. To verify whether the update has occurred, you -// can call GetDefaultCreditSpecification and check DefaultCreditSpecification for -// updates. For more information, see Burstable performance instances +// instances. The default credit option is set at the account level per Region, and +// is specified per instance family. All new burstable performance instances in the +// account launch using the default credit option. ModifyDefaultCreditSpecification +// is an asynchronous operation, which works at an Region level and modifies the +// credit option for each Availability Zone. All zones in a Region are updated +// within five minutes. But if instances are launched during this operation, they +// might not get the new credit option until the zone is updated. To verify whether +// the update has occurred, you can call GetDefaultCreditSpecification and check +// DefaultCreditSpecification for updates. For more information, see Burstable +// performance instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) // in the Amazon EC2 User Guide. func (c *Client) ModifyDefaultCreditSpecification(ctx context.Context, params *ModifyDefaultCreditSpecificationInput, optFns ...func(*Options)) (*ModifyDefaultCreditSpecificationOutput, error) { diff --git a/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go b/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go index c740a110d53..557e17b666a 100644 --- a/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go +++ b/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go @@ -10,14 +10,13 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Changes the default KMS key for EBS encryption by default for your account in -// this Region. Amazon Web Services creates a unique Amazon Web Services managed -// KMS key in each Region for use with encryption by default. If you change the -// default KMS key to a symmetric customer managed KMS key, it is used instead of -// the Amazon Web Services managed KMS key. To reset the default KMS key to the -// Amazon Web Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon -// EBS does not support asymmetric KMS keys. If you delete or disable the customer -// managed KMS key that you specified for use with encryption by default, your +// Changes the default customer master key (CMK) for EBS encryption by default for +// your account in this Region. AWS creates a unique AWS managed CMK in each Region +// for use with encryption by default. If you change the default CMK to a symmetric +// customer managed CMK, it is used instead of the AWS managed CMK. To reset the +// default CMK to the AWS managed CMK for EBS, use ResetEbsDefaultKmsKeyId. Amazon +// EBS does not support asymmetric CMKs. If you delete or disable the customer +// managed CMK that you specified for use with encryption by default, your // instances will fail to launch. For more information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. @@ -38,13 +37,13 @@ func (c *Client) ModifyEbsDefaultKmsKeyId(ctx context.Context, params *ModifyEbs type ModifyEbsDefaultKmsKeyIdInput struct { - // The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS - // encryption. If this parameter is not specified, your KMS key for Amazon EBS is - // used. If KmsKeyId is specified, the encrypted state must be true. You can - // specify the KMS key using any of the following: + // The identifier of the AWS Key Management Service (AWS KMS) customer master key + // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your + // AWS managed CMK for EBS is used. If KmsKeyId is specified, the encrypted state + // must be true. You can specify the CMK using any of the following: // - // * Key ID. For example, - // 1234abcd-12ab-34cd-56ef-1234567890ab. + // * Key ID. For + // example, 1234abcd-12ab-34cd-56ef-1234567890ab. // // * Key alias. For example, // alias/ExampleAlias. @@ -56,10 +55,10 @@ type ModifyEbsDefaultKmsKeyIdInput struct { // Alias ARN. For example, // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // - // Amazon Web Services - // authenticates the KMS key asynchronously. Therefore, if you specify an ID, - // alias, or ARN that is not valid, the action can appear to complete, but - // eventually fails. Amazon EBS does not support asymmetric KMS keys. + // AWS authenticates the + // CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not + // valid, the action can appear to complete, but eventually fails. Amazon EBS does + // not support asymmetric CMKs. // // This member is required. KmsKeyId *string @@ -75,7 +74,7 @@ type ModifyEbsDefaultKmsKeyIdInput struct { type ModifyEbsDefaultKmsKeyIdOutput struct { - // The Amazon Resource Name (ARN) of the default KMS key for encryption by default. + // The Amazon Resource Name (ARN) of the default CMK for encryption by default. KmsKeyId *string // Metadata pertaining to the operation's result. diff --git a/service/ec2/api_op_ModifyInstanceEventWindow.go b/service/ec2/api_op_ModifyInstanceEventWindow.go deleted file mode 100644 index 9e55ec8aa61..00000000000 --- a/service/ec2/api_op_ModifyInstanceEventWindow.go +++ /dev/null @@ -1,166 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package ec2 - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Modifies the specified event window. You can define either a set of time ranges -// or a cron expression when modifying the event window, but not both. To modify -// the targets associated with the event window, use the -// AssociateInstanceEventWindow and DisassociateInstanceEventWindow API. If Amazon -// Web Services has already scheduled an event, modifying an event window won't -// change the time of the scheduled event. For more information, see Define event -// windows for scheduled events -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the -// Amazon EC2 User Guide. -func (c *Client) ModifyInstanceEventWindow(ctx context.Context, params *ModifyInstanceEventWindowInput, optFns ...func(*Options)) (*ModifyInstanceEventWindowOutput, error) { - if params == nil { - params = &ModifyInstanceEventWindowInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceEventWindow", params, optFns, c.addOperationModifyInstanceEventWindowMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ModifyInstanceEventWindowOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ModifyInstanceEventWindowInput struct { - - // The ID of the event window. - // - // This member is required. - InstanceEventWindowId *string - - // The cron expression of the event window, for example, * 0-4,20-23 * * 1,5. - // Constraints: - // - // * Only hour and day of the week values are supported. - // - // * For day - // of the week values, you can specify either integers 0 through 6, or alternative - // single values SUN through SAT. - // - // * The minute, month, and year must be specified - // by *. - // - // * The hour value must be one or a multiple range, for example, 0-4 or - // 0-4,20-23. - // - // * Each hour range must be >= 2 hours, for example, 0-2 or 20-23. - // - // * - // The event window must be >= 4 hours. The combined total time ranges in the event - // window must be >= 4 hours. - // - // For more information about cron expressions, see - // cron (https://en.wikipedia.org/wiki/Cron) on the Wikipedia website. - CronExpression *string - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have the - // required permissions, the error response is DryRunOperation. Otherwise, it is - // UnauthorizedOperation. - DryRun *bool - - // The name of the event window. - Name *string - - // The time ranges of the event window. - TimeRanges []types.InstanceEventWindowTimeRangeRequest - - noSmithyDocumentSerde -} - -type ModifyInstanceEventWindowOutput struct { - - // Information about the event window. - InstanceEventWindow *types.InstanceEventWindow - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationModifyInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceEventWindow{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpModifyInstanceEventWindowValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceEventWindow(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opModifyInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "ec2", - OperationName: "ModifyInstanceEventWindow", - } -} diff --git a/service/ec2/api_op_ModifySnapshotAttribute.go b/service/ec2/api_op_ModifySnapshotAttribute.go index 990a359d061..67ca60d5877 100644 --- a/service/ec2/api_op_ModifySnapshotAttribute.go +++ b/service/ec2/api_op_ModifySnapshotAttribute.go @@ -12,14 +12,14 @@ import ( ) // Adds or removes permission settings for the specified snapshot. You may add or -// remove specified Amazon Web Services account IDs from a snapshot's list of -// create volume permissions, but you cannot do both in a single operation. If you -// need to both add and remove account IDs for a snapshot, you must use multiple -// operations. You can make up to 500 modifications to a snapshot in a single -// operation. Encrypted snapshots and snapshots with Amazon Web Services -// Marketplace product codes cannot be made public. Snapshots encrypted with your -// default KMS key cannot be shared with other accounts. For more information about -// modifying snapshot permissions, see Share a snapshot +// remove specified AWS account IDs from a snapshot's list of create volume +// permissions, but you cannot do both in a single operation. If you need to both +// add and remove account IDs for a snapshot, you must use multiple operations. You +// can make up to 500 modifications to a snapshot in a single operation. Encrypted +// snapshots and snapshots with AWS Marketplace product codes cannot be made +// public. Snapshots encrypted with your default CMK cannot be shared with other +// accounts. For more information about modifying snapshot permissions, see Sharing +// snapshots // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) ModifySnapshotAttribute(ctx context.Context, params *ModifySnapshotAttributeInput, optFns ...func(*Options)) (*ModifySnapshotAttributeOutput, error) { diff --git a/service/ec2/api_op_ModifyVolume.go b/service/ec2/api_op_ModifyVolume.go index 6dc54ef270b..a1d570cdb7c 100644 --- a/service/ec2/api_op_ModifyVolume.go +++ b/service/ec2/api_op_ModifyVolume.go @@ -15,28 +15,36 @@ import ( // size, volume type, and IOPS capacity. If your EBS volume is attached to a // current-generation EC2 instance type, you might be able to apply these changes // without stopping the instance or detaching the volume from it. For more -// information about modifying EBS volumes, see Amazon EBS Elastic Volumes -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modify-volume.html) -// (Linux instances) or Amazon EBS Elastic Volumes -// (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-modify-volume.html) -// (Windows instances). When you complete a resize operation on your volume, you -// need to extend the volume's file-system size to take advantage of the new -// storage capacity. For more information, see Extend a Linux file system -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux) -// or Extend a Windows file system +// information about modifying an EBS volume running Linux, see Modifying the size, +// IOPS, or type of an EBS volume on Linux +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). +// For more information about modifying an EBS volume running Windows, see +// Modifying the size, IOPS, or type of an EBS volume on Windows +// (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html). +// When you complete a resize operation on your volume, you need to extend the +// volume's file-system size to take advantage of the new storage capacity. For +// information about extending a Linux file system, see Extending a Linux file +// system +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux). +// For information about extending a Windows file system, see Extending a Windows +// file system // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows). // You can use CloudWatch Events to check the status of a modification to an EBS // volume. For information about CloudWatch Events, see the Amazon CloudWatch // Events User Guide (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). // You can also track the status of a modification using // DescribeVolumesModifications. For information about tracking status changes -// using either method, see Monitor the progress of volume modifications -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-modifications.html). +// using either method, see Monitoring volume modifications +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods). // With previous-generation instance types, resizing an EBS volume might require -// detaching and reattaching the volume or stopping and restarting the instance. If -// you reach the maximum volume modification rate per volume limit, you must wait -// at least six hours before applying further modifications to the affected EBS -// volume. +// detaching and reattaching the volume or stopping and restarting the instance. +// For more information, see Amazon EBS Elastic Volumes +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modify-volume.html) +// (Linux) or Amazon EBS Elastic Volumes +// (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-modify-volume.html) +// (Windows). If you reach the maximum volume modification rate per volume limit, +// you will need to wait at least six hours before applying further modifications +// to the affected EBS volume. func (c *Client) ModifyVolume(ctx context.Context, params *ModifyVolumeInput, optFns ...func(*Options)) (*ModifyVolumeOutput, error) { if params == nil { params = &ModifyVolumeInput{} @@ -76,8 +84,8 @@ type ModifyVolumeInput struct { // * io2: 100-64,000 IOPS // // Default: - // The existing value is retained if you keep the same volume type. If you change - // the volume type to io1, io2, or gp3, the default is 3,000. + // If no IOPS value is specified, the existing value is retained, unless a volume + // type is modified that supports different values. Iops *int32 // Specifies whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, @@ -102,20 +110,21 @@ type ModifyVolumeInput struct { // // * standard: 1-1,024 // - // Default: The - // existing size is retained. + // Default: If + // no size is specified, the existing size is retained. Size *int32 // The target throughput of the volume, in MiB/s. This parameter is valid only for - // gp3 volumes. The maximum value is 1,000. Default: The existing value is retained - // if the source and target volume type is gp3. Otherwise, the default value is - // 125. Valid Range: Minimum value of 125. Maximum value of 1000. + // gp3 volumes. The maximum value is 1,000. Default: If no throughput value is + // specified, the existing value is retained. Valid Range: Minimum value of 125. + // Maximum value of 1000. Throughput *int32 // The target EBS volume type of the volume. For more information, see Amazon EBS // volume types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the - // Amazon Elastic Compute Cloud User Guide. Default: The existing type is retained. + // Amazon Elastic Compute Cloud User Guide. Default: If no type is specified, the + // existing type is retained. VolumeType types.VolumeType noSmithyDocumentSerde diff --git a/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go b/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go index 65977efb6a6..eef8ed39765 100644 --- a/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go +++ b/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go @@ -26,16 +26,15 @@ import ( // ability to resolve public DNS hostnames to private IP addresses when queried // from instances in the peer VPC. // -// If the peered VPCs are in the same Amazon Web -// Services account, you can enable DNS resolution for queries from the local VPC. -// This ensures that queries from the local VPC resolve to private IP addresses in -// the peer VPC. This option is not available if the peered VPCs are in different -// different Amazon Web Services accounts or different Regions. For peered VPCs in -// different Amazon Web Services accounts, each Amazon Web Services account owner -// must initiate a separate request to modify the peering connection options. For -// inter-region peering connections, you must use the Region for the requester VPC -// to modify the requester VPC peering options and the Region for the accepter VPC -// to modify the accepter VPC peering options. To verify which VPCs are the +// If the peered VPCs are in the same AWS account, +// you can enable DNS resolution for queries from the local VPC. This ensures that +// queries from the local VPC resolve to private IP addresses in the peer VPC. This +// option is not available if the peered VPCs are in different AWS accounts or +// different Regions. For peered VPCs in different AWS accounts, each AWS account +// owner must initiate a separate request to modify the peering connection options. +// For inter-region peering connections, you must use the Region for the requester +// VPC to modify the requester VPC peering options and the Region for the accepter +// VPC to modify the accepter VPC peering options. To verify which VPCs are the // accepter and the requester for a VPC peering connection, use the // DescribeVpcPeeringConnections command. func (c *Client) ModifyVpcPeeringConnectionOptions(ctx context.Context, params *ModifyVpcPeeringConnectionOptionsInput, optFns ...func(*Options)) (*ModifyVpcPeeringConnectionOptionsOutput, error) { diff --git a/service/ec2/api_op_ReleaseAddress.go b/service/ec2/api_op_ReleaseAddress.go index 4dab4c416e2..bd1b1e60b28 100644 --- a/service/ec2/api_op_ReleaseAddress.go +++ b/service/ec2/api_op_ReleaseAddress.go @@ -19,9 +19,9 @@ import ( // address, it is released to the IP address pool. Be sure to update your DNS // records and any servers or devices that communicate with the address. If you // attempt to release an Elastic IP address that you already released, you'll get -// an AuthFailure error if the address is already allocated to another Amazon Web -// Services account. [EC2-VPC] After you release an Elastic IP address for use in a -// VPC, you might be able to recover it. For more information, see AllocateAddress. +// an AuthFailure error if the address is already allocated to another account. +// [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be +// able to recover it. For more information, see AllocateAddress. func (c *Client) ReleaseAddress(ctx context.Context, params *ReleaseAddressInput, optFns ...func(*Options)) (*ReleaseAddressOutput, error) { if params == nil { params = &ReleaseAddressInput{} diff --git a/service/ec2/api_op_ReplaceRoute.go b/service/ec2/api_op_ReplaceRoute.go index b79dba3eed3..6e80292beef 100644 --- a/service/ec2/api_op_ReplaceRoute.go +++ b/service/ec2/api_op_ReplaceRoute.go @@ -13,7 +13,7 @@ import ( // Replaces an existing route within a route table in a VPC. You must provide only // one of the following: internet gateway, virtual private gateway, NAT instance, // NAT gateway, VPC peering connection, network interface, egress-only internet -// gateway, or transit gateway. For more information, see Route tables +// gateway, or transit gateway. For more information, see Route Tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) ReplaceRoute(ctx context.Context, params *ReplaceRouteInput, optFns ...func(*Options)) (*ReplaceRouteOutput, error) { diff --git a/service/ec2/api_op_ReplaceRouteTableAssociation.go b/service/ec2/api_op_ReplaceRouteTableAssociation.go index 6cd30dc454f..1c43622a356 100644 --- a/service/ec2/api_op_ReplaceRouteTableAssociation.go +++ b/service/ec2/api_op_ReplaceRouteTableAssociation.go @@ -14,7 +14,7 @@ import ( // Changes the route table associated with a given subnet, internet gateway, or // virtual private gateway in a VPC. After the operation completes, the subnet or // gateway uses the routes in the new route table. For more information about route -// tables, see Route tables +// tables, see Route Tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. You can also use this operation to // change which table is the main route table in the VPC. Specify the main route diff --git a/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go b/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go index 7880617b03e..0f1665d8ce2 100644 --- a/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go +++ b/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go @@ -10,11 +10,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Resets the default KMS key for EBS encryption for your account in this Region to -// the Amazon Web Services managed KMS key for EBS. After resetting the default KMS -// key to the Amazon Web Services managed KMS key, you can continue to encrypt by a -// customer managed KMS key by specifying it when you create the volume. For more -// information, see Amazon EBS encryption +// Resets the default customer master key (CMK) for EBS encryption for your account +// in this Region to the AWS managed CMK for EBS. After resetting the default CMK +// to the AWS managed CMK, you can continue to encrypt by a customer managed CMK by +// specifying it when you create the volume. For more information, see Amazon EBS +// encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. func (c *Client) ResetEbsDefaultKmsKeyId(ctx context.Context, params *ResetEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*ResetEbsDefaultKmsKeyIdOutput, error) { @@ -45,8 +45,7 @@ type ResetEbsDefaultKmsKeyIdInput struct { type ResetEbsDefaultKmsKeyIdOutput struct { - // The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by - // default. + // The Amazon Resource Name (ARN) of the default CMK for EBS encryption by default. KmsKeyId *string // Metadata pertaining to the operation's result. diff --git a/service/ec2/api_op_ResetSnapshotAttribute.go b/service/ec2/api_op_ResetSnapshotAttribute.go index f5fd73e08b0..5b9592e2b4f 100644 --- a/service/ec2/api_op_ResetSnapshotAttribute.go +++ b/service/ec2/api_op_ResetSnapshotAttribute.go @@ -12,7 +12,7 @@ import ( ) // Resets permission settings for the specified snapshot. For more information -// about modifying snapshot permissions, see Share a snapshot +// about modifying snapshot permissions, see Sharing snapshots // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) ResetSnapshotAttribute(ctx context.Context, params *ResetSnapshotAttributeInput, optFns ...func(*Options)) (*ResetSnapshotAttributeOutput, error) { diff --git a/service/ec2/api_op_RunInstances.go b/service/ec2/api_op_RunInstances.go index a254d8bcaee..9fb9d58585e 100644 --- a/service/ec2/api_op_RunInstances.go +++ b/service/ec2/api_op_RunInstances.go @@ -337,11 +337,11 @@ type RunInstancesOutput struct { // The instances. Instances []types.Instance - // The ID of the Amazon Web Services account that owns the reservation. + // The ID of the account that owns the reservation. OwnerId *string // The ID of the requester that launched the instances on your behalf (for example, - // Amazon Web Services Management Console or Auto Scaling). + // Management Console or Auto Scaling). RequesterId *string // The ID of the reservation. diff --git a/service/ec2/api_op_StartNetworkInsightsAnalysis.go b/service/ec2/api_op_StartNetworkInsightsAnalysis.go index 0c5e2466044..3e2ca719262 100644 --- a/service/ec2/api_op_StartNetworkInsightsAnalysis.go +++ b/service/ec2/api_op_StartNetworkInsightsAnalysis.go @@ -32,7 +32,7 @@ func (c *Client) StartNetworkInsightsAnalysis(ctx context.Context, params *Start type StartNetworkInsightsAnalysisInput struct { // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to ensure idempotency + // the request. For more information, see How to Ensure Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). // // This member is required. diff --git a/service/ec2/api_op_UnassignIpv6Addresses.go b/service/ec2/api_op_UnassignIpv6Addresses.go index cf881109c3c..d13f1400007 100644 --- a/service/ec2/api_op_UnassignIpv6Addresses.go +++ b/service/ec2/api_op_UnassignIpv6Addresses.go @@ -10,8 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a -// network interface. +// Unassigns one or more IPv6 addresses from a network interface. func (c *Client) UnassignIpv6Addresses(ctx context.Context, params *UnassignIpv6AddressesInput, optFns ...func(*Options)) (*UnassignIpv6AddressesOutput, error) { if params == nil { params = &UnassignIpv6AddressesInput{} @@ -29,17 +28,15 @@ func (c *Client) UnassignIpv6Addresses(ctx context.Context, params *UnassignIpv6 type UnassignIpv6AddressesInput struct { - // The ID of the network interface. + // The IPv6 addresses to unassign from the network interface. // // This member is required. - NetworkInterfaceId *string - - // The IPv6 addresses to unassign from the network interface. Ipv6Addresses []string - // One or moreIPv6 Prefix Delegation prefixes to unassign from the network - // interface. - Ipv6Prefixes []string + // The ID of the network interface. + // + // This member is required. + NetworkInterfaceId *string noSmithyDocumentSerde } @@ -52,10 +49,6 @@ type UnassignIpv6AddressesOutput struct { // The IPv6 addresses that have been unassigned from the network interface. UnassignedIpv6Addresses []string - // The IPv4 Prefix Delegation prefixes that have been unassigned from the network - // interface. - UnassignedIpv6Prefixes []string - // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_UnassignPrivateIpAddresses.go b/service/ec2/api_op_UnassignPrivateIpAddresses.go index 7d77ed6e596..76af4cb8a22 100644 --- a/service/ec2/api_op_UnassignPrivateIpAddresses.go +++ b/service/ec2/api_op_UnassignPrivateIpAddresses.go @@ -10,8 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation -// prefixes from a network interface. +// Unassigns one or more secondary private IP addresses from a network interface. func (c *Client) UnassignPrivateIpAddresses(ctx context.Context, params *UnassignPrivateIpAddressesInput, optFns ...func(*Options)) (*UnassignPrivateIpAddressesOutput, error) { if params == nil { params = &UnassignPrivateIpAddressesInput{} @@ -35,11 +34,10 @@ type UnassignPrivateIpAddressesInput struct { // This member is required. NetworkInterfaceId *string - // The IPv4 Prefix Delegation prefixes to unassign from the network interface. - Ipv4Prefixes []string - // The secondary private IP addresses to unassign from the network interface. You // can specify this option multiple times to unassign more than one IP address. + // + // This member is required. PrivateIpAddresses []string noSmithyDocumentSerde diff --git a/service/ec2/deserializers.go b/service/ec2/deserializers.go index 00ba9893783..ff6696e17ed 100644 --- a/service/ec2/deserializers.go +++ b/service/ec2/deserializers.go @@ -1548,97 +1548,6 @@ func awsEc2query_deserializeOpErrorAssociateIamInstanceProfile(response *smithyh } } -type awsEc2query_deserializeOpAssociateInstanceEventWindow struct { -} - -func (*awsEc2query_deserializeOpAssociateInstanceEventWindow) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpAssociateInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorAssociateInstanceEventWindow(response, &metadata) - } - output := &AssociateInstanceEventWindowOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentAssociateInstanceEventWindowOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorAssociateInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsEc2query_deserializeOpAssociateRouteTable struct { } @@ -5210,97 +5119,6 @@ func awsEc2query_deserializeOpErrorCreateImage(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpCreateInstanceEventWindow struct { -} - -func (*awsEc2query_deserializeOpCreateInstanceEventWindow) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpCreateInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateInstanceEventWindow(response, &metadata) - } - output := &CreateInstanceEventWindowOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateInstanceEventWindowOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorCreateInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsEc2query_deserializeOpCreateInstanceExportTask struct { } @@ -7644,14 +7462,14 @@ func awsEc2query_deserializeOpErrorCreateSubnet(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpCreateSubnetCidrReservation struct { +type awsEc2query_deserializeOpCreateTags struct { } -func (*awsEc2query_deserializeOpCreateSubnetCidrReservation) ID() string { +func (*awsEc2query_deserializeOpCreateTags) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSubnetCidrReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7665,44 +7483,21 @@ func (m *awsEc2query_deserializeOpCreateSubnetCidrReservation) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTags(response, &metadata) } - output := &CreateSubnetCidrReservationOutput{} + output := &CreateTagsOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSubnetCidrReservationOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7735,14 +7530,14 @@ func awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response *smithyh } } -type awsEc2query_deserializeOpCreateTags struct { +type awsEc2query_deserializeOpCreateTrafficMirrorFilter struct { } -func (*awsEc2query_deserializeOpCreateTags) ID() string { +func (*awsEc2query_deserializeOpCreateTrafficMirrorFilter) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7756,21 +7551,44 @@ func (m *awsEc2query_deserializeOpCreateTags) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTags(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response, &metadata) } - output := &CreateTagsOutput{} + output := &CreateTrafficMirrorFilterOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7803,14 +7621,14 @@ func awsEc2query_deserializeOpErrorCreateTags(response *smithyhttp.Response, met } } -type awsEc2query_deserializeOpCreateTrafficMirrorFilter struct { +type awsEc2query_deserializeOpCreateTrafficMirrorFilterRule struct { } -func (*awsEc2query_deserializeOpCreateTrafficMirrorFilter) ID() string { +func (*awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7824,9 +7642,9 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response, &metadata) } - output := &CreateTrafficMirrorFilterOutput{} + output := &CreateTrafficMirrorFilterRuleOutput{} out.Result = output var buff [1024]byte @@ -7847,7 +7665,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterRuleOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7861,7 +7679,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7894,14 +7712,14 @@ func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response *smithyhtt } } -type awsEc2query_deserializeOpCreateTrafficMirrorFilterRule struct { +type awsEc2query_deserializeOpCreateTrafficMirrorSession struct { } -func (*awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_deserializeOpCreateTrafficMirrorSession) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7915,9 +7733,9 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response, &metadata) } - output := &CreateTrafficMirrorFilterRuleOutput{} + output := &CreateTrafficMirrorSessionOutput{} out.Result = output var buff [1024]byte @@ -7938,7 +7756,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterRuleOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorSessionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7952,98 +7770,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpCreateTrafficMirrorSession struct { -} - -func (*awsEc2query_deserializeOpCreateTrafficMirrorSession) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response, &metadata) - } - output := &CreateTrafficMirrorSessionOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorSessionOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10555,97 +10282,6 @@ func awsEc2query_deserializeOpErrorDeleteFpgaImage(response *smithyhttp.Response } } -type awsEc2query_deserializeOpDeleteInstanceEventWindow struct { -} - -func (*awsEc2query_deserializeOpDeleteInstanceEventWindow) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpDeleteInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(response, &metadata) - } - output := &DeleteInstanceEventWindowOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteInstanceEventWindowOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsEc2query_deserializeOpDeleteInternetGateway struct { } @@ -12372,97 +12008,6 @@ func awsEc2query_deserializeOpErrorDeleteSubnet(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpDeleteSubnetCidrReservation struct { -} - -func (*awsEc2query_deserializeOpDeleteSubnetCidrReservation) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpDeleteSubnetCidrReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(response, &metadata) - } - output := &DeleteSubnetCidrReservationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteSubnetCidrReservationOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsEc2query_deserializeOpDeleteTags struct { } @@ -18763,97 +18308,6 @@ func awsEc2query_deserializeOpErrorDescribeInstanceEventNotificationAttributes(r } } -type awsEc2query_deserializeOpDescribeInstanceEventWindows struct { -} - -func (*awsEc2query_deserializeOpDescribeInstanceEventWindows) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpDescribeInstanceEventWindows) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(response, &metadata) - } - output := &DescribeInstanceEventWindowsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInstanceEventWindowsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsEc2query_deserializeOpDescribeInstances struct { } @@ -27657,97 +27111,6 @@ func awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response *smit } } -type awsEc2query_deserializeOpDisassociateInstanceEventWindow struct { -} - -func (*awsEc2query_deserializeOpDisassociateInstanceEventWindow) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpDisassociateInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(response, &metadata) - } - output := &DisassociateInstanceEventWindowOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateInstanceEventWindowOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsEc2query_deserializeOpDisassociateRouteTable struct { } @@ -31046,97 +30409,6 @@ func awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(response *smithy } } -type awsEc2query_deserializeOpGetSubnetCidrReservations struct { -} - -func (*awsEc2query_deserializeOpGetSubnetCidrReservations) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpGetSubnetCidrReservations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetSubnetCidrReservations(response, &metadata) - } - output := &GetSubnetCidrReservationsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetSubnetCidrReservationsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorGetSubnetCidrReservations(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations struct { } @@ -33502,14 +32774,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response *smithy } } -type awsEc2query_deserializeOpModifyInstanceEventWindow struct { +type awsEc2query_deserializeOpModifyInstanceMetadataOptions struct { } -func (*awsEc2query_deserializeOpModifyInstanceEventWindow) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceMetadataOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33523,9 +32795,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response, &metadata) } - output := &ModifyInstanceEventWindowOutput{} + output := &ModifyInstanceMetadataOptionsOutput{} out.Result = output var buff [1024]byte @@ -33546,7 +32818,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33560,7 +32832,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33593,14 +32865,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response *smithyhtt } } -type awsEc2query_deserializeOpModifyInstanceMetadataOptions struct { +type awsEc2query_deserializeOpModifyInstancePlacement struct { } -func (*awsEc2query_deserializeOpModifyInstanceMetadataOptions) ID() string { +func (*awsEc2query_deserializeOpModifyInstancePlacement) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33614,9 +32886,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstancePlacement(response, &metadata) } - output := &ModifyInstanceMetadataOptionsOutput{} + output := &ModifyInstancePlacementOutput{} out.Result = output var buff [1024]byte @@ -33637,7 +32909,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33651,7 +32923,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstancePlacement(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33684,14 +32956,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smith } } -type awsEc2query_deserializeOpModifyInstancePlacement struct { +type awsEc2query_deserializeOpModifyLaunchTemplate struct { } -func (*awsEc2query_deserializeOpModifyInstancePlacement) ID() string { +func (*awsEc2query_deserializeOpModifyLaunchTemplate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33705,9 +32977,9 @@ func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstancePlacement(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyLaunchTemplate(response, &metadata) } - output := &ModifyInstancePlacementOutput{} + output := &ModifyLaunchTemplateOutput{} out.Result = output var buff [1024]byte @@ -33728,7 +33000,7 @@ func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyLaunchTemplateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33742,7 +33014,7 @@ func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstancePlacement(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33775,14 +33047,14 @@ func awsEc2query_deserializeOpErrorModifyInstancePlacement(response *smithyhttp. } } -type awsEc2query_deserializeOpModifyLaunchTemplate struct { +type awsEc2query_deserializeOpModifyManagedPrefixList struct { } -func (*awsEc2query_deserializeOpModifyLaunchTemplate) ID() string { +func (*awsEc2query_deserializeOpModifyManagedPrefixList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33796,9 +33068,9 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyLaunchTemplate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyManagedPrefixList(response, &metadata) } - output := &ModifyLaunchTemplateOutput{} + output := &ModifyManagedPrefixListOutput{} out.Result = output var buff [1024]byte @@ -33819,7 +33091,7 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyLaunchTemplateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyManagedPrefixListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33833,7 +33105,7 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyManagedPrefixList(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33866,14 +33138,14 @@ func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Res } } -type awsEc2query_deserializeOpModifyManagedPrefixList struct { +type awsEc2query_deserializeOpModifyNetworkInterfaceAttribute struct { } -func (*awsEc2query_deserializeOpModifyManagedPrefixList) ID() string { +func (*awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33887,9 +33159,77 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyManagedPrefixList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response, &metadata) } - output := &ModifyManagedPrefixListOutput{} + output := &ModifyNetworkInterfaceAttributeOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpModifyReservedInstances struct { +} + +func (*awsEc2query_deserializeOpModifyReservedInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorModifyReservedInstances(response, &metadata) + } + output := &ModifyReservedInstancesOutput{} out.Result = output var buff [1024]byte @@ -33910,7 +33250,7 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyManagedPrefixListOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33924,7 +33264,7 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyManagedPrefixList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33957,14 +33297,14 @@ func awsEc2query_deserializeOpErrorModifyManagedPrefixList(response *smithyhttp. } } -type awsEc2query_deserializeOpModifyNetworkInterfaceAttribute struct { +type awsEc2query_deserializeOpModifySecurityGroupRules struct { } -func (*awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_deserializeOpModifySecurityGroupRules) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33978,9 +33318,100 @@ func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySecurityGroupRules(response, &metadata) } - output := &ModifyNetworkInterfaceAttributeOutput{} + output := &ModifySecurityGroupRulesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifySecurityGroupRulesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorModifySecurityGroupRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpModifySnapshotAttribute struct { +} + +func (*awsEc2query_deserializeOpModifySnapshotAttribute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotAttribute(response, &metadata) + } + output := &ModifySnapshotAttributeOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -33992,7 +33423,7 @@ func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34025,14 +33456,14 @@ func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smi } } -type awsEc2query_deserializeOpModifyReservedInstances struct { +type awsEc2query_deserializeOpModifySpotFleetRequest struct { } -func (*awsEc2query_deserializeOpModifyReservedInstances) ID() string { +func (*awsEc2query_deserializeOpModifySpotFleetRequest) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34046,9 +33477,9 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyReservedInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySpotFleetRequest(response, &metadata) } - output := &ModifyReservedInstancesOutput{} + output := &ModifySpotFleetRequestOutput{} out.Result = output var buff [1024]byte @@ -34069,7 +33500,7 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34083,7 +33514,7 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34116,14 +33547,14 @@ func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp. } } -type awsEc2query_deserializeOpModifySecurityGroupRules struct { +type awsEc2query_deserializeOpModifySubnetAttribute struct { } -func (*awsEc2query_deserializeOpModifySecurityGroupRules) ID() string { +func (*awsEc2query_deserializeOpModifySubnetAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySubnetAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34137,44 +33568,21 @@ func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySecurityGroupRules(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySubnetAttribute(response, &metadata) } - output := &ModifySecurityGroupRulesOutput{} + output := &ModifySubnetAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifySecurityGroupRulesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySecurityGroupRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySubnetAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34207,14 +33615,14 @@ func awsEc2query_deserializeOpErrorModifySecurityGroupRules(response *smithyhttp } } -type awsEc2query_deserializeOpModifySnapshotAttribute struct { +type awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices struct { } -func (*awsEc2query_deserializeOpModifySnapshotAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34228,21 +33636,44 @@ func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response, &metadata) } - output := &ModifySnapshotAttributeOutput{} + output := &ModifyTrafficMirrorFilterNetworkServicesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterNetworkServicesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34275,14 +33706,14 @@ func awsEc2query_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpModifySpotFleetRequest struct { +type awsEc2query_deserializeOpModifyTrafficMirrorFilterRule struct { } -func (*awsEc2query_deserializeOpModifySpotFleetRequest) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34296,9 +33727,9 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySpotFleetRequest(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response, &metadata) } - output := &ModifySpotFleetRequestOutput{} + output := &ModifyTrafficMirrorFilterRuleOutput{} out.Result = output var buff [1024]byte @@ -34319,7 +33750,7 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterRuleOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34333,7 +33764,7 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34366,14 +33797,14 @@ func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.R } } -type awsEc2query_deserializeOpModifySubnetAttribute struct { +type awsEc2query_deserializeOpModifyTrafficMirrorSession struct { } -func (*awsEc2query_deserializeOpModifySubnetAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorSession) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySubnetAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34387,21 +33818,44 @@ func (m *awsEc2query_deserializeOpModifySubnetAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySubnetAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response, &metadata) } - output := &ModifySubnetAttributeOutput{} + output := &ModifyTrafficMirrorSessionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorSessionOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySubnetAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34434,14 +33888,14 @@ func awsEc2query_deserializeOpErrorModifySubnetAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices struct { +type awsEc2query_deserializeOpModifyTransitGateway struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34455,9 +33909,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGateway(response, &metadata) } - output := &ModifyTrafficMirrorFilterNetworkServicesOutput{} + output := &ModifyTransitGatewayOutput{} out.Result = output var buff [1024]byte @@ -34478,7 +33932,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterNetworkServicesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34492,7 +33946,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34525,14 +33979,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(resp } } -type awsEc2query_deserializeOpModifyTrafficMirrorFilterRule struct { +type awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34546,9 +34000,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response, &metadata) } - output := &ModifyTrafficMirrorFilterRuleOutput{} + output := &ModifyTransitGatewayPrefixListReferenceOutput{} out.Result = output var buff [1024]byte @@ -34569,7 +34023,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterRuleOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayPrefixListReferenceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34583,7 +34037,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34616,14 +34070,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smith } } -type awsEc2query_deserializeOpModifyTrafficMirrorSession struct { +type awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorSession) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34637,9 +34091,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response, &metadata) } - output := &ModifyTrafficMirrorSessionOutput{} + output := &ModifyTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -34660,7 +34114,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorSessionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34674,7 +34128,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34707,14 +34161,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyht } } -type awsEc2query_deserializeOpModifyTransitGateway struct { +type awsEc2query_deserializeOpModifyVolume struct { } -func (*awsEc2query_deserializeOpModifyTransitGateway) ID() string { +func (*awsEc2query_deserializeOpModifyVolume) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34728,9 +34182,9 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVolume(response, &metadata) } - output := &ModifyTransitGatewayOutput{} + output := &ModifyVolumeOutput{} out.Result = output var buff [1024]byte @@ -34751,7 +34205,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVolumeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34765,7 +34219,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34798,14 +34252,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Res } } -type awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference struct { +type awsEc2query_deserializeOpModifyVolumeAttribute struct { } -func (*awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) ID() string { +func (*awsEc2query_deserializeOpModifyVolumeAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34819,44 +34273,89 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVolumeAttribute(response, &metadata) } - output := &ModifyTransitGatewayPrefixListReferenceOutput{} + output := &ModifyVolumeAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayPrefixListReferenceOutput(&output, decoder) + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorModifyVolumeAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + + } +} + +type awsEc2query_deserializeOpModifyVpcAttribute struct { +} + +func (*awsEc2query_deserializeOpModifyVpcAttribute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpModifyVpcAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { return out, metadata, err } + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcAttribute(response, &metadata) + } + output := &ModifyVpcAttributeOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34889,14 +34388,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(respo } } -type awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpModifyVpcEndpoint struct { } -func (*awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34910,9 +34409,9 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) } - output := &ModifyTransitGatewayVpcAttachmentOutput{} + output := &ModifyVpcEndpointOutput{} out.Result = output var buff [1024]byte @@ -34933,7 +34432,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayVpcAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34947,7 +34446,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34980,14 +34479,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpModifyVolume struct { +type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { } -func (*awsEc2query_deserializeOpModifyVolume) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35001,9 +34500,9 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVolume(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) } - output := &ModifyVolumeOutput{} + output := &ModifyVpcEndpointConnectionNotificationOutput{} out.Result = output var buff [1024]byte @@ -35024,7 +34523,7 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVolumeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35038,7 +34537,7 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35071,14 +34570,14 @@ func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpModifyVolumeAttribute struct { +type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_deserializeOpModifyVolumeAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35092,21 +34591,44 @@ func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVolumeAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) } - output := &ModifyVolumeAttributeOutput{} + output := &ModifyVpcEndpointServiceConfigurationOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVolumeAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35139,14 +34661,14 @@ func awsEc2query_deserializeOpErrorModifyVolumeAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpModifyVpcAttribute struct { +type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { } -func (*awsEc2query_deserializeOpModifyVpcAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35160,21 +34682,44 @@ func (m *awsEc2query_deserializeOpModifyVpcAttribute) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) } - output := &ModifyVpcAttributeOutput{} + output := &ModifyVpcEndpointServicePermissionsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35207,14 +34752,14 @@ func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpModifyVpcEndpoint struct { +type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { +func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35228,9 +34773,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) } - output := &ModifyVpcEndpointOutput{} + output := &ModifyVpcPeeringConnectionOptionsOutput{} out.Result = output var buff [1024]byte @@ -35251,7 +34796,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35265,7 +34810,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35298,14 +34843,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { +type awsEc2query_deserializeOpModifyVpcTenancy struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35319,9 +34864,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcTenancy(response, &metadata) } - output := &ModifyVpcEndpointConnectionNotificationOutput{} + output := &ModifyVpcTenancyOutput{} out.Result = output var buff [1024]byte @@ -35342,7 +34887,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35356,7 +34901,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35389,14 +34934,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(respo } } -type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { +type awsEc2query_deserializeOpModifyVpnConnection struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35410,9 +34955,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnection(response, &metadata) } - output := &ModifyVpcEndpointServiceConfigurationOutput{} + output := &ModifyVpnConnectionOutput{} out.Result = output var buff [1024]byte @@ -35433,7 +34978,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35447,7 +34992,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35480,14 +35025,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(respons } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { +type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35501,9 +35046,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) } - output := &ModifyVpcEndpointServicePermissionsOutput{} + output := &ModifyVpnConnectionOptionsOutput{} out.Result = output var buff [1024]byte @@ -35524,7 +35069,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35538,7 +35083,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35571,14 +35116,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response } } -type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { +type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { } -func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35592,9 +35137,9 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) } - output := &ModifyVpcPeeringConnectionOptionsOutput{} + output := &ModifyVpnTunnelCertificateOutput{} out.Result = output var buff [1024]byte @@ -35615,7 +35160,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35629,7 +35174,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35662,14 +35207,14 @@ func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *s } } -type awsEc2query_deserializeOpModifyVpcTenancy struct { +type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { } -func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { +func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35683,9 +35228,9 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcTenancy(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata) } - output := &ModifyVpcTenancyOutput{} + output := &ModifyVpnTunnelOptionsOutput{} out.Result = output var buff [1024]byte @@ -35706,7 +35251,7 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35720,7 +35265,7 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35753,14 +35298,14 @@ func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpModifyVpnConnection struct { +type awsEc2query_deserializeOpMonitorInstances struct { } -func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { +func (*awsEc2query_deserializeOpMonitorInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35774,9 +35319,9 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata) } - output := &ModifyVpnConnectionOutput{} + output := &MonitorInstancesOutput{} out.Result = output var buff [1024]byte @@ -35797,7 +35342,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35811,7 +35356,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35844,14 +35389,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { +type awsEc2query_deserializeOpMoveAddressToVpc struct { } -func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35865,9 +35410,9 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMoveAddressToVpc(response, &metadata) } - output := &ModifyVpnConnectionOptionsOutput{} + output := &MoveAddressToVpcOutput{} out.Result = output var buff [1024]byte @@ -35888,7 +35433,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35902,7 +35447,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35935,14 +35480,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { +type awsEc2query_deserializeOpProvisionByoipCidr struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { +func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35956,9 +35501,9 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata) } - output := &ModifyVpnTunnelCertificateOutput{} + output := &ProvisionByoipCidrOutput{} out.Result = output var buff [1024]byte @@ -35979,7 +35524,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35993,7 +35538,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36026,14 +35571,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { +type awsEc2query_deserializeOpPurchaseHostReservation struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { +func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36047,9 +35592,9 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) } - output := &ModifyVpnTunnelOptionsOutput{} + output := &PurchaseHostReservationOutput{} out.Result = output var buff [1024]byte @@ -36070,7 +35615,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36084,7 +35629,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36117,14 +35662,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.R } } -type awsEc2query_deserializeOpMonitorInstances struct { +type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { } -func (*awsEc2query_deserializeOpMonitorInstances) ID() string { +func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36138,9 +35683,9 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) } - output := &MonitorInstancesOutput{} + output := &PurchaseReservedInstancesOfferingOutput{} out.Result = output var buff [1024]byte @@ -36161,7 +35706,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36175,7 +35720,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36208,14 +35753,14 @@ func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpMoveAddressToVpc struct { +type awsEc2query_deserializeOpPurchaseScheduledInstances struct { } -func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { +func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36229,9 +35774,9 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMoveAddressToVpc(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) } - output := &MoveAddressToVpcOutput{} + output := &PurchaseScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -36252,7 +35797,7 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36266,7 +35811,7 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36299,14 +35844,14 @@ func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpProvisionByoipCidr struct { +type awsEc2query_deserializeOpRebootInstances struct { } -func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { +func (*awsEc2query_deserializeOpRebootInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36320,44 +35865,21 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) } - output := &ProvisionByoipCidrOutput{} + output := &RebootInstancesOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36390,14 +35912,14 @@ func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpPurchaseHostReservation struct { +type awsEc2query_deserializeOpRegisterImage struct { } -func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { +func (*awsEc2query_deserializeOpRegisterImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36411,9 +35933,9 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata) } - output := &PurchaseHostReservationOutput{} + output := &RegisterImageOutput{} out.Result = output var buff [1024]byte @@ -36434,7 +35956,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36448,7 +35970,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36481,14 +36003,14 @@ func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp. } } -type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { +type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { } -func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { +func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36502,9 +36024,9 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) } - output := &PurchaseReservedInstancesOfferingOutput{} + output := &RegisterInstanceEventNotificationAttributesOutput{} out.Result = output var buff [1024]byte @@ -36525,7 +36047,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36539,7 +36061,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36572,14 +36094,14 @@ func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *s } } -type awsEc2query_deserializeOpPurchaseScheduledInstances struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { } -func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36593,9 +36115,9 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) } - output := &PurchaseScheduledInstancesOutput{} + output := &RegisterTransitGatewayMulticastGroupMembersOutput{} out.Result = output var buff [1024]byte @@ -36616,7 +36138,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36630,7 +36152,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36663,14 +36185,14 @@ func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyht } } -type awsEc2query_deserializeOpRebootInstances struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { } -func (*awsEc2query_deserializeOpRebootInstances) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36684,21 +36206,44 @@ func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) } - output := &RebootInstancesOutput{} + output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36731,14 +36276,14 @@ func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response } } -type awsEc2query_deserializeOpRegisterImage struct { +type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { } -func (*awsEc2query_deserializeOpRegisterImage) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36752,9 +36297,9 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) } - output := &RegisterImageOutput{} + output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} out.Result = output var buff [1024]byte @@ -36775,7 +36320,7 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36789,7 +36334,7 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36822,14 +36367,14 @@ func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { +type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { } -func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36843,9 +36388,9 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) } - output := &RegisterInstanceEventNotificationAttributesOutput{} + output := &RejectTransitGatewayPeeringAttachmentOutput{} out.Result = output var buff [1024]byte @@ -36866,7 +36411,7 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36880,7 +36425,7 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36913,14 +36458,14 @@ func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { +type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36934,9 +36479,9 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupMembersOutput{} + output := &RejectTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -36957,7 +36502,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36971,7 +36516,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37004,14 +36549,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { +type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { +func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37025,9 +36570,9 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} + output := &RejectVpcEndpointConnectionsOutput{} out.Result = output var buff [1024]byte @@ -37048,7 +36593,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37062,7 +36607,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37095,14 +36640,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(r } } -type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { +type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { +func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37116,9 +36661,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) } - output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} + output := &RejectVpcPeeringConnectionOutput{} out.Result = output var buff [1024]byte @@ -37139,7 +36684,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37153,7 +36698,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37186,14 +36731,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociatio } } -type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { +type awsEc2query_deserializeOpReleaseAddress struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { +func (*awsEc2query_deserializeOpReleaseAddress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37207,44 +36752,21 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata) } - output := &RejectTransitGatewayPeeringAttachmentOutput{} + output := &ReleaseAddressOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37277,14 +36799,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(respons } } -type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpReleaseHosts struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpReleaseHosts) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37298,9 +36820,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseHosts(response, &metadata) } - output := &RejectTransitGatewayVpcAttachmentOutput{} + output := &ReleaseHostsOutput{} out.Result = output var buff [1024]byte @@ -37321,7 +36843,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37335,7 +36857,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37368,14 +36890,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { +type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { } -func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { +func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37389,9 +36911,9 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) } - output := &RejectVpcEndpointConnectionsOutput{} + output := &ReplaceIamInstanceProfileAssociationOutput{} out.Result = output var buff [1024]byte @@ -37412,7 +36934,7 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37426,7 +36948,7 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37459,14 +36981,14 @@ func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithy } } -type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { +type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { } -func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37480,9 +37002,9 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) } - output := &RejectVpcPeeringConnectionOutput{} + output := &ReplaceNetworkAclAssociationOutput{} out.Result = output var buff [1024]byte @@ -37503,7 +37025,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37517,7 +37039,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37550,14 +37072,14 @@ func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyht } } -type awsEc2query_deserializeOpReleaseAddress struct { +type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { } -func (*awsEc2query_deserializeOpReleaseAddress) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37571,9 +37093,9 @@ func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata) } - output := &ReleaseAddressOutput{} + output := &ReplaceNetworkAclEntryOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -37585,7 +37107,7 @@ func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37618,14 +37140,14 @@ func awsEc2query_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpReleaseHosts struct { +type awsEc2query_deserializeOpReplaceRoute struct { } -func (*awsEc2query_deserializeOpReleaseHosts) ID() string { +func (*awsEc2query_deserializeOpReplaceRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37639,44 +37161,21 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReleaseHosts(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceRoute(response, &metadata) } - output := &ReleaseHostsOutput{} + output := &ReplaceRouteOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37709,14 +37208,14 @@ func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { +type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { } -func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { +func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37730,9 +37229,9 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) } - output := &ReplaceIamInstanceProfileAssociationOutput{} + output := &ReplaceRouteTableAssociationOutput{} out.Result = output var buff [1024]byte @@ -37753,7 +37252,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37767,7 +37266,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37800,14 +37299,14 @@ func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response } } -type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { +type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { +func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37821,9 +37320,9 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) } - output := &ReplaceNetworkAclAssociationOutput{} + output := &ReplaceTransitGatewayRouteOutput{} out.Result = output var buff [1024]byte @@ -37844,7 +37343,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37858,7 +37357,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37891,14 +37390,14 @@ func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { +type awsEc2query_deserializeOpReportInstanceStatus struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { +func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37912,9 +37411,9 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata) } - output := &ReplaceNetworkAclEntryOutput{} + output := &ReportInstanceStatusOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -37926,7 +37425,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37959,14 +37458,14 @@ func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response *smithyhttp.R } } -type awsEc2query_deserializeOpReplaceRoute struct { +type awsEc2query_deserializeOpRequestSpotFleet struct { } -func (*awsEc2query_deserializeOpReplaceRoute) ID() string { +func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37980,21 +37479,44 @@ func (m *awsEc2query_deserializeOpReplaceRoute) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRequestSpotFleet(response, &metadata) } - output := &ReplaceRouteOutput{} + output := &RequestSpotFleetOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRequestSpotFleetOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38027,14 +37549,14 @@ func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { +type awsEc2query_deserializeOpRequestSpotInstances struct { } -func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { +func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38048,9 +37570,9 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata) } - output := &ReplaceRouteTableAssociationOutput{} + output := &RequestSpotInstancesOutput{} out.Result = output var buff [1024]byte @@ -38071,7 +37593,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38085,7 +37607,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38118,14 +37640,14 @@ func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { +type awsEc2query_deserializeOpResetAddressAttribute struct { } -func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { +func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38139,9 +37661,9 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetAddressAttribute(response, &metadata) } - output := &ReplaceTransitGatewayRouteOutput{} + output := &ResetAddressAttributeOutput{} out.Result = output var buff [1024]byte @@ -38162,7 +37684,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38176,7 +37698,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38209,14 +37731,14 @@ func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyht } } -type awsEc2query_deserializeOpReportInstanceStatus struct { +type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { } -func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { +func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38230,21 +37752,44 @@ func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata) } - output := &ReportInstanceStatusOutput{} + output := &ResetEbsDefaultKmsKeyIdOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38277,14 +37822,14 @@ func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Res } } -type awsEc2query_deserializeOpRequestSpotFleet struct { +type awsEc2query_deserializeOpResetFpgaImageAttribute struct { } -func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { +func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38298,9 +37843,9 @@ func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRequestSpotFleet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) } - output := &RequestSpotFleetOutput{} + output := &ResetFpgaImageAttributeOutput{} out.Result = output var buff [1024]byte @@ -38321,7 +37866,7 @@ func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRequestSpotFleetOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38335,7 +37880,7 @@ func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38368,14 +37913,14 @@ func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpRequestSpotInstances struct { +type awsEc2query_deserializeOpResetImageAttribute struct { } -func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { +func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38389,44 +37934,21 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata) } - output := &RequestSpotInstancesOutput{} + output := &ResetImageAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38459,14 +37981,14 @@ func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Res } } -type awsEc2query_deserializeOpResetAddressAttribute struct { +type awsEc2query_deserializeOpResetInstanceAttribute struct { } -func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { +func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetInstanceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38480,44 +38002,21 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetAddressAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetInstanceAttribute(response, &metadata) } - output := &ResetAddressAttributeOutput{} + output := &ResetInstanceAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38550,14 +38049,14 @@ func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { +type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { } -func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38571,44 +38070,21 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) } - output := &ResetEbsDefaultKmsKeyIdOutput{} + output := &ResetNetworkInterfaceAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38641,14 +38117,14 @@ func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp. } } -type awsEc2query_deserializeOpResetFpgaImageAttribute struct { +type awsEc2query_deserializeOpResetSnapshotAttribute struct { } -func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { +func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetSnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38662,44 +38138,21 @@ func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetSnapshotAttribute(response, &metadata) } - output := &ResetFpgaImageAttributeOutput{} + output := &ResetSnapshotAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38732,14 +38185,14 @@ func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpResetImageAttribute struct { +type awsEc2query_deserializeOpRestoreAddressToClassic struct { } -func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { +func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38753,21 +38206,44 @@ func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata) } - output := &ResetImageAttributeOutput{} + output := &RestoreAddressToClassicOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorResetImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38800,14 +38276,14 @@ func awsEc2query_deserializeOpErrorResetImageAttribute(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpResetInstanceAttribute struct { +type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { } -func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string { +func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetInstanceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38821,21 +38297,44 @@ func (m *awsEc2query_deserializeOpResetInstanceAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetInstanceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) } - output := &ResetInstanceAttributeOutput{} + output := &RestoreManagedPrefixListVersionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38868,14 +38367,14 @@ func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { +type awsEc2query_deserializeOpRevokeClientVpnIngress struct { } -func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38889,21 +38388,44 @@ func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) } - output := &ResetNetworkInterfaceAttributeOutput{} + output := &RevokeClientVpnIngressOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRevokeClientVpnIngressOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38936,14 +38458,14 @@ func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response *smit } } -type awsEc2query_deserializeOpResetSnapshotAttribute struct { +type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { } -func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string { +func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetSnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38957,21 +38479,44 @@ func (m *awsEc2query_deserializeOpResetSnapshotAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetSnapshotAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) } - output := &ResetSnapshotAttributeOutput{} + output := &RevokeSecurityGroupEgressOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39004,14 +38549,14 @@ func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpRestoreAddressToClassic struct { +type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { } -func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { +func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39025,9 +38570,9 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) } - output := &RestoreAddressToClassicOutput{} + output := &RevokeSecurityGroupIngressOutput{} out.Result = output var buff [1024]byte @@ -39048,7 +38593,7 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39062,7 +38607,7 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39095,14 +38640,14 @@ func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp. } } -type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { +type awsEc2query_deserializeOpRunInstances struct { } -func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { +func (*awsEc2query_deserializeOpRunInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39116,9 +38661,9 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRunInstances(response, &metadata) } - output := &RestoreManagedPrefixListVersionOutput{} + output := &RunInstancesOutput{} out.Result = output var buff [1024]byte @@ -39139,7 +38684,7 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39153,7 +38698,7 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39186,14 +38731,14 @@ func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smi } } -type awsEc2query_deserializeOpRevokeClientVpnIngress struct { +type awsEc2query_deserializeOpRunScheduledInstances struct { } -func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { +func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39207,9 +38752,9 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata) } - output := &RevokeClientVpnIngressOutput{} + output := &RunScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -39230,7 +38775,7 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeClientVpnIngressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39244,7 +38789,7 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39277,14 +38822,14 @@ func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.R } } -type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { +type awsEc2query_deserializeOpSearchLocalGatewayRoutes struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { +func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39298,9 +38843,9 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata) } - output := &RevokeSecurityGroupEgressOutput{} + output := &SearchLocalGatewayRoutesOutput{} out.Result = output var buff [1024]byte @@ -39321,7 +38866,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39335,7 +38880,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39368,14 +38913,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhtt } } -type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { +type awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { +func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39389,9 +38934,9 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata) } - output := &RevokeSecurityGroupIngressOutput{} + output := &SearchTransitGatewayMulticastGroupsOutput{} out.Result = output var buff [1024]byte @@ -39412,7 +38957,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39426,7 +38971,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39459,14 +39004,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyht } } -type awsEc2query_deserializeOpRunInstances struct { +type awsEc2query_deserializeOpSearchTransitGatewayRoutes struct { } -func (*awsEc2query_deserializeOpRunInstances) ID() string { +func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39480,9 +39025,9 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRunInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata) } - output := &RunInstancesOutput{} + output := &SearchTransitGatewayRoutesOutput{} out.Result = output var buff [1024]byte @@ -39503,7 +39048,7 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39517,7 +39062,7 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39550,14 +39095,14 @@ func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpRunScheduledInstances struct { +type awsEc2query_deserializeOpSendDiagnosticInterrupt struct { } -func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpSendDiagnosticInterrupt) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39571,44 +39116,21 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response, &metadata) } - output := &RunScheduledInstancesOutput{} + output := &SendDiagnosticInterruptOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39641,14 +39163,14 @@ func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Re } } -type awsEc2query_deserializeOpSearchLocalGatewayRoutes struct { +type awsEc2query_deserializeOpStartInstances struct { } -func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpStartInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39662,9 +39184,9 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorStartInstances(response, &metadata) } - output := &SearchLocalGatewayRoutesOutput{} + output := &StartInstancesOutput{} out.Result = output var buff [1024]byte @@ -39685,7 +39207,7 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentStartInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39699,7 +39221,7 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39732,14 +39254,14 @@ func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp } } -type awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups struct { +type awsEc2query_deserializeOpStartNetworkInsightsAnalysis struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string { +func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39753,9 +39275,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata) } - output := &SearchTransitGatewayMulticastGroupsOutput{} + output := &StartNetworkInsightsAnalysisOutput{} out.Result = output var buff [1024]byte @@ -39776,7 +39298,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39790,7 +39312,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39823,14 +39345,14 @@ func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response } } -type awsEc2query_deserializeOpSearchTransitGatewayRoutes struct { +type awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39844,9 +39366,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata) } - output := &SearchTransitGatewayRoutesOutput{} + output := &StartVpcEndpointServicePrivateDnsVerificationOutput{} out.Result = output var buff [1024]byte @@ -39867,7 +39389,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39881,75 +39403,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpSendDiagnosticInterrupt struct { -} - -func (*awsEc2query_deserializeOpSendDiagnosticInterrupt) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response, &metadata) - } - output := &SendDiagnosticInterruptOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39982,14 +39436,14 @@ func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp. } } -type awsEc2query_deserializeOpStartInstances struct { +type awsEc2query_deserializeOpStopInstances struct { } -func (*awsEc2query_deserializeOpStartInstances) ID() string { +func (*awsEc2query_deserializeOpStopInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -40003,9 +39457,9 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorStopInstances(response, &metadata) } - output := &StartInstancesOutput{} + output := &StopInstancesOutput{} out.Result = output var buff [1024]byte @@ -40026,7 +39480,7 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentStopInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40040,7 +39494,7 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorStopInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -40073,14 +39527,14 @@ func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpStartNetworkInsightsAnalysis struct { +type awsEc2query_deserializeOpTerminateClientVpnConnections struct { } -func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string { +func (*awsEc2query_deserializeOpTerminateClientVpnConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -40094,9 +39548,9 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response, &metadata) } - output := &StartNetworkInsightsAnalysisOutput{} + output := &TerminateClientVpnConnectionsOutput{} out.Result = output var buff [1024]byte @@ -40117,7 +39571,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentTerminateClientVpnConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40131,7 +39585,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -40164,14 +39618,14 @@ func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithy } } -type awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct { +type awsEc2query_deserializeOpTerminateInstances struct { } -func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { +func (*awsEc2query_deserializeOpTerminateInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -40185,9 +39639,9 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorTerminateInstances(response, &metadata) } - output := &StartVpcEndpointServicePrivateDnsVerificationOutput{} + output := &TerminateInstancesOutput{} out.Result = output var buff [1024]byte @@ -40208,7 +39662,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentTerminateInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40222,280 +39676,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) return out, metadata, err } -func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpStopInstances struct { -} - -func (*awsEc2query_deserializeOpStopInstances) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStopInstances(response, &metadata) - } - output := &StopInstancesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStopInstancesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorStopInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpTerminateClientVpnConnections struct { -} - -func (*awsEc2query_deserializeOpTerminateClientVpnConnections) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response, &metadata) - } - output := &TerminateClientVpnConnectionsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentTerminateClientVpnConnectionsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpTerminateInstances struct { -} - -func (*awsEc2query_deserializeOpTerminateInstances) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorTerminateInstances(response, &metadata) - } - output := &TerminateInstancesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentTerminateInstancesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorTerminateInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorTerminateInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -49719,86 +48900,6 @@ func awsEc2query_deserializeDocumentCustomerGatewayListUnwrapped(v *[]types.Cust *v = sv return nil } -func awsEc2query_deserializeDocumentDedicatedHostIdList(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("item", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentDedicatedHostIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} func awsEc2query_deserializeDocumentDeleteFleetError(v **types.DeleteFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -62868,460 +61969,6 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecificationListUnwrapped(v * *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceEventWindow - if *v == nil { - sv = &types.InstanceEventWindow{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("associationTarget", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(&sv.AssociationTarget, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("cronExpression", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CronExpression = ptr.String(xtv) - } - - case strings.EqualFold("instanceEventWindowId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceEventWindowId = ptr.String(xtv) - } - - case strings.EqualFold("name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Name = ptr.String(xtv) - } - - case strings.EqualFold("state", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.InstanceEventWindowState(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("timeRangeSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(&sv.TimeRanges, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(v **types.InstanceEventWindowAssociationTarget, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceEventWindowAssociationTarget - if *v == nil { - sv = &types.InstanceEventWindowAssociationTarget{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("dedicatedHostIdSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDedicatedHostIdList(&sv.DedicatedHostIds, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceIdSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIdList(&sv.InstanceIds, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceEventWindowSet(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceEventWindow - if *v == nil { - sv = make([]types.InstanceEventWindow, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceEventWindow - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceEventWindow(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceEventWindowSetUnwrapped(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceEventWindow - if *v == nil { - sv = make([]types.InstanceEventWindow, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceEventWindow - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceEventWindow(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceEventWindowStateChange(v **types.InstanceEventWindowStateChange, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceEventWindowStateChange - if *v == nil { - sv = &types.InstanceEventWindowStateChange{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceEventWindowId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceEventWindowId = ptr.String(xtv) - } - - case strings.EqualFold("state", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.InstanceEventWindowState(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceEventWindowTimeRange - if *v == nil { - sv = &types.InstanceEventWindowTimeRange{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("endHour", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.EndHour = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("endWeekDay", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EndWeekDay = types.WeekDay(xtv) - } - - case strings.EqualFold("startHour", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.StartHour = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("startWeekDay", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.StartWeekDay = types.WeekDay(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceEventWindowTimeRange - if *v == nil { - sv = make([]types.InstanceEventWindowTimeRange, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceEventWindowTimeRange - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeListUnwrapped(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceEventWindowTimeRange - if *v == nil { - sv = make([]types.InstanceEventWindowTimeRange, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceEventWindowTimeRange - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} func awsEc2query_deserializeDocumentInstanceExportDetails(v **types.InstanceExportDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -63446,86 +62093,6 @@ func awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types. return nil } -func awsEc2query_deserializeDocumentInstanceIdList(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("item", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} func awsEc2query_deserializeDocumentInstanceIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -63686,123 +62253,6 @@ func awsEc2query_deserializeDocumentInstanceIdsSetUnwrapped(v *[]string, decoder *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceIpv4Prefix(v **types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceIpv4Prefix - if *v == nil { - sv = &types.InstanceIpv4Prefix{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ipv4Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv4Prefix = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceIpv4PrefixList(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceIpv4Prefix - if *v == nil { - sv = make([]types.InstanceIpv4Prefix, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceIpv4Prefix - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceIpv4PrefixListUnwrapped(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceIpv4Prefix - if *v == nil { - sv = make([]types.InstanceIpv4Prefix, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceIpv4Prefix - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} func awsEc2query_deserializeDocumentInstanceIpv6Address(v **types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -63920,123 +62370,6 @@ func awsEc2query_deserializeDocumentInstanceIpv6AddressListUnwrapped(v *[]types. *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceIpv6Prefix(v **types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceIpv6Prefix - if *v == nil { - sv = &types.InstanceIpv6Prefix{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ipv6Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv6Prefix = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceIpv6PrefixList(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceIpv6Prefix - if *v == nil { - sv = make([]types.InstanceIpv6Prefix, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceIpv6Prefix - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceIpv6PrefixListUnwrapped(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceIpv6Prefix - if *v == nil { - sv = make([]types.InstanceIpv6Prefix, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceIpv6Prefix - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} func awsEc2query_deserializeDocumentInstanceList(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -64386,24 +62719,12 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN sv.InterfaceType = ptr.String(xtv) } - case strings.EqualFold("ipv4PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("ipv6AddressesSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentInstanceIpv6AddressList(&sv.Ipv6Addresses, nodeDecoder); err != nil { return err } - case strings.EqualFold("ipv6PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("macAddress", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -64948,29 +63269,6 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty sv.InterfaceType = ptr.String(xtv) } - case strings.EqualFold("Ipv4PrefixCount", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Ipv4PrefixCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("Ipv4Prefix", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("ipv6AddressCount", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -64994,29 +63292,6 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty return err } - case strings.EqualFold("Ipv6PrefixCount", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Ipv6PrefixCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("Ipv6Prefix", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("NetworkCardIndex", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -67444,86 +65719,6 @@ func awsEc2query_deserializeDocumentIpPermissionListUnwrapped(v *[]types.IpPermi *v = sv return nil } -func awsEc2query_deserializeDocumentIpPrefixList(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("item", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpPrefixListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} func awsEc2query_deserializeDocumentIpRange(v **types.IpRange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -67734,357 +65929,6 @@ func awsEc2query_deserializeDocumentIpRangesUnwrapped(v *[]string, decoder smith *v = sv return nil } -func awsEc2query_deserializeDocumentIpv4PrefixesList(v *[]types.Ipv4PrefixSpecification, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Ipv4PrefixSpecification - if *v == nil { - sv = make([]types.Ipv4PrefixSpecification, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.Ipv4PrefixSpecification - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentIpv4PrefixSpecification(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv4PrefixesListUnwrapped(v *[]types.Ipv4PrefixSpecification, decoder smithyxml.NodeDecoder) error { - var sv []types.Ipv4PrefixSpecification - if *v == nil { - sv = make([]types.Ipv4PrefixSpecification, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Ipv4PrefixSpecification - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentIpv4PrefixSpecification(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentIpv4PrefixList(v *[]types.Ipv4PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Ipv4PrefixSpecificationRequest - if *v == nil { - sv = make([]types.Ipv4PrefixSpecificationRequest, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.Ipv4PrefixSpecificationRequest - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv4PrefixListUnwrapped(v *[]types.Ipv4PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { - var sv []types.Ipv4PrefixSpecificationRequest - if *v == nil { - sv = make([]types.Ipv4PrefixSpecificationRequest, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Ipv4PrefixSpecificationRequest - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentIpv4PrefixListResponse(v *[]types.Ipv4PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Ipv4PrefixSpecificationResponse - if *v == nil { - sv = make([]types.Ipv4PrefixSpecificationResponse, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.Ipv4PrefixSpecificationResponse - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv4PrefixListResponseUnwrapped(v *[]types.Ipv4PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { - var sv []types.Ipv4PrefixSpecificationResponse - if *v == nil { - sv = make([]types.Ipv4PrefixSpecificationResponse, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Ipv4PrefixSpecificationResponse - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentIpv4PrefixSpecification(v **types.Ipv4PrefixSpecification, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Ipv4PrefixSpecification - if *v == nil { - sv = &types.Ipv4PrefixSpecification{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ipv4Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv4Prefix = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv4PrefixSpecificationRequest(v **types.Ipv4PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Ipv4PrefixSpecificationRequest - if *v == nil { - sv = &types.Ipv4PrefixSpecificationRequest{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Ipv4Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv4Prefix = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv4PrefixSpecificationResponse(v **types.Ipv4PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Ipv4PrefixSpecificationResponse - if *v == nil { - sv = &types.Ipv4PrefixSpecificationResponse{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ipv4Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv4Prefix = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeDocumentIpv6AddressList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -68554,357 +66398,6 @@ func awsEc2query_deserializeDocumentIpv6PoolSetUnwrapped(v *[]types.Ipv6Pool, de *v = sv return nil } -func awsEc2query_deserializeDocumentIpv6PrefixesList(v *[]types.Ipv6PrefixSpecification, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Ipv6PrefixSpecification - if *v == nil { - sv = make([]types.Ipv6PrefixSpecification, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.Ipv6PrefixSpecification - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentIpv6PrefixSpecification(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv6PrefixesListUnwrapped(v *[]types.Ipv6PrefixSpecification, decoder smithyxml.NodeDecoder) error { - var sv []types.Ipv6PrefixSpecification - if *v == nil { - sv = make([]types.Ipv6PrefixSpecification, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Ipv6PrefixSpecification - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentIpv6PrefixSpecification(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentIpv6PrefixList(v *[]types.Ipv6PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Ipv6PrefixSpecificationRequest - if *v == nil { - sv = make([]types.Ipv6PrefixSpecificationRequest, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.Ipv6PrefixSpecificationRequest - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv6PrefixListUnwrapped(v *[]types.Ipv6PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { - var sv []types.Ipv6PrefixSpecificationRequest - if *v == nil { - sv = make([]types.Ipv6PrefixSpecificationRequest, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Ipv6PrefixSpecificationRequest - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentIpv6PrefixListResponse(v *[]types.Ipv6PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Ipv6PrefixSpecificationResponse - if *v == nil { - sv = make([]types.Ipv6PrefixSpecificationResponse, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.Ipv6PrefixSpecificationResponse - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv6PrefixListResponseUnwrapped(v *[]types.Ipv6PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { - var sv []types.Ipv6PrefixSpecificationResponse - if *v == nil { - sv = make([]types.Ipv6PrefixSpecificationResponse, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Ipv6PrefixSpecificationResponse - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentIpv6PrefixSpecification(v **types.Ipv6PrefixSpecification, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Ipv6PrefixSpecification - if *v == nil { - sv = &types.Ipv6PrefixSpecification{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ipv6Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv6Prefix = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv6PrefixSpecificationRequest(v **types.Ipv6PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Ipv6PrefixSpecificationRequest - if *v == nil { - sv = &types.Ipv6PrefixSpecificationRequest{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Ipv6Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv6Prefix = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpv6PrefixSpecificationResponse(v **types.Ipv6PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Ipv6PrefixSpecificationResponse - if *v == nil { - sv = &types.Ipv6PrefixSpecificationResponse{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ipv6Prefix", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv6Prefix = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeDocumentIpv6Range(v **types.Ipv6Range, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -70930,29 +68423,6 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif sv.InterfaceType = ptr.String(xtv) } - case strings.EqualFold("ipv4PrefixCount", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Ipv4PrefixCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("ipv4PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv4PrefixListResponse(&sv.Ipv4Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("ipv6AddressCount", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -70976,29 +68446,6 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif return err } - case strings.EqualFold("ipv6PrefixCount", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Ipv6PrefixCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("ipv6PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6PrefixListResponse(&sv.Ipv6Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("networkCardIndex", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -76163,24 +73610,12 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, sv.InterfaceType = types.NetworkInterfaceType(xtv) } - case strings.EqualFold("ipv4PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv4PrefixesList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("ipv6AddressesSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesList(&sv.Ipv6Addresses, nodeDecoder); err != nil { return err } - case strings.EqualFold("ipv6PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6PrefixesList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("macAddress", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -91824,194 +89259,6 @@ func awsEc2query_deserializeDocumentSubnetCidrBlockState(v **types.SubnetCidrBlo return nil } -func awsEc2query_deserializeDocumentSubnetCidrReservation(v **types.SubnetCidrReservation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.SubnetCidrReservation - if *v == nil { - sv = &types.SubnetCidrReservation{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("cidr", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Cidr = ptr.String(xtv) - } - - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - - case strings.EqualFold("ownerId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.OwnerId = ptr.String(xtv) - } - - case strings.EqualFold("reservationType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ReservationType = types.SubnetCidrReservationType(xtv) - } - - case strings.EqualFold("subnetCidrReservationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SubnetCidrReservationId = ptr.String(xtv) - } - - case strings.EqualFold("subnetId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SubnetId = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentSubnetCidrReservationList(v *[]types.SubnetCidrReservation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.SubnetCidrReservation - if *v == nil { - sv = make([]types.SubnetCidrReservation, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.SubnetCidrReservation - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentSubnetCidrReservationListUnwrapped(v *[]types.SubnetCidrReservation, decoder smithyxml.NodeDecoder) error { - var sv []types.SubnetCidrReservation - if *v == nil { - sv = make([]types.SubnetCidrReservation, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.SubnetCidrReservation - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(v **types.SubnetIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -105487,12 +102734,6 @@ func awsEc2query_deserializeOpDocumentAssignIpv6AddressesOutput(v **AssignIpv6Ad return err } - case strings.EqualFold("assignedIpv6PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpPrefixList(&sv.AssignedIpv6Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("networkInterfaceId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -105542,12 +102783,6 @@ func awsEc2query_deserializeOpDocumentAssignPrivateIpAddressesOutput(v **AssignP originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("assignedIpv4PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv4PrefixesList(&sv.AssignedIpv4Prefixes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("assignedPrivateIpAddressesSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(&sv.AssignedPrivateIpAddresses, nodeDecoder); err != nil { @@ -105802,48 +103037,6 @@ func awsEc2query_deserializeOpDocumentAssociateIamInstanceProfileOutput(v **Asso return nil } -func awsEc2query_deserializeOpDocumentAssociateInstanceEventWindowOutput(v **AssociateInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *AssociateInstanceEventWindowOutput - if *v == nil { - sv = &AssociateInstanceEventWindowOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceEventWindow", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeOpDocumentAssociateRouteTableOutput(v **AssociateRouteTableOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -107804,48 +104997,6 @@ func awsEc2query_deserializeOpDocumentCreateImageOutput(v **CreateImageOutput, d return nil } -func awsEc2query_deserializeOpDocumentCreateInstanceEventWindowOutput(v **CreateInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *CreateInstanceEventWindowOutput - if *v == nil { - sv = &CreateInstanceEventWindowOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceEventWindow", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeOpDocumentCreateInstanceExportTaskOutput(v **CreateInstanceExportTaskOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -109174,48 +106325,6 @@ func awsEc2query_deserializeOpDocumentCreateStoreImageTaskOutput(v **CreateStore return nil } -func awsEc2query_deserializeOpDocumentCreateSubnetCidrReservationOutput(v **CreateSubnetCidrReservationOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *CreateSubnetCidrReservationOutput - if *v == nil { - sv = &CreateSubnetCidrReservationOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("subnetCidrReservation", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&sv.SubnetCidrReservation, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeOpDocumentCreateSubnetOutput(v **CreateSubnetOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -110764,48 +107873,6 @@ func awsEc2query_deserializeOpDocumentDeleteFpgaImageOutput(v **DeleteFpgaImageO return nil } -func awsEc2query_deserializeOpDocumentDeleteInstanceEventWindowOutput(v **DeleteInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DeleteInstanceEventWindowOutput - if *v == nil { - sv = &DeleteInstanceEventWindowOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceEventWindowState", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindowStateChange(&sv.InstanceEventWindowState, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeOpDocumentDeleteLaunchTemplateOutput(v **DeleteLaunchTemplateOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -111269,48 +108336,6 @@ func awsEc2query_deserializeOpDocumentDeleteQueuedReservedInstancesOutput(v **De return nil } -func awsEc2query_deserializeOpDocumentDeleteSubnetCidrReservationOutput(v **DeleteSubnetCidrReservationOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DeleteSubnetCidrReservationOutput - if *v == nil { - sv = &DeleteSubnetCidrReservationOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("deletedSubnetCidrReservation", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&sv.DeletedSubnetCidrReservation, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterOutput(v **DeleteTrafficMirrorFilterOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -114410,207 +111435,13 @@ func awsEc2query_deserializeOpDocumentDescribeImportSnapshotTasksOutput(v **Desc return nil } -func awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(v **DescribeInstanceAttributeOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeInstanceAttributeOutput - if *v == nil { - sv = &DescribeInstanceAttributeOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("blockDeviceMapping", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("disableApiTermination", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.DisableApiTermination, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ebsOptimized", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EbsOptimized, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("enaSupport", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnaSupport, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("enclaveOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnclaveOptions(&sv.EnclaveOptions, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("groupSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceId = ptr.String(xtv) - } - - case strings.EqualFold("instanceInitiatedShutdownBehavior", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.InstanceInitiatedShutdownBehavior, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceType", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.InstanceType, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("kernel", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.KernelId, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("productCodes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ramdisk", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.RamdiskId, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("rootDeviceName", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.RootDeviceName, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("sourceDestCheck", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.SourceDestCheck, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("sriovNetSupport", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.SriovNetSupport, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("userData", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.UserData, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput(v **DescribeInstanceCreditSpecificationsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeInstanceCreditSpecificationsOutput - if *v == nil { - sv = &DescribeInstanceCreditSpecificationsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceCreditSpecificationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceCreditSpecificationList(&sv.InstanceCreditSpecifications, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("nextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeOpDocumentDescribeInstanceEventNotificationAttributesOutput(v **DescribeInstanceEventNotificationAttributesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(v **DescribeInstanceAttributeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeInstanceEventNotificationAttributesOutput + var sv *DescribeInstanceAttributeOutput if *v == nil { - sv = &DescribeInstanceEventNotificationAttributesOutput{} + sv = &DescribeInstanceAttributeOutput{} } else { sv = *v } @@ -114626,9 +111457,106 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceEventNotificationAttribute originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceTagAttribute", t.Name.Local): + case strings.EqualFold("blockDeviceMapping", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(&sv.InstanceTagAttribute, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("disableApiTermination", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.DisableApiTermination, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ebsOptimized", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EbsOptimized, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("enaSupport", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnaSupport, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("enclaveOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEnclaveOptions(&sv.EnclaveOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("groupSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceId = ptr.String(xtv) + } + + case strings.EqualFold("instanceInitiatedShutdownBehavior", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.InstanceInitiatedShutdownBehavior, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceType", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.InstanceType, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("kernel", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.KernelId, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("productCodes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ramdisk", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.RamdiskId, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("rootDeviceName", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.RootDeviceName, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sourceDestCheck", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.SourceDestCheck, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sriovNetSupport", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.SriovNetSupport, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("userData", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.UserData, nodeDecoder); err != nil { return err } @@ -114646,13 +111574,13 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceEventNotificationAttribute return nil } -func awsEc2query_deserializeOpDocumentDescribeInstanceEventWindowsOutput(v **DescribeInstanceEventWindowsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput(v **DescribeInstanceCreditSpecificationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeInstanceEventWindowsOutput + var sv *DescribeInstanceCreditSpecificationsOutput if *v == nil { - sv = &DescribeInstanceEventWindowsOutput{} + sv = &DescribeInstanceCreditSpecificationsOutput{} } else { sv = *v } @@ -114668,9 +111596,9 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceEventWindowsOutput(v **Des originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceEventWindowSet", t.Name.Local): + case strings.EqualFold("instanceCreditSpecificationSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindowSet(&sv.InstanceEventWindows, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceCreditSpecificationList(&sv.InstanceCreditSpecifications, nodeDecoder); err != nil { return err } @@ -114701,6 +111629,48 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceEventWindowsOutput(v **Des return nil } +func awsEc2query_deserializeOpDocumentDescribeInstanceEventNotificationAttributesOutput(v **DescribeInstanceEventNotificationAttributesOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeInstanceEventNotificationAttributesOutput + if *v == nil { + sv = &DescribeInstanceEventNotificationAttributesOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceTagAttribute", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(&sv.InstanceTagAttribute, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDescribeInstancesOutput(v **DescribeInstancesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -119800,48 +116770,6 @@ func awsEc2query_deserializeOpDocumentDisassociateIamInstanceProfileOutput(v **D return nil } -func awsEc2query_deserializeOpDocumentDisassociateInstanceEventWindowOutput(v **DisassociateInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DisassociateInstanceEventWindowOutput - if *v == nil { - sv = &DisassociateInstanceEventWindowOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceEventWindow", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeOpDocumentDisassociateSubnetCidrBlockOutput(v **DisassociateSubnetCidrBlockOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -121939,67 +118867,6 @@ func awsEc2query_deserializeOpDocumentGetSerialConsoleAccessStatusOutput(v **Get return nil } -func awsEc2query_deserializeOpDocumentGetSubnetCidrReservationsOutput(v **GetSubnetCidrReservationsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *GetSubnetCidrReservationsOutput - if *v == nil { - sv = &GetSubnetCidrReservationsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("nextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - - case strings.EqualFold("subnetIpv4CidrReservationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetCidrReservationList(&sv.SubnetIpv4CidrReservations, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("subnetIpv6CidrReservationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetCidrReservationList(&sv.SubnetIpv6CidrReservations, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeOpDocumentGetTransitGatewayAttachmentPropagationsOutput(v **GetTransitGatewayAttachmentPropagationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -123352,48 +120219,6 @@ func awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(v **Mod return nil } -func awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(v **ModifyInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyInstanceEventWindowOutput - if *v == nil { - sv = &ModifyInstanceEventWindowOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceEventWindow", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(v **ModifyInstanceMetadataOptionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -126592,12 +123417,6 @@ func awsEc2query_deserializeOpDocumentUnassignIpv6AddressesOutput(v **UnassignIp return err } - case strings.EqualFold("unassignedIpv6PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpPrefixList(&sv.UnassignedIpv6Prefixes, nodeDecoder); err != nil { - return err - } - default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() diff --git a/service/ec2/generated.json b/service/ec2/generated.json index c767112a2f8..9ff8891f867 100644 --- a/service/ec2/generated.json +++ b/service/ec2/generated.json @@ -24,7 +24,6 @@ "api_op_AssociateDhcpOptions.go", "api_op_AssociateEnclaveCertificateIamRole.go", "api_op_AssociateIamInstanceProfile.go", - "api_op_AssociateInstanceEventWindow.go", "api_op_AssociateRouteTable.go", "api_op_AssociateSubnetCidrBlock.go", "api_op_AssociateTransitGatewayMulticastDomain.go", @@ -66,7 +65,6 @@ "api_op_CreateFlowLogs.go", "api_op_CreateFpgaImage.go", "api_op_CreateImage.go", - "api_op_CreateInstanceEventWindow.go", "api_op_CreateInstanceExportTask.go", "api_op_CreateInternetGateway.go", "api_op_CreateKeyPair.go", @@ -93,7 +91,6 @@ "api_op_CreateSpotDatafeedSubscription.go", "api_op_CreateStoreImageTask.go", "api_op_CreateSubnet.go", - "api_op_CreateSubnetCidrReservation.go", "api_op_CreateTags.go", "api_op_CreateTrafficMirrorFilter.go", "api_op_CreateTrafficMirrorFilterRule.go", @@ -126,7 +123,6 @@ "api_op_DeleteFleets.go", "api_op_DeleteFlowLogs.go", "api_op_DeleteFpgaImage.go", - "api_op_DeleteInstanceEventWindow.go", "api_op_DeleteInternetGateway.go", "api_op_DeleteKeyPair.go", "api_op_DeleteLaunchTemplate.go", @@ -149,7 +145,6 @@ "api_op_DeleteSnapshot.go", "api_op_DeleteSpotDatafeedSubscription.go", "api_op_DeleteSubnet.go", - "api_op_DeleteSubnetCidrReservation.go", "api_op_DeleteTags.go", "api_op_DeleteTrafficMirrorFilter.go", "api_op_DeleteTrafficMirrorFilterRule.go", @@ -221,7 +216,6 @@ "api_op_DescribeInstanceAttribute.go", "api_op_DescribeInstanceCreditSpecifications.go", "api_op_DescribeInstanceEventNotificationAttributes.go", - "api_op_DescribeInstanceEventWindows.go", "api_op_DescribeInstanceStatus.go", "api_op_DescribeInstanceTypeOfferings.go", "api_op_DescribeInstanceTypes.go", @@ -320,7 +314,6 @@ "api_op_DisassociateClientVpnTargetNetwork.go", "api_op_DisassociateEnclaveCertificateIamRole.go", "api_op_DisassociateIamInstanceProfile.go", - "api_op_DisassociateInstanceEventWindow.go", "api_op_DisassociateRouteTable.go", "api_op_DisassociateSubnetCidrBlock.go", "api_op_DisassociateTransitGatewayMulticastDomain.go", @@ -358,7 +351,6 @@ "api_op_GetPasswordData.go", "api_op_GetReservedInstancesExchangeQuote.go", "api_op_GetSerialConsoleAccessStatus.go", - "api_op_GetSubnetCidrReservations.go", "api_op_GetTransitGatewayAttachmentPropagations.go", "api_op_GetTransitGatewayMulticastDomainAssociations.go", "api_op_GetTransitGatewayPrefixListReferences.go", @@ -386,7 +378,6 @@ "api_op_ModifyInstanceCapacityReservationAttributes.go", "api_op_ModifyInstanceCreditSpecification.go", "api_op_ModifyInstanceEventStartTime.go", - "api_op_ModifyInstanceEventWindow.go", "api_op_ModifyInstanceMetadataOptions.go", "api_op_ModifyInstancePlacement.go", "api_op_ModifyLaunchTemplate.go", diff --git a/service/ec2/go.mod b/service/ec2/go.mod index 975409090ba..c627e9a056d 100644 --- a/service/ec2/go.mod +++ b/service/ec2/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ec2/go.sum b/service/ec2/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/ec2/go.sum +++ b/service/ec2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ec2/serializers.go b/service/ec2/serializers.go index bbe7207c961..4ddc3b4e4c0 100644 --- a/service/ec2/serializers.go +++ b/service/ec2/serializers.go @@ -968,62 +968,6 @@ func (m *awsEc2query_serializeOpAssociateIamInstanceProfile) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpAssociateInstanceEventWindow struct { -} - -func (*awsEc2query_serializeOpAssociateInstanceEventWindow) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpAssociateInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*AssociateInstanceEventWindowInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("AssociateInstanceEventWindow") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentAssociateInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsEc2query_serializeOpAssociateRouteTable struct { } @@ -3264,14 +3208,14 @@ func (m *awsEc2query_serializeOpCreateImage) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateInstanceEventWindow struct { +type awsEc2query_serializeOpCreateInstanceExportTask struct { } -func (*awsEc2query_serializeOpCreateInstanceEventWindow) ID() string { +func (*awsEc2query_serializeOpCreateInstanceExportTask) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateInstanceExportTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3279,7 +3223,7 @@ func (m *awsEc2query_serializeOpCreateInstanceEventWindow) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateInstanceEventWindowInput) + input, ok := in.Parameters.(*CreateInstanceExportTaskInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3296,10 +3240,10 @@ func (m *awsEc2query_serializeOpCreateInstanceEventWindow) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateInstanceEventWindow") + body.Key("Action").String("CreateInstanceExportTask") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateInstanceExportTaskInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3320,14 +3264,14 @@ func (m *awsEc2query_serializeOpCreateInstanceEventWindow) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateInstanceExportTask struct { +type awsEc2query_serializeOpCreateInternetGateway struct { } -func (*awsEc2query_serializeOpCreateInstanceExportTask) ID() string { +func (*awsEc2query_serializeOpCreateInternetGateway) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateInstanceExportTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateInternetGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3335,7 +3279,7 @@ func (m *awsEc2query_serializeOpCreateInstanceExportTask) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateInstanceExportTaskInput) + input, ok := in.Parameters.(*CreateInternetGatewayInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3352,10 +3296,10 @@ func (m *awsEc2query_serializeOpCreateInstanceExportTask) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateInstanceExportTask") + body.Key("Action").String("CreateInternetGateway") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateInstanceExportTaskInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateInternetGatewayInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3376,14 +3320,14 @@ func (m *awsEc2query_serializeOpCreateInstanceExportTask) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateInternetGateway struct { +type awsEc2query_serializeOpCreateKeyPair struct { } -func (*awsEc2query_serializeOpCreateInternetGateway) ID() string { +func (*awsEc2query_serializeOpCreateKeyPair) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateInternetGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3391,7 +3335,7 @@ func (m *awsEc2query_serializeOpCreateInternetGateway) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateInternetGatewayInput) + input, ok := in.Parameters.(*CreateKeyPairInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3408,10 +3352,10 @@ func (m *awsEc2query_serializeOpCreateInternetGateway) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateInternetGateway") + body.Key("Action").String("CreateKeyPair") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateInternetGatewayInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateKeyPairInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3432,14 +3376,14 @@ func (m *awsEc2query_serializeOpCreateInternetGateway) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateKeyPair struct { +type awsEc2query_serializeOpCreateLaunchTemplate struct { } -func (*awsEc2query_serializeOpCreateKeyPair) ID() string { +func (*awsEc2query_serializeOpCreateLaunchTemplate) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3447,7 +3391,7 @@ func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateKeyPairInput) + input, ok := in.Parameters.(*CreateLaunchTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3464,10 +3408,10 @@ func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateKeyPair") + body.Key("Action").String("CreateLaunchTemplate") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateKeyPairInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateLaunchTemplateInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3488,14 +3432,14 @@ func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateLaunchTemplate struct { +type awsEc2query_serializeOpCreateLaunchTemplateVersion struct { } -func (*awsEc2query_serializeOpCreateLaunchTemplate) ID() string { +func (*awsEc2query_serializeOpCreateLaunchTemplateVersion) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3503,7 +3447,7 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateLaunchTemplateInput) + input, ok := in.Parameters.(*CreateLaunchTemplateVersionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3520,10 +3464,10 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateLaunchTemplate") + body.Key("Action").String("CreateLaunchTemplateVersion") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateLaunchTemplateInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateLaunchTemplateVersionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3544,14 +3488,14 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateLaunchTemplateVersion struct { +type awsEc2query_serializeOpCreateLocalGatewayRoute struct { } -func (*awsEc2query_serializeOpCreateLaunchTemplateVersion) ID() string { +func (*awsEc2query_serializeOpCreateLocalGatewayRoute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3559,7 +3503,7 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateLaunchTemplateVersionInput) + input, ok := in.Parameters.(*CreateLocalGatewayRouteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3576,10 +3520,10 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateLaunchTemplateVersion") + body.Key("Action").String("CreateLocalGatewayRoute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateLaunchTemplateVersionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateLocalGatewayRouteInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3600,14 +3544,14 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateLocalGatewayRoute struct { +type awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation struct { } -func (*awsEc2query_serializeOpCreateLocalGatewayRoute) ID() string { +func (*awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3615,7 +3559,7 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateLocalGatewayRouteInput) + input, ok := in.Parameters.(*CreateLocalGatewayRouteTableVpcAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3632,10 +3576,10 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateLocalGatewayRoute") + body.Key("Action").String("CreateLocalGatewayRouteTableVpcAssociation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateLocalGatewayRouteInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateLocalGatewayRouteTableVpcAssociationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3656,14 +3600,14 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation struct { +type awsEc2query_serializeOpCreateManagedPrefixList struct { } -func (*awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) ID() string { +func (*awsEc2query_serializeOpCreateManagedPrefixList) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateManagedPrefixList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3671,7 +3615,7 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) Hand return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateLocalGatewayRouteTableVpcAssociationInput) + input, ok := in.Parameters.(*CreateManagedPrefixListInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3688,10 +3632,10 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) Hand bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateLocalGatewayRouteTableVpcAssociation") + body.Key("Action").String("CreateManagedPrefixList") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateLocalGatewayRouteTableVpcAssociationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateManagedPrefixListInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3712,14 +3656,14 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) Hand return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateManagedPrefixList struct { +type awsEc2query_serializeOpCreateNatGateway struct { } -func (*awsEc2query_serializeOpCreateManagedPrefixList) ID() string { +func (*awsEc2query_serializeOpCreateNatGateway) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateManagedPrefixList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateNatGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3727,7 +3671,7 @@ func (m *awsEc2query_serializeOpCreateManagedPrefixList) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateManagedPrefixListInput) + input, ok := in.Parameters.(*CreateNatGatewayInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3744,178 +3688,122 @@ func (m *awsEc2query_serializeOpCreateManagedPrefixList) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateManagedPrefixList") + body.Key("Action").String("CreateNatGateway") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateManagedPrefixListInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsEc2query_serializeOpCreateNatGateway struct { -} - -func (*awsEc2query_serializeOpCreateNatGateway) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpCreateNatGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateNatGatewayInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateNatGateway") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentCreateNatGatewayInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsEc2query_serializeOpCreateNetworkAcl struct { -} - -func (*awsEc2query_serializeOpCreateNetworkAcl) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpCreateNetworkAcl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateNetworkAclInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateNetworkAcl") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentCreateNetworkAclInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsEc2query_serializeOpCreateNetworkAclEntry struct { -} - -func (*awsEc2query_serializeOpCreateNetworkAclEntry) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpCreateNetworkAclEntry) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateNetworkAclEntryInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateNetworkAclEntry") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentCreateNetworkAclEntryInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateNatGatewayInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpCreateNetworkAcl struct { +} + +func (*awsEc2query_serializeOpCreateNetworkAcl) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateNetworkAcl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateNetworkAclInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateNetworkAcl") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateNetworkAclInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpCreateNetworkAclEntry struct { +} + +func (*awsEc2query_serializeOpCreateNetworkAclEntry) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateNetworkAclEntry) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateNetworkAclEntryInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateNetworkAclEntry") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateNetworkAclEntryInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -4776,62 +4664,6 @@ func (m *awsEc2query_serializeOpCreateSubnet) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateSubnetCidrReservation struct { -} - -func (*awsEc2query_serializeOpCreateSubnetCidrReservation) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpCreateSubnetCidrReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateSubnetCidrReservationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateSubnetCidrReservation") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentCreateSubnetCidrReservationInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsEc2query_serializeOpCreateTags struct { } @@ -6624,62 +6456,6 @@ func (m *awsEc2query_serializeOpDeleteFpgaImage) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteInstanceEventWindow struct { -} - -func (*awsEc2query_serializeOpDeleteInstanceEventWindow) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpDeleteInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteInstanceEventWindowInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteInstanceEventWindow") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentDeleteInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsEc2query_serializeOpDeleteInternetGateway struct { } @@ -7912,62 +7688,6 @@ func (m *awsEc2query_serializeOpDeleteSubnet) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteSubnetCidrReservation struct { -} - -func (*awsEc2query_serializeOpDeleteSubnetCidrReservation) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpDeleteSubnetCidrReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteSubnetCidrReservationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteSubnetCidrReservation") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentDeleteSubnetCidrReservationInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsEc2query_serializeOpDeleteTags struct { } @@ -11944,62 +11664,6 @@ func (m *awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes) Han return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInstanceEventWindows struct { -} - -func (*awsEc2query_serializeOpDescribeInstanceEventWindows) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpDescribeInstanceEventWindows) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DescribeInstanceEventWindowsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeInstanceEventWindows") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentDescribeInstanceEventWindowsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsEc2query_serializeOpDescribeInstances struct { } @@ -17488,62 +17152,6 @@ func (m *awsEc2query_serializeOpDisassociateIamInstanceProfile) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateInstanceEventWindow struct { -} - -func (*awsEc2query_serializeOpDisassociateInstanceEventWindow) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpDisassociateInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DisassociateInstanceEventWindowInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DisassociateInstanceEventWindow") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentDisassociateInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsEc2query_serializeOpDisassociateRouteTable struct { } @@ -19616,62 +19224,6 @@ func (m *awsEc2query_serializeOpGetSerialConsoleAccessStatus) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetSubnetCidrReservations struct { -} - -func (*awsEc2query_serializeOpGetSubnetCidrReservations) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpGetSubnetCidrReservations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetSubnetCidrReservationsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("GetSubnetCidrReservations") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentGetSubnetCidrReservationsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations struct { } @@ -21184,62 +20736,6 @@ func (m *awsEc2query_serializeOpModifyInstanceEventStartTime) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyInstanceEventWindow struct { -} - -func (*awsEc2query_serializeOpModifyInstanceEventWindow) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpModifyInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ModifyInstanceEventWindowInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyInstanceEventWindow") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentModifyInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsEc2query_serializeOpModifyInstanceMetadataOptions struct { } @@ -26815,19 +26311,6 @@ func awsEc2query_serializeDocumentCustomerGatewayIdStringList(v []string, value return nil } -func awsEc2query_serializeDocumentDedicatedHostIdList(v []string, value query.Value) error { - if len(v) == 0 { - return nil - } - array := value.Array("Item") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - func awsEc2query_serializeDocumentDeleteQueuedReservedInstancesIdList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -27974,130 +27457,6 @@ func awsEc2query_serializeDocumentInstanceCreditSpecificationRequest(v *types.In return nil } -func awsEc2query_serializeDocumentInstanceEventWindowAssociationRequest(v *types.InstanceEventWindowAssociationRequest, value query.Value) error { - object := value.Object() - _ = object - - if v.DedicatedHostIds != nil { - objectKey := object.FlatKey("DedicatedHostId") - if err := awsEc2query_serializeDocumentDedicatedHostIdList(v.DedicatedHostIds, objectKey); err != nil { - return err - } - } - - if v.InstanceIds != nil { - objectKey := object.FlatKey("InstanceId") - if err := awsEc2query_serializeDocumentInstanceIdList(v.InstanceIds, objectKey); err != nil { - return err - } - } - - if v.InstanceTags != nil { - objectKey := object.FlatKey("InstanceTag") - if err := awsEc2query_serializeDocumentTagList(v.InstanceTags, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsEc2query_serializeDocumentInstanceEventWindowDisassociationRequest(v *types.InstanceEventWindowDisassociationRequest, value query.Value) error { - object := value.Object() - _ = object - - if v.DedicatedHostIds != nil { - objectKey := object.FlatKey("DedicatedHostId") - if err := awsEc2query_serializeDocumentDedicatedHostIdList(v.DedicatedHostIds, objectKey); err != nil { - return err - } - } - - if v.InstanceIds != nil { - objectKey := object.FlatKey("InstanceId") - if err := awsEc2query_serializeDocumentInstanceIdList(v.InstanceIds, objectKey); err != nil { - return err - } - } - - if v.InstanceTags != nil { - objectKey := object.FlatKey("InstanceTag") - if err := awsEc2query_serializeDocumentTagList(v.InstanceTags, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsEc2query_serializeDocumentInstanceEventWindowIdSet(v []string, value query.Value) error { - if len(v) == 0 { - return nil - } - array := value.Array("InstanceEventWindowId") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequest(v *types.InstanceEventWindowTimeRangeRequest, value query.Value) error { - object := value.Object() - _ = object - - if v.EndHour != nil { - objectKey := object.Key("EndHour") - objectKey.Integer(*v.EndHour) - } - - if len(v.EndWeekDay) > 0 { - objectKey := object.Key("EndWeekDay") - objectKey.String(string(v.EndWeekDay)) - } - - if v.StartHour != nil { - objectKey := object.Key("StartHour") - objectKey.Integer(*v.StartHour) - } - - if len(v.StartWeekDay) > 0 { - objectKey := object.Key("StartWeekDay") - objectKey.String(string(v.StartWeekDay)) - } - - return nil -} - -func awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequestSet(v []types.InstanceEventWindowTimeRangeRequest, value query.Value) error { - if len(v) == 0 { - return nil - } - array := value.Array("Member") - - for i := range v { - av := array.Value() - if err := awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequest(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsEc2query_serializeDocumentInstanceIdList(v []string, value query.Value) error { - if len(v) == 0 { - return nil - } - array := value.Array("Item") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - func awsEc2query_serializeDocumentInstanceIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -28247,18 +27606,6 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types objectKey.String(*v.InterfaceType) } - if v.Ipv4PrefixCount != nil { - objectKey := object.Key("Ipv4PrefixCount") - objectKey.Integer(*v.Ipv4PrefixCount) - } - - if v.Ipv4Prefixes != nil { - objectKey := object.FlatKey("Ipv4Prefix") - if err := awsEc2query_serializeDocumentIpv4PrefixList(v.Ipv4Prefixes, objectKey); err != nil { - return err - } - } - if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") objectKey.Integer(*v.Ipv6AddressCount) @@ -28271,18 +27618,6 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types } } - if v.Ipv6PrefixCount != nil { - objectKey := object.Key("Ipv6PrefixCount") - objectKey.Integer(*v.Ipv6PrefixCount) - } - - if v.Ipv6Prefixes != nil { - objectKey := object.FlatKey("Ipv6Prefix") - if err := awsEc2query_serializeDocumentIpv6PrefixList(v.Ipv6Prefixes, objectKey); err != nil { - return err - } - } - if v.NetworkCardIndex != nil { objectKey := object.Key("NetworkCardIndex") objectKey.Integer(*v.NetworkCardIndex) @@ -28468,19 +27803,6 @@ func awsEc2query_serializeDocumentIpPermissionList(v []types.IpPermission, value return nil } -func awsEc2query_serializeDocumentIpPrefixList(v []string, value query.Value) error { - if len(v) == 0 { - return nil - } - array := value.Array("Item") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - func awsEc2query_serializeDocumentIpRange(v *types.IpRange, value query.Value) error { object := value.Object() _ = object @@ -28513,33 +27835,6 @@ func awsEc2query_serializeDocumentIpRangeList(v []types.IpRange, value query.Val return nil } -func awsEc2query_serializeDocumentIpv4PrefixList(v []types.Ipv4PrefixSpecificationRequest, value query.Value) error { - if len(v) == 0 { - return nil - } - array := value.Array("Item") - - for i := range v { - av := array.Value() - if err := awsEc2query_serializeDocumentIpv4PrefixSpecificationRequest(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsEc2query_serializeDocumentIpv4PrefixSpecificationRequest(v *types.Ipv4PrefixSpecificationRequest, value query.Value) error { - object := value.Object() - _ = object - - if v.Ipv4Prefix != nil { - objectKey := object.Key("Ipv4Prefix") - objectKey.String(*v.Ipv4Prefix) - } - - return nil -} - func awsEc2query_serializeDocumentIpv6AddressList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -28566,33 +27861,6 @@ func awsEc2query_serializeDocumentIpv6PoolIdList(v []string, value query.Value) return nil } -func awsEc2query_serializeDocumentIpv6PrefixList(v []types.Ipv6PrefixSpecificationRequest, value query.Value) error { - if len(v) == 0 { - return nil - } - array := value.Array("Item") - - for i := range v { - av := array.Value() - if err := awsEc2query_serializeDocumentIpv6PrefixSpecificationRequest(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsEc2query_serializeDocumentIpv6PrefixSpecificationRequest(v *types.Ipv6PrefixSpecificationRequest, value query.Value) error { - object := value.Object() - _ = object - - if v.Ipv6Prefix != nil { - objectKey := object.Key("Ipv6Prefix") - objectKey.String(*v.Ipv6Prefix) - } - - return nil -} - func awsEc2query_serializeDocumentIpv6Range(v *types.Ipv6Range, value query.Value) error { object := value.Object() _ = object @@ -29050,18 +28318,6 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific objectKey.String(*v.InterfaceType) } - if v.Ipv4PrefixCount != nil { - objectKey := object.Key("Ipv4PrefixCount") - objectKey.Integer(*v.Ipv4PrefixCount) - } - - if v.Ipv4Prefixes != nil { - objectKey := object.FlatKey("Ipv4Prefix") - if err := awsEc2query_serializeDocumentIpv4PrefixList(v.Ipv4Prefixes, objectKey); err != nil { - return err - } - } - if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") objectKey.Integer(*v.Ipv6AddressCount) @@ -29074,18 +28330,6 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific } } - if v.Ipv6PrefixCount != nil { - objectKey := object.Key("Ipv6PrefixCount") - objectKey.Integer(*v.Ipv6PrefixCount) - } - - if v.Ipv6Prefixes != nil { - objectKey := object.FlatKey("Ipv6Prefix") - if err := awsEc2query_serializeDocumentIpv6PrefixList(v.Ipv6Prefixes, objectKey); err != nil { - return err - } - } - if v.NetworkCardIndex != nil { objectKey := object.Key("NetworkCardIndex") objectKey.Integer(*v.NetworkCardIndex) @@ -33553,18 +32797,6 @@ func awsEc2query_serializeOpDocumentAssignIpv6AddressesInput(v *AssignIpv6Addres } } - if v.Ipv6PrefixCount != nil { - objectKey := object.Key("Ipv6PrefixCount") - objectKey.Integer(*v.Ipv6PrefixCount) - } - - if v.Ipv6Prefixes != nil { - objectKey := object.FlatKey("Ipv6Prefix") - if err := awsEc2query_serializeDocumentIpPrefixList(v.Ipv6Prefixes, objectKey); err != nil { - return err - } - } - if v.NetworkInterfaceId != nil { objectKey := object.Key("NetworkInterfaceId") objectKey.String(*v.NetworkInterfaceId) @@ -33582,18 +32814,6 @@ func awsEc2query_serializeOpDocumentAssignPrivateIpAddressesInput(v *AssignPriva objectKey.Boolean(*v.AllowReassignment) } - if v.Ipv4PrefixCount != nil { - objectKey := object.Key("Ipv4PrefixCount") - objectKey.Integer(*v.Ipv4PrefixCount) - } - - if v.Ipv4Prefixes != nil { - objectKey := object.FlatKey("Ipv4Prefix") - if err := awsEc2query_serializeDocumentIpPrefixList(v.Ipv4Prefixes, objectKey); err != nil { - return err - } - } - if v.NetworkInterfaceId != nil { objectKey := object.Key("NetworkInterfaceId") objectKey.String(*v.NetworkInterfaceId) @@ -33746,30 +32966,6 @@ func awsEc2query_serializeOpDocumentAssociateIamInstanceProfileInput(v *Associat return nil } -func awsEc2query_serializeOpDocumentAssociateInstanceEventWindowInput(v *AssociateInstanceEventWindowInput, value query.Value) error { - object := value.Object() - _ = object - - if v.AssociationTarget != nil { - objectKey := object.Key("AssociationTarget") - if err := awsEc2query_serializeDocumentInstanceEventWindowAssociationRequest(v.AssociationTarget, objectKey); err != nil { - return err - } - } - - if v.DryRun != nil { - objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) - } - - if v.InstanceEventWindowId != nil { - objectKey := object.Key("InstanceEventWindowId") - objectKey.String(*v.InstanceEventWindowId) - } - - return nil -} - func awsEc2query_serializeOpDocumentAssociateRouteTableInput(v *AssociateRouteTableInput, value query.Value) error { object := value.Object() _ = object @@ -35208,42 +34404,6 @@ func awsEc2query_serializeOpDocumentCreateImageInput(v *CreateImageInput, value return nil } -func awsEc2query_serializeOpDocumentCreateInstanceEventWindowInput(v *CreateInstanceEventWindowInput, value query.Value) error { - object := value.Object() - _ = object - - if v.CronExpression != nil { - objectKey := object.Key("CronExpression") - objectKey.String(*v.CronExpression) - } - - if v.DryRun != nil { - objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) - } - - if v.Name != nil { - objectKey := object.Key("Name") - objectKey.String(*v.Name) - } - - if v.TagSpecifications != nil { - objectKey := object.FlatKey("TagSpecification") - if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { - return err - } - } - - if v.TimeRanges != nil { - objectKey := object.FlatKey("TimeRange") - if err := awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequestSet(v.TimeRanges, objectKey); err != nil { - return err - } - } - - return nil -} - func awsEc2query_serializeOpDocumentCreateInstanceExportTaskInput(v *CreateInstanceExportTaskInput, value query.Value) error { object := value.Object() _ = object @@ -35719,18 +34879,6 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork objectKey.String(string(v.InterfaceType)) } - if v.Ipv4PrefixCount != nil { - objectKey := object.Key("Ipv4PrefixCount") - objectKey.Integer(*v.Ipv4PrefixCount) - } - - if v.Ipv4Prefixes != nil { - objectKey := object.FlatKey("Ipv4Prefix") - if err := awsEc2query_serializeDocumentIpv4PrefixList(v.Ipv4Prefixes, objectKey); err != nil { - return err - } - } - if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") objectKey.Integer(*v.Ipv6AddressCount) @@ -35743,18 +34891,6 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork } } - if v.Ipv6PrefixCount != nil { - objectKey := object.Key("Ipv6PrefixCount") - objectKey.Integer(*v.Ipv6PrefixCount) - } - - if v.Ipv6Prefixes != nil { - objectKey := object.FlatKey("Ipv6Prefix") - if err := awsEc2query_serializeDocumentIpv6PrefixList(v.Ipv6Prefixes, objectKey); err != nil { - return err - } - } - if v.PrivateIpAddress != nil { objectKey := object.Key("PrivateIpAddress") objectKey.String(*v.PrivateIpAddress) @@ -36216,45 +35352,6 @@ func awsEc2query_serializeOpDocumentCreateStoreImageTaskInput(v *CreateStoreImag return nil } -func awsEc2query_serializeOpDocumentCreateSubnetCidrReservationInput(v *CreateSubnetCidrReservationInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Cidr != nil { - objectKey := object.Key("Cidr") - objectKey.String(*v.Cidr) - } - - if v.Description != nil { - objectKey := object.Key("Description") - objectKey.String(*v.Description) - } - - if v.DryRun != nil { - objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) - } - - if len(v.ReservationType) > 0 { - objectKey := object.Key("ReservationType") - objectKey.String(string(v.ReservationType)) - } - - if v.SubnetId != nil { - objectKey := object.Key("SubnetId") - objectKey.String(*v.SubnetId) - } - - if v.TagSpecifications != nil { - objectKey := object.FlatKey("TagSpecification") - if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { - return err - } - } - - return nil -} - func awsEc2query_serializeOpDocumentCreateSubnetInput(v *CreateSubnetInput, value query.Value) error { object := value.Object() _ = object @@ -36848,11 +35945,6 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.String(*v.AvailabilityZone) } - if v.ClientToken != nil { - objectKey := object.Key("ClientToken") - objectKey.String(*v.ClientToken) - } - if v.DryRun != nil { objectKey := object.Key("DryRun") objectKey.Boolean(*v.DryRun) @@ -37427,28 +36519,6 @@ func awsEc2query_serializeOpDocumentDeleteFpgaImageInput(v *DeleteFpgaImageInput return nil } -func awsEc2query_serializeOpDocumentDeleteInstanceEventWindowInput(v *DeleteInstanceEventWindowInput, value query.Value) error { - object := value.Object() - _ = object - - if v.DryRun != nil { - objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) - } - - if v.ForceDelete != nil { - objectKey := object.Key("ForceDelete") - objectKey.Boolean(*v.ForceDelete) - } - - if v.InstanceEventWindowId != nil { - objectKey := object.Key("InstanceEventWindowId") - objectKey.String(*v.InstanceEventWindowId) - } - - return nil -} - func awsEc2query_serializeOpDocumentDeleteInternetGatewayInput(v *DeleteInternetGatewayInput, value query.Value) error { object := value.Object() _ = object @@ -37865,23 +36935,6 @@ func awsEc2query_serializeOpDocumentDeleteSpotDatafeedSubscriptionInput(v *Delet return nil } -func awsEc2query_serializeOpDocumentDeleteSubnetCidrReservationInput(v *DeleteSubnetCidrReservationInput, value query.Value) error { - object := value.Object() - _ = object - - if v.DryRun != nil { - objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) - } - - if v.SubnetCidrReservationId != nil { - objectKey := object.Key("SubnetCidrReservationId") - objectKey.String(*v.SubnetCidrReservationId) - } - - return nil -} - func awsEc2query_serializeOpDocumentDeleteSubnetInput(v *DeleteSubnetInput, value query.Value) error { object := value.Object() _ = object @@ -39750,42 +38803,6 @@ func awsEc2query_serializeOpDocumentDescribeInstanceEventNotificationAttributesI return nil } -func awsEc2query_serializeOpDocumentDescribeInstanceEventWindowsInput(v *DescribeInstanceEventWindowsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.DryRun != nil { - objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) - } - - if v.Filters != nil { - objectKey := object.FlatKey("Filter") - if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { - return err - } - } - - if v.InstanceEventWindowIds != nil { - objectKey := object.FlatKey("InstanceEventWindowId") - if err := awsEc2query_serializeDocumentInstanceEventWindowIdSet(v.InstanceEventWindowIds, objectKey); err != nil { - return err - } - } - - if v.MaxResults != nil { - objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - objectKey := object.Key("NextToken") - objectKey.String(*v.NextToken) - } - - return nil -} - func awsEc2query_serializeOpDocumentDescribeInstancesInput(v *DescribeInstancesInput, value query.Value) error { object := value.Object() _ = object @@ -42971,30 +41988,6 @@ func awsEc2query_serializeOpDocumentDisassociateIamInstanceProfileInput(v *Disas return nil } -func awsEc2query_serializeOpDocumentDisassociateInstanceEventWindowInput(v *DisassociateInstanceEventWindowInput, value query.Value) error { - object := value.Object() - _ = object - - if v.AssociationTarget != nil { - objectKey := object.Key("AssociationTarget") - if err := awsEc2query_serializeDocumentInstanceEventWindowDisassociationRequest(v.AssociationTarget, objectKey); err != nil { - return err - } - } - - if v.DryRun != nil { - objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) - } - - if v.InstanceEventWindowId != nil { - objectKey := object.Key("InstanceEventWindowId") - objectKey.String(*v.InstanceEventWindowId) - } - - return nil -} - func awsEc2query_serializeOpDocumentDisassociateRouteTableInput(v *DisassociateRouteTableInput, value query.Value) error { object := value.Object() _ = object @@ -43781,40 +42774,6 @@ func awsEc2query_serializeOpDocumentGetSerialConsoleAccessStatusInput(v *GetSeri return nil } -func awsEc2query_serializeOpDocumentGetSubnetCidrReservationsInput(v *GetSubnetCidrReservationsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.DryRun != nil { - objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) - } - - if v.Filters != nil { - objectKey := object.FlatKey("Filter") - if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { - return err - } - } - - if v.MaxResults != nil { - objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - objectKey := object.Key("NextToken") - objectKey.String(*v.NextToken) - } - - if v.SubnetId != nil { - objectKey := object.Key("SubnetId") - objectKey.String(*v.SubnetId) - } - - return nil -} - func awsEc2query_serializeOpDocumentGetTransitGatewayAttachmentPropagationsInput(v *GetTransitGatewayAttachmentPropagationsInput, value query.Value) error { object := value.Object() _ = object @@ -44878,40 +43837,6 @@ func awsEc2query_serializeOpDocumentModifyInstanceEventStartTimeInput(v *ModifyI return nil } -func awsEc2query_serializeOpDocumentModifyInstanceEventWindowInput(v *ModifyInstanceEventWindowInput, value query.Value) error { - object := value.Object() - _ = object - - if v.CronExpression != nil { - objectKey := object.Key("CronExpression") - objectKey.String(*v.CronExpression) - } - - if v.DryRun != nil { - objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) - } - - if v.InstanceEventWindowId != nil { - objectKey := object.Key("InstanceEventWindowId") - objectKey.String(*v.InstanceEventWindowId) - } - - if v.Name != nil { - objectKey := object.Key("Name") - objectKey.String(*v.Name) - } - - if v.TimeRanges != nil { - objectKey := object.FlatKey("TimeRange") - if err := awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequestSet(v.TimeRanges, objectKey); err != nil { - return err - } - } - - return nil -} - func awsEc2query_serializeOpDocumentModifyInstanceMetadataOptionsInput(v *ModifyInstanceMetadataOptionsInput, value query.Value) error { object := value.Object() _ = object @@ -47772,13 +46697,6 @@ func awsEc2query_serializeOpDocumentUnassignIpv6AddressesInput(v *UnassignIpv6Ad } } - if v.Ipv6Prefixes != nil { - objectKey := object.FlatKey("Ipv6Prefix") - if err := awsEc2query_serializeDocumentIpPrefixList(v.Ipv6Prefixes, objectKey); err != nil { - return err - } - } - if v.NetworkInterfaceId != nil { objectKey := object.Key("NetworkInterfaceId") objectKey.String(*v.NetworkInterfaceId) @@ -47791,13 +46709,6 @@ func awsEc2query_serializeOpDocumentUnassignPrivateIpAddressesInput(v *UnassignP object := value.Object() _ = object - if v.Ipv4Prefixes != nil { - objectKey := object.FlatKey("Ipv4Prefix") - if err := awsEc2query_serializeDocumentIpPrefixList(v.Ipv4Prefixes, objectKey); err != nil { - return err - } - } - if v.NetworkInterfaceId != nil { objectKey := object.Key("NetworkInterfaceId") objectKey.String(*v.NetworkInterfaceId) diff --git a/service/ec2/types/enums.go b/service/ec2/types/enums.go index a4d8fba6e48..381215fe4a5 100644 --- a/service/ec2/types/enums.go +++ b/service/ec2/types/enums.go @@ -1943,28 +1943,6 @@ func (InstanceAttributeName) Values() []InstanceAttributeName { } } -type InstanceEventWindowState string - -// Enum values for InstanceEventWindowState -const ( - InstanceEventWindowStateCreating InstanceEventWindowState = "creating" - InstanceEventWindowStateDeleting InstanceEventWindowState = "deleting" - InstanceEventWindowStateActive InstanceEventWindowState = "active" - InstanceEventWindowStateDeleted InstanceEventWindowState = "deleted" -) - -// Values returns all known values for InstanceEventWindowState. Note that this can -// be expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (InstanceEventWindowState) Values() []InstanceEventWindowState { - return []InstanceEventWindowState{ - "creating", - "deleting", - "active", - "deleted", - } -} - type InstanceHealthStatus string // Enum values for InstanceHealthStatus @@ -2359,8 +2337,6 @@ const ( InstanceTypeG38xlarge InstanceType = "g3.8xlarge" InstanceTypeG316xlarge InstanceType = "g3.16xlarge" InstanceTypeG3sXlarge InstanceType = "g3s.xlarge" - InstanceTypeG4adXlarge InstanceType = "g4ad.xlarge" - InstanceTypeG4ad2xlarge InstanceType = "g4ad.2xlarge" InstanceTypeG4ad4xlarge InstanceType = "g4ad.4xlarge" InstanceTypeG4ad8xlarge InstanceType = "g4ad.8xlarge" InstanceTypeG4ad16xlarge InstanceType = "g4ad.16xlarge" @@ -2774,8 +2750,6 @@ func (InstanceType) Values() []InstanceType { "g3.8xlarge", "g3.16xlarge", "g3s.xlarge", - "g4ad.xlarge", - "g4ad.2xlarge", "g4ad.4xlarge", "g4ad.8xlarge", "g4ad.16xlarge", @@ -4015,7 +3989,6 @@ const ( ResourceTypeImportImageTask ResourceType = "import-image-task" ResourceTypeImportSnapshotTask ResourceType = "import-snapshot-task" ResourceTypeInstance ResourceType = "instance" - ResourceTypeInstanceEventWindow ResourceType = "instance-event-window" ResourceTypeInternetGateway ResourceType = "internet-gateway" ResourceTypeKeyPair ResourceType = "key-pair" ResourceTypeLaunchTemplate ResourceType = "launch-template" @@ -4071,7 +4044,6 @@ func (ResourceType) Values() []ResourceType { "import-image-task", "import-snapshot-task", "instance", - "instance-event-window", "internet-gateway", "key-pair", "launch-template", @@ -4573,24 +4545,6 @@ func (SubnetCidrBlockStateCode) Values() []SubnetCidrBlockStateCode { } } -type SubnetCidrReservationType string - -// Enum values for SubnetCidrReservationType -const ( - SubnetCidrReservationTypePrefix SubnetCidrReservationType = "prefix" - SubnetCidrReservationTypeExplicit SubnetCidrReservationType = "explicit" -) - -// Values returns all known values for SubnetCidrReservationType. Note that this -// can be expanded in the future, and so it is only as up to date as the client. -// The ordering of this slice is not guaranteed to be stable across updates. -func (SubnetCidrReservationType) Values() []SubnetCidrReservationType { - return []SubnetCidrReservationType{ - "prefix", - "explicit", - } -} - type SubnetState string // Enum values for SubnetState @@ -5580,31 +5534,3 @@ func (VpnStaticRouteSource) Values() []VpnStaticRouteSource { "Static", } } - -type WeekDay string - -// Enum values for WeekDay -const ( - WeekDaySunday WeekDay = "sunday" - WeekDayMonday WeekDay = "monday" - WeekDayTuesday WeekDay = "tuesday" - WeekDayWednesday WeekDay = "wednesday" - WeekDayThursday WeekDay = "thursday" - WeekDayFriday WeekDay = "friday" - WeekDaySaturday WeekDay = "saturday" -) - -// Values returns all known values for WeekDay. Note that this can be expanded in -// the future, and so it is only as up to date as the client. The ordering of this -// slice is not guaranteed to be stable across updates. -func (WeekDay) Values() []WeekDay { - return []WeekDay{ - "sunday", - "monday", - "tuesday", - "wednesday", - "thursday", - "friday", - "saturday", - } -} diff --git a/service/ec2/types/types.go b/service/ec2/types/types.go index 90b045736d2..2171f0f3ed4 100644 --- a/service/ec2/types/types.go +++ b/service/ec2/types/types.go @@ -96,7 +96,7 @@ type Address struct { // The ID of the network interface. NetworkInterfaceId *string - // The ID of the Amazon Web Services account that owns the network interface. + // The ID of the account that owns the network interface. NetworkInterfaceOwnerId *string // The private IP address associated with the Elastic IP address. @@ -251,7 +251,7 @@ type AnalysisRouteTableRoute struct { // The destination IPv4 address, in CIDR notation. DestinationCidr *string - // The prefix of the Amazon Web Service. + // The prefix of the AWS service. DestinationPrefixListId *string // The ID of an egress-only internet gateway. @@ -733,7 +733,7 @@ type CapacityReservation struct { // was created. OutpostArn *string - // The ID of the Amazon Web Services account that owns the Capacity Reservation. + // The ID of the account that owns the Capacity Reservation. OwnerId *string // The date and time at which the Capacity Reservation was started. @@ -769,11 +769,11 @@ type CapacityReservation struct { // have one of the following tenancy settings: // // * default - The Capacity - // Reservation is created on hardware that is shared with other Amazon Web Services - // accounts. + // Reservation is created on hardware that is shared with other accounts. // - // * dedicated - The Capacity Reservation is created on single-tenant - // hardware that is dedicated to a single Amazon Web Services account. + // * + // dedicated - The Capacity Reservation is created on single-tenant hardware that + // is dedicated to a single account. Tenancy CapacityReservationTenancy // The total number of instances for which the Capacity Reservation reserves @@ -789,7 +789,7 @@ type CapacityReservationGroup struct { // The ARN of the resource group. GroupArn *string - // The ID of the Amazon Web Services account that owns the resource group. + // The ID of the account that owns the resource group. OwnerId *string noSmithyDocumentSerde @@ -931,7 +931,7 @@ type CarrierGateway struct { // The ID of the carrier gateway. CarrierGatewayId *string - // The Amazon Web Services account ID of the owner of the carrier gateway. + // The AWS account ID of the owner of the carrier gateway. OwnerId *string // The state of the carrier gateway. @@ -967,8 +967,8 @@ type CertificateAuthenticationRequest struct { } // Provides authorization for Amazon to bring a specific IP address range to a -// specific Amazon Web Services account using bring your own IP addresses (BYOIP). -// For more information, see Configuring your BYOIP address range +// specific account using bring your own IP addresses (BYOIP). For more +// information, see Configuring your BYOIP address range // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#prepare-for-byoip) // in the Amazon Elastic Compute Cloud User Guide. type CidrAuthorizationContext struct { @@ -1647,7 +1647,7 @@ type CreateVolumePermission struct { // The group to be added or removed. The possible value is all. Group PermissionGroup - // The ID of the Amazon Web Services account to be added or removed. + // The AWS account ID to be added or removed. UserId *string noSmithyDocumentSerde @@ -1656,10 +1656,10 @@ type CreateVolumePermission struct { // Describes modifications to the list of create volume permissions for a volume. type CreateVolumePermissionModifications struct { - // Adds the specified Amazon Web Services account ID or group to the list. + // Adds the specified AWS account ID or group to the list. Add []CreateVolumePermission - // Removes the specified Amazon Web Services account ID or group from the list. + // Removes the specified AWS account ID or group from the list. Remove []CreateVolumePermission noSmithyDocumentSerde @@ -1841,12 +1841,11 @@ type DescribeFastSnapshotRestoreSuccessItem struct { // The time at which fast snapshot restores entered the optimizing state. OptimizingTime *time.Time - // The Amazon Web Services owner alias that enabled fast snapshot restores on the - // snapshot. This is intended for future use. + // The AWS owner alias that enabled fast snapshot restores on the snapshot. This is + // intended for future use. OwnerAlias *string - // The ID of the Amazon Web Services account that enabled fast snapshot restores on - // the snapshot. + // The ID of the AWS account that enabled fast snapshot restores on the snapshot. OwnerId *string // The ID of the snapshot. @@ -1938,7 +1937,7 @@ type DhcpOptions struct { // The ID of the set of DHCP options. DhcpOptionsId *string - // The ID of the Amazon Web Services account that owns the DHCP options set. + // The ID of the AWS account that owns the DHCP options set. OwnerId *string // Any tags assigned to the DHCP options set. @@ -2024,12 +2023,11 @@ type DisableFastSnapshotRestoreSuccessItem struct { // The time at which fast snapshot restores entered the optimizing state. OptimizingTime *time.Time - // The Amazon Web Services owner alias that enabled fast snapshot restores on the - // snapshot. This is intended for future use. + // The AWS owner alias that enabled fast snapshot restores on the snapshot. This is + // intended for future use. OwnerAlias *string - // The ID of the Amazon Web Services account that enabled fast snapshot restores on - // the snapshot. + // The ID of the AWS account that enabled fast snapshot restores on the snapshot. OwnerId *string // The ID of the snapshot. @@ -2538,12 +2536,11 @@ type EnableFastSnapshotRestoreSuccessItem struct { // The time at which fast snapshot restores entered the optimizing state. OptimizingTime *time.Time - // The Amazon Web Services owner alias that enabled fast snapshot restores on the - // snapshot. This is intended for future use. + // The AWS owner alias that enabled fast snapshot restores on the snapshot. This is + // intended for future use. OwnerAlias *string - // The ID of the Amazon Web Services account that enabled fast snapshot restores on - // the snapshot. + // The ID of the AWS account that enabled fast snapshot restores on the snapshot. OwnerId *string // The ID of the snapshot. @@ -3688,7 +3685,7 @@ type Host struct { // group; otherwise, it is not. MemberOfServiceLinkedResourceGroup *bool - // The ID of the Amazon Web Services account that owns the Dedicated Host. + // The ID of the account that owns the Dedicated Host. OwnerId *string // The time that the Dedicated Host was released. @@ -3712,7 +3709,7 @@ type HostInstance struct { // The instance type (for example, m3.medium) of the running instance. InstanceType *string - // The ID of the Amazon Web Services account that owns the instance. + // The ID of the account that owns the instance. OwnerId *string noSmithyDocumentSerde @@ -4537,133 +4534,6 @@ type InstanceCreditSpecificationRequest struct { noSmithyDocumentSerde } -// The event window. -type InstanceEventWindow struct { - - // One or more targets associated with the event window. - AssociationTarget *InstanceEventWindowAssociationTarget - - // The cron expression defined for the event window. - CronExpression *string - - // The ID of the event window. - InstanceEventWindowId *string - - // The name of the event window. - Name *string - - // The current state of the event window. - State InstanceEventWindowState - - // The instance tags associated with the event window. - Tags []Tag - - // One or more time ranges defined for the event window. - TimeRanges []InstanceEventWindowTimeRange - - noSmithyDocumentSerde -} - -// One or more targets associated with the specified event window. Only one type of -// target (instance ID, instance tag, or Dedicated Host ID) can be associated with -// an event window. -type InstanceEventWindowAssociationRequest struct { - - // The IDs of the Dedicated Hosts to associate with the event window. - DedicatedHostIds []string - - // The IDs of the instances to associate with the event window. If the instance is - // on a Dedicated Host, you can't specify the Instance ID parameter; you must use - // the Dedicated Host ID parameter. - InstanceIds []string - - // The instance tags to associate with the event window. Any instances associated - // with the tags will be associated with the event window. - InstanceTags []Tag - - noSmithyDocumentSerde -} - -// One or more targets associated with the event window. -type InstanceEventWindowAssociationTarget struct { - - // The IDs of the Dedicated Hosts associated with the event window. - DedicatedHostIds []string - - // The IDs of the instances associated with the event window. - InstanceIds []string - - // The instance tags associated with the event window. Any instances associated - // with the tags will be associated with the event window. - Tags []Tag - - noSmithyDocumentSerde -} - -// The targets to disassociate from the specified event window. -type InstanceEventWindowDisassociationRequest struct { - - // The IDs of the Dedicated Hosts to disassociate from the event window. - DedicatedHostIds []string - - // The IDs of the instances to disassociate from the event window. - InstanceIds []string - - // The instance tags to disassociate from the event window. Any instances - // associated with the tags will be disassociated from the event window. - InstanceTags []Tag - - noSmithyDocumentSerde -} - -// The state of the event window. -type InstanceEventWindowStateChange struct { - - // The ID of the event window. - InstanceEventWindowId *string - - // The current state of the event window. - State InstanceEventWindowState - - noSmithyDocumentSerde -} - -// The start day and time and the end day and time of the time range, in UTC. -type InstanceEventWindowTimeRange struct { - - // The hour when the time range ends. - EndHour *int32 - - // The day on which the time range ends. - EndWeekDay WeekDay - - // The hour when the time range begins. - StartHour *int32 - - // The day on which the time range begins. - StartWeekDay WeekDay - - noSmithyDocumentSerde -} - -// The start day and time and the end day and time of the time range, in UTC. -type InstanceEventWindowTimeRangeRequest struct { - - // The hour when the time range ends. - EndHour *int32 - - // The day on which the time range ends. - EndWeekDay WeekDay - - // The hour when the time range begins. - StartHour *int32 - - // The day on which the time range begins. - StartWeekDay WeekDay - - noSmithyDocumentSerde -} - // Describes an instance to export. type InstanceExportDetails struct { @@ -4690,15 +4560,6 @@ type InstanceFamilyCreditSpecification struct { noSmithyDocumentSerde } -// Information about an IPv4 delegated prefix. -type InstanceIpv4Prefix struct { - - // One or more IPv4 delegated prefixes assigned to the network interface. - Ipv4Prefix *string - - noSmithyDocumentSerde -} - // Describes an IPv6 address. type InstanceIpv6Address struct { @@ -4717,15 +4578,6 @@ type InstanceIpv6AddressRequest struct { noSmithyDocumentSerde } -// Information about an IPv6 delegated prefix. -type InstanceIpv6Prefix struct { - - // One or more IPv6 delegated prefixes assigned to the network interface. - Ipv6Prefix *string - - noSmithyDocumentSerde -} - // Describes the market (purchasing) option for the instances. type InstanceMarketOptionsRequest struct { @@ -4831,22 +4683,16 @@ type InstanceNetworkInterface struct { // Describes the type of network interface. Valid values: interface | efa | trunk InterfaceType *string - // The IPv4 delegated prefixes that are assigned to the network interface. - Ipv4Prefixes []InstanceIpv4Prefix - // One or more IPv6 addresses associated with the network interface. Ipv6Addresses []InstanceIpv6Address - // The IPv6 delegated prefixes that are assigned to the network interface. - Ipv6Prefixes []InstanceIpv6Prefix - // The MAC address. MacAddress *string // The ID of the network interface. NetworkInterfaceId *string - // The ID of the Amazon Web Services account that created the network interface. + // The ID of the account that created the network interface. OwnerId *string // The private DNS name. @@ -4956,14 +4802,6 @@ type InstanceNetworkInterfaceSpecification struct { // Elastic Compute Cloud User Guide. Valid values: interface | efa InterfaceType *string - // The number of IPv4 delegated prefixes to be automatically assigned to the - // network interface. You cannot use this option if you use the Ipv4Prefix option. - Ipv4PrefixCount *int32 - - // One or more IPv4 delegated prefixes to be assigned to the network interface. You - // cannot use this option if you use the Ipv4PrefixCount option. - Ipv4Prefixes []Ipv4PrefixSpecificationRequest - // A number of IPv6 addresses to assign to the network interface. Amazon EC2 // chooses the IPv6 addresses from the range of the subnet. You cannot specify this // option and the option to assign specific IPv6 addresses in the same request. You @@ -4977,14 +4815,6 @@ type InstanceNetworkInterfaceSpecification struct { // number of instances to launch. Ipv6Addresses []InstanceIpv6Address - // The number of IPv6 delegated prefixes to be automatically assigned to the - // network interface. You cannot use this option if you use the Ipv6Prefix option. - Ipv6PrefixCount *int32 - - // One or more IPv6 delegated prefixes to be assigned to the network interface. You - // cannot use this option if you use the Ipv6PrefixCount option. - Ipv6Prefixes []Ipv6PrefixSpecificationRequest - // The index of the network card. Some instance types support multiple network // cards. The primary network interface must be assigned to network card index 0. // The default is network card index 0. @@ -5323,12 +5153,10 @@ type InstanceTypeOffering struct { // Information about the Capacity Reservation usage. type InstanceUsage struct { - // The ID of the Amazon Web Services account that is making use of the Capacity - // Reservation. + // The ID of the account that is making use of the Capacity Reservation. AccountId *string - // The number of instances the Amazon Web Services account currently has in the - // Capacity Reservation. + // The number of instances the account currently has in the Capacity Reservation. UsedInstanceCount *int32 noSmithyDocumentSerde @@ -5352,7 +5180,7 @@ type InternetGateway struct { // The ID of the internet gateway. InternetGatewayId *string - // The ID of the Amazon Web Services account that owns the internet gateway. + // The ID of the AWS account that owns the internet gateway. OwnerId *string // Any tags assigned to the internet gateway. @@ -5427,37 +5255,6 @@ type IpRange struct { noSmithyDocumentSerde } -// Describes an IPv4 Prefix Delegation. -type Ipv4PrefixSpecification struct { - - // The IPv4 Prefix Delegation prefix. For information, see Prefix Delegation - // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation) in - // the Amazon Elastic Compute Cloud User Guide. - Ipv4Prefix *string - - noSmithyDocumentSerde -} - -// Describes the IPv4 Prefix Delegation option for a network interface. -type Ipv4PrefixSpecificationRequest struct { - - // The IPv4 Prefix Delegation prefix. For information, see Prefix Delegation - // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation) in - // the Amazon Elastic Compute Cloud User Guide. - Ipv4Prefix *string - - noSmithyDocumentSerde -} - -// Information about the IPv4 delegated prefixes assigned to a network interface. -type Ipv4PrefixSpecificationResponse struct { - - // One or more IPv4 delegated prefixes assigned to the network interface. - Ipv4Prefix *string - - noSmithyDocumentSerde -} - // Describes an IPv6 CIDR block association. type Ipv6CidrAssociation struct { @@ -5497,33 +5294,6 @@ type Ipv6Pool struct { noSmithyDocumentSerde } -// Describes the IPv6 Prefix Delegation. -type Ipv6PrefixSpecification struct { - - // The IPv6 Prefix Delegation prefix. - Ipv6Prefix *string - - noSmithyDocumentSerde -} - -// Describes the IPv4 Prefix Delegation option for a network interface. -type Ipv6PrefixSpecificationRequest struct { - - // The IPv6 Prefix Delegation prefix. - Ipv6Prefix *string - - noSmithyDocumentSerde -} - -// Information about the IPv6 delegated prefixes assigned to a network interface. -type Ipv6PrefixSpecificationResponse struct { - - // One or more IPv6 delegated prefixes assigned to the network interface. - Ipv6Prefix *string - - noSmithyDocumentSerde -} - // [EC2-VPC only] Describes an IPv6 range. type Ipv6Range struct { @@ -5832,7 +5602,7 @@ type LaunchTemplateEbsBlockDevice struct { // The number of I/O operations per second (IOPS) that the volume supports. Iops *int32 - // The ARN of the Key Management Service (KMS) CMK used for encryption. + // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption. KmsKeyId *string // The ID of the snapshot. @@ -5882,7 +5652,8 @@ type LaunchTemplateEbsBlockDeviceRequest struct { // for gp2, st1, sc1, or standard volumes. Iops *int32 - // The ARN of the symmetric Key Management Service (KMS) CMK used for encryption. + // The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for + // encryption. KmsKeyId *string // The ID of the snapshot. @@ -5944,26 +5715,23 @@ type LaunchTemplateElasticInferenceAcceleratorResponse struct { noSmithyDocumentSerde } -// Indicates whether the instance is enabled for Amazon Web Services Nitro -// Enclaves. +// Indicates whether the instance is enabled for AWS Nitro Enclaves. type LaunchTemplateEnclaveOptions struct { - // If this parameter is set to true, the instance is enabled for Amazon Web - // Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web Services - // Nitro Enclaves. + // If this parameter is set to true, the instance is enabled for AWS Nitro + // Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves. Enabled *bool noSmithyDocumentSerde } -// Indicates whether the instance is enabled for Amazon Web Services Nitro -// Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? -// (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the -// Amazon Web Services Nitro Enclaves User Guide. +// Indicates whether the instance is enabled for AWS Nitro Enclaves. For more +// information, see What is AWS Nitro Enclaves? +// (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the AWS +// Nitro Enclaves User Guide. type LaunchTemplateEnclaveOptionsRequest struct { - // To enable the instance for Amazon Web Services Nitro Enclaves, set this - // parameter to true. + // To enable the instance for AWS Nitro Enclaves, set this parameter to true. Enabled *bool noSmithyDocumentSerde @@ -6115,7 +5883,7 @@ type LaunchTemplateInstanceNetworkInterfaceSpecification struct { // want to associate a Carrier IP address with the network interface. For more // information about Carrier IP addresses, see Carrier IP addresses // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) - // in the Wavelength Developer Guide. + // in the AWS Wavelength Developer Guide. AssociateCarrierIpAddress *bool // Indicates whether to associate a public IPv4 address with eth0 for a new network @@ -6138,26 +5906,12 @@ type LaunchTemplateInstanceNetworkInterfaceSpecification struct { // The type of network interface. InterfaceType *string - // The number of IPv4 delegated prefixes that AWS automatically assigned to the - // network interface. - Ipv4PrefixCount *int32 - - // One or more IPv4 delegated prefixes assigned to the network interface. - Ipv4Prefixes []Ipv4PrefixSpecificationResponse - // The number of IPv6 addresses for the network interface. Ipv6AddressCount *int32 // The IPv6 addresses for the network interface. Ipv6Addresses []InstanceIpv6Address - // The number of IPv6 delegated prefixes that AWS automatically assigned to the - // network interface. - Ipv6PrefixCount *int32 - - // One or more IPv6 delegated prefixes assigned to the network interface. - Ipv6Prefixes []Ipv6PrefixSpecificationResponse - // The index of the network card. NetworkCardIndex *int32 @@ -6187,7 +5941,7 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // Carrier IP address with the network interface. For more information about // Carrier IP addresses, see Carrier IP addresses // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) - // in the Wavelength Developer Guide. + // in the AWS Wavelength Developer Guide. AssociateCarrierIpAddress *bool // Associates a public IPv4 address with eth0 for a new network interface. @@ -6213,14 +5967,6 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // interface or omit this parameter. Valid values: interface | efa InterfaceType *string - // The number of IPv4 delegated prefixes to be automatically assigned to the - // network interface. You cannot use this option if you use the Ipv4Prefix option. - Ipv4PrefixCount *int32 - - // One or more IPv4 delegated prefixes to be assigned to the network interface. You - // cannot use this option if you use the Ipv4PrefixCount option. - Ipv4Prefixes []Ipv4PrefixSpecificationRequest - // The number of IPv6 addresses to assign to a network interface. Amazon EC2 // automatically selects the IPv6 addresses from the subnet range. You can't use // this option if specifying specific IPv6 addresses. @@ -6231,14 +5977,6 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // addresses. Ipv6Addresses []InstanceIpv6AddressRequest - // The number of IPv6 delegated prefixes to be automatically assigned to the - // network interface. You cannot use this option if you use the Ipv6Prefix option. - Ipv6PrefixCount *int32 - - // One or more IPv6 delegated prefixes to be assigned to the network interface. You - // cannot use this option if you use the Ipv6PrefixCount option. - Ipv6Prefixes []Ipv6PrefixSpecificationRequest - // The index of the network card. Some instance types support multiple network // cards. The primary network interface must be assigned to network card index 0. // The default is network card index 0. @@ -7136,7 +6874,7 @@ type NetworkAcl struct { // The ID of the network ACL. NetworkAclId *string - // The ID of the Amazon Web Services account that owns the network ACL. + // The ID of the AWS account that owns the network ACL. OwnerId *string // Any tags assigned to the network ACL. @@ -7261,8 +6999,8 @@ type NetworkInsightsAnalysis struct { // (https://docs.aws.amazon.com/vpc/latest/reachability/explanation-codes.html). Explanations []Explanation - // The Amazon Resource Names (ARN) of the Amazon Web Services resources that the - // path must traverse. + // The Amazon Resource Names (ARN) of the AWS resources that the path must + // traverse. FilterInArns []string // The components in the path from source to destination. @@ -7304,11 +7042,10 @@ type NetworkInsightsPath struct { // The time stamp when the path was created. CreatedDate *time.Time - // The Amazon Web Services resource that is the destination of the path. + // The AWS resource that is the destination of the path. Destination *string - // The IP address of the Amazon Web Services resource that is the destination of - // the path. + // The IP address of the AWS resource that is the destination of the path. DestinationIp *string // The destination port. @@ -7323,11 +7060,10 @@ type NetworkInsightsPath struct { // The protocol. Protocol Protocol - // The Amazon Web Services resource that is the source of the path. + // The AWS resource that is the source of the path. Source *string - // The IP address of the Amazon Web Services resource that is the source of the - // path. + // The IP address of the AWS resource that is the source of the path. SourceIp *string // The tags associated with the path. @@ -7358,15 +7094,9 @@ type NetworkInterface struct { // The type of network interface. InterfaceType NetworkInterfaceType - // The IPv4 Prefix Delegation prefixes that are assigned to the network interface. - Ipv4Prefixes []Ipv4PrefixSpecification - // The IPv6 addresses associated with the network interface. Ipv6Addresses []NetworkInterfaceIpv6Address - // The IPv6 Prefix Delegation prefixes that are assigned to the network interface. - Ipv6Prefixes []Ipv6PrefixSpecification - // The MAC address. MacAddress *string @@ -7376,7 +7106,7 @@ type NetworkInterface struct { // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string - // The Amazon Web Services account ID of the owner of the network interface. + // The account ID of the owner of the network interface. OwnerId *string // The private DNS name. @@ -7388,8 +7118,8 @@ type NetworkInterface struct { // The private IPv4 addresses associated with the network interface. PrivateIpAddresses []NetworkInterfacePrivateIpAddress - // The alias or Amazon Web Services account ID of the principal or service that - // created the network interface. + // The alias or account ID of the principal or service that created the network + // interface. RequesterId *string // Indicates whether the network interface is being managed by Amazon Web Services. @@ -7463,7 +7193,7 @@ type NetworkInterfaceAttachment struct { // The ID of the instance. InstanceId *string - // The Amazon Web Services account ID of the owner of the instance. + // The account ID of the owner of the instance. InstanceOwnerId *string // The index of the network card. @@ -7500,7 +7230,7 @@ type NetworkInterfaceIpv6Address struct { // Describes a permission for a network interface. type NetworkInterfacePermission struct { - // The Amazon Web Services account ID. + // The account ID. AwsAccountId *string // The Amazon Web Service. @@ -8346,7 +8076,7 @@ type ReferencedSecurityGroup struct { // The status of a VPC peering connection, if applicable. PeeringStatus *string - // The Amazon Web Services account ID. + // The account ID. UserId *string // The ID of the VPC. @@ -8491,17 +8221,17 @@ type RequestLaunchTemplateData struct { // The elastic inference accelerator for the instance. ElasticInferenceAccelerators []LaunchTemplateElasticInferenceAccelerator - // Indicates whether the instance is enabled for Amazon Web Services Nitro - // Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? - // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the - // Amazon Web Services Nitro Enclaves User Guide. You can't enable Amazon Web - // Services Nitro Enclaves and hibernation on the same instance. + // Indicates whether the instance is enabled for AWS Nitro Enclaves. For more + // information, see What is AWS Nitro Enclaves? + // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the AWS + // Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation + // on the same instance. EnclaveOptions *LaunchTemplateEnclaveOptionsRequest // Indicates whether an instance is enabled for hibernation. This parameter is // valid only if the instance meets the hibernation prerequisites // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). - // For more information, see Hibernate your instance + // For more information, see Hibernate Your Instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the // Amazon Elastic Compute Cloud User Guide. HibernationOptions *LaunchTemplateHibernationOptionsRequest @@ -8543,7 +8273,7 @@ type RequestLaunchTemplateData struct { LicenseSpecifications []LaunchTemplateLicenseConfigurationRequest // The metadata options for the instance. For more information, see Instance - // metadata and user data + // Metadata and User Data // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) // in the Amazon Elastic Compute Cloud User Guide. MetadataOptions *LaunchTemplateInstanceMetadataOptionsRequest @@ -8670,11 +8400,11 @@ type Reservation struct { // The instances. Instances []Instance - // The ID of the Amazon Web Services account that owns the reservation. + // The ID of the account that owns the reservation. OwnerId *string // The ID of the requester that launched the instances on your behalf (for example, - // Amazon Web Services Management Console or Auto Scaling). + // Management Console or Auto Scaling). RequesterId *string // The ID of the reservation. @@ -8990,7 +8720,7 @@ type ResponseLaunchTemplateData struct { CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationResponse // The CPU options for the instance. For more information, see Optimizing CPU - // options + // Options // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) // in the Amazon Elastic Compute Cloud User Guide. CpuOptions *LaunchTemplateCpuOptions @@ -9011,12 +8741,11 @@ type ResponseLaunchTemplateData struct { // The elastic inference accelerator for the instance. ElasticInferenceAccelerators []LaunchTemplateElasticInferenceAcceleratorResponse - // Indicates whether the instance is enabled for Amazon Web Services Nitro - // Enclaves. + // Indicates whether the instance is enabled for AWS Nitro Enclaves. EnclaveOptions *LaunchTemplateEnclaveOptions // Indicates whether an instance is configured for hibernation. For more - // information, see Hibernate your instance + // information, see Hibernate Your Instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the // Amazon Elastic Compute Cloud User Guide. HibernationOptions *LaunchTemplateHibernationOptions @@ -9047,7 +8776,7 @@ type ResponseLaunchTemplateData struct { LicenseSpecifications []LaunchTemplateLicenseConfiguration // The metadata options for the instance. For more information, see Instance - // metadata and user data + // Metadata and User Data // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) // in the Amazon Elastic Compute Cloud User Guide. MetadataOptions *LaunchTemplateInstanceMetadataOptions @@ -9091,7 +8820,7 @@ type Route struct { // The IPv6 CIDR block used for the destination match. DestinationIpv6CidrBlock *string - // The prefix of the Amazon Web Service. + // The prefix of the AWS service. DestinationPrefixListId *string // The ID of the egress-only internet gateway. @@ -9103,7 +8832,7 @@ type Route struct { // The ID of a NAT instance in your VPC. InstanceId *string - // The ID of Amazon Web Services account that owns the instance. + // The AWS account ID of the owner of the instance. InstanceOwnerId *string // The ID of the local gateway. @@ -9147,7 +8876,7 @@ type RouteTable struct { // The associations between the route table and one or more subnets or a gateway. Associations []RouteTableAssociation - // The ID of the Amazon Web Services account that owns the route table. + // The ID of the AWS account that owns the route table. OwnerId *string // Any virtual private gateway (VGW) propagating routes. @@ -9709,7 +9438,7 @@ type SecurityGroupRule struct { // The ID of the security group. GroupId *string - // The ID of the Amazon Web Services account that owns the security group. + // The ID of the account that owns the security group. GroupOwnerId *string // The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers @@ -9970,22 +9699,22 @@ type Snapshot struct { // Indicates whether the snapshot is encrypted. Encrypted *bool - // The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that - // was used to protect the volume encryption key for the parent volume. + // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) + // customer master key (CMK) that was used to protect the volume encryption key for + // the parent volume. KmsKeyId *string - // The ARN of the Outpost on which the snapshot is stored. For more information, - // see Amazon EBS local snapshots on Outposts + // The ARN of the AWS Outpost on which the snapshot is stored. For more + // information, see EBS Local Snapshot on Outposts // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html) in // the Amazon Elastic Compute Cloud User Guide. OutpostArn *string - // The Amazon Web Services owner alias, from an Amazon-maintained list (amazon). - // This is not the user-configured Amazon Web Services account alias set using the - // IAM console. + // The AWS owner alias, from an Amazon-maintained list (amazon). This is not the + // user-configured AWS account alias set using the IAM console. OwnerAlias *string - // The ID of the Amazon Web Services account that owns the EBS snapshot. + // The AWS account ID of the EBS snapshot owner. OwnerId *string // The progress of the snapshot, as a percentage. @@ -10002,7 +9731,7 @@ type Snapshot struct { State SnapshotState // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy - // operation fails (for example, if the proper Key Management Service (KMS) + // operation fails (for example, if the proper AWS Key Management Service (AWS KMS) // permissions are not obtained) this field displays error state details to help // you diagnose why the error occurred. This parameter is only returned by // DescribeSnapshots. @@ -10087,8 +9816,8 @@ type SnapshotInfo struct { // Indicates whether the snapshot is encrypted. Encrypted *bool - // The ARN of the Outpost on which the snapshot is stored. For more information, - // see Amazon EBS local snapshots on Outposts + // The ARN of the AWS Outpost on which the snapshot is stored. For more + // information, see EBS Local Snapshot on Outposts // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html) in // the Amazon Elastic Compute Cloud User Guide. OutpostArn *string @@ -10189,7 +9918,7 @@ type SpotDatafeedSubscription struct { // The fault codes for the Spot Instance request, if any. Fault *SpotInstanceStateFault - // The Amazon Web Services account ID of the account. + // The account ID of the account. OwnerId *string // The prefix for the data feed files. @@ -10652,7 +10381,16 @@ type SpotMaintenanceStrategies struct { // The options for Spot Instances. type SpotMarketOptions struct { - // Deprecated. + // The required duration for the Spot Instances (also known as Spot blocks), in + // minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). + // The duration period starts as soon as your Spot Instance receives its instance + // ID. At the end of the duration period, Amazon EC2 marks the Spot Instance for + // termination and provides a Spot Instance termination notice, which gives the + // instance a two-minute warning before it terminates. You can't specify an + // Availability Zone group or a launch group if you specify a duration. New + // accounts or accounts with no previous billing history with Amazon Web Services + // are not eligible for Spot Instances with a defined duration (also known as Spot + // blocks). BlockDurationMinutes *int32 // The behavior when a Spot Instance is interrupted. The default is terminate. @@ -11039,7 +10777,7 @@ type Subnet struct { // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string - // The ID of the Amazon Web Services account that owns the subnet. + // The ID of the AWS account that owns the subnet. OwnerId *string // The current state of the subnet. @@ -11084,33 +10822,6 @@ type SubnetCidrBlockState struct { noSmithyDocumentSerde } -// Describes a subnet CIDR reservation. -type SubnetCidrReservation struct { - - // The CIDR that has been reserved. - Cidr *string - - // The description assigned to the subnet CIDR reservation. - Description *string - - // The ID of the account that owns the subnet CIDR reservation. - OwnerId *string - - // The type of reservation. - ReservationType SubnetCidrReservationType - - // The ID of the subnet CIDR reservation. - SubnetCidrReservationId *string - - // The ID of the subnet. - SubnetId *string - - // The tags assigned to the subnet CIDR reservation. - Tags []Tag - - noSmithyDocumentSerde -} - // Describes an IPv6 CIDR block associated with a subnet. type SubnetIpv6CidrBlockAssociation struct { @@ -11185,18 +10896,17 @@ type TagSpecification struct { // customer-gateway | dedicated-host | dhcp-options | egress-only-internet-gateway // | elastic-ip | elastic-gpu | export-image-task | export-instance-task | fleet | // fpga-image | host-reservation | image| import-image-task | import-snapshot-task - // | instance | instance-event-window | internet-gateway | ipv4pool-ec2 | - // ipv6pool-ec2 | key-pair | launch-template | - // local-gateway-route-table-vpc-association | placement-group | prefix-list | - // natgateway | network-acl | network-interface | reserved-instances |route-table | - // security-group| snapshot | spot-fleet-request | spot-instances-request | - // snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | - // traffic-mirror-target | transit-gateway | transit-gateway-attachment | - // transit-gateway-multicast-domain | transit-gateway-route-table | volume |vpc | - // vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | - // vpc-endpoint-service (for Amazon Web Services PrivateLink) | vpc-flow-log | - // vpn-connection | vpn-gateway. To tag a resource after it has been created, see - // CreateTags + // | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | + // launch-template | local-gateway-route-table-vpc-association | placement-group | + // prefix-list | natgateway | network-acl | network-interface | reserved-instances + // |route-table | security-group| snapshot | spot-fleet-request | + // spot-instances-request | snapshot | subnet | traffic-mirror-filter | + // traffic-mirror-session | traffic-mirror-target | transit-gateway | + // transit-gateway-attachment | transit-gateway-multicast-domain | + // transit-gateway-route-table | volume |vpc | vpc-peering-connection | + // vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for + // AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway. To tag a + // resource after it has been created, see CreateTags // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). ResourceType ResourceType @@ -12410,7 +12120,7 @@ type UnsuccessfulItem struct { } // Information about the error that occurred. For more information about errors, -// see Error codes +// see Error Codes // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html). type UnsuccessfulItemError struct { @@ -12594,8 +12304,9 @@ type Volume struct { // which the volume accumulates I/O credits for bursting. Iops *int32 - // The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that - // was used to protect the volume encryption key for the volume. + // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) + // customer master key (CMK) that was used to protect the volume encryption key for + // the volume. KmsKeyId *string // Indicates whether Amazon EBS Multi-Attach is enabled. @@ -12845,7 +12556,7 @@ type Vpc struct { // Indicates whether the VPC is the default VPC. IsDefault *bool - // The ID of the Amazon Web Services account that owns the VPC. + // The ID of the AWS account that owns the VPC. OwnerId *string // The current state of the VPC. @@ -13094,7 +12805,7 @@ type VpcPeeringConnectionVpcInfo struct { // The IPv6 CIDR block for the VPC. Ipv6CidrBlockSet []Ipv6CidrBlock - // The ID of the Amazon Web Services account that owns the VPC. + // The AWS account ID of the VPC owner. OwnerId *string // Information about the VPC peering connection options for the accepter or diff --git a/service/ec2/validators.go b/service/ec2/validators.go index 59c0ef78178..b310b2cb6ed 100644 --- a/service/ec2/validators.go +++ b/service/ec2/validators.go @@ -250,26 +250,6 @@ func (m *validateOpAssociateIamInstanceProfile) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } -type validateOpAssociateInstanceEventWindow struct { -} - -func (*validateOpAssociateInstanceEventWindow) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpAssociateInstanceEventWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*AssociateInstanceEventWindowInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpAssociateInstanceEventWindowInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpAssociateRouteTable struct { } @@ -1450,26 +1430,6 @@ func (m *validateOpCreateStoreImageTask) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } -type validateOpCreateSubnetCidrReservation struct { -} - -func (*validateOpCreateSubnetCidrReservation) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateSubnetCidrReservation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateSubnetCidrReservationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateSubnetCidrReservationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpCreateSubnet struct { } @@ -2030,26 +1990,6 @@ func (m *validateOpDeleteFpgaImage) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } -type validateOpDeleteInstanceEventWindow struct { -} - -func (*validateOpDeleteInstanceEventWindow) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteInstanceEventWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteInstanceEventWindowInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteInstanceEventWindowInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpDeleteInternetGateway struct { } @@ -2390,26 +2330,6 @@ func (m *validateOpDeleteSnapshot) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } -type validateOpDeleteSubnetCidrReservation struct { -} - -func (*validateOpDeleteSubnetCidrReservation) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteSubnetCidrReservation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteSubnetCidrReservationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteSubnetCidrReservationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpDeleteSubnet struct { } @@ -3590,26 +3510,6 @@ func (m *validateOpDisassociateIamInstanceProfile) HandleInitialize(ctx context. return next.HandleInitialize(ctx, in) } -type validateOpDisassociateInstanceEventWindow struct { -} - -func (*validateOpDisassociateInstanceEventWindow) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDisassociateInstanceEventWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DisassociateInstanceEventWindowInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDisassociateInstanceEventWindowInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpDisassociateRouteTable struct { } @@ -4190,26 +4090,6 @@ func (m *validateOpGetReservedInstancesExchangeQuote) HandleInitialize(ctx conte return next.HandleInitialize(ctx, in) } -type validateOpGetSubnetCidrReservations struct { -} - -func (*validateOpGetSubnetCidrReservations) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetSubnetCidrReservations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetSubnetCidrReservationsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetSubnetCidrReservationsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpGetTransitGatewayAttachmentPropagations struct { } @@ -4690,26 +4570,6 @@ func (m *validateOpModifyInstanceEventStartTime) HandleInitialize(ctx context.Co return next.HandleInitialize(ctx, in) } -type validateOpModifyInstanceEventWindow struct { -} - -func (*validateOpModifyInstanceEventWindow) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpModifyInstanceEventWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ModifyInstanceEventWindowInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpModifyInstanceEventWindowInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpModifyInstanceMetadataOptions struct { } @@ -6258,10 +6118,6 @@ func addOpAssociateIamInstanceProfileValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpAssociateIamInstanceProfile{}, middleware.After) } -func addOpAssociateInstanceEventWindowValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpAssociateInstanceEventWindow{}, middleware.After) -} - func addOpAssociateRouteTableValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateRouteTable{}, middleware.After) } @@ -6498,10 +6354,6 @@ func addOpCreateStoreImageTaskValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpCreateStoreImageTask{}, middleware.After) } -func addOpCreateSubnetCidrReservationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateSubnetCidrReservation{}, middleware.After) -} - func addOpCreateSubnetValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateSubnet{}, middleware.After) } @@ -6614,10 +6466,6 @@ func addOpDeleteFpgaImageValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteFpgaImage{}, middleware.After) } -func addOpDeleteInstanceEventWindowValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteInstanceEventWindow{}, middleware.After) -} - func addOpDeleteInternetGatewayValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteInternetGateway{}, middleware.After) } @@ -6686,10 +6534,6 @@ func addOpDeleteSnapshotValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteSnapshot{}, middleware.After) } -func addOpDeleteSubnetCidrReservationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteSubnetCidrReservation{}, middleware.After) -} - func addOpDeleteSubnetValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteSubnet{}, middleware.After) } @@ -6926,10 +6770,6 @@ func addOpDisassociateIamInstanceProfileValidationMiddleware(stack *middleware.S return stack.Initialize.Add(&validateOpDisassociateIamInstanceProfile{}, middleware.After) } -func addOpDisassociateInstanceEventWindowValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDisassociateInstanceEventWindow{}, middleware.After) -} - func addOpDisassociateRouteTableValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateRouteTable{}, middleware.After) } @@ -7046,10 +6886,6 @@ func addOpGetReservedInstancesExchangeQuoteValidationMiddleware(stack *middlewar return stack.Initialize.Add(&validateOpGetReservedInstancesExchangeQuote{}, middleware.After) } -func addOpGetSubnetCidrReservationsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetSubnetCidrReservations{}, middleware.After) -} - func addOpGetTransitGatewayAttachmentPropagationsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetTransitGatewayAttachmentPropagations{}, middleware.After) } @@ -7146,10 +6982,6 @@ func addOpModifyInstanceEventStartTimeValidationMiddleware(stack *middleware.Sta return stack.Initialize.Add(&validateOpModifyInstanceEventStartTime{}, middleware.After) } -func addOpModifyInstanceEventWindowValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpModifyInstanceEventWindow{}, middleware.After) -} - func addOpModifyInstanceMetadataOptionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpModifyInstanceMetadataOptions{}, middleware.After) } @@ -8215,24 +8047,6 @@ func validateOpAssociateIamInstanceProfileInput(v *AssociateIamInstanceProfileIn } } -func validateOpAssociateInstanceEventWindowInput(v *AssociateInstanceEventWindowInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AssociateInstanceEventWindowInput"} - if v.InstanceEventWindowId == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstanceEventWindowId")) - } - if v.AssociationTarget == nil { - invalidParams.Add(smithy.NewErrParamRequired("AssociationTarget")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpAssociateRouteTableInput(v *AssociateRouteTableInput) error { if v == nil { return nil @@ -9294,38 +9108,17 @@ func validateOpCreateStoreImageTaskInput(v *CreateStoreImageTaskInput) error { } } -func validateOpCreateSubnetCidrReservationInput(v *CreateSubnetCidrReservationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateSubnetCidrReservationInput"} - if v.SubnetId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SubnetId")) - } - if v.Cidr == nil { - invalidParams.Add(smithy.NewErrParamRequired("Cidr")) - } - if len(v.ReservationType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("ReservationType")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpCreateSubnetInput(v *CreateSubnetInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateSubnetInput"} - if v.VpcId == nil { - invalidParams.Add(smithy.NewErrParamRequired("VpcId")) - } if v.CidrBlock == nil { invalidParams.Add(smithy.NewErrParamRequired("CidrBlock")) } + if v.VpcId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VpcId")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -9817,21 +9610,6 @@ func validateOpDeleteFpgaImageInput(v *DeleteFpgaImageInput) error { } } -func validateOpDeleteInstanceEventWindowInput(v *DeleteInstanceEventWindowInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteInstanceEventWindowInput"} - if v.InstanceEventWindowId == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstanceEventWindowId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpDeleteInternetGatewayInput(v *DeleteInternetGatewayInput) error { if v == nil { return nil @@ -10096,21 +9874,6 @@ func validateOpDeleteSnapshotInput(v *DeleteSnapshotInput) error { } } -func validateOpDeleteSubnetCidrReservationInput(v *DeleteSubnetCidrReservationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteSubnetCidrReservationInput"} - if v.SubnetCidrReservationId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SubnetCidrReservationId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpDeleteSubnetInput(v *DeleteSubnetInput) error { if v == nil { return nil @@ -11057,24 +10820,6 @@ func validateOpDisassociateIamInstanceProfileInput(v *DisassociateIamInstancePro } } -func validateOpDisassociateInstanceEventWindowInput(v *DisassociateInstanceEventWindowInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DisassociateInstanceEventWindowInput"} - if v.InstanceEventWindowId == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstanceEventWindowId")) - } - if v.AssociationTarget == nil { - invalidParams.Add(smithy.NewErrParamRequired("AssociationTarget")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpDisassociateRouteTableInput(v *DisassociateRouteTableInput) error { if v == nil { return nil @@ -11556,21 +11301,6 @@ func validateOpGetReservedInstancesExchangeQuoteInput(v *GetReservedInstancesExc } } -func validateOpGetSubnetCidrReservationsInput(v *GetSubnetCidrReservationsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetSubnetCidrReservationsInput"} - if v.SubnetId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SubnetId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpGetTransitGatewayAttachmentPropagationsInput(v *GetTransitGatewayAttachmentPropagationsInput) error { if v == nil { return nil @@ -11985,21 +11715,6 @@ func validateOpModifyInstanceEventStartTimeInput(v *ModifyInstanceEventStartTime } } -func validateOpModifyInstanceEventWindowInput(v *ModifyInstanceEventWindowInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ModifyInstanceEventWindowInput"} - if v.InstanceEventWindowId == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstanceEventWindowId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpModifyInstanceMetadataOptionsInput(v *ModifyInstanceMetadataOptionsInput) error { if v == nil { return nil @@ -13218,6 +12933,9 @@ func validateOpUnassignIpv6AddressesInput(v *UnassignIpv6AddressesInput) error { if v.NetworkInterfaceId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkInterfaceId")) } + if v.Ipv6Addresses == nil { + invalidParams.Add(smithy.NewErrParamRequired("Ipv6Addresses")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -13233,6 +12951,9 @@ func validateOpUnassignPrivateIpAddressesInput(v *UnassignPrivateIpAddressesInpu if v.NetworkInterfaceId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkInterfaceId")) } + if v.PrivateIpAddresses == nil { + invalidParams.Add(smithy.NewErrParamRequired("PrivateIpAddresses")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/ec2instanceconnect/go.mod b/service/ec2instanceconnect/go.mod index 9e6106f52d1..885eddd5b8a 100644 --- a/service/ec2instanceconnect/go.mod +++ b/service/ec2instanceconnect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ec2instanceconnect/go.sum b/service/ec2instanceconnect/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/ec2instanceconnect/go.sum +++ b/service/ec2instanceconnect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ecr/go.mod b/service/ecr/go.mod index 60c75b7a0af..fb8e4793e80 100644 --- a/service/ecr/go.mod +++ b/service/ecr/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecr/go.sum b/service/ecr/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/ecr/go.sum +++ b/service/ecr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ecrpublic/go.mod b/service/ecrpublic/go.mod index 6fa6ffb39fb..d6f50dc7c7b 100644 --- a/service/ecrpublic/go.mod +++ b/service/ecrpublic/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ecrpublic/go.sum b/service/ecrpublic/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/ecrpublic/go.sum +++ b/service/ecrpublic/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ecs/api_op_CreateCapacityProvider.go b/service/ecs/api_op_CreateCapacityProvider.go index 6082d045211..c2610647c54 100644 --- a/service/ecs/api_op_CreateCapacityProvider.go +++ b/service/ecs/api_op_CreateCapacityProvider.go @@ -14,9 +14,9 @@ import ( // Creates a new capacity provider. Capacity providers are associated with an // Amazon ECS cluster and are used in capacity provider strategies to facilitate // cluster auto scaling. Only capacity providers using an Auto Scaling group can be -// created. Amazon ECS tasks on Fargate use the FARGATE and FARGATE_SPOT capacity -// providers which are already created and available to all accounts in Regions -// supported by Fargate. +// created. Amazon ECS tasks on AWS Fargate use the FARGATE and FARGATE_SPOT +// capacity providers which are already created and available to all accounts in +// Regions supported by AWS Fargate. func (c *Client) CreateCapacityProvider(ctx context.Context, params *CreateCapacityProviderInput, optFns ...func(*Options)) (*CreateCapacityProviderOutput, error) { if params == nil { params = &CreateCapacityProviderInput{} @@ -71,9 +71,9 @@ type CreateCapacityProviderInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ecs/api_op_CreateCluster.go b/service/ecs/api_op_CreateCluster.go index d7ad82a589b..8a8e44ee049 100644 --- a/service/ecs/api_op_CreateCluster.go +++ b/service/ecs/api_op_CreateCluster.go @@ -15,11 +15,10 @@ import ( // cluster when you launch your first container instance. However, you can create // your own cluster with a unique name with the CreateCluster action. When you call // the CreateCluster API operation, Amazon ECS attempts to create the Amazon ECS -// service-linked role for your account so that required resources in other Amazon -// Web Services services can be managed on your behalf. However, if the IAM user -// that makes the call does not have permissions to create the service-linked role, -// it is not created. For more information, see Using Service-Linked Roles for -// Amazon ECS +// service-linked role for your account so that required resources in other AWS +// services can be managed on your behalf. However, if the IAM user that makes the +// call does not have permissions to create the service-linked role, it is not +// created. For more information, see Using Service-Linked Roles for Amazon ECS // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html) // in the Amazon Elastic Container Service Developer Guide. func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error) { @@ -46,8 +45,8 @@ type CreateClusterInput struct { // specifying a capacity provider that uses an Auto Scaling group, the capacity // provider must already be created and not already associated with another // cluster. New Auto Scaling group capacity providers can be created with the - // CreateCapacityProvider API operation. To use a Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate + // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the @@ -101,9 +100,9 @@ type CreateClusterInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ecs/api_op_CreateService.go b/service/ecs/api_op_CreateService.go index 001643b4281..e746e77b579 100644 --- a/service/ecs/api_op_CreateService.go +++ b/service/ecs/api_op_CreateService.go @@ -190,16 +190,16 @@ type CreateServiceInput struct { // Amazon ECS launch types // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) // in the Amazon Elastic Container Service Developer Guide. The FARGATE launch type - // runs your tasks on Fargate On-Demand infrastructure. Fargate Spot infrastructure - // is available for use but a capacity provider strategy must be used. For more - // information, see Fargate capacity providers + // runs your tasks on AWS Fargate On-Demand infrastructure. Fargate Spot + // infrastructure is available for use but a capacity provider strategy must be + // used. For more information, see AWS Fargate capacity providers // (https://docs.aws.amazon.com/AmazonECS/latest/userguide/fargate-capacity-providers.html) - // in the Amazon ECS User Guide for Fargate. The EC2 launch type runs your tasks on - // Amazon EC2 instances registered to your cluster. The EXTERNAL launch type runs - // your tasks on your on-premise server or virtual machine (VM) capacity registered - // to your cluster. A service can use either a launch type or a capacity provider - // strategy. If a launchType is specified, the capacityProviderStrategy parameter - // must be omitted. + // in the Amazon ECS User Guide for AWS Fargate. The EC2 launch type runs your + // tasks on Amazon EC2 instances registered to your cluster. The EXTERNAL launch + // type runs your tasks on your on-premise server or virtual machine (VM) capacity + // registered to your cluster. A service can use either a launch type or a capacity + // provider strategy. If a launchType is specified, the capacityProviderStrategy + // parameter must be omitted. LaunchType types.LaunchType // A load balancer object representing the load balancers to use with your service. @@ -214,16 +214,16 @@ type CreateServiceInput struct { // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html) // in the Amazon Elastic Container Service Developer Guide. If the service is using // the CODE_DEPLOY deployment controller, the service is required to use either an - // Application Load Balancer or Network Load Balancer. When creating an CodeDeploy - // deployment group, you specify two target groups (referred to as a - // targetGroupPair). During a deployment, CodeDeploy determines which task set in - // your service has the status PRIMARY and associates one target group with it, and - // then associates the other target group with the replacement task set. The load - // balancer can also have up to two listeners: a required listener for production - // traffic and an optional listener that allows you perform validation tests with - // Lambda functions before routing production traffic to it. After you create a - // service using the ECS deployment controller, the load balancer name or target - // group ARN, container name, and container port specified in the service + // Application Load Balancer or Network Load Balancer. When creating an AWS + // CodeDeploy deployment group, you specify two target groups (referred to as a + // targetGroupPair). During a deployment, AWS CodeDeploy determines which task set + // in your service has the status PRIMARY and associates one target group with it, + // and then associates the other target group with the replacement task set. The + // load balancer can also have up to two listeners: a required listener for + // production traffic and an optional listener that allows you perform validation + // tests with Lambda functions before routing production traffic to it. After you + // create a service using the ECS deployment controller, the load balancer name or + // target group ARN, container name, and container port specified in the service // definition are immutable. If you are using the CODE_DEPLOY deployment // controller, these values can be changed when updating the service. For // Application Load Balancers and Network Load Balancers, this object must contain @@ -265,7 +265,7 @@ type CreateServiceInput struct { // The platform version that your tasks in the service are running on. A platform // version is specified only for tasks using the Fargate launch type. If one isn't // specified, the LATEST platform version is used by default. For more information, - // see Fargate platform versions + // see AWS Fargate platform versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -355,9 +355,9 @@ type CreateServiceInput struct { // // * Do not use aws:, AWS:, // or any upper or lowercase combination of such as a prefix for either keys or - // values as it is reserved for Amazon Web Services use. You cannot edit or delete - // tag keys or values with this prefix. Tags with this prefix do not count against - // your tags per resource limit. + // values as it is reserved for AWS use. You cannot edit or delete tag keys or + // values with this prefix. Tags with this prefix do not count against your tags + // per resource limit. Tags []types.Tag // The family and revision (family:revision) or full ARN of the task definition to @@ -371,13 +371,12 @@ type CreateServiceInput struct { type CreateServiceOutput struct { - // The full description of your service following the create call. A service will - // return either a capacityProviderStrategy or launchType parameter, but not both, - // depending on which one was specified during creation. If a service is using the - // ECS deployment controller, the deploymentController and taskSets parameters will - // not be returned. If the service is using the CODE_DEPLOY deployment controller, - // the deploymentController, taskSets and deployments parameters will be returned, - // however the deployments parameter will be an empty list. + // The full description of your service following the create call. If a service is + // using the ECS deployment controller, the deploymentController and taskSets + // parameters will not be returned. If the service is using the CODE_DEPLOY + // deployment controller, the deploymentController, taskSets and deployments + // parameters will be returned, however the deployments parameter will be an empty + // list. Service *types.Service // Metadata pertaining to the operation's result. diff --git a/service/ecs/api_op_CreateTaskSet.go b/service/ecs/api_op_CreateTaskSet.go index 4862b8ce589..b5228c9b3cd 100644 --- a/service/ecs/api_op_CreateTaskSet.go +++ b/service/ecs/api_op_CreateTaskSet.go @@ -61,8 +61,8 @@ type CreateTaskSetInput struct { // defaultCapacityProviderStrategy for the cluster is used. If specifying a // capacity provider that uses an Auto Scaling group, the capacity provider must // already be created. New capacity providers can be created with the - // CreateCapacityProvider API operation. To use a Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate + // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the @@ -75,8 +75,8 @@ type CreateTaskSetInput struct { // An optional non-unique tag that identifies this task set in external systems. If // the task set is associated with a service discovery registry, the tasks in this - // task set will have the ECS_TASK_SET_EXTERNAL_ID Cloud Map attribute set to the - // provided value. + // task set will have the ECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute set to + // the provided value. ExternalId *string // The launch type that new tasks in the task set will use. For more information, @@ -134,9 +134,9 @@ type CreateTaskSetInput struct { // // * Do not use aws:, AWS:, // or any upper or lowercase combination of such as a prefix for either keys or - // values as it is reserved for Amazon Web Services use. You cannot edit or delete - // tag keys or values with this prefix. Tags with this prefix do not count against - // your tags per resource limit. + // values as it is reserved for AWS use. You cannot edit or delete tag keys or + // values with this prefix. Tags with this prefix do not count against your tags + // per resource limit. Tags []types.Tag noSmithyDocumentSerde @@ -144,7 +144,7 @@ type CreateTaskSetInput struct { type CreateTaskSetOutput struct { - // Information about a set of Amazon ECS tasks in either an CodeDeploy or an + // Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an // EXTERNAL deployment. A task set includes details such as the desired number of // tasks, how many tasks are running, and whether the task set serves production // traffic. diff --git a/service/ecs/api_op_DeregisterContainerInstance.go b/service/ecs/api_op_DeregisterContainerInstance.go index 2e045e57505..208f1ae45a7 100644 --- a/service/ecs/api_op_DeregisterContainerInstance.go +++ b/service/ecs/api_op_DeregisterContainerInstance.go @@ -41,7 +41,7 @@ type DeregisterContainerInstanceInput struct { // The container instance ID or full ARN of the container instance to deregister. // The ARN contains the arn:aws:ecs namespace, followed by the Region of the - // container instance, the account ID of the container instance owner, the + // container instance, the AWS account ID of the container instance owner, the // container-instance namespace, and then the container instance ID. For example, // arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. // diff --git a/service/ecs/api_op_DescribeTaskDefinition.go b/service/ecs/api_op_DescribeTaskDefinition.go index 31496f13787..3ef212ddab2 100644 --- a/service/ecs/api_op_DescribeTaskDefinition.go +++ b/service/ecs/api_op_DescribeTaskDefinition.go @@ -74,9 +74,9 @@ type DescribeTaskDefinitionOutput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []types.Tag // The full task definition description. diff --git a/service/ecs/api_op_DiscoverPollEndpoint.go b/service/ecs/api_op_DiscoverPollEndpoint.go index c51e75b4dcf..5242e920401 100644 --- a/service/ecs/api_op_DiscoverPollEndpoint.go +++ b/service/ecs/api_op_DiscoverPollEndpoint.go @@ -36,8 +36,8 @@ type DiscoverPollEndpointInput struct { // The container instance ID or full ARN of the container instance. The ARN // contains the arn:aws:ecs namespace, followed by the Region of the container - // instance, the account ID of the container instance owner, the container-instance - // namespace, and then the container instance ID. For example, + // instance, the AWS account ID of the container instance owner, the + // container-instance namespace, and then the container instance ID. For example, // arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. ContainerInstance *string diff --git a/service/ecs/api_op_PutClusterCapacityProviders.go b/service/ecs/api_op_PutClusterCapacityProviders.go index 1c1300c682d..813e6588372 100644 --- a/service/ecs/api_op_PutClusterCapacityProviders.go +++ b/service/ecs/api_op_PutClusterCapacityProviders.go @@ -44,8 +44,8 @@ type PutClusterCapacityProvidersInput struct { // The name of one or more capacity providers to associate with the cluster. If // specifying a capacity provider that uses an Auto Scaling group, the capacity // provider must already be created. New capacity providers can be created with the - // CreateCapacityProvider API operation. To use a Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate + // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. // @@ -69,8 +69,8 @@ type PutClusterCapacityProvidersInput struct { // cluster. Only capacity providers with an ACTIVE or UPDATING status can be used. // If specifying a capacity provider that uses an Auto Scaling group, the capacity // provider must already be created. New capacity providers can be created with the - // CreateCapacityProvider API operation. To use a Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate + // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. // diff --git a/service/ecs/api_op_RegisterContainerInstance.go b/service/ecs/api_op_RegisterContainerInstance.go index 704f050fa75..bdedabd0f1f 100644 --- a/service/ecs/api_op_RegisterContainerInstance.go +++ b/service/ecs/api_op_RegisterContainerInstance.go @@ -81,9 +81,9 @@ type RegisterContainerInstanceInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []types.Tag // The resources available on the instance. diff --git a/service/ecs/api_op_RegisterTaskDefinition.go b/service/ecs/api_op_RegisterTaskDefinition.go index c26ea5facef..1d8c4981f40 100644 --- a/service/ecs/api_op_RegisterTaskDefinition.go +++ b/service/ecs/api_op_RegisterTaskDefinition.go @@ -18,10 +18,9 @@ import ( // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) // in the Amazon Elastic Container Service Developer Guide. You can specify an IAM // role for your task with the taskRoleArn parameter. When you specify an IAM role -// for a task, its containers can then use the latest versions of the CLI or SDKs -// to make API requests to the Amazon Web Services services that are specified in -// the IAM policy associated with the role. For more information, see IAM Roles for -// Tasks +// for a task, its containers can then use the latest versions of the AWS CLI or +// SDKs to make API requests to the AWS services that are specified in the IAM +// policy associated with the role. For more information, see IAM Roles for Tasks // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) // in the Amazon Elastic Container Service Developer Guide. You can specify a // Docker networking mode for the containers in your task definition with the @@ -96,17 +95,17 @@ type RegisterTaskDefinitionInput struct { // The amount of ephemeral storage to allocate for the task. This parameter is used // to expand the total amount of ephemeral storage available, beyond the default - // amount, for tasks hosted on Fargate. For more information, see Fargate task + // amount, for tasks hosted on AWS Fargate. For more information, see Fargate task // storage // (https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_data_volumes.html) - // in the Amazon ECS User Guide for Fargate. This parameter is only supported for - // tasks hosted on Fargate using platform version 1.4.0 or later. + // in the Amazon ECS User Guide for AWS Fargate. This parameter is only supported + // for tasks hosted on AWS Fargate using platform version 1.4.0 or later. EphemeralStorage *types.EphemeralStorage // The Amazon Resource Name (ARN) of the task execution role that grants the Amazon - // ECS container agent permission to make Amazon Web Services API calls on your - // behalf. The task execution IAM role is required depending on the requirements of - // your task. For more information, see Amazon ECS task execution IAM role + // ECS container agent permission to make AWS API calls on your behalf. The task + // execution IAM role is required depending on the requirements of your task. For + // more information, see Amazon ECS task execution IAM role // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) // in the Amazon Elastic Container Service Developer Guide. ExecutionRoleArn *string @@ -141,7 +140,7 @@ type RegisterTaskDefinitionInput struct { // apply to all containers within a task. // // This parameter is not supported for - // Windows containers or tasks run on Fargate. + // Windows containers or tasks run on AWS Fargate. IpcMode types.IpcMode // The amount of memory (in MiB) used by the task. It can be expressed as an @@ -174,27 +173,31 @@ type RegisterTaskDefinitionInput struct { // The Docker networking mode to use for the containers in the task. The valid // values are none, bridge, awsvpc, and host. If no network mode is specified, the // default is bridge. For Amazon ECS tasks on Fargate, the awsvpc network mode is - // required. For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode - // can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc - // can be used. If the network mode is set to none, you cannot specify port - // mappings in your container definitions, and the tasks containers do not have - // external connectivity. The host and awsvpc network modes offer the highest - // networking performance for containers because they use the EC2 network stack - // instead of the virtualized network stack provided by the bridge mode. With the - // host and awsvpc network modes, exposed container ports are mapped directly to - // the corresponding host port (for the host network mode) or the attached elastic - // network interface port (for the awsvpc network mode), so you cannot take - // advantage of dynamic host port mappings. When using the host network mode, you - // should not run containers using the root user (UID 0). It is considered best - // practice to use a non-root user. If the network mode is awsvpc, the task is - // allocated an elastic network interface, and you must specify a - // NetworkConfiguration value when you create a service or run a task with the task - // definition. For more information, see Task Networking + // required. For Amazon ECS tasks on Amazon EC2 instances, any network mode can be + // used. If the network mode is set to none, you cannot specify port mappings in + // your container definitions, and the tasks containers do not have external + // connectivity. The host and awsvpc network modes offer the highest networking + // performance for containers because they use the EC2 network stack instead of the + // virtualized network stack provided by the bridge mode. With the host and awsvpc + // network modes, exposed container ports are mapped directly to the corresponding + // host port (for the host network mode) or the attached elastic network interface + // port (for the awsvpc network mode), so you cannot take advantage of dynamic host + // port mappings. When using the host network mode, you should not run containers + // using the root user (UID 0). It is considered best practice to use a non-root + // user. If the network mode is awsvpc, the task is allocated an elastic network + // interface, and you must specify a NetworkConfiguration value when you create a + // service or run a task with the task definition. For more information, see Task + // Networking // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) - // in the Amazon Elastic Container Service Developer Guide. If the network mode is - // host, you cannot run multiple instantiations of the same task on a single - // container instance when port mappings are used. For more information, see - // Network settings + // in the Amazon Elastic Container Service Developer Guide. Currently, only Amazon + // ECS-optimized AMIs, other Amazon Linux variants with the ecs-init package, or + // AWS Fargate infrastructure support the awsvpc network mode. If the network mode + // is host, you cannot run multiple instantiations of the same task on a single + // container instance when port mappings are used. Docker for Windows uses + // different network modes than Docker for Linux. When you register a task + // definition with Windows containers, you must not specify a network mode. If you + // use the console to register a task definition with Windows containers, you must + // choose the network mode object. For more information, see Network settings // (https://docs.docker.com/engine/reference/run/#network-settings) in the Docker // run reference. NetworkMode types.NetworkMode @@ -210,7 +213,7 @@ type RegisterTaskDefinitionInput struct { // run reference. If the host PID mode is used, be aware that there is a heightened // risk of undesired process namespace expose. For more information, see Docker // security (https://docs.docker.com/engine/security/security/). This parameter is - // not supported for Windows containers or tasks run on Fargate. + // not supported for Windows containers or tasks run on AWS Fargate. PidMode types.PidMode // An array of placement constraint objects to use for the task. You can specify a @@ -260,9 +263,9 @@ type RegisterTaskDefinitionInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []types.Tag // The short name or full Amazon Resource Name (ARN) of the IAM role that diff --git a/service/ecs/api_op_RunTask.go b/service/ecs/api_op_RunTask.go index 6abb2f988d0..04414a89eb9 100644 --- a/service/ecs/api_op_RunTask.go +++ b/service/ecs/api_op_RunTask.go @@ -63,8 +63,7 @@ type RunTaskInput struct { // The capacity provider strategy to use for the task. If a // capacityProviderStrategy is specified, the launchType parameter must be omitted. // If no capacityProviderStrategy or launchType is specified, the - // defaultCapacityProviderStrategy for the cluster is used. When you use cluster - // auto scaling, you must specify capacityProviderStrategy and not launchType. + // defaultCapacityProviderStrategy for the cluster is used. CapacityProviderStrategy []types.CapacityProviderStrategyItem // The short name or full Amazon Resource Name (ARN) of the cluster on which to run @@ -94,17 +93,16 @@ type RunTaskInput struct { // see Amazon ECS launch types // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) // in the Amazon Elastic Container Service Developer Guide. The FARGATE launch type - // runs your tasks on Fargate On-Demand infrastructure. Fargate Spot infrastructure - // is available for use but a capacity provider strategy must be used. For more - // information, see Fargate capacity providers + // runs your tasks on AWS Fargate On-Demand infrastructure. Fargate Spot + // infrastructure is available for use but a capacity provider strategy must be + // used. For more information, see AWS Fargate capacity providers // (https://docs.aws.amazon.com/AmazonECS/latest/userguide/fargate-capacity-providers.html) - // in the Amazon ECS User Guide for Fargate. The EC2 launch type runs your tasks on - // Amazon EC2 instances registered to your cluster. The EXTERNAL launch type runs - // your tasks on your on-premise server or virtual machine (VM) capacity registered - // to your cluster. A task can use either a launch type or a capacity provider - // strategy. If a launchType is specified, the capacityProviderStrategy parameter - // must be omitted. When you use cluster auto scaling, you must specify - // capacityProviderStrategy and not launchType. + // in the Amazon ECS User Guide for AWS Fargate. The EC2 launch type runs your + // tasks on Amazon EC2 instances registered to your cluster. The EXTERNAL launch + // type runs your tasks on your on-premise server or virtual machine (VM) capacity + // registered to your cluster. A task can use either a launch type or a capacity + // provider strategy. If a launchType is specified, the capacityProviderStrategy + // parameter must be omitted. LaunchType types.LaunchType // The network configuration for the task. This parameter is required for task @@ -136,8 +134,8 @@ type RunTaskInput struct { // The platform version the task should run. A platform version is only specified // for tasks using the Fargate launch type. If one is not specified, the LATEST - // platform version is used by default. For more information, see Fargate Platform - // Versions + // platform version is used by default. For more information, see AWS Fargate + // Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -187,9 +185,9 @@ type RunTaskInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ecs/api_op_StartTask.go b/service/ecs/api_op_StartTask.go index 85a50746316..a8acd2bb1b7 100644 --- a/service/ecs/api_op_StartTask.go +++ b/service/ecs/api_op_StartTask.go @@ -121,9 +121,9 @@ type StartTaskInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ecs/api_op_TagResource.go b/service/ecs/api_op_TagResource.go index 4cd55010f39..bc08230215a 100644 --- a/service/ecs/api_op_TagResource.go +++ b/service/ecs/api_op_TagResource.go @@ -63,9 +63,9 @@ type TagResourceInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. // // This member is required. Tags []types.Tag diff --git a/service/ecs/api_op_UpdateService.go b/service/ecs/api_op_UpdateService.go index 7e24e04d3f7..55a2ab8ebdf 100644 --- a/service/ecs/api_op_UpdateService.go +++ b/service/ecs/api_op_UpdateService.go @@ -23,10 +23,10 @@ import ( // deployment controller, only the desired count, deployment configuration, task // placement constraints and strategies, and health check grace period can be // updated using this API. If the network configuration, platform version, or task -// definition need to be updated, a new CodeDeploy deployment should be created. -// For more information, see CreateDeployment +// definition need to be updated, a new AWS CodeDeploy deployment should be +// created. For more information, see CreateDeployment // (https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html) -// in the CodeDeploy API Reference. For services using an external deployment +// in the AWS CodeDeploy API Reference. For services using an external deployment // controller, you can update only the desired count, task placement constraints // and strategies, and health check grace period using this API. If the launch // type, load balancer, network configuration, platform version, or task definition @@ -140,8 +140,8 @@ type UpdateServiceInput struct { // cluster. Only capacity providers with an ACTIVE or UPDATING status can be used. // If specifying a capacity provider that uses an Auto Scaling group, the capacity // provider must already be created. New capacity providers can be created with the - // CreateCapacityProvider API operation. To use a Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate + // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the @@ -207,7 +207,7 @@ type UpdateServiceInput struct { // The platform version on which your tasks in the service are running. A platform // version is only specified for tasks using the Fargate launch type. If a platform // version is not specified, the LATEST platform version is used by default. For - // more information, see Fargate Platform Versions + // more information, see AWS Fargate Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string diff --git a/service/ecs/doc.go b/service/ecs/doc.go index 4a6b65ec293..894ebd00436 100644 --- a/service/ecs/doc.go +++ b/service/ecs/doc.go @@ -7,7 +7,7 @@ // is a highly scalable, fast, container management service that makes it easy to // run, stop, and manage Docker containers on a cluster. You can host your cluster // on a serverless infrastructure that is managed by Amazon ECS by launching your -// services or tasks on Fargate. For more control, you can host your tasks on a +// services or tasks on AWS Fargate. For more control, you can host your tasks on a // cluster of Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage. // Amazon ECS makes it easy to launch and stop container-based applications with // simple API calls, allows you to get the state of your cluster from a centralized diff --git a/service/ecs/go.mod b/service/ecs/go.mod index 87bba83e1b2..b78efd01a78 100644 --- a/service/ecs/go.mod +++ b/service/ecs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecs/go.sum b/service/ecs/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/ecs/go.sum +++ b/service/ecs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ecs/types/errors.go b/service/ecs/types/errors.go index 11f22c5c87e..98e9cece459 100644 --- a/service/ecs/types/errors.go +++ b/service/ecs/types/errors.go @@ -49,8 +49,8 @@ func (e *AttributeLimitExceededException) ErrorCode() string { } func (e *AttributeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// Your Amazon Web Services account has been blocked. For more information, contact -// Amazon Web Services Support (http://aws.amazon.com/contact-us/). +// Your AWS account has been blocked. For more information, contact AWS Support +// (http://aws.amazon.com/contact-us/). type BlockedException struct { Message *string diff --git a/service/ecs/types/types.go b/service/ecs/types/types.go index 30c8aeaa224..eae2c99fc5a 100644 --- a/service/ecs/types/types.go +++ b/service/ecs/types/types.go @@ -96,9 +96,9 @@ type AutoScalingGroupProvider struct { // the Auto Scaling group must have instance protection from scale-in actions // enabled as well. For more information, see Instance Protection // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) - // in the Auto Scaling User Guide. When managed termination protection is disabled, - // your Amazon EC2 instances are not protected from termination when the Auto - // Scaling group scales in. + // in the AWS Auto Scaling User Guide. When managed termination protection is + // disabled, your Amazon EC2 instances are not protected from termination when the + // Auto Scaling group scales in. ManagedTerminationProtection ManagedTerminationProtection noSmithyDocumentSerde @@ -120,9 +120,9 @@ type AutoScalingGroupProviderUpdate struct { // the Auto Scaling group must have instance protection from scale-in actions // enabled as well. For more information, see Instance Protection // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) - // in the Auto Scaling User Guide. When managed termination protection is disabled, - // your Amazon EC2 instances are not protected from termination when the Auto - // Scaling group scales in. + // in the AWS Auto Scaling User Guide. When managed termination protection is + // disabled, your Amazon EC2 instances are not protected from termination when the + // Auto Scaling group scales in. ManagedTerminationProtection ManagedTerminationProtection noSmithyDocumentSerde @@ -193,9 +193,9 @@ type CapacityProvider struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []Tag // The update status of the capacity provider. The following are the possible @@ -222,9 +222,10 @@ type CapacityProvider struct { // cluster. If specifying a capacity provider that uses an Auto Scaling group, the // capacity provider must already be created. New Auto Scaling group capacity // providers can be created with the CreateCapacityProvider API operation. To use a -// Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT capacity -// providers. The Fargate capacity providers are available to all accounts and only -// need to be associated with a cluster to be used in a capacity provider strategy. +// AWS Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT +// capacity providers. The AWS Fargate capacity providers are available to all +// accounts and only need to be associated with a cluster to be used in a capacity +// provider strategy. type CapacityProviderStrategyItem struct { // The short name of the capacity provider. @@ -284,8 +285,8 @@ type Cluster struct { CapacityProviders []string // The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the - // arn:aws:ecs namespace, followed by the Region of the cluster, the account ID of - // the cluster owner, the cluster namespace, and then the cluster name. For + // arn:aws:ecs namespace, followed by the Region of the cluster, the AWS account ID + // of the cluster owner, the cluster namespace, and then the cluster name. For // example, arn:aws:ecs:region:012345678910:cluster/test. ClusterArn *string @@ -376,9 +377,9 @@ type Cluster struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []Tag noSmithyDocumentSerde @@ -895,7 +896,7 @@ type ContainerDefinition struct { // the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the // --privileged option to docker run // (https://docs.docker.com/engine/reference/run/#security-configuration). This - // parameter is not supported for Windows containers or tasks run on Fargate. + // parameter is not supported for Windows containers or tasks run on AWS Fargate. Privileged *bool // When this parameter is true, a TTY is allocated. This parameter maps to Tty in @@ -1134,15 +1135,15 @@ type ContainerInstance struct { CapacityProviderName *string // The Amazon Resource Name (ARN) of the container instance. The ARN contains the - // arn:aws:ecs namespace, followed by the Region of the container instance, the + // arn:aws:ecs namespace, followed by the Region of the container instance, the AWS // account ID of the container instance owner, the container-instance namespace, // and then the container instance ID. For example, // arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. ContainerInstanceArn *string // The ID of the container instance. For Amazon EC2 instances, this value is the - // Amazon EC2 instance ID. For external instances, this value is the Amazon Web - // Services Systems Manager managed instance ID. + // Amazon EC2 instance ID. For external instances, this value is the AWS Systems + // Manager managed instance ID. Ec2InstanceId *string // The number of tasks on the container instance that are in the PENDING status. @@ -1218,9 +1219,9 @@ type ContainerInstance struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []Tag // The version counter for the container instance. Every time a container instance @@ -1352,7 +1353,7 @@ type Deployment struct { // The platform version on which your tasks in the service are running. A platform // version is only specified for tasks using the Fargate launch type. If one is not // specified, the LATEST platform version is used by default. For more information, - // see Fargate Platform Versions + // see AWS Fargate Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -1485,11 +1486,11 @@ type DeploymentController struct { // update is controlled by adjusting the minimum and maximum number of healthy // tasks allowed during a service deployment, as specified in the // DeploymentConfiguration. CODE_DEPLOY The blue/green (CODE_DEPLOY) deployment - // type uses the blue/green deployment model powered by CodeDeploy, which allows - // you to verify a new deployment of a service before sending production traffic to - // it. EXTERNAL The external (EXTERNAL) deployment type enables you to use any - // third-party deployment controller for full control over the deployment process - // for an Amazon ECS service. + // type uses the blue/green deployment model powered by AWS CodeDeploy, which + // allows you to verify a new deployment of a service before sending production + // traffic to it. EXTERNAL The external (EXTERNAL) deployment type enables you to + // use any third-party deployment controller for full control over the deployment + // process for an Amazon ECS service. // // This member is required. Type DeploymentControllerType @@ -1662,11 +1663,11 @@ type EnvironmentFile struct { // The amount of ephemeral storage to allocate for the task. This parameter is used // to expand the total amount of ephemeral storage available, beyond the default -// amount, for tasks hosted on Fargate. For more information, see Fargate task +// amount, for tasks hosted on AWS Fargate. For more information, see Fargate task // storage // (https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_data_volumes.html) -// in the Amazon ECS User Guide for Fargate. This parameter is only supported for -// tasks hosted on Fargate using platform version 1.4.0 or later. +// in the Amazon ECS User Guide for AWS Fargate. This parameter is only supported +// for tasks hosted on AWS Fargate using platform version 1.4.0 or later. type EphemeralStorage struct { // The total amount, in GiB, of ephemeral storage to set for the task. The minimum @@ -1681,8 +1682,8 @@ type EphemeralStorage struct { // The details of the execute command configuration. type ExecuteCommandConfiguration struct { - // Specify an Key Management Service key ID to encrypt the data between the local - // client and the container. + // Specify an AWS Key Management Service key ID to encrypt the data between the + // local client and the container. KmsKeyId *string // The log configuration for the results of the execute command actions. The logs @@ -1771,8 +1772,8 @@ type FirelensConfiguration struct { // For more information, see Creating a Task Definition that Uses a FireLens // Configuration // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef) - // in the Amazon Elastic Container Service Developer Guide. Tasks hosted on Fargate - // only support the file configuration file type. + // in the Amazon Elastic Container Service Developer Guide. Tasks hosted on AWS + // Fargate only support the file configuration file type. Options map[string]string noSmithyDocumentSerde @@ -1788,14 +1789,14 @@ type FirelensConfiguration struct { type FSxWindowsFileServerAuthorizationConfig struct { // The authorization credential option to use. The authorization credential options - // can be provided using either the Amazon Resource Name (ARN) of an Secrets - // Manager secret or SSM Parameter Store parameter. The ARNs refer to the stored - // credentials. + // can be provided using either the Amazon Resource Name (ARN) of an AWS Secrets + // Manager secret or AWS Systems Manager Parameter Store parameter. The ARNs refer + // to the stored credentials. // // This member is required. CredentialsParameter *string - // A fully qualified domain name hosted by an Directory Service + // A fully qualified domain name hosted by an AWS Directory Service // (https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) // Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. // @@ -1877,8 +1878,8 @@ type FSxWindowsFileServerVolumeConfiguration struct { // // * // Container health checks are supported for Fargate tasks if you are using -// platform version 1.1.0 or greater. For more information, see Fargate Platform -// Versions +// platform version 1.1.0 or greater. For more information, see AWS Fargate +// Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html). // // * @@ -2010,10 +2011,10 @@ type KernelCapabilities struct { // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and // the --cap-add option to docker run // (https://docs.docker.com/engine/reference/run/#security-configuration). Tasks - // launched on Fargate only support adding the SYS_PTRACE kernel capability. Valid - // values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | - // "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | - // "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | + // launched on AWS Fargate only support adding the SYS_PTRACE kernel capability. + // Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | + // "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" + // | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | // "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | // "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | // "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | @@ -2198,15 +2199,15 @@ type LoadBalancer struct { // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) // in the Amazon Elastic Container Service Developer Guide. // -// * For tasks on +// * For tasks on AWS // Fargate, because you do not have access to the underlying infrastructure your // tasks are hosted on, any additional software needed will have to be installed // outside of the task. For example, the Fluentd output aggregators or a remote // host running Logstash to send Gelf logs to. type LogConfiguration struct { - // The log driver to use for the container. For tasks on Fargate, the supported log - // drivers are awslogs, splunk, and awsfirelens. For tasks hosted on Amazon EC2 + // The log driver to use for the container. For tasks on AWS Fargate, the supported + // log drivers are awslogs, splunk, and awsfirelens. For tasks hosted on Amazon EC2 // instances, the supported log drivers are awslogs, fluentd, gelf, json-file, // journald, logentries,syslog, splunk, and awsfirelens. For more information about // using the awslogs log driver, see Using the awslogs log driver @@ -2562,11 +2563,10 @@ type ProxyConfiguration struct { type RepositoryCredentials struct { // The Amazon Resource Name (ARN) of the secret containing the private repository - // credentials. When you are using the Amazon ECS API, CLI, or Amazon Web Services - // SDK, if the secret exists in the same Region as the task that you are launching - // then you can use either the full ARN or the name of the secret. When you are - // using the Amazon Web Services Management Console, you must specify the full ARN - // of the secret. + // credentials. When you are using the Amazon ECS API, AWS CLI, or AWS SDK, if the + // secret exists in the same Region as the task that you are launching then you can + // use either the full ARN or the name of the secret. When you are using the AWS + // Management Console, you must specify the full ARN of the secret. // // This member is required. CredentialsParameter *string @@ -2666,11 +2666,11 @@ type Secret struct { Name *string // The secret to expose to the container. The supported values are either the full - // ARN of the Secrets Manager secret or the full ARN of the parameter in the SSM - // Parameter Store. If the SSM Parameter Store parameter exists in the same Region - // as the task you are launching, then you can use either the full ARN or name of - // the parameter. If the parameter exists in a different Region, then the full ARN - // must be specified. + // ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the + // AWS Systems Manager Parameter Store. If the AWS Systems Manager Parameter Store + // parameter exists in the same Region as the task you are launching, then you can + // use either the full ARN or name of the parameter. If the parameter exists in a + // different Region, then the full ARN must be specified. // // This member is required. ValueFrom *string @@ -2681,9 +2681,7 @@ type Secret struct { // Details on a service within a cluster type Service struct { - // The capacity provider strategy the service is using. When using the - // DescribeServices API, this field is omitted if the service was created using a - // launch type. + // The capacity provider strategy associated with the service. CapacityProviderStrategy []CapacityProviderStrategyItem // The Amazon Resource Name (ARN) of the cluster that hosts the service. @@ -2732,8 +2730,10 @@ type Service struct { // started. HealthCheckGracePeriodSeconds *int32 - // The launch type the service is using. When using the DescribeServices API, this - // field is omitted if the service was created using a capacity provider strategy. + // The infrastructure on which your service is running. For more information, see + // Amazon ECS launch types + // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + // in the Amazon Elastic Container Service Developer Guide. LaunchType LaunchType // A list of Elastic Load Balancing load balancer objects, containing the load @@ -2755,9 +2755,9 @@ type Service struct { PlacementStrategy []PlacementStrategy // The platform version on which to run your service. A platform version is only - // specified for tasks hosted on Fargate. If one is not specified, the LATEST - // platform version is used by default. For more information, see Fargate Platform - // Versions + // specified for tasks using the Fargate launch type. If one is not specified, the + // LATEST platform version is used by default. For more information, see AWS + // Fargate Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -2794,8 +2794,8 @@ type Service struct { SchedulingStrategy SchedulingStrategy // The ARN that identifies the service. The ARN contains the arn:aws:ecs namespace, - // followed by the Region of the service, the account ID of the service owner, the - // service namespace, and then the service name. For example, + // followed by the Region of the service, the AWS account ID of the service owner, + // the service namespace, and then the service name. For example, // arn:aws:ecs:region:012345678910:service/my-service. ServiceArn *string @@ -2838,9 +2838,9 @@ type Service struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []Tag // The task definition to use for tasks in the service. This value is specified @@ -2848,7 +2848,7 @@ type Service struct { // UpdateService. TaskDefinition *string - // Information about a set of Amazon ECS tasks in either an CodeDeploy or an + // Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an // EXTERNAL deployment. An Amazon ECS task set includes details such as the desired // number of tasks, how many tasks are running, and whether the task set serves // production traffic. @@ -2898,7 +2898,7 @@ type ServiceRegistry struct { Port *int32 // The Amazon Resource Name (ARN) of the service registry. The currently supported - // service registry is Cloud Map. For more information, see CreateService + // service registry is AWS Cloud Map. For more information, see CreateService // (https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html). RegistryArn *string @@ -2993,9 +2993,9 @@ type SystemControl struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination -// of such as a prefix for either keys or values as it is reserved for Amazon Web -// Services use. You cannot edit or delete tag keys or values with this prefix. -// Tags with this prefix do not count against your tags per resource limit. +// of such as a prefix for either keys or values as it is reserved for AWS use. You +// cannot edit or delete tag keys or values with this prefix. Tags with this prefix +// do not count against your tags per resource limit. type Tag struct { // One part of a key-value pair that make up a tag. A key is a general label that @@ -3145,8 +3145,8 @@ type Task struct { // The platform version on which your task is running. A platform version is only // specified for tasks using the Fargate launch type. If one is not specified, the - // LATEST platform version is used by default. For more information, see Fargate - // Platform Versions + // LATEST platform version is used by default. For more information, see AWS + // Fargate Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -3206,9 +3206,9 @@ type Task struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []Tag // The Amazon Resource Name (ARN) of the task. @@ -3277,9 +3277,9 @@ type TaskDefinition struct { EphemeralStorage *EphemeralStorage // The Amazon Resource Name (ARN) of the task execution role that grants the Amazon - // ECS container agent permission to make Amazon Web Services API calls on your - // behalf. The task execution IAM role is required depending on the requirements of - // your task. For more information, see Amazon ECS task execution IAM role + // ECS container agent permission to make AWS API calls on your behalf. The task + // execution IAM role is required depending on the requirements of your task. For + // more information, see Amazon ECS task execution IAM role // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) // in the Amazon Elastic Container Service Developer Guide. ExecutionRoleArn *string @@ -3322,7 +3322,7 @@ type TaskDefinition struct { // apply to all containers within a task. // // This parameter is not supported for - // Windows containers or tasks run on Fargate. + // Windows containers or tasks run on AWS Fargate. IpcMode IpcMode // The amount (in MiB) of memory used by the task. If your tasks will be run on @@ -3332,51 +3332,55 @@ type TaskDefinition struct { // is optional. For more information regarding container-level memory and memory // reservation, see ContainerDefinition // (https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html). - // If your tasks will be run on Fargate, this field is required and you must use - // one of the following values, which determines your range of valid values for the - // cpu parameter: + // If your tasks will be run on AWS Fargate, this field is required and you must + // use one of the following values, which determines your range of valid values for + // the cpu parameter: // - // * 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: - // 256 (.25 vCPU) + // * 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu + // values: 256 (.25 vCPU) // - // * 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available - // cpu values: 512 (.5 vCPU) + // * 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - + // Available cpu values: 512 (.5 vCPU) // - // * 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), - // 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU) + // * 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), + // 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 + // (1 vCPU) // - // * - // Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available - // cpu values: 2048 (2 vCPU) + // * Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - + // Available cpu values: 2048 (2 vCPU) // - // * Between 8192 (8 GB) and 30720 (30 GB) in increments - // of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) + // * Between 8192 (8 GB) and 30720 (30 GB) in + // increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) Memory *string // The Docker networking mode to use for the containers in the task. The valid // values are none, bridge, awsvpc, and host. If no network mode is specified, the // default is bridge. For Amazon ECS tasks on Fargate, the awsvpc network mode is - // required. For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode - // can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc - // can be used. If the network mode is set to none, you cannot specify port - // mappings in your container definitions, and the tasks containers do not have - // external connectivity. The host and awsvpc network modes offer the highest - // networking performance for containers because they use the EC2 network stack - // instead of the virtualized network stack provided by the bridge mode. With the - // host and awsvpc network modes, exposed container ports are mapped directly to - // the corresponding host port (for the host network mode) or the attached elastic - // network interface port (for the awsvpc network mode), so you cannot take - // advantage of dynamic host port mappings. When using the host network mode, you - // should not run containers using the root user (UID 0). It is considered best - // practice to use a non-root user. If the network mode is awsvpc, the task is - // allocated an elastic network interface, and you must specify a - // NetworkConfiguration value when you create a service or run a task with the task - // definition. For more information, see Task Networking + // required. For Amazon ECS tasks on Amazon EC2 instances, any network mode can be + // used. If the network mode is set to none, you cannot specify port mappings in + // your container definitions, and the tasks containers do not have external + // connectivity. The host and awsvpc network modes offer the highest networking + // performance for containers because they use the EC2 network stack instead of the + // virtualized network stack provided by the bridge mode. With the host and awsvpc + // network modes, exposed container ports are mapped directly to the corresponding + // host port (for the host network mode) or the attached elastic network interface + // port (for the awsvpc network mode), so you cannot take advantage of dynamic host + // port mappings. When using the host network mode, you should not run containers + // using the root user (UID 0). It is considered best practice to use a non-root + // user. If the network mode is awsvpc, the task is allocated an elastic network + // interface, and you must specify a NetworkConfiguration value when you create a + // service or run a task with the task definition. For more information, see Task + // Networking // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) - // in the Amazon Elastic Container Service Developer Guide. If the network mode is - // host, you cannot run multiple instantiations of the same task on a single - // container instance when port mappings are used. For more information, see - // Network settings + // in the Amazon Elastic Container Service Developer Guide. Currently, only Amazon + // ECS-optimized AMIs, other Amazon Linux variants with the ecs-init package, or + // AWS Fargate infrastructure support the awsvpc network mode. If the network mode + // is host, you cannot run multiple instantiations of the same task on a single + // container instance when port mappings are used. Docker for Windows uses + // different network modes than Docker for Linux. When you register a task + // definition with Windows containers, you must not specify a network mode. If you + // use the console to register a task definition with Windows containers, you must + // choose the network mode object. For more information, see Network settings // (https://docs.docker.com/engine/reference/run/#network-settings) in the Docker // run reference. NetworkMode NetworkMode @@ -3392,11 +3396,11 @@ type TaskDefinition struct { // run reference. If the host PID mode is used, be aware that there is a heightened // risk of undesired process namespace expose. For more information, see Docker // security (https://docs.docker.com/engine/security/security/). This parameter is - // not supported for Windows containers or tasks run on Fargate. + // not supported for Windows containers or tasks run on AWS Fargate. PidMode PidMode // An array of placement constraint objects to use for tasks. This parameter is not - // supported for tasks run on Fargate. + // supported for tasks run on AWS Fargate. PlacementConstraints []TaskDefinitionPlacementConstraint // The configuration details for the App Mesh proxy. Your Amazon ECS container @@ -3423,7 +3427,7 @@ type TaskDefinition struct { // on Amazon EC2 instances. For more information, see Attributes // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes) // in the Amazon Elastic Container Service Developer Guide. This parameter is not - // supported for tasks run on Fargate. + // supported for tasks run on AWS Fargate. RequiresAttributes []Attribute // The task launch types the task definition was validated against. To determine @@ -3444,9 +3448,9 @@ type TaskDefinition struct { // The full Amazon Resource Name (ARN) of the task definition. TaskDefinitionArn *string - // The short name or full Amazon Resource Name (ARN) of the Identity and Access - // Management role that grants containers in the task permission to call Amazon Web - // Services APIs on your behalf. For more information, see Amazon ECS Task Role + // The short name or full Amazon Resource Name (ARN) of the AWS Identity and Access + // Management (IAM) role that grants containers in the task permission to call AWS + // APIs on your behalf. For more information, see Amazon ECS Task Role // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) // in the Amazon Elastic Container Service Developer Guide. IAM roles for tasks on // Windows require that the -EnableTaskIAMRole option is set when you launch the @@ -3461,7 +3465,7 @@ type TaskDefinition struct { // Using data volumes in tasks // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html) // in the Amazon Elastic Container Service Developer Guide. The host and sourcePath - // parameters are not supported for tasks run on Fargate. + // parameters are not supported for tasks run on AWS Fargate. Volumes []Volume noSmithyDocumentSerde @@ -3471,7 +3475,7 @@ type TaskDefinition struct { // For more information, see Task placement constraints // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html) // in the Amazon Elastic Container Service Developer Guide. Task placement -// constraints are not supported for tasks run on Fargate. +// constraints are not supported for tasks run on AWS Fargate. type TaskDefinitionPlacementConstraint struct { // A cluster query language expression to apply to the constraint. For more @@ -3497,7 +3501,7 @@ type TaskOverride struct { Cpu *string // The ephemeral storage setting override for the task. This parameter is only - // supported for tasks hosted on Fargate using platform version 1.4.0 or later. + // supported for tasks hosted on AWS Fargate using platform version 1.4.0 or later. EphemeralStorage *EphemeralStorage // The Amazon Resource Name (ARN) of the task execution IAM role override for the @@ -3518,7 +3522,7 @@ type TaskOverride struct { noSmithyDocumentSerde } -// Information about a set of Amazon ECS tasks in either an CodeDeploy or an +// Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an // EXTERNAL deployment. An Amazon ECS task set includes details such as the desired // number of tasks, how many tasks are running, and whether the task set serves // production traffic. @@ -3540,11 +3544,11 @@ type TaskSet struct { // The Unix timestamp for when the task set was created. CreatedAt *time.Time - // The external ID associated with the task set. If a task set is created by an - // CodeDeploy deployment, the externalId parameter contains the CodeDeploy + // The external ID associated with the task set. If a task set is created by an AWS + // CodeDeploy deployment, the externalId parameter contains the AWS CodeDeploy // deployment ID. If a task set is created for an external deployment and is // associated with a service discovery registry, the externalId parameter contains - // the ECS_TASK_SET_EXTERNAL_ID Cloud Map attribute. + // the ECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute. ExternalId *string // The ID of the task set. @@ -3568,9 +3572,9 @@ type TaskSet struct { // it is restarted after being in the STOPPED state. PendingCount int32 - // The Fargate platform version on which the tasks in the task set are running. A - // platform version is only specified for tasks run on Fargate. For more - // information, see Fargate platform versions + // The AWS Fargate platform version on which the tasks in the task set are running. + // A platform version is only specified for tasks run on AWS Fargate. For more + // information, see AWS Fargate platform versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -3614,8 +3618,8 @@ type TaskSet struct { StabilityStatusAt *time.Time // The tag specified when a task set is started. If the task set is created by an - // CodeDeploy deployment, the startedBy parameter is CODE_DEPLOY. For a task set - // created for an external deployment, the startedBy field isn't used. + // AWS CodeDeploy deployment, the startedBy parameter is CODE_DEPLOY. For a task + // set created for an external deployment, the startedBy field isn't used. StartedBy *string // The status of the task set. The following describes each state: PRIMARY The task @@ -3649,9 +3653,9 @@ type TaskSet struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for Amazon Web - // Services use. You cannot edit or delete tag keys or values with this prefix. - // Tags with this prefix do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for AWS use. You + // cannot edit or delete tag keys or values with this prefix. Tags with this prefix + // do not count against your tags per resource limit. Tags []Tag // The task definition the task set is using. @@ -3746,7 +3750,7 @@ type Volume struct { // This parameter is specified when you are using Docker volumes. Windows // containers only support the use of the local driver. To use bind mounts, specify - // the host parameter instead. Docker volumes are not supported by tasks run on + // the host parameter instead. Docker volumes are not supported by tasks run on AWS // Fargate. DockerVolumeConfiguration *DockerVolumeConfiguration diff --git a/service/efs/go.mod b/service/efs/go.mod index 5ee00979a03..d76b04bf61f 100644 --- a/service/efs/go.mod +++ b/service/efs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/efs/go.sum b/service/efs/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/efs/go.sum +++ b/service/efs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/eks/go.mod b/service/eks/go.mod index e4e9e669ad9..db7d95b412d 100644 --- a/service/eks/go.mod +++ b/service/eks/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/eks/go.sum b/service/eks/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/eks/go.sum +++ b/service/eks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticache/go.mod b/service/elasticache/go.mod index 2a4638924b3..bcced436c63 100644 --- a/service/elasticache/go.mod +++ b/service/elasticache/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/elasticache/go.sum +++ b/service/elasticache/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticbeanstalk/go.mod b/service/elasticbeanstalk/go.mod index 29fa48e372b..8db414bf530 100644 --- a/service/elasticbeanstalk/go.mod +++ b/service/elasticbeanstalk/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/elasticbeanstalk/go.sum +++ b/service/elasticbeanstalk/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticinference/go.mod b/service/elasticinference/go.mod index 2c402aa7d3e..d127c446ca8 100644 --- a/service/elasticinference/go.mod +++ b/service/elasticinference/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticinference/go.sum b/service/elasticinference/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/elasticinference/go.sum +++ b/service/elasticinference/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/elasticloadbalancing/go.mod b/service/elasticloadbalancing/go.mod index c039c142483..acf4454864c 100644 --- a/service/elasticloadbalancing/go.mod +++ b/service/elasticloadbalancing/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/elasticloadbalancing/go.sum +++ b/service/elasticloadbalancing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go b/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go index 02eabb92246..977075b3e61 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go +++ b/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go @@ -4,18 +4,12 @@ package elasticloadbalancingv2 import ( "context" - "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" - smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" - "time" ) // Describes the specified load balancers or all of your load balancers. @@ -203,538 +197,6 @@ func (p *DescribeLoadBalancersPaginator) NextPage(ctx context.Context, optFns .. return result, nil } -// LoadBalancerAvailableWaiterOptions are waiter options for -// LoadBalancerAvailableWaiter -type LoadBalancerAvailableWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // LoadBalancerAvailableWaiter will use default minimum delay of 15 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, LoadBalancerAvailableWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeLoadBalancersInput, *DescribeLoadBalancersOutput, error) (bool, error) -} - -// LoadBalancerAvailableWaiter defines the waiters for LoadBalancerAvailable -type LoadBalancerAvailableWaiter struct { - client DescribeLoadBalancersAPIClient - - options LoadBalancerAvailableWaiterOptions -} - -// NewLoadBalancerAvailableWaiter constructs a LoadBalancerAvailableWaiter. -func NewLoadBalancerAvailableWaiter(client DescribeLoadBalancersAPIClient, optFns ...func(*LoadBalancerAvailableWaiterOptions)) *LoadBalancerAvailableWaiter { - options := LoadBalancerAvailableWaiterOptions{} - options.MinDelay = 15 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = loadBalancerAvailableStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &LoadBalancerAvailableWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for LoadBalancerAvailable waiter. The maxWaitDur -// is the maximum wait duration the waiter will wait. The maxWaitDur is required -// and must be greater than zero. -func (w *LoadBalancerAvailableWaiter) Wait(ctx context.Context, params *DescribeLoadBalancersInput, maxWaitDur time.Duration, optFns ...func(*LoadBalancerAvailableWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeLoadBalancers(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for LoadBalancerAvailable waiter") -} - -func loadBalancerAvailableStateRetryable(ctx context.Context, input *DescribeLoadBalancersInput, output *DescribeLoadBalancersOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("LoadBalancers[].State.Code", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "active" - var match = true - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - if len(listOfValues) == 0 { - match = false - } - for _, v := range listOfValues { - value, ok := v.(types.LoadBalancerStateEnum) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.LoadBalancerStateEnum value, got %T", pathValue) - } - - if string(value) != expectedValue { - match = false - } - } - - if match { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("LoadBalancers[].State.Code", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "provisioning" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(types.LoadBalancerStateEnum) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.LoadBalancerStateEnum value, got %T", pathValue) - } - - if string(value) == expectedValue { - return true, nil - } - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "LoadBalancerNotFound" == apiErr.ErrorCode() { - return true, nil - } - } - - return true, nil -} - -// LoadBalancerExistsWaiterOptions are waiter options for LoadBalancerExistsWaiter -type LoadBalancerExistsWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // LoadBalancerExistsWaiter will use default minimum delay of 15 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, LoadBalancerExistsWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeLoadBalancersInput, *DescribeLoadBalancersOutput, error) (bool, error) -} - -// LoadBalancerExistsWaiter defines the waiters for LoadBalancerExists -type LoadBalancerExistsWaiter struct { - client DescribeLoadBalancersAPIClient - - options LoadBalancerExistsWaiterOptions -} - -// NewLoadBalancerExistsWaiter constructs a LoadBalancerExistsWaiter. -func NewLoadBalancerExistsWaiter(client DescribeLoadBalancersAPIClient, optFns ...func(*LoadBalancerExistsWaiterOptions)) *LoadBalancerExistsWaiter { - options := LoadBalancerExistsWaiterOptions{} - options.MinDelay = 15 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = loadBalancerExistsStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &LoadBalancerExistsWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for LoadBalancerExists waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *LoadBalancerExistsWaiter) Wait(ctx context.Context, params *DescribeLoadBalancersInput, maxWaitDur time.Duration, optFns ...func(*LoadBalancerExistsWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeLoadBalancers(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for LoadBalancerExists waiter") -} - -func loadBalancerExistsStateRetryable(ctx context.Context, input *DescribeLoadBalancersInput, output *DescribeLoadBalancersOutput, err error) (bool, error) { - - if err == nil { - return false, nil - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "LoadBalancerNotFound" == apiErr.ErrorCode() { - return true, nil - } - } - - return true, nil -} - -// LoadBalancersDeletedWaiterOptions are waiter options for -// LoadBalancersDeletedWaiter -type LoadBalancersDeletedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // LoadBalancersDeletedWaiter will use default minimum delay of 15 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, LoadBalancersDeletedWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeLoadBalancersInput, *DescribeLoadBalancersOutput, error) (bool, error) -} - -// LoadBalancersDeletedWaiter defines the waiters for LoadBalancersDeleted -type LoadBalancersDeletedWaiter struct { - client DescribeLoadBalancersAPIClient - - options LoadBalancersDeletedWaiterOptions -} - -// NewLoadBalancersDeletedWaiter constructs a LoadBalancersDeletedWaiter. -func NewLoadBalancersDeletedWaiter(client DescribeLoadBalancersAPIClient, optFns ...func(*LoadBalancersDeletedWaiterOptions)) *LoadBalancersDeletedWaiter { - options := LoadBalancersDeletedWaiterOptions{} - options.MinDelay = 15 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = loadBalancersDeletedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &LoadBalancersDeletedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for LoadBalancersDeleted waiter. The maxWaitDur -// is the maximum wait duration the waiter will wait. The maxWaitDur is required -// and must be greater than zero. -func (w *LoadBalancersDeletedWaiter) Wait(ctx context.Context, params *DescribeLoadBalancersInput, maxWaitDur time.Duration, optFns ...func(*LoadBalancersDeletedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeLoadBalancers(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for LoadBalancersDeleted waiter") -} - -func loadBalancersDeletedStateRetryable(ctx context.Context, input *DescribeLoadBalancersInput, output *DescribeLoadBalancersOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("LoadBalancers[].State.Code", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "active" - var match = true - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - if len(listOfValues) == 0 { - match = false - } - for _, v := range listOfValues { - value, ok := v.(types.LoadBalancerStateEnum) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.LoadBalancerStateEnum value, got %T", pathValue) - } - - if string(value) != expectedValue { - match = false - } - } - - if match { - return true, nil - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "LoadBalancerNotFound" == apiErr.ErrorCode() { - return false, nil - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeLoadBalancers(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go b/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go index fd73529d0e8..502d79e8c51 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go +++ b/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go @@ -4,18 +4,11 @@ package elasticloadbalancingv2 import ( "context" - "errors" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" - smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" - "time" ) // Describes the health of the specified targets or all of your targets. @@ -121,370 +114,6 @@ func (c *Client) addOperationDescribeTargetHealthMiddlewares(stack *middleware.S return nil } -// DescribeTargetHealthAPIClient is a client that implements the -// DescribeTargetHealth operation. -type DescribeTargetHealthAPIClient interface { - DescribeTargetHealth(context.Context, *DescribeTargetHealthInput, ...func(*Options)) (*DescribeTargetHealthOutput, error) -} - -var _ DescribeTargetHealthAPIClient = (*Client)(nil) - -// TargetDeregisteredWaiterOptions are waiter options for TargetDeregisteredWaiter -type TargetDeregisteredWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // TargetDeregisteredWaiter will use default minimum delay of 15 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, TargetDeregisteredWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeTargetHealthInput, *DescribeTargetHealthOutput, error) (bool, error) -} - -// TargetDeregisteredWaiter defines the waiters for TargetDeregistered -type TargetDeregisteredWaiter struct { - client DescribeTargetHealthAPIClient - - options TargetDeregisteredWaiterOptions -} - -// NewTargetDeregisteredWaiter constructs a TargetDeregisteredWaiter. -func NewTargetDeregisteredWaiter(client DescribeTargetHealthAPIClient, optFns ...func(*TargetDeregisteredWaiterOptions)) *TargetDeregisteredWaiter { - options := TargetDeregisteredWaiterOptions{} - options.MinDelay = 15 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = targetDeregisteredStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &TargetDeregisteredWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for TargetDeregistered waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *TargetDeregisteredWaiter) Wait(ctx context.Context, params *DescribeTargetHealthInput, maxWaitDur time.Duration, optFns ...func(*TargetDeregisteredWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeTargetHealth(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for TargetDeregistered waiter") -} - -func targetDeregisteredStateRetryable(ctx context.Context, input *DescribeTargetHealthInput, output *DescribeTargetHealthOutput, err error) (bool, error) { - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "InvalidTarget" == apiErr.ErrorCode() { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("TargetHealthDescriptions[].TargetHealth.State", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "unused" - var match = true - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - if len(listOfValues) == 0 { - match = false - } - for _, v := range listOfValues { - value, ok := v.(types.TargetHealthStateEnum) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.TargetHealthStateEnum value, got %T", pathValue) - } - - if string(value) != expectedValue { - match = false - } - } - - if match { - return false, nil - } - } - - return true, nil -} - -// TargetInServiceWaiterOptions are waiter options for TargetInServiceWaiter -type TargetInServiceWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // TargetInServiceWaiter will use default minimum delay of 15 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, TargetInServiceWaiter will use default max delay of 120 seconds. Note - // that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeTargetHealthInput, *DescribeTargetHealthOutput, error) (bool, error) -} - -// TargetInServiceWaiter defines the waiters for TargetInService -type TargetInServiceWaiter struct { - client DescribeTargetHealthAPIClient - - options TargetInServiceWaiterOptions -} - -// NewTargetInServiceWaiter constructs a TargetInServiceWaiter. -func NewTargetInServiceWaiter(client DescribeTargetHealthAPIClient, optFns ...func(*TargetInServiceWaiterOptions)) *TargetInServiceWaiter { - options := TargetInServiceWaiterOptions{} - options.MinDelay = 15 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = targetInServiceStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &TargetInServiceWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for TargetInService waiter. The maxWaitDur is the -// maximum wait duration the waiter will wait. The maxWaitDur is required and must -// be greater than zero. -func (w *TargetInServiceWaiter) Wait(ctx context.Context, params *DescribeTargetHealthInput, maxWaitDur time.Duration, optFns ...func(*TargetInServiceWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeTargetHealth(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for TargetInService waiter") -} - -func targetInServiceStateRetryable(ctx context.Context, input *DescribeTargetHealthInput, output *DescribeTargetHealthOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("TargetHealthDescriptions[].TargetHealth.State", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "healthy" - var match = true - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - if len(listOfValues) == 0 { - match = false - } - for _, v := range listOfValues { - value, ok := v.(types.TargetHealthStateEnum) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.TargetHealthStateEnum value, got %T", pathValue) - } - - if string(value) != expectedValue { - match = false - } - } - - if match { - return false, nil - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "InvalidInstance" == apiErr.ErrorCode() { - return true, nil - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeTargetHealth(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/elasticloadbalancingv2/generated.json b/service/elasticloadbalancingv2/generated.json index 2de5f06c666..411ceb1c549 100644 --- a/service/elasticloadbalancingv2/generated.json +++ b/service/elasticloadbalancingv2/generated.json @@ -1,8 +1,7 @@ { "dependencies": { "github.com/aws/aws-sdk-go-v2": "v1.4.0", - "github.com/aws/smithy-go": "v1.4.0", - "github.com/jmespath/go-jmespath": "v0.4.0" + "github.com/aws/smithy-go": "v1.4.0" }, "files": [ "api_client.go", diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod index 11cac9ccf75..8316b1ec424 100644 --- a/service/elasticloadbalancingv2/go.mod +++ b/service/elasticloadbalancingv2/go.mod @@ -4,8 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 - github.com/jmespath/go-jmespath v0.4.0 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum index 83be82a84e4..829b1536381 100644 --- a/service/elasticloadbalancingv2/go.sum +++ b/service/elasticloadbalancingv2/go.sum @@ -1,20 +1,14 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/elasticloadbalancingv2/types/types.go b/service/elasticloadbalancingv2/types/types.go index 9d7348114b4..dc340df30c1 100644 --- a/service/elasticloadbalancingv2/types/types.go +++ b/service/elasticloadbalancingv2/types/types.go @@ -522,32 +522,22 @@ type LoadBalancerAttribute struct { // with invalid header fields are removed by the load balancer (true) or routed to // targets (false). The default is false. // - // * - // routing.http.x_amzn_tls_version_and_cipher_suite.enabled - Indicates whether the - // two headers (x-amzn-tls-version and x-amzn-tls-cipher-suite), which contain - // information about the negotiated TLS version and cipher suite, are added to the - // client request before sending it to the target. The x-amzn-tls-version header - // has information about the TLS protocol version negotiated with the client, and - // the x-amzn-tls-cipher-suite header has information about the cipher suite - // negotiated with the client. Both headers are in OpenSSL format. The possible - // values for the attribute are true and false. The default is false. - // - // * - // routing.http2.enabled - Indicates whether HTTP/2 is enabled. The value is true - // or false. The default is true. Elastic Load Balancing requires that message - // header names contain only alphanumeric characters and hyphens. - // - // * - // waf.fail_open.enabled - Indicates whether to allow a WAF-enabled load balancer - // to route requests to targets if it is unable to forward the request to Amazon - // Web Services WAF. The value is true or false. The default is false. - // - // The - // following attribute is supported by Network Load Balancers and Gateway Load - // Balancers: - // - // * load_balancing.cross_zone.enabled - Indicates whether cross-zone - // load balancing is enabled. The value is true or false. The default is false. + // * routing.http2.enabled - Indicates + // whether HTTP/2 is enabled. The value is true or false. The default is true. + // Elastic Load Balancing requires that message header names contain only + // alphanumeric characters and hyphens. + // + // * waf.fail_open.enabled - Indicates + // whether to allow a WAF-enabled load balancer to route requests to targets if it + // is unable to forward the request to Amazon Web Services WAF. The value is true + // or false. The default is false. + // + // The following attribute is supported by Network + // Load Balancers and Gateway Load Balancers: + // + // * load_balancing.cross_zone.enabled + // - Indicates whether cross-zone load balancing is enabled. The value is true or + // false. The default is false. Key *string // The value of the attribute. diff --git a/service/elasticsearchservice/go.mod b/service/elasticsearchservice/go.mod index ac51e1cb476..5d112198b8a 100644 --- a/service/elasticsearchservice/go.mod +++ b/service/elasticsearchservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticsearchservice/go.sum b/service/elasticsearchservice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/elasticsearchservice/go.sum +++ b/service/elasticsearchservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/elastictranscoder/go.mod b/service/elastictranscoder/go.mod index 4971b34b596..183dd3ee121 100644 --- a/service/elastictranscoder/go.mod +++ b/service/elastictranscoder/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/elastictranscoder/go.sum +++ b/service/elastictranscoder/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/emr/api_op_CancelSteps.go b/service/emr/api_op_CancelSteps.go index 41005b602f4..99a41099344 100644 --- a/service/emr/api_op_CancelSteps.go +++ b/service/emr/api_op_CancelSteps.go @@ -15,9 +15,8 @@ import ( // EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps // are allowed in each CancelSteps request. CancelSteps is idempotent but // asynchronous; it does not guarantee that a step will be canceled, even if the -// request is successfully submitted. When you use Amazon EMR versions 5.28.0 and -// later, you can cancel steps that are in a PENDING or RUNNING state. In earlier -// versions of Amazon EMR, you can only cancel steps that are in a PENDING state. +// request is successfully submitted. You can only cancel steps that are in a +// PENDING state. func (c *Client) CancelSteps(ctx context.Context, params *CancelStepsInput, optFns ...func(*Options)) (*CancelStepsOutput, error) { if params == nil { params = &CancelStepsInput{} diff --git a/service/emr/api_op_CreateStudio.go b/service/emr/api_op_CreateStudio.go index a20ffd45c42..927a3e1c2cf 100644 --- a/service/emr/api_op_CreateStudio.go +++ b/service/emr/api_op_CreateStudio.go @@ -54,8 +54,7 @@ type CreateStudioInput struct { Name *string // The IAM role that will be assumed by the Amazon EMR Studio. The service role - // provides a way for Amazon EMR Studio to interoperate with other Amazon Web - // Services services. + // provides a way for Amazon EMR Studio to interoperate with other AWS services. // // This member is required. ServiceRole *string diff --git a/service/emr/api_op_CreateStudioSessionMapping.go b/service/emr/api_op_CreateStudioSessionMapping.go index 1207fe2ece0..066b3eb8412 100644 --- a/service/emr/api_op_CreateStudioSessionMapping.go +++ b/service/emr/api_op_CreateStudioSessionMapping.go @@ -37,10 +37,8 @@ type CreateStudioSessionMappingInput struct { IdentityType types.IdentityType // The Amazon Resource Name (ARN) for the session policy that will be applied to - // the user or group. You should specify the ARN for the session policy that you - // want to apply, not the ARN of your user role. For more information, see Create - // an EMR Studio User Role with Session Policies - // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-studio-user-role.html). + // the user or group. Session policies refine Studio user permissions without the + // need to use multiple IAM user roles. // // This member is required. SessionPolicyArn *string @@ -50,21 +48,21 @@ type CreateStudioSessionMappingInput struct { // This member is required. StudioId *string - // The globally unique identifier (GUID) of the user or group from the Amazon Web - // Services SSO Identity Store. For more information, see UserId + // The globally unique identifier (GUID) of the user or group from the AWS SSO + // Identity Store. For more information, see UserId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) // and GroupId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) - // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName - // or IdentityId must be specified. + // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId + // must be specified. IdentityId *string // The name of the user or group. For more information, see UserName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName - // or IdentityId must be specified. + // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId + // must be specified. IdentityName *string noSmithyDocumentSerde diff --git a/service/emr/api_op_DeleteStudioSessionMapping.go b/service/emr/api_op_DeleteStudioSessionMapping.go index fcda722aa36..955bababda0 100644 --- a/service/emr/api_op_DeleteStudioSessionMapping.go +++ b/service/emr/api_op_DeleteStudioSessionMapping.go @@ -45,8 +45,8 @@ type DeleteStudioSessionMappingInput struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) // and GroupId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) - // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName - // or IdentityId must be specified. + // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId + // must be specified. IdentityId *string // The name of the user name or group to remove from the Amazon EMR Studio. For @@ -54,8 +54,8 @@ type DeleteStudioSessionMappingInput struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the Amazon Web Services SSO Store API Reference. Either IdentityName or - // IdentityId must be specified. + // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId + // must be specified. IdentityName *string noSmithyDocumentSerde diff --git a/service/emr/api_op_DescribeReleaseLabel.go b/service/emr/api_op_DescribeReleaseLabel.go deleted file mode 100644 index d372b29354d..00000000000 --- a/service/emr/api_op_DescribeReleaseLabel.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package emr - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/emr/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Provides EMR release label details, such as releases available the region where -// the API request is run, and the available applications for a specific EMR -// release label. Can also list EMR release versions that support a specified -// version of Spark. -func (c *Client) DescribeReleaseLabel(ctx context.Context, params *DescribeReleaseLabelInput, optFns ...func(*Options)) (*DescribeReleaseLabelOutput, error) { - if params == nil { - params = &DescribeReleaseLabelInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DescribeReleaseLabel", params, optFns, c.addOperationDescribeReleaseLabelMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DescribeReleaseLabelOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DescribeReleaseLabelInput struct { - - // Reserved for future use. Currently set to null. - MaxResults *int32 - - // The pagination token. Reserved for future use. Currently set to null. - NextToken *string - - // The target release label to be described. - ReleaseLabel *string - - noSmithyDocumentSerde -} - -type DescribeReleaseLabelOutput struct { - - // The list of applications available for the target release label. Name is the - // name of the application. Version is the concise version of the application. - Applications []types.SimplifiedApplication - - // The pagination token. Reserved for future use. Currently set to null. - NextToken *string - - // The target release label described in the response. - ReleaseLabel *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDescribeReleaseLabelMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeReleaseLabel{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeReleaseLabel{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReleaseLabel(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDescribeReleaseLabel(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "elasticmapreduce", - OperationName: "DescribeReleaseLabel", - } -} diff --git a/service/emr/api_op_GetBlockPublicAccessConfiguration.go b/service/emr/api_op_GetBlockPublicAccessConfiguration.go index ff35bba090d..4e4f4e50acc 100644 --- a/service/emr/api_op_GetBlockPublicAccessConfiguration.go +++ b/service/emr/api_op_GetBlockPublicAccessConfiguration.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the Amazon EMR block public access configuration for your account in the -// current Region. For more information see Configure Block Public Access for +// Returns the Amazon EMR block public access configuration for your AWS account in +// the current Region. For more information see Configure Block Public Access for // Amazon EMR // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/configure-block-public-access.html) // in the Amazon EMR Management Guide. @@ -54,7 +54,7 @@ type GetBlockPublicAccessConfigurationOutput struct { // This member is required. BlockPublicAccessConfiguration *types.BlockPublicAccessConfiguration - // Properties that describe the Amazon Web Services principal that created the + // Properties that describe the AWS principal that created the // BlockPublicAccessConfiguration using the PutBlockPublicAccessConfiguration // action as well as the date and time that the configuration was created. Each // time a configuration for block public access is updated, Amazon EMR updates this diff --git a/service/emr/api_op_GetStudioSessionMapping.go b/service/emr/api_op_GetStudioSessionMapping.go index 60af901041c..1c6639e2efe 100644 --- a/service/emr/api_op_GetStudioSessionMapping.go +++ b/service/emr/api_op_GetStudioSessionMapping.go @@ -45,16 +45,16 @@ type GetStudioSessionMappingInput struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) // and GroupId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) - // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName - // or IdentityId must be specified. + // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId + // must be specified. IdentityId *string // The name of the user or group to fetch. For more information, see UserName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName - // or IdentityId must be specified. + // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId + // must be specified. IdentityName *string noSmithyDocumentSerde diff --git a/service/emr/api_op_ListClusters.go b/service/emr/api_op_ListClusters.go index 85e2fc61572..bc37accae00 100644 --- a/service/emr/api_op_ListClusters.go +++ b/service/emr/api_op_ListClusters.go @@ -13,11 +13,11 @@ import ( "time" ) -// Provides the status of all clusters visible to this account. Allows you to +// Provides the status of all clusters visible to this AWS account. Allows you to // filter the list of clusters based on certain criteria; for example, filtering by // cluster creation date and time or by status. This call returns a maximum of 50 -// clusters in unsorted order per call, but returns a marker to track the paging of -// the cluster list across multiple ListClusters calls. +// clusters per call, but returns a marker to track the paging of the cluster list +// across multiple ListClusters calls. func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, optFns ...func(*Options)) (*ListClustersOutput, error) { if params == nil { params = &ListClustersInput{} @@ -37,9 +37,7 @@ func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, op // that it returns. type ListClustersInput struct { - // The cluster state filters to apply when listing clusters. Clusters that change - // state while this action runs may be not be returned as expected in the list of - // clusters. + // The cluster state filters to apply when listing clusters. ClusterStates []types.ClusterState // The creation date and time beginning value filter for listing clusters. diff --git a/service/emr/api_op_ListReleaseLabels.go b/service/emr/api_op_ListReleaseLabels.go deleted file mode 100644 index 6646049a4d5..00000000000 --- a/service/emr/api_op_ListReleaseLabels.go +++ /dev/null @@ -1,222 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package emr - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/emr/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Retrieves release labels of EMR services in the region where the API is called. -func (c *Client) ListReleaseLabels(ctx context.Context, params *ListReleaseLabelsInput, optFns ...func(*Options)) (*ListReleaseLabelsOutput, error) { - if params == nil { - params = &ListReleaseLabelsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListReleaseLabels", params, optFns, c.addOperationListReleaseLabelsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListReleaseLabelsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListReleaseLabelsInput struct { - - // Filters the results of the request. Prefix specifies the prefix of release - // labels to return. Application specifies the application (with/without version) - // of release labels to return. - Filters *types.ReleaseLabelFilter - - // Defines the maximum number of release labels to return in a single response. The - // default is 100. - MaxResults *int32 - - // Specifies the next page of results. If NextToken is not specified, which is - // usually the case for the first request of ListReleaseLabels, the first page of - // results are determined by other filtering parameters or by the latest version. - // The ListReleaseLabels request fails if the identity (AWS AccountID) and all - // filtering parameters are different from the original request, or if the - // NextToken is expired or tampered with. - NextToken *string - - noSmithyDocumentSerde -} - -type ListReleaseLabelsOutput struct { - - // Used to paginate the next page of results if specified in the next - // ListReleaseLabels request. - NextToken *string - - // The returned release labels. - ReleaseLabels []string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListReleaseLabelsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListReleaseLabels{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListReleaseLabels{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListReleaseLabels(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListReleaseLabelsAPIClient is a client that implements the ListReleaseLabels -// operation. -type ListReleaseLabelsAPIClient interface { - ListReleaseLabels(context.Context, *ListReleaseLabelsInput, ...func(*Options)) (*ListReleaseLabelsOutput, error) -} - -var _ ListReleaseLabelsAPIClient = (*Client)(nil) - -// ListReleaseLabelsPaginatorOptions is the paginator options for ListReleaseLabels -type ListReleaseLabelsPaginatorOptions struct { - // Defines the maximum number of release labels to return in a single response. The - // default is 100. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListReleaseLabelsPaginator is a paginator for ListReleaseLabels -type ListReleaseLabelsPaginator struct { - options ListReleaseLabelsPaginatorOptions - client ListReleaseLabelsAPIClient - params *ListReleaseLabelsInput - nextToken *string - firstPage bool -} - -// NewListReleaseLabelsPaginator returns a new ListReleaseLabelsPaginator -func NewListReleaseLabelsPaginator(client ListReleaseLabelsAPIClient, params *ListReleaseLabelsInput, optFns ...func(*ListReleaseLabelsPaginatorOptions)) *ListReleaseLabelsPaginator { - if params == nil { - params = &ListReleaseLabelsInput{} - } - - options := ListReleaseLabelsPaginatorOptions{} - if params.MaxResults != nil { - options.Limit = *params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListReleaseLabelsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListReleaseLabelsPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListReleaseLabels page. -func (p *ListReleaseLabelsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListReleaseLabelsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - var limit *int32 - if p.options.Limit > 0 { - limit = &p.options.Limit - } - params.MaxResults = limit - - result, err := p.client.ListReleaseLabels(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListReleaseLabels(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "elasticmapreduce", - OperationName: "ListReleaseLabels", - } -} diff --git a/service/emr/api_op_ListSteps.go b/service/emr/api_op_ListSteps.go index c87a8377a2b..e4853d3a192 100644 --- a/service/emr/api_op_ListSteps.go +++ b/service/emr/api_op_ListSteps.go @@ -13,10 +13,8 @@ import ( ) // Provides a list of steps for the cluster in reverse order unless you specify -// stepIds with the request or filter by StepStates. You can specify a maximum of -// 10 stepIDs. The CLI automatically paginates results to return a list greater -// than 50 steps. To return more than 50 steps using the CLI, specify a Marker, -// which is a pagination token that indicates the next set of steps to retrieve. +// stepIds with the request of filter by StepStates. You can specify a maximum of +// 10 stepIDs. func (c *Client) ListSteps(ctx context.Context, params *ListStepsInput, optFns ...func(*Options)) (*ListStepsOutput, error) { if params == nil { params = &ListStepsInput{} @@ -40,10 +38,7 @@ type ListStepsInput struct { // This member is required. ClusterId *string - // The maximum number of steps that a single ListSteps action returns is 50. To - // return a longer list of steps, use multiple ListSteps actions along with the - // Marker parameter, which is a pagination token that indicates the next set of - // results to retrieve. + // The pagination token that indicates the next set of results to retrieve. Marker *string // The filter to limit the step list based on the identifier of the steps. You can @@ -61,10 +56,7 @@ type ListStepsInput struct { // that the last step is the first element in the list. type ListStepsOutput struct { - // The maximum number of steps that a single ListSteps action returns is 50. To - // return a longer list of steps, use multiple ListSteps actions along with the - // Marker parameter, which is a pagination token that indicates the next set of - // results to retrieve. + // The pagination token that indicates the next set of results to retrieve. Marker *string // The filtered list of steps for the cluster. diff --git a/service/emr/api_op_ListStudios.go b/service/emr/api_op_ListStudios.go index 2e3f6ebe928..50d4393ebde 100644 --- a/service/emr/api_op_ListStudios.go +++ b/service/emr/api_op_ListStudios.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of all Amazon EMR Studios associated with the account. The list -// includes details such as ID, Studio Access URL, and creation time for each +// Returns a list of all Amazon EMR Studios associated with the AWS account. The +// list includes details such as ID, Studio Access URL, and creation time for each // Studio. func (c *Client) ListStudios(ctx context.Context, params *ListStudiosInput, optFns ...func(*Options)) (*ListStudiosOutput, error) { if params == nil { diff --git a/service/emr/api_op_ModifyCluster.go b/service/emr/api_op_ModifyCluster.go index 3f5d6d5da7f..fbae2eb0ab5 100644 --- a/service/emr/api_op_ModifyCluster.go +++ b/service/emr/api_op_ModifyCluster.go @@ -35,9 +35,7 @@ type ModifyClusterInput struct { ClusterId *string // The number of steps that can be executed concurrently. You can specify a minimum - // of 1 step and a maximum of 256 steps. We recommend that you do not change this - // parameter while steps are running or the ActionOnFailure setting may not behave - // as expected. For more information see Step$ActionOnFailure. + // of 1 step and a maximum of 256 steps. StepConcurrencyLevel *int32 noSmithyDocumentSerde diff --git a/service/emr/api_op_ModifyInstanceFleet.go b/service/emr/api_op_ModifyInstanceFleet.go index ef4e205319a..2c8947c75ff 100644 --- a/service/emr/api_op_ModifyInstanceFleet.go +++ b/service/emr/api_op_ModifyInstanceFleet.go @@ -38,7 +38,7 @@ type ModifyInstanceFleetInput struct { // This member is required. ClusterId *string - // The configuration parameters of the instance fleet. + // The unique identifier of the instance fleet. // // This member is required. InstanceFleet *types.InstanceFleetModifyConfig diff --git a/service/emr/api_op_PutBlockPublicAccessConfiguration.go b/service/emr/api_op_PutBlockPublicAccessConfiguration.go index 89069cab83c..6a649cb695a 100644 --- a/service/emr/api_op_PutBlockPublicAccessConfiguration.go +++ b/service/emr/api_op_PutBlockPublicAccessConfiguration.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates or updates an Amazon EMR block public access configuration for your +// Creates or updates an Amazon EMR block public access configuration for your AWS // account in the current Region. For more information see Configure Block Public // Access for Amazon EMR // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/configure-block-public-access.html) diff --git a/service/emr/api_op_RunJobFlow.go b/service/emr/api_op_RunJobFlow.go index 5a040113924..3a3d568cc59 100644 --- a/service/emr/api_op_RunJobFlow.go +++ b/service/emr/api_op_RunJobFlow.go @@ -120,9 +120,9 @@ type RunJobFlowInput struct { // the Amazon EMR Management Guide. KerberosAttributes *types.KerberosAttributes - // The KMS key used for encrypting log files. If a value is not provided, the logs - // remain encrypted by AES-256. This attribute is only available with Amazon EMR - // version 5.30.0 and later, excluding Amazon EMR 6.0.0. + // The AWS KMS customer master key (CMK) used for encrypting log files. If a value + // is not provided, the logs remain encrypted by AES-256. This attribute is only + // available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0. LogEncryptionKmsKeyId *string // The location in Amazon S3 to write the log files of the job flow. If a value is @@ -203,8 +203,8 @@ type RunJobFlowInput struct { // The name of a security configuration to apply to the cluster. SecurityConfiguration *string - // The IAM role that will be assumed by the Amazon EMR service to access Amazon Web - // Services resources on your behalf. + // The IAM role that will be assumed by the Amazon EMR service to access AWS + // resources on your behalf. ServiceRole *string // Specifies the number of steps that can be executed concurrently. The default @@ -230,17 +230,10 @@ type RunJobFlowInput struct { // instances. Tags []types.Tag - // Set this value to true so that IAM principals in the account associated with the - // cluster can perform EMR actions on the cluster that their IAM policies allow. - // This value defaults to false for clusters created using the EMR API or the CLI - // create-cluster - // (https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html) - // command. When set to false, only the IAM principal that created the cluster and - // the account root user can perform EMR actions for the cluster, regardless of the - // IAM permissions policies attached to other IAM principals. For more information, - // see Understanding the EMR Cluster VisibleToAllUsers Setting - // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users) - // in the Amazon EMR Management Guide. + // A value of true indicates that all IAM users in the AWS account can perform + // cluster actions if they have the proper IAM policy permissions. This is the + // default. A value of false indicates that only the IAM user who created the + // cluster can perform actions. VisibleToAllUsers bool noSmithyDocumentSerde diff --git a/service/emr/api_op_SetVisibleToAllUsers.go b/service/emr/api_op_SetVisibleToAllUsers.go index 587f94d3af1..9d574736e4b 100644 --- a/service/emr/api_op_SetVisibleToAllUsers.go +++ b/service/emr/api_op_SetVisibleToAllUsers.go @@ -10,16 +10,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Sets the Cluster$VisibleToAllUsers value for an EMR cluster. When true, IAM -// principals in the account can perform EMR cluster actions that their IAM -// policies allow. When false, only the IAM principal that created the cluster and -// the account root user can perform EMR actions on the cluster, regardless of IAM -// permissions policies attached to other IAM principals. This action works on -// running clusters. When you create a cluster, use the -// RunJobFlowInput$VisibleToAllUsers parameter. For more information, see -// Understanding the EMR Cluster VisibleToAllUsers Setting -// (https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users) -// in the Amazon EMR Management Guide. +// Sets the Cluster$VisibleToAllUsers value, which determines whether the cluster +// is visible to all IAM users of the AWS account associated with the cluster. Only +// the IAM user who created the cluster or the AWS account root user can call this +// action. The default value, true, indicates that all IAM users in the AWS account +// can perform cluster actions if they have the proper IAM policy permissions. If +// set to false, only the IAM user that created the cluster can perform actions. +// This action works on running clusters. You can override the default true setting +// when you create a cluster by using the VisibleToAllUsers parameter with +// RunJobFlow. func (c *Client) SetVisibleToAllUsers(ctx context.Context, params *SetVisibleToAllUsersInput, optFns ...func(*Options)) (*SetVisibleToAllUsersOutput, error) { if params == nil { params = &SetVisibleToAllUsersInput{} @@ -43,10 +42,10 @@ type SetVisibleToAllUsersInput struct { // This member is required. JobFlowIds []string - // A value of true indicates that an IAM principal in the account can perform EMR - // actions on the cluster that the IAM policies attached to the principal allow. A - // value of false indicates that only the IAM principal that created the cluster - // and the Amazon Web Services root user can perform EMR actions on the cluster. + // A value of true indicates that all IAM users in the AWS account can perform + // cluster actions if they have the proper IAM policy permissions. This is the + // default. A value of false indicates that only the IAM user who created the + // cluster can perform actions. // // This member is required. VisibleToAllUsers bool diff --git a/service/emr/api_op_UpdateStudioSessionMapping.go b/service/emr/api_op_UpdateStudioSessionMapping.go index 9d3d9e2b972..8bc415a4b21 100644 --- a/service/emr/api_op_UpdateStudioSessionMapping.go +++ b/service/emr/api_op_UpdateStudioSessionMapping.go @@ -51,16 +51,16 @@ type UpdateStudioSessionMappingInput struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) // and GroupId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) - // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName - // or IdentityId must be specified. + // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId + // must be specified. IdentityId *string // The name of the user or group to update. For more information, see UserName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName - // or IdentityId must be specified. + // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId + // must be specified. IdentityName *string noSmithyDocumentSerde diff --git a/service/emr/deserializers.go b/service/emr/deserializers.go index 6b21bfe8da3..e774cdfafb3 100644 --- a/service/emr/deserializers.go +++ b/service/emr/deserializers.go @@ -1542,120 +1542,6 @@ func awsAwsjson11_deserializeOpErrorDescribeNotebookExecution(response *smithyht } } -type awsAwsjson11_deserializeOpDescribeReleaseLabel struct { -} - -func (*awsAwsjson11_deserializeOpDescribeReleaseLabel) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDescribeReleaseLabel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeReleaseLabel(response, &metadata) - } - output := &DescribeReleaseLabelOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDescribeReleaseLabelOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDescribeReleaseLabel(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidRequestException", errorCode): - return awsAwsjson11_deserializeErrorInvalidRequestException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsAwsjson11_deserializeOpDescribeSecurityConfiguration struct { } @@ -3018,120 +2904,6 @@ func awsAwsjson11_deserializeOpErrorListNotebookExecutions(response *smithyhttp. } } -type awsAwsjson11_deserializeOpListReleaseLabels struct { -} - -func (*awsAwsjson11_deserializeOpListReleaseLabels) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListReleaseLabels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListReleaseLabels(response, &metadata) - } - output := &ListReleaseLabelsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListReleaseLabelsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListReleaseLabels(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidRequestException", errorCode): - return awsAwsjson11_deserializeErrorInvalidRequestException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsAwsjson11_deserializeOpListSecurityConfigurations struct { } @@ -11247,89 +11019,6 @@ func awsAwsjson11_deserializeDocumentSimpleScalingPolicyConfiguration(v **types. return nil } -func awsAwsjson11_deserializeDocumentSimplifiedApplication(v **types.SimplifiedApplication, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SimplifiedApplication - if *v == nil { - sv = &types.SimplifiedApplication{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "Version": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Version = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSimplifiedApplicationList(v *[]types.SimplifiedApplication, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.SimplifiedApplication - if *v == nil { - cv = []types.SimplifiedApplication{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SimplifiedApplication - destAddr := &col - if err := awsAwsjson11_deserializeDocumentSimplifiedApplication(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - func awsAwsjson11_deserializeDocumentSpotProvisioningSpecification(v **types.SpotProvisioningSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13135,60 +12824,6 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookExecutionOutput(v **Descr return nil } -func awsAwsjson11_deserializeOpDocumentDescribeReleaseLabelOutput(v **DescribeReleaseLabelOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DescribeReleaseLabelOutput - if *v == nil { - sv = &DescribeReleaseLabelOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Applications": - if err := awsAwsjson11_deserializeDocumentSimplifiedApplicationList(&sv.Applications, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "ReleaseLabel": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ReleaseLabel = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsAwsjson11_deserializeOpDocumentDescribeSecurityConfigurationOutput(v **DescribeSecurityConfigurationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13709,51 +13344,6 @@ func awsAwsjson11_deserializeOpDocumentListNotebookExecutionsOutput(v **ListNote return nil } -func awsAwsjson11_deserializeOpDocumentListReleaseLabelsOutput(v **ListReleaseLabelsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListReleaseLabelsOutput - if *v == nil { - sv = &ListReleaseLabelsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "ReleaseLabels": - if err := awsAwsjson11_deserializeDocumentStringList(&sv.ReleaseLabels, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsAwsjson11_deserializeOpDocumentListSecurityConfigurationsOutput(v **ListSecurityConfigurationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/emr/doc.go b/service/emr/doc.go index 34b7e50162e..e4af4e03fff 100644 --- a/service/emr/doc.go +++ b/service/emr/doc.go @@ -4,8 +4,7 @@ // Elastic MapReduce. // // Amazon EMR is a web service that makes it easier to process large amounts of -// data efficiently. Amazon EMR uses Hadoop processing combined with several Amazon -// Web Services services to do tasks such as web indexing, data mining, log file -// analysis, machine learning, scientific simulation, and data warehouse -// management. +// data efficiently. Amazon EMR uses Hadoop processing combined with several AWS +// services to do tasks such as web indexing, data mining, log file analysis, +// machine learning, scientific simulation, and data warehouse management. package emr diff --git a/service/emr/generated.json b/service/emr/generated.json index eaf05776f35..0bbc313259f 100644 --- a/service/emr/generated.json +++ b/service/emr/generated.json @@ -20,7 +20,6 @@ "api_op_DescribeCluster.go", "api_op_DescribeJobFlows.go", "api_op_DescribeNotebookExecution.go", - "api_op_DescribeReleaseLabel.go", "api_op_DescribeSecurityConfiguration.go", "api_op_DescribeStep.go", "api_op_DescribeStudio.go", @@ -33,7 +32,6 @@ "api_op_ListInstanceGroups.go", "api_op_ListInstances.go", "api_op_ListNotebookExecutions.go", - "api_op_ListReleaseLabels.go", "api_op_ListSecurityConfigurations.go", "api_op_ListSteps.go", "api_op_ListStudioSessionMappings.go", diff --git a/service/emr/go.mod b/service/emr/go.mod index fe89bdb3126..3d0c2570c3b 100644 --- a/service/emr/go.mod +++ b/service/emr/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/emr/go.sum b/service/emr/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/emr/go.sum +++ b/service/emr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/emr/serializers.go b/service/emr/serializers.go index f446287176a..aa19b0819d1 100644 --- a/service/emr/serializers.go +++ b/service/emr/serializers.go @@ -674,53 +674,6 @@ func (m *awsAwsjson11_serializeOpDescribeNotebookExecution) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDescribeReleaseLabel struct { -} - -func (*awsAwsjson11_serializeOpDescribeReleaseLabel) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpDescribeReleaseLabel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DescribeReleaseLabelInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("ElasticMapReduce.DescribeReleaseLabel") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeReleaseLabelInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsAwsjson11_serializeOpDescribeSecurityConfiguration struct { } @@ -1285,53 +1238,6 @@ func (m *awsAwsjson11_serializeOpListNotebookExecutions) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListReleaseLabels struct { -} - -func (*awsAwsjson11_serializeOpListReleaseLabels) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpListReleaseLabels) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListReleaseLabelsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("ElasticMapReduce.ListReleaseLabels") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListReleaseLabelsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsAwsjson11_serializeOpListSecurityConfigurations struct { } @@ -3416,23 +3322,6 @@ func awsAwsjson11_serializeDocumentPortRanges(v []types.PortRange, value smithyj return nil } -func awsAwsjson11_serializeDocumentReleaseLabelFilter(v *types.ReleaseLabelFilter, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Application != nil { - ok := object.Key("Application") - ok.String(*v.Application) - } - - if v.Prefix != nil { - ok := object.Key("Prefix") - ok.String(*v.Prefix) - } - - return nil -} - func awsAwsjson11_serializeDocumentScalingAction(v *types.ScalingAction, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4142,28 +4031,6 @@ func awsAwsjson11_serializeOpDocumentDescribeNotebookExecutionInput(v *DescribeN return nil } -func awsAwsjson11_serializeOpDocumentDescribeReleaseLabelInput(v *DescribeReleaseLabelInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.ReleaseLabel != nil { - ok := object.Key("ReleaseLabel") - ok.String(*v.ReleaseLabel) - } - - return nil -} - func awsAwsjson11_serializeOpDocumentDescribeSecurityConfigurationInput(v *DescribeSecurityConfigurationInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4409,30 +4276,6 @@ func awsAwsjson11_serializeOpDocumentListNotebookExecutionsInput(v *ListNotebook return nil } -func awsAwsjson11_serializeOpDocumentListReleaseLabelsInput(v *ListReleaseLabelsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsAwsjson11_serializeDocumentReleaseLabelFilter(v.Filters, ok); err != nil { - return err - } - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - func awsAwsjson11_serializeOpDocumentListSecurityConfigurationsInput(v *ListSecurityConfigurationsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/emr/types/types.go b/service/emr/types/types.go index bce2b773d30..5220b019c5c 100644 --- a/service/emr/types/types.go +++ b/service/emr/types/types.go @@ -139,7 +139,7 @@ type BlockPublicAccessConfiguration struct { noSmithyDocumentSerde } -// Properties that describe the Amazon Web Services principal that created the +// Properties that describe the AWS principal that created the // BlockPublicAccessConfiguration using the PutBlockPublicAccessConfiguration // action as well as the date and time that the configuration was created. Each // time a configuration for block public access is updated, Amazon EMR updates this @@ -303,8 +303,9 @@ type Cluster struct { // the Amazon EMR Management Guide. KerberosAttributes *KerberosAttributes - // The KMS key used for encrypting log files. This attribute is only available with - // EMR version 5.30.0 and later, excluding EMR 6.0.0. + // The AWS KMS customer master key (CMK) used for encrypting log files. This + // attribute is only available with EMR version 5.30.0 and later, excluding EMR + // 6.0.0. LogEncryptionKmsKeyId *string // The path to the Amazon S3 location where logs for this cluster are stored. @@ -370,8 +371,8 @@ type Cluster struct { // The name of the security configuration applied to the cluster. SecurityConfiguration *string - // The IAM role that will be assumed by the Amazon EMR service to access Amazon Web - // Services resources on your behalf. + // The IAM role that will be assumed by the Amazon EMR service to access AWS + // resources on your behalf. ServiceRole *string // The current status details about the cluster. @@ -388,22 +389,14 @@ type Cluster struct { // cluster error. TerminationProtected bool - // Indicates whether the cluster is visible to IAM principals in the account - // associated with the cluster. When true, IAM principals in the account can - // perform EMR cluster actions on the cluster that their IAM policies allow. When - // false, only the IAM principal that created the cluster and the account root user - // can perform EMR actions, regardless of IAM permissions policies attached to - // other IAM principals. The default value is false if a value is not provided when - // creating a cluster using the EMR API RunJobFlow command or the CLI - // create-cluster - // (https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html) - // command. The default value is true when a cluster is created using the - // Management Console. IAM principals that are allowed to perform actions on the - // cluster can use the SetVisibleToAllUsers action to change the value on a running - // cluster. For more information, see Understanding the EMR Cluster - // VisibleToAllUsers Setting - // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users) - // in the Amazon EMR Management Guide. + // Indicates whether the cluster is visible to all IAM users of the AWS account + // associated with the cluster. The default value, true, indicates that all IAM + // users in the AWS account can perform cluster actions if they have the proper IAM + // policy permissions. If this value is false, only the IAM user that created the + // cluster can perform actions. This value can be changed on a running cluster by + // using the SetVisibleToAllUsers action. You can override the default value of + // true when you create a cluster by using the VisibleToAllUsers parameter of the + // RunJobFlow action. VisibleToAllUsers bool noSmithyDocumentSerde @@ -774,7 +767,7 @@ type HadoopStepConfig struct { // Represents an EC2 instance provisioned as part of cluster. type Instance struct { - // The list of Amazon EBS volumes that are attached to this instance. + // The list of EBS volumes that are attached to this instance. EbsVolumes []EbsVolume // The unique identifier of the instance in Amazon EC2. @@ -828,8 +821,8 @@ type InstanceFleet struct { // TASK. InstanceFleetType InstanceFleetType - // An array of specifications for the instance types that comprise an instance - // fleet. + // The specification for the instance types that comprise an instance fleet. Up to + // five unique instance specifications may be defined for each instance fleet. InstanceTypeSpecifications []InstanceTypeSpecification // Describes the launch specification for an instance fleet. @@ -1078,9 +1071,9 @@ type InstanceGroup struct { // to set the amount equal to the On-Demand price, or specify an amount in USD. BidPrice *string - // Amazon EMR releases 4.x or later. The list of configurations supplied for an - // Amazon EMR cluster instance group. You can specify a separate configuration for - // each instance group (master, core, and task). + // Amazon EMR releases 4.x or later. The list of configurations supplied for an EMR + // cluster instance group. You can specify a separate configuration for each + // instance group (master, core, and task). Configurations []Configuration // The version number of the requested configuration specification for this @@ -1373,14 +1366,9 @@ type InstanceTimeline struct { // An instance type configuration for each instance type in an instance fleet, // which determines the EC2 instances Amazon EMR attempts to provision to fulfill -// On-Demand and Spot target capacities. When you use an allocation strategy, you -// can include a maximum of 30 instance type configurations for a fleet. For more -// information about how to use an allocation strategy, see Configure Instance -// Fleets -// (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-instance-fleet.html). -// Without an allocation strategy, you may specify a maximum of five instance type -// configurations for a fleet. The instance fleet configuration is available only -// in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. +// On-Demand and Spot target capacities. There can be a maximum of five instance +// type configurations in a fleet. The instance fleet configuration is available +// only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. type InstanceTypeConfig struct { // An EC2 instance type, such as m3.xlarge. @@ -1404,7 +1392,7 @@ type InstanceTypeConfig struct { // cluster. Configurations []Configuration - // The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each + // The configuration of Amazon Elastic Block Storage (Amazon EBS) attached to each // instance as defined by InstanceType. EbsConfiguration *EbsConfiguration @@ -1435,7 +1423,7 @@ type InstanceTypeSpecification struct { // Amazon EMR. Configurations []Configuration - // The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each + // The configuration of Amazon Elastic Block Storage (Amazon EBS) attached to each // instance as defined by InstanceType. EbsBlockDevices []EbsBlockDevice @@ -1494,8 +1482,9 @@ type JobFlowDetail struct { // instances of the job flow assume this role. JobFlowRole *string - // The KMS key used for encrypting log files. This attribute is only available with - // EMR version 5.30.0 and later, excluding EMR 6.0.0. + // The AWS KMS customer master key (CMK) used for encrypting log files. This + // attribute is only available with EMR version 5.30.0 and later, excluding EMR + // 6.0.0. LogEncryptionKmsKeyId *string // The location in Amazon S3 where log files for the job are stored. @@ -1516,8 +1505,8 @@ type JobFlowDetail struct { // earlier than 5.1.0. ScaleDownBehavior ScaleDownBehavior - // The IAM role that is assumed by the Amazon EMR service to access Amazon Web - // Services resources on your behalf. + // The IAM role that is assumed by the Amazon EMR service to access AWS resources + // on your behalf. ServiceRole *string // A list of steps run by the job flow. @@ -1528,21 +1517,14 @@ type JobFlowDetail struct { // empty. SupportedProducts []string - // Indicates whether the cluster is visible to IAM principals in the account - // associated with the cluster. When true, IAM principals in the account can - // perform EMR cluster actions that their IAM policies allow. When false, only the - // IAM principal that created the cluster and the account root user can perform EMR - // actions, regardless of IAM permissions policies attached to other IAM - // principals. The default value is false if a value is not provided when creating - // a cluster using the EMR API RunJobFlow command or the CLI create-cluster - // (https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html) - // command. The default value is true when a cluster is created using the - // Management Console. IAM principals that are authorized to perform actions on the - // cluster can use the SetVisibleToAllUsers action to change the value on a running - // cluster. For more information, see Understanding the EMR Cluster - // VisibleToAllUsers Setting - // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users) - // in the Amazon EMR Management Guide. + // Indicates whether the cluster is visible to all IAM users of the AWS account + // associated with the cluster. The default value, true, indicates that all IAM + // users in the AWS account can perform cluster actions if they have the proper IAM + // policy permissions. If this value is false, only the IAM user that created the + // cluster can perform actions. This value can be changed on a running cluster by + // using the SetVisibleToAllUsers action. You can override the default value of + // true when you create a cluster by using the VisibleToAllUsers parameter of the + // RunJobFlow action. VisibleToAllUsers bool noSmithyDocumentSerde @@ -1607,14 +1589,10 @@ type JobFlowInstancesConfig struct { // EMR versions 4.8.0 and later, excluding 5.0.x versions. Ec2SubnetIds []string - // The identifier of the Amazon EC2 security group for the master node. If you - // specify EmrManagedMasterSecurityGroup, you must also specify - // EmrManagedSlaveSecurityGroup. + // The identifier of the Amazon EC2 security group for the master node. EmrManagedMasterSecurityGroup *string - // The identifier of the Amazon EC2 security group for the core and task nodes. If - // you specify EmrManagedSlaveSecurityGroup, you must also specify - // EmrManagedMasterSecurityGroup. + // The identifier of the Amazon EC2 security group for the core and task nodes. EmrManagedSlaveSecurityGroup *string // Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version @@ -1637,10 +1615,7 @@ type JobFlowInstancesConfig struct { InstanceGroups []InstanceGroupConfig // Specifies whether the cluster should remain available after completing all - // steps. Defaults to true. For more information about configuring cluster - // termination, see Control Cluster Termination - // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) - // in the EMR Management Guide. + // steps. KeepJobFlowAliveWhenNoSteps bool // The EC2 instance type of the master node. @@ -1893,8 +1868,7 @@ type NotebookExecution struct { noSmithyDocumentSerde } -// Details for a notebook execution. The details include information such as the -// unique ID and status of the notebook execution. +// type NotebookExecutionSummary struct { // The unique identifier of the editor associated with the notebook execution. @@ -1974,7 +1948,7 @@ type OnDemandCapacityReservationOptions struct { // On-Demand allocation strategy (lowest-price) is applied. If the number of unused // Capacity Reservations is less than the On-Demand target capacity, the remaining // On-Demand target capacity is launched according to the On-Demand allocation - // strategy (lowest-price). If you do not specify a value, the fleet fulfills the + // strategy (lowest-price). If you do not specify a value, the fleet fulfils the // On-Demand capacity according to the chosen On-Demand allocation strategy. UsageStrategy OnDemandCapacityReservationUsageStrategy @@ -2056,18 +2030,6 @@ type PortRange struct { noSmithyDocumentSerde } -// The release label filters by application or version prefix. -type ReleaseLabelFilter struct { - - // Optional release label application filter. For example, spark@2.1.0. - Application *string - - // Optional release label version prefix filter. For example, emr-5. - Prefix *string - - noSmithyDocumentSerde -} - // The type of adjustment the automatic scaling activity makes when triggered, and // the periodicity of the adjustment. type ScalingAction struct { @@ -2151,7 +2113,8 @@ type ScalingTrigger struct { // Configuration of the script to run during a bootstrap action. type ScriptBootstrapActionConfig struct { - // Location in Amazon S3 of the script to run during a bootstrap action. + // Location of the script to run during a bootstrap action. Can be either a + // location in Amazon S3 or on a local file system. // // This member is required. Path *string @@ -2188,7 +2151,7 @@ type SessionMappingDetail struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the Amazon Web Services SSO Identity Store API Reference. + // in the AWS SSO Identity Store API Reference. IdentityName *string // Specifies whether the identity mapped to the Amazon EMR Studio is a user or a @@ -2215,15 +2178,15 @@ type SessionMappingSummary struct { // The time the session mapping was created. CreationTime *time.Time - // The globally unique identifier (GUID) of the user or group from the Amazon Web - // Services SSO Identity Store. + // The globally unique identifier (GUID) of the user or group from the AWS SSO + // Identity Store. IdentityId *string // The name of the user or group. For more information, see UserName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the Amazon Web Services SSO Identity Store API Reference. + // in the AWS SSO Identity Store API Reference. IdentityName *string // Specifies whether the identity mapped to the Amazon EMR Studio is a user or a @@ -2291,18 +2254,6 @@ type SimpleScalingPolicyConfiguration struct { noSmithyDocumentSerde } -// The returned release label application names or versions. -type SimplifiedApplication struct { - - // The returned release label application name. For example, hadoop. - Name *string - - // The returned release label application version. For example, 3.2.1. - Version *string - - noSmithyDocumentSerde -} - // The launch specification for Spot Instances in the instance fleet, which // determines the defined duration, provisioning timeout behavior, and allocation // strategy. The instance fleet configuration is available only in Amazon EMR @@ -2351,16 +2302,7 @@ type Step struct { // The action to take when the cluster step fails. Possible values are // TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided - // for backward compatibility. We recommend using TERMINATE_CLUSTER instead. If a - // cluster's StepConcurrencyLevel is greater than 1, do not use AddJobFlowSteps to - // submit a step with this parameter set to CANCEL_AND_WAIT or TERMINATE_CLUSTER. - // The step is not submitted and the action fails with a message that the - // ActionOnFailure setting is not valid. If you change a cluster's - // StepConcurrencyLevel to be greater than 1 while a step is running, the - // ActionOnFailure parameter may not behave as you expect. In this case, for a step - // that fails with this parameter set to CANCEL_AND_WAIT, pending steps and the - // running step are not canceled; for a step that fails with this parameter set to - // TERMINATE_CLUSTER, the cluster does not terminate. + // for backward compatibility. We recommend using TERMINATE_CLUSTER instead. ActionOnFailure ActionOnFailure // The Hadoop job configuration of the cluster step. @@ -2378,7 +2320,7 @@ type Step struct { noSmithyDocumentSerde } -// Specification for a cluster (job flow) step. +// Specification of a cluster (job flow) step. type StepConfig struct { // The JAR file used for the step. @@ -2391,30 +2333,9 @@ type StepConfig struct { // This member is required. Name *string - // The action to take when the step fails. Use one of the following values: - // - // * - // TERMINATE_CLUSTER - Shuts down the cluster. - // - // * CANCEL_AND_WAIT - Cancels any - // pending steps and returns the cluster to the WAITING state. - // - // * CONTINUE - - // Continues to the next step in the queue. - // - // * TERMINATE_JOB_FLOW - Shuts down the - // cluster. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend - // using TERMINATE_CLUSTER instead. - // - // If a cluster's StepConcurrencyLevel is greater - // than 1, do not use AddJobFlowSteps to submit a step with this parameter set to - // CANCEL_AND_WAIT or TERMINATE_CLUSTER. The step is not submitted and the action - // fails with a message that the ActionOnFailure setting is not valid. If you - // change a cluster's StepConcurrencyLevel to be greater than 1 while a step is - // running, the ActionOnFailure parameter may not behave as you expect. In this - // case, for a step that fails with this parameter set to CANCEL_AND_WAIT, pending - // steps and the running step are not canceled; for a step that fails with this - // parameter set to TERMINATE_CLUSTER, the cluster does not terminate. + // The action to take when the cluster step fails. Possible values are + // TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided + // for backward compatibility. We recommend using TERMINATE_CLUSTER instead. ActionOnFailure ActionOnFailure noSmithyDocumentSerde @@ -2498,7 +2419,8 @@ type StepSummary struct { // The action to take when the cluster step fails. Possible values are // TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is - // available for backward compatibility. + // available for backward compatibility. We recommend using TERMINATE_CLUSTER + // instead. ActionOnFailure ActionOnFailure // The Hadoop job configuration of the cluster step. diff --git a/service/emrcontainers/deserializers.go b/service/emrcontainers/deserializers.go index 23dd88fa0c2..5144fba1a55 100644 --- a/service/emrcontainers/deserializers.go +++ b/service/emrcontainers/deserializers.go @@ -2657,7 +2657,7 @@ func awsRestjson1_deserializeDocumentContainerProvider(v **types.ContainerProvid if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } @@ -2711,7 +2711,7 @@ func awsRestjson1_deserializeDocumentEksInfo(v **types.EksInfo, value interface{ if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected KubernetesNamespace to be of type string, got %T instead", value) + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) } sv.Namespace = ptr.String(jtv) } @@ -2795,15 +2795,6 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac sv.ExecutionRoleArn = ptr.String(jtv) } - case "failureReason": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) - } - sv.FailureReason = types.FailureReason(jtv) - } - case "id": if value != nil { jtv, ok := value.(string) @@ -2858,15 +2849,6 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac sv.State = types.EndpointState(jtv) } - case "stateDetails": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String256 to be of type string, got %T instead", value) - } - sv.StateDetails = ptr.String(jtv) - } - case "subnetIds": if err := awsRestjson1_deserializeDocumentSubnetIds(&sv.SubnetIds, value); err != nil { return err diff --git a/service/emrcontainers/go.mod b/service/emrcontainers/go.mod index 142cc980aa7..407188c928c 100644 --- a/service/emrcontainers/go.mod +++ b/service/emrcontainers/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/emrcontainers/go.sum b/service/emrcontainers/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/emrcontainers/go.sum +++ b/service/emrcontainers/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/emrcontainers/types/types.go b/service/emrcontainers/types/types.go index e656f2d09a5..8001a97fccc 100644 --- a/service/emrcontainers/types/types.go +++ b/service/emrcontainers/types/types.go @@ -120,9 +120,6 @@ type Endpoint struct { // The execution role ARN of the endpoint. ExecutionRoleArn *string - // The reasons why the endpoint has failed. - FailureReason FailureReason - // The ID of the endpoint. Id *string @@ -141,9 +138,6 @@ type Endpoint struct { // The state of the endpoint. State EndpointState - // Additional details of the endpoint state. - StateDetails *string - // The subnet IDs of the endpoint. SubnetIds []string diff --git a/service/eventbridge/go.mod b/service/eventbridge/go.mod index 3f8a06a64a3..cf0c8485c56 100644 --- a/service/eventbridge/go.mod +++ b/service/eventbridge/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/eventbridge/go.sum b/service/eventbridge/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/eventbridge/go.sum +++ b/service/eventbridge/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/finspace/go.mod b/service/finspace/go.mod index 5c9f6a92298..48d143efec8 100644 --- a/service/finspace/go.mod +++ b/service/finspace/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/finspace/go.sum b/service/finspace/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/finspace/go.sum +++ b/service/finspace/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/finspacedata/go.mod b/service/finspacedata/go.mod index f30cac2805b..e5d639b963e 100644 --- a/service/finspacedata/go.mod +++ b/service/finspacedata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/finspacedata/go.sum b/service/finspacedata/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/finspacedata/go.sum +++ b/service/finspacedata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/firehose/go.mod b/service/firehose/go.mod index 469b1f42421..45cb4446f08 100644 --- a/service/firehose/go.mod +++ b/service/firehose/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/firehose/go.sum b/service/firehose/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/firehose/go.sum +++ b/service/firehose/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/fis/go.mod b/service/fis/go.mod index c9bc58655bc..c9239d7e149 100644 --- a/service/fis/go.mod +++ b/service/fis/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fis/go.sum b/service/fis/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/fis/go.sum +++ b/service/fis/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/fms/go.mod b/service/fms/go.mod index 042af7221b6..29785aa654a 100644 --- a/service/fms/go.mod +++ b/service/fms/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fms/go.sum b/service/fms/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/fms/go.sum +++ b/service/fms/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/forecast/go.mod b/service/forecast/go.mod index 88a247a972b..7753373fe6b 100644 --- a/service/forecast/go.mod +++ b/service/forecast/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/forecast/go.sum b/service/forecast/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/forecast/go.sum +++ b/service/forecast/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/forecastquery/go.mod b/service/forecastquery/go.mod index 2650c824deb..5330435449a 100644 --- a/service/forecastquery/go.mod +++ b/service/forecastquery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/forecastquery/go.sum b/service/forecastquery/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/forecastquery/go.sum +++ b/service/forecastquery/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/frauddetector/go.mod b/service/frauddetector/go.mod index fc497b4b222..75905c361c0 100644 --- a/service/frauddetector/go.mod +++ b/service/frauddetector/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/frauddetector/go.sum b/service/frauddetector/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/frauddetector/go.sum +++ b/service/frauddetector/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/fsx/go.mod b/service/fsx/go.mod index 867d75953bd..fc79448a539 100644 --- a/service/fsx/go.mod +++ b/service/fsx/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fsx/go.sum b/service/fsx/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/fsx/go.sum +++ b/service/fsx/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/gamelift/go.mod b/service/gamelift/go.mod index 90dceb719e2..d0c16422bb1 100644 --- a/service/gamelift/go.mod +++ b/service/gamelift/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/gamelift/go.sum b/service/gamelift/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/gamelift/go.sum +++ b/service/gamelift/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/glacier/go.mod b/service/glacier/go.mod index 70b2f8c69f7..4b4b6aeebb0 100644 --- a/service/glacier/go.mod +++ b/service/glacier/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/glacier/go.sum b/service/glacier/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/glacier/go.sum +++ b/service/glacier/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/globalaccelerator/go.mod b/service/globalaccelerator/go.mod index c526bcd0cb1..d22a121103f 100644 --- a/service/globalaccelerator/go.mod +++ b/service/globalaccelerator/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/globalaccelerator/go.sum b/service/globalaccelerator/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/globalaccelerator/go.sum +++ b/service/globalaccelerator/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/glue/go.mod b/service/glue/go.mod index 5f055d8baf4..e9aa0145b71 100644 --- a/service/glue/go.mod +++ b/service/glue/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/glue/go.sum b/service/glue/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/glue/go.sum +++ b/service/glue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/greengrass/go.mod b/service/greengrass/go.mod index 197769582b3..0e85f6a8c68 100644 --- a/service/greengrass/go.mod +++ b/service/greengrass/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/greengrass/go.sum b/service/greengrass/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/greengrass/go.sum +++ b/service/greengrass/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/greengrassv2/go.mod b/service/greengrassv2/go.mod index 1375b16ce67..b2018746f9c 100644 --- a/service/greengrassv2/go.mod +++ b/service/greengrassv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/greengrassv2/go.sum b/service/greengrassv2/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/greengrassv2/go.sum +++ b/service/greengrassv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/groundstation/go.mod b/service/groundstation/go.mod index a0f04ff872c..958da341a07 100644 --- a/service/groundstation/go.mod +++ b/service/groundstation/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/groundstation/go.sum b/service/groundstation/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/groundstation/go.sum +++ b/service/groundstation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/guardduty/go.mod b/service/guardduty/go.mod index c3c3ed66fc3..0c2280f1a20 100644 --- a/service/guardduty/go.mod +++ b/service/guardduty/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/guardduty/go.sum b/service/guardduty/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/guardduty/go.sum +++ b/service/guardduty/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/health/go.mod b/service/health/go.mod index f255cf62ee3..302420f42a1 100644 --- a/service/health/go.mod +++ b/service/health/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/health/go.sum b/service/health/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/health/go.sum +++ b/service/health/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/healthlake/go.mod b/service/healthlake/go.mod index fc8d64c6352..6093547c710 100644 --- a/service/healthlake/go.mod +++ b/service/healthlake/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/healthlake/go.sum b/service/healthlake/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/healthlake/go.sum +++ b/service/healthlake/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/honeycode/go.mod b/service/honeycode/go.mod index b3833fd5e7c..5a561e4dbbc 100644 --- a/service/honeycode/go.mod +++ b/service/honeycode/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/honeycode/go.sum b/service/honeycode/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/honeycode/go.sum +++ b/service/honeycode/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iam/api_op_CreateOpenIDConnectProvider.go b/service/iam/api_op_CreateOpenIDConnectProvider.go index f842f988c29..cc995332e7f 100644 --- a/service/iam/api_op_CreateOpenIDConnectProvider.go +++ b/service/iam/api_op_CreateOpenIDConnectProvider.go @@ -36,15 +36,9 @@ import ( // // You get all of // this information from the OIDC IdP that you want to use to access Amazon Web -// Services. Amazon Web Services secures communication with some OIDC identity -// providers (IdPs) through our library of trusted certificate authorities (CAs) -// instead of using a certificate thumbprint to verify your IdP server certificate. -// These OIDC IdPs include Google, and those that use an Amazon S3 bucket to host a -// JSON Web Key Set (JWKS) endpoint. In these cases, your legacy thumbprint remains -// in your configuration, but is no longer used for validation. The trust for the -// OIDC provider is derived from the IAM provider that this operation creates. -// Therefore, it is best to limit access to the CreateOpenIDConnectProvider -// operation to highly privileged users. +// Services. The trust for the OIDC provider is derived from the IAM provider that +// this operation creates. Therefore, it is best to limit access to the +// CreateOpenIDConnectProvider operation to highly privileged users. func (c *Client) CreateOpenIDConnectProvider(ctx context.Context, params *CreateOpenIDConnectProviderInput, optFns ...func(*Options)) (*CreateOpenIDConnectProviderOutput, error) { if params == nil { params = &CreateOpenIDConnectProviderInput{} diff --git a/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go b/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go index d6b3bca7452..126afed68c1 100644 --- a/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go +++ b/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go @@ -14,19 +14,13 @@ import ( // OpenID Connect (OIDC) provider resource object with a new list of thumbprints. // The list that you pass with this operation completely replaces the existing list // of thumbprints. (The lists are not merged.) Typically, you need to update a -// thumbprint only when the identity provider certificate changes, which occurs +// thumbprint only when the identity provider's certificate changes, which occurs // rarely. However, if the provider's certificate does change, any attempt to // assume an IAM role that specifies the OIDC provider as a principal fails until -// the certificate thumbprint is updated. Amazon Web Services secures communication -// with some OIDC identity providers (IdPs) through our library of trusted -// certificate authorities (CAs) instead of using a certificate thumbprint to -// verify your IdP server certificate. These OIDC IdPs include Google, and those -// that use an Amazon S3 bucket to host a JSON Web Key Set (JWKS) endpoint. In -// these cases, your legacy thumbprint remains in your configuration, but is no -// longer used for validation. Trust for the OIDC provider is derived from the -// provider certificate and is validated by the thumbprint. Therefore, it is best -// to limit access to the UpdateOpenIDConnectProviderThumbprint operation to highly -// privileged users. +// the certificate thumbprint is updated. Trust for the OIDC provider is derived +// from the provider's certificate and is validated by the thumbprint. Therefore, +// it is best to limit access to the UpdateOpenIDConnectProviderThumbprint +// operation to highly privileged users. func (c *Client) UpdateOpenIDConnectProviderThumbprint(ctx context.Context, params *UpdateOpenIDConnectProviderThumbprintInput, optFns ...func(*Options)) (*UpdateOpenIDConnectProviderThumbprintOutput, error) { if params == nil { params = &UpdateOpenIDConnectProviderThumbprintInput{} diff --git a/service/iam/go.mod b/service/iam/go.mod index d2112d21aae..79afe4b62c6 100644 --- a/service/iam/go.mod +++ b/service/iam/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iam/go.sum b/service/iam/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iam/go.sum +++ b/service/iam/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/identitystore/api_op_DescribeGroup.go b/service/identitystore/api_op_DescribeGroup.go index e2b199b06a8..617b2194e6d 100644 --- a/service/identitystore/api_op_DescribeGroup.go +++ b/service/identitystore/api_op_DescribeGroup.go @@ -35,7 +35,7 @@ type DescribeGroupInput struct { // The globally unique identifier for the identity store, such as d-1234567890. In // this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string that contains number and lower case letters. This value is generated at + // string which contains number and lower case letters. This value is generated at // the time that a new identity store is created. // // This member is required. @@ -46,12 +46,12 @@ type DescribeGroupInput struct { type DescribeGroupOutput struct { - // Contains the group’s display name value. The length limit is 1,024 characters. + // Contains the group’s display name value. The length limit is 1024 characters. // This value can consist of letters, accented characters, symbols, numbers, - // punctuation, tab, new line, carriage return, space, and nonbreaking space in - // this attribute. The characters <>;:% are excluded. This value is specified at - // the time that the group is created and stored as an attribute of the group - // object in the identity store. + // punctuation, tab, new line, carriage return, space and non breaking space in + // this attribute. The characters “<>;:%” are excluded. This value is specified at + // the time the group is created and stored as an attribute of the group object in + // the identity store. // // This member is required. DisplayName *string diff --git a/service/identitystore/api_op_DescribeUser.go b/service/identitystore/api_op_DescribeUser.go index 9065fceb99f..54a55e77259 100644 --- a/service/identitystore/api_op_DescribeUser.go +++ b/service/identitystore/api_op_DescribeUser.go @@ -30,7 +30,7 @@ type DescribeUserInput struct { // The globally unique identifier for the identity store, such as d-1234567890. In // this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string that contains number and lower case letters. This value is generated at + // string which contains number and lower case letters. This value is generated at // the time that a new identity store is created. // // This member is required. @@ -51,9 +51,9 @@ type DescribeUserOutput struct { // This member is required. UserId *string - // Contains the user’s user name value. The length limit is 128 characters. This - // value can consist of letters, accented characters, symbols, numbers, and - // punctuation. The characters <>;:% are excluded. This value is specified at the + // Contains the user’s username value. The length limit is 128 characters. This + // value can consist of letters, accented characters, symbols, numbers and + // punctuation. The characters “<>;:%” are excluded. This value is specified at the // time the user is created and stored as an attribute of the user object in the // identity store. // diff --git a/service/identitystore/api_op_ListGroups.go b/service/identitystore/api_op_ListGroups.go index bf36d59d9ef..b276be079b2 100644 --- a/service/identitystore/api_op_ListGroups.go +++ b/service/identitystore/api_op_ListGroups.go @@ -35,7 +35,7 @@ type ListGroupsInput struct { // The globally unique identifier for the identity store, such as d-1234567890. In // this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string that contains number and lower case letters. This value is generated at + // string which contains number and lower case letters. This value is generated at // the time that a new identity store is created. // // This member is required. @@ -44,15 +44,15 @@ type ListGroupsInput struct { // A list of Filter objects, which is used in the ListUsers and ListGroups request. Filters []types.Filter - // The maximum number of results to be returned per request. This parameter is used - // in the ListUsers and ListGroups request to specify how many results to return in - // one page. The length limit is 50 characters. + // The maximum number of results to be returned per request, which is used in the + // ListUsers and ListGroups request to specify how many results to return in one + // page. The length limit is 50 characters. MaxResults *int32 - // The pagination token used for the ListUsers and ListGroups API operations. This - // value is generated by the identity store service. It is returned in the API - // response if the total results are more than the size of one page. This token is - // also returned when it is used in the API request to search for the next page. + // The pagination token used for the ListUsers and ListGroups APIs. This value is + // generated by the identity store service and is returned in the API response if + // the total results are more than the size of one page, and when this token is + // used in the API request to search for the next page. NextToken *string noSmithyDocumentSerde @@ -65,10 +65,10 @@ type ListGroupsOutput struct { // This member is required. Groups []types.Group - // The pagination token used for the ListUsers and ListGroups API operations. This - // value is generated by the identity store service. It is returned in the API - // response if the total results are more than the size of one page. This token is - // also returned when it1 is used in the API request to search for the next page. + // The pagination token used for the ListUsers and ListGroups APIs. This value is + // generated by the identity store service and is returned in the API response if + // the total results are more than the size of one page, and when this token is + // used in the API request to search for the next page. NextToken *string // Metadata pertaining to the operation's result. @@ -149,9 +149,9 @@ var _ ListGroupsAPIClient = (*Client)(nil) // ListGroupsPaginatorOptions is the paginator options for ListGroups type ListGroupsPaginatorOptions struct { - // The maximum number of results to be returned per request. This parameter is used - // in the ListUsers and ListGroups request to specify how many results to return in - // one page. The length limit is 50 characters. + // The maximum number of results to be returned per request, which is used in the + // ListUsers and ListGroups request to specify how many results to return in one + // page. The length limit is 50 characters. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/identitystore/api_op_ListUsers.go b/service/identitystore/api_op_ListUsers.go index 5679ddb86cf..34acab1a5b2 100644 --- a/service/identitystore/api_op_ListUsers.go +++ b/service/identitystore/api_op_ListUsers.go @@ -35,7 +35,7 @@ type ListUsersInput struct { // The globally unique identifier for the identity store, such as d-1234567890. In // this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string that contains number and lower case letters. This value is generated at + // string which contains number and lower case letters. This value is generated at // the time that a new identity store is created. // // This member is required. @@ -44,15 +44,15 @@ type ListUsersInput struct { // A list of Filter objects, which is used in the ListUsers and ListGroups request. Filters []types.Filter - // The maximum number of results to be returned per request. This parameter is used - // in the ListUsers and ListGroups request to specify how many results to return in - // one page. The length limit is 50 characters. + // The maximum number of results to be returned per request, which is used in the + // ListUsers and ListGroups request to specify how many results to return in one + // page. The length limit is 50 characters. MaxResults *int32 - // The pagination token used for the ListUsers and ListGroups API operations. This - // value is generated by the identity store service. It is returned in the API - // response if the total results are more than the size of one page. This token is - // also returned when it is used in the API request to search for the next page. + // The pagination token used for the ListUsers and ListGroups APIs. This value is + // generated by the identity store service and is returned in the API response if + // the total results are more than the size of one page, and when this token is + // used in the API request to search for the next page. NextToken *string noSmithyDocumentSerde @@ -65,10 +65,10 @@ type ListUsersOutput struct { // This member is required. Users []types.User - // The pagination token used for the ListUsers and ListGroups API operations. This - // value is generated by the identity store service. It is returned in the API - // response if the total results are more than the size of one page. This token is - // also returned when it is used in the API request to search for the next page. + // The pagination token used for the ListUsers and ListGroups APIs. This value is + // generated by the identity store service and is returned in the API response if + // the total results are more than the size of one page, and when this token is + // used in the API request to search for the next page. NextToken *string // Metadata pertaining to the operation's result. @@ -149,9 +149,9 @@ var _ ListUsersAPIClient = (*Client)(nil) // ListUsersPaginatorOptions is the paginator options for ListUsers type ListUsersPaginatorOptions struct { - // The maximum number of results to be returned per request. This parameter is used - // in the ListUsers and ListGroups request to specify how many results to return in - // one page. The length limit is 50 characters. + // The maximum number of results to be returned per request, which is used in the + // ListUsers and ListGroups request to specify how many results to return in one + // page. The length limit is 50 characters. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/identitystore/doc.go b/service/identitystore/doc.go index f2c218eeda7..264f8d6851b 100644 --- a/service/identitystore/doc.go +++ b/service/identitystore/doc.go @@ -3,8 +3,4 @@ // Package identitystore provides the API client, operations, and parameter types // for AWS SSO Identity Store. // -// The AWS Single Sign-On (SSO) Identity Store service provides a single place to -// retrieve all of your identities (users and groups). For more information about -// AWS, see the AWS Single Sign-On User Guide -// (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html). package identitystore diff --git a/service/identitystore/go.mod b/service/identitystore/go.mod index fa144f2541f..f1a5c2843bc 100644 --- a/service/identitystore/go.mod +++ b/service/identitystore/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/identitystore/go.sum b/service/identitystore/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/identitystore/go.sum +++ b/service/identitystore/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/identitystore/types/types.go b/service/identitystore/types/types.go index ea1f3e0cff1..f9bcfbb0cf0 100644 --- a/service/identitystore/types/types.go +++ b/service/identitystore/types/types.go @@ -10,10 +10,9 @@ import ( // attribute name and attribute value to search users or groups. type Filter struct { - // The attribute path that is used to specify which attribute name to search. - // Length limit is 255 characters. For example, UserName is a valid attribute path - // for the ListUsers API, and DisplayName is a valid attribute path for the - // ListGroups API. + // The attribute path used to specify which attribute name to search. Length limit + // is 255 characters. For example, UserName is a valid attribute path for the + // ListUsers API, and DisplayName is a valid attribute path for the ListGroups API. // // This member is required. AttributePath *string @@ -30,10 +29,10 @@ type Filter struct { // A group object, which contains a specified group’s metadata and attributes. type Group struct { - // Contains the group’s display name value. The length limit is 1,024 characters. + // Contains the group’s display name value. The length limit is 1024 characters. // This value can consist of letters, accented characters, symbols, numbers, - // punctuation, tab, new line, carriage return, space, and nonbreaking space in - // this attribute. The characters <>;:% are excluded. This value is specified at + // punctuation, tab, new line, carriage return, space and non breaking space in + // this attribute. The characters “<>;:%” are excluded. This value is specified at // the time the group is created and stored as an attribute of the group object in // the identity store. // @@ -56,9 +55,9 @@ type User struct { // This member is required. UserId *string - // Contains the user’s user name value. The length limit is 128 characters. This - // value can consist of letters, accented characters, symbols, numbers, and - // punctuation. The characters <>;:% are excluded. This value is specified at the + // Contains the user’s username value. The length limit is 128 characters. This + // value can consist of letters, accented characters, symbols, numbers and + // punctuation. The characters “<>;:%” are excluded. This value is specified at the // time the user is created and stored as an attribute of the user object in the // identity store. // diff --git a/service/imagebuilder/api_op_CreateComponent.go b/service/imagebuilder/api_op_CreateComponent.go index 8cd31a503f8..70a84994cab 100644 --- a/service/imagebuilder/api_op_CreateComponent.go +++ b/service/imagebuilder/api_op_CreateComponent.go @@ -47,14 +47,8 @@ type CreateComponentInput struct { Platform types.Platform // The semantic version of the component. This version follows the semantic version - // syntax. The semantic version has four nodes: ../. You can assign values for the - // first three, and can filter on all of them. Assignment: For the first three - // nodes you can assign any positive integer value, including zero, with an upper - // limit of 2^30-1, or 1073741823 for each node. Image Builder automatically - // assigns the build number, and that is not open for updates. Patterns: You can - // use any numeric pattern that adheres to the assignment requirements for the - // nodes that you can assign. For example, you might choose a software version - // pattern, such as 1.0.0, or a date, such as 2021.01.01. + // syntax. For example, major.minor.patch. This could be versioned like software + // (2.0.1) or like a date (2019.12.01). // // This member is required. SemanticVersion *string diff --git a/service/imagebuilder/api_op_CreateContainerRecipe.go b/service/imagebuilder/api_op_CreateContainerRecipe.go index 14ba6576369..1aa84227478 100644 --- a/service/imagebuilder/api_op_CreateContainerRecipe.go +++ b/service/imagebuilder/api_op_CreateContainerRecipe.go @@ -56,15 +56,7 @@ type CreateContainerRecipeInput struct { // This member is required. ParentImage *string - // The semantic version of the container recipe. This version follows the semantic - // version syntax. The semantic version has four nodes: ../. You can assign values - // for the first three, and can filter on all of them. Assignment: For the first - // three nodes you can assign any positive integer value, including zero, with an - // upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically - // assigns the build number, and that is not open for updates. Patterns: You can - // use any numeric pattern that adheres to the assignment requirements for the - // nodes that you can assign. For example, you might choose a software version - // pattern, such as 1.0.0, or a date, such as 2021.01.01. + // The semantic version of the container recipe (..). // // This member is required. SemanticVersion *string diff --git a/service/imagebuilder/api_op_CreateImageRecipe.go b/service/imagebuilder/api_op_CreateImageRecipe.go index 15e3ae79680..c56ec16e439 100644 --- a/service/imagebuilder/api_op_CreateImageRecipe.go +++ b/service/imagebuilder/api_op_CreateImageRecipe.go @@ -57,15 +57,7 @@ type CreateImageRecipeInput struct { // This member is required. ParentImage *string - // The semantic version of the image recipe. This version follows the semantic - // version syntax. The semantic version has four nodes: ../. You can assign values - // for the first three, and can filter on all of them. Assignment: For the first - // three nodes you can assign any positive integer value, including zero, with an - // upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically - // assigns the build number, and that is not open for updates. Patterns: You can - // use any numeric pattern that adheres to the assignment requirements for the - // nodes that you can assign. For example, you might choose a software version - // pattern, such as 1.0.0, or a date, such as 2021.01.01. + // The semantic version of the image recipe. // // This member is required. SemanticVersion *string diff --git a/service/imagebuilder/api_op_ImportComponent.go b/service/imagebuilder/api_op_ImportComponent.go index e768c2a4759..07c06c15b45 100644 --- a/service/imagebuilder/api_op_ImportComponent.go +++ b/service/imagebuilder/api_op_ImportComponent.go @@ -51,20 +51,14 @@ type ImportComponentInput struct { Platform types.Platform // The semantic version of the component. This version follows the semantic version - // syntax. The semantic version has four nodes: ../. You can assign values for the - // first three, and can filter on all of them. Filtering: When you retrieve or - // reference a resource with a semantic version, you can use wildcards (x) to - // filter your results. When you use a wildcard in any node, all nodes to the right - // of the first wildcard must also be wildcards. For example, specifying "1.2.x", - // or "1.x.x" works to filter list results, but neither "1.x.2", nor "x.2.x" will - // work. You do not have to specify the build - Image Builder automatically uses a - // wildcard for that, if applicable. + // syntax. For example, major.minor.patch. This could be versioned like software + // (2.0.1) or like a date (2019.12.01). // // This member is required. SemanticVersion *string // The type of the component denotes whether the component is used to build the - // image, or only to test it. + // image or only to test it. // // This member is required. Type types.ComponentType diff --git a/service/imagebuilder/api_op_ListComponentBuildVersions.go b/service/imagebuilder/api_op_ListComponentBuildVersions.go index 4d6f03e5c8a..af5309719c6 100644 --- a/service/imagebuilder/api_op_ListComponentBuildVersions.go +++ b/service/imagebuilder/api_op_ListComponentBuildVersions.go @@ -13,14 +13,6 @@ import ( ) // Returns the list of component build versions for the specified semantic version. -// The semantic version has four nodes: ../. You can assign values for the first -// three, and can filter on all of them. Filtering: When you retrieve or reference -// a resource with a semantic version, you can use wildcards (x) to filter your -// results. When you use a wildcard in any node, all nodes to the right of the -// first wildcard must also be wildcards. For example, specifying "1.2.x", or -// "1.x.x" works to filter list results, but neither "1.x.2", nor "x.2.x" will -// work. You do not have to specify the build - Image Builder automatically uses a -// wildcard for that, if applicable. func (c *Client) ListComponentBuildVersions(ctx context.Context, params *ListComponentBuildVersionsInput, optFns ...func(*Options)) (*ListComponentBuildVersionsOutput, error) { if params == nil { params = &ListComponentBuildVersionsInput{} diff --git a/service/imagebuilder/api_op_ListComponents.go b/service/imagebuilder/api_op_ListComponents.go index 727c322af62..ea4a6acbc68 100644 --- a/service/imagebuilder/api_op_ListComponents.go +++ b/service/imagebuilder/api_op_ListComponents.go @@ -13,14 +13,6 @@ import ( ) // Returns the list of component build versions for the specified semantic version. -// The semantic version has four nodes: ../. You can assign values for the first -// three, and can filter on all of them. Filtering: When you retrieve or reference -// a resource with a semantic version, you can use wildcards (x) to filter your -// results. When you use a wildcard in any node, all nodes to the right of the -// first wildcard must also be wildcards. For example, specifying "1.2.x", or -// "1.x.x" works to filter list results, but neither "1.x.2", nor "x.2.x" will -// work. You do not have to specify the build - Image Builder automatically uses a -// wildcard for that, if applicable. func (c *Client) ListComponents(ctx context.Context, params *ListComponentsInput, optFns ...func(*Options)) (*ListComponentsOutput, error) { if params == nil { params = &ListComponentsInput{} @@ -38,7 +30,7 @@ func (c *Client) ListComponents(ctx context.Context, params *ListComponentsInput type ListComponentsInput struct { - // Returns the list of component build versions for the specified name. + // Returns the list of component build versions for the specified semantic version. ByName bool // The filters. @@ -62,8 +54,7 @@ type ListComponentsInput struct { type ListComponentsOutput struct { - // The list of component semantic versions. The semantic version has four nodes: - // ../. You can assign values for the first three, and can filter on all of them. + // The list of component semantic versions. ComponentVersionList []types.ComponentVersion // The next token used for paginated responses. When this is not empty, there are diff --git a/service/imagebuilder/api_op_ListImages.go b/service/imagebuilder/api_op_ListImages.go index 38a4a60d0b3..f4f79fea732 100644 --- a/service/imagebuilder/api_op_ListImages.go +++ b/service/imagebuilder/api_op_ListImages.go @@ -57,14 +57,7 @@ type ListImagesInput struct { type ListImagesOutput struct { - // The list of image semantic versions. The semantic version has four nodes: ../. - // You can assign values for the first three, and can filter on all of them. - // Filtering: When you retrieve or reference a resource with a semantic version, - // you can use wildcards (x) to filter your results. When you use a wildcard in any - // node, all nodes to the right of the first wildcard must also be wildcards. For - // example, specifying "1.2.x", or "1.x.x" works to filter list results, but - // neither "1.x.2", nor "x.2.x" will work. You do not have to specify the build - - // Image Builder automatically uses a wildcard for that, if applicable. + // The list of image semantic versions. ImageVersionList []types.ImageVersion // The next token used for paginated responses. When this is not empty, there are diff --git a/service/imagebuilder/go.mod b/service/imagebuilder/go.mod index 6bcc9937132..d66259a216a 100644 --- a/service/imagebuilder/go.mod +++ b/service/imagebuilder/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/imagebuilder/go.sum b/service/imagebuilder/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/imagebuilder/go.sum +++ b/service/imagebuilder/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/imagebuilder/types/types.go b/service/imagebuilder/types/types.go index eb0acc1b62c..5f11cb6a29c 100644 --- a/service/imagebuilder/types/types.go +++ b/service/imagebuilder/types/types.go @@ -229,22 +229,10 @@ type ComponentSummary struct { noSmithyDocumentSerde } -// The defining characteristics of a specific version of an TOE component. +// A high-level overview of a component semantic version. type ComponentVersion struct { - // The Amazon Resource Name (ARN) of the component. Semantic versioning is included - // in each object's Amazon Resource Name (ARN), at the level that applies to that - // object as follows: - // - // * Versionless ARNs and Name ARNs do not include specific - // values in any of the nodes. The nodes are either left off entirely, or they are - // specified as wildcards, for example: x.x.x. - // - // * Version ARNs have only the first - // three nodes: .. - // - // * Build version ARNs have all four nodes, and point to a - // specific build for a specific version of an object. + // The Amazon Resource Name (ARN) of the component. Arn *string // The date that the component was created. @@ -271,20 +259,7 @@ type ComponentVersion struct { // image or only to test it. Type ComponentType - // The semantic version of the component. The semantic version has four nodes: ../. - // You can assign values for the first three, and can filter on all of them. - // Assignment: For the first three nodes you can assign any positive integer value, - // including zero, with an upper limit of 2^30-1, or 1073741823 for each node. - // Image Builder automatically assigns the build number, and that is not open for - // updates. Patterns: You can use any numeric pattern that adheres to the - // assignment requirements for the nodes that you can assign. For example, you - // might choose a software version pattern, such as 1.0.0, or a date, such as - // 2021.01.01. Filtering: When you retrieve or reference a resource with a semantic - // version, you can use wildcards (x) to filter your results. When you use a - // wildcard in any node, all nodes to the right of the first wildcard must also be - // wildcards. For example, specifying "1.2.x", or "1.x.x" works to filter list - // results, but neither "1.x.2", nor "x.2.x" will work. You do not have to specify - // the build - Image Builder automatically uses a wildcard for that, if applicable. + // The semantic version of the component. Version *string noSmithyDocumentSerde @@ -324,19 +299,7 @@ type ContainerDistributionConfiguration struct { // A container recipe. type ContainerRecipe struct { - // The Amazon Resource Name (ARN) of the container recipe. Semantic versioning is - // included in each object's Amazon Resource Name (ARN), at the level that applies - // to that object as follows: - // - // * Versionless ARNs and Name ARNs do not include - // specific values in any of the nodes. The nodes are either left off entirely, or - // they are specified as wildcards, for example: x.x.x. - // - // * Version ARNs have only - // the first three nodes: .. - // - // * Build version ARNs have all four nodes, and point - // to a specific build for a specific version of an object. + // The Amazon Resource Name (ARN) of the container recipe. Arn *string // Components for build and test that are included in the container recipe. @@ -386,20 +349,7 @@ type ContainerRecipe struct { // The destination repository for the container image. TargetRepository *TargetContainerRepository - // The semantic version of the container recipe. The semantic version has four - // nodes: ../. You can assign values for the first three, and can filter on all of - // them. Assignment: For the first three nodes you can assign any positive integer - // value, including zero, with an upper limit of 2^30-1, or 1073741823 for each - // node. Image Builder automatically assigns the build number, and that is not open - // for updates. Patterns: You can use any numeric pattern that adheres to the - // assignment requirements for the nodes that you can assign. For example, you - // might choose a software version pattern, such as 1.0.0, or a date, such as - // 2021.01.01. Filtering: When you retrieve or reference a resource with a semantic - // version, you can use wildcards (x) to filter your results. When you use a - // wildcard in any node, all nodes to the right of the first wildcard must also be - // wildcards. For example, specifying "1.2.x", or "1.x.x" works to filter list - // results, but neither "1.x.2", nor "x.2.x" will work. You do not have to specify - // the build - Image Builder automatically uses a wildcard for that, if applicable. + // The semantic version of the container recipe (..). Version *string // The working directory for use during build and test workflows. @@ -565,27 +515,13 @@ type Filter struct { noSmithyDocumentSerde } -// An Image Builder image. You must specify exactly one recipe for the image – -// either a container recipe (containerRecipe), which creates a container image, or -// an image recipe (imageRecipe), which creates an AMI. +// An image build version. type Image struct { - // The Amazon Resource Name (ARN) of the image. Semantic versioning is included in - // each object's Amazon Resource Name (ARN), at the level that applies to that - // object as follows: - // - // * Versionless ARNs and Name ARNs do not include specific - // values in any of the nodes. The nodes are either left off entirely, or they are - // specified as wildcards, for example: x.x.x. - // - // * Version ARNs have only the first - // three nodes: .. - // - // * Build version ARNs have all four nodes, and point to a - // specific build for a specific version of an object. + // The Amazon Resource Name (ARN) of the image. Arn *string - // The recipe that is used to create an Image Builder container image. + // The container recipe used to create the container image type. ContainerRecipe *ContainerRecipe // The date on which this image was created. @@ -636,20 +572,7 @@ type Image struct { // Specifies whether this is an AMI or container image. Type ImageType - // The semantic version of the image. The semantic version has four nodes: ../. You - // can assign values for the first three, and can filter on all of them. - // Assignment: For the first three nodes you can assign any positive integer value, - // including zero, with an upper limit of 2^30-1, or 1073741823 for each node. - // Image Builder automatically assigns the build number, and that is not open for - // updates. Patterns: You can use any numeric pattern that adheres to the - // assignment requirements for the nodes that you can assign. For example, you - // might choose a software version pattern, such as 1.0.0, or a date, such as - // 2021.01.01. Filtering: When you retrieve or reference a resource with a semantic - // version, you can use wildcards (x) to filter your results. When you use a - // wildcard in any node, all nodes to the right of the first wildcard must also be - // wildcards. For example, specifying "1.2.x", or "1.x.x" works to filter list - // results, but neither "1.x.2", nor "x.2.x" will work. You do not have to specify - // the build - Image Builder automatically uses a wildcard for that, if applicable. + // The semantic version of the image. Version *string noSmithyDocumentSerde @@ -873,58 +796,32 @@ type ImageTestsConfiguration struct { noSmithyDocumentSerde } -// The defining characteristics of a specific version of an Image Builder image. +// An image semantic version. type ImageVersion struct { - // The Amazon Resource Name (ARN) of a specific version of an Image Builder image. - // Semantic versioning is included in each object's Amazon Resource Name (ARN), at - // the level that applies to that object as follows: - // - // * Versionless ARNs and Name - // ARNs do not include specific values in any of the nodes. The nodes are either - // left off entirely, or they are specified as wildcards, for example: x.x.x. - // - // * - // Version ARNs have only the first three nodes: .. - // - // * Build version ARNs have all - // four nodes, and point to a specific build for a specific version of an object. + // The Amazon Resource Name (ARN) of the image semantic version. Arn *string - // The date on which this specific version of the Image Builder image was created. + // The date at which this image semantic version was created. DateCreated *string - // The name of this specific version of an Image Builder image. + // The name of the image semantic version. Name *string - // The operating system version of the Amazon EC2 build instance. For example, - // Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019. + // The operating system version of the instance. For example, Amazon Linux 2, + // Ubuntu 18, or Microsoft Windows Server 2019. OsVersion *string - // The owner of the image version. + // The owner of the image semantic version. Owner *string - // The platform of the image version, for example "Windows" or "Linux". + // The platform of the image semantic version. Platform Platform - // Specifies whether this image is an AMI or a container image. + // Specifies whether this is an AMI or container image. Type ImageType - // Details for a specific version of an Image Builder image. This version follows - // the semantic version syntax. The semantic version has four nodes: ../. You can - // assign values for the first three, and can filter on all of them. Assignment: - // For the first three nodes you can assign any positive integer value, including - // zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder - // automatically assigns the build number, and that is not open for updates. - // Patterns: You can use any numeric pattern that adheres to the assignment - // requirements for the nodes that you can assign. For example, you might choose a - // software version pattern, such as 1.0.0, or a date, such as 2021.01.01. - // Filtering: When you retrieve or reference a resource with a semantic version, - // you can use wildcards (x) to filter your results. When you use a wildcard in any - // node, all nodes to the right of the first wildcard must also be wildcards. For - // example, specifying "1.2.x", or "1.x.x" works to filter list results, but - // neither "1.x.2", nor "x.2.x" will work. You do not have to specify the build - - // Image Builder automatically uses a wildcard for that, if applicable. + // The semantic version of the image semantic version. Version *string noSmithyDocumentSerde @@ -1155,10 +1052,10 @@ type Schedule struct { // Contains settings for the SSM agent on your build instance. type SystemsManagerAgent struct { - // Controls whether the SSM agent is removed from your final build image, prior to - // creating the new AMI. If this is set to true, then the agent is removed from the - // final image. If it's set to false, then the agent is left in, so that it is - // included in the new AMI. The default value is false. + // This property defaults to true. If Image Builder installs the SSM agent on a + // build instance, it removes the agent before creating a snapshot for the AMI. To + // ensure that the AMI you create includes the SSM agent, set this property to + // false. UninstallAfterBuild *bool noSmithyDocumentSerde diff --git a/service/inspector/go.mod b/service/inspector/go.mod index 62f3716bf2a..317b26f2825 100644 --- a/service/inspector/go.mod +++ b/service/inspector/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/inspector/go.sum b/service/inspector/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/inspector/go.sum +++ b/service/inspector/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/internal/accept-encoding/go.mod b/service/internal/accept-encoding/go.mod index ed7fa9a4658..8d11f484715 100644 --- a/service/internal/accept-encoding/go.mod +++ b/service/internal/accept-encoding/go.mod @@ -2,4 +2,4 @@ module github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding go 1.15 -require github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 +require github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 diff --git a/service/internal/accept-encoding/go.sum b/service/internal/accept-encoding/go.sum index d4e6df606ce..e15f477e171 100644 --- a/service/internal/accept-encoding/go.sum +++ b/service/internal/accept-encoding/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod index 12a7da5eceb..87b079a288d 100644 --- a/service/internal/benchmark/go.mod +++ b/service/internal/benchmark/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.4.1 github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.5.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/benchmark/go.sum b/service/internal/benchmark/go.sum index ad9bf986aaf..4997a4aa427 100644 --- a/service/internal/benchmark/go.sum +++ b/service/internal/benchmark/go.sum @@ -1,7 +1,7 @@ github.com/aws/aws-sdk-go v1.34.33 h1:ymkFm0rNPEOlgjyX3ojEd4zqzW6kGICBkqWs7LqgHtU= github.com/aws/aws-sdk-go v1.34.33/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= diff --git a/service/internal/endpoint-discovery/go.mod b/service/internal/endpoint-discovery/go.mod index 91ba60e95da..db9edc6ca71 100644 --- a/service/internal/endpoint-discovery/go.mod +++ b/service/internal/endpoint-discovery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/endpoint-discovery/go.sum b/service/internal/endpoint-discovery/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/internal/endpoint-discovery/go.sum +++ b/service/internal/endpoint-discovery/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod index b69a46cccc2..17d0a4ed910 100644 --- a/service/internal/integrationtest/go.mod +++ b/service/internal/integrationtest/go.mod @@ -85,7 +85,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/wafregional v1.4.1 github.com/aws/aws-sdk-go-v2/service/wafv2 v1.6.1 github.com/aws/aws-sdk-go-v2/service/workspaces v1.5.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/service/internal/integrationtest/go.sum b/service/internal/integrationtest/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/internal/integrationtest/go.sum +++ b/service/internal/integrationtest/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/internal/presigned-url/go.mod b/service/internal/presigned-url/go.mod index cb038dbc274..79d7afbc80b 100644 --- a/service/internal/presigned-url/go.mod +++ b/service/internal/presigned-url/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/service/internal/presigned-url/go.sum b/service/internal/presigned-url/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/internal/presigned-url/go.sum +++ b/service/internal/presigned-url/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/internal/s3shared/go.mod b/service/internal/s3shared/go.mod index 6f9c8f1e1e2..c50c69dda63 100644 --- a/service/internal/s3shared/go.mod +++ b/service/internal/s3shared/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/s3shared/go.sum b/service/internal/s3shared/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/internal/s3shared/go.sum +++ b/service/internal/s3shared/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iot/api_op_AttachPolicy.go b/service/iot/api_op_AttachPolicy.go index 7924cc1a935..d27d5614b4e 100644 --- a/service/iot/api_op_AttachPolicy.go +++ b/service/iot/api_op_AttachPolicy.go @@ -10,8 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Attaches the specified policy to the specified principal (certificate or other -// credential). +// Attaches a policy to the specified target. func (c *Client) AttachPolicy(ctx context.Context, params *AttachPolicyInput, optFns ...func(*Options)) (*AttachPolicyOutput, error) { if params == nil { params = &AttachPolicyInput{} diff --git a/service/iot/go.mod b/service/iot/go.mod index b7eb543542e..bceca49cc69 100644 --- a/service/iot/go.mod +++ b/service/iot/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot/go.sum b/service/iot/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iot/go.sum +++ b/service/iot/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iot1clickdevicesservice/go.mod b/service/iot1clickdevicesservice/go.mod index 79cf3e8de63..a1503376dc3 100644 --- a/service/iot1clickdevicesservice/go.mod +++ b/service/iot1clickdevicesservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot1clickdevicesservice/go.sum b/service/iot1clickdevicesservice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iot1clickdevicesservice/go.sum +++ b/service/iot1clickdevicesservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iot1clickprojects/go.mod b/service/iot1clickprojects/go.mod index 0c10fd33de4..4807a60b549 100644 --- a/service/iot1clickprojects/go.mod +++ b/service/iot1clickprojects/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot1clickprojects/go.sum b/service/iot1clickprojects/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iot1clickprojects/go.sum +++ b/service/iot1clickprojects/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotanalytics/api_op_BatchPutMessage.go b/service/iotanalytics/api_op_BatchPutMessage.go index b215ea545ff..6010b89a883 100644 --- a/service/iotanalytics/api_op_BatchPutMessage.go +++ b/service/iotanalytics/api_op_BatchPutMessage.go @@ -36,7 +36,7 @@ type BatchPutMessageInput struct { // The list of messages to be sent. Each message has the format: { "messageId": // "string", "payload": "string"}. The field names of message payloads (data) that - // you send to IoT Analytics: + // you send to AWS IoT Analytics: // // * Must contain only alphanumeric characters and // undescores (_). No other special characters are allowed. diff --git a/service/iotanalytics/api_op_CreateChannel.go b/service/iotanalytics/api_op_CreateChannel.go index d05cc77196f..0b0508b3ba8 100644 --- a/service/iotanalytics/api_op_CreateChannel.go +++ b/service/iotanalytics/api_op_CreateChannel.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Used to create a channel. A channel collects data from an MQTT topic and -// archives the raw, unprocessed messages before publishing the data to a pipeline. +// Creates a channel. A channel collects data from an MQTT topic and archives the +// raw, unprocessed messages before publishing the data to a pipeline. func (c *Client) CreateChannel(ctx context.Context, params *CreateChannelInput, optFns ...func(*Options)) (*CreateChannelOutput, error) { if params == nil { params = &CreateChannelInput{} @@ -37,7 +37,7 @@ type CreateChannelInput struct { // Where channel data is stored. You can choose one of serviceManagedS3 or // customerManagedS3 storage. If not specified, the default is serviceManagedS3. - // You can't change this storage option after the channel is created. + // You cannot change this storage option after the channel is created. ChannelStorage *types.ChannelStorage // How long, in days, message data is kept for the channel. When customerManagedS3 diff --git a/service/iotanalytics/api_op_CreateDataset.go b/service/iotanalytics/api_op_CreateDataset.go index 40d21481b9e..2c9bc146d35 100644 --- a/service/iotanalytics/api_op_CreateDataset.go +++ b/service/iotanalytics/api_op_CreateDataset.go @@ -11,11 +11,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Used to create a dataset. A dataset stores data retrieved from a data store by -// applying a queryAction (a SQL query) or a containerAction (executing a -// containerized application). This operation creates the skeleton of a dataset. -// The dataset can be populated manually by calling CreateDatasetContent or -// automatically according to a trigger you specify. +// Creates a dataset. A dataset stores data retrieved from a data store by applying +// a queryAction (a SQL query) or a containerAction (executing a containerized +// application). This operation creates the skeleton of a dataset. The dataset can +// be populated manually by calling CreateDatasetContent or automatically according +// to a trigger you specify. func (c *Client) CreateDataset(ctx context.Context, params *CreateDatasetInput, optFns ...func(*Options)) (*CreateDatasetOutput, error) { if params == nil { params = &CreateDatasetInput{} @@ -33,12 +33,12 @@ func (c *Client) CreateDataset(ctx context.Context, params *CreateDatasetInput, type CreateDatasetInput struct { - // A list of actions that create the dataset contents. + // A list of actions that create the data set contents. // // This member is required. Actions []types.DatasetAction - // The name of the dataset. + // The name of the data set. // // This member is required. DatasetName *string @@ -47,8 +47,8 @@ type CreateDatasetInput struct { // here. ContentDeliveryRules []types.DatasetContentDeliveryRule - // A list of data rules that send notifications to CloudWatch, when data arrives - // late. To specify lateDataRules, the dataset must use a DeltaTimer + // A list of data rules that send notifications to Amazon CloudWatch, when data + // arrives late. To specify lateDataRules, the dataset must use a DeltaTimer // (https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeltaTime.html) // filter. LateDataRules []types.LateDataRule @@ -57,26 +57,26 @@ type CreateDatasetInput struct { // dataset. If not specified or set to null, versions of dataset contents are // retained for at most 90 days. The number of versions of dataset contents // retained is determined by the versioningConfiguration parameter. For more - // information, see Keeping Multiple Versions of IoT Analytics datasets + // information, see Keeping Multiple Versions of AWS IoT Analytics Data Sets // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) - // in the IoT Analytics User Guide. + // in the AWS IoT Analytics User Guide. RetentionPeriod *types.RetentionPeriod - // Metadata which can be used to manage the dataset. + // Metadata which can be used to manage the data set. Tags []types.Tag - // A list of triggers. A trigger causes dataset contents to be populated at a - // specified time interval or when another dataset's contents are created. The list - // of triggers can be empty or contain up to five DataSetTrigger objects. + // A list of triggers. A trigger causes data set contents to be populated at a + // specified time interval or when another data set's contents are created. The + // list of triggers can be empty or contain up to five DataSetTrigger objects. Triggers []types.DatasetTrigger // Optional. How many versions of dataset contents are kept. If not specified or // set to null, only the latest version plus the latest succeeded version (if they // are different) are kept for the time period specified by the retentionPeriod - // parameter. For more information, see Keeping Multiple Versions of IoT Analytics - // datasets + // parameter. For more information, see Keeping Multiple Versions of AWS IoT + // Analytics Data Sets // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) - // in the IoT Analytics User Guide. + // in the AWS IoT Analytics User Guide. VersioningConfiguration *types.VersioningConfiguration noSmithyDocumentSerde diff --git a/service/iotanalytics/api_op_CreateDatasetContent.go b/service/iotanalytics/api_op_CreateDatasetContent.go index f5903187761..dcd56108041 100644 --- a/service/iotanalytics/api_op_CreateDatasetContent.go +++ b/service/iotanalytics/api_op_CreateDatasetContent.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates the content of a dataset by applying a queryAction (a SQL query) or a +// Creates the content of a data set by applying a queryAction (a SQL query) or a // containerAction (executing a containerized application). func (c *Client) CreateDatasetContent(ctx context.Context, params *CreateDatasetContentInput, optFns ...func(*Options)) (*CreateDatasetContentOutput, error) { if params == nil { diff --git a/service/iotanalytics/api_op_CreateDatastore.go b/service/iotanalytics/api_op_CreateDatastore.go index 7e1a36568f5..a57f68866d9 100644 --- a/service/iotanalytics/api_op_CreateDatastore.go +++ b/service/iotanalytics/api_op_CreateDatastore.go @@ -11,7 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a data store, which is a repository for messages. +// Creates a data store, which is a repository for messages. Only data stores that +// are used to save pipeline data can be configured with ParquetConfiguration. func (c *Client) CreateDatastore(ctx context.Context, params *CreateDatastoreInput, optFns ...func(*Options)) (*CreateDatastoreOutput, error) { if params == nil { params = &CreateDatastoreInput{} @@ -34,16 +35,15 @@ type CreateDatastoreInput struct { // This member is required. DatastoreName *string - // Contains information about the partition dimensions in a data store. + // Contains information about the partitions in a data store. DatastorePartitions *types.DatastorePartitions - // Where data in a data store is stored.. You can choose serviceManagedS3 storage, - // customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default - // is serviceManagedS3. You can't change the choice of Amazon S3 storage after your - // data store is created. + // Where data store data is stored. You can choose one of serviceManagedS3 or + // customerManagedS3 storage. If not specified, the default is serviceManagedS3. + // You cannot change this storage option after the data store is created. DatastoreStorage types.DatastoreStorage - // Contains the configuration information of file formats. IoT Analytics data + // Contains the configuration information of file formats. AWS IoT Analytics data // stores support JSON and Parquet (https://parquet.apache.org/). The default file // format is JSON. You can specify only one format. You can't change the file // format after you create the data store. diff --git a/service/iotanalytics/api_op_CreatePipeline.go b/service/iotanalytics/api_op_CreatePipeline.go index 2f7d5b465f8..0c10767798f 100644 --- a/service/iotanalytics/api_op_CreatePipeline.go +++ b/service/iotanalytics/api_op_CreatePipeline.go @@ -34,7 +34,7 @@ type CreatePipelineInput struct { // A list of PipelineActivity objects. Activities perform transformations on your // messages, such as removing, renaming or adding message attributes; filtering - // messages based on attribute values; invoking your Lambda unctions on messages + // messages based on attribute values; invoking your Lambda functions on messages // for advanced processing; or performing mathematical transformations to normalize // device data. The list can be 2-25 PipelineActivity objects and must contain both // a channel and a datastore activity. Each entry in the list must contain only one diff --git a/service/iotanalytics/api_op_DeleteDataset.go b/service/iotanalytics/api_op_DeleteDataset.go index 06ca1665418..cfea1b1f821 100644 --- a/service/iotanalytics/api_op_DeleteDataset.go +++ b/service/iotanalytics/api_op_DeleteDataset.go @@ -29,7 +29,7 @@ func (c *Client) DeleteDataset(ctx context.Context, params *DeleteDatasetInput, type DeleteDatasetInput struct { - // The name of the dataset to delete. + // The name of the data set to delete. // // This member is required. DatasetName *string diff --git a/service/iotanalytics/api_op_DescribeChannel.go b/service/iotanalytics/api_op_DescribeChannel.go index 98ed58b1be0..d77508bdedc 100644 --- a/service/iotanalytics/api_op_DescribeChannel.go +++ b/service/iotanalytics/api_op_DescribeChannel.go @@ -35,7 +35,7 @@ type DescribeChannelInput struct { ChannelName *string // If true, additional statistical information about the channel is included in the - // response. This feature can't be used with a channel whose S3 storage is + // response. This feature cannot be used with a channel whose S3 storage is // customer-managed. IncludeStatistics bool diff --git a/service/iotanalytics/api_op_DescribeDataset.go b/service/iotanalytics/api_op_DescribeDataset.go index 7be6c497687..a5f52900322 100644 --- a/service/iotanalytics/api_op_DescribeDataset.go +++ b/service/iotanalytics/api_op_DescribeDataset.go @@ -29,7 +29,7 @@ func (c *Client) DescribeDataset(ctx context.Context, params *DescribeDatasetInp type DescribeDatasetInput struct { - // The name of the dataset whose information is retrieved. + // The name of the data set whose information is retrieved. // // This member is required. DatasetName *string @@ -39,7 +39,7 @@ type DescribeDatasetInput struct { type DescribeDatasetOutput struct { - // An object that contains information about the dataset. + // An object that contains information about the data set. Dataset *types.Dataset // Metadata pertaining to the operation's result. diff --git a/service/iotanalytics/api_op_DescribeDatastore.go b/service/iotanalytics/api_op_DescribeDatastore.go index 70cda3716bc..382645d8534 100644 --- a/service/iotanalytics/api_op_DescribeDatastore.go +++ b/service/iotanalytics/api_op_DescribeDatastore.go @@ -35,7 +35,7 @@ type DescribeDatastoreInput struct { DatastoreName *string // If true, additional statistical information about the data store is included in - // the response. This feature can't be used with a data store whose S3 storage is + // the response. This feature cannot be used with a data store whose S3 storage is // customer-managed. IncludeStatistics bool diff --git a/service/iotanalytics/api_op_DescribeLoggingOptions.go b/service/iotanalytics/api_op_DescribeLoggingOptions.go index 8c8f1f8ac76..d89ec38dbf5 100644 --- a/service/iotanalytics/api_op_DescribeLoggingOptions.go +++ b/service/iotanalytics/api_op_DescribeLoggingOptions.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves the current settings of the IoT Analytics logging options. +// Retrieves the current settings of the AWS IoT Analytics logging options. func (c *Client) DescribeLoggingOptions(ctx context.Context, params *DescribeLoggingOptionsInput, optFns ...func(*Options)) (*DescribeLoggingOptionsOutput, error) { if params == nil { params = &DescribeLoggingOptionsInput{} @@ -33,7 +33,7 @@ type DescribeLoggingOptionsInput struct { type DescribeLoggingOptionsOutput struct { - // The current settings of the IoT Analytics logging options. + // The current settings of the AWS IoT Analytics logging options. LoggingOptions *types.LoggingOptions // Metadata pertaining to the operation's result. diff --git a/service/iotanalytics/api_op_GetDatasetContent.go b/service/iotanalytics/api_op_GetDatasetContent.go index c9fbf8fdc9f..eee4be855c7 100644 --- a/service/iotanalytics/api_op_GetDatasetContent.go +++ b/service/iotanalytics/api_op_GetDatasetContent.go @@ -12,7 +12,7 @@ import ( "time" ) -// Retrieves the contents of a dataset as presigned URIs. +// Retrieves the contents of a data set as presigned URIs. func (c *Client) GetDatasetContent(ctx context.Context, params *GetDatasetContentInput, optFns ...func(*Options)) (*GetDatasetContentOutput, error) { if params == nil { params = &GetDatasetContentInput{} @@ -30,14 +30,14 @@ func (c *Client) GetDatasetContent(ctx context.Context, params *GetDatasetConten type GetDatasetContentInput struct { - // The name of the dataset whose contents are retrieved. + // The name of the data set whose contents are retrieved. // // This member is required. DatasetName *string - // The version of the dataset whose contents are retrieved. You can also use the + // The version of the data set whose contents are retrieved. You can also use the // strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest - // or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED" + // or latest successfully completed data set. If not specified, "$LATEST_SUCCEEDED" // is the default. VersionId *string @@ -49,7 +49,7 @@ type GetDatasetContentOutput struct { // A list of DatasetEntry objects. Entries []types.DatasetEntry - // The status of the dataset content. + // The status of the data set content. Status *types.DatasetContentStatus // The time when the request was made. diff --git a/service/iotanalytics/api_op_ListDatasetContents.go b/service/iotanalytics/api_op_ListDatasetContents.go index 81dc1269ac7..96ef1b059a7 100644 --- a/service/iotanalytics/api_op_ListDatasetContents.go +++ b/service/iotanalytics/api_op_ListDatasetContents.go @@ -13,7 +13,7 @@ import ( "time" ) -// Lists information about dataset contents that have been created. +// Lists information about data set contents that have been created. func (c *Client) ListDatasetContents(ctx context.Context, params *ListDatasetContentsInput, optFns ...func(*Options)) (*ListDatasetContentsOutput, error) { if params == nil { params = &ListDatasetContentsInput{} @@ -31,7 +31,7 @@ func (c *Client) ListDatasetContents(ctx context.Context, params *ListDatasetCon type ListDatasetContentsInput struct { - // The name of the dataset whose contents information you want to list. + // The name of the data set whose contents information you want to list. // // This member is required. DatasetName *string @@ -42,12 +42,12 @@ type ListDatasetContentsInput struct { // The token for the next set of results. NextToken *string - // A filter to limit results to those dataset contents whose creation is scheduled + // A filter to limit results to those data set contents whose creation is scheduled // before the given time. See the field triggers.schedule in the CreateDataset // request. (timestamp) ScheduledBefore *time.Time - // A filter to limit results to those dataset contents whose creation is scheduled + // A filter to limit results to those data set contents whose creation is scheduled // on or after the given time. See the field triggers.schedule in the CreateDataset // request. (timestamp) ScheduledOnOrAfter *time.Time @@ -57,7 +57,7 @@ type ListDatasetContentsInput struct { type ListDatasetContentsOutput struct { - // Summary information about dataset contents that have been created. + // Summary information about data set contents that have been created. DatasetContentSummaries []types.DatasetContentSummary // The token to retrieve the next set of results, or null if there are no more diff --git a/service/iotanalytics/api_op_ListDatasets.go b/service/iotanalytics/api_op_ListDatasets.go index 95019038c25..e6228e8a20f 100644 --- a/service/iotanalytics/api_op_ListDatasets.go +++ b/service/iotanalytics/api_op_ListDatasets.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves information about datasets. +// Retrieves information about data sets. func (c *Client) ListDatasets(ctx context.Context, params *ListDatasetsInput, optFns ...func(*Options)) (*ListDatasetsOutput, error) { if params == nil { params = &ListDatasetsInput{} diff --git a/service/iotanalytics/api_op_PutLoggingOptions.go b/service/iotanalytics/api_op_PutLoggingOptions.go index 285a647b446..4c1634fb328 100644 --- a/service/iotanalytics/api_op_PutLoggingOptions.go +++ b/service/iotanalytics/api_op_PutLoggingOptions.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Sets or updates the IoT Analytics logging options. If you update the value of -// any loggingOptions field, it takes up to one minute for the change to take +// Sets or updates the AWS IoT Analytics logging options. If you update the value +// of any loggingOptions field, it takes up to one minute for the change to take // effect. Also, if you change the policy attached to the role you specified in the // roleArn field (for example, to correct an invalid policy), it takes up to five // minutes for that change to take effect. @@ -33,7 +33,7 @@ func (c *Client) PutLoggingOptions(ctx context.Context, params *PutLoggingOption type PutLoggingOptionsInput struct { - // The new values of the IoT Analytics logging options. + // The new values of the AWS IoT Analytics logging options. // // This member is required. LoggingOptions *types.LoggingOptions diff --git a/service/iotanalytics/api_op_RunPipelineActivity.go b/service/iotanalytics/api_op_RunPipelineActivity.go index 3496f55f2a2..83a30ee5e3b 100644 --- a/service/iotanalytics/api_op_RunPipelineActivity.go +++ b/service/iotanalytics/api_op_RunPipelineActivity.go @@ -34,11 +34,11 @@ type RunPipelineActivityInput struct { // This member is required. Payloads [][]byte - // The pipeline activity that is run. This must not be a channel activity or a data - // store activity because these activities are used in a pipeline only to load the - // original message and to store the (possibly) transformed message. If a Lambda - // activity is specified, only short-running Lambda functions (those with a timeout - // of less than 30 seconds or less) can be used. + // The pipeline activity that is run. This must not be a channel activity or a + // datastore activity because these activities are used in a pipeline only to load + // the original message and to store the (possibly) transformed message. If a + // lambda activity is specified, only short-running Lambda functions (those with a + // timeout of less than 30 seconds or less) can be used. // // This member is required. PipelineActivity *types.PipelineActivity diff --git a/service/iotanalytics/api_op_UpdateChannel.go b/service/iotanalytics/api_op_UpdateChannel.go index 093e576cc06..ebd5ece6a4b 100644 --- a/service/iotanalytics/api_op_UpdateChannel.go +++ b/service/iotanalytics/api_op_UpdateChannel.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Used to update the settings of a channel. +// Updates the settings of a channel. func (c *Client) UpdateChannel(ctx context.Context, params *UpdateChannelInput, optFns ...func(*Options)) (*UpdateChannelOutput, error) { if params == nil { params = &UpdateChannelInput{} @@ -36,11 +36,11 @@ type UpdateChannelInput struct { // Where channel data is stored. You can choose one of serviceManagedS3 or // customerManagedS3 storage. If not specified, the default is serviceManagedS3. - // You can't change this storage option after the channel is created. + // You cannot change this storage option after the channel is created. ChannelStorage *types.ChannelStorage // How long, in days, message data is kept for the channel. The retention period - // can't be updated if the channel's Amazon S3 storage is customer-managed. + // cannot be updated if the channel's S3 storage is customer-managed. RetentionPeriod *types.RetentionPeriod noSmithyDocumentSerde diff --git a/service/iotanalytics/api_op_UpdateDataset.go b/service/iotanalytics/api_op_UpdateDataset.go index ccc2edce176..d5c5af6f352 100644 --- a/service/iotanalytics/api_op_UpdateDataset.go +++ b/service/iotanalytics/api_op_UpdateDataset.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the settings of a dataset. +// Updates the settings of a data set. func (c *Client) UpdateDataset(ctx context.Context, params *UpdateDatasetInput, optFns ...func(*Options)) (*UpdateDatasetOutput, error) { if params == nil { params = &UpdateDatasetInput{} @@ -34,7 +34,7 @@ type UpdateDatasetInput struct { // This member is required. Actions []types.DatasetAction - // The name of the dataset to update. + // The name of the data set to update. // // This member is required. DatasetName *string @@ -43,8 +43,8 @@ type UpdateDatasetInput struct { // here. ContentDeliveryRules []types.DatasetContentDeliveryRule - // A list of data rules that send notifications to CloudWatch, when data arrives - // late. To specify lateDataRules, the dataset must use a DeltaTimer + // A list of data rules that send notifications to Amazon CloudWatch, when data + // arrives late. To specify lateDataRules, the dataset must use a DeltaTimer // (https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeltaTime.html) // filter. LateDataRules []types.LateDataRule @@ -59,10 +59,10 @@ type UpdateDatasetInput struct { // Optional. How many versions of dataset contents are kept. If not specified or // set to null, only the latest version plus the latest succeeded version (if they // are different) are kept for the time period specified by the retentionPeriod - // parameter. For more information, see Keeping Multiple Versions of IoT Analytics - // datasets + // parameter. For more information, see Keeping Multiple Versions of AWS IoT + // Analytics Data Sets // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) - // in the IoT Analytics User Guide. + // in the AWS IoT Analytics User Guide. VersioningConfiguration *types.VersioningConfiguration noSmithyDocumentSerde diff --git a/service/iotanalytics/api_op_UpdateDatastore.go b/service/iotanalytics/api_op_UpdateDatastore.go index de89476db9c..6301939bebe 100644 --- a/service/iotanalytics/api_op_UpdateDatastore.go +++ b/service/iotanalytics/api_op_UpdateDatastore.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Used to update the settings of a data store. +// Updates the settings of a data store. func (c *Client) UpdateDatastore(ctx context.Context, params *UpdateDatastoreInput, optFns ...func(*Options)) (*UpdateDatastoreOutput, error) { if params == nil { params = &UpdateDatastoreInput{} @@ -34,20 +34,19 @@ type UpdateDatastoreInput struct { // This member is required. DatastoreName *string - // Where data in a data store is stored.. You can choose serviceManagedS3 storage, - // customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default - // is serviceManagedS3. You can't change the choice of Amazon S3 storage after your - // data store is created. + // Where data store data is stored. You can choose one of serviceManagedS3 or + // customerManagedS3 storage. If not specified, the default isserviceManagedS3. You + // cannot change this storage option after the data store is created. DatastoreStorage types.DatastoreStorage - // Contains the configuration information of file formats. IoT Analytics data + // Contains the configuration information of file formats. AWS IoT Analytics data // stores support JSON and Parquet (https://parquet.apache.org/). The default file // format is JSON. You can specify only one format. You can't change the file // format after you create the data store. FileFormatConfiguration *types.FileFormatConfiguration // How long, in days, message data is kept for the data store. The retention period - // can't be updated if the data store's Amazon S3 storage is customer-managed. + // cannot be updated if the data store's S3 storage is customer-managed. RetentionPeriod *types.RetentionPeriod noSmithyDocumentSerde diff --git a/service/iotanalytics/deserializers.go b/service/iotanalytics/deserializers.go index 82c2401c0c7..0998e568d38 100644 --- a/service/iotanalytics/deserializers.go +++ b/service/iotanalytics/deserializers.go @@ -7178,78 +7178,6 @@ func awsRestjson1_deserializeDocumentDatastoreActivity(v **types.DatastoreActivi return nil } -func awsRestjson1_deserializeDocumentDatastoreIotSiteWiseMultiLayerStorage(v **types.DatastoreIotSiteWiseMultiLayerStorage, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DatastoreIotSiteWiseMultiLayerStorage - if *v == nil { - sv = &types.DatastoreIotSiteWiseMultiLayerStorage{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "customerManagedS3Storage": - if err := awsRestjson1_deserializeDocumentIotSiteWiseCustomerManagedDatastoreS3Storage(&sv.CustomerManagedS3Storage, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentDatastoreIotSiteWiseMultiLayerStorageSummary(v **types.DatastoreIotSiteWiseMultiLayerStorageSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DatastoreIotSiteWiseMultiLayerStorageSummary - if *v == nil { - sv = &types.DatastoreIotSiteWiseMultiLayerStorageSummary{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "customerManagedS3Storage": - if err := awsRestjson1_deserializeDocumentIotSiteWiseCustomerManagedDatastoreS3StorageSummary(&sv.CustomerManagedS3Storage, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentDatastorePartition(v **types.DatastorePartition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7393,16 +7321,6 @@ loop: uv = &types.DatastoreStorageMemberCustomerManagedS3{Value: mv} break loop - case "iotSiteWiseMultiLayerStorage": - var mv types.DatastoreIotSiteWiseMultiLayerStorage - destAddr := &mv - if err := awsRestjson1_deserializeDocumentDatastoreIotSiteWiseMultiLayerStorage(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DatastoreStorageMemberIotSiteWiseMultiLayerStorage{Value: mv} - break loop - case "serviceManagedS3": var mv types.ServiceManagedDatastoreS3Storage destAddr := &mv @@ -7450,11 +7368,6 @@ func awsRestjson1_deserializeDocumentDatastoreStorageSummary(v **types.Datastore return err } - case "iotSiteWiseMultiLayerStorage": - if err := awsRestjson1_deserializeDocumentDatastoreIotSiteWiseMultiLayerStorageSummary(&sv.IotSiteWiseMultiLayerStorage, value); err != nil { - return err - } - case "serviceManagedS3": if err := awsRestjson1_deserializeDocumentServiceManagedDatastoreS3StorageSummary(&sv.ServiceManagedS3, value); err != nil { return err @@ -8226,104 +8139,6 @@ func awsRestjson1_deserializeDocumentIotEventsDestinationConfiguration(v **types return nil } -func awsRestjson1_deserializeDocumentIotSiteWiseCustomerManagedDatastoreS3Storage(v **types.IotSiteWiseCustomerManagedDatastoreS3Storage, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.IotSiteWiseCustomerManagedDatastoreS3Storage - if *v == nil { - sv = &types.IotSiteWiseCustomerManagedDatastoreS3Storage{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "bucket": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) - } - sv.Bucket = ptr.String(jtv) - } - - case "keyPrefix": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) - } - sv.KeyPrefix = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentIotSiteWiseCustomerManagedDatastoreS3StorageSummary(v **types.IotSiteWiseCustomerManagedDatastoreS3StorageSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.IotSiteWiseCustomerManagedDatastoreS3StorageSummary - if *v == nil { - sv = &types.IotSiteWiseCustomerManagedDatastoreS3StorageSummary{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "bucket": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) - } - sv.Bucket = ptr.String(jtv) - } - - case "keyPrefix": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) - } - sv.KeyPrefix = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentJsonConfiguration(v **types.JsonConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/iotanalytics/doc.go b/service/iotanalytics/doc.go index 27de38102fb..626c831c2a7 100644 --- a/service/iotanalytics/doc.go +++ b/service/iotanalytics/doc.go @@ -3,24 +3,24 @@ // Package iotanalytics provides the API client, operations, and parameter types // for AWS IoT Analytics. // -// IoT Analytics allows you to collect large amounts of device data, process +// AWS IoT Analytics allows you to collect large amounts of device data, process // messages, and store them. You can then query the data and run sophisticated -// analytics on it. IoT Analytics enables advanced data exploration through +// analytics on it. AWS IoT Analytics enables advanced data exploration through // integration with Jupyter Notebooks and data visualization through integration // with Amazon QuickSight. Traditional analytics and business intelligence tools // are designed to process structured data. IoT data often comes from devices that // record noisy processes (such as temperature, motion, or sound). As a result the // data from these devices can have significant gaps, corrupted messages, and false // readings that must be cleaned up before analysis can occur. Also, IoT data is -// often only meaningful in the context of other data from external sources. IoT -// Analytics automates the steps required to analyze data from IoT devices. IoT -// Analytics filters, transforms, and enriches IoT data before storing it in a +// often only meaningful in the context of other data from external sources. AWS +// IoT Analytics automates the steps required to analyze data from IoT devices. AWS +// IoT Analytics filters, transforms, and enriches IoT data before storing it in a // time-series data store for analysis. You can set up the service to collect only // the data you need from your devices, apply mathematical transforms to process // the data, and enrich the data with device-specific metadata such as device type // and location before storing it. Then, you can analyze your data by running // queries using the built-in SQL query engine, or perform more complex analytics -// and machine learning inference. IoT Analytics includes pre-built models for +// and machine learning inference. AWS IoT Analytics includes pre-built models for // common IoT use cases so you can answer questions like which devices are about to // fail or which customers are at risk of abandoning their wearable devices. package iotanalytics diff --git a/service/iotanalytics/go.mod b/service/iotanalytics/go.mod index a22aee204c4..47f3d32ca90 100644 --- a/service/iotanalytics/go.mod +++ b/service/iotanalytics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotanalytics/go.sum b/service/iotanalytics/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iotanalytics/go.sum +++ b/service/iotanalytics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotanalytics/serializers.go b/service/iotanalytics/serializers.go index 4cbf48e9683..457fd814926 100644 --- a/service/iotanalytics/serializers.go +++ b/service/iotanalytics/serializers.go @@ -2824,20 +2824,6 @@ func awsRestjson1_serializeDocumentDatastoreActivity(v *types.DatastoreActivity, return nil } -func awsRestjson1_serializeDocumentDatastoreIotSiteWiseMultiLayerStorage(v *types.DatastoreIotSiteWiseMultiLayerStorage, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CustomerManagedS3Storage != nil { - ok := object.Key("customerManagedS3Storage") - if err := awsRestjson1_serializeDocumentIotSiteWiseCustomerManagedDatastoreS3Storage(v.CustomerManagedS3Storage, ok); err != nil { - return err - } - } - - return nil -} - func awsRestjson1_serializeDocumentDatastorePartition(v *types.DatastorePartition, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2884,12 +2870,6 @@ func awsRestjson1_serializeDocumentDatastoreStorage(v types.DatastoreStorage, va return err } - case *types.DatastoreStorageMemberIotSiteWiseMultiLayerStorage: - av := object.Key("iotSiteWiseMultiLayerStorage") - if err := awsRestjson1_serializeDocumentDatastoreIotSiteWiseMultiLayerStorage(&uv.Value, av); err != nil { - return err - } - case *types.DatastoreStorageMemberServiceManagedS3: av := object.Key("serviceManagedS3") if err := awsRestjson1_serializeDocumentServiceManagedDatastoreS3Storage(&uv.Value, av); err != nil { @@ -3073,23 +3053,6 @@ func awsRestjson1_serializeDocumentIotEventsDestinationConfiguration(v *types.Io return nil } -func awsRestjson1_serializeDocumentIotSiteWiseCustomerManagedDatastoreS3Storage(v *types.IotSiteWiseCustomerManagedDatastoreS3Storage, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Bucket != nil { - ok := object.Key("bucket") - ok.String(*v.Bucket) - } - - if v.KeyPrefix != nil { - ok := object.Key("keyPrefix") - ok.String(*v.KeyPrefix) - } - - return nil -} - func awsRestjson1_serializeDocumentJsonConfiguration(v *types.JsonConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/iotanalytics/types/types.go b/service/iotanalytics/types/types.go index 4e1820fadb9..c5d53752009 100644 --- a/service/iotanalytics/types/types.go +++ b/service/iotanalytics/types/types.go @@ -55,8 +55,8 @@ type Channel struct { // When the channel was created. CreationTime *time.Time - // The last time when a new message arrived in the channel. IoT Analytics updates - // this value at most once per minute for one channel. Hence, the + // The last time when a new message arrived in the channel. AWS IoT Analytics + // updates this value at most once per minute for one channel. Hence, the // lastMessageArrivalTime value is an approximation. This feature only applies to // messages that arrived in the data store after October 23, 2020. LastMessageArrivalTime *time.Time @@ -75,7 +75,7 @@ type Channel struct { // Where channel data is stored. You can choose one of serviceManagedS3 or // customerManagedS3 storage. If not specified, the default is serviceManagedS3. - // You can't change this storage option after the channel is created. + // You cannot change this storage option after the channel is created. Storage *ChannelStorage noSmithyDocumentSerde @@ -121,18 +121,20 @@ type ChannelStatistics struct { noSmithyDocumentSerde } -// Where channel data is stored. You may choose one of serviceManagedS3, +// Where channel data is stored. You may choose one of serviceManagedS3 or // customerManagedS3 storage. If not specified, the default is serviceManagedS3. -// This can't be changed after creation of the channel. +// This cannot be changed after creation of the channel. type ChannelStorage struct { - // Used to store channel data in an S3 bucket that you manage. If customer managed - // storage is selected, the retentionPeriod parameter is ignored. You can't change - // the choice of S3 storage after the data store is created. + // Use this to store channel data in an S3 bucket that you manage. If customer + // managed storage is selected, the retentionPeriod parameter is ignored. You + // cannot change the choice of service-managed or customer-managed S3 storage after + // the channel is created. CustomerManagedS3 *CustomerManagedChannelS3Storage - // Used to store channel data in an S3 bucket managed by IoT Analytics. You can't - // change the choice of S3 storage after the data store is created. + // Use this to store channel data in an S3 bucket managed by AWS IoT Analytics. You + // cannot change the choice of service-managed or customer-managed S3 storage after + // the channel is created. ServiceManagedS3 *ServiceManagedChannelS3Storage noSmithyDocumentSerde @@ -144,7 +146,7 @@ type ChannelStorageSummary struct { // Used to store channel data in an S3 bucket that you manage. CustomerManagedS3 *CustomerManagedChannelS3StorageSummary - // Used to store channel data in an S3 bucket managed by IoT Analytics. + // Used to store channel data in an S3 bucket managed by AWS IoT Analytics. ServiceManagedS3 *ServiceManagedChannelS3StorageSummary noSmithyDocumentSerde @@ -162,8 +164,8 @@ type ChannelSummary struct { // When the channel was created. CreationTime *time.Time - // The last time when a new message arrived in the channel. IoT Analytics updates - // this value at most once per minute for one channel. Hence, the + // The last time when a new message arrived in the channel. AWS IoT Analytics + // updates this value at most once per minute for one channel. Hence, the // lastMessageArrivalTime value is an approximation. This feature only applies to // messages that arrived in the data store after October 23, 2020. LastMessageArrivalTime *time.Time @@ -187,7 +189,7 @@ type Column struct { // The type of data. For more information about the supported data types, see // Common data types - // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html) in the + // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html) in the AWS // Glue Developer Guide. // // This member is required. @@ -228,9 +230,10 @@ type ContainerDatasetAction struct { noSmithyDocumentSerde } -// Used to store channel data in an S3 bucket that you manage. If customer-managed -// storage is selected, the retentionPeriod parameter is ignored. You can't change -// the choice of S3 storage after the data store is created. +// Use this to store channel data in an S3 bucket that you manage. If customer +// managed storage is selected, the retentionPeriod parameter is ignored. You +// cannot change the choice of service-managed or customer-managed S3 storage after +// the channel is created. type CustomerManagedChannelS3Storage struct { // The name of the S3 bucket in which channel data is stored. @@ -238,13 +241,13 @@ type CustomerManagedChannelS3Storage struct { // This member is required. Bucket *string - // The ARN of the role that grants IoT Analytics permission to interact with your - // Amazon S3 resources. + // The ARN of the role that grants AWS IoT Analytics permission to interact with + // your Amazon S3 resources. // // This member is required. RoleArn *string - // (Optional) The prefix used to create the keys of the channel data objects. Each + // Optional. The prefix used to create the keys of the channel data objects. Each // object in an S3 bucket has a key that is its unique identifier in the bucket. // Each object in a bucket has exactly one key. The prefix must end with a forward // slash (/). @@ -259,118 +262,119 @@ type CustomerManagedChannelS3StorageSummary struct { // The name of the S3 bucket in which channel data is stored. Bucket *string - // (Optional) The prefix used to create the keys of the channel data objects. Each + // Optional. The prefix used to create the keys of the channel data objects. Each // object in an S3 bucket has a key that is its unique identifier within the bucket // (each object in a bucket has exactly one key). The prefix must end with a // forward slash (/). KeyPrefix *string - // The ARN of the role that grants IoT Analytics permission to interact with your - // Amazon S3 resources. + // The ARN of the role that grants AWS IoT Analytics permission to interact with + // your Amazon S3 resources. RoleArn *string noSmithyDocumentSerde } -// S3-customer-managed; When you choose customer-managed storage, the -// retentionPeriod parameter is ignored. You can't change the choice of Amazon S3 -// storage after your data store is created. +// Use this to store data store data in an S3 bucket that you manage. When +// customer-managed storage is selected, the retentionPeriod parameter is ignored. +// You cannot change the choice of service-managed or customer-managed S3 storage +// after the data store is created. type CustomerManagedDatastoreS3Storage struct { - // The name of the Amazon S3 bucket where your data is stored. + // The name of the S3 bucket in which data store data is stored. // // This member is required. Bucket *string - // The ARN of the role that grants IoT Analytics permission to interact with your - // Amazon S3 resources. + // The ARN of the role that grants AWS IoT Analytics permission to interact with + // your Amazon S3 resources. // // This member is required. RoleArn *string - // (Optional) The prefix used to create the keys of the data store data objects. - // Each object in an Amazon S3 bucket has a key that is its unique identifier in - // the bucket. Each object in a bucket has exactly one key. The prefix must end - // with a forward slash (/). + // Optional. The prefix used to create the keys of the data store data objects. + // Each object in an S3 bucket has a key that is its unique identifier in the + // bucket. Each object in a bucket has exactly one key. The prefix must end with a + // forward slash (/). KeyPrefix *string noSmithyDocumentSerde } -// Contains information about the data store that you manage. +// Used to store data store data in an S3 bucket that you manage. type CustomerManagedDatastoreS3StorageSummary struct { - // The name of the Amazon S3 bucket where your data is stored. + // The name of the S3 bucket in which data store data is stored. Bucket *string - // (Optional) The prefix used to create the keys of the data store data objects. - // Each object in an Amazon S3 bucket has a key that is its unique identifier in - // the bucket. Each object in a bucket has exactly one key. The prefix must end - // with a forward slash (/). + // Optional. The prefix used to create the keys of the data store data objects. + // Each object in an S3 bucket has a key that is its unique identifier in the + // bucket. Each object in a bucket has exactly one key. The prefix must end with a + // forward slash (/). KeyPrefix *string - // The ARN of the role that grants IoT Analytics permission to interact with your - // Amazon S3 resources. + // The ARN of the role that grants AWS IoT Analytics permission to interact with + // your Amazon S3 resources. RoleArn *string noSmithyDocumentSerde } -// Information about a dataset. +// Information about a data set. type Dataset struct { - // The DatasetAction objects that automatically create the dataset contents. + // The DatasetAction objects that automatically create the data set contents. Actions []DatasetAction - // The ARN of the dataset. + // The ARN of the data set. Arn *string // When dataset contents are created they are delivered to destinations specified // here. ContentDeliveryRules []DatasetContentDeliveryRule - // When the dataset was created. + // When the data set was created. CreationTime *time.Time - // The last time the dataset was updated. + // The last time the data set was updated. LastUpdateTime *time.Time - // A list of data rules that send notifications to CloudWatch, when data arrives - // late. To specify lateDataRules, the dataset must use a DeltaTimer + // A list of data rules that send notifications to Amazon CloudWatch, when data + // arrives late. To specify lateDataRules, the dataset must use a DeltaTimer // (https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeltaTime.html) // filter. LateDataRules []LateDataRule - // The name of the dataset. + // The name of the data set. Name *string - // Optional. How long, in days, message data is kept for the dataset. + // Optional. How long, in days, message data is kept for the data set. RetentionPeriod *RetentionPeriod - // The status of the dataset. + // The status of the data set. Status DatasetStatus - // The DatasetTrigger objects that specify when the dataset is automatically + // The DatasetTrigger objects that specify when the data set is automatically // updated. Triggers []DatasetTrigger // Optional. How many versions of dataset contents are kept. If not specified or // set to null, only the latest version plus the latest succeeded version (if they // are different) are kept for the time period specified by the retentionPeriod - // parameter. For more information, see Keeping Multiple Versions of IoT Analytics - // datasets + // parameter. For more information, see Keeping Multiple Versions of AWS IoT + // Analytics Data Sets // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) - // in the IoT Analytics User Guide. + // in the AWS IoT Analytics User Guide. VersioningConfiguration *VersioningConfiguration noSmithyDocumentSerde } -// A DatasetAction object that specifies how dataset contents are automatically +// A DatasetAction object that specifies how data set contents are automatically // created. type DatasetAction struct { - // The name of the dataset action by which dataset contents are automatically + // The name of the data set action by which data set contents are automatically // created. ActionName *string @@ -380,7 +384,7 @@ type DatasetAction struct { ContainerAction *ContainerDatasetAction // An SqlQueryDatasetAction object that uses an SQL query to automatically create - // dataset contents. + // data set contents. QueryAction *SqlQueryDatasetAction noSmithyDocumentSerde @@ -401,7 +405,7 @@ type DatasetActionSummary struct { // The destination to which dataset contents are delivered. type DatasetContentDeliveryDestination struct { - // Configuration information for delivery of dataset contents to IoT Events. + // Configuration information for delivery of dataset contents to AWS IoT Events. IotEventsDestinationConfiguration *IotEventsDestinationConfiguration // Configuration information for delivery of dataset contents to Amazon S3. @@ -425,13 +429,13 @@ type DatasetContentDeliveryRule struct { noSmithyDocumentSerde } -// The state of the dataset contents and the reason they are in this state. +// The state of the data set contents and the reason they are in this state. type DatasetContentStatus struct { - // The reason the dataset contents are in this state. + // The reason the data set contents are in this state. Reason *string - // The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, or + // The state of the data set contents. Can be one of READY, CREATING, SUCCEEDED, or // FAILED. State DatasetContentState @@ -450,7 +454,7 @@ type DatasetContentSummary struct { // The time the creation of the dataset contents was scheduled to start. ScheduleTime *time.Time - // The status of the dataset contents. + // The status of the data set contents. Status *DatasetContentStatus // The version of the dataset contents. @@ -472,48 +476,48 @@ type DatasetContentVersionValue struct { noSmithyDocumentSerde } -// The reference to a dataset entry. +// The reference to a data set entry. type DatasetEntry struct { - // The presigned URI of the dataset item. + // The presigned URI of the data set item. DataURI *string - // The name of the dataset item. + // The name of the data set item. EntryName *string noSmithyDocumentSerde } -// A summary of information about a dataset. +// A summary of information about a data set. type DatasetSummary struct { // A list of DataActionSummary objects. Actions []DatasetActionSummary - // The time the dataset was created. + // The time the data set was created. CreationTime *time.Time - // The name of the dataset. + // The name of the data set. DatasetName *string - // The last time the dataset was updated. + // The last time the data set was updated. LastUpdateTime *time.Time - // The status of the dataset. + // The status of the data set. Status DatasetStatus - // A list of triggers. A trigger causes dataset content to be populated at a - // specified time interval or when another dataset is populated. The list of + // A list of triggers. A trigger causes data set content to be populated at a + // specified time interval or when another data set is populated. The list of // triggers can be empty or contain up to five DataSetTrigger objects Triggers []DatasetTrigger noSmithyDocumentSerde } -// The DatasetTrigger that specifies when the dataset is automatically updated. +// The DatasetTrigger that specifies when the data set is automatically updated. type DatasetTrigger struct { - // The dataset whose content creation triggers the creation of this dataset's + // The data set whose content creation triggers the creation of this data set's // contents. Dataset *TriggeringDataset @@ -532,20 +536,19 @@ type Datastore struct { // When the data store was created. CreationTime *time.Time - // Contains information about the partition dimensions in a data store. + // Contains information about the partitions in a data store. DatastorePartitions *DatastorePartitions - // Contains the configuration information of file formats. IoT Analytics data + // Contains the configuration information of file formats. AWS IoT Analytics data // stores support JSON and Parquet (https://parquet.apache.org/). The default file // format is JSON. You can specify only one format. You can't change the file // format after you create the data store. FileFormatConfiguration *FileFormatConfiguration - // The last time when a new message arrived in the data store. IoT Analytics - // updates this value at most once per minute for Amazon Simple Storage Service one - // data store. Hence, the lastMessageArrivalTime value is an approximation. This - // feature only applies to messages that arrived in the data store after October - // 23, 2020. + // The last time when a new message arrived in the data store. AWS IoT Analytics + // updates this value at most once per minute for one data store. Hence, the + // lastMessageArrivalTime value is an approximation. This feature only applies to + // messages that arrived in the data store after October 23, 2020. LastMessageArrivalTime *time.Time // The last time the data store was updated. @@ -563,10 +566,9 @@ type Datastore struct { // deleted. Status DatastoreStatus - // Where data in a data store is stored.. You can choose serviceManagedS3 storage, - // customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default - // is serviceManagedS3. You can't change the choice of Amazon S3 storage after your - // data store is created. + // Where data store data is stored. You can choose one of serviceManagedS3 or + // customerManagedS3 storage. If not specified, the default is serviceManagedS3. + // You cannot change this storage option after the data store is created. Storage DatastoreStorage noSmithyDocumentSerde @@ -588,46 +590,22 @@ type DatastoreActivity struct { noSmithyDocumentSerde } -// Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. -// You can't change the choice of Amazon S3 storage after your data store is -// created. -type DatastoreIotSiteWiseMultiLayerStorage struct { - - // Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. - // - // This member is required. - CustomerManagedS3Storage *IotSiteWiseCustomerManagedDatastoreS3Storage - - noSmithyDocumentSerde -} - -// Contains information about the data store that you manage, which stores data -// used by IoT SiteWise. -type DatastoreIotSiteWiseMultiLayerStorageSummary struct { - - // Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. - CustomerManagedS3Storage *IotSiteWiseCustomerManagedDatastoreS3StorageSummary - - noSmithyDocumentSerde -} - -// A single dimension to partition a data store. The dimension must be an -// AttributePartition or a TimestampPartition. +// A single partition in a data store. type DatastorePartition struct { - // A partition dimension defined by an attributeName. + // A partition defined by an attributeName. AttributePartition *Partition - // A partition dimension defined by a timestamp attribute. + // A partition defined by an attributeName and a timestamp format. TimestampPartition *TimestampPartition noSmithyDocumentSerde } -// Contains information about the partition dimensions in a data store. +// Contains information about partitions in a data store. type DatastorePartitions struct { - // A list of partition dimensions in a data store. + // A list of partitions in a data store. Partitions []DatastorePartition noSmithyDocumentSerde @@ -642,21 +620,20 @@ type DatastoreStatistics struct { noSmithyDocumentSerde } -// Where data in a data store is stored.. You can choose serviceManagedS3 storage, -// customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default -// is serviceManagedS3. You can't change the choice of Amazon S3 storage after your -// data store is created. +// Where data store data is stored. You can choose one of serviceManagedS3 or +// customerManagedS3 storage. If not specified, the default is serviceManagedS3. +// You cannot change this storage option after the data store is created. // // The following types satisfy this interface: // DatastoreStorageMemberServiceManagedS3 // DatastoreStorageMemberCustomerManagedS3 -// DatastoreStorageMemberIotSiteWiseMultiLayerStorage type DatastoreStorage interface { isDatastoreStorage() } -// Used to store data in an Amazon S3 bucket managed by IoT Analytics. You can't -// change the choice of Amazon S3 storage after your data store is created. +// Use this to store data store data in an S3 bucket managed by AWS IoT Analytics. +// You cannot change the choice of service-managed or customer-managed S3 storage +// after the data store is created. type DatastoreStorageMemberServiceManagedS3 struct { Value ServiceManagedDatastoreS3Storage @@ -665,9 +642,10 @@ type DatastoreStorageMemberServiceManagedS3 struct { func (*DatastoreStorageMemberServiceManagedS3) isDatastoreStorage() {} -// S3-customer-managed; When you choose customer-managed storage, the -// retentionPeriod parameter is ignored. You can't change the choice of Amazon S3 -// storage after your data store is created. +// Use this to store data store data in an S3 bucket that you manage. When customer +// managed storage is selected, the retentionPeriod parameter is ignored. The +// choice of service-managed or customer-managed S3 storage cannot be changed after +// creation of the data store. type DatastoreStorageMemberCustomerManagedS3 struct { Value CustomerManagedDatastoreS3Storage @@ -676,27 +654,13 @@ type DatastoreStorageMemberCustomerManagedS3 struct { func (*DatastoreStorageMemberCustomerManagedS3) isDatastoreStorage() {} -// Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. -// You can't change the choice of Amazon S3 storage after your data store is -// created. -type DatastoreStorageMemberIotSiteWiseMultiLayerStorage struct { - Value DatastoreIotSiteWiseMultiLayerStorage - - noSmithyDocumentSerde -} - -func (*DatastoreStorageMemberIotSiteWiseMultiLayerStorage) isDatastoreStorage() {} - -// Contains information about your data store. +// Where data store data is stored. type DatastoreStorageSummary struct { - // Used to store data in an Amazon S3 bucket managed by IoT Analytics. + // Used to store data store data in an S3 bucket that you manage. CustomerManagedS3 *CustomerManagedDatastoreS3StorageSummary - // Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. - IotSiteWiseMultiLayerStorage *DatastoreIotSiteWiseMultiLayerStorageSummary - - // Used to store data in an Amazon S3 bucket managed by IoT Analytics. + // Used to store data store data in an S3 bucket managed by AWS IoT Analytics. ServiceManagedS3 *ServiceManagedDatastoreS3StorageSummary noSmithyDocumentSerde @@ -711,20 +675,19 @@ type DatastoreSummary struct { // The name of the data store. DatastoreName *string - // Contains information about the partition dimensions in a data store. + // Contains information about the partitions in a data store. DatastorePartitions *DatastorePartitions - // Where data in a data store is stored. + // Where data store data is stored. DatastoreStorage *DatastoreStorageSummary // The file format of the data in the data store. FileFormatType FileFormatType - // The last time when a new message arrived in the data store. IoT Analytics - // updates this value at most once per minute for Amazon Simple Storage Service one - // data store. Hence, the lastMessageArrivalTime value is an approximation. This - // feature only applies to messages that arrived in the data store after October - // 23, 2020. + // The last time when a new message arrived in the data store. AWS IoT Analytics + // updates this value at most once per minute for one data store. Hence, the + // lastMessageArrivalTime value is an approximation. This feature only applies to + // messages that arrived in the data store after October 23, 2020. LastMessageArrivalTime *time.Time // The last time the data store was updated. @@ -769,14 +732,14 @@ type DeltaTime struct { // data that has arrived in the data store since the last execution. For an example // of DeltaTime, see Creating a SQL dataset with a delta window (CLI) // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/automate-create-dataset.html#automate-example6) -// in the IoT Analytics User Guide. +// in the AWS IoT Analytics User Guide. type DeltaTimeSessionWindowConfiguration struct { - // A time interval. You can use timeoutInMinutes so that IoT Analytics can batch up - // late data notifications that have been generated since the last execution. IoT - // Analytics sends one batch of notifications to Amazon CloudWatch Events at one - // time. For more information about how to write a timestamp expression, see Date - // and Time Functions and Operators + // A time interval. You can use timeoutInMinutes so that AWS IoT Analytics can + // batch up late data notifications that have been generated since the last + // execution. AWS IoT Analytics sends one batch of notifications to Amazon + // CloudWatch Events at one time. For more information about how to write a + // timestamp expression, see Date and Time Functions and Operators // (https://prestodb.io/docs/0.172/functions/datetime.html), in the Presto 0.172 // Documentation. // @@ -786,7 +749,7 @@ type DeltaTimeSessionWindowConfiguration struct { noSmithyDocumentSerde } -// An activity that adds data from the IoT device registry to your message. +// An activity that adds data from the AWS IoT device registry to your message. type DeviceRegistryEnrichActivity struct { // The name of the attribute that is added to the message. @@ -815,7 +778,7 @@ type DeviceRegistryEnrichActivity struct { noSmithyDocumentSerde } -// An activity that adds information from the IoT Device Shadow service to a +// An activity that adds information from the AWS IoT Device Shadow service to a // message. type DeviceShadowEnrichActivity struct { @@ -857,7 +820,7 @@ type EstimatedResourceSize struct { noSmithyDocumentSerde } -// Contains the configuration information of file formats. IoT Analytics data +// Contains the configuration information of file formats. AWS IoT Analytics data // stores support JSON and Parquet (https://parquet.apache.org/). The default file // format is JSON. You can specify only one format. You can't change the file // format after you create the data store. @@ -892,18 +855,18 @@ type FilterActivity struct { noSmithyDocumentSerde } -// Configuration information for coordination with Glue, a fully managed extract, -// transform and load (ETL) service. +// Configuration information for coordination with AWS Glue, a fully managed +// extract, transform and load (ETL) service. type GlueConfiguration struct { - // The name of the database in your Glue Data Catalog in which the table is - // located. An Glue Data Catalog database contains metadata tables. + // The name of the database in your AWS Glue Data Catalog in which the table is + // located. An AWS Glue Data Catalog database contains metadata tables. // // This member is required. DatabaseName *string - // The name of the table in your Glue Data Catalog that is used to perform the ETL - // operations. An Glue Data Catalog table contains partitioned data and + // The name of the table in your AWS Glue Data Catalog that is used to perform the + // ETL operations. An AWS Glue Data Catalog table contains partitioned data and // descriptions of data sources and targets. // // This member is required. @@ -912,16 +875,16 @@ type GlueConfiguration struct { noSmithyDocumentSerde } -// Configuration information for delivery of dataset contents to IoT Events. +// Configuration information for delivery of dataset contents to AWS IoT Events. type IotEventsDestinationConfiguration struct { - // The name of the IoT Events input to which dataset contents are delivered. + // The name of the AWS IoT Events input to which dataset contents are delivered. // // This member is required. InputName *string - // The ARN of the role that grants IoT Analytics permission to deliver dataset - // contents to an IoT Events input. + // The ARN of the role that grants AWS IoT Analytics permission to deliver dataset + // contents to an AWS IoT Events input. // // This member is required. RoleArn *string @@ -929,41 +892,6 @@ type IotEventsDestinationConfiguration struct { noSmithyDocumentSerde } -// Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. -// You can't change the choice of Amazon S3 storage after your data store is -// created. -type IotSiteWiseCustomerManagedDatastoreS3Storage struct { - - // The name of the Amazon S3 bucket where your data is stored. - // - // This member is required. - Bucket *string - - // (Optional) The prefix used to create the keys of the data store data objects. - // Each object in an Amazon S3 bucket has a key that is its unique identifier in - // the bucket. Each object in a bucket has exactly one key. The prefix must end - // with a forward slash (/). - KeyPrefix *string - - noSmithyDocumentSerde -} - -// Contains information about the data store that you manage, which stores data -// used by IoT SiteWise. -type IotSiteWiseCustomerManagedDatastoreS3StorageSummary struct { - - // The name of the Amazon S3 bucket where your data is stored. - Bucket *string - - // (Optional) The prefix used to create the keys of the data store data objects. - // Each object in an Amazon S3 bucket has a key that is its unique identifier in - // the bucket. Each object in a bucket has exactly one key. The prefix must end - // with a forward slash (/). - KeyPrefix *string - - noSmithyDocumentSerde -} - // Contains the configuration information of the JSON format. type JsonConfiguration struct { noSmithyDocumentSerde @@ -1022,7 +950,7 @@ type LateDataRuleConfiguration struct { // Information about logging options. type LoggingOptions struct { - // If true, logging is enabled for IoT Analytics. + // If true, logging is enabled for AWS IoT Analytics. // // This member is required. Enabled bool @@ -1032,7 +960,8 @@ type LoggingOptions struct { // This member is required. Level LoggingLevel - // The ARN of the role that grants permission to IoT Analytics to perform logging. + // The ARN of the role that grants permission to AWS IoT Analytics to perform + // logging. // // This member is required. RoleArn *string @@ -1106,10 +1035,10 @@ type ParquetConfiguration struct { noSmithyDocumentSerde } -// A partition dimension defined by an attribute. +// A single partition. type Partition struct { - // The name of the attribute that defines a partition dimension. + // The attribute name of the partition. // // This member is required. AttributeName *string @@ -1153,10 +1082,10 @@ type PipelineActivity struct { // Specifies where to store the processed message data. Datastore *DatastoreActivity - // Adds data from the IoT device registry to your message. + // Adds data from the AWS IoT device registry to your message. DeviceRegistryEnrich *DeviceRegistryEnrichActivity - // Adds information from the IoT Device Shadow service to a message. + // Adds information from the AWS IoT Device Shadow service to a message. DeviceShadowEnrich *DeviceShadowEnrichActivity // Filters a message based on its attributes. @@ -1172,8 +1101,8 @@ type PipelineActivity struct { // Removes attributes from a message. RemoveAttributes *RemoveAttributesActivity - // Used to create a new message using only the specified attributes from the - // original message. + // Creates a new message using only the specified attributes from the original + // message. SelectAttributes *SelectAttributesActivity noSmithyDocumentSerde @@ -1306,14 +1235,14 @@ type S3DestinationConfiguration struct { // This member is required. Key *string - // The ARN of the role that grants IoT Analytics permission to interact with your - // Amazon S3 and Glue resources. + // The ARN of the role that grants AWS IoT Analytics permission to interact with + // your Amazon S3 and AWS Glue resources. // // This member is required. RoleArn *string - // Configuration information for coordination with Glue, a fully managed extract, - // transform and load (ETL) service. + // Configuration information for coordination with AWS Glue, a fully managed + // extract, transform and load (ETL) service. GlueConfiguration *GlueConfiguration noSmithyDocumentSerde @@ -1341,8 +1270,8 @@ type SchemaDefinition struct { noSmithyDocumentSerde } -// Used to create a new message using only the specified attributes from the -// original message. +// Creates a new message using only the specified attributes from the original +// message. type SelectAttributesActivity struct { // A list of the attributes to select from the message. @@ -1361,24 +1290,26 @@ type SelectAttributesActivity struct { noSmithyDocumentSerde } -// Used to store channel data in an S3 bucket managed by IoT Analytics. You can't -// change the choice of S3 storage after the data store is created. +// Use this to store channel data in an S3 bucket managed by AWS IoT Analytics. You +// cannot change the choice of service-managed or customer-managed S3 storage after +// the channel is created. type ServiceManagedChannelS3Storage struct { noSmithyDocumentSerde } -// Used to store channel data in an S3 bucket managed by IoT Analytics. +// Used to store channel data in an S3 bucket managed by AWS IoT Analytics. type ServiceManagedChannelS3StorageSummary struct { noSmithyDocumentSerde } -// Used to store data in an Amazon S3 bucket managed by IoT Analytics. You can't -// change the choice of Amazon S3 storage after your data store is created. +// Use this to store data store data in an S3 bucket managed by AWS IoT Analytics. +// You cannot change the choice of service-managed or customer-managed S3 storage +// after the data store is created. type ServiceManagedDatastoreS3Storage struct { noSmithyDocumentSerde } -// Contains information about the data store that is managed by IoT Analytics. +// Used to store data store data in an S3 bucket managed by AWS IoT Analytics. type ServiceManagedDatastoreS3StorageSummary struct { noSmithyDocumentSerde } @@ -1413,7 +1344,7 @@ type Tag struct { noSmithyDocumentSerde } -// A partition dimension defined by a timestamp attribute. +// A partition defined by a timestamp. type TimestampPartition struct { // The attribute name of the partition defined by a timestamp. @@ -1421,8 +1352,7 @@ type TimestampPartition struct { // This member is required. AttributeName *string - // The timestamp format of a partition defined by a timestamp. The default format - // is seconds since epoch (January 1, 1970 at midnight UTC time). + // The timestamp format of a partition defined by a timestamp. TimestampFormat *string noSmithyDocumentSerde diff --git a/service/iotanalytics/types/types_exported_test.go b/service/iotanalytics/types/types_exported_test.go index e508272787f..2ac20341fb7 100644 --- a/service/iotanalytics/types/types_exported_test.go +++ b/service/iotanalytics/types/types_exported_test.go @@ -14,9 +14,6 @@ func ExampleDatastoreStorage_outputUsage() { case *types.DatastoreStorageMemberCustomerManagedS3: _ = v.Value // Value is types.CustomerManagedDatastoreS3Storage - case *types.DatastoreStorageMemberIotSiteWiseMultiLayerStorage: - _ = v.Value // Value is types.DatastoreIotSiteWiseMultiLayerStorage - case *types.DatastoreStorageMemberServiceManagedS3: _ = v.Value // Value is types.ServiceManagedDatastoreS3Storage @@ -31,4 +28,3 @@ func ExampleDatastoreStorage_outputUsage() { var _ *types.ServiceManagedDatastoreS3Storage var _ *types.CustomerManagedDatastoreS3Storage -var _ *types.DatastoreIotSiteWiseMultiLayerStorage diff --git a/service/iotanalytics/validators.go b/service/iotanalytics/validators.go index e6b292995ec..d46dd972431 100644 --- a/service/iotanalytics/validators.go +++ b/service/iotanalytics/validators.go @@ -1024,25 +1024,6 @@ func validateDatastoreActivity(v *types.DatastoreActivity) error { } } -func validateDatastoreIotSiteWiseMultiLayerStorage(v *types.DatastoreIotSiteWiseMultiLayerStorage) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DatastoreIotSiteWiseMultiLayerStorage"} - if v.CustomerManagedS3Storage == nil { - invalidParams.Add(smithy.NewErrParamRequired("CustomerManagedS3Storage")) - } else if v.CustomerManagedS3Storage != nil { - if err := validateIotSiteWiseCustomerManagedDatastoreS3Storage(v.CustomerManagedS3Storage); err != nil { - invalidParams.AddNested("CustomerManagedS3Storage", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateDatastorePartition(v *types.DatastorePartition) error { if v == nil { return nil @@ -1093,11 +1074,6 @@ func validateDatastoreStorage(v types.DatastoreStorage) error { invalidParams.AddNested("[customerManagedS3]", err.(smithy.InvalidParamsError)) } - case *types.DatastoreStorageMemberIotSiteWiseMultiLayerStorage: - if err := validateDatastoreIotSiteWiseMultiLayerStorage(&uv.Value); err != nil { - invalidParams.AddNested("[iotSiteWiseMultiLayerStorage]", err.(smithy.InvalidParamsError)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -1258,21 +1234,6 @@ func validateIotEventsDestinationConfiguration(v *types.IotEventsDestinationConf } } -func validateIotSiteWiseCustomerManagedDatastoreS3Storage(v *types.IotSiteWiseCustomerManagedDatastoreS3Storage) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "IotSiteWiseCustomerManagedDatastoreS3Storage"} - if v.Bucket == nil { - invalidParams.Add(smithy.NewErrParamRequired("Bucket")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateLambdaActivity(v *types.LambdaActivity) error { if v == nil { return nil diff --git a/service/iotdataplane/go.mod b/service/iotdataplane/go.mod index 1afb3ba9419..796b32e854a 100644 --- a/service/iotdataplane/go.mod +++ b/service/iotdataplane/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotdataplane/go.sum b/service/iotdataplane/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iotdataplane/go.sum +++ b/service/iotdataplane/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotdeviceadvisor/go.mod b/service/iotdeviceadvisor/go.mod index 3fbc90a46aa..b1406bf4a46 100644 --- a/service/iotdeviceadvisor/go.mod +++ b/service/iotdeviceadvisor/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotdeviceadvisor/go.sum b/service/iotdeviceadvisor/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iotdeviceadvisor/go.sum +++ b/service/iotdeviceadvisor/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotevents/go.mod b/service/iotevents/go.mod index ecbeac61149..477b2c3b643 100644 --- a/service/iotevents/go.mod +++ b/service/iotevents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotevents/go.sum b/service/iotevents/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iotevents/go.sum +++ b/service/iotevents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ioteventsdata/go.mod b/service/ioteventsdata/go.mod index 75a3a09df39..7bbd93723a9 100644 --- a/service/ioteventsdata/go.mod +++ b/service/ioteventsdata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ioteventsdata/go.sum b/service/ioteventsdata/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/ioteventsdata/go.sum +++ b/service/ioteventsdata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotfleethub/go.mod b/service/iotfleethub/go.mod index 0ee6ed16a54..3b1480ebf94 100644 --- a/service/iotfleethub/go.mod +++ b/service/iotfleethub/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotfleethub/go.sum b/service/iotfleethub/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iotfleethub/go.sum +++ b/service/iotfleethub/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotjobsdataplane/go.mod b/service/iotjobsdataplane/go.mod index 5661717ac80..ca9a820112e 100644 --- a/service/iotjobsdataplane/go.mod +++ b/service/iotjobsdataplane/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotjobsdataplane/go.sum b/service/iotjobsdataplane/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iotjobsdataplane/go.sum +++ b/service/iotjobsdataplane/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotsecuretunneling/go.mod b/service/iotsecuretunneling/go.mod index ef3c4f19376..7239e2af805 100644 --- a/service/iotsecuretunneling/go.mod +++ b/service/iotsecuretunneling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotsecuretunneling/go.sum b/service/iotsecuretunneling/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iotsecuretunneling/go.sum +++ b/service/iotsecuretunneling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotsitewise/api_op_AssociateAssets.go b/service/iotsitewise/api_op_AssociateAssets.go index 214c1ac2638..4326c0d2359 100644 --- a/service/iotsitewise/api_op_AssociateAssets.go +++ b/service/iotsitewise/api_op_AssociateAssets.go @@ -154,7 +154,7 @@ func (m *endpointPrefix_opAssociateAssetsMiddleware) HandleSerialize(ctx context return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_CreateAsset.go b/service/iotsitewise/api_op_CreateAsset.go index 59c3ef5613b..9c596b1a184 100644 --- a/service/iotsitewise/api_op_CreateAsset.go +++ b/service/iotsitewise/api_op_CreateAsset.go @@ -173,7 +173,7 @@ func (m *endpointPrefix_opCreateAssetMiddleware) HandleSerialize(ctx context.Con return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_CreateAssetModel.go b/service/iotsitewise/api_op_CreateAssetModel.go index d093098c2dc..67094bed258 100644 --- a/service/iotsitewise/api_op_CreateAssetModel.go +++ b/service/iotsitewise/api_op_CreateAssetModel.go @@ -199,7 +199,7 @@ func (m *endpointPrefix_opCreateAssetModelMiddleware) HandleSerialize(ctx contex return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_CreateGateway.go b/service/iotsitewise/api_op_CreateGateway.go index 86b3e761897..b7b2f0f31f1 100644 --- a/service/iotsitewise/api_op_CreateGateway.go +++ b/service/iotsitewise/api_op_CreateGateway.go @@ -160,7 +160,7 @@ func (m *endpointPrefix_opCreateGatewayMiddleware) HandleSerialize(ctx context.C return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "edge." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DeleteAsset.go b/service/iotsitewise/api_op_DeleteAsset.go index 6fa49d58378..5e8a7a0fb72 100644 --- a/service/iotsitewise/api_op_DeleteAsset.go +++ b/service/iotsitewise/api_op_DeleteAsset.go @@ -150,7 +150,7 @@ func (m *endpointPrefix_opDeleteAssetMiddleware) HandleSerialize(ctx context.Con return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DeleteAssetModel.go b/service/iotsitewise/api_op_DeleteAssetModel.go index 020a3ba1eff..f4c48df9aac 100644 --- a/service/iotsitewise/api_op_DeleteAssetModel.go +++ b/service/iotsitewise/api_op_DeleteAssetModel.go @@ -151,7 +151,7 @@ func (m *endpointPrefix_opDeleteAssetModelMiddleware) HandleSerialize(ctx contex return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DeleteGateway.go b/service/iotsitewise/api_op_DeleteGateway.go index a73774029ef..7560d02f334 100644 --- a/service/iotsitewise/api_op_DeleteGateway.go +++ b/service/iotsitewise/api_op_DeleteGateway.go @@ -130,7 +130,7 @@ func (m *endpointPrefix_opDeleteGatewayMiddleware) HandleSerialize(ctx context.C return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "edge." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeAsset.go b/service/iotsitewise/api_op_DescribeAsset.go index 0df04221f17..d294b20ee61 100644 --- a/service/iotsitewise/api_op_DescribeAsset.go +++ b/service/iotsitewise/api_op_DescribeAsset.go @@ -190,7 +190,7 @@ func (m *endpointPrefix_opDescribeAssetMiddleware) HandleSerialize(ctx context.C return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeAssetModel.go b/service/iotsitewise/api_op_DescribeAssetModel.go index 114cc7e27cb..00687f4b8a0 100644 --- a/service/iotsitewise/api_op_DescribeAssetModel.go +++ b/service/iotsitewise/api_op_DescribeAssetModel.go @@ -192,7 +192,7 @@ func (m *endpointPrefix_opDescribeAssetModelMiddleware) HandleSerialize(ctx cont return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeAssetProperty.go b/service/iotsitewise/api_op_DescribeAssetProperty.go index c1ae57b9f01..3d192a29778 100644 --- a/service/iotsitewise/api_op_DescribeAssetProperty.go +++ b/service/iotsitewise/api_op_DescribeAssetProperty.go @@ -167,7 +167,7 @@ func (m *endpointPrefix_opDescribeAssetPropertyMiddleware) HandleSerialize(ctx c return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeDefaultEncryptionConfiguration.go b/service/iotsitewise/api_op_DescribeDefaultEncryptionConfiguration.go index 8e62cd9a500..3cdcd44220c 100644 --- a/service/iotsitewise/api_op_DescribeDefaultEncryptionConfiguration.go +++ b/service/iotsitewise/api_op_DescribeDefaultEncryptionConfiguration.go @@ -4,7 +4,6 @@ package iotsitewise import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" @@ -104,9 +103,6 @@ func (c *Client) addOperationDescribeDefaultEncryptionConfigurationMiddlewares(s if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } - if err = addEndpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware(stack); err != nil { - return err - } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeDefaultEncryptionConfiguration(options.Region), middleware.Before); err != nil { return err } @@ -122,33 +118,6 @@ func (c *Client) addOperationDescribeDefaultEncryptionConfigurationMiddlewares(s return nil } -type endpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware struct { -} - -func (*endpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware) ID() string { - return "EndpointHostPrefix" -} - -func (m *endpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { - return next.HandleSerialize(ctx, in) - } - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - req.URL.Host = "api." + req.URL.Host - - return next.HandleSerialize(ctx, in) -} -func addEndpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware{}, `OperationSerializer`, middleware.After) -} - func newServiceMetadataMiddleware_opDescribeDefaultEncryptionConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_DescribeGateway.go b/service/iotsitewise/api_op_DescribeGateway.go index 8a621209fff..54149ffe03f 100644 --- a/service/iotsitewise/api_op_DescribeGateway.go +++ b/service/iotsitewise/api_op_DescribeGateway.go @@ -172,7 +172,7 @@ func (m *endpointPrefix_opDescribeGatewayMiddleware) HandleSerialize(ctx context return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "edge." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go b/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go index 6de0bc9a267..927d86e28d9 100644 --- a/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go +++ b/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go @@ -178,7 +178,7 @@ func (m *endpointPrefix_opDescribeGatewayCapabilityConfigurationMiddleware) Hand return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "edge." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeLoggingOptions.go b/service/iotsitewise/api_op_DescribeLoggingOptions.go index 5a910109acf..c72676bab88 100644 --- a/service/iotsitewise/api_op_DescribeLoggingOptions.go +++ b/service/iotsitewise/api_op_DescribeLoggingOptions.go @@ -127,7 +127,7 @@ func (m *endpointPrefix_opDescribeLoggingOptionsMiddleware) HandleSerialize(ctx return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeStorageConfiguration.go b/service/iotsitewise/api_op_DescribeStorageConfiguration.go index d491a8a1a34..372a4825912 100644 --- a/service/iotsitewise/api_op_DescribeStorageConfiguration.go +++ b/service/iotsitewise/api_op_DescribeStorageConfiguration.go @@ -4,7 +4,6 @@ package iotsitewise import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" @@ -14,9 +13,6 @@ import ( ) // Retrieves information about the storage configuration for IoT SiteWise. -// Exporting data to Amazon S3 is currently in preview release and is subject to -// change. We recommend that you use this feature only with test data, and not in -// production environments. func (c *Client) DescribeStorageConfiguration(ctx context.Context, params *DescribeStorageConfigurationInput, optFns ...func(*Options)) (*DescribeStorageConfigurationOutput, error) { if params == nil { params = &DescribeStorageConfigurationInput{} @@ -113,9 +109,6 @@ func (c *Client) addOperationDescribeStorageConfigurationMiddlewares(stack *midd if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } - if err = addEndpointPrefix_opDescribeStorageConfigurationMiddleware(stack); err != nil { - return err - } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeStorageConfiguration(options.Region), middleware.Before); err != nil { return err } @@ -131,33 +124,6 @@ func (c *Client) addOperationDescribeStorageConfigurationMiddlewares(stack *midd return nil } -type endpointPrefix_opDescribeStorageConfigurationMiddleware struct { -} - -func (*endpointPrefix_opDescribeStorageConfigurationMiddleware) ID() string { - return "EndpointHostPrefix" -} - -func (m *endpointPrefix_opDescribeStorageConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { - return next.HandleSerialize(ctx, in) - } - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - req.URL.Host = "api." + req.URL.Host - - return next.HandleSerialize(ctx, in) -} -func addEndpointPrefix_opDescribeStorageConfigurationMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDescribeStorageConfigurationMiddleware{}, `OperationSerializer`, middleware.After) -} - func newServiceMetadataMiddleware_opDescribeStorageConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_DisassociateAssets.go b/service/iotsitewise/api_op_DisassociateAssets.go index b740604e7f5..d8423ed1ccf 100644 --- a/service/iotsitewise/api_op_DisassociateAssets.go +++ b/service/iotsitewise/api_op_DisassociateAssets.go @@ -153,7 +153,7 @@ func (m *endpointPrefix_opDisassociateAssetsMiddleware) HandleSerialize(ctx cont return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListAssetModels.go b/service/iotsitewise/api_op_ListAssetModels.go index 299a846bee5..9bed9bffff4 100644 --- a/service/iotsitewise/api_op_ListAssetModels.go +++ b/service/iotsitewise/api_op_ListAssetModels.go @@ -138,7 +138,7 @@ func (m *endpointPrefix_opListAssetModelsMiddleware) HandleSerialize(ctx context return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListAssetRelationships.go b/service/iotsitewise/api_op_ListAssetRelationships.go index 532128e616d..ceddd93caac 100644 --- a/service/iotsitewise/api_op_ListAssetRelationships.go +++ b/service/iotsitewise/api_op_ListAssetRelationships.go @@ -158,7 +158,7 @@ func (m *endpointPrefix_opListAssetRelationshipsMiddleware) HandleSerialize(ctx return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListAssets.go b/service/iotsitewise/api_op_ListAssets.go index b8b4a8a93ca..f147c3f88da 100644 --- a/service/iotsitewise/api_op_ListAssets.go +++ b/service/iotsitewise/api_op_ListAssets.go @@ -166,7 +166,7 @@ func (m *endpointPrefix_opListAssetsMiddleware) HandleSerialize(ctx context.Cont return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListAssociatedAssets.go b/service/iotsitewise/api_op_ListAssociatedAssets.go index 0eb045ef322..17fb9d63705 100644 --- a/service/iotsitewise/api_op_ListAssociatedAssets.go +++ b/service/iotsitewise/api_op_ListAssociatedAssets.go @@ -175,7 +175,7 @@ func (m *endpointPrefix_opListAssociatedAssetsMiddleware) HandleSerialize(ctx co return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListGateways.go b/service/iotsitewise/api_op_ListGateways.go index 34a8b6407d7..ea539838ae8 100644 --- a/service/iotsitewise/api_op_ListGateways.go +++ b/service/iotsitewise/api_op_ListGateways.go @@ -138,7 +138,7 @@ func (m *endpointPrefix_opListGatewaysMiddleware) HandleSerialize(ctx context.Co return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "edge." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListTagsForResource.go b/service/iotsitewise/api_op_ListTagsForResource.go index 73b0350cb28..053a85dc3ec 100644 --- a/service/iotsitewise/api_op_ListTagsForResource.go +++ b/service/iotsitewise/api_op_ListTagsForResource.go @@ -4,7 +4,6 @@ package iotsitewise import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" @@ -98,9 +97,6 @@ func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.St if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } - if err = addEndpointPrefix_opListTagsForResourceMiddleware(stack); err != nil { - return err - } if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil { return err } @@ -119,33 +115,6 @@ func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.St return nil } -type endpointPrefix_opListTagsForResourceMiddleware struct { -} - -func (*endpointPrefix_opListTagsForResourceMiddleware) ID() string { - return "EndpointHostPrefix" -} - -func (m *endpointPrefix_opListTagsForResourceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { - return next.HandleSerialize(ctx, in) - } - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - req.URL.Host = "api." + req.URL.Host - - return next.HandleSerialize(ctx, in) -} -func addEndpointPrefix_opListTagsForResourceMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opListTagsForResourceMiddleware{}, `OperationSerializer`, middleware.After) -} - func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_PutDefaultEncryptionConfiguration.go b/service/iotsitewise/api_op_PutDefaultEncryptionConfiguration.go index e2bf60b6e79..5715721ae6a 100644 --- a/service/iotsitewise/api_op_PutDefaultEncryptionConfiguration.go +++ b/service/iotsitewise/api_op_PutDefaultEncryptionConfiguration.go @@ -4,7 +4,6 @@ package iotsitewise import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" @@ -113,9 +112,6 @@ func (c *Client) addOperationPutDefaultEncryptionConfigurationMiddlewares(stack if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } - if err = addEndpointPrefix_opPutDefaultEncryptionConfigurationMiddleware(stack); err != nil { - return err - } if err = addOpPutDefaultEncryptionConfigurationValidationMiddleware(stack); err != nil { return err } @@ -134,33 +130,6 @@ func (c *Client) addOperationPutDefaultEncryptionConfigurationMiddlewares(stack return nil } -type endpointPrefix_opPutDefaultEncryptionConfigurationMiddleware struct { -} - -func (*endpointPrefix_opPutDefaultEncryptionConfigurationMiddleware) ID() string { - return "EndpointHostPrefix" -} - -func (m *endpointPrefix_opPutDefaultEncryptionConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { - return next.HandleSerialize(ctx, in) - } - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - req.URL.Host = "api." + req.URL.Host - - return next.HandleSerialize(ctx, in) -} -func addEndpointPrefix_opPutDefaultEncryptionConfigurationMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opPutDefaultEncryptionConfigurationMiddleware{}, `OperationSerializer`, middleware.After) -} - func newServiceMetadataMiddleware_opPutDefaultEncryptionConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_PutLoggingOptions.go b/service/iotsitewise/api_op_PutLoggingOptions.go index 7487613f421..ea29d37ccdc 100644 --- a/service/iotsitewise/api_op_PutLoggingOptions.go +++ b/service/iotsitewise/api_op_PutLoggingOptions.go @@ -130,7 +130,7 @@ func (m *endpointPrefix_opPutLoggingOptionsMiddleware) HandleSerialize(ctx conte return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_PutStorageConfiguration.go b/service/iotsitewise/api_op_PutStorageConfiguration.go index 109db091985..c288af2e115 100644 --- a/service/iotsitewise/api_op_PutStorageConfiguration.go +++ b/service/iotsitewise/api_op_PutStorageConfiguration.go @@ -4,7 +4,6 @@ package iotsitewise import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" @@ -12,9 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Configures storage settings for IoT SiteWise. Exporting data to Amazon S3 is -// currently in preview release and is subject to change. We recommend that you use -// this feature only with test data, and not in production environments. +// Configures storage settings for IoT SiteWise. func (c *Client) PutStorageConfiguration(ctx context.Context, params *PutStorageConfigurationInput, optFns ...func(*Options)) (*PutStorageConfigurationOutput, error) { if params == nil { params = &PutStorageConfigurationInput{} @@ -126,9 +123,6 @@ func (c *Client) addOperationPutStorageConfigurationMiddlewares(stack *middlewar if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } - if err = addEndpointPrefix_opPutStorageConfigurationMiddleware(stack); err != nil { - return err - } if err = addOpPutStorageConfigurationValidationMiddleware(stack); err != nil { return err } @@ -147,33 +141,6 @@ func (c *Client) addOperationPutStorageConfigurationMiddlewares(stack *middlewar return nil } -type endpointPrefix_opPutStorageConfigurationMiddleware struct { -} - -func (*endpointPrefix_opPutStorageConfigurationMiddleware) ID() string { - return "EndpointHostPrefix" -} - -func (m *endpointPrefix_opPutStorageConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { - return next.HandleSerialize(ctx, in) - } - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - req.URL.Host = "api." + req.URL.Host - - return next.HandleSerialize(ctx, in) -} -func addEndpointPrefix_opPutStorageConfigurationMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opPutStorageConfigurationMiddleware{}, `OperationSerializer`, middleware.After) -} - func newServiceMetadataMiddleware_opPutStorageConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_TagResource.go b/service/iotsitewise/api_op_TagResource.go index 4b2b3c484cb..f59abe05398 100644 --- a/service/iotsitewise/api_op_TagResource.go +++ b/service/iotsitewise/api_op_TagResource.go @@ -4,7 +4,6 @@ package iotsitewise import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" @@ -100,9 +99,6 @@ func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, opt if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } - if err = addEndpointPrefix_opTagResourceMiddleware(stack); err != nil { - return err - } if err = addOpTagResourceValidationMiddleware(stack); err != nil { return err } @@ -121,33 +117,6 @@ func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, opt return nil } -type endpointPrefix_opTagResourceMiddleware struct { -} - -func (*endpointPrefix_opTagResourceMiddleware) ID() string { - return "EndpointHostPrefix" -} - -func (m *endpointPrefix_opTagResourceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { - return next.HandleSerialize(ctx, in) - } - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - req.URL.Host = "api." + req.URL.Host - - return next.HandleSerialize(ctx, in) -} -func addEndpointPrefix_opTagResourceMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opTagResourceMiddleware{}, `OperationSerializer`, middleware.After) -} - func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_UntagResource.go b/service/iotsitewise/api_op_UntagResource.go index 8cb27725e46..146649c1a4e 100644 --- a/service/iotsitewise/api_op_UntagResource.go +++ b/service/iotsitewise/api_op_UntagResource.go @@ -4,7 +4,6 @@ package iotsitewise import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" @@ -96,9 +95,6 @@ func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, o if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } - if err = addEndpointPrefix_opUntagResourceMiddleware(stack); err != nil { - return err - } if err = addOpUntagResourceValidationMiddleware(stack); err != nil { return err } @@ -117,33 +113,6 @@ func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, o return nil } -type endpointPrefix_opUntagResourceMiddleware struct { -} - -func (*endpointPrefix_opUntagResourceMiddleware) ID() string { - return "EndpointHostPrefix" -} - -func (m *endpointPrefix_opUntagResourceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { - return next.HandleSerialize(ctx, in) - } - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - req.URL.Host = "api." + req.URL.Host - - return next.HandleSerialize(ctx, in) -} -func addEndpointPrefix_opUntagResourceMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opUntagResourceMiddleware{}, `OperationSerializer`, middleware.After) -} - func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_UpdateAsset.go b/service/iotsitewise/api_op_UpdateAsset.go index 8aa0f77c229..960710a8e55 100644 --- a/service/iotsitewise/api_op_UpdateAsset.go +++ b/service/iotsitewise/api_op_UpdateAsset.go @@ -152,7 +152,7 @@ func (m *endpointPrefix_opUpdateAssetMiddleware) HandleSerialize(ctx context.Con return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_UpdateAssetModel.go b/service/iotsitewise/api_op_UpdateAssetModel.go index a7c8f118c4a..cd18f43d561 100644 --- a/service/iotsitewise/api_op_UpdateAssetModel.go +++ b/service/iotsitewise/api_op_UpdateAssetModel.go @@ -190,7 +190,7 @@ func (m *endpointPrefix_opUpdateAssetModelMiddleware) HandleSerialize(ctx contex return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_UpdateAssetProperty.go b/service/iotsitewise/api_op_UpdateAssetProperty.go index 3c48249a8d9..47018bd51f3 100644 --- a/service/iotsitewise/api_op_UpdateAssetProperty.go +++ b/service/iotsitewise/api_op_UpdateAssetProperty.go @@ -165,7 +165,7 @@ func (m *endpointPrefix_opUpdateAssetPropertyMiddleware) HandleSerialize(ctx con return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "model." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_UpdateGateway.go b/service/iotsitewise/api_op_UpdateGateway.go index 0387415376d..cd26c2d64ce 100644 --- a/service/iotsitewise/api_op_UpdateGateway.go +++ b/service/iotsitewise/api_op_UpdateGateway.go @@ -134,7 +134,7 @@ func (m *endpointPrefix_opUpdateGatewayMiddleware) HandleSerialize(ctx context.C return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "edge." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go b/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go index a10c0d46669..93d44c27aa1 100644 --- a/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go +++ b/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go @@ -177,7 +177,7 @@ func (m *endpointPrefix_opUpdateGatewayCapabilityConfigurationMiddleware) Handle return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "api." + req.URL.Host + req.URL.Host = "edge." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/deserializers.go b/service/iotsitewise/deserializers.go index 99c095ffca4..118230d66a7 100644 --- a/service/iotsitewise/deserializers.go +++ b/service/iotsitewise/deserializers.go @@ -12569,89 +12569,6 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary return nil } -func awsRestjson1_deserializeDocumentDetailedError(v **types.DetailedError, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DetailedError - if *v == nil { - sv = &types.DetailedError{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "code": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DetailedErrorCode to be of type string, got %T instead", value) - } - sv.Code = types.DetailedErrorCode(jtv) - } - - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DetailedErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentDetailedErrors(v *[]types.DetailedError, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.DetailedError - if *v == nil { - cv = []types.DetailedError{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.DetailedError - destAddr := &col - if err := awsRestjson1_deserializeDocumentDetailedError(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - func awsRestjson1_deserializeDocumentErrorDetails(v **types.ErrorDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12683,11 +12600,6 @@ func awsRestjson1_deserializeDocumentErrorDetails(v **types.ErrorDetails, value sv.Code = types.ErrorCode(jtv) } - case "details": - if err := awsRestjson1_deserializeDocumentDetailedErrors(&sv.Details, value); err != nil { - return err - } - case "message": if value != nil { jtv, ok := value.(string) @@ -12785,46 +12697,6 @@ func awsRestjson1_deserializeDocumentExpressionVariables(v *[]types.ExpressionVa return nil } -func awsRestjson1_deserializeDocumentForwardingConfig(v **types.ForwardingConfig, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ForwardingConfig - if *v == nil { - sv = &types.ForwardingConfig{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "state": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ForwardingConfigState to be of type string, got %T instead", value) - } - sv.State = types.ForwardingConfigState(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentGatewayCapabilitySummaries(v *[]types.GatewayCapabilitySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12935,11 +12807,6 @@ func awsRestjson1_deserializeDocumentGatewayPlatform(v **types.GatewayPlatform, return err } - case "greengrassV2": - if err := awsRestjson1_deserializeDocumentGreengrassV2(&sv.GreengrassV2, value); err != nil { - return err - } - default: _, _ = key, value @@ -13044,11 +12911,6 @@ func awsRestjson1_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va sv.GatewayName = ptr.String(jtv) } - case "gatewayPlatform": - if err := awsRestjson1_deserializeDocumentGatewayPlatform(&sv.GatewayPlatform, value); err != nil { - return err - } - case "lastUpdateDate": if value != nil { switch jtv := value.(type) { @@ -13114,46 +12976,6 @@ func awsRestjson1_deserializeDocumentGreengrass(v **types.Greengrass, value inte return nil } -func awsRestjson1_deserializeDocumentGreengrassV2(v **types.GreengrassV2, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.GreengrassV2 - if *v == nil { - sv = &types.GreengrassV2{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "coreDeviceThingName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CoreDeviceThingName to be of type string, got %T instead", value) - } - sv.CoreDeviceThingName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentGroupIdentity(v **types.GroupIdentity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13631,47 +13453,6 @@ func awsRestjson1_deserializeDocumentMeasurement(v **types.Measurement, value in for key, value := range shape { switch key { - case "processingConfig": - if err := awsRestjson1_deserializeDocumentMeasurementProcessingConfig(&sv.ProcessingConfig, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentMeasurementProcessingConfig(v **types.MeasurementProcessingConfig, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.MeasurementProcessingConfig - if *v == nil { - sv = &types.MeasurementProcessingConfig{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "forwardingConfig": - if err := awsRestjson1_deserializeDocumentForwardingConfig(&sv.ForwardingConfig, value); err != nil { - return err - } - default: _, _ = key, value @@ -13712,11 +13493,6 @@ func awsRestjson1_deserializeDocumentMetric(v **types.Metric, value interface{}) sv.Expression = ptr.String(jtv) } - case "processingConfig": - if err := awsRestjson1_deserializeDocumentMetricProcessingConfig(&sv.ProcessingConfig, value); err != nil { - return err - } - case "variables": if err := awsRestjson1_deserializeDocumentExpressionVariables(&sv.Variables, value); err != nil { return err @@ -13736,46 +13512,6 @@ func awsRestjson1_deserializeDocumentMetric(v **types.Metric, value interface{}) return nil } -func awsRestjson1_deserializeDocumentMetricProcessingConfig(v **types.MetricProcessingConfig, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.MetricProcessingConfig - if *v == nil { - sv = &types.MetricProcessingConfig{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "computeLocation": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ComputeLocation to be of type string, got %T instead", value) - } - sv.ComputeLocation = types.ComputeLocation(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentMetricWindow(v **types.MetricWindow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -14905,11 +14641,6 @@ func awsRestjson1_deserializeDocumentTransform(v **types.Transform, value interf sv.Expression = ptr.String(jtv) } - case "processingConfig": - if err := awsRestjson1_deserializeDocumentTransformProcessingConfig(&sv.ProcessingConfig, value); err != nil { - return err - } - case "variables": if err := awsRestjson1_deserializeDocumentExpressionVariables(&sv.Variables, value); err != nil { return err @@ -14924,51 +14655,6 @@ func awsRestjson1_deserializeDocumentTransform(v **types.Transform, value interf return nil } -func awsRestjson1_deserializeDocumentTransformProcessingConfig(v **types.TransformProcessingConfig, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.TransformProcessingConfig - if *v == nil { - sv = &types.TransformProcessingConfig{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "computeLocation": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ComputeLocation to be of type string, got %T instead", value) - } - sv.ComputeLocation = types.ComputeLocation(jtv) - } - - case "forwardingConfig": - if err := awsRestjson1_deserializeDocumentForwardingConfig(&sv.ForwardingConfig, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentTumblingWindow(v **types.TumblingWindow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/iotsitewise/go.mod b/service/iotsitewise/go.mod index 545c099c54e..e3237695291 100644 --- a/service/iotsitewise/go.mod +++ b/service/iotsitewise/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/iotsitewise/go.sum b/service/iotsitewise/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/iotsitewise/go.sum +++ b/service/iotsitewise/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iotsitewise/serializers.go b/service/iotsitewise/serializers.go index 8525246141f..d8bcd7da3e2 100644 --- a/service/iotsitewise/serializers.go +++ b/service/iotsitewise/serializers.go @@ -4852,18 +4852,6 @@ func awsRestjson1_serializeDocumentExpressionVariables(v []types.ExpressionVaria return nil } -func awsRestjson1_serializeDocumentForwardingConfig(v *types.ForwardingConfig, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.State) > 0 { - ok := object.Key("state") - ok.String(string(v.State)) - } - - return nil -} - func awsRestjson1_serializeDocumentGatewayPlatform(v *types.GatewayPlatform, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4875,13 +4863,6 @@ func awsRestjson1_serializeDocumentGatewayPlatform(v *types.GatewayPlatform, val } } - if v.GreengrassV2 != nil { - ok := object.Key("greengrassV2") - if err := awsRestjson1_serializeDocumentGreengrassV2(v.GreengrassV2, ok); err != nil { - return err - } - } - return nil } @@ -4897,18 +4878,6 @@ func awsRestjson1_serializeDocumentGreengrass(v *types.Greengrass, value smithyj return nil } -func awsRestjson1_serializeDocumentGreengrassV2(v *types.GreengrassV2, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CoreDeviceThingName != nil { - ok := object.Key("coreDeviceThingName") - ok.String(*v.CoreDeviceThingName) - } - - return nil -} - func awsRestjson1_serializeDocumentGroupIdentity(v *types.GroupIdentity, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5043,27 +5012,6 @@ func awsRestjson1_serializeDocumentMeasurement(v *types.Measurement, value smith object := value.Object() defer object.Close() - if v.ProcessingConfig != nil { - ok := object.Key("processingConfig") - if err := awsRestjson1_serializeDocumentMeasurementProcessingConfig(v.ProcessingConfig, ok); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeDocumentMeasurementProcessingConfig(v *types.MeasurementProcessingConfig, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ForwardingConfig != nil { - ok := object.Key("forwardingConfig") - if err := awsRestjson1_serializeDocumentForwardingConfig(v.ForwardingConfig, ok); err != nil { - return err - } - } - return nil } @@ -5076,13 +5024,6 @@ func awsRestjson1_serializeDocumentMetric(v *types.Metric, value smithyjson.Valu ok.String(*v.Expression) } - if v.ProcessingConfig != nil { - ok := object.Key("processingConfig") - if err := awsRestjson1_serializeDocumentMetricProcessingConfig(v.ProcessingConfig, ok); err != nil { - return err - } - } - if v.Variables != nil { ok := object.Key("variables") if err := awsRestjson1_serializeDocumentExpressionVariables(v.Variables, ok); err != nil { @@ -5100,18 +5041,6 @@ func awsRestjson1_serializeDocumentMetric(v *types.Metric, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentMetricProcessingConfig(v *types.MetricProcessingConfig, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.ComputeLocation) > 0 { - ok := object.Key("computeLocation") - ok.String(string(v.ComputeLocation)) - } - - return nil -} - func awsRestjson1_serializeDocumentMetricWindow(v *types.MetricWindow, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5304,13 +5233,6 @@ func awsRestjson1_serializeDocumentTransform(v *types.Transform, value smithyjso ok.String(*v.Expression) } - if v.ProcessingConfig != nil { - ok := object.Key("processingConfig") - if err := awsRestjson1_serializeDocumentTransformProcessingConfig(v.ProcessingConfig, ok); err != nil { - return err - } - } - if v.Variables != nil { ok := object.Key("variables") if err := awsRestjson1_serializeDocumentExpressionVariables(v.Variables, ok); err != nil { @@ -5321,25 +5243,6 @@ func awsRestjson1_serializeDocumentTransform(v *types.Transform, value smithyjso return nil } -func awsRestjson1_serializeDocumentTransformProcessingConfig(v *types.TransformProcessingConfig, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.ComputeLocation) > 0 { - ok := object.Key("computeLocation") - ok.String(string(v.ComputeLocation)) - } - - if v.ForwardingConfig != nil { - ok := object.Key("forwardingConfig") - if err := awsRestjson1_serializeDocumentForwardingConfig(v.ForwardingConfig, ok); err != nil { - return err - } - } - - return nil -} - func awsRestjson1_serializeDocumentTumblingWindow(v *types.TumblingWindow, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/iotsitewise/types/enums.go b/service/iotsitewise/types/enums.go index e42c2410f42..09c5f1b8a1c 100644 --- a/service/iotsitewise/types/enums.go +++ b/service/iotsitewise/types/enums.go @@ -168,7 +168,6 @@ const ( CapabilitySyncStatusInSync CapabilitySyncStatus = "IN_SYNC" CapabilitySyncStatusOutOfSync CapabilitySyncStatus = "OUT_OF_SYNC" CapabilitySyncStatusSyncFailed CapabilitySyncStatus = "SYNC_FAILED" - CapabilitySyncStatusUnknown CapabilitySyncStatus = "UNKNOWN" ) // Values returns all known values for CapabilitySyncStatus. Note that this can be @@ -179,25 +178,6 @@ func (CapabilitySyncStatus) Values() []CapabilitySyncStatus { "IN_SYNC", "OUT_OF_SYNC", "SYNC_FAILED", - "UNKNOWN", - } -} - -type ComputeLocation string - -// Enum values for ComputeLocation -const ( - ComputeLocationEdge ComputeLocation = "EDGE" - ComputeLocationCloud ComputeLocation = "CLOUD" -) - -// Values returns all known values for ComputeLocation. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (ComputeLocation) Values() []ComputeLocation { - return []ComputeLocation{ - "EDGE", - "CLOUD", } } @@ -221,24 +201,6 @@ func (ConfigurationState) Values() []ConfigurationState { } } -type DetailedErrorCode string - -// Enum values for DetailedErrorCode -const ( - DetailedErrorCodeIncompatibleComputeLocation DetailedErrorCode = "INCOMPATIBLE_COMPUTE_LOCATION" - DetailedErrorCodeIncompatibleForwardingConfiguration DetailedErrorCode = "INCOMPATIBLE_FORWARDING_CONFIGURATION" -) - -// Values returns all known values for DetailedErrorCode. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (DetailedErrorCode) Values() []DetailedErrorCode { - return []DetailedErrorCode{ - "INCOMPATIBLE_COMPUTE_LOCATION", - "INCOMPATIBLE_FORWARDING_CONFIGURATION", - } -} - type EncryptionType string // Enum values for EncryptionType @@ -275,24 +237,6 @@ func (ErrorCode) Values() []ErrorCode { } } -type ForwardingConfigState string - -// Enum values for ForwardingConfigState -const ( - ForwardingConfigStateDisabled ForwardingConfigState = "DISABLED" - ForwardingConfigStateEnabled ForwardingConfigState = "ENABLED" -) - -// Values returns all known values for ForwardingConfigState. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (ForwardingConfigState) Values() []ForwardingConfigState { - return []ForwardingConfigState{ - "DISABLED", - "ENABLED", - } -} - type IdentityType string // Enum values for IdentityType diff --git a/service/iotsitewise/types/types.go b/service/iotsitewise/types/types.go index dc679698310..482ea01485e 100644 --- a/service/iotsitewise/types/types.go +++ b/service/iotsitewise/types/types.go @@ -764,22 +764,6 @@ type DashboardSummary struct { noSmithyDocumentSerde } -// Contains detailed error information. -type DetailedError struct { - - // The error code. - // - // This member is required. - Code DetailedErrorCode - - // The error message. - // - // This member is required. - Message *string - - noSmithyDocumentSerde -} - // Contains the details of an IoT SiteWise error. type ErrorDetails struct { @@ -793,9 +777,6 @@ type ErrorDetails struct { // This member is required. Message *string - // A list of detailed errors. - Details []DetailedError - noSmithyDocumentSerde } @@ -815,17 +796,6 @@ type ExpressionVariable struct { noSmithyDocumentSerde } -// The forwarding configuration for a given property. -type ForwardingConfig struct { - - // The forwarding state for the given property. - // - // This member is required. - State ForwardingConfigState - - noSmithyDocumentSerde -} - // Contains a summary of a gateway capability configuration. type GatewayCapabilitySummary struct { @@ -859,11 +829,10 @@ type GatewayCapabilitySummary struct { type GatewayPlatform struct { // A gateway that runs on IoT Greengrass. + // + // This member is required. Greengrass *Greengrass - // A gateway that runs on IoT Greengrass V2. - GreengrassV2 *GreengrassV2 - noSmithyDocumentSerde } @@ -897,9 +866,6 @@ type GatewaySummary struct { // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGatewayCapabilityConfiguration.html). GatewayCapabilitySummaries []GatewayCapabilitySummary - // Contains a gateway's platform information. - GatewayPlatform *GatewayPlatform - noSmithyDocumentSerde } @@ -927,24 +893,6 @@ type Greengrass struct { noSmithyDocumentSerde } -// Contains details for a gateway that runs on IoT Greengrass V2. To create a -// gateway that runs on IoT Greengrass V2, you must deploy the IoT SiteWise Edge -// component to your gateway device. Your Greengrass device role -// (https://docs.aws.amazon.com/greengrass/v2/developerguide/device-service-role.html) -// must use the AWSIoTSiteWiseEdgeAccess policy. For more information, see Using -// IoT SiteWise at the edge -// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/sw-gateways.html) in -// the IoT SiteWise User Guide. -type GreengrassV2 struct { - - // The name of the IoT thing for your IoT Greengrass V2 core device. - // - // This member is required. - CoreDeviceThingName *string - - noSmithyDocumentSerde -} - // Contains information for a group identity in an access policy. type GroupIdentity struct { @@ -1092,25 +1040,6 @@ type LoggingOptions struct { // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html#measurements) // in the IoT SiteWise User Guide. type Measurement struct { - - // The processing configuration for the given measurement property. You can - // configure measurements to be kept at the edge or forwarded to the Amazon Web - // Services Cloud. By default, measurements are forwarded to the cloud. - ProcessingConfig *MeasurementProcessingConfig - - noSmithyDocumentSerde -} - -// The processing configuration for the given measurement property. You can -// configure measurements to be kept at the edge or forwarded to the Amazon Web -// Services Cloud. By default, measurements are forwarded to the cloud. -type MeasurementProcessingConfig struct { - - // The forwarding configuration for the given measurement property. - // - // This member is required. - ForwardingConfig *ForwardingConfig - noSmithyDocumentSerde } @@ -1146,24 +1075,6 @@ type Metric struct { // This member is required. Window *MetricWindow - // The processing configuration for the given metric property. You can configure - // metrics to be computed at the edge or in the Amazon Web Services Cloud. By - // default, metrics are forwarded to the cloud. - ProcessingConfig *MetricProcessingConfig - - noSmithyDocumentSerde -} - -// The processing configuration for the given metric property. You can configure -// metrics to be computed at the edge or in the Amazon Web Services Cloud. By -// default, metrics are forwarded to the cloud. -type MetricProcessingConfig struct { - - // The compute location for the given metric property. - // - // This member is required. - ComputeLocation ComputeLocation - noSmithyDocumentSerde } @@ -1482,27 +1393,6 @@ type Transform struct { // This member is required. Variables []ExpressionVariable - // The processing configuration for the given transform property. You can configure - // transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. - // You can also configure transforms to be computed at the edge or in the cloud. - ProcessingConfig *TransformProcessingConfig - - noSmithyDocumentSerde -} - -// The processing configuration for the given transform property. You can configure -// transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. -// You can also configure transforms to be computed at the edge or in the cloud. -type TransformProcessingConfig struct { - - // The compute location for the given transform property. - // - // This member is required. - ComputeLocation ComputeLocation - - // The forwarding configuration for a given property. - ForwardingConfig *ForwardingConfig - noSmithyDocumentSerde } diff --git a/service/iotsitewise/validators.go b/service/iotsitewise/validators.go index 4f4e3c9cd98..80c0a83ad83 100644 --- a/service/iotsitewise/validators.go +++ b/service/iotsitewise/validators.go @@ -1555,36 +1555,18 @@ func validateExpressionVariables(v []types.ExpressionVariable) error { } } -func validateForwardingConfig(v *types.ForwardingConfig) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ForwardingConfig"} - if len(v.State) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("State")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateGatewayPlatform(v *types.GatewayPlatform) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GatewayPlatform"} - if v.Greengrass != nil { + if v.Greengrass == nil { + invalidParams.Add(smithy.NewErrParamRequired("Greengrass")) + } else if v.Greengrass != nil { if err := validateGreengrass(v.Greengrass); err != nil { invalidParams.AddNested("Greengrass", err.(smithy.InvalidParamsError)) } } - if v.GreengrassV2 != nil { - if err := validateGreengrassV2(v.GreengrassV2); err != nil { - invalidParams.AddNested("GreengrassV2", err.(smithy.InvalidParamsError)) - } - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1607,21 +1589,6 @@ func validateGreengrass(v *types.Greengrass) error { } } -func validateGreengrassV2(v *types.GreengrassV2) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GreengrassV2"} - if v.CoreDeviceThingName == nil { - invalidParams.Add(smithy.NewErrParamRequired("CoreDeviceThingName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateGroupIdentity(v *types.GroupIdentity) error { if v == nil { return nil @@ -1749,42 +1716,6 @@ func validateLoggingOptions(v *types.LoggingOptions) error { } } -func validateMeasurement(v *types.Measurement) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "Measurement"} - if v.ProcessingConfig != nil { - if err := validateMeasurementProcessingConfig(v.ProcessingConfig); err != nil { - invalidParams.AddNested("ProcessingConfig", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateMeasurementProcessingConfig(v *types.MeasurementProcessingConfig) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "MeasurementProcessingConfig"} - if v.ForwardingConfig == nil { - invalidParams.Add(smithy.NewErrParamRequired("ForwardingConfig")) - } else if v.ForwardingConfig != nil { - if err := validateForwardingConfig(v.ForwardingConfig); err != nil { - invalidParams.AddNested("ForwardingConfig", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateMetric(v *types.Metric) error { if v == nil { return nil @@ -1807,26 +1738,6 @@ func validateMetric(v *types.Metric) error { invalidParams.AddNested("Window", err.(smithy.InvalidParamsError)) } } - if v.ProcessingConfig != nil { - if err := validateMetricProcessingConfig(v.ProcessingConfig); err != nil { - invalidParams.AddNested("ProcessingConfig", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateMetricProcessingConfig(v *types.MetricProcessingConfig) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "MetricProcessingConfig"} - if len(v.ComputeLocation) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("ComputeLocation")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1905,11 +1816,6 @@ func validatePropertyType(v *types.PropertyType) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "PropertyType"} - if v.Measurement != nil { - if err := validateMeasurement(v.Measurement); err != nil { - invalidParams.AddNested("Measurement", err.(smithy.InvalidParamsError)) - } - } if v.Transform != nil { if err := validateTransform(v.Transform); err != nil { invalidParams.AddNested("Transform", err.(smithy.InvalidParamsError)) @@ -2018,31 +1924,6 @@ func validateTransform(v *types.Transform) error { invalidParams.AddNested("Variables", err.(smithy.InvalidParamsError)) } } - if v.ProcessingConfig != nil { - if err := validateTransformProcessingConfig(v.ProcessingConfig); err != nil { - invalidParams.AddNested("ProcessingConfig", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateTransformProcessingConfig(v *types.TransformProcessingConfig) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "TransformProcessingConfig"} - if len(v.ComputeLocation) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("ComputeLocation")) - } - if v.ForwardingConfig != nil { - if err := validateForwardingConfig(v.ForwardingConfig); err != nil { - invalidParams.AddNested("ForwardingConfig", err.(smithy.InvalidParamsError)) - } - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/iotthingsgraph/go.mod b/service/iotthingsgraph/go.mod index 624e1e17d01..b2a1dd86415 100644 --- a/service/iotthingsgraph/go.mod +++ b/service/iotthingsgraph/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotthingsgraph/go.sum b/service/iotthingsgraph/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iotthingsgraph/go.sum +++ b/service/iotthingsgraph/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotwireless/api_op_GetLogLevelsByResourceTypes.go b/service/iotwireless/api_op_GetLogLevelsByResourceTypes.go index e89185f88f6..1ecf7d491aa 100644 --- a/service/iotwireless/api_op_GetLogLevelsByResourceTypes.go +++ b/service/iotwireless/api_op_GetLogLevelsByResourceTypes.go @@ -11,9 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns current default log levels or log levels by resource types. Based on -// resource types, log levels can be for wireless device log options or wireless -// gateway log options. +// Returns current default log-levels, or log levels by resource types, could be +// for wireless device log options or wireless gateway log options. func (c *Client) GetLogLevelsByResourceTypes(ctx context.Context, params *GetLogLevelsByResourceTypesInput, optFns ...func(*Options)) (*GetLogLevelsByResourceTypesOutput, error) { if params == nil { params = &GetLogLevelsByResourceTypesInput{} diff --git a/service/iotwireless/api_op_GetResourceLogLevel.go b/service/iotwireless/api_op_GetResourceLogLevel.go index 98afd5c778a..12be2883f22 100644 --- a/service/iotwireless/api_op_GetResourceLogLevel.go +++ b/service/iotwireless/api_op_GetResourceLogLevel.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Fetches the log-level override, if any, for a given resource-ID and -// resource-type. It can be used for a wireless device or a wireless gateway. +// Fetches the log-level override if any for a given resource-ID and resource-type, +// coulde be a wireless device or a wireless gateway. func (c *Client) GetResourceLogLevel(ctx context.Context, params *GetResourceLogLevelInput, optFns ...func(*Options)) (*GetResourceLogLevelOutput, error) { if params == nil { params = &GetResourceLogLevelInput{} @@ -31,12 +31,12 @@ func (c *Client) GetResourceLogLevel(ctx context.Context, params *GetResourceLog type GetResourceLogLevelInput struct { // The identifier of the resource. For a Wireless Device, it is the wireless device - // ID. For a wireless gateway, it is the wireless gateway ID. + // id. For a wireless gateway, it is the wireless gateway id. // // This member is required. ResourceIdentifier *string - // The type of the resource, which can be WirelessDevice or WirelessGateway. + // The type of the resource, currently support WirelessDevice and WirelessGateway. // // This member is required. ResourceType *string diff --git a/service/iotwireless/api_op_PutResourceLogLevel.go b/service/iotwireless/api_op_PutResourceLogLevel.go index 7404f59eeb2..fb6690be016 100644 --- a/service/iotwireless/api_op_PutResourceLogLevel.go +++ b/service/iotwireless/api_op_PutResourceLogLevel.go @@ -11,9 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Sets the log-level override for a resource-ID and resource-type. This option can -// be specified for a wireless gateway or a wireless device. A limit of 200 log -// level override can be set per account. +// Sets the log-level override for a resource-ID and resource-type, could be a +// wireless gateway or a wireless device. func (c *Client) PutResourceLogLevel(ctx context.Context, params *PutResourceLogLevelInput, optFns ...func(*Options)) (*PutResourceLogLevelOutput, error) { if params == nil { params = &PutResourceLogLevelInput{} @@ -37,12 +36,12 @@ type PutResourceLogLevelInput struct { LogLevel types.LogLevel // The identifier of the resource. For a Wireless Device, it is the wireless device - // ID. For a wireless gateway, it is the wireless gateway ID. + // id. For a wireless gateway, it is the wireless gateway id. // // This member is required. ResourceIdentifier *string - // The type of the resource, which can be WirelessDevice or WirelessGateway. + // The type of the resource, currently support WirelessDevice and WirelessGateway. // // This member is required. ResourceType *string diff --git a/service/iotwireless/api_op_ResetAllResourceLogLevels.go b/service/iotwireless/api_op_ResetAllResourceLogLevels.go index aac8c777fbf..50d1ca1c45e 100644 --- a/service/iotwireless/api_op_ResetAllResourceLogLevels.go +++ b/service/iotwireless/api_op_ResetAllResourceLogLevels.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes the log-level overrides for all resources; both wireless devices and -// wireless gateways. +// Remove log-level overrides if any for all resources (both wireless devices and +// wireless gateways). func (c *Client) ResetAllResourceLogLevels(ctx context.Context, params *ResetAllResourceLogLevelsInput, optFns ...func(*Options)) (*ResetAllResourceLogLevelsOutput, error) { if params == nil { params = &ResetAllResourceLogLevelsInput{} diff --git a/service/iotwireless/api_op_ResetResourceLogLevel.go b/service/iotwireless/api_op_ResetResourceLogLevel.go index efab8529cfb..dabc6364a4b 100644 --- a/service/iotwireless/api_op_ResetResourceLogLevel.go +++ b/service/iotwireless/api_op_ResetResourceLogLevel.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes the log-level override, if any, for a specific resource-ID and -// resource-type. It can be used for a wireless device or a wireless gateway. +// Remove log-level override if any for a specific resource-ID and resource-type, +// could be a wireless device or a wireless gateway. func (c *Client) ResetResourceLogLevel(ctx context.Context, params *ResetResourceLogLevelInput, optFns ...func(*Options)) (*ResetResourceLogLevelOutput, error) { if params == nil { params = &ResetResourceLogLevelInput{} @@ -30,12 +30,12 @@ func (c *Client) ResetResourceLogLevel(ctx context.Context, params *ResetResourc type ResetResourceLogLevelInput struct { // The identifier of the resource. For a Wireless Device, it is the wireless device - // ID. For a wireless gateway, it is the wireless gateway ID. + // id. For a wireless gateway, it is the wireless gateway id. // // This member is required. ResourceIdentifier *string - // The type of the resource, which can be WirelessDevice or WirelessGateway. + // The type of the resource, currently support WirelessDevice and WirelessGateway. // // This member is required. ResourceType *string diff --git a/service/iotwireless/api_op_SendDataToWirelessDevice.go b/service/iotwireless/api_op_SendDataToWirelessDevice.go index dec0db915ff..d913438dd04 100644 --- a/service/iotwireless/api_op_SendDataToWirelessDevice.go +++ b/service/iotwireless/api_op_SendDataToWirelessDevice.go @@ -34,7 +34,7 @@ type SendDataToWirelessDeviceInput struct { // This member is required. Id *string - // The binary to be sent to the end device, encoded in base64. + // The message payload to send. // // This member is required. PayloadData *string diff --git a/service/iotwireless/api_op_UpdateLogLevelsByResourceTypes.go b/service/iotwireless/api_op_UpdateLogLevelsByResourceTypes.go index 2501c9a1148..85c6721951a 100644 --- a/service/iotwireless/api_op_UpdateLogLevelsByResourceTypes.go +++ b/service/iotwireless/api_op_UpdateLogLevelsByResourceTypes.go @@ -11,9 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Set default log level, or log levels by resource types. This can be for wireless -// device log options or wireless gateways log options and is used to control the -// log messages that'll be displayed in CloudWatch. +// Set default log level, or log levels by resource types, could be for wireless +// device log options or wireless gateways log options. This is to control the log +// messages that will be displayed in CloudWatch. func (c *Client) UpdateLogLevelsByResourceTypes(ctx context.Context, params *UpdateLogLevelsByResourceTypesInput, optFns ...func(*Options)) (*UpdateLogLevelsByResourceTypesOutput, error) { if params == nil { params = &UpdateLogLevelsByResourceTypesInput{} diff --git a/service/iotwireless/deserializers.go b/service/iotwireless/deserializers.go index cd6e3b28825..ab21148d44e 100644 --- a/service/iotwireless/deserializers.go +++ b/service/iotwireless/deserializers.go @@ -10748,15 +10748,6 @@ func awsRestjson1_deserializeDocumentSidewalkDevice(v **types.SidewalkDevice, va for key, value := range shape { switch key { - case "AmazonId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AmazonId to be of type string, got %T instead", value) - } - sv.AmazonId = ptr.String(jtv) - } - case "DeviceCertificates": if err := awsRestjson1_deserializeDocumentDeviceCertificateList(&sv.DeviceCertificates, value); err != nil { return err diff --git a/service/iotwireless/go.mod b/service/iotwireless/go.mod index 57342c3218c..280a1ed9049 100644 --- a/service/iotwireless/go.mod +++ b/service/iotwireless/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotwireless/go.sum b/service/iotwireless/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/iotwireless/go.sum +++ b/service/iotwireless/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotwireless/types/enums.go b/service/iotwireless/types/enums.go index 09636a67f16..11612b54627 100644 --- a/service/iotwireless/types/enums.go +++ b/service/iotwireless/types/enums.go @@ -208,10 +208,9 @@ type WirelessDeviceIdType string // Enum values for WirelessDeviceIdType const ( - WirelessDeviceIdTypeWirelessDeviceId WirelessDeviceIdType = "WirelessDeviceId" - WirelessDeviceIdTypeDevEui WirelessDeviceIdType = "DevEui" - WirelessDeviceIdTypeThingName WirelessDeviceIdType = "ThingName" - WirelessDeviceIdTypeSidewalkManufacturingSn WirelessDeviceIdType = "SidewalkManufacturingSn" + WirelessDeviceIdTypeWirelessDeviceId WirelessDeviceIdType = "WirelessDeviceId" + WirelessDeviceIdTypeDevEui WirelessDeviceIdType = "DevEui" + WirelessDeviceIdTypeThingName WirelessDeviceIdType = "ThingName" ) // Values returns all known values for WirelessDeviceIdType. Note that this can be @@ -222,7 +221,6 @@ func (WirelessDeviceIdType) Values() []WirelessDeviceIdType { "WirelessDeviceId", "DevEui", "ThingName", - "SidewalkManufacturingSn", } } diff --git a/service/iotwireless/types/types.go b/service/iotwireless/types/types.go index 34ce5cd58da..4dceb4703b8 100644 --- a/service/iotwireless/types/types.go +++ b/service/iotwireless/types/types.go @@ -495,9 +495,6 @@ type SidewalkAccountInfoWithFingerprint struct { // Sidewalk device object. type SidewalkDevice struct { - // The Sidewalk Amazon ID. - AmazonId *string - // The sidewalk device certificates for Ed25519 and P256r1. DeviceCertificates []CertificateList @@ -549,7 +546,7 @@ type SidewalkListDevice struct { // Information about a Sidewalk router. type SidewalkSendDataToDevice struct { - // Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY. + // Sidewalk device message type. MessageType MessageType // The sequence number. @@ -613,10 +610,10 @@ type UpdateWirelessGatewayTaskEntry struct { noSmithyDocumentSerde } -// The log options for a wireless device event and can be used to set log levels -// for a specific wireless device event. For a LoRaWAN device, possible events for -// a log messsage are: Join, Rejoin, Downlink_Data, and Uplink_Data. For a Sidewalk -// device, possible events for a log message are Registration, Downlink_Data, and +// The log option for a wireless device event. Can be used to set log level for a +// specific wireless device event. For a LoRaWAN device, the possible events for a +// log messsage are: Join, Rejoin, Downlink_Data, Uplink_Data. For a Sidewalk +// device, the possible events for a log message are: Registration, Downlink_Data, // Uplink_Data. type WirelessDeviceEventLogOption struct { @@ -633,8 +630,8 @@ type WirelessDeviceEventLogOption struct { noSmithyDocumentSerde } -// The log options for wireless devices and can be used to set log levels for a -// specific type of wireless device. +// The log option for wireless devices. Can be used to set log level for a specific +// type of wireless device. type WirelessDeviceLogOption struct { // The log level for a log message. @@ -683,9 +680,9 @@ type WirelessDeviceStatistics struct { noSmithyDocumentSerde } -// The log options for a wireless gateway event and can be used to set log levels -// for a specific wireless gateway event. For a LoRaWAN gateway, possible events -// for a log message are CUPS_Request and Certificate. +// The log option for a wireless gateway event. Can be used to set log level for a +// specific wireless gateway event. For a LoRaWAN gateway, the possible events for +// a log message are: CUPS_Request, Certificate. type WirelessGatewayEventLogOption struct { // The event for a log message, if the log message is tied to a wireless gateway. @@ -701,7 +698,7 @@ type WirelessGatewayEventLogOption struct { noSmithyDocumentSerde } -// The log options for wireless gateways and can be used to set log levels for a +// The log option for wireless gateways. Can be used to set log level for a // specific type of wireless gateway. type WirelessGatewayLogOption struct { diff --git a/service/ivs/go.mod b/service/ivs/go.mod index ea40690d4d6..a912321af93 100644 --- a/service/ivs/go.mod +++ b/service/ivs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ivs/go.sum b/service/ivs/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/ivs/go.sum +++ b/service/ivs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kafka/go.mod b/service/kafka/go.mod index 8f3d755b54b..b9636710f7c 100644 --- a/service/kafka/go.mod +++ b/service/kafka/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kafka/go.sum b/service/kafka/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/kafka/go.sum +++ b/service/kafka/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kendra/api_op_CreateIndex.go b/service/kendra/api_op_CreateIndex.go index 3fced63c8be..bc891781601 100644 --- a/service/kendra/api_op_CreateIndex.go +++ b/service/kendra/api_op_CreateIndex.go @@ -59,9 +59,7 @@ type CreateIndexInput struct { // indexes intended for development, testing, or proof of concept. Use // ENTERPRISE_EDITION for your production databases. Once you set the edition for // an index, it can't be changed. The Edition parameter is optional. If you don't - // supply a value, the default is ENTERPRISE_EDITION. For more information on quota - // limits for enterprise and developer editions, see Quotas - // (https://docs.aws.amazon.com/kendra/latest/dg/quotas.html). + // supply a value, the default is ENTERPRISE_EDITION. Edition types.IndexEdition // The identifier of the KMScustomer managed key (CMK) to use to encrypt data diff --git a/service/kendra/api_op_SubmitFeedback.go b/service/kendra/api_op_SubmitFeedback.go index 7857713e2db..a78bef8a230 100644 --- a/service/kendra/api_op_SubmitFeedback.go +++ b/service/kendra/api_op_SubmitFeedback.go @@ -12,7 +12,7 @@ import ( ) // Enables you to provide feedback to Amazon Kendra to improve the performance of -// your index. +// the service. func (c *Client) SubmitFeedback(ctx context.Context, params *SubmitFeedbackInput, optFns ...func(*Options)) (*SubmitFeedbackOutput, error) { if params == nil { params = &SubmitFeedbackInput{} diff --git a/service/kendra/deserializers.go b/service/kendra/deserializers.go index c11e85d637f..e0cc8dad6e0 100644 --- a/service/kendra/deserializers.go +++ b/service/kendra/deserializers.go @@ -7188,11 +7188,6 @@ func awsAwsjson11_deserializeDocumentDataSourceConfiguration(v **types.DataSourc return err } - case "WorkDocsConfiguration": - if err := awsAwsjson11_deserializeDocumentWorkDocsConfiguration(&sv.WorkDocsConfiguration, value); err != nil { - return err - } - default: _, _ = key, value @@ -12525,79 +12520,6 @@ func awsAwsjson11_deserializeDocumentWebCrawlerConfiguration(v **types.WebCrawle return nil } -func awsAwsjson11_deserializeDocumentWorkDocsConfiguration(v **types.WorkDocsConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.WorkDocsConfiguration - if *v == nil { - sv = &types.WorkDocsConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CrawlComments": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.CrawlComments = jtv - } - - case "ExclusionPatterns": - if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.ExclusionPatterns, value); err != nil { - return err - } - - case "FieldMappings": - if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(&sv.FieldMappings, value); err != nil { - return err - } - - case "InclusionPatterns": - if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.InclusionPatterns, value); err != nil { - return err - } - - case "OrganizationId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OrganizationId to be of type string, got %T instead", value) - } - sv.OrganizationId = ptr.String(jtv) - } - - case "UseChangeLog": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.UseChangeLog = jtv - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsAwsjson11_deserializeOpDocumentBatchDeleteDocumentOutput(v **BatchDeleteDocumentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/kendra/go.mod b/service/kendra/go.mod index 3bb4e47ede2..288755aa9a9 100644 --- a/service/kendra/go.mod +++ b/service/kendra/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kendra/go.sum b/service/kendra/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/kendra/go.sum +++ b/service/kendra/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kendra/serializers.go b/service/kendra/serializers.go index 7e778673b0b..918ec5b23de 100644 --- a/service/kendra/serializers.go +++ b/service/kendra/serializers.go @@ -2746,13 +2746,6 @@ func awsAwsjson11_serializeDocumentDataSourceConfiguration(v *types.DataSourceCo } } - if v.WorkDocsConfiguration != nil { - ok := object.Key("WorkDocsConfiguration") - if err := awsAwsjson11_serializeDocumentWorkDocsConfiguration(v.WorkDocsConfiguration, ok); err != nil { - return err - } - } - return nil } @@ -4586,49 +4579,6 @@ func awsAwsjson11_serializeDocumentWebCrawlerConfiguration(v *types.WebCrawlerCo return nil } -func awsAwsjson11_serializeDocumentWorkDocsConfiguration(v *types.WorkDocsConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CrawlComments { - ok := object.Key("CrawlComments") - ok.Boolean(v.CrawlComments) - } - - if v.ExclusionPatterns != nil { - ok := object.Key("ExclusionPatterns") - if err := awsAwsjson11_serializeDocumentDataSourceInclusionsExclusionsStrings(v.ExclusionPatterns, ok); err != nil { - return err - } - } - - if v.FieldMappings != nil { - ok := object.Key("FieldMappings") - if err := awsAwsjson11_serializeDocumentDataSourceToIndexFieldMappingList(v.FieldMappings, ok); err != nil { - return err - } - } - - if v.InclusionPatterns != nil { - ok := object.Key("InclusionPatterns") - if err := awsAwsjson11_serializeDocumentDataSourceInclusionsExclusionsStrings(v.InclusionPatterns, ok); err != nil { - return err - } - } - - if v.OrganizationId != nil { - ok := object.Key("OrganizationId") - ok.String(*v.OrganizationId) - } - - if v.UseChangeLog { - ok := object.Key("UseChangeLog") - ok.Boolean(v.UseChangeLog) - } - - return nil -} - func awsAwsjson11_serializeOpDocumentBatchDeleteDocumentInput(v *BatchDeleteDocumentInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/kendra/types/enums.go b/service/kendra/types/enums.go index e086d54c57a..7dcb60243e3 100644 --- a/service/kendra/types/enums.go +++ b/service/kendra/types/enums.go @@ -278,7 +278,6 @@ const ( DataSourceTypeConfluence DataSourceType = "CONFLUENCE" DataSourceTypeGoogledrive DataSourceType = "GOOGLEDRIVE" DataSourceTypeWebcrawler DataSourceType = "WEBCRAWLER" - DataSourceTypeWorkdocs DataSourceType = "WORKDOCS" ) // Values returns all known values for DataSourceType. Note that this can be @@ -296,7 +295,6 @@ func (DataSourceType) Values() []DataSourceType { "CONFLUENCE", "GOOGLEDRIVE", "WEBCRAWLER", - "WORKDOCS", } } diff --git a/service/kendra/types/types.go b/service/kendra/types/types.go index 582772d90fa..ac19f4ea37b 100644 --- a/service/kendra/types/types.go +++ b/service/kendra/types/types.go @@ -69,9 +69,7 @@ type AdditionalResultAttributeValue struct { // // If you use more than 2 layers, you // receive a ValidationException exception with the message "AttributeFilter cannot -// have a depth of more than 2." If you use more than 10 attribute filters, you -// receive a ValidationException exception with the message "AttributeFilter cannot -// have a length of more than 10". +// have a depth of more than 2." type AttributeFilter struct { // Performs a logical AND operation on all supplied filters. @@ -207,21 +205,20 @@ type CapacityUnitsConfiguration struct { // The amount of extra query capacity for an index and GetQuerySuggestions // (https://docs.aws.amazon.com/kendra/latest/dg/API_GetQuerySuggestions.html) - // capacity. A single extra capacity unit for an index provides 0.1 queries per - // second or approximately 8,000 queries per day. GetQuerySuggestions capacity is - // five times the provisioned query capacity for an index, or the base capacity of - // 2.5 calls per second, whichever is higher. For example, the base capacity for an - // index is 0.1 queries per second, and GetQuerySuggestions capacity has a base of - // 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 - // queries per second for an index, the GetQuerySuggestions capacity is 2.5 calls - // per second (higher than five times 0.2 queries per second). + // capacity. A single extra capacity unit for an index provides 0.5 queries per + // second or approximately 40,000 queries per day. GetQuerySuggestions capacity is + // 5 times the provisioned query capacity for an index. For example, the base + // capacity for an index is 0.5 queries per second, so GetQuerySuggestions capacity + // is 2.5 calls per second. If adding another 0.5 queries per second to total 1 + // queries per second for an index, the GetQuerySuggestions capacity is 5 calls per + // second. // // This member is required. QueryCapacityUnits *int32 - // The amount of extra storage capacity for an index. A single capacity unit - // provides 30 GB of storage space or 100,000 documents, whichever is reached - // first. + // The amount of extra storage capacity for an index. A single capacity unit for an + // index provides 150 GB of storage space or 500,000 documents, whichever is + // reached first. // // This member is required. StorageCapacityUnits *int32 @@ -518,11 +515,11 @@ type ConnectionConfiguration struct { // This member is required. DatabasePort *int32 - // The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The + // The Amazon Resource Name (ARN) of credentials stored in AWS Secrets Manager. The // credentials should be a user/password pair. For more information, see Using a // Database Data Source // (https://docs.aws.amazon.com/kendra/latest/dg/data-source-database.html). For - // more information about Secrets Manager, see What Is Secrets Manager + // more information about AWS Secrets Manager, see What Is AWS Secrets Manager // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) in the // Secrets Manager user guide. // @@ -603,10 +600,6 @@ type DataSourceConfiguration struct { // Provides the configuration information required for Amazon Kendra web crawler. WebCrawlerConfiguration *WebCrawlerConfiguration - // Provides the configuration information to connect to WorkDocs as your data - // source. - WorkDocsConfiguration *WorkDocsConfiguration - noSmithyDocumentSerde } @@ -2065,12 +2058,12 @@ type ServiceNowServiceCatalogConfiguration struct { // source. type SharePointConfiguration struct { - // The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The - // credentials should be a user/password pair. If you use SharePoint Server, you + // The Amazon Resource Name (ARN) of credentials stored in AWS Secrets Manager. The + // credentials should be a user/password pair. If you use SharePoint Sever, you // also need to provide the sever domain name as part of the credentials. For more // information, see Using a Microsoft SharePoint Data Source // (https://docs.aws.amazon.com/kendra/latest/dg/data-source-sharepoint.html). For - // more information about Secrets Manager, see What Is Secrets Manager + // more information about AWS Secrets Manager, see What Is AWS Secrets Manager // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) in the // Secrets Manager user guide. // @@ -2501,60 +2494,6 @@ type WebCrawlerConfiguration struct { noSmithyDocumentSerde } -// Provides the configuration information to connect to Amazon WorkDocs as your -// data source. Amazon WorkDocs connector is available in Oregon, North Virginia, -// Sydney, Singapore and Ireland regions. -type WorkDocsConfiguration struct { - - // The identifier of the directory corresponding to your Amazon WorkDocs site - // repository. You can find the organization ID in the AWS Directory Service - // (https://console.aws.amazon.com/directoryservicev2/) by going to Active - // Directory, then Directories. Your Amazon WorkDocs site directory has an ID, - // which is the organization ID. You can also set up a new Amazon WorkDocs - // directory in the AWS Directory Service console and enable a Amazon WorkDocs site - // for the directory in the Amazon WorkDocs console. - // - // This member is required. - OrganizationId *string - - // TRUE to include comments on documents in your index. Including comments in your - // index means each comment is a document that can be searched on. The default is - // set to FALSE. - CrawlComments bool - - // A list of regular expression patterns to exclude certain files in your Amazon - // WorkDocs site repository. Files that match the patterns are excluded from the - // index. Files that don’t match the patterns are included in the index. If a file - // matches both an inclusion pattern and an exclusion pattern, the exclusion - // pattern takes precedence and the file isn’t included in the index. - ExclusionPatterns []string - - // A list of DataSourceToIndexFieldMapping objects that map Amazon WorkDocs field - // names to custom index field names in Amazon Kendra. You must first create the - // custom index fields using the UpdateIndex operation before you map to Amazon - // WorkDocs fields. For more information, see Mapping Data Source Fields - // (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). The Amazon - // WorkDocs data source field names need to exist in your Amazon WorkDocs custom - // metadata. - FieldMappings []DataSourceToIndexFieldMapping - - // A list of regular expression patterns to include certain files in your Amazon - // WorkDocs site repository. Files that match the patterns are included in the - // index. Files that don't match the patterns are excluded from the index. If a - // file matches both an inclusion pattern and an exclusion pattern, the exclusion - // pattern takes precedence and the file isn’t included in the index. - InclusionPatterns []string - - // TRUE to use the change logs to update documents in your index instead of - // scanning all documents. If you are syncing your Amazon WorkDocs data source with - // your index for the first time, all documents are scanned. After your first sync, - // you can use the change logs to update your documents in your index for future - // syncs. The default is set to FALSE. - UseChangeLog bool - - noSmithyDocumentSerde -} - type noSmithyDocumentSerde = smithydocument.NoSerde // UnknownUnionMember is returned when a union member is returned over the wire, diff --git a/service/kendra/validators.go b/service/kendra/validators.go index 1f7538bd125..edd28d1120c 100644 --- a/service/kendra/validators.go +++ b/service/kendra/validators.go @@ -1388,11 +1388,6 @@ func validateDataSourceConfiguration(v *types.DataSourceConfiguration) error { invalidParams.AddNested("WebCrawlerConfiguration", err.(smithy.InvalidParamsError)) } } - if v.WorkDocsConfiguration != nil { - if err := validateWorkDocsConfiguration(v.WorkDocsConfiguration); err != nil { - invalidParams.AddNested("WorkDocsConfiguration", err.(smithy.InvalidParamsError)) - } - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2545,26 +2540,6 @@ func validateWebCrawlerConfiguration(v *types.WebCrawlerConfiguration) error { } } -func validateWorkDocsConfiguration(v *types.WorkDocsConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "WorkDocsConfiguration"} - if v.OrganizationId == nil { - invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) - } - if v.FieldMappings != nil { - if err := validateDataSourceToIndexFieldMappingList(v.FieldMappings); err != nil { - invalidParams.AddNested("FieldMappings", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpBatchDeleteDocumentInput(v *BatchDeleteDocumentInput) error { if v == nil { return nil diff --git a/service/kinesis/go.mod b/service/kinesis/go.mod index 09753a346db..477b15dc3cd 100644 --- a/service/kinesis/go.mod +++ b/service/kinesis/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/kinesis/go.sum +++ b/service/kinesis/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kinesisanalytics/go.mod b/service/kinesisanalytics/go.mod index 3efd16f9e98..ba30e2e2fad 100644 --- a/service/kinesisanalytics/go.mod +++ b/service/kinesisanalytics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisanalytics/go.sum b/service/kinesisanalytics/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/kinesisanalytics/go.sum +++ b/service/kinesisanalytics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisanalyticsv2/go.mod b/service/kinesisanalyticsv2/go.mod index acf972993b3..2b3ee84b2d9 100644 --- a/service/kinesisanalyticsv2/go.mod +++ b/service/kinesisanalyticsv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisanalyticsv2/go.sum b/service/kinesisanalyticsv2/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/kinesisanalyticsv2/go.sum +++ b/service/kinesisanalyticsv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisvideo/go.mod b/service/kinesisvideo/go.mod index 621d4ce7502..8b21ebda2a6 100644 --- a/service/kinesisvideo/go.mod +++ b/service/kinesisvideo/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideo/go.sum b/service/kinesisvideo/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/kinesisvideo/go.sum +++ b/service/kinesisvideo/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisvideoarchivedmedia/go.mod b/service/kinesisvideoarchivedmedia/go.mod index 02dcf6bf802..79ea179db40 100644 --- a/service/kinesisvideoarchivedmedia/go.mod +++ b/service/kinesisvideoarchivedmedia/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideoarchivedmedia/go.sum b/service/kinesisvideoarchivedmedia/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/kinesisvideoarchivedmedia/go.sum +++ b/service/kinesisvideoarchivedmedia/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisvideomedia/go.mod b/service/kinesisvideomedia/go.mod index 5f23f10536a..6290f9b1d6b 100644 --- a/service/kinesisvideomedia/go.mod +++ b/service/kinesisvideomedia/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideomedia/go.sum b/service/kinesisvideomedia/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/kinesisvideomedia/go.sum +++ b/service/kinesisvideomedia/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisvideosignaling/go.mod b/service/kinesisvideosignaling/go.mod index 4ad6b74a531..8ae62581d2b 100644 --- a/service/kinesisvideosignaling/go.mod +++ b/service/kinesisvideosignaling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideosignaling/go.sum b/service/kinesisvideosignaling/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/kinesisvideosignaling/go.sum +++ b/service/kinesisvideosignaling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kms/go.mod b/service/kms/go.mod index c4240346499..65ae73c3532 100644 --- a/service/kms/go.mod +++ b/service/kms/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kms/go.sum b/service/kms/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/kms/go.sum +++ b/service/kms/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lakeformation/go.mod b/service/lakeformation/go.mod index 370d3c0decb..bc85f5dc0d1 100644 --- a/service/lakeformation/go.mod +++ b/service/lakeformation/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lakeformation/go.sum b/service/lakeformation/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/lakeformation/go.sum +++ b/service/lakeformation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lambda/api_op_CreateEventSourceMapping.go b/service/lambda/api_op_CreateEventSourceMapping.go index f515f5de69a..1545ed9ef82 100644 --- a/service/lambda/api_op_CreateEventSourceMapping.go +++ b/service/lambda/api_op_CreateEventSourceMapping.go @@ -169,7 +169,7 @@ type CreateEventSourceMappingInput struct { // The Self-Managed Apache Kafka cluster to send records. SelfManagedEventSource *types.SelfManagedEventSource - // An array of authentication protocols or VPC components required to secure your + // An array of the authentication protocol, or the VPC components to secure your // event source. SourceAccessConfigurations []types.SourceAccessConfiguration @@ -191,8 +191,8 @@ type CreateEventSourceMappingInput struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and a Lambda function. For -// details, see CreateEventSourceMapping. +// A mapping between an Amazon Web Services resource and an Lambda function. See +// CreateEventSourceMapping for details. type CreateEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. @@ -216,15 +216,14 @@ type CreateEventSourceMappingOutput struct { // mapping. FunctionResponseTypes []types.FunctionResponseType - // The date that the event source mapping was last updated or that its state - // changed. + // The date that the event source mapping was last updated, or its state changed. LastModified *time.Time - // The result of the last Lambda invocation of your function. + // The result of the last Lambda invocation of your Lambda function. LastProcessingResult *string - // (Streams and Amazon SQS standard queues) The maximum amount of time to gather - // records before invoking the function, in seconds. The default value is zero. + // (Streams and SQS standard queues) The maximum amount of time to gather records + // before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -238,23 +237,23 @@ type CreateEventSourceMappingOutput struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process concurrently from each shard. + // (Streams only) The number of batches to process from each shard concurrently. // The default value is 1. ParallelizationFactor *int32 - // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The self-managed Apache Kafka cluster for your event source. + // The Self-Managed Apache Kafka cluster for your event source. SelfManagedEventSource *types.SelfManagedEventSource - // An array of the authentication protocol, VPC components, or virtual host to - // secure and define your event source. + // An array of the authentication protocol, or the VPC components to secure your + // event source. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is - // supported only for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only + // supported for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -264,15 +263,15 @@ type CreateEventSourceMappingOutput struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether a user or Lambda made the last change to the event source - // mapping. + // Indicates whether the last change to the event source mapping was made by a + // user, or by the Lambda service. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // 1–900 seconds. + // between 1 second up to 900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. diff --git a/service/lambda/api_op_DeleteEventSourceMapping.go b/service/lambda/api_op_DeleteEventSourceMapping.go index 5dbedb77753..1f615ea82c7 100644 --- a/service/lambda/api_op_DeleteEventSourceMapping.go +++ b/service/lambda/api_op_DeleteEventSourceMapping.go @@ -42,8 +42,8 @@ type DeleteEventSourceMappingInput struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and a Lambda function. For -// details, see CreateEventSourceMapping. +// A mapping between an Amazon Web Services resource and an Lambda function. See +// CreateEventSourceMapping for details. type DeleteEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. @@ -67,15 +67,14 @@ type DeleteEventSourceMappingOutput struct { // mapping. FunctionResponseTypes []types.FunctionResponseType - // The date that the event source mapping was last updated or that its state - // changed. + // The date that the event source mapping was last updated, or its state changed. LastModified *time.Time - // The result of the last Lambda invocation of your function. + // The result of the last Lambda invocation of your Lambda function. LastProcessingResult *string - // (Streams and Amazon SQS standard queues) The maximum amount of time to gather - // records before invoking the function, in seconds. The default value is zero. + // (Streams and SQS standard queues) The maximum amount of time to gather records + // before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -89,23 +88,23 @@ type DeleteEventSourceMappingOutput struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process concurrently from each shard. + // (Streams only) The number of batches to process from each shard concurrently. // The default value is 1. ParallelizationFactor *int32 - // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The self-managed Apache Kafka cluster for your event source. + // The Self-Managed Apache Kafka cluster for your event source. SelfManagedEventSource *types.SelfManagedEventSource - // An array of the authentication protocol, VPC components, or virtual host to - // secure and define your event source. + // An array of the authentication protocol, or the VPC components to secure your + // event source. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is - // supported only for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only + // supported for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -115,15 +114,15 @@ type DeleteEventSourceMappingOutput struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether a user or Lambda made the last change to the event source - // mapping. + // Indicates whether the last change to the event source mapping was made by a + // user, or by the Lambda service. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // 1–900 seconds. + // between 1 second up to 900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. diff --git a/service/lambda/api_op_GetEventSourceMapping.go b/service/lambda/api_op_GetEventSourceMapping.go index 0f771aa2ba7..a1b5b640f02 100644 --- a/service/lambda/api_op_GetEventSourceMapping.go +++ b/service/lambda/api_op_GetEventSourceMapping.go @@ -39,8 +39,8 @@ type GetEventSourceMappingInput struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and a Lambda function. For -// details, see CreateEventSourceMapping. +// A mapping between an Amazon Web Services resource and an Lambda function. See +// CreateEventSourceMapping for details. type GetEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. @@ -64,15 +64,14 @@ type GetEventSourceMappingOutput struct { // mapping. FunctionResponseTypes []types.FunctionResponseType - // The date that the event source mapping was last updated or that its state - // changed. + // The date that the event source mapping was last updated, or its state changed. LastModified *time.Time - // The result of the last Lambda invocation of your function. + // The result of the last Lambda invocation of your Lambda function. LastProcessingResult *string - // (Streams and Amazon SQS standard queues) The maximum amount of time to gather - // records before invoking the function, in seconds. The default value is zero. + // (Streams and SQS standard queues) The maximum amount of time to gather records + // before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -86,23 +85,23 @@ type GetEventSourceMappingOutput struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process concurrently from each shard. + // (Streams only) The number of batches to process from each shard concurrently. // The default value is 1. ParallelizationFactor *int32 - // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The self-managed Apache Kafka cluster for your event source. + // The Self-Managed Apache Kafka cluster for your event source. SelfManagedEventSource *types.SelfManagedEventSource - // An array of the authentication protocol, VPC components, or virtual host to - // secure and define your event source. + // An array of the authentication protocol, or the VPC components to secure your + // event source. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is - // supported only for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only + // supported for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -112,15 +111,15 @@ type GetEventSourceMappingOutput struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether a user or Lambda made the last change to the event source - // mapping. + // Indicates whether the last change to the event source mapping was made by a + // user, or by the Lambda service. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // 1–900 seconds. + // between 1 second up to 900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. diff --git a/service/lambda/api_op_ListEventSourceMappings.go b/service/lambda/api_op_ListEventSourceMappings.go index 3ba1bcd7646..f31bad5aa2c 100644 --- a/service/lambda/api_op_ListEventSourceMappings.go +++ b/service/lambda/api_op_ListEventSourceMappings.go @@ -67,9 +67,7 @@ type ListEventSourceMappingsInput struct { // A pagination token returned by a previous call. Marker *string - // The maximum number of event source mappings to return. Note that - // ListEventSourceMappings returns a maximum of 100 items in each response, even if - // you set the number higher. + // The maximum number of event source mappings to return. MaxItems *int32 noSmithyDocumentSerde @@ -161,9 +159,7 @@ var _ ListEventSourceMappingsAPIClient = (*Client)(nil) // ListEventSourceMappingsPaginatorOptions is the paginator options for // ListEventSourceMappings type ListEventSourceMappingsPaginatorOptions struct { - // The maximum number of event source mappings to return. Note that - // ListEventSourceMappings returns a maximum of 100 items in each response, even if - // you set the number higher. + // The maximum number of event source mappings to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/lambda/api_op_UpdateEventSourceMapping.go b/service/lambda/api_op_UpdateEventSourceMapping.go index 778c51d96a3..ef403f20b55 100644 --- a/service/lambda/api_op_UpdateEventSourceMapping.go +++ b/service/lambda/api_op_UpdateEventSourceMapping.go @@ -124,7 +124,7 @@ type UpdateEventSourceMappingInput struct { // (Streams only) The number of batches to process from each shard concurrently. ParallelizationFactor *int32 - // An array of authentication protocols or VPC components required to secure your + // An array of the authentication protocol, or the VPC components to secure your // event source. SourceAccessConfigurations []types.SourceAccessConfiguration @@ -135,8 +135,8 @@ type UpdateEventSourceMappingInput struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and a Lambda function. For -// details, see CreateEventSourceMapping. +// A mapping between an Amazon Web Services resource and an Lambda function. See +// CreateEventSourceMapping for details. type UpdateEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. @@ -160,15 +160,14 @@ type UpdateEventSourceMappingOutput struct { // mapping. FunctionResponseTypes []types.FunctionResponseType - // The date that the event source mapping was last updated or that its state - // changed. + // The date that the event source mapping was last updated, or its state changed. LastModified *time.Time - // The result of the last Lambda invocation of your function. + // The result of the last Lambda invocation of your Lambda function. LastProcessingResult *string - // (Streams and Amazon SQS standard queues) The maximum amount of time to gather - // records before invoking the function, in seconds. The default value is zero. + // (Streams and SQS standard queues) The maximum amount of time to gather records + // before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -182,23 +181,23 @@ type UpdateEventSourceMappingOutput struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process concurrently from each shard. + // (Streams only) The number of batches to process from each shard concurrently. // The default value is 1. ParallelizationFactor *int32 - // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The self-managed Apache Kafka cluster for your event source. + // The Self-Managed Apache Kafka cluster for your event source. SelfManagedEventSource *types.SelfManagedEventSource - // An array of the authentication protocol, VPC components, or virtual host to - // secure and define your event source. + // An array of the authentication protocol, or the VPC components to secure your + // event source. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is - // supported only for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only + // supported for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -208,15 +207,15 @@ type UpdateEventSourceMappingOutput struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether a user or Lambda made the last change to the event source - // mapping. + // Indicates whether the last change to the event source mapping was made by a + // user, or by the Lambda service. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // 1–900 seconds. + // between 1 second up to 900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. diff --git a/service/lambda/deserializers.go b/service/lambda/deserializers.go index 42ba87684e2..53127d42ae4 100644 --- a/service/lambda/deserializers.go +++ b/service/lambda/deserializers.go @@ -2458,9 +2458,6 @@ func awsRestjson1_deserializeOpErrorDeleteFunctionEventInvokeConfig(response *sm case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceConflictException", errorCode): - return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -8862,9 +8859,6 @@ func awsRestjson1_deserializeOpErrorPutFunctionEventInvokeConfig(response *smith case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceConflictException", errorCode): - return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -11286,9 +11280,6 @@ func awsRestjson1_deserializeOpErrorUpdateFunctionEventInvokeConfig(response *sm case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceConflictException", errorCode): - return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) diff --git a/service/lambda/go.mod b/service/lambda/go.mod index 7bddcde9fef..4478b0f9093 100644 --- a/service/lambda/go.mod +++ b/service/lambda/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lambda/go.sum b/service/lambda/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/lambda/go.sum +++ b/service/lambda/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/lambda/types/types.go b/service/lambda/types/types.go index 227dbd38da2..c20acd38278 100644 --- a/service/lambda/types/types.go +++ b/service/lambda/types/types.go @@ -221,8 +221,8 @@ type EnvironmentResponse struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and a Lambda function. For -// details, see CreateEventSourceMapping. +// A mapping between an Amazon Web Services resource and an Lambda function. See +// CreateEventSourceMapping for details. type EventSourceMappingConfiguration struct { // The maximum number of items to retrieve in a single batch. @@ -246,15 +246,14 @@ type EventSourceMappingConfiguration struct { // mapping. FunctionResponseTypes []FunctionResponseType - // The date that the event source mapping was last updated or that its state - // changed. + // The date that the event source mapping was last updated, or its state changed. LastModified *time.Time - // The result of the last Lambda invocation of your function. + // The result of the last Lambda invocation of your Lambda function. LastProcessingResult *string - // (Streams and Amazon SQS standard queues) The maximum amount of time to gather - // records before invoking the function, in seconds. The default value is zero. + // (Streams and SQS standard queues) The maximum amount of time to gather records + // before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -268,23 +267,23 @@ type EventSourceMappingConfiguration struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process concurrently from each shard. + // (Streams only) The number of batches to process from each shard concurrently. // The default value is 1. ParallelizationFactor *int32 - // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The self-managed Apache Kafka cluster for your event source. + // The Self-Managed Apache Kafka cluster for your event source. SelfManagedEventSource *SelfManagedEventSource - // An array of the authentication protocol, VPC components, or virtual host to - // secure and define your event source. + // An array of the authentication protocol, or the VPC components to secure your + // event source. SourceAccessConfigurations []SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is - // supported only for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only + // supported for Amazon Kinesis streams. StartingPosition EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -294,15 +293,15 @@ type EventSourceMappingConfiguration struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether a user or Lambda made the last change to the event source - // mapping. + // Indicates whether the last change to the event source mapping was made by a + // user, or by the Lambda service. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // 1–900 seconds. + // between 1 second up to 900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. @@ -709,7 +708,7 @@ type ProvisionedConcurrencyConfigListItem struct { noSmithyDocumentSerde } -// The self-managed Apache Kafka cluster for your event source. +// The Self-Managed Apache Kafka cluster for your event source. type SelfManagedEventSource struct { // The list of bootstrap servers for your Kafka brokers in the following format: @@ -719,39 +718,34 @@ type SelfManagedEventSource struct { noSmithyDocumentSerde } -// To secure and define access to your event source, you can specify the -// authentication protocol, VPC components, or virtual host. +// You can specify the authentication protocol, or the VPC components to secure +// access to your event source. type SourceAccessConfiguration struct { - // The type of authentication protocol, VPC components, or virtual host for your - // event source. For example: "Type":"SASL_SCRAM_512_AUTH". + // The type of authentication protocol or the VPC components for your event source. + // For example: "Type":"SASL_SCRAM_512_AUTH". // - // * BASIC_AUTH - (Amazon - // MQ) The Secrets Manager secret that stores your broker credentials. + // * BASIC_AUTH - (MQ) The Secrets + // Manager secret that stores your broker credentials. // - // * - // BASIC_AUTH - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret - // key used for SASL/PLAIN authentication of your Apache Kafka brokers. + // * VPC_SUBNET - The subnets + // associated with your VPC. Lambda connects to these subnets to fetch data from + // your Self-Managed Apache Kafka cluster. // - // * - // VPC_SUBNET - The subnets associated with your VPC. Lambda connects to these - // subnets to fetch data from your self-managed Apache Kafka cluster. + // * VPC_SECURITY_GROUP - The VPC security + // group used to manage access to your Self-Managed Apache Kafka brokers. // // * - // VPC_SECURITY_GROUP - The VPC security group used to manage access to your - // self-managed Apache Kafka brokers. + // SASL_SCRAM_256_AUTH - The Secrets Manager ARN of your secret key used for SASL + // SCRAM-256 authentication of your Self-Managed Apache Kafka brokers. // - // * SASL_SCRAM_256_AUTH - The Secrets Manager - // ARN of your secret key used for SASL SCRAM-256 authentication of your - // self-managed Apache Kafka brokers. - // - // * SASL_SCRAM_512_AUTH - The Secrets Manager - // ARN of your secret key used for SASL SCRAM-512 authentication of your - // self-managed Apache Kafka brokers. + // * + // SASL_SCRAM_512_AUTH - The Secrets Manager ARN of your secret key used for SASL + // SCRAM-512 authentication of your Self-Managed Apache Kafka brokers. // - // * VIRTUAL_HOST - (Amazon MQ) The name of the - // virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the - // event source. + // * + // VIRTUAL_HOST - The name of the virtual host in your RabbitMQ broker. Lambda will + // use this host as the event source. Type SourceAccessType // The value for your chosen configuration in Type. For example: "URI": diff --git a/service/lexmodelbuildingservice/go.mod b/service/lexmodelbuildingservice/go.mod index a56ac15a796..c553112e52e 100644 --- a/service/lexmodelbuildingservice/go.mod +++ b/service/lexmodelbuildingservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexmodelbuildingservice/go.sum b/service/lexmodelbuildingservice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/lexmodelbuildingservice/go.sum +++ b/service/lexmodelbuildingservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lexmodelbuildingservice/types/enums.go b/service/lexmodelbuildingservice/types/enums.go index ac4b992e035..dc244876560 100644 --- a/service/lexmodelbuildingservice/types/enums.go +++ b/service/lexmodelbuildingservice/types/enums.go @@ -165,7 +165,6 @@ const ( LocaleDeDe Locale = "de-DE" LocaleEnAu Locale = "en-AU" LocaleEnGb Locale = "en-GB" - LocaleEnIn Locale = "en-IN" LocaleEnUs Locale = "en-US" LocaleEs419 Locale = "es-419" LocaleEsEs Locale = "es-ES" @@ -184,7 +183,6 @@ func (Locale) Values() []Locale { "de-DE", "en-AU", "en-GB", - "en-IN", "en-US", "es-419", "es-ES", diff --git a/service/lexmodelsv2/api_op_DescribeBot.go b/service/lexmodelsv2/api_op_DescribeBot.go index 1fc3f8522b3..13055d9d9cd 100644 --- a/service/lexmodelsv2/api_op_DescribeBot.go +++ b/service/lexmodelsv2/api_op_DescribeBot.go @@ -4,15 +4,11 @@ package lexmodelsv2 import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" "time" ) @@ -143,215 +139,6 @@ func (c *Client) addOperationDescribeBotMiddlewares(stack *middleware.Stack, opt return nil } -// DescribeBotAPIClient is a client that implements the DescribeBot operation. -type DescribeBotAPIClient interface { - DescribeBot(context.Context, *DescribeBotInput, ...func(*Options)) (*DescribeBotOutput, error) -} - -var _ DescribeBotAPIClient = (*Client)(nil) - -// BotAvailableWaiterOptions are waiter options for BotAvailableWaiter -type BotAvailableWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // BotAvailableWaiter will use default minimum delay of 10 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, BotAvailableWaiter will use default max delay of 120 seconds. Note that - // MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeBotInput, *DescribeBotOutput, error) (bool, error) -} - -// BotAvailableWaiter defines the waiters for BotAvailable -type BotAvailableWaiter struct { - client DescribeBotAPIClient - - options BotAvailableWaiterOptions -} - -// NewBotAvailableWaiter constructs a BotAvailableWaiter. -func NewBotAvailableWaiter(client DescribeBotAPIClient, optFns ...func(*BotAvailableWaiterOptions)) *BotAvailableWaiter { - options := BotAvailableWaiterOptions{} - options.MinDelay = 10 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = botAvailableStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &BotAvailableWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for BotAvailable waiter. The maxWaitDur is the -// maximum wait duration the waiter will wait. The maxWaitDur is required and must -// be greater than zero. -func (w *BotAvailableWaiter) Wait(ctx context.Context, params *DescribeBotInput, maxWaitDur time.Duration, optFns ...func(*BotAvailableWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeBot(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for BotAvailable waiter") -} - -func botAvailableStateRetryable(ctx context.Context, input *DescribeBotInput, output *DescribeBotOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("botStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Available" - value, ok := pathValue.(types.BotStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("botStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Deleting" - value, ok := pathValue.(types.BotStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("botStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Failed" - value, ok := pathValue.(types.BotStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("botStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Inactive" - value, ok := pathValue.(types.BotStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeBot(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeBotAlias.go b/service/lexmodelsv2/api_op_DescribeBotAlias.go index cc39d071074..cc642145967 100644 --- a/service/lexmodelsv2/api_op_DescribeBotAlias.go +++ b/service/lexmodelsv2/api_op_DescribeBotAlias.go @@ -4,15 +4,11 @@ package lexmodelsv2 import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" "time" ) @@ -158,199 +154,6 @@ func (c *Client) addOperationDescribeBotAliasMiddlewares(stack *middleware.Stack return nil } -// DescribeBotAliasAPIClient is a client that implements the DescribeBotAlias -// operation. -type DescribeBotAliasAPIClient interface { - DescribeBotAlias(context.Context, *DescribeBotAliasInput, ...func(*Options)) (*DescribeBotAliasOutput, error) -} - -var _ DescribeBotAliasAPIClient = (*Client)(nil) - -// BotAliasAvailableWaiterOptions are waiter options for BotAliasAvailableWaiter -type BotAliasAvailableWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // BotAliasAvailableWaiter will use default minimum delay of 10 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, BotAliasAvailableWaiter will use default max delay of 120 seconds. Note - // that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeBotAliasInput, *DescribeBotAliasOutput, error) (bool, error) -} - -// BotAliasAvailableWaiter defines the waiters for BotAliasAvailable -type BotAliasAvailableWaiter struct { - client DescribeBotAliasAPIClient - - options BotAliasAvailableWaiterOptions -} - -// NewBotAliasAvailableWaiter constructs a BotAliasAvailableWaiter. -func NewBotAliasAvailableWaiter(client DescribeBotAliasAPIClient, optFns ...func(*BotAliasAvailableWaiterOptions)) *BotAliasAvailableWaiter { - options := BotAliasAvailableWaiterOptions{} - options.MinDelay = 10 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = botAliasAvailableStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &BotAliasAvailableWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for BotAliasAvailable waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *BotAliasAvailableWaiter) Wait(ctx context.Context, params *DescribeBotAliasInput, maxWaitDur time.Duration, optFns ...func(*BotAliasAvailableWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeBotAlias(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for BotAliasAvailable waiter") -} - -func botAliasAvailableStateRetryable(ctx context.Context, input *DescribeBotAliasInput, output *DescribeBotAliasOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("botAliasStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Available" - value, ok := pathValue.(types.BotAliasStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotAliasStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("botAliasStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Failed" - value, ok := pathValue.(types.BotAliasStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotAliasStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("botAliasStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Deleting" - value, ok := pathValue.(types.BotAliasStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotAliasStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeBotAlias(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeBotLocale.go b/service/lexmodelsv2/api_op_DescribeBotLocale.go index 39f56ad5f81..bf34b3b606f 100644 --- a/service/lexmodelsv2/api_op_DescribeBotLocale.go +++ b/service/lexmodelsv2/api_op_DescribeBotLocale.go @@ -4,15 +4,11 @@ package lexmodelsv2 import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" "time" ) @@ -175,659 +171,6 @@ func (c *Client) addOperationDescribeBotLocaleMiddlewares(stack *middleware.Stac return nil } -// DescribeBotLocaleAPIClient is a client that implements the DescribeBotLocale -// operation. -type DescribeBotLocaleAPIClient interface { - DescribeBotLocale(context.Context, *DescribeBotLocaleInput, ...func(*Options)) (*DescribeBotLocaleOutput, error) -} - -var _ DescribeBotLocaleAPIClient = (*Client)(nil) - -// BotLocaleBuiltWaiterOptions are waiter options for BotLocaleBuiltWaiter -type BotLocaleBuiltWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // BotLocaleBuiltWaiter will use default minimum delay of 10 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, BotLocaleBuiltWaiter will use default max delay of 120 seconds. Note - // that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeBotLocaleInput, *DescribeBotLocaleOutput, error) (bool, error) -} - -// BotLocaleBuiltWaiter defines the waiters for BotLocaleBuilt -type BotLocaleBuiltWaiter struct { - client DescribeBotLocaleAPIClient - - options BotLocaleBuiltWaiterOptions -} - -// NewBotLocaleBuiltWaiter constructs a BotLocaleBuiltWaiter. -func NewBotLocaleBuiltWaiter(client DescribeBotLocaleAPIClient, optFns ...func(*BotLocaleBuiltWaiterOptions)) *BotLocaleBuiltWaiter { - options := BotLocaleBuiltWaiterOptions{} - options.MinDelay = 10 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = botLocaleBuiltStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &BotLocaleBuiltWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for BotLocaleBuilt waiter. The maxWaitDur is the -// maximum wait duration the waiter will wait. The maxWaitDur is required and must -// be greater than zero. -func (w *BotLocaleBuiltWaiter) Wait(ctx context.Context, params *DescribeBotLocaleInput, maxWaitDur time.Duration, optFns ...func(*BotLocaleBuiltWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeBotLocale(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for BotLocaleBuilt waiter") -} - -func botLocaleBuiltStateRetryable(ctx context.Context, input *DescribeBotLocaleInput, output *DescribeBotLocaleOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Built" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Deleting" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Failed" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "NotBuilt" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - -// BotLocaleCreatedWaiterOptions are waiter options for BotLocaleCreatedWaiter -type BotLocaleCreatedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // BotLocaleCreatedWaiter will use default minimum delay of 10 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, BotLocaleCreatedWaiter will use default max delay of 120 seconds. Note - // that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeBotLocaleInput, *DescribeBotLocaleOutput, error) (bool, error) -} - -// BotLocaleCreatedWaiter defines the waiters for BotLocaleCreated -type BotLocaleCreatedWaiter struct { - client DescribeBotLocaleAPIClient - - options BotLocaleCreatedWaiterOptions -} - -// NewBotLocaleCreatedWaiter constructs a BotLocaleCreatedWaiter. -func NewBotLocaleCreatedWaiter(client DescribeBotLocaleAPIClient, optFns ...func(*BotLocaleCreatedWaiterOptions)) *BotLocaleCreatedWaiter { - options := BotLocaleCreatedWaiterOptions{} - options.MinDelay = 10 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = botLocaleCreatedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &BotLocaleCreatedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for BotLocaleCreated waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *BotLocaleCreatedWaiter) Wait(ctx context.Context, params *DescribeBotLocaleInput, maxWaitDur time.Duration, optFns ...func(*BotLocaleCreatedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeBotLocale(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for BotLocaleCreated waiter") -} - -func botLocaleCreatedStateRetryable(ctx context.Context, input *DescribeBotLocaleInput, output *DescribeBotLocaleOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Built" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "ReadyExpressTesting" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "NotBuilt" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Deleting" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Failed" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - -// BotLocaleExpressTestingAvailableWaiterOptions are waiter options for -// BotLocaleExpressTestingAvailableWaiter -type BotLocaleExpressTestingAvailableWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // BotLocaleExpressTestingAvailableWaiter will use default minimum delay of 10 - // seconds. Note that MinDelay must resolve to a value lesser than or equal to the - // MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, BotLocaleExpressTestingAvailableWaiter will use default max delay of - // 120 seconds. Note that MaxDelay must resolve to value greater than or equal to - // the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeBotLocaleInput, *DescribeBotLocaleOutput, error) (bool, error) -} - -// BotLocaleExpressTestingAvailableWaiter defines the waiters for -// BotLocaleExpressTestingAvailable -type BotLocaleExpressTestingAvailableWaiter struct { - client DescribeBotLocaleAPIClient - - options BotLocaleExpressTestingAvailableWaiterOptions -} - -// NewBotLocaleExpressTestingAvailableWaiter constructs a -// BotLocaleExpressTestingAvailableWaiter. -func NewBotLocaleExpressTestingAvailableWaiter(client DescribeBotLocaleAPIClient, optFns ...func(*BotLocaleExpressTestingAvailableWaiterOptions)) *BotLocaleExpressTestingAvailableWaiter { - options := BotLocaleExpressTestingAvailableWaiterOptions{} - options.MinDelay = 10 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = botLocaleExpressTestingAvailableStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &BotLocaleExpressTestingAvailableWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for BotLocaleExpressTestingAvailable waiter. The -// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is -// required and must be greater than zero. -func (w *BotLocaleExpressTestingAvailableWaiter) Wait(ctx context.Context, params *DescribeBotLocaleInput, maxWaitDur time.Duration, optFns ...func(*BotLocaleExpressTestingAvailableWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeBotLocale(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for BotLocaleExpressTestingAvailable waiter") -} - -func botLocaleExpressTestingAvailableStateRetryable(ctx context.Context, input *DescribeBotLocaleInput, output *DescribeBotLocaleOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Built" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "ReadyExpressTesting" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Deleting" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Failed" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("botLocaleStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "NotBuilt" - value, ok := pathValue.(types.BotLocaleStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeBotLocale(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeBotVersion.go b/service/lexmodelsv2/api_op_DescribeBotVersion.go index c97cc57a242..2c8c3a39a4f 100644 --- a/service/lexmodelsv2/api_op_DescribeBotVersion.go +++ b/service/lexmodelsv2/api_op_DescribeBotVersion.go @@ -4,16 +4,11 @@ package lexmodelsv2 import ( "context" - "errors" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" "time" ) @@ -153,207 +148,6 @@ func (c *Client) addOperationDescribeBotVersionMiddlewares(stack *middleware.Sta return nil } -// DescribeBotVersionAPIClient is a client that implements the DescribeBotVersion -// operation. -type DescribeBotVersionAPIClient interface { - DescribeBotVersion(context.Context, *DescribeBotVersionInput, ...func(*Options)) (*DescribeBotVersionOutput, error) -} - -var _ DescribeBotVersionAPIClient = (*Client)(nil) - -// BotVersionAvailableWaiterOptions are waiter options for -// BotVersionAvailableWaiter -type BotVersionAvailableWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // BotVersionAvailableWaiter will use default minimum delay of 10 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, BotVersionAvailableWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeBotVersionInput, *DescribeBotVersionOutput, error) (bool, error) -} - -// BotVersionAvailableWaiter defines the waiters for BotVersionAvailable -type BotVersionAvailableWaiter struct { - client DescribeBotVersionAPIClient - - options BotVersionAvailableWaiterOptions -} - -// NewBotVersionAvailableWaiter constructs a BotVersionAvailableWaiter. -func NewBotVersionAvailableWaiter(client DescribeBotVersionAPIClient, optFns ...func(*BotVersionAvailableWaiterOptions)) *BotVersionAvailableWaiter { - options := BotVersionAvailableWaiterOptions{} - options.MinDelay = 10 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = botVersionAvailableStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &BotVersionAvailableWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for BotVersionAvailable waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *BotVersionAvailableWaiter) Wait(ctx context.Context, params *DescribeBotVersionInput, maxWaitDur time.Duration, optFns ...func(*BotVersionAvailableWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeBotVersion(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for BotVersionAvailable waiter") -} - -func botVersionAvailableStateRetryable(ctx context.Context, input *DescribeBotVersionInput, output *DescribeBotVersionOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("botStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Available" - value, ok := pathValue.(types.BotStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("botStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Deleting" - value, ok := pathValue.(types.BotStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("botStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Failed" - value, ok := pathValue.(types.BotStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err != nil { - var errorType *types.ResourceNotFoundException - if errors.As(err, &errorType) { - return true, nil - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeBotVersion(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeExport.go b/service/lexmodelsv2/api_op_DescribeExport.go index 733e552c81e..1eafed561ae 100644 --- a/service/lexmodelsv2/api_op_DescribeExport.go +++ b/service/lexmodelsv2/api_op_DescribeExport.go @@ -4,15 +4,11 @@ package lexmodelsv2 import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" "time" ) @@ -140,199 +136,6 @@ func (c *Client) addOperationDescribeExportMiddlewares(stack *middleware.Stack, return nil } -// DescribeExportAPIClient is a client that implements the DescribeExport -// operation. -type DescribeExportAPIClient interface { - DescribeExport(context.Context, *DescribeExportInput, ...func(*Options)) (*DescribeExportOutput, error) -} - -var _ DescribeExportAPIClient = (*Client)(nil) - -// BotExportCompletedWaiterOptions are waiter options for BotExportCompletedWaiter -type BotExportCompletedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // BotExportCompletedWaiter will use default minimum delay of 10 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, BotExportCompletedWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeExportInput, *DescribeExportOutput, error) (bool, error) -} - -// BotExportCompletedWaiter defines the waiters for BotExportCompleted -type BotExportCompletedWaiter struct { - client DescribeExportAPIClient - - options BotExportCompletedWaiterOptions -} - -// NewBotExportCompletedWaiter constructs a BotExportCompletedWaiter. -func NewBotExportCompletedWaiter(client DescribeExportAPIClient, optFns ...func(*BotExportCompletedWaiterOptions)) *BotExportCompletedWaiter { - options := BotExportCompletedWaiterOptions{} - options.MinDelay = 10 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = botExportCompletedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &BotExportCompletedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for BotExportCompleted waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *BotExportCompletedWaiter) Wait(ctx context.Context, params *DescribeExportInput, maxWaitDur time.Duration, optFns ...func(*BotExportCompletedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeExport(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for BotExportCompleted waiter") -} - -func botExportCompletedStateRetryable(ctx context.Context, input *DescribeExportInput, output *DescribeExportOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("exportStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Completed" - value, ok := pathValue.(types.ExportStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.ExportStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("exportStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Deleting" - value, ok := pathValue.(types.ExportStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.ExportStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("exportStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Failed" - value, ok := pathValue.(types.ExportStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.ExportStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeExport(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeImport.go b/service/lexmodelsv2/api_op_DescribeImport.go index 23f3704faa8..3dccfa7a224 100644 --- a/service/lexmodelsv2/api_op_DescribeImport.go +++ b/service/lexmodelsv2/api_op_DescribeImport.go @@ -4,15 +4,11 @@ package lexmodelsv2 import ( "context" - "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" "time" ) @@ -145,199 +141,6 @@ func (c *Client) addOperationDescribeImportMiddlewares(stack *middleware.Stack, return nil } -// DescribeImportAPIClient is a client that implements the DescribeImport -// operation. -type DescribeImportAPIClient interface { - DescribeImport(context.Context, *DescribeImportInput, ...func(*Options)) (*DescribeImportOutput, error) -} - -var _ DescribeImportAPIClient = (*Client)(nil) - -// BotImportCompletedWaiterOptions are waiter options for BotImportCompletedWaiter -type BotImportCompletedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // BotImportCompletedWaiter will use default minimum delay of 10 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, BotImportCompletedWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeImportInput, *DescribeImportOutput, error) (bool, error) -} - -// BotImportCompletedWaiter defines the waiters for BotImportCompleted -type BotImportCompletedWaiter struct { - client DescribeImportAPIClient - - options BotImportCompletedWaiterOptions -} - -// NewBotImportCompletedWaiter constructs a BotImportCompletedWaiter. -func NewBotImportCompletedWaiter(client DescribeImportAPIClient, optFns ...func(*BotImportCompletedWaiterOptions)) *BotImportCompletedWaiter { - options := BotImportCompletedWaiterOptions{} - options.MinDelay = 10 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = botImportCompletedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &BotImportCompletedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for BotImportCompleted waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *BotImportCompletedWaiter) Wait(ctx context.Context, params *DescribeImportInput, maxWaitDur time.Duration, optFns ...func(*BotImportCompletedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeImport(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for BotImportCompleted waiter") -} - -func botImportCompletedStateRetryable(ctx context.Context, input *DescribeImportInput, output *DescribeImportOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("importStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Completed" - value, ok := pathValue.(types.ImportStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.ImportStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("importStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Deleting" - value, ok := pathValue.(types.ImportStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.ImportStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - if err == nil { - pathValue, err := jmespath.Search("importStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "Failed" - value, ok := pathValue.(types.ImportStatus) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.ImportStatus value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeImport(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/generated.json b/service/lexmodelsv2/generated.json index 3049b83dc8a..65dbf90d6a7 100644 --- a/service/lexmodelsv2/generated.json +++ b/service/lexmodelsv2/generated.json @@ -1,8 +1,7 @@ { "dependencies": { "github.com/aws/aws-sdk-go-v2": "v1.4.0", - "github.com/aws/smithy-go": "v1.4.0", - "github.com/jmespath/go-jmespath": "v0.4.0" + "github.com/aws/smithy-go": "v1.4.0" }, "files": [ "api_client.go", diff --git a/service/lexmodelsv2/go.mod b/service/lexmodelsv2/go.mod index 21bb16e027b..03ff93e6994 100644 --- a/service/lexmodelsv2/go.mod +++ b/service/lexmodelsv2/go.mod @@ -4,8 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 - github.com/jmespath/go-jmespath v0.4.0 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexmodelsv2/go.sum b/service/lexmodelsv2/go.sum index 83be82a84e4..829b1536381 100644 --- a/service/lexmodelsv2/go.sum +++ b/service/lexmodelsv2/go.sum @@ -1,20 +1,14 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/lexruntimeservice/go.mod b/service/lexruntimeservice/go.mod index e977a79bffa..72851c96786 100644 --- a/service/lexruntimeservice/go.mod +++ b/service/lexruntimeservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexruntimeservice/go.sum b/service/lexruntimeservice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/lexruntimeservice/go.sum +++ b/service/lexruntimeservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lexruntimev2/go.mod b/service/lexruntimev2/go.mod index abfd44e2e20..3758274cc3a 100644 --- a/service/lexruntimev2/go.mod +++ b/service/lexruntimev2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexruntimev2/go.sum b/service/lexruntimev2/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/lexruntimev2/go.sum +++ b/service/lexruntimev2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/licensemanager/go.mod b/service/licensemanager/go.mod index f4c0532d50d..49a645c74a3 100644 --- a/service/licensemanager/go.mod +++ b/service/licensemanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/licensemanager/go.sum b/service/licensemanager/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/licensemanager/go.sum +++ b/service/licensemanager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lightsail/go.mod b/service/lightsail/go.mod index 114324f51ba..4d1cce8d765 100644 --- a/service/lightsail/go.mod +++ b/service/lightsail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lightsail/go.sum b/service/lightsail/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/lightsail/go.sum +++ b/service/lightsail/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/location/api_op_AssociateTrackerConsumer.go b/service/location/api_op_AssociateTrackerConsumer.go index 57061982dcb..356aef5d9d8 100644 --- a/service/location/api_op_AssociateTrackerConsumer.go +++ b/service/location/api_op_AssociateTrackerConsumer.go @@ -12,9 +12,8 @@ import ( // Creates an association between a geofence collection and a tracker resource. // This allows the tracker resource to communicate location data to the linked -// geofence collection. You can associate up to five geofence collections to each -// tracker resource. Currently not supported — Cross-account configurations, such -// as creating associations between a tracker resource in one account and a +// geofence collection. Currently not supported — Cross-account configurations, +// such as creating associations between a tracker resource in one account and a // geofence collection in another account. func (c *Client) AssociateTrackerConsumer(ctx context.Context, params *AssociateTrackerConsumerInput, optFns ...func(*Options)) (*AssociateTrackerConsumerOutput, error) { if params == nil { diff --git a/service/location/api_op_BatchEvaluateGeofences.go b/service/location/api_op_BatchEvaluateGeofences.go index 8623d8e8d21..0c1f69cc6f9 100644 --- a/service/location/api_op_BatchEvaluateGeofences.go +++ b/service/location/api_op_BatchEvaluateGeofences.go @@ -11,20 +11,10 @@ import ( ) // Evaluates device positions against the geofence geometries from a given geofence -// collection. This operation always returns an empty response because geofences -// are asynchronously evaluated. The evaluation determines if the device has -// entered or exited a geofenced area, and then publishes one of the following -// events to Amazon EventBridge: -// -// * ENTER if Amazon Location determines that the -// tracked device has entered a geofenced area. -// -// * EXIT if Amazon Location -// determines that the tracked device has exited a geofenced area. -// -// The last -// geofence that a device was observed within is tracked for 30 days after the most -// recent device position update. +// collection. The evaluation determines if the device has entered or exited a +// geofenced area, which publishes ENTER or EXIT geofence events to Amazon +// EventBridge. The last geofence that a device was observed within, if any, is +// tracked for 30 days after the most recent device position update func (c *Client) BatchEvaluateGeofences(ctx context.Context, params *BatchEvaluateGeofencesInput, optFns ...func(*Options)) (*BatchEvaluateGeofencesOutput, error) { if params == nil { params = &BatchEvaluateGeofencesInput{} diff --git a/service/location/api_op_BatchGetDevicePosition.go b/service/location/api_op_BatchGetDevicePosition.go index 897f912e212..cf8830abafb 100644 --- a/service/location/api_op_BatchGetDevicePosition.go +++ b/service/location/api_op_BatchGetDevicePosition.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the latest device positions for requested devices. +// A batch request to retrieve all device positions. func (c *Client) BatchGetDevicePosition(ctx context.Context, params *BatchGetDevicePositionInput, optFns ...func(*Options)) (*BatchGetDevicePositionOutput, error) { if params == nil { params = &BatchGetDevicePositionInput{} diff --git a/service/location/api_op_CalculateRoute.go b/service/location/api_op_CalculateRoute.go index 5f2bb4e6cbe..670da3becf9 100644 --- a/service/location/api_op_CalculateRoute.go +++ b/service/location/api_op_CalculateRoute.go @@ -15,7 +15,7 @@ import ( // Calculates a route // (https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html) // given the following required parameters: DeparturePostiton and -// DestinationPosition. Requires that you first create a route calculator resource +// DestinationPosition. Requires that you first create aroute calculator resource // (https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html) // By default, a request that doesn't specify a departure time uses the best time // of day to travel with the best traffic conditions when calculating the route. @@ -30,7 +30,7 @@ import ( // // * Specifying a travel mode // (https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#travel-mode) -// using TravelMode. This lets you specify an additional route preference such as +// using TravelMode. This lets you specify additional route preference such as // CarModeOptions if traveling by Car, or TruckModeOptions if traveling by Truck. func (c *Client) CalculateRoute(ctx context.Context, params *CalculateRouteInput, optFns ...func(*Options)) (*CalculateRouteOutput, error) { if params == nil { @@ -153,7 +153,7 @@ type CalculateRouteOutput struct { // Contains details about each path between a pair of positions included along a // route such as: StartPosition, EndPosition, Distance, DurationSeconds, Geometry, - // and Steps. The number of legs returned corresponds to one fewer than the total + // and Steps. The number of legs returned corresponds to one less than the total // number of positions in the request. For example, a route with a departure // position and destination position returns one leg with the positions snapped to // a nearby road @@ -167,19 +167,19 @@ type CalculateRouteOutput struct { // // A route with a waypoint between the departure and // destination position returns two legs with the positions snapped to a nearby - // road: + // road.: // - // * Leg 1: The StartPosition is the departure position . The EndPosition is - // the waypoint positon. + // * Leg 1: The StartPosition is the departure position . The EndPosition + // is the waypoint positon. // - // * Leg 2: The StartPosition is the waypoint position. The - // EndPosition is the destination position. + // * Leg 2: The StartPosition is the waypoint position. + // The EndPosition is the destination position. // // This member is required. Legs []types.Leg // Contains information about the whole route, such as: RouteBBox, DataSource, - // Distance, DistanceUnit, and DurationSeconds. + // Distance, DistanceUnit, and DurationSeconds // // This member is required. Summary *types.CalculateRouteSummary diff --git a/service/location/api_op_CreateMap.go b/service/location/api_op_CreateMap.go index 8693f85bd94..be94a2c0f78 100644 --- a/service/location/api_op_CreateMap.go +++ b/service/location/api_op_CreateMap.go @@ -91,10 +91,11 @@ type CreateMapOutput struct { // This member is required. CreateTime *time.Time - // The Amazon Resource Name (ARN) for the map resource. Used to specify a resource - // across all AWS. + // The Amazon Resource Name (ARN) for the map resource. Used when you need to + // specify a resource across all AWS. // - // * Format example: arn:aws:geo:region:account-id:maps/ExampleMap + // * Format example: + // arn:aws:geo:region:account-id:maps/ExampleMap // // This member is required. MapArn *string diff --git a/service/location/api_op_CreatePlaceIndex.go b/service/location/api_op_CreatePlaceIndex.go index 433d4001aa7..464f5dc7ccc 100644 --- a/service/location/api_op_CreatePlaceIndex.go +++ b/service/location/api_op_CreatePlaceIndex.go @@ -32,29 +32,21 @@ func (c *Client) CreatePlaceIndex(ctx context.Context, params *CreatePlaceIndexI type CreatePlaceIndexInput struct { // Specifies the data provider of geospatial data. This field is case-sensitive. - // Enter the valid values as shown. For example, entering HERE returns an error. - // Valid values include: + // Enter the valid values as shown. For example, entering HERE will return an + // error. Valid values include: // - // * Esri – For additional information about Esri - // (https://docs.aws.amazon.com/location/latest/developerguide/esri.html)'s - // coverage in your region of interest, see Esri details on geocoding coverage - // (https://developers.arcgis.com/rest/geocode/api-reference/geocode-coverage.htm). + // * Esri // - // * - // Here – For additional information about HERE Technologies - // (https://docs.aws.amazon.com/location/latest/developerguide/HERE.html)'s - // coverage in your region of interest, see HERE details on goecoding coverage - // (https://developer.here.com/documentation/geocoder/dev_guide/topics/coverage-geocoder.html). - // Place index resources using HERE Technologies as a data provider can't store - // results + // * Here Place index resources using HERE as + // a data provider can't be used to store // (https://docs.aws.amazon.com/location-places/latest/APIReference/API_DataSourceConfiguration.html) - // for locations in Japan. For more information, see the AWS Service Terms + // results for locations in Japan. For more information, see the AWS Service Terms // (https://aws.amazon.com/service-terms/) for Amazon Location Service. // // For - // additional information , see Data providers - // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html) - // on the Amazon Location Service Developer Guide. + // additional details on data providers, see the Amazon Location Service data + // providers page + // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html). // // This member is required. DataSource *string @@ -80,7 +72,7 @@ type CreatePlaceIndexInput struct { // This member is required. PricingPlan types.PricingPlan - // Specifies the data storage option requesting Places. + // Specifies the data storage option for requesting Places. DataSourceConfiguration *types.DataSourceConfiguration // The optional description for the place index resource. @@ -118,7 +110,7 @@ type CreatePlaceIndexOutput struct { CreateTime *time.Time // The Amazon Resource Name (ARN) for the place index resource. Used to specify a - // resource across AWS. + // resource across all AWS. // // * Format example: // arn:aws:geo:region:account-id:place-index/ExamplePlaceIndex diff --git a/service/location/api_op_CreateRouteCalculator.go b/service/location/api_op_CreateRouteCalculator.go index 61b465b759c..8f6f128c286 100644 --- a/service/location/api_op_CreateRouteCalculator.go +++ b/service/location/api_op_CreateRouteCalculator.go @@ -49,27 +49,9 @@ type CreateRouteCalculatorInput struct { // Specifies the data provider of traffic and road network data. This field is // case-sensitive. Enter the valid values as shown. For example, entering HERE - // returns an error. Valid values include: - // - // * Esri – For additional information - // about Esri - // (https://docs.aws.amazon.com/location/latest/developerguide/esri.html)'s - // coverage in your region of interest, see Esri details on street networks and - // traffic coverage - // (https://doc.arcgis.com/en/arcgis-online/reference/network-coverage.htm). - // - // * - // Here – For additional information about HERE Technologies - // (https://docs.aws.amazon.com/location/latest/developerguide/HERE.html)'s - // coverage in your region of interest, see HERE car routing coverage - // (https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/car-routing.html) - // and HERE truck routing coverage - // (https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/truck-routing.html). - // - // For - // additional information , see Data providers - // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html) - // on the Amazon Location Service Developer Guide. + // returns an error. Valid Values: Esri | Here For more information about data + // providers, see Amazon Location Service data providers + // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html). // // This member is required. DataSource *string diff --git a/service/location/api_op_DescribeMap.go b/service/location/api_op_DescribeMap.go index 87d34c79060..1a3ca7dd50a 100644 --- a/service/location/api_op_DescribeMap.go +++ b/service/location/api_op_DescribeMap.go @@ -61,10 +61,11 @@ type DescribeMapOutput struct { // This member is required. Description *string - // The Amazon Resource Name (ARN) for the map resource. Used to specify a resource - // across all AWS. + // The Amazon Resource Name (ARN) for the map resource. Used when you need to + // specify a resource across all AWS. // - // * Format example: arn:aws:geo:region:account-id:maps/ExampleMap + // * Format example: + // arn:aws:geo:region:account-id:maps/ExampleMap // // This member is required. MapArn *string diff --git a/service/location/api_op_DescribePlaceIndex.go b/service/location/api_op_DescribePlaceIndex.go index b7e60781ef7..633116502ac 100644 --- a/service/location/api_op_DescribePlaceIndex.go +++ b/service/location/api_op_DescribePlaceIndex.go @@ -71,7 +71,7 @@ type DescribePlaceIndexOutput struct { Description *string // The Amazon Resource Name (ARN) for the place index resource. Used to specify a - // resource across AWS. + // resource across all AWS. // // * Format example: // arn:aws:geo:region:account-id:place-index/ExamplePlaceIndex diff --git a/service/location/api_op_GetMapGlyphs.go b/service/location/api_op_GetMapGlyphs.go index 7f698fe6fb1..c7d581d1ced 100644 --- a/service/location/api_op_GetMapGlyphs.go +++ b/service/location/api_op_GetMapGlyphs.go @@ -28,32 +28,8 @@ func (c *Client) GetMapGlyphs(ctx context.Context, params *GetMapGlyphsInput, op type GetMapGlyphsInput struct { - // A comma-separated list of fonts to load glyphs from in order of preference. For - // example, Noto Sans Regular, Arial Unicode. Valid fonts for Esri - // (https://docs.aws.amazon.com/location/latest/developerguide/esri.html) - // styles: - // - // * VectorEsriDarkGrayCanvas – Ubuntu Medium Italic | Ubuntu Medium | - // Ubuntu Italic | Ubuntu Regular | Ubuntu Bold - // - // * VectorEsriLightGrayCanvas – - // Ubuntu Italic | Ubuntu Regular | Ubuntu Light | Ubuntu Bold - // - // * - // VectorEsriTopographic – Noto Sans Italic | Noto Sans Regular | Noto Sans Bold | - // Noto Serif Regular | Roboto Condensed Light Italic - // - // * VectorEsriStreets – Arial - // Regular | Arial Italic | Arial Bold - // - // * VectorEsriNavigation – Arial Regular | - // Arial Italic | Arial Bold - // - // Valid fonts for HERE Technologies - // (https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) - // styles: - // - // * VectorHereBerlin – Fira GO Regular | Fira GO Bold + // A comma-separated list of fonts to load glyphs from in order of preference.. For + // example, Noto Sans, Arial Unicode. // // This member is required. FontStack *string diff --git a/service/location/api_op_ListDevicePositions.go b/service/location/api_op_ListDevicePositions.go index 74fadc59392..82f48cecb36 100644 --- a/service/location/api_op_ListDevicePositions.go +++ b/service/location/api_op_ListDevicePositions.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// A batch request to retrieve all device positions. +// Lists the latest device positions for requested devices. func (c *Client) ListDevicePositions(ctx context.Context, params *ListDevicePositionsInput, optFns ...func(*Options)) (*ListDevicePositionsOutput, error) { if params == nil { params = &ListDevicePositionsInput{} diff --git a/service/location/api_op_ListTagsForResource.go b/service/location/api_op_ListTagsForResource.go index ef06fb47327..2f66c5e4cc4 100644 --- a/service/location/api_op_ListTagsForResource.go +++ b/service/location/api_op_ListTagsForResource.go @@ -10,8 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of tags that are applied to the specified Amazon Location -// resource. +// Returns the tags for the specified Amazon Location Service resource. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} @@ -29,11 +28,7 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes type ListTagsForResourceInput struct { - // The Amazon Resource Name (ARN) of the resource whose tags you want to - // retrieve. - // - // * Format example: - // arn:aws:geo:region:account-id:resourcetype/ExampleResource + // The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve. // // This member is required. ResourceArn *string @@ -43,11 +38,8 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { - // Tags that have been applied to the specified resource. Tags are mapped from the - // tag key to the tag value: "TagKey" : "TagValue". - // - // * Format example: {"tag1" : - // "value1", "tag2" : "value2"} + // The mapping from tag key to tag value for each tag associated with the specified + // resource. Tags map[string]string // Metadata pertaining to the operation's result. diff --git a/service/location/api_op_TagResource.go b/service/location/api_op_TagResource.go index 38f3de9c16a..551eb963c85 100644 --- a/service/location/api_op_TagResource.go +++ b/service/location/api_op_TagResource.go @@ -13,13 +13,14 @@ import ( // Assigns one or more tags (key-value pairs) to the specified Amazon Location // Service resource. Tags can help you organize and categorize your resources. You // can also use them to scope user permissions, by granting a user permission to -// access or change only resources with certain tag values. You can use the -// TagResource operation with an Amazon Location Service resource that already has -// tags. If you specify a new tag key for the resource, this tag is appended to the -// tags already associated with the resource. If you specify a tag key that's -// already associated with the resource, the new tag value that you specify -// replaces the previous value for that tag. You can associate up to 50 tags with a -// resource. +// access or change only resources with certain tag values. Tags don't have any +// semantic meaning to AWS and are interpreted strictly as strings of characters. +// You can use the TagResource action with an Amazon Location Service resource that +// already has tags. If you specify a new tag key for the resource, this tag is +// appended to the tags already associated with the resource. If you specify a tag +// key that is already associated with the resource, the new tag value that you +// specify replaces the previous value for that tag. You can associate as many as +// 50 tags with a resource. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} @@ -39,17 +40,11 @@ type TagResourceInput struct { // The Amazon Resource Name (ARN) of the resource whose tags you want to update. // - // * - // Format example: arn:aws:geo:region:account-id:resourcetype/ExampleResource - // // This member is required. ResourceArn *string - // Tags that have been applied to the specified resource. Tags are mapped from the - // tag key to the tag value: "TagKey" : "TagValue". - // - // * Format example: {"tag1" : - // "value1", "tag2" : "value2"} + // The mapping from tag key to tag value for each tag associated with the specified + // resource. // // This member is required. Tags map[string]string diff --git a/service/location/api_op_UntagResource.go b/service/location/api_op_UntagResource.go index 29af7a87d77..ab822e3cee3 100644 --- a/service/location/api_op_UntagResource.go +++ b/service/location/api_op_UntagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes one or more tags from the specified Amazon Location resource. +// Removes one or more tags from the specified Amazon Location Service resource. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} @@ -31,13 +31,10 @@ type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the resource from which you want to remove // tags. // - // * Format example: - // arn:aws:geo:region:account-id:resourcetype/ExampleResource - // // This member is required. ResourceArn *string - // The list of tag keys to remove from the specified resource. + // The list of tag keys to remove from the resource. // // This member is required. TagKeys []string diff --git a/service/location/api_op_UpdateGeofenceCollection.go b/service/location/api_op_UpdateGeofenceCollection.go deleted file mode 100644 index 6300b8de36a..00000000000 --- a/service/location/api_op_UpdateGeofenceCollection.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package location - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/location/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "time" -) - -// Updates the specified properties of a given geofence collection. -func (c *Client) UpdateGeofenceCollection(ctx context.Context, params *UpdateGeofenceCollectionInput, optFns ...func(*Options)) (*UpdateGeofenceCollectionOutput, error) { - if params == nil { - params = &UpdateGeofenceCollectionInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateGeofenceCollection", params, optFns, c.addOperationUpdateGeofenceCollectionMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateGeofenceCollectionOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateGeofenceCollectionInput struct { - - // The name of the geofence collection to update. - // - // This member is required. - CollectionName *string - - // Updates the description for the geofence collection. - Description *string - - // Updates the pricing plan for the geofence collection. For more information about - // each pricing plan option restrictions, see Amazon Location Service pricing - // (https://aws.amazon.com/location/pricing/). - PricingPlan types.PricingPlan - - // Updates the data provider for the geofence collection. A required value for the - // following pricing plans: MobileAssetTracking| MobileAssetManagement For more - // information about data providers - // (https://aws.amazon.com/location/data-providers/) and pricing plans - // (https://aws.amazon.com/location/pricing/), see the Amazon Location Service - // product page. This can only be updated when updating the PricingPlan in the same - // request. Amazon Location Service uses PricingPlanDataSource to calculate billing - // for your geofence collection. Your data won't be shared with the data provider, - // and will remain in your AWS account and Region unless you move it. - PricingPlanDataSource *string - - noSmithyDocumentSerde -} - -type UpdateGeofenceCollectionOutput struct { - - // The Amazon Resource Name (ARN) of the updated geofence collection. Used to - // specify a resource across AWS. - // - // * Format example: - // arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection - // - // This member is required. - CollectionArn *string - - // The name of the updated geofence collection. - // - // This member is required. - CollectionName *string - - // The time when the geofence collection was last updated in ISO 8601 - // (https://www.iso.org/iso-8601-date-and-time-format.html) format: - // YYYY-MM-DDThh:mm:ss.sssZ - // - // This member is required. - UpdateTime *time.Time - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateGeofenceCollectionMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateGeofenceCollection{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateGeofenceCollection{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateGeofenceCollectionValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateGeofenceCollection(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateGeofenceCollection(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "geo", - OperationName: "UpdateGeofenceCollection", - } -} diff --git a/service/location/api_op_UpdateMap.go b/service/location/api_op_UpdateMap.go deleted file mode 100644 index 8e80558f5af..00000000000 --- a/service/location/api_op_UpdateMap.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package location - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/location/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "time" -) - -// Updates the specified properties of a given map resource. -func (c *Client) UpdateMap(ctx context.Context, params *UpdateMapInput, optFns ...func(*Options)) (*UpdateMapOutput, error) { - if params == nil { - params = &UpdateMapInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateMap", params, optFns, c.addOperationUpdateMapMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateMapOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateMapInput struct { - - // The name of the map resource to update. - // - // This member is required. - MapName *string - - // Updates the description for the map resource. - Description *string - - // Updates the pricing plan for the map resource. For more information about each - // pricing plan option restrictions, see Amazon Location Service pricing - // (https://aws.amazon.com/location/pricing/). - PricingPlan types.PricingPlan - - noSmithyDocumentSerde -} - -type UpdateMapOutput struct { - - // The Amazon Resource Name (ARN) of the updated map resource. Used to specify a - // resource across AWS. - // - // * Format example: - // arn:aws:geo:region:account-id:maps/ExampleMap - // - // This member is required. - MapArn *string - - // The name of the updated map resource. - // - // This member is required. - MapName *string - - // The timestamp for when the map resource was last updated in ISO 8601 - // (https://www.iso.org/iso-8601-date-and-time-format.html) format: - // YYYY-MM-DDThh:mm:ss.sssZ. - // - // This member is required. - UpdateTime *time.Time - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateMapMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateMap{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateMap{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateMapValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMap(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateMap(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "geo", - OperationName: "UpdateMap", - } -} diff --git a/service/location/api_op_UpdatePlaceIndex.go b/service/location/api_op_UpdatePlaceIndex.go deleted file mode 100644 index 81b8c704425..00000000000 --- a/service/location/api_op_UpdatePlaceIndex.go +++ /dev/null @@ -1,151 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package location - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/location/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "time" -) - -// Updates the specified properties of a given place index resource. -func (c *Client) UpdatePlaceIndex(ctx context.Context, params *UpdatePlaceIndexInput, optFns ...func(*Options)) (*UpdatePlaceIndexOutput, error) { - if params == nil { - params = &UpdatePlaceIndexInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdatePlaceIndex", params, optFns, c.addOperationUpdatePlaceIndexMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdatePlaceIndexOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdatePlaceIndexInput struct { - - // The name of the place index resource to update. - // - // This member is required. - IndexName *string - - // Updates the data storage option for the place index resource. - DataSourceConfiguration *types.DataSourceConfiguration - - // Updates the description for the place index resource. - Description *string - - // Updates the pricing plan for the place index resource. For more information - // about each pricing plan option restrictions, see Amazon Location Service pricing - // (https://aws.amazon.com/location/pricing/). - PricingPlan types.PricingPlan - - noSmithyDocumentSerde -} - -type UpdatePlaceIndexOutput struct { - - // The Amazon Resource Name (ARN) of the upated place index resource. Used to - // specify a resource across AWS. - // - // * Format example: - // arn:aws:geo:region:account-id:place- index/ExamplePlaceIndex - // - // This member is required. - IndexArn *string - - // The name of the updated place index resource. - // - // This member is required. - IndexName *string - - // The timestamp for when the place index resource was last updated in ISO 8601 - // (https://www.iso.org/iso-8601-date-and-time-format.html) format: - // YYYY-MM-DDThh:mm:ss.sssZ. - // - // This member is required. - UpdateTime *time.Time - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdatePlaceIndexMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdatePlaceIndex{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdatePlaceIndex{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdatePlaceIndexValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePlaceIndex(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdatePlaceIndex(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "geo", - OperationName: "UpdatePlaceIndex", - } -} diff --git a/service/location/api_op_UpdateRouteCalculator.go b/service/location/api_op_UpdateRouteCalculator.go deleted file mode 100644 index eaf941ee0f9..00000000000 --- a/service/location/api_op_UpdateRouteCalculator.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package location - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/location/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "time" -) - -// Updates the specified properties for a given route calculator resource. -func (c *Client) UpdateRouteCalculator(ctx context.Context, params *UpdateRouteCalculatorInput, optFns ...func(*Options)) (*UpdateRouteCalculatorOutput, error) { - if params == nil { - params = &UpdateRouteCalculatorInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateRouteCalculator", params, optFns, c.addOperationUpdateRouteCalculatorMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateRouteCalculatorOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateRouteCalculatorInput struct { - - // The name of the route calculator resource to update. - // - // This member is required. - CalculatorName *string - - // Updates the description for the route calculator resource. - Description *string - - // Updates the pricing plan for the route calculator resource. For more information - // about each pricing plan option restrictions, see Amazon Location Service pricing - // (https://aws.amazon.com/location/pricing/). - PricingPlan types.PricingPlan - - noSmithyDocumentSerde -} - -type UpdateRouteCalculatorOutput struct { - - // The Amazon Resource Name (ARN) of the updated route calculator resource. Used to - // specify a resource across AWS. - // - // * Format example: - // arn:aws:geo:region:account-id:route- calculator/ExampleCalculator - // - // This member is required. - CalculatorArn *string - - // The name of the updated route calculator resource. - // - // This member is required. - CalculatorName *string - - // The timestamp for when the route calculator was last updated in ISO 8601 - // (https://www.iso.org/iso-8601-date-and-time-format.html) format: - // YYYY-MM-DDThh:mm:ss.sssZ. - // - // This member is required. - UpdateTime *time.Time - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateRouteCalculatorMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateRouteCalculator{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateRouteCalculator{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateRouteCalculatorValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRouteCalculator(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateRouteCalculator(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "geo", - OperationName: "UpdateRouteCalculator", - } -} diff --git a/service/location/api_op_UpdateTracker.go b/service/location/api_op_UpdateTracker.go deleted file mode 100644 index d39174d58f0..00000000000 --- a/service/location/api_op_UpdateTracker.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package location - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/location/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "time" -) - -// Updates the specified properties of a given tracker resource. -func (c *Client) UpdateTracker(ctx context.Context, params *UpdateTrackerInput, optFns ...func(*Options)) (*UpdateTrackerOutput, error) { - if params == nil { - params = &UpdateTrackerInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateTracker", params, optFns, c.addOperationUpdateTrackerMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateTrackerOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateTrackerInput struct { - - // The name of the tracker resource to update. - // - // This member is required. - TrackerName *string - - // Updates the description for the tracker resource. - Description *string - - // Updates the pricing plan for the tracker resource. For more information about - // each pricing plan option restrictions, see Amazon Location Service pricing - // (https://aws.amazon.com/location/pricing/). - PricingPlan types.PricingPlan - - // Updates the data provider for the tracker resource. A required value for the - // following pricing plans: MobileAssetTracking| MobileAssetManagement For more - // information about data providers - // (https://aws.amazon.com/location/data-providers/) and pricing plans - // (https://aws.amazon.com/location/pricing/), see the Amazon Location Service - // product page This can only be updated when updating the PricingPlan in the same - // request. Amazon Location Service uses PricingPlanDataSource to calculate billing - // for your tracker resource. Your data won't be shared with the data provider, and - // will remain in your AWS account and Region unless you move it. - PricingPlanDataSource *string - - noSmithyDocumentSerde -} - -type UpdateTrackerOutput struct { - - // The Amazon Resource Name (ARN) of the updated tracker resource. Used to specify - // a resource across AWS. - // - // * Format example: - // arn:aws:geo:region:account-id:tracker/ExampleTracker - // - // This member is required. - TrackerArn *string - - // The name of the updated tracker resource. - // - // This member is required. - TrackerName *string - - // The timestamp for when the tracker resource was last updated in ISO 8601 - // (https://www.iso.org/iso-8601-date-and-time-format.html) format: - // YYYY-MM-DDThh:mm:ss.sssZ. - // - // This member is required. - UpdateTime *time.Time - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateTrackerMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateTracker{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateTracker{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateTrackerValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTracker(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateTracker(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "geo", - OperationName: "UpdateTracker", - } -} diff --git a/service/location/deserializers.go b/service/location/deserializers.go index f655ed62bb9..d4a48ad0156 100644 --- a/service/location/deserializers.go +++ b/service/location/deserializers.go @@ -103,9 +103,6 @@ func awsRestjson1_deserializeOpErrorAssociateTrackerConsumer(response *smithyhtt case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -7211,37 +7208,48 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpUpdateGeofenceCollection struct { -} +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) -func (*awsRestjson1_deserializeOpUpdateGeofenceCollection) ID() string { - return "OperationDeserializer" -} + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) -func (m *awsRestjson1_deserializeOpUpdateGeofenceCollection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { - return out, metadata, err + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err } - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } + errorBody.Seek(0, io.SeekStart) - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateGeofenceCollection(response, &metadata) - } - output := &UpdateGeofenceCollectionOutput{} - out.Result = output + return output +} +func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - + body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -7252,44 +7260,83 @@ func (m *awsRestjson1_deserializeOpUpdateGeofenceCollection) HandleDeserialize(c Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err + return err } - err = awsRestjson1_deserializeOpDocumentUpdateGeofenceCollectionOutput(&output, shape) + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } + return err } - return out, metadata, err + errorBody.Seek(0, io.SeekStart) + + return output } -func awsRestjson1_deserializeOpErrorUpdateGeofenceCollection(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - errorCode := "UnknownError" - errorMessage := errorCode + err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err } + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7301,40 +7348,83 @@ func awsRestjson1_deserializeOpErrorUpdateGeofenceCollection(response *smithyhtt } errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err } - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + errorBody.Seek(0, io.SeekStart) - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + return output +} - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - return genericError + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err } + + errorBody.Seek(0, io.SeekStart) + + return output } -func awsRestjson1_deserializeOpDocumentUpdateGeofenceCollectionOutput(v **UpdateGeofenceCollectionOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7347,44 +7437,22 @@ func awsRestjson1_deserializeOpDocumentUpdateGeofenceCollectionOutput(v **Update return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateGeofenceCollectionOutput + var sv *types.AccessDeniedException if *v == nil { - sv = &UpdateGeofenceCollectionOutput{} + sv = &types.AccessDeniedException{} } else { sv = *v } for key, value := range shape { switch key { - case "CollectionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.CollectionArn = ptr.String(jtv) - } - - case "CollectionName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.CollectionName = ptr.String(jtv) - } - - case "UpdateTime": + case "message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UpdateTime = ptr.Time(t) + sv.Message = ptr.String(jtv) } default: @@ -7396,1049 +7464,17 @@ func awsRestjson1_deserializeOpDocumentUpdateGeofenceCollectionOutput(v **Update return nil } -type awsRestjson1_deserializeOpUpdateMap struct { -} - -func (*awsRestjson1_deserializeOpUpdateMap) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateMap) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err +func awsRestjson1_deserializeDocumentArnList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil } - response, ok := out.RawResponse.(*smithyhttp.Response) + shape, ok := value.([]interface{}) if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateMap(response, &metadata) - } - output := &UpdateMapOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateMapOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateMap(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateMapOutput(v **UpdateMapOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateMapOutput - if *v == nil { - sv = &UpdateMapOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "MapArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.MapArn = ptr.String(jtv) - } - - case "MapName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.MapName = ptr.String(jtv) - } - - case "UpdateTime": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(t) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdatePlaceIndex struct { -} - -func (*awsRestjson1_deserializeOpUpdatePlaceIndex) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdatePlaceIndex) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdatePlaceIndex(response, &metadata) - } - output := &UpdatePlaceIndexOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdatePlaceIndexOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdatePlaceIndex(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdatePlaceIndexOutput(v **UpdatePlaceIndexOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdatePlaceIndexOutput - if *v == nil { - sv = &UpdatePlaceIndexOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "IndexArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.IndexArn = ptr.String(jtv) - } - - case "IndexName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.IndexName = ptr.String(jtv) - } - - case "UpdateTime": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(t) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateRouteCalculator struct { -} - -func (*awsRestjson1_deserializeOpUpdateRouteCalculator) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateRouteCalculator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateRouteCalculator(response, &metadata) - } - output := &UpdateRouteCalculatorOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateRouteCalculatorOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateRouteCalculator(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateRouteCalculatorOutput(v **UpdateRouteCalculatorOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateRouteCalculatorOutput - if *v == nil { - sv = &UpdateRouteCalculatorOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CalculatorArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.CalculatorArn = ptr.String(jtv) - } - - case "CalculatorName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.CalculatorName = ptr.String(jtv) - } - - case "UpdateTime": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(t) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateTracker struct { -} - -func (*awsRestjson1_deserializeOpUpdateTracker) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateTracker) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateTracker(response, &metadata) - } - output := &UpdateTrackerOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateTrackerOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateTracker(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateTrackerOutput(v **UpdateTrackerOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateTrackerOutput - if *v == nil { - sv = &UpdateTrackerOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "TrackerArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.TrackerArn = ptr.String(jtv) - } - - case "TrackerName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.TrackerName = ptr.String(jtv) - } - - case "UpdateTime": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(t) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDeniedException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ConflictException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentConflictException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InternalServerException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ServiceQuotaExceededException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ThrottlingException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ValidationException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentValidationException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AccessDeniedException - if *v == nil { - sv = &types.AccessDeniedException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentArnList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return fmt.Errorf("unexpected JSON type %v", value) } var cv []string @@ -11293,46 +10329,6 @@ func awsRestjson1_deserializeDocumentSearchPlaceIndexForTextSummary(v **types.Se return nil } -func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ServiceQuotaExceededException - if *v == nil { - sv = &types.ServiceQuotaExceededException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/location/generated.json b/service/location/generated.json index c879b11ea97..b79d2b60ef1 100644 --- a/service/location/generated.json +++ b/service/location/generated.json @@ -50,11 +50,6 @@ "api_op_SearchPlaceIndexForText.go", "api_op_TagResource.go", "api_op_UntagResource.go", - "api_op_UpdateGeofenceCollection.go", - "api_op_UpdateMap.go", - "api_op_UpdatePlaceIndex.go", - "api_op_UpdateRouteCalculator.go", - "api_op_UpdateTracker.go", "deserializers.go", "doc.go", "endpoints.go", diff --git a/service/location/go.mod b/service/location/go.mod index e451c892c2b..18fa3c0aa94 100644 --- a/service/location/go.mod +++ b/service/location/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/location/go.sum b/service/location/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/location/go.sum +++ b/service/location/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/location/serializers.go b/service/location/serializers.go index 2a7da70b773..32cda47d097 100644 --- a/service/location/serializers.go +++ b/service/location/serializers.go @@ -3477,453 +3477,6 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return nil } -type awsRestjson1_serializeOpUpdateGeofenceCollection struct { -} - -func (*awsRestjson1_serializeOpUpdateGeofenceCollection) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateGeofenceCollection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateGeofenceCollectionInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/geofencing/v0/collections/{CollectionName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PATCH" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUpdateGeofenceCollectionInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateGeofenceCollectionInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateGeofenceCollectionInput(v *UpdateGeofenceCollectionInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.CollectionName == nil || len(*v.CollectionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CollectionName must not be empty")} - } - if v.CollectionName != nil { - if err := encoder.SetURI("CollectionName").String(*v.CollectionName); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateGeofenceCollectionInput(v *UpdateGeofenceCollectionInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if len(v.PricingPlan) > 0 { - ok := object.Key("PricingPlan") - ok.String(string(v.PricingPlan)) - } - - if v.PricingPlanDataSource != nil { - ok := object.Key("PricingPlanDataSource") - ok.String(*v.PricingPlanDataSource) - } - - return nil -} - -type awsRestjson1_serializeOpUpdateMap struct { -} - -func (*awsRestjson1_serializeOpUpdateMap) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateMap) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateMapInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/maps/v0/maps/{MapName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PATCH" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUpdateMapInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateMapInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateMapInput(v *UpdateMapInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MapName == nil || len(*v.MapName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MapName must not be empty")} - } - if v.MapName != nil { - if err := encoder.SetURI("MapName").String(*v.MapName); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateMapInput(v *UpdateMapInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if len(v.PricingPlan) > 0 { - ok := object.Key("PricingPlan") - ok.String(string(v.PricingPlan)) - } - - return nil -} - -type awsRestjson1_serializeOpUpdatePlaceIndex struct { -} - -func (*awsRestjson1_serializeOpUpdatePlaceIndex) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdatePlaceIndex) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdatePlaceIndexInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/places/v0/indexes/{IndexName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PATCH" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUpdatePlaceIndexInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdatePlaceIndexInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdatePlaceIndexInput(v *UpdatePlaceIndexInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.IndexName == nil || len(*v.IndexName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IndexName must not be empty")} - } - if v.IndexName != nil { - if err := encoder.SetURI("IndexName").String(*v.IndexName); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdatePlaceIndexInput(v *UpdatePlaceIndexInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DataSourceConfiguration != nil { - ok := object.Key("DataSourceConfiguration") - if err := awsRestjson1_serializeDocumentDataSourceConfiguration(v.DataSourceConfiguration, ok); err != nil { - return err - } - } - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if len(v.PricingPlan) > 0 { - ok := object.Key("PricingPlan") - ok.String(string(v.PricingPlan)) - } - - return nil -} - -type awsRestjson1_serializeOpUpdateRouteCalculator struct { -} - -func (*awsRestjson1_serializeOpUpdateRouteCalculator) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateRouteCalculator) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateRouteCalculatorInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/routes/v0/calculators/{CalculatorName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PATCH" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUpdateRouteCalculatorInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateRouteCalculatorInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateRouteCalculatorInput(v *UpdateRouteCalculatorInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.CalculatorName == nil || len(*v.CalculatorName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CalculatorName must not be empty")} - } - if v.CalculatorName != nil { - if err := encoder.SetURI("CalculatorName").String(*v.CalculatorName); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateRouteCalculatorInput(v *UpdateRouteCalculatorInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if len(v.PricingPlan) > 0 { - ok := object.Key("PricingPlan") - ok.String(string(v.PricingPlan)) - } - - return nil -} - -type awsRestjson1_serializeOpUpdateTracker struct { -} - -func (*awsRestjson1_serializeOpUpdateTracker) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateTracker) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateTrackerInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/tracking/v0/trackers/{TrackerName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PATCH" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUpdateTrackerInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateTrackerInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateTrackerInput(v *UpdateTrackerInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.TrackerName == nil || len(*v.TrackerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TrackerName must not be empty")} - } - if v.TrackerName != nil { - if err := encoder.SetURI("TrackerName").String(*v.TrackerName); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateTrackerInput(v *UpdateTrackerInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if len(v.PricingPlan) > 0 { - ok := object.Key("PricingPlan") - ok.String(string(v.PricingPlan)) - } - - if v.PricingPlanDataSource != nil { - ok := object.Key("PricingPlanDataSource") - ok.String(*v.PricingPlanDataSource) - } - - return nil -} - func awsRestjson1_serializeDocumentBatchPutGeofenceRequestEntry(v *types.BatchPutGeofenceRequestEntry, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/location/types/errors.go b/service/location/types/errors.go index c797d704410..7038cfde062 100644 --- a/service/location/types/errors.go +++ b/service/location/types/errors.go @@ -7,8 +7,8 @@ import ( smithy "github.com/aws/smithy-go" ) -// The request was denied because of insufficient access or permissions. Check with -// an administrator to verify your permissions. +// The request was denied due to insufficient access or permission. Check with an +// administrator to verify your permissions. type AccessDeniedException struct { Message *string @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The request was unsuccessful because of a conflict. +// The request was unsuccessful due to a conflict. type ConflictException struct { Message *string @@ -85,28 +85,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The operation was denied because the request would exceed the maximum quota -// (https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html) -// set for Amazon Location Service. -type ServiceQuotaExceededException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ServiceQuotaExceededException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ServiceQuotaExceededException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } -func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The request was denied because of request throttling. +// The request was denied due to request throttling. type ThrottlingException struct { Message *string diff --git a/service/location/types/types.go b/service/location/types/types.go index 3b977b9fb96..dc544a70c94 100644 --- a/service/location/types/types.go +++ b/service/location/types/types.go @@ -230,7 +230,7 @@ type CalculateRouteSummary struct { DurationSeconds *float64 // Specifies a geographical box surrounding a route. Used to zoom into a route when - // displaying it in a map. For example, [min x, min y, max x, max y]. The first 2 + // displaying it in a map. For example, [min x, min y, max x, max y] The first 2 // bbox parameters describe the lower southwest corner: // // * The first bbox position @@ -279,20 +279,7 @@ type CalculateRouteTruckModeOptions struct { noSmithyDocumentSerde } -// Specifies the data storage option chosen for requesting Places. When using -// Amazon Location Places: -// -// * If using HERE Technologies as a data provider, you -// can't store results for locations in Japan by setting IntendedUse to Storage. -// parameter. -// -// * Under the MobileAssetTracking or MobilAssetManagement pricing -// plan, you can't store results from your place index resources by setting -// IntendedUse to Storage. This returns a validation exception error. -// -// For more -// information, see the AWS Service Terms (https://aws.amazon.com/service-terms/) -// for Amazon Location Service. +// Specifies the data storage option chosen for requesting Places. type DataSourceConfiguration struct { // Specifies how the results of an operation will be stored by the caller. Valid @@ -301,8 +288,10 @@ type DataSourceConfiguration struct { // * SingleUse specifies that the results won't be stored. // // * - // Storage specifies that the result can be cached or stored in a - // database. + // Storage specifies that the result can be cached or stored in a database. Place + // index resources using HERE as a data provider can't be configured to store + // results for locations in Japan when choosing Storage for the IntendedUse + // parameter. // // Default value: SingleUse IntendedUse IntendedUse @@ -383,7 +372,7 @@ type GeofenceGeometry struct { } // Contains the calculated route's details for each path between a pair of -// positions. The number of legs returned corresponds to one fewer than the total +// positions. The number of legs returned corresponds to one less than the total // number of positions in the request. For example, a route with a departure // position and destination position returns one leg with the positions snapped to // a nearby road @@ -397,13 +386,13 @@ type GeofenceGeometry struct { // // A route with a waypoint between the departure and // destination position returns two legs with the positions snapped to a nearby -// road: +// road.: // -// * Leg 1: The StartPosition is the departure position . The EndPosition is -// the waypoint positon. +// * Leg 1: The StartPosition is the departure position . The EndPosition +// is the waypoint positon. // -// * Leg 2: The StartPosition is the waypoint position. The -// EndPosition is the destination position. +// * Leg 2: The StartPosition is the waypoint position. +// The EndPosition is the destination position. type Leg struct { // The distance between the leg's StartPosition and EndPosition along a calculated @@ -768,50 +757,13 @@ type ListTrackersResponseEntry struct { // Specifies the map tile style selected from an available provider. type MapConfiguration struct { - // Specifies the map style selected from an available data provider. For additional - // information on each map style and to preview each map style, see Esri map styles - // and HERE map styles. Valid Esri - // (https://docs.aws.amazon.com/location/latest/developerguide/esri.html) - // styles: - // - // * VectorEsriDarkGrayCanvas – The Esri Dark Gray Canvas map style. A - // vector basemap with a dark gray, neutral background with minimal colors, labels, - // and features that's designed to draw attention to your thematic content. - // - // * - // RasterEsriImagery – The Esri Imagery map style. A raster basemap that provides - // one meter or better satellite and aerial imagery in many parts of the world and - // lower resolution satellite imagery worldwide. - // - // * VectorEsriLightGrayCanvas – The - // Esri Light Gray Canvas map style, which provides a detailed vector basemap with - // a light gray, neutral background style with minimal colors, labels, and features - // that's designed to draw attention to your thematic content. - // - // * - // VectorEsriTopographic – The Esri Light map style, which provides a detailed - // vector basemap with a classic Esri map style. - // - // * VectorEsriStreets – The Esri - // World Streets map style, which provides a detailed vector basemap for the world - // symbolized with a classic Esri street map style. The vector tile layer is - // similar in content and style to the World Street Map raster map. - // - // * - // VectorEsriNavigation – The Esri World Navigation map style, which provides a - // detailed basemap for the world symbolized with a custom navigation map style - // that's designed for use during the day in mobile devices. - // - // Valid HERE - // Technologies - // (https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) - // styles: - // - // * VectorHereBerlin – The HERE Berlin map style is a high contrast - // detailed base map of the world that blends 3D and 2D rendering. When using HERE - // as your data provider, and selecting the Style VectorHereBerlin, you may not use - // HERE Technologies maps for Asset Management. See the AWS Service Terms - // (https://aws.amazon.com/service-terms/) for Amazon Location Service. + // Specifies the map style selected from an available data provider. Valid styles: + // RasterEsriImagery, VectorEsriStreets, VectorEsriTopographic, + // VectorEsriNavigation, VectorEsriDarkGrayCanvas, VectorEsriLightGrayCanvas, + // VectorHereBerlin. When using HERE as your data provider, and selecting the Style + // VectorHereBerlin, you may not use HERE Maps for Asset Management. See the AWS + // Service Terms (https://aws.amazon.com/service-terms/) for Amazon Location + // Service. // // This member is required. Style *string diff --git a/service/location/validators.go b/service/location/validators.go index d10f2c2d348..8088edc21ac 100644 --- a/service/location/validators.go +++ b/service/location/validators.go @@ -810,106 +810,6 @@ func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } -type validateOpUpdateGeofenceCollection struct { -} - -func (*validateOpUpdateGeofenceCollection) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateGeofenceCollection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateGeofenceCollectionInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateGeofenceCollectionInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateMap struct { -} - -func (*validateOpUpdateMap) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateMap) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateMapInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateMapInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdatePlaceIndex struct { -} - -func (*validateOpUpdatePlaceIndex) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdatePlaceIndex) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdatePlaceIndexInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdatePlaceIndexInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateRouteCalculator struct { -} - -func (*validateOpUpdateRouteCalculator) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateRouteCalculator) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateRouteCalculatorInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateRouteCalculatorInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateTracker struct { -} - -func (*validateOpUpdateTracker) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateTracker) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateTrackerInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateTrackerInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - func addOpAssociateTrackerConsumerValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateTrackerConsumer{}, middleware.After) } @@ -1070,26 +970,6 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } -func addOpUpdateGeofenceCollectionValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateGeofenceCollection{}, middleware.After) -} - -func addOpUpdateMapValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateMap{}, middleware.After) -} - -func addOpUpdatePlaceIndexValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdatePlaceIndex{}, middleware.After) -} - -func addOpUpdateRouteCalculatorValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateRouteCalculator{}, middleware.After) -} - -func addOpUpdateTrackerValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateTracker{}, middleware.After) -} - func validateBatchPutGeofenceRequestEntry(v *types.BatchPutGeofenceRequestEntry) error { if v == nil { return nil @@ -1892,78 +1772,3 @@ func validateOpUntagResourceInput(v *UntagResourceInput) error { return nil } } - -func validateOpUpdateGeofenceCollectionInput(v *UpdateGeofenceCollectionInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateGeofenceCollectionInput"} - if v.CollectionName == nil { - invalidParams.Add(smithy.NewErrParamRequired("CollectionName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateMapInput(v *UpdateMapInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateMapInput"} - if v.MapName == nil { - invalidParams.Add(smithy.NewErrParamRequired("MapName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdatePlaceIndexInput(v *UpdatePlaceIndexInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdatePlaceIndexInput"} - if v.IndexName == nil { - invalidParams.Add(smithy.NewErrParamRequired("IndexName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateRouteCalculatorInput(v *UpdateRouteCalculatorInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateRouteCalculatorInput"} - if v.CalculatorName == nil { - invalidParams.Add(smithy.NewErrParamRequired("CalculatorName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateTrackerInput(v *UpdateTrackerInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateTrackerInput"} - if v.TrackerName == nil { - invalidParams.Add(smithy.NewErrParamRequired("TrackerName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} diff --git a/service/lookoutequipment/go.mod b/service/lookoutequipment/go.mod index 5b461a7bd1f..8b8bd9d10e9 100644 --- a/service/lookoutequipment/go.mod +++ b/service/lookoutequipment/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lookoutequipment/go.sum b/service/lookoutequipment/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/lookoutequipment/go.sum +++ b/service/lookoutequipment/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lookoutmetrics/go.mod b/service/lookoutmetrics/go.mod index 2216f7b4bc7..99e03187ab1 100644 --- a/service/lookoutmetrics/go.mod +++ b/service/lookoutmetrics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lookoutmetrics/go.sum b/service/lookoutmetrics/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/lookoutmetrics/go.sum +++ b/service/lookoutmetrics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lookoutvision/go.mod b/service/lookoutvision/go.mod index 96d5449a646..a1a93e72b56 100644 --- a/service/lookoutvision/go.mod +++ b/service/lookoutvision/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lookoutvision/go.sum b/service/lookoutvision/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/lookoutvision/go.sum +++ b/service/lookoutvision/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/machinelearning/go.mod b/service/machinelearning/go.mod index fea33a59bce..38a216bf2a8 100644 --- a/service/machinelearning/go.mod +++ b/service/machinelearning/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/machinelearning/go.sum b/service/machinelearning/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/machinelearning/go.sum +++ b/service/machinelearning/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/macie/go.mod b/service/macie/go.mod index 9b6d7277d03..2f6d277ba88 100644 --- a/service/macie/go.mod +++ b/service/macie/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/macie/go.sum b/service/macie/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/macie/go.sum +++ b/service/macie/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/macie2/go.mod b/service/macie2/go.mod index ecd8e9fe365..877ac071111 100644 --- a/service/macie2/go.mod +++ b/service/macie2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/macie2/go.sum b/service/macie2/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/macie2/go.sum +++ b/service/macie2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/managedblockchain/go.mod b/service/managedblockchain/go.mod index 0220aaacaf5..37da6541c40 100644 --- a/service/managedblockchain/go.mod +++ b/service/managedblockchain/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/managedblockchain/go.sum b/service/managedblockchain/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/managedblockchain/go.sum +++ b/service/managedblockchain/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/marketplacecatalog/go.mod b/service/marketplacecatalog/go.mod index c5977f38d31..6292740ce6a 100644 --- a/service/marketplacecatalog/go.mod +++ b/service/marketplacecatalog/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacecatalog/go.sum b/service/marketplacecatalog/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/marketplacecatalog/go.sum +++ b/service/marketplacecatalog/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/marketplacecommerceanalytics/go.mod b/service/marketplacecommerceanalytics/go.mod index c4f965cd6ac..b183438e64f 100644 --- a/service/marketplacecommerceanalytics/go.mod +++ b/service/marketplacecommerceanalytics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacecommerceanalytics/go.sum b/service/marketplacecommerceanalytics/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/marketplacecommerceanalytics/go.sum +++ b/service/marketplacecommerceanalytics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/marketplaceentitlementservice/go.mod b/service/marketplaceentitlementservice/go.mod index c1345f820fc..40c4774b0ad 100644 --- a/service/marketplaceentitlementservice/go.mod +++ b/service/marketplaceentitlementservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplaceentitlementservice/go.sum b/service/marketplaceentitlementservice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/marketplaceentitlementservice/go.sum +++ b/service/marketplaceentitlementservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/marketplacemetering/go.mod b/service/marketplacemetering/go.mod index 091d5ca9b71..f827faefe54 100644 --- a/service/marketplacemetering/go.mod +++ b/service/marketplacemetering/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacemetering/go.sum b/service/marketplacemetering/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/marketplacemetering/go.sum +++ b/service/marketplacemetering/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediaconnect/go.mod b/service/mediaconnect/go.mod index e223035e3e4..35672f9ebdb 100644 --- a/service/mediaconnect/go.mod +++ b/service/mediaconnect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/mediaconnect/go.sum b/service/mediaconnect/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/mediaconnect/go.sum +++ b/service/mediaconnect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediaconvert/go.mod b/service/mediaconvert/go.mod index c4b235fb706..e944cde7dbf 100644 --- a/service/mediaconvert/go.mod +++ b/service/mediaconvert/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediaconvert/go.sum b/service/mediaconvert/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mediaconvert/go.sum +++ b/service/mediaconvert/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/medialive/deserializers.go b/service/medialive/deserializers.go index 22becc0790c..2587d7fc424 100644 --- a/service/medialive/deserializers.go +++ b/service/medialive/deserializers.go @@ -13213,55 +13213,6 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription return nil } -func awsRestjson1_deserializeDocumentAudioHlsRenditionSelection(v **types.AudioHlsRenditionSelection, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AudioHlsRenditionSelection - if *v == nil { - sv = &types.AudioHlsRenditionSelection{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "groupId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) - } - sv.GroupId = ptr.String(jtv) - } - - case "name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentAudioLanguageSelection(v **types.AudioLanguageSelection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13568,11 +13519,6 @@ func awsRestjson1_deserializeDocumentAudioSelectorSettings(v **types.AudioSelect for key, value := range shape { switch key { - case "audioHlsRenditionSelection": - if err := awsRestjson1_deserializeDocumentAudioHlsRenditionSelection(&sv.AudioHlsRenditionSelection, value); err != nil { - return err - } - case "audioLanguageSelection": if err := awsRestjson1_deserializeDocumentAudioLanguageSelection(&sv.AudioLanguageSelection, value); err != nil { return err @@ -28214,15 +28160,6 @@ func awsRestjson1_deserializeDocumentWebvttDestinationSettings(v **types.WebvttD for key, value := range shape { switch key { - case "styleControl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected WebvttDestinationStyleControl to be of type string, got %T instead", value) - } - sv.StyleControl = types.WebvttDestinationStyleControl(jtv) - } - default: _, _ = key, value diff --git a/service/medialive/go.mod b/service/medialive/go.mod index 951aaea9b0f..41699483d67 100644 --- a/service/medialive/go.mod +++ b/service/medialive/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/medialive/go.sum b/service/medialive/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/medialive/go.sum +++ b/service/medialive/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/medialive/serializers.go b/service/medialive/serializers.go index fd072ac7809..9ff7104b079 100644 --- a/service/medialive/serializers.go +++ b/service/medialive/serializers.go @@ -4922,23 +4922,6 @@ func awsRestjson1_serializeDocumentAudioDescription(v *types.AudioDescription, v return nil } -func awsRestjson1_serializeDocumentAudioHlsRenditionSelection(v *types.AudioHlsRenditionSelection, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.GroupId != nil { - ok := object.Key("groupId") - ok.String(*v.GroupId) - } - - if v.Name != nil { - ok := object.Key("name") - ok.String(*v.Name) - } - - return nil -} - func awsRestjson1_serializeDocumentAudioLanguageSelection(v *types.AudioLanguageSelection, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5055,13 +5038,6 @@ func awsRestjson1_serializeDocumentAudioSelectorSettings(v *types.AudioSelectorS object := value.Object() defer object.Close() - if v.AudioHlsRenditionSelection != nil { - ok := object.Key("audioHlsRenditionSelection") - if err := awsRestjson1_serializeDocumentAudioHlsRenditionSelection(v.AudioHlsRenditionSelection, ok); err != nil { - return err - } - } - if v.AudioLanguageSelection != nil { ok := object.Key("audioLanguageSelection") if err := awsRestjson1_serializeDocumentAudioLanguageSelection(v.AudioLanguageSelection, ok); err != nil { @@ -10277,10 +10253,5 @@ func awsRestjson1_serializeDocumentWebvttDestinationSettings(v *types.WebvttDest object := value.Object() defer object.Close() - if len(v.StyleControl) > 0 { - ok := object.Key("styleControl") - ok.String(string(v.StyleControl)) - } - return nil } diff --git a/service/medialive/types/enums.go b/service/medialive/types/enums.go index 71d5642300e..5f254648ec4 100644 --- a/service/medialive/types/enums.go +++ b/service/medialive/types/enums.go @@ -4929,22 +4929,3 @@ func (WavCodingMode) Values() []WavCodingMode { "CODING_MODE_8_0", } } - -type WebvttDestinationStyleControl string - -// Enum values for WebvttDestinationStyleControl -const ( - WebvttDestinationStyleControlNoStyleData WebvttDestinationStyleControl = "NO_STYLE_DATA" - WebvttDestinationStyleControlPassthrough WebvttDestinationStyleControl = "PASSTHROUGH" -) - -// Values returns all known values for WebvttDestinationStyleControl. Note that -// this can be expanded in the future, and so it is only as up to date as the -// client. The ordering of this slice is not guaranteed to be stable across -// updates. -func (WebvttDestinationStyleControl) Values() []WebvttDestinationStyleControl { - return []WebvttDestinationStyleControl{ - "NO_STYLE_DATA", - "PASSTHROUGH", - } -} diff --git a/service/medialive/types/types.go b/service/medialive/types/types.go index 70b850a26c9..712f0d85b40 100644 --- a/service/medialive/types/types.go +++ b/service/medialive/types/types.go @@ -269,23 +269,6 @@ type AudioDescription struct { noSmithyDocumentSerde } -// Audio Hls Rendition Selection -type AudioHlsRenditionSelection struct { - - // Specifies the GROUP-ID in the #EXT-X-MEDIA tag of the target HLS audio - // rendition. - // - // This member is required. - GroupId *string - - // Specifies the NAME in the #EXT-X-MEDIA tag of the target HLS audio rendition. - // - // This member is required. - Name *string - - noSmithyDocumentSerde -} - // Audio Language Selection type AudioLanguageSelection struct { @@ -386,9 +369,6 @@ type AudioSelector struct { // Audio Selector Settings type AudioSelectorSettings struct { - // Audio Hls Rendition Selection - AudioHlsRenditionSelection *AudioHlsRenditionSelection - // Audio Language Selection AudioLanguageSelection *AudioLanguageSelection @@ -5447,13 +5427,6 @@ type WavSettings struct { // Webvtt Destination Settings type WebvttDestinationSettings struct { - - // Controls whether the color and position of the source captions is passed through - // to the WebVTT output captions. PASSTHROUGH - Valid only if the source captions - // are EMBEDDED or TELETEXT. NO_STYLE_DATA - Don't pass through the style. The - // output captions will not contain any font styling information. - StyleControl WebvttDestinationStyleControl - noSmithyDocumentSerde } diff --git a/service/medialive/validators.go b/service/medialive/validators.go index 518732da498..46ae0954545 100644 --- a/service/medialive/validators.go +++ b/service/medialive/validators.go @@ -1455,24 +1455,6 @@ func validateAudioDescription(v *types.AudioDescription) error { } } -func validateAudioHlsRenditionSelection(v *types.AudioHlsRenditionSelection) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AudioHlsRenditionSelection"} - if v.GroupId == nil { - invalidParams.Add(smithy.NewErrParamRequired("GroupId")) - } - if v.Name == nil { - invalidParams.Add(smithy.NewErrParamRequired("Name")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateAudioLanguageSelection(v *types.AudioLanguageSelection) error { if v == nil { return nil @@ -1542,11 +1524,6 @@ func validateAudioSelectorSettings(v *types.AudioSelectorSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AudioSelectorSettings"} - if v.AudioHlsRenditionSelection != nil { - if err := validateAudioHlsRenditionSelection(v.AudioHlsRenditionSelection); err != nil { - invalidParams.AddNested("AudioHlsRenditionSelection", err.(smithy.InvalidParamsError)) - } - } if v.AudioLanguageSelection != nil { if err := validateAudioLanguageSelection(v.AudioLanguageSelection); err != nil { invalidParams.AddNested("AudioLanguageSelection", err.(smithy.InvalidParamsError)) diff --git a/service/mediapackage/go.mod b/service/mediapackage/go.mod index cf1e0ce5df8..8f4535c5b83 100644 --- a/service/mediapackage/go.mod +++ b/service/mediapackage/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediapackage/go.sum b/service/mediapackage/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mediapackage/go.sum +++ b/service/mediapackage/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediapackagevod/go.mod b/service/mediapackagevod/go.mod index 87442ea239e..05709a22a06 100644 --- a/service/mediapackagevod/go.mod +++ b/service/mediapackagevod/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediapackagevod/go.sum b/service/mediapackagevod/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mediapackagevod/go.sum +++ b/service/mediapackagevod/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediastore/go.mod b/service/mediastore/go.mod index a659192152d..d382cd225cf 100644 --- a/service/mediastore/go.mod +++ b/service/mediastore/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediastore/go.sum b/service/mediastore/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mediastore/go.sum +++ b/service/mediastore/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediastoredata/go.mod b/service/mediastoredata/go.mod index 71db386aad6..6f4516906d7 100644 --- a/service/mediastoredata/go.mod +++ b/service/mediastoredata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediastoredata/go.sum b/service/mediastoredata/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mediastoredata/go.sum +++ b/service/mediastoredata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediatailor/go.mod b/service/mediatailor/go.mod index 90b9c68999e..d2921051b6b 100644 --- a/service/mediatailor/go.mod +++ b/service/mediatailor/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediatailor/go.sum b/service/mediatailor/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mediatailor/go.sum +++ b/service/mediatailor/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mgn/go.mod b/service/mgn/go.mod index ce5acaa729e..ef9336b1260 100644 --- a/service/mgn/go.mod +++ b/service/mgn/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mgn/go.sum b/service/mgn/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mgn/go.sum +++ b/service/mgn/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/migrationhub/go.mod b/service/migrationhub/go.mod index 950023d30b2..6578818dae8 100644 --- a/service/migrationhub/go.mod +++ b/service/migrationhub/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhub/go.sum b/service/migrationhub/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/migrationhub/go.sum +++ b/service/migrationhub/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/migrationhubconfig/go.mod b/service/migrationhubconfig/go.mod index 73221803f3e..951d7050043 100644 --- a/service/migrationhubconfig/go.mod +++ b/service/migrationhubconfig/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhubconfig/go.sum b/service/migrationhubconfig/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/migrationhubconfig/go.sum +++ b/service/migrationhubconfig/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mobile/go.mod b/service/mobile/go.mod index 49cd079082b..e3275160423 100644 --- a/service/mobile/go.mod +++ b/service/mobile/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mobile/go.sum b/service/mobile/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mobile/go.sum +++ b/service/mobile/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mq/go.mod b/service/mq/go.mod index 1debf277a72..da8516e3c6f 100644 --- a/service/mq/go.mod +++ b/service/mq/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mq/go.sum b/service/mq/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mq/go.sum +++ b/service/mq/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mturk/go.mod b/service/mturk/go.mod index 20bc8028730..51233419fff 100644 --- a/service/mturk/go.mod +++ b/service/mturk/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mturk/go.sum b/service/mturk/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mturk/go.sum +++ b/service/mturk/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mwaa/go.mod b/service/mwaa/go.mod index 743da7ba6d0..0ad1c0cbbbc 100644 --- a/service/mwaa/go.mod +++ b/service/mwaa/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mwaa/go.sum b/service/mwaa/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/mwaa/go.sum +++ b/service/mwaa/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/neptune/go.mod b/service/neptune/go.mod index bd424835d9f..3fda58e5bf9 100644 --- a/service/neptune/go.mod +++ b/service/neptune/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/neptune/go.sum b/service/neptune/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/neptune/go.sum +++ b/service/neptune/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/networkfirewall/go.mod b/service/networkfirewall/go.mod index 424feaf6bce..86013524b24 100644 --- a/service/networkfirewall/go.mod +++ b/service/networkfirewall/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/networkfirewall/go.sum b/service/networkfirewall/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/networkfirewall/go.sum +++ b/service/networkfirewall/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/networkmanager/go.mod b/service/networkmanager/go.mod index 9dcc1181011..bd699242ef2 100644 --- a/service/networkmanager/go.mod +++ b/service/networkmanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/networkmanager/go.sum b/service/networkmanager/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/networkmanager/go.sum +++ b/service/networkmanager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/nimble/go.mod b/service/nimble/go.mod index 43e3e2dd116..b66ba131d59 100644 --- a/service/nimble/go.mod +++ b/service/nimble/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/nimble/go.sum b/service/nimble/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/nimble/go.sum +++ b/service/nimble/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/opsworks/go.mod b/service/opsworks/go.mod index e012f9887b4..d2c2014c59a 100644 --- a/service/opsworks/go.mod +++ b/service/opsworks/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/opsworks/go.sum +++ b/service/opsworks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/opsworkscm/go.mod b/service/opsworkscm/go.mod index a15ff6d4785..e0a0e24fffe 100644 --- a/service/opsworkscm/go.mod +++ b/service/opsworkscm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/opsworkscm/go.sum +++ b/service/opsworkscm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/organizations/go.mod b/service/organizations/go.mod index bc8621ea922..9cce1c76c97 100644 --- a/service/organizations/go.mod +++ b/service/organizations/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/organizations/go.sum b/service/organizations/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/organizations/go.sum +++ b/service/organizations/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/outposts/go.mod b/service/outposts/go.mod index 1b0ccc6dbe3..5d007645798 100644 --- a/service/outposts/go.mod +++ b/service/outposts/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/outposts/go.sum b/service/outposts/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/outposts/go.sum +++ b/service/outposts/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/personalize/api_op_CreateCampaign.go b/service/personalize/api_op_CreateCampaign.go index 3275ecc976f..00c05ada210 100644 --- a/service/personalize/api_op_CreateCampaign.go +++ b/service/personalize/api_op_CreateCampaign.go @@ -66,6 +66,12 @@ func (c *Client) CreateCampaign(ctx context.Context, params *CreateCampaignInput type CreateCampaignInput struct { + // Specifies the requested minimum provisioned transactions (recommendations) per + // second that Amazon Personalize will support. + // + // This member is required. + MinProvisionedTPS *int32 + // A name for the new campaign. The campaign name must be unique within your // account. // @@ -80,10 +86,6 @@ type CreateCampaignInput struct { // The configuration details of a campaign. CampaignConfig *types.CampaignConfig - // Specifies the requested minimum provisioned transactions (recommendations) per - // second that Amazon Personalize will support. - MinProvisionedTPS *int32 - noSmithyDocumentSerde } diff --git a/service/personalize/api_op_CreateDatasetExportJob.go b/service/personalize/api_op_CreateDatasetExportJob.go index c0e5eda3539..c77d3634292 100644 --- a/service/personalize/api_op_CreateDatasetExportJob.go +++ b/service/personalize/api_op_CreateDatasetExportJob.go @@ -13,8 +13,9 @@ import ( // Creates a job that exports data from your dataset to an Amazon S3 bucket. To // allow Amazon Personalize to export the training data, you must specify an -// service-linked IAM role that gives Amazon Personalize PutObject permissions for -// your Amazon S3 bucket. For information, see Exporting a dataset +// service-linked AWS Identity and Access Management (IAM) role that gives Amazon +// Personalize PutObject permissions for your Amazon S3 bucket. For information, +// see Exporting a dataset // (https://docs.aws.amazon.com/personalize/latest/dg/export-data.html) in the // Amazon Personalize developer guide. Status A dataset export job can be in one of // the following states: @@ -59,8 +60,8 @@ type CreateDatasetExportJobInput struct { // This member is required. JobOutput *types.DatasetExportJobOutput - // The Amazon Resource Name (ARN) of the IAM service role that has permissions to - // add data to your output Amazon S3 bucket. + // The Amazon Resource Name (ARN) of the AWS Identity and Access Management service + // role that has permissions to add data to your output Amazon S3 bucket. // // This member is required. RoleArn *string diff --git a/service/personalize/api_op_CreateDatasetGroup.go b/service/personalize/api_op_CreateDatasetGroup.go index b48fd63f62d..3903920a0a2 100644 --- a/service/personalize/api_op_CreateDatasetGroup.go +++ b/service/personalize/api_op_CreateDatasetGroup.go @@ -34,10 +34,10 @@ import ( // the dataset group, call DescribeDatasetGroup. If the status shows as CREATE // FAILED, the response includes a failureReason key, which describes why the // creation failed. You must wait until the status of the dataset group is ACTIVE -// before adding a dataset to the group. You can specify an Key Management Service -// (KMS) key to encrypt the datasets in the group. If you specify a KMS key, you -// must also include an Identity and Access Management (IAM) role that has -// permission to access the key. APIs that require a dataset group ARN in the +// before adding a dataset to the group. You can specify an AWS Key Management +// Service (KMS) key to encrypt the datasets in the group. If you specify a KMS +// key, you must also include an AWS Identity and Access Management (IAM) role that +// has permission to access the key. APIs that require a dataset group ARN in the // request // // * CreateDataset @@ -76,13 +76,11 @@ type CreateDatasetGroupInput struct { // This member is required. Name *string - // The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to - // encrypt the datasets. + // The Amazon Resource Name (ARN) of a KMS key used to encrypt the datasets. KmsKeyArn *string - // The ARN of the Identity and Access Management (IAM) role that has permissions to - // access the Key Management Service (KMS) key. Supplying an IAM role is only valid - // when also specifying a KMS key. + // The ARN of the IAM role that has permissions to access the KMS key. Supplying an + // IAM role is only valid when also specifying a KMS key. RoleArn *string noSmithyDocumentSerde diff --git a/service/personalize/api_op_CreateDatasetImportJob.go b/service/personalize/api_op_CreateDatasetImportJob.go index 10cc9d630c8..b89f691dff8 100644 --- a/service/personalize/api_op_CreateDatasetImportJob.go +++ b/service/personalize/api_op_CreateDatasetImportJob.go @@ -13,10 +13,11 @@ import ( // Creates a job that imports training data from your data source (an Amazon S3 // bucket) to an Amazon Personalize dataset. To allow Amazon Personalize to import -// the training data, you must specify an IAM service role that has permission to -// read from the data source, as Amazon Personalize makes a copy of your data and -// processes it internally. For information on granting access to your Amazon S3 -// bucket, see Giving Amazon Personalize Access to Amazon S3 Resources +// the training data, you must specify an AWS Identity and Access Management (IAM) +// service role that has permission to read from the data source, as Amazon +// Personalize makes a copy of your data and processes it in an internal AWS +// system. For information on granting access to your Amazon S3 bucket, see Giving +// Amazon Personalize Access to Amazon S3 Resources // (https://docs.aws.amazon.com/personalize/latest/dg/granting-personalize-s3-access.html). // The dataset import job replaces any existing data in the dataset that you // imported in bulk. Status A dataset import job can be in one of the following diff --git a/service/personalize/go.mod b/service/personalize/go.mod index 222dac21122..6d63508c6f4 100644 --- a/service/personalize/go.mod +++ b/service/personalize/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalize/go.sum b/service/personalize/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/personalize/go.sum +++ b/service/personalize/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/personalize/types/types.go b/service/personalize/types/types.go index d901efe94d7..63103710def 100644 --- a/service/personalize/types/types.go +++ b/service/personalize/types/types.go @@ -450,8 +450,8 @@ type DatasetExportJob struct { // updated. LastUpdatedDateTime *time.Time - // The Amazon Resource Name (ARN) of the IAM service role that has permissions to - // add data to your output Amazon S3 bucket. + // The Amazon Resource Name (ARN) of the AWS Identity and Access Management service + // role that has permissions to add data to your output Amazon S3 bucket. RoleArn *string // The status of the dataset export job. A dataset export job can be in one of the @@ -510,7 +510,7 @@ type DatasetExportJobSummary struct { // a dataset and add it to a dataset group by calling CreateDataset. The dataset // group is used to create and train a solution by calling CreateSolution. A // dataset group can contain only one of each type of dataset. You can specify an -// Key Management Service (KMS) key to encrypt the datasets in the group. +// AWS Key Management Service (KMS) key to encrypt the datasets in the group. type DatasetGroup struct { // The creation date and time (in Unix time) of the dataset group. @@ -522,8 +522,7 @@ type DatasetGroup struct { // If creating a dataset group fails, provides the reason why. FailureReason *string - // The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to - // encrypt the datasets. + // The Amazon Resource Name (ARN) of the KMS key used to encrypt the datasets. KmsKeyArn *string // The last update date and time (in Unix time) of the dataset group. @@ -607,8 +606,8 @@ type DatasetImportJob struct { // The date and time (in Unix time) the dataset was last updated. LastUpdatedDateTime *time.Time - // The ARN of the IAM role that has permissions to read from the Amazon S3 data - // source. + // The ARN of the AWS Identity and Access Management (IAM) role that has + // permissions to read from the Amazon S3 data source. RoleArn *string // The status of the dataset import job. A dataset import job can be in one of the @@ -818,7 +817,7 @@ type DefaultIntegerHyperParameterRange struct { // Provides information about an event tracker. type EventTracker struct { - // The Amazon Web Services account that owns the event tracker. + // The Amazon AWS account that owns the event tracker. AccountId *string // The date and time (in Unix format) that the event tracker was created. @@ -1139,9 +1138,9 @@ type S3DataConfig struct { // This member is required. Path *string - // The Amazon Resource Name (ARN) of the Key Management Service (KMS) key that - // Amazon Personalize uses to encrypt or decrypt the input and output files of a - // batch inference job. + // The Amazon Resource Name (ARN) of the Amazon Key Management Service (KMS) key + // that Amazon Personalize uses to encrypt or decrypt the input and output files of + // a batch inference job. KmsKeyArn *string noSmithyDocumentSerde diff --git a/service/personalize/validators.go b/service/personalize/validators.go index a978fbf2632..824850d8218 100644 --- a/service/personalize/validators.go +++ b/service/personalize/validators.go @@ -968,6 +968,9 @@ func validateOpCreateCampaignInput(v *CreateCampaignInput) error { if v.SolutionVersionArn == nil { invalidParams.Add(smithy.NewErrParamRequired("SolutionVersionArn")) } + if v.MinProvisionedTPS == nil { + invalidParams.Add(smithy.NewErrParamRequired("MinProvisionedTPS")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/personalizeevents/go.mod b/service/personalizeevents/go.mod index af9d9df4914..d516cc6c66e 100644 --- a/service/personalizeevents/go.mod +++ b/service/personalizeevents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalizeevents/go.sum b/service/personalizeevents/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/personalizeevents/go.sum +++ b/service/personalizeevents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/personalizeruntime/go.mod b/service/personalizeruntime/go.mod index ac6d983bedb..2c9d964f96f 100644 --- a/service/personalizeruntime/go.mod +++ b/service/personalizeruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalizeruntime/go.sum b/service/personalizeruntime/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/personalizeruntime/go.sum +++ b/service/personalizeruntime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pi/go.mod b/service/pi/go.mod index 29ed66795d4..7039c412ca7 100644 --- a/service/pi/go.mod +++ b/service/pi/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pi/go.sum b/service/pi/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/pi/go.sum +++ b/service/pi/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pinpoint/go.mod b/service/pinpoint/go.mod index 6d49206b8e6..f596d7ed3a4 100644 --- a/service/pinpoint/go.mod +++ b/service/pinpoint/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpoint/go.sum b/service/pinpoint/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/pinpoint/go.sum +++ b/service/pinpoint/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pinpointemail/go.mod b/service/pinpointemail/go.mod index d80178b34a7..12400c2ed72 100644 --- a/service/pinpointemail/go.mod +++ b/service/pinpointemail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpointemail/go.sum b/service/pinpointemail/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/pinpointemail/go.sum +++ b/service/pinpointemail/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pinpointsmsvoice/go.mod b/service/pinpointsmsvoice/go.mod index a62c91d02ca..6f2609872ba 100644 --- a/service/pinpointsmsvoice/go.mod +++ b/service/pinpointsmsvoice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpointsmsvoice/go.sum b/service/pinpointsmsvoice/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/pinpointsmsvoice/go.sum +++ b/service/pinpointsmsvoice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/polly/go.mod b/service/polly/go.mod index 477e826a504..2d27b807605 100644 --- a/service/polly/go.mod +++ b/service/polly/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/polly/go.sum b/service/polly/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/polly/go.sum +++ b/service/polly/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pricing/go.mod b/service/pricing/go.mod index 352a5b52639..9a33c9f7a13 100644 --- a/service/pricing/go.mod +++ b/service/pricing/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pricing/go.sum b/service/pricing/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/pricing/go.sum +++ b/service/pricing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/proton/api_op_AcceptEnvironmentAccountConnection.go b/service/proton/api_op_AcceptEnvironmentAccountConnection.go index 53f61ec9822..9887b79d0f1 100644 --- a/service/proton/api_op_AcceptEnvironmentAccountConnection.go +++ b/service/proton/api_op_AcceptEnvironmentAccountConnection.go @@ -15,9 +15,7 @@ import ( // When the environment account connection request is accepted, AWS Proton can use // the associated IAM role to provision environment infrastructure resources in the // associated environment account. For more information, see Environment account -// connections -// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// connections in the AWS Proton Administration guide. func (c *Client) AcceptEnvironmentAccountConnection(ctx context.Context, params *AcceptEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*AcceptEnvironmentAccountConnectionOutput, error) { if params == nil { params = &AcceptEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_CancelEnvironmentDeployment.go b/service/proton/api_op_CancelEnvironmentDeployment.go index 00ad49cc33f..51ac771b93d 100644 --- a/service/proton/api_op_CancelEnvironmentDeployment.go +++ b/service/proton/api_op_CancelEnvironmentDeployment.go @@ -14,7 +14,7 @@ import ( // Attempts to cancel an environment deployment on an UpdateEnvironment action, if // the deployment is IN_PROGRESS. For more information, see Update an environment // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-update.html) in the -// AWS Proton Administrator guide. The following list includes potential +// AWS Proton Administration guide. The following list includes potential // cancellation scenarios. // // * If the cancellation attempt succeeds, the resulting diff --git a/service/proton/api_op_CancelServiceInstanceDeployment.go b/service/proton/api_op_CancelServiceInstanceDeployment.go index c96fb2325f6..a5d910ca80e 100644 --- a/service/proton/api_op_CancelServiceInstanceDeployment.go +++ b/service/proton/api_op_CancelServiceInstanceDeployment.go @@ -13,7 +13,7 @@ import ( // Attempts to cancel a service instance deployment on an UpdateServiceInstance // action, if the deployment is IN_PROGRESS. For more information, see Update a -// service instance in the AWS Proton Administrator guide +// service instance in the AWS Proton Administration guide // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-instance-update.html) // or the AWS Proton User guide // (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-instance-update.html). diff --git a/service/proton/api_op_CancelServicePipelineDeployment.go b/service/proton/api_op_CancelServicePipelineDeployment.go index cb7f9fd9fed..f94ed96c40b 100644 --- a/service/proton/api_op_CancelServicePipelineDeployment.go +++ b/service/proton/api_op_CancelServicePipelineDeployment.go @@ -13,7 +13,7 @@ import ( // Attempts to cancel a service pipeline deployment on an UpdateServicePipeline // action, if the deployment is IN_PROGRESS. For more information, see Update a -// service pipeline in the AWS Proton Administrator guide +// service pipeline in the AWS Proton Administration guide // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-pipeline-update.html) // or the AWS Proton User guide // (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-pipeline-update.html). diff --git a/service/proton/api_op_CreateEnvironment.go b/service/proton/api_op_CreateEnvironment.go index 20e8e31048b..936df5858cd 100644 --- a/service/proton/api_op_CreateEnvironment.go +++ b/service/proton/api_op_CreateEnvironment.go @@ -15,7 +15,7 @@ import ( // environment template that defines infrastructure and resources that can be // shared across services. For more information, see the Environments // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-environments.html) in -// the AWS Proton Administrator Guide. +// the AWS Proton Administration Guide. func (c *Client) CreateEnvironment(ctx context.Context, params *CreateEnvironmentInput, optFns ...func(*Options)) (*CreateEnvironmentOutput, error) { if params == nil { params = &CreateEnvironmentInput{} @@ -40,8 +40,8 @@ type CreateEnvironmentInput struct { // A link to a YAML formatted spec file that provides inputs as defined in the // environment template bundle schema file. For more information, see Environments - // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-environments.html) in - // the AWS Proton Administrator Guide. + // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-managing-environments.html) + // in the AWS Proton Administration Guide. // // This value conforms to the media type: application/yaml // @@ -55,8 +55,8 @@ type CreateEnvironmentInput struct { // The name of the environment template. For more information, see Environment // Templates - // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-templates.html) in the - // AWS Proton Administrator Guide. + // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-templates.html) in + // the AWS Proton Administration Guide. // // This member is required. TemplateName *string @@ -68,9 +68,7 @@ type CreateEnvironmentInput struct { // provisioning your environment infrastructure resources to an environment // account. You must include either the environmentAccountConnectionId or // protonServiceRoleArn parameter and value. For more information, see Environment - // account connections - // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) - // in the AWS Proton Administrator guide. + // account connections in the AWS Proton Administration guide. EnvironmentAccountConnectionId *string // The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS @@ -79,7 +77,7 @@ type CreateEnvironmentInput struct { ProtonServiceRoleArn *string // Create tags for your environment. For more information, see AWS Proton resources - // and tagging in the AWS Proton Administrator Guide + // and tagging in the AWS Proton Administration Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_CreateEnvironmentAccountConnection.go b/service/proton/api_op_CreateEnvironmentAccountConnection.go index 3591f96bb6f..b7cf7f5fe14 100644 --- a/service/proton/api_op_CreateEnvironmentAccountConnection.go +++ b/service/proton/api_op_CreateEnvironmentAccountConnection.go @@ -13,12 +13,10 @@ import ( // Create an environment account connection in an environment account so that // environment infrastructure resources can be provisioned in the environment -// account from a management account. An environment account connection is a secure -// bi-directional connection between a management account and an environment +// account from the management account. An environment account connection is a +// secure bi-directional connection between a management account and an environment // account that maintains authorization and permissions. For more information, see -// Environment account connections -// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// Environment account connections in the AWS Proton Administration guide. func (c *Client) CreateEnvironmentAccountConnection(ctx context.Context, params *CreateEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*CreateEnvironmentAccountConnectionOutput, error) { if params == nil { params = &CreateEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_CreateEnvironmentTemplate.go b/service/proton/api_op_CreateEnvironmentTemplate.go index ddf8232cd8f..4f634391cea 100644 --- a/service/proton/api_op_CreateEnvironmentTemplate.go +++ b/service/proton/api_op_CreateEnvironmentTemplate.go @@ -13,22 +13,23 @@ import ( // Create an environment template for AWS Proton. For more information, see // Environment Templates -// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-templates.html) in the -// AWS Proton Administrator Guide. You can create an environment template in one of -// the two following ways: +// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-templates.html) in +// the AWS Proton Administration Guide. You can create an environment template in +// one of the two following ways: // -// * Register and publish a standard environment template -// that instructs AWS Proton to deploy and manage environment infrastructure. +// * Register and publish a standard environment +// template that instructs AWS Proton to deploy and manage environment +// infrastructure. // -// * -// Register and publish a customer managed environment template that connects AWS -// Proton to your existing provisioned infrastructure that you manage. AWS Proton -// doesn't manage your existing provisioned infrastructure. To create an -// environment template for customer provisioned and managed infrastructure, -// include the provisioning parameter and set the value to CUSTOMER_MANAGED. For -// more information, see Register and publish an environment template -// (https://docs.aws.amazon.com/proton/latest/adminguide/template-create.html) in -// the AWS Proton Administrator Guide. +// * Register and publish a customer managed environment template +// that connects AWS Proton to your existing provisioned infrastructure that you +// manage. AWS Proton doesn't manage your existing provisioned infrastructure. To +// create an environment template for customer provisioned and managed +// infrastructure, include the provisioning parameter and set the value to +// CUSTOMER_MANAGED. For more information, see Register and publish an environment +// template +// (https://docs.aws.amazon.com/proton/latest/adminguide/env-template-v1.html) in +// the AWS Proton Administration Guide. func (c *Client) CreateEnvironmentTemplate(ctx context.Context, params *CreateEnvironmentTemplateInput, optFns ...func(*Options)) (*CreateEnvironmentTemplateOutput, error) { if params == nil { params = &CreateEnvironmentTemplateInput{} @@ -65,7 +66,7 @@ type CreateEnvironmentTemplateInput struct { Provisioning types.Provisioning // Create tags for your environment template. For more information, see AWS Proton - // resources and tagging in the AWS Proton Administrator Guide + // resources and tagging in the AWS Proton Administration Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_CreateService.go b/service/proton/api_op_CreateService.go index fc7ab23b498..083dac56628 100644 --- a/service/proton/api_op_CreateService.go +++ b/service/proton/api_op_CreateService.go @@ -15,7 +15,7 @@ import ( // service template and often includes several service instances and pipeline. For // more information, see Services // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-services.html) in the -// AWS Proton Administrator Guide and Services +// AWS Proton Administration Guide and Services // (https://docs.aws.amazon.com/proton/latest/userguide/ug-service.html) in the AWS // Proton User Guide. func (c *Client) CreateService(ctx context.Context, params *CreateServiceInput, optFns ...func(*Options)) (*CreateServiceOutput, error) { @@ -45,7 +45,7 @@ type CreateServiceInput struct { // inputs in the spec if your service template doesn’t include a service pipeline. // For more information, see Create a service // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-create-svc.html.html) - // in the AWS Proton Administrator Guide and Create a service + // in the AWS Proton Administration Guide and Create a service // (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-create.html) in the // AWS Proton User Guide. // @@ -73,11 +73,11 @@ type CreateServiceInput struct { // A description of the AWS Proton service. Description *string - // The Amazon Resource Name (ARN) of the repository connection. For more - // information, see Set up repository connection - // (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#setting-up-vcontrol) - // in the AWS Proton Administrator Guide and Setting up with AWS Proton - // (https://docs.aws.amazon.com/proton/latest/userguide/proton-setup.html#setup-repo-connection) + // The ARN of the repository connection. For more information, see Set up + // repository connection + // (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#settingSS-up-vcontrol) + // in the AWS Proton Administration Guide and Getting started + // (https://docs.aws.amazon.com/proton/latest/userguide/ug-getting-started.html#getting-started-step1) // in the AWS Proton User Guide. Don't include this parameter if your service // template doesn't include a service pipeline. RepositoryConnectionArn *string @@ -87,7 +87,7 @@ type CreateServiceInput struct { RepositoryId *string // Create tags for your service. For more information, see AWS Proton resources and - // tagging in the AWS Proton Administrator Guide + // tagging in the AWS Proton Administration Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_CreateServiceTemplate.go b/service/proton/api_op_CreateServiceTemplate.go index ab6d5af1f79..c8306da1d8e 100644 --- a/service/proton/api_op_CreateServiceTemplate.go +++ b/service/proton/api_op_CreateServiceTemplate.go @@ -19,7 +19,7 @@ import ( // infrastructure defined by the selected service template. For more information, // see Service Templates // (https://docs.aws.amazon.com/proton/latest/adminguide/managing-svc-templates.html) -// in the AWS Proton Administrator Guide. +// in the AWS Proton Administration Guide. func (c *Client) CreateServiceTemplate(ctx context.Context, params *CreateServiceTemplateInput, optFns ...func(*Options)) (*CreateServiceTemplateOutput, error) { if params == nil { params = &CreateServiceTemplateInput{} @@ -55,12 +55,12 @@ type CreateServiceTemplateInput struct { // included, this parameter indicates that an AWS Proton service pipeline won't be // included for your service. Once specified, this parameter can't be changed. For // more information, see Service template bundles - // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-template-bundles.html) - // in the AWS Proton Administrator Guide. + // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-template-bundles.html) + // in the AWS Proton Administration Guide. PipelineProvisioning types.Provisioning // Create tags for your service template. For more information, see AWS Proton - // resources and tagging in the AWS Proton Administrator Guide + // resources and tagging in the AWS Proton Administration Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_DeleteEnvironmentAccountConnection.go b/service/proton/api_op_DeleteEnvironmentAccountConnection.go index bcfa1ef3fd8..ec9d891159a 100644 --- a/service/proton/api_op_DeleteEnvironmentAccountConnection.go +++ b/service/proton/api_op_DeleteEnvironmentAccountConnection.go @@ -17,9 +17,8 @@ import ( // until a new environment account connection is accepted for the environment // account and associated environment. You're responsible for cleaning up // provisioned resources that remain without an environment connection. For more -// information, see Environment account connections -// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// information, see Environment account connections in the AWS Proton +// Administration guide. func (c *Client) DeleteEnvironmentAccountConnection(ctx context.Context, params *DeleteEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*DeleteEnvironmentAccountConnectionOutput, error) { if params == nil { params = &DeleteEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_GetEnvironmentAccountConnection.go b/service/proton/api_op_GetEnvironmentAccountConnection.go index 28687aa2787..ae9741c9839 100644 --- a/service/proton/api_op_GetEnvironmentAccountConnection.go +++ b/service/proton/api_op_GetEnvironmentAccountConnection.go @@ -12,9 +12,8 @@ import ( ) // In an environment account, view the detail data for an environment account -// connection. For more information, see Environment account connections -// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// connection. For more information, see Environment account connections in the AWS +// Proton Administration guide. func (c *Client) GetEnvironmentAccountConnection(ctx context.Context, params *GetEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*GetEnvironmentAccountConnectionOutput, error) { if params == nil { params = &GetEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_ListEnvironmentAccountConnections.go b/service/proton/api_op_ListEnvironmentAccountConnections.go index 86cc0f77b29..e280811c2ec 100644 --- a/service/proton/api_op_ListEnvironmentAccountConnections.go +++ b/service/proton/api_op_ListEnvironmentAccountConnections.go @@ -13,9 +13,7 @@ import ( ) // View a list of environment account connections. For more information, see -// Environment account connections -// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// Environment account connections in the AWS Proton Administration guide. func (c *Client) ListEnvironmentAccountConnections(ctx context.Context, params *ListEnvironmentAccountConnectionsInput, optFns ...func(*Options)) (*ListEnvironmentAccountConnectionsOutput, error) { if params == nil { params = &ListEnvironmentAccountConnectionsInput{} diff --git a/service/proton/api_op_ListTagsForResource.go b/service/proton/api_op_ListTagsForResource.go index bbc75b16e08..90105bd163d 100644 --- a/service/proton/api_op_ListTagsForResource.go +++ b/service/proton/api_op_ListTagsForResource.go @@ -13,7 +13,7 @@ import ( ) // List tags for a resource. For more information, see AWS Proton resources and -// tagging in the AWS Proton Administrator Guide +// tagging in the AWS Proton Administration Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). @@ -34,7 +34,7 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes type ListTagsForResourceInput struct { - // The Amazon Resource Name (ARN) of the resource for the listed tags. + // The ARN of the resource for the listed tags. // // This member is required. ResourceArn *string diff --git a/service/proton/api_op_RejectEnvironmentAccountConnection.go b/service/proton/api_op_RejectEnvironmentAccountConnection.go index 1cfe4f4b08e..e70cfecd423 100644 --- a/service/proton/api_op_RejectEnvironmentAccountConnection.go +++ b/service/proton/api_op_RejectEnvironmentAccountConnection.go @@ -15,9 +15,8 @@ import ( // environment account. After you reject an environment account connection request, // you won’t be able to accept or use the rejected environment account connection. // You can’t reject an environment account connection that is connected to an -// environment. For more information, see Environment account connections -// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// environment. For more information, see Environment account connections in the +// AWS Proton Administration guide. func (c *Client) RejectEnvironmentAccountConnection(ctx context.Context, params *RejectEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*RejectEnvironmentAccountConnectionOutput, error) { if params == nil { params = &RejectEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_TagResource.go b/service/proton/api_op_TagResource.go index 2670f0b4f8e..8403b66e3b0 100644 --- a/service/proton/api_op_TagResource.go +++ b/service/proton/api_op_TagResource.go @@ -12,7 +12,7 @@ import ( ) // Tag a resource. For more information, see AWS Proton resources and tagging in -// the AWS Proton Administrator Guide +// the AWS Proton Administration Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_UntagResource.go b/service/proton/api_op_UntagResource.go index 731b83829db..7f17588b726 100644 --- a/service/proton/api_op_UntagResource.go +++ b/service/proton/api_op_UntagResource.go @@ -11,7 +11,7 @@ import ( ) // Remove a tag from a resource. For more information, see AWS Proton resources and -// tagging in the AWS Proton Administrator Guide +// tagging in the AWS Proton Administration Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_UpdateEnvironment.go b/service/proton/api_op_UpdateEnvironment.go index 9796f97667c..70e9f37600f 100644 --- a/service/proton/api_op_UpdateEnvironment.go +++ b/service/proton/api_op_UpdateEnvironment.go @@ -16,7 +16,7 @@ import ( // to update or connect to an environment account connection. You can only update // to a new environment account connection if it was created in the same // environment account that the current environment account connection was created -// in and is associated with the current environment. If the environment isn't +// in and associated with the current environment. If the environment isn't // associated with an environment account connection, don't update or include the // environmentAccountConnectionId parameter to update or connect to an environment // account connection. You can update either the environmentAccountConnectionId or @@ -78,12 +78,12 @@ type UpdateEnvironmentInput struct { // The ID of the environment account connection. You can only update to a new // environment account connection if it was created in the same environment account - // that the current environment account connection was created in and is associated + // that the current environment account connection was created in and associated // with the current environment. EnvironmentAccountConnectionId *string - // The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS - // Proton to make API calls to other services your behalf. + // The ARN of the AWS Proton service role that allows AWS Proton to make API calls + // to other services your behalf. ProtonServiceRoleArn *string // The formatted specification that defines the update. diff --git a/service/proton/api_op_UpdateEnvironmentAccountConnection.go b/service/proton/api_op_UpdateEnvironmentAccountConnection.go index 3b64392a83f..7e38efb4b61 100644 --- a/service/proton/api_op_UpdateEnvironmentAccountConnection.go +++ b/service/proton/api_op_UpdateEnvironmentAccountConnection.go @@ -12,9 +12,8 @@ import ( ) // In an environment account, update an environment account connection to use a new -// IAM role. For more information, see Environment account connections -// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// IAM role. For more information, see Environment account connections in the AWS +// Proton Administration guide. func (c *Client) UpdateEnvironmentAccountConnection(ctx context.Context, params *UpdateEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*UpdateEnvironmentAccountConnectionOutput, error) { if params == nil { params = &UpdateEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_UpdateService.go b/service/proton/api_op_UpdateService.go index f877ddf3f0e..3a24e7084aa 100644 --- a/service/proton/api_op_UpdateService.go +++ b/service/proton/api_op_UpdateService.go @@ -43,7 +43,7 @@ type UpdateServiceInput struct { // Lists the service instances to add and the existing service instances to remain. // Omit the existing service instances to delete from the list. Don't include edits // to the existing service instances or pipeline. For more information, see Edit a - // service in the AWS Proton Administrator Guide + // service in the AWS Proton Administration Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-update.html) or the // AWS Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-update.html). diff --git a/service/proton/doc.go b/service/proton/doc.go index 65c8e86d671..cc5e9732f2a 100644 --- a/service/proton/doc.go +++ b/service/proton/doc.go @@ -23,7 +23,7 @@ // applications that are running on AWS Proton, developers need permissions to the // service create, list, update and delete API operations and the service instance // list and update API operations. To learn more about AWS Proton administration, -// see the AWS Proton Administrator Guide +// see the AWS Proton Administration Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/Welcome.html). To learn // more about deploying serverless and containerized applications on AWS Proton, // see the AWS Proton User Guide diff --git a/service/proton/go.mod b/service/proton/go.mod index 0c6c9da3da0..dbef26c710a 100644 --- a/service/proton/go.mod +++ b/service/proton/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/proton/go.sum b/service/proton/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/proton/go.sum +++ b/service/proton/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/proton/types/errors.go b/service/proton/types/errors.go index 8681cbdd717..04ca2b918bb 100644 --- a/service/proton/types/errors.go +++ b/service/proton/types/errors.go @@ -85,7 +85,7 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit // A quota was exceeded. For more information, see AWS Proton Quotas // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) in the AWS -// Proton Administrator Guide. +// Proton Administration Guide. type ServiceQuotaExceededException struct { Message *string diff --git a/service/proton/types/types.go b/service/proton/types/types.go index 661ad251a28..96fa77726fa 100644 --- a/service/proton/types/types.go +++ b/service/proton/types/types.go @@ -92,7 +92,7 @@ type Environment struct { // This member is required. TemplateMinorVersion *string - // The Amazon Resource Name (ARN) of the environment template. + // The ARN of the environment template. // // This member is required. TemplateName *string @@ -111,8 +111,8 @@ type Environment struct { // are provisioned in. EnvironmentAccountId *string - // The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS - // Proton to make calls to other services on your behalf. + // The ARN of the AWS Proton service role that allows AWS Proton to make calls to + // other services on your behalf. ProtonServiceRoleArn *string // When included, indicates that the environment template is for customer @@ -296,8 +296,8 @@ type EnvironmentSummary struct { // are provisioned in. EnvironmentAccountId *string - // The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS - // Proton to make calls to other services on your behalf. + // The ARN of the AWS Proton service role that allows AWS Proton to make calls to + // other services on your behalf. ProtonServiceRoleArn *string // When included, indicates that the environment template is for customer @@ -577,11 +577,11 @@ type Service struct { // The service pipeline detail data. Pipeline *ServicePipeline - // The Amazon Resource Name (ARN) of the repository connection. For more - // information, see Set up a repository connection + // The ARN of the repository connection. For more information, see Set up a + // repository connection // (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#setting-up-vcontrol) - // in the AWS Proton Administrator Guide and Setting up with AWS Proton - // (https://docs.aws.amazon.com/proton/latest/userguide/proton-setup.html#setup-repo-connection) + // in the AWS Proton Administration Guide and Getting started + // (https://docs.aws.amazon.com/proton/latest/userguide/ug-getting-started.html#getting-started-step1) // in the AWS Proton User Guide. RepositoryConnectionArn *string diff --git a/service/qldb/api_op_CreateLedger.go b/service/qldb/api_op_CreateLedger.go index 992ee578955..97d2204e447 100644 --- a/service/qldb/api_op_CreateLedger.go +++ b/service/qldb/api_op_CreateLedger.go @@ -12,7 +12,7 @@ import ( "time" ) -// Creates a new ledger in your account in the current Region. +// Creates a new ledger in your AWS account in the current Region. func (c *Client) CreateLedger(ctx context.Context, params *CreateLedgerInput, optFns ...func(*Options)) (*CreateLedgerOutput, error) { if params == nil { params = &CreateLedgerInput{} @@ -31,8 +31,8 @@ func (c *Client) CreateLedger(ctx context.Context, params *CreateLedgerInput, op type CreateLedgerInput struct { // The name of the ledger that you want to create. The name must be unique among - // all of the ledgers in your account in the current Region. Naming constraints for - // ledger names are defined in Quotas in Amazon QLDB + // all of your ledgers in the current AWS Region. Naming constraints for ledger + // names are defined in Quotas in Amazon QLDB // (https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming) // in the Amazon QLDB Developer Guide. // @@ -73,48 +73,6 @@ type CreateLedgerInput struct { // to false. DeletionProtection *bool - // The key in Key Management Service (KMS) to use for encryption of data at rest in - // the ledger. For more information, see Encryption at rest - // (https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html) - // in the Amazon QLDB Developer Guide. Use one of the following options to specify - // this parameter: - // - // * AWS_OWNED_KMS_KEY: Use an KMS key that is owned and managed - // by Amazon Web Services on your behalf. - // - // * Undefined: By default, use an Amazon - // Web Services owned KMS key. - // - // * A valid symmetric customer managed KMS key: Use - // the specified KMS key in your account that you create, own, and manage. Amazon - // QLDB does not support asymmetric keys. For more information, see Using symmetric - // and asymmetric keys - // (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) - // in the Key Management Service Developer Guide. - // - // To specify a customer managed - // KMS key, you can use its key ID, Amazon Resource Name (ARN), alias name, or - // alias ARN. When using an alias name, prefix it with "alias/". To specify a key - // in a different account, you must use the key ARN or alias ARN. For example: - // - // * - // Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - // - // * Key ARN: - // arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - // - // * - // Alias name: alias/ExampleAlias - // - // * Alias ARN: - // arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - // - // For more information, see - // Key identifiers (KeyId) - // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id) in - // the Key Management Service Developer Guide. - KmsKey *string - // The key-value pairs to add as tags to the ledger that you want to create. Tag // keys are case sensitive. Tag values are case sensitive and can be null. Tags map[string]*string @@ -139,11 +97,6 @@ type CreateLedgerOutput struct { // to false. DeletionProtection *bool - // The ARN of the customer managed KMS key that the ledger uses for encryption at - // rest. If this parameter is undefined, the ledger uses an Amazon Web Services - // owned KMS key for encryption. - KmsKeyArn *string - // The name of the ledger. Name *string diff --git a/service/qldb/api_op_DescribeLedger.go b/service/qldb/api_op_DescribeLedger.go index a8e3c5e8421..f541c24e077 100644 --- a/service/qldb/api_op_DescribeLedger.go +++ b/service/qldb/api_op_DescribeLedger.go @@ -12,8 +12,7 @@ import ( "time" ) -// Returns information about a ledger, including its state, permissions mode, -// encryption at rest settings, and when it was created. +// Returns information about a ledger, including its state and when it was created. func (c *Client) DescribeLedger(ctx context.Context, params *DescribeLedgerInput, optFns ...func(*Options)) (*DescribeLedgerOutput, error) { if params == nil { params = &DescribeLedgerInput{} @@ -56,11 +55,6 @@ type DescribeLedgerOutput struct { // to false. DeletionProtection *bool - // Information about the encryption of data at rest in the ledger. This includes - // the current status, the KMS key, and when the key became inaccessible (in the - // case of an error). - EncryptionDescription *types.LedgerEncryptionDescription - // The name of the ledger. Name *string diff --git a/service/qldb/api_op_ExportJournalToS3.go b/service/qldb/api_op_ExportJournalToS3.go index 023888f7c92..39cd1dec376 100644 --- a/service/qldb/api_op_ExportJournalToS3.go +++ b/service/qldb/api_op_ExportJournalToS3.go @@ -66,8 +66,8 @@ type ExportJournalToS3Input struct { // Simple Storage Service (Amazon S3) bucket. // // * (Optional) Use your customer - // master key (CMK) in Key Management Service (KMS) for server-side encryption of - // your exported data. + // master key (CMK) in AWS Key Management Service (AWS KMS) for server-side + // encryption of your exported data. // // This member is required. RoleArn *string diff --git a/service/qldb/api_op_ListJournalS3Exports.go b/service/qldb/api_op_ListJournalS3Exports.go index 8f9cd5378c2..d7635d81f05 100644 --- a/service/qldb/api_op_ListJournalS3Exports.go +++ b/service/qldb/api_op_ListJournalS3Exports.go @@ -13,10 +13,10 @@ import ( ) // Returns an array of journal export job descriptions for all ledgers that are -// associated with the current account and Region. This action returns a maximum of -// MaxResults items, and is paginated so that you can retrieve all the items by -// calling ListJournalS3Exports multiple times. This action does not return any -// expired export jobs. For more information, see Export job expiration +// associated with the current AWS account and Region. This action returns a +// maximum of MaxResults items, and is paginated so that you can retrieve all the +// items by calling ListJournalS3Exports multiple times. This action does not +// return any expired export jobs. For more information, see Export job expiration // (https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration) // in the Amazon QLDB Developer Guide. func (c *Client) ListJournalS3Exports(ctx context.Context, params *ListJournalS3ExportsInput, optFns ...func(*Options)) (*ListJournalS3ExportsOutput, error) { @@ -51,7 +51,7 @@ type ListJournalS3ExportsInput struct { type ListJournalS3ExportsOutput struct { // The array of journal export job descriptions for all ledgers that are associated - // with the current account and Region. + // with the current AWS account and Region. JournalS3Exports []types.JournalS3ExportDescription // * If NextToken is empty, then the last page of results has been processed and diff --git a/service/qldb/api_op_ListLedgers.go b/service/qldb/api_op_ListLedgers.go index 4458db5d4c2..75ad40adbcd 100644 --- a/service/qldb/api_op_ListLedgers.go +++ b/service/qldb/api_op_ListLedgers.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns an array of ledger summaries that are associated with the current +// Returns an array of ledger summaries that are associated with the current AWS // account and Region. This action returns a maximum of 100 items and is paginated // so that you can retrieve all the items by calling ListLedgers multiple times. func (c *Client) ListLedgers(ctx context.Context, params *ListLedgersInput, optFns ...func(*Options)) (*ListLedgersOutput, error) { @@ -46,8 +46,8 @@ type ListLedgersInput struct { type ListLedgersOutput struct { - // The array of ledger summaries that are associated with the current account and - // Region. + // The array of ledger summaries that are associated with the current AWS account + // and Region. Ledgers []types.LedgerSummary // A pagination token, indicating whether there are more results available: diff --git a/service/qldb/api_op_UpdateLedger.go b/service/qldb/api_op_UpdateLedger.go index 62a9984395f..822e03161a4 100644 --- a/service/qldb/api_op_UpdateLedger.go +++ b/service/qldb/api_op_UpdateLedger.go @@ -42,48 +42,6 @@ type UpdateLedgerInput struct { // to false. DeletionProtection *bool - // The key in Key Management Service (KMS) to use for encryption of data at rest in - // the ledger. For more information, see Encryption at rest - // (https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html) - // in the Amazon QLDB Developer Guide. Use one of the following options to specify - // this parameter: - // - // * AWS_OWNED_KMS_KEY: Use an KMS key that is owned and managed - // by Amazon Web Services on your behalf. - // - // * Undefined: Make no changes to the KMS - // key of the ledger. - // - // * A valid symmetric customer managed KMS key: Use the - // specified KMS key in your account that you create, own, and manage. Amazon QLDB - // does not support asymmetric keys. For more information, see Using symmetric and - // asymmetric keys - // (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) - // in the Key Management Service Developer Guide. - // - // To specify a customer managed - // KMS key, you can use its key ID, Amazon Resource Name (ARN), alias name, or - // alias ARN. When using an alias name, prefix it with "alias/". To specify a key - // in a different account, you must use the key ARN or alias ARN. For example: - // - // * - // Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - // - // * Key ARN: - // arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - // - // * - // Alias name: alias/ExampleAlias - // - // * Alias ARN: - // arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias - // - // For more information, see - // Key identifiers (KeyId) - // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id) in - // the Key Management Service Developer Guide. - KmsKey *string - noSmithyDocumentSerde } @@ -104,11 +62,6 @@ type UpdateLedgerOutput struct { // to false. DeletionProtection *bool - // Information about the encryption of data at rest in the ledger. This includes - // the current status, the KMS key, and when the key became inaccessible (in the - // case of an error). - EncryptionDescription *types.LedgerEncryptionDescription - // The name of the ledger. Name *string diff --git a/service/qldb/deserializers.go b/service/qldb/deserializers.go index 4016d3779cc..33a243dc310 100644 --- a/service/qldb/deserializers.go +++ b/service/qldb/deserializers.go @@ -354,15 +354,6 @@ func awsRestjson1_deserializeOpDocumentCreateLedgerOutput(v **CreateLedgerOutput sv.DeletionProtection = ptr.Bool(jtv) } - case "KmsKeyArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.KmsKeyArn = ptr.String(jtv) - } - case "Name": if value != nil { jtv, ok := value.(string) @@ -967,11 +958,6 @@ func awsRestjson1_deserializeOpDocumentDescribeLedgerOutput(v **DescribeLedgerOu sv.DeletionProtection = ptr.Bool(jtv) } - case "EncryptionDescription": - if err := awsRestjson1_deserializeDocumentLedgerEncryptionDescription(&sv.EncryptionDescription, value); err != nil { - return err - } - case "Name": if value != nil { jtv, ok := value.(string) @@ -2914,11 +2900,6 @@ func awsRestjson1_deserializeOpDocumentUpdateLedgerOutput(v **UpdateLedgerOutput sv.DeletionProtection = ptr.Bool(jtv) } - case "EncryptionDescription": - if err := awsRestjson1_deserializeDocumentLedgerEncryptionDescription(&sv.EncryptionDescription, value); err != nil { - return err - } - case "Name": if value != nil { jtv, ok := value.(string) @@ -3767,71 +3748,6 @@ func awsRestjson1_deserializeDocumentKinesisConfiguration(v **types.KinesisConfi return nil } -func awsRestjson1_deserializeDocumentLedgerEncryptionDescription(v **types.LedgerEncryptionDescription, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.LedgerEncryptionDescription - if *v == nil { - sv = &types.LedgerEncryptionDescription{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "EncryptionStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EncryptionStatus to be of type string, got %T instead", value) - } - sv.EncryptionStatus = types.EncryptionStatus(jtv) - } - - case "InaccessibleKmsKeyDateTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.InaccessibleKmsKeyDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "KmsKeyArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.KmsKeyArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentLedgerList(v *[]types.LedgerSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/qldb/go.mod b/service/qldb/go.mod index 3827602ddfe..490ae81b83d 100644 --- a/service/qldb/go.mod +++ b/service/qldb/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qldb/go.sum b/service/qldb/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/qldb/go.sum +++ b/service/qldb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/qldb/serializers.go b/service/qldb/serializers.go index 8d98600be10..ca711411474 100644 --- a/service/qldb/serializers.go +++ b/service/qldb/serializers.go @@ -147,11 +147,6 @@ func awsRestjson1_serializeOpDocumentCreateLedgerInput(v *CreateLedgerInput, val ok.Boolean(*v.DeletionProtection) } - if v.KmsKey != nil { - ok := object.Key("KmsKey") - ok.String(*v.KmsKey) - } - if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) @@ -1402,11 +1397,6 @@ func awsRestjson1_serializeOpDocumentUpdateLedgerInput(v *UpdateLedgerInput, val ok.Boolean(*v.DeletionProtection) } - if v.KmsKey != nil { - ok := object.Key("KmsKey") - ok.String(*v.KmsKey) - } - return nil } diff --git a/service/qldb/types/enums.go b/service/qldb/types/enums.go index 9cfaf3ff8f1..9a02641129d 100644 --- a/service/qldb/types/enums.go +++ b/service/qldb/types/enums.go @@ -2,26 +2,6 @@ package types -type EncryptionStatus string - -// Enum values for EncryptionStatus -const ( - EncryptionStatusEnabled EncryptionStatus = "ENABLED" - EncryptionStatusUpdating EncryptionStatus = "UPDATING" - EncryptionStatusKmsKeyInaccessible EncryptionStatus = "KMS_KEY_INACCESSIBLE" -) - -// Values returns all known values for EncryptionStatus. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (EncryptionStatus) Values() []EncryptionStatus { - return []EncryptionStatus{ - "ENABLED", - "UPDATING", - "KMS_KEY_INACCESSIBLE", - } -} - type ErrorCause string // Enum values for ErrorCause diff --git a/service/qldb/types/types.go b/service/qldb/types/types.go index 27ded9dd483..a41c33d6359 100644 --- a/service/qldb/types/types.go +++ b/service/qldb/types/types.go @@ -58,7 +58,7 @@ type JournalKinesisStreamDescription struct { ErrorCause ErrorCause // The exclusive date and time that specifies when the stream ends. If this - // parameter is undefined, the stream runs indefinitely until you cancel it. + // parameter is blank, the stream runs indefinitely until you cancel it. ExclusiveEndTime *time.Time // The inclusive start date and time from which to start streaming journal data. @@ -108,8 +108,8 @@ type JournalS3ExportDescription struct { // Simple Storage Service (Amazon S3) bucket. // // * (Optional) Use your customer - // master key (CMK) in Key Management Service (KMS) for server-side encryption of - // your exported data. + // master key (CMK) in AWS Key Management Service (AWS KMS) for server-side + // encryption of your exported data. // // This member is required. RoleArn *string @@ -151,54 +151,6 @@ type KinesisConfiguration struct { noSmithyDocumentSerde } -// Information about the encryption of data at rest in an Amazon QLDB ledger. This -// includes the current status, the key in Key Management Service (KMS), and when -// the key became inaccessible (in the case of an error). For more information, see -// Encryption at rest -// (https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html) -// in the Amazon QLDB Developer Guide. -type LedgerEncryptionDescription struct { - - // The current state of encryption at rest for the ledger. This can be one of the - // following values: - // - // * ENABLED: Encryption is fully enabled using the specified - // key. - // - // * UPDATING: The ledger is actively processing the specified key change. - // Key changes in QLDB are asynchronous. The ledger is fully accessible without any - // performance impact while the key change is being processed. The amount of time - // it takes to update a key varies depending on the ledger size. - // - // * - // KMS_KEY_INACCESSIBLE: The specified customer managed KMS key is not accessible, - // and the ledger is impaired. Either the key was disabled or deleted, or the - // grants on the key were revoked. When a ledger is impaired, it is not accessible - // and does not accept any read or write requests. An impaired ledger automatically - // returns to an active state after you restore the grants on the key, or re-enable - // the key that was disabled. However, deleting a customer managed KMS key is - // irreversible. After a key is deleted, you can no longer access the ledgers that - // are protected with that key, and the data becomes unrecoverable permanently. - // - // This member is required. - EncryptionStatus EncryptionStatus - - // The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger - // uses for encryption at rest. If this parameter is undefined, the ledger uses an - // Amazon Web Services owned KMS key for encryption. - // - // This member is required. - KmsKeyArn *string - - // The date and time, in epoch time format, when the KMS key first became - // inaccessible, in the case of an error. (Epoch time format is the number of - // seconds that have elapsed since 12:00:00 AM January 1, 1970 UTC.) This parameter - // is undefined if the KMS key is accessible. - InaccessibleKmsKeyDateTime *time.Time - - noSmithyDocumentSerde -} - // Information about a ledger, including its name, state, and when it was created. type LedgerSummary struct { @@ -228,9 +180,9 @@ type S3EncryptionConfiguration struct { // This member is required. ObjectEncryptionType S3ObjectEncryptionType - // The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) in Key - // Management Service (KMS). Amazon S3 does not support asymmetric CMKs. You must - // provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType. + // The Amazon Resource Name (ARN) for a symmetric customer master key (CMK) in AWS + // Key Management Service (AWS KMS). Amazon S3 does not support asymmetric CMKs. + // You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType. // KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType. KmsKeyArn *string diff --git a/service/qldbsession/go.mod b/service/qldbsession/go.mod index 6bc9c7ad7da..0565dbfd463 100644 --- a/service/qldbsession/go.mod +++ b/service/qldbsession/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qldbsession/go.sum b/service/qldbsession/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/qldbsession/go.sum +++ b/service/qldbsession/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/quicksight/api_op_CancelIngestion.go b/service/quicksight/api_op_CancelIngestion.go index a09d36b7755..3a048357160 100644 --- a/service/quicksight/api_op_CancelIngestion.go +++ b/service/quicksight/api_op_CancelIngestion.go @@ -28,7 +28,7 @@ func (c *Client) CancelIngestion(ctx context.Context, params *CancelIngestionInp type CancelIngestionInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string @@ -54,7 +54,7 @@ type CancelIngestionOutput struct { // An ID for the ingestion. IngestionId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateAccountCustomization.go b/service/quicksight/api_op_CreateAccountCustomization.go index 670f72d0ac5..12f7a8a3375 100644 --- a/service/quicksight/api_op_CreateAccountCustomization.go +++ b/service/quicksight/api_op_CreateAccountCustomization.go @@ -11,24 +11,23 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates Amazon QuickSight customizations the current Region;. Currently, you can -// add a custom default theme by using the CreateAccountCustomization or +// Creates Amazon QuickSight customizations the current AWS Region. Currently, you +// can add a custom default theme by using the CreateAccountCustomization or // UpdateAccountCustomization API operation. To further customize QuickSight by // removing QuickSight sample assets and videos for all new users, see Customizing // QuickSight // (https://docs.aws.amazon.com/quicksight/latest/user/customizing-quicksight.html) -// in the Amazon QuickSight User Guide. You can create customizations for your -// Amazon Web Services account; or, if you specify a namespace, for a QuickSight -// namespace instead. Customizations that apply to a namespace always override -// customizations that apply to an Amazon Web Services account;. To find out which -// customizations apply, use the DescribeAccountCustomization API operation. Before -// you use the CreateAccountCustomization API operation to add a theme as the -// namespace default, make sure that you first share the theme with the namespace. -// If you don't share it with the namespace, the theme isn't visible to your users -// even if you make it the default theme. To check if the theme is shared, view the -// current permissions by using the DescribeThemePermissions API operation. To -// share the theme, grant permissions by using the UpdateThemePermissions API -// operation. +// in the Amazon QuickSight User Guide. You can create customizations for your AWS +// account or, if you specify a namespace, for a QuickSight namespace instead. +// Customizations that apply to a namespace always override customizations that +// apply to an AWS account. To find out which customizations apply, use the +// DescribeAccountCustomization API operation. Before you use the +// CreateAccountCustomization API operation to add a theme as the namespace +// default, make sure that you first share the theme with the namespace. If you +// don't share it with the namespace, the theme isn't visible to your users even if +// you make it the default theme. To check if the theme is shared, view the current +// permissions by using the DescribeThemePermissions API operation. To share the +// theme, grant permissions by using the UpdateThemePermissions API operation. func (c *Client) CreateAccountCustomization(ctx context.Context, params *CreateAccountCustomizationInput, optFns ...func(*Options)) (*CreateAccountCustomizationOutput, error) { if params == nil { params = &CreateAccountCustomizationInput{} @@ -46,10 +45,10 @@ func (c *Client) CreateAccountCustomization(ctx context.Context, params *CreateA type CreateAccountCustomizationInput struct { - // The QuickSight customizations you're adding in the current Region;. You can add - // these to an Amazon Web Services account; and a QuickSight namespace. For - // example, you can add a default theme by setting AccountCustomization to the - // midnight theme: "AccountCustomization": { "DefaultTheme": + // The QuickSight customizations you're adding in the current AWS Region. You can + // add these to an AWS account and a QuickSight namespace. For example, you can add + // a default theme by setting AccountCustomization to the midnight theme: + // "AccountCustomization": { "DefaultTheme": // "arn:aws:quicksight::aws:theme/MIDNIGHT" }. Or, you can add a custom theme by // specifying "AccountCustomization": { "DefaultTheme": // "arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639" @@ -58,8 +57,7 @@ type CreateAccountCustomizationInput struct { // This member is required. AccountCustomization *types.AccountCustomization - // The ID for the Amazon Web Services account; that you want to customize - // QuickSight for. + // The ID for the AWS account that you want to customize QuickSight for. // // This member is required. AwsAccountId *string @@ -75,21 +73,20 @@ type CreateAccountCustomizationInput struct { type CreateAccountCustomizationOutput struct { - // The QuickSight customizations you're adding in the current Region;. + // The QuickSight customizations you're adding in the current AWS Region. AccountCustomization *types.AccountCustomization // The Amazon Resource Name (ARN) for the customization that you created for this - // Amazon Web Services account;. + // AWS account. Arn *string - // The ID for the Amazon Web Services account; that you want to customize - // QuickSight for. + // The ID for the AWS account that you want to customize QuickSight for. AwsAccountId *string // The namespace associated with the customization you're creating. Namespace *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateAnalysis.go b/service/quicksight/api_op_CreateAnalysis.go index 53b6b518c67..5ccc5ba1141 100644 --- a/service/quicksight/api_op_CreateAnalysis.go +++ b/service/quicksight/api_op_CreateAnalysis.go @@ -35,7 +35,7 @@ type CreateAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the Amazon Web Services account; where you are creating an analysis. + // The ID of the AWS account where you are creating an analysis. // // This member is required. AwsAccountId *string @@ -59,9 +59,9 @@ type CreateAnalysisInput struct { // A structure that describes the principals and the resource-level permissions on // an analysis. You can use the Permissions structure to grant permissions by - // providing a list of Identity and Access Management (IAM) action information for - // each principal listed by Amazon Resource Name (ARN). To specify no permissions, - // omit Permissions. + // providing a list of AWS Identity and Access Management (IAM) action information + // for each principal listed by Amazon Resource Name (ARN). To specify no + // permissions, omit Permissions. Permissions []types.ResourcePermission // Contains a map of the key-value pairs for the resource tag or tags assigned to @@ -86,7 +86,7 @@ type CreateAnalysisOutput struct { // The status of the creation of the analysis. CreationStatus types.ResourceStatus - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateDashboard.go b/service/quicksight/api_op_CreateDashboard.go index 97ff8ca49cc..5cfbf006351 100644 --- a/service/quicksight/api_op_CreateDashboard.go +++ b/service/quicksight/api_op_CreateDashboard.go @@ -16,7 +16,7 @@ import ( // identifies QuickSight reports, created from analyses. You can share QuickSight // dashboards. With the right permissions, you can create scheduled email reports // from them. If you have the correct permissions, you can create a dashboard from -// a template that exists in a different Amazon Web Services account;. +// a template that exists in a different AWS account. func (c *Client) CreateDashboard(ctx context.Context, params *CreateDashboardInput, optFns ...func(*Options)) (*CreateDashboardOutput, error) { if params == nil { params = &CreateDashboardInput{} @@ -34,8 +34,7 @@ func (c *Client) CreateDashboard(ctx context.Context, params *CreateDashboardInp type CreateDashboardInput struct { - // The ID of the Amazon Web Services account; where you want to create the - // dashboard. + // The ID of the AWS account where you want to create the dashboard. // // This member is required. AwsAccountId *string @@ -56,10 +55,10 @@ type CreateDashboardInput struct { // you need to create a dashboard from an analysis, first convert the analysis to a // template by using the CreateTemplate API operation. For SourceTemplate, specify // the Amazon Resource Name (ARN) of the source template. The SourceTemplateARN can - // contain any Amazon Web Services account; and any QuickSight-supported Region;. - // Use the DataSetReferences entity within SourceTemplate to list the replacement - // datasets for the placeholders listed in the original. The schema in each dataset - // must match its placeholder. + // contain any AWS Account and any QuickSight-supported AWS Region. Use the + // DataSetReferences entity within SourceTemplate to list the replacement datasets + // for the placeholders listed in the original. The schema in each dataset must + // match its placeholder. // // This member is required. SourceEntity *types.DashboardSourceEntity @@ -97,8 +96,8 @@ type CreateDashboardInput struct { // The Amazon Resource Name (ARN) of the theme that is being used for this // dashboard. If you add a value for this field, it overrides the value that is - // used in the source entity. The theme ARN must exist in the same Amazon Web - // Services account; where you create the dashboard. + // used in the source entity. The theme ARN must exist in the same AWS account + // where you create the dashboard. ThemeArn *string // A description for the first version of the dashboard being created. @@ -118,7 +117,7 @@ type CreateDashboardOutput struct { // The ID for the dashboard. DashboardId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateDataSet.go b/service/quicksight/api_op_CreateDataSet.go index 2fac4c0b21f..30d01b518b0 100644 --- a/service/quicksight/api_op_CreateDataSet.go +++ b/service/quicksight/api_op_CreateDataSet.go @@ -29,13 +29,13 @@ func (c *Client) CreateDataSet(ctx context.Context, params *CreateDataSetInput, type CreateDataSetInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // An ID for the dataset that you want to create. This ID is unique per Region; for - // each Amazon Web Services account;. + // An ID for the dataset that you want to create. This ID is unique per AWS Region + // for each AWS account. // // This member is required. DataSetId *string @@ -75,10 +75,6 @@ type CreateDataSetInput struct { // The row-level security configuration for the data that you want to create. RowLevelPermissionDataSet *types.RowLevelPermissionDataSet - // The configuration of tags on a dataset to set row-level security. Row-level - // security tags are currently supported for anonymous embedding only. - RowLevelPermissionTagConfiguration *types.RowLevelPermissionTagConfiguration - // Contains a map of the key-value pairs for the resource tag or tags assigned to // the dataset. Tags []types.Tag @@ -91,8 +87,8 @@ type CreateDataSetOutput struct { // The Amazon Resource Name (ARN) of the dataset. Arn *string - // The ID for the dataset that you want to create. This ID is unique per Region; - // for each Amazon Web Services account;. + // The ID for the dataset that you want to create. This ID is unique per AWS Region + // for each AWS account. DataSetId *string // The ARN for the ingestion, which is triggered as a result of dataset creation if @@ -103,7 +99,7 @@ type CreateDataSetOutput struct { // the import mode is SPICE. IngestionId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateDataSource.go b/service/quicksight/api_op_CreateDataSource.go index b7f6e276d5f..c9e0912b0bb 100644 --- a/service/quicksight/api_op_CreateDataSource.go +++ b/service/quicksight/api_op_CreateDataSource.go @@ -29,13 +29,13 @@ func (c *Client) CreateDataSource(ctx context.Context, params *CreateDataSourceI type CreateDataSourceInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // An ID for the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // An ID for the data source. This ID is unique per AWS Region for each AWS + // account. // // This member is required. DataSourceId *string @@ -87,11 +87,11 @@ type CreateDataSourceOutput struct { // The status of creating the data source. CreationStatus types.ResourceStatus - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. DataSourceId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateGroup.go b/service/quicksight/api_op_CreateGroup.go index 332f1a9bc29..e3848e529ad 100644 --- a/service/quicksight/api_op_CreateGroup.go +++ b/service/quicksight/api_op_CreateGroup.go @@ -31,9 +31,8 @@ func (c *Client) CreateGroup(ctx context.Context, params *CreateGroupInput, optF // The request object for this operation. type CreateGroupInput struct { - // The ID for the Amazon Web Services account; that the group is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the group is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -60,7 +59,7 @@ type CreateGroupOutput struct { // The name of the group. Group *types.Group - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateGroupMembership.go b/service/quicksight/api_op_CreateGroupMembership.go index a6be85be4e3..a0004c2d86f 100644 --- a/service/quicksight/api_op_CreateGroupMembership.go +++ b/service/quicksight/api_op_CreateGroupMembership.go @@ -29,9 +29,8 @@ func (c *Client) CreateGroupMembership(ctx context.Context, params *CreateGroupM type CreateGroupMembershipInput struct { - // The ID for the Amazon Web Services account; that the group is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the group is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -59,7 +58,7 @@ type CreateGroupMembershipOutput struct { // The group member. GroupMember *types.GroupMember - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateIAMPolicyAssignment.go b/service/quicksight/api_op_CreateIAMPolicyAssignment.go index a963e0a00a9..a0731fc0e75 100644 --- a/service/quicksight/api_op_CreateIAMPolicyAssignment.go +++ b/service/quicksight/api_op_CreateIAMPolicyAssignment.go @@ -13,9 +13,9 @@ import ( // Creates an assignment with one specified IAM policy, identified by its Amazon // Resource Name (ARN). This policy assignment is attached to the specified groups -// or users of Amazon QuickSight. Assignment names are unique per Amazon Web -// Services account;. To avoid overwriting rules in other namespaces, use -// assignment names that are unique. +// or users of Amazon QuickSight. Assignment names are unique per AWS account. To +// avoid overwriting rules in other namespaces, use assignment names that are +// unique. func (c *Client) CreateIAMPolicyAssignment(ctx context.Context, params *CreateIAMPolicyAssignmentInput, optFns ...func(*Options)) (*CreateIAMPolicyAssignmentOutput, error) { if params == nil { params = &CreateIAMPolicyAssignmentInput{} @@ -33,8 +33,8 @@ func (c *Client) CreateIAMPolicyAssignment(ctx context.Context, params *CreateIA type CreateIAMPolicyAssignmentInput struct { - // The name of the assignment, also called a rule. It must be unique within an - // Amazon Web Services account;. + // The name of the assignment, also called a rule. It must be unique within an AWS + // account. // // This member is required. AssignmentName *string @@ -54,8 +54,8 @@ type CreateIAMPolicyAssignmentInput struct { // This member is required. AssignmentStatus types.AssignmentStatus - // The ID of the Amazon Web Services account; where you want to assign an IAM - // policy to QuickSight users or groups. + // The ID of the AWS account where you want to assign an IAM policy to QuickSight + // users or groups. // // This member is required. AwsAccountId *string @@ -80,8 +80,7 @@ type CreateIAMPolicyAssignmentOutput struct { // The ID for the assignment. AssignmentId *string - // The name of the assignment. This name must be unique within the Amazon Web - // Services account;. + // The name of the assignment. This name must be unique within the AWS account. AssignmentName *string // The status of the assignment. Possible values are as follows: @@ -104,7 +103,7 @@ type CreateIAMPolicyAssignmentOutput struct { // specified in this assignment. PolicyArn *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateIngestion.go b/service/quicksight/api_op_CreateIngestion.go index 61b063adcdd..c1850e4287e 100644 --- a/service/quicksight/api_op_CreateIngestion.go +++ b/service/quicksight/api_op_CreateIngestion.go @@ -16,8 +16,8 @@ import ( // control. For an example, see How do I create an IAM policy to control access to // Amazon EC2 resources using tags? // (http://aws.amazon.com/premiumsupport/knowledge-center/iam-ec2-resource-tags/) -// in the Amazon Web Services Knowledge Center. Tags are visible on the tagged -// dataset, but not on the ingestion resource. +// in the AWS Knowledge Center. Tags are visible on the tagged dataset, but not on +// the ingestion resource. func (c *Client) CreateIngestion(ctx context.Context, params *CreateIngestionInput, optFns ...func(*Options)) (*CreateIngestionOutput, error) { if params == nil { params = &CreateIngestionInput{} @@ -35,7 +35,7 @@ func (c *Client) CreateIngestion(ctx context.Context, params *CreateIngestionInp type CreateIngestionInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string @@ -64,7 +64,7 @@ type CreateIngestionOutput struct { // The ingestion status. IngestionStatus types.IngestionStatus - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateNamespace.go b/service/quicksight/api_op_CreateNamespace.go index cf60809fd95..2b3cda5ffa4 100644 --- a/service/quicksight/api_op_CreateNamespace.go +++ b/service/quicksight/api_op_CreateNamespace.go @@ -16,10 +16,9 @@ import ( // that are registered for that namespace. Users that access the namespace can // share assets only with other users or groups in the same namespace. They can't // see users and groups in other namespaces. You can create a namespace after your -// Amazon Web Services account; is subscribed to QuickSight. The namespace must be -// unique within the Amazon Web Services account;. By default, there is a limit of -// 100 namespaces per Amazon Web Services account;. To increase your limit, create -// a ticket with Amazon Web Services Support. +// AWS account is subscribed to QuickSight. The namespace must be unique within the +// AWS account. By default, there is a limit of 100 namespaces per AWS account. To +// increase your limit, create a ticket with AWS Support. func (c *Client) CreateNamespace(ctx context.Context, params *CreateNamespaceInput, optFns ...func(*Options)) (*CreateNamespaceOutput, error) { if params == nil { params = &CreateNamespaceInput{} @@ -37,8 +36,7 @@ func (c *Client) CreateNamespace(ctx context.Context, params *CreateNamespaceInp type CreateNamespaceInput struct { - // The ID for the Amazon Web Services account; that you want to create the - // QuickSight namespace in. + // The ID for the AWS account that you want to create the QuickSight namespace in. // // This member is required. AwsAccountId *string @@ -65,7 +63,7 @@ type CreateNamespaceOutput struct { // The ARN of the QuickSight namespace you created. Arn *string - // The Region; that you want to use for the free SPICE capacity for the new + // The AWS Region that you want to use for the free SPICE capacity for the new // namespace. This is set to the region that you run CreateNamespace in. CapacityRegion *string @@ -82,7 +80,7 @@ type CreateNamespaceOutput struct { // The name of the new namespace that you created. Name *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateTemplate.go b/service/quicksight/api_op_CreateTemplate.go index 9cd1e93778d..fe5f6b15e38 100644 --- a/service/quicksight/api_op_CreateTemplate.go +++ b/service/quicksight/api_op_CreateTemplate.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a template from an existing Amazon QuickSight analysis or template. You -// can use the resulting template to create a dashboard. A template is an entity in +// Creates a template from an existing QuickSight analysis or template. You can use +// the resulting template to create a dashboard. A template is an entity in // QuickSight that encapsulates the metadata required to create an analysis and // that you can use to create s dashboard. A template adds a layer of abstraction // by using placeholders to replace the dataset associated with the analysis. You @@ -36,9 +36,8 @@ func (c *Client) CreateTemplate(ctx context.Context, params *CreateTemplateInput type CreateTemplateInput struct { - // The ID for the Amazon Web Services account; that the group is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the group is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -48,17 +47,16 @@ type CreateTemplateInput struct { // SourceTemplate for a template or SourceAnalysis for an analysis. Both of these // require an Amazon Resource Name (ARN). For SourceTemplate, specify the ARN of // the source template. For SourceAnalysis, specify the ARN of the source analysis. - // The SourceTemplate ARN can contain any Amazon Web Services account; and any - // QuickSight-supported Region;. Use the DataSetReferences entity within - // SourceTemplate or SourceAnalysis to list the replacement datasets for the - // placeholders listed in the original. The schema in each dataset must match its - // placeholder. + // The SourceTemplate ARN can contain any AWS Account and any QuickSight-supported + // AWS Region. Use the DataSetReferences entity within SourceTemplate or + // SourceAnalysis to list the replacement datasets for the placeholders listed in + // the original. The schema in each dataset must match its placeholder. // // This member is required. SourceEntity *types.TemplateSourceEntity - // An ID for the template that you want to create. This template is unique per - // Region; in each Amazon Web Services account;. + // An ID for the template that you want to create. This template is unique per AWS + // Region in each AWS account. // // This member is required. TemplateId *string @@ -90,7 +88,7 @@ type CreateTemplateOutput struct { // The template creation status. CreationStatus types.ResourceStatus - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateTemplateAlias.go b/service/quicksight/api_op_CreateTemplateAlias.go index 347aa240229..443e4d8def1 100644 --- a/service/quicksight/api_op_CreateTemplateAlias.go +++ b/service/quicksight/api_op_CreateTemplateAlias.go @@ -31,13 +31,13 @@ type CreateTemplateAliasInput struct { // The name that you want to give to the template alias that you're creating. Don't // start the alias name with the $ character. Alias names that start with $ are - // reserved by Amazon QuickSight. + // reserved by QuickSight. // // This member is required. AliasName *string - // The ID of the Amazon Web Services account; that contains the template that you - // creating an alias for. + // The ID of the AWS account that contains the template that you creating an alias + // for. // // This member is required. AwsAccountId *string @@ -57,7 +57,7 @@ type CreateTemplateAliasInput struct { type CreateTemplateAliasOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateTheme.go b/service/quicksight/api_op_CreateTheme.go index b33920d45c9..b746c0e983f 100644 --- a/service/quicksight/api_op_CreateTheme.go +++ b/service/quicksight/api_op_CreateTheme.go @@ -33,8 +33,7 @@ func (c *Client) CreateTheme(ctx context.Context, params *CreateThemeInput, optF type CreateThemeInput struct { - // The ID of the Amazon Web Services account; where you want to store the new - // theme. + // The ID of the AWS account where you want to store the new theme. // // This member is required. AwsAccountId *string @@ -57,8 +56,8 @@ type CreateThemeInput struct { // This member is required. Name *string - // An ID for the theme that you want to create. The theme ID is unique per Region; - // in each Amazon Web Services account;. + // An ID for the theme that you want to create. The theme ID is unique per AWS + // Region in each AWS account. // // This member is required. ThemeId *string @@ -86,7 +85,7 @@ type CreateThemeOutput struct { // The theme creation status. CreationStatus types.ResourceStatus - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateThemeAlias.go b/service/quicksight/api_op_CreateThemeAlias.go index 899693f7f1e..d05cada754a 100644 --- a/service/quicksight/api_op_CreateThemeAlias.go +++ b/service/quicksight/api_op_CreateThemeAlias.go @@ -36,8 +36,7 @@ type CreateThemeAliasInput struct { // This member is required. AliasName *string - // The ID of the Amazon Web Services account; that contains the theme for the new - // theme alias. + // The ID of the AWS account that contains the theme for the new theme alias. // // This member is required. AwsAccountId *string @@ -57,7 +56,7 @@ type CreateThemeAliasInput struct { type CreateThemeAliasOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteAccountCustomization.go b/service/quicksight/api_op_DeleteAccountCustomization.go index 3210a792da4..7566d911690 100644 --- a/service/quicksight/api_op_DeleteAccountCustomization.go +++ b/service/quicksight/api_op_DeleteAccountCustomization.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes all Amazon QuickSight customizations in this Region; for the specified -// Amazon Web Services account; and QuickSight namespace. +// Deletes all Amazon QuickSight customizations in this AWS Region for the +// specified AWS account and QuickSight namespace. func (c *Client) DeleteAccountCustomization(ctx context.Context, params *DeleteAccountCustomizationInput, optFns ...func(*Options)) (*DeleteAccountCustomizationOutput, error) { if params == nil { params = &DeleteAccountCustomizationInput{} @@ -29,8 +29,8 @@ func (c *Client) DeleteAccountCustomization(ctx context.Context, params *DeleteA type DeleteAccountCustomizationInput struct { - // The ID for the Amazon Web Services account; that you want to delete QuickSight - // customizations from in this Region;. + // The ID for the AWS account that you want to delete QuickSight customizations + // from in this AWS Region. // // This member is required. AwsAccountId *string @@ -43,7 +43,7 @@ type DeleteAccountCustomizationInput struct { type DeleteAccountCustomizationOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteAnalysis.go b/service/quicksight/api_op_DeleteAnalysis.go index 1ee02e0ba51..ddad9d3e083 100644 --- a/service/quicksight/api_op_DeleteAnalysis.go +++ b/service/quicksight/api_op_DeleteAnalysis.go @@ -45,7 +45,7 @@ type DeleteAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the Amazon Web Services account; where you want to delete an analysis. + // The ID of the AWS account where you want to delete an analysis. // // This member is required. AwsAccountId *string @@ -74,7 +74,7 @@ type DeleteAnalysisOutput struct { // The date and time that the analysis is scheduled to be deleted. DeletionTime *time.Time - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteDashboard.go b/service/quicksight/api_op_DeleteDashboard.go index 721e7a568e3..eeaf7c2cd64 100644 --- a/service/quicksight/api_op_DeleteDashboard.go +++ b/service/quicksight/api_op_DeleteDashboard.go @@ -28,8 +28,7 @@ func (c *Client) DeleteDashboard(ctx context.Context, params *DeleteDashboardInp type DeleteDashboardInput struct { - // The ID of the Amazon Web Services account; that contains the dashboard that - // you're deleting. + // The ID of the AWS account that contains the dashboard that you're deleting. // // This member is required. AwsAccountId *string @@ -54,7 +53,7 @@ type DeleteDashboardOutput struct { // The ID of the dashboard. DashboardId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteDataSet.go b/service/quicksight/api_op_DeleteDataSet.go index d60bab7bdbd..65fd61ce290 100644 --- a/service/quicksight/api_op_DeleteDataSet.go +++ b/service/quicksight/api_op_DeleteDataSet.go @@ -28,13 +28,13 @@ func (c *Client) DeleteDataSet(ctx context.Context, params *DeleteDataSetInput, type DeleteDataSetInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // The ID for the dataset that you want to create. This ID is unique per Region; - // for each Amazon Web Services account;. + // The ID for the dataset that you want to create. This ID is unique per AWS Region + // for each AWS account. // // This member is required. DataSetId *string @@ -47,11 +47,11 @@ type DeleteDataSetOutput struct { // The Amazon Resource Name (ARN) of the dataset. Arn *string - // The ID for the dataset that you want to create. This ID is unique per Region; - // for each Amazon Web Services account;. + // The ID for the dataset that you want to create. This ID is unique per AWS Region + // for each AWS account. DataSetId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteDataSource.go b/service/quicksight/api_op_DeleteDataSource.go index 88a4e17722e..427c6d24c37 100644 --- a/service/quicksight/api_op_DeleteDataSource.go +++ b/service/quicksight/api_op_DeleteDataSource.go @@ -29,13 +29,13 @@ func (c *Client) DeleteDataSource(ctx context.Context, params *DeleteDataSourceI type DeleteDataSourceInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. // // This member is required. DataSourceId *string @@ -48,11 +48,11 @@ type DeleteDataSourceOutput struct { // The Amazon Resource Name (ARN) of the data source that you deleted. Arn *string - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. DataSourceId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteGroup.go b/service/quicksight/api_op_DeleteGroup.go index 05bc131558c..2bc827c263e 100644 --- a/service/quicksight/api_op_DeleteGroup.go +++ b/service/quicksight/api_op_DeleteGroup.go @@ -28,9 +28,8 @@ func (c *Client) DeleteGroup(ctx context.Context, params *DeleteGroupInput, optF type DeleteGroupInput struct { - // The ID for the Amazon Web Services account; that the group is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the group is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -50,7 +49,7 @@ type DeleteGroupInput struct { type DeleteGroupOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteGroupMembership.go b/service/quicksight/api_op_DeleteGroupMembership.go index 8c8380444bd..f09563d6d4a 100644 --- a/service/quicksight/api_op_DeleteGroupMembership.go +++ b/service/quicksight/api_op_DeleteGroupMembership.go @@ -28,9 +28,8 @@ func (c *Client) DeleteGroupMembership(ctx context.Context, params *DeleteGroupM type DeleteGroupMembershipInput struct { - // The ID for the Amazon Web Services account; that the group is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the group is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -55,7 +54,7 @@ type DeleteGroupMembershipInput struct { type DeleteGroupMembershipOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteIAMPolicyAssignment.go b/service/quicksight/api_op_DeleteIAMPolicyAssignment.go index 77aede59616..424dee7a9d5 100644 --- a/service/quicksight/api_op_DeleteIAMPolicyAssignment.go +++ b/service/quicksight/api_op_DeleteIAMPolicyAssignment.go @@ -33,8 +33,7 @@ type DeleteIAMPolicyAssignmentInput struct { // This member is required. AssignmentName *string - // The Amazon Web Services account; ID where you want to delete the IAM policy - // assignment. + // The AWS account ID where you want to delete the IAM policy assignment. // // This member is required. AwsAccountId *string @@ -52,7 +51,7 @@ type DeleteIAMPolicyAssignmentOutput struct { // The name of the assignment. AssignmentName *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteNamespace.go b/service/quicksight/api_op_DeleteNamespace.go index 896f76df5d6..7addcef632b 100644 --- a/service/quicksight/api_op_DeleteNamespace.go +++ b/service/quicksight/api_op_DeleteNamespace.go @@ -31,8 +31,8 @@ func (c *Client) DeleteNamespace(ctx context.Context, params *DeleteNamespaceInp type DeleteNamespaceInput struct { - // The ID for the Amazon Web Services account; that you want to delete the - // QuickSight namespace from. + // The ID for the AWS account that you want to delete the QuickSight namespace + // from. // // This member is required. AwsAccountId *string @@ -47,7 +47,7 @@ type DeleteNamespaceInput struct { type DeleteNamespaceOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteTemplate.go b/service/quicksight/api_op_DeleteTemplate.go index 1fbc18bb455..40d91438e9b 100644 --- a/service/quicksight/api_op_DeleteTemplate.go +++ b/service/quicksight/api_op_DeleteTemplate.go @@ -28,8 +28,7 @@ func (c *Client) DeleteTemplate(ctx context.Context, params *DeleteTemplateInput type DeleteTemplateInput struct { - // The ID of the Amazon Web Services account; that contains the template that - // you're deleting. + // The ID of the AWS account that contains the template that you're deleting. // // This member is required. AwsAccountId *string @@ -51,7 +50,7 @@ type DeleteTemplateOutput struct { // The Amazon Resource Name (ARN) of the resource. Arn *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteTemplateAlias.go b/service/quicksight/api_op_DeleteTemplateAlias.go index 39924bc5688..961c0db3e13 100644 --- a/service/quicksight/api_op_DeleteTemplateAlias.go +++ b/service/quicksight/api_op_DeleteTemplateAlias.go @@ -37,7 +37,7 @@ type DeleteTemplateAliasInput struct { // This member is required. AliasName *string - // The ID of the Amazon Web Services account; that contains the item to delete. + // The ID of the AWS account that contains the item to delete. // // This member is required. AwsAccountId *string @@ -58,7 +58,7 @@ type DeleteTemplateAliasOutput struct { // The Amazon Resource Name (ARN) of the template you want to delete. Arn *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteTheme.go b/service/quicksight/api_op_DeleteTheme.go index 2d14db82594..e3539a2f2dc 100644 --- a/service/quicksight/api_op_DeleteTheme.go +++ b/service/quicksight/api_op_DeleteTheme.go @@ -28,8 +28,7 @@ func (c *Client) DeleteTheme(ctx context.Context, params *DeleteThemeInput, optF type DeleteThemeInput struct { - // The ID of the Amazon Web Services account; that contains the theme that you're - // deleting. + // The ID of the AWS account that contains the theme that you're deleting. // // This member is required. AwsAccountId *string @@ -52,7 +51,7 @@ type DeleteThemeOutput struct { // The Amazon Resource Name (ARN) of the resource. Arn *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteThemeAlias.go b/service/quicksight/api_op_DeleteThemeAlias.go index ae30e85a85a..d60be32f5f4 100644 --- a/service/quicksight/api_op_DeleteThemeAlias.go +++ b/service/quicksight/api_op_DeleteThemeAlias.go @@ -35,8 +35,7 @@ type DeleteThemeAliasInput struct { // This member is required. AliasName *string - // The ID of the Amazon Web Services account; that contains the theme alias to - // delete. + // The ID of the AWS account that contains the theme alias to delete. // // This member is required. AwsAccountId *string @@ -57,7 +56,7 @@ type DeleteThemeAliasOutput struct { // The Amazon Resource Name (ARN) of the theme resource using the deleted alias. Arn *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteUser.go b/service/quicksight/api_op_DeleteUser.go index e2a2beb76bc..cdfaa65c942 100644 --- a/service/quicksight/api_op_DeleteUser.go +++ b/service/quicksight/api_op_DeleteUser.go @@ -11,8 +11,8 @@ import ( ) // Deletes the Amazon QuickSight user that is associated with the identity of the -// Identity and Access Management (IAM) user or role that's making the call. The -// IAM user isn't deleted as a result of this call. +// AWS Identity and Access Management (IAM) user or role that's making the call. +// The IAM user isn't deleted as a result of this call. func (c *Client) DeleteUser(ctx context.Context, params *DeleteUserInput, optFns ...func(*Options)) (*DeleteUserOutput, error) { if params == nil { params = &DeleteUserInput{} @@ -30,9 +30,8 @@ func (c *Client) DeleteUser(ctx context.Context, params *DeleteUserInput, optFns type DeleteUserInput struct { - // The ID for the Amazon Web Services account; that the user is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the user is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -52,7 +51,7 @@ type DeleteUserInput struct { type DeleteUserOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteUserByPrincipalId.go b/service/quicksight/api_op_DeleteUserByPrincipalId.go index 5e061865b23..0040fa17fc1 100644 --- a/service/quicksight/api_op_DeleteUserByPrincipalId.go +++ b/service/quicksight/api_op_DeleteUserByPrincipalId.go @@ -29,9 +29,8 @@ func (c *Client) DeleteUserByPrincipalId(ctx context.Context, params *DeleteUser // type DeleteUserByPrincipalIdInput struct { - // The ID for the Amazon Web Services account; that the user is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the user is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -51,7 +50,7 @@ type DeleteUserByPrincipalIdInput struct { type DeleteUserByPrincipalIdOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeAccountCustomization.go b/service/quicksight/api_op_DescribeAccountCustomization.go index 2819f2221b1..41234fc2df0 100644 --- a/service/quicksight/api_op_DescribeAccountCustomization.go +++ b/service/quicksight/api_op_DescribeAccountCustomization.go @@ -11,27 +11,26 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the customizations associated with the provided Amazon Web Services -// account; and Amazon QuickSight namespace in an Region;. The QuickSight console -// evaluates which customizations to apply by running this API operation with the -// Resolved flag included. To determine what customizations display when you run -// this command, it can help to visualize the relationship of the entities -// involved. +// Describes the customizations associated with the provided AWS account and Amazon +// QuickSight namespace in an AWS Region. The QuickSight console evaluates which +// customizations to apply by running this API operation with the Resolved flag +// included. To determine what customizations display when you run this command, it +// can help to visualize the relationship of the entities involved. // -// * Amazon Web Services account; - The Amazon Web Services account; -// exists at the top of the hierarchy. It has the potential to use all of the -// Regions; and AWS Services. When you subscribe to QuickSight, you choose one -// Region; to use as your home Region. That's where your free SPICE capacity is -// located. You can use QuickSight in any supported Region;. +// * AWS Account +// - The AWS account exists at the top of the hierarchy. It has the potential to +// use all of the AWS Regions and AWS Services. When you subscribe to QuickSight, +// you choose one AWS Region to use as your home Region. That's where your free +// SPICE capacity is located. You can use QuickSight in any supported AWS +// Region. // -// * Region; - In each -// Region; where you sign in to QuickSight at least once, QuickSight acts as a -// separate instance of the same service. If you have a user directory, it resides -// in us-east-1, which is the US East (N. Virginia). Generally speaking, these -// users have access to QuickSight in any Region;, unless they are constrained to a -// namespace. To run the command in a different Region;, you change your Region -// settings. If you're using the AWS CLI, you can use one of the following -// options: +// * AWS Region - In each AWS Region where you sign in to QuickSight at +// least once, QuickSight acts as a separate instance of the same service. If you +// have a user directory, it resides in us-east-1, which is the US East (N. +// Virginia). Generally speaking, these users have access to QuickSight in any AWS +// Region, unless they are constrained to a namespace. To run the command in a +// different AWS Region, you change your Region settings. If you're using the AWS +// CLI, you can use one of the following options: // // * Use command line options // (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-options.html). @@ -41,7 +40,7 @@ import ( // (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html). // // * -// Run aws configure to change your default Region;. Use Enter to key the same +// Run aws configure to change your default AWS Region. Use Enter to key the same // settings for your keys. For more information, see Configuring the AWS CLI // (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html). // @@ -50,15 +49,15 @@ import ( // (data sources, datasets, dashboards, and so on). To access assets that are in a // specific namespace, users and groups must also be part of the same namespace. // People who share a namespace are completely isolated from users and assets in -// other namespaces, even if they are in the same Amazon Web Services account; and -// Region;. +// other namespaces, even if they are in the same AWS account and AWS Region. // -// * Applied customizations - Within an Region;, a set of QuickSight -// customizations can apply to an Amazon Web Services account; or to a namespace. -// Settings that you apply to a namespace override settings that you apply to an -// Amazon Web Services account;. All settings are isolated to a single Region;. To -// apply them in other Regions;, run the CreateAccountCustomization command in each -// Region; where you want to apply the same customizations. +// * +// Applied customizations - Within an AWS Region, a set of QuickSight +// customizations can apply to an AWS account or to a namespace. Settings that you +// apply to a namespace override settings that you apply to an AWS account. All +// settings are isolated to a single AWS Region. To apply them in other AWS +// Regions, run the CreateAccountCustomization command in each AWS Region where you +// want to apply the same customizations. func (c *Client) DescribeAccountCustomization(ctx context.Context, params *DescribeAccountCustomizationInput, optFns ...func(*Options)) (*DescribeAccountCustomizationOutput, error) { if params == nil { params = &DescribeAccountCustomizationInput{} @@ -76,8 +75,8 @@ func (c *Client) DescribeAccountCustomization(ctx context.Context, params *Descr type DescribeAccountCustomizationInput struct { - // The ID for the Amazon Web Services account; that you want to describe QuickSight - // customizations for. + // The ID for the AWS account that you want to describe QuickSight customizations + // for. // // This member is required. AwsAccountId *string @@ -98,20 +97,20 @@ type DescribeAccountCustomizationInput struct { type DescribeAccountCustomizationOutput struct { - // The QuickSight customizations that exist in the current Region;. + // The QuickSight customizations that exist in the current AWS Region. AccountCustomization *types.AccountCustomization // The Amazon Resource Name (ARN) of the customization that's associated with this - // Amazon Web Services account;. + // AWS account. Arn *string - // The ID for the Amazon Web Services account; that you're describing. + // The ID for the AWS account that you're describing. AwsAccountId *string // The QuickSight namespace that you're describing. Namespace *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeAccountSettings.go b/service/quicksight/api_op_DescribeAccountSettings.go index 3e585a9c23b..132ba0eeb0f 100644 --- a/service/quicksight/api_op_DescribeAccountSettings.go +++ b/service/quicksight/api_op_DescribeAccountSettings.go @@ -12,7 +12,7 @@ import ( ) // Describes the settings that were used when your QuickSight subscription was -// first created in this Amazon Web Services account;. +// first created in this AWS account. func (c *Client) DescribeAccountSettings(ctx context.Context, params *DescribeAccountSettingsInput, optFns ...func(*Options)) (*DescribeAccountSettingsOutput, error) { if params == nil { params = &DescribeAccountSettingsInput{} @@ -30,8 +30,7 @@ func (c *Client) DescribeAccountSettings(ctx context.Context, params *DescribeAc type DescribeAccountSettingsInput struct { - // The ID for the Amazon Web Services account; that contains the settings that you - // want to list. + // The ID for the AWS account that contains the settings that you want to list. // // This member is required. AwsAccountId *string @@ -41,17 +40,16 @@ type DescribeAccountSettingsInput struct { type DescribeAccountSettingsOutput struct { - // The QuickSight settings for this Amazon Web Services account;. This information - // includes the edition of Amazon QuickSight that you subscribed to (Standard or - // Enterprise) and the notification email for the QuickSight subscription. In the - // QuickSight console, the QuickSight subscription is sometimes referred to as a - // QuickSight "account" even though it's technically not an account by itself. - // Instead, it's a subscription to the QuickSight service for your Amazon Web - // Services account;. The edition that you subscribe to applies to QuickSight in - // every Region; where you use it. + // The QuickSight settings for this AWS account. This information includes the + // edition of Amazon QuickSight that you subscribed to (Standard or Enterprise) and + // the notification email for the QuickSight subscription. In the QuickSight + // console, the QuickSight subscription is sometimes referred to as a QuickSight + // "account" even though it's technically not an account by itself. Instead, it's a + // subscription to the QuickSight service for your AWS account. The edition that + // you subscribe to applies to QuickSight in every AWS Region where you use it. AccountSettings *types.AccountSettings - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeAnalysis.go b/service/quicksight/api_op_DescribeAnalysis.go index d63d1e1cc15..75109d13068 100644 --- a/service/quicksight/api_op_DescribeAnalysis.go +++ b/service/quicksight/api_op_DescribeAnalysis.go @@ -35,8 +35,8 @@ type DescribeAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the Amazon Web Services account; that contains the analysis. You must - // be using the Amazon Web Services account; that the analysis is in. + // The ID of the AWS account that contains the analysis. You must be using the AWS + // account that the analysis is in. // // This member is required. AwsAccountId *string @@ -50,7 +50,7 @@ type DescribeAnalysisOutput struct { // you're describing. Analysis *types.Analysis - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeAnalysisPermissions.go b/service/quicksight/api_op_DescribeAnalysisPermissions.go index 55bed7a873c..5fd4399ddf1 100644 --- a/service/quicksight/api_op_DescribeAnalysisPermissions.go +++ b/service/quicksight/api_op_DescribeAnalysisPermissions.go @@ -35,9 +35,8 @@ type DescribeAnalysisPermissionsInput struct { // This member is required. AnalysisId *string - // The ID of the Amazon Web Services account; that contains the analysis whose - // permissions you're describing. You must be using the Amazon Web Services - // account; that the analysis is in. + // The ID of the AWS account that contains the analysis whose permissions you're + // describing. You must be using the AWS account that the analysis is in. // // This member is required. AwsAccountId *string @@ -58,7 +57,7 @@ type DescribeAnalysisPermissionsOutput struct { // an analysis. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDashboard.go b/service/quicksight/api_op_DescribeDashboard.go index fa1d53eea8d..6b2dc802c04 100644 --- a/service/quicksight/api_op_DescribeDashboard.go +++ b/service/quicksight/api_op_DescribeDashboard.go @@ -29,8 +29,7 @@ func (c *Client) DescribeDashboard(ctx context.Context, params *DescribeDashboar type DescribeDashboardInput struct { - // The ID of the Amazon Web Services account; that contains the dashboard that - // you're describing. + // The ID of the AWS account that contains the dashboard that you're describing. // // This member is required. AwsAccountId *string @@ -55,7 +54,7 @@ type DescribeDashboardOutput struct { // Information about the dashboard. Dashboard *types.Dashboard - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of this request. diff --git a/service/quicksight/api_op_DescribeDashboardPermissions.go b/service/quicksight/api_op_DescribeDashboardPermissions.go index 9f46d41baef..7c6ca08ad70 100644 --- a/service/quicksight/api_op_DescribeDashboardPermissions.go +++ b/service/quicksight/api_op_DescribeDashboardPermissions.go @@ -29,8 +29,8 @@ func (c *Client) DescribeDashboardPermissions(ctx context.Context, params *Descr type DescribeDashboardPermissionsInput struct { - // The ID of the Amazon Web Services account; that contains the dashboard that - // you're describing permissions for. + // The ID of the AWS account that contains the dashboard that you're describing + // permissions for. // // This member is required. AwsAccountId *string @@ -54,7 +54,7 @@ type DescribeDashboardPermissionsOutput struct { // A structure that contains the permissions for the dashboard. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDataSet.go b/service/quicksight/api_op_DescribeDataSet.go index 013cc00da42..6764f64a78e 100644 --- a/service/quicksight/api_op_DescribeDataSet.go +++ b/service/quicksight/api_op_DescribeDataSet.go @@ -29,13 +29,13 @@ func (c *Client) DescribeDataSet(ctx context.Context, params *DescribeDataSetInp type DescribeDataSetInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // The ID for the dataset that you want to create. This ID is unique per Region; - // for each Amazon Web Services account;. + // The ID for the dataset that you want to create. This ID is unique per AWS Region + // for each AWS account. // // This member is required. DataSetId *string @@ -48,7 +48,7 @@ type DescribeDataSetOutput struct { // Information on the dataset. DataSet *types.DataSet - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDataSetPermissions.go b/service/quicksight/api_op_DescribeDataSetPermissions.go index e347748cd40..22ad7782b81 100644 --- a/service/quicksight/api_op_DescribeDataSetPermissions.go +++ b/service/quicksight/api_op_DescribeDataSetPermissions.go @@ -30,13 +30,13 @@ func (c *Client) DescribeDataSetPermissions(ctx context.Context, params *Describ type DescribeDataSetPermissionsInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // The ID for the dataset that you want to create. This ID is unique per Region; - // for each Amazon Web Services account;. + // The ID for the dataset that you want to create. This ID is unique per AWS Region + // for each AWS account. // // This member is required. DataSetId *string @@ -49,14 +49,14 @@ type DescribeDataSetPermissionsOutput struct { // The Amazon Resource Name (ARN) of the dataset. DataSetArn *string - // The ID for the dataset that you want to create. This ID is unique per Region; - // for each Amazon Web Services account;. + // The ID for the dataset that you want to create. This ID is unique per AWS Region + // for each AWS account. DataSetId *string // A list of resource permissions on the dataset. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDataSource.go b/service/quicksight/api_op_DescribeDataSource.go index 1e077883a45..7b79eefdbbe 100644 --- a/service/quicksight/api_op_DescribeDataSource.go +++ b/service/quicksight/api_op_DescribeDataSource.go @@ -29,13 +29,13 @@ func (c *Client) DescribeDataSource(ctx context.Context, params *DescribeDataSou type DescribeDataSourceInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. // // This member is required. DataSourceId *string @@ -48,7 +48,7 @@ type DescribeDataSourceOutput struct { // The information on the data source. DataSource *types.DataSource - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDataSourcePermissions.go b/service/quicksight/api_op_DescribeDataSourcePermissions.go index f9d3ee8ceb2..d61abcb651a 100644 --- a/service/quicksight/api_op_DescribeDataSourcePermissions.go +++ b/service/quicksight/api_op_DescribeDataSourcePermissions.go @@ -29,13 +29,13 @@ func (c *Client) DescribeDataSourcePermissions(ctx context.Context, params *Desc type DescribeDataSourcePermissionsInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. // // This member is required. DataSourceId *string @@ -48,14 +48,14 @@ type DescribeDataSourcePermissionsOutput struct { // The Amazon Resource Name (ARN) of the data source. DataSourceArn *string - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. DataSourceId *string // A list of resource permissions on the data source. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeGroup.go b/service/quicksight/api_op_DescribeGroup.go index f6855aca276..492bc3149de 100644 --- a/service/quicksight/api_op_DescribeGroup.go +++ b/service/quicksight/api_op_DescribeGroup.go @@ -29,9 +29,8 @@ func (c *Client) DescribeGroup(ctx context.Context, params *DescribeGroupInput, type DescribeGroupInput struct { - // The ID for the Amazon Web Services account; that the group is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the group is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -54,7 +53,7 @@ type DescribeGroupOutput struct { // The name of the group. Group *types.Group - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeIAMPolicyAssignment.go b/service/quicksight/api_op_DescribeIAMPolicyAssignment.go index 3dd99745c09..7060540d4a1 100644 --- a/service/quicksight/api_op_DescribeIAMPolicyAssignment.go +++ b/service/quicksight/api_op_DescribeIAMPolicyAssignment.go @@ -35,8 +35,8 @@ type DescribeIAMPolicyAssignmentInput struct { // This member is required. AssignmentName *string - // The ID of the Amazon Web Services account; that contains the assignment that you - // want to describe. + // The ID of the AWS account that contains the assignment that you want to + // describe. // // This member is required. AwsAccountId *string @@ -54,7 +54,7 @@ type DescribeIAMPolicyAssignmentOutput struct { // Information describing the IAM policy assignment. IAMPolicyAssignment *types.IAMPolicyAssignment - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeIngestion.go b/service/quicksight/api_op_DescribeIngestion.go index 50669f75f98..1cdc04b9cd8 100644 --- a/service/quicksight/api_op_DescribeIngestion.go +++ b/service/quicksight/api_op_DescribeIngestion.go @@ -29,7 +29,7 @@ func (c *Client) DescribeIngestion(ctx context.Context, params *DescribeIngestio type DescribeIngestionInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string @@ -52,7 +52,7 @@ type DescribeIngestionOutput struct { // Information about the ingestion. Ingestion *types.Ingestion - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeNamespace.go b/service/quicksight/api_op_DescribeNamespace.go index 71085e42bff..92fa605eeb4 100644 --- a/service/quicksight/api_op_DescribeNamespace.go +++ b/service/quicksight/api_op_DescribeNamespace.go @@ -29,8 +29,8 @@ func (c *Client) DescribeNamespace(ctx context.Context, params *DescribeNamespac type DescribeNamespaceInput struct { - // The ID for the Amazon Web Services account; that contains the QuickSight - // namespace that you want to describe. + // The ID for the AWS account that contains the QuickSight namespace that you want + // to describe. // // This member is required. AwsAccountId *string @@ -46,13 +46,13 @@ type DescribeNamespaceInput struct { type DescribeNamespaceOutput struct { // The information about the namespace that you're describing. The response - // includes the namespace ARN, name, Region;, creation status, and identity store. - // DescribeNamespace also works for namespaces that are in the process of being - // created. For incomplete namespaces, this API operation lists the namespace error - // types and messages associated with the creation process. + // includes the namespace ARN, name, AWS Region, creation status, and identity + // store. DescribeNamespace also works for namespaces that are in the process of + // being created. For incomplete namespaces, this API operation lists the namespace + // error types and messages associated with the creation process. Namespace *types.NamespaceInfoV2 - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeTemplate.go b/service/quicksight/api_op_DescribeTemplate.go index 4e09bab6ad6..426acfb49c9 100644 --- a/service/quicksight/api_op_DescribeTemplate.go +++ b/service/quicksight/api_op_DescribeTemplate.go @@ -29,8 +29,7 @@ func (c *Client) DescribeTemplate(ctx context.Context, params *DescribeTemplateI type DescribeTemplateInput struct { - // The ID of the Amazon Web Services account; that contains the template that - // you're describing. + // The ID of the AWS account that contains the template that you're describing. // // This member is required. AwsAccountId *string @@ -55,7 +54,7 @@ type DescribeTemplateInput struct { type DescribeTemplateOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeTemplateAlias.go b/service/quicksight/api_op_DescribeTemplateAlias.go index 7e29a49ec28..d13f742b092 100644 --- a/service/quicksight/api_op_DescribeTemplateAlias.go +++ b/service/quicksight/api_op_DescribeTemplateAlias.go @@ -37,8 +37,8 @@ type DescribeTemplateAliasInput struct { // This member is required. AliasName *string - // The ID of the Amazon Web Services account; that contains the template alias that - // you're describing. + // The ID of the AWS account that contains the template alias that you're + // describing. // // This member is required. AwsAccountId *string @@ -53,7 +53,7 @@ type DescribeTemplateAliasInput struct { type DescribeTemplateAliasOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeTemplatePermissions.go b/service/quicksight/api_op_DescribeTemplatePermissions.go index 5cfc1cd9ea5..e05cc7c742d 100644 --- a/service/quicksight/api_op_DescribeTemplatePermissions.go +++ b/service/quicksight/api_op_DescribeTemplatePermissions.go @@ -29,8 +29,7 @@ func (c *Client) DescribeTemplatePermissions(ctx context.Context, params *Descri type DescribeTemplatePermissionsInput struct { - // The ID of the Amazon Web Services account; that contains the template that - // you're describing. + // The ID of the AWS account that contains the template that you're describing. // // This member is required. AwsAccountId *string @@ -48,7 +47,7 @@ type DescribeTemplatePermissionsOutput struct { // A list of resource permissions to be set on the template. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeTheme.go b/service/quicksight/api_op_DescribeTheme.go index 497373eb178..2b056321f16 100644 --- a/service/quicksight/api_op_DescribeTheme.go +++ b/service/quicksight/api_op_DescribeTheme.go @@ -29,8 +29,7 @@ func (c *Client) DescribeTheme(ctx context.Context, params *DescribeThemeInput, type DescribeThemeInput struct { - // The ID of the Amazon Web Services account; that contains the theme that you're - // describing. + // The ID of the AWS account that contains the theme that you're describing. // // This member is required. AwsAccountId *string @@ -55,7 +54,7 @@ type DescribeThemeInput struct { type DescribeThemeOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeThemeAlias.go b/service/quicksight/api_op_DescribeThemeAlias.go index 99c24c9ed85..5b6852455f6 100644 --- a/service/quicksight/api_op_DescribeThemeAlias.go +++ b/service/quicksight/api_op_DescribeThemeAlias.go @@ -34,8 +34,7 @@ type DescribeThemeAliasInput struct { // This member is required. AliasName *string - // The ID of the Amazon Web Services account; that contains the theme alias that - // you're describing. + // The ID of the AWS account that contains the theme alias that you're describing. // // This member is required. AwsAccountId *string @@ -50,7 +49,7 @@ type DescribeThemeAliasInput struct { type DescribeThemeAliasOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeThemePermissions.go b/service/quicksight/api_op_DescribeThemePermissions.go index 9f9f48a7a06..e3ea87d2def 100644 --- a/service/quicksight/api_op_DescribeThemePermissions.go +++ b/service/quicksight/api_op_DescribeThemePermissions.go @@ -29,8 +29,7 @@ func (c *Client) DescribeThemePermissions(ctx context.Context, params *DescribeT type DescribeThemePermissionsInput struct { - // The ID of the Amazon Web Services account; that contains the theme that you're - // describing. + // The ID of the AWS account that contains the theme that you're describing. // // This member is required. AwsAccountId *string @@ -48,7 +47,7 @@ type DescribeThemePermissionsOutput struct { // A list of resource permissions set on the theme. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeUser.go b/service/quicksight/api_op_DescribeUser.go index 2bac5d636ee..23536e58ca3 100644 --- a/service/quicksight/api_op_DescribeUser.go +++ b/service/quicksight/api_op_DescribeUser.go @@ -29,9 +29,8 @@ func (c *Client) DescribeUser(ctx context.Context, params *DescribeUserInput, op type DescribeUserInput struct { - // The ID for the Amazon Web Services account; that the user is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the user is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -51,7 +50,7 @@ type DescribeUserInput struct { type DescribeUserOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_GenerateEmbedUrlForAnonymousUser.go b/service/quicksight/api_op_GenerateEmbedUrlForAnonymousUser.go deleted file mode 100644 index 89c78f7634b..00000000000 --- a/service/quicksight/api_op_GenerateEmbedUrlForAnonymousUser.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package quicksight - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/quicksight/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Generates an embed URL that you can use to embed an Amazon QuickSight dashboard -// in your website, without having to register any reader users. Before you use -// this action, make sure that you have configured the dashboards and permissions. -// The following rules apply to the generated URL: -// -// * It contains a temporary -// bearer token. It is valid for 5 minutes after it is generated. Once redeemed -// within this period, it cannot be re-used again. -// -// * The URL validity period -// should not be confused with the actual session lifetime that can be customized -// using the SessionLifetimeInMinutes -// (https://docs.aws.amazon.com/quicksight/latest/APIReference/API_GenerateEmbedUrlForAnonymousUser.html#QS-GenerateEmbedUrlForAnonymousUser-request-SessionLifetimeInMinutes) -// parameter. The resulting user session is valid for 15 minutes (default) to 10 -// hours (maximum). -// -// * You are charged only when the URL is used or there is -// interaction with Amazon QuickSight. -// -// For more information, see Embedded -// Analytics -// (https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics.html) in -// the Amazon QuickSight User Guide. For more information about the high-level -// steps for embedding and for an interactive demo of the ways you can customize -// embedding, visit the Amazon QuickSight Developer Portal -// (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-portal.html). -func (c *Client) GenerateEmbedUrlForAnonymousUser(ctx context.Context, params *GenerateEmbedUrlForAnonymousUserInput, optFns ...func(*Options)) (*GenerateEmbedUrlForAnonymousUserOutput, error) { - if params == nil { - params = &GenerateEmbedUrlForAnonymousUserInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GenerateEmbedUrlForAnonymousUser", params, optFns, c.addOperationGenerateEmbedUrlForAnonymousUserMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GenerateEmbedUrlForAnonymousUserOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GenerateEmbedUrlForAnonymousUserInput struct { - - // The Amazon Resource Names for the Amazon QuickSight resources that the user is - // authorized to access during the lifetime of the session. If you choose Dashboard - // embedding experience, pass the list of dashboard ARNs in the account that you - // want the user to be able to view. - // - // This member is required. - AuthorizedResourceArns []string - - // The ID for the Amazon Web Services account that contains the dashboard that - // you're embedding. - // - // This member is required. - AwsAccountId *string - - // The configuration of the experience you are embedding. - // - // This member is required. - ExperienceConfiguration *types.AnonymousUserEmbeddingExperienceConfiguration - - // The Amazon QuickSight namespace that the anonymous user virtually belongs to. If - // you are not using an Amazon QuickSight custom namespace, set this to default. - // - // This member is required. - Namespace *string - - // How many minutes the session is valid. The session lifetime must be in [15-600] - // minutes range. - SessionLifetimeInMinutes *int64 - - // The session tags used for row-level security. Before you use this parameter, - // make sure that you have configured the relevant datasets using the - // DataSet$RowLevelPermissionTagConfiguration parameter so that session tags can be - // used to provide row-level security. These are not the tags used for the Amazon - // Web Services resource tagging feature. For more information, see Using Row-Level - // Security (RLS) with Tags - // (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-rls-tags.html). - SessionTags []types.SessionTag - - noSmithyDocumentSerde -} - -type GenerateEmbedUrlForAnonymousUserOutput struct { - - // The embed URL for the dashboard. - // - // This member is required. - EmbedUrl *string - - // The Amazon Web Services request ID for this operation. - // - // This member is required. - RequestId *string - - // The HTTP status of the request. - // - // This member is required. - Status int32 - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGenerateEmbedUrlForAnonymousUserMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGenerateEmbedUrlForAnonymousUserValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGenerateEmbedUrlForAnonymousUser(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGenerateEmbedUrlForAnonymousUser(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "quicksight", - OperationName: "GenerateEmbedUrlForAnonymousUser", - } -} diff --git a/service/quicksight/api_op_GenerateEmbedUrlForRegisteredUser.go b/service/quicksight/api_op_GenerateEmbedUrlForRegisteredUser.go deleted file mode 100644 index 1fe0331f24c..00000000000 --- a/service/quicksight/api_op_GenerateEmbedUrlForRegisteredUser.go +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package quicksight - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/quicksight/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Generates an embed URL that you can use to embed an Amazon QuickSight experience -// in your website. This action can be used for any type of user registered in an -// Amazon QuickSight account. Before you use this action, make sure that you have -// configured the relevant Amazon QuickSight resource and permissions. The -// following rules apply to the generated URL: -// -// * It contains a temporary bearer -// token. It is valid for 5 minutes after it is generated. Once redeemed within -// this period, it cannot be re-used again. -// -// * The URL validity period should not -// be confused with the actual session lifetime that can be customized using the -// SessionLifetimeInMinutes -// (https://docs.aws.amazon.com/quicksight/latest/APIReference/API_GenerateEmbedUrlForRegisteredUser.html#QS-GenerateEmbedUrlForRegisteredUser-request-SessionLifetimeInMinutes) -// parameter. The resulting user session is valid for 15 minutes (default) to 10 -// hours (maximum). -// -// * You are charged only when the URL is used or there is -// interaction with Amazon QuickSight. -// -// For more information, see Embedded -// Analytics -// (https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics.html) in -// the Amazon QuickSight User Guide. For more information about the high-level -// steps for embedding and for an interactive demo of the ways you can customize -// embedding, visit the Amazon QuickSight Developer Portal -// (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-portal.html). -func (c *Client) GenerateEmbedUrlForRegisteredUser(ctx context.Context, params *GenerateEmbedUrlForRegisteredUserInput, optFns ...func(*Options)) (*GenerateEmbedUrlForRegisteredUserOutput, error) { - if params == nil { - params = &GenerateEmbedUrlForRegisteredUserInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GenerateEmbedUrlForRegisteredUser", params, optFns, c.addOperationGenerateEmbedUrlForRegisteredUserMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GenerateEmbedUrlForRegisteredUserOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GenerateEmbedUrlForRegisteredUserInput struct { - - // The ID for the Amazon Web Services account that contains the dashboard that - // you're embedding. - // - // This member is required. - AwsAccountId *string - - // The experience you are embedding. For registered users, you can embed Amazon - // QuickSight dashboards or the entire Amazon QuickSight console. - // - // This member is required. - ExperienceConfiguration *types.RegisteredUserEmbeddingExperienceConfiguration - - // The Amazon Resource Name for the registered user. - // - // This member is required. - UserArn *string - - // How many minutes the session is valid. The session lifetime must be in [15-600] - // minutes range. - SessionLifetimeInMinutes *int64 - - noSmithyDocumentSerde -} - -type GenerateEmbedUrlForRegisteredUserOutput struct { - - // The embed URL for the Amazon QuickSight dashboard or console. - // - // This member is required. - EmbedUrl *string - - // The Amazon Web Services request ID for this operation. - // - // This member is required. - RequestId *string - - // The HTTP status of the request. - // - // This member is required. - Status int32 - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGenerateEmbedUrlForRegisteredUserMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGenerateEmbedUrlForRegisteredUserValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGenerateEmbedUrlForRegisteredUser(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGenerateEmbedUrlForRegisteredUser(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "quicksight", - OperationName: "GenerateEmbedUrlForRegisteredUser", - } -} diff --git a/service/quicksight/api_op_GetDashboardEmbedUrl.go b/service/quicksight/api_op_GetDashboardEmbedUrl.go index 13d46058d65..6ac6e32ef2c 100644 --- a/service/quicksight/api_op_GetDashboardEmbedUrl.go +++ b/service/quicksight/api_op_GetDashboardEmbedUrl.go @@ -31,10 +31,7 @@ import ( // For more information, see // Embedded Analytics // (https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics.html) in -// the Amazon QuickSight User Guide. For more information about the high-level -// steps for embedding and for an interactive demo of the ways you can customize -// embedding, visit the Amazon QuickSight Developer Portal -// (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-portal.html). +// the Amazon QuickSight User Guide. func (c *Client) GetDashboardEmbedUrl(ctx context.Context, params *GetDashboardEmbedUrlInput, optFns ...func(*Options)) (*GetDashboardEmbedUrlOutput, error) { if params == nil { params = &GetDashboardEmbedUrlInput{} @@ -52,14 +49,13 @@ func (c *Client) GetDashboardEmbedUrl(ctx context.Context, params *GetDashboardE type GetDashboardEmbedUrlInput struct { - // The ID for the Amazon Web Services account; that contains the dashboard that - // you're embedding. + // The ID for the AWS account that contains the dashboard that you're embedding. // // This member is required. AwsAccountId *string - // The ID for the dashboard, also added to the Identity and Access Management (IAM) - // policy. + // The ID for the dashboard, also added to the AWS Identity and Access Management + // (IAM) policy. // // This member is required. DashboardId *string @@ -76,8 +72,8 @@ type GetDashboardEmbedUrlInput struct { // dash_id3 identity-type ANONYMOUS", the session can access all three dashboards. AdditionalDashboardIds []string - // The Amazon QuickSight namespace that the user virtually belongs to. If you are - // not using an Amazon QuickSight custom namespace, set this to default. + // The QuickSight namespace that contains the dashboard IDs in this request. If + // you're not using a custom namespace, set this to "default". Namespace *string // Remove the reset button on the embedded dashboard. The default is FALSE, which @@ -130,7 +126,7 @@ type GetDashboardEmbedUrlOutput struct { // session that is valid for 10 hours. EmbedUrl *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_GetSessionEmbedUrl.go b/service/quicksight/api_op_GetSessionEmbedUrl.go index d47d0a7485a..26fffa4aa1f 100644 --- a/service/quicksight/api_op_GetSessionEmbedUrl.go +++ b/service/quicksight/api_op_GetSessionEmbedUrl.go @@ -44,8 +44,7 @@ func (c *Client) GetSessionEmbedUrl(ctx context.Context, params *GetSessionEmbed type GetSessionEmbedUrlInput struct { - // The ID for the Amazon Web Services account; associated with your QuickSight - // subscription. + // The ID for the AWS account associated with your QuickSight subscription. // // This member is required. AwsAccountId *string @@ -84,7 +83,7 @@ type GetSessionEmbedUrlInput struct { // * Invited // nonfederated users // - // * Identity and Access Management (IAM) users and IAM + // * AWS Identity and Access Management (IAM) users and IAM // role-based sessions authenticated through Federated Single Sign-On using SAML, // OpenID Connect, or IAM federation // @@ -103,7 +102,7 @@ type GetSessionEmbedUrlOutput struct { // user session that is valid for 10 hours. EmbedUrl *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListAnalyses.go b/service/quicksight/api_op_ListAnalyses.go index 58bd5321e57..d40852d7db2 100644 --- a/service/quicksight/api_op_ListAnalyses.go +++ b/service/quicksight/api_op_ListAnalyses.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists Amazon QuickSight analyses that exist in the specified Amazon Web Services -// account;. +// Lists Amazon QuickSight analyses that exist in the specified AWS account. func (c *Client) ListAnalyses(ctx context.Context, params *ListAnalysesInput, optFns ...func(*Options)) (*ListAnalysesOutput, error) { if params == nil { params = &ListAnalysesInput{} @@ -31,7 +30,7 @@ func (c *Client) ListAnalyses(ctx context.Context, params *ListAnalysesInput, op type ListAnalysesInput struct { - // The ID of the Amazon Web Services account; that contains the analyses. + // The ID of the AWS account that contains the analyses. // // This member is required. AwsAccountId *string @@ -53,7 +52,7 @@ type ListAnalysesOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListDashboardVersions.go b/service/quicksight/api_op_ListDashboardVersions.go index 9ac3166de34..6a2ee6c1401 100644 --- a/service/quicksight/api_op_ListDashboardVersions.go +++ b/service/quicksight/api_op_ListDashboardVersions.go @@ -30,8 +30,8 @@ func (c *Client) ListDashboardVersions(ctx context.Context, params *ListDashboar type ListDashboardVersionsInput struct { - // The ID of the Amazon Web Services account; that contains the dashboard that - // you're listing versions for. + // The ID of the AWS account that contains the dashboard that you're listing + // versions for. // // This member is required. AwsAccountId *string @@ -58,7 +58,7 @@ type ListDashboardVersionsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListDashboards.go b/service/quicksight/api_op_ListDashboards.go index f0bef83b9cd..84389890d29 100644 --- a/service/quicksight/api_op_ListDashboards.go +++ b/service/quicksight/api_op_ListDashboards.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists dashboards in an Amazon Web Services account;. +// Lists dashboards in an AWS account. func (c *Client) ListDashboards(ctx context.Context, params *ListDashboardsInput, optFns ...func(*Options)) (*ListDashboardsOutput, error) { if params == nil { params = &ListDashboardsInput{} @@ -30,8 +30,7 @@ func (c *Client) ListDashboards(ctx context.Context, params *ListDashboardsInput type ListDashboardsInput struct { - // The ID of the Amazon Web Services account; that contains the dashboards that - // you're listing. + // The ID of the AWS account that contains the dashboards that you're listing. // // This member is required. AwsAccountId *string @@ -47,14 +46,14 @@ type ListDashboardsInput struct { type ListDashboardsOutput struct { - // A structure that contains all of the dashboards in your Amazon Web Services - // account;. This structure provides basic information about the dashboards. + // A structure that contains all of the dashboards in your AWS account. This + // structure provides basic information about the dashboards. DashboardSummaryList []types.DashboardSummary // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListDataSets.go b/service/quicksight/api_op_ListDataSets.go index ba5cfce07c9..ed423c52cf8 100644 --- a/service/quicksight/api_op_ListDataSets.go +++ b/service/quicksight/api_op_ListDataSets.go @@ -12,9 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all of the datasets belonging to the current Amazon Web Services account; -// in an Region;. The permissions resource is -// arn:aws:quicksight:region:aws-account-id:dataset/*. +// Lists all of the datasets belonging to the current AWS account in an AWS Region. +// The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*. func (c *Client) ListDataSets(ctx context.Context, params *ListDataSetsInput, optFns ...func(*Options)) (*ListDataSetsOutput, error) { if params == nil { params = &ListDataSetsInput{} @@ -32,7 +31,7 @@ func (c *Client) ListDataSets(ctx context.Context, params *ListDataSetsInput, op type ListDataSetsInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string @@ -54,7 +53,7 @@ type ListDataSetsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListDataSources.go b/service/quicksight/api_op_ListDataSources.go index fdf72d1b318..05bb9d08dd8 100644 --- a/service/quicksight/api_op_ListDataSources.go +++ b/service/quicksight/api_op_ListDataSources.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists data sources in current Region; that belong to this Amazon Web Services -// account;. +// Lists data sources in current AWS Region that belong to this AWS account. func (c *Client) ListDataSources(ctx context.Context, params *ListDataSourcesInput, optFns ...func(*Options)) (*ListDataSourcesOutput, error) { if params == nil { params = &ListDataSourcesInput{} @@ -31,7 +30,7 @@ func (c *Client) ListDataSources(ctx context.Context, params *ListDataSourcesInp type ListDataSourcesInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string @@ -53,7 +52,7 @@ type ListDataSourcesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListGroupMemberships.go b/service/quicksight/api_op_ListGroupMemberships.go index d219ae1c54a..2720d551b35 100644 --- a/service/quicksight/api_op_ListGroupMemberships.go +++ b/service/quicksight/api_op_ListGroupMemberships.go @@ -29,9 +29,8 @@ func (c *Client) ListGroupMemberships(ctx context.Context, params *ListGroupMemb type ListGroupMembershipsInput struct { - // The ID for the Amazon Web Services account; that the group is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the group is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -63,7 +62,7 @@ type ListGroupMembershipsOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListGroups.go b/service/quicksight/api_op_ListGroups.go index 03ca7adb8d1..88d212bd0c3 100644 --- a/service/quicksight/api_op_ListGroups.go +++ b/service/quicksight/api_op_ListGroups.go @@ -29,9 +29,8 @@ func (c *Client) ListGroups(ctx context.Context, params *ListGroupsInput, optFns type ListGroupsInput struct { - // The ID for the Amazon Web Services account; that the group is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the group is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -58,7 +57,7 @@ type ListGroupsOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListIAMPolicyAssignments.go b/service/quicksight/api_op_ListIAMPolicyAssignments.go index 1942115fb3c..1987fbfb7a8 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignments.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignments.go @@ -29,8 +29,7 @@ func (c *Client) ListIAMPolicyAssignments(ctx context.Context, params *ListIAMPo type ListIAMPolicyAssignmentsInput struct { - // The ID of the Amazon Web Services account; that contains these IAM policy - // assignments. + // The ID of the AWS account that contains these IAM policy assignments. // // This member is required. AwsAccountId *string @@ -60,7 +59,7 @@ type ListIAMPolicyAssignmentsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go index e61cdf94987..3ba069d19a6 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go @@ -31,7 +31,7 @@ func (c *Client) ListIAMPolicyAssignmentsForUser(ctx context.Context, params *Li type ListIAMPolicyAssignmentsForUserInput struct { - // The ID of the Amazon Web Services account; that contains the assignments. + // The ID of the AWS account that contains the assignments. // // This member is required. AwsAccountId *string @@ -63,7 +63,7 @@ type ListIAMPolicyAssignmentsForUserOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListIngestions.go b/service/quicksight/api_op_ListIngestions.go index ddbe58d2351..3a1bdd00b6e 100644 --- a/service/quicksight/api_op_ListIngestions.go +++ b/service/quicksight/api_op_ListIngestions.go @@ -30,7 +30,7 @@ func (c *Client) ListIngestions(ctx context.Context, params *ListIngestionsInput type ListIngestionsInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string @@ -57,7 +57,7 @@ type ListIngestionsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListNamespaces.go b/service/quicksight/api_op_ListNamespaces.go index de1fc204b14..cfd68ede9df 100644 --- a/service/quicksight/api_op_ListNamespaces.go +++ b/service/quicksight/api_op_ListNamespaces.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the namespaces for the specified Amazon Web Services account;. +// Lists the namespaces for the specified AWS account. func (c *Client) ListNamespaces(ctx context.Context, params *ListNamespacesInput, optFns ...func(*Options)) (*ListNamespacesOutput, error) { if params == nil { params = &ListNamespacesInput{} @@ -30,8 +30,8 @@ func (c *Client) ListNamespaces(ctx context.Context, params *ListNamespacesInput type ListNamespacesInput struct { - // The ID for the Amazon Web Services account; that contains the QuickSight - // namespaces that you want to list. + // The ID for the AWS account that contains the QuickSight namespaces that you want + // to list. // // This member is required. AwsAccountId *string @@ -47,15 +47,15 @@ type ListNamespacesInput struct { type ListNamespacesOutput struct { - // The information about the namespaces in this Amazon Web Services account;. The - // response includes the namespace ARN, name, Region;, notification email address, - // creation status, and identity store. + // The information about the namespaces in this AWS account. The response includes + // the namespace ARN, name, AWS Region, notification email address, creation + // status, and identity store. Namespaces []types.NamespaceInfoV2 // A pagination token that can be used in a subsequent request. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListTagsForResource.go b/service/quicksight/api_op_ListTagsForResource.go index 5db12061f90..45a41e39c9e 100644 --- a/service/quicksight/api_op_ListTagsForResource.go +++ b/service/quicksight/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListTemplateAliases.go b/service/quicksight/api_op_ListTemplateAliases.go index 634c989494e..d2993422fa6 100644 --- a/service/quicksight/api_op_ListTemplateAliases.go +++ b/service/quicksight/api_op_ListTemplateAliases.go @@ -30,8 +30,8 @@ func (c *Client) ListTemplateAliases(ctx context.Context, params *ListTemplateAl type ListTemplateAliasesInput struct { - // The ID of the Amazon Web Services account; that contains the template aliases - // that you're listing. + // The ID of the AWS account that contains the template aliases that you're + // listing. // // This member is required. AwsAccountId *string @@ -55,7 +55,7 @@ type ListTemplateAliasesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListTemplateVersions.go b/service/quicksight/api_op_ListTemplateVersions.go index 76f026be93b..21a7ce2b210 100644 --- a/service/quicksight/api_op_ListTemplateVersions.go +++ b/service/quicksight/api_op_ListTemplateVersions.go @@ -31,8 +31,7 @@ func (c *Client) ListTemplateVersions(ctx context.Context, params *ListTemplateV type ListTemplateVersionsInput struct { - // The ID of the Amazon Web Services account; that contains the templates that - // you're listing. + // The ID of the AWS account that contains the templates that you're listing. // // This member is required. AwsAccountId *string @@ -56,7 +55,7 @@ type ListTemplateVersionsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListTemplates.go b/service/quicksight/api_op_ListTemplates.go index 609832cdb9c..509e664cc88 100644 --- a/service/quicksight/api_op_ListTemplates.go +++ b/service/quicksight/api_op_ListTemplates.go @@ -30,8 +30,7 @@ func (c *Client) ListTemplates(ctx context.Context, params *ListTemplatesInput, type ListTemplatesInput struct { - // The ID of the Amazon Web Services account; that contains the templates that - // you're listing. + // The ID of the AWS account that contains the templates that you're listing. // // This member is required. AwsAccountId *string @@ -50,7 +49,7 @@ type ListTemplatesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListThemeAliases.go b/service/quicksight/api_op_ListThemeAliases.go index 5c175aae213..df4dec0485d 100644 --- a/service/quicksight/api_op_ListThemeAliases.go +++ b/service/quicksight/api_op_ListThemeAliases.go @@ -29,8 +29,7 @@ func (c *Client) ListThemeAliases(ctx context.Context, params *ListThemeAliasesI type ListThemeAliasesInput struct { - // The ID of the Amazon Web Services account; that contains the theme aliases that - // you're listing. + // The ID of the AWS account that contains the theme aliases that you're listing. // // This member is required. AwsAccountId *string @@ -54,7 +53,7 @@ type ListThemeAliasesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListThemeVersions.go b/service/quicksight/api_op_ListThemeVersions.go index ffcf50868aa..39981da1e81 100644 --- a/service/quicksight/api_op_ListThemeVersions.go +++ b/service/quicksight/api_op_ListThemeVersions.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the versions of the themes in the current Amazon Web Services -// account;. +// Lists all the versions of the themes in the current AWS account. func (c *Client) ListThemeVersions(ctx context.Context, params *ListThemeVersionsInput, optFns ...func(*Options)) (*ListThemeVersionsOutput, error) { if params == nil { params = &ListThemeVersionsInput{} @@ -31,8 +30,7 @@ func (c *Client) ListThemeVersions(ctx context.Context, params *ListThemeVersion type ListThemeVersionsInput struct { - // The ID of the Amazon Web Services account; that contains the themes that you're - // listing. + // The ID of the AWS account that contains the themes that you're listing. // // This member is required. AwsAccountId *string @@ -56,7 +54,7 @@ type ListThemeVersionsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListThemes.go b/service/quicksight/api_op_ListThemes.go index 4473faa2ba8..1af1b3ef95e 100644 --- a/service/quicksight/api_op_ListThemes.go +++ b/service/quicksight/api_op_ListThemes.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the themes in the current Amazon Web Services account;. +// Lists all the themes in the current AWS account. func (c *Client) ListThemes(ctx context.Context, params *ListThemesInput, optFns ...func(*Options)) (*ListThemesOutput, error) { if params == nil { params = &ListThemesInput{} @@ -30,8 +30,7 @@ func (c *Client) ListThemes(ctx context.Context, params *ListThemesInput, optFns type ListThemesInput struct { - // The ID of the Amazon Web Services account; that contains the themes that you're - // listing. + // The ID of the AWS account that contains the themes that you're listing. // // This member is required. AwsAccountId *string @@ -51,7 +50,7 @@ type ListThemesInput struct { // only the themes created by people using Amazon QuickSight. // // * QUICKSIGHT - - // Display only the starting themes defined by Amazon QuickSight. + // Display only the starting themes defined by QuickSight. Type types.ThemeType noSmithyDocumentSerde @@ -62,7 +61,7 @@ type ListThemesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListUserGroups.go b/service/quicksight/api_op_ListUserGroups.go index 3b46e445772..d62d24634f2 100644 --- a/service/quicksight/api_op_ListUserGroups.go +++ b/service/quicksight/api_op_ListUserGroups.go @@ -30,9 +30,8 @@ func (c *Client) ListUserGroups(ctx context.Context, params *ListUserGroupsInput type ListUserGroupsInput struct { - // The Amazon Web Services account; ID that the user is in. Currently, you use the - // ID for the Amazon Web Services account; that contains your Amazon QuickSight - // account. + // The AWS account ID that the user is in. Currently, you use the ID for the AWS + // account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -64,7 +63,7 @@ type ListUserGroupsOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListUsers.go b/service/quicksight/api_op_ListUsers.go index ffac18ef015..fdb3faa0e3c 100644 --- a/service/quicksight/api_op_ListUsers.go +++ b/service/quicksight/api_op_ListUsers.go @@ -29,9 +29,8 @@ func (c *Client) ListUsers(ctx context.Context, params *ListUsersInput, optFns . type ListUsersInput struct { - // The ID for the Amazon Web Services account; that the user is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the user is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -55,7 +54,7 @@ type ListUsersOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_RegisterUser.go b/service/quicksight/api_op_RegisterUser.go index 88a06ec81fb..59fa6560881 100644 --- a/service/quicksight/api_op_RegisterUser.go +++ b/service/quicksight/api_op_RegisterUser.go @@ -30,9 +30,8 @@ func (c *Client) RegisterUser(ctx context.Context, params *RegisterUserInput, op type RegisterUserInput struct { - // The ID for the Amazon Web Services account; that the user is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the user is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -108,7 +107,7 @@ type RegisterUserInput struct { // Therefore, they override the permissions typically granted by assigning // QuickSight users to one of the default security cohorts in QuickSight (admin, // author, reader). This feature is available only to QuickSight Enterprise edition - // subscriptions. + // subscriptions that use SAML 2.0-Based Federation for Single Sign-On (SSO). CustomPermissionsName *string // The type of supported external login provider that provides identity to let a @@ -151,7 +150,7 @@ type RegisterUserInput struct { type RegisterUserOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_RestoreAnalysis.go b/service/quicksight/api_op_RestoreAnalysis.go index b15004e1278..e44789e0c6f 100644 --- a/service/quicksight/api_op_RestoreAnalysis.go +++ b/service/quicksight/api_op_RestoreAnalysis.go @@ -33,7 +33,7 @@ type RestoreAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the Amazon Web Services account; that contains the analysis. + // The ID of the AWS account that contains the analysis. // // This member is required. AwsAccountId *string @@ -49,7 +49,7 @@ type RestoreAnalysisOutput struct { // The Amazon Resource Name (ARN) of the analysis that you're restoring. Arn *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_SearchAnalyses.go b/service/quicksight/api_op_SearchAnalyses.go index b76cb61c375..70640b73254 100644 --- a/service/quicksight/api_op_SearchAnalyses.go +++ b/service/quicksight/api_op_SearchAnalyses.go @@ -12,9 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Searches for analyses that belong to the user specified in the filter. This -// operation is eventually consistent. The results are best effort and may not -// reflect very recent updates and changes. +// Searches for analyses that belong to the user specified in the filter. func (c *Client) SearchAnalyses(ctx context.Context, params *SearchAnalysesInput, optFns ...func(*Options)) (*SearchAnalysesOutput, error) { if params == nil { params = &SearchAnalysesInput{} @@ -32,8 +30,7 @@ func (c *Client) SearchAnalyses(ctx context.Context, params *SearchAnalysesInput type SearchAnalysesInput struct { - // The ID of the Amazon Web Services account; that contains the analyses that - // you're searching for. + // The ID of the AWS account that contains the analyses that you're searching for. // // This member is required. AwsAccountId *string @@ -60,7 +57,7 @@ type SearchAnalysesOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_SearchDashboards.go b/service/quicksight/api_op_SearchDashboards.go index 575ca497492..2682ff5670d 100644 --- a/service/quicksight/api_op_SearchDashboards.go +++ b/service/quicksight/api_op_SearchDashboards.go @@ -12,9 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Searches for dashboards that belong to a user. This operation is eventually -// consistent. The results are best effort and may not reflect very recent updates -// and changes. +// Searches for dashboards that belong to a user. func (c *Client) SearchDashboards(ctx context.Context, params *SearchDashboardsInput, optFns ...func(*Options)) (*SearchDashboardsOutput, error) { if params == nil { params = &SearchDashboardsInput{} @@ -32,8 +30,8 @@ func (c *Client) SearchDashboards(ctx context.Context, params *SearchDashboardsI type SearchDashboardsInput struct { - // The ID of the Amazon Web Services account; that contains the user whose - // dashboards you're searching for. + // The ID of the AWS account that contains the user whose dashboards you're + // searching for. // // This member is required. AwsAccountId *string @@ -63,7 +61,7 @@ type SearchDashboardsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_TagResource.go b/service/quicksight/api_op_TagResource.go index c280d5758df..34b00d14ec2 100644 --- a/service/quicksight/api_op_TagResource.go +++ b/service/quicksight/api_op_TagResource.go @@ -29,7 +29,7 @@ import ( // taggable resources. // // * QuickSight doesn't currently support the Tag Editor for -// Resource Groups. +// AWS Resource Groups. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} @@ -63,7 +63,7 @@ type TagResourceInput struct { type TagResourceOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UntagResource.go b/service/quicksight/api_op_UntagResource.go index 21bcbab1b3f..54e1940f7e7 100644 --- a/service/quicksight/api_op_UntagResource.go +++ b/service/quicksight/api_op_UntagResource.go @@ -44,7 +44,7 @@ type UntagResourceInput struct { type UntagResourceOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateAccountCustomization.go b/service/quicksight/api_op_UpdateAccountCustomization.go index 55ede12548b..a37766af5d1 100644 --- a/service/quicksight/api_op_UpdateAccountCustomization.go +++ b/service/quicksight/api_op_UpdateAccountCustomization.go @@ -11,12 +11,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates Amazon QuickSight customizations the current Region;. Currently, the +// Updates Amazon QuickSight customizations the current AWS Region. Currently, the // only customization you can use is a theme. You can use customizations for your -// Amazon Web Services account; or, if you specify a namespace, for a QuickSight -// namespace instead. Customizations that apply to a namespace override -// customizations that apply to an Amazon Web Services account;. To find out which -// customizations apply, use the DescribeAccountCustomization API operation. +// AWS account or, if you specify a namespace, for a QuickSight namespace instead. +// Customizations that apply to a namespace override customizations that apply to +// an AWS account. To find out which customizations apply, use the +// DescribeAccountCustomization API operation. func (c *Client) UpdateAccountCustomization(ctx context.Context, params *UpdateAccountCustomizationInput, optFns ...func(*Options)) (*UpdateAccountCustomizationOutput, error) { if params == nil { params = &UpdateAccountCustomizationInput{} @@ -34,13 +34,13 @@ func (c *Client) UpdateAccountCustomization(ctx context.Context, params *UpdateA type UpdateAccountCustomizationInput struct { - // The QuickSight customizations you're updating in the current Region;. + // The QuickSight customizations you're updating in the current AWS Region. // // This member is required. AccountCustomization *types.AccountCustomization - // The ID for the Amazon Web Services account; that you want to update QuickSight - // customizations for. + // The ID for the AWS account that you want to update QuickSight customizations + // for. // // This member is required. AwsAccountId *string @@ -53,21 +53,21 @@ type UpdateAccountCustomizationInput struct { type UpdateAccountCustomizationOutput struct { - // The QuickSight customizations you're updating in the current Region;. + // The QuickSight customizations you're updating in the current AWS Region. AccountCustomization *types.AccountCustomization - // The Amazon Resource Name (ARN) for the updated customization for this Amazon Web - // Services account;. + // The Amazon Resource Name (ARN) for the updated customization for this AWS + // account. Arn *string - // The ID for the Amazon Web Services account; that you want to update QuickSight - // customizations for. + // The ID for the AWS account that you want to update QuickSight customizations + // for. AwsAccountId *string // The namespace associated with the customization that you're updating. Namespace *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateAccountSettings.go b/service/quicksight/api_op_UpdateAccountSettings.go index 645901c7b51..f09feef4ffc 100644 --- a/service/quicksight/api_op_UpdateAccountSettings.go +++ b/service/quicksight/api_op_UpdateAccountSettings.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the Amazon QuickSight settings in your Amazon Web Services account;. +// Updates the Amazon QuickSight settings in your AWS account. func (c *Client) UpdateAccountSettings(ctx context.Context, params *UpdateAccountSettingsInput, optFns ...func(*Options)) (*UpdateAccountSettingsOutput, error) { if params == nil { params = &UpdateAccountSettingsInput{} @@ -28,22 +28,22 @@ func (c *Client) UpdateAccountSettings(ctx context.Context, params *UpdateAccoun type UpdateAccountSettingsInput struct { - // The ID for the Amazon Web Services account; that contains the QuickSight - // settings that you want to list. + // The ID for the AWS account that contains the QuickSight settings that you want + // to list. // // This member is required. AwsAccountId *string - // The default namespace for this Amazon Web Services account;. Currently, the - // default is default. Identity and Access Management (IAM) users that register for - // the first time with QuickSight provide an email that becomes associated with the - // default namespace. + // The default namespace for this AWS account. Currently, the default is default. + // AWS Identity and Access Management (IAM) users that register for the first time + // with QuickSight provide an email that becomes associated with the default + // namespace. // // This member is required. DefaultNamespace *string // The email address that you want QuickSight to send notifications to regarding - // your Amazon Web Services account; or QuickSight subscription. + // your AWS account or QuickSight subscription. NotificationEmail *string noSmithyDocumentSerde @@ -51,7 +51,7 @@ type UpdateAccountSettingsInput struct { type UpdateAccountSettingsOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateAnalysis.go b/service/quicksight/api_op_UpdateAnalysis.go index ef14dffffd3..054745fc324 100644 --- a/service/quicksight/api_op_UpdateAnalysis.go +++ b/service/quicksight/api_op_UpdateAnalysis.go @@ -35,8 +35,7 @@ type UpdateAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the Amazon Web Services account; that contains the analysis that - // you're updating. + // The ID of the AWS account that contains the analysis that you're updating. // // This member is required. AwsAccountId *string @@ -74,7 +73,7 @@ type UpdateAnalysisOutput struct { // The ARN of the analysis that you're updating. Arn *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateAnalysisPermissions.go b/service/quicksight/api_op_UpdateAnalysisPermissions.go index 5d21c81f822..f9af1fd8ce7 100644 --- a/service/quicksight/api_op_UpdateAnalysisPermissions.go +++ b/service/quicksight/api_op_UpdateAnalysisPermissions.go @@ -35,9 +35,8 @@ type UpdateAnalysisPermissionsInput struct { // This member is required. AnalysisId *string - // The ID of the Amazon Web Services account; that contains the analysis whose - // permissions you're updating. You must be using the Amazon Web Services account; - // that the analysis is in. + // The ID of the AWS account that contains the analysis whose permissions you're + // updating. You must be using the AWS account that the analysis is in. // // This member is required. AwsAccountId *string @@ -65,7 +64,7 @@ type UpdateAnalysisPermissionsOutput struct { // an analysis. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDashboard.go b/service/quicksight/api_op_UpdateDashboard.go index a48cc8be3b5..29c1720beea 100644 --- a/service/quicksight/api_op_UpdateDashboard.go +++ b/service/quicksight/api_op_UpdateDashboard.go @@ -11,10 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates a dashboard in an Amazon Web Services account;. Updating a Dashboard -// creates a new dashboard version but does not immediately publish the new -// version. You can update the published version of a dashboard by using the -// UpdateDashboardPublishedVersion API operation. +// Updates a dashboard in an AWS account. func (c *Client) UpdateDashboard(ctx context.Context, params *UpdateDashboardInput, optFns ...func(*Options)) (*UpdateDashboardOutput, error) { if params == nil { params = &UpdateDashboardInput{} @@ -32,8 +29,7 @@ func (c *Client) UpdateDashboard(ctx context.Context, params *UpdateDashboardInp type UpdateDashboardInput struct { - // The ID of the Amazon Web Services account; that contains the dashboard that - // you're updating. + // The ID of the AWS account that contains the dashboard that you're updating. // // This member is required. AwsAccountId *string @@ -54,10 +50,10 @@ type UpdateDashboardInput struct { // you need to update a dashboard from an analysis, first convert the analysis to a // template by using the CreateTemplate API operation. For SourceTemplate, specify // the Amazon Resource Name (ARN) of the source template. The SourceTemplate ARN - // can contain any Amazon Web Services account; and any QuickSight-supported - // Region;. Use the DataSetReferences entity within SourceTemplate to list the - // replacement datasets for the placeholders listed in the original. The schema in - // each dataset must match its placeholder. + // can contain any AWS Account and any QuickSight-supported AWS Region. Use the + // DataSetReferences entity within SourceTemplate to list the replacement datasets + // for the placeholders listed in the original. The schema in each dataset must + // match its placeholder. // // This member is required. SourceEntity *types.DashboardSourceEntity @@ -86,8 +82,8 @@ type UpdateDashboardInput struct { // The Amazon Resource Name (ARN) of the theme that is being used for this // dashboard. If you add a value for this field, it overrides the value that was - // originally associated with the entity. The theme ARN must exist in the same - // Amazon Web Services account; where you create the dashboard. + // originally associated with the entity. The theme ARN must exist in the same AWS + // account where you create the dashboard. ThemeArn *string // A description for the first version of the dashboard being created. @@ -107,7 +103,7 @@ type UpdateDashboardOutput struct { // The ID for the dashboard. DashboardId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDashboardPermissions.go b/service/quicksight/api_op_UpdateDashboardPermissions.go index 7ed2f648d2a..fea69029821 100644 --- a/service/quicksight/api_op_UpdateDashboardPermissions.go +++ b/service/quicksight/api_op_UpdateDashboardPermissions.go @@ -29,8 +29,8 @@ func (c *Client) UpdateDashboardPermissions(ctx context.Context, params *UpdateD type UpdateDashboardPermissionsInput struct { - // The ID of the Amazon Web Services account; that contains the dashboard whose - // permissions you're updating. + // The ID of the AWS account that contains the dashboard whose permissions you're + // updating. // // This member is required. AwsAccountId *string @@ -60,7 +60,7 @@ type UpdateDashboardPermissionsOutput struct { // Information about the permissions on the dashboard. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDashboardPublishedVersion.go b/service/quicksight/api_op_UpdateDashboardPublishedVersion.go index 382b02ef641..141e5620208 100644 --- a/service/quicksight/api_op_UpdateDashboardPublishedVersion.go +++ b/service/quicksight/api_op_UpdateDashboardPublishedVersion.go @@ -28,8 +28,7 @@ func (c *Client) UpdateDashboardPublishedVersion(ctx context.Context, params *Up type UpdateDashboardPublishedVersionInput struct { - // The ID of the Amazon Web Services account; that contains the dashboard that - // you're updating. + // The ID of the AWS account that contains the dashboard that you're updating. // // This member is required. AwsAccountId *string @@ -55,7 +54,7 @@ type UpdateDashboardPublishedVersionOutput struct { // The ID for the dashboard. DashboardId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDataSet.go b/service/quicksight/api_op_UpdateDataSet.go index 5d9614b6fc0..f3d20d2aa96 100644 --- a/service/quicksight/api_op_UpdateDataSet.go +++ b/service/quicksight/api_op_UpdateDataSet.go @@ -29,13 +29,13 @@ func (c *Client) UpdateDataSet(ctx context.Context, params *UpdateDataSetInput, type UpdateDataSetInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // The ID for the dataset that you want to update. This ID is unique per Region; - // for each Amazon Web Services account;. + // The ID for the dataset that you want to update. This ID is unique per AWS Region + // for each AWS account. // // This member is required. DataSetId *string @@ -72,10 +72,6 @@ type UpdateDataSetInput struct { // The row-level security configuration for the data you want to create. RowLevelPermissionDataSet *types.RowLevelPermissionDataSet - // The configuration of tags on a dataset to set row-level security. Row-level - // security tags are currently supported for anonymous embedding only. - RowLevelPermissionTagConfiguration *types.RowLevelPermissionTagConfiguration - noSmithyDocumentSerde } @@ -84,8 +80,8 @@ type UpdateDataSetOutput struct { // The Amazon Resource Name (ARN) of the dataset. Arn *string - // The ID for the dataset that you want to create. This ID is unique per Region; - // for each Amazon Web Services account;. + // The ID for the dataset that you want to create. This ID is unique per AWS Region + // for each AWS account. DataSetId *string // The ARN for the ingestion, which is triggered as a result of dataset creation if @@ -96,7 +92,7 @@ type UpdateDataSetOutput struct { // the import mode is SPICE. IngestionId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDataSetPermissions.go b/service/quicksight/api_op_UpdateDataSetPermissions.go index e8695313782..524568a03ce 100644 --- a/service/quicksight/api_op_UpdateDataSetPermissions.go +++ b/service/quicksight/api_op_UpdateDataSetPermissions.go @@ -30,13 +30,13 @@ func (c *Client) UpdateDataSetPermissions(ctx context.Context, params *UpdateDat type UpdateDataSetPermissionsInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string // The ID for the dataset whose permissions you want to update. This ID is unique - // per Region; for each Amazon Web Services account;. + // per AWS Region for each AWS account. // // This member is required. DataSetId *string @@ -56,10 +56,10 @@ type UpdateDataSetPermissionsOutput struct { DataSetArn *string // The ID for the dataset whose permissions you want to update. This ID is unique - // per Region; for each Amazon Web Services account;. + // per AWS Region for each AWS account. DataSetId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDataSource.go b/service/quicksight/api_op_UpdateDataSource.go index 3f3e5638b6e..03b46c37fa7 100644 --- a/service/quicksight/api_op_UpdateDataSource.go +++ b/service/quicksight/api_op_UpdateDataSource.go @@ -29,13 +29,13 @@ func (c *Client) UpdateDataSource(ctx context.Context, params *UpdateDataSourceI type UpdateDataSourceInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. // // This member is required. DataSourceId *string @@ -68,11 +68,11 @@ type UpdateDataSourceOutput struct { // The Amazon Resource Name (ARN) of the data source. Arn *string - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. DataSourceId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDataSourcePermissions.go b/service/quicksight/api_op_UpdateDataSourcePermissions.go index f7e79b90b47..bc4602709f8 100644 --- a/service/quicksight/api_op_UpdateDataSourcePermissions.go +++ b/service/quicksight/api_op_UpdateDataSourcePermissions.go @@ -29,13 +29,13 @@ func (c *Client) UpdateDataSourcePermissions(ctx context.Context, params *Update type UpdateDataSourcePermissionsInput struct { - // The Amazon Web Services account; ID. + // The AWS account ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. // // This member is required. DataSourceId *string @@ -54,11 +54,11 @@ type UpdateDataSourcePermissionsOutput struct { // The Amazon Resource Name (ARN) of the data source. DataSourceArn *string - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. DataSourceId *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateGroup.go b/service/quicksight/api_op_UpdateGroup.go index ac34c88847e..2adfbfcc4bc 100644 --- a/service/quicksight/api_op_UpdateGroup.go +++ b/service/quicksight/api_op_UpdateGroup.go @@ -29,9 +29,8 @@ func (c *Client) UpdateGroup(ctx context.Context, params *UpdateGroupInput, optF type UpdateGroupInput struct { - // The ID for the Amazon Web Services account; that the group is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the group is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -57,7 +56,7 @@ type UpdateGroupOutput struct { // The name of the group. Group *types.Group - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateIAMPolicyAssignment.go b/service/quicksight/api_op_UpdateIAMPolicyAssignment.go index 49952461ad3..c0373517a4c 100644 --- a/service/quicksight/api_op_UpdateIAMPolicyAssignment.go +++ b/service/quicksight/api_op_UpdateIAMPolicyAssignment.go @@ -32,13 +32,12 @@ func (c *Client) UpdateIAMPolicyAssignment(ctx context.Context, params *UpdateIA type UpdateIAMPolicyAssignmentInput struct { // The name of the assignment, also called a rule. This name must be unique within - // an Amazon Web Services account;. + // an AWS account. // // This member is required. AssignmentName *string - // The ID of the Amazon Web Services account; that contains the IAM policy - // assignment. + // The ID of the AWS account that contains the IAM policy assignment. // // This member is required. AwsAccountId *string @@ -99,7 +98,7 @@ type UpdateIAMPolicyAssignmentOutput struct { // in this assignment. PolicyArn *string - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateTemplate.go b/service/quicksight/api_op_UpdateTemplate.go index dad30e0b78a..9a92041a726 100644 --- a/service/quicksight/api_op_UpdateTemplate.go +++ b/service/quicksight/api_op_UpdateTemplate.go @@ -30,8 +30,7 @@ func (c *Client) UpdateTemplate(ctx context.Context, params *UpdateTemplateInput type UpdateTemplateInput struct { - // The ID of the Amazon Web Services account; that contains the template that - // you're updating. + // The ID of the AWS account that contains the template that you're updating. // // This member is required. AwsAccountId *string @@ -41,11 +40,10 @@ type UpdateTemplateInput struct { // SourceTemplate for a template or SourceAnalysis for an analysis. Both of these // require an Amazon Resource Name (ARN). For SourceTemplate, specify the ARN of // the source template. For SourceAnalysis, specify the ARN of the source analysis. - // The SourceTemplate ARN can contain any Amazon Web Services account; and any - // QuickSight-supported Region;. Use the DataSetReferences entity within - // SourceTemplate or SourceAnalysis to list the replacement datasets for the - // placeholders listed in the original. The schema in each dataset must match its - // placeholder. + // The SourceTemplate ARN can contain any AWS Account and any QuickSight-supported + // AWS Region. Use the DataSetReferences entity within SourceTemplate or + // SourceAnalysis to list the replacement datasets for the placeholders listed in + // the original. The schema in each dataset must match its placeholder. // // This member is required. SourceEntity *types.TemplateSourceEntity @@ -75,7 +73,7 @@ type UpdateTemplateOutput struct { // The creation status of the template. CreationStatus types.ResourceStatus - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateTemplateAlias.go b/service/quicksight/api_op_UpdateTemplateAlias.go index 8cfe6d4a082..f89673bd013 100644 --- a/service/quicksight/api_op_UpdateTemplateAlias.go +++ b/service/quicksight/api_op_UpdateTemplateAlias.go @@ -37,8 +37,7 @@ type UpdateTemplateAliasInput struct { // This member is required. AliasName *string - // The ID of the Amazon Web Services account; that contains the template alias that - // you're updating. + // The ID of the AWS account that contains the template alias that you're updating. // // This member is required. AwsAccountId *string @@ -58,7 +57,7 @@ type UpdateTemplateAliasInput struct { type UpdateTemplateAliasOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateTemplatePermissions.go b/service/quicksight/api_op_UpdateTemplatePermissions.go index c26d3acbe2d..ecab3c9e20d 100644 --- a/service/quicksight/api_op_UpdateTemplatePermissions.go +++ b/service/quicksight/api_op_UpdateTemplatePermissions.go @@ -29,7 +29,7 @@ func (c *Client) UpdateTemplatePermissions(ctx context.Context, params *UpdateTe type UpdateTemplatePermissionsInput struct { - // The ID of the Amazon Web Services account; that contains the template. + // The ID of the AWS account that contains the template. // // This member is required. AwsAccountId *string @@ -53,7 +53,7 @@ type UpdateTemplatePermissionsOutput struct { // A list of resource permissions to be set on the template. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateTheme.go b/service/quicksight/api_op_UpdateTheme.go index b65538f41f8..f50ea2c3236 100644 --- a/service/quicksight/api_op_UpdateTheme.go +++ b/service/quicksight/api_op_UpdateTheme.go @@ -29,14 +29,13 @@ func (c *Client) UpdateTheme(ctx context.Context, params *UpdateThemeInput, optF type UpdateThemeInput struct { - // The ID of the Amazon Web Services account; that contains the theme that you're - // updating. + // The ID of the AWS account that contains the theme that you're updating. // // This member is required. AwsAccountId *string // The theme ID, defined by Amazon QuickSight, that a custom theme inherits from. - // All themes initially inherit from a default Amazon QuickSight theme. + // All themes initially inherit from a default QuickSight theme. // // This member is required. BaseThemeId *string @@ -68,7 +67,7 @@ type UpdateThemeOutput struct { // The creation status of the theme. CreationStatus types.ResourceStatus - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateThemeAlias.go b/service/quicksight/api_op_UpdateThemeAlias.go index 6f40e80fe00..a1b03af47a7 100644 --- a/service/quicksight/api_op_UpdateThemeAlias.go +++ b/service/quicksight/api_op_UpdateThemeAlias.go @@ -34,8 +34,7 @@ type UpdateThemeAliasInput struct { // This member is required. AliasName *string - // The ID of the Amazon Web Services account; that contains the theme alias that - // you're updating. + // The ID of the AWS account that contains the theme alias that you're updating. // // This member is required. AwsAccountId *string @@ -55,7 +54,7 @@ type UpdateThemeAliasInput struct { type UpdateThemeAliasOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateThemePermissions.go b/service/quicksight/api_op_UpdateThemePermissions.go index a02bd814eb1..8a3852ac5c8 100644 --- a/service/quicksight/api_op_UpdateThemePermissions.go +++ b/service/quicksight/api_op_UpdateThemePermissions.go @@ -77,7 +77,7 @@ func (c *Client) UpdateThemePermissions(ctx context.Context, params *UpdateTheme type UpdateThemePermissionsInput struct { - // The ID of the Amazon Web Services account; that contains the theme. + // The ID of the AWS account that contains the theme. // // This member is required. AwsAccountId *string @@ -101,7 +101,7 @@ type UpdateThemePermissionsOutput struct { // The resulting list of resource permissions for the theme. Permissions []types.ResourcePermission - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateUser.go b/service/quicksight/api_op_UpdateUser.go index bb5058ea1f8..98eb977392b 100644 --- a/service/quicksight/api_op_UpdateUser.go +++ b/service/quicksight/api_op_UpdateUser.go @@ -29,9 +29,8 @@ func (c *Client) UpdateUser(ctx context.Context, params *UpdateUserInput, optFns type UpdateUserInput struct { - // The ID for the Amazon Web Services account; that the user is in. Currently, you - // use the ID for the Amazon Web Services account; that contains your Amazon - // QuickSight account. + // The ID for the AWS account that the user is in. Currently, you use the ID for + // the AWS account that contains your Amazon QuickSight account. // // This member is required. AwsAccountId *string @@ -97,7 +96,7 @@ type UpdateUserInput struct { // Therefore, they override the permissions typically granted by assigning // QuickSight users to one of the default security cohorts in QuickSight (admin, // author, reader). This feature is available only to QuickSight Enterprise edition - // subscriptions. + // subscriptions that use SAML 2.0-Based Federation for Single Sign-On (SSO). CustomPermissionsName *string // The type of supported external login provider that provides identity to let a @@ -133,7 +132,7 @@ type UpdateUserInput struct { type UpdateUserOutput struct { - // The Amazon Web Services request ID for this operation. + // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/deserializers.go b/service/quicksight/deserializers.go index 0cc9e19ca5d..6a68cf2799d 100644 --- a/service/quicksight/deserializers.go +++ b/service/quicksight/deserializers.go @@ -11462,399 +11462,6 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput return nil } -type awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser struct { -} - -func (*awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response, &metadata) - } - output := &GenerateEmbedUrlForAnonymousUserOutput{} - out.Result = output - - err = awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserOutput(output, response) - if err != nil { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalFailureException", errorCode): - return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - - case strings.EqualFold("InvalidParameterValueException", errorCode): - return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): - return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("UnsupportedPricingPlanException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) - - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserOutput(v *GenerateEmbedUrlForAnonymousUserOutput, response *smithyhttp.Response) error { - if v == nil { - return fmt.Errorf("unsupported deserialization for nil %T", v) - } - - v.Status = int32(response.StatusCode) - - return nil -} -func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(v **GenerateEmbedUrlForAnonymousUserOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GenerateEmbedUrlForAnonymousUserOutput - if *v == nil { - sv = &GenerateEmbedUrlForAnonymousUserOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "EmbedUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) - } - sv.EmbedUrl = ptr.String(jtv) - } - - case "RequestId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.RequestId = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser struct { -} - -func (*awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response, &metadata) - } - output := &GenerateEmbedUrlForRegisteredUserOutput{} - out.Result = output - - err = awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserOutput(output, response) - if err != nil { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalFailureException", errorCode): - return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - - case strings.EqualFold("InvalidParameterValueException", errorCode): - return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - - case strings.EqualFold("QuickSightUserNotFoundException", errorCode): - return awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): - return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("UnsupportedPricingPlanException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) - - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserOutput(v *GenerateEmbedUrlForRegisteredUserOutput, response *smithyhttp.Response) error { - if v == nil { - return fmt.Errorf("unsupported deserialization for nil %T", v) - } - - v.Status = int32(response.StatusCode) - - return nil -} -func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(v **GenerateEmbedUrlForRegisteredUserOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GenerateEmbedUrlForRegisteredUserOutput - if *v == nil { - sv = &GenerateEmbedUrlForRegisteredUserOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "EmbedUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) - } - sv.EmbedUrl = ptr.String(jtv) - } - - case "RequestId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.RequestId = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - type awsRestjson1_deserializeOpGetDashboardEmbedUrl struct { } @@ -25659,11 +25266,6 @@ func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{ return err } - case "RowLevelPermissionTagConfiguration": - if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(&sv.RowLevelPermissionTagConfiguration, value); err != nil { - return err - } - default: _, _ = key, value @@ -25933,15 +25535,6 @@ func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, va return err } - case "RowLevelPermissionTagConfigurationApplied": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.RowLevelPermissionTagConfigurationApplied = jtv - } - default: _, _ = key, value @@ -30038,60 +29631,6 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(v **types.RowLeve sv.PermissionPolicy = types.RowLevelPermissionPolicy(jtv) } - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) - } - sv.Status = types.Status(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(v **types.RowLevelPermissionTagConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RowLevelPermissionTagConfiguration - if *v == nil { - sv = &types.RowLevelPermissionTagConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) - } - sv.Status = types.Status(jtv) - } - - case "TagRules": - if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleList(&sv.TagRules, value); err != nil { - return err - } - default: _, _ = key, value @@ -30101,107 +29640,6 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(v **type return nil } -func awsRestjson1_deserializeDocumentRowLevelPermissionTagRule(v **types.RowLevelPermissionTagRule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RowLevelPermissionTagRule - if *v == nil { - sv = &types.RowLevelPermissionTagRule{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ColumnName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ColumnName = ptr.String(jtv) - } - - case "MatchAllValue": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SessionTagValue to be of type string, got %T instead", value) - } - sv.MatchAllValue = ptr.String(jtv) - } - - case "TagKey": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SessionTagKey to be of type string, got %T instead", value) - } - sv.TagKey = ptr.String(jtv) - } - - case "TagMultiValueDelimiter": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RowLevelPermissionTagDelimiter to be of type string, got %T instead", value) - } - sv.TagMultiValueDelimiter = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleList(v *[]types.RowLevelPermissionTagRule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.RowLevelPermissionTagRule - if *v == nil { - cv = []types.RowLevelPermissionTagRule{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.RowLevelPermissionTagRule - destAddr := &col - if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRule(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - func awsRestjson1_deserializeDocumentS3Parameters(v **types.S3Parameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/quicksight/doc.go b/service/quicksight/doc.go index e92c6536b85..8cc24859afb 100644 --- a/service/quicksight/doc.go +++ b/service/quicksight/doc.go @@ -4,8 +4,8 @@ // Amazon QuickSight. // // Amazon QuickSight API Reference Amazon QuickSight is a fully managed, serverless -// business intelligence service for the Cloud that makes it easy to extend data -// and insights to every user in your organization. This API reference contains -// documentation for a programming interface that you can use to manage Amazon -// QuickSight. +// business intelligence service for the AWS Cloud that makes it easy to extend +// data and insights to every user in your organization. This API reference +// contains documentation for a programming interface that you can use to manage +// Amazon QuickSight. package quicksight diff --git a/service/quicksight/generated.json b/service/quicksight/generated.json index 671c5a93514..8f88ac64e45 100644 --- a/service/quicksight/generated.json +++ b/service/quicksight/generated.json @@ -63,8 +63,6 @@ "api_op_DescribeThemeAlias.go", "api_op_DescribeThemePermissions.go", "api_op_DescribeUser.go", - "api_op_GenerateEmbedUrlForAnonymousUser.go", - "api_op_GenerateEmbedUrlForRegisteredUser.go", "api_op_GetDashboardEmbedUrl.go", "api_op_GetSessionEmbedUrl.go", "api_op_ListAnalyses.go", diff --git a/service/quicksight/go.mod b/service/quicksight/go.mod index 610b8b4f989..49d3cba500b 100644 --- a/service/quicksight/go.mod +++ b/service/quicksight/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/quicksight/go.sum b/service/quicksight/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/quicksight/go.sum +++ b/service/quicksight/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/quicksight/serializers.go b/service/quicksight/serializers.go index 892194cf82e..3a0d5408e10 100644 --- a/service/quicksight/serializers.go +++ b/service/quicksight/serializers.go @@ -582,13 +582,6 @@ func awsRestjson1_serializeOpDocumentCreateDataSetInput(v *CreateDataSetInput, v } } - if v.RowLevelPermissionTagConfiguration != nil { - ok := object.Key("RowLevelPermissionTagConfiguration") - if err := awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration, ok); err != nil { - return err - } - } - if v.Tags != nil { ok := object.Key("Tags") if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { @@ -4742,206 +4735,6 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUserInput(v *DescribeUserInput, return nil } -type awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser struct { -} - -func (*awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GenerateEmbedUrlForAnonymousUserInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/embed-url/anonymous-user") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentGenerateEmbedUrlForAnonymousUserInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } - if v.AwsAccountId != nil { - if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AuthorizedResourceArns != nil { - ok := object.Key("AuthorizedResourceArns") - if err := awsRestjson1_serializeDocumentArnList(v.AuthorizedResourceArns, ok); err != nil { - return err - } - } - - if v.ExperienceConfiguration != nil { - ok := object.Key("ExperienceConfiguration") - if err := awsRestjson1_serializeDocumentAnonymousUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration, ok); err != nil { - return err - } - } - - if v.Namespace != nil { - ok := object.Key("Namespace") - ok.String(*v.Namespace) - } - - if v.SessionLifetimeInMinutes != nil { - ok := object.Key("SessionLifetimeInMinutes") - ok.Long(*v.SessionLifetimeInMinutes) - } - - if v.SessionTags != nil { - ok := object.Key("SessionTags") - if err := awsRestjson1_serializeDocumentSessionTagList(v.SessionTags, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser struct { -} - -func (*awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GenerateEmbedUrlForRegisteredUserInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/embed-url/registered-user") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentGenerateEmbedUrlForRegisteredUserInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } - if v.AwsAccountId != nil { - if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ExperienceConfiguration != nil { - ok := object.Key("ExperienceConfiguration") - if err := awsRestjson1_serializeDocumentRegisteredUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration, ok); err != nil { - return err - } - } - - if v.SessionLifetimeInMinutes != nil { - ok := object.Key("SessionLifetimeInMinutes") - ok.Long(*v.SessionLifetimeInMinutes) - } - - if v.UserArn != nil { - ok := object.Key("UserArn") - ok.String(*v.UserArn) - } - - return nil -} - type awsRestjson1_serializeOpGetDashboardEmbedUrl struct { } @@ -8167,13 +7960,6 @@ func awsRestjson1_serializeOpDocumentUpdateDataSetInput(v *UpdateDataSetInput, v } } - if v.RowLevelPermissionTagConfiguration != nil { - ok := object.Key("RowLevelPermissionTagConfiguration") - if err := awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration, ok); err != nil { - return err - } - } - return nil } @@ -9741,43 +9527,6 @@ func awsRestjson1_serializeDocumentAnalysisSourceTemplate(v *types.AnalysisSourc return nil } -func awsRestjson1_serializeDocumentAnonymousUserDashboardEmbeddingConfiguration(v *types.AnonymousUserDashboardEmbeddingConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.InitialDashboardId != nil { - ok := object.Key("InitialDashboardId") - ok.String(*v.InitialDashboardId) - } - - return nil -} - -func awsRestjson1_serializeDocumentAnonymousUserEmbeddingExperienceConfiguration(v *types.AnonymousUserEmbeddingExperienceConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Dashboard != nil { - ok := object.Key("Dashboard") - if err := awsRestjson1_serializeDocumentAnonymousUserDashboardEmbeddingConfiguration(v.Dashboard, ok); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeDocumentArnList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - func awsRestjson1_serializeDocumentAthenaParameters(v *types.AthenaParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -11190,51 +10939,6 @@ func awsRestjson1_serializeDocumentRedshiftParameters(v *types.RedshiftParameter return nil } -func awsRestjson1_serializeDocumentRegisteredUserDashboardEmbeddingConfiguration(v *types.RegisteredUserDashboardEmbeddingConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.InitialDashboardId != nil { - ok := object.Key("InitialDashboardId") - ok.String(*v.InitialDashboardId) - } - - return nil -} - -func awsRestjson1_serializeDocumentRegisteredUserEmbeddingExperienceConfiguration(v *types.RegisteredUserEmbeddingExperienceConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Dashboard != nil { - ok := object.Key("Dashboard") - if err := awsRestjson1_serializeDocumentRegisteredUserDashboardEmbeddingConfiguration(v.Dashboard, ok); err != nil { - return err - } - } - - if v.QuickSightConsole != nil { - ok := object.Key("QuickSightConsole") - if err := awsRestjson1_serializeDocumentRegisteredUserQuickSightConsoleEmbeddingConfiguration(v.QuickSightConsole, ok); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeDocumentRegisteredUserQuickSightConsoleEmbeddingConfiguration(v *types.RegisteredUserQuickSightConsoleEmbeddingConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.InitialPath != nil { - ok := object.Key("InitialPath") - ok.String(*v.InitialPath) - } - - return nil -} - func awsRestjson1_serializeDocumentRelationalTable(v *types.RelationalTable, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -11342,70 +11046,6 @@ func awsRestjson1_serializeDocumentRowLevelPermissionDataSet(v *types.RowLevelPe ok.String(string(v.PermissionPolicy)) } - if len(v.Status) > 0 { - ok := object.Key("Status") - ok.String(string(v.Status)) - } - - return nil -} - -func awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v *types.RowLevelPermissionTagConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Status) > 0 { - ok := object.Key("Status") - ok.String(string(v.Status)) - } - - if v.TagRules != nil { - ok := object.Key("TagRules") - if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRuleList(v.TagRules, ok); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeDocumentRowLevelPermissionTagRule(v *types.RowLevelPermissionTagRule, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ColumnName != nil { - ok := object.Key("ColumnName") - ok.String(*v.ColumnName) - } - - if v.MatchAllValue != nil { - ok := object.Key("MatchAllValue") - ok.String(*v.MatchAllValue) - } - - if v.TagKey != nil { - ok := object.Key("TagKey") - ok.String(*v.TagKey) - } - - if v.TagMultiValueDelimiter != nil { - ok := object.Key("TagMultiValueDelimiter") - ok.String(*v.TagMultiValueDelimiter) - } - - return nil -} - -func awsRestjson1_serializeDocumentRowLevelPermissionTagRuleList(v []types.RowLevelPermissionTagRule, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRule(&v[i], av); err != nil { - return err - } - } return nil } @@ -11461,36 +11101,6 @@ func awsRestjson1_serializeDocumentServiceNowParameters(v *types.ServiceNowParam return nil } -func awsRestjson1_serializeDocumentSessionTag(v *types.SessionTag, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Key != nil { - ok := object.Key("Key") - ok.String(*v.Key) - } - - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) - } - - return nil -} - -func awsRestjson1_serializeDocumentSessionTagList(v []types.SessionTag, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentSessionTag(&v[i], av); err != nil { - return err - } - } - return nil -} - func awsRestjson1_serializeDocumentSheetControlsOption(v *types.SheetControlsOption, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/quicksight/types/enums.go b/service/quicksight/types/enums.go index bf141ae52c8..8f52ffa454c 100644 --- a/service/quicksight/types/enums.go +++ b/service/quicksight/types/enums.go @@ -847,24 +847,6 @@ func (RowLevelPermissionPolicy) Values() []RowLevelPermissionPolicy { } } -type Status string - -// Enum values for Status -const ( - StatusEnabled Status = "ENABLED" - StatusDisabled Status = "DISABLED" -) - -// Values returns all known values for Status. Note that this can be expanded in -// the future, and so it is only as up to date as the client. The ordering of this -// slice is not guaranteed to be stable across updates. -func (Status) Values() []Status { - return []Status{ - "ENABLED", - "DISABLED", - } -} - type TemplateErrorType string // Enum values for TemplateErrorType diff --git a/service/quicksight/types/errors.go b/service/quicksight/types/errors.go index 2079bb2eee8..e254a022fd8 100644 --- a/service/quicksight/types/errors.go +++ b/service/quicksight/types/errors.go @@ -366,11 +366,11 @@ func (e *ThrottlingException) ErrorCode() string { return "Throttlin func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error indicates that you are calling an embedding operation in Amazon -// QuickSight without the required pricing plan on your Amazon Web Services -// account;. Before you can use embedding for anonymous users, a QuickSight -// administrator needs to add capacity pricing to QuickSight. You can do this on -// the Manage QuickSight page. After capacity pricing is added, you can use the -// GetDashboardEmbedUrl API operation with the --identity-type ANONYMOUS option. +// QuickSight without the required pricing plan on your AWS account. Before you can +// use embedding for anonymous users, a QuickSight administrator needs to add +// capacity pricing to QuickSight. You can do this on the Manage QuickSight page. +// After capacity pricing is added, you can use the GetDashboardEmbedUrl API +// operation with the --identity-type ANONYMOUS option. type UnsupportedPricingPlanException struct { Message *string diff --git a/service/quicksight/types/types.go b/service/quicksight/types/types.go index bc3828cf3a1..c3dba328a10 100644 --- a/service/quicksight/types/types.go +++ b/service/quicksight/types/types.go @@ -7,8 +7,8 @@ import ( "time" ) -// The Amazon QuickSight customizations associated with your Amazon Web Services -// account; or a QuickSight namespace in a specific Region;. +// The Amazon QuickSight customizations associated with your AWS account or a +// QuickSight namespace in a specific AWS Region. type AccountCustomization struct { // The default theme for this QuickSight subscription. @@ -17,15 +17,15 @@ type AccountCustomization struct { noSmithyDocumentSerde } -// The QuickSight settings associated with your Amazon Web Services account;. +// The QuickSight settings associated with your AWS account. type AccountSettings struct { - // The "account name" you provided for the QuickSight subscription in your Amazon - // Web Services account;. You create this name when you sign up for QuickSight. It - // is unique in all of Amazon Web Services and it appears only when users sign in. + // The "account name" you provided for the QuickSight subscription in your AWS + // account. You create this name when you sign up for QuickSight. It is unique in + // all of AWS and it appears only in the console when users sign in. AccountName *string - // The default QuickSight namespace for your Amazon Web Services account;. + // The default QuickSight namespace for your AWS account. DefaultNamespace *string // The edition of QuickSight that you're currently subscribed to: Enterprise @@ -38,7 +38,7 @@ type AccountSettings struct { noSmithyDocumentSerde } -// The active Identity and Access Management (IAM) policy assignment. +// The active AWS Identity and Access Management (IAM) policy assignment. type ActiveIAMPolicyAssignment struct { // A name for the IAM policy assignment. @@ -187,31 +187,6 @@ type AnalysisSummary struct { noSmithyDocumentSerde } -// Information about the dashboard that you want to embed. -type AnonymousUserDashboardEmbeddingConfiguration struct { - - // The dashboard ID for the dashboard that you want the user to see first. This ID - // is included in the output URL. When the URL in response is accessed, Amazon - // QuickSight renders this dashboard. The Amazon Resource Name (ARN) of this - // dashboard must be included in the AuthorizedResourceArns parameter. Otherwise, - // the request will fail with InvalidParameterValueException. - // - // This member is required. - InitialDashboardId *string - - noSmithyDocumentSerde -} - -// The type of experience you want to embed. For anonymous users, you can embed an -// Amazon QuickSight dashboard. -type AnonymousUserEmbeddingExperienceConfiguration struct { - - // The type of embedding experience. In this case, an Amazon QuickSight dashboard. - Dashboard *AnonymousUserDashboardEmbeddingConfiguration - - noSmithyDocumentSerde -} - // Amazon Athena parameters. type AthenaParameters struct { @@ -263,7 +238,7 @@ type AuroraPostgreSqlParameters struct { noSmithyDocumentSerde } -// Amazon Web Services IoT Analytics parameters. +// AWS IoT Analytics parameters. type AwsIotAnalyticsParameters struct { // Dataset name. @@ -731,9 +706,6 @@ type DataSet struct { // The row-level security configuration for the dataset. RowLevelPermissionDataSet *RowLevelPermissionDataSet - // The element you can use to define tags for row-level security. - RowLevelPermissionTagConfiguration *RowLevelPermissionTagConfiguration - noSmithyDocumentSerde } @@ -804,9 +776,6 @@ type DataSetSummary struct { // The row-level security configuration for the dataset. RowLevelPermissionDataSet *RowLevelPermissionDataSet - // Whether or not the row level permission tags are applied. - RowLevelPermissionTagConfigurationApplied bool - noSmithyDocumentSerde } @@ -830,8 +799,8 @@ type DataSource struct { // The time that this data source was created. CreatedTime *time.Time - // The ID of the data source. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the data source. This ID is unique per AWS Region for each AWS + // account. DataSourceId *string // The parameters that Amazon QuickSight uses to connect to your underlying source. @@ -960,7 +929,7 @@ type DataSourceParametersMemberAuroraPostgreSqlParameters struct { func (*DataSourceParametersMemberAuroraPostgreSqlParameters) isDataSourceParameters() {} -// Amazon Web Services IoT Analytics parameters. +// AWS IoT Analytics parameters. type DataSourceParametersMemberAwsIotAnalyticsParameters struct { Value AwsIotAnalyticsParameters @@ -1326,7 +1295,7 @@ type GutterStyle struct { noSmithyDocumentSerde } -// An Identity and Access Management (IAM) policy assignment. +// An AWS Identity and Access Management (IAM) policy assignment. type IAMPolicyAssignment struct { // Assignment ID. @@ -1338,7 +1307,7 @@ type IAMPolicyAssignment struct { // Assignment status. AssignmentStatus AssignmentStatus - // The Amazon Web Services account; ID. + // The AWS account ID. AwsAccountId *string // Identities. @@ -1625,7 +1594,7 @@ type NamespaceInfoV2 struct { // The namespace ARN. Arn *string - // The namespace Region;. + // The namespace AWS Region. CapacityRegion *string // The creation status of a namespace that is not yet completely created. @@ -1845,89 +1814,6 @@ type RedshiftParameters struct { noSmithyDocumentSerde } -// Information about the dashboard you want to embed. -type RegisteredUserDashboardEmbeddingConfiguration struct { - - // The dashboard ID for the dashboard that you want the user to see first. This ID - // is included in the output URL. When the URL in response is accessed, Amazon - // QuickSight renders this dashboard if the user has permissions to view it. If the - // user does not have permission to view this dashboard, they see a permissions - // error message. - // - // This member is required. - InitialDashboardId *string - - noSmithyDocumentSerde -} - -// The type of experience you want to embed. For registered users, you can embed an -// Amazon QuickSight dashboard or the Amazon QuickSight console. Exactly one of the -// experience configurations is required. You can choose Dashboard or -// QuickSightConsole. You cannot choose more than one experience configuraton. -type RegisteredUserEmbeddingExperienceConfiguration struct { - - // The configuration details for providing a dashboard embedding experience. - Dashboard *RegisteredUserDashboardEmbeddingConfiguration - - // The configuration details for providing an Amazon QuickSight console embedding - // experience. This can be used along with custom permissions to restrict access to - // certain features. For more information, see Customizing Access to the Amazon - // QuickSight Console - // (https://docs.aws.amazon.com/quicksight/latest/user/customizing-permissions-to-the-quicksight-console.html) - // in the Amazon QuickSight User Guide. Use GenerateEmbedUrlForRegisteredUser where - // you want to provide an authoring portal that allows users to create data - // sources, datasets, analyses, and dashboards. The users who accesses an embedded - // Amazon QuickSight console needs to belong to the author or admin security - // cohort. If you want to restrict permissions to some of these features, add a - // custom permissions profile to the user with the UpdateUser API operation. Use - // RegisterUser API operation to add a new user with a custom permission profile - // attached. For more information, see the following sections in the Amazon - // QuickSight User Guide: - // - // * Embedding the Full Functionality of the Amazon - // QuickSight Console for Authenticated Users - // (https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics-full-console-for-authenticated-users.html) - // - // * - // Customizing Access to the Amazon QuickSight Console - // (https://docs.aws.amazon.com/quicksight/latest/user/customizing-permissions-to-the-quicksight-console.html) - // - // For - // more information about the high-level steps for embedding and for an interactive - // demo of the ways you can customize embedding, visit the Amazon QuickSight - // Developer Portal - // (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-portal.html). - QuickSightConsole *RegisteredUserQuickSightConsoleEmbeddingConfiguration - - noSmithyDocumentSerde -} - -// Information about the Amazon QuickSight console that you want to embed. -type RegisteredUserQuickSightConsoleEmbeddingConfiguration struct { - - // The initial URL path for the Amazon QuickSight console. InitialPath is required. - // The entry point URL is constrained to the following paths: - // - // * /start - // - // * - // /start/analyses - // - // * /start/dashboards - // - // * /start/favorites - // - // * - // /dashboards/DashboardId. DashboardId is the actual ID key from the Amazon - // QuickSight console URL of the dashboard. - // - // * /analyses/AnalysisId. AnalysisId is - // the actual ID key from the Amazon QuickSight console URL of the analysis. - InitialPath *string - - noSmithyDocumentSerde -} - // A physical table type for relational data sources. type RelationalTable struct { @@ -1989,10 +1875,9 @@ type ResourcePermission struct { // user, group, or namespace associated with an analysis, dashboard, template, or // theme. (This is common.) // - // * The ARN of an Amazon Web Services account; root: - // This is an IAM ARN rather than a QuickSight ARN. Use this option only to share - // resources (templates) across Amazon Web Services accounts. (This is less - // common.) + // * The ARN of an AWS account root: This is an IAM ARN + // rather than a QuickSight ARN. Use this option only to share resources + // (templates) across AWS accounts. (This is less common.) // // This member is required. Principal *string @@ -2040,51 +1925,6 @@ type RowLevelPermissionDataSet struct { // The namespace associated with the dataset that contains permissions for RLS. Namespace *string - // The status of the row-level security permission dataset. If enabled, the status - // is ENABLED. If disabled, the status is DISABLED. - Status Status - - noSmithyDocumentSerde -} - -// The configuration of tags on a dataset to set row-level security. -type RowLevelPermissionTagConfiguration struct { - - // A set of rules associated with row-level security, such as the tag names and - // columns that they are assigned to. - // - // This member is required. - TagRules []RowLevelPermissionTagRule - - // The status of row-level security tags. If enabled, the status is ENABLED. If - // disabled, the status is DISABLED. - Status Status - - noSmithyDocumentSerde -} - -// A set of rules associated with a tag. -type RowLevelPermissionTagRule struct { - - // The column name that a tag key is assigned to. - // - // This member is required. - ColumnName *string - - // The unique key for a tag. - // - // This member is required. - TagKey *string - - // A string that you want to use to filter by all the values in a column in the - // dataset and don’t want to list the values one by one. For example, you can use - // an asterisk as your match all value. - MatchAllValue *string - - // A string that you want to use to delimit the values when you pass the values at - // run time. For example, you can delimit the values with a comma. - TagMultiValueDelimiter *string - noSmithyDocumentSerde } @@ -2092,7 +1932,7 @@ type RowLevelPermissionTagRule struct { type S3Parameters struct { // Location of the Amazon S3 manifest file. This is NULL if the manifest file was - // uploaded into QuickSight. + // uploaded in the console. // // This member is required. ManifestFileLocation *ManifestFileLocation @@ -2131,27 +1971,12 @@ type ServiceNowParameters struct { noSmithyDocumentSerde } -// The key-value pair used for the row-level security tags feature. -type SessionTag struct { - - // The key for the tag. - // - // This member is required. - Key *string - - // The value that you want to assign the tag. - // - // This member is required. - Value *string - - noSmithyDocumentSerde -} - // A sheet, which is an object that contains a set of visuals that are viewed -// together on one page in Amazon QuickSight. Every analysis and dashboard contains -// at least one sheet. Each sheet contains at least one visualization widget, for -// example a chart, pivot table, or narrative insight. Sheets can be associated -// with other components, such as controls, filters, and so on. +// together on one page in the Amazon QuickSight console. Every analysis and +// dashboard contains at least one sheet. Each sheet contains at least one +// visualization widget, for example a chart, pivot table, or narrative insight. +// Sheets can be associated with other components, such as controls, filters, and +// so on. type Sheet struct { // The name of a sheet. This name is displayed on the sheet's tab in the QuickSight @@ -2294,8 +2119,8 @@ type TagColumnOperation struct { // This member is required. ColumnName *string - // The dataset column tag, currently only used for geospatial type tagging. This is - // not tags for the Amazon Web Services tagging feature. + // The dataset column tag, currently only used for geospatial type tagging. . This + // is not tags for the AWS tagging feature. . // // This member is required. Tags []ColumnTag @@ -2309,9 +2134,8 @@ type TagColumnOperation struct { // replace the dataset associated with an analysis. You can use templates to create // dashboards by replacing dataset placeholders with datasets that follow the same // schema that was used to create the source analysis and template. You can share -// templates across Amazon Web Services accounts by allowing users in other Amazon -// Web Services accounts to create a template or a dashboard from an existing -// template. +// templates across AWS accounts by allowing users in other AWS accounts to create +// a template or a dashboard from an existing template. type Template struct { // The Amazon Resource Name (ARN) of the template. @@ -2326,8 +2150,7 @@ type Template struct { // The display name of the template. Name *string - // The ID for the template. This is unique per Region; for each Amazon Web Services - // account;. + // The ID for the template. This is unique per AWS Region for each AWS account. TemplateId *string // A structure describing the versions of the template. @@ -2421,8 +2244,7 @@ type TemplateSummary struct { // A display name for the template. Name *string - // The ID of the template. This ID is unique per Region; for each Amazon Web - // Services account;. + // The ID of the template. This ID is unique per AWS Region for each AWS account. TemplateId *string noSmithyDocumentSerde @@ -2597,8 +2419,7 @@ type ThemeSummary struct { // the display name for the theme. Name *string - // The ID of the theme. This ID is unique per Region; for each Amazon Web Services - // account;. + // The ID of the theme. This ID is unique per AWS Region for each AWS account. ThemeId *string noSmithyDocumentSerde diff --git a/service/quicksight/validators.go b/service/quicksight/validators.go index e432ec49ac7..2032d92ae2e 100644 --- a/service/quicksight/validators.go +++ b/service/quicksight/validators.go @@ -1170,46 +1170,6 @@ func (m *validateOpDescribeUser) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } -type validateOpGenerateEmbedUrlForAnonymousUser struct { -} - -func (*validateOpGenerateEmbedUrlForAnonymousUser) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGenerateEmbedUrlForAnonymousUser) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GenerateEmbedUrlForAnonymousUserInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGenerateEmbedUrlForAnonymousUserInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGenerateEmbedUrlForRegisteredUser struct { -} - -func (*validateOpGenerateEmbedUrlForRegisteredUser) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGenerateEmbedUrlForRegisteredUser) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GenerateEmbedUrlForRegisteredUserInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGenerateEmbedUrlForRegisteredUserInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpGetDashboardEmbedUrl struct { } @@ -2502,14 +2462,6 @@ func addOpDescribeUserValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeUser{}, middleware.After) } -func addOpGenerateEmbedUrlForAnonymousUserValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGenerateEmbedUrlForAnonymousUser{}, middleware.After) -} - -func addOpGenerateEmbedUrlForRegisteredUserValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGenerateEmbedUrlForRegisteredUser{}, middleware.After) -} - func addOpGetDashboardEmbedUrlValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetDashboardEmbedUrl{}, middleware.After) } @@ -2776,38 +2728,6 @@ func validateAnalysisSourceTemplate(v *types.AnalysisSourceTemplate) error { } } -func validateAnonymousUserDashboardEmbeddingConfiguration(v *types.AnonymousUserDashboardEmbeddingConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AnonymousUserDashboardEmbeddingConfiguration"} - if v.InitialDashboardId == nil { - invalidParams.Add(smithy.NewErrParamRequired("InitialDashboardId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateAnonymousUserEmbeddingExperienceConfiguration(v *types.AnonymousUserEmbeddingExperienceConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AnonymousUserEmbeddingExperienceConfiguration"} - if v.Dashboard != nil { - if err := validateAnonymousUserDashboardEmbeddingConfiguration(v.Dashboard); err != nil { - invalidParams.AddNested("Dashboard", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateAuroraParameters(v *types.AuroraParameters) error { if v == nil { return nil @@ -3777,38 +3697,6 @@ func validateRedshiftParameters(v *types.RedshiftParameters) error { } } -func validateRegisteredUserDashboardEmbeddingConfiguration(v *types.RegisteredUserDashboardEmbeddingConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "RegisteredUserDashboardEmbeddingConfiguration"} - if v.InitialDashboardId == nil { - invalidParams.Add(smithy.NewErrParamRequired("InitialDashboardId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateRegisteredUserEmbeddingExperienceConfiguration(v *types.RegisteredUserEmbeddingExperienceConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "RegisteredUserEmbeddingExperienceConfiguration"} - if v.Dashboard != nil { - if err := validateRegisteredUserDashboardEmbeddingConfiguration(v.Dashboard); err != nil { - invalidParams.AddNested("Dashboard", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateRelationalTable(v *types.RelationalTable) error { if v == nil { return nil @@ -3905,60 +3793,6 @@ func validateRowLevelPermissionDataSet(v *types.RowLevelPermissionDataSet) error } } -func validateRowLevelPermissionTagConfiguration(v *types.RowLevelPermissionTagConfiguration) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "RowLevelPermissionTagConfiguration"} - if v.TagRules == nil { - invalidParams.Add(smithy.NewErrParamRequired("TagRules")) - } else if v.TagRules != nil { - if err := validateRowLevelPermissionTagRuleList(v.TagRules); err != nil { - invalidParams.AddNested("TagRules", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateRowLevelPermissionTagRule(v *types.RowLevelPermissionTagRule) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "RowLevelPermissionTagRule"} - if v.TagKey == nil { - invalidParams.Add(smithy.NewErrParamRequired("TagKey")) - } - if v.ColumnName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ColumnName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateRowLevelPermissionTagRuleList(v []types.RowLevelPermissionTagRule) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "RowLevelPermissionTagRuleList"} - for i := range v { - if err := validateRowLevelPermissionTagRule(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateS3Parameters(v *types.S3Parameters) error { if v == nil { return nil @@ -4015,41 +3849,6 @@ func validateServiceNowParameters(v *types.ServiceNowParameters) error { } } -func validateSessionTag(v *types.SessionTag) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SessionTag"} - if v.Key == nil { - invalidParams.Add(smithy.NewErrParamRequired("Key")) - } - if v.Value == nil { - invalidParams.Add(smithy.NewErrParamRequired("Value")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateSessionTagList(v []types.SessionTag) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "SessionTagList"} - for i := range v { - if err := validateSessionTag(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateSnowflakeParameters(v *types.SnowflakeParameters) error { if v == nil { return nil @@ -4551,11 +4350,6 @@ func validateOpCreateDataSetInput(v *CreateDataSetInput) error { invalidParams.AddNested("RowLevelPermissionDataSet", err.(smithy.InvalidParamsError)) } } - if v.RowLevelPermissionTagConfiguration != nil { - if err := validateRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration); err != nil { - invalidParams.AddNested("RowLevelPermissionTagConfiguration", err.(smithy.InvalidParamsError)) - } - } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) @@ -5682,64 +5476,6 @@ func validateOpDescribeUserInput(v *DescribeUserInput) error { } } -func validateOpGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GenerateEmbedUrlForAnonymousUserInput"} - if v.AwsAccountId == nil { - invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) - } - if v.Namespace == nil { - invalidParams.Add(smithy.NewErrParamRequired("Namespace")) - } - if v.SessionTags != nil { - if err := validateSessionTagList(v.SessionTags); err != nil { - invalidParams.AddNested("SessionTags", err.(smithy.InvalidParamsError)) - } - } - if v.AuthorizedResourceArns == nil { - invalidParams.Add(smithy.NewErrParamRequired("AuthorizedResourceArns")) - } - if v.ExperienceConfiguration == nil { - invalidParams.Add(smithy.NewErrParamRequired("ExperienceConfiguration")) - } else if v.ExperienceConfiguration != nil { - if err := validateAnonymousUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration); err != nil { - invalidParams.AddNested("ExperienceConfiguration", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GenerateEmbedUrlForRegisteredUserInput"} - if v.AwsAccountId == nil { - invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) - } - if v.UserArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("UserArn")) - } - if v.ExperienceConfiguration == nil { - invalidParams.Add(smithy.NewErrParamRequired("ExperienceConfiguration")) - } else if v.ExperienceConfiguration != nil { - if err := validateRegisteredUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration); err != nil { - invalidParams.AddNested("ExperienceConfiguration", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpGetDashboardEmbedUrlInput(v *GetDashboardEmbedUrlInput) error { if v == nil { return nil @@ -6515,11 +6251,6 @@ func validateOpUpdateDataSetInput(v *UpdateDataSetInput) error { invalidParams.AddNested("RowLevelPermissionDataSet", err.(smithy.InvalidParamsError)) } } - if v.RowLevelPermissionTagConfiguration != nil { - if err := validateRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration); err != nil { - invalidParams.AddNested("RowLevelPermissionTagConfiguration", err.(smithy.InvalidParamsError)) - } - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/ram/go.mod b/service/ram/go.mod index bf2e9c3d512..69f1557bbce 100644 --- a/service/ram/go.mod +++ b/service/ram/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ram/go.sum b/service/ram/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/ram/go.sum +++ b/service/ram/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/rds/api_op_DescribeDBClusters.go b/service/rds/api_op_DescribeDBClusters.go index 605a48b43f6..2212f53de39 100644 --- a/service/rds/api_op_DescribeDBClusters.go +++ b/service/rds/api_op_DescribeDBClusters.go @@ -46,21 +46,9 @@ type DescribeDBClustersInput struct { // A filter that specifies one or more DB clusters to describe. Supported // filters: // - // * clone-group-id - Accepts clone group identifiers. The results list - // will only include information about the DB clusters associated with these clone - // groups. - // // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon // Resource Names (ARNs). The results list will only include information about the // DB clusters identified by these ARNs. - // - // * domain - Accepts Active Directory - // directory IDs. The results list will only include information about the DB - // clusters associated with these domains. - // - // * engine - Accepts engine names. The - // results list will only include information about the DB clusters for these - // engines. Filters []types.Filter // Optional Boolean parameter that specifies whether the output includes diff --git a/service/rds/api_op_DescribeDBInstances.go b/service/rds/api_op_DescribeDBInstances.go index 51a5c7617aa..84033fd95b4 100644 --- a/service/rds/api_op_DescribeDBInstances.go +++ b/service/rds/api_op_DescribeDBInstances.go @@ -4,18 +4,15 @@ package rds import ( "context" - "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/rds/types" - smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" smithywaiter "github.com/aws/smithy-go/waiter" "github.com/jmespath/go-jmespath" - "strconv" "time" ) @@ -545,269 +542,6 @@ func dBInstanceAvailableStateRetryable(ctx context.Context, input *DescribeDBIns return true, nil } -// DBInstanceDeletedWaiterOptions are waiter options for DBInstanceDeletedWaiter -type DBInstanceDeletedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // DBInstanceDeletedWaiter will use default minimum delay of 30 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, DBInstanceDeletedWaiter will use default max delay of 120 seconds. Note - // that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeDBInstancesInput, *DescribeDBInstancesOutput, error) (bool, error) -} - -// DBInstanceDeletedWaiter defines the waiters for DBInstanceDeleted -type DBInstanceDeletedWaiter struct { - client DescribeDBInstancesAPIClient - - options DBInstanceDeletedWaiterOptions -} - -// NewDBInstanceDeletedWaiter constructs a DBInstanceDeletedWaiter. -func NewDBInstanceDeletedWaiter(client DescribeDBInstancesAPIClient, optFns ...func(*DBInstanceDeletedWaiterOptions)) *DBInstanceDeletedWaiter { - options := DBInstanceDeletedWaiterOptions{} - options.MinDelay = 30 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = dBInstanceDeletedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &DBInstanceDeletedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for DBInstanceDeleted waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *DBInstanceDeletedWaiter) Wait(ctx context.Context, params *DescribeDBInstancesInput, maxWaitDur time.Duration, optFns ...func(*DBInstanceDeletedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeDBInstances(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for DBInstanceDeleted waiter") -} - -func dBInstanceDeletedStateRetryable(ctx context.Context, input *DescribeDBInstancesInput, output *DescribeDBInstancesOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("length(DBInstances) == `0`", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "true" - bv, err := strconv.ParseBool(expectedValue) - if err != nil { - return false, fmt.Errorf("error parsing boolean from string %w", err) - } - value, ok := pathValue.(bool) - if !ok { - return false, fmt.Errorf("waiter comparator expected bool value got %T", pathValue) - } - - if value == bv { - return false, nil - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "DBInstanceNotFound" == apiErr.ErrorCode() { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("DBInstances[].DBInstanceStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "creating" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(*string) - if !ok { - return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) - } - - if string(*value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("DBInstances[].DBInstanceStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "modifying" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(*string) - if !ok { - return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) - } - - if string(*value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("DBInstances[].DBInstanceStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "rebooting" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(*string) - if !ok { - return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) - } - - if string(*value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("DBInstances[].DBInstanceStatus", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "resetting-master-credentials" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(*string) - if !ok { - return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) - } - - if string(*value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeDBInstances(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/rds/api_op_DescribeDBSnapshots.go b/service/rds/api_op_DescribeDBSnapshots.go index 1900e233ac9..04c9fee259a 100644 --- a/service/rds/api_op_DescribeDBSnapshots.go +++ b/service/rds/api_op_DescribeDBSnapshots.go @@ -4,18 +4,15 @@ package rds import ( "context" - "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/rds/types" - smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" smithywaiter "github.com/aws/smithy-go/waiter" "github.com/jmespath/go-jmespath" - "strconv" "time" ) @@ -597,269 +594,6 @@ func dBSnapshotAvailableStateRetryable(ctx context.Context, input *DescribeDBSna return true, nil } -// DBSnapshotDeletedWaiterOptions are waiter options for DBSnapshotDeletedWaiter -type DBSnapshotDeletedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // DBSnapshotDeletedWaiter will use default minimum delay of 30 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, DBSnapshotDeletedWaiter will use default max delay of 120 seconds. Note - // that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeDBSnapshotsInput, *DescribeDBSnapshotsOutput, error) (bool, error) -} - -// DBSnapshotDeletedWaiter defines the waiters for DBSnapshotDeleted -type DBSnapshotDeletedWaiter struct { - client DescribeDBSnapshotsAPIClient - - options DBSnapshotDeletedWaiterOptions -} - -// NewDBSnapshotDeletedWaiter constructs a DBSnapshotDeletedWaiter. -func NewDBSnapshotDeletedWaiter(client DescribeDBSnapshotsAPIClient, optFns ...func(*DBSnapshotDeletedWaiterOptions)) *DBSnapshotDeletedWaiter { - options := DBSnapshotDeletedWaiterOptions{} - options.MinDelay = 30 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = dBSnapshotDeletedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &DBSnapshotDeletedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for DBSnapshotDeleted waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *DBSnapshotDeletedWaiter) Wait(ctx context.Context, params *DescribeDBSnapshotsInput, maxWaitDur time.Duration, optFns ...func(*DBSnapshotDeletedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeDBSnapshots(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for DBSnapshotDeleted waiter") -} - -func dBSnapshotDeletedStateRetryable(ctx context.Context, input *DescribeDBSnapshotsInput, output *DescribeDBSnapshotsOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("length(DBSnapshots) == `0`", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "true" - bv, err := strconv.ParseBool(expectedValue) - if err != nil { - return false, fmt.Errorf("error parsing boolean from string %w", err) - } - value, ok := pathValue.(bool) - if !ok { - return false, fmt.Errorf("waiter comparator expected bool value got %T", pathValue) - } - - if value == bv { - return false, nil - } - } - - if err != nil { - var apiErr smithy.APIError - ok := errors.As(err, &apiErr) - if !ok { - return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) - } - - if "DBSnapshotNotFound" == apiErr.ErrorCode() { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("DBSnapshots[].Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "creating" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(*string) - if !ok { - return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) - } - - if string(*value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("DBSnapshots[].Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "modifying" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(*string) - if !ok { - return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) - } - - if string(*value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("DBSnapshots[].Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "rebooting" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(*string) - if !ok { - return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) - } - - if string(*value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - if err == nil { - pathValue, err := jmespath.Search("DBSnapshots[].Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "resetting-master-credentials" - listOfValues, ok := pathValue.([]interface{}) - if !ok { - return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) - } - - for _, v := range listOfValues { - value, ok := v.(*string) - if !ok { - return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) - } - - if string(*value) == expectedValue { - return false, fmt.Errorf("waiter state transitioned to Failure") - } - } - } - - return true, nil -} - func newServiceMetadataMiddleware_opDescribeDBSnapshots(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/rds/api_op_DescribeGlobalClusters.go b/service/rds/api_op_DescribeGlobalClusters.go index 7b0b1cca852..53cb0bf6d55 100644 --- a/service/rds/api_op_DescribeGlobalClusters.go +++ b/service/rds/api_op_DescribeGlobalClusters.go @@ -33,7 +33,12 @@ func (c *Client) DescribeGlobalClusters(ctx context.Context, params *DescribeGlo type DescribeGlobalClustersInput struct { - // This parameter isn't currently supported. + // A filter that specifies one or more global DB clusters to describe. Supported + // filters: + // + // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon + // Resource Names (ARNs). The results list will only include information about the + // DB clusters identified by these ARNs. Filters []types.Filter // The user-supplied DB cluster identifier. If this parameter is specified, diff --git a/service/rds/deserializers.go b/service/rds/deserializers.go index 981284a17eb..6aa69e74b02 100644 --- a/service/rds/deserializers.go +++ b/service/rds/deserializers.go @@ -30436,23 +30436,6 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi sv.OptionGroupName = ptr.String(xtv) } - case strings.EqualFold("OriginalSnapshotCreateTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.OriginalSnapshotCreateTime = ptr.Time(t) - } - case strings.EqualFold("PercentProgress", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/rds/go.mod b/service/rds/go.mod index 9c387614e80..67e6ec5d439 100644 --- a/service/rds/go.mod +++ b/service/rds/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rds/go.sum b/service/rds/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/rds/go.sum +++ b/service/rds/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/rds/types/types.go b/service/rds/types/types.go index 571b4fd22fa..2af1feedaa4 100644 --- a/service/rds/types/types.go +++ b/service/rds/types/types.go @@ -1819,10 +1819,6 @@ type DBSnapshot struct { // Provides the option group name for the DB snapshot. OptionGroupName *string - // Specifies the time of the CreateDBSnapshot operation in Coordinated Universal - // Time (UTC). Doesn't change when the snapshot is copied. - OriginalSnapshotCreateTime *time.Time - // The percentage of the estimated data that has been transferred. PercentProgress int32 @@ -1835,14 +1831,13 @@ type DBSnapshot struct { ProcessorFeatures []ProcessorFeature // Specifies when the snapshot was taken in Coordinated Universal Time (UTC). - // Changes for the copy when the snapshot is copied. SnapshotCreateTime *time.Time // Provides the type of the DB snapshot. SnapshotType *string // The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. - // It only has a value in the case of a cross-account or cross-Region copy. + // It only has value in case of cross-customer or cross-region copy. SourceDBSnapshotIdentifier *string // The Amazon Web Services Region that the DB snapshot was created in or copied diff --git a/service/rdsdata/go.mod b/service/rdsdata/go.mod index 5d3b8e6c54b..79d5246903b 100644 --- a/service/rdsdata/go.mod +++ b/service/rdsdata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/rdsdata/go.sum b/service/rdsdata/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/rdsdata/go.sum +++ b/service/rdsdata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/redshift/go.mod b/service/redshift/go.mod index 629bdb9f175..34711664fdd 100644 --- a/service/redshift/go.mod +++ b/service/redshift/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/redshift/go.sum b/service/redshift/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/redshift/go.sum +++ b/service/redshift/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/redshiftdata/api_op_BatchExecuteStatement.go b/service/redshiftdata/api_op_BatchExecuteStatement.go deleted file mode 100644 index 4b97fc273b4..00000000000 --- a/service/redshiftdata/api_op_BatchExecuteStatement.go +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package redshiftdata - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "time" -) - -// Runs one or more SQL statements, which can be data manipulation language (DML) -// or data definition language (DDL). Depending on the authorization method, use -// one of the following combinations of request parameters: -// -// * Secrets Manager - -// specify the Amazon Resource Name (ARN) of the secret, the database name, and the -// cluster identifier that matches the cluster in the secret. -// -// * Temporary -// credentials - specify the cluster identifier, the database name, and the -// database user name. Permission to call the redshift:GetClusterCredentials -// operation is required to use this method. -func (c *Client) BatchExecuteStatement(ctx context.Context, params *BatchExecuteStatementInput, optFns ...func(*Options)) (*BatchExecuteStatementOutput, error) { - if params == nil { - params = &BatchExecuteStatementInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "BatchExecuteStatement", params, optFns, c.addOperationBatchExecuteStatementMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*BatchExecuteStatementOutput) - out.ResultMetadata = metadata - return out, nil -} - -type BatchExecuteStatementInput struct { - - // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. - ClusterIdentifier *string - - // The name of the database. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. - Database *string - - // One or more SQL statements to run. - // - // This member is required. - Sqls []string - - // The database user name. This parameter is required when authenticating using - // temporary credentials. - DbUser *string - - // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using Secrets Manager. - SecretArn *string - - // The name of the SQL statements. You can name the SQL statements when you create - // them to identify the query. - StatementName *string - - // A value that indicates whether to send an event to the Amazon EventBridge event - // bus after the SQL statements run. - WithEvent *bool - - noSmithyDocumentSerde -} - -type BatchExecuteStatementOutput struct { - - // The cluster identifier. - ClusterIdentifier *string - - // The date and time (UTC) the statement was created. - CreatedAt *time.Time - - // The name of the database. - Database *string - - // The database user name. - DbUser *string - - // The identifier of the SQL statement whose results are to be fetched. This value - // is a universally unique identifier (UUID) generated by Amazon Redshift Data API. - // This identifier is returned by BatchExecuteStatment. - Id *string - - // The name or ARN of the secret that enables access to the database. - SecretArn *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationBatchExecuteStatementMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpBatchExecuteStatement{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpBatchExecuteStatement{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpBatchExecuteStatementValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchExecuteStatement(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opBatchExecuteStatement(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "redshift-data", - OperationName: "BatchExecuteStatement", - } -} diff --git a/service/redshiftdata/api_op_CancelStatement.go b/service/redshiftdata/api_op_CancelStatement.go index 3b57bf5cbbd..0ddbabcaa33 100644 --- a/service/redshiftdata/api_op_CancelStatement.go +++ b/service/redshiftdata/api_op_CancelStatement.go @@ -30,7 +30,7 @@ type CancelStatementInput struct { // The identifier of the SQL statement to cancel. This value is a universally // unique identifier (UUID) generated by Amazon Redshift Data API. This identifier - // is returned by BatchExecuteStatment, ExecuteStatment, and ListStatements. + // is returned by ExecuteStatment and ListStatements. // // This member is required. Id *string diff --git a/service/redshiftdata/api_op_DescribeStatement.go b/service/redshiftdata/api_op_DescribeStatement.go index 0940dcf661e..d24c067453b 100644 --- a/service/redshiftdata/api_op_DescribeStatement.go +++ b/service/redshiftdata/api_op_DescribeStatement.go @@ -34,11 +34,8 @@ func (c *Client) DescribeStatement(ctx context.Context, params *DescribeStatemen type DescribeStatementInput struct { // The identifier of the SQL statement to describe. This value is a universally - // unique identifier (UUID) generated by Amazon Redshift Data API. A suffix - // indicates the number of the SQL statement. For example, - // d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the - // second SQL statement of a batch query. This identifier is returned by - // BatchExecuteStatment, ExecuteStatement, and ListStatements. + // unique identifier (UUID) generated by Amazon Redshift Data API. This identifier + // is returned by ExecuteStatment and ListStatements. // // This member is required. Id *string @@ -93,10 +90,10 @@ type DescribeStatementOutput struct { // Either the number of rows returned from the SQL statement or the number of rows // affected. If result size is greater than zero, the result rows can be the number // of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and - // others. A -1 indicates the value is null. + // others. ResultRows int64 - // The size in bytes of the returned results. A -1 indicates the value is null. + // The size in bytes of the returned results. ResultSize int64 // The name or Amazon Resource Name (ARN) of the secret that enables access to the @@ -125,9 +122,6 @@ type DescribeStatementOutput struct { // * SUBMITTED - The query was submitted, but not yet processed. Status types.StatusString - // The SQL statements from a multiple statement run. - SubStatements []types.SubStatementData - // The date and time (UTC) that the metadata for the SQL statement was last // updated. An example is the time the status last changed. UpdatedAt *time.Time diff --git a/service/redshiftdata/api_op_DescribeTable.go b/service/redshiftdata/api_op_DescribeTable.go index 8106b8a15ff..d74cac75df3 100644 --- a/service/redshiftdata/api_op_DescribeTable.go +++ b/service/redshiftdata/api_op_DescribeTable.go @@ -17,14 +17,13 @@ import ( // column list. Depending on the authorization method, use one of the following // combinations of request parameters: // -// * Secrets Manager - specify the Amazon -// Resource Name (ARN) of the secret, the database name, and the cluster identifier -// that matches the cluster in the secret. +// * AWS Secrets Manager - specify the Amazon +// Resource Name (ARN) of the secret and the cluster identifier that matches the +// cluster in the secret. // -// * Temporary credentials - specify the -// cluster identifier, the database name, and the database user name. Permission to -// call the redshift:GetClusterCredentials operation is required to use this -// method. +// * Temporary credentials - specify the cluster +// identifier, the database name, and the database user name. Permission to call +// the redshift:GetClusterCredentials operation is required to use this method. func (c *Client) DescribeTable(ctx context.Context, params *DescribeTableInput, optFns ...func(*Options)) (*DescribeTableOutput, error) { if params == nil { params = &DescribeTableInput{} @@ -43,7 +42,7 @@ func (c *Client) DescribeTable(ctx context.Context, params *DescribeTableInput, type DescribeTableInput struct { // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. + // either AWS Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string @@ -80,7 +79,7 @@ type DescribeTableInput struct { Schema *string // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using Secrets Manager. + // parameter is required when authenticating using AWS Secrets Manager. SecretArn *string // The table name. If no table is specified, then all tables for all matching diff --git a/service/redshiftdata/api_op_ExecuteStatement.go b/service/redshiftdata/api_op_ExecuteStatement.go index acdc4ab3192..ea57010cb18 100644 --- a/service/redshiftdata/api_op_ExecuteStatement.go +++ b/service/redshiftdata/api_op_ExecuteStatement.go @@ -17,13 +17,13 @@ import ( // Depending on the authorization method, use one of the following combinations of // request parameters: // -// * Secrets Manager - specify the Amazon Resource Name (ARN) -// of the secret, the database name, and the cluster identifier that matches the -// cluster in the secret. +// * AWS Secrets Manager - specify the Amazon Resource Name +// (ARN) of the secret and the cluster identifier that matches the cluster in the +// secret. // -// * Temporary credentials - specify the cluster -// identifier, the database name, and the database user name. Permission to call -// the redshift:GetClusterCredentials operation is required to use this method. +// * Temporary credentials - specify the cluster identifier, the database +// name, and the database user name. Permission to call the +// redshift:GetClusterCredentials operation is required to use this method. func (c *Client) ExecuteStatement(ctx context.Context, params *ExecuteStatementInput, optFns ...func(*Options)) (*ExecuteStatementOutput, error) { if params == nil { params = &ExecuteStatementInput{} @@ -42,22 +42,20 @@ func (c *Client) ExecuteStatement(ctx context.Context, params *ExecuteStatementI type ExecuteStatementInput struct { // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. + // either AWS Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string - // The name of the database. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. - Database *string - // The SQL statement text to run. // // This member is required. Sql *string + // The name of the database. This parameter is required when authenticating using + // temporary credentials. + Database *string + // The database user name. This parameter is required when authenticating using // temporary credentials. DbUser *string @@ -66,7 +64,7 @@ type ExecuteStatementInput struct { Parameters []types.SqlParameter // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using Secrets Manager. + // parameter is required when authenticating using AWS Secrets Manager. SecretArn *string // The name of the SQL statement. You can name the SQL statement when you create it @@ -94,8 +92,8 @@ type ExecuteStatementOutput struct { // The database user name. DbUser *string - // The identifier of the SQL statement whose results are to be fetched. This value - // is a universally unique identifier (UUID) generated by Amazon Redshift Data API. + // The identifier of the statement to be run. This value is a universally unique + // identifier (UUID) generated by Amazon Redshift Data API. Id *string // The name or ARN of the secret that enables access to the database. diff --git a/service/redshiftdata/api_op_GetStatementResult.go b/service/redshiftdata/api_op_GetStatementResult.go index 942e7816dee..dec1c283520 100644 --- a/service/redshiftdata/api_op_GetStatementResult.go +++ b/service/redshiftdata/api_op_GetStatementResult.go @@ -33,10 +33,7 @@ type GetStatementResultInput struct { // The identifier of the SQL statement whose results are to be fetched. This value // is a universally unique identifier (UUID) generated by Amazon Redshift Data API. - // A suffix indicates then number of the SQL statement. For example, - // d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the - // second SQL statement of a batch query. This identifier is returned by - // BatchExecuteStatment, ExecuteStatment, and ListStatements. + // This identifier is returned by ExecuteStatment and ListStatements. // // This member is required. Id *string diff --git a/service/redshiftdata/api_op_ListDatabases.go b/service/redshiftdata/api_op_ListDatabases.go index 92808d7df38..e137fb2d2c7 100644 --- a/service/redshiftdata/api_op_ListDatabases.go +++ b/service/redshiftdata/api_op_ListDatabases.go @@ -15,14 +15,13 @@ import ( // database list. Depending on the authorization method, use one of the following // combinations of request parameters: // -// * Secrets Manager - specify the Amazon -// Resource Name (ARN) of the secret, the database name, and the cluster identifier -// that matches the cluster in the secret. +// * AWS Secrets Manager - specify the Amazon +// Resource Name (ARN) of the secret and the cluster identifier that matches the +// cluster in the secret. // -// * Temporary credentials - specify the -// cluster identifier, the database name, and the database user name. Permission to -// call the redshift:GetClusterCredentials operation is required to use this -// method. +// * Temporary credentials - specify the cluster +// identifier, the database name, and the database user name. Permission to call +// the redshift:GetClusterCredentials operation is required to use this method. func (c *Client) ListDatabases(ctx context.Context, params *ListDatabasesInput, optFns ...func(*Options)) (*ListDatabasesOutput, error) { if params == nil { params = &ListDatabasesInput{} @@ -41,15 +40,13 @@ func (c *Client) ListDatabases(ctx context.Context, params *ListDatabasesInput, type ListDatabasesInput struct { // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. + // either AWS Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string // The name of the database. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. + // temporary credentials. Database *string // The database user name. This parameter is required when authenticating using @@ -69,7 +66,7 @@ type ListDatabasesInput struct { NextToken *string // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using Secrets Manager. + // parameter is required when authenticating using AWS Secrets Manager. SecretArn *string noSmithyDocumentSerde diff --git a/service/redshiftdata/api_op_ListSchemas.go b/service/redshiftdata/api_op_ListSchemas.go index c80bf5d6096..31f9448cbca 100644 --- a/service/redshiftdata/api_op_ListSchemas.go +++ b/service/redshiftdata/api_op_ListSchemas.go @@ -15,14 +15,13 @@ import ( // list. Depending on the authorization method, use one of the following // combinations of request parameters: // -// * Secrets Manager - specify the Amazon -// Resource Name (ARN) of the secret, the database name, and the cluster identifier -// that matches the cluster in the secret. +// * AWS Secrets Manager - specify the Amazon +// Resource Name (ARN) of the secret and the cluster identifier that matches the +// cluster in the secret. // -// * Temporary credentials - specify the -// cluster identifier, the database name, and the database user name. Permission to -// call the redshift:GetClusterCredentials operation is required to use this -// method. +// * Temporary credentials - specify the cluster +// identifier, the database name, and the database user name. Permission to call +// the redshift:GetClusterCredentials operation is required to use this method. func (c *Client) ListSchemas(ctx context.Context, params *ListSchemasInput, optFns ...func(*Options)) (*ListSchemasOutput, error) { if params == nil { params = &ListSchemasInput{} @@ -41,7 +40,7 @@ func (c *Client) ListSchemas(ctx context.Context, params *ListSchemasInput, optF type ListSchemasInput struct { // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. + // either AWS Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string @@ -79,7 +78,7 @@ type ListSchemasInput struct { SchemaPattern *string // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using Secrets Manager. + // parameter is required when authenticating using AWS Secrets Manager. SecretArn *string noSmithyDocumentSerde diff --git a/service/redshiftdata/api_op_ListStatements.go b/service/redshiftdata/api_op_ListStatements.go index 030eb1c196d..28e79d225b4 100644 --- a/service/redshiftdata/api_op_ListStatements.go +++ b/service/redshiftdata/api_op_ListStatements.go @@ -49,12 +49,12 @@ type ListStatementsInput struct { // default is true. RoleLevel *bool - // The name of the SQL statement specified as input to BatchExecuteStatement or - // ExecuteStatement to identify the query. You can list multiple statements by - // providing a prefix that matches the beginning of the statement name. For - // example, to list myStatement1, myStatement2, myStatement3, and so on, then - // provide the a value of myStatement. Data API does a case-sensitive match of SQL - // statement names to the prefix value you provide. + // The name of the SQL statement specified as input to ExecuteStatement to identify + // the query. You can list multiple statements by providing a prefix that matches + // the beginning of the statement name. For example, to list myStatement1, + // myStatement2, myStatement3, and so on, then provide the a value of myStatement. + // Data API does a case-sensitive match of SQL statement names to the prefix value + // you provide. StatementName *string // The status of the SQL statement to list. Status values are defined as diff --git a/service/redshiftdata/api_op_ListTables.go b/service/redshiftdata/api_op_ListTables.go index 9fe1d7c2281..85f210b1af7 100644 --- a/service/redshiftdata/api_op_ListTables.go +++ b/service/redshiftdata/api_op_ListTables.go @@ -17,14 +17,14 @@ import ( // page through the table list. Depending on the authorization method, use one of // the following combinations of request parameters: // -// * Secrets Manager - specify -// the Amazon Resource Name (ARN) of the secret, the database name, and the cluster -// identifier that matches the cluster in the secret. +// * AWS Secrets Manager - +// specify the Amazon Resource Name (ARN) of the secret and the cluster identifier +// that matches the cluster in the secret. // -// * Temporary credentials - -// specify the cluster identifier, the database name, and the database user name. -// Permission to call the redshift:GetClusterCredentials operation is required to -// use this method. +// * Temporary credentials - specify the +// cluster identifier, the database name, and the database user name. Permission to +// call the redshift:GetClusterCredentials operation is required to use this +// method. func (c *Client) ListTables(ctx context.Context, params *ListTablesInput, optFns ...func(*Options)) (*ListTablesOutput, error) { if params == nil { params = &ListTablesInput{} @@ -43,7 +43,7 @@ func (c *Client) ListTables(ctx context.Context, params *ListTablesInput, optFns type ListTablesInput struct { // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. + // either AWS Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string @@ -84,7 +84,7 @@ type ListTablesInput struct { SchemaPattern *string // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using Secrets Manager. + // parameter is required when authenticating using AWS Secrets Manager. SecretArn *string // A pattern to filter results by table name. Within a table pattern, "%" means diff --git a/service/redshiftdata/deserializers.go b/service/redshiftdata/deserializers.go index 411bca8fc25..e8f8f17e28e 100644 --- a/service/redshiftdata/deserializers.go +++ b/service/redshiftdata/deserializers.go @@ -21,123 +21,6 @@ import ( "strings" ) -type awsAwsjson11_deserializeOpBatchExecuteStatement struct { -} - -func (*awsAwsjson11_deserializeOpBatchExecuteStatement) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpBatchExecuteStatement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorBatchExecuteStatement(response, &metadata) - } - output := &BatchExecuteStatementOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentBatchExecuteStatementOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorBatchExecuteStatement(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("ActiveStatementsExceededException", errorCode): - return awsAwsjson11_deserializeErrorActiveStatementsExceededException(response, errorBody) - - case strings.EqualFold("BatchExecuteStatementException", errorCode): - return awsAwsjson11_deserializeErrorBatchExecuteStatementException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsAwsjson11_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsAwsjson11_deserializeOpCancelStatement struct { } @@ -242,9 +125,6 @@ func awsAwsjson11_deserializeOpErrorCancelStatement(response *smithyhttp.Respons case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): - return awsAwsjson11_deserializeErrorValidationException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1211,41 +1091,6 @@ func awsAwsjson11_deserializeErrorActiveStatementsExceededException(response *sm return output } -func awsAwsjson11_deserializeErrorBatchExecuteStatementException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.BatchExecuteStatementException{} - err := awsAwsjson11_deserializeDocumentBatchExecuteStatementException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - func awsAwsjson11_deserializeErrorExecuteStatementException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -1426,55 +1271,6 @@ func awsAwsjson11_deserializeDocumentActiveStatementsExceededException(v **types return nil } -func awsAwsjson11_deserializeDocumentBatchExecuteStatementException(v **types.BatchExecuteStatementException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.BatchExecuteStatementException - if *v == nil { - sv = &types.BatchExecuteStatementException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "StatementId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.StatementId = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsAwsjson11_deserializeDocumentColumnList(v *[]types.ColumnMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2241,20 +2037,11 @@ func awsAwsjson11_deserializeDocumentStatementData(v **types.StatementData, valu if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } - case "IsBatchStatement": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.IsBatchStatement = ptr.Bool(jtv) - } - case "QueryParameters": if err := awsAwsjson11_deserializeDocumentSqlParametersList(&sv.QueryParameters, value); err != nil { return err @@ -2269,11 +2056,6 @@ func awsAwsjson11_deserializeDocumentStatementData(v **types.StatementData, valu sv.QueryString = ptr.String(jtv) } - case "QueryStrings": - if err := awsAwsjson11_deserializeDocumentStatementStringList(&sv.QueryStrings, value); err != nil { - return err - } - case "SecretArn": if value != nil { jtv, ok := value.(string) @@ -2360,236 +2142,6 @@ func awsAwsjson11_deserializeDocumentStatementList(v *[]types.StatementData, val return nil } -func awsAwsjson11_deserializeDocumentStatementStringList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected StatementString to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentSubStatementData(v **types.SubStatementData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.SubStatementData - if *v == nil { - sv = &types.SubStatementData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CreatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Duration": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Duration = i64 - } - - case "Error": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Error = ptr.String(jtv) - } - - case "HasResultSet": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.HasResultSet = ptr.Bool(jtv) - } - - case "Id": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) - } - sv.Id = ptr.String(jtv) - } - - case "QueryString": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected StatementString to be of type string, got %T instead", value) - } - sv.QueryString = ptr.String(jtv) - } - - case "RedshiftQueryId": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.RedshiftQueryId = i64 - } - - case "ResultRows": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ResultRows = i64 - } - - case "ResultSize": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ResultSize = i64 - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected StatementStatusString to be of type string, got %T instead", value) - } - sv.Status = types.StatementStatusString(jtv) - } - - case "UpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSubStatementList(v *[]types.SubStatementData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.SubStatementData - if *v == nil { - cv = []types.SubStatementData{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SubStatementData - destAddr := &col - if err := awsAwsjson11_deserializeDocumentSubStatementData(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - func awsAwsjson11_deserializeDocumentTableList(v *[]types.TableMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2722,98 +2274,6 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc return nil } -func awsAwsjson11_deserializeOpDocumentBatchExecuteStatementOutput(v **BatchExecuteStatementOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *BatchExecuteStatementOutput - if *v == nil { - sv = &BatchExecuteStatementOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ClusterIdentifier": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Location to be of type string, got %T instead", value) - } - sv.ClusterIdentifier = ptr.String(jtv) - } - - case "CreatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Database": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Database = ptr.String(jtv) - } - - case "DbUser": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.DbUser = ptr.String(jtv) - } - - case "Id": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) - } - sv.Id = ptr.String(jtv) - } - - case "SecretArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) - } - sv.SecretArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsAwsjson11_deserializeOpDocumentCancelStatementOutput(v **CancelStatementOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2954,7 +2414,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } @@ -3043,11 +2503,6 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState sv.Status = types.StatusString(jtv) } - case "SubStatements": - if err := awsAwsjson11_deserializeDocumentSubStatementList(&sv.SubStatements, value); err != nil { - return err - } - case "UpdatedAt": if value != nil { switch jtv := value.(type) { @@ -3196,7 +2651,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteStatementOutput(v **ExecuteStateme if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } diff --git a/service/redshiftdata/doc.go b/service/redshiftdata/doc.go index b0665a241cb..b9d5a96a808 100644 --- a/service/redshiftdata/doc.go +++ b/service/redshiftdata/doc.go @@ -4,9 +4,9 @@ // for Redshift Data API Service. // // You can use the Amazon Redshift Data API to run queries on Amazon Redshift -// tables. You can run SQL statements, which are committed if the statement -// succeeds. For more information about the Amazon Redshift Data API, see Using the -// Amazon Redshift Data API +// tables. You can run individual SQL statements, which are committed if the +// statement succeeds. For more information about the Amazon Redshift Data API, see +// Using the Amazon Redshift Data API // (https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html) in the Amazon // Redshift Cluster Management Guide. package redshiftdata diff --git a/service/redshiftdata/generated.json b/service/redshiftdata/generated.json index 8f24eb2d0e3..2adee145738 100644 --- a/service/redshiftdata/generated.json +++ b/service/redshiftdata/generated.json @@ -5,7 +5,6 @@ }, "files": [ "api_client.go", - "api_op_BatchExecuteStatement.go", "api_op_CancelStatement.go", "api_op_DescribeStatement.go", "api_op_DescribeTable.go", diff --git a/service/redshiftdata/go.mod b/service/redshiftdata/go.mod index 6b282e40ad6..8a69e065f4e 100644 --- a/service/redshiftdata/go.mod +++ b/service/redshiftdata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/redshiftdata/go.sum b/service/redshiftdata/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/redshiftdata/go.sum +++ b/service/redshiftdata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/redshiftdata/serializers.go b/service/redshiftdata/serializers.go index e2937f4fcd0..41cc342138f 100644 --- a/service/redshiftdata/serializers.go +++ b/service/redshiftdata/serializers.go @@ -14,53 +14,6 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -type awsAwsjson11_serializeOpBatchExecuteStatement struct { -} - -func (*awsAwsjson11_serializeOpBatchExecuteStatement) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpBatchExecuteStatement) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*BatchExecuteStatementInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftData.BatchExecuteStatement") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentBatchExecuteStatementInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsAwsjson11_serializeOpCancelStatement struct { } @@ -483,17 +436,6 @@ func (m *awsAwsjson11_serializeOpListTables) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentSqlList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - func awsAwsjson11_serializeDocumentSqlParameter(v *types.SqlParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -524,50 +466,6 @@ func awsAwsjson11_serializeDocumentSqlParametersList(v []types.SqlParameter, val return nil } -func awsAwsjson11_serializeOpDocumentBatchExecuteStatementInput(v *BatchExecuteStatementInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClusterIdentifier != nil { - ok := object.Key("ClusterIdentifier") - ok.String(*v.ClusterIdentifier) - } - - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) - } - - if v.DbUser != nil { - ok := object.Key("DbUser") - ok.String(*v.DbUser) - } - - if v.SecretArn != nil { - ok := object.Key("SecretArn") - ok.String(*v.SecretArn) - } - - if v.Sqls != nil { - ok := object.Key("Sqls") - if err := awsAwsjson11_serializeDocumentSqlList(v.Sqls, ok); err != nil { - return err - } - } - - if v.StatementName != nil { - ok := object.Key("StatementName") - ok.String(*v.StatementName) - } - - if v.WithEvent != nil { - ok := object.Key("WithEvent") - ok.Boolean(*v.WithEvent) - } - - return nil -} - func awsAwsjson11_serializeOpDocumentCancelStatementInput(v *CancelStatementInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/redshiftdata/types/enums.go b/service/redshiftdata/types/enums.go index b944abd8c42..983178fee3d 100644 --- a/service/redshiftdata/types/enums.go +++ b/service/redshiftdata/types/enums.go @@ -2,32 +2,6 @@ package types -type StatementStatusString string - -// Enum values for StatementStatusString -const ( - StatementStatusStringSubmitted StatementStatusString = "SUBMITTED" - StatementStatusStringPicked StatementStatusString = "PICKED" - StatementStatusStringStarted StatementStatusString = "STARTED" - StatementStatusStringFinished StatementStatusString = "FINISHED" - StatementStatusStringAborted StatementStatusString = "ABORTED" - StatementStatusStringFailed StatementStatusString = "FAILED" -) - -// Values returns all known values for StatementStatusString. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (StatementStatusString) Values() []StatementStatusString { - return []StatementStatusString{ - "SUBMITTED", - "PICKED", - "STARTED", - "FINISHED", - "ABORTED", - "FAILED", - } -} - type StatusString string // Enum values for StatusString diff --git a/service/redshiftdata/types/errors.go b/service/redshiftdata/types/errors.go index dcea08451e6..aad0ae77cb2 100644 --- a/service/redshiftdata/types/errors.go +++ b/service/redshiftdata/types/errors.go @@ -28,27 +28,6 @@ func (e *ActiveStatementsExceededException) ErrorCode() string { } func (e *ActiveStatementsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// An SQL statement encountered an environmental error while running. -type BatchExecuteStatementException struct { - Message *string - - StatementId *string - - noSmithyDocumentSerde -} - -func (e *BatchExecuteStatementException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *BatchExecuteStatementException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *BatchExecuteStatementException) ErrorCode() string { return "BatchExecuteStatementException" } -func (e *BatchExecuteStatementException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } - // The SQL statement encountered an environmental error while running. type ExecuteStatementException struct { Message *string diff --git a/service/redshiftdata/types/types.go b/service/redshiftdata/types/types.go index a12051e99ad..b059c88a808 100644 --- a/service/redshiftdata/types/types.go +++ b/service/redshiftdata/types/types.go @@ -150,19 +150,12 @@ type StatementData struct { // The date and time (UTC) the statement was created. CreatedAt *time.Time - // A value that indicates whether the statement is a batch query request. - IsBatchStatement *bool - // The parameters used in a SQL statement. QueryParameters []SqlParameter // The SQL statement. QueryString *string - // One or more SQL statements. Each query string in the array corresponds to one of - // the queries in a batch query request. - QueryStrings []string - // The name or Amazon Resource Name (ARN) of the secret that enables access to the // database. SecretArn *string @@ -180,57 +173,6 @@ type StatementData struct { noSmithyDocumentSerde } -// Information about an SQL statement. -type SubStatementData struct { - - // The identifier of the SQL statement. This value is a universally unique - // identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the - // number of the SQL statement. For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 - // has a suffix of :2 that indicates the second SQL statement of a batch query. - // - // This member is required. - Id *string - - // The date and time (UTC) the statement was created. - CreatedAt *time.Time - - // The amount of time in nanoseconds that the statement ran. - Duration int64 - - // The error message from the cluster if the SQL statement encountered an error - // while running. - Error *string - - // A value that indicates whether the statement has a result set. The result set - // can be empty. - HasResultSet *bool - - // The SQL statement text. - QueryString *string - - // The SQL statement identifier. This value is a universally unique identifier - // (UUID) generated by Amazon Redshift Data API. - RedshiftQueryId int64 - - // Either the number of rows returned from the SQL statement or the number of rows - // affected. If result size is greater than zero, the result rows can be the number - // of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and - // others. A -1 indicates the value is null. - ResultRows int64 - - // The size in bytes of the returned results. A -1 indicates the value is null. - ResultSize int64 - - // The status of the SQL statement. An example is the that the SQL statement - // finished. - Status StatementStatusString - - // The date and time (UTC) that the statement metadata was last updated. - UpdatedAt *time.Time - - noSmithyDocumentSerde -} - // The properties of a table. type TableMember struct { diff --git a/service/redshiftdata/validators.go b/service/redshiftdata/validators.go index 1974086c0ad..85c3ae9700a 100644 --- a/service/redshiftdata/validators.go +++ b/service/redshiftdata/validators.go @@ -10,26 +10,6 @@ import ( "github.com/aws/smithy-go/middleware" ) -type validateOpBatchExecuteStatement struct { -} - -func (*validateOpBatchExecuteStatement) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpBatchExecuteStatement) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*BatchExecuteStatementInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpBatchExecuteStatementInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpCancelStatement struct { } @@ -190,10 +170,6 @@ func (m *validateOpListTables) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } -func addOpBatchExecuteStatementValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpBatchExecuteStatement{}, middleware.After) -} - func addOpCancelStatementValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCancelStatement{}, middleware.After) } @@ -261,27 +237,6 @@ func validateSqlParametersList(v []types.SqlParameter) error { } } -func validateOpBatchExecuteStatementInput(v *BatchExecuteStatementInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "BatchExecuteStatementInput"} - if v.Sqls == nil { - invalidParams.Add(smithy.NewErrParamRequired("Sqls")) - } - if v.ClusterIdentifier == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) - } - if v.Database == nil { - invalidParams.Add(smithy.NewErrParamRequired("Database")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpCancelStatementInput(v *CancelStatementInput) error { if v == nil { return nil @@ -341,9 +296,6 @@ func validateOpExecuteStatementInput(v *ExecuteStatementInput) error { if v.ClusterIdentifier == nil { invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) } - if v.Database == nil { - invalidParams.Add(smithy.NewErrParamRequired("Database")) - } if v.Parameters != nil { if err := validateSqlParametersList(v.Parameters); err != nil { invalidParams.AddNested("Parameters", err.(smithy.InvalidParamsError)) @@ -379,9 +331,6 @@ func validateOpListDatabasesInput(v *ListDatabasesInput) error { if v.ClusterIdentifier == nil { invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) } - if v.Database == nil { - invalidParams.Add(smithy.NewErrParamRequired("Database")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/rekognition/go.mod b/service/rekognition/go.mod index 7d4c81736b8..d8430d9648a 100644 --- a/service/rekognition/go.mod +++ b/service/rekognition/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/rekognition/go.sum +++ b/service/rekognition/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/resourcegroups/go.mod b/service/resourcegroups/go.mod index 61fabf21292..3ec3aa9bd03 100644 --- a/service/resourcegroups/go.mod +++ b/service/resourcegroups/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resourcegroups/go.sum b/service/resourcegroups/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/resourcegroups/go.sum +++ b/service/resourcegroups/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/resourcegroupstaggingapi/go.mod b/service/resourcegroupstaggingapi/go.mod index 974afae4f01..178c3bb5f50 100644 --- a/service/resourcegroupstaggingapi/go.mod +++ b/service/resourcegroupstaggingapi/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resourcegroupstaggingapi/go.sum b/service/resourcegroupstaggingapi/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/resourcegroupstaggingapi/go.sum +++ b/service/resourcegroupstaggingapi/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/robomaker/api_op_DescribeWorld.go b/service/robomaker/api_op_DescribeWorld.go index 627cdd0e2e5..8e5e89e6733 100644 --- a/service/robomaker/api_op_DescribeWorld.go +++ b/service/robomaker/api_op_DescribeWorld.go @@ -55,9 +55,6 @@ type DescribeWorldOutput struct { // The world template. Template *string - // Returns the JSON formatted string that describes the contents of your world. - WorldDescriptionBody *string - // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_DescribeWorldTemplate.go b/service/robomaker/api_op_DescribeWorldTemplate.go index 62dbcff5ae9..d40fc6c5910 100644 --- a/service/robomaker/api_op_DescribeWorldTemplate.go +++ b/service/robomaker/api_op_DescribeWorldTemplate.go @@ -60,9 +60,6 @@ type DescribeWorldTemplateOutput struct { // template. Tags map[string]string - // The version of the world template that you're using. - Version *string - // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/deserializers.go b/service/robomaker/deserializers.go index e8717f3d49e..496bf2d5521 100644 --- a/service/robomaker/deserializers.go +++ b/service/robomaker/deserializers.go @@ -5853,15 +5853,6 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldOutput(v **DescribeWorldOutp sv.Template = ptr.String(jtv) } - case "worldDescriptionBody": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Json to be of type string, got %T instead", value) - } - sv.WorldDescriptionBody = ptr.String(jtv) - } - default: _, _ = key, value @@ -6554,15 +6545,6 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldTemplateOutput(v **DescribeW return err } - case "version": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) - } - sv.Version = ptr.String(jtv) - } - default: _, _ = key, value @@ -14611,15 +14593,6 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, sv.Name = ptr.String(jtv) } - case "version": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) - } - sv.Version = ptr.String(jtv) - } - default: _, _ = key, value diff --git a/service/robomaker/go.mod b/service/robomaker/go.mod index 327c1ec1274..5ab33051fdb 100644 --- a/service/robomaker/go.mod +++ b/service/robomaker/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/robomaker/go.sum b/service/robomaker/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/robomaker/go.sum +++ b/service/robomaker/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/robomaker/types/types.go b/service/robomaker/types/types.go index 6d111be2a8a..cf8f53ad28a 100644 --- a/service/robomaker/types/types.go +++ b/service/robomaker/types/types.go @@ -900,9 +900,6 @@ type TemplateSummary struct { // The name of the template. Name *string - // The version of the template that you're using. - Version *string - noSmithyDocumentSerde } diff --git a/service/route53/api_op_AssociateVPCWithHostedZone.go b/service/route53/api_op_AssociateVPCWithHostedZone.go index a3be3a5bc04..69c7568e6a3 100644 --- a/service/route53/api_op_AssociateVPCWithHostedZone.go +++ b/service/route53/api_op_AssociateVPCWithHostedZone.go @@ -14,8 +14,8 @@ import ( // Associates an Amazon VPC with a private hosted zone. To perform the association, // the VPC and the private hosted zone must already exist. You can't convert a // public hosted zone into a private hosted zone. If you want to associate a VPC -// that was created by using one account with a private hosted zone that was -// created by using a different account, the account that created the private +// that was created by using one AWS account with a private hosted zone that was +// created by using a different account, the AWS account that created the private // hosted zone must first submit a CreateVPCAssociationAuthorization request. Then // the account that created the VPC must submit an AssociateVPCWithHostedZone // request. diff --git a/service/route53/api_op_ChangeResourceRecordSets.go b/service/route53/api_op_ChangeResourceRecordSets.go index 03785e93501..2ca8cc4e844 100644 --- a/service/route53/api_op_ChangeResourceRecordSets.go +++ b/service/route53/api_op_ChangeResourceRecordSets.go @@ -51,20 +51,20 @@ import ( // an existing resource record set that has the specified values. // // * UPSERT: If a -// resource record set does not already exist, Amazon Web Services creates it. If a -// resource set does exist, Route 53 updates it with the values in the -// request. +// resource record set does not already exist, AWS creates it. If a resource set +// does exist, Route 53 updates it with the values in the request. // -// Syntaxes for Creating, Updating, and Deleting Resource Record Sets The -// syntax for a request depends on the type of resource record set that you want to -// create, delete, or update, such as weighted, alias, or failover. The XML -// elements in your request must appear in the order listed in the syntax. For an -// example for each type of resource record set, see "Examples." Don't refer to the -// syntax in the "Parameter Syntax" section, which includes all of the elements for -// every kind of resource record set that you can create, delete, or update by -// using ChangeResourceRecordSets. Change Propagation to Route 53 DNS Servers When -// you submit a ChangeResourceRecordSets request, Route 53 propagates your changes -// to all of the Route 53 authoritative DNS servers. While your changes are +// Syntaxes for +// Creating, Updating, and Deleting Resource Record Sets The syntax for a request +// depends on the type of resource record set that you want to create, delete, or +// update, such as weighted, alias, or failover. The XML elements in your request +// must appear in the order listed in the syntax. For an example for each type of +// resource record set, see "Examples." Don't refer to the syntax in the "Parameter +// Syntax" section, which includes all of the elements for every kind of resource +// record set that you can create, delete, or update by using +// ChangeResourceRecordSets. Change Propagation to Route 53 DNS Servers When you +// submit a ChangeResourceRecordSets request, Route 53 propagates your changes to +// all of the Route 53 authoritative DNS servers. While your changes are // propagating, GetChange returns a status of PENDING. When propagation is // complete, GetChange returns a status of INSYNC. Changes generally propagate to // all Route 53 name servers within 60 seconds. For more information, see GetChange diff --git a/service/route53/api_op_ChangeTagsForResource.go b/service/route53/api_op_ChangeTagsForResource.go index 5f86c484646..8253d2c17c8 100644 --- a/service/route53/api_op_ChangeTagsForResource.go +++ b/service/route53/api_op_ChangeTagsForResource.go @@ -14,7 +14,7 @@ import ( // Adds, edits, or deletes tags for a health check or a hosted zone. For // information about using tags for cost allocation, see Using Cost Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) -// in the Billing and Cost Management User Guide. +// in the AWS Billing and Cost Management User Guide. func (c *Client) ChangeTagsForResource(ctx context.Context, params *ChangeTagsForResourceInput, optFns ...func(*Options)) (*ChangeTagsForResourceOutput, error) { if params == nil { params = &ChangeTagsForResourceInput{} diff --git a/service/route53/api_op_CreateKeySigningKey.go b/service/route53/api_op_CreateKeySigningKey.go index aa9288054b0..62ac535de51 100644 --- a/service/route53/api_op_CreateKeySigningKey.go +++ b/service/route53/api_op_CreateKeySigningKey.go @@ -41,12 +41,12 @@ type CreateKeySigningKeyInput struct { HostedZoneId *string // The Amazon resource name (ARN) for a customer managed customer master key (CMK) - // in Key Management Service (KMS). The KeyManagementServiceArn must be unique for - // each key-signing key (KSK) in a single hosted zone. To see an example of - // KeyManagementServiceArn that grants the correct permissions for DNSSEC, scroll - // down to Example. You must configure the customer managed CMK as follows: Status - // Enabled Key spec ECC_NIST_P256 Key usage Sign and verify Key policy The key - // policy must give permission for the following actions: + // in AWS Key Management Service (AWS KMS). The KeyManagementServiceArn must be + // unique for each key-signing key (KSK) in a single hosted zone. To see an example + // of KeyManagementServiceArn that grants the correct permissions for DNSSEC, + // scroll down to Example. You must configure the customer managed CMK as follows: + // Status Enabled Key spec ECC_NIST_P256 Key usage Sign and verify Key policy The + // key policy must give permission for the following actions: // // * DescribeKey // @@ -59,10 +59,10 @@ type CreateKeySigningKeyInput struct { // service in the principal for your account. Specify the following: // // * "Service": - // "dnssec-route53.amazonaws.com" + // "dnssec.route53.aws.amazonaws.com" // // For more information about working with a - // customer managed CMK in KMS, see Key Management Service concepts + // customer managed CMK in AWS KMS, see AWS Key Management Service concepts // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html). // // This member is required. diff --git a/service/route53/api_op_CreateQueryLoggingConfig.go b/service/route53/api_op_CreateQueryLoggingConfig.go index cc9cb5f278a..df94f6dbac1 100644 --- a/service/route53/api_op_CreateQueryLoggingConfig.go +++ b/service/route53/api_op_CreateQueryLoggingConfig.go @@ -39,51 +39,51 @@ import ( // * You must create the log group in the // us-east-1 region. // -// * You must use the same account to create the log group and -// the hosted zone that you want to configure query logging for. +// * You must use the same AWS account to create the log group +// and the hosted zone that you want to configure query logging for. // -// * When you create -// log groups for query logging, we recommend that you use a consistent prefix, for -// example: /aws/route53/hosted zone name In the next step, you'll create a -// resource policy, which controls access to one or more log groups and the -// associated Amazon Web Services resources, such as Route 53 hosted zones. There's -// a limit on the number of resource policies that you can create, so we recommend -// that you use a consistent prefix so you can use the same resource policy for all -// the log groups that you create for query logging. +// * When you +// create log groups for query logging, we recommend that you use a consistent +// prefix, for example: /aws/route53/hosted zone name In the next step, you'll +// create a resource policy, which controls access to one or more log groups and +// the associated AWS resources, such as Route 53 hosted zones. There's a limit on +// the number of resource policies that you can create, so we recommend that you +// use a consistent prefix so you can use the same resource policy for all the log +// groups that you create for query logging. // -// * Create a CloudWatch Logs -// resource policy, and give it the permissions that Route 53 needs to create log -// streams and to send query logs to log streams. For the value of Resource, -// specify the ARN for the log group that you created in the previous step. To use -// the same resource policy for all the CloudWatch Logs log groups that you created -// for query logging configurations, replace the hosted zone name with , for -// example: arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/ You can't -// use the CloudWatch console to create or edit a resource policy. You must use the -// CloudWatch API, one of the Amazon Web Services SDKs, or the CLI. +// * Create a CloudWatch Logs resource +// policy, and give it the permissions that Route 53 needs to create log streams +// and to send query logs to log streams. For the value of Resource, specify the +// ARN for the log group that you created in the previous step. To use the same +// resource policy for all the CloudWatch Logs log groups that you created for +// query logging configurations, replace the hosted zone name with , for example: +// arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/ You can't use the +// CloudWatch console to create or edit a resource policy. You must use the +// CloudWatch API, one of the AWS SDKs, or the AWS CLI. // -// Log Streams -// and Edge Locations When Route 53 finishes creating the configuration for DNS -// query logging, it does the following: +// Log Streams and Edge +// Locations When Route 53 finishes creating the configuration for DNS query +// logging, it does the following: // -// * Creates a log stream for an edge -// location the first time that the edge location responds to DNS queries for the -// specified hosted zone. That log stream is used to log all queries that Route 53 -// responds to for that edge location. +// * Creates a log stream for an edge location the +// first time that the edge location responds to DNS queries for the specified +// hosted zone. That log stream is used to log all queries that Route 53 responds +// to for that edge location. // -// * Begins to send query logs to the -// applicable log stream. +// * Begins to send query logs to the applicable log +// stream. // -// The name of each log stream is in the following format: -// hosted zone ID/edge location code The edge location code is a three-letter code -// and an arbitrarily assigned number, for example, DFW3. The three-letter code -// typically corresponds with the International Air Transport Association airport -// code for an airport near the edge location. (These abbreviations might change in -// the future.) For a list of edge locations, see "The Route 53 Global Network" on -// the Route 53 Product Details (http://aws.amazon.com/route53/details/) page. -// Queries That Are Logged Query logs contain only the queries that DNS resolvers -// forward to Route 53. If a DNS resolver has already cached the response to a -// query (such as the IP address for a load balancer for example.com), the resolver -// will continue to return the cached response. It doesn't forward another query to +// The name of each log stream is in the following format: hosted zone +// ID/edge location code The edge location code is a three-letter code and an +// arbitrarily assigned number, for example, DFW3. The three-letter code typically +// corresponds with the International Air Transport Association airport code for an +// airport near the edge location. (These abbreviations might change in the +// future.) For a list of edge locations, see "The Route 53 Global Network" on the +// Route 53 Product Details (http://aws.amazon.com/route53/details/) page. Queries +// That Are Logged Query logs contain only the queries that DNS resolvers forward +// to Route 53. If a DNS resolver has already cached the response to a query (such +// as the IP address for a load balancer for example.com), the resolver will +// continue to return the cached response. It doesn't forward another query to // Route 53 until the TTL for the corresponding resource record set expires. // Depending on how many DNS queries are submitted for a resource record set, and // depending on the TTL for that resource record set, query logs might contain @@ -124,7 +124,7 @@ type CreateQueryLoggingConfigInput struct { // (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogGroups.html) // API action, the describe-log-groups // (https://docs.aws.amazon.com/cli/latest/reference/logs/describe-log-groups.html) - // command, or the applicable command in one of the Amazon Web Services SDKs. + // command, or the applicable command in one of the AWS SDKs. // // This member is required. CloudWatchLogsLogGroupArn *string diff --git a/service/route53/api_op_CreateReusableDelegationSet.go b/service/route53/api_op_CreateReusableDelegationSet.go index db2cb86dc6a..1a895b06828 100644 --- a/service/route53/api_op_CreateReusableDelegationSet.go +++ b/service/route53/api_op_CreateReusableDelegationSet.go @@ -12,9 +12,9 @@ import ( ) // Creates a delegation set (a group of four name servers) that can be reused by -// multiple hosted zones that were created by the same account. You can also create -// a reusable delegation set that uses the four name servers that are associated -// with an existing hosted zone. Specify the hosted zone ID in the +// multiple hosted zones that were created by the same AWS account. You can also +// create a reusable delegation set that uses the four name servers that are +// associated with an existing hosted zone. Specify the hosted zone ID in the // CreateReusableDelegationSet request. You can't associate a reusable delegation // set with a private hosted zone. For information about using a reusable // delegation set to configure white label name servers, see Configuring White diff --git a/service/route53/api_op_CreateVPCAssociationAuthorization.go b/service/route53/api_op_CreateVPCAssociationAuthorization.go index 80331bbb663..99435181a3e 100644 --- a/service/route53/api_op_CreateVPCAssociationAuthorization.go +++ b/service/route53/api_op_CreateVPCAssociationAuthorization.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Authorizes the account that created a specified VPC to submit an +// Authorizes the AWS account that created a specified VPC to submit an // AssociateVPCWithHostedZone request to associate the VPC with a specified hosted // zone that was created by a different account. To submit a // CreateVPCAssociationAuthorization request, you must use the account that created diff --git a/service/route53/api_op_DeleteHealthCheck.go b/service/route53/api_op_DeleteHealthCheck.go index e1f85c3e174..e64265c2881 100644 --- a/service/route53/api_op_DeleteHealthCheck.go +++ b/service/route53/api_op_DeleteHealthCheck.go @@ -18,7 +18,7 @@ import ( // failover configuration. For more information, see Replacing and Deleting Health // Checks // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html#health-checks-deleting.html) -// in the Amazon Route 53 Developer Guide. If you're using Cloud Map and you +// in the Amazon Route 53 Developer Guide. If you're using AWS Cloud Map and you // configured Cloud Map to create a Route 53 health check when you register an // instance, you can't use the Route 53 DeleteHealthCheck command to delete the // health check. The health check is deleted automatically when you deregister the diff --git a/service/route53/api_op_DeleteHostedZone.go b/service/route53/api_op_DeleteHostedZone.go index cb98d8ee78d..0300f5d7589 100644 --- a/service/route53/api_op_DeleteHostedZone.go +++ b/service/route53/api_op_DeleteHostedZone.go @@ -12,7 +12,7 @@ import ( ) // Deletes a hosted zone. If the hosted zone was created by another service, such -// as Cloud Map, see Deleting Public Hosted Zones That Were Created by Another +// as AWS Cloud Map, see Deleting Public Hosted Zones That Were Created by Another // Service // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DeleteHostedZone.html#delete-public-hosted-zone-created-by-another-service) // in the Amazon Route 53 Developer Guide for information about how to delete it. @@ -50,7 +50,7 @@ import ( // // * Use // the ListHostedZones action to get a list of the hosted zones associated with the -// current account. +// current AWS account. func (c *Client) DeleteHostedZone(ctx context.Context, params *DeleteHostedZoneInput, optFns ...func(*Options)) (*DeleteHostedZoneOutput, error) { if params == nil { params = &DeleteHostedZoneInput{} diff --git a/service/route53/api_op_DeleteVPCAssociationAuthorization.go b/service/route53/api_op_DeleteVPCAssociationAuthorization.go index 9ec4de1ed39..a2314553440 100644 --- a/service/route53/api_op_DeleteVPCAssociationAuthorization.go +++ b/service/route53/api_op_DeleteVPCAssociationAuthorization.go @@ -15,10 +15,10 @@ import ( // associate a specified VPC with a hosted zone that was created by a different // account. You must use the account that created the hosted zone to submit a // DeleteVPCAssociationAuthorization request. Sending this request only prevents -// the account that created the VPC from associating the VPC with the Amazon Route -// 53 hosted zone in the future. If the VPC is already associated with the hosted -// zone, DeleteVPCAssociationAuthorization won't disassociate the VPC from the -// hosted zone. If you want to delete an existing association, use +// the AWS account that created the VPC from associating the VPC with the Amazon +// Route 53 hosted zone in the future. If the VPC is already associated with the +// hosted zone, DeleteVPCAssociationAuthorization won't disassociate the VPC from +// the hosted zone. If you want to delete an existing association, use // DisassociateVPCFromHostedZone. func (c *Client) DeleteVPCAssociationAuthorization(ctx context.Context, params *DeleteVPCAssociationAuthorizationInput, optFns ...func(*Options)) (*DeleteVPCAssociationAuthorizationOutput, error) { if params == nil { @@ -36,20 +36,20 @@ func (c *Client) DeleteVPCAssociationAuthorization(ctx context.Context, params * } // A complex type that contains information about the request to remove -// authorization to associate a VPC that was created by one account with a hosted -// zone that was created with a different account. +// authorization to associate a VPC that was created by one AWS account with a +// hosted zone that was created with a different AWS account. type DeleteVPCAssociationAuthorizationInput struct { - // When removing authorization to associate a VPC that was created by one account - // with a hosted zone that was created with a different account, the ID of the - // hosted zone. + // When removing authorization to associate a VPC that was created by one AWS + // account with a hosted zone that was created with a different AWS account, the ID + // of the hosted zone. // // This member is required. HostedZoneId *string - // When removing authorization to associate a VPC that was created by one account - // with a hosted zone that was created with a different account, a complex type - // that includes the ID and region of the VPC. + // When removing authorization to associate a VPC that was created by one AWS + // account with a hosted zone that was created with a different AWS account, a + // complex type that includes the ID and region of the VPC. // // This member is required. VPC *types.VPC diff --git a/service/route53/api_op_DisassociateVPCFromHostedZone.go b/service/route53/api_op_DisassociateVPCFromHostedZone.go index 465584cfcc8..0a4601ff5ab 100644 --- a/service/route53/api_op_DisassociateVPCFromHostedZone.go +++ b/service/route53/api_op_DisassociateVPCFromHostedZone.go @@ -25,11 +25,11 @@ import ( // hosted zone or the account that created the Amazon VPC. // // * Some services, such -// as Cloud Map and Amazon Elastic File System (Amazon EFS) automatically create -// hosted zones and associate VPCs with the hosted zones. A service can create a -// hosted zone using your account or using its own account. You can disassociate a -// VPC from a hosted zone only if the service created the hosted zone using your -// account. When you run DisassociateVPCFromHostedZone +// as AWS Cloud Map and Amazon Elastic File System (Amazon EFS) automatically +// create hosted zones and associate VPCs with the hosted zones. A service can +// create a hosted zone using your account or using its own account. You can +// disassociate a VPC from a hosted zone only if the service created the hosted +// zone using your account. When you run DisassociateVPCFromHostedZone // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListHostedZonesByVPC.html), // if the hosted zone has a value for OwningAccount, you can use // DisassociateVPCFromHostedZone. If the hosted zone has a value for OwningService, diff --git a/service/route53/api_op_GetAccountLimit.go b/service/route53/api_op_GetAccountLimit.go index ab9e062689c..b7703ab2111 100644 --- a/service/route53/api_op_GetAccountLimit.go +++ b/service/route53/api_op_GetAccountLimit.go @@ -17,8 +17,8 @@ import ( // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) // in the Amazon Route 53 Developer Guide. To request a higher limit, open a case // (https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-route53). -// You can also view account limits in Amazon Web Services Trusted Advisor. Sign in -// to the Management Console and open the Trusted Advisor console at +// You can also view account limits in AWS Trusted Advisor. Sign in to the AWS +// Management Console and open the Trusted Advisor console at // https://console.aws.amazon.com/trustedadvisor/ // (https://console.aws.amazon.com/trustedadvisor). Then choose Service limits in // the navigation pane. diff --git a/service/route53/api_op_GetCheckerIpRanges.go b/service/route53/api_op_GetCheckerIpRanges.go index 1f9c9c30328..e3440e7f0e1 100644 --- a/service/route53/api_op_GetCheckerIpRanges.go +++ b/service/route53/api_op_GetCheckerIpRanges.go @@ -13,8 +13,8 @@ import ( // Route 53 does not perform authorization for this API because it retrieves // information that is already available to the public. GetCheckerIpRanges still // works, but we recommend that you download ip-ranges.json, which includes IP -// address ranges for all Amazon Web Services services. For more information, see -// IP Address Ranges of Amazon Route 53 Servers +// address ranges for all AWS services. For more information, see IP Address Ranges +// of Amazon Route 53 Servers // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/route-53-ip-addresses.html) // in the Amazon Route 53 Developer Guide. func (c *Client) GetCheckerIpRanges(ctx context.Context, params *GetCheckerIpRangesInput, optFns ...func(*Options)) (*GetCheckerIpRangesOutput, error) { diff --git a/service/route53/api_op_GetHealthCheck.go b/service/route53/api_op_GetHealthCheck.go index 9537cfeff20..7050c824a19 100644 --- a/service/route53/api_op_GetHealthCheck.go +++ b/service/route53/api_op_GetHealthCheck.go @@ -44,7 +44,7 @@ type GetHealthCheckInput struct { type GetHealthCheckOutput struct { // A complex type that contains information about one health check that is - // associated with the current account. + // associated with the current AWS account. // // This member is required. HealthCheck *types.HealthCheck diff --git a/service/route53/api_op_GetHealthCheckCount.go b/service/route53/api_op_GetHealthCheckCount.go index a2a65760dad..d3a04f11995 100644 --- a/service/route53/api_op_GetHealthCheckCount.go +++ b/service/route53/api_op_GetHealthCheckCount.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves the number of health checks that are associated with the current +// Retrieves the number of health checks that are associated with the current AWS // account. func (c *Client) GetHealthCheckCount(ctx context.Context, params *GetHealthCheckCountInput, optFns ...func(*Options)) (*GetHealthCheckCountOutput, error) { if params == nil { @@ -28,7 +28,7 @@ func (c *Client) GetHealthCheckCount(ctx context.Context, params *GetHealthCheck } // A request for the number of health checks that are associated with the current -// account. +// AWS account. type GetHealthCheckCountInput struct { noSmithyDocumentSerde } @@ -36,7 +36,7 @@ type GetHealthCheckCountInput struct { // A complex type that contains the response to a GetHealthCheckCount request. type GetHealthCheckCountOutput struct { - // The number of health checks associated with the current account. + // The number of health checks associated with the current AWS account. // // This member is required. HealthCheckCount *int64 diff --git a/service/route53/api_op_GetHealthCheckStatus.go b/service/route53/api_op_GetHealthCheckStatus.go index 3b66233ef3c..5b9d2e1235a 100644 --- a/service/route53/api_op_GetHealthCheckStatus.go +++ b/service/route53/api_op_GetHealthCheckStatus.go @@ -11,9 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets status of a specified health check. This API is intended for use during -// development to diagnose behavior. It doesn’t support production use-cases with -// high query rates that require immediate and actionable responses. +// Gets status of a specified health check. func (c *Client) GetHealthCheckStatus(ctx context.Context, params *GetHealthCheckStatusInput, optFns ...func(*Options)) (*GetHealthCheckStatusOutput, error) { if params == nil { params = &GetHealthCheckStatusInput{} diff --git a/service/route53/api_op_GetHostedZoneCount.go b/service/route53/api_op_GetHostedZoneCount.go index 3ec9f8da4cb..631b4587666 100644 --- a/service/route53/api_op_GetHostedZoneCount.go +++ b/service/route53/api_op_GetHostedZoneCount.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves the number of hosted zones that are associated with the current +// Retrieves the number of hosted zones that are associated with the current AWS // account. func (c *Client) GetHostedZoneCount(ctx context.Context, params *GetHostedZoneCountInput, optFns ...func(*Options)) (*GetHostedZoneCountOutput, error) { if params == nil { @@ -28,7 +28,7 @@ func (c *Client) GetHostedZoneCount(ctx context.Context, params *GetHostedZoneCo } // A request to retrieve a count of all the hosted zones that are associated with -// the current account. +// the current AWS account. type GetHostedZoneCountInput struct { noSmithyDocumentSerde } @@ -37,7 +37,7 @@ type GetHostedZoneCountInput struct { type GetHostedZoneCountOutput struct { // The total number of public and private hosted zones that are associated with the - // current account. + // current AWS account. // // This member is required. HostedZoneCount *int64 diff --git a/service/route53/api_op_GetTrafficPolicyInstanceCount.go b/service/route53/api_op_GetTrafficPolicyInstanceCount.go index 58adee392a7..f308121cfc8 100644 --- a/service/route53/api_op_GetTrafficPolicyInstanceCount.go +++ b/service/route53/api_op_GetTrafficPolicyInstanceCount.go @@ -11,7 +11,7 @@ import ( ) // Gets the number of traffic policy instances that are associated with the current -// account. +// AWS account. func (c *Client) GetTrafficPolicyInstanceCount(ctx context.Context, params *GetTrafficPolicyInstanceCountInput, optFns ...func(*Options)) (*GetTrafficPolicyInstanceCountOutput, error) { if params == nil { params = &GetTrafficPolicyInstanceCountInput{} @@ -28,7 +28,7 @@ func (c *Client) GetTrafficPolicyInstanceCount(ctx context.Context, params *GetT } // Request to get the number of traffic policy instances that are associated with -// the current account. +// the current AWS account. type GetTrafficPolicyInstanceCountInput struct { noSmithyDocumentSerde } @@ -37,7 +37,7 @@ type GetTrafficPolicyInstanceCountInput struct { // Amazon Route 53 created based on a specified traffic policy. type GetTrafficPolicyInstanceCountOutput struct { - // The number of traffic policy instances that are associated with the current + // The number of traffic policy instances that are associated with the current AWS // account. // // This member is required. diff --git a/service/route53/api_op_ListHealthChecks.go b/service/route53/api_op_ListHealthChecks.go index 5905a3a45c6..108169f9244 100644 --- a/service/route53/api_op_ListHealthChecks.go +++ b/service/route53/api_op_ListHealthChecks.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieve a list of the health checks that are associated with the current +// Retrieve a list of the health checks that are associated with the current AWS // account. func (c *Client) ListHealthChecks(ctx context.Context, params *ListHealthChecksInput, optFns ...func(*Options)) (*ListHealthChecksOutput, error) { if params == nil { @@ -30,7 +30,7 @@ func (c *Client) ListHealthChecks(ctx context.Context, params *ListHealthChecksI } // A request to retrieve a list of the health checks that are associated with the -// current account. +// current AWS account. type ListHealthChecksInput struct { // If the value of IsTruncated in the previous response was true, you have more @@ -54,7 +54,7 @@ type ListHealthChecksInput struct { type ListHealthChecksOutput struct { // A complex type that contains one HealthCheck element for each health check that - // is associated with the current account. + // is associated with the current AWS account. // // This member is required. HealthChecks []types.HealthCheck diff --git a/service/route53/api_op_ListHostedZones.go b/service/route53/api_op_ListHostedZones.go index 30cd7cabe4d..8f7def3916d 100644 --- a/service/route53/api_op_ListHostedZones.go +++ b/service/route53/api_op_ListHostedZones.go @@ -13,10 +13,10 @@ import ( ) // Retrieves a list of the public and private hosted zones that are associated with -// the current account. The response includes a HostedZones child element for each -// hosted zone. Amazon Route 53 returns a maximum of 100 items in each response. If -// you have a lot of hosted zones, you can use the maxitems parameter to list them -// in groups of up to 100. +// the current AWS account. The response includes a HostedZones child element for +// each hosted zone. Amazon Route 53 returns a maximum of 100 items in each +// response. If you have a lot of hosted zones, you can use the maxitems parameter +// to list them in groups of up to 100. func (c *Client) ListHostedZones(ctx context.Context, params *ListHostedZonesInput, optFns ...func(*Options)) (*ListHostedZonesOutput, error) { if params == nil { params = &ListHostedZonesInput{} @@ -33,7 +33,7 @@ func (c *Client) ListHostedZones(ctx context.Context, params *ListHostedZonesInp } // A request to retrieve a list of the public and private hosted zones that are -// associated with the current account. +// associated with the current AWS account. type ListHostedZonesInput struct { // If you're using reusable delegation sets and you want to list all of the hosted diff --git a/service/route53/api_op_ListHostedZonesByName.go b/service/route53/api_op_ListHostedZonesByName.go index 26f8122358d..e908b42cad1 100644 --- a/service/route53/api_op_ListHostedZonesByName.go +++ b/service/route53/api_op_ListHostedZonesByName.go @@ -13,7 +13,7 @@ import ( // Retrieves a list of your hosted zones in lexicographic order. The response // includes a HostedZones child element for each hosted zone created by the current -// account. ListHostedZonesByName sorts hosted zones by name with the labels +// AWS account. ListHostedZonesByName sorts hosted zones by name with the labels // reversed. For example: com.example.www. Note the trailing dot, which can change // the sort order in some circumstances. If the domain name includes escape // characters or Punycode, ListHostedZonesByName alphabetizes the domain name using @@ -39,14 +39,14 @@ import ( // current response. // // * If the value of IsTruncated in the response is true, there -// are more hosted zones associated with the current account. If IsTruncated is +// are more hosted zones associated with the current AWS account. If IsTruncated is // false, this response includes the last hosted zone that is associated with the // current account. The NextDNSName element and NextHostedZoneId elements are // omitted from the response. // // * The NextDNSName and NextHostedZoneId elements in // the response contain the domain name and the hosted zone ID of the next hosted -// zone that is associated with the current account. If you want to list more +// zone that is associated with the current AWS account. If you want to list more // hosted zones, make another call to ListHostedZonesByName, and specify the value // of NextDNSName and NextHostedZoneId in the dnsname and hostedzoneid parameters, // respectively. @@ -66,13 +66,13 @@ func (c *Client) ListHostedZonesByName(ctx context.Context, params *ListHostedZo } // Retrieves a list of the public and private hosted zones that are associated with -// the current account in ASCII order by domain name. +// the current AWS account in ASCII order by domain name. type ListHostedZonesByNameInput struct { // (Optional) For your first request to ListHostedZonesByName, include the dnsname // parameter only if you want to specify the name of the first hosted zone in the // response. If you don't include the dnsname parameter, Amazon Route 53 returns - // all of the hosted zones that were created by the current account, in ASCII + // all of the hosted zones that were created by the current AWS account, in ASCII // order. For subsequent requests, include both dnsname and hostedzoneid // parameters. For dnsname, specify the value of NextDNSName from the previous // response. diff --git a/service/route53/api_op_ListHostedZonesByVPC.go b/service/route53/api_op_ListHostedZonesByVPC.go index 383def4a111..bebca0fa50e 100644 --- a/service/route53/api_op_ListHostedZonesByVPC.go +++ b/service/route53/api_op_ListHostedZonesByVPC.go @@ -12,18 +12,18 @@ import ( ) // Lists all the private hosted zones that a specified VPC is associated with, -// regardless of which account or Amazon Web Services service owns the hosted -// zones. The HostedZoneOwner structure in the response contains one of the -// following values: +// regardless of which AWS account or AWS service owns the hosted zones. The +// HostedZoneOwner structure in the response contains one of the following +// values: // -// * An OwningAccount element, which contains the account number -// of either the current account or another account. Some services, such as Cloud +// * An OwningAccount element, which contains the account number of either +// the current AWS account or another AWS account. Some services, such as AWS Cloud // Map, create hosted zones using the current account. // // * An OwningService element, -// which identifies the Amazon Web Services service that created and owns the -// hosted zone. For example, if a hosted zone was created by Amazon Elastic File -// System (Amazon EFS), the value of Owner is efs.amazonaws.com. +// which identifies the AWS service that created and owns the hosted zone. For +// example, if a hosted zone was created by Amazon Elastic File System (Amazon +// EFS), the value of Owner is efs.amazonaws.com. func (c *Client) ListHostedZonesByVPC(ctx context.Context, params *ListHostedZonesByVPCInput, optFns ...func(*Options)) (*ListHostedZonesByVPCOutput, error) { if params == nil { params = &ListHostedZonesByVPCInput{} @@ -40,7 +40,7 @@ func (c *Client) ListHostedZonesByVPC(ctx context.Context, params *ListHostedZon } // Lists all the private hosted zones that a specified VPC is associated with, -// regardless of which account created the hosted zones. +// regardless of which AWS account created the hosted zones. type ListHostedZonesByVPCInput struct { // The ID of the Amazon VPC that you want to list hosted zones for. @@ -48,8 +48,8 @@ type ListHostedZonesByVPCInput struct { // This member is required. VPCId *string - // For the Amazon VPC that you specified for VPCId, the Amazon Web Services Region - // that you created the VPC in. + // For the Amazon VPC that you specified for VPCId, the AWS Region that you created + // the VPC in. // // This member is required. VPCRegion types.VPCRegion @@ -86,8 +86,8 @@ type ListHostedZonesByVPCOutput struct { // This member is required. MaxItems *int32 - // The value that you will use for NextToken in the next ListHostedZonesByVPC - // request. + // The value that you specified for NextToken in the most recent + // ListHostedZonesByVPC request. NextToken *string // Metadata pertaining to the operation's result. diff --git a/service/route53/api_op_ListQueryLoggingConfigs.go b/service/route53/api_op_ListQueryLoggingConfigs.go index c1907e89a02..7f48d5d547f 100644 --- a/service/route53/api_op_ListQueryLoggingConfigs.go +++ b/service/route53/api_op_ListQueryLoggingConfigs.go @@ -13,8 +13,9 @@ import ( ) // Lists the configurations for DNS query logging that are associated with the -// current account or the configuration that is associated with a specified hosted -// zone. For more information about DNS query logs, see CreateQueryLoggingConfig +// current AWS account or the configuration that is associated with a specified +// hosted zone. For more information about DNS query logs, see +// CreateQueryLoggingConfig // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateQueryLoggingConfig.html). // Additional information, including the format of DNS query logs, appears in // Logging DNS Queries @@ -40,18 +41,18 @@ type ListQueryLoggingConfigsInput struct { // (Optional) If you want to list the query logging configuration that is // associated with a hosted zone, specify the ID in HostedZoneId. If you don't // specify a hosted zone ID, ListQueryLoggingConfigs returns all of the - // configurations that are associated with the current account. + // configurations that are associated with the current AWS account. HostedZoneId *string // (Optional) The maximum number of query logging configurations that you want - // Amazon Route 53 to return in response to the current request. If the current + // Amazon Route 53 to return in response to the current request. If the current AWS // account has more than MaxResults configurations, use the value of NextToken // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListQueryLoggingConfigs.html#API_ListQueryLoggingConfigs_RequestSyntax) // in the response to get the next page of results. If you don't specify a value // for MaxResults, Route 53 returns up to 100 configurations. MaxResults *int32 - // (Optional) If the current account has more than MaxResults query logging + // (Optional) If the current AWS account has more than MaxResults query logging // configurations, use NextToken to get the second and subsequent pages of results. // For the first ListQueryLoggingConfigs request, omit this value. For the second // and subsequent requests, get the value of NextToken from the previous response @@ -66,15 +67,15 @@ type ListQueryLoggingConfigsOutput struct { // An array that contains one QueryLoggingConfig // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_QueryLoggingConfig.html) // element for each configuration for DNS query logging that is associated with the - // current account. + // current AWS account. // // This member is required. QueryLoggingConfigs []types.QueryLoggingConfig // If a response includes the last of the query logging configurations that are - // associated with the current account, NextToken doesn't appear in the response. - // If a response doesn't include the last of the configurations, you can get more - // configurations by submitting another ListQueryLoggingConfigs + // associated with the current AWS account, NextToken doesn't appear in the + // response. If a response doesn't include the last of the configurations, you can + // get more configurations by submitting another ListQueryLoggingConfigs // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListQueryLoggingConfigs.html) // request. Get the value of NextToken that Amazon Route 53 returned in the // previous response and include it in NextToken in the next request. @@ -161,7 +162,7 @@ var _ ListQueryLoggingConfigsAPIClient = (*Client)(nil) // ListQueryLoggingConfigs type ListQueryLoggingConfigsPaginatorOptions struct { // (Optional) The maximum number of query logging configurations that you want - // Amazon Route 53 to return in response to the current request. If the current + // Amazon Route 53 to return in response to the current request. If the current AWS // account has more than MaxResults configurations, use the value of NextToken // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListQueryLoggingConfigs.html#API_ListQueryLoggingConfigs_RequestSyntax) // in the response to get the next page of results. If you don't specify a value diff --git a/service/route53/api_op_ListReusableDelegationSets.go b/service/route53/api_op_ListReusableDelegationSets.go index 4db0015b505..5eb6cb14d81 100644 --- a/service/route53/api_op_ListReusableDelegationSets.go +++ b/service/route53/api_op_ListReusableDelegationSets.go @@ -12,7 +12,7 @@ import ( ) // Retrieves a list of the reusable delegation sets that are associated with the -// current account. +// current AWS account. func (c *Client) ListReusableDelegationSets(ctx context.Context, params *ListReusableDelegationSetsInput, optFns ...func(*Options)) (*ListReusableDelegationSetsOutput, error) { if params == nil { params = &ListReusableDelegationSetsInput{} @@ -29,7 +29,7 @@ func (c *Client) ListReusableDelegationSets(ctx context.Context, params *ListReu } // A request to get a list of the reusable delegation sets that are associated with -// the current account. +// the current AWS account. type ListReusableDelegationSetsInput struct { // If the value of IsTruncated in the previous response was true, you have more @@ -50,11 +50,11 @@ type ListReusableDelegationSetsInput struct { } // A complex type that contains information about the reusable delegation sets that -// are associated with the current account. +// are associated with the current AWS account. type ListReusableDelegationSetsOutput struct { // A complex type that contains one DelegationSet element for each reusable - // delegation set that was created by the current account. + // delegation set that was created by the current AWS account. // // This member is required. DelegationSets []types.DelegationSet diff --git a/service/route53/api_op_ListTagsForResource.go b/service/route53/api_op_ListTagsForResource.go index b93946ca5e6..c71c828a6c9 100644 --- a/service/route53/api_op_ListTagsForResource.go +++ b/service/route53/api_op_ListTagsForResource.go @@ -14,7 +14,7 @@ import ( // Lists tags for one health check or hosted zone. For information about using tags // for cost allocation, see Using Cost Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) -// in the Billing and Cost Management User Guide. +// in the AWS Billing and Cost Management User Guide. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/route53/api_op_ListTagsForResources.go b/service/route53/api_op_ListTagsForResources.go index 13109083b13..845c5e88f0c 100644 --- a/service/route53/api_op_ListTagsForResources.go +++ b/service/route53/api_op_ListTagsForResources.go @@ -14,7 +14,7 @@ import ( // Lists tags for up to 10 health checks or hosted zones. For information about // using tags for cost allocation, see Using Cost Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) -// in the Billing and Cost Management User Guide. +// in the AWS Billing and Cost Management User Guide. func (c *Client) ListTagsForResources(ctx context.Context, params *ListTagsForResourcesInput, optFns ...func(*Options)) (*ListTagsForResourcesOutput, error) { if params == nil { params = &ListTagsForResourcesInput{} diff --git a/service/route53/api_op_ListTrafficPolicies.go b/service/route53/api_op_ListTrafficPolicies.go index 3b013258213..390d91be620 100644 --- a/service/route53/api_op_ListTrafficPolicies.go +++ b/service/route53/api_op_ListTrafficPolicies.go @@ -12,9 +12,9 @@ import ( ) // Gets information about the latest version for every traffic policy that is -// associated with the current account. Policies are listed in the order that they -// were created in. For information about how of deleting a traffic policy affects -// the response from ListTrafficPolicies, see DeleteTrafficPolicy +// associated with the current AWS account. Policies are listed in the order that +// they were created in. For information about how of deleting a traffic policy +// affects the response from ListTrafficPolicies, see DeleteTrafficPolicy // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicy.html). func (c *Client) ListTrafficPolicies(ctx context.Context, params *ListTrafficPoliciesInput, optFns ...func(*Options)) (*ListTrafficPoliciesOutput, error) { if params == nil { @@ -32,7 +32,7 @@ func (c *Client) ListTrafficPolicies(ctx context.Context, params *ListTrafficPol } // A complex type that contains the information about the request to list the -// traffic policies that are associated with the current account. +// traffic policies that are associated with the current AWS account. type ListTrafficPoliciesInput struct { // (Optional) The maximum number of traffic policies that you want Amazon Route 53 @@ -77,7 +77,7 @@ type ListTrafficPoliciesOutput struct { TrafficPolicyIdMarker *string // A list that contains one TrafficPolicySummary element for each traffic policy - // that was created by the current account. + // that was created by the current AWS account. // // This member is required. TrafficPolicySummaries []types.TrafficPolicySummary diff --git a/service/route53/api_op_ListTrafficPolicyInstances.go b/service/route53/api_op_ListTrafficPolicyInstances.go index 8e2de19fcde..07cfa75d5ac 100644 --- a/service/route53/api_op_ListTrafficPolicyInstances.go +++ b/service/route53/api_op_ListTrafficPolicyInstances.go @@ -12,10 +12,10 @@ import ( ) // Gets information about the traffic policy instances that you created by using -// the current account. After you submit an UpdateTrafficPolicyInstance request, -// there's a brief delay while Amazon Route 53 creates the resource record sets -// that are specified in the traffic policy definition. For more information, see -// the State response element. Route 53 returns a maximum of 100 items in each +// the current AWS account. After you submit an UpdateTrafficPolicyInstance +// request, there's a brief delay while Amazon Route 53 creates the resource record +// sets that are specified in the traffic policy definition. For more information, +// see the State response element. Route 53 returns a maximum of 100 items in each // response. If you have a lot of traffic policy instances, you can use the // MaxItems parameter to list them in groups of up to 100. func (c *Client) ListTrafficPolicyInstances(ctx context.Context, params *ListTrafficPolicyInstancesInput, optFns ...func(*Options)) (*ListTrafficPolicyInstancesOutput, error) { @@ -34,7 +34,7 @@ func (c *Client) ListTrafficPolicyInstances(ctx context.Context, params *ListTra } // A request to get information about the traffic policy instances that you created -// by using the current account. +// by using the current AWS account. type ListTrafficPolicyInstancesInput struct { // If the value of IsTruncated in the previous response was true, you have more diff --git a/service/route53/api_op_TestDNSAnswer.go b/service/route53/api_op_TestDNSAnswer.go index ef6121dee9b..4bcc5f0b04c 100644 --- a/service/route53/api_op_TestDNSAnswer.go +++ b/service/route53/api_op_TestDNSAnswer.go @@ -72,8 +72,7 @@ type TestDNSAnswerInput struct { // If you want to simulate a request from a specific DNS resolver, specify the IP // address for that resolver. If you omit this value, TestDnsAnswer uses the IP - // address of a DNS resolver in the Amazon Web Services US East (N. Virginia) - // Region (us-east-1). + // address of a DNS resolver in the AWS US East (N. Virginia) Region (us-east-1). ResolverIP *string noSmithyDocumentSerde diff --git a/service/route53/deserializers.go b/service/route53/deserializers.go index 93980a9a0ea..3fa3c3bed7e 100644 --- a/service/route53/deserializers.go +++ b/service/route53/deserializers.go @@ -107,9 +107,6 @@ func awsRestxml_deserializeOpErrorActivateKeySigningKey(response *smithyhttp.Res case strings.EqualFold("ConcurrentModification", errorCode): return awsRestxml_deserializeErrorConcurrentModification(response, errorBody) - case strings.EqualFold("InvalidInput", errorCode): - return awsRestxml_deserializeErrorInvalidInput(response, errorBody) - case strings.EqualFold("InvalidKMSArn", errorCode): return awsRestxml_deserializeErrorInvalidKMSArn(response, errorBody) @@ -2186,9 +2183,6 @@ func awsRestxml_deserializeOpErrorDeactivateKeySigningKey(response *smithyhttp.R case strings.EqualFold("ConcurrentModification", errorCode): return awsRestxml_deserializeErrorConcurrentModification(response, errorBody) - case strings.EqualFold("InvalidInput", errorCode): - return awsRestxml_deserializeErrorInvalidInput(response, errorBody) - case strings.EqualFold("InvalidKeySigningKeyStatus", errorCode): return awsRestxml_deserializeErrorInvalidKeySigningKeyStatus(response, errorBody) @@ -2563,9 +2557,6 @@ func awsRestxml_deserializeOpErrorDeleteKeySigningKey(response *smithyhttp.Respo case strings.EqualFold("ConcurrentModification", errorCode): return awsRestxml_deserializeErrorConcurrentModification(response, errorBody) - case strings.EqualFold("InvalidInput", errorCode): - return awsRestxml_deserializeErrorInvalidInput(response, errorBody) - case strings.EqualFold("InvalidKMSArn", errorCode): return awsRestxml_deserializeErrorInvalidKMSArn(response, errorBody) @@ -3098,9 +3089,6 @@ func awsRestxml_deserializeOpErrorDisableHostedZoneDNSSEC(response *smithyhttp.R case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("InvalidInput", errorCode): - return awsRestxml_deserializeErrorInvalidInput(response, errorBody) - case strings.EqualFold("InvalidKMSArn", errorCode): return awsRestxml_deserializeErrorInvalidKMSArn(response, errorBody) @@ -3408,9 +3396,6 @@ func awsRestxml_deserializeOpErrorEnableHostedZoneDNSSEC(response *smithyhttp.Re case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("InvalidInput", errorCode): - return awsRestxml_deserializeErrorInvalidInput(response, errorBody) - case strings.EqualFold("InvalidKMSArn", errorCode): return awsRestxml_deserializeErrorInvalidKMSArn(response, errorBody) @@ -3988,9 +3973,6 @@ func awsRestxml_deserializeOpErrorGetDNSSEC(response *smithyhttp.Response, metad case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("InvalidInput", errorCode): - return awsRestxml_deserializeErrorInvalidInput(response, errorBody) - case strings.EqualFold("NoSuchHostedZone", errorCode): return awsRestxml_deserializeErrorNoSuchHostedZone(response, errorBody) @@ -14830,19 +14812,6 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig sv.ResourcePath = ptr.String(xtv) } - case strings.EqualFold("RoutingControlArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.RoutingControlArn = ptr.String(xtv) - } - case strings.EqualFold("SearchString", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/route53/go.mod b/service/route53/go.mod index 9e8ecb43cad..df12e9da5cf 100644 --- a/service/route53/go.mod +++ b/service/route53/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53/go.sum b/service/route53/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/route53/go.sum +++ b/service/route53/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/route53/serializers.go b/service/route53/serializers.go index 661b43aeecd..ae93fa71a11 100644 --- a/service/route53/serializers.go +++ b/service/route53/serializers.go @@ -5242,17 +5242,6 @@ func awsRestxml_serializeDocumentHealthCheckConfig(v *types.HealthCheckConfig, v el := value.MemberElement(root) el.String(*v.ResourcePath) } - if v.RoutingControlArn != nil { - rootAttr := []smithyxml.Attr{} - root := smithyxml.StartElement{ - Name: smithyxml.Name{ - Local: "RoutingControlArn", - }, - Attr: rootAttr, - } - el := value.MemberElement(root) - el.String(*v.RoutingControlArn) - } if v.SearchString != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ diff --git a/service/route53/types/enums.go b/service/route53/types/enums.go index 5c764cdb998..816364010e2 100644 --- a/service/route53/types/enums.go +++ b/service/route53/types/enums.go @@ -195,7 +195,6 @@ const ( HealthCheckTypeTcp HealthCheckType = "TCP" HealthCheckTypeCalculated HealthCheckType = "CALCULATED" HealthCheckTypeCloudwatchMetric HealthCheckType = "CLOUDWATCH_METRIC" - HealthCheckTypeRecoveryControl HealthCheckType = "RECOVERY_CONTROL" ) // Values returns all known values for HealthCheckType. Note that this can be @@ -210,7 +209,6 @@ func (HealthCheckType) Values() []HealthCheckType { "TCP", "CALCULATED", "CLOUDWATCH_METRIC", - "RECOVERY_CONTROL", } } diff --git a/service/route53/types/errors.go b/service/route53/types/errors.go index 4e7dfffef41..75083f35e3c 100644 --- a/service/route53/types/errors.go +++ b/service/route53/types/errors.go @@ -403,11 +403,6 @@ func (e *IncompatibleVersion) ErrorFault() smithy.ErrorFault { return smithy.Fau // // * The resource policy // hasn't finished propagating yet. -// -// * The Key management service (KMS) key you -// specified doesn’t exist or it can’t be used with the log group associated with -// query log. Update or provide a resource policy to grant permissions for the KMS -// key. type InsufficientCloudWatchLogsResourcePolicy struct { Message *string @@ -762,7 +757,7 @@ func (e *LastVPCAssociation) ErrorFault() smithy.ErrorFault { return smithy.Faul // with a private hosted zone, see GetHostedZoneLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetHostedZoneLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the Amazon Web Services Support Center. +// with the AWS Support Center. type LimitsExceeded struct { Message *string @@ -1086,10 +1081,9 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau // current limit for an account, see GetAccountLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the Amazon Web Services Support Center. You have reached the maximum number -// of active health checks for an account. To request a higher limit, create a case -// (http://aws.amazon.com/route53-request) with the Amazon Web Services Support -// Center. +// with the AWS Support Center. You have reached the maximum number of active +// health checks for an AWS account. To request a higher limit, create a case +// (http://aws.amazon.com/route53-request) with the AWS Support Center. type TooManyHealthChecks struct { Message *string @@ -1120,7 +1114,7 @@ func (e *TooManyHealthChecks) ErrorFault() smithy.ErrorFault { return smithy.Fau // delegation set, see GetReusableDelegationSetLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetReusableDelegationSetLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the Amazon Web Services Support Center. +// with the AWS Support Center. type TooManyHostedZones struct { Message *string @@ -1167,7 +1161,7 @@ func (e *TooManyKeySigningKeys) ErrorFault() smithy.ErrorFault { return smithy.F // see GetAccountLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the Amazon Web Services Support Center. +// with the AWS Support Center. type TooManyTrafficPolicies struct { Message *string @@ -1194,7 +1188,7 @@ func (e *TooManyTrafficPolicies) ErrorFault() smithy.ErrorFault { return smithy. // current limit for an account, see GetAccountLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the Amazon Web Services Support Center. +// with the AWS Support Center. type TooManyTrafficPolicyInstances struct { Message *string diff --git a/service/route53/types/types.go b/service/route53/types/types.go index cf876f09193..f9b9c685704 100644 --- a/service/route53/types/types.go +++ b/service/route53/types/types.go @@ -79,24 +79,24 @@ type AlarmIdentifier struct { noSmithyDocumentSerde } -// Alias resource record sets only: Information about the Amazon Web Services -// resource, such as a CloudFront distribution or an Amazon S3 bucket, that you -// want to route traffic to. When creating resource record sets for a private -// hosted zone, note the following: +// Alias resource record sets only: Information about the AWS resource, such as a +// CloudFront distribution or an Amazon S3 bucket, that you want to route traffic +// to. When creating resource record sets for a private hosted zone, note the +// following: // -// * Creating geolocation alias resource record -// sets or latency alias resource record sets in a private hosted zone is -// unsupported. +// * Creating geolocation alias resource record sets or latency alias +// resource record sets in a private hosted zone is unsupported. // -// * For information about creating failover resource record sets in -// a private hosted zone, see Configuring Failover in a Private Hosted Zone +// * For information +// about creating failover resource record sets in a private hosted zone, see +// Configuring Failover in a Private Hosted Zone // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html). type AliasTarget struct { // Alias resource record sets only: The value that you specify depends on where you // want to route queries: Amazon API Gateway custom regional APIs and // edge-optimized APIs Specify the applicable domain name for your API. You can get - // the applicable value using the CLI command get-domain-names + // the applicable value using the AWS CLI command get-domain-names // (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-domain-names.html): // // * @@ -113,8 +113,8 @@ type AliasTarget struct { // endpoint, such as // vpce-123456789abcdef01-example-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com. // For edge-optimized APIs, this is the domain name for the corresponding - // CloudFront distribution. You can get the value of DnsName using the CLI command - // describe-vpc-endpoints + // CloudFront distribution. You can get the value of DnsName using the AWS CLI + // command describe-vpc-endpoints // (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpc-endpoints.html). // CloudFront distribution Specify the domain name that CloudFront assigned when // you created your distribution. Your CloudFront distribution must include an @@ -145,40 +145,41 @@ type AliasTarget struct { // attribute for the environment. You can use the following methods to get the // value of the CNAME attribute: // - // * Management Console: For information about how - // to get the value by using the console, see Using Custom Domains with Elastic - // Beanstalk + // * AWS Management Console: For information about + // how to get the value by using the console, see Using Custom Domains with AWS + // Elastic Beanstalk // (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html) in - // the Elastic Beanstalk Developer Guide. + // the AWS Elastic Beanstalk Developer Guide. // // * Elastic Beanstalk API: Use the // DescribeEnvironments action to get the value of the CNAME attribute. For more // information, see DescribeEnvironments // (https://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html) - // in the Elastic Beanstalk API Reference. + // in the AWS Elastic Beanstalk API Reference. // - // * CLI: Use the describe-environments - // command to get the value of the CNAME attribute. For more information, see - // describe-environments + // * AWS CLI: Use the + // describe-environments command to get the value of the CNAME attribute. For more + // information, see describe-environments // (https://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html) - // in the CLI Command Reference. + // in the AWS CLI Command Reference. // - // ELB load balancer Specify the DNS name that is - // associated with the load balancer. Get the DNS name by using the Management - // Console, the ELB API, or the CLI. + // ELB load balancer Specify the DNS name that + // is associated with the load balancer. Get the DNS name by using the AWS + // Management Console, the ELB API, or the AWS CLI. // - // * Management Console: Go to the EC2 page, - // choose Load Balancers in the navigation pane, choose the load balancer, choose - // the Description tab, and get the value of the DNS name field. If you're routing - // traffic to a Classic Load Balancer, get the value that begins with dualstack. If - // you're routing traffic to another type of load balancer, get the value that - // applies to the record type, A or AAAA. + // * AWS Management Console: Go + // to the EC2 page, choose Load Balancers in the navigation pane, choose the load + // balancer, choose the Description tab, and get the value of the DNS name field. + // If you're routing traffic to a Classic Load Balancer, get the value that begins + // with dualstack. If you're routing traffic to another type of load balancer, get + // the value that applies to the record type, A or AAAA. // - // * Elastic Load Balancing API: Use - // DescribeLoadBalancers to get the value of DNSName. For more information, see the - // applicable guide: + // * Elastic Load Balancing + // API: Use DescribeLoadBalancers to get the value of DNSName. For more + // information, see the applicable guide: // - // * Classic Load Balancers: DescribeLoadBalancers + // * Classic Load Balancers: + // DescribeLoadBalancers // (https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html) // // * @@ -186,7 +187,7 @@ type AliasTarget struct { // (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) // // * - // CLI: Use describe-load-balancers to get the value of DNSName. For more + // AWS CLI: Use describe-load-balancers to get the value of DNSName. For more // information, see the applicable guide: // // * Classic Load Balancers: @@ -197,15 +198,15 @@ type AliasTarget struct { // Application and Network Load Balancers: describe-load-balancers // (http://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-load-balancers.html) // - // Global - // Accelerator accelerator Specify the DNS name for your accelerator: + // AWS + // Global Accelerator accelerator Specify the DNS name for your accelerator: // - // * Global - // Accelerator API: To get the DNS name, use DescribeAccelerator + // * + // Global Accelerator API: To get the DNS name, use DescribeAccelerator // (https://docs.aws.amazon.com/global-accelerator/latest/api/API_DescribeAccelerator.html). // // * - // CLI: To get the DNS name, use describe-accelerator + // AWS CLI: To get the DNS name, use describe-accelerator // (https://docs.aws.amazon.com/cli/latest/reference/globalaccelerator/describe-accelerator.html). // // Amazon @@ -231,14 +232,14 @@ type AliasTarget struct { // Applies only to alias, failover alias, geolocation alias, latency alias, and // weighted alias resource record sets: When EvaluateTargetHealth is true, an alias - // resource record set inherits the health of the referenced Amazon Web Services - // resource, such as an ELB load balancer or another resource record set in the - // hosted zone. Note the following: CloudFront distributions You can't set - // EvaluateTargetHealth to true when the alias target is a CloudFront distribution. - // Elastic Beanstalk environments that have regionalized subdomains If you specify - // an Elastic Beanstalk environment in DNSName and the environment contains an ELB - // load balancer, Elastic Load Balancing routes queries only to the healthy Amazon - // EC2 instances that are registered with the load balancer. (An environment + // resource record set inherits the health of the referenced AWS resource, such as + // an ELB load balancer or another resource record set in the hosted zone. Note the + // following: CloudFront distributions You can't set EvaluateTargetHealth to true + // when the alias target is a CloudFront distribution. Elastic Beanstalk + // environments that have regionalized subdomains If you specify an Elastic + // Beanstalk environment in DNSName and the environment contains an ELB load + // balancer, Elastic Load Balancing routes queries only to the healthy Amazon EC2 + // instances that are registered with the load balancer. (An environment // automatically contains an ELB load balancer if it includes more than one Amazon // EC2 instance.) If you set EvaluateTargetHealth to true and either no Amazon EC2 // instances are healthy or the load balancer itself is unhealthy, Route 53 routes @@ -273,12 +274,11 @@ type AliasTarget struct { // but they perform a similar function. Do not create Route 53 health checks for // the EC2 instances that you register with an ELB load balancer. S3 buckets There // are no special requirements for setting EvaluateTargetHealth to true when the - // alias target is an S3 bucket. Other records in the same hosted zone If the - // Amazon Web Services resource that you specify in DNSName is a record or a group - // of records (for example, a group of weighted records) but is not another alias - // record, we recommend that you associate a health check with all of the records - // in the alias target. For more information, see What Happens When You Omit Health - // Checks? + // alias target is an S3 bucket. Other records in the same hosted zone If the AWS + // resource that you specify in DNSName is a record or a group of records (for + // example, a group of weighted records) but is not another alias record, we + // recommend that you associate a health check with all of the records in the alias + // target. For more information, see What Happens When You Omit Health Checks? // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html#dns-failover-complex-configs-hc-omitting) // in the Amazon Route 53 Developer Guide. For more information and examples, see // Amazon Route 53 Health Checks and DNS Failover @@ -291,7 +291,7 @@ type AliasTarget struct { // Alias resource records sets only: The value used depends on where you want to // route traffic: Amazon API Gateway custom regional APIs and edge-optimized APIs // Specify the hosted zone ID for your API. You can get the applicable value using - // the CLI command get-domain-names + // the AWS CLI command get-domain-names // (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-domain-names.html): // // * @@ -302,18 +302,18 @@ type AliasTarget struct { // // Amazon // Virtual Private Cloud interface VPC endpoint Specify the hosted zone ID for your - // interface endpoint. You can get the value of HostedZoneId using the CLI command - // describe-vpc-endpoints + // interface endpoint. You can get the value of HostedZoneId using the AWS CLI + // command describe-vpc-endpoints // (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpc-endpoints.html). // CloudFront distribution Specify Z2FDTNDATAQYW2. Alias resource record sets for // CloudFront can't be created in a private zone. Elastic Beanstalk environment // Specify the hosted zone ID for the region that you created the environment in. // The environment must have a regionalized subdomain. For a list of regions and - // the corresponding hosted zone IDs, see Elastic Beanstalk endpoints and quotas - // (https://docs.aws.amazon.com/general/latest/gr/elasticbeanstalk.html) in the the - // Amazon Web Services General Reference. ELB load balancer Specify the value of - // the hosted zone ID for the load balancer. Use the following methods to get the - // hosted zone ID: + // the corresponding hosted zone IDs, see AWS Elastic Beanstalk endpoints and + // quotas (https://docs.aws.amazon.com/general/latest/gr/elasticbeanstalk.html) in + // the the Amazon Web Services General Reference. ELB load balancer Specify the + // value of the hosted zone ID for the load balancer. Use the following methods to + // get the hosted zone ID: // // * Elastic Load Balancing endpoints and quotas // (https://docs.aws.amazon.com/general/latest/gr/elb.html) topic in the Amazon Web @@ -321,7 +321,7 @@ type AliasTarget struct { // you created your load balancer in. Note that there are separate columns for // Application and Classic Load Balancers and for Network Load Balancers. // - // * + // * AWS // Management Console: Go to the Amazon EC2 page, choose Load Balancers in the // navigation pane, select the load balancer, and get the value of the Hosted zone // field on the Description tab. @@ -339,11 +339,11 @@ type AliasTarget struct { // (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) // to get the value of CanonicalHostedZoneId. // - // * CLI: Use describe-load-balancers - // to get the applicable value. For more information, see the applicable guide: + // * AWS CLI: Use + // describe-load-balancers to get the applicable value. For more information, see + // the applicable guide: // - // * - // Classic Load Balancers: Use describe-load-balancers + // * Classic Load Balancers: Use describe-load-balancers // (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html) // to get the value of CanonicalHostedZoneNameId. // @@ -352,7 +352,7 @@ type AliasTarget struct { // (http://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-load-balancers.html) // to get the value of CanonicalHostedZoneId. // - // Global Accelerator accelerator + // AWS Global Accelerator accelerator // Specify Z2BJ6XQ5FK7U4H. An Amazon S3 bucket configured as a static website // Specify the hosted zone ID for the region that you created the bucket in. For // more information about valid values, see the table Amazon S3 Website Endpoints @@ -418,9 +418,7 @@ type ChangeBatch struct { // hosted zone. type ChangeInfo struct { - // This element contains an ID that you use when performing a GetChange - // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetChange.html) - // action to get detailed information about the change. + // The ID of the request. // // This member is required. Id *string @@ -439,7 +437,11 @@ type ChangeInfo struct { // This member is required. SubmittedAt *time.Time - // A comment you can provide. + // A complex type that describes change information about changes made to your + // hosted zone. This element contains an ID that you use when performing a + // GetChange + // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetChange.html) + // action to get detailed information about the change. Comment *string noSmithyDocumentSerde @@ -640,7 +642,7 @@ type GeoLocationDetails struct { } // A complex type that contains information about one health check that is -// associated with the current Amazon Web Services account. +// associated with the current AWS account. type HealthCheck struct { // A unique string that you specified when you created the health check. @@ -721,13 +723,8 @@ type HealthCheckConfig struct { // consider to be healthy and compares that number with the value of // HealthThreshold. // - // * RECOVERY_CONTROL: The health check is assocated with a - // Route53 Application Recovery Controller routing control. If the routing control - // state is ON, the health check is considered healthy. If the state is OFF, the - // health check is considered unhealthy. - // - // For more information, see How Route 53 - // Determines Whether an Endpoint Is Healthy + // For more information, see How Route 53 Determines Whether an + // Endpoint Is Healthy // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html) // in the Amazon Route 53 Developer Guide. // @@ -920,10 +917,9 @@ type HealthCheckConfig struct { Inverted *bool // Specify whether you want Amazon Route 53 to measure the latency between health - // checkers in multiple Amazon Web Services regions and your endpoint, and to - // display CloudWatch latency graphs on the Health Checks page in the Route 53 - // console. You can't change the value of MeasureLatency after you create a health - // check. + // checkers in multiple AWS regions and your endpoint, and to display CloudWatch + // latency graphs on the Health Checks page in the Route 53 console. You can't + // change the value of MeasureLatency after you create a health check. MeasureLatency *bool // The port on the endpoint that you want Amazon Route 53 to perform health checks @@ -955,10 +951,6 @@ type HealthCheckConfig struct { // parameters, for example, /welcome.html?language=jp&login=y. ResourcePath *string - // The Amazon Resource Name (ARN) for Route53 Application Recovery Controller - // routing control. - RoutingControlArn *string - // If the value of Type is HTTP_STR_MATCH or HTTPS_STR_MATCH, the string that you // want Amazon Route 53 to search for in the response body from the specified // resource. If the string appears in the response body, Route 53 considers the @@ -1070,18 +1062,18 @@ type HostedZoneLimit struct { // OwningAccount, there is no value for OwningService, and vice versa. type HostedZoneOwner struct { - // If the hosted zone was created by an account, or was created by an Amazon Web - // Services service that creates hosted zones using the current account, - // OwningAccount contains the account ID of that account. For example, when you use - // Cloud Map to create a hosted zone, Cloud Map creates the hosted zone using the - // current account. + // If the hosted zone was created by an AWS account, or was created by an AWS + // service that creates hosted zones using the current account, OwningAccount + // contains the account ID of that account. For example, when you use AWS Cloud Map + // to create a hosted zone, Cloud Map creates the hosted zone using the current AWS + // account. OwningAccount *string - // If an Amazon Web Services service uses its own account to create a hosted zone - // and associate the specified VPC with that hosted zone, OwningService contains an - // abbreviation that identifies the service. For example, if Amazon Elastic File - // System (Amazon EFS) created a hosted zone and associated a VPC with the hosted - // zone, the value of OwningService is efs.amazonaws.com. + // If an AWS service uses its own account to create a hosted zone and associate the + // specified VPC with that hosted zone, OwningService contains an abbreviation that + // identifies the service. For example, if Amazon Elastic File System (Amazon EFS) + // created a hosted zone and associated a VPC with the hosted zone, the value of + // OwningService is efs.amazonaws.com. OwningService *string noSmithyDocumentSerde @@ -1105,7 +1097,7 @@ type HostedZoneSummary struct { Name *string // The owner of a private hosted zone that the specified VPC is associated with. - // The owner can be either an account or an Amazon Web Services service. + // The owner can be either an AWS account or an AWS service. // // This member is required. Owner *HostedZoneOwner @@ -1154,26 +1146,27 @@ type KeySigningKey struct { KeyTag int32 // The Amazon resource name (ARN) used to identify the customer managed customer - // master key (CMK) in Key Management Service (KMS). The KmsArn must be unique for - // each key-signing key (KSK) in a single hosted zone. You must configure the CMK - // as follows: Status Enabled Key spec ECC_NIST_P256 Key usage Sign and verify Key - // policy The key policy must give permission for the following actions: + // master key (CMK) in AWS Key Management Service (AWS KMS). The KmsArn must be + // unique for each key-signing key (KSK) in a single hosted zone. You must + // configure the CMK as follows: Status Enabled Key spec ECC_NIST_P256 Key usage + // Sign and verify Key policy The key policy must give permission for the following + // actions: // - // * - // DescribeKey + // * DescribeKey // // * GetPublicKey // // * Sign // - // The key policy must also include the Amazon - // Route 53 service in the principal for your account. Specify the following: + // The key policy must also + // include the Amazon Route 53 service in the principal for your account. Specify + // the following: // - // * - // "Service": "dnssec-route53.amazonaws.com" + // * "Service": "api-service.dnssec.route53.aws.internal" // - // For more information about working - // with the customer managed CMK in KMS, see Key Management Service concepts + // For more + // information about working with the customer managed CMK in AWS KMS, see AWS Key + // Management Service concepts // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html). KmsArn *string @@ -1368,21 +1361,21 @@ type ResourceRecordSet struct { // This member is required. Type RRType - // Alias resource record sets only: Information about the Amazon Web Services - // resource, such as a CloudFront distribution or an Amazon S3 bucket, that you - // want to route traffic to. If you're creating resource records sets for a private - // hosted zone, note the following: + // Alias resource record sets only: Information about the AWS resource, such as a + // CloudFront distribution or an Amazon S3 bucket, that you want to route traffic + // to. If you're creating resource records sets for a private hosted zone, note the + // following: // - // * You can't create an alias resource record - // set in a private hosted zone to route traffic to a CloudFront distribution. + // * You can't create an alias resource record set in a private hosted + // zone to route traffic to a CloudFront distribution. // - // * - // Creating geolocation alias resource record sets or latency alias resource record - // sets in a private hosted zone is unsupported. + // * Creating geolocation + // alias resource record sets or latency alias resource record sets in a private + // hosted zone is unsupported. // - // * For information about creating - // failover resource record sets in a private hosted zone, see Configuring Failover - // in a Private Hosted Zone + // * For information about creating failover resource + // record sets in a private hosted zone, see Configuring Failover in a Private + // Hosted Zone // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) // in the Amazon Route 53 Developer Guide. AliasTarget *AliasTarget @@ -1603,30 +1596,29 @@ type ResourceRecordSet struct { // Latency-based resource record sets only: The Amazon EC2 Region where you created // the resource that this resource record set refers to. The resource typically is - // an Amazon Web Services resource, such as an EC2 instance or an ELB load - // balancer, and is referred to by an IP address or a DNS domain name, depending on - // the record type. Although creating latency and latency alias resource record - // sets in a private hosted zone is allowed, it's not supported. When Amazon Route - // 53 receives a DNS query for a domain name and type for which you have created - // latency resource record sets, Route 53 selects the latency resource record set - // that has the lowest latency between the end user and the associated Amazon EC2 - // Region. Route 53 then returns the value that is associated with the selected - // resource record set. Note the following: - // - // * You can only specify one - // ResourceRecord per latency resource record set. - // - // * You can only create one - // latency resource record set for each Amazon EC2 Region. - // - // * You aren't required - // to create latency resource record sets for all Amazon EC2 Regions. Route 53 will - // choose the region with the best latency from among the regions that you create - // latency resource record sets for. - // - // * You can't create non-latency resource - // record sets that have the same values for the Name and Type elements as latency - // resource record sets. + // an AWS resource, such as an EC2 instance or an ELB load balancer, and is + // referred to by an IP address or a DNS domain name, depending on the record type. + // Although creating latency and latency alias resource record sets in a private + // hosted zone is allowed, it's not supported. When Amazon Route 53 receives a DNS + // query for a domain name and type for which you have created latency resource + // record sets, Route 53 selects the latency resource record set that has the + // lowest latency between the end user and the associated Amazon EC2 Region. Route + // 53 then returns the value that is associated with the selected resource record + // set. Note the following: + // + // * You can only specify one ResourceRecord per latency + // resource record set. + // + // * You can only create one latency resource record set for + // each Amazon EC2 Region. + // + // * You aren't required to create latency resource record + // sets for all Amazon EC2 Regions. Route 53 will choose the region with the best + // latency from among the regions that you create latency resource record sets + // for. + // + // * You can't create non-latency resource record sets that have the same + // values for the Name and Type elements as latency resource record sets. Region ResourceRecordSetRegion // Information about the resource records to act upon. If you're creating an alias @@ -1909,7 +1901,7 @@ type TrafficPolicyInstance struct { } // A complex type that contains information about the latest version of one traffic -// policy that is associated with the current account. +// policy that is associated with the current AWS account. type TrafficPolicySummary struct { // The ID that Amazon Route 53 assigned to the traffic policy when you created it. @@ -1927,7 +1919,7 @@ type TrafficPolicySummary struct { // This member is required. Name *string - // The number of traffic policies that are associated with the current account. + // The number of traffic policies that are associated with the current AWS account. // // This member is required. TrafficPolicyCount *int32 diff --git a/service/route53domains/go.mod b/service/route53domains/go.mod index f0ad363e43b..d900016a3f6 100644 --- a/service/route53domains/go.mod +++ b/service/route53domains/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53domains/go.sum b/service/route53domains/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/route53domains/go.sum +++ b/service/route53domains/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/route53recoverycluster/LICENSE.txt b/service/route53recoverycluster/LICENSE.txt deleted file mode 100644 index d6456956733..00000000000 --- a/service/route53recoverycluster/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/service/route53recoverycluster/api_client.go b/service/route53recoverycluster/api_client.go deleted file mode 100644 index 9ddeab06856..00000000000 --- a/service/route53recoverycluster/api_client.go +++ /dev/null @@ -1,262 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycluster - -import ( - "context" - "github.com/aws/aws-sdk-go-v2/aws" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/retry" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" - smithy "github.com/aws/smithy-go" - smithydocument "github.com/aws/smithy-go/document" - "github.com/aws/smithy-go/logging" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "net/http" - "time" -) - -const ServiceID = "Route53 Recovery Cluster" -const ServiceAPIVersion = "2019-12-02" - -// Client provides the API client to make operations call for Route53 Recovery -// Cluster. -type Client struct { - options Options -} - -// New returns an initialized Client based on the functional options. Provide -// additional functional options to further configure the behavior of the client, -// such as changing the client's endpoint or adding custom middleware behavior. -func New(options Options, optFns ...func(*Options)) *Client { - options = options.Copy() - - resolveDefaultLogger(&options) - - resolveRetryer(&options) - - resolveHTTPClient(&options) - - resolveHTTPSignerV4(&options) - - resolveDefaultEndpointConfiguration(&options) - - for _, fn := range optFns { - fn(&options) - } - - client := &Client{ - options: options, - } - - return client -} - -type Options struct { - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // Configures the events that will be sent to the configured logger. - ClientLogMode aws.ClientLogMode - - // The credentials object to use when signing requests. - Credentials aws.CredentialsProvider - - // The endpoint options to be used when attempting to resolve an endpoint. - EndpointOptions EndpointResolverOptions - - // The service endpoint resolver. - EndpointResolver EndpointResolver - - // Signature Version 4 (SigV4) Signer - HTTPSignerV4 HTTPSignerV4 - - // The logger writer interface to write logging messages to. - Logger logging.Logger - - // The region to send requests to. (Required) - Region string - - // Retryer guides how HTTP requests should be retried in case of recoverable - // failures. When nil the API client will use a default retryer. - Retryer aws.Retryer - - // The HTTP client to invoke API calls with. Defaults to client's default HTTP - // implementation if nil. - HTTPClient HTTPClient -} - -// WithAPIOptions returns a functional option for setting the Client's APIOptions -// option. -func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { - return func(o *Options) { - o.APIOptions = append(o.APIOptions, optFns...) - } -} - -// WithEndpointResolver returns a functional option for setting the Client's -// EndpointResolver option. -func WithEndpointResolver(v EndpointResolver) func(*Options) { - return func(o *Options) { - o.EndpointResolver = v - } -} - -type HTTPClient interface { - Do(*http.Request) (*http.Response, error) -} - -// Copy creates a clone where the APIOptions list is deep copied. -func (o Options) Copy() Options { - to := o - to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) - copy(to.APIOptions, o.APIOptions) - return to -} -func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { - ctx = middleware.ClearStackValues(ctx) - stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) - options := c.options.Copy() - for _, fn := range optFns { - fn(&options) - } - - for _, fn := range stackFns { - if err := fn(stack, options); err != nil { - return nil, metadata, err - } - } - - for _, fn := range options.APIOptions { - if err := fn(stack); err != nil { - return nil, metadata, err - } - } - - handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) - result, metadata, err = handler.Handle(ctx, params) - if err != nil { - err = &smithy.OperationError{ - ServiceID: ServiceID, - OperationName: opID, - Err: err, - } - } - return result, metadata, err -} - -type noSmithyDocumentSerde = smithydocument.NoSerde - -func resolveDefaultLogger(o *Options) { - if o.Logger != nil { - return - } - o.Logger = logging.Nop{} -} - -func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { - return middleware.AddSetLoggerMiddleware(stack, o.Logger) -} - -// NewFromConfig returns a new client from the provided config. -func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { - opts := Options{ - Region: cfg.Region, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - } - resolveAWSRetryerProvider(cfg, &opts) - resolveAWSEndpointResolver(cfg, &opts) - return New(opts, optFns...) -} - -func resolveHTTPClient(o *Options) { - if o.HTTPClient != nil { - return - } - o.HTTPClient = awshttp.NewBuildableClient() -} - -func resolveRetryer(o *Options) { - if o.Retryer != nil { - return - } - o.Retryer = retry.NewStandard() -} - -func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { - if cfg.Retryer == nil { - return - } - o.Retryer = cfg.Retryer() -} - -func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { - if cfg.EndpointResolver == nil { - return - } - o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, NewDefaultEndpointResolver()) -} - -func addClientUserAgent(stack *middleware.Stack) error { - return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "route53recoverycluster", goModuleVersion)(stack) -} - -func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { - mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ - CredentialsProvider: o.Credentials, - Signer: o.HTTPSignerV4, - LogSigning: o.ClientLogMode.IsSigning(), - }) - return stack.Finalize.Add(mw, middleware.After) -} - -type HTTPSignerV4 interface { - SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error -} - -func resolveHTTPSignerV4(o *Options) { - if o.HTTPSignerV4 != nil { - return - } - o.HTTPSignerV4 = newDefaultV4Signer(*o) -} - -func newDefaultV4Signer(o Options) *v4.Signer { - return v4.NewSigner(func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }) -} - -func addRetryMiddlewares(stack *middleware.Stack, o Options) error { - mo := retry.AddRetryMiddlewaresOptions{ - Retryer: o.Retryer, - LogRetryAttempts: o.ClientLogMode.IsRetries(), - } - return retry.AddRetryMiddlewares(stack, mo) -} - -func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { - return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) -} - -func addResponseErrorMiddleware(stack *middleware.Stack) error { - return awshttp.AddResponseErrorMiddleware(stack) -} - -func addRequestResponseLogging(stack *middleware.Stack, o Options) error { - return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ - LogRequest: o.ClientLogMode.IsRequest(), - LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), - LogResponse: o.ClientLogMode.IsResponse(), - LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), - }, middleware.After) -} diff --git a/service/route53recoverycluster/api_op_GetRoutingControlState.go b/service/route53recoverycluster/api_op_GetRoutingControlState.go deleted file mode 100644 index 45726276691..00000000000 --- a/service/route53recoverycluster/api_op_GetRoutingControlState.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycluster - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Get the state for a routing control. A routing control is a simple on/off switch -// that you can use to route traffic to cells. When the state is On, traffic flows -// to a cell. When it's off, traffic does not flow. Before you can create a routing -// control, you first must create a cluster to host the control. For more -// information, see CreateCluster -// (https://docs.aws.amazon.com/recovery-cluster/latest/api/cluster.html). Access -// one of the endpoints for the cluster to get or update the routing control state -// to redirect traffic. For more information about working with routing controls, -// see Routing control -// (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html) in the -// Route 53 Application Recovery Controller Developer Guide. -func (c *Client) GetRoutingControlState(ctx context.Context, params *GetRoutingControlStateInput, optFns ...func(*Options)) (*GetRoutingControlStateOutput, error) { - if params == nil { - params = &GetRoutingControlStateInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetRoutingControlState", params, optFns, c.addOperationGetRoutingControlStateMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetRoutingControlStateOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetRoutingControlStateInput struct { - - // The Amazon Resource Number (ARN) for the routing control that you want to get - // the state for. - // - // This member is required. - RoutingControlArn *string - - noSmithyDocumentSerde -} - -type GetRoutingControlStateOutput struct { - - // The Amazon Resource Number (ARN) of the response. - // - // This member is required. - RoutingControlArn *string - - // The state of the routing control. - // - // This member is required. - RoutingControlState types.RoutingControlState - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetRoutingControlStateMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetRoutingControlState{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetRoutingControlState{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetRoutingControlStateValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRoutingControlState(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetRoutingControlState(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-cluster", - OperationName: "GetRoutingControlState", - } -} diff --git a/service/route53recoverycluster/api_op_UpdateRoutingControlState.go b/service/route53recoverycluster/api_op_UpdateRoutingControlState.go deleted file mode 100644 index b9d2efc5d0f..00000000000 --- a/service/route53recoverycluster/api_op_UpdateRoutingControlState.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycluster - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Set the state of the routing control to reroute traffic. You can set the value -// to be On or Off. When the state is On, traffic flows to a cell. When it's off, -// traffic does not flow. For more information about working with routing controls, -// see Routing control -// (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html) in the -// Route 53 Application Recovery Controller Developer Guide. -func (c *Client) UpdateRoutingControlState(ctx context.Context, params *UpdateRoutingControlStateInput, optFns ...func(*Options)) (*UpdateRoutingControlStateOutput, error) { - if params == nil { - params = &UpdateRoutingControlStateInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateRoutingControlState", params, optFns, c.addOperationUpdateRoutingControlStateMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateRoutingControlStateOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateRoutingControlStateInput struct { - - // The Amazon Resource Number (ARN) for the routing control that you want to update - // the state for. - // - // This member is required. - RoutingControlArn *string - - // The state of the routing control. You can set the value to be On or Off. - // - // This member is required. - RoutingControlState types.RoutingControlState - - noSmithyDocumentSerde -} - -type UpdateRoutingControlStateOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateRoutingControlStateMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateRoutingControlState{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateRoutingControlState{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateRoutingControlStateValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRoutingControlState(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateRoutingControlState(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-cluster", - OperationName: "UpdateRoutingControlState", - } -} diff --git a/service/route53recoverycluster/api_op_UpdateRoutingControlStates.go b/service/route53recoverycluster/api_op_UpdateRoutingControlStates.go deleted file mode 100644 index 2bcab87c9b5..00000000000 --- a/service/route53recoverycluster/api_op_UpdateRoutingControlStates.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycluster - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Set multiple routing control states. You can set the value for each state to be -// On or Off. When the state is On, traffic flows to a cell. When it's off, traffic -// does not flow. For more information about working with routing controls, see -// Routing control -// (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html) in the -// Route 53 Application Recovery Controller Developer Guide. -func (c *Client) UpdateRoutingControlStates(ctx context.Context, params *UpdateRoutingControlStatesInput, optFns ...func(*Options)) (*UpdateRoutingControlStatesOutput, error) { - if params == nil { - params = &UpdateRoutingControlStatesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateRoutingControlStates", params, optFns, c.addOperationUpdateRoutingControlStatesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateRoutingControlStatesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateRoutingControlStatesInput struct { - - // A set of routing control entries that you want to update. - // - // This member is required. - UpdateRoutingControlStateEntries []types.UpdateRoutingControlStateEntry - - noSmithyDocumentSerde -} - -type UpdateRoutingControlStatesOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateRoutingControlStatesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateRoutingControlStates{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateRoutingControlStates{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateRoutingControlStatesValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRoutingControlStates(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateRoutingControlStates(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-cluster", - OperationName: "UpdateRoutingControlStates", - } -} diff --git a/service/route53recoverycluster/deserializers.go b/service/route53recoverycluster/deserializers.go deleted file mode 100644 index 6c118c8ac95..00000000000 --- a/service/route53recoverycluster/deserializers.go +++ /dev/null @@ -1,1198 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycluster - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" - smithy "github.com/aws/smithy-go" - smithyio "github.com/aws/smithy-go/io" - "github.com/aws/smithy-go/middleware" - "github.com/aws/smithy-go/ptr" - smithyhttp "github.com/aws/smithy-go/transport/http" - "io" - "strings" -) - -type awsAwsjson10_deserializeOpGetRoutingControlState struct { -} - -func (*awsAwsjson10_deserializeOpGetRoutingControlState) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpGetRoutingControlState) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorGetRoutingControlState(response, &metadata) - } - output := &GetRoutingControlStateOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson10_deserializeOpDocumentGetRoutingControlStateOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorGetRoutingControlState(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("EndpointTemporarilyUnavailableException", errorCode): - return awsAwsjson10_deserializeErrorEndpointTemporarilyUnavailableException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsAwsjson10_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpUpdateRoutingControlState struct { -} - -func (*awsAwsjson10_deserializeOpUpdateRoutingControlState) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpUpdateRoutingControlState) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorUpdateRoutingControlState(response, &metadata) - } - output := &UpdateRoutingControlStateOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson10_deserializeOpDocumentUpdateRoutingControlStateOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorUpdateRoutingControlState(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson10_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("EndpointTemporarilyUnavailableException", errorCode): - return awsAwsjson10_deserializeErrorEndpointTemporarilyUnavailableException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsAwsjson10_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpUpdateRoutingControlStates struct { -} - -func (*awsAwsjson10_deserializeOpUpdateRoutingControlStates) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpUpdateRoutingControlStates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorUpdateRoutingControlStates(response, &metadata) - } - output := &UpdateRoutingControlStatesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson10_deserializeOpDocumentUpdateRoutingControlStatesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorUpdateRoutingControlStates(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson10_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("EndpointTemporarilyUnavailableException", errorCode): - return awsAwsjson10_deserializeErrorEndpointTemporarilyUnavailableException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsAwsjson10_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsAwsjson10_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.AccessDeniedException{} - err := awsAwsjson10_deserializeDocumentAccessDeniedException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson10_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.ConflictException{} - err := awsAwsjson10_deserializeDocumentConflictException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson10_deserializeErrorEndpointTemporarilyUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.EndpointTemporarilyUnavailableException{} - err := awsAwsjson10_deserializeDocumentEndpointTemporarilyUnavailableException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson10_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.InternalServerException{} - err := awsAwsjson10_deserializeDocumentInternalServerException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson10_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.ResourceNotFoundException{} - err := awsAwsjson10_deserializeDocumentResourceNotFoundException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson10_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.ThrottlingException{} - err := awsAwsjson10_deserializeDocumentThrottlingException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson10_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - output := &types.ValidationException{} - err := awsAwsjson10_deserializeDocumentValidationException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AccessDeniedException - if *v == nil { - sv = &types.AccessDeniedException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ConflictException - if *v == nil { - sv = &types.ConflictException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "resourceId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ResourceId = ptr.String(jtv) - } - - case "resourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ResourceType = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentEndpointTemporarilyUnavailableException(v **types.EndpointTemporarilyUnavailableException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.EndpointTemporarilyUnavailableException - if *v == nil { - sv = &types.EndpointTemporarilyUnavailableException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.InternalServerException - if *v == nil { - sv = &types.InternalServerException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "retryAfterSeconds": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected RetryAfterSeconds to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.RetryAfterSeconds = int32(i64) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ResourceNotFoundException - if *v == nil { - sv = &types.ResourceNotFoundException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "resourceId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ResourceId = ptr.String(jtv) - } - - case "resourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ResourceType = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ThrottlingException - if *v == nil { - sv = &types.ThrottlingException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "retryAfterSeconds": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected RetryAfterSeconds to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.RetryAfterSeconds = int32(i64) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ValidationException - if *v == nil { - sv = &types.ValidationException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "fields": - if err := awsAwsjson10_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { - return err - } - - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "reason": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ValidationExceptionReason to be of type string, got %T instead", value) - } - sv.Reason = types.ValidationExceptionReason(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentValidationExceptionField(v **types.ValidationExceptionField, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ValidationExceptionField - if *v == nil { - sv = &types.ValidationExceptionField{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentValidationExceptionFieldList(v *[]types.ValidationExceptionField, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ValidationExceptionField - if *v == nil { - cv = []types.ValidationExceptionField{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ValidationExceptionField - destAddr := &col - if err := awsAwsjson10_deserializeDocumentValidationExceptionField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_deserializeOpDocumentGetRoutingControlStateOutput(v **GetRoutingControlStateOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetRoutingControlStateOutput - if *v == nil { - sv = &GetRoutingControlStateOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "RoutingControlArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.RoutingControlArn = ptr.String(jtv) - } - - case "RoutingControlState": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RoutingControlState to be of type string, got %T instead", value) - } - sv.RoutingControlState = types.RoutingControlState(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeOpDocumentUpdateRoutingControlStateOutput(v **UpdateRoutingControlStateOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateRoutingControlStateOutput - if *v == nil { - sv = &UpdateRoutingControlStateOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeOpDocumentUpdateRoutingControlStatesOutput(v **UpdateRoutingControlStatesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateRoutingControlStatesOutput - if *v == nil { - sv = &UpdateRoutingControlStatesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - default: - _, _ = key, value - - } - } - *v = sv - return nil -} diff --git a/service/route53recoverycluster/doc.go b/service/route53recoverycluster/doc.go deleted file mode 100644 index 19d53857c71..00000000000 --- a/service/route53recoverycluster/doc.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -// Package route53recoverycluster provides the API client, operations, and -// parameter types for Route53 Recovery Cluster. -// -// Welcome to the Amazon Route 53 Application Recovery Controller API Reference -// Guide for Recovery Control Data Plane . Recovery control in Route 53 Application -// Recovery Controller includes extremely reliable routing controls that enable you -// to recover applications by rerouting traffic, for example, across Availability -// Zones or AWS Regions. Routing controls are simple on/off switches hosted on a -// cluster. A cluster is a set of five redundant regional endpoints against which -// you can execute API calls to update or get the state of routing controls. You -// use routing controls to failover traffic to recover your application across -// Availability Zones or Regions. This API guide includes information about how to -// get and update routing control states in Route 53 Application Recovery -// Controller. For more information about Route 53 Application Recovery Controller, -// see the following: -// -// * You can create clusters, routing controls, and control -// panels by using the control plane API for Recovery Control. For more -// information, see Amazon Route 53 Application Recovery Controller Recovery -// Control API Reference -// (https://docs.aws.amazon.com/recovery-cluster/latest/api/). -// -// * Route 53 -// Application Recovery Controller also provides continuous readiness checks to -// ensure that your applications are scaled to handle failover traffic. For more -// information about the related API actions, see Amazon Route 53 Application -// Recovery Controller Recovery Readiness API Reference -// (https://docs.aws.amazon.com/recovery-readiness/latest/api/). -// -// * For more -// information about creating resilient applications and preparing for recovery -// readiness with Route 53 Application Recovery Controller, see the Amazon Route 53 -// Application Recovery Controller Developer Guide. -package route53recoverycluster diff --git a/service/route53recoverycluster/endpoints.go b/service/route53recoverycluster/endpoints.go deleted file mode 100644 index ef03ae90e61..00000000000 --- a/service/route53recoverycluster/endpoints.go +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycluster - -import ( - "context" - "errors" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - internalendpoints "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/internal/endpoints" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "net/url" -) - -// EndpointResolverOptions is the service endpoint resolver options -type EndpointResolverOptions = internalendpoints.Options - -// EndpointResolver interface for resolving service endpoints. -type EndpointResolver interface { - ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) -} - -var _ EndpointResolver = &internalendpoints.Resolver{} - -// NewDefaultEndpointResolver constructs a new service endpoint resolver -func NewDefaultEndpointResolver() *internalendpoints.Resolver { - return internalendpoints.New() -} - -// EndpointResolverFunc is a helper utility that wraps a function so it satisfies -// the EndpointResolver interface. This is useful when you want to add additional -// endpoint resolving logic, or stub out specific endpoints with custom values. -type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) - -func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { - return fn(region, options) -} - -func resolveDefaultEndpointConfiguration(o *Options) { - if o.EndpointResolver != nil { - return - } - o.EndpointResolver = NewDefaultEndpointResolver() -} - -// EndpointResolverFromURL returns an EndpointResolver configured using the -// provided endpoint url. By default, the resolved endpoint resolver uses the -// client region as signing region, and the endpoint source is set to -// EndpointSourceCustom.You can provide functional options to configure endpoint -// values for the resolved endpoint. -func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { - e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} - for _, fn := range optFns { - fn(&e) - } - - return EndpointResolverFunc( - func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { - if len(e.SigningRegion) == 0 { - e.SigningRegion = region - } - return e, nil - }, - ) -} - -type ResolveEndpoint struct { - Resolver EndpointResolver - Options EndpointResolverOptions -} - -func (*ResolveEndpoint) ID() string { - return "ResolveEndpoint" -} - -func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - if m.Resolver == nil { - return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") - } - - var endpoint aws.Endpoint - endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), m.Options) - if err != nil { - return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) - } - - req.URL, err = url.Parse(endpoint.URL) - if err != nil { - return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) - } - - if len(awsmiddleware.GetSigningName(ctx)) == 0 { - signingName := endpoint.SigningName - if len(signingName) == 0 { - signingName = "route53-recovery-cluster" - } - ctx = awsmiddleware.SetSigningName(ctx, signingName) - } - ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) - ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) - ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) - ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) - return next.HandleSerialize(ctx, in) -} -func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { - return stack.Serialize.Insert(&ResolveEndpoint{ - Resolver: o.EndpointResolver, - Options: o.EndpointOptions, - }, "OperationSerializer", middleware.Before) -} - -func removeResolveEndpointMiddleware(stack *middleware.Stack) error { - _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) - return err -} - -type wrappedEndpointResolver struct { - awsResolver aws.EndpointResolver - resolver EndpointResolver -} - -func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { - if w.awsResolver == nil { - goto fallback - } - endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region) - if err == nil { - return endpoint, nil - } - - if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { - return endpoint, err - } - -fallback: - if w.resolver == nil { - return endpoint, fmt.Errorf("default endpoint resolver provided was nil") - } - return w.resolver.ResolveEndpoint(region, options) -} - -// withEndpointResolver returns an EndpointResolver that first delegates endpoint -// resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError -// error, the resolver will use the the provided fallbackResolver for resolution. -// awsResolver and fallbackResolver must not be nil -func withEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver { - return &wrappedEndpointResolver{ - awsResolver: awsResolver, - resolver: fallbackResolver, - } -} diff --git a/service/route53recoverycluster/generated.json b/service/route53recoverycluster/generated.json deleted file mode 100644 index d930b3741f9..00000000000 --- a/service/route53recoverycluster/generated.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "dependencies": { - "github.com/aws/aws-sdk-go-v2": "v1.4.0", - "github.com/aws/smithy-go": "v1.4.0" - }, - "files": [ - "api_client.go", - "api_op_GetRoutingControlState.go", - "api_op_UpdateRoutingControlState.go", - "api_op_UpdateRoutingControlStates.go", - "deserializers.go", - "doc.go", - "endpoints.go", - "generated.json", - "internal/endpoints/endpoints.go", - "internal/endpoints/endpoints_test.go", - "protocol_test.go", - "serializers.go", - "types/enums.go", - "types/errors.go", - "types/types.go", - "validators.go" - ], - "go": "1.15", - "module": "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster", - "unstable": false -} diff --git a/service/route53recoverycluster/go.mod b/service/route53recoverycluster/go.mod deleted file mode 100644 index 179348e6289..00000000000 --- a/service/route53recoverycluster/go.mod +++ /dev/null @@ -1,10 +0,0 @@ -module github.com/aws/aws-sdk-go-v2/service/route53recoverycluster - -go 1.15 - -require ( - github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 -) - -replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53recoverycluster/go.sum b/service/route53recoverycluster/go.sum deleted file mode 100644 index a8411cb9e1d..00000000000 --- a/service/route53recoverycluster/go.sum +++ /dev/null @@ -1,14 +0,0 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/route53recoverycluster/go_module_metadata.go b/service/route53recoverycluster/go_module_metadata.go deleted file mode 100644 index dc15aa72362..00000000000 --- a/service/route53recoverycluster/go_module_metadata.go +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. - -package route53recoverycluster - -// goModuleVersion is the tagged release for this module -const goModuleVersion = "tip" diff --git a/service/route53recoverycluster/internal/endpoints/endpoints.go b/service/route53recoverycluster/internal/endpoints/endpoints.go deleted file mode 100644 index 100031ef9a7..00000000000 --- a/service/route53recoverycluster/internal/endpoints/endpoints.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package endpoints - -import ( - "github.com/aws/aws-sdk-go-v2/aws" - "github.com/aws/aws-sdk-go-v2/internal/endpoints" - "regexp" -) - -// Options is the endpoint resolver configuration options -type Options struct { - DisableHTTPS bool -} - -// Resolver Route53 Recovery Cluster endpoint resolver -type Resolver struct { - partitions endpoints.Partitions -} - -// ResolveEndpoint resolves the service endpoint for the given region and options -func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { - if len(region) == 0 { - return endpoint, &aws.MissingRegionError{} - } - - opt := endpoints.Options{ - DisableHTTPS: options.DisableHTTPS, - } - return r.partitions.ResolveEndpoint(region, opt) -} - -// New returns a new Resolver -func New() *Resolver { - return &Resolver{ - partitions: defaultPartitions, - } -} - -var partitionRegexp = struct { - Aws *regexp.Regexp - AwsCn *regexp.Regexp - AwsIso *regexp.Regexp - AwsIsoB *regexp.Regexp - AwsUsGov *regexp.Regexp -}{ - - Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), - AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), - AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), - AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), - AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), -} - -var defaultPartitions = endpoints.Partitions{ - { - ID: "aws", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-cluster.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.Aws, - IsRegionalized: true, - }, - { - ID: "aws-cn", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-cluster.{region}.amazonaws.com.cn", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsCn, - IsRegionalized: true, - }, - { - ID: "aws-iso", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-cluster.{region}.c2s.ic.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsIso, - IsRegionalized: true, - }, - { - ID: "aws-iso-b", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-cluster.{region}.sc2s.sgov.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsIsoB, - IsRegionalized: true, - }, - { - ID: "aws-us-gov", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-cluster.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsUsGov, - IsRegionalized: true, - }, -} diff --git a/service/route53recoverycluster/internal/endpoints/endpoints_test.go b/service/route53recoverycluster/internal/endpoints/endpoints_test.go deleted file mode 100644 index 08e5da2d833..00000000000 --- a/service/route53recoverycluster/internal/endpoints/endpoints_test.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package endpoints - -import ( - "testing" -) - -func TestRegexCompile(t *testing.T) { - _ = defaultPartitions -} diff --git a/service/route53recoverycluster/protocol_test.go b/service/route53recoverycluster/protocol_test.go deleted file mode 100644 index c5211b53523..00000000000 --- a/service/route53recoverycluster/protocol_test.go +++ /dev/null @@ -1,3 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycluster diff --git a/service/route53recoverycluster/serializers.go b/service/route53recoverycluster/serializers.go deleted file mode 100644 index 8113b49e10e..00000000000 --- a/service/route53recoverycluster/serializers.go +++ /dev/null @@ -1,228 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycluster - -import ( - "bytes" - "context" - "fmt" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" - smithy "github.com/aws/smithy-go" - "github.com/aws/smithy-go/encoding/httpbinding" - smithyjson "github.com/aws/smithy-go/encoding/json" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -type awsAwsjson10_serializeOpGetRoutingControlState struct { -} - -func (*awsAwsjson10_serializeOpGetRoutingControlState) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpGetRoutingControlState) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetRoutingControlStateInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("ToggleCustomerAPI.GetRoutingControlState") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentGetRoutingControlStateInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpUpdateRoutingControlState struct { -} - -func (*awsAwsjson10_serializeOpUpdateRoutingControlState) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpUpdateRoutingControlState) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateRoutingControlStateInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("ToggleCustomerAPI.UpdateRoutingControlState") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentUpdateRoutingControlStateInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpUpdateRoutingControlStates struct { -} - -func (*awsAwsjson10_serializeOpUpdateRoutingControlStates) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpUpdateRoutingControlStates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateRoutingControlStatesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("ToggleCustomerAPI.UpdateRoutingControlStates") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentUpdateRoutingControlStatesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsAwsjson10_serializeDocumentUpdateRoutingControlStateEntries(v []types.UpdateRoutingControlStateEntry, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson10_serializeDocumentUpdateRoutingControlStateEntry(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsjson10_serializeDocumentUpdateRoutingControlStateEntry(v *types.UpdateRoutingControlStateEntry, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoutingControlArn != nil { - ok := object.Key("RoutingControlArn") - ok.String(*v.RoutingControlArn) - } - - if len(v.RoutingControlState) > 0 { - ok := object.Key("RoutingControlState") - ok.String(string(v.RoutingControlState)) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentGetRoutingControlStateInput(v *GetRoutingControlStateInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoutingControlArn != nil { - ok := object.Key("RoutingControlArn") - ok.String(*v.RoutingControlArn) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentUpdateRoutingControlStateInput(v *UpdateRoutingControlStateInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoutingControlArn != nil { - ok := object.Key("RoutingControlArn") - ok.String(*v.RoutingControlArn) - } - - if len(v.RoutingControlState) > 0 { - ok := object.Key("RoutingControlState") - ok.String(string(v.RoutingControlState)) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentUpdateRoutingControlStatesInput(v *UpdateRoutingControlStatesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.UpdateRoutingControlStateEntries != nil { - ok := object.Key("UpdateRoutingControlStateEntries") - if err := awsAwsjson10_serializeDocumentUpdateRoutingControlStateEntries(v.UpdateRoutingControlStateEntries, ok); err != nil { - return err - } - } - - return nil -} diff --git a/service/route53recoverycluster/types/enums.go b/service/route53recoverycluster/types/enums.go deleted file mode 100644 index d509fcfdf1e..00000000000 --- a/service/route53recoverycluster/types/enums.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -type RoutingControlState string - -// Enum values for RoutingControlState -const ( - RoutingControlStateOn RoutingControlState = "On" - RoutingControlStateOff RoutingControlState = "Off" -) - -// Values returns all known values for RoutingControlState. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (RoutingControlState) Values() []RoutingControlState { - return []RoutingControlState{ - "On", - "Off", - } -} - -type ValidationExceptionReason string - -// Enum values for ValidationExceptionReason -const ( - ValidationExceptionReasonUnknownOperation ValidationExceptionReason = "unknownOperation" - ValidationExceptionReasonCannotParse ValidationExceptionReason = "cannotParse" - ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "fieldValidationFailed" - ValidationExceptionReasonOther ValidationExceptionReason = "other" -) - -// Values returns all known values for ValidationExceptionReason. Note that this -// can be expanded in the future, and so it is only as up to date as the client. -// The ordering of this slice is not guaranteed to be stable across updates. -func (ValidationExceptionReason) Values() []ValidationExceptionReason { - return []ValidationExceptionReason{ - "unknownOperation", - "cannotParse", - "fieldValidationFailed", - "other", - } -} diff --git a/service/route53recoverycluster/types/errors.go b/service/route53recoverycluster/types/errors.go deleted file mode 100644 index 03374e10a72..00000000000 --- a/service/route53recoverycluster/types/errors.go +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -import ( - "fmt" - smithy "github.com/aws/smithy-go" -) - -// You don't have sufficient permissions to query the routing control state. -type AccessDeniedException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *AccessDeniedException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } -func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// There was a conflict with this request. Try again. -type ConflictException struct { - Message *string - - ResourceId *string - ResourceType *string - - noSmithyDocumentSerde -} - -func (e *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ConflictException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ConflictException) ErrorCode() string { return "ConflictException" } -func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The cluster endpoint isn't available. Try another cluster endpoint. -type EndpointTemporarilyUnavailableException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *EndpointTemporarilyUnavailableException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *EndpointTemporarilyUnavailableException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *EndpointTemporarilyUnavailableException) ErrorCode() string { - return "EndpointTemporarilyUnavailableException" -} -func (e *EndpointTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault { - return smithy.FaultServer -} - -// There was an unexpected error during processing of the request. -type InternalServerException struct { - Message *string - - RetryAfterSeconds int32 - - noSmithyDocumentSerde -} - -func (e *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *InternalServerException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } -func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } - -// The request references a routing control that was not found. -type ResourceNotFoundException struct { - Message *string - - ResourceId *string - ResourceType *string - - noSmithyDocumentSerde -} - -func (e *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ResourceNotFoundException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } -func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The request was denied because of request throttling. -type ThrottlingException struct { - Message *string - - RetryAfterSeconds int32 - - noSmithyDocumentSerde -} - -func (e *ThrottlingException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ThrottlingException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } -func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// There was a validation error on the request. -type ValidationException struct { - Message *string - - Reason ValidationExceptionReason - Fields []ValidationExceptionField - - noSmithyDocumentSerde -} - -func (e *ValidationException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ValidationException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ValidationException) ErrorCode() string { return "ValidationException" } -func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoverycluster/types/types.go b/service/route53recoverycluster/types/types.go deleted file mode 100644 index be110825674..00000000000 --- a/service/route53recoverycluster/types/types.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -import ( - smithydocument "github.com/aws/smithy-go/document" -) - -// A routing control state. -type UpdateRoutingControlStateEntry struct { - - // The Amazon Resource Number (ARN) for the routing control state entry. - // - // This member is required. - RoutingControlArn *string - - // The routing control state in a set of routing control state entries. - // - // This member is required. - RoutingControlState RoutingControlState - - noSmithyDocumentSerde -} - -// There was a validation error on the request. -type ValidationExceptionField struct { - - // Information about the validation exception. - // - // This member is required. - Message *string - - // The field that had the validation exception. - // - // This member is required. - Name *string - - noSmithyDocumentSerde -} - -type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/route53recoverycluster/validators.go b/service/route53recoverycluster/validators.go deleted file mode 100644 index 34a7d3f94d3..00000000000 --- a/service/route53recoverycluster/validators.go +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycluster - -import ( - "context" - "fmt" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" - smithy "github.com/aws/smithy-go" - "github.com/aws/smithy-go/middleware" -) - -type validateOpGetRoutingControlState struct { -} - -func (*validateOpGetRoutingControlState) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetRoutingControlState) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetRoutingControlStateInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetRoutingControlStateInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateRoutingControlState struct { -} - -func (*validateOpUpdateRoutingControlState) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateRoutingControlState) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateRoutingControlStateInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateRoutingControlStateInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateRoutingControlStates struct { -} - -func (*validateOpUpdateRoutingControlStates) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateRoutingControlStates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateRoutingControlStatesInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateRoutingControlStatesInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -func addOpGetRoutingControlStateValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetRoutingControlState{}, middleware.After) -} - -func addOpUpdateRoutingControlStateValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateRoutingControlState{}, middleware.After) -} - -func addOpUpdateRoutingControlStatesValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateRoutingControlStates{}, middleware.After) -} - -func validateUpdateRoutingControlStateEntries(v []types.UpdateRoutingControlStateEntry) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlStateEntries"} - for i := range v { - if err := validateUpdateRoutingControlStateEntry(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateUpdateRoutingControlStateEntry(v *types.UpdateRoutingControlStateEntry) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlStateEntry"} - if v.RoutingControlArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) - } - if len(v.RoutingControlState) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlState")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetRoutingControlStateInput(v *GetRoutingControlStateInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetRoutingControlStateInput"} - if v.RoutingControlArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateRoutingControlStateInput(v *UpdateRoutingControlStateInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlStateInput"} - if v.RoutingControlArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) - } - if len(v.RoutingControlState) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlState")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateRoutingControlStatesInput(v *UpdateRoutingControlStatesInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlStatesInput"} - if v.UpdateRoutingControlStateEntries == nil { - invalidParams.Add(smithy.NewErrParamRequired("UpdateRoutingControlStateEntries")) - } else if v.UpdateRoutingControlStateEntries != nil { - if err := validateUpdateRoutingControlStateEntries(v.UpdateRoutingControlStateEntries); err != nil { - invalidParams.AddNested("UpdateRoutingControlStateEntries", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} diff --git a/service/route53recoverycontrolconfig/LICENSE.txt b/service/route53recoverycontrolconfig/LICENSE.txt deleted file mode 100644 index d6456956733..00000000000 --- a/service/route53recoverycontrolconfig/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/service/route53recoverycontrolconfig/api_client.go b/service/route53recoverycontrolconfig/api_client.go deleted file mode 100644 index 68886d49fb0..00000000000 --- a/service/route53recoverycontrolconfig/api_client.go +++ /dev/null @@ -1,282 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - cryptorand "crypto/rand" - "github.com/aws/aws-sdk-go-v2/aws" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/retry" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" - smithy "github.com/aws/smithy-go" - smithydocument "github.com/aws/smithy-go/document" - "github.com/aws/smithy-go/logging" - "github.com/aws/smithy-go/middleware" - smithyrand "github.com/aws/smithy-go/rand" - smithyhttp "github.com/aws/smithy-go/transport/http" - "net/http" - "time" -) - -const ServiceID = "Route53 Recovery Control Config" -const ServiceAPIVersion = "2020-11-02" - -// Client provides the API client to make operations call for AWS Route53 Recovery -// Control Config. -type Client struct { - options Options -} - -// New returns an initialized Client based on the functional options. Provide -// additional functional options to further configure the behavior of the client, -// such as changing the client's endpoint or adding custom middleware behavior. -func New(options Options, optFns ...func(*Options)) *Client { - options = options.Copy() - - resolveDefaultLogger(&options) - - resolveRetryer(&options) - - resolveHTTPClient(&options) - - resolveHTTPSignerV4(&options) - - resolveDefaultEndpointConfiguration(&options) - - resolveIdempotencyTokenProvider(&options) - - for _, fn := range optFns { - fn(&options) - } - - client := &Client{ - options: options, - } - - return client -} - -type Options struct { - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // Configures the events that will be sent to the configured logger. - ClientLogMode aws.ClientLogMode - - // The credentials object to use when signing requests. - Credentials aws.CredentialsProvider - - // The endpoint options to be used when attempting to resolve an endpoint. - EndpointOptions EndpointResolverOptions - - // The service endpoint resolver. - EndpointResolver EndpointResolver - - // Signature Version 4 (SigV4) Signer - HTTPSignerV4 HTTPSignerV4 - - // Provides idempotency tokens values that will be automatically populated into - // idempotent API operations. - IdempotencyTokenProvider IdempotencyTokenProvider - - // The logger writer interface to write logging messages to. - Logger logging.Logger - - // The region to send requests to. (Required) - Region string - - // Retryer guides how HTTP requests should be retried in case of recoverable - // failures. When nil the API client will use a default retryer. - Retryer aws.Retryer - - // The HTTP client to invoke API calls with. Defaults to client's default HTTP - // implementation if nil. - HTTPClient HTTPClient -} - -// WithAPIOptions returns a functional option for setting the Client's APIOptions -// option. -func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { - return func(o *Options) { - o.APIOptions = append(o.APIOptions, optFns...) - } -} - -// WithEndpointResolver returns a functional option for setting the Client's -// EndpointResolver option. -func WithEndpointResolver(v EndpointResolver) func(*Options) { - return func(o *Options) { - o.EndpointResolver = v - } -} - -type HTTPClient interface { - Do(*http.Request) (*http.Response, error) -} - -// Copy creates a clone where the APIOptions list is deep copied. -func (o Options) Copy() Options { - to := o - to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) - copy(to.APIOptions, o.APIOptions) - return to -} -func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { - ctx = middleware.ClearStackValues(ctx) - stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) - options := c.options.Copy() - for _, fn := range optFns { - fn(&options) - } - - for _, fn := range stackFns { - if err := fn(stack, options); err != nil { - return nil, metadata, err - } - } - - for _, fn := range options.APIOptions { - if err := fn(stack); err != nil { - return nil, metadata, err - } - } - - handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) - result, metadata, err = handler.Handle(ctx, params) - if err != nil { - err = &smithy.OperationError{ - ServiceID: ServiceID, - OperationName: opID, - Err: err, - } - } - return result, metadata, err -} - -type noSmithyDocumentSerde = smithydocument.NoSerde - -func resolveDefaultLogger(o *Options) { - if o.Logger != nil { - return - } - o.Logger = logging.Nop{} -} - -func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { - return middleware.AddSetLoggerMiddleware(stack, o.Logger) -} - -// NewFromConfig returns a new client from the provided config. -func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { - opts := Options{ - Region: cfg.Region, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - } - resolveAWSRetryerProvider(cfg, &opts) - resolveAWSEndpointResolver(cfg, &opts) - return New(opts, optFns...) -} - -func resolveHTTPClient(o *Options) { - if o.HTTPClient != nil { - return - } - o.HTTPClient = awshttp.NewBuildableClient() -} - -func resolveRetryer(o *Options) { - if o.Retryer != nil { - return - } - o.Retryer = retry.NewStandard() -} - -func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { - if cfg.Retryer == nil { - return - } - o.Retryer = cfg.Retryer() -} - -func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { - if cfg.EndpointResolver == nil { - return - } - o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, NewDefaultEndpointResolver()) -} - -func addClientUserAgent(stack *middleware.Stack) error { - return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "route53recoverycontrolconfig", goModuleVersion)(stack) -} - -func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { - mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ - CredentialsProvider: o.Credentials, - Signer: o.HTTPSignerV4, - LogSigning: o.ClientLogMode.IsSigning(), - }) - return stack.Finalize.Add(mw, middleware.After) -} - -type HTTPSignerV4 interface { - SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error -} - -func resolveHTTPSignerV4(o *Options) { - if o.HTTPSignerV4 != nil { - return - } - o.HTTPSignerV4 = newDefaultV4Signer(*o) -} - -func newDefaultV4Signer(o Options) *v4.Signer { - return v4.NewSigner(func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }) -} - -func resolveIdempotencyTokenProvider(o *Options) { - if o.IdempotencyTokenProvider != nil { - return - } - o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader) -} - -func addRetryMiddlewares(stack *middleware.Stack, o Options) error { - mo := retry.AddRetryMiddlewaresOptions{ - Retryer: o.Retryer, - LogRetryAttempts: o.ClientLogMode.IsRetries(), - } - return retry.AddRetryMiddlewares(stack, mo) -} - -// IdempotencyTokenProvider interface for providing idempotency token -type IdempotencyTokenProvider interface { - GetIdempotencyToken() (string, error) -} - -func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { - return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) -} - -func addResponseErrorMiddleware(stack *middleware.Stack) error { - return awshttp.AddResponseErrorMiddleware(stack) -} - -func addRequestResponseLogging(stack *middleware.Stack, o Options) error { - return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ - LogRequest: o.ClientLogMode.IsRequest(), - LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), - LogResponse: o.ClientLogMode.IsResponse(), - LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), - }, middleware.After) -} diff --git a/service/route53recoverycontrolconfig/api_op_CreateCluster.go b/service/route53recoverycontrolconfig/api_op_CreateCluster.go deleted file mode 100644 index 39c03bae7ea..00000000000 --- a/service/route53recoverycontrolconfig/api_op_CreateCluster.go +++ /dev/null @@ -1,167 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Create a new cluster. A cluster is a set of redundant Regional endpoints against -// which you can run API calls to update or get the state of one or more routing -// controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an -// array of the five cluster endpoints (one for each supported Amazon Web Services -// Region) that you can use with API calls to the Amazon Route 53 Application -// Recovery Controller cluster data plane. -func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error) { - if params == nil { - params = &CreateClusterInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateCluster", params, optFns, c.addOperationCreateClusterMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateClusterOutput) - out.ResultMetadata = metadata - return out, nil -} - -// Creates a cluster. -type CreateClusterInput struct { - - // The name of the cluster. - // - // This member is required. - ClusterName *string - - // Unique client idempotency token. - ClientToken *string - - noSmithyDocumentSerde -} - -type CreateClusterOutput struct { - - // The cluster that was created. - Cluster *types.Cluster - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateCluster{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateCluster{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateClusterMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateClusterValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCluster(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateCluster struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateCluster) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateClusterInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateClusterInput ") - } - - if input.ClientToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateClusterMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateCluster{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateCluster(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "CreateCluster", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_CreateControlPanel.go b/service/route53recoverycontrolconfig/api_op_CreateControlPanel.go deleted file mode 100644 index 923b84cda69..00000000000 --- a/service/route53recoverycontrolconfig/api_op_CreateControlPanel.go +++ /dev/null @@ -1,171 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a new control panel. A control panel represents a group of routing -// controls that can be changed together in a single transaction. You can use a -// control panel to centrally view the operational status of applications across -// your organization, and trigger multi-app failovers in a single transaction, for -// example, to fail over an Availability Zone or AWS Region. -func (c *Client) CreateControlPanel(ctx context.Context, params *CreateControlPanelInput, optFns ...func(*Options)) (*CreateControlPanelOutput, error) { - if params == nil { - params = &CreateControlPanelInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateControlPanel", params, optFns, c.addOperationCreateControlPanelMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateControlPanelOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The details of the control panel that you're creating. -type CreateControlPanelInput struct { - - // The Amazon Resource Name (ARN) of the cluster for the control panel. - // - // This member is required. - ClusterArn *string - - // The name of the control panel. - // - // This member is required. - ControlPanelName *string - - // Unique client idempotency token. - ClientToken *string - - noSmithyDocumentSerde -} - -type CreateControlPanelOutput struct { - - // Information about a control panel. - ControlPanel *types.ControlPanel - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateControlPanelMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateControlPanel{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateControlPanel{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateControlPanelMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateControlPanelValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateControlPanel(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateControlPanel struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateControlPanel) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateControlPanelInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateControlPanelInput ") - } - - if input.ClientToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateControlPanelMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateControlPanel{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateControlPanel(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "CreateControlPanel", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_CreateRoutingControl.go b/service/route53recoverycontrolconfig/api_op_CreateRoutingControl.go deleted file mode 100644 index c5603935bff..00000000000 --- a/service/route53recoverycontrolconfig/api_op_CreateRoutingControl.go +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a new routing control. A routing control has one of two states: ON and -// OFF. You can map the routing control state to the state of an Amazon Route 53 -// health check, which can be used to control traffic routing. To get or update the -// routing control state, see the Recovery Cluster (data plane) API actions for -// Amazon Route 53 Application Recovery Controller. -func (c *Client) CreateRoutingControl(ctx context.Context, params *CreateRoutingControlInput, optFns ...func(*Options)) (*CreateRoutingControlOutput, error) { - if params == nil { - params = &CreateRoutingControlInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateRoutingControl", params, optFns, c.addOperationCreateRoutingControlMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateRoutingControlOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The details of the routing control that you're creating. -type CreateRoutingControlInput struct { - - // The Amazon Resource Name (ARN) of the cluster that includes the routing control. - // - // This member is required. - ClusterArn *string - - // The name of the routing control. - // - // This member is required. - RoutingControlName *string - - // Unique client idempotency token. - ClientToken *string - - // The Amazon Resource Name (ARN) of the control panel that includes the routing - // control. - ControlPanelArn *string - - noSmithyDocumentSerde -} - -type CreateRoutingControlOutput struct { - - // The routing control that is created. - RoutingControl *types.RoutingControl - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateRoutingControlMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateRoutingControl{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateRoutingControl{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateRoutingControlMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateRoutingControlValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRoutingControl(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateRoutingControl struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateRoutingControl) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateRoutingControlInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateRoutingControlInput ") - } - - if input.ClientToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateRoutingControlMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateRoutingControl{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateRoutingControl(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "CreateRoutingControl", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_CreateSafetyRule.go b/service/route53recoverycontrolconfig/api_op_CreateSafetyRule.go deleted file mode 100644 index 614d888b407..00000000000 --- a/service/route53recoverycontrolconfig/api_op_CreateSafetyRule.go +++ /dev/null @@ -1,180 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a safety rule in a control panel. Safety rules let you add safeguards -// around enabling and disabling routing controls, to help prevent unexpected -// outcomes. There are two types of safety rules: assertion rules and gating rules. -// Assertion rule: An assertion rule enforces that, when a routing control state is -// changed, the criteria set by the rule configuration is met. Otherwise, the -// change to the routing control is not accepted. Gating rule: A gating rule -// verifies that a set of gating controls evaluates as true, based on a rule -// configuration that you specify. If the gating rule evaluates to true, Amazon -// Route 53 Application Recovery Controller allows a set of routing control state -// changes to run and complete against the set of target controls. -func (c *Client) CreateSafetyRule(ctx context.Context, params *CreateSafetyRuleInput, optFns ...func(*Options)) (*CreateSafetyRuleOutput, error) { - if params == nil { - params = &CreateSafetyRuleInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateSafetyRule", params, optFns, c.addOperationCreateSafetyRuleMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateSafetyRuleOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The request body that you include when you create a safety rule. -type CreateSafetyRuleInput struct { - - // A new assertion rule for a control panel. - AssertionRule *types.NewAssertionRule - - // Unique client idempotency token. - ClientToken *string - - // A new gating rule for a control panel. - GatingRule *types.NewGatingRule - - noSmithyDocumentSerde -} - -type CreateSafetyRuleOutput struct { - - // An assertion rule enforces that, when a routing control state is changed, the - // criteria set by the rule configuration is met. Otherwise, the change to the - // routing control is not accepted. - AssertionRule *types.AssertionRule - - // A gating rule verifies that a set of gating controls evaluates as true, based on - // a rule configuration that you specify. If the gating rule evaluates to true, - // Amazon Route 53 Application Recovery Controller allows a set of routing control - // state changes to run and complete against the set of target controls. - GatingRule *types.GatingRule - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateSafetyRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateSafetyRule{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateSafetyRule{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addIdempotencyToken_opCreateSafetyRuleMiddleware(stack, options); err != nil { - return err - } - if err = addOpCreateSafetyRuleValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSafetyRule(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -type idempotencyToken_initializeOpCreateSafetyRule struct { - tokenProvider IdempotencyTokenProvider -} - -func (*idempotencyToken_initializeOpCreateSafetyRule) ID() string { - return "OperationIdempotencyTokenAutoFill" -} - -func (m *idempotencyToken_initializeOpCreateSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - if m.tokenProvider == nil { - return next.HandleInitialize(ctx, in) - } - - input, ok := in.Parameters.(*CreateSafetyRuleInput) - if !ok { - return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateSafetyRuleInput ") - } - - if input.ClientToken == nil { - t, err := m.tokenProvider.GetIdempotencyToken() - if err != nil { - return out, metadata, err - } - input.ClientToken = &t - } - return next.HandleInitialize(ctx, in) -} -func addIdempotencyToken_opCreateSafetyRuleMiddleware(stack *middleware.Stack, cfg Options) error { - return stack.Initialize.Add(&idempotencyToken_initializeOpCreateSafetyRule{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) -} - -func newServiceMetadataMiddleware_opCreateSafetyRule(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "CreateSafetyRule", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_DeleteCluster.go b/service/route53recoverycontrolconfig/api_op_DeleteCluster.go deleted file mode 100644 index 97fe0af71ac..00000000000 --- a/service/route53recoverycontrolconfig/api_op_DeleteCluster.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Delete a cluster. -func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, optFns ...func(*Options)) (*DeleteClusterOutput, error) { - if params == nil { - params = &DeleteClusterInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteCluster", params, optFns, c.addOperationDeleteClusterMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteClusterOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteClusterInput struct { - - // The Amazon Resource Name (ARN) of the cluster that you're deleting. - // - // This member is required. - ClusterArn *string - - noSmithyDocumentSerde -} - -type DeleteClusterOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteCluster{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteCluster{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteClusterValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCluster(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteCluster(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "DeleteCluster", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_DeleteControlPanel.go b/service/route53recoverycontrolconfig/api_op_DeleteControlPanel.go deleted file mode 100644 index 015a0bc6996..00000000000 --- a/service/route53recoverycontrolconfig/api_op_DeleteControlPanel.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a control panel. -func (c *Client) DeleteControlPanel(ctx context.Context, params *DeleteControlPanelInput, optFns ...func(*Options)) (*DeleteControlPanelOutput, error) { - if params == nil { - params = &DeleteControlPanelInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteControlPanel", params, optFns, c.addOperationDeleteControlPanelMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteControlPanelOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteControlPanelInput struct { - - // The Amazon Resource Name (ARN) of the control panel that you're deleting. - // - // This member is required. - ControlPanelArn *string - - noSmithyDocumentSerde -} - -type DeleteControlPanelOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteControlPanelMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteControlPanel{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteControlPanel{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteControlPanelValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteControlPanel(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteControlPanel(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "DeleteControlPanel", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_DeleteRoutingControl.go b/service/route53recoverycontrolconfig/api_op_DeleteRoutingControl.go deleted file mode 100644 index 54267046895..00000000000 --- a/service/route53recoverycontrolconfig/api_op_DeleteRoutingControl.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a routing control. -func (c *Client) DeleteRoutingControl(ctx context.Context, params *DeleteRoutingControlInput, optFns ...func(*Options)) (*DeleteRoutingControlOutput, error) { - if params == nil { - params = &DeleteRoutingControlInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteRoutingControl", params, optFns, c.addOperationDeleteRoutingControlMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteRoutingControlOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteRoutingControlInput struct { - - // The Amazon Resource Name (ARN) of the routing control that you're deleting. - // - // This member is required. - RoutingControlArn *string - - noSmithyDocumentSerde -} - -type DeleteRoutingControlOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteRoutingControlMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteRoutingControl{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteRoutingControl{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteRoutingControlValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRoutingControl(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteRoutingControl(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "DeleteRoutingControl", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_DeleteSafetyRule.go b/service/route53recoverycontrolconfig/api_op_DeleteSafetyRule.go deleted file mode 100644 index fe8f5f81b37..00000000000 --- a/service/route53recoverycontrolconfig/api_op_DeleteSafetyRule.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes a safety rule./> -func (c *Client) DeleteSafetyRule(ctx context.Context, params *DeleteSafetyRuleInput, optFns ...func(*Options)) (*DeleteSafetyRuleOutput, error) { - if params == nil { - params = &DeleteSafetyRuleInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteSafetyRule", params, optFns, c.addOperationDeleteSafetyRuleMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteSafetyRuleOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteSafetyRuleInput struct { - - // The request body that you include when you update a safety rule. - // - // This member is required. - SafetyRuleArn *string - - noSmithyDocumentSerde -} - -type DeleteSafetyRuleOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteSafetyRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteSafetyRule{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteSafetyRule{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteSafetyRuleValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSafetyRule(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteSafetyRule(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "DeleteSafetyRule", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_DescribeCluster.go b/service/route53recoverycontrolconfig/api_op_DescribeCluster.go deleted file mode 100644 index 174043ba0f4..00000000000 --- a/service/route53recoverycontrolconfig/api_op_DescribeCluster.go +++ /dev/null @@ -1,476 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "errors" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" - smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" - "time" -) - -// Display the details about a cluster. The response includes the cluster name, -// endpoints, status, and Amazon Resource Name (ARN). -func (c *Client) DescribeCluster(ctx context.Context, params *DescribeClusterInput, optFns ...func(*Options)) (*DescribeClusterOutput, error) { - if params == nil { - params = &DescribeClusterInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DescribeCluster", params, optFns, c.addOperationDescribeClusterMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DescribeClusterOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DescribeClusterInput struct { - - // The Amazon Resource Name (ARN) of the cluster that you're getting details for. - // - // This member is required. - ClusterArn *string - - noSmithyDocumentSerde -} - -type DescribeClusterOutput struct { - - // The cluster for the DescribeCluster request. - Cluster *types.Cluster - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDescribeClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeCluster{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeCluster{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDescribeClusterValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCluster(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// DescribeClusterAPIClient is a client that implements the DescribeCluster -// operation. -type DescribeClusterAPIClient interface { - DescribeCluster(context.Context, *DescribeClusterInput, ...func(*Options)) (*DescribeClusterOutput, error) -} - -var _ DescribeClusterAPIClient = (*Client)(nil) - -// ClusterCreatedWaiterOptions are waiter options for ClusterCreatedWaiter -type ClusterCreatedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // ClusterCreatedWaiter will use default minimum delay of 5 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, ClusterCreatedWaiter will use default max delay of 120 seconds. Note - // that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeClusterInput, *DescribeClusterOutput, error) (bool, error) -} - -// ClusterCreatedWaiter defines the waiters for ClusterCreated -type ClusterCreatedWaiter struct { - client DescribeClusterAPIClient - - options ClusterCreatedWaiterOptions -} - -// NewClusterCreatedWaiter constructs a ClusterCreatedWaiter. -func NewClusterCreatedWaiter(client DescribeClusterAPIClient, optFns ...func(*ClusterCreatedWaiterOptions)) *ClusterCreatedWaiter { - options := ClusterCreatedWaiterOptions{} - options.MinDelay = 5 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = clusterCreatedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &ClusterCreatedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for ClusterCreated waiter. The maxWaitDur is the -// maximum wait duration the waiter will wait. The maxWaitDur is required and must -// be greater than zero. -func (w *ClusterCreatedWaiter) Wait(ctx context.Context, params *DescribeClusterInput, maxWaitDur time.Duration, optFns ...func(*ClusterCreatedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeCluster(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for ClusterCreated waiter") -} - -func clusterCreatedStateRetryable(ctx context.Context, input *DescribeClusterInput, output *DescribeClusterOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("Cluster.Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "DEPLOYED" - value, ok := pathValue.(types.Status) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("Cluster.Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "PENDING" - value, ok := pathValue.(types.Status) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) - } - - if string(value) == expectedValue { - return true, nil - } - } - - if err != nil { - var errorType *types.InternalServerException - if errors.As(err, &errorType) { - return true, nil - } - } - - return true, nil -} - -// ClusterDeletedWaiterOptions are waiter options for ClusterDeletedWaiter -type ClusterDeletedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // ClusterDeletedWaiter will use default minimum delay of 5 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, ClusterDeletedWaiter will use default max delay of 120 seconds. Note - // that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeClusterInput, *DescribeClusterOutput, error) (bool, error) -} - -// ClusterDeletedWaiter defines the waiters for ClusterDeleted -type ClusterDeletedWaiter struct { - client DescribeClusterAPIClient - - options ClusterDeletedWaiterOptions -} - -// NewClusterDeletedWaiter constructs a ClusterDeletedWaiter. -func NewClusterDeletedWaiter(client DescribeClusterAPIClient, optFns ...func(*ClusterDeletedWaiterOptions)) *ClusterDeletedWaiter { - options := ClusterDeletedWaiterOptions{} - options.MinDelay = 5 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = clusterDeletedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &ClusterDeletedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for ClusterDeleted waiter. The maxWaitDur is the -// maximum wait duration the waiter will wait. The maxWaitDur is required and must -// be greater than zero. -func (w *ClusterDeletedWaiter) Wait(ctx context.Context, params *DescribeClusterInput, maxWaitDur time.Duration, optFns ...func(*ClusterDeletedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeCluster(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for ClusterDeleted waiter") -} - -func clusterDeletedStateRetryable(ctx context.Context, input *DescribeClusterInput, output *DescribeClusterOutput, err error) (bool, error) { - - if err != nil { - var errorType *types.ResourceNotFoundException - if errors.As(err, &errorType) { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("Cluster.Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "PENDING_DELETION" - value, ok := pathValue.(types.Status) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) - } - - if string(value) == expectedValue { - return true, nil - } - } - - if err != nil { - var errorType *types.InternalServerException - if errors.As(err, &errorType) { - return true, nil - } - } - - return true, nil -} - -func newServiceMetadataMiddleware_opDescribeCluster(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "DescribeCluster", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_DescribeControlPanel.go b/service/route53recoverycontrolconfig/api_op_DescribeControlPanel.go deleted file mode 100644 index 1cf1ae00748..00000000000 --- a/service/route53recoverycontrolconfig/api_op_DescribeControlPanel.go +++ /dev/null @@ -1,478 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "errors" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" - smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" - "time" -) - -// Displays details about a control panel. -func (c *Client) DescribeControlPanel(ctx context.Context, params *DescribeControlPanelInput, optFns ...func(*Options)) (*DescribeControlPanelOutput, error) { - if params == nil { - params = &DescribeControlPanelInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DescribeControlPanel", params, optFns, c.addOperationDescribeControlPanelMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DescribeControlPanelOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DescribeControlPanelInput struct { - - // The Amazon Resource Name (ARN) of the control panel that you're getting details - // for. - // - // This member is required. - ControlPanelArn *string - - noSmithyDocumentSerde -} - -type DescribeControlPanelOutput struct { - - // Information about the control panel. - ControlPanel *types.ControlPanel - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDescribeControlPanelMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeControlPanel{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeControlPanel{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDescribeControlPanelValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeControlPanel(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// DescribeControlPanelAPIClient is a client that implements the -// DescribeControlPanel operation. -type DescribeControlPanelAPIClient interface { - DescribeControlPanel(context.Context, *DescribeControlPanelInput, ...func(*Options)) (*DescribeControlPanelOutput, error) -} - -var _ DescribeControlPanelAPIClient = (*Client)(nil) - -// ControlPanelCreatedWaiterOptions are waiter options for -// ControlPanelCreatedWaiter -type ControlPanelCreatedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // ControlPanelCreatedWaiter will use default minimum delay of 5 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, ControlPanelCreatedWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeControlPanelInput, *DescribeControlPanelOutput, error) (bool, error) -} - -// ControlPanelCreatedWaiter defines the waiters for ControlPanelCreated -type ControlPanelCreatedWaiter struct { - client DescribeControlPanelAPIClient - - options ControlPanelCreatedWaiterOptions -} - -// NewControlPanelCreatedWaiter constructs a ControlPanelCreatedWaiter. -func NewControlPanelCreatedWaiter(client DescribeControlPanelAPIClient, optFns ...func(*ControlPanelCreatedWaiterOptions)) *ControlPanelCreatedWaiter { - options := ControlPanelCreatedWaiterOptions{} - options.MinDelay = 5 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = controlPanelCreatedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &ControlPanelCreatedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for ControlPanelCreated waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *ControlPanelCreatedWaiter) Wait(ctx context.Context, params *DescribeControlPanelInput, maxWaitDur time.Duration, optFns ...func(*ControlPanelCreatedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeControlPanel(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for ControlPanelCreated waiter") -} - -func controlPanelCreatedStateRetryable(ctx context.Context, input *DescribeControlPanelInput, output *DescribeControlPanelOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("ControlPanel.Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "DEPLOYED" - value, ok := pathValue.(types.Status) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("ControlPanel.Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "PENDING" - value, ok := pathValue.(types.Status) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) - } - - if string(value) == expectedValue { - return true, nil - } - } - - if err != nil { - var errorType *types.InternalServerException - if errors.As(err, &errorType) { - return true, nil - } - } - - return true, nil -} - -// ControlPanelDeletedWaiterOptions are waiter options for -// ControlPanelDeletedWaiter -type ControlPanelDeletedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // ControlPanelDeletedWaiter will use default minimum delay of 5 seconds. Note that - // MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, ControlPanelDeletedWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeControlPanelInput, *DescribeControlPanelOutput, error) (bool, error) -} - -// ControlPanelDeletedWaiter defines the waiters for ControlPanelDeleted -type ControlPanelDeletedWaiter struct { - client DescribeControlPanelAPIClient - - options ControlPanelDeletedWaiterOptions -} - -// NewControlPanelDeletedWaiter constructs a ControlPanelDeletedWaiter. -func NewControlPanelDeletedWaiter(client DescribeControlPanelAPIClient, optFns ...func(*ControlPanelDeletedWaiterOptions)) *ControlPanelDeletedWaiter { - options := ControlPanelDeletedWaiterOptions{} - options.MinDelay = 5 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = controlPanelDeletedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &ControlPanelDeletedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for ControlPanelDeleted waiter. The maxWaitDur is -// the maximum wait duration the waiter will wait. The maxWaitDur is required and -// must be greater than zero. -func (w *ControlPanelDeletedWaiter) Wait(ctx context.Context, params *DescribeControlPanelInput, maxWaitDur time.Duration, optFns ...func(*ControlPanelDeletedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeControlPanel(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for ControlPanelDeleted waiter") -} - -func controlPanelDeletedStateRetryable(ctx context.Context, input *DescribeControlPanelInput, output *DescribeControlPanelOutput, err error) (bool, error) { - - if err != nil { - var errorType *types.ResourceNotFoundException - if errors.As(err, &errorType) { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("ControlPanel.Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "PENDING_DELETION" - value, ok := pathValue.(types.Status) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) - } - - if string(value) == expectedValue { - return true, nil - } - } - - if err != nil { - var errorType *types.InternalServerException - if errors.As(err, &errorType) { - return true, nil - } - } - - return true, nil -} - -func newServiceMetadataMiddleware_opDescribeControlPanel(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "DescribeControlPanel", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_DescribeRoutingControl.go b/service/route53recoverycontrolconfig/api_op_DescribeRoutingControl.go deleted file mode 100644 index 38ba651b281..00000000000 --- a/service/route53recoverycontrolconfig/api_op_DescribeRoutingControl.go +++ /dev/null @@ -1,482 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "errors" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithytime "github.com/aws/smithy-go/time" - smithyhttp "github.com/aws/smithy-go/transport/http" - smithywaiter "github.com/aws/smithy-go/waiter" - "github.com/jmespath/go-jmespath" - "time" -) - -// Displays details about a routing control. A routing control has one of two -// states: ON and OFF. You can map the routing control state to the state of an -// Amazon Route 53 health check, which can be used to control routing. To get or -// update the routing control state, see the Recovery Cluster (data plane) API -// actions for Amazon Route 53 Application Recovery Controller. -func (c *Client) DescribeRoutingControl(ctx context.Context, params *DescribeRoutingControlInput, optFns ...func(*Options)) (*DescribeRoutingControlOutput, error) { - if params == nil { - params = &DescribeRoutingControlInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DescribeRoutingControl", params, optFns, c.addOperationDescribeRoutingControlMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DescribeRoutingControlOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DescribeRoutingControlInput struct { - - // The Amazon Resource Name (ARN) of the routing control that you're getting - // details for. - // - // This member is required. - RoutingControlArn *string - - noSmithyDocumentSerde -} - -type DescribeRoutingControlOutput struct { - - // Information about the routing control. - RoutingControl *types.RoutingControl - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDescribeRoutingControlMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeRoutingControl{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeRoutingControl{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDescribeRoutingControlValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRoutingControl(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// DescribeRoutingControlAPIClient is a client that implements the -// DescribeRoutingControl operation. -type DescribeRoutingControlAPIClient interface { - DescribeRoutingControl(context.Context, *DescribeRoutingControlInput, ...func(*Options)) (*DescribeRoutingControlOutput, error) -} - -var _ DescribeRoutingControlAPIClient = (*Client)(nil) - -// RoutingControlCreatedWaiterOptions are waiter options for -// RoutingControlCreatedWaiter -type RoutingControlCreatedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // RoutingControlCreatedWaiter will use default minimum delay of 5 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, RoutingControlCreatedWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeRoutingControlInput, *DescribeRoutingControlOutput, error) (bool, error) -} - -// RoutingControlCreatedWaiter defines the waiters for RoutingControlCreated -type RoutingControlCreatedWaiter struct { - client DescribeRoutingControlAPIClient - - options RoutingControlCreatedWaiterOptions -} - -// NewRoutingControlCreatedWaiter constructs a RoutingControlCreatedWaiter. -func NewRoutingControlCreatedWaiter(client DescribeRoutingControlAPIClient, optFns ...func(*RoutingControlCreatedWaiterOptions)) *RoutingControlCreatedWaiter { - options := RoutingControlCreatedWaiterOptions{} - options.MinDelay = 5 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = routingControlCreatedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &RoutingControlCreatedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for RoutingControlCreated waiter. The maxWaitDur -// is the maximum wait duration the waiter will wait. The maxWaitDur is required -// and must be greater than zero. -func (w *RoutingControlCreatedWaiter) Wait(ctx context.Context, params *DescribeRoutingControlInput, maxWaitDur time.Duration, optFns ...func(*RoutingControlCreatedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeRoutingControl(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for RoutingControlCreated waiter") -} - -func routingControlCreatedStateRetryable(ctx context.Context, input *DescribeRoutingControlInput, output *DescribeRoutingControlOutput, err error) (bool, error) { - - if err == nil { - pathValue, err := jmespath.Search("RoutingControl.Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "DEPLOYED" - value, ok := pathValue.(types.Status) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) - } - - if string(value) == expectedValue { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("RoutingControl.Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "PENDING" - value, ok := pathValue.(types.Status) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) - } - - if string(value) == expectedValue { - return true, nil - } - } - - if err != nil { - var errorType *types.InternalServerException - if errors.As(err, &errorType) { - return true, nil - } - } - - return true, nil -} - -// RoutingControlDeletedWaiterOptions are waiter options for -// RoutingControlDeletedWaiter -type RoutingControlDeletedWaiterOptions struct { - - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // MinDelay is the minimum amount of time to delay between retries. If unset, - // RoutingControlDeletedWaiter will use default minimum delay of 5 seconds. Note - // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. - MinDelay time.Duration - - // MaxDelay is the maximum amount of time to delay between retries. If unset or set - // to zero, RoutingControlDeletedWaiter will use default max delay of 120 seconds. - // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. - MaxDelay time.Duration - - // LogWaitAttempts is used to enable logging for waiter retry attempts - LogWaitAttempts bool - - // Retryable is function that can be used to override the service defined - // waiter-behavior based on operation output, or returned error. This function is - // used by the waiter to decide if a state is retryable or a terminal state. By - // default service-modeled logic will populate this option. This option can thus be - // used to define a custom waiter state with fall-back to service-modeled waiter - // state mutators.The function returns an error in case of a failure state. In case - // of retry state, this function returns a bool value of true and nil error, while - // in case of success it returns a bool value of false and nil error. - Retryable func(context.Context, *DescribeRoutingControlInput, *DescribeRoutingControlOutput, error) (bool, error) -} - -// RoutingControlDeletedWaiter defines the waiters for RoutingControlDeleted -type RoutingControlDeletedWaiter struct { - client DescribeRoutingControlAPIClient - - options RoutingControlDeletedWaiterOptions -} - -// NewRoutingControlDeletedWaiter constructs a RoutingControlDeletedWaiter. -func NewRoutingControlDeletedWaiter(client DescribeRoutingControlAPIClient, optFns ...func(*RoutingControlDeletedWaiterOptions)) *RoutingControlDeletedWaiter { - options := RoutingControlDeletedWaiterOptions{} - options.MinDelay = 5 * time.Second - options.MaxDelay = 120 * time.Second - options.Retryable = routingControlDeletedStateRetryable - - for _, fn := range optFns { - fn(&options) - } - return &RoutingControlDeletedWaiter{ - client: client, - options: options, - } -} - -// Wait calls the waiter function for RoutingControlDeleted waiter. The maxWaitDur -// is the maximum wait duration the waiter will wait. The maxWaitDur is required -// and must be greater than zero. -func (w *RoutingControlDeletedWaiter) Wait(ctx context.Context, params *DescribeRoutingControlInput, maxWaitDur time.Duration, optFns ...func(*RoutingControlDeletedWaiterOptions)) error { - if maxWaitDur <= 0 { - return fmt.Errorf("maximum wait time for waiter must be greater than zero") - } - - options := w.options - for _, fn := range optFns { - fn(&options) - } - - if options.MaxDelay <= 0 { - options.MaxDelay = 120 * time.Second - } - - if options.MinDelay > options.MaxDelay { - return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) - } - - ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) - defer cancelFn() - - logger := smithywaiter.Logger{} - remainingTime := maxWaitDur - - var attempt int64 - for { - - attempt++ - apiOptions := options.APIOptions - start := time.Now() - - if options.LogWaitAttempts { - logger.Attempt = attempt - apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) - apiOptions = append(apiOptions, logger.AddLogger) - } - - out, err := w.client.DescribeRoutingControl(ctx, params, func(o *Options) { - o.APIOptions = append(o.APIOptions, apiOptions...) - }) - - retryable, err := options.Retryable(ctx, params, out, err) - if err != nil { - return err - } - if !retryable { - return nil - } - - remainingTime -= time.Since(start) - if remainingTime < options.MinDelay || remainingTime <= 0 { - break - } - - // compute exponential backoff between waiter retries - delay, err := smithywaiter.ComputeDelay( - attempt, options.MinDelay, options.MaxDelay, remainingTime, - ) - if err != nil { - return fmt.Errorf("error computing waiter delay, %w", err) - } - - remainingTime -= delay - // sleep for the delay amount before invoking a request - if err := smithytime.SleepWithContext(ctx, delay); err != nil { - return fmt.Errorf("request cancelled while waiting, %w", err) - } - } - return fmt.Errorf("exceeded max wait time for RoutingControlDeleted waiter") -} - -func routingControlDeletedStateRetryable(ctx context.Context, input *DescribeRoutingControlInput, output *DescribeRoutingControlOutput, err error) (bool, error) { - - if err != nil { - var errorType *types.ResourceNotFoundException - if errors.As(err, &errorType) { - return false, nil - } - } - - if err == nil { - pathValue, err := jmespath.Search("RoutingControl.Status", output) - if err != nil { - return false, fmt.Errorf("error evaluating waiter state: %w", err) - } - - expectedValue := "PENDING_DELETION" - value, ok := pathValue.(types.Status) - if !ok { - return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) - } - - if string(value) == expectedValue { - return true, nil - } - } - - if err != nil { - var errorType *types.InternalServerException - if errors.As(err, &errorType) { - return true, nil - } - } - - return true, nil -} - -func newServiceMetadataMiddleware_opDescribeRoutingControl(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "DescribeRoutingControl", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_DescribeSafetyRule.go b/service/route53recoverycontrolconfig/api_op_DescribeSafetyRule.go deleted file mode 100644 index b643653e8c0..00000000000 --- a/service/route53recoverycontrolconfig/api_op_DescribeSafetyRule.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Describes the safety rules (that is, the assertion rules and gating rules) for -// the routing controls in a control panel. -func (c *Client) DescribeSafetyRule(ctx context.Context, params *DescribeSafetyRuleInput, optFns ...func(*Options)) (*DescribeSafetyRuleOutput, error) { - if params == nil { - params = &DescribeSafetyRuleInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DescribeSafetyRule", params, optFns, c.addOperationDescribeSafetyRuleMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DescribeSafetyRuleOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DescribeSafetyRuleInput struct { - - // The request body that you include when you update a safety rule. - // - // This member is required. - SafetyRuleArn *string - - noSmithyDocumentSerde -} - -type DescribeSafetyRuleOutput struct { - - // An assertion rule enforces that, when a routing control state is changed, the - // criteria set by the rule configuration is met. Otherwise, the change to the - // routing control is not accepted. - AssertionRule *types.AssertionRule - - // A gating rule verifies that a set of gating controls evaluates as true, based on - // a rule configuration that you specify. If the gating rule evaluates to true, - // Amazon Route 53 Application Recovery Controller allows a set of routing control - // state changes to run and complete against the set of target controls. - GatingRule *types.GatingRule - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDescribeSafetyRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeSafetyRule{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeSafetyRule{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDescribeSafetyRuleValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSafetyRule(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDescribeSafetyRule(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "DescribeSafetyRule", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go b/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go deleted file mode 100644 index 3db62558cd4..00000000000 --- a/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go +++ /dev/null @@ -1,217 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns an array of all Amazon Route 53 health checks associated with a specific -// routing control. -func (c *Client) ListAssociatedRoute53HealthChecks(ctx context.Context, params *ListAssociatedRoute53HealthChecksInput, optFns ...func(*Options)) (*ListAssociatedRoute53HealthChecksOutput, error) { - if params == nil { - params = &ListAssociatedRoute53HealthChecksInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListAssociatedRoute53HealthChecks", params, optFns, c.addOperationListAssociatedRoute53HealthChecksMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListAssociatedRoute53HealthChecksOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListAssociatedRoute53HealthChecksInput struct { - - // The Amazon Resource Name (ARN) of the routing control that you're getting - // details for. - // - // This member is required. - RoutingControlArn *string - - // The number of objects that you want to return with this call. - MaxResults int32 - - // The token that identifies which batch of results you want to see. - NextToken *string - - noSmithyDocumentSerde -} - -type ListAssociatedRoute53HealthChecksOutput struct { - - // Identifiers for the health checks. - HealthCheckIds []string - - // The token that identifies which batch of results you want to see. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListAssociatedRoute53HealthChecksMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListAssociatedRoute53HealthChecks{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAssociatedRoute53HealthChecks{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpListAssociatedRoute53HealthChecksValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAssociatedRoute53HealthChecks(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListAssociatedRoute53HealthChecksAPIClient is a client that implements the -// ListAssociatedRoute53HealthChecks operation. -type ListAssociatedRoute53HealthChecksAPIClient interface { - ListAssociatedRoute53HealthChecks(context.Context, *ListAssociatedRoute53HealthChecksInput, ...func(*Options)) (*ListAssociatedRoute53HealthChecksOutput, error) -} - -var _ ListAssociatedRoute53HealthChecksAPIClient = (*Client)(nil) - -// ListAssociatedRoute53HealthChecksPaginatorOptions is the paginator options for -// ListAssociatedRoute53HealthChecks -type ListAssociatedRoute53HealthChecksPaginatorOptions struct { - // The number of objects that you want to return with this call. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListAssociatedRoute53HealthChecksPaginator is a paginator for -// ListAssociatedRoute53HealthChecks -type ListAssociatedRoute53HealthChecksPaginator struct { - options ListAssociatedRoute53HealthChecksPaginatorOptions - client ListAssociatedRoute53HealthChecksAPIClient - params *ListAssociatedRoute53HealthChecksInput - nextToken *string - firstPage bool -} - -// NewListAssociatedRoute53HealthChecksPaginator returns a new -// ListAssociatedRoute53HealthChecksPaginator -func NewListAssociatedRoute53HealthChecksPaginator(client ListAssociatedRoute53HealthChecksAPIClient, params *ListAssociatedRoute53HealthChecksInput, optFns ...func(*ListAssociatedRoute53HealthChecksPaginatorOptions)) *ListAssociatedRoute53HealthChecksPaginator { - if params == nil { - params = &ListAssociatedRoute53HealthChecksInput{} - } - - options := ListAssociatedRoute53HealthChecksPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListAssociatedRoute53HealthChecksPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListAssociatedRoute53HealthChecksPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListAssociatedRoute53HealthChecks page. -func (p *ListAssociatedRoute53HealthChecksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAssociatedRoute53HealthChecksOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListAssociatedRoute53HealthChecks(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListAssociatedRoute53HealthChecks(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "ListAssociatedRoute53HealthChecks", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_ListClusters.go b/service/route53recoverycontrolconfig/api_op_ListClusters.go deleted file mode 100644 index 5485c56c060..00000000000 --- a/service/route53recoverycontrolconfig/api_op_ListClusters.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns an array of all the clusters in an account. -func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, optFns ...func(*Options)) (*ListClustersOutput, error) { - if params == nil { - params = &ListClustersInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListClusters", params, optFns, c.addOperationListClustersMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListClustersOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListClustersInput struct { - - // The number of objects that you want to return with this call. - MaxResults int32 - - // The token that identifies which batch of results you want to see. - NextToken *string - - noSmithyDocumentSerde -} - -type ListClustersOutput struct { - - // An array of the clusters in an account. - Clusters []types.Cluster - - // The token that identifies which batch of results you want to see. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListClustersMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListClusters{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListClusters{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListClusters(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListClustersAPIClient is a client that implements the ListClusters operation. -type ListClustersAPIClient interface { - ListClusters(context.Context, *ListClustersInput, ...func(*Options)) (*ListClustersOutput, error) -} - -var _ ListClustersAPIClient = (*Client)(nil) - -// ListClustersPaginatorOptions is the paginator options for ListClusters -type ListClustersPaginatorOptions struct { - // The number of objects that you want to return with this call. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListClustersPaginator is a paginator for ListClusters -type ListClustersPaginator struct { - options ListClustersPaginatorOptions - client ListClustersAPIClient - params *ListClustersInput - nextToken *string - firstPage bool -} - -// NewListClustersPaginator returns a new ListClustersPaginator -func NewListClustersPaginator(client ListClustersAPIClient, params *ListClustersInput, optFns ...func(*ListClustersPaginatorOptions)) *ListClustersPaginator { - if params == nil { - params = &ListClustersInput{} - } - - options := ListClustersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListClustersPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListClustersPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListClusters page. -func (p *ListClustersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListClustersOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListClusters(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListClusters(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "ListClusters", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_ListControlPanels.go b/service/route53recoverycontrolconfig/api_op_ListControlPanels.go deleted file mode 100644 index 2c699dcec7a..00000000000 --- a/service/route53recoverycontrolconfig/api_op_ListControlPanels.go +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns an array of control panels for a cluster. -func (c *Client) ListControlPanels(ctx context.Context, params *ListControlPanelsInput, optFns ...func(*Options)) (*ListControlPanelsOutput, error) { - if params == nil { - params = &ListControlPanelsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListControlPanels", params, optFns, c.addOperationListControlPanelsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListControlPanelsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListControlPanelsInput struct { - - // The Amazon Resource Name (ARN) of a cluster. - ClusterArn *string - - // The number of objects that you want to return with this call. - MaxResults int32 - - // The token that identifies which batch of results you want to see. - NextToken *string - - noSmithyDocumentSerde -} - -type ListControlPanelsOutput struct { - - // The result of a successful ListControlPanel request. - ControlPanels []types.ControlPanel - - // The token that identifies which batch of results you want to see. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListControlPanelsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListControlPanels{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListControlPanels{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListControlPanels(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListControlPanelsAPIClient is a client that implements the ListControlPanels -// operation. -type ListControlPanelsAPIClient interface { - ListControlPanels(context.Context, *ListControlPanelsInput, ...func(*Options)) (*ListControlPanelsOutput, error) -} - -var _ ListControlPanelsAPIClient = (*Client)(nil) - -// ListControlPanelsPaginatorOptions is the paginator options for ListControlPanels -type ListControlPanelsPaginatorOptions struct { - // The number of objects that you want to return with this call. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListControlPanelsPaginator is a paginator for ListControlPanels -type ListControlPanelsPaginator struct { - options ListControlPanelsPaginatorOptions - client ListControlPanelsAPIClient - params *ListControlPanelsInput - nextToken *string - firstPage bool -} - -// NewListControlPanelsPaginator returns a new ListControlPanelsPaginator -func NewListControlPanelsPaginator(client ListControlPanelsAPIClient, params *ListControlPanelsInput, optFns ...func(*ListControlPanelsPaginatorOptions)) *ListControlPanelsPaginator { - if params == nil { - params = &ListControlPanelsInput{} - } - - options := ListControlPanelsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListControlPanelsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListControlPanelsPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListControlPanels page. -func (p *ListControlPanelsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListControlPanelsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListControlPanels(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListControlPanels(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "ListControlPanels", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go b/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go deleted file mode 100644 index e3f80a3eed8..00000000000 --- a/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go +++ /dev/null @@ -1,218 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns an array of routing controls for a control panel. A routing control is -// an Amazon Route 53 Application Recovery Controller construct that has one of two -// states: ON and OFF. You can map the routing control state to the state of an -// Amazon Route 53 health check, which can be used to control routing. -func (c *Client) ListRoutingControls(ctx context.Context, params *ListRoutingControlsInput, optFns ...func(*Options)) (*ListRoutingControlsOutput, error) { - if params == nil { - params = &ListRoutingControlsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListRoutingControls", params, optFns, c.addOperationListRoutingControlsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListRoutingControlsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListRoutingControlsInput struct { - - // The Amazon Resource Name (ARN) of the control panel that you're getting routing - // control details for. - // - // This member is required. - ControlPanelArn *string - - // The number of objects that you want to return with this call. - MaxResults int32 - - // The token that identifies which batch of results you want to see. - NextToken *string - - noSmithyDocumentSerde -} - -type ListRoutingControlsOutput struct { - - // The token that identifies which batch of results you want to see. - NextToken *string - - // An array of routing controls. - RoutingControls []types.RoutingControl - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListRoutingControlsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListRoutingControls{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRoutingControls{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpListRoutingControlsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRoutingControls(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListRoutingControlsAPIClient is a client that implements the ListRoutingControls -// operation. -type ListRoutingControlsAPIClient interface { - ListRoutingControls(context.Context, *ListRoutingControlsInput, ...func(*Options)) (*ListRoutingControlsOutput, error) -} - -var _ ListRoutingControlsAPIClient = (*Client)(nil) - -// ListRoutingControlsPaginatorOptions is the paginator options for -// ListRoutingControls -type ListRoutingControlsPaginatorOptions struct { - // The number of objects that you want to return with this call. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListRoutingControlsPaginator is a paginator for ListRoutingControls -type ListRoutingControlsPaginator struct { - options ListRoutingControlsPaginatorOptions - client ListRoutingControlsAPIClient - params *ListRoutingControlsInput - nextToken *string - firstPage bool -} - -// NewListRoutingControlsPaginator returns a new ListRoutingControlsPaginator -func NewListRoutingControlsPaginator(client ListRoutingControlsAPIClient, params *ListRoutingControlsInput, optFns ...func(*ListRoutingControlsPaginatorOptions)) *ListRoutingControlsPaginator { - if params == nil { - params = &ListRoutingControlsInput{} - } - - options := ListRoutingControlsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListRoutingControlsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListRoutingControlsPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListRoutingControls page. -func (p *ListRoutingControlsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRoutingControlsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListRoutingControls(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListRoutingControls(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "ListRoutingControls", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go b/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go deleted file mode 100644 index 2b7e5472b48..00000000000 --- a/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go +++ /dev/null @@ -1,215 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// List the safety rules (the assertion rules and gating rules) that you've defined -// for the routing controls in a control panel. -func (c *Client) ListSafetyRules(ctx context.Context, params *ListSafetyRulesInput, optFns ...func(*Options)) (*ListSafetyRulesOutput, error) { - if params == nil { - params = &ListSafetyRulesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListSafetyRules", params, optFns, c.addOperationListSafetyRulesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListSafetyRulesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListSafetyRulesInput struct { - - // The Amazon Resource Name (ARN) of the control panel that you're getting details - // for. - // - // This member is required. - ControlPanelArn *string - - // The number of objects that you want to return with this call. - MaxResults int32 - - // The token that identifies which batch of results you want to see. - NextToken *string - - noSmithyDocumentSerde -} - -type ListSafetyRulesOutput struct { - - // The token that identifies which batch of results you want to see. - NextToken *string - - // The list of safety rules in a control panel. - SafetyRules []types.Rule - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListSafetyRulesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListSafetyRules{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListSafetyRules{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpListSafetyRulesValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSafetyRules(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListSafetyRulesAPIClient is a client that implements the ListSafetyRules -// operation. -type ListSafetyRulesAPIClient interface { - ListSafetyRules(context.Context, *ListSafetyRulesInput, ...func(*Options)) (*ListSafetyRulesOutput, error) -} - -var _ ListSafetyRulesAPIClient = (*Client)(nil) - -// ListSafetyRulesPaginatorOptions is the paginator options for ListSafetyRules -type ListSafetyRulesPaginatorOptions struct { - // The number of objects that you want to return with this call. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListSafetyRulesPaginator is a paginator for ListSafetyRules -type ListSafetyRulesPaginator struct { - options ListSafetyRulesPaginatorOptions - client ListSafetyRulesAPIClient - params *ListSafetyRulesInput - nextToken *string - firstPage bool -} - -// NewListSafetyRulesPaginator returns a new ListSafetyRulesPaginator -func NewListSafetyRulesPaginator(client ListSafetyRulesAPIClient, params *ListSafetyRulesInput, optFns ...func(*ListSafetyRulesPaginatorOptions)) *ListSafetyRulesPaginator { - if params == nil { - params = &ListSafetyRulesInput{} - } - - options := ListSafetyRulesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListSafetyRulesPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListSafetyRulesPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListSafetyRules page. -func (p *ListSafetyRulesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSafetyRulesOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListSafetyRules(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListSafetyRules(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "ListSafetyRules", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_UpdateControlPanel.go b/service/route53recoverycontrolconfig/api_op_UpdateControlPanel.go deleted file mode 100644 index 7808faef30b..00000000000 --- a/service/route53recoverycontrolconfig/api_op_UpdateControlPanel.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates a control panel. The only update you can make to a control panel is to -// change the name of the control panel. -func (c *Client) UpdateControlPanel(ctx context.Context, params *UpdateControlPanelInput, optFns ...func(*Options)) (*UpdateControlPanelOutput, error) { - if params == nil { - params = &UpdateControlPanelInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateControlPanel", params, optFns, c.addOperationUpdateControlPanelMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateControlPanelOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The details of the control panel that you're updating. -type UpdateControlPanelInput struct { - - // The Amazon Resource Name (ARN) of the control panel. - // - // This member is required. - ControlPanelArn *string - - // The name of the control panel. - // - // This member is required. - ControlPanelName *string - - noSmithyDocumentSerde -} - -type UpdateControlPanelOutput struct { - - // The control panel to update. - ControlPanel *types.ControlPanel - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateControlPanelMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateControlPanel{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateControlPanel{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateControlPanelValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateControlPanel(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateControlPanel(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "UpdateControlPanel", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_UpdateRoutingControl.go b/service/route53recoverycontrolconfig/api_op_UpdateRoutingControl.go deleted file mode 100644 index 136367817d4..00000000000 --- a/service/route53recoverycontrolconfig/api_op_UpdateRoutingControl.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates a routing control. You can only update the name of the routing control. -// To get or update the routing control state, see the Recovery Cluster (data -// plane) API actions for Amazon Route 53 Application Recovery Controller. -func (c *Client) UpdateRoutingControl(ctx context.Context, params *UpdateRoutingControlInput, optFns ...func(*Options)) (*UpdateRoutingControlOutput, error) { - if params == nil { - params = &UpdateRoutingControlInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateRoutingControl", params, optFns, c.addOperationUpdateRoutingControlMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateRoutingControlOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The details of the routing control that you're updating. -type UpdateRoutingControlInput struct { - - // The Amazon Resource Name (ARN) of the routing control. - // - // This member is required. - RoutingControlArn *string - - // The name of the routing control. - // - // This member is required. - RoutingControlName *string - - noSmithyDocumentSerde -} - -type UpdateRoutingControlOutput struct { - - // The routing control that was updated. - RoutingControl *types.RoutingControl - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateRoutingControlMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateRoutingControl{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateRoutingControl{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateRoutingControlValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRoutingControl(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateRoutingControl(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "UpdateRoutingControl", - } -} diff --git a/service/route53recoverycontrolconfig/api_op_UpdateSafetyRule.go b/service/route53recoverycontrolconfig/api_op_UpdateSafetyRule.go deleted file mode 100644 index 84fd2be01e4..00000000000 --- a/service/route53recoverycontrolconfig/api_op_UpdateSafetyRule.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Update a safety rule (an assertion rule or gating rule) for the routing controls -// in a control panel. You can only update the name and the waiting period for a -// safety rule. To make other updates, delete the safety rule and create a new -// safety rule. -func (c *Client) UpdateSafetyRule(ctx context.Context, params *UpdateSafetyRuleInput, optFns ...func(*Options)) (*UpdateSafetyRuleOutput, error) { - if params == nil { - params = &UpdateSafetyRuleInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateSafetyRule", params, optFns, c.addOperationUpdateSafetyRuleMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateSafetyRuleOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateSafetyRuleInput struct { - - // An update to an assertion rule. You can update the name or the evaluation period - // (wait period). If you don't specify one of the items to update, the item is - // unchanged. - AssertionRuleUpdate *types.AssertionRuleUpdate - - // Update to a gating rule. You can update the name or the evaluation period (wait - // period). If you don't specify one of the items to update, the item is unchanged. - GatingRuleUpdate *types.GatingRuleUpdate - - noSmithyDocumentSerde -} - -type UpdateSafetyRuleOutput struct { - - // An assertion rule enforces that, when a routing control state is changed, the - // criteria set by the rule configuration is met. Otherwise, the change to the - // routing control is not accepted. - AssertionRule *types.AssertionRule - - // A gating rule verifies that a set of gating controls evaluates as true, based on - // a rule configuration that you specify. If the gating rule evaluates to true, - // Amazon Route 53 Application Recovery Controller allows a set of routing control - // state changes to run and complete against the set of target controls. - GatingRule *types.GatingRule - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateSafetyRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateSafetyRule{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateSafetyRule{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateSafetyRuleValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSafetyRule(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateSafetyRule(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-control-config", - OperationName: "UpdateSafetyRule", - } -} diff --git a/service/route53recoverycontrolconfig/deserializers.go b/service/route53recoverycontrolconfig/deserializers.go deleted file mode 100644 index f351c79eb10..00000000000 --- a/service/route53recoverycontrolconfig/deserializers.go +++ /dev/null @@ -1,4303 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - smithy "github.com/aws/smithy-go" - smithyio "github.com/aws/smithy-go/io" - "github.com/aws/smithy-go/middleware" - "github.com/aws/smithy-go/ptr" - smithyhttp "github.com/aws/smithy-go/transport/http" - "io" - "strings" -) - -type awsRestjson1_deserializeOpCreateCluster struct { -} - -func (*awsRestjson1_deserializeOpCreateCluster) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpCreateCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateCluster(response, &metadata) - } - output := &CreateClusterOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentCreateClusterOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorCreateCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentCreateClusterOutput(v **CreateClusterOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateClusterOutput - if *v == nil { - sv = &CreateClusterOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Cluster": - if err := awsRestjson1_deserializeDocumentCluster(&sv.Cluster, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpCreateControlPanel struct { -} - -func (*awsRestjson1_deserializeOpCreateControlPanel) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpCreateControlPanel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateControlPanel(response, &metadata) - } - output := &CreateControlPanelOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentCreateControlPanelOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorCreateControlPanel(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentCreateControlPanelOutput(v **CreateControlPanelOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateControlPanelOutput - if *v == nil { - sv = &CreateControlPanelOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ControlPanel": - if err := awsRestjson1_deserializeDocumentControlPanel(&sv.ControlPanel, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpCreateRoutingControl struct { -} - -func (*awsRestjson1_deserializeOpCreateRoutingControl) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpCreateRoutingControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateRoutingControl(response, &metadata) - } - output := &CreateRoutingControlOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentCreateRoutingControlOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorCreateRoutingControl(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentCreateRoutingControlOutput(v **CreateRoutingControlOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateRoutingControlOutput - if *v == nil { - sv = &CreateRoutingControlOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "RoutingControl": - if err := awsRestjson1_deserializeDocumentRoutingControl(&sv.RoutingControl, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpCreateSafetyRule struct { -} - -func (*awsRestjson1_deserializeOpCreateSafetyRule) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpCreateSafetyRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateSafetyRule(response, &metadata) - } - output := &CreateSafetyRuleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentCreateSafetyRuleOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorCreateSafetyRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentCreateSafetyRuleOutput(v **CreateSafetyRuleOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateSafetyRuleOutput - if *v == nil { - sv = &CreateSafetyRuleOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AssertionRule": - if err := awsRestjson1_deserializeDocumentAssertionRule(&sv.AssertionRule, value); err != nil { - return err - } - - case "GatingRule": - if err := awsRestjson1_deserializeDocumentGatingRule(&sv.GatingRule, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpDeleteCluster struct { -} - -func (*awsRestjson1_deserializeOpDeleteCluster) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteCluster(response, &metadata) - } - output := &DeleteClusterOutput{} - out.Result = output - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpDeleteControlPanel struct { -} - -func (*awsRestjson1_deserializeOpDeleteControlPanel) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteControlPanel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteControlPanel(response, &metadata) - } - output := &DeleteControlPanelOutput{} - out.Result = output - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteControlPanel(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpDeleteRoutingControl struct { -} - -func (*awsRestjson1_deserializeOpDeleteRoutingControl) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteRoutingControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteRoutingControl(response, &metadata) - } - output := &DeleteRoutingControlOutput{} - out.Result = output - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteRoutingControl(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpDeleteSafetyRule struct { -} - -func (*awsRestjson1_deserializeOpDeleteSafetyRule) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteSafetyRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteSafetyRule(response, &metadata) - } - output := &DeleteSafetyRuleOutput{} - out.Result = output - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteSafetyRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpDescribeCluster struct { -} - -func (*awsRestjson1_deserializeOpDescribeCluster) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDescribeCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeCluster(response, &metadata) - } - output := &DescribeClusterOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentDescribeClusterOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDescribeCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentDescribeClusterOutput(v **DescribeClusterOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DescribeClusterOutput - if *v == nil { - sv = &DescribeClusterOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Cluster": - if err := awsRestjson1_deserializeDocumentCluster(&sv.Cluster, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpDescribeControlPanel struct { -} - -func (*awsRestjson1_deserializeOpDescribeControlPanel) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDescribeControlPanel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeControlPanel(response, &metadata) - } - output := &DescribeControlPanelOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentDescribeControlPanelOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDescribeControlPanel(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentDescribeControlPanelOutput(v **DescribeControlPanelOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DescribeControlPanelOutput - if *v == nil { - sv = &DescribeControlPanelOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ControlPanel": - if err := awsRestjson1_deserializeDocumentControlPanel(&sv.ControlPanel, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpDescribeRoutingControl struct { -} - -func (*awsRestjson1_deserializeOpDescribeRoutingControl) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDescribeRoutingControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeRoutingControl(response, &metadata) - } - output := &DescribeRoutingControlOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentDescribeRoutingControlOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDescribeRoutingControl(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentDescribeRoutingControlOutput(v **DescribeRoutingControlOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DescribeRoutingControlOutput - if *v == nil { - sv = &DescribeRoutingControlOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "RoutingControl": - if err := awsRestjson1_deserializeDocumentRoutingControl(&sv.RoutingControl, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpDescribeSafetyRule struct { -} - -func (*awsRestjson1_deserializeOpDescribeSafetyRule) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDescribeSafetyRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeSafetyRule(response, &metadata) - } - output := &DescribeSafetyRuleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentDescribeSafetyRuleOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDescribeSafetyRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentDescribeSafetyRuleOutput(v **DescribeSafetyRuleOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DescribeSafetyRuleOutput - if *v == nil { - sv = &DescribeSafetyRuleOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AssertionRule": - if err := awsRestjson1_deserializeDocumentAssertionRule(&sv.AssertionRule, value); err != nil { - return err - } - - case "GatingRule": - if err := awsRestjson1_deserializeDocumentGatingRule(&sv.GatingRule, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListAssociatedRoute53HealthChecks struct { -} - -func (*awsRestjson1_deserializeOpListAssociatedRoute53HealthChecks) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListAssociatedRoute53HealthChecks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAssociatedRoute53HealthChecks(response, &metadata) - } - output := &ListAssociatedRoute53HealthChecksOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListAssociatedRoute53HealthChecksOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListAssociatedRoute53HealthChecks(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListAssociatedRoute53HealthChecksOutput(v **ListAssociatedRoute53HealthChecksOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListAssociatedRoute53HealthChecksOutput - if *v == nil { - sv = &ListAssociatedRoute53HealthChecksOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "HealthCheckIds": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.HealthCheckIds, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListClusters struct { -} - -func (*awsRestjson1_deserializeOpListClusters) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListClusters) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListClusters(response, &metadata) - } - output := &ListClustersOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListClustersOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListClusters(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListClustersOutput(v **ListClustersOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListClustersOutput - if *v == nil { - sv = &ListClustersOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Clusters": - if err := awsRestjson1_deserializeDocument__listOfCluster(&sv.Clusters, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListControlPanels struct { -} - -func (*awsRestjson1_deserializeOpListControlPanels) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListControlPanels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListControlPanels(response, &metadata) - } - output := &ListControlPanelsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListControlPanelsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListControlPanels(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListControlPanelsOutput(v **ListControlPanelsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListControlPanelsOutput - if *v == nil { - sv = &ListControlPanelsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ControlPanels": - if err := awsRestjson1_deserializeDocument__listOfControlPanel(&sv.ControlPanels, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListRoutingControls struct { -} - -func (*awsRestjson1_deserializeOpListRoutingControls) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListRoutingControls) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListRoutingControls(response, &metadata) - } - output := &ListRoutingControlsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListRoutingControlsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListRoutingControls(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListRoutingControlsOutput(v **ListRoutingControlsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListRoutingControlsOutput - if *v == nil { - sv = &ListRoutingControlsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "RoutingControls": - if err := awsRestjson1_deserializeDocument__listOfRoutingControl(&sv.RoutingControls, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListSafetyRules struct { -} - -func (*awsRestjson1_deserializeOpListSafetyRules) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListSafetyRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListSafetyRules(response, &metadata) - } - output := &ListSafetyRulesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListSafetyRulesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListSafetyRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListSafetyRulesOutput(v **ListSafetyRulesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListSafetyRulesOutput - if *v == nil { - sv = &ListSafetyRulesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "SafetyRules": - if err := awsRestjson1_deserializeDocument__listOfRule(&sv.SafetyRules, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateControlPanel struct { -} - -func (*awsRestjson1_deserializeOpUpdateControlPanel) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateControlPanel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateControlPanel(response, &metadata) - } - output := &UpdateControlPanelOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateControlPanelOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateControlPanel(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateControlPanelOutput(v **UpdateControlPanelOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateControlPanelOutput - if *v == nil { - sv = &UpdateControlPanelOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ControlPanel": - if err := awsRestjson1_deserializeDocumentControlPanel(&sv.ControlPanel, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateRoutingControl struct { -} - -func (*awsRestjson1_deserializeOpUpdateRoutingControl) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateRoutingControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateRoutingControl(response, &metadata) - } - output := &UpdateRoutingControlOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateRoutingControlOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateRoutingControl(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateRoutingControlOutput(v **UpdateRoutingControlOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateRoutingControlOutput - if *v == nil { - sv = &UpdateRoutingControlOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "RoutingControl": - if err := awsRestjson1_deserializeDocumentRoutingControl(&sv.RoutingControl, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateSafetyRule struct { -} - -func (*awsRestjson1_deserializeOpUpdateSafetyRule) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateSafetyRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateSafetyRule(response, &metadata) - } - output := &UpdateSafetyRuleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateSafetyRuleOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateSafetyRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateSafetyRuleOutput(v **UpdateSafetyRuleOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateSafetyRuleOutput - if *v == nil { - sv = &UpdateSafetyRuleOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AssertionRule": - if err := awsRestjson1_deserializeDocumentAssertionRule(&sv.AssertionRule, value); err != nil { - return err - } - - case "GatingRule": - if err := awsRestjson1_deserializeDocumentGatingRule(&sv.GatingRule, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDeniedException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ConflictException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentConflictException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InternalServerException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ServiceQuotaExceededException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ThrottlingException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ValidationException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentValidationException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfCluster(v *[]types.Cluster, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.Cluster - if *v == nil { - cv = []types.Cluster{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Cluster - destAddr := &col - if err := awsRestjson1_deserializeDocumentCluster(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfClusterEndpoint(v *[]types.ClusterEndpoint, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ClusterEndpoint - if *v == nil { - cv = []types.ClusterEndpoint{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ClusterEndpoint - destAddr := &col - if err := awsRestjson1_deserializeDocumentClusterEndpoint(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfControlPanel(v *[]types.ControlPanel, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ControlPanel - if *v == nil { - cv = []types.ControlPanel{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ControlPanel - destAddr := &col - if err := awsRestjson1_deserializeDocumentControlPanel(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfRoutingControl(v *[]types.RoutingControl, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.RoutingControl - if *v == nil { - cv = []types.RoutingControl{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.RoutingControl - destAddr := &col - if err := awsRestjson1_deserializeDocumentRoutingControl(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfRule(v *[]types.Rule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.Rule - if *v == nil { - cv = []types.Rule{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Rule - destAddr := &col - if err := awsRestjson1_deserializeDocumentRule(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AccessDeniedException - if *v == nil { - sv = &types.AccessDeniedException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAssertionRule(v **types.AssertionRule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AssertionRule - if *v == nil { - sv = &types.AssertionRule{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AssertedControls": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.AssertedControls, value); err != nil { - return err - } - - case "ControlPanelArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ControlPanelArn = ptr.String(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "RuleConfig": - if err := awsRestjson1_deserializeDocumentRuleConfig(&sv.RuleConfig, value); err != nil { - return err - } - - case "SafetyRuleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.SafetyRuleArn = ptr.String(jtv) - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) - } - sv.Status = types.Status(jtv) - } - - case "WaitPeriodMs": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected __integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.WaitPeriodMs = int32(i64) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Cluster - if *v == nil { - sv = &types.Cluster{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ClusterArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ClusterArn = ptr.String(jtv) - } - - case "ClusterEndpoints": - if err := awsRestjson1_deserializeDocument__listOfClusterEndpoint(&sv.ClusterEndpoints, value); err != nil { - return err - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) - } - sv.Status = types.Status(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentClusterEndpoint(v **types.ClusterEndpoint, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ClusterEndpoint - if *v == nil { - sv = &types.ClusterEndpoint{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Endpoint": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMin1Max128 to be of type string, got %T instead", value) - } - sv.Endpoint = ptr.String(jtv) - } - - case "Region": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMin1Max32 to be of type string, got %T instead", value) - } - sv.Region = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ConflictException - if *v == nil { - sv = &types.ConflictException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentControlPanel(v **types.ControlPanel, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ControlPanel - if *v == nil { - sv = &types.ControlPanel{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ClusterArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ClusterArn = ptr.String(jtv) - } - - case "ControlPanelArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ControlPanelArn = ptr.String(jtv) - } - - case "DefaultControlPanel": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) - } - sv.DefaultControlPanel = jtv - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "RoutingControlCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected __integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.RoutingControlCount = int32(i64) - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) - } - sv.Status = types.Status(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentGatingRule(v **types.GatingRule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.GatingRule - if *v == nil { - sv = &types.GatingRule{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ControlPanelArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ControlPanelArn = ptr.String(jtv) - } - - case "GatingControls": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.GatingControls, value); err != nil { - return err - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "RuleConfig": - if err := awsRestjson1_deserializeDocumentRuleConfig(&sv.RuleConfig, value); err != nil { - return err - } - - case "SafetyRuleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.SafetyRuleArn = ptr.String(jtv) - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) - } - sv.Status = types.Status(jtv) - } - - case "TargetControls": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.TargetControls, value); err != nil { - return err - } - - case "WaitPeriodMs": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected __integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.WaitPeriodMs = int32(i64) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.InternalServerException - if *v == nil { - sv = &types.InternalServerException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ResourceNotFoundException - if *v == nil { - sv = &types.ResourceNotFoundException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRoutingControl(v **types.RoutingControl, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RoutingControl - if *v == nil { - sv = &types.RoutingControl{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ControlPanelArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ControlPanelArn = ptr.String(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "RoutingControlArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.RoutingControlArn = ptr.String(jtv) - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) - } - sv.Status = types.Status(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRule(v **types.Rule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Rule - if *v == nil { - sv = &types.Rule{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ASSERTION": - if err := awsRestjson1_deserializeDocumentAssertionRule(&sv.ASSERTION, value); err != nil { - return err - } - - case "GATING": - if err := awsRestjson1_deserializeDocumentGatingRule(&sv.GATING, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRuleConfig(v **types.RuleConfig, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RuleConfig - if *v == nil { - sv = &types.RuleConfig{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Inverted": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) - } - sv.Inverted = jtv - } - - case "Threshold": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected __integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Threshold = int32(i64) - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RuleType to be of type string, got %T instead", value) - } - sv.Type = types.RuleType(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ServiceQuotaExceededException - if *v == nil { - sv = &types.ServiceQuotaExceededException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ThrottlingException - if *v == nil { - sv = &types.ThrottlingException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ValidationException - if *v == nil { - sv = &types.ValidationException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} diff --git a/service/route53recoverycontrolconfig/doc.go b/service/route53recoverycontrolconfig/doc.go deleted file mode 100644 index 9d1b2c3ffa0..00000000000 --- a/service/route53recoverycontrolconfig/doc.go +++ /dev/null @@ -1,8 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -// Package route53recoverycontrolconfig provides the API client, operations, and -// parameter types for AWS Route53 Recovery Control Config. -// -// Recovery Control Configuration API Reference for Amazon Route 53 Application -// Recovery Controller -package route53recoverycontrolconfig diff --git a/service/route53recoverycontrolconfig/endpoints.go b/service/route53recoverycontrolconfig/endpoints.go deleted file mode 100644 index d7a68b1a250..00000000000 --- a/service/route53recoverycontrolconfig/endpoints.go +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "errors" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - internalendpoints "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/internal/endpoints" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "net/url" -) - -// EndpointResolverOptions is the service endpoint resolver options -type EndpointResolverOptions = internalendpoints.Options - -// EndpointResolver interface for resolving service endpoints. -type EndpointResolver interface { - ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) -} - -var _ EndpointResolver = &internalendpoints.Resolver{} - -// NewDefaultEndpointResolver constructs a new service endpoint resolver -func NewDefaultEndpointResolver() *internalendpoints.Resolver { - return internalendpoints.New() -} - -// EndpointResolverFunc is a helper utility that wraps a function so it satisfies -// the EndpointResolver interface. This is useful when you want to add additional -// endpoint resolving logic, or stub out specific endpoints with custom values. -type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) - -func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { - return fn(region, options) -} - -func resolveDefaultEndpointConfiguration(o *Options) { - if o.EndpointResolver != nil { - return - } - o.EndpointResolver = NewDefaultEndpointResolver() -} - -// EndpointResolverFromURL returns an EndpointResolver configured using the -// provided endpoint url. By default, the resolved endpoint resolver uses the -// client region as signing region, and the endpoint source is set to -// EndpointSourceCustom.You can provide functional options to configure endpoint -// values for the resolved endpoint. -func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { - e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} - for _, fn := range optFns { - fn(&e) - } - - return EndpointResolverFunc( - func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { - if len(e.SigningRegion) == 0 { - e.SigningRegion = region - } - return e, nil - }, - ) -} - -type ResolveEndpoint struct { - Resolver EndpointResolver - Options EndpointResolverOptions -} - -func (*ResolveEndpoint) ID() string { - return "ResolveEndpoint" -} - -func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - if m.Resolver == nil { - return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") - } - - var endpoint aws.Endpoint - endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), m.Options) - if err != nil { - return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) - } - - req.URL, err = url.Parse(endpoint.URL) - if err != nil { - return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) - } - - if len(awsmiddleware.GetSigningName(ctx)) == 0 { - signingName := endpoint.SigningName - if len(signingName) == 0 { - signingName = "route53-recovery-control-config" - } - ctx = awsmiddleware.SetSigningName(ctx, signingName) - } - ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) - ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) - ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) - ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) - return next.HandleSerialize(ctx, in) -} -func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { - return stack.Serialize.Insert(&ResolveEndpoint{ - Resolver: o.EndpointResolver, - Options: o.EndpointOptions, - }, "OperationSerializer", middleware.Before) -} - -func removeResolveEndpointMiddleware(stack *middleware.Stack) error { - _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) - return err -} - -type wrappedEndpointResolver struct { - awsResolver aws.EndpointResolver - resolver EndpointResolver -} - -func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { - if w.awsResolver == nil { - goto fallback - } - endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region) - if err == nil { - return endpoint, nil - } - - if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { - return endpoint, err - } - -fallback: - if w.resolver == nil { - return endpoint, fmt.Errorf("default endpoint resolver provided was nil") - } - return w.resolver.ResolveEndpoint(region, options) -} - -// withEndpointResolver returns an EndpointResolver that first delegates endpoint -// resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError -// error, the resolver will use the the provided fallbackResolver for resolution. -// awsResolver and fallbackResolver must not be nil -func withEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver { - return &wrappedEndpointResolver{ - awsResolver: awsResolver, - resolver: fallbackResolver, - } -} diff --git a/service/route53recoverycontrolconfig/generated.json b/service/route53recoverycontrolconfig/generated.json deleted file mode 100644 index 7ea74bb00b1..00000000000 --- a/service/route53recoverycontrolconfig/generated.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "dependencies": { - "github.com/aws/aws-sdk-go-v2": "v1.4.0", - "github.com/aws/smithy-go": "v1.4.0", - "github.com/jmespath/go-jmespath": "v0.4.0" - }, - "files": [ - "api_client.go", - "api_op_CreateCluster.go", - "api_op_CreateControlPanel.go", - "api_op_CreateRoutingControl.go", - "api_op_CreateSafetyRule.go", - "api_op_DeleteCluster.go", - "api_op_DeleteControlPanel.go", - "api_op_DeleteRoutingControl.go", - "api_op_DeleteSafetyRule.go", - "api_op_DescribeCluster.go", - "api_op_DescribeControlPanel.go", - "api_op_DescribeRoutingControl.go", - "api_op_DescribeSafetyRule.go", - "api_op_ListAssociatedRoute53HealthChecks.go", - "api_op_ListClusters.go", - "api_op_ListControlPanels.go", - "api_op_ListRoutingControls.go", - "api_op_ListSafetyRules.go", - "api_op_UpdateControlPanel.go", - "api_op_UpdateRoutingControl.go", - "api_op_UpdateSafetyRule.go", - "deserializers.go", - "doc.go", - "endpoints.go", - "generated.json", - "internal/endpoints/endpoints.go", - "internal/endpoints/endpoints_test.go", - "protocol_test.go", - "serializers.go", - "types/enums.go", - "types/errors.go", - "types/types.go", - "validators.go" - ], - "go": "1.15", - "module": "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig", - "unstable": false -} diff --git a/service/route53recoverycontrolconfig/go.mod b/service/route53recoverycontrolconfig/go.mod deleted file mode 100644 index ec6cb0d5d92..00000000000 --- a/service/route53recoverycontrolconfig/go.mod +++ /dev/null @@ -1,11 +0,0 @@ -module github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig - -go 1.15 - -require ( - github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 - github.com/jmespath/go-jmespath v0.4.0 -) - -replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53recoverycontrolconfig/go.sum b/service/route53recoverycontrolconfig/go.sum deleted file mode 100644 index 83be82a84e4..00000000000 --- a/service/route53recoverycontrolconfig/go.sum +++ /dev/null @@ -1,20 +0,0 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= -github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/route53recoverycontrolconfig/go_module_metadata.go b/service/route53recoverycontrolconfig/go_module_metadata.go deleted file mode 100644 index 2526db49c3e..00000000000 --- a/service/route53recoverycontrolconfig/go_module_metadata.go +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. - -package route53recoverycontrolconfig - -// goModuleVersion is the tagged release for this module -const goModuleVersion = "tip" diff --git a/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go b/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go deleted file mode 100644 index 68a5bd6f86a..00000000000 --- a/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package endpoints - -import ( - "github.com/aws/aws-sdk-go-v2/aws" - "github.com/aws/aws-sdk-go-v2/internal/endpoints" - "regexp" -) - -// Options is the endpoint resolver configuration options -type Options struct { - DisableHTTPS bool -} - -// Resolver Route53 Recovery Control Config endpoint resolver -type Resolver struct { - partitions endpoints.Partitions -} - -// ResolveEndpoint resolves the service endpoint for the given region and options -func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { - if len(region) == 0 { - return endpoint, &aws.MissingRegionError{} - } - - opt := endpoints.Options{ - DisableHTTPS: options.DisableHTTPS, - } - return r.partitions.ResolveEndpoint(region, opt) -} - -// New returns a new Resolver -func New() *Resolver { - return &Resolver{ - partitions: defaultPartitions, - } -} - -var partitionRegexp = struct { - Aws *regexp.Regexp - AwsCn *regexp.Regexp - AwsIso *regexp.Regexp - AwsIsoB *regexp.Regexp - AwsUsGov *regexp.Regexp -}{ - - Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), - AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), - AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), - AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), - AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), -} - -var defaultPartitions = endpoints.Partitions{ - { - ID: "aws", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-control-config.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.Aws, - IsRegionalized: true, - }, - { - ID: "aws-cn", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-control-config.{region}.amazonaws.com.cn", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsCn, - IsRegionalized: true, - }, - { - ID: "aws-iso", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-control-config.{region}.c2s.ic.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsIso, - IsRegionalized: true, - }, - { - ID: "aws-iso-b", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-control-config.{region}.sc2s.sgov.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsIsoB, - IsRegionalized: true, - }, - { - ID: "aws-us-gov", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-control-config.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsUsGov, - IsRegionalized: true, - }, -} diff --git a/service/route53recoverycontrolconfig/internal/endpoints/endpoints_test.go b/service/route53recoverycontrolconfig/internal/endpoints/endpoints_test.go deleted file mode 100644 index 08e5da2d833..00000000000 --- a/service/route53recoverycontrolconfig/internal/endpoints/endpoints_test.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package endpoints - -import ( - "testing" -) - -func TestRegexCompile(t *testing.T) { - _ = defaultPartitions -} diff --git a/service/route53recoverycontrolconfig/protocol_test.go b/service/route53recoverycontrolconfig/protocol_test.go deleted file mode 100644 index df77b852de3..00000000000 --- a/service/route53recoverycontrolconfig/protocol_test.go +++ /dev/null @@ -1,3 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig diff --git a/service/route53recoverycontrolconfig/serializers.go b/service/route53recoverycontrolconfig/serializers.go deleted file mode 100644 index 70716092ab3..00000000000 --- a/service/route53recoverycontrolconfig/serializers.go +++ /dev/null @@ -1,1490 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "bytes" - "context" - "fmt" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - smithy "github.com/aws/smithy-go" - "github.com/aws/smithy-go/encoding/httpbinding" - smithyjson "github.com/aws/smithy-go/encoding/json" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -type awsRestjson1_serializeOpCreateCluster struct { -} - -func (*awsRestjson1_serializeOpCreateCluster) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpCreateCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateClusterInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cluster") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateClusterInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsCreateClusterInput(v *CreateClusterInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentCreateClusterInput(v *CreateClusterInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientToken != nil { - ok := object.Key("ClientToken") - ok.String(*v.ClientToken) - } - - if v.ClusterName != nil { - ok := object.Key("ClusterName") - ok.String(*v.ClusterName) - } - - return nil -} - -type awsRestjson1_serializeOpCreateControlPanel struct { -} - -func (*awsRestjson1_serializeOpCreateControlPanel) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpCreateControlPanel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateControlPanelInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/controlpanel") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateControlPanelInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsCreateControlPanelInput(v *CreateControlPanelInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentCreateControlPanelInput(v *CreateControlPanelInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientToken != nil { - ok := object.Key("ClientToken") - ok.String(*v.ClientToken) - } - - if v.ClusterArn != nil { - ok := object.Key("ClusterArn") - ok.String(*v.ClusterArn) - } - - if v.ControlPanelName != nil { - ok := object.Key("ControlPanelName") - ok.String(*v.ControlPanelName) - } - - return nil -} - -type awsRestjson1_serializeOpCreateRoutingControl struct { -} - -func (*awsRestjson1_serializeOpCreateRoutingControl) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpCreateRoutingControl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateRoutingControlInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/routingcontrol") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateRoutingControlInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsCreateRoutingControlInput(v *CreateRoutingControlInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentCreateRoutingControlInput(v *CreateRoutingControlInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ClientToken != nil { - ok := object.Key("ClientToken") - ok.String(*v.ClientToken) - } - - if v.ClusterArn != nil { - ok := object.Key("ClusterArn") - ok.String(*v.ClusterArn) - } - - if v.ControlPanelArn != nil { - ok := object.Key("ControlPanelArn") - ok.String(*v.ControlPanelArn) - } - - if v.RoutingControlName != nil { - ok := object.Key("RoutingControlName") - ok.String(*v.RoutingControlName) - } - - return nil -} - -type awsRestjson1_serializeOpCreateSafetyRule struct { -} - -func (*awsRestjson1_serializeOpCreateSafetyRule) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpCreateSafetyRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateSafetyRuleInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/safetyrule") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateSafetyRuleInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsCreateSafetyRuleInput(v *CreateSafetyRuleInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentCreateSafetyRuleInput(v *CreateSafetyRuleInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AssertionRule != nil { - ok := object.Key("AssertionRule") - if err := awsRestjson1_serializeDocumentNewAssertionRule(v.AssertionRule, ok); err != nil { - return err - } - } - - if v.ClientToken != nil { - ok := object.Key("ClientToken") - ok.String(*v.ClientToken) - } - - if v.GatingRule != nil { - ok := object.Key("GatingRule") - if err := awsRestjson1_serializeDocumentNewGatingRule(v.GatingRule, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDeleteCluster struct { -} - -func (*awsRestjson1_serializeOpDeleteCluster) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDeleteCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteClusterInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cluster/{ClusterArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDeleteClusterInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDeleteClusterInput(v *DeleteClusterInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } - if v.ClusterArn != nil { - if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDeleteControlPanel struct { -} - -func (*awsRestjson1_serializeOpDeleteControlPanel) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDeleteControlPanel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteControlPanelInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/controlpanel/{ControlPanelArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDeleteControlPanelInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDeleteControlPanelInput(v *DeleteControlPanelInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ControlPanelArn == nil || len(*v.ControlPanelArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ControlPanelArn must not be empty")} - } - if v.ControlPanelArn != nil { - if err := encoder.SetURI("ControlPanelArn").String(*v.ControlPanelArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDeleteRoutingControl struct { -} - -func (*awsRestjson1_serializeOpDeleteRoutingControl) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDeleteRoutingControl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteRoutingControlInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/routingcontrol/{RoutingControlArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDeleteRoutingControlInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDeleteRoutingControlInput(v *DeleteRoutingControlInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.RoutingControlArn == nil || len(*v.RoutingControlArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingControlArn must not be empty")} - } - if v.RoutingControlArn != nil { - if err := encoder.SetURI("RoutingControlArn").String(*v.RoutingControlArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDeleteSafetyRule struct { -} - -func (*awsRestjson1_serializeOpDeleteSafetyRule) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDeleteSafetyRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteSafetyRuleInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/safetyrule/{SafetyRuleArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDeleteSafetyRuleInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDeleteSafetyRuleInput(v *DeleteSafetyRuleInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.SafetyRuleArn == nil || len(*v.SafetyRuleArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SafetyRuleArn must not be empty")} - } - if v.SafetyRuleArn != nil { - if err := encoder.SetURI("SafetyRuleArn").String(*v.SafetyRuleArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDescribeCluster struct { -} - -func (*awsRestjson1_serializeOpDescribeCluster) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDescribeCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DescribeClusterInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cluster/{ClusterArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDescribeClusterInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDescribeClusterInput(v *DescribeClusterInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } - if v.ClusterArn != nil { - if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDescribeControlPanel struct { -} - -func (*awsRestjson1_serializeOpDescribeControlPanel) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDescribeControlPanel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DescribeControlPanelInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/controlpanel/{ControlPanelArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDescribeControlPanelInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDescribeControlPanelInput(v *DescribeControlPanelInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ControlPanelArn == nil || len(*v.ControlPanelArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ControlPanelArn must not be empty")} - } - if v.ControlPanelArn != nil { - if err := encoder.SetURI("ControlPanelArn").String(*v.ControlPanelArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDescribeRoutingControl struct { -} - -func (*awsRestjson1_serializeOpDescribeRoutingControl) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDescribeRoutingControl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DescribeRoutingControlInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/routingcontrol/{RoutingControlArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDescribeRoutingControlInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDescribeRoutingControlInput(v *DescribeRoutingControlInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.RoutingControlArn == nil || len(*v.RoutingControlArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingControlArn must not be empty")} - } - if v.RoutingControlArn != nil { - if err := encoder.SetURI("RoutingControlArn").String(*v.RoutingControlArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDescribeSafetyRule struct { -} - -func (*awsRestjson1_serializeOpDescribeSafetyRule) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDescribeSafetyRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DescribeSafetyRuleInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/safetyrule/{SafetyRuleArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDescribeSafetyRuleInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDescribeSafetyRuleInput(v *DescribeSafetyRuleInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.SafetyRuleArn == nil || len(*v.SafetyRuleArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SafetyRuleArn must not be empty")} - } - if v.SafetyRuleArn != nil { - if err := encoder.SetURI("SafetyRuleArn").String(*v.SafetyRuleArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpListAssociatedRoute53HealthChecks struct { -} - -func (*awsRestjson1_serializeOpListAssociatedRoute53HealthChecks) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListAssociatedRoute53HealthChecks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListAssociatedRoute53HealthChecksInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListAssociatedRoute53HealthChecksInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListAssociatedRoute53HealthChecksInput(v *ListAssociatedRoute53HealthChecksInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("NextToken").String(*v.NextToken) - } - - if v.RoutingControlArn == nil || len(*v.RoutingControlArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingControlArn must not be empty")} - } - if v.RoutingControlArn != nil { - if err := encoder.SetURI("RoutingControlArn").String(*v.RoutingControlArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpListClusters struct { -} - -func (*awsRestjson1_serializeOpListClusters) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListClusters) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListClustersInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cluster") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListClustersInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListClustersInput(v *ListClustersInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("NextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpListControlPanels struct { -} - -func (*awsRestjson1_serializeOpListControlPanels) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListControlPanels) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListControlPanelsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/controlpanels") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListControlPanelsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListControlPanelsInput(v *ListControlPanelsInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ClusterArn != nil { - encoder.SetQuery("ClusterArn").String(*v.ClusterArn) - } - - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("NextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpListRoutingControls struct { -} - -func (*awsRestjson1_serializeOpListRoutingControls) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListRoutingControls) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListRoutingControlsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/controlpanel/{ControlPanelArn}/routingcontrols") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListRoutingControlsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListRoutingControlsInput(v *ListRoutingControlsInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ControlPanelArn == nil || len(*v.ControlPanelArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ControlPanelArn must not be empty")} - } - if v.ControlPanelArn != nil { - if err := encoder.SetURI("ControlPanelArn").String(*v.ControlPanelArn); err != nil { - return err - } - } - - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("NextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpListSafetyRules struct { -} - -func (*awsRestjson1_serializeOpListSafetyRules) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListSafetyRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListSafetyRulesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/controlpanel/{ControlPanelArn}/safetyrules") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListSafetyRulesInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListSafetyRulesInput(v *ListSafetyRulesInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ControlPanelArn == nil || len(*v.ControlPanelArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ControlPanelArn must not be empty")} - } - if v.ControlPanelArn != nil { - if err := encoder.SetURI("ControlPanelArn").String(*v.ControlPanelArn); err != nil { - return err - } - } - - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("NextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpUpdateControlPanel struct { -} - -func (*awsRestjson1_serializeOpUpdateControlPanel) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateControlPanel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateControlPanelInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/controlpanel") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateControlPanelInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateControlPanelInput(v *UpdateControlPanelInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateControlPanelInput(v *UpdateControlPanelInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ControlPanelArn != nil { - ok := object.Key("ControlPanelArn") - ok.String(*v.ControlPanelArn) - } - - if v.ControlPanelName != nil { - ok := object.Key("ControlPanelName") - ok.String(*v.ControlPanelName) - } - - return nil -} - -type awsRestjson1_serializeOpUpdateRoutingControl struct { -} - -func (*awsRestjson1_serializeOpUpdateRoutingControl) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateRoutingControl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateRoutingControlInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/routingcontrol") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateRoutingControlInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateRoutingControlInput(v *UpdateRoutingControlInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateRoutingControlInput(v *UpdateRoutingControlInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RoutingControlArn != nil { - ok := object.Key("RoutingControlArn") - ok.String(*v.RoutingControlArn) - } - - if v.RoutingControlName != nil { - ok := object.Key("RoutingControlName") - ok.String(*v.RoutingControlName) - } - - return nil -} - -type awsRestjson1_serializeOpUpdateSafetyRule struct { -} - -func (*awsRestjson1_serializeOpUpdateSafetyRule) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateSafetyRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateSafetyRuleInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/safetyrule") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateSafetyRuleInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateSafetyRuleInput(v *UpdateSafetyRuleInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateSafetyRuleInput(v *UpdateSafetyRuleInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AssertionRuleUpdate != nil { - ok := object.Key("AssertionRuleUpdate") - if err := awsRestjson1_serializeDocumentAssertionRuleUpdate(v.AssertionRuleUpdate, ok); err != nil { - return err - } - } - - if v.GatingRuleUpdate != nil { - ok := object.Key("GatingRuleUpdate") - if err := awsRestjson1_serializeDocumentGatingRuleUpdate(v.GatingRuleUpdate, ok); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsRestjson1_serializeDocumentAssertionRuleUpdate(v *types.AssertionRuleUpdate, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.SafetyRuleArn != nil { - ok := object.Key("SafetyRuleArn") - ok.String(*v.SafetyRuleArn) - } - - { - ok := object.Key("WaitPeriodMs") - ok.Integer(v.WaitPeriodMs) - } - - return nil -} - -func awsRestjson1_serializeDocumentGatingRuleUpdate(v *types.GatingRuleUpdate, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.SafetyRuleArn != nil { - ok := object.Key("SafetyRuleArn") - ok.String(*v.SafetyRuleArn) - } - - { - ok := object.Key("WaitPeriodMs") - ok.Integer(v.WaitPeriodMs) - } - - return nil -} - -func awsRestjson1_serializeDocumentNewAssertionRule(v *types.NewAssertionRule, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AssertedControls != nil { - ok := object.Key("AssertedControls") - if err := awsRestjson1_serializeDocument__listOf__string(v.AssertedControls, ok); err != nil { - return err - } - } - - if v.ControlPanelArn != nil { - ok := object.Key("ControlPanelArn") - ok.String(*v.ControlPanelArn) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.RuleConfig != nil { - ok := object.Key("RuleConfig") - if err := awsRestjson1_serializeDocumentRuleConfig(v.RuleConfig, ok); err != nil { - return err - } - } - - { - ok := object.Key("WaitPeriodMs") - ok.Integer(v.WaitPeriodMs) - } - - return nil -} - -func awsRestjson1_serializeDocumentNewGatingRule(v *types.NewGatingRule, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ControlPanelArn != nil { - ok := object.Key("ControlPanelArn") - ok.String(*v.ControlPanelArn) - } - - if v.GatingControls != nil { - ok := object.Key("GatingControls") - if err := awsRestjson1_serializeDocument__listOf__string(v.GatingControls, ok); err != nil { - return err - } - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.RuleConfig != nil { - ok := object.Key("RuleConfig") - if err := awsRestjson1_serializeDocumentRuleConfig(v.RuleConfig, ok); err != nil { - return err - } - } - - if v.TargetControls != nil { - ok := object.Key("TargetControls") - if err := awsRestjson1_serializeDocument__listOf__string(v.TargetControls, ok); err != nil { - return err - } - } - - { - ok := object.Key("WaitPeriodMs") - ok.Integer(v.WaitPeriodMs) - } - - return nil -} - -func awsRestjson1_serializeDocumentRuleConfig(v *types.RuleConfig, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - { - ok := object.Key("Inverted") - ok.Boolean(v.Inverted) - } - - { - ok := object.Key("Threshold") - ok.Integer(v.Threshold) - } - - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) - } - - return nil -} diff --git a/service/route53recoverycontrolconfig/types/enums.go b/service/route53recoverycontrolconfig/types/enums.go deleted file mode 100644 index bc91a005d1b..00000000000 --- a/service/route53recoverycontrolconfig/types/enums.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -type RuleType string - -// Enum values for RuleType -const ( - RuleTypeAtleast RuleType = "ATLEAST" - RuleTypeAnd RuleType = "AND" - RuleTypeOr RuleType = "OR" -) - -// Values returns all known values for RuleType. Note that this can be expanded in -// the future, and so it is only as up to date as the client. The ordering of this -// slice is not guaranteed to be stable across updates. -func (RuleType) Values() []RuleType { - return []RuleType{ - "ATLEAST", - "AND", - "OR", - } -} - -type Status string - -// Enum values for Status -const ( - StatusPending Status = "PENDING" - StatusDeployed Status = "DEPLOYED" - StatusPendingDeletion Status = "PENDING_DELETION" -) - -// Values returns all known values for Status. Note that this can be expanded in -// the future, and so it is only as up to date as the client. The ordering of this -// slice is not guaranteed to be stable across updates. -func (Status) Values() []Status { - return []Status{ - "PENDING", - "DEPLOYED", - "PENDING_DELETION", - } -} diff --git a/service/route53recoverycontrolconfig/types/errors.go b/service/route53recoverycontrolconfig/types/errors.go deleted file mode 100644 index 31fd73698ac..00000000000 --- a/service/route53recoverycontrolconfig/types/errors.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -import ( - "fmt" - smithy "github.com/aws/smithy-go" -) - -// 403 response - AccessDeniedException. You do not have sufficient access to -// perform this action. -type AccessDeniedException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *AccessDeniedException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } -func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// 409 response - ConflictException. -type ConflictException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ConflictException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ConflictException) ErrorCode() string { return "ConflictException" } -func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// 500 response - InternalServiceError. Temporary service error. Retry the request. -type InternalServerException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *InternalServerException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } -func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } - -// 404 response - The query string contains a syntax error or resource not found. -type ResourceNotFoundException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ResourceNotFoundException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } -func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// 402 response -type ServiceQuotaExceededException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ServiceQuotaExceededException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ServiceQuotaExceededException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } -func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// 429 response - ThrottlingException. -type ThrottlingException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ThrottlingException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ThrottlingException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } -func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// 400 response - Multiple causes. For example, you might have a malformed query -// string and input parameter might be out of range, or you used parameters -// together incorrectly. -type ValidationException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ValidationException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ValidationException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ValidationException) ErrorCode() string { return "ValidationException" } -func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoverycontrolconfig/types/types.go b/service/route53recoverycontrolconfig/types/types.go deleted file mode 100644 index 0b293288d2e..00000000000 --- a/service/route53recoverycontrolconfig/types/types.go +++ /dev/null @@ -1,399 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -import ( - smithydocument "github.com/aws/smithy-go/document" -) - -// An assertion rule enforces that, when a routing control state is changed, the -// criteria set by the rule configuration is met. Otherwise, the change to the -// routing control is not accepted. -type AssertionRule struct { - - // The routing controls that are part of transactions that are evaluated to - // determine if a request to change a routing control state is allowed. For - // example, you might include three routing controls, one for each of three Amazon - // Web Services Regions. - // - // This member is required. - AssertedControls []string - - // The Amazon Resource Name (ARN) of the control panel. - // - // This member is required. - ControlPanelArn *string - - // Name of the assertion rule. You can use any non-white space character in the - // name. - // - // This member is required. - Name *string - - // The criteria that you set for specific assertion controls (routing controls) - // that designate how many controls must be enabled as the result of a transaction. - // For example, if you have three assertion controls, you might specify atleast 2 - // for your rule configuration. This means that at least two assertion controls - // must be enabled, so that at least two Amazon Web Services Regions are enabled. - // - // This member is required. - RuleConfig *RuleConfig - - // The Amazon Resource Name (ARN) of the assertion rule. - // - // This member is required. - SafetyRuleArn *string - - // The deployment status of an assertion rule. Status can be one of the following: - // PENDING, DEPLOYED, PENDING_DELETION. - // - // This member is required. - Status Status - - // An evaluation period, in milliseconds (ms), during which any request against the - // target routing controls will fail. This helps prevent "flapping" of state. The - // wait period is 5000 ms by default, but you can choose a custom value. - // - // This member is required. - WaitPeriodMs int32 - - noSmithyDocumentSerde -} - -// An update to an assertion rule. You can update the name or the evaluation period -// (wait period). If you don't specify one of the items to update, the item is -// unchanged. -type AssertionRuleUpdate struct { - - // The name of the assertion rule. You can use any non-white space character in the - // name. - // - // This member is required. - Name *string - - // The Amazon Resource Name (ARN) of the assertion rule. - // - // This member is required. - SafetyRuleArn *string - - // An evaluation period, in milliseconds (ms), during which any request against the - // target routing controls will fail. This helps prevent "flapping" of state. The - // wait period is 5000 ms by default, but you can choose a custom value. - // - // This member is required. - WaitPeriodMs int32 - - noSmithyDocumentSerde -} - -// A cluster is a set of five consensus-forming Regional endpoints that represent -// the infrastructure that hosts your routing controls. Typically, you host -// together on one cluster all of the routing controls for your applications. -type Cluster struct { - - // The Amazon Resource Name (ARN) of the cluster. - ClusterArn *string - - // Endpoints for a cluster. Specify one of these endpoints when you want to set or - // retrieve a routing control state in the cluster. To get or update the routing - // control state, see the Amazon Route 53 Application Recovery Controller Cluster - // (Data Plane) Actions. - ClusterEndpoints []ClusterEndpoint - - // The name of the cluster. - Name *string - - // Deployment status of a resource. Status can be one of the following: PENDING, - // DEPLOYED, PENDING_DELETION. - Status Status - - noSmithyDocumentSerde -} - -// A cluster endpoint. Specify an endpoint when you want to set or retrieve a -// routing control state in the cluster. -type ClusterEndpoint struct { - - // A cluster endpoint. Specify an endpoint and Amazon Web Services Region when you - // want to set or retrieve a routing control state in the cluster. To get or update - // the routing control state, see the Amazon Route 53 Application Recovery - // Controller Cluster (Data Plane) Actions. - Endpoint *string - - // The Amazon Web Services Region for a cluster endpoint. - Region *string - - noSmithyDocumentSerde -} - -// A control panel represents a group of routing controls that can be changed -// together in a single transaction. -type ControlPanel struct { - - // The Amazon Resource Name (ARN) of the cluster that includes the control panel. - ClusterArn *string - - // The Amazon Resource Name (ARN) of the control panel. - ControlPanelArn *string - - // A flag that Amazon Route 53 Application Recovery Controller sets to true to - // designate the default control panel for a cluster. When you create a cluster, - // Amazon Route 53 Application Recovery Controller creates a control panel, and - // sets this flag for that control panel. If you create a control panel yourself, - // this flag is set to false. - DefaultControlPanel bool - - // The name of the control panel. You can use any non-white space character in the - // name. - Name *string - - // The number of routing controls in the control panel. - RoutingControlCount int32 - - // The deployment status of control panel. Status can be one of the following: - // PENDING, DEPLOYED, PENDING_DELETION. - Status Status - - noSmithyDocumentSerde -} - -// A gating rule verifies that a set of gating controls evaluates as true, based on -// a rule configuration that you specify. If the gating rule evaluates to true, -// Amazon Route 53 Application Recovery Controller allows a set of routing control -// state changes to run and complete against the set of target controls. -type GatingRule struct { - - // The Amazon Resource Name (ARN) of the control panel. - // - // This member is required. - ControlPanelArn *string - - // The gating controls for the gating rule. That is, routing controls that are - // evaluated by the rule configuration that you specify. - // - // This member is required. - GatingControls []string - - // The name for the gating rule. - // - // This member is required. - Name *string - - // The criteria that you set for specific gating controls (routing controls) that - // designates how many controls must be enabled to allow you to change (set or - // unset) the target controls. - // - // This member is required. - RuleConfig *RuleConfig - - // The Amazon Resource Name (ARN) of the gating rule. - // - // This member is required. - SafetyRuleArn *string - - // The deployment status of a gating rule. Status can be one of the following: - // PENDING, DEPLOYED, PENDING_DELETION. - // - // This member is required. - Status Status - - // Routing controls that can only be set or unset if the specified RuleConfig - // evaluates to true for the specified GatingControls. For example, say you have - // three gating controls, one for each of three Amazon Web Services Regions. Now - // you specify ATLEAST 2 as your RuleConfig. With these settings, you can only - // change (set or unset) the routing controls that you have specified as - // TargetControls if that rule evaluates to true. In other words, your ability to - // change the routing controls that you have specified as TargetControls is gated - // by the rule that you set for the routing controls in GatingControls. - // - // This member is required. - TargetControls []string - - // An evaluation period, in milliseconds (ms), during which any request against the - // target routing controls will fail. This helps prevent "flapping" of state. The - // wait period is 5000 ms by default, but you can choose a custom value. - // - // This member is required. - WaitPeriodMs int32 - - noSmithyDocumentSerde -} - -// Update to a gating rule. You can update the name or the evaluation period (wait -// period). If you don't specify one of the items to update, the item is unchanged. -type GatingRuleUpdate struct { - - // The name for the gating rule. - // - // This member is required. - Name *string - - // The Amazon Resource Name (ARN) of the gating rule. - // - // This member is required. - SafetyRuleArn *string - - // An evaluation period, in milliseconds (ms), during which any request against the - // target routing controls will fail. This helps prevent "flapping" of state. The - // wait period is 5000 ms by default, but you can choose a custom value. - // - // This member is required. - WaitPeriodMs int32 - - noSmithyDocumentSerde -} - -// A new assertion rule for a control panel. -type NewAssertionRule struct { - - // The routing controls that are part of transactions that are evaluated to - // determine if a request to change a routing control state is allowed. For - // example, you might include three routing controls, one for each of three Amazon - // Web Services Regions. - // - // This member is required. - AssertedControls []string - - // The Amazon Resource Name (ARN) for the control panel. - // - // This member is required. - ControlPanelArn *string - - // The name of the assertion rule. You can use any non-white space character in the - // name. - // - // This member is required. - Name *string - - // The criteria that you set for specific assertion controls (routing controls) - // that designate how many controls must be enabled as the result of a transaction. - // For example, if you have three assertion controls, you might specify atleast 2 - // for your rule configuration. This means that at least two assertion controls - // must be enabled, so that at least two Amazon Web Services Regions are enabled. - // - // This member is required. - RuleConfig *RuleConfig - - // An evaluation period, in milliseconds (ms), during which any request against the - // target routing controls will fail. This helps prevent "flapping" of state. The - // wait period is 5000 ms by default, but you can choose a custom value. - // - // This member is required. - WaitPeriodMs int32 - - noSmithyDocumentSerde -} - -// A new gating rule for a control panel. -type NewGatingRule struct { - - // The Amazon Resource Name (ARN) of the control panel. - // - // This member is required. - ControlPanelArn *string - - // The gating controls for the new gating rule. That is, routing controls that are - // evaluated by the rule configuration that you specify. - // - // This member is required. - GatingControls []string - - // The name for the new gating rule. - // - // This member is required. - Name *string - - // The criteria that you set for specific gating controls (routing controls) that - // designates how many controls must be enabled to allow you to change (set or - // unset) the target controls. - // - // This member is required. - RuleConfig *RuleConfig - - // Routing controls that can only be set or unset if the specified RuleConfig - // evaluates to true for the specified GatingControls. For example, say you have - // three gating controls, one for each of three Amazon Web Services Regions. Now - // you specify AtLeast 2 as your RuleConfig. With these settings, you can only - // change (set or unset) the routing controls that you have specified as - // TargetControls if that rule evaluates to true. In other words, your ability to - // change the routing controls that you have specified as TargetControls is gated - // by the rule that you set for the routing controls in GatingControls. - // - // This member is required. - TargetControls []string - - // An evaluation period, in milliseconds (ms), during which any request against the - // target routing controls will fail. This helps prevent "flapping" of state. The - // wait period is 5000 ms by default, but you can choose a custom value. - // - // This member is required. - WaitPeriodMs int32 - - noSmithyDocumentSerde -} - -// A routing control has one of two states: ON and OFF. You can map the routing -// control state to the state of an Amazon Route 53 health check, which can be used -// to control traffic routing. -type RoutingControl struct { - - // The Amazon Resource Name (ARN) of the control panel that includes the routing - // control. - ControlPanelArn *string - - // The name of the routing control. - Name *string - - // The Amazon Resource Name (ARN) of the routing control. - RoutingControlArn *string - - // The deployment status of a routing control. Status can be one of the following: - // PENDING, DEPLOYED, PENDING_DELETION. - Status Status - - noSmithyDocumentSerde -} - -// A safety rule. A safety rule can be an assertion rule or a gating rule. -type Rule struct { - - // An assertion rule enforces that, when a routing control state is changed, the - // criteria set by the rule configuration is met. Otherwise, the change to the - // routing control is not accepted. - ASSERTION *AssertionRule - - // A gating rule verifies that a set of gating controls evaluates as true, based on - // a rule configuration that you specify. If the gating rule evaluates to true, - // Amazon Route 53 Application Recovery Controller allows a set of routing control - // state changes to run and complete against the set of target controls. - GATING *GatingRule - - noSmithyDocumentSerde -} - -// The rule configuration for an assertion rule. That is, the criteria that you set -// for specific assertion controls (routing controls) that specify how many -// controls must be enabled after a transaction completes. -type RuleConfig struct { - - // Logical negation of the rule. If the rule would usually evaluate true, it's - // evaluated as false, and vice versa. - // - // This member is required. - Inverted bool - - // The value of N, when you specify an ATLEAST rule type. That is, Threshold is the - // number of controls that must be set when you specify an ATLEAST type. - // - // This member is required. - Threshold int32 - - // A rule can be one of the following: ATLEAST, AND, or OR. - // - // This member is required. - Type RuleType - - noSmithyDocumentSerde -} - -type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/route53recoverycontrolconfig/validators.go b/service/route53recoverycontrolconfig/validators.go deleted file mode 100644 index cdee2fd9518..00000000000 --- a/service/route53recoverycontrolconfig/validators.go +++ /dev/null @@ -1,849 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoverycontrolconfig - -import ( - "context" - "fmt" - "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" - smithy "github.com/aws/smithy-go" - "github.com/aws/smithy-go/middleware" -) - -type validateOpCreateCluster struct { -} - -func (*validateOpCreateCluster) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateClusterInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateClusterInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateControlPanel struct { -} - -func (*validateOpCreateControlPanel) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateControlPanelInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateControlPanelInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateRoutingControl struct { -} - -func (*validateOpCreateRoutingControl) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateRoutingControlInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateRoutingControlInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateSafetyRule struct { -} - -func (*validateOpCreateSafetyRule) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateSafetyRuleInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateSafetyRuleInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteCluster struct { -} - -func (*validateOpDeleteCluster) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteClusterInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteClusterInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteControlPanel struct { -} - -func (*validateOpDeleteControlPanel) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteControlPanelInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteControlPanelInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteRoutingControl struct { -} - -func (*validateOpDeleteRoutingControl) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteRoutingControlInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteRoutingControlInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteSafetyRule struct { -} - -func (*validateOpDeleteSafetyRule) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteSafetyRuleInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteSafetyRuleInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDescribeCluster struct { -} - -func (*validateOpDescribeCluster) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDescribeCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DescribeClusterInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDescribeClusterInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDescribeControlPanel struct { -} - -func (*validateOpDescribeControlPanel) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDescribeControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DescribeControlPanelInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDescribeControlPanelInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDescribeRoutingControl struct { -} - -func (*validateOpDescribeRoutingControl) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDescribeRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DescribeRoutingControlInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDescribeRoutingControlInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDescribeSafetyRule struct { -} - -func (*validateOpDescribeSafetyRule) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDescribeSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DescribeSafetyRuleInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDescribeSafetyRuleInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListAssociatedRoute53HealthChecks struct { -} - -func (*validateOpListAssociatedRoute53HealthChecks) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListAssociatedRoute53HealthChecks) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListAssociatedRoute53HealthChecksInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListAssociatedRoute53HealthChecksInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListRoutingControls struct { -} - -func (*validateOpListRoutingControls) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListRoutingControls) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListRoutingControlsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListRoutingControlsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListSafetyRules struct { -} - -func (*validateOpListSafetyRules) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListSafetyRules) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListSafetyRulesInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListSafetyRulesInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateControlPanel struct { -} - -func (*validateOpUpdateControlPanel) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateControlPanelInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateControlPanelInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateRoutingControl struct { -} - -func (*validateOpUpdateRoutingControl) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateRoutingControlInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateRoutingControlInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateSafetyRule struct { -} - -func (*validateOpUpdateSafetyRule) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateSafetyRuleInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateSafetyRuleInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -func addOpCreateClusterValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateCluster{}, middleware.After) -} - -func addOpCreateControlPanelValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateControlPanel{}, middleware.After) -} - -func addOpCreateRoutingControlValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateRoutingControl{}, middleware.After) -} - -func addOpCreateSafetyRuleValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateSafetyRule{}, middleware.After) -} - -func addOpDeleteClusterValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteCluster{}, middleware.After) -} - -func addOpDeleteControlPanelValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteControlPanel{}, middleware.After) -} - -func addOpDeleteRoutingControlValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteRoutingControl{}, middleware.After) -} - -func addOpDeleteSafetyRuleValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteSafetyRule{}, middleware.After) -} - -func addOpDescribeClusterValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDescribeCluster{}, middleware.After) -} - -func addOpDescribeControlPanelValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDescribeControlPanel{}, middleware.After) -} - -func addOpDescribeRoutingControlValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDescribeRoutingControl{}, middleware.After) -} - -func addOpDescribeSafetyRuleValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDescribeSafetyRule{}, middleware.After) -} - -func addOpListAssociatedRoute53HealthChecksValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListAssociatedRoute53HealthChecks{}, middleware.After) -} - -func addOpListRoutingControlsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListRoutingControls{}, middleware.After) -} - -func addOpListSafetyRulesValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListSafetyRules{}, middleware.After) -} - -func addOpUpdateControlPanelValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateControlPanel{}, middleware.After) -} - -func addOpUpdateRoutingControlValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateRoutingControl{}, middleware.After) -} - -func addOpUpdateSafetyRuleValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateSafetyRule{}, middleware.After) -} - -func validateAssertionRuleUpdate(v *types.AssertionRuleUpdate) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AssertionRuleUpdate"} - if v.Name == nil { - invalidParams.Add(smithy.NewErrParamRequired("Name")) - } - if v.SafetyRuleArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateGatingRuleUpdate(v *types.GatingRuleUpdate) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GatingRuleUpdate"} - if v.Name == nil { - invalidParams.Add(smithy.NewErrParamRequired("Name")) - } - if v.SafetyRuleArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateNewAssertionRule(v *types.NewAssertionRule) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "NewAssertionRule"} - if v.AssertedControls == nil { - invalidParams.Add(smithy.NewErrParamRequired("AssertedControls")) - } - if v.ControlPanelArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) - } - if v.Name == nil { - invalidParams.Add(smithy.NewErrParamRequired("Name")) - } - if v.RuleConfig == nil { - invalidParams.Add(smithy.NewErrParamRequired("RuleConfig")) - } else if v.RuleConfig != nil { - if err := validateRuleConfig(v.RuleConfig); err != nil { - invalidParams.AddNested("RuleConfig", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateNewGatingRule(v *types.NewGatingRule) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "NewGatingRule"} - if v.ControlPanelArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) - } - if v.GatingControls == nil { - invalidParams.Add(smithy.NewErrParamRequired("GatingControls")) - } - if v.Name == nil { - invalidParams.Add(smithy.NewErrParamRequired("Name")) - } - if v.RuleConfig == nil { - invalidParams.Add(smithy.NewErrParamRequired("RuleConfig")) - } else if v.RuleConfig != nil { - if err := validateRuleConfig(v.RuleConfig); err != nil { - invalidParams.AddNested("RuleConfig", err.(smithy.InvalidParamsError)) - } - } - if v.TargetControls == nil { - invalidParams.Add(smithy.NewErrParamRequired("TargetControls")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateRuleConfig(v *types.RuleConfig) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "RuleConfig"} - if len(v.Type) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("Type")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateClusterInput(v *CreateClusterInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateClusterInput"} - if v.ClusterName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateControlPanelInput(v *CreateControlPanelInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateControlPanelInput"} - if v.ClusterArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) - } - if v.ControlPanelName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ControlPanelName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateRoutingControlInput(v *CreateRoutingControlInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateRoutingControlInput"} - if v.ClusterArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) - } - if v.RoutingControlName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateSafetyRuleInput(v *CreateSafetyRuleInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateSafetyRuleInput"} - if v.AssertionRule != nil { - if err := validateNewAssertionRule(v.AssertionRule); err != nil { - invalidParams.AddNested("AssertionRule", err.(smithy.InvalidParamsError)) - } - } - if v.GatingRule != nil { - if err := validateNewGatingRule(v.GatingRule); err != nil { - invalidParams.AddNested("GatingRule", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteClusterInput(v *DeleteClusterInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteClusterInput"} - if v.ClusterArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteControlPanelInput(v *DeleteControlPanelInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteControlPanelInput"} - if v.ControlPanelArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteRoutingControlInput(v *DeleteRoutingControlInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteRoutingControlInput"} - if v.RoutingControlArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteSafetyRuleInput(v *DeleteSafetyRuleInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteSafetyRuleInput"} - if v.SafetyRuleArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDescribeClusterInput(v *DescribeClusterInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DescribeClusterInput"} - if v.ClusterArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDescribeControlPanelInput(v *DescribeControlPanelInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DescribeControlPanelInput"} - if v.ControlPanelArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDescribeRoutingControlInput(v *DescribeRoutingControlInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DescribeRoutingControlInput"} - if v.RoutingControlArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDescribeSafetyRuleInput(v *DescribeSafetyRuleInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DescribeSafetyRuleInput"} - if v.SafetyRuleArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListAssociatedRoute53HealthChecksInput(v *ListAssociatedRoute53HealthChecksInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListAssociatedRoute53HealthChecksInput"} - if v.RoutingControlArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListRoutingControlsInput(v *ListRoutingControlsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListRoutingControlsInput"} - if v.ControlPanelArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListSafetyRulesInput(v *ListSafetyRulesInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListSafetyRulesInput"} - if v.ControlPanelArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateControlPanelInput(v *UpdateControlPanelInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateControlPanelInput"} - if v.ControlPanelArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) - } - if v.ControlPanelName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ControlPanelName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateRoutingControlInput(v *UpdateRoutingControlInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlInput"} - if v.RoutingControlArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) - } - if v.RoutingControlName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoutingControlName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateSafetyRuleInput(v *UpdateSafetyRuleInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateSafetyRuleInput"} - if v.AssertionRuleUpdate != nil { - if err := validateAssertionRuleUpdate(v.AssertionRuleUpdate); err != nil { - invalidParams.AddNested("AssertionRuleUpdate", err.(smithy.InvalidParamsError)) - } - } - if v.GatingRuleUpdate != nil { - if err := validateGatingRuleUpdate(v.GatingRuleUpdate); err != nil { - invalidParams.AddNested("GatingRuleUpdate", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} diff --git a/service/route53recoveryreadiness/LICENSE.txt b/service/route53recoveryreadiness/LICENSE.txt deleted file mode 100644 index d6456956733..00000000000 --- a/service/route53recoveryreadiness/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/service/route53recoveryreadiness/api_client.go b/service/route53recoveryreadiness/api_client.go deleted file mode 100644 index f38fac1bd65..00000000000 --- a/service/route53recoveryreadiness/api_client.go +++ /dev/null @@ -1,262 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "github.com/aws/aws-sdk-go-v2/aws" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/retry" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" - smithy "github.com/aws/smithy-go" - smithydocument "github.com/aws/smithy-go/document" - "github.com/aws/smithy-go/logging" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "net/http" - "time" -) - -const ServiceID = "Route53 Recovery Readiness" -const ServiceAPIVersion = "2019-12-02" - -// Client provides the API client to make operations call for AWS Route53 Recovery -// Readiness. -type Client struct { - options Options -} - -// New returns an initialized Client based on the functional options. Provide -// additional functional options to further configure the behavior of the client, -// such as changing the client's endpoint or adding custom middleware behavior. -func New(options Options, optFns ...func(*Options)) *Client { - options = options.Copy() - - resolveDefaultLogger(&options) - - resolveRetryer(&options) - - resolveHTTPClient(&options) - - resolveHTTPSignerV4(&options) - - resolveDefaultEndpointConfiguration(&options) - - for _, fn := range optFns { - fn(&options) - } - - client := &Client{ - options: options, - } - - return client -} - -type Options struct { - // Set of options to modify how an operation is invoked. These apply to all - // operations invoked for this client. Use functional options on operation call to - // modify this list for per operation behavior. - APIOptions []func(*middleware.Stack) error - - // Configures the events that will be sent to the configured logger. - ClientLogMode aws.ClientLogMode - - // The credentials object to use when signing requests. - Credentials aws.CredentialsProvider - - // The endpoint options to be used when attempting to resolve an endpoint. - EndpointOptions EndpointResolverOptions - - // The service endpoint resolver. - EndpointResolver EndpointResolver - - // Signature Version 4 (SigV4) Signer - HTTPSignerV4 HTTPSignerV4 - - // The logger writer interface to write logging messages to. - Logger logging.Logger - - // The region to send requests to. (Required) - Region string - - // Retryer guides how HTTP requests should be retried in case of recoverable - // failures. When nil the API client will use a default retryer. - Retryer aws.Retryer - - // The HTTP client to invoke API calls with. Defaults to client's default HTTP - // implementation if nil. - HTTPClient HTTPClient -} - -// WithAPIOptions returns a functional option for setting the Client's APIOptions -// option. -func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { - return func(o *Options) { - o.APIOptions = append(o.APIOptions, optFns...) - } -} - -// WithEndpointResolver returns a functional option for setting the Client's -// EndpointResolver option. -func WithEndpointResolver(v EndpointResolver) func(*Options) { - return func(o *Options) { - o.EndpointResolver = v - } -} - -type HTTPClient interface { - Do(*http.Request) (*http.Response, error) -} - -// Copy creates a clone where the APIOptions list is deep copied. -func (o Options) Copy() Options { - to := o - to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) - copy(to.APIOptions, o.APIOptions) - return to -} -func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { - ctx = middleware.ClearStackValues(ctx) - stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) - options := c.options.Copy() - for _, fn := range optFns { - fn(&options) - } - - for _, fn := range stackFns { - if err := fn(stack, options); err != nil { - return nil, metadata, err - } - } - - for _, fn := range options.APIOptions { - if err := fn(stack); err != nil { - return nil, metadata, err - } - } - - handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) - result, metadata, err = handler.Handle(ctx, params) - if err != nil { - err = &smithy.OperationError{ - ServiceID: ServiceID, - OperationName: opID, - Err: err, - } - } - return result, metadata, err -} - -type noSmithyDocumentSerde = smithydocument.NoSerde - -func resolveDefaultLogger(o *Options) { - if o.Logger != nil { - return - } - o.Logger = logging.Nop{} -} - -func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { - return middleware.AddSetLoggerMiddleware(stack, o.Logger) -} - -// NewFromConfig returns a new client from the provided config. -func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { - opts := Options{ - Region: cfg.Region, - HTTPClient: cfg.HTTPClient, - Credentials: cfg.Credentials, - APIOptions: cfg.APIOptions, - Logger: cfg.Logger, - ClientLogMode: cfg.ClientLogMode, - } - resolveAWSRetryerProvider(cfg, &opts) - resolveAWSEndpointResolver(cfg, &opts) - return New(opts, optFns...) -} - -func resolveHTTPClient(o *Options) { - if o.HTTPClient != nil { - return - } - o.HTTPClient = awshttp.NewBuildableClient() -} - -func resolveRetryer(o *Options) { - if o.Retryer != nil { - return - } - o.Retryer = retry.NewStandard() -} - -func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { - if cfg.Retryer == nil { - return - } - o.Retryer = cfg.Retryer() -} - -func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { - if cfg.EndpointResolver == nil { - return - } - o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, NewDefaultEndpointResolver()) -} - -func addClientUserAgent(stack *middleware.Stack) error { - return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "route53recoveryreadiness", goModuleVersion)(stack) -} - -func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { - mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ - CredentialsProvider: o.Credentials, - Signer: o.HTTPSignerV4, - LogSigning: o.ClientLogMode.IsSigning(), - }) - return stack.Finalize.Add(mw, middleware.After) -} - -type HTTPSignerV4 interface { - SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error -} - -func resolveHTTPSignerV4(o *Options) { - if o.HTTPSignerV4 != nil { - return - } - o.HTTPSignerV4 = newDefaultV4Signer(*o) -} - -func newDefaultV4Signer(o Options) *v4.Signer { - return v4.NewSigner(func(so *v4.SignerOptions) { - so.Logger = o.Logger - so.LogSigning = o.ClientLogMode.IsSigning() - }) -} - -func addRetryMiddlewares(stack *middleware.Stack, o Options) error { - mo := retry.AddRetryMiddlewaresOptions{ - Retryer: o.Retryer, - LogRetryAttempts: o.ClientLogMode.IsRetries(), - } - return retry.AddRetryMiddlewares(stack, mo) -} - -func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { - return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) -} - -func addResponseErrorMiddleware(stack *middleware.Stack) error { - return awshttp.AddResponseErrorMiddleware(stack) -} - -func addRequestResponseLogging(stack *middleware.Stack, o Options) error { - return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ - LogRequest: o.ClientLogMode.IsRequest(), - LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), - LogResponse: o.ClientLogMode.IsResponse(), - LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), - }, middleware.After) -} diff --git a/service/route53recoveryreadiness/api_op_CreateCell.go b/service/route53recoveryreadiness/api_op_CreateCell.go deleted file mode 100644 index ffb1c8aad52..00000000000 --- a/service/route53recoveryreadiness/api_op_CreateCell.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a new Cell. -func (c *Client) CreateCell(ctx context.Context, params *CreateCellInput, optFns ...func(*Options)) (*CreateCellOutput, error) { - if params == nil { - params = &CreateCellInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateCell", params, optFns, c.addOperationCreateCellMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateCellOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The Cell to create -type CreateCellInput struct { - - // The name of the Cell to create - // - // This member is required. - CellName *string - - // A list of Cell arns contained within this Cell (for use in nested Cells, e.g. - // regions within which AZs) - Cells []string - - // A collection of tags associated with a resource - Tags map[string]string - - noSmithyDocumentSerde -} - -type CreateCellOutput struct { - - // The arn for the Cell - CellArn *string - - // The name of the Cell - CellName *string - - // A list of Cell arns - Cells []string - - // A list of Cell ARNs and/or RecoveryGroup ARNs - ParentReadinessScopes []string - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateCellMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateCell{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateCell{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpCreateCellValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCell(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opCreateCell(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "CreateCell", - } -} diff --git a/service/route53recoveryreadiness/api_op_CreateCrossAccountAuthorization.go b/service/route53recoveryreadiness/api_op_CreateCrossAccountAuthorization.go deleted file mode 100644 index 9dd8d4c2a03..00000000000 --- a/service/route53recoveryreadiness/api_op_CreateCrossAccountAuthorization.go +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Create a new cross account readiness authorization. -func (c *Client) CreateCrossAccountAuthorization(ctx context.Context, params *CreateCrossAccountAuthorizationInput, optFns ...func(*Options)) (*CreateCrossAccountAuthorizationOutput, error) { - if params == nil { - params = &CreateCrossAccountAuthorizationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateCrossAccountAuthorization", params, optFns, c.addOperationCreateCrossAccountAuthorizationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateCrossAccountAuthorizationOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The cross account authorization -type CreateCrossAccountAuthorizationInput struct { - - // The cross account authorization - // - // This member is required. - CrossAccountAuthorization *string - - noSmithyDocumentSerde -} - -type CreateCrossAccountAuthorizationOutput struct { - - // The cross account authorization - CrossAccountAuthorization *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateCrossAccountAuthorizationMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateCrossAccountAuthorization{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateCrossAccountAuthorization{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpCreateCrossAccountAuthorizationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCrossAccountAuthorization(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opCreateCrossAccountAuthorization(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "CreateCrossAccountAuthorization", - } -} diff --git a/service/route53recoveryreadiness/api_op_CreateReadinessCheck.go b/service/route53recoveryreadiness/api_op_CreateReadinessCheck.go deleted file mode 100644 index 9e9c7b45531..00000000000 --- a/service/route53recoveryreadiness/api_op_CreateReadinessCheck.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a new Readiness Check. -func (c *Client) CreateReadinessCheck(ctx context.Context, params *CreateReadinessCheckInput, optFns ...func(*Options)) (*CreateReadinessCheckOutput, error) { - if params == nil { - params = &CreateReadinessCheckInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateReadinessCheck", params, optFns, c.addOperationCreateReadinessCheckMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateReadinessCheckOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The ReadinessCheck to create -type CreateReadinessCheckInput struct { - - // The name of the ReadinessCheck to create - // - // This member is required. - ReadinessCheckName *string - - // The name of the ResourceSet to check - // - // This member is required. - ResourceSetName *string - - // A collection of tags associated with a resource - Tags map[string]string - - noSmithyDocumentSerde -} - -type CreateReadinessCheckOutput struct { - - // Arn associated with ReadinessCheck - ReadinessCheckArn *string - - // Name for a ReadinessCheck - ReadinessCheckName *string - - // Name of the ResourceSet to be checked - ResourceSet *string - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateReadinessCheckMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateReadinessCheck{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateReadinessCheck{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpCreateReadinessCheckValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateReadinessCheck(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opCreateReadinessCheck(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "CreateReadinessCheck", - } -} diff --git a/service/route53recoveryreadiness/api_op_CreateRecoveryGroup.go b/service/route53recoveryreadiness/api_op_CreateRecoveryGroup.go deleted file mode 100644 index 931c5e743fc..00000000000 --- a/service/route53recoveryreadiness/api_op_CreateRecoveryGroup.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a new Recovery Group. -func (c *Client) CreateRecoveryGroup(ctx context.Context, params *CreateRecoveryGroupInput, optFns ...func(*Options)) (*CreateRecoveryGroupOutput, error) { - if params == nil { - params = &CreateRecoveryGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateRecoveryGroup", params, optFns, c.addOperationCreateRecoveryGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateRecoveryGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The RecoveryGroup to create -type CreateRecoveryGroupInput struct { - - // The name of the RecoveryGroup to create - // - // This member is required. - RecoveryGroupName *string - - // A list of Cell arns - Cells []string - - // A collection of tags associated with a resource - Tags map[string]string - - noSmithyDocumentSerde -} - -type CreateRecoveryGroupOutput struct { - - // A list of Cell arns - Cells []string - - // The arn for the RecoveryGroup - RecoveryGroupArn *string - - // The name of the RecoveryGroup - RecoveryGroupName *string - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateRecoveryGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateRecoveryGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateRecoveryGroup{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpCreateRecoveryGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRecoveryGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opCreateRecoveryGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "CreateRecoveryGroup", - } -} diff --git a/service/route53recoveryreadiness/api_op_CreateResourceSet.go b/service/route53recoveryreadiness/api_op_CreateResourceSet.go deleted file mode 100644 index 98325711cd7..00000000000 --- a/service/route53recoveryreadiness/api_op_CreateResourceSet.go +++ /dev/null @@ -1,147 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a new Resource Set. -func (c *Client) CreateResourceSet(ctx context.Context, params *CreateResourceSetInput, optFns ...func(*Options)) (*CreateResourceSetOutput, error) { - if params == nil { - params = &CreateResourceSetInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateResourceSet", params, optFns, c.addOperationCreateResourceSetMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateResourceSetOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The ResourceSet to create -type CreateResourceSetInput struct { - - // The name of the ResourceSet to create - // - // This member is required. - ResourceSetName *string - - // AWS Resource type of the resources in the ResourceSet - // - // This member is required. - ResourceSetType *string - - // A list of Resource objects - // - // This member is required. - Resources []types.Resource - - // A collection of tags associated with a resource - Tags map[string]string - - noSmithyDocumentSerde -} - -type CreateResourceSetOutput struct { - - // The arn for the ResourceSet - ResourceSetArn *string - - // The name of the ResourceSet - ResourceSetName *string - - // AWS Resource Type of the resources in the ResourceSet - ResourceSetType *string - - // A list of Resource objects - Resources []types.Resource - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateResourceSetMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateResourceSet{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateResourceSet{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpCreateResourceSetValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateResourceSet(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opCreateResourceSet(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "CreateResourceSet", - } -} diff --git a/service/route53recoveryreadiness/api_op_DeleteCell.go b/service/route53recoveryreadiness/api_op_DeleteCell.go deleted file mode 100644 index 0cae73bfb7e..00000000000 --- a/service/route53recoveryreadiness/api_op_DeleteCell.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes an existing Cell. -func (c *Client) DeleteCell(ctx context.Context, params *DeleteCellInput, optFns ...func(*Options)) (*DeleteCellOutput, error) { - if params == nil { - params = &DeleteCellInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteCell", params, optFns, c.addOperationDeleteCellMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteCellOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteCellInput struct { - - // The Cell to delete - // - // This member is required. - CellName *string - - noSmithyDocumentSerde -} - -type DeleteCellOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteCellMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteCell{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteCell{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteCellValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCell(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteCell(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "DeleteCell", - } -} diff --git a/service/route53recoveryreadiness/api_op_DeleteCrossAccountAuthorization.go b/service/route53recoveryreadiness/api_op_DeleteCrossAccountAuthorization.go deleted file mode 100644 index ae645c13f90..00000000000 --- a/service/route53recoveryreadiness/api_op_DeleteCrossAccountAuthorization.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Delete cross account readiness authorization -func (c *Client) DeleteCrossAccountAuthorization(ctx context.Context, params *DeleteCrossAccountAuthorizationInput, optFns ...func(*Options)) (*DeleteCrossAccountAuthorizationOutput, error) { - if params == nil { - params = &DeleteCrossAccountAuthorizationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteCrossAccountAuthorization", params, optFns, c.addOperationDeleteCrossAccountAuthorizationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteCrossAccountAuthorizationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteCrossAccountAuthorizationInput struct { - - // The cross account authorization - // - // This member is required. - CrossAccountAuthorization *string - - noSmithyDocumentSerde -} - -type DeleteCrossAccountAuthorizationOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteCrossAccountAuthorizationMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteCrossAccountAuthorization{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteCrossAccountAuthorization{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteCrossAccountAuthorizationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCrossAccountAuthorization(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteCrossAccountAuthorization(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "DeleteCrossAccountAuthorization", - } -} diff --git a/service/route53recoveryreadiness/api_op_DeleteReadinessCheck.go b/service/route53recoveryreadiness/api_op_DeleteReadinessCheck.go deleted file mode 100644 index 1b195b61b23..00000000000 --- a/service/route53recoveryreadiness/api_op_DeleteReadinessCheck.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes an existing Readiness Check. -func (c *Client) DeleteReadinessCheck(ctx context.Context, params *DeleteReadinessCheckInput, optFns ...func(*Options)) (*DeleteReadinessCheckOutput, error) { - if params == nil { - params = &DeleteReadinessCheckInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteReadinessCheck", params, optFns, c.addOperationDeleteReadinessCheckMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteReadinessCheckOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteReadinessCheckInput struct { - - // The ReadinessCheck to delete - // - // This member is required. - ReadinessCheckName *string - - noSmithyDocumentSerde -} - -type DeleteReadinessCheckOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteReadinessCheckMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteReadinessCheck{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteReadinessCheck{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteReadinessCheckValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteReadinessCheck(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteReadinessCheck(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "DeleteReadinessCheck", - } -} diff --git a/service/route53recoveryreadiness/api_op_DeleteRecoveryGroup.go b/service/route53recoveryreadiness/api_op_DeleteRecoveryGroup.go deleted file mode 100644 index 6e3b282a45d..00000000000 --- a/service/route53recoveryreadiness/api_op_DeleteRecoveryGroup.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes an existing Recovery Group. -func (c *Client) DeleteRecoveryGroup(ctx context.Context, params *DeleteRecoveryGroupInput, optFns ...func(*Options)) (*DeleteRecoveryGroupOutput, error) { - if params == nil { - params = &DeleteRecoveryGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteRecoveryGroup", params, optFns, c.addOperationDeleteRecoveryGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteRecoveryGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteRecoveryGroupInput struct { - - // The RecoveryGroup to delete - // - // This member is required. - RecoveryGroupName *string - - noSmithyDocumentSerde -} - -type DeleteRecoveryGroupOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteRecoveryGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteRecoveryGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteRecoveryGroup{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteRecoveryGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRecoveryGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteRecoveryGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "DeleteRecoveryGroup", - } -} diff --git a/service/route53recoveryreadiness/api_op_DeleteResourceSet.go b/service/route53recoveryreadiness/api_op_DeleteResourceSet.go deleted file mode 100644 index 20b94f5b0a9..00000000000 --- a/service/route53recoveryreadiness/api_op_DeleteResourceSet.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes an existing Resource Set. -func (c *Client) DeleteResourceSet(ctx context.Context, params *DeleteResourceSetInput, optFns ...func(*Options)) (*DeleteResourceSetOutput, error) { - if params == nil { - params = &DeleteResourceSetInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteResourceSet", params, optFns, c.addOperationDeleteResourceSetMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteResourceSetOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteResourceSetInput struct { - - // The ResourceSet to delete - // - // This member is required. - ResourceSetName *string - - noSmithyDocumentSerde -} - -type DeleteResourceSetOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteResourceSetMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteResourceSet{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteResourceSet{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteResourceSetValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteResourceSet(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteResourceSet(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "DeleteResourceSet", - } -} diff --git a/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go b/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go deleted file mode 100644 index 2418e260fe8..00000000000 --- a/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "time" -) - -// Returns a collection of recommendations to improve resilliance and readiness -// check quality for a Recovery Group. -func (c *Client) GetArchitectureRecommendations(ctx context.Context, params *GetArchitectureRecommendationsInput, optFns ...func(*Options)) (*GetArchitectureRecommendationsOutput, error) { - if params == nil { - params = &GetArchitectureRecommendationsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetArchitectureRecommendations", params, optFns, c.addOperationGetArchitectureRecommendationsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetArchitectureRecommendationsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetArchitectureRecommendationsInput struct { - - // Name of RecoveryGroup (top level resource) to be analyzed. - // - // This member is required. - RecoveryGroupName *string - - // Upper bound on number of records to return. - MaxResults int32 - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - noSmithyDocumentSerde -} - -type GetArchitectureRecommendationsOutput struct { - - // The time a Recovery Group was last assessed for recommendations in UTC ISO-8601 - // format. - LastAuditTimestamp *time.Time - - // A token that can be used to resume pagination from the end of the collection - NextToken *string - - // A list of recommendations for the customer's application - Recommendations []types.Recommendation - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetArchitectureRecommendationsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGetArchitectureRecommendations{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetArchitectureRecommendations{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetArchitectureRecommendationsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetArchitectureRecommendations(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetArchitectureRecommendations(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "GetArchitectureRecommendations", - } -} diff --git a/service/route53recoveryreadiness/api_op_GetCell.go b/service/route53recoveryreadiness/api_op_GetCell.go deleted file mode 100644 index ae9a2a418ee..00000000000 --- a/service/route53recoveryreadiness/api_op_GetCell.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns information about a Cell. -func (c *Client) GetCell(ctx context.Context, params *GetCellInput, optFns ...func(*Options)) (*GetCellOutput, error) { - if params == nil { - params = &GetCellInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetCell", params, optFns, c.addOperationGetCellMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetCellOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetCellInput struct { - - // The Cell to get - // - // This member is required. - CellName *string - - noSmithyDocumentSerde -} - -type GetCellOutput struct { - - // The arn for the Cell - CellArn *string - - // The name of the Cell - CellName *string - - // A list of Cell arns - Cells []string - - // A list of Cell ARNs and/or RecoveryGroup ARNs - ParentReadinessScopes []string - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetCellMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCell{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCell{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetCellValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCell(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetCell(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "GetCell", - } -} diff --git a/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go b/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go deleted file mode 100644 index 16df994fccb..00000000000 --- a/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go +++ /dev/null @@ -1,218 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns information about readiness of a Cell. -func (c *Client) GetCellReadinessSummary(ctx context.Context, params *GetCellReadinessSummaryInput, optFns ...func(*Options)) (*GetCellReadinessSummaryOutput, error) { - if params == nil { - params = &GetCellReadinessSummaryInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetCellReadinessSummary", params, optFns, c.addOperationGetCellReadinessSummaryMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetCellReadinessSummaryOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetCellReadinessSummaryInput struct { - - // The name of the Cell - // - // This member is required. - CellName *string - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - noSmithyDocumentSerde -} - -type GetCellReadinessSummaryOutput struct { - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // The readiness at Cell level. - Readiness types.Readiness - - // Summaries for the ReadinessChecks making up the Cell - ReadinessChecks []types.ReadinessCheckSummary - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetCellReadinessSummaryMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCellReadinessSummary{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCellReadinessSummary{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetCellReadinessSummaryValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCellReadinessSummary(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// GetCellReadinessSummaryAPIClient is a client that implements the -// GetCellReadinessSummary operation. -type GetCellReadinessSummaryAPIClient interface { - GetCellReadinessSummary(context.Context, *GetCellReadinessSummaryInput, ...func(*Options)) (*GetCellReadinessSummaryOutput, error) -} - -var _ GetCellReadinessSummaryAPIClient = (*Client)(nil) - -// GetCellReadinessSummaryPaginatorOptions is the paginator options for -// GetCellReadinessSummary -type GetCellReadinessSummaryPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// GetCellReadinessSummaryPaginator is a paginator for GetCellReadinessSummary -type GetCellReadinessSummaryPaginator struct { - options GetCellReadinessSummaryPaginatorOptions - client GetCellReadinessSummaryAPIClient - params *GetCellReadinessSummaryInput - nextToken *string - firstPage bool -} - -// NewGetCellReadinessSummaryPaginator returns a new -// GetCellReadinessSummaryPaginator -func NewGetCellReadinessSummaryPaginator(client GetCellReadinessSummaryAPIClient, params *GetCellReadinessSummaryInput, optFns ...func(*GetCellReadinessSummaryPaginatorOptions)) *GetCellReadinessSummaryPaginator { - if params == nil { - params = &GetCellReadinessSummaryInput{} - } - - options := GetCellReadinessSummaryPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &GetCellReadinessSummaryPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *GetCellReadinessSummaryPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next GetCellReadinessSummary page. -func (p *GetCellReadinessSummaryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetCellReadinessSummaryOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.GetCellReadinessSummary(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opGetCellReadinessSummary(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "GetCellReadinessSummary", - } -} diff --git a/service/route53recoveryreadiness/api_op_GetReadinessCheck.go b/service/route53recoveryreadiness/api_op_GetReadinessCheck.go deleted file mode 100644 index 47518ce2eb3..00000000000 --- a/service/route53recoveryreadiness/api_op_GetReadinessCheck.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns information about a ReadinessCheck. -func (c *Client) GetReadinessCheck(ctx context.Context, params *GetReadinessCheckInput, optFns ...func(*Options)) (*GetReadinessCheckOutput, error) { - if params == nil { - params = &GetReadinessCheckInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetReadinessCheck", params, optFns, c.addOperationGetReadinessCheckMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetReadinessCheckOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetReadinessCheckInput struct { - - // The ReadinessCheck to get - // - // This member is required. - ReadinessCheckName *string - - noSmithyDocumentSerde -} - -type GetReadinessCheckOutput struct { - - // Arn associated with ReadinessCheck - ReadinessCheckArn *string - - // Name for a ReadinessCheck - ReadinessCheckName *string - - // Name of the ResourceSet to be checked - ResourceSet *string - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetReadinessCheckMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGetReadinessCheck{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetReadinessCheck{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetReadinessCheckValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetReadinessCheck(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetReadinessCheck(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "GetReadinessCheck", - } -} diff --git a/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go b/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go deleted file mode 100644 index 7b610dec463..00000000000 --- a/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns detailed information about the status of an individual resource within a -// Readiness Check's Resource Set. -func (c *Client) GetReadinessCheckResourceStatus(ctx context.Context, params *GetReadinessCheckResourceStatusInput, optFns ...func(*Options)) (*GetReadinessCheckResourceStatusOutput, error) { - if params == nil { - params = &GetReadinessCheckResourceStatusInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetReadinessCheckResourceStatus", params, optFns, c.addOperationGetReadinessCheckResourceStatusMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetReadinessCheckResourceStatusOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetReadinessCheckResourceStatusInput struct { - - // The ReadinessCheck to get - // - // This member is required. - ReadinessCheckName *string - - // The resource ARN or component Id to get - // - // This member is required. - ResourceIdentifier *string - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - noSmithyDocumentSerde -} - -type GetReadinessCheckResourceStatusOutput struct { - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // The readiness at rule level. - Readiness types.Readiness - - // Details of the rules's results - Rules []types.RuleResult - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetReadinessCheckResourceStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGetReadinessCheckResourceStatus{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetReadinessCheckResourceStatus{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetReadinessCheckResourceStatusValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetReadinessCheckResourceStatus(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// GetReadinessCheckResourceStatusAPIClient is a client that implements the -// GetReadinessCheckResourceStatus operation. -type GetReadinessCheckResourceStatusAPIClient interface { - GetReadinessCheckResourceStatus(context.Context, *GetReadinessCheckResourceStatusInput, ...func(*Options)) (*GetReadinessCheckResourceStatusOutput, error) -} - -var _ GetReadinessCheckResourceStatusAPIClient = (*Client)(nil) - -// GetReadinessCheckResourceStatusPaginatorOptions is the paginator options for -// GetReadinessCheckResourceStatus -type GetReadinessCheckResourceStatusPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// GetReadinessCheckResourceStatusPaginator is a paginator for -// GetReadinessCheckResourceStatus -type GetReadinessCheckResourceStatusPaginator struct { - options GetReadinessCheckResourceStatusPaginatorOptions - client GetReadinessCheckResourceStatusAPIClient - params *GetReadinessCheckResourceStatusInput - nextToken *string - firstPage bool -} - -// NewGetReadinessCheckResourceStatusPaginator returns a new -// GetReadinessCheckResourceStatusPaginator -func NewGetReadinessCheckResourceStatusPaginator(client GetReadinessCheckResourceStatusAPIClient, params *GetReadinessCheckResourceStatusInput, optFns ...func(*GetReadinessCheckResourceStatusPaginatorOptions)) *GetReadinessCheckResourceStatusPaginator { - if params == nil { - params = &GetReadinessCheckResourceStatusInput{} - } - - options := GetReadinessCheckResourceStatusPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &GetReadinessCheckResourceStatusPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *GetReadinessCheckResourceStatusPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next GetReadinessCheckResourceStatus page. -func (p *GetReadinessCheckResourceStatusPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetReadinessCheckResourceStatusOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.GetReadinessCheckResourceStatus(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opGetReadinessCheckResourceStatus(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "GetReadinessCheckResourceStatus", - } -} diff --git a/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go b/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go deleted file mode 100644 index 483dd02a160..00000000000 --- a/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go +++ /dev/null @@ -1,221 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns information about the status of a Readiness Check. -func (c *Client) GetReadinessCheckStatus(ctx context.Context, params *GetReadinessCheckStatusInput, optFns ...func(*Options)) (*GetReadinessCheckStatusOutput, error) { - if params == nil { - params = &GetReadinessCheckStatusInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetReadinessCheckStatus", params, optFns, c.addOperationGetReadinessCheckStatusMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetReadinessCheckStatusOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetReadinessCheckStatusInput struct { - - // The ReadinessCheck to get - // - // This member is required. - ReadinessCheckName *string - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - noSmithyDocumentSerde -} - -type GetReadinessCheckStatusOutput struct { - - // Top level messages for readiness check status - Messages []types.Message - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // The readiness at rule level. - Readiness types.Readiness - - // Summary of resources's readiness - Resources []types.ResourceResult - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetReadinessCheckStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGetReadinessCheckStatus{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetReadinessCheckStatus{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetReadinessCheckStatusValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetReadinessCheckStatus(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// GetReadinessCheckStatusAPIClient is a client that implements the -// GetReadinessCheckStatus operation. -type GetReadinessCheckStatusAPIClient interface { - GetReadinessCheckStatus(context.Context, *GetReadinessCheckStatusInput, ...func(*Options)) (*GetReadinessCheckStatusOutput, error) -} - -var _ GetReadinessCheckStatusAPIClient = (*Client)(nil) - -// GetReadinessCheckStatusPaginatorOptions is the paginator options for -// GetReadinessCheckStatus -type GetReadinessCheckStatusPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// GetReadinessCheckStatusPaginator is a paginator for GetReadinessCheckStatus -type GetReadinessCheckStatusPaginator struct { - options GetReadinessCheckStatusPaginatorOptions - client GetReadinessCheckStatusAPIClient - params *GetReadinessCheckStatusInput - nextToken *string - firstPage bool -} - -// NewGetReadinessCheckStatusPaginator returns a new -// GetReadinessCheckStatusPaginator -func NewGetReadinessCheckStatusPaginator(client GetReadinessCheckStatusAPIClient, params *GetReadinessCheckStatusInput, optFns ...func(*GetReadinessCheckStatusPaginatorOptions)) *GetReadinessCheckStatusPaginator { - if params == nil { - params = &GetReadinessCheckStatusInput{} - } - - options := GetReadinessCheckStatusPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &GetReadinessCheckStatusPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *GetReadinessCheckStatusPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next GetReadinessCheckStatus page. -func (p *GetReadinessCheckStatusPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetReadinessCheckStatusOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.GetReadinessCheckStatus(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opGetReadinessCheckStatus(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "GetReadinessCheckStatus", - } -} diff --git a/service/route53recoveryreadiness/api_op_GetRecoveryGroup.go b/service/route53recoveryreadiness/api_op_GetRecoveryGroup.go deleted file mode 100644 index 5e24833a6f8..00000000000 --- a/service/route53recoveryreadiness/api_op_GetRecoveryGroup.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns information about a Recovery Group. -func (c *Client) GetRecoveryGroup(ctx context.Context, params *GetRecoveryGroupInput, optFns ...func(*Options)) (*GetRecoveryGroupOutput, error) { - if params == nil { - params = &GetRecoveryGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetRecoveryGroup", params, optFns, c.addOperationGetRecoveryGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetRecoveryGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetRecoveryGroupInput struct { - - // The RecoveryGroup to get - // - // This member is required. - RecoveryGroupName *string - - noSmithyDocumentSerde -} - -type GetRecoveryGroupOutput struct { - - // A list of Cell arns - Cells []string - - // The arn for the RecoveryGroup - RecoveryGroupArn *string - - // The name of the RecoveryGroup - RecoveryGroupName *string - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetRecoveryGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGetRecoveryGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetRecoveryGroup{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetRecoveryGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRecoveryGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetRecoveryGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "GetRecoveryGroup", - } -} diff --git a/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go b/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go deleted file mode 100644 index 9e377305487..00000000000 --- a/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go +++ /dev/null @@ -1,219 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns information about a Recovery Group. -func (c *Client) GetRecoveryGroupReadinessSummary(ctx context.Context, params *GetRecoveryGroupReadinessSummaryInput, optFns ...func(*Options)) (*GetRecoveryGroupReadinessSummaryOutput, error) { - if params == nil { - params = &GetRecoveryGroupReadinessSummaryInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetRecoveryGroupReadinessSummary", params, optFns, c.addOperationGetRecoveryGroupReadinessSummaryMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetRecoveryGroupReadinessSummaryOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetRecoveryGroupReadinessSummaryInput struct { - - // The name of the RecoveryGroup - // - // This member is required. - RecoveryGroupName *string - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - noSmithyDocumentSerde -} - -type GetRecoveryGroupReadinessSummaryOutput struct { - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // The readiness at RecoveryGroup level. - Readiness types.Readiness - - // Summaries for the ReadinessChecks making up the RecoveryGroup - ReadinessChecks []types.ReadinessCheckSummary - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetRecoveryGroupReadinessSummaryMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGetRecoveryGroupReadinessSummary{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetRecoveryGroupReadinessSummary{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetRecoveryGroupReadinessSummaryValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRecoveryGroupReadinessSummary(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// GetRecoveryGroupReadinessSummaryAPIClient is a client that implements the -// GetRecoveryGroupReadinessSummary operation. -type GetRecoveryGroupReadinessSummaryAPIClient interface { - GetRecoveryGroupReadinessSummary(context.Context, *GetRecoveryGroupReadinessSummaryInput, ...func(*Options)) (*GetRecoveryGroupReadinessSummaryOutput, error) -} - -var _ GetRecoveryGroupReadinessSummaryAPIClient = (*Client)(nil) - -// GetRecoveryGroupReadinessSummaryPaginatorOptions is the paginator options for -// GetRecoveryGroupReadinessSummary -type GetRecoveryGroupReadinessSummaryPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// GetRecoveryGroupReadinessSummaryPaginator is a paginator for -// GetRecoveryGroupReadinessSummary -type GetRecoveryGroupReadinessSummaryPaginator struct { - options GetRecoveryGroupReadinessSummaryPaginatorOptions - client GetRecoveryGroupReadinessSummaryAPIClient - params *GetRecoveryGroupReadinessSummaryInput - nextToken *string - firstPage bool -} - -// NewGetRecoveryGroupReadinessSummaryPaginator returns a new -// GetRecoveryGroupReadinessSummaryPaginator -func NewGetRecoveryGroupReadinessSummaryPaginator(client GetRecoveryGroupReadinessSummaryAPIClient, params *GetRecoveryGroupReadinessSummaryInput, optFns ...func(*GetRecoveryGroupReadinessSummaryPaginatorOptions)) *GetRecoveryGroupReadinessSummaryPaginator { - if params == nil { - params = &GetRecoveryGroupReadinessSummaryInput{} - } - - options := GetRecoveryGroupReadinessSummaryPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &GetRecoveryGroupReadinessSummaryPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *GetRecoveryGroupReadinessSummaryPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next GetRecoveryGroupReadinessSummary page. -func (p *GetRecoveryGroupReadinessSummaryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetRecoveryGroupReadinessSummaryOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.GetRecoveryGroupReadinessSummary(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opGetRecoveryGroupReadinessSummary(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "GetRecoveryGroupReadinessSummary", - } -} diff --git a/service/route53recoveryreadiness/api_op_GetResourceSet.go b/service/route53recoveryreadiness/api_op_GetResourceSet.go deleted file mode 100644 index 3b9d2b14fd6..00000000000 --- a/service/route53recoveryreadiness/api_op_GetResourceSet.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns information about a Resource Set. -func (c *Client) GetResourceSet(ctx context.Context, params *GetResourceSetInput, optFns ...func(*Options)) (*GetResourceSetOutput, error) { - if params == nil { - params = &GetResourceSetInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetResourceSet", params, optFns, c.addOperationGetResourceSetMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetResourceSetOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetResourceSetInput struct { - - // The ResourceSet to get - // - // This member is required. - ResourceSetName *string - - noSmithyDocumentSerde -} - -type GetResourceSetOutput struct { - - // The arn for the ResourceSet - ResourceSetArn *string - - // The name of the ResourceSet - ResourceSetName *string - - // AWS Resource Type of the resources in the ResourceSet - ResourceSetType *string - - // A list of Resource objects - Resources []types.Resource - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetResourceSetMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpGetResourceSet{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetResourceSet{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpGetResourceSetValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetResourceSet(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetResourceSet(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "GetResourceSet", - } -} diff --git a/service/route53recoveryreadiness/api_op_ListCells.go b/service/route53recoveryreadiness/api_op_ListCells.go deleted file mode 100644 index 3295346e836..00000000000 --- a/service/route53recoveryreadiness/api_op_ListCells.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns a collection of Cells. -func (c *Client) ListCells(ctx context.Context, params *ListCellsInput, optFns ...func(*Options)) (*ListCellsOutput, error) { - if params == nil { - params = &ListCellsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListCells", params, optFns, c.addOperationListCellsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListCellsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListCellsInput struct { - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - noSmithyDocumentSerde -} - -type ListCellsOutput struct { - - // A list of Cells - Cells []types.CellOutput - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListCellsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListCells{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCells{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCells(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListCellsAPIClient is a client that implements the ListCells operation. -type ListCellsAPIClient interface { - ListCells(context.Context, *ListCellsInput, ...func(*Options)) (*ListCellsOutput, error) -} - -var _ ListCellsAPIClient = (*Client)(nil) - -// ListCellsPaginatorOptions is the paginator options for ListCells -type ListCellsPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListCellsPaginator is a paginator for ListCells -type ListCellsPaginator struct { - options ListCellsPaginatorOptions - client ListCellsAPIClient - params *ListCellsInput - nextToken *string - firstPage bool -} - -// NewListCellsPaginator returns a new ListCellsPaginator -func NewListCellsPaginator(client ListCellsAPIClient, params *ListCellsInput, optFns ...func(*ListCellsPaginatorOptions)) *ListCellsPaginator { - if params == nil { - params = &ListCellsInput{} - } - - options := ListCellsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListCellsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListCellsPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListCells page. -func (p *ListCellsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCellsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListCells(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListCells(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "ListCells", - } -} diff --git a/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go b/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go deleted file mode 100644 index 31dd6a95f4a..00000000000 --- a/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns a collection of cross account readiness authorizations. -func (c *Client) ListCrossAccountAuthorizations(ctx context.Context, params *ListCrossAccountAuthorizationsInput, optFns ...func(*Options)) (*ListCrossAccountAuthorizationsOutput, error) { - if params == nil { - params = &ListCrossAccountAuthorizationsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListCrossAccountAuthorizations", params, optFns, c.addOperationListCrossAccountAuthorizationsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListCrossAccountAuthorizationsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListCrossAccountAuthorizationsInput struct { - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - noSmithyDocumentSerde -} - -type ListCrossAccountAuthorizationsOutput struct { - - // A list of CrossAccountAuthorizations - CrossAccountAuthorizations []string - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListCrossAccountAuthorizationsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListCrossAccountAuthorizations{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCrossAccountAuthorizations{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCrossAccountAuthorizations(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListCrossAccountAuthorizationsAPIClient is a client that implements the -// ListCrossAccountAuthorizations operation. -type ListCrossAccountAuthorizationsAPIClient interface { - ListCrossAccountAuthorizations(context.Context, *ListCrossAccountAuthorizationsInput, ...func(*Options)) (*ListCrossAccountAuthorizationsOutput, error) -} - -var _ ListCrossAccountAuthorizationsAPIClient = (*Client)(nil) - -// ListCrossAccountAuthorizationsPaginatorOptions is the paginator options for -// ListCrossAccountAuthorizations -type ListCrossAccountAuthorizationsPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListCrossAccountAuthorizationsPaginator is a paginator for -// ListCrossAccountAuthorizations -type ListCrossAccountAuthorizationsPaginator struct { - options ListCrossAccountAuthorizationsPaginatorOptions - client ListCrossAccountAuthorizationsAPIClient - params *ListCrossAccountAuthorizationsInput - nextToken *string - firstPage bool -} - -// NewListCrossAccountAuthorizationsPaginator returns a new -// ListCrossAccountAuthorizationsPaginator -func NewListCrossAccountAuthorizationsPaginator(client ListCrossAccountAuthorizationsAPIClient, params *ListCrossAccountAuthorizationsInput, optFns ...func(*ListCrossAccountAuthorizationsPaginatorOptions)) *ListCrossAccountAuthorizationsPaginator { - if params == nil { - params = &ListCrossAccountAuthorizationsInput{} - } - - options := ListCrossAccountAuthorizationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListCrossAccountAuthorizationsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListCrossAccountAuthorizationsPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListCrossAccountAuthorizations page. -func (p *ListCrossAccountAuthorizationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCrossAccountAuthorizationsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListCrossAccountAuthorizations(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListCrossAccountAuthorizations(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "ListCrossAccountAuthorizations", - } -} diff --git a/service/route53recoveryreadiness/api_op_ListReadinessChecks.go b/service/route53recoveryreadiness/api_op_ListReadinessChecks.go deleted file mode 100644 index d4bd86dcce6..00000000000 --- a/service/route53recoveryreadiness/api_op_ListReadinessChecks.go +++ /dev/null @@ -1,206 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns a collection of Readiness Checks. -func (c *Client) ListReadinessChecks(ctx context.Context, params *ListReadinessChecksInput, optFns ...func(*Options)) (*ListReadinessChecksOutput, error) { - if params == nil { - params = &ListReadinessChecksInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListReadinessChecks", params, optFns, c.addOperationListReadinessChecksMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListReadinessChecksOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListReadinessChecksInput struct { - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - noSmithyDocumentSerde -} - -type ListReadinessChecksOutput struct { - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // A list of ReadinessCheck associated with the account - ReadinessChecks []types.ReadinessCheckOutput - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListReadinessChecksMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListReadinessChecks{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListReadinessChecks{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListReadinessChecks(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListReadinessChecksAPIClient is a client that implements the ListReadinessChecks -// operation. -type ListReadinessChecksAPIClient interface { - ListReadinessChecks(context.Context, *ListReadinessChecksInput, ...func(*Options)) (*ListReadinessChecksOutput, error) -} - -var _ ListReadinessChecksAPIClient = (*Client)(nil) - -// ListReadinessChecksPaginatorOptions is the paginator options for -// ListReadinessChecks -type ListReadinessChecksPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListReadinessChecksPaginator is a paginator for ListReadinessChecks -type ListReadinessChecksPaginator struct { - options ListReadinessChecksPaginatorOptions - client ListReadinessChecksAPIClient - params *ListReadinessChecksInput - nextToken *string - firstPage bool -} - -// NewListReadinessChecksPaginator returns a new ListReadinessChecksPaginator -func NewListReadinessChecksPaginator(client ListReadinessChecksAPIClient, params *ListReadinessChecksInput, optFns ...func(*ListReadinessChecksPaginatorOptions)) *ListReadinessChecksPaginator { - if params == nil { - params = &ListReadinessChecksInput{} - } - - options := ListReadinessChecksPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListReadinessChecksPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListReadinessChecksPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListReadinessChecks page. -func (p *ListReadinessChecksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListReadinessChecksOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListReadinessChecks(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListReadinessChecks(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "ListReadinessChecks", - } -} diff --git a/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go b/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go deleted file mode 100644 index aa7ba969323..00000000000 --- a/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go +++ /dev/null @@ -1,206 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns a collection of Recovery Groups. -func (c *Client) ListRecoveryGroups(ctx context.Context, params *ListRecoveryGroupsInput, optFns ...func(*Options)) (*ListRecoveryGroupsOutput, error) { - if params == nil { - params = &ListRecoveryGroupsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListRecoveryGroups", params, optFns, c.addOperationListRecoveryGroupsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListRecoveryGroupsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListRecoveryGroupsInput struct { - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - noSmithyDocumentSerde -} - -type ListRecoveryGroupsOutput struct { - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // A list of RecoveryGroups - RecoveryGroups []types.RecoveryGroupOutput - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListRecoveryGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListRecoveryGroups{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRecoveryGroups{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRecoveryGroups(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListRecoveryGroupsAPIClient is a client that implements the ListRecoveryGroups -// operation. -type ListRecoveryGroupsAPIClient interface { - ListRecoveryGroups(context.Context, *ListRecoveryGroupsInput, ...func(*Options)) (*ListRecoveryGroupsOutput, error) -} - -var _ ListRecoveryGroupsAPIClient = (*Client)(nil) - -// ListRecoveryGroupsPaginatorOptions is the paginator options for -// ListRecoveryGroups -type ListRecoveryGroupsPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListRecoveryGroupsPaginator is a paginator for ListRecoveryGroups -type ListRecoveryGroupsPaginator struct { - options ListRecoveryGroupsPaginatorOptions - client ListRecoveryGroupsAPIClient - params *ListRecoveryGroupsInput - nextToken *string - firstPage bool -} - -// NewListRecoveryGroupsPaginator returns a new ListRecoveryGroupsPaginator -func NewListRecoveryGroupsPaginator(client ListRecoveryGroupsAPIClient, params *ListRecoveryGroupsInput, optFns ...func(*ListRecoveryGroupsPaginatorOptions)) *ListRecoveryGroupsPaginator { - if params == nil { - params = &ListRecoveryGroupsInput{} - } - - options := ListRecoveryGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListRecoveryGroupsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListRecoveryGroupsPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListRecoveryGroups page. -func (p *ListRecoveryGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRecoveryGroupsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListRecoveryGroups(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListRecoveryGroups(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "ListRecoveryGroups", - } -} diff --git a/service/route53recoveryreadiness/api_op_ListResourceSets.go b/service/route53recoveryreadiness/api_op_ListResourceSets.go deleted file mode 100644 index 2208a4f28a3..00000000000 --- a/service/route53recoveryreadiness/api_op_ListResourceSets.go +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns a collection of Resource Sets. -func (c *Client) ListResourceSets(ctx context.Context, params *ListResourceSetsInput, optFns ...func(*Options)) (*ListResourceSetsOutput, error) { - if params == nil { - params = &ListResourceSetsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListResourceSets", params, optFns, c.addOperationListResourceSetsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListResourceSetsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListResourceSetsInput struct { - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - noSmithyDocumentSerde -} - -type ListResourceSetsOutput struct { - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // A list of ResourceSets associated with the account - ResourceSets []types.ResourceSetOutput - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListResourceSetsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListResourceSets{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListResourceSets{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListResourceSets(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListResourceSetsAPIClient is a client that implements the ListResourceSets -// operation. -type ListResourceSetsAPIClient interface { - ListResourceSets(context.Context, *ListResourceSetsInput, ...func(*Options)) (*ListResourceSetsOutput, error) -} - -var _ ListResourceSetsAPIClient = (*Client)(nil) - -// ListResourceSetsPaginatorOptions is the paginator options for ListResourceSets -type ListResourceSetsPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListResourceSetsPaginator is a paginator for ListResourceSets -type ListResourceSetsPaginator struct { - options ListResourceSetsPaginatorOptions - client ListResourceSetsAPIClient - params *ListResourceSetsInput - nextToken *string - firstPage bool -} - -// NewListResourceSetsPaginator returns a new ListResourceSetsPaginator -func NewListResourceSetsPaginator(client ListResourceSetsAPIClient, params *ListResourceSetsInput, optFns ...func(*ListResourceSetsPaginatorOptions)) *ListResourceSetsPaginator { - if params == nil { - params = &ListResourceSetsInput{} - } - - options := ListResourceSetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListResourceSetsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListResourceSetsPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListResourceSets page. -func (p *ListResourceSetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListResourceSetsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListResourceSets(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListResourceSets(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "ListResourceSets", - } -} diff --git a/service/route53recoveryreadiness/api_op_ListRules.go b/service/route53recoveryreadiness/api_op_ListRules.go deleted file mode 100644 index f2303795efe..00000000000 --- a/service/route53recoveryreadiness/api_op_ListRules.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns a collection of rules that are applied as part of Readiness Checks. -func (c *Client) ListRules(ctx context.Context, params *ListRulesInput, optFns ...func(*Options)) (*ListRulesOutput, error) { - if params == nil { - params = &ListRulesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListRules", params, optFns, c.addOperationListRulesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListRulesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListRulesInput struct { - - // Upper bound on number of records to return. - MaxResults int32 - - // A token used to resume pagination from the end of a previous request. - NextToken *string - - // Filter parameter which specifies the rules to return given a resource type. - ResourceType *string - - noSmithyDocumentSerde -} - -type ListRulesOutput struct { - - // A token that can be used to resume pagination from the end of the collection. - NextToken *string - - // A list of rules - Rules []types.ListRulesOutput - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListRulesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListRules{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRules{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRules(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -// ListRulesAPIClient is a client that implements the ListRules operation. -type ListRulesAPIClient interface { - ListRules(context.Context, *ListRulesInput, ...func(*Options)) (*ListRulesOutput, error) -} - -var _ ListRulesAPIClient = (*Client)(nil) - -// ListRulesPaginatorOptions is the paginator options for ListRules -type ListRulesPaginatorOptions struct { - // Upper bound on number of records to return. - Limit int32 - - // Set to true if pagination should stop if the service returns a pagination token - // that matches the most recent token provided to the service. - StopOnDuplicateToken bool -} - -// ListRulesPaginator is a paginator for ListRules -type ListRulesPaginator struct { - options ListRulesPaginatorOptions - client ListRulesAPIClient - params *ListRulesInput - nextToken *string - firstPage bool -} - -// NewListRulesPaginator returns a new ListRulesPaginator -func NewListRulesPaginator(client ListRulesAPIClient, params *ListRulesInput, optFns ...func(*ListRulesPaginatorOptions)) *ListRulesPaginator { - if params == nil { - params = &ListRulesInput{} - } - - options := ListRulesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListRulesPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListRulesPaginator) HasMorePages() bool { - return p.firstPage || p.nextToken != nil -} - -// NextPage retrieves the next ListRules page. -func (p *ListRulesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRulesOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListRules(ctx, ¶ms, optFns...) - if err != nil { - return nil, err - } - p.firstPage = false - - prevToken := p.nextToken - p.nextToken = result.NextToken - - if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { - p.nextToken = nil - } - - return result, nil -} - -func newServiceMetadataMiddleware_opListRules(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "ListRules", - } -} diff --git a/service/route53recoveryreadiness/api_op_ListTagsForResources.go b/service/route53recoveryreadiness/api_op_ListTagsForResources.go deleted file mode 100644 index 751e0e8321b..00000000000 --- a/service/route53recoveryreadiness/api_op_ListTagsForResources.go +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns a list of the tags assigned to the specified resource. -func (c *Client) ListTagsForResources(ctx context.Context, params *ListTagsForResourcesInput, optFns ...func(*Options)) (*ListTagsForResourcesOutput, error) { - if params == nil { - params = &ListTagsForResourcesInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListTagsForResources", params, optFns, c.addOperationListTagsForResourcesMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListTagsForResourcesOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListTagsForResourcesInput struct { - - // The Amazon Resource Name (ARN) for the resource. You can get this from the - // response to any request to the resource. - // - // This member is required. - ResourceArn *string - - noSmithyDocumentSerde -} - -type ListTagsForResourcesOutput struct { - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListTagsForResourcesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResources{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResources{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpListTagsForResourcesValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResources(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opListTagsForResources(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "ListTagsForResources", - } -} diff --git a/service/route53recoveryreadiness/api_op_TagResource.go b/service/route53recoveryreadiness/api_op_TagResource.go deleted file mode 100644 index 241ae456af6..00000000000 --- a/service/route53recoveryreadiness/api_op_TagResource.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Adds tags to the specified resource. You can specify one or more tags to add. -func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { - if params == nil { - params = &TagResourceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*TagResourceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type TagResourceInput struct { - - // The Amazon Resource Name (ARN) for the resource. You can get this from the - // response to any request to the resource. - // - // This member is required. - ResourceArn *string - - // A collection of tags associated with a resource - // - // This member is required. - Tags map[string]string - - noSmithyDocumentSerde -} - -type TagResourceOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpTagResourceValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "TagResource", - } -} diff --git a/service/route53recoveryreadiness/api_op_UntagResource.go b/service/route53recoveryreadiness/api_op_UntagResource.go deleted file mode 100644 index 734e295d6ae..00000000000 --- a/service/route53recoveryreadiness/api_op_UntagResource.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Removes tags from the specified resource. You can specify one or more tags to -// remove. -func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { - if params == nil { - params = &UntagResourceInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UntagResourceOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UntagResourceInput struct { - - // The Amazon Resource Name (ARN) for the resource. You can get this from the - // response to any request to the resource. - // - // This member is required. - ResourceArn *string - - // A comma-separated list of the tag keys to remove from the resource. - // - // This member is required. - TagKeys []string - - noSmithyDocumentSerde -} - -type UntagResourceOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUntagResourceValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "UntagResource", - } -} diff --git a/service/route53recoveryreadiness/api_op_UpdateCell.go b/service/route53recoveryreadiness/api_op_UpdateCell.go deleted file mode 100644 index fe172a4e0bd..00000000000 --- a/service/route53recoveryreadiness/api_op_UpdateCell.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates an existing Cell. -func (c *Client) UpdateCell(ctx context.Context, params *UpdateCellInput, optFns ...func(*Options)) (*UpdateCellOutput, error) { - if params == nil { - params = &UpdateCellInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateCell", params, optFns, c.addOperationUpdateCellMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateCellOutput) - out.ResultMetadata = metadata - return out, nil -} - -// Parameters to update for the Cell -type UpdateCellInput struct { - - // The Cell to update - // - // This member is required. - CellName *string - - // A list of Cell arns, completely replaces previous list - // - // This member is required. - Cells []string - - noSmithyDocumentSerde -} - -type UpdateCellOutput struct { - - // The arn for the Cell - CellArn *string - - // The name of the Cell - CellName *string - - // A list of Cell arns - Cells []string - - // A list of Cell ARNs and/or RecoveryGroup ARNs - ParentReadinessScopes []string - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateCellMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateCell{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateCell{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateCellValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateCell(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateCell(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "UpdateCell", - } -} diff --git a/service/route53recoveryreadiness/api_op_UpdateReadinessCheck.go b/service/route53recoveryreadiness/api_op_UpdateReadinessCheck.go deleted file mode 100644 index 150e158f30d..00000000000 --- a/service/route53recoveryreadiness/api_op_UpdateReadinessCheck.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates an exisiting Readiness Check. -func (c *Client) UpdateReadinessCheck(ctx context.Context, params *UpdateReadinessCheckInput, optFns ...func(*Options)) (*UpdateReadinessCheckOutput, error) { - if params == nil { - params = &UpdateReadinessCheckInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateReadinessCheck", params, optFns, c.addOperationUpdateReadinessCheckMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateReadinessCheckOutput) - out.ResultMetadata = metadata - return out, nil -} - -// The new Readiness Check values -type UpdateReadinessCheckInput struct { - - // The ReadinessCheck to update - // - // This member is required. - ReadinessCheckName *string - - // The name of the ResourceSet to check - // - // This member is required. - ResourceSetName *string - - noSmithyDocumentSerde -} - -type UpdateReadinessCheckOutput struct { - - // Arn associated with ReadinessCheck - ReadinessCheckArn *string - - // Name for a ReadinessCheck - ReadinessCheckName *string - - // Name of the ResourceSet to be checked - ResourceSet *string - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateReadinessCheckMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateReadinessCheck{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateReadinessCheck{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateReadinessCheckValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateReadinessCheck(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateReadinessCheck(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "UpdateReadinessCheck", - } -} diff --git a/service/route53recoveryreadiness/api_op_UpdateRecoveryGroup.go b/service/route53recoveryreadiness/api_op_UpdateRecoveryGroup.go deleted file mode 100644 index f27127573a6..00000000000 --- a/service/route53recoveryreadiness/api_op_UpdateRecoveryGroup.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates an existing Recovery Group. -func (c *Client) UpdateRecoveryGroup(ctx context.Context, params *UpdateRecoveryGroupInput, optFns ...func(*Options)) (*UpdateRecoveryGroupOutput, error) { - if params == nil { - params = &UpdateRecoveryGroupInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateRecoveryGroup", params, optFns, c.addOperationUpdateRecoveryGroupMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateRecoveryGroupOutput) - out.ResultMetadata = metadata - return out, nil -} - -// Parameters to update for the RecoveryGroup -type UpdateRecoveryGroupInput struct { - - // A list of Cell arns, completely replaces previous list - // - // This member is required. - Cells []string - - // The RecoveryGroup to update - // - // This member is required. - RecoveryGroupName *string - - noSmithyDocumentSerde -} - -type UpdateRecoveryGroupOutput struct { - - // A list of Cell arns - Cells []string - - // The arn for the RecoveryGroup - RecoveryGroupArn *string - - // The name of the RecoveryGroup - RecoveryGroupName *string - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateRecoveryGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateRecoveryGroup{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateRecoveryGroup{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateRecoveryGroupValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRecoveryGroup(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateRecoveryGroup(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "UpdateRecoveryGroup", - } -} diff --git a/service/route53recoveryreadiness/api_op_UpdateResourceSet.go b/service/route53recoveryreadiness/api_op_UpdateResourceSet.go deleted file mode 100644 index fd3ef87d09c..00000000000 --- a/service/route53recoveryreadiness/api_op_UpdateResourceSet.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates an existing Resource Set. -func (c *Client) UpdateResourceSet(ctx context.Context, params *UpdateResourceSetInput, optFns ...func(*Options)) (*UpdateResourceSetOutput, error) { - if params == nil { - params = &UpdateResourceSetInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateResourceSet", params, optFns, c.addOperationUpdateResourceSetMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateResourceSetOutput) - out.ResultMetadata = metadata - return out, nil -} - -// configuration for the desired -type UpdateResourceSetInput struct { - - // The ResourceSet to update - // - // This member is required. - ResourceSetName *string - - // AWS Resource Type of the resources in the ResourceSet - // - // This member is required. - ResourceSetType *string - - // A list of Resource objects - // - // This member is required. - Resources []types.Resource - - noSmithyDocumentSerde -} - -type UpdateResourceSetOutput struct { - - // The arn for the ResourceSet - ResourceSetArn *string - - // The name of the ResourceSet - ResourceSetName *string - - // AWS Resource Type of the resources in the ResourceSet - ResourceSetType *string - - // A list of Resource objects - Resources []types.Resource - - // A collection of tags associated with a resource - Tags map[string]string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateResourceSetMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateResourceSet{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateResourceSet{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateResourceSetValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateResourceSet(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateResourceSet(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "route53-recovery-readiness", - OperationName: "UpdateResourceSet", - } -} diff --git a/service/route53recoveryreadiness/deserializers.go b/service/route53recoveryreadiness/deserializers.go deleted file mode 100644 index b10386d9574..00000000000 --- a/service/route53recoveryreadiness/deserializers.go +++ /dev/null @@ -1,6917 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "bytes" - "context" - "encoding/json" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - smithy "github.com/aws/smithy-go" - smithyio "github.com/aws/smithy-go/io" - "github.com/aws/smithy-go/middleware" - "github.com/aws/smithy-go/ptr" - smithytime "github.com/aws/smithy-go/time" - smithyhttp "github.com/aws/smithy-go/transport/http" - "io" - "io/ioutil" - "strings" -) - -type awsRestjson1_deserializeOpCreateCell struct { -} - -func (*awsRestjson1_deserializeOpCreateCell) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpCreateCell) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateCell(response, &metadata) - } - output := &CreateCellOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentCreateCellOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorCreateCell(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentCreateCellOutput(v **CreateCellOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateCellOutput - if *v == nil { - sv = &CreateCellOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "cellArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.CellArn = ptr.String(jtv) - } - - case "cellName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.CellName = ptr.String(jtv) - } - - case "cells": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { - return err - } - - case "parentReadinessScopes": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ParentReadinessScopes, value); err != nil { - return err - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpCreateCrossAccountAuthorization struct { -} - -func (*awsRestjson1_deserializeOpCreateCrossAccountAuthorization) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpCreateCrossAccountAuthorization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateCrossAccountAuthorization(response, &metadata) - } - output := &CreateCrossAccountAuthorizationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentCreateCrossAccountAuthorizationOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorCreateCrossAccountAuthorization(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentCreateCrossAccountAuthorizationOutput(v **CreateCrossAccountAuthorizationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateCrossAccountAuthorizationOutput - if *v == nil { - sv = &CreateCrossAccountAuthorizationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "crossAccountAuthorization": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CrossAccountAuthorization to be of type string, got %T instead", value) - } - sv.CrossAccountAuthorization = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpCreateReadinessCheck struct { -} - -func (*awsRestjson1_deserializeOpCreateReadinessCheck) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpCreateReadinessCheck) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateReadinessCheck(response, &metadata) - } - output := &CreateReadinessCheckOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentCreateReadinessCheckOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorCreateReadinessCheck(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentCreateReadinessCheckOutput(v **CreateReadinessCheckOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateReadinessCheckOutput - if *v == nil { - sv = &CreateReadinessCheckOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "readinessCheckArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.ReadinessCheckArn = ptr.String(jtv) - } - - case "readinessCheckName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ReadinessCheckName = ptr.String(jtv) - } - - case "resourceSet": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ResourceSet = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpCreateRecoveryGroup struct { -} - -func (*awsRestjson1_deserializeOpCreateRecoveryGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpCreateRecoveryGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateRecoveryGroup(response, &metadata) - } - output := &CreateRecoveryGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentCreateRecoveryGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorCreateRecoveryGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentCreateRecoveryGroupOutput(v **CreateRecoveryGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateRecoveryGroupOutput - if *v == nil { - sv = &CreateRecoveryGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "cells": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { - return err - } - - case "recoveryGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.RecoveryGroupArn = ptr.String(jtv) - } - - case "recoveryGroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.RecoveryGroupName = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpCreateResourceSet struct { -} - -func (*awsRestjson1_deserializeOpCreateResourceSet) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpCreateResourceSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateResourceSet(response, &metadata) - } - output := &CreateResourceSetOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentCreateResourceSetOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorCreateResourceSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentCreateResourceSetOutput(v **CreateResourceSetOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *CreateResourceSetOutput - if *v == nil { - sv = &CreateResourceSetOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "resources": - if err := awsRestjson1_deserializeDocument__listOfResource(&sv.Resources, value); err != nil { - return err - } - - case "resourceSetArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.ResourceSetArn = ptr.String(jtv) - } - - case "resourceSetName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ResourceSetName = ptr.String(jtv) - } - - case "resourceSetType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringPatternAWSAZaZ09AZaZ09 to be of type string, got %T instead", value) - } - sv.ResourceSetType = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpDeleteCell struct { -} - -func (*awsRestjson1_deserializeOpDeleteCell) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteCell) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteCell(response, &metadata) - } - output := &DeleteCellOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteCell(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpDeleteCrossAccountAuthorization struct { -} - -func (*awsRestjson1_deserializeOpDeleteCrossAccountAuthorization) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteCrossAccountAuthorization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteCrossAccountAuthorization(response, &metadata) - } - output := &DeleteCrossAccountAuthorizationOutput{} - out.Result = output - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteCrossAccountAuthorization(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpDeleteReadinessCheck struct { -} - -func (*awsRestjson1_deserializeOpDeleteReadinessCheck) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteReadinessCheck) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteReadinessCheck(response, &metadata) - } - output := &DeleteReadinessCheckOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteReadinessCheck(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpDeleteRecoveryGroup struct { -} - -func (*awsRestjson1_deserializeOpDeleteRecoveryGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteRecoveryGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteRecoveryGroup(response, &metadata) - } - output := &DeleteRecoveryGroupOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteRecoveryGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpDeleteResourceSet struct { -} - -func (*awsRestjson1_deserializeOpDeleteResourceSet) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteResourceSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteResourceSet(response, &metadata) - } - output := &DeleteResourceSetOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteResourceSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpGetArchitectureRecommendations struct { -} - -func (*awsRestjson1_deserializeOpGetArchitectureRecommendations) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetArchitectureRecommendations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetArchitectureRecommendations(response, &metadata) - } - output := &GetArchitectureRecommendationsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetArchitectureRecommendationsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGetArchitectureRecommendations(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentGetArchitectureRecommendationsOutput(v **GetArchitectureRecommendationsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetArchitectureRecommendationsOutput - if *v == nil { - sv = &GetArchitectureRecommendationsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "lastAuditTimestamp": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LastAuditTimestamp to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err - } - sv.LastAuditTimestamp = ptr.Time(t) - } - - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "recommendations": - if err := awsRestjson1_deserializeDocument__listOfRecommendation(&sv.Recommendations, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetCell struct { -} - -func (*awsRestjson1_deserializeOpGetCell) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetCell) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetCell(response, &metadata) - } - output := &GetCellOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetCellOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGetCell(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentGetCellOutput(v **GetCellOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetCellOutput - if *v == nil { - sv = &GetCellOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "cellArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.CellArn = ptr.String(jtv) - } - - case "cellName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.CellName = ptr.String(jtv) - } - - case "cells": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { - return err - } - - case "parentReadinessScopes": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ParentReadinessScopes, value); err != nil { - return err - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetCellReadinessSummary struct { -} - -func (*awsRestjson1_deserializeOpGetCellReadinessSummary) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetCellReadinessSummary) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetCellReadinessSummary(response, &metadata) - } - output := &GetCellReadinessSummaryOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetCellReadinessSummaryOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGetCellReadinessSummary(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentGetCellReadinessSummaryOutput(v **GetCellReadinessSummaryOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetCellReadinessSummaryOutput - if *v == nil { - sv = &GetCellReadinessSummaryOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "readiness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) - } - sv.Readiness = types.Readiness(jtv) - } - - case "readinessChecks": - if err := awsRestjson1_deserializeDocument__listOfReadinessCheckSummary(&sv.ReadinessChecks, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetReadinessCheck struct { -} - -func (*awsRestjson1_deserializeOpGetReadinessCheck) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetReadinessCheck) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetReadinessCheck(response, &metadata) - } - output := &GetReadinessCheckOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetReadinessCheckOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGetReadinessCheck(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentGetReadinessCheckOutput(v **GetReadinessCheckOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetReadinessCheckOutput - if *v == nil { - sv = &GetReadinessCheckOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "readinessCheckArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.ReadinessCheckArn = ptr.String(jtv) - } - - case "readinessCheckName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ReadinessCheckName = ptr.String(jtv) - } - - case "resourceSet": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ResourceSet = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetReadinessCheckResourceStatus struct { -} - -func (*awsRestjson1_deserializeOpGetReadinessCheckResourceStatus) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetReadinessCheckResourceStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetReadinessCheckResourceStatus(response, &metadata) - } - output := &GetReadinessCheckResourceStatusOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetReadinessCheckResourceStatusOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGetReadinessCheckResourceStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentGetReadinessCheckResourceStatusOutput(v **GetReadinessCheckResourceStatusOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetReadinessCheckResourceStatusOutput - if *v == nil { - sv = &GetReadinessCheckResourceStatusOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "readiness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) - } - sv.Readiness = types.Readiness(jtv) - } - - case "rules": - if err := awsRestjson1_deserializeDocument__listOfRuleResult(&sv.Rules, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetReadinessCheckStatus struct { -} - -func (*awsRestjson1_deserializeOpGetReadinessCheckStatus) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetReadinessCheckStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetReadinessCheckStatus(response, &metadata) - } - output := &GetReadinessCheckStatusOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetReadinessCheckStatusOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGetReadinessCheckStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentGetReadinessCheckStatusOutput(v **GetReadinessCheckStatusOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetReadinessCheckStatusOutput - if *v == nil { - sv = &GetReadinessCheckStatusOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "messages": - if err := awsRestjson1_deserializeDocument__listOfMessage(&sv.Messages, value); err != nil { - return err - } - - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "readiness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) - } - sv.Readiness = types.Readiness(jtv) - } - - case "resources": - if err := awsRestjson1_deserializeDocument__listOfResourceResult(&sv.Resources, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetRecoveryGroup struct { -} - -func (*awsRestjson1_deserializeOpGetRecoveryGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetRecoveryGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetRecoveryGroup(response, &metadata) - } - output := &GetRecoveryGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetRecoveryGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGetRecoveryGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentGetRecoveryGroupOutput(v **GetRecoveryGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetRecoveryGroupOutput - if *v == nil { - sv = &GetRecoveryGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "cells": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { - return err - } - - case "recoveryGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.RecoveryGroupArn = ptr.String(jtv) - } - - case "recoveryGroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.RecoveryGroupName = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetRecoveryGroupReadinessSummary struct { -} - -func (*awsRestjson1_deserializeOpGetRecoveryGroupReadinessSummary) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetRecoveryGroupReadinessSummary) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetRecoveryGroupReadinessSummary(response, &metadata) - } - output := &GetRecoveryGroupReadinessSummaryOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetRecoveryGroupReadinessSummaryOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGetRecoveryGroupReadinessSummary(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentGetRecoveryGroupReadinessSummaryOutput(v **GetRecoveryGroupReadinessSummaryOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetRecoveryGroupReadinessSummaryOutput - if *v == nil { - sv = &GetRecoveryGroupReadinessSummaryOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "readiness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) - } - sv.Readiness = types.Readiness(jtv) - } - - case "readinessChecks": - if err := awsRestjson1_deserializeDocument__listOfReadinessCheckSummary(&sv.ReadinessChecks, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetResourceSet struct { -} - -func (*awsRestjson1_deserializeOpGetResourceSet) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetResourceSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetResourceSet(response, &metadata) - } - output := &GetResourceSetOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentGetResourceSetOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorGetResourceSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentGetResourceSetOutput(v **GetResourceSetOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetResourceSetOutput - if *v == nil { - sv = &GetResourceSetOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "resources": - if err := awsRestjson1_deserializeDocument__listOfResource(&sv.Resources, value); err != nil { - return err - } - - case "resourceSetArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.ResourceSetArn = ptr.String(jtv) - } - - case "resourceSetName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ResourceSetName = ptr.String(jtv) - } - - case "resourceSetType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringPatternAWSAZaZ09AZaZ09 to be of type string, got %T instead", value) - } - sv.ResourceSetType = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListCells struct { -} - -func (*awsRestjson1_deserializeOpListCells) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListCells) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListCells(response, &metadata) - } - output := &ListCellsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListCellsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListCells(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListCellsOutput(v **ListCellsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListCellsOutput - if *v == nil { - sv = &ListCellsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "cells": - if err := awsRestjson1_deserializeDocument__listOfCellOutput(&sv.Cells, value); err != nil { - return err - } - - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListCrossAccountAuthorizations struct { -} - -func (*awsRestjson1_deserializeOpListCrossAccountAuthorizations) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListCrossAccountAuthorizations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListCrossAccountAuthorizations(response, &metadata) - } - output := &ListCrossAccountAuthorizationsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListCrossAccountAuthorizationsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListCrossAccountAuthorizations(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListCrossAccountAuthorizationsOutput(v **ListCrossAccountAuthorizationsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListCrossAccountAuthorizationsOutput - if *v == nil { - sv = &ListCrossAccountAuthorizationsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "crossAccountAuthorizations": - if err := awsRestjson1_deserializeDocument__listOfCrossAccountAuthorization(&sv.CrossAccountAuthorizations, value); err != nil { - return err - } - - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListReadinessChecks struct { -} - -func (*awsRestjson1_deserializeOpListReadinessChecks) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListReadinessChecks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListReadinessChecks(response, &metadata) - } - output := &ListReadinessChecksOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListReadinessChecksOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListReadinessChecks(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListReadinessChecksOutput(v **ListReadinessChecksOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListReadinessChecksOutput - if *v == nil { - sv = &ListReadinessChecksOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "readinessChecks": - if err := awsRestjson1_deserializeDocument__listOfReadinessCheckOutput(&sv.ReadinessChecks, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListRecoveryGroups struct { -} - -func (*awsRestjson1_deserializeOpListRecoveryGroups) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListRecoveryGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListRecoveryGroups(response, &metadata) - } - output := &ListRecoveryGroupsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListRecoveryGroupsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListRecoveryGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListRecoveryGroupsOutput(v **ListRecoveryGroupsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListRecoveryGroupsOutput - if *v == nil { - sv = &ListRecoveryGroupsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "recoveryGroups": - if err := awsRestjson1_deserializeDocument__listOfRecoveryGroupOutput(&sv.RecoveryGroups, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListResourceSets struct { -} - -func (*awsRestjson1_deserializeOpListResourceSets) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListResourceSets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListResourceSets(response, &metadata) - } - output := &ListResourceSetsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListResourceSetsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListResourceSets(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListResourceSetsOutput(v **ListResourceSetsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListResourceSetsOutput - if *v == nil { - sv = &ListResourceSetsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "resourceSets": - if err := awsRestjson1_deserializeDocument__listOfResourceSetOutput(&sv.ResourceSets, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListRules struct { -} - -func (*awsRestjson1_deserializeOpListRules) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListRules(response, &metadata) - } - output := &ListRulesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListRulesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListRulesOutput(v **ListRulesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListRulesOutput - if *v == nil { - sv = &ListRulesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "nextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "rules": - if err := awsRestjson1_deserializeDocument__listOfListRulesOutput(&sv.Rules, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpListTagsForResources struct { -} - -func (*awsRestjson1_deserializeOpListTagsForResources) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpListTagsForResources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResources(response, &metadata) - } - output := &ListTagsForResourcesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentListTagsForResourcesOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorListTagsForResources(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentListTagsForResourcesOutput(v **ListTagsForResourcesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListTagsForResourcesOutput - if *v == nil { - sv = &ListTagsForResourcesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpTagResource struct { -} - -func (*awsRestjson1_deserializeOpTagResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) - } - output := &TagResourceOutput{} - out.Result = output - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpUntagResource struct { -} - -func (*awsRestjson1_deserializeOpUntagResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) - } - output := &UntagResourceOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpUpdateCell struct { -} - -func (*awsRestjson1_deserializeOpUpdateCell) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateCell) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateCell(response, &metadata) - } - output := &UpdateCellOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateCellOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateCell(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateCellOutput(v **UpdateCellOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateCellOutput - if *v == nil { - sv = &UpdateCellOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "cellArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.CellArn = ptr.String(jtv) - } - - case "cellName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.CellName = ptr.String(jtv) - } - - case "cells": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { - return err - } - - case "parentReadinessScopes": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ParentReadinessScopes, value); err != nil { - return err - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateReadinessCheck struct { -} - -func (*awsRestjson1_deserializeOpUpdateReadinessCheck) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateReadinessCheck) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateReadinessCheck(response, &metadata) - } - output := &UpdateReadinessCheckOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateReadinessCheckOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateReadinessCheck(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateReadinessCheckOutput(v **UpdateReadinessCheckOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateReadinessCheckOutput - if *v == nil { - sv = &UpdateReadinessCheckOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "readinessCheckArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.ReadinessCheckArn = ptr.String(jtv) - } - - case "readinessCheckName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ReadinessCheckName = ptr.String(jtv) - } - - case "resourceSet": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ResourceSet = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateRecoveryGroup struct { -} - -func (*awsRestjson1_deserializeOpUpdateRecoveryGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateRecoveryGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateRecoveryGroup(response, &metadata) - } - output := &UpdateRecoveryGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateRecoveryGroupOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateRecoveryGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateRecoveryGroupOutput(v **UpdateRecoveryGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateRecoveryGroupOutput - if *v == nil { - sv = &UpdateRecoveryGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "cells": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { - return err - } - - case "recoveryGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.RecoveryGroupArn = ptr.String(jtv) - } - - case "recoveryGroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.RecoveryGroupName = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateResourceSet struct { -} - -func (*awsRestjson1_deserializeOpUpdateResourceSet) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUpdateResourceSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateResourceSet(response, &metadata) - } - output := &UpdateResourceSetOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentUpdateResourceSetOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorUpdateResourceSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpDocumentUpdateResourceSetOutput(v **UpdateResourceSetOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateResourceSetOutput - if *v == nil { - sv = &UpdateResourceSetOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "resources": - if err := awsRestjson1_deserializeDocument__listOfResource(&sv.Resources, value); err != nil { - return err - } - - case "resourceSetArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.ResourceSetArn = ptr.String(jtv) - } - - case "resourceSetName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ResourceSetName = ptr.String(jtv) - } - - case "resourceSetType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringPatternAWSAZaZ09AZaZ09 to be of type string, got %T instead", value) - } - sv.ResourceSetType = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDeniedException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ConflictException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentConflictException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InternalServerException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ThrottlingException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ValidationException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentValidationException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfCellOutput(v *[]types.CellOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.CellOutput - if *v == nil { - cv = []types.CellOutput{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.CellOutput - destAddr := &col - if err := awsRestjson1_deserializeDocumentCellOutput(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfCrossAccountAuthorization(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CrossAccountAuthorization to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfListRulesOutput(v *[]types.ListRulesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ListRulesOutput - if *v == nil { - cv = []types.ListRulesOutput{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ListRulesOutput - destAddr := &col - if err := awsRestjson1_deserializeDocumentListRulesOutput(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfMessage(v *[]types.Message, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.Message - if *v == nil { - cv = []types.Message{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Message - destAddr := &col - if err := awsRestjson1_deserializeDocumentMessage(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfReadinessCheckOutput(v *[]types.ReadinessCheckOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ReadinessCheckOutput - if *v == nil { - cv = []types.ReadinessCheckOutput{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ReadinessCheckOutput - destAddr := &col - if err := awsRestjson1_deserializeDocumentReadinessCheckOutput(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfReadinessCheckSummary(v *[]types.ReadinessCheckSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ReadinessCheckSummary - if *v == nil { - cv = []types.ReadinessCheckSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ReadinessCheckSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentReadinessCheckSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfRecommendation(v *[]types.Recommendation, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.Recommendation - if *v == nil { - cv = []types.Recommendation{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Recommendation - destAddr := &col - if err := awsRestjson1_deserializeDocumentRecommendation(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfRecoveryGroupOutput(v *[]types.RecoveryGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.RecoveryGroupOutput - if *v == nil { - cv = []types.RecoveryGroupOutput{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.RecoveryGroupOutput - destAddr := &col - if err := awsRestjson1_deserializeDocumentRecoveryGroupOutput(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfResource(v *[]types.Resource, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.Resource - if *v == nil { - cv = []types.Resource{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Resource - destAddr := &col - if err := awsRestjson1_deserializeDocumentResource(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfResourceResult(v *[]types.ResourceResult, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ResourceResult - if *v == nil { - cv = []types.ResourceResult{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ResourceResult - destAddr := &col - if err := awsRestjson1_deserializeDocumentResourceResult(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfResourceSetOutput(v *[]types.ResourceSetOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ResourceSetOutput - if *v == nil { - cv = []types.ResourceSetOutput{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ResourceSetOutput - destAddr := &col - if err := awsRestjson1_deserializeDocumentResourceSetOutput(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocument__listOfRuleResult(v *[]types.RuleResult, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.RuleResult - if *v == nil { - cv = []types.RuleResult{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.RuleResult - destAddr := &col - if err := awsRestjson1_deserializeDocumentRuleResult(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AccessDeniedException - if *v == nil { - sv = &types.AccessDeniedException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentCellOutput(v **types.CellOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.CellOutput - if *v == nil { - sv = &types.CellOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "cellArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.CellArn = ptr.String(jtv) - } - - case "cellName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.CellName = ptr.String(jtv) - } - - case "cells": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { - return err - } - - case "parentReadinessScopes": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ParentReadinessScopes, value); err != nil { - return err - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ConflictException - if *v == nil { - sv = &types.ConflictException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentDNSTargetResource(v **types.DNSTargetResource, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.DNSTargetResource - if *v == nil { - sv = &types.DNSTargetResource{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "domainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "hostedZoneArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.HostedZoneArn = ptr.String(jtv) - } - - case "recordSetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.RecordSetId = ptr.String(jtv) - } - - case "recordType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.RecordType = ptr.String(jtv) - } - - case "targetResource": - if err := awsRestjson1_deserializeDocumentTargetResource(&sv.TargetResource, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.InternalServerException - if *v == nil { - sv = &types.InternalServerException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentListRulesOutput(v **types.ListRulesOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ListRulesOutput - if *v == nil { - sv = &types.ListRulesOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "resourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64 to be of type string, got %T instead", value) - } - sv.ResourceType = ptr.String(jtv) - } - - case "ruleDescription": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.RuleDescription = ptr.String(jtv) - } - - case "ruleId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64 to be of type string, got %T instead", value) - } - sv.RuleId = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Message - if *v == nil { - sv = &types.Message{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "messageText": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.MessageText = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentNLBResource(v **types.NLBResource, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.NLBResource - if *v == nil { - sv = &types.NLBResource{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentR53ResourceRecord(v **types.R53ResourceRecord, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.R53ResourceRecord - if *v == nil { - sv = &types.R53ResourceRecord{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "domainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "recordSetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.RecordSetId = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentReadinessCheckOutput(v **types.ReadinessCheckOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ReadinessCheckOutput - if *v == nil { - sv = &types.ReadinessCheckOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "readinessCheckArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.ReadinessCheckArn = ptr.String(jtv) - } - - case "readinessCheckName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ReadinessCheckName = ptr.String(jtv) - } - - case "resourceSet": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ResourceSet = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentReadinessCheckSummary(v **types.ReadinessCheckSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ReadinessCheckSummary - if *v == nil { - sv = &types.ReadinessCheckSummary{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "readiness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) - } - sv.Readiness = types.Readiness(jtv) - } - - case "readinessCheckName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ReadinessCheckName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRecommendation(v **types.Recommendation, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Recommendation - if *v == nil { - sv = &types.Recommendation{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "recommendationText": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.RecommendationText = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRecoveryGroupOutput(v **types.RecoveryGroupOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RecoveryGroupOutput - if *v == nil { - sv = &types.RecoveryGroupOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "cells": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { - return err - } - - case "recoveryGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.RecoveryGroupArn = ptr.String(jtv) - } - - case "recoveryGroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.RecoveryGroupName = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Resource - if *v == nil { - sv = &types.Resource{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "componentId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ComponentId = ptr.String(jtv) - } - - case "dnsTargetResource": - if err := awsRestjson1_deserializeDocumentDNSTargetResource(&sv.DnsTargetResource, value); err != nil { - return err - } - - case "readinessScopes": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ReadinessScopes, value); err != nil { - return err - } - - case "resourceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ResourceArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ResourceNotFoundException - if *v == nil { - sv = &types.ResourceNotFoundException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentResourceResult(v **types.ResourceResult, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ResourceResult - if *v == nil { - sv = &types.ResourceResult{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "componentId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ComponentId = ptr.String(jtv) - } - - case "lastCheckedTimestamp": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReadinessCheckTimestamp to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err - } - sv.LastCheckedTimestamp = ptr.Time(t) - } - - case "readiness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) - } - sv.Readiness = types.Readiness(jtv) - } - - case "resourceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.ResourceArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentResourceSetOutput(v **types.ResourceSetOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ResourceSetOutput - if *v == nil { - sv = &types.ResourceSetOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "resources": - if err := awsRestjson1_deserializeDocument__listOfResource(&sv.Resources, value); err != nil { - return err - } - - case "resourceSetArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) - } - sv.ResourceSetArn = ptr.String(jtv) - } - - case "resourceSetName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) - } - sv.ResourceSetName = ptr.String(jtv) - } - - case "resourceSetType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __stringPatternAWSAZaZ09AZaZ09 to be of type string, got %T instead", value) - } - sv.ResourceSetType = ptr.String(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRuleResult(v **types.RuleResult, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RuleResult - if *v == nil { - sv = &types.RuleResult{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "lastCheckedTimestamp": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReadinessCheckTimestamp to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err - } - sv.LastCheckedTimestamp = ptr.Time(t) - } - - case "messages": - if err := awsRestjson1_deserializeDocument__listOfMessage(&sv.Messages, value); err != nil { - return err - } - - case "readiness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) - } - sv.Readiness = types.Readiness(jtv) - } - - case "ruleId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.RuleId = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var mv map[string]string - if *v == nil { - mv = map[string]string{} - } else { - mv = *v - } - - for key, value := range shape { - var parsedVal string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - parsedVal = jtv - } - mv[key] = parsedVal - - } - *v = mv - return nil -} - -func awsRestjson1_deserializeDocumentTargetResource(v **types.TargetResource, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.TargetResource - if *v == nil { - sv = &types.TargetResource{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "nLBResource": - if err := awsRestjson1_deserializeDocumentNLBResource(&sv.NLBResource, value); err != nil { - return err - } - - case "r53Resource": - if err := awsRestjson1_deserializeDocumentR53ResourceRecord(&sv.R53Resource, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ThrottlingException - if *v == nil { - sv = &types.ThrottlingException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ValidationException - if *v == nil { - sv = &types.ValidationException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} diff --git a/service/route53recoveryreadiness/doc.go b/service/route53recoveryreadiness/doc.go deleted file mode 100644 index 58292b6a597..00000000000 --- a/service/route53recoveryreadiness/doc.go +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -// Package route53recoveryreadiness provides the API client, operations, and -// parameter types for AWS Route53 Recovery Readiness. -// -// AWS Route53 Recovery Readiness -package route53recoveryreadiness diff --git a/service/route53recoveryreadiness/endpoints.go b/service/route53recoveryreadiness/endpoints.go deleted file mode 100644 index b6a92651c1a..00000000000 --- a/service/route53recoveryreadiness/endpoints.go +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "errors" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - internalendpoints "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/internal/endpoints" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" - "net/url" -) - -// EndpointResolverOptions is the service endpoint resolver options -type EndpointResolverOptions = internalendpoints.Options - -// EndpointResolver interface for resolving service endpoints. -type EndpointResolver interface { - ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) -} - -var _ EndpointResolver = &internalendpoints.Resolver{} - -// NewDefaultEndpointResolver constructs a new service endpoint resolver -func NewDefaultEndpointResolver() *internalendpoints.Resolver { - return internalendpoints.New() -} - -// EndpointResolverFunc is a helper utility that wraps a function so it satisfies -// the EndpointResolver interface. This is useful when you want to add additional -// endpoint resolving logic, or stub out specific endpoints with custom values. -type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) - -func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { - return fn(region, options) -} - -func resolveDefaultEndpointConfiguration(o *Options) { - if o.EndpointResolver != nil { - return - } - o.EndpointResolver = NewDefaultEndpointResolver() -} - -// EndpointResolverFromURL returns an EndpointResolver configured using the -// provided endpoint url. By default, the resolved endpoint resolver uses the -// client region as signing region, and the endpoint source is set to -// EndpointSourceCustom.You can provide functional options to configure endpoint -// values for the resolved endpoint. -func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { - e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} - for _, fn := range optFns { - fn(&e) - } - - return EndpointResolverFunc( - func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { - if len(e.SigningRegion) == 0 { - e.SigningRegion = region - } - return e, nil - }, - ) -} - -type ResolveEndpoint struct { - Resolver EndpointResolver - Options EndpointResolverOptions -} - -func (*ResolveEndpoint) ID() string { - return "ResolveEndpoint" -} - -func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) - } - - if m.Resolver == nil { - return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") - } - - var endpoint aws.Endpoint - endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), m.Options) - if err != nil { - return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) - } - - req.URL, err = url.Parse(endpoint.URL) - if err != nil { - return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) - } - - if len(awsmiddleware.GetSigningName(ctx)) == 0 { - signingName := endpoint.SigningName - if len(signingName) == 0 { - signingName = "route53-recovery-readiness" - } - ctx = awsmiddleware.SetSigningName(ctx, signingName) - } - ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) - ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) - ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) - ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) - return next.HandleSerialize(ctx, in) -} -func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { - return stack.Serialize.Insert(&ResolveEndpoint{ - Resolver: o.EndpointResolver, - Options: o.EndpointOptions, - }, "OperationSerializer", middleware.Before) -} - -func removeResolveEndpointMiddleware(stack *middleware.Stack) error { - _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) - return err -} - -type wrappedEndpointResolver struct { - awsResolver aws.EndpointResolver - resolver EndpointResolver -} - -func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { - if w.awsResolver == nil { - goto fallback - } - endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region) - if err == nil { - return endpoint, nil - } - - if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { - return endpoint, err - } - -fallback: - if w.resolver == nil { - return endpoint, fmt.Errorf("default endpoint resolver provided was nil") - } - return w.resolver.ResolveEndpoint(region, options) -} - -// withEndpointResolver returns an EndpointResolver that first delegates endpoint -// resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError -// error, the resolver will use the the provided fallbackResolver for resolution. -// awsResolver and fallbackResolver must not be nil -func withEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver { - return &wrappedEndpointResolver{ - awsResolver: awsResolver, - resolver: fallbackResolver, - } -} diff --git a/service/route53recoveryreadiness/generated.json b/service/route53recoveryreadiness/generated.json deleted file mode 100644 index 2cf773160f7..00000000000 --- a/service/route53recoveryreadiness/generated.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "dependencies": { - "github.com/aws/aws-sdk-go-v2": "v1.4.0", - "github.com/aws/smithy-go": "v1.4.0" - }, - "files": [ - "api_client.go", - "api_op_CreateCell.go", - "api_op_CreateCrossAccountAuthorization.go", - "api_op_CreateReadinessCheck.go", - "api_op_CreateRecoveryGroup.go", - "api_op_CreateResourceSet.go", - "api_op_DeleteCell.go", - "api_op_DeleteCrossAccountAuthorization.go", - "api_op_DeleteReadinessCheck.go", - "api_op_DeleteRecoveryGroup.go", - "api_op_DeleteResourceSet.go", - "api_op_GetArchitectureRecommendations.go", - "api_op_GetCell.go", - "api_op_GetCellReadinessSummary.go", - "api_op_GetReadinessCheck.go", - "api_op_GetReadinessCheckResourceStatus.go", - "api_op_GetReadinessCheckStatus.go", - "api_op_GetRecoveryGroup.go", - "api_op_GetRecoveryGroupReadinessSummary.go", - "api_op_GetResourceSet.go", - "api_op_ListCells.go", - "api_op_ListCrossAccountAuthorizations.go", - "api_op_ListReadinessChecks.go", - "api_op_ListRecoveryGroups.go", - "api_op_ListResourceSets.go", - "api_op_ListRules.go", - "api_op_ListTagsForResources.go", - "api_op_TagResource.go", - "api_op_UntagResource.go", - "api_op_UpdateCell.go", - "api_op_UpdateReadinessCheck.go", - "api_op_UpdateRecoveryGroup.go", - "api_op_UpdateResourceSet.go", - "deserializers.go", - "doc.go", - "endpoints.go", - "generated.json", - "internal/endpoints/endpoints.go", - "internal/endpoints/endpoints_test.go", - "protocol_test.go", - "serializers.go", - "types/enums.go", - "types/errors.go", - "types/types.go", - "validators.go" - ], - "go": "1.15", - "module": "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness", - "unstable": false -} diff --git a/service/route53recoveryreadiness/go.mod b/service/route53recoveryreadiness/go.mod deleted file mode 100644 index 3d0ba76e2e2..00000000000 --- a/service/route53recoveryreadiness/go.mod +++ /dev/null @@ -1,10 +0,0 @@ -module github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness - -go 1.15 - -require ( - github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 -) - -replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53recoveryreadiness/go.sum b/service/route53recoveryreadiness/go.sum deleted file mode 100644 index a8411cb9e1d..00000000000 --- a/service/route53recoveryreadiness/go.sum +++ /dev/null @@ -1,14 +0,0 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/route53recoveryreadiness/go_module_metadata.go b/service/route53recoveryreadiness/go_module_metadata.go deleted file mode 100644 index 6a59a2a317b..00000000000 --- a/service/route53recoveryreadiness/go_module_metadata.go +++ /dev/null @@ -1,6 +0,0 @@ -// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. - -package route53recoveryreadiness - -// goModuleVersion is the tagged release for this module -const goModuleVersion = "tip" diff --git a/service/route53recoveryreadiness/internal/endpoints/endpoints.go b/service/route53recoveryreadiness/internal/endpoints/endpoints.go deleted file mode 100644 index 845d073ae7c..00000000000 --- a/service/route53recoveryreadiness/internal/endpoints/endpoints.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package endpoints - -import ( - "github.com/aws/aws-sdk-go-v2/aws" - "github.com/aws/aws-sdk-go-v2/internal/endpoints" - "regexp" -) - -// Options is the endpoint resolver configuration options -type Options struct { - DisableHTTPS bool -} - -// Resolver Route53 Recovery Readiness endpoint resolver -type Resolver struct { - partitions endpoints.Partitions -} - -// ResolveEndpoint resolves the service endpoint for the given region and options -func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { - if len(region) == 0 { - return endpoint, &aws.MissingRegionError{} - } - - opt := endpoints.Options{ - DisableHTTPS: options.DisableHTTPS, - } - return r.partitions.ResolveEndpoint(region, opt) -} - -// New returns a new Resolver -func New() *Resolver { - return &Resolver{ - partitions: defaultPartitions, - } -} - -var partitionRegexp = struct { - Aws *regexp.Regexp - AwsCn *regexp.Regexp - AwsIso *regexp.Regexp - AwsIsoB *regexp.Regexp - AwsUsGov *regexp.Regexp -}{ - - Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), - AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), - AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), - AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), - AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), -} - -var defaultPartitions = endpoints.Partitions{ - { - ID: "aws", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-readiness.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.Aws, - IsRegionalized: true, - }, - { - ID: "aws-cn", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-readiness.{region}.amazonaws.com.cn", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsCn, - IsRegionalized: true, - }, - { - ID: "aws-iso", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-readiness.{region}.c2s.ic.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsIso, - IsRegionalized: true, - }, - { - ID: "aws-iso-b", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-readiness.{region}.sc2s.sgov.gov", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsIsoB, - IsRegionalized: true, - }, - { - ID: "aws-us-gov", - Defaults: endpoints.Endpoint{ - Hostname: "route53-recovery-readiness.{region}.amazonaws.com", - Protocols: []string{"https"}, - SignatureVersions: []string{"v4"}, - }, - RegionRegex: partitionRegexp.AwsUsGov, - IsRegionalized: true, - }, -} diff --git a/service/route53recoveryreadiness/internal/endpoints/endpoints_test.go b/service/route53recoveryreadiness/internal/endpoints/endpoints_test.go deleted file mode 100644 index 08e5da2d833..00000000000 --- a/service/route53recoveryreadiness/internal/endpoints/endpoints_test.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package endpoints - -import ( - "testing" -) - -func TestRegexCompile(t *testing.T) { - _ = defaultPartitions -} diff --git a/service/route53recoveryreadiness/protocol_test.go b/service/route53recoveryreadiness/protocol_test.go deleted file mode 100644 index 7556eef523e..00000000000 --- a/service/route53recoveryreadiness/protocol_test.go +++ /dev/null @@ -1,3 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness diff --git a/service/route53recoveryreadiness/serializers.go b/service/route53recoveryreadiness/serializers.go deleted file mode 100644 index 44434ec7195..00000000000 --- a/service/route53recoveryreadiness/serializers.go +++ /dev/null @@ -1,2311 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "bytes" - "context" - "fmt" - "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" - smithy "github.com/aws/smithy-go" - "github.com/aws/smithy-go/encoding/httpbinding" - smithyjson "github.com/aws/smithy-go/encoding/json" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -type awsRestjson1_serializeOpCreateCell struct { -} - -func (*awsRestjson1_serializeOpCreateCell) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpCreateCell) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateCellInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cells") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateCellInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsCreateCellInput(v *CreateCellInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentCreateCellInput(v *CreateCellInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CellName != nil { - ok := object.Key("cellName") - ok.String(*v.CellName) - } - - if v.Cells != nil { - ok := object.Key("cells") - if err := awsRestjson1_serializeDocument__listOf__string(v.Cells, ok); err != nil { - return err - } - } - - if v.Tags != nil { - ok := object.Key("tags") - if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpCreateCrossAccountAuthorization struct { -} - -func (*awsRestjson1_serializeOpCreateCrossAccountAuthorization) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpCreateCrossAccountAuthorization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateCrossAccountAuthorizationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/crossaccountauthorizations") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateCrossAccountAuthorizationInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsCreateCrossAccountAuthorizationInput(v *CreateCrossAccountAuthorizationInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentCreateCrossAccountAuthorizationInput(v *CreateCrossAccountAuthorizationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CrossAccountAuthorization != nil { - ok := object.Key("crossAccountAuthorization") - ok.String(*v.CrossAccountAuthorization) - } - - return nil -} - -type awsRestjson1_serializeOpCreateReadinessCheck struct { -} - -func (*awsRestjson1_serializeOpCreateReadinessCheck) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpCreateReadinessCheck) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateReadinessCheckInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/readinesschecks") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateReadinessCheckInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsCreateReadinessCheckInput(v *CreateReadinessCheckInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentCreateReadinessCheckInput(v *CreateReadinessCheckInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ReadinessCheckName != nil { - ok := object.Key("readinessCheckName") - ok.String(*v.ReadinessCheckName) - } - - if v.ResourceSetName != nil { - ok := object.Key("resourceSetName") - ok.String(*v.ResourceSetName) - } - - if v.Tags != nil { - ok := object.Key("tags") - if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpCreateRecoveryGroup struct { -} - -func (*awsRestjson1_serializeOpCreateRecoveryGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpCreateRecoveryGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateRecoveryGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/recoverygroups") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateRecoveryGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsCreateRecoveryGroupInput(v *CreateRecoveryGroupInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentCreateRecoveryGroupInput(v *CreateRecoveryGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Cells != nil { - ok := object.Key("cells") - if err := awsRestjson1_serializeDocument__listOf__string(v.Cells, ok); err != nil { - return err - } - } - - if v.RecoveryGroupName != nil { - ok := object.Key("recoveryGroupName") - ok.String(*v.RecoveryGroupName) - } - - if v.Tags != nil { - ok := object.Key("tags") - if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpCreateResourceSet struct { -} - -func (*awsRestjson1_serializeOpCreateResourceSet) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpCreateResourceSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateResourceSetInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/resourcesets") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateResourceSetInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsCreateResourceSetInput(v *CreateResourceSetInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - return nil -} - -func awsRestjson1_serializeOpDocumentCreateResourceSetInput(v *CreateResourceSetInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Resources != nil { - ok := object.Key("resources") - if err := awsRestjson1_serializeDocument__listOfResource(v.Resources, ok); err != nil { - return err - } - } - - if v.ResourceSetName != nil { - ok := object.Key("resourceSetName") - ok.String(*v.ResourceSetName) - } - - if v.ResourceSetType != nil { - ok := object.Key("resourceSetType") - ok.String(*v.ResourceSetType) - } - - if v.Tags != nil { - ok := object.Key("tags") - if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDeleteCell struct { -} - -func (*awsRestjson1_serializeOpDeleteCell) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDeleteCell) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteCellInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cells/{CellName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDeleteCellInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDeleteCellInput(v *DeleteCellInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.CellName == nil || len(*v.CellName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CellName must not be empty")} - } - if v.CellName != nil { - if err := encoder.SetURI("CellName").String(*v.CellName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDeleteCrossAccountAuthorization struct { -} - -func (*awsRestjson1_serializeOpDeleteCrossAccountAuthorization) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDeleteCrossAccountAuthorization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteCrossAccountAuthorizationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/crossaccountauthorizations/{CrossAccountAuthorization}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDeleteCrossAccountAuthorizationInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDeleteCrossAccountAuthorizationInput(v *DeleteCrossAccountAuthorizationInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.CrossAccountAuthorization == nil || len(*v.CrossAccountAuthorization) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CrossAccountAuthorization must not be empty")} - } - if v.CrossAccountAuthorization != nil { - if err := encoder.SetURI("CrossAccountAuthorization").String(*v.CrossAccountAuthorization); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDeleteReadinessCheck struct { -} - -func (*awsRestjson1_serializeOpDeleteReadinessCheck) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDeleteReadinessCheck) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteReadinessCheckInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDeleteReadinessCheckInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDeleteReadinessCheckInput(v *DeleteReadinessCheckInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} - } - if v.ReadinessCheckName != nil { - if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDeleteRecoveryGroup struct { -} - -func (*awsRestjson1_serializeOpDeleteRecoveryGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDeleteRecoveryGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteRecoveryGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/recoverygroups/{RecoveryGroupName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDeleteRecoveryGroupInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDeleteRecoveryGroupInput(v *DeleteRecoveryGroupInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} - } - if v.RecoveryGroupName != nil { - if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpDeleteResourceSet struct { -} - -func (*awsRestjson1_serializeOpDeleteResourceSet) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpDeleteResourceSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*DeleteResourceSetInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/resourcesets/{ResourceSetName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsDeleteResourceSetInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsDeleteResourceSetInput(v *DeleteResourceSetInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ResourceSetName == nil || len(*v.ResourceSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceSetName must not be empty")} - } - if v.ResourceSetName != nil { - if err := encoder.SetURI("ResourceSetName").String(*v.ResourceSetName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGetArchitectureRecommendations struct { -} - -func (*awsRestjson1_serializeOpGetArchitectureRecommendations) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGetArchitectureRecommendations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetArchitectureRecommendationsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/recoverygroups/{RecoveryGroupName}/architectureRecommendations") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetArchitectureRecommendationsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGetArchitectureRecommendationsInput(v *GetArchitectureRecommendationsInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} - } - if v.RecoveryGroupName != nil { - if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGetCell struct { -} - -func (*awsRestjson1_serializeOpGetCell) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGetCell) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetCellInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cells/{CellName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetCellInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGetCellInput(v *GetCellInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.CellName == nil || len(*v.CellName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CellName must not be empty")} - } - if v.CellName != nil { - if err := encoder.SetURI("CellName").String(*v.CellName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGetCellReadinessSummary struct { -} - -func (*awsRestjson1_serializeOpGetCellReadinessSummary) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGetCellReadinessSummary) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetCellReadinessSummaryInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cellreadiness/{CellName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetCellReadinessSummaryInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGetCellReadinessSummaryInput(v *GetCellReadinessSummaryInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.CellName == nil || len(*v.CellName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CellName must not be empty")} - } - if v.CellName != nil { - if err := encoder.SetURI("CellName").String(*v.CellName); err != nil { - return err - } - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpGetReadinessCheck struct { -} - -func (*awsRestjson1_serializeOpGetReadinessCheck) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGetReadinessCheck) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetReadinessCheckInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetReadinessCheckInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGetReadinessCheckInput(v *GetReadinessCheckInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} - } - if v.ReadinessCheckName != nil { - if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGetReadinessCheckResourceStatus struct { -} - -func (*awsRestjson1_serializeOpGetReadinessCheckResourceStatus) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGetReadinessCheckResourceStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetReadinessCheckResourceStatusInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetReadinessCheckResourceStatusInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGetReadinessCheckResourceStatusInput(v *GetReadinessCheckResourceStatusInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} - } - if v.ReadinessCheckName != nil { - if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { - return err - } - } - - if v.ResourceIdentifier == nil || len(*v.ResourceIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceIdentifier must not be empty")} - } - if v.ResourceIdentifier != nil { - if err := encoder.SetURI("ResourceIdentifier").String(*v.ResourceIdentifier); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGetReadinessCheckStatus struct { -} - -func (*awsRestjson1_serializeOpGetReadinessCheckStatus) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGetReadinessCheckStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetReadinessCheckStatusInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}/status") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetReadinessCheckStatusInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGetReadinessCheckStatusInput(v *GetReadinessCheckStatusInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} - } - if v.ReadinessCheckName != nil { - if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGetRecoveryGroup struct { -} - -func (*awsRestjson1_serializeOpGetRecoveryGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGetRecoveryGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetRecoveryGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/recoverygroups/{RecoveryGroupName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetRecoveryGroupInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGetRecoveryGroupInput(v *GetRecoveryGroupInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} - } - if v.RecoveryGroupName != nil { - if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGetRecoveryGroupReadinessSummary struct { -} - -func (*awsRestjson1_serializeOpGetRecoveryGroupReadinessSummary) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGetRecoveryGroupReadinessSummary) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetRecoveryGroupReadinessSummaryInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/recoverygroupreadiness/{RecoveryGroupName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetRecoveryGroupReadinessSummaryInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGetRecoveryGroupReadinessSummaryInput(v *GetRecoveryGroupReadinessSummaryInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} - } - if v.RecoveryGroupName != nil { - if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGetResourceSet struct { -} - -func (*awsRestjson1_serializeOpGetResourceSet) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpGetResourceSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*GetResourceSetInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/resourcesets/{ResourceSetName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetResourceSetInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsGetResourceSetInput(v *GetResourceSetInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ResourceSetName == nil || len(*v.ResourceSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceSetName must not be empty")} - } - if v.ResourceSetName != nil { - if err := encoder.SetURI("ResourceSetName").String(*v.ResourceSetName); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpListCells struct { -} - -func (*awsRestjson1_serializeOpListCells) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListCells) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListCellsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cells") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListCellsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListCellsInput(v *ListCellsInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpListCrossAccountAuthorizations struct { -} - -func (*awsRestjson1_serializeOpListCrossAccountAuthorizations) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListCrossAccountAuthorizations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListCrossAccountAuthorizationsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/crossaccountauthorizations") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListCrossAccountAuthorizationsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListCrossAccountAuthorizationsInput(v *ListCrossAccountAuthorizationsInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpListReadinessChecks struct { -} - -func (*awsRestjson1_serializeOpListReadinessChecks) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListReadinessChecks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListReadinessChecksInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/readinesschecks") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListReadinessChecksInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListReadinessChecksInput(v *ListReadinessChecksInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpListRecoveryGroups struct { -} - -func (*awsRestjson1_serializeOpListRecoveryGroups) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListRecoveryGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListRecoveryGroupsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/recoverygroups") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListRecoveryGroupsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListRecoveryGroupsInput(v *ListRecoveryGroupsInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpListResourceSets struct { -} - -func (*awsRestjson1_serializeOpListResourceSets) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListResourceSets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListResourceSetsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/resourcesets") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListResourceSetsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListResourceSetsInput(v *ListResourceSetsInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - return nil -} - -type awsRestjson1_serializeOpListRules struct { -} - -func (*awsRestjson1_serializeOpListRules) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListRulesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/rules") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListRulesInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListRulesInput(v *ListRulesInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) - } - - if v.ResourceType != nil { - encoder.SetQuery("resourceType").String(*v.ResourceType) - } - - return nil -} - -type awsRestjson1_serializeOpListTagsForResources struct { -} - -func (*awsRestjson1_serializeOpListTagsForResources) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpListTagsForResources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*ListTagsForResourcesInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourcesInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsListTagsForResourcesInput(v *ListTagsForResourcesInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } - if v.ResourceArn != nil { - if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpTagResource struct { -} - -func (*awsRestjson1_serializeOpTagResource) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*TagResourceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } - if v.ResourceArn != nil { - if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Tags != nil { - ok := object.Key("tags") - if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpUntagResource struct { -} - -func (*awsRestjson1_serializeOpUntagResource) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UntagResourceInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } - if v.ResourceArn != nil { - if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { - return err - } - } - - if v.TagKeys != nil { - for i := range v.TagKeys { - encoder.AddQuery("tagKeys").String(v.TagKeys[i]) - } - } - - return nil -} - -type awsRestjson1_serializeOpUpdateCell struct { -} - -func (*awsRestjson1_serializeOpUpdateCell) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateCell) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateCellInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/cells/{CellName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUpdateCellInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateCellInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateCellInput(v *UpdateCellInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.CellName == nil || len(*v.CellName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CellName must not be empty")} - } - if v.CellName != nil { - if err := encoder.SetURI("CellName").String(*v.CellName); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateCellInput(v *UpdateCellInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Cells != nil { - ok := object.Key("cells") - if err := awsRestjson1_serializeDocument__listOf__string(v.Cells, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpUpdateReadinessCheck struct { -} - -func (*awsRestjson1_serializeOpUpdateReadinessCheck) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateReadinessCheck) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateReadinessCheckInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUpdateReadinessCheckInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateReadinessCheckInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateReadinessCheckInput(v *UpdateReadinessCheckInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} - } - if v.ReadinessCheckName != nil { - if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateReadinessCheckInput(v *UpdateReadinessCheckInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ResourceSetName != nil { - ok := object.Key("resourceSetName") - ok.String(*v.ResourceSetName) - } - - return nil -} - -type awsRestjson1_serializeOpUpdateRecoveryGroup struct { -} - -func (*awsRestjson1_serializeOpUpdateRecoveryGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateRecoveryGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateRecoveryGroupInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/recoverygroups/{RecoveryGroupName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUpdateRecoveryGroupInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateRecoveryGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateRecoveryGroupInput(v *UpdateRecoveryGroupInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} - } - if v.RecoveryGroupName != nil { - if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateRecoveryGroupInput(v *UpdateRecoveryGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Cells != nil { - ok := object.Key("cells") - if err := awsRestjson1_serializeDocument__listOf__string(v.Cells, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpUpdateResourceSet struct { -} - -func (*awsRestjson1_serializeOpUpdateResourceSet) ID() string { - return "OperationSerializer" -} - -func (m *awsRestjson1_serializeOpUpdateResourceSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*UpdateResourceSetInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - opPath, opQuery := httpbinding.SplitURI("/resourcesets/{ResourceSetName}") - request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) - request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" - restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsUpdateResourceSetInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateResourceSetInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} -func awsRestjson1_serializeOpHttpBindingsUpdateResourceSetInput(v *UpdateResourceSetInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - - if v.ResourceSetName == nil || len(*v.ResourceSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceSetName must not be empty")} - } - if v.ResourceSetName != nil { - if err := encoder.SetURI("ResourceSetName").String(*v.ResourceSetName); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeOpDocumentUpdateResourceSetInput(v *UpdateResourceSetInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Resources != nil { - ok := object.Key("resources") - if err := awsRestjson1_serializeDocument__listOfResource(v.Resources, ok); err != nil { - return err - } - } - - if v.ResourceSetType != nil { - ok := object.Key("resourceSetType") - ok.String(*v.ResourceSetType) - } - - return nil -} - -func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsRestjson1_serializeDocument__listOfResource(v []types.Resource, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentResource(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentDNSTargetResource(v *types.DNSTargetResource, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DomainName != nil { - ok := object.Key("domainName") - ok.String(*v.DomainName) - } - - if v.HostedZoneArn != nil { - ok := object.Key("hostedZoneArn") - ok.String(*v.HostedZoneArn) - } - - if v.RecordSetId != nil { - ok := object.Key("recordSetId") - ok.String(*v.RecordSetId) - } - - if v.RecordType != nil { - ok := object.Key("recordType") - ok.String(*v.RecordType) - } - - if v.TargetResource != nil { - ok := object.Key("targetResource") - if err := awsRestjson1_serializeDocumentTargetResource(v.TargetResource, ok); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeDocumentNLBResource(v *types.NLBResource, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Arn != nil { - ok := object.Key("arn") - ok.String(*v.Arn) - } - - return nil -} - -func awsRestjson1_serializeDocumentR53ResourceRecord(v *types.R53ResourceRecord, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DomainName != nil { - ok := object.Key("domainName") - ok.String(*v.DomainName) - } - - if v.RecordSetId != nil { - ok := object.Key("recordSetId") - ok.String(*v.RecordSetId) - } - - return nil -} - -func awsRestjson1_serializeDocumentResource(v *types.Resource, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ComponentId != nil { - ok := object.Key("componentId") - ok.String(*v.ComponentId) - } - - if v.DnsTargetResource != nil { - ok := object.Key("dnsTargetResource") - if err := awsRestjson1_serializeDocumentDNSTargetResource(v.DnsTargetResource, ok); err != nil { - return err - } - } - - if v.ReadinessScopes != nil { - ok := object.Key("readinessScopes") - if err := awsRestjson1_serializeDocument__listOf__string(v.ReadinessScopes, ok); err != nil { - return err - } - } - - if v.ResourceArn != nil { - ok := object.Key("resourceArn") - ok.String(*v.ResourceArn) - } - - return nil -} - -func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - for key := range v { - om := object.Key(key) - om.String(v[key]) - } - return nil -} - -func awsRestjson1_serializeDocumentTargetResource(v *types.TargetResource, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.NLBResource != nil { - ok := object.Key("nLBResource") - if err := awsRestjson1_serializeDocumentNLBResource(v.NLBResource, ok); err != nil { - return err - } - } - - if v.R53Resource != nil { - ok := object.Key("r53Resource") - if err := awsRestjson1_serializeDocumentR53ResourceRecord(v.R53Resource, ok); err != nil { - return err - } - } - - return nil -} diff --git a/service/route53recoveryreadiness/types/enums.go b/service/route53recoveryreadiness/types/enums.go deleted file mode 100644 index 4dfbb8e0c52..00000000000 --- a/service/route53recoveryreadiness/types/enums.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -type Readiness string - -// Enum values for Readiness -const ( - ReadinessReady Readiness = "READY" - ReadinessNotReady Readiness = "NOT_READY" - ReadinessUnknown Readiness = "UNKNOWN" - ReadinessNotAuthorized Readiness = "NOT_AUTHORIZED" -) - -// Values returns all known values for Readiness. Note that this can be expanded in -// the future, and so it is only as up to date as the client. The ordering of this -// slice is not guaranteed to be stable across updates. -func (Readiness) Values() []Readiness { - return []Readiness{ - "READY", - "NOT_READY", - "UNKNOWN", - "NOT_AUTHORIZED", - } -} diff --git a/service/route53recoveryreadiness/types/errors.go b/service/route53recoveryreadiness/types/errors.go deleted file mode 100644 index 22fb4971bdd..00000000000 --- a/service/route53recoveryreadiness/types/errors.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -import ( - "fmt" - smithy "github.com/aws/smithy-go" -) - -// User does not have sufficient access to perform this action. -type AccessDeniedException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *AccessDeniedException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } -func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// Updating or deleting a resource can cause an inconsistent state. -type ConflictException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ConflictException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ConflictException) ErrorCode() string { return "ConflictException" } -func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// An unexpected error occurred. -type InternalServerException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *InternalServerException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } -func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } - -// The requested resource does not exist. -type ResourceNotFoundException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ResourceNotFoundException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } -func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// Request was denied due to request throttling. -type ThrottlingException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ThrottlingException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ThrottlingException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } -func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The input fails to satisfy the constraints specified by an AWS service. -type ValidationException struct { - Message *string - - noSmithyDocumentSerde -} - -func (e *ValidationException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ValidationException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ValidationException) ErrorCode() string { return "ValidationException" } -func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoveryreadiness/types/types.go b/service/route53recoveryreadiness/types/types.go deleted file mode 100644 index fee928a6067..00000000000 --- a/service/route53recoveryreadiness/types/types.go +++ /dev/null @@ -1,291 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package types - -import ( - smithydocument "github.com/aws/smithy-go/document" - "time" -) - -// A Cell and its properties -type CellOutput struct { - - // The arn for the Cell - // - // This member is required. - CellArn *string - - // The name of the Cell - // - // This member is required. - CellName *string - - // A list of Cell arns - // - // This member is required. - Cells []string - - // A list of Cell ARNs and/or RecoveryGroup ARNs - // - // This member is required. - ParentReadinessScopes []string - - // A collection of tags associated with a resource - Tags map[string]string - - noSmithyDocumentSerde -} - -// A component for DNS/Routing Control Readiness Checks -type DNSTargetResource struct { - - // The DNS Name that acts as ingress point to a portion of application - DomainName *string - - // The Hosted Zone ARN that contains the DNS record with the provided name of - // target resource. - HostedZoneArn *string - - // The R53 Set Id to uniquely identify a record given a Name and a Type - RecordSetId *string - - // The Type of DNS Record of target resource - RecordType *string - - // The target resource the R53 record points to - TargetResource *TargetResource - - noSmithyDocumentSerde -} - -// A collection of rules used in a readiness check -type ListRulesOutput struct { - - // The resource type the rule applies to. - // - // This member is required. - ResourceType *string - - // A description of the rule - // - // This member is required. - RuleDescription *string - - // The Rule's ID. - // - // This member is required. - RuleId *string - - noSmithyDocumentSerde -} - -// Information relating to readiness check status -type Message struct { - - // The text of a readiness check message - MessageText *string - - noSmithyDocumentSerde -} - -// The NLB resource a DNS Target Resource points to -type NLBResource struct { - - // An NLB resource arn - Arn *string - - noSmithyDocumentSerde -} - -// The Route 53 resource a DNS Target Resource record points to -type R53ResourceRecord struct { - - // The DNS target name - DomainName *string - - // The Resource Record set id - RecordSetId *string - - noSmithyDocumentSerde -} - -// A resource used for checking the readiness of a Resource Set -type ReadinessCheckOutput struct { - - // Arn associated with ReadinessCheck - // - // This member is required. - ReadinessCheckArn *string - - // Name of the ResourceSet to be checked - // - // This member is required. - ResourceSet *string - - // Name for a ReadinessCheck - ReadinessCheckName *string - - // A collection of tags associated with a resource - Tags map[string]string - - noSmithyDocumentSerde -} - -// Summary of ReadinessCheck status, paginated in GetRecoveryGroupReadinessSummary -// and GetCellReadinessSummary -type ReadinessCheckSummary struct { - - // The readiness of this ReadinessCheck - Readiness Readiness - - // The name of a ReadinessCheck which is part of the given RecoveryGroup or Cell - ReadinessCheckName *string - - noSmithyDocumentSerde -} - -// Guidance for improving Recovery Group resilliancy -type Recommendation struct { - - // Guidance text for recommendation - // - // This member is required. - RecommendationText *string - - noSmithyDocumentSerde -} - -// A Recovery Group generally containing multiple Cells -type RecoveryGroupOutput struct { - - // A list of Cell arns - // - // This member is required. - Cells []string - - // The arn for the RecoveryGroup - // - // This member is required. - RecoveryGroupArn *string - - // The name of the RecoveryGroup - // - // This member is required. - RecoveryGroupName *string - - // A collection of tags associated with a resource - Tags map[string]string - - noSmithyDocumentSerde -} - -// The resource element of a ResourceSet -type Resource struct { - - // The component id of the resource, generated by the service when - // dnsTargetResource is used - ComponentId *string - - // A component for DNS/Routing Control Readiness Checks - DnsTargetResource *DNSTargetResource - - // A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained - // within. - ReadinessScopes []string - - // The ARN of the AWS resource, can be skipped if dnsTargetResource is used - ResourceArn *string - - noSmithyDocumentSerde -} - -// Result with status for an individual resource. -type ResourceResult struct { - - // The time the resource was last checked for readiness, in ISO-8601 format, UTC. - // - // This member is required. - LastCheckedTimestamp *time.Time - - // The readiness of the resource. - // - // This member is required. - Readiness Readiness - - // The component id of the resource - ComponentId *string - - // The ARN of the resource - ResourceArn *string - - noSmithyDocumentSerde -} - -// A collection of resources of the same type -type ResourceSetOutput struct { - - // The arn for the ResourceSet - // - // This member is required. - ResourceSetArn *string - - // The name of the ResourceSet - // - // This member is required. - ResourceSetName *string - - // AWS Resource Type of the resources in the ResourceSet - // - // This member is required. - ResourceSetType *string - - // A list of Resource objects - // - // This member is required. - Resources []Resource - - // A collection of tags associated with a resource - Tags map[string]string - - noSmithyDocumentSerde -} - -// Result with status for an individual rule.. -type RuleResult struct { - - // The time the resource was last checked for readiness, in ISO-8601 format, UTC. - // - // This member is required. - LastCheckedTimestamp *time.Time - - // Details about the resource's readiness - // - // This member is required. - Messages []Message - - // The readiness at rule level. - // - // This member is required. - Readiness Readiness - - // The identifier of the rule. - // - // This member is required. - RuleId *string - - noSmithyDocumentSerde -} - -// The target resource the R53 record points to -type TargetResource struct { - - // The NLB resource a DNS Target Resource points to - NLBResource *NLBResource - - // The Route 53 resource a DNS Target Resource record points to - R53Resource *R53ResourceRecord - - noSmithyDocumentSerde -} - -type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/route53recoveryreadiness/validators.go b/service/route53recoveryreadiness/validators.go deleted file mode 100644 index 8717b1470e7..00000000000 --- a/service/route53recoveryreadiness/validators.go +++ /dev/null @@ -1,1057 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package route53recoveryreadiness - -import ( - "context" - "fmt" - smithy "github.com/aws/smithy-go" - "github.com/aws/smithy-go/middleware" -) - -type validateOpCreateCell struct { -} - -func (*validateOpCreateCell) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateCell) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateCellInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateCellInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateCrossAccountAuthorization struct { -} - -func (*validateOpCreateCrossAccountAuthorization) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateCrossAccountAuthorization) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateCrossAccountAuthorizationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateCrossAccountAuthorizationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateReadinessCheck struct { -} - -func (*validateOpCreateReadinessCheck) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateReadinessCheck) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateReadinessCheckInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateReadinessCheckInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateRecoveryGroup struct { -} - -func (*validateOpCreateRecoveryGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateRecoveryGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateRecoveryGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateRecoveryGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateResourceSet struct { -} - -func (*validateOpCreateResourceSet) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateResourceSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateResourceSetInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateResourceSetInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteCell struct { -} - -func (*validateOpDeleteCell) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteCell) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteCellInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteCellInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteCrossAccountAuthorization struct { -} - -func (*validateOpDeleteCrossAccountAuthorization) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteCrossAccountAuthorization) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteCrossAccountAuthorizationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteCrossAccountAuthorizationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteReadinessCheck struct { -} - -func (*validateOpDeleteReadinessCheck) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteReadinessCheck) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteReadinessCheckInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteReadinessCheckInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteRecoveryGroup struct { -} - -func (*validateOpDeleteRecoveryGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteRecoveryGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteRecoveryGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteRecoveryGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteResourceSet struct { -} - -func (*validateOpDeleteResourceSet) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteResourceSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteResourceSetInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteResourceSetInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetArchitectureRecommendations struct { -} - -func (*validateOpGetArchitectureRecommendations) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetArchitectureRecommendations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetArchitectureRecommendationsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetArchitectureRecommendationsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetCell struct { -} - -func (*validateOpGetCell) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetCell) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetCellInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetCellInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetCellReadinessSummary struct { -} - -func (*validateOpGetCellReadinessSummary) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetCellReadinessSummary) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetCellReadinessSummaryInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetCellReadinessSummaryInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetReadinessCheck struct { -} - -func (*validateOpGetReadinessCheck) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetReadinessCheck) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetReadinessCheckInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetReadinessCheckInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetReadinessCheckResourceStatus struct { -} - -func (*validateOpGetReadinessCheckResourceStatus) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetReadinessCheckResourceStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetReadinessCheckResourceStatusInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetReadinessCheckResourceStatusInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetReadinessCheckStatus struct { -} - -func (*validateOpGetReadinessCheckStatus) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetReadinessCheckStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetReadinessCheckStatusInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetReadinessCheckStatusInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetRecoveryGroup struct { -} - -func (*validateOpGetRecoveryGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetRecoveryGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetRecoveryGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetRecoveryGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetRecoveryGroupReadinessSummary struct { -} - -func (*validateOpGetRecoveryGroupReadinessSummary) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetRecoveryGroupReadinessSummary) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetRecoveryGroupReadinessSummaryInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetRecoveryGroupReadinessSummaryInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetResourceSet struct { -} - -func (*validateOpGetResourceSet) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetResourceSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetResourceSetInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetResourceSetInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListTagsForResources struct { -} - -func (*validateOpListTagsForResources) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListTagsForResources) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListTagsForResourcesInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListTagsForResourcesInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpTagResource struct { -} - -func (*validateOpTagResource) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*TagResourceInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpTagResourceInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUntagResource struct { -} - -func (*validateOpUntagResource) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UntagResourceInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUntagResourceInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateCell struct { -} - -func (*validateOpUpdateCell) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateCell) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateCellInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateCellInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateReadinessCheck struct { -} - -func (*validateOpUpdateReadinessCheck) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateReadinessCheck) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateReadinessCheckInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateReadinessCheckInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateRecoveryGroup struct { -} - -func (*validateOpUpdateRecoveryGroup) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateRecoveryGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateRecoveryGroupInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateRecoveryGroupInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateResourceSet struct { -} - -func (*validateOpUpdateResourceSet) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateResourceSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateResourceSetInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateResourceSetInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -func addOpCreateCellValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateCell{}, middleware.After) -} - -func addOpCreateCrossAccountAuthorizationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateCrossAccountAuthorization{}, middleware.After) -} - -func addOpCreateReadinessCheckValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateReadinessCheck{}, middleware.After) -} - -func addOpCreateRecoveryGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateRecoveryGroup{}, middleware.After) -} - -func addOpCreateResourceSetValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateResourceSet{}, middleware.After) -} - -func addOpDeleteCellValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteCell{}, middleware.After) -} - -func addOpDeleteCrossAccountAuthorizationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteCrossAccountAuthorization{}, middleware.After) -} - -func addOpDeleteReadinessCheckValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteReadinessCheck{}, middleware.After) -} - -func addOpDeleteRecoveryGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteRecoveryGroup{}, middleware.After) -} - -func addOpDeleteResourceSetValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteResourceSet{}, middleware.After) -} - -func addOpGetArchitectureRecommendationsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetArchitectureRecommendations{}, middleware.After) -} - -func addOpGetCellValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetCell{}, middleware.After) -} - -func addOpGetCellReadinessSummaryValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetCellReadinessSummary{}, middleware.After) -} - -func addOpGetReadinessCheckValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetReadinessCheck{}, middleware.After) -} - -func addOpGetReadinessCheckResourceStatusValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetReadinessCheckResourceStatus{}, middleware.After) -} - -func addOpGetReadinessCheckStatusValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetReadinessCheckStatus{}, middleware.After) -} - -func addOpGetRecoveryGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetRecoveryGroup{}, middleware.After) -} - -func addOpGetRecoveryGroupReadinessSummaryValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetRecoveryGroupReadinessSummary{}, middleware.After) -} - -func addOpGetResourceSetValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetResourceSet{}, middleware.After) -} - -func addOpListTagsForResourcesValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListTagsForResources{}, middleware.After) -} - -func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) -} - -func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) -} - -func addOpUpdateCellValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateCell{}, middleware.After) -} - -func addOpUpdateReadinessCheckValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateReadinessCheck{}, middleware.After) -} - -func addOpUpdateRecoveryGroupValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateRecoveryGroup{}, middleware.After) -} - -func addOpUpdateResourceSetValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateResourceSet{}, middleware.After) -} - -func validateOpCreateCellInput(v *CreateCellInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateCellInput"} - if v.CellName == nil { - invalidParams.Add(smithy.NewErrParamRequired("CellName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateCrossAccountAuthorizationInput(v *CreateCrossAccountAuthorizationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateCrossAccountAuthorizationInput"} - if v.CrossAccountAuthorization == nil { - invalidParams.Add(smithy.NewErrParamRequired("CrossAccountAuthorization")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateReadinessCheckInput(v *CreateReadinessCheckInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateReadinessCheckInput"} - if v.ReadinessCheckName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) - } - if v.ResourceSetName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateRecoveryGroupInput(v *CreateRecoveryGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateRecoveryGroupInput"} - if v.RecoveryGroupName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateResourceSetInput(v *CreateResourceSetInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateResourceSetInput"} - if v.ResourceSetName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) - } - if v.ResourceSetType == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceSetType")) - } - if v.Resources == nil { - invalidParams.Add(smithy.NewErrParamRequired("Resources")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteCellInput(v *DeleteCellInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteCellInput"} - if v.CellName == nil { - invalidParams.Add(smithy.NewErrParamRequired("CellName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteCrossAccountAuthorizationInput(v *DeleteCrossAccountAuthorizationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteCrossAccountAuthorizationInput"} - if v.CrossAccountAuthorization == nil { - invalidParams.Add(smithy.NewErrParamRequired("CrossAccountAuthorization")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteReadinessCheckInput(v *DeleteReadinessCheckInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteReadinessCheckInput"} - if v.ReadinessCheckName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteRecoveryGroupInput(v *DeleteRecoveryGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteRecoveryGroupInput"} - if v.RecoveryGroupName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteResourceSetInput(v *DeleteResourceSetInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteResourceSetInput"} - if v.ResourceSetName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetArchitectureRecommendationsInput(v *GetArchitectureRecommendationsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetArchitectureRecommendationsInput"} - if v.RecoveryGroupName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetCellInput(v *GetCellInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetCellInput"} - if v.CellName == nil { - invalidParams.Add(smithy.NewErrParamRequired("CellName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetCellReadinessSummaryInput(v *GetCellReadinessSummaryInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetCellReadinessSummaryInput"} - if v.CellName == nil { - invalidParams.Add(smithy.NewErrParamRequired("CellName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetReadinessCheckInput(v *GetReadinessCheckInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetReadinessCheckInput"} - if v.ReadinessCheckName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetReadinessCheckResourceStatusInput(v *GetReadinessCheckResourceStatusInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetReadinessCheckResourceStatusInput"} - if v.ReadinessCheckName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) - } - if v.ResourceIdentifier == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceIdentifier")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetReadinessCheckStatusInput(v *GetReadinessCheckStatusInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetReadinessCheckStatusInput"} - if v.ReadinessCheckName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetRecoveryGroupInput(v *GetRecoveryGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetRecoveryGroupInput"} - if v.RecoveryGroupName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetRecoveryGroupReadinessSummaryInput(v *GetRecoveryGroupReadinessSummaryInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetRecoveryGroupReadinessSummaryInput"} - if v.RecoveryGroupName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetResourceSetInput(v *GetResourceSetInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetResourceSetInput"} - if v.ResourceSetName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListTagsForResourcesInput(v *ListTagsForResourcesInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourcesInput"} - if v.ResourceArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpTagResourceInput(v *TagResourceInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} - if v.ResourceArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) - } - if v.Tags == nil { - invalidParams.Add(smithy.NewErrParamRequired("Tags")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUntagResourceInput(v *UntagResourceInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} - if v.ResourceArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) - } - if v.TagKeys == nil { - invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateCellInput(v *UpdateCellInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateCellInput"} - if v.CellName == nil { - invalidParams.Add(smithy.NewErrParamRequired("CellName")) - } - if v.Cells == nil { - invalidParams.Add(smithy.NewErrParamRequired("Cells")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateReadinessCheckInput(v *UpdateReadinessCheckInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateReadinessCheckInput"} - if v.ReadinessCheckName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) - } - if v.ResourceSetName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateRecoveryGroupInput(v *UpdateRecoveryGroupInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateRecoveryGroupInput"} - if v.Cells == nil { - invalidParams.Add(smithy.NewErrParamRequired("Cells")) - } - if v.RecoveryGroupName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateResourceSetInput(v *UpdateResourceSetInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateResourceSetInput"} - if v.ResourceSetName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) - } - if v.ResourceSetType == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceSetType")) - } - if v.Resources == nil { - invalidParams.Add(smithy.NewErrParamRequired("Resources")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} diff --git a/service/route53resolver/go.mod b/service/route53resolver/go.mod index 19b7d6f6025..0b0ed5a13ac 100644 --- a/service/route53resolver/go.mod +++ b/service/route53resolver/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53resolver/go.sum b/service/route53resolver/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/route53resolver/go.sum +++ b/service/route53resolver/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/s3/go.mod b/service/s3/go.mod index 5ac66ced75a..4cb08ad687e 100644 --- a/service/s3/go.mod +++ b/service/s3/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.2.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.5.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/google/go-cmp v0.5.6 ) diff --git a/service/s3/go.sum b/service/s3/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/s3/go.sum +++ b/service/s3/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/s3/internal/configtesting/go.sum b/service/s3/internal/configtesting/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/s3/internal/configtesting/go.sum +++ b/service/s3/internal/configtesting/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/s3control/api_op_CreateAccessPoint.go b/service/s3control/api_op_CreateAccessPoint.go index 153101e7a59..2252d739904 100644 --- a/service/s3control/api_op_CreateAccessPoint.go +++ b/service/s3control/api_op_CreateAccessPoint.go @@ -59,7 +59,7 @@ func (c *Client) CreateAccessPoint(ctx context.Context, params *CreateAccessPoin type CreateAccessPointInput struct { - // The account ID for the owner of the bucket for which you want to create an + // The AWS account ID for the owner of the bucket for which you want to create an // access point. // // This member is required. @@ -68,10 +68,10 @@ type CreateAccessPointInput struct { // The name of the bucket that you want to associate this access point with. For // using this parameter with Amazon S3 on Outposts with the REST API, you must // specify the name and the x-amz-outpost-id as well. For using this parameter with - // S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the - // ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. - // For example, to access the bucket reports through outpost my-outpost owned by - // account 123456789012 in Region us-west-2, use the URL encoding of + // S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket + // accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to + // access the bucket reports through outpost my-outpost owned by account + // 123456789012 in Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. // @@ -99,9 +99,6 @@ type CreateAccessPointOutput struct { // The ARN of the access point. This is only supported by Amazon S3 on Outposts. AccessPointArn *string - // The name or alias of the access point. - Alias *string - // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3control/api_op_CreateAccessPointForObjectLambda.go b/service/s3control/api_op_CreateAccessPointForObjectLambda.go index 2a4fe076421..932d2f6e231 100644 --- a/service/s3control/api_op_CreateAccessPointForObjectLambda.go +++ b/service/s3control/api_op_CreateAccessPointForObjectLambda.go @@ -48,7 +48,7 @@ func (c *Client) CreateAccessPointForObjectLambda(ctx context.Context, params *C type CreateAccessPointForObjectLambdaInput struct { - // The account ID for owner of the specified Object Lambda Access Point. + // The AWS account ID for owner of the specified Object Lambda Access Point. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_CreateBucket.go b/service/s3control/api_op_CreateBucket.go index f12441fb5ac..64c81b390f5 100644 --- a/service/s3control/api_op_CreateBucket.go +++ b/service/s3control/api_op_CreateBucket.go @@ -125,10 +125,10 @@ type CreateBucketOutput struct { // The Amazon Resource Name (ARN) of the bucket. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed - // in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the - // bucket reports through outpost my-outpost owned by account 123456789012 in - // Region us-west-2, use the URL encoding of + // AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format + // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket + // reports through outpost my-outpost owned by account 123456789012 in Region + // us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. BucketArn *string diff --git a/service/s3control/api_op_CreateJob.go b/service/s3control/api_op_CreateJob.go index 73bc311bf3c..47cf4d5cd5d 100644 --- a/service/s3control/api_op_CreateJob.go +++ b/service/s3control/api_op_CreateJob.go @@ -57,7 +57,7 @@ func (c *Client) CreateJob(ctx context.Context, params *CreateJobInput, optFns . type CreateJobInput struct { - // The account ID that creates the job. + // The AWS account ID that creates the job. // // This member is required. AccountId *string @@ -91,9 +91,9 @@ type CreateJobInput struct { // This member is required. Report *types.JobReport - // The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role - // that Batch Operations will use to run this job's action on every object in the - // manifest. + // The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) + // role that Batch Operations will use to run this job's action on every object in + // the manifest. // // This member is required. RoleArn *string diff --git a/service/s3control/api_op_DeleteAccessPoint.go b/service/s3control/api_op_DeleteAccessPoint.go index 298fb9af124..b1c4af7321d 100644 --- a/service/s3control/api_op_DeleteAccessPoint.go +++ b/service/s3control/api_op_DeleteAccessPoint.go @@ -59,10 +59,10 @@ type DeleteAccessPointInput struct { // The name of the access point you want to delete. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // Amazon Web Services SDK and CLI, you must specify the ARN of the access point - // accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, - // to access the access point reports-ap through outpost my-outpost owned by - // account 123456789012 in Region us-west-2, use the URL encoding of + // AWS SDK and CLI, you must specify the ARN of the access point accessed in the + // format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the + // access point reports-ap through outpost my-outpost owned by account 123456789012 + // in Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. // The value must be URL encoded. // diff --git a/service/s3control/api_op_DeleteAccessPointPolicy.go b/service/s3control/api_op_DeleteAccessPointPolicy.go index 7951a5372c2..303e628a9f1 100644 --- a/service/s3control/api_op_DeleteAccessPointPolicy.go +++ b/service/s3control/api_op_DeleteAccessPointPolicy.go @@ -55,11 +55,10 @@ type DeleteAccessPointPolicyInput struct { // The name of the access point whose policy you want to delete. For using this // parameter with Amazon S3 on Outposts with the REST API, you must specify the // name and the x-amz-outpost-id as well. For using this parameter with S3 on - // Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of - // the access point accessed in the format - // arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access - // point reports-ap through outpost my-outpost owned by account 123456789012 in - // Region us-west-2, use the URL encoding of + // Outposts with the AWS SDK and CLI, you must specify the ARN of the access point + // accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, + // to access the access point reports-ap through outpost my-outpost owned by + // account 123456789012 in Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. // The value must be URL encoded. // diff --git a/service/s3control/api_op_DeleteBucket.go b/service/s3control/api_op_DeleteBucket.go index 60559bbb3f9..8bdecb6a451 100644 --- a/service/s3control/api_op_DeleteBucket.go +++ b/service/s3control/api_op_DeleteBucket.go @@ -65,9 +65,9 @@ type DeleteBucketInput struct { // Specifies the bucket being deleted. For using this parameter with Amazon S3 on // Outposts with the REST API, you must specify the name and the x-amz-outpost-id - // as well. For using this parameter with S3 on Outposts with the Amazon Web - // Services SDK and CLI, you must specify the ARN of the bucket accessed in the - // format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket + // as well. For using this parameter with S3 on Outposts with the AWS SDK and CLI, + // you must specify the ARN of the bucket accessed in the format + // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. diff --git a/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go b/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go index c0845e890a6..bd42501d101 100644 --- a/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go @@ -69,8 +69,8 @@ type DeleteBucketLifecycleConfigurationInput struct { // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the Amazon Web Services SDK and - // CLI, you must specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must + // specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_DeleteBucketPolicy.go b/service/s3control/api_op_DeleteBucketPolicy.go index 8fec963752a..16edc1852b1 100644 --- a/service/s3control/api_op_DeleteBucketPolicy.go +++ b/service/s3control/api_op_DeleteBucketPolicy.go @@ -19,7 +19,7 @@ import ( // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketPolicy.html) in // the Amazon S3 API Reference. This implementation of the DELETE action uses the // policy subresource to delete the policy of a specified Amazon S3 on Outposts -// bucket. If you are using an identity other than the root user of the account +// bucket. If you are using an identity other than the root user of the AWS account // that owns the bucket, the calling identity must have the // s3-outposts:DeleteBucketPolicy permissions on the specified Outposts bucket and // belong to the bucket owner's account to use this action. For more information, @@ -29,9 +29,9 @@ import ( // S3 returns a 403 Access Denied error. If you have the correct permissions, but // you're not using an identity that belongs to the bucket owner's account, Amazon // S3 returns a 405 Method Not Allowed error. As a security precaution, the root -// user of the account that owns a bucket can always use this action, even if the -// policy explicitly denies the root user the ability to perform this action. For -// more information about bucket policies, see Using Bucket Policies and User +// user of the AWS account that owns a bucket can always use this action, even if +// the policy explicitly denies the root user the ability to perform this action. +// For more information about bucket policies, see Using Bucket Policies and User // Policies // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html). All // Amazon S3 on Outposts REST API requests for this action require an additional @@ -74,8 +74,8 @@ type DeleteBucketPolicyInput struct { // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the Amazon Web Services SDK and - // CLI, you must specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must + // specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_DeleteBucketTagging.go b/service/s3control/api_op_DeleteBucketTagging.go index f491596cc84..01b2f74be93 100644 --- a/service/s3control/api_op_DeleteBucketTagging.go +++ b/service/s3control/api_op_DeleteBucketTagging.go @@ -55,7 +55,7 @@ func (c *Client) DeleteBucketTagging(ctx context.Context, params *DeleteBucketTa type DeleteBucketTaggingInput struct { - // The account ID of the Outposts bucket tag set to be removed. + // The AWS account ID of the Outposts bucket tag set to be removed. // // This member is required. AccountId *string @@ -63,10 +63,10 @@ type DeleteBucketTaggingInput struct { // The bucket ARN that has the tag set to be removed. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed - // in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the - // bucket reports through outpost my-outpost owned by account 123456789012 in - // Region us-west-2, use the URL encoding of + // AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format + // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket + // reports through outpost my-outpost owned by account 123456789012 in Region + // us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. // diff --git a/service/s3control/api_op_DeleteJobTagging.go b/service/s3control/api_op_DeleteJobTagging.go index 11c532d976a..e5c58865ec9 100644 --- a/service/s3control/api_op_DeleteJobTagging.go +++ b/service/s3control/api_op_DeleteJobTagging.go @@ -48,7 +48,7 @@ func (c *Client) DeleteJobTagging(ctx context.Context, params *DeleteJobTaggingI type DeleteJobTaggingInput struct { - // The account ID associated with the S3 Batch Operations job. + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_DeletePublicAccessBlock.go b/service/s3control/api_op_DeletePublicAccessBlock.go index ebdce95771d..04ac0ae9d16 100644 --- a/service/s3control/api_op_DeletePublicAccessBlock.go +++ b/service/s3control/api_op_DeletePublicAccessBlock.go @@ -14,7 +14,7 @@ import ( "strings" ) -// Removes the PublicAccessBlock configuration for an account. For more +// Removes the PublicAccessBlock configuration for an AWS account. For more // information, see Using Amazon S3 block public access // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html). // Related actions include: @@ -42,8 +42,8 @@ func (c *Client) DeletePublicAccessBlock(ctx context.Context, params *DeletePubl type DeletePublicAccessBlockInput struct { - // The account ID for the account whose PublicAccessBlock configuration you want to - // remove. + // The account ID for the AWS account whose PublicAccessBlock configuration you + // want to remove. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_DescribeJob.go b/service/s3control/api_op_DescribeJob.go index 42ae1759f2d..98a1111fb65 100644 --- a/service/s3control/api_op_DescribeJob.go +++ b/service/s3control/api_op_DescribeJob.go @@ -51,7 +51,7 @@ func (c *Client) DescribeJob(ctx context.Context, params *DescribeJobInput, optF type DescribeJobInput struct { - // The account ID associated with the S3 Batch Operations job. + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_GetAccessPoint.go b/service/s3control/api_op_GetAccessPoint.go index 76bff3eb73f..10ec23ea2f7 100644 --- a/service/s3control/api_op_GetAccessPoint.go +++ b/service/s3control/api_op_GetAccessPoint.go @@ -61,8 +61,8 @@ type GetAccessPointInput struct { // The name of the access point whose configuration information you want to // retrieve. For using this parameter with Amazon S3 on Outposts with the REST API, // you must specify the name and the x-amz-outpost-id as well. For using this - // parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must - // specify the ARN of the access point accessed in the format + // parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN + // of the access point accessed in the format // arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access // point reports-ap through outpost my-outpost owned by account 123456789012 in // Region us-west-2, use the URL encoding of @@ -77,21 +77,12 @@ type GetAccessPointInput struct { type GetAccessPointOutput struct { - // The ARN of the access point. - AccessPointArn *string - - // The name or alias of the access point. - Alias *string - // The name of the bucket associated with the specified access point. Bucket *string // The date and time when the specified access point was created. CreationDate *time.Time - // The VPC endpoint for the access point. - Endpoints map[string]string - // The name of the specified access point. Name *string @@ -113,7 +104,7 @@ type GetAccessPointOutput struct { // Contains the virtual private cloud (VPC) configuration for the specified access // point. This element is empty if this access point is an Amazon S3 on Outposts - // access point that is used by other Amazon Web Services. + // access point that is used by other AWS services. VpcConfiguration *types.VpcConfiguration // Metadata pertaining to the operation's result. diff --git a/service/s3control/api_op_GetAccessPointPolicy.go b/service/s3control/api_op_GetAccessPointPolicy.go index 60e6a8da583..de936084314 100644 --- a/service/s3control/api_op_GetAccessPointPolicy.go +++ b/service/s3control/api_op_GetAccessPointPolicy.go @@ -48,11 +48,10 @@ type GetAccessPointPolicyInput struct { // The name of the access point whose policy you want to retrieve. For using this // parameter with Amazon S3 on Outposts with the REST API, you must specify the // name and the x-amz-outpost-id as well. For using this parameter with S3 on - // Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of - // the access point accessed in the format - // arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access - // point reports-ap through outpost my-outpost owned by account 123456789012 in - // Region us-west-2, use the URL encoding of + // Outposts with the AWS SDK and CLI, you must specify the ARN of the access point + // accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, + // to access the access point reports-ap through outpost my-outpost owned by + // account 123456789012 in Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. // The value must be URL encoded. // diff --git a/service/s3control/api_op_GetBucket.go b/service/s3control/api_op_GetBucket.go index faa2a8d3850..afaed3be22e 100644 --- a/service/s3control/api_op_GetBucket.go +++ b/service/s3control/api_op_GetBucket.go @@ -19,19 +19,19 @@ import ( // on Outposts // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon S3 User Guide. If you are using an identity other than the root user of -// the account that owns the Outposts bucket, the calling identity must have the -// s3-outposts:GetBucket permissions on the specified Outposts bucket and belong to -// the Outposts bucket owner's account in order to use this action. Only users from -// Outposts bucket owner account with the right permissions can perform actions on -// an Outposts bucket. If you don't have s3-outposts:GetBucket permissions or -// you're not using an identity that belongs to the bucket owner's account, Amazon -// S3 returns a 403 Access Denied error. The following actions are related to -// GetBucket for Amazon S3 on Outposts: All Amazon S3 on Outposts REST API requests -// for this action require an additional parameter of x-amz-outpost-id to be passed -// with the request and an S3 on Outposts endpoint hostname prefix instead of -// s3-control. For an example of the request syntax for Amazon S3 on Outposts that -// uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id -// derived using the access point ARN, see the Examples +// the AWS account that owns the Outposts bucket, the calling identity must have +// the s3-outposts:GetBucket permissions on the specified Outposts bucket and +// belong to the Outposts bucket owner's account in order to use this action. Only +// users from Outposts bucket owner account with the right permissions can perform +// actions on an Outposts bucket. If you don't have s3-outposts:GetBucket +// permissions or you're not using an identity that belongs to the bucket owner's +// account, Amazon S3 returns a 403 Access Denied error. The following actions are +// related to GetBucket for Amazon S3 on Outposts: All Amazon S3 on Outposts REST +// API requests for this action require an additional parameter of x-amz-outpost-id +// to be passed with the request and an S3 on Outposts endpoint hostname prefix +// instead of s3-control. For an example of the request syntax for Amazon S3 on +// Outposts that uses the S3 on Outposts endpoint hostname prefix and the +// x-amz-outpost-id derived using the access point ARN, see the Examples // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucket.html#API_control_GetBucket_Examples) // section. // @@ -62,15 +62,15 @@ func (c *Client) GetBucket(ctx context.Context, params *GetBucketInput, optFns . type GetBucketInput struct { - // The account ID of the Outposts bucket. + // The AWS account ID of the Outposts bucket. // // This member is required. AccountId *string // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the Amazon Web Services SDK and - // CLI, you must specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must + // specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_GetBucketLifecycleConfiguration.go b/service/s3control/api_op_GetBucketLifecycleConfiguration.go index bdf8a1af348..a96307893e7 100644 --- a/service/s3control/api_op_GetBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_GetBucketLifecycleConfiguration.go @@ -78,7 +78,7 @@ func (c *Client) GetBucketLifecycleConfiguration(ctx context.Context, params *Ge type GetBucketLifecycleConfigurationInput struct { - // The account ID of the Outposts bucket. + // The AWS account ID of the Outposts bucket. // // This member is required. AccountId *string @@ -86,10 +86,10 @@ type GetBucketLifecycleConfigurationInput struct { // The Amazon Resource Name (ARN) of the bucket. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed - // in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the - // bucket reports through outpost my-outpost owned by account 123456789012 in - // Region us-west-2, use the URL encoding of + // AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format + // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket + // reports through outpost my-outpost owned by account 123456789012 in Region + // us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. // diff --git a/service/s3control/api_op_GetBucketPolicy.go b/service/s3control/api_op_GetBucketPolicy.go index 8652f8bebf2..115c82bf1fb 100644 --- a/service/s3control/api_op_GetBucketPolicy.go +++ b/service/s3control/api_op_GetBucketPolicy.go @@ -21,13 +21,13 @@ import ( // For more information, see Using Amazon S3 on Outposts // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon S3 User Guide. If you are using an identity other than the root user of -// the account that owns the bucket, the calling identity must have the +// the AWS account that owns the bucket, the calling identity must have the // GetBucketPolicy permissions on the specified bucket and belong to the bucket // owner's account in order to use this action. Only users from Outposts bucket // owner account with the right permissions can perform actions on an Outposts // bucket. If you don't have s3-outposts:GetBucketPolicy permissions or you're not // using an identity that belongs to the bucket owner's account, Amazon S3 returns -// a 403 Access Denied error. As a security precaution, the root user of the +// a 403 Access Denied error. As a security precaution, the root user of the AWS // account that owns a bucket can always use this action, even if the policy // explicitly denies the root user the ability to perform this action. For more // information about bucket policies, see Using Bucket Policies and User Policies @@ -68,15 +68,15 @@ func (c *Client) GetBucketPolicy(ctx context.Context, params *GetBucketPolicyInp type GetBucketPolicyInput struct { - // The account ID of the Outposts bucket. + // The AWS account ID of the Outposts bucket. // // This member is required. AccountId *string // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the Amazon Web Services SDK and - // CLI, you must specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must + // specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_GetBucketTagging.go b/service/s3control/api_op_GetBucketTagging.go index 22589ba88a4..30cb438f157 100644 --- a/service/s3control/api_op_GetBucketTagging.go +++ b/service/s3control/api_op_GetBucketTagging.go @@ -64,15 +64,15 @@ func (c *Client) GetBucketTagging(ctx context.Context, params *GetBucketTaggingI type GetBucketTaggingInput struct { - // The account ID of the Outposts bucket. + // The AWS account ID of the Outposts bucket. // // This member is required. AccountId *string // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the Amazon Web Services SDK and - // CLI, you must specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must + // specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_GetJobTagging.go b/service/s3control/api_op_GetJobTagging.go index 147b065a148..92a5ffd32c6 100644 --- a/service/s3control/api_op_GetJobTagging.go +++ b/service/s3control/api_op_GetJobTagging.go @@ -48,7 +48,7 @@ func (c *Client) GetJobTagging(ctx context.Context, params *GetJobTaggingInput, type GetJobTaggingInput struct { - // The account ID associated with the S3 Batch Operations job. + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_GetPublicAccessBlock.go b/service/s3control/api_op_GetPublicAccessBlock.go index bfad0faf8ef..61398a5c21e 100644 --- a/service/s3control/api_op_GetPublicAccessBlock.go +++ b/service/s3control/api_op_GetPublicAccessBlock.go @@ -15,7 +15,7 @@ import ( "strings" ) -// Retrieves the PublicAccessBlock configuration for an account. For more +// Retrieves the PublicAccessBlock configuration for an AWS account. For more // information, see Using Amazon S3 block public access // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html). // Related actions include: @@ -43,8 +43,8 @@ func (c *Client) GetPublicAccessBlock(ctx context.Context, params *GetPublicAcce type GetPublicAccessBlockInput struct { - // The account ID for the account whose PublicAccessBlock configuration you want to - // retrieve. + // The account ID for the AWS account whose PublicAccessBlock configuration you + // want to retrieve. // // This member is required. AccountId *string @@ -54,7 +54,7 @@ type GetPublicAccessBlockInput struct { type GetPublicAccessBlockOutput struct { - // The PublicAccessBlock configuration currently in effect for this account. + // The PublicAccessBlock configuration currently in effect for this AWS account. PublicAccessBlockConfiguration *types.PublicAccessBlockConfiguration // Metadata pertaining to the operation's result. diff --git a/service/s3control/api_op_ListAccessPoints.go b/service/s3control/api_op_ListAccessPoints.go index bbd774bd18c..cad6413645a 100644 --- a/service/s3control/api_op_ListAccessPoints.go +++ b/service/s3control/api_op_ListAccessPoints.go @@ -56,7 +56,7 @@ func (c *Client) ListAccessPoints(ctx context.Context, params *ListAccessPointsI type ListAccessPointsInput struct { - // The account ID for owner of the bucket whose access points you want to list. + // The AWS account ID for owner of the bucket whose access points you want to list. // // This member is required. AccountId *string @@ -64,10 +64,10 @@ type ListAccessPointsInput struct { // The name of the bucket whose associated access points you want to list. For // using this parameter with Amazon S3 on Outposts with the REST API, you must // specify the name and the x-amz-outpost-id as well. For using this parameter with - // S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the - // ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. - // For example, to access the bucket reports through outpost my-outpost owned by - // account 123456789012 in Region us-west-2, use the URL encoding of + // S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket + // accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to + // access the bucket reports through outpost my-outpost owned by account + // 123456789012 in Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. Bucket *string diff --git a/service/s3control/api_op_ListJobs.go b/service/s3control/api_op_ListJobs.go index 5ca41225b90..19747614048 100644 --- a/service/s3control/api_op_ListJobs.go +++ b/service/s3control/api_op_ListJobs.go @@ -16,8 +16,8 @@ import ( ) // Lists current S3 Batch Operations jobs and jobs that have ended within the last -// 30 days for the account making the request. For more information, see S3 Batch -// Operations +// 30 days for the AWS account making the request. For more information, see S3 +// Batch Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-basics.html) in the // Amazon S3 User Guide. Related actions include: // @@ -52,7 +52,7 @@ func (c *Client) ListJobs(ctx context.Context, params *ListJobsInput, optFns ... type ListJobsInput struct { - // The account ID associated with the S3 Batch Operations job. + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_ListRegionalBuckets.go b/service/s3control/api_op_ListRegionalBuckets.go index 3c79cdc213e..c75023aea85 100644 --- a/service/s3control/api_op_ListRegionalBuckets.go +++ b/service/s3control/api_op_ListRegionalBuckets.go @@ -41,7 +41,7 @@ func (c *Client) ListRegionalBuckets(ctx context.Context, params *ListRegionalBu type ListRegionalBucketsInput struct { - // The account ID of the Outposts bucket. + // The AWS account ID of the Outposts bucket. // // This member is required. AccountId *string @@ -52,7 +52,7 @@ type ListRegionalBucketsInput struct { // NextToken *string - // The ID of the Outposts. This is required by Amazon S3 on Outposts buckets. + // The ID of the AWS Outposts. This is required by Amazon S3 on Outposts buckets. OutpostId *string noSmithyDocumentSerde diff --git a/service/s3control/api_op_PutAccessPointPolicy.go b/service/s3control/api_op_PutAccessPointPolicy.go index 25d1d2fecb7..d54967cdbd4 100644 --- a/service/s3control/api_op_PutAccessPointPolicy.go +++ b/service/s3control/api_op_PutAccessPointPolicy.go @@ -49,7 +49,7 @@ func (c *Client) PutAccessPointPolicy(ctx context.Context, params *PutAccessPoin type PutAccessPointPolicyInput struct { - // The account ID for owner of the bucket associated with the specified access + // The AWS account ID for owner of the bucket associated with the specified access // point. // // This member is required. @@ -58,8 +58,8 @@ type PutAccessPointPolicyInput struct { // The name of the access point that you want to associate with the specified // policy. For using this parameter with Amazon S3 on Outposts with the REST API, // you must specify the name and the x-amz-outpost-id as well. For using this - // parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must - // specify the ARN of the access point accessed in the format + // parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN + // of the access point accessed in the format // arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access // point reports-ap through outpost my-outpost owned by account 123456789012 in // Region us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_PutBucketLifecycleConfiguration.go b/service/s3control/api_op_PutBucketLifecycleConfiguration.go index 7acc61e5a2b..57b9248f9c5 100644 --- a/service/s3control/api_op_PutBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_PutBucketLifecycleConfiguration.go @@ -55,7 +55,7 @@ func (c *Client) PutBucketLifecycleConfiguration(ctx context.Context, params *Pu type PutBucketLifecycleConfigurationInput struct { - // The account ID of the Outposts bucket. + // The AWS account ID of the Outposts bucket. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_PutBucketPolicy.go b/service/s3control/api_op_PutBucketPolicy.go index 821a18bcd36..368048062b8 100644 --- a/service/s3control/api_op_PutBucketPolicy.go +++ b/service/s3control/api_op_PutBucketPolicy.go @@ -21,13 +21,13 @@ import ( // bucket. For more information, see Using Amazon S3 on Outposts // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon S3 User Guide. If you are using an identity other than the root user of -// the account that owns the Outposts bucket, the calling identity must have the -// PutBucketPolicy permissions on the specified Outposts bucket and belong to the -// bucket owner's account in order to use this action. If you don't have +// the AWS account that owns the Outposts bucket, the calling identity must have +// the PutBucketPolicy permissions on the specified Outposts bucket and belong to +// the bucket owner's account in order to use this action. If you don't have // PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you // have the correct permissions, but you're not using an identity that belongs to // the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed error. As -// a security precaution, the root user of the account that owns a bucket can +// a security precaution, the root user of the AWS account that owns a bucket can // always use this action, even if the policy explicitly denies the root user the // ability to perform this action. For more information about bucket policies, see // Using Bucket Policies and User Policies @@ -65,15 +65,15 @@ func (c *Client) PutBucketPolicy(ctx context.Context, params *PutBucketPolicyInp type PutBucketPolicyInput struct { - // The account ID of the Outposts bucket. + // The AWS account ID of the Outposts bucket. // // This member is required. AccountId *string // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the Amazon Web Services SDK and - // CLI, you must specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must + // specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_PutBucketTagging.go b/service/s3control/api_op_PutBucketTagging.go index c9bd15d8b1a..d7a9c2364ec 100644 --- a/service/s3control/api_op_PutBucketTagging.go +++ b/service/s3control/api_op_PutBucketTagging.go @@ -21,14 +21,13 @@ import ( // the Amazon S3 API Reference. Sets the tags for an S3 on Outposts bucket. For // more information, see Using Amazon S3 on Outposts // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the -// Amazon S3 User Guide. Use tags to organize your Amazon Web Services bill to -// reflect your own cost structure. To do this, sign up to get your account bill -// with tag key values included. Then, to see the cost of combined resources, -// organize your billing information according to resources with the same tag key -// values. For example, you can tag several resources with a specific application -// name, and then organize your billing information to see the total cost of that -// application across several services. For more information, see Cost allocation -// and tagging +// Amazon S3 User Guide. Use tags to organize your AWS bill to reflect your own +// cost structure. To do this, sign up to get your AWS account bill with tag key +// values included. Then, to see the cost of combined resources, organize your +// billing information according to resources with the same tag key values. For +// example, you can tag several resources with a specific application name, and +// then organize your billing information to see the total cost of that application +// across several services. For more information, see Cost allocation and tagging // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html). // Within a bucket, if you add a tag that has the same key as an existing tag, the // new value overwrites the old value. For more information, see Using cost @@ -51,7 +50,7 @@ import ( // can occur if the tag did not pass input validation. For information about tag // restrictions, see User-Defined Tag Restrictions // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html) -// and Amazon Web Services-Generated Cost Allocation Tag Restrictions +// and AWS-Generated Cost Allocation Tag Restrictions // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/aws-tag-restrictions.html). // // * @@ -104,7 +103,7 @@ func (c *Client) PutBucketTagging(ctx context.Context, params *PutBucketTaggingI type PutBucketTaggingInput struct { - // The account ID of the Outposts bucket. + // The AWS account ID of the Outposts bucket. // // This member is required. AccountId *string @@ -112,10 +111,10 @@ type PutBucketTaggingInput struct { // The Amazon Resource Name (ARN) of the bucket. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed - // in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the - // bucket reports through outpost my-outpost owned by account 123456789012 in - // Region us-west-2, use the URL encoding of + // AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format + // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket + // reports through outpost my-outpost owned by account 123456789012 in Region + // us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. // diff --git a/service/s3control/api_op_PutJobTagging.go b/service/s3control/api_op_PutJobTagging.go index f45d6debbdc..a6e82c190ee 100644 --- a/service/s3control/api_op_PutJobTagging.go +++ b/service/s3control/api_op_PutJobTagging.go @@ -57,7 +57,7 @@ import ( // restrictions related to characters and encodings, see User-Defined Tag // Restrictions // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html) -// in the Billing and Cost Management User Guide. +// in the AWS Billing and Cost Management User Guide. // // To use this action, you must // have permission to perform the s3:PutJobTagging action. Related actions @@ -90,7 +90,7 @@ func (c *Client) PutJobTagging(ctx context.Context, params *PutJobTaggingInput, type PutJobTaggingInput struct { - // The account ID associated with the S3 Batch Operations job. + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_PutPublicAccessBlock.go b/service/s3control/api_op_PutPublicAccessBlock.go index fbe8a22eefb..2461d242f04 100644 --- a/service/s3control/api_op_PutPublicAccessBlock.go +++ b/service/s3control/api_op_PutPublicAccessBlock.go @@ -15,8 +15,8 @@ import ( "strings" ) -// Creates or modifies the PublicAccessBlock configuration for an account. For more -// information, see Using Amazon S3 block public access +// Creates or modifies the PublicAccessBlock configuration for an AWS account. For +// more information, see Using Amazon S3 block public access // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html). // Related actions include: // @@ -43,13 +43,13 @@ func (c *Client) PutPublicAccessBlock(ctx context.Context, params *PutPublicAcce type PutPublicAccessBlockInput struct { - // The account ID for the account whose PublicAccessBlock configuration you want to - // set. + // The account ID for the AWS account whose PublicAccessBlock configuration you + // want to set. // // This member is required. AccountId *string - // The PublicAccessBlock configuration that you want to apply to the specified + // The PublicAccessBlock configuration that you want to apply to the specified AWS // account. // // This member is required. diff --git a/service/s3control/api_op_UpdateJobPriority.go b/service/s3control/api_op_UpdateJobPriority.go index f249eda7174..498bf6d650a 100644 --- a/service/s3control/api_op_UpdateJobPriority.go +++ b/service/s3control/api_op_UpdateJobPriority.go @@ -50,7 +50,7 @@ func (c *Client) UpdateJobPriority(ctx context.Context, params *UpdateJobPriorit type UpdateJobPriorityInput struct { - // The account ID associated with the S3 Batch Operations job. + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_UpdateJobStatus.go b/service/s3control/api_op_UpdateJobStatus.go index 0be01b5b5e6..97b11e4f9ed 100644 --- a/service/s3control/api_op_UpdateJobStatus.go +++ b/service/s3control/api_op_UpdateJobStatus.go @@ -52,7 +52,7 @@ func (c *Client) UpdateJobStatus(ctx context.Context, params *UpdateJobStatusInp type UpdateJobStatusInput struct { - // The account ID associated with the S3 Batch Operations job. + // The AWS account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/deserializers.go b/service/s3control/deserializers.go index 71a55a81256..a8296097725 100644 --- a/service/s3control/deserializers.go +++ b/service/s3control/deserializers.go @@ -155,19 +155,6 @@ func awsRestxml_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessPoi sv.AccessPointArn = ptr.String(xtv) } - case strings.EqualFold("Alias", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Alias = ptr.String(xtv) - } - default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -1822,32 +1809,6 @@ func awsRestxml_deserializeOpDocumentGetAccessPointOutput(v **GetAccessPointOutp originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AccessPointArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AccessPointArn = ptr.String(xtv) - } - - case strings.EqualFold("Alias", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Alias = ptr.String(xtv) - } - case strings.EqualFold("Bucket", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -1878,12 +1839,6 @@ func awsRestxml_deserializeOpDocumentGetAccessPointOutput(v **GetAccessPointOutp sv.CreationDate = ptr.Time(t) } - case strings.EqualFold("Endpoints", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentEndpoints(&sv.Endpoints, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("Name", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -6404,19 +6359,6 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm sv.AccessPointArn = ptr.String(xtv) } - case strings.EqualFold("Alias", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Alias = ptr.String(xtv) - } - case strings.EqualFold("Bucket", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -6955,104 +6897,6 @@ func awsRestxml_deserializeDocumentBucketsUnwrapped(v *[]string, decoder smithyx *v = sv return nil } -func awsRestxml_deserializeDocumentEndpoints(v *map[string]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv map[string]string - if *v == nil { - sv = make(map[string]string, 0) - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("entry", t.Name.Local): - entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentEndpointsUnwrapped(&sv, entryDecoder); err != nil { - return err - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - } - *v = sv - return nil -} - -func awsRestxml_deserializeDocumentEndpointsUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { - var sv map[string]string - if *v == nil { - sv = make(map[string]string, 0) - } else { - sv = *v - } - - var ek string - var ev string - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - sv[ek] = ev - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("key", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ek = xtv - } - - case strings.EqualFold("value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ev = xtv - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} func awsRestxml_deserializeDocumentExclude(v **types.Exclude, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/s3control/doc.go b/service/s3control/doc.go index ca228b17626..3ce05a321d8 100644 --- a/service/s3control/doc.go +++ b/service/s3control/doc.go @@ -3,6 +3,5 @@ // Package s3control provides the API client, operations, and parameter types for // AWS S3 Control. // -// Amazon Web Services S3 Control provides access to Amazon S3 control plane -// actions. +// AWS S3 Control provides access to Amazon S3 control plane actions. package s3control diff --git a/service/s3control/go.mod b/service/s3control/go.mod index cc306df4cb7..121f648d85b 100644 --- a/service/s3control/go.mod +++ b/service/s3control/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.5.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3control/go.sum b/service/s3control/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/s3control/go.sum +++ b/service/s3control/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/s3control/types/errors.go b/service/s3control/types/errors.go index ad67764c047..93a2ee3587d 100644 --- a/service/s3control/types/errors.go +++ b/service/s3control/types/errors.go @@ -27,8 +27,8 @@ func (e *BadRequestException) ErrorCode() string { return "BadReques func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested Outposts bucket name is not available. The bucket namespace is -// shared by all users of the Outposts in this Region. Select a different name and -// try again. +// shared by all users of the AWS Outposts in this Region. Select a different name +// and try again. type BucketAlreadyExists struct { Message *string diff --git a/service/s3control/types/types.go b/service/s3control/types/types.go index 7a86891fabd..f8dbcdf6bc3 100644 --- a/service/s3control/types/types.go +++ b/service/s3control/types/types.go @@ -42,12 +42,9 @@ type AccessPoint struct { // The ARN for the access point. AccessPointArn *string - // The name or alias of the access point. - Alias *string - // The virtual private cloud (VPC) configuration for this access point, if one // exists. This element is empty if this access point is an Amazon S3 on Outposts - // access point that is used by other Amazon Web Services. + // access point that is used by other AWS services. VpcConfiguration *VpcConfiguration noSmithyDocumentSerde @@ -76,10 +73,11 @@ type ActivityMetrics struct { noSmithyDocumentSerde } -// Lambda function used to transform objects through an Object Lambda Access Point. +// AWS Lambda function used to transform objects through an Object Lambda Access +// Point. type AwsLambdaTransformation struct { - // The Amazon Resource Name (ARN) of the Lambda function. + // The Amazon Resource Name (ARN) of the AWS Lambda function. // // This member is required. FunctionArn *string @@ -183,8 +181,8 @@ type JobDescriptor struct { // requested one in the Create Job request. Report *JobReport - // The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role - // assigned to run the tasks for this job. + // The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) + // role assigned to run the tasks for this job. RoleArn *string // The current status of the specified job. @@ -318,8 +316,8 @@ type JobManifestSpec struct { // the Amazon S3 User Guide. type JobOperation struct { - // Directs the specified job to invoke an Lambda function on every object in the - // manifest. + // Directs the specified job to invoke an AWS Lambda function on every object in + // the manifest. LambdaInvoke *LambdaInvokeOperation // Directs the specified job to execute a DELETE Object tagging call on every @@ -407,8 +405,8 @@ type JobReport struct { // Contains the configuration parameters for a Lambda Invoke operation. type LambdaInvokeOperation struct { - // The Amazon Resource Name (ARN) for the Lambda function that the specified job - // will invoke on every object in the manifest. + // The Amazon Resource Name (ARN) for the AWS Lambda function that the specified + // job will invoke on every object in the manifest. FunctionArn *string noSmithyDocumentSerde @@ -579,8 +577,8 @@ type NoncurrentVersionTransition struct { noSmithyDocumentSerde } -// An access point with an attached Lambda function used to access transformed data -// from an Amazon S3 bucket. +// An access point with an attached AWS Lambda function used to access transformed +// data from an Amazon S3 bucket. type ObjectLambdaAccessPoint struct { // The name of the Object Lambda Access Point. @@ -625,7 +623,7 @@ type ObjectLambdaContentTransformation interface { isObjectLambdaContentTransformation() } -// A container for an Lambda function. +// A container for an AWS Lambda function. type ObjectLambdaContentTransformationMemberAwsLambda struct { Value AwsLambdaTransformation @@ -729,11 +727,11 @@ type PublicAccessBlockConfiguration struct { // Specifies whether Amazon S3 should restrict public bucket policies for buckets // in this account. Setting this element to TRUE restricts access to buckets with - // public policies to only Amazon Web Service principals and authorized users - // within this account. Enabling this setting doesn't affect previously stored - // bucket policies, except that public and cross-account access within any public - // bucket policy, including non-public delegation to specific accounts, is blocked. - // This is not supported for Amazon S3 on Outposts. + // public policies to only AWS service principals and authorized users within this + // account. Enabling this setting doesn't affect previously stored bucket policies, + // except that public and cross-account access within any public bucket policy, + // including non-public delegation to specific accounts, is blocked. This is not + // supported for Amazon S3 on Outposts. RestrictPublicBuckets bool noSmithyDocumentSerde @@ -760,7 +758,7 @@ type RegionalBucket struct { // The Amazon Resource Name (ARN) for the regional bucket. BucketArn *string - // The Outposts ID of the regional bucket. + // The AWS Outposts ID of the regional bucket. OutpostId *string noSmithyDocumentSerde @@ -837,10 +835,10 @@ type S3CopyObjectOperation struct { AccessControlGrants []S3Grant // Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption - // with server-side encryption using Amazon Web Services KMS (SSE-KMS). Setting - // this header to true causes Amazon S3 to use an S3 Bucket Key for object - // encryption with SSE-KMS. Specifying this header with an object action doesn’t - // affect bucket-level settings for S3 Bucket Key. + // with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true + // causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. + // Specifying this header with an object action doesn’t affect bucket-level + // settings for S3 Bucket Key. BucketKeyEnabled bool // @@ -1158,11 +1156,11 @@ type SSES3 struct { noSmithyDocumentSerde } -// The Amazon Web Services organization for your S3 Storage Lens. +// The AWS organization for your S3 Storage Lens. type StorageLensAwsOrg struct { - // A container for the Amazon Resource Name (ARN) of the Amazon Web Services - // organization. This property is read-only and follows the following format: + // A container for the Amazon Resource Name (ARN) of the AWS organization. This + // property is read-only and follows the following format: // arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck // // This member is required. @@ -1190,8 +1188,7 @@ type StorageLensConfiguration struct { // This member is required. IsEnabled bool - // A container for the Amazon Web Services organization for this S3 Storage Lens - // configuration. + // A container for the AWS organization for this S3 Storage Lens configuration. AwsOrg *StorageLensAwsOrg // A container to specify the properties of your S3 Storage Lens metrics export diff --git a/service/s3outposts/api_op_CreateEndpoint.go b/service/s3outposts/api_op_CreateEndpoint.go index 4e069e9c975..cba555edfef 100644 --- a/service/s3outposts/api_op_CreateEndpoint.go +++ b/service/s3outposts/api_op_CreateEndpoint.go @@ -6,20 +6,15 @@ import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/s3outposts/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Amazon S3 on Outposts Access Points simplify managing data access at scale for -// shared datasets in S3 on Outposts. S3 on Outposts uses endpoints to connect to +// S3 on Outposts access points simplify managing data access at scale for shared +// datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to // Outposts buckets so that you can perform actions within your virtual private -// cloud (VPC). For more information, see Accessing S3 on Outposts using VPC only -// access points -// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html). -// This action creates an endpoint and associates it with the specified Outposts. -// It can take up to 5 minutes for this action to complete. Related actions -// include: +// cloud (VPC). This action creates an endpoint and associates it with the +// specified Outpost. Related actions include: // // * DeleteEndpoint // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html) @@ -44,7 +39,7 @@ func (c *Client) CreateEndpoint(ctx context.Context, params *CreateEndpointInput type CreateEndpointInput struct { - // The ID of the AWS Outposts. + // The ID of the AWS Outpost. // // This member is required. OutpostId *string @@ -54,21 +49,11 @@ type CreateEndpointInput struct { // This member is required. SecurityGroupId *string - // The ID of the subnet in the selected VPC. The endpoint subnet must belong to the - // Outpost that has the Amazon S3 on Outposts provisioned. + // The ID of the subnet in the selected VPC. // // This member is required. SubnetId *string - // The type of access for the on-premise network connectivity for the Outpost - // endpoint. To access the endpoint from an on-premises network, you must specify - // the access type and provide the customer owned IPv4 pool. - AccessType types.EndpointAccessType - - // The ID of the customer-owned IPv4 pool for the endpoint. IP addresses will be - // allocated from this pool for the endpoint. - CustomerOwnedIpv4Pool *string - noSmithyDocumentSerde } diff --git a/service/s3outposts/api_op_DeleteEndpoint.go b/service/s3outposts/api_op_DeleteEndpoint.go index 19b56eee350..bbe5954db7b 100644 --- a/service/s3outposts/api_op_DeleteEndpoint.go +++ b/service/s3outposts/api_op_DeleteEndpoint.go @@ -10,16 +10,13 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Amazon S3 on Outposts Access Points simplify managing data access at scale for -// shared datasets in S3 on Outposts. S3 on Outposts uses endpoints to connect to +// S3 on Outposts access points simplify managing data access at scale for shared +// datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to // Outposts buckets so that you can perform actions within your virtual private -// cloud (VPC). For more information, see Accessing S3 on Outposts using VPC only -// access points -// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html). -// This action deletes an endpoint. It can take up to 5 minutes for this action to -// complete. Related actions include: +// cloud (VPC). This action deletes an endpoint. Related actions include: // -// * CreateEndpoint +// * +// CreateEndpoint // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html) // // * @@ -42,12 +39,12 @@ func (c *Client) DeleteEndpoint(ctx context.Context, params *DeleteEndpointInput type DeleteEndpointInput struct { - // The ID of the endpoint. + // The ID of the end point. // // This member is required. EndpointId *string - // The ID of the AWS Outposts. + // The ID of the AWS Outpost. // // This member is required. OutpostId *string diff --git a/service/s3outposts/api_op_ListEndpoints.go b/service/s3outposts/api_op_ListEndpoints.go index 2efcb079bfc..31a9cf7a18e 100644 --- a/service/s3outposts/api_op_ListEndpoints.go +++ b/service/s3outposts/api_op_ListEndpoints.go @@ -12,14 +12,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Amazon S3 on Outposts Access Points simplify managing data access at scale for -// shared datasets in S3 on Outposts. S3 on Outposts uses endpoints to connect to +// S3 on Outposts access points simplify managing data access at scale for shared +// datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to // Outposts buckets so that you can perform actions within your virtual private -// cloud (VPC). For more information, see Accessing S3 on Outposts using VPC only -// access points -// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html). -// This action lists endpoints associated with the Outposts. Related actions -// include: +// cloud (VPC). This action lists endpoints associated with the Outpost. Related +// actions include: // // * CreateEndpoint // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html) @@ -55,7 +52,7 @@ type ListEndpointsInput struct { type ListEndpointsOutput struct { - // Returns an array of endpoints associated with AWS Outposts. + // Returns an array of endpoints associated with AWS Outpost. Endpoints []types.Endpoint // The next endpoint returned in the list. diff --git a/service/s3outposts/deserializers.go b/service/s3outposts/deserializers.go index 39f558d87d4..ba4901a9ba6 100644 --- a/service/s3outposts/deserializers.go +++ b/service/s3outposts/deserializers.go @@ -728,15 +728,6 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac for key, value := range shape { switch key { - case "AccessType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EndpointAccessType to be of type string, got %T instead", value) - } - sv.AccessType = types.EndpointAccessType(jtv) - } - case "CidrBlock": if value != nil { jtv, ok := value.(string) @@ -762,15 +753,6 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac } } - case "CustomerOwnedIpv4Pool": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CustomerOwnedIpv4Pool to be of type string, got %T instead", value) - } - sv.CustomerOwnedIpv4Pool = ptr.String(jtv) - } - case "EndpointArn": if value != nil { jtv, ok := value.(string) @@ -794,15 +776,6 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac sv.OutpostsId = ptr.String(jtv) } - case "SecurityGroupId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) - } - sv.SecurityGroupId = ptr.String(jtv) - } - case "Status": if value != nil { jtv, ok := value.(string) @@ -812,24 +785,6 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac sv.Status = types.EndpointStatus(jtv) } - case "SubnetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) - } - sv.SubnetId = ptr.String(jtv) - } - - case "VpcId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) - } - sv.VpcId = ptr.String(jtv) - } - default: _, _ = key, value diff --git a/service/s3outposts/go.mod b/service/s3outposts/go.mod index 1d2fb1e28bb..ca5a7fd1cdf 100644 --- a/service/s3outposts/go.mod +++ b/service/s3outposts/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3outposts/go.sum b/service/s3outposts/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/s3outposts/go.sum +++ b/service/s3outposts/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/s3outposts/serializers.go b/service/s3outposts/serializers.go index e6640e4bdb9..6fd9f8bdd3e 100644 --- a/service/s3outposts/serializers.go +++ b/service/s3outposts/serializers.go @@ -73,16 +73,6 @@ func awsRestjson1_serializeOpDocumentCreateEndpointInput(v *CreateEndpointInput, object := value.Object() defer object.Close() - if len(v.AccessType) > 0 { - ok := object.Key("AccessType") - ok.String(string(v.AccessType)) - } - - if v.CustomerOwnedIpv4Pool != nil { - ok := object.Key("CustomerOwnedIpv4Pool") - ok.String(*v.CustomerOwnedIpv4Pool) - } - if v.OutpostId != nil { ok := object.Key("OutpostId") ok.String(*v.OutpostId) diff --git a/service/s3outposts/types/enums.go b/service/s3outposts/types/enums.go index ddf8df36ddd..725511f0a4f 100644 --- a/service/s3outposts/types/enums.go +++ b/service/s3outposts/types/enums.go @@ -2,31 +2,12 @@ package types -type EndpointAccessType string - -// Enum values for EndpointAccessType -const ( - EndpointAccessTypePrivate EndpointAccessType = "Private" - EndpointAccessTypeCustomerOwnedIp EndpointAccessType = "CustomerOwnedIp" -) - -// Values returns all known values for EndpointAccessType. Note that this can be -// expanded in the future, and so it is only as up to date as the client. The -// ordering of this slice is not guaranteed to be stable across updates. -func (EndpointAccessType) Values() []EndpointAccessType { - return []EndpointAccessType{ - "Private", - "CustomerOwnedIp", - } -} - type EndpointStatus string // Enum values for EndpointStatus const ( - EndpointStatusPending EndpointStatus = "Pending" - EndpointStatusAvailable EndpointStatus = "Available" - EndpointStatusDeleting EndpointStatus = "Deleting" + EndpointStatusPending EndpointStatus = "PENDING" + EndpointStatusAvailable EndpointStatus = "AVAILABLE" ) // Values returns all known values for EndpointStatus. Note that this can be @@ -34,8 +15,7 @@ const ( // ordering of this slice is not guaranteed to be stable across updates. func (EndpointStatus) Values() []EndpointStatus { return []EndpointStatus{ - "Pending", - "Available", - "Deleting", + "PENDING", + "AVAILABLE", } } diff --git a/service/s3outposts/types/types.go b/service/s3outposts/types/types.go index 2b632c9c983..fedec9b00f3 100644 --- a/service/s3outposts/types/types.go +++ b/service/s3outposts/types/types.go @@ -7,47 +7,30 @@ import ( "time" ) -// Amazon S3 on Outposts Access Points simplify managing data access at scale for -// shared datasets in S3 on Outposts. S3 on Outposts uses endpoints to connect to +// S3 on Outposts access points simplify managing data access at scale for shared +// datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to // Outposts buckets so that you can perform actions within your virtual private -// cloud (VPC). For more information, see Accessing S3 on Outposts using VPC only -// access points -// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html). +// cloud (VPC). type Endpoint struct { - // - AccessType EndpointAccessType - // The VPC CIDR committed by this endpoint. CidrBlock *string // The time the endpoint was created. CreationTime *time.Time - // The ID of the customer-owned IPv4 pool used for the endpoint. - CustomerOwnedIpv4Pool *string - // The Amazon Resource Name (ARN) of the endpoint. EndpointArn *string // The network interface of the endpoint. NetworkInterfaces []NetworkInterface - // The ID of the AWS Outposts. + // The ID of the AWS Outpost. OutpostsId *string - // The ID of the security group used for the endpoint. - SecurityGroupId *string - // The status of the endpoint. Status EndpointStatus - // The ID of the subnet used for the endpoint. - SubnetId *string - - // The ID of the VPC used for the endpoint. - VpcId *string - noSmithyDocumentSerde } diff --git a/service/sagemaker/go.mod b/service/sagemaker/go.mod index 6f96305377e..3d54b48ab6f 100644 --- a/service/sagemaker/go.mod +++ b/service/sagemaker/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/sagemaker/go.sum +++ b/service/sagemaker/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sagemakera2iruntime/go.mod b/service/sagemakera2iruntime/go.mod index 5aa3fb3eb99..5937afb3597 100644 --- a/service/sagemakera2iruntime/go.mod +++ b/service/sagemakera2iruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakera2iruntime/go.sum b/service/sagemakera2iruntime/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sagemakera2iruntime/go.sum +++ b/service/sagemakera2iruntime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sagemakeredge/go.mod b/service/sagemakeredge/go.mod index b7c193f424e..d2d76739647 100644 --- a/service/sagemakeredge/go.mod +++ b/service/sagemakeredge/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakeredge/go.sum b/service/sagemakeredge/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sagemakeredge/go.sum +++ b/service/sagemakeredge/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sagemakerfeaturestoreruntime/go.mod b/service/sagemakerfeaturestoreruntime/go.mod index 5830287e69f..16913716e28 100644 --- a/service/sagemakerfeaturestoreruntime/go.mod +++ b/service/sagemakerfeaturestoreruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakerfeaturestoreruntime/go.sum b/service/sagemakerfeaturestoreruntime/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sagemakerfeaturestoreruntime/go.sum +++ b/service/sagemakerfeaturestoreruntime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sagemakerruntime/go.mod b/service/sagemakerruntime/go.mod index 7effd997de1..7761f4c49cd 100644 --- a/service/sagemakerruntime/go.mod +++ b/service/sagemakerruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakerruntime/go.sum b/service/sagemakerruntime/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sagemakerruntime/go.sum +++ b/service/sagemakerruntime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/savingsplans/go.mod b/service/savingsplans/go.mod index c39b9c0a388..2e63bde3478 100644 --- a/service/savingsplans/go.mod +++ b/service/savingsplans/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/savingsplans/go.sum b/service/savingsplans/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/savingsplans/go.sum +++ b/service/savingsplans/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/schemas/go.mod b/service/schemas/go.mod index 6d5cfcc5b69..7c30bf1a17c 100644 --- a/service/schemas/go.mod +++ b/service/schemas/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/schemas/go.sum b/service/schemas/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/schemas/go.sum +++ b/service/schemas/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/secretsmanager/go.mod b/service/secretsmanager/go.mod index 4227cdd3a0f..f7e3a63cc15 100644 --- a/service/secretsmanager/go.mod +++ b/service/secretsmanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/secretsmanager/go.sum b/service/secretsmanager/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/secretsmanager/go.sum +++ b/service/secretsmanager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/securityhub/api_op_BatchDisableStandards.go b/service/securityhub/api_op_BatchDisableStandards.go index c846611025b..ed58f34ced8 100644 --- a/service/securityhub/api_op_BatchDisableStandards.go +++ b/service/securityhub/api_op_BatchDisableStandards.go @@ -14,7 +14,7 @@ import ( // Disables the standards specified by the provided StandardsSubscriptionArns. For // more information, see Security Standards // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards.html) -// section of the Security Hub User Guide. +// section of the AWS Security Hub User Guide. func (c *Client) BatchDisableStandards(ctx context.Context, params *BatchDisableStandardsInput, optFns ...func(*Options)) (*BatchDisableStandardsOutput, error) { if params == nil { params = &BatchDisableStandardsInput{} diff --git a/service/securityhub/api_op_BatchEnableStandards.go b/service/securityhub/api_op_BatchEnableStandards.go index ea0d8444ddc..0ab528014f6 100644 --- a/service/securityhub/api_op_BatchEnableStandards.go +++ b/service/securityhub/api_op_BatchEnableStandards.go @@ -15,7 +15,7 @@ import ( // for a standard, use the DescribeStandards operation. For more information, see // the Security Standards // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards.html) -// section of the Security Hub User Guide. +// section of the AWS Security Hub User Guide. func (c *Client) BatchEnableStandards(ctx context.Context, params *BatchEnableStandardsInput, optFns ...func(*Options)) (*BatchEnableStandardsOutput, error) { if params == nil { params = &BatchEnableStandardsInput{} diff --git a/service/securityhub/api_op_BatchImportFindings.go b/service/securityhub/api_op_BatchImportFindings.go index 0f2538bebcf..7107f981e49 100644 --- a/service/securityhub/api_op_BatchImportFindings.go +++ b/service/securityhub/api_op_BatchImportFindings.go @@ -62,7 +62,7 @@ func (c *Client) BatchImportFindings(ctx context.Context, params *BatchImportFin type BatchImportFindingsInput struct { // A list of findings to import. To successfully import a finding, it must follow - // the Amazon Web Services Security Finding Format + // the AWS Security Finding Format // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html). // Maximum of 100 findings per request. // diff --git a/service/securityhub/api_op_BatchUpdateFindings.go b/service/securityhub/api_op_BatchUpdateFindings.go index 21b50e4767a..a2a54b15a0d 100644 --- a/service/securityhub/api_op_BatchUpdateFindings.go +++ b/service/securityhub/api_op_BatchUpdateFindings.go @@ -44,7 +44,7 @@ import ( // be able to suppress findings or change the finding severity. See Configuring // access to BatchUpdateFindings // (https://docs.aws.amazon.com/securityhub/latest/userguide/finding-update-batchupdatefindings.html#batchupdatefindings-configure-access) -// in the Security Hub User Guide. +// in the AWS Security Hub User Guide. func (c *Client) BatchUpdateFindings(ctx context.Context, params *BatchUpdateFindingsInput, optFns ...func(*Options)) (*BatchUpdateFindingsOutput, error) { if params == nil { params = &BatchUpdateFindingsInput{} diff --git a/service/securityhub/api_op_CreateMembers.go b/service/securityhub/api_op_CreateMembers.go index 264d60e101d..689ffda4e5f 100644 --- a/service/securityhub/api_op_CreateMembers.go +++ b/service/securityhub/api_op_CreateMembers.go @@ -15,11 +15,11 @@ import ( // the account used to make the request, which is the administrator account. If you // are integrated with Organizations, then the administrator account is designated // by the organization management account. CreateMembers is always used to add -// accounts that are not organization members. For accounts that are managed using -// Organizations, CreateMembers is only used in the following cases: +// accounts that are not organization members. For accounts that are part of an +// organization, CreateMembers is only used in the following cases: // -// * Security -// Hub is not configured to automatically add new organization accounts. +// * Security Hub +// is not configured to automatically add new accounts in an organization. // // * The // account was disassociated or deleted in Security Hub. @@ -30,17 +30,14 @@ import ( // members, you create the account association and then send an invitation to the // member account. To send the invitation, you use the InviteMembers operation. If // the account owner accepts the invitation, the account becomes a member account -// in Security Hub. Accounts that are managed using Organizations do not receive an -// invitation. They automatically become a member account in Security Hub, and -// Security Hub is automatically enabled for those accounts. Note that Security Hub -// cannot be enabled automatically for the organization management account. The -// organization management account must enable Security Hub before the -// administrator account enables it as a member account. A permissions policy is -// added that permits the administrator account to view the findings generated in -// the member account. When Security Hub is enabled in a member account, the member -// account findings are also visible to the administrator account. To remove the -// association between the administrator and member accounts, use the -// DisassociateFromMasterAccount or DisassociateMembers operation. +// in Security Hub. Accounts that are part of an organization do not receive an +// invitation. They automatically become a member account in Security Hub. A +// permissions policy is added that permits the administrator account to view the +// findings generated in the member account. When Security Hub is enabled in a +// member account, the member account findings are also visible to the +// administrator account. To remove the association between the administrator and +// member accounts, use the DisassociateFromMasterAccount or DisassociateMembers +// operation. func (c *Client) CreateMembers(ctx context.Context, params *CreateMembersInput, optFns ...func(*Options)) (*CreateMembersOutput, error) { if params == nil { params = &CreateMembersInput{} @@ -70,8 +67,8 @@ type CreateMembersInput struct { type CreateMembersOutput struct { - // The list of Amazon Web Services accounts that were not processed. For each - // account, the list includes the account ID and the email address. + // The list of AWS accounts that were not processed. For each account, the list + // includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_DeclineInvitations.go b/service/securityhub/api_op_DeclineInvitations.go index bc32c75bdeb..951d5ce9aef 100644 --- a/service/securityhub/api_op_DeclineInvitations.go +++ b/service/securityhub/api_op_DeclineInvitations.go @@ -42,8 +42,8 @@ type DeclineInvitationsInput struct { type DeclineInvitationsOutput struct { - // The list of Amazon Web Services accounts that were not processed. For each - // account, the list includes the account ID and the email address. + // The list of AWS accounts that were not processed. For each account, the list + // includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_DeleteInvitations.go b/service/securityhub/api_op_DeleteInvitations.go index 405948396e6..2994dbb2311 100644 --- a/service/securityhub/api_op_DeleteInvitations.go +++ b/service/securityhub/api_op_DeleteInvitations.go @@ -11,9 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes invitations received by the Amazon Web Services account to become a -// member account. This operation is only used by accounts that are not part of an -// organization. Organization accounts do not receive invitations. +// Deletes invitations received by the AWS account to become a member account. This +// operation is only used by accounts that are not part of an organization. +// Organization accounts do not receive invitations. func (c *Client) DeleteInvitations(ctx context.Context, params *DeleteInvitationsInput, optFns ...func(*Options)) (*DeleteInvitationsOutput, error) { if params == nil { params = &DeleteInvitationsInput{} @@ -41,9 +41,8 @@ type DeleteInvitationsInput struct { type DeleteInvitationsOutput struct { - // The list of Amazon Web Services accounts for which the invitations were not - // deleted. For each account, the list includes the account ID and the email - // address. + // The list of AWS accounts for which the invitations were not deleted. For each + // account, the list includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_DeleteMembers.go b/service/securityhub/api_op_DeleteMembers.go index c0978c03fe0..359afb711cc 100644 --- a/service/securityhub/api_op_DeleteMembers.go +++ b/service/securityhub/api_op_DeleteMembers.go @@ -41,8 +41,8 @@ type DeleteMembersInput struct { type DeleteMembersOutput struct { - // The list of Amazon Web Services accounts that were not deleted. For each - // account, the list includes the account ID and the email address. + // The list of AWS accounts that were not deleted. For each account, the list + // includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_DisableOrganizationAdminAccount.go b/service/securityhub/api_op_DisableOrganizationAdminAccount.go index 89678bcc992..360606748a0 100644 --- a/service/securityhub/api_op_DisableOrganizationAdminAccount.go +++ b/service/securityhub/api_op_DisableOrganizationAdminAccount.go @@ -29,8 +29,7 @@ func (c *Client) DisableOrganizationAdminAccount(ctx context.Context, params *Di type DisableOrganizationAdminAccountInput struct { - // The Amazon Web Services account identifier of the Security Hub administrator - // account. + // The AWS account identifier of the Security Hub administrator account. // // This member is required. AdminAccountId *string diff --git a/service/securityhub/api_op_EnableOrganizationAdminAccount.go b/service/securityhub/api_op_EnableOrganizationAdminAccount.go index 7ce4fff376a..42804d953ca 100644 --- a/service/securityhub/api_op_EnableOrganizationAdminAccount.go +++ b/service/securityhub/api_op_EnableOrganizationAdminAccount.go @@ -29,8 +29,8 @@ func (c *Client) EnableOrganizationAdminAccount(ctx context.Context, params *Ena type EnableOrganizationAdminAccountInput struct { - // The Amazon Web Services account identifier of the account to designate as the - // Security Hub administrator account. + // The AWS account identifier of the account to designate as the Security Hub + // administrator account. // // This member is required. AdminAccountId *string diff --git a/service/securityhub/api_op_EnableSecurityHub.go b/service/securityhub/api_op_EnableSecurityHub.go index 56190607622..f4f933e177c 100644 --- a/service/securityhub/api_op_EnableSecurityHub.go +++ b/service/securityhub/api_op_EnableSecurityHub.go @@ -17,18 +17,18 @@ import ( // enable Security Hub, you also automatically enable the following standards. // // * -// CIS Amazon Web Services Foundations +// CIS AWS Foundations // -// * Amazon Web Services Foundational Security -// Best Practices +// * AWS Foundational Security Best Practices // -// You do not enable the Payment Card Industry Data Security -// Standard (PCI DSS) standard. To not enable the automatically enabled standards, -// set EnableDefaultStandards to false. After you enable Security Hub, to enable a -// standard, use the BatchEnableStandards operation. To disable a standard, use the -// BatchDisableStandards operation. To learn more, see the setup information +// You do not +// enable the Payment Card Industry Data Security Standard (PCI DSS) standard. To +// not enable the automatically enabled standards, set EnableDefaultStandards to +// false. After you enable Security Hub, to enable a standard, use the +// BatchEnableStandards operation. To disable a standard, use the +// BatchDisableStandards operation. To learn more, see Setting Up AWS Security Hub // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-settingup.html) -// in the Security Hub User Guide. +// in the AWS Security Hub User Guide. func (c *Client) EnableSecurityHub(ctx context.Context, params *EnableSecurityHubInput, optFns ...func(*Options)) (*EnableSecurityHubOutput, error) { if params == nil { params = &EnableSecurityHubInput{} diff --git a/service/securityhub/api_op_GetMembers.go b/service/securityhub/api_op_GetMembers.go index 97919e95bd5..24da1befd49 100644 --- a/service/securityhub/api_op_GetMembers.go +++ b/service/securityhub/api_op_GetMembers.go @@ -47,8 +47,8 @@ type GetMembersOutput struct { // The list of details about the Security Hub member accounts. Members []types.Member - // The list of Amazon Web Services accounts that could not be processed. For each - // account, the list includes the account ID and the email address. + // The list of AWS accounts that could not be processed. For each account, the list + // includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_InviteMembers.go b/service/securityhub/api_op_InviteMembers.go index 1acab3a5cad..c10822c74e4 100644 --- a/service/securityhub/api_op_InviteMembers.go +++ b/service/securityhub/api_op_InviteMembers.go @@ -11,14 +11,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Invites other Amazon Web Services accounts to become member accounts for the -// Security Hub administrator account that the invitation is sent from. This -// operation is only used to invite accounts that do not belong to an organization. -// Organization accounts do not receive invitations. Before you can use this action -// to invite a member, you must first use the CreateMembers action to create the -// member account in Security Hub. When the account owner enables Security Hub and -// accepts the invitation to become a member account, the administrator account can -// view the findings generated from the member account. +// Invites other AWS accounts to become member accounts for the Security Hub +// administrator account that the invitation is sent from. This operation is only +// used to invite accounts that do not belong to an organization. Organization +// accounts do not receive invitations. Before you can use this action to invite a +// member, you must first use the CreateMembers action to create the member account +// in Security Hub. When the account owner enables Security Hub and accepts the +// invitation to become a member account, the administrator account can view the +// findings generated from the member account. func (c *Client) InviteMembers(ctx context.Context, params *InviteMembersInput, optFns ...func(*Options)) (*InviteMembersOutput, error) { if params == nil { params = &InviteMembersInput{} @@ -36,8 +36,8 @@ func (c *Client) InviteMembers(ctx context.Context, params *InviteMembersInput, type InviteMembersInput struct { - // The list of account IDs of the Amazon Web Services accounts to invite to - // Security Hub as members. + // The list of account IDs of the AWS accounts to invite to Security Hub as + // members. // // This member is required. AccountIds []string @@ -47,8 +47,8 @@ type InviteMembersInput struct { type InviteMembersOutput struct { - // The list of Amazon Web Services accounts that could not be processed. For each - // account, the list includes the account ID and the email address. + // The list of AWS accounts that could not be processed. For each account, the list + // includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_ListInvitations.go b/service/securityhub/api_op_ListInvitations.go index 578757388c5..8aca8a879c9 100644 --- a/service/securityhub/api_op_ListInvitations.go +++ b/service/securityhub/api_op_ListInvitations.go @@ -12,10 +12,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all Security Hub membership invitations that were sent to the current -// Amazon Web Services account. This operation is only used by accounts that are -// managed by invitation. Accounts that are managed using the integration with -// Organizations do not receive invitations. +// Lists all Security Hub membership invitations that were sent to the current AWS +// account. This operation is only used by accounts that are managed by invitation. +// Accounts that are managed using the integration with AWS Organizations do not +// receive invitations. func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsInput, optFns ...func(*Options)) (*ListInvitationsOutput, error) { if params == nil { params = &ListInvitationsInput{} diff --git a/service/securityhub/deserializers.go b/service/securityhub/deserializers.go index f3084054e88..ed7420fb7d8 100644 --- a/service/securityhub/deserializers.go +++ b/service/securityhub/deserializers.go @@ -14567,928 +14567,6 @@ func awsRestjson1_deserializeDocumentAwsEcsClusterDetails(v **types.AwsEcsCluste return nil } -func awsRestjson1_deserializeDocumentAwsEcsServiceCapacityProviderStrategyDetails(v **types.AwsEcsServiceCapacityProviderStrategyDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServiceCapacityProviderStrategyDetails - if *v == nil { - sv = &types.AwsEcsServiceCapacityProviderStrategyDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Base": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Base = int32(i64) - } - - case "CapacityProvider": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.CapacityProvider = ptr.String(jtv) - } - - case "Weight": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Weight = int32(i64) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceCapacityProviderStrategyList(v *[]types.AwsEcsServiceCapacityProviderStrategyDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.AwsEcsServiceCapacityProviderStrategyDetails - if *v == nil { - cv = []types.AwsEcsServiceCapacityProviderStrategyDetails{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.AwsEcsServiceCapacityProviderStrategyDetails - destAddr := &col - if err := awsRestjson1_deserializeDocumentAwsEcsServiceCapacityProviderStrategyDetails(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails(v **types.AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails - if *v == nil { - sv = &types.AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Enable": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.Enable = jtv - } - - case "Rollback": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.Rollback = jtv - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentConfigurationDetails(v **types.AwsEcsServiceDeploymentConfigurationDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServiceDeploymentConfigurationDetails - if *v == nil { - sv = &types.AwsEcsServiceDeploymentConfigurationDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DeploymentCircuitBreaker": - if err := awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails(&sv.DeploymentCircuitBreaker, value); err != nil { - return err - } - - case "MaximumPercent": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaximumPercent = int32(i64) - } - - case "MinimumHealthyPercent": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MinimumHealthyPercent = int32(i64) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentControllerDetails(v **types.AwsEcsServiceDeploymentControllerDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServiceDeploymentControllerDetails - if *v == nil { - sv = &types.AwsEcsServiceDeploymentControllerDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Type = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceDetails(v **types.AwsEcsServiceDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServiceDetails - if *v == nil { - sv = &types.AwsEcsServiceDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CapacityProviderStrategy": - if err := awsRestjson1_deserializeDocumentAwsEcsServiceCapacityProviderStrategyList(&sv.CapacityProviderStrategy, value); err != nil { - return err - } - - case "Cluster": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Cluster = ptr.String(jtv) - } - - case "DeploymentConfiguration": - if err := awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentConfigurationDetails(&sv.DeploymentConfiguration, value); err != nil { - return err - } - - case "DeploymentController": - if err := awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentControllerDetails(&sv.DeploymentController, value); err != nil { - return err - } - - case "DesiredCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.DesiredCount = int32(i64) - } - - case "EnableEcsManagedTags": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.EnableEcsManagedTags = jtv - } - - case "EnableExecuteCommand": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.EnableExecuteCommand = jtv - } - - case "HealthCheckGracePeriodSeconds": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.HealthCheckGracePeriodSeconds = int32(i64) - } - - case "LaunchType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.LaunchType = ptr.String(jtv) - } - - case "LoadBalancers": - if err := awsRestjson1_deserializeDocumentAwsEcsServiceLoadBalancersList(&sv.LoadBalancers, value); err != nil { - return err - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "NetworkConfiguration": - if err := awsRestjson1_deserializeDocumentAwsEcsServiceNetworkConfigurationDetails(&sv.NetworkConfiguration, value); err != nil { - return err - } - - case "PlacementConstraints": - if err := awsRestjson1_deserializeDocumentAwsEcsServicePlacementConstraintsList(&sv.PlacementConstraints, value); err != nil { - return err - } - - case "PlacementStrategies": - if err := awsRestjson1_deserializeDocumentAwsEcsServicePlacementStrategiesList(&sv.PlacementStrategies, value); err != nil { - return err - } - - case "PlatformVersion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.PlatformVersion = ptr.String(jtv) - } - - case "PropagateTags": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.PropagateTags = ptr.String(jtv) - } - - case "Role": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Role = ptr.String(jtv) - } - - case "SchedulingStrategy": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.SchedulingStrategy = ptr.String(jtv) - } - - case "ServiceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.ServiceArn = ptr.String(jtv) - } - - case "ServiceName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.ServiceName = ptr.String(jtv) - } - - case "ServiceRegistries": - if err := awsRestjson1_deserializeDocumentAwsEcsServiceServiceRegistriesList(&sv.ServiceRegistries, value); err != nil { - return err - } - - case "TaskDefinition": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.TaskDefinition = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceLoadBalancersDetails(v **types.AwsEcsServiceLoadBalancersDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServiceLoadBalancersDetails - if *v == nil { - sv = &types.AwsEcsServiceLoadBalancersDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ContainerName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.ContainerName = ptr.String(jtv) - } - - case "ContainerPort": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ContainerPort = int32(i64) - } - - case "LoadBalancerName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.LoadBalancerName = ptr.String(jtv) - } - - case "TargetGroupArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.TargetGroupArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceLoadBalancersList(v *[]types.AwsEcsServiceLoadBalancersDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.AwsEcsServiceLoadBalancersDetails - if *v == nil { - cv = []types.AwsEcsServiceLoadBalancersDetails{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.AwsEcsServiceLoadBalancersDetails - destAddr := &col - if err := awsRestjson1_deserializeDocumentAwsEcsServiceLoadBalancersDetails(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails(v **types.AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails - if *v == nil { - sv = &types.AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AssignPublicIp": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.AssignPublicIp = ptr.String(jtv) - } - - case "SecurityGroups": - if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.SecurityGroups, value); err != nil { - return err - } - - case "Subnets": - if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.Subnets, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceNetworkConfigurationDetails(v **types.AwsEcsServiceNetworkConfigurationDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServiceNetworkConfigurationDetails - if *v == nil { - sv = &types.AwsEcsServiceNetworkConfigurationDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AwsVpcConfiguration": - if err := awsRestjson1_deserializeDocumentAwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails(&sv.AwsVpcConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServicePlacementConstraintsDetails(v **types.AwsEcsServicePlacementConstraintsDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServicePlacementConstraintsDetails - if *v == nil { - sv = &types.AwsEcsServicePlacementConstraintsDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Expression": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Expression = ptr.String(jtv) - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Type = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServicePlacementConstraintsList(v *[]types.AwsEcsServicePlacementConstraintsDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.AwsEcsServicePlacementConstraintsDetails - if *v == nil { - cv = []types.AwsEcsServicePlacementConstraintsDetails{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.AwsEcsServicePlacementConstraintsDetails - destAddr := &col - if err := awsRestjson1_deserializeDocumentAwsEcsServicePlacementConstraintsDetails(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServicePlacementStrategiesDetails(v **types.AwsEcsServicePlacementStrategiesDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServicePlacementStrategiesDetails - if *v == nil { - sv = &types.AwsEcsServicePlacementStrategiesDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Field": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Field = ptr.String(jtv) - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Type = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServicePlacementStrategiesList(v *[]types.AwsEcsServicePlacementStrategiesDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.AwsEcsServicePlacementStrategiesDetails - if *v == nil { - cv = []types.AwsEcsServicePlacementStrategiesDetails{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.AwsEcsServicePlacementStrategiesDetails - destAddr := &col - if err := awsRestjson1_deserializeDocumentAwsEcsServicePlacementStrategiesDetails(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceServiceRegistriesDetails(v **types.AwsEcsServiceServiceRegistriesDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsEcsServiceServiceRegistriesDetails - if *v == nil { - sv = &types.AwsEcsServiceServiceRegistriesDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ContainerName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.ContainerName = ptr.String(jtv) - } - - case "ContainerPort": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ContainerPort = int32(i64) - } - - case "Port": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Port = int32(i64) - } - - case "RegistryArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.RegistryArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsEcsServiceServiceRegistriesList(v *[]types.AwsEcsServiceServiceRegistriesDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.AwsEcsServiceServiceRegistriesDetails - if *v == nil { - cv = []types.AwsEcsServiceServiceRegistriesDetails{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.AwsEcsServiceServiceRegistriesDetails - destAddr := &col - if err := awsRestjson1_deserializeDocumentAwsEcsServiceServiceRegistriesDetails(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - func awsRestjson1_deserializeDocumentAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails(v **types.AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -18515,181 +17593,7 @@ func awsRestjson1_deserializeDocumentAwsElasticBeanstalkEnvironmentOptionSetting return nil } -func awsRestjson1_deserializeDocumentAwsElasticBeanstalkEnvironmentTier(v **types.AwsElasticBeanstalkEnvironmentTier, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsElasticBeanstalkEnvironmentTier - if *v == nil { - sv = &types.AwsElasticBeanstalkEnvironmentTier{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Type = ptr.String(jtv) - } - - case "Version": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Version = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.AwsElasticsearchDomainDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsElasticsearchDomainDetails - if *v == nil { - sv = &types.AwsElasticsearchDomainDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AccessPolicies": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.AccessPolicies = ptr.String(jtv) - } - - case "DomainEndpointOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions(&sv.DomainEndpointOptions, value); err != nil { - return err - } - - case "DomainId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.DomainId = ptr.String(jtv) - } - - case "DomainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "ElasticsearchClusterConfig": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigDetails(&sv.ElasticsearchClusterConfig, value); err != nil { - return err - } - - case "ElasticsearchVersion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.ElasticsearchVersion = ptr.String(jtv) - } - - case "EncryptionAtRestOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainEncryptionAtRestOptions(&sv.EncryptionAtRestOptions, value); err != nil { - return err - } - - case "Endpoint": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Endpoint = ptr.String(jtv) - } - - case "Endpoints": - if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Endpoints, value); err != nil { - return err - } - - case "LogPublishingOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptions(&sv.LogPublishingOptions, value); err != nil { - return err - } - - case "NodeToNodeEncryptionOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainNodeToNodeEncryptionOptions(&sv.NodeToNodeEncryptionOptions, value); err != nil { - return err - } - - case "ServiceSoftwareOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainServiceSoftwareOptions(&sv.ServiceSoftwareOptions, value); err != nil { - return err - } - - case "VPCOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainVPCOptions(&sv.VPCOptions, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions(v **types.AwsElasticsearchDomainDomainEndpointOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElasticBeanstalkEnvironmentTier(v **types.AwsElasticBeanstalkEnvironmentTier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18702,31 +17606,40 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AwsElasticsearchDomainDomainEndpointOptions + var sv *types.AwsElasticBeanstalkEnvironmentTier if *v == nil { - sv = &types.AwsElasticsearchDomainDomainEndpointOptions{} + sv = &types.AwsElasticBeanstalkEnvironmentTier{} } else { sv = *v } for key, value := range shape { switch key { - case "EnforceHTTPS": + case "Name": if value != nil { - jtv, ok := value.(bool) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EnforceHTTPS = jtv + sv.Name = ptr.String(jtv) } - case "TLSSecurityPolicy": + case "Type": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TLSSecurityPolicy = ptr.String(jtv) + sv.Type = ptr.String(jtv) + } + + case "Version": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Version = ptr.String(jtv) } default: @@ -18738,7 +17651,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions return nil } -func awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigDetails(v **types.AwsElasticsearchDomainElasticsearchClusterConfigDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.AwsElasticsearchDomainDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18751,80 +17664,93 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AwsElasticsearchDomainElasticsearchClusterConfigDetails + var sv *types.AwsElasticsearchDomainDetails if *v == nil { - sv = &types.AwsElasticsearchDomainElasticsearchClusterConfigDetails{} + sv = &types.AwsElasticsearchDomainDetails{} } else { sv = *v } for key, value := range shape { switch key { - case "DedicatedMasterCount": + case "AccessPolicies": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DedicatedMasterCount = int32(i64) + sv.AccessPolicies = ptr.String(jtv) } - case "DedicatedMasterEnabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.DedicatedMasterEnabled = jtv + case "DomainEndpointOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions(&sv.DomainEndpointOptions, value); err != nil { + return err } - case "DedicatedMasterType": + case "DomainId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DedicatedMasterType = ptr.String(jtv) + sv.DomainId = ptr.String(jtv) } - case "InstanceCount": + case "DomainName": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceCount = int32(i64) + sv.DomainName = ptr.String(jtv) } - case "InstanceType": + case "ElasticsearchVersion": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceType = ptr.String(jtv) + sv.ElasticsearchVersion = ptr.String(jtv) } - case "ZoneAwarenessConfig": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails(&sv.ZoneAwarenessConfig, value); err != nil { + case "EncryptionAtRestOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainEncryptionAtRestOptions(&sv.EncryptionAtRestOptions, value); err != nil { return err } - case "ZoneAwarenessEnabled": + case "Endpoint": if value != nil { - jtv, ok := value.(bool) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ZoneAwarenessEnabled = jtv + sv.Endpoint = ptr.String(jtv) + } + + case "Endpoints": + if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Endpoints, value); err != nil { + return err + } + + case "LogPublishingOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptions(&sv.LogPublishingOptions, value); err != nil { + return err + } + + case "NodeToNodeEncryptionOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainNodeToNodeEncryptionOptions(&sv.NodeToNodeEncryptionOptions, value); err != nil { + return err + } + + case "ServiceSoftwareOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainServiceSoftwareOptions(&sv.ServiceSoftwareOptions, value); err != nil { + return err + } + + case "VPCOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainVPCOptions(&sv.VPCOptions, value); err != nil { + return err } default: @@ -18836,7 +17762,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterC return nil } -func awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails(v **types.AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions(v **types.AwsElasticsearchDomainDomainEndpointOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18849,26 +17775,31 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails + var sv *types.AwsElasticsearchDomainDomainEndpointOptions if *v == nil { - sv = &types.AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails{} + sv = &types.AwsElasticsearchDomainDomainEndpointOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "AvailabilityZoneCount": + case "EnforceHTTPS": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.EnforceHTTPS = jtv + } + + case "TLSSecurityPolicy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AvailabilityZoneCount = int32(i64) + sv.TLSSecurityPolicy = ptr.String(jtv) } default: @@ -18951,11 +17882,6 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptions( for key, value := range shape { switch key { - case "AuditLogs": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptionsLogConfig(&sv.AuditLogs, value); err != nil { - return err - } - case "IndexSlowLogs": if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptionsLogConfig(&sv.IndexSlowLogs, value); err != nil { return err @@ -25172,119 +24098,6 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnets(v *[]types.AwsRd return nil } -func awsRestjson1_deserializeDocumentAwsRdsEventSubscriptionDetails(v **types.AwsRdsEventSubscriptionDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AwsRdsEventSubscriptionDetails - if *v == nil { - sv = &types.AwsRdsEventSubscriptionDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CustomerAwsId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.CustomerAwsId = ptr.String(jtv) - } - - case "CustSubscriptionId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.CustSubscriptionId = ptr.String(jtv) - } - - case "Enabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.Enabled = jtv - } - - case "EventCategoriesList": - if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.EventCategoriesList, value); err != nil { - return err - } - - case "EventSubscriptionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.EventSubscriptionArn = ptr.String(jtv) - } - - case "SnsTopicArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.SnsTopicArn = ptr.String(jtv) - } - - case "SourceIdsList": - if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.SourceIdsList, value); err != nil { - return err - } - - case "SourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.SourceType = ptr.String(jtv) - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Status = ptr.String(jtv) - } - - case "SubscriptionCreationTime": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.SubscriptionCreationTime = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentAwsRdsPendingCloudWatchLogsExports(v **types.AwsRdsPendingCloudWatchLogsExports, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -28120,15 +26933,6 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin sv.AwsAccountId = ptr.String(jtv) } - case "CompanyName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.CompanyName = ptr.String(jtv) - } - case "Compliance": if err := awsRestjson1_deserializeDocumentCompliance(&sv.Compliance, value); err != nil { return err @@ -28263,15 +27067,6 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin return err } - case "ProductName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.ProductName = ptr.String(jtv) - } - case "RecordState": if value != nil { jtv, ok := value.(string) @@ -28281,15 +27076,6 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin sv.RecordState = types.RecordState(jtv) } - case "Region": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Region = ptr.String(jtv) - } - case "RelatedFindings": if err := awsRestjson1_deserializeDocumentRelatedFindingList(&sv.RelatedFindings, value); err != nil { return err @@ -28660,11 +27446,6 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingFilters(v **types.AwsSecu return err } - case "Region": - if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Region, value); err != nil { - return err - } - case "RelatedFindingsId": if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.RelatedFindingsId, value); err != nil { return err @@ -28725,11 +27506,6 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingFilters(v **types.AwsSecu return err } - case "ResourceAwsIamAccessKeyPrincipalName": - if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceAwsIamAccessKeyPrincipalName, value); err != nil { - return err - } - case "ResourceAwsIamAccessKeyStatus": if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceAwsIamAccessKeyStatus, value); err != nil { return err @@ -28740,11 +27516,6 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingFilters(v **types.AwsSecu return err } - case "ResourceAwsIamUserUserName": - if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceAwsIamUserUserName, value); err != nil { - return err - } - case "ResourceAwsS3BucketOwnerId": if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceAwsS3BucketOwnerId, value); err != nil { return err @@ -34708,11 +33479,6 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails, return err } - case "AwsEcsService": - if err := awsRestjson1_deserializeDocumentAwsEcsServiceDetails(&sv.AwsEcsService, value); err != nil { - return err - } - case "AwsEcsTaskDefinition": if err := awsRestjson1_deserializeDocumentAwsEcsTaskDefinitionDetails(&sv.AwsEcsTaskDefinition, value); err != nil { return err @@ -34798,11 +33564,6 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails, return err } - case "AwsRdsEventSubscription": - if err := awsRestjson1_deserializeDocumentAwsRdsEventSubscriptionDetails(&sv.AwsRdsEventSubscription, value); err != nil { - return err - } - case "AwsRedshiftCluster": if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(&sv.AwsRedshiftCluster, value); err != nil { return err diff --git a/service/securityhub/doc.go b/service/securityhub/doc.go index b36b7f4c701..522cd6c309b 100644 --- a/service/securityhub/doc.go +++ b/service/securityhub/doc.go @@ -4,39 +4,38 @@ // AWS SecurityHub. // // Security Hub provides you with a comprehensive view of the security state of -// your Amazon Web Services environment and resources. It also provides you with -// the readiness status of your environment based on controls from supported -// security standards. Security Hub collects security data from Amazon Web Services -// accounts, services, and integrated third-party products and helps you analyze -// security trends in your environment to identify the highest priority security -// issues. For more information about Security Hub, see the Security HubUser Guide +// your AWS environment and resources. It also provides you with the readiness +// status of your environment based on controls from supported security standards. +// Security Hub collects security data from AWS accounts, services, and integrated +// third-party products and helps you analyze security trends in your environment +// to identify the highest priority security issues. For more information about +// Security Hub, see the AWS Security Hub User Guide // (https://docs.aws.amazon.com/securityhub/latest/userguide/what-is-securityhub.html) // . When you use operations in the Security Hub API, the requests are executed -// only in the Amazon Web Services Region that is currently active or in the -// specific Amazon Web Services Region that you specify in your request. Any -// configuration or settings change that results from the operation is applied only -// to that Region. To make the same change in other Regions, execute the same -// command for each Region to apply the change to. For example, if your Region is -// set to us-west-2, when you use CreateMembers to add a member account to Security -// Hub, the association of the member account with the administrator account is -// created only in the us-west-2 Region. Security Hub must be enabled for the -// member account in the same Region that the invitation was sent from. The -// following throttling limits apply to using Security Hub API operations. +// only in the AWS Region that is currently active or in the specific AWS Region +// that you specify in your request. Any configuration or settings change that +// results from the operation is applied only to that Region. To make the same +// change in other Regions, execute the same command for each Region to apply the +// change to. For example, if your Region is set to us-west-2, when you use +// CreateMembers to add a member account to Security Hub, the association of the +// member account with the administrator account is created only in the us-west-2 +// Region. Security Hub must be enabled for the member account in the same Region +// that the invitation was sent from. The following throttling limits apply to +// using Security Hub API operations. // -// * -// BatchEnableStandards - RateLimit of 1 request per second, BurstLimit of 1 -// request per second. +// * BatchEnableStandards - RateLimit of 1 +// request per second, BurstLimit of 1 request per second. // -// * GetFindings - RateLimit of 3 requests per second. -// BurstLimit of 6 requests per second. +// * GetFindings - +// RateLimit of 3 requests per second. BurstLimit of 6 requests per second. // -// * UpdateFindings - RateLimit of 1 request -// per second. BurstLimit of 5 requests per second. +// * +// UpdateFindings - RateLimit of 1 request per second. BurstLimit of 5 requests per +// second. // -// * UpdateStandardsControl - -// RateLimit of 1 request per second, BurstLimit of 5 requests per second. +// * UpdateStandardsControl - RateLimit of 1 request per second, +// BurstLimit of 5 requests per second. // -// * All -// other operations - RateLimit of 10 requests per second. BurstLimit of 30 -// requests per second. +// * All other operations - RateLimit of 10 +// requests per second. BurstLimit of 30 requests per second. package securityhub diff --git a/service/securityhub/go.mod b/service/securityhub/go.mod index 3cf08999e67..087d2debe7a 100644 --- a/service/securityhub/go.mod +++ b/service/securityhub/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/securityhub/go.sum b/service/securityhub/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/securityhub/go.sum +++ b/service/securityhub/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/securityhub/serializers.go b/service/securityhub/serializers.go index 3dd98c2d732..7b4cbbe988a 100644 --- a/service/securityhub/serializers.go +++ b/service/securityhub/serializers.go @@ -6733,407 +6733,6 @@ func awsRestjson1_serializeDocumentAwsEcsClusterDetails(v *types.AwsEcsClusterDe return nil } -func awsRestjson1_serializeDocumentAwsEcsServiceCapacityProviderStrategyDetails(v *types.AwsEcsServiceCapacityProviderStrategyDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Base != 0 { - ok := object.Key("Base") - ok.Integer(v.Base) - } - - if v.CapacityProvider != nil { - ok := object.Key("CapacityProvider") - ok.String(*v.CapacityProvider) - } - - if v.Weight != 0 { - ok := object.Key("Weight") - ok.Integer(v.Weight) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceCapacityProviderStrategyList(v []types.AwsEcsServiceCapacityProviderStrategyDetails, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAwsEcsServiceCapacityProviderStrategyDetails(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails(v *types.AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Enable { - ok := object.Key("Enable") - ok.Boolean(v.Enable) - } - - if v.Rollback { - ok := object.Key("Rollback") - ok.Boolean(v.Rollback) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceDeploymentConfigurationDetails(v *types.AwsEcsServiceDeploymentConfigurationDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DeploymentCircuitBreaker != nil { - ok := object.Key("DeploymentCircuitBreaker") - if err := awsRestjson1_serializeDocumentAwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails(v.DeploymentCircuitBreaker, ok); err != nil { - return err - } - } - - if v.MaximumPercent != 0 { - ok := object.Key("MaximumPercent") - ok.Integer(v.MaximumPercent) - } - - if v.MinimumHealthyPercent != 0 { - ok := object.Key("MinimumHealthyPercent") - ok.Integer(v.MinimumHealthyPercent) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceDeploymentControllerDetails(v *types.AwsEcsServiceDeploymentControllerDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Type != nil { - ok := object.Key("Type") - ok.String(*v.Type) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceDetails(v *types.AwsEcsServiceDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CapacityProviderStrategy != nil { - ok := object.Key("CapacityProviderStrategy") - if err := awsRestjson1_serializeDocumentAwsEcsServiceCapacityProviderStrategyList(v.CapacityProviderStrategy, ok); err != nil { - return err - } - } - - if v.Cluster != nil { - ok := object.Key("Cluster") - ok.String(*v.Cluster) - } - - if v.DeploymentConfiguration != nil { - ok := object.Key("DeploymentConfiguration") - if err := awsRestjson1_serializeDocumentAwsEcsServiceDeploymentConfigurationDetails(v.DeploymentConfiguration, ok); err != nil { - return err - } - } - - if v.DeploymentController != nil { - ok := object.Key("DeploymentController") - if err := awsRestjson1_serializeDocumentAwsEcsServiceDeploymentControllerDetails(v.DeploymentController, ok); err != nil { - return err - } - } - - if v.DesiredCount != 0 { - ok := object.Key("DesiredCount") - ok.Integer(v.DesiredCount) - } - - if v.EnableEcsManagedTags { - ok := object.Key("EnableEcsManagedTags") - ok.Boolean(v.EnableEcsManagedTags) - } - - if v.EnableExecuteCommand { - ok := object.Key("EnableExecuteCommand") - ok.Boolean(v.EnableExecuteCommand) - } - - if v.HealthCheckGracePeriodSeconds != 0 { - ok := object.Key("HealthCheckGracePeriodSeconds") - ok.Integer(v.HealthCheckGracePeriodSeconds) - } - - if v.LaunchType != nil { - ok := object.Key("LaunchType") - ok.String(*v.LaunchType) - } - - if v.LoadBalancers != nil { - ok := object.Key("LoadBalancers") - if err := awsRestjson1_serializeDocumentAwsEcsServiceLoadBalancersList(v.LoadBalancers, ok); err != nil { - return err - } - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.NetworkConfiguration != nil { - ok := object.Key("NetworkConfiguration") - if err := awsRestjson1_serializeDocumentAwsEcsServiceNetworkConfigurationDetails(v.NetworkConfiguration, ok); err != nil { - return err - } - } - - if v.PlacementConstraints != nil { - ok := object.Key("PlacementConstraints") - if err := awsRestjson1_serializeDocumentAwsEcsServicePlacementConstraintsList(v.PlacementConstraints, ok); err != nil { - return err - } - } - - if v.PlacementStrategies != nil { - ok := object.Key("PlacementStrategies") - if err := awsRestjson1_serializeDocumentAwsEcsServicePlacementStrategiesList(v.PlacementStrategies, ok); err != nil { - return err - } - } - - if v.PlatformVersion != nil { - ok := object.Key("PlatformVersion") - ok.String(*v.PlatformVersion) - } - - if v.PropagateTags != nil { - ok := object.Key("PropagateTags") - ok.String(*v.PropagateTags) - } - - if v.Role != nil { - ok := object.Key("Role") - ok.String(*v.Role) - } - - if v.SchedulingStrategy != nil { - ok := object.Key("SchedulingStrategy") - ok.String(*v.SchedulingStrategy) - } - - if v.ServiceArn != nil { - ok := object.Key("ServiceArn") - ok.String(*v.ServiceArn) - } - - if v.ServiceName != nil { - ok := object.Key("ServiceName") - ok.String(*v.ServiceName) - } - - if v.ServiceRegistries != nil { - ok := object.Key("ServiceRegistries") - if err := awsRestjson1_serializeDocumentAwsEcsServiceServiceRegistriesList(v.ServiceRegistries, ok); err != nil { - return err - } - } - - if v.TaskDefinition != nil { - ok := object.Key("TaskDefinition") - ok.String(*v.TaskDefinition) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceLoadBalancersDetails(v *types.AwsEcsServiceLoadBalancersDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ContainerName != nil { - ok := object.Key("ContainerName") - ok.String(*v.ContainerName) - } - - if v.ContainerPort != 0 { - ok := object.Key("ContainerPort") - ok.Integer(v.ContainerPort) - } - - if v.LoadBalancerName != nil { - ok := object.Key("LoadBalancerName") - ok.String(*v.LoadBalancerName) - } - - if v.TargetGroupArn != nil { - ok := object.Key("TargetGroupArn") - ok.String(*v.TargetGroupArn) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceLoadBalancersList(v []types.AwsEcsServiceLoadBalancersDetails, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAwsEcsServiceLoadBalancersDetails(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails(v *types.AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AssignPublicIp != nil { - ok := object.Key("AssignPublicIp") - ok.String(*v.AssignPublicIp) - } - - if v.SecurityGroups != nil { - ok := object.Key("SecurityGroups") - if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.SecurityGroups, ok); err != nil { - return err - } - } - - if v.Subnets != nil { - ok := object.Key("Subnets") - if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.Subnets, ok); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceNetworkConfigurationDetails(v *types.AwsEcsServiceNetworkConfigurationDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AwsVpcConfiguration != nil { - ok := object.Key("AwsVpcConfiguration") - if err := awsRestjson1_serializeDocumentAwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails(v.AwsVpcConfiguration, ok); err != nil { - return err - } - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServicePlacementConstraintsDetails(v *types.AwsEcsServicePlacementConstraintsDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) - } - - if v.Type != nil { - ok := object.Key("Type") - ok.String(*v.Type) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServicePlacementConstraintsList(v []types.AwsEcsServicePlacementConstraintsDetails, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAwsEcsServicePlacementConstraintsDetails(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServicePlacementStrategiesDetails(v *types.AwsEcsServicePlacementStrategiesDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Field != nil { - ok := object.Key("Field") - ok.String(*v.Field) - } - - if v.Type != nil { - ok := object.Key("Type") - ok.String(*v.Type) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServicePlacementStrategiesList(v []types.AwsEcsServicePlacementStrategiesDetails, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAwsEcsServicePlacementStrategiesDetails(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceServiceRegistriesDetails(v *types.AwsEcsServiceServiceRegistriesDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ContainerName != nil { - ok := object.Key("ContainerName") - ok.String(*v.ContainerName) - } - - if v.ContainerPort != 0 { - ok := object.Key("ContainerPort") - ok.Integer(v.ContainerPort) - } - - if v.Port != 0 { - ok := object.Key("Port") - ok.Integer(v.Port) - } - - if v.RegistryArn != nil { - ok := object.Key("RegistryArn") - ok.String(*v.RegistryArn) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsEcsServiceServiceRegistriesList(v []types.AwsEcsServiceServiceRegistriesDetails, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAwsEcsServiceServiceRegistriesDetails(&v[i], av); err != nil { - return err - } - } - return nil -} - func awsRestjson1_serializeDocumentAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails(v *types.AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -8563,13 +8162,6 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainDetails(v *types.AwsEla ok.String(*v.DomainName) } - if v.ElasticsearchClusterConfig != nil { - ok := object.Key("ElasticsearchClusterConfig") - if err := awsRestjson1_serializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigDetails(v.ElasticsearchClusterConfig, ok); err != nil { - return err - } - } - if v.ElasticsearchVersion != nil { ok := object.Key("ElasticsearchVersion") ok.String(*v.ElasticsearchVersion) @@ -8642,62 +8234,6 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainDomainEndpointOptions(v return nil } -func awsRestjson1_serializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigDetails(v *types.AwsElasticsearchDomainElasticsearchClusterConfigDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DedicatedMasterCount != 0 { - ok := object.Key("DedicatedMasterCount") - ok.Integer(v.DedicatedMasterCount) - } - - if v.DedicatedMasterEnabled { - ok := object.Key("DedicatedMasterEnabled") - ok.Boolean(v.DedicatedMasterEnabled) - } - - if v.DedicatedMasterType != nil { - ok := object.Key("DedicatedMasterType") - ok.String(*v.DedicatedMasterType) - } - - if v.InstanceCount != 0 { - ok := object.Key("InstanceCount") - ok.Integer(v.InstanceCount) - } - - if v.InstanceType != nil { - ok := object.Key("InstanceType") - ok.String(*v.InstanceType) - } - - if v.ZoneAwarenessConfig != nil { - ok := object.Key("ZoneAwarenessConfig") - if err := awsRestjson1_serializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails(v.ZoneAwarenessConfig, ok); err != nil { - return err - } - } - - if v.ZoneAwarenessEnabled { - ok := object.Key("ZoneAwarenessEnabled") - ok.Boolean(v.ZoneAwarenessEnabled) - } - - return nil -} - -func awsRestjson1_serializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails(v *types.AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AvailabilityZoneCount != 0 { - ok := object.Key("AvailabilityZoneCount") - ok.Integer(v.AvailabilityZoneCount) - } - - return nil -} - func awsRestjson1_serializeDocumentAwsElasticsearchDomainEncryptionAtRestOptions(v *types.AwsElasticsearchDomainEncryptionAtRestOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -8719,13 +8255,6 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainLogPublishingOptions(v object := value.Object() defer object.Close() - if v.AuditLogs != nil { - ok := object.Key("AuditLogs") - if err := awsRestjson1_serializeDocumentAwsElasticsearchDomainLogPublishingOptionsLogConfig(v.AuditLogs, ok); err != nil { - return err - } - } - if v.IndexSlowLogs != nil { ok := object.Key("IndexSlowLogs") if err := awsRestjson1_serializeDocumentAwsElasticsearchDomainLogPublishingOptionsLogConfig(v.IndexSlowLogs, ok); err != nil { @@ -11632,67 +11161,6 @@ func awsRestjson1_serializeDocumentAwsRdsDbSubnetGroupSubnets(v []types.AwsRdsDb return nil } -func awsRestjson1_serializeDocumentAwsRdsEventSubscriptionDetails(v *types.AwsRdsEventSubscriptionDetails, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CustomerAwsId != nil { - ok := object.Key("CustomerAwsId") - ok.String(*v.CustomerAwsId) - } - - if v.CustSubscriptionId != nil { - ok := object.Key("CustSubscriptionId") - ok.String(*v.CustSubscriptionId) - } - - if v.Enabled { - ok := object.Key("Enabled") - ok.Boolean(v.Enabled) - } - - if v.EventCategoriesList != nil { - ok := object.Key("EventCategoriesList") - if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.EventCategoriesList, ok); err != nil { - return err - } - } - - if v.EventSubscriptionArn != nil { - ok := object.Key("EventSubscriptionArn") - ok.String(*v.EventSubscriptionArn) - } - - if v.SnsTopicArn != nil { - ok := object.Key("SnsTopicArn") - ok.String(*v.SnsTopicArn) - } - - if v.SourceIdsList != nil { - ok := object.Key("SourceIdsList") - if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.SourceIdsList, ok); err != nil { - return err - } - } - - if v.SourceType != nil { - ok := object.Key("SourceType") - ok.String(*v.SourceType) - } - - if v.Status != nil { - ok := object.Key("Status") - ok.String(*v.Status) - } - - if v.SubscriptionCreationTime != nil { - ok := object.Key("SubscriptionCreationTime") - ok.String(*v.SubscriptionCreationTime) - } - - return nil -} - func awsRestjson1_serializeDocumentAwsRdsPendingCloudWatchLogsExports(v *types.AwsRdsPendingCloudWatchLogsExports, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -12940,11 +12408,6 @@ func awsRestjson1_serializeDocumentAwsSecurityFinding(v *types.AwsSecurityFindin ok.String(*v.AwsAccountId) } - if v.CompanyName != nil { - ok := object.Key("CompanyName") - ok.String(*v.CompanyName) - } - if v.Compliance != nil { ok := object.Key("Compliance") if err := awsRestjson1_serializeDocumentCompliance(v.Compliance, ok); err != nil { @@ -13053,21 +12516,11 @@ func awsRestjson1_serializeDocumentAwsSecurityFinding(v *types.AwsSecurityFindin } } - if v.ProductName != nil { - ok := object.Key("ProductName") - ok.String(*v.ProductName) - } - if len(v.RecordState) > 0 { ok := object.Key("RecordState") ok.String(string(v.RecordState)) } - if v.Region != nil { - ok := object.Key("Region") - ok.String(*v.Region) - } - if v.RelatedFindings != nil { ok := object.Key("RelatedFindings") if err := awsRestjson1_serializeDocumentRelatedFindingList(v.RelatedFindings, ok); err != nil { @@ -13504,13 +12957,6 @@ func awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v *types.AwsSecurit } } - if v.Region != nil { - ok := object.Key("Region") - if err := awsRestjson1_serializeDocumentStringFilterList(v.Region, ok); err != nil { - return err - } - } - if v.RelatedFindingsId != nil { ok := object.Key("RelatedFindingsId") if err := awsRestjson1_serializeDocumentStringFilterList(v.RelatedFindingsId, ok); err != nil { @@ -13595,13 +13041,6 @@ func awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v *types.AwsSecurit } } - if v.ResourceAwsIamAccessKeyPrincipalName != nil { - ok := object.Key("ResourceAwsIamAccessKeyPrincipalName") - if err := awsRestjson1_serializeDocumentStringFilterList(v.ResourceAwsIamAccessKeyPrincipalName, ok); err != nil { - return err - } - } - if v.ResourceAwsIamAccessKeyStatus != nil { ok := object.Key("ResourceAwsIamAccessKeyStatus") if err := awsRestjson1_serializeDocumentStringFilterList(v.ResourceAwsIamAccessKeyStatus, ok); err != nil { @@ -13616,13 +13055,6 @@ func awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v *types.AwsSecurit } } - if v.ResourceAwsIamUserUserName != nil { - ok := object.Key("ResourceAwsIamUserUserName") - if err := awsRestjson1_serializeDocumentStringFilterList(v.ResourceAwsIamUserUserName, ok); err != nil { - return err - } - } - if v.ResourceAwsS3BucketOwnerId != nil { ok := object.Key("ResourceAwsS3BucketOwnerId") if err := awsRestjson1_serializeDocumentStringFilterList(v.ResourceAwsS3BucketOwnerId, ok); err != nil { @@ -15860,13 +15292,6 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val } } - if v.AwsEcsService != nil { - ok := object.Key("AwsEcsService") - if err := awsRestjson1_serializeDocumentAwsEcsServiceDetails(v.AwsEcsService, ok); err != nil { - return err - } - } - if v.AwsEcsTaskDefinition != nil { ok := object.Key("AwsEcsTaskDefinition") if err := awsRestjson1_serializeDocumentAwsEcsTaskDefinitionDetails(v.AwsEcsTaskDefinition, ok); err != nil { @@ -15986,13 +15411,6 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val } } - if v.AwsRdsEventSubscription != nil { - ok := object.Key("AwsRdsEventSubscription") - if err := awsRestjson1_serializeDocumentAwsRdsEventSubscriptionDetails(v.AwsRdsEventSubscription, ok); err != nil { - return err - } - } - if v.AwsRedshiftCluster != nil { ok := object.Key("AwsRedshiftCluster") if err := awsRestjson1_serializeDocumentAwsRedshiftClusterDetails(v.AwsRedshiftCluster, ok); err != nil { diff --git a/service/securityhub/types/errors.go b/service/securityhub/types/errors.go index d4475020527..6637f52a87d 100644 --- a/service/securityhub/types/errors.go +++ b/service/securityhub/types/errors.go @@ -95,8 +95,8 @@ func (e *InvalidInputException) ErrorCode() string { return "Invalid func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to create resources beyond the -// current Amazon Web Services account or throttling limits. The error code -// describes the limit exceeded. +// current AWS account or throttling limits. The error code describes the limit +// exceeded. type LimitExceededException struct { Message *string diff --git a/service/securityhub/types/types.go b/service/securityhub/types/types.go index b26067026f4..02820bdb2cc 100644 --- a/service/securityhub/types/types.go +++ b/service/securityhub/types/types.go @@ -7,15 +7,15 @@ import ( "time" ) -// The details of an Amazon Web Services account. +// The details of an AWS account. type AccountDetails struct { - // The ID of an Amazon Web Services account. + // The ID of an AWS account. // // This member is required. AccountId *string - // The email of an Amazon Web Services account. + // The email of an AWS account. Email *string noSmithyDocumentSerde @@ -24,16 +24,15 @@ type AccountDetails struct { // Provides details about one of the following actions that affects or that was // taken on a resource: // -// * A remote IP address issued an Amazon Web Services API -// call +// * A remote IP address issued an AWS API call // -// * A DNS request was received +// * A DNS +// request was received // -// * A remote IP address attempted to connect -// to an EC2 instance -// -// * A remote IP address attempted a port probe on an EC2 +// * A remote IP address attempted to connect to an EC2 // instance +// +// * A remote IP address attempted a port probe on an EC2 instance type Action struct { // The type of action that was detected. The possible action types are: @@ -151,8 +150,7 @@ type ActionTarget struct { // management account. type AdminAccount struct { - // The Amazon Web Services account identifier of the Security Hub administrator - // account. + // The AWS account identifier of the Security Hub administrator account. AccountId *string // The current status of the Security Hub administrator account. Indicates whether @@ -204,7 +202,7 @@ type AwsApiCallAction struct { // address that the API call originated from. RemoteIpDetails *ActionRemoteIpDetails - // The name of the Amazon Web Services service that the API method belongs to. + // The name of the AWS service that the API method belongs to. ServiceName *string noSmithyDocumentSerde @@ -409,7 +407,7 @@ type AwsApiGatewayStageDetails struct { // The name of the stage. StageName *string - // Indicates whether active tracing with X-Ray is enabled for the stage. + // Indicates whether active tracing with AWS X-Ray is enabled for the stage. TracingEnabled bool // A map that defines the stage variables for the stage. Variable names can have @@ -588,7 +586,7 @@ type AwsAutoScalingAutoScalingGroupDetails struct { noSmithyDocumentSerde } -// Provides details about an Certificate Manager certificate. +// Provides details about an AWS Certificate Manager certificate. type AwsCertificateManagerCertificateDetails struct { // The ARN of the private certificate authority (CA) that will be used to issue the @@ -629,7 +627,7 @@ type AwsCertificateManagerCertificateDetails struct { // cannot contain spaces. For example, 2020-03-22T13:22:13.933Z. ImportedAt *string - // The list of ARNs for the Amazon Web Services resources that use the certificate. + // The list of ARNs for the AWS resources that use the certificate. InUseBy []string // Indicates when the certificate was issued. Provided if the certificate type is @@ -669,8 +667,8 @@ type AwsCertificateManagerCertificateDetails struct { // INELIGIBLE RenewalEligibility *string - // Information about the status of the Certificate Manager managed renewal for the - // certificate. Provided only when the certificate type is AMAZON_ISSUED. + // Information about the status of the AWS Certificate Manager managed renewal for + // the certificate. Provided only when the certificate type is AMAZON_ISSUED. RenewalSummary *AwsCertificateManagerCertificateRenewalSummary // The serial number of the certificate. @@ -694,7 +692,7 @@ type AwsCertificateManagerCertificateDetails struct { // that can be used to connect to the website. SubjectAlternativeNames []string - // The source of the certificate. For certificates that Certificate Manager + // The source of the certificate. For certificates that AWS Certificate Manager // provides, Type is AMAZON_ISSUED. For certificates that are imported with // ImportCertificate, Type is IMPORTED. Valid values: IMPORTED | AMAZON_ISSUED | // PRIVATE @@ -709,7 +707,7 @@ type AwsCertificateManagerCertificateDetails struct { // each domain name that occurs as a result of the RequestCertificate request // // * -// The validation of each domain name in the certificate, as it pertains to +// The validation of each domain name in the certificate, as it pertains to AWS // Certificate Manager managed renewal type AwsCertificateManagerCertificateDomainValidationOption struct { @@ -719,10 +717,11 @@ type AwsCertificateManagerCertificateDomainValidationOption struct { // The CNAME record that is added to the DNS database for domain validation. ResourceRecord *AwsCertificateManagerCertificateResourceRecord - // The domain name that Certificate Manager uses to send domain validation emails. + // The domain name that AWS Certificate Manager uses to send domain validation + // emails. ValidationDomain *string - // A list of email addresses that Certificate Manager uses to send domain + // A list of email addresses that AWS Certificate Manager uses to send domain // validation emails. ValidationEmails []string @@ -768,17 +767,17 @@ type AwsCertificateManagerCertificateOptions struct { noSmithyDocumentSerde } -// Contains information about the Certificate Manager managed renewal for an +// Contains information about the AWS Certificate Manager managed renewal for an // AMAZON_ISSUED certificate. type AwsCertificateManagerCertificateRenewalSummary struct { // Information about the validation of each domain name in the certificate, as it - // pertains to Certificate Manager managed renewal. Provided only when the + // pertains to AWS Certificate Manager managed renewal. Provided only when the // certificate type is AMAZON_ISSUED. DomainValidationOptions []AwsCertificateManagerCertificateDomainValidationOption - // The status of the Certificate Manager managed renewal of the certificate. Valid - // values: PENDING_AUTO_RENEWAL | PENDING_VALIDATION | SUCCESS | FAILED + // The status of the AWS Certificate Manager managed renewal of the certificate. + // Valid values: PENDING_AUTO_RENEWAL | PENDING_VALIDATION | SUCCESS | FAILED RenewalStatus *string // The reason that a renewal request was unsuccessful. Valid values: @@ -903,8 +902,8 @@ type AwsCloudFrontDistributionDetails struct { // Indicates the current status of the distribution. Status *string - // A unique identifier that specifies the WAF web ACL, if any, to associate with - // this distribution. + // A unique identifier that specifies the AWS WAF web ACL, if any, to associate + // with this distribution. WebAclId *string noSmithyDocumentSerde @@ -914,7 +913,7 @@ type AwsCloudFrontDistributionDetails struct { // distribution. type AwsCloudFrontDistributionLogging struct { - // The S3 bucket to store the access logs in. + // The Amazon S3 bucket to store the access logs in. Bucket *string // With this field, you can enable or disable the selected distribution. @@ -970,13 +969,13 @@ type AwsCloudFrontDistributionOriginGroups struct { noSmithyDocumentSerde } -// A complex type that describes the S3 bucket, HTTP server (for example, a web -// server), AWS Elemental MediaStore, or other server from which CloudFront gets -// your files. +// A complex type that describes the Amazon S3 bucket, HTTP server (for example, a +// web server), Amazon Elemental MediaStore, or other server from which CloudFront +// gets your files. type AwsCloudFrontDistributionOriginItem struct { - // Amazon S3 origins: The DNS name of the S3 bucket from which you want CloudFront - // to get objects for this origin. + // Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want + // CloudFront to get objects for this origin. DomainName *string // A unique identifier for the origin or origin group. @@ -1019,8 +1018,8 @@ type AwsCloudTrailTrailDetails struct { // The ARN of the log group that CloudTrail logs are delivered to. CloudWatchLogsLogGroupArn *string - // The ARN of the role that the CloudWatch Events endpoint assumes when it writes - // to the log group. + // The ARN of the role that the CloudWatch Logs endpoint assumes when it writes to + // the log group. CloudWatchLogsRoleArn *string // Indicates whether the trail has custom event selectors. @@ -1037,11 +1036,11 @@ type AwsCloudTrailTrailDetails struct { // Regions. IsMultiRegionTrail bool - // Whether the trail is created for all accounts in an organization in - // Organizations, or only for the current Amazon Web Services account. + // Whether the trail is created for all accounts in an organization in AWS + // Organizations, or only for the current AWS account. IsOrganizationTrail bool - // The KMS key ID to use to encrypt the logs. + // The AWS KMS key ID to use to encrypt the logs. KmsKeyId *string // Indicates whether CloudTrail log file validation is enabled. @@ -1069,12 +1068,12 @@ type AwsCloudTrailTrailDetails struct { noSmithyDocumentSerde } -// Information about an CodeBuild project. +// Information about an AWS CodeBuild project. type AwsCodeBuildProjectDetails struct { - // The KMS customer master key (CMK) used to encrypt the build output artifacts. - // You can specify either the ARN of the CMK or, if available, the CMK alias (using - // the format alias/alias-name). + // The AWS Key Management Service (AWS KMS) customer master key (CMK) used to + // encrypt the build output artifacts. You can specify either the ARN of the CMK + // or, if available, the CMK alias (using the format alias/alias-name). EncryptionKey *string // Information about the build environment for this build project. @@ -1083,14 +1082,14 @@ type AwsCodeBuildProjectDetails struct { // The name of the build project. Name *string - // The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon - // Web Services services on behalf of the Amazon Web Services account. + // The ARN of the IAM role that enables AWS CodeBuild to interact with dependent + // AWS services on behalf of the AWS account. ServiceRole *string // Information about the build input source code for this build project. Source *AwsCodeBuildProjectSource - // Information about the VPC configuration that CodeBuild accesses. + // Information about the VPC configuration that AWS CodeBuild accesses. VpcConfig *AwsCodeBuildProjectVpcConfig noSmithyDocumentSerde @@ -1102,19 +1101,19 @@ type AwsCodeBuildProjectEnvironment struct { // The certificate to use with this build project. Certificate *string - // The type of credentials CodeBuild uses to pull images in your build. Valid + // The type of credentials AWS CodeBuild uses to pull images in your build. Valid // values: // - // * CODEBUILD specifies that CodeBuild uses its own credentials. This - // requires that you modify your ECR repository policy to trust the CodeBuild + // * CODEBUILD specifies that AWS CodeBuild uses its own credentials. This + // requires that you modify your ECR repository policy to trust the AWS CodeBuild // service principal. // - // * SERVICE_ROLE specifies that CodeBuild uses your build + // * SERVICE_ROLE specifies that AWS CodeBuild uses your build // project's service role. // // When you use a cross-account or private registry image, - // you must use SERVICE_ROLE credentials. When you use an CodeBuild curated image, - // you must use CODEBUILD credentials. + // you must use SERVICE_ROLE credentials. When you use an AWS CodeBuild curated + // image, you must use CODEBUILD credentials. ImagePullCredentialsType *string // The credentials for access to a private registry. @@ -1143,13 +1142,13 @@ type AwsCodeBuildProjectEnvironment struct { // The credentials for access to a private registry. type AwsCodeBuildProjectEnvironmentRegistryCredential struct { - // The ARN or name of credentials created using Secrets Manager. The credential can - // use the name of the credentials only if they exist in your current Amazon Web - // Services Region. + // The ARN or name of credentials created using AWS Secrets Manager. The credential + // can use the name of the credentials only if they exist in your current AWS + // Region. Credential *string // The service that created the credentials to access a private Docker registry. - // The valid value, SECRETS_MANAGER, is for Secrets Manager. + // The valid value, SECRETS_MANAGER, is for AWS Secrets Manager. CredentialProvider *string noSmithyDocumentSerde @@ -1168,13 +1167,13 @@ type AwsCodeBuildProjectSource struct { // include: // // * For source code settings that are specified in the source action of - // a pipeline in CodePipeline, location should not be specified. If it is - // specified, CodePipeline ignores it. This is because CodePipeline uses the - // settings in a pipeline's source action instead of this value. + // a pipeline in AWS CodePipeline, location should not be specified. If it is + // specified, AWS CodePipeline ignores it. This is because AWS CodePipeline uses + // the settings in a pipeline's source action instead of this value. // - // * For source code - // in an CodeCommit repository, the HTTPS clone URL to the repository that contains - // the source code and the build spec file (for example, + // * For source + // code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that + // contains the source code and the build spec file (for example, // https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ). // // * For @@ -1202,10 +1201,10 @@ type AwsCodeBuildProjectSource struct { // * BITBUCKET - The source code is in a Bitbucket repository. // // * CODECOMMIT - // - The source code is in an CodeCommit repository. + // - The source code is in an AWS CodeCommit repository. // - // * CODEPIPELINE - The source - // code settings are specified in the source action of a pipeline in + // * CODEPIPELINE - The + // source code settings are specified in the source action of a pipeline in AWS // CodePipeline. // // * GITHUB - The source code is in a GitHub repository. @@ -1223,13 +1222,13 @@ type AwsCodeBuildProjectSource struct { noSmithyDocumentSerde } -// Information about the VPC configuration that CodeBuild accesses. +// Information about the VPC configuration that AWS CodeBuild accesses. type AwsCodeBuildProjectVpcConfig struct { - // A list of one or more security group IDs in your VPC. + // A list of one or more security group IDs in your Amazon VPC. SecurityGroupIds []string - // A list of one or more subnet IDs in your VPC. + // A list of one or more subnet IDs in your Amazon VPC. Subnets []string // The ID of the VPC. @@ -1482,8 +1481,8 @@ type AwsDynamoDbTableReplica struct { // List of global secondary indexes for the replica. GlobalSecondaryIndexes []AwsDynamoDbTableReplicaGlobalSecondaryIndex - // The identifier of the KMS customer master key (CMK) that will be used for KMS - // encryption for the replica. + // The identifier of the AWS KMS customer master key (CMK) that will be used for + // AWS KMS encryption for the replica. KmsMasterKeyId *string // Replica-specific configuration for the provisioned throughput. @@ -1544,7 +1543,7 @@ type AwsDynamoDbTableSseDescription struct { // spaces. For example, 2020-03-22T13:22:13.933Z. InaccessibleEncryptionDateTime *string - // The ARN of the KMS customer master key (CMK) that is used for the KMS + // The ARN of the AWS KMS customer master key (CMK) that is used for the AWS KMS // encryption. KmsMasterKeyArn *string @@ -1572,8 +1571,8 @@ type AwsDynamoDbTableStreamSpecification struct { // Information about an Elastic IP address. type AwsEc2EipDetails struct { - // The identifier that Amazon Web Services assigns to represent the allocation of - // the Elastic IP address for use with Amazon VPC. + // The identifier that AWS assigns to represent the allocation of the Elastic IP + // address for use with Amazon VPC. AllocationId *string // The identifier that represents the association of the Elastic IP address with an @@ -1593,7 +1592,7 @@ type AwsEc2EipDetails struct { // The identifier of the network interface. NetworkInterfaceId *string - // The Amazon Web Services account ID of the owner of the network interface. + // The AWS account ID of the owner of the network interface. NetworkInterfaceOwnerId *string // The private IP address that is associated with the Elastic IP address. @@ -1690,7 +1689,7 @@ type AwsEc2NetworkAclDetails struct { // The identifier of the network ACL. NetworkAclId *string - // The identifier of the Amazon Web Services account that owns the network ACL. + // The identifier of the AWS account that owns the network ACL. OwnerId *string // The identifier of the VPC for the network ACL. @@ -1755,7 +1754,7 @@ type AwsEc2NetworkInterfaceAttachment struct { // The ID of the instance. InstanceId *string - // The Amazon Web Services account ID of the owner of the instance. + // The AWS account ID of the owner of the instance. InstanceOwnerId *string // The attachment state. Valid values: attaching | attached | detaching | detached @@ -1844,7 +1843,7 @@ type AwsEc2SecurityGroupDetails struct { // [VPC only] The outbound rules associated with the security group. IpPermissionsEgress []AwsEc2SecurityGroupIpPermission - // The Amazon Web Services account ID of the owner of the security group. + // The AWS account ID of the owner of the security group. OwnerId *string // [VPC only] The ID of the VPC for the security group. @@ -1875,9 +1874,9 @@ type AwsEc2SecurityGroupIpPermission struct { // The IPv6 ranges. Ipv6Ranges []AwsEc2SecurityGroupIpv6Range - // [VPC only] The prefix list IDs for an Amazon Web Services service. With outbound - // rules, this is the Amazon Web Services service to access through a VPC endpoint - // from instances associated with the security group. + // [VPC only] The prefix list IDs for an AWS service. With outbound rules, this is + // the AWS service to access through a VPC endpoint from instances associated with + // the security group. PrefixListIds []AwsEc2SecurityGroupPrefixListId // The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. @@ -1885,7 +1884,7 @@ type AwsEc2SecurityGroupIpPermission struct { // types, you must specify all codes. ToPort int32 - // The security group and Amazon Web Services account ID pairs. + // The security group and AWS account ID pairs. UserIdGroupPairs []AwsEc2SecurityGroupUserIdGroupPair noSmithyDocumentSerde @@ -1934,11 +1933,11 @@ type AwsEc2SecurityGroupUserIdGroupPair struct { // The status of a VPC peering connection, if applicable. PeeringStatus *string - // The ID of an Amazon Web Services account. For a referenced security group in - // another VPC, the account ID of the referenced security group is returned in the - // response. If the referenced security group is deleted, this value is not - // returned. [EC2-Classic] Required when adding or removing rules that reference a - // security group in another VPC. + // The ID of an AWS account. For a referenced security group in another VPC, the + // account ID of the referenced security group is returned in the response. If the + // referenced security group is deleted, this value is not returned. [EC2-Classic] + // Required when adding or removing rules that reference a security group in + // another VPC. UserId *string // The ID of the VPC for the referenced security group, if applicable. @@ -1950,7 +1949,7 @@ type AwsEc2SecurityGroupUserIdGroupPair struct { noSmithyDocumentSerde } -// Contains information about a subnet in Amazon EC2. +// Contains information about a subnet in EC2. type AwsEc2SubnetDetails struct { // Whether to assign an IPV6 address to a network interface that is created in this @@ -1979,7 +1978,7 @@ type AwsEc2SubnetDetails struct { // Whether instances in this subnet receive a public IP address. MapPublicIpOnLaunch bool - // The identifier of the Amazon Web Services account that owns the subnet. + // The identifier of the AWS account that owns the subnet. OwnerId *string // The current state of the subnet. @@ -1997,7 +1996,7 @@ type AwsEc2SubnetDetails struct { noSmithyDocumentSerde } -// An attachment to an Amazon EC2 volume. +// An attachment to an AWS EC2 volume. type AwsEc2VolumeAttachment struct { // The datetime when the attachment initiated. @@ -2030,8 +2029,8 @@ type AwsEc2VolumeDetails struct { // Whether the volume is encrypted. Encrypted bool - // The ARN of the KMS customer master key (CMK) that was used to protect the volume - // encryption key for the volume. + // The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) + // that was used to protect the volume encryption key for the volume. KmsKeyId *string // The size of the volume, in GiBs. @@ -2164,297 +2163,6 @@ type AwsEcsClusterDetails struct { noSmithyDocumentSerde } -// Strategy item for the capacity provider strategy that the service uses. -type AwsEcsServiceCapacityProviderStrategyDetails struct { - - // The minimum number of tasks to run on the capacity provider. Only one strategy - // item can specify a value for Base. The value must be between 0 and 100000. - Base int32 - - // The short name of the capacity provider. - CapacityProvider *string - - // The relative percentage of the total number of tasks that should use the - // capacity provider. If no weight is specified, the default value is 0. At least - // one capacity provider must have a weight greater than 0. The value can be - // between 0 and 1000. - Weight int32 - - noSmithyDocumentSerde -} - -// Determines whether a service deployment fails if a service cannot reach a steady -// state. -type AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails struct { - - // Whether to enable the deployment circuit breaker logic for the service. - Enable bool - - // Whether to roll back the service if a service deployment fails. If rollback is - // enabled, when a service deployment fails, the service is rolled back to the last - // deployment that completed successfully. - Rollback bool - - noSmithyDocumentSerde -} - -// Optional deployment parameters for the service. -type AwsEcsServiceDeploymentConfigurationDetails struct { - - // Determines whether a service deployment fails if a service cannot reach a steady - // state. - DeploymentCircuitBreaker *AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails - - // For a service that uses the rolling update (ECS) deployment type, the maximum - // number of tasks in a service that are allowed in the RUNNING or PENDING state - // during a deployment, and for tasks that use the EC2 launch type, when any - // container instances are in the DRAINING state. Provided as a percentage of the - // desired number of tasks. The default value is 200%. For a service that uses the - // blue/green (CODE_DEPLOY) or EXTERNAL deployment types, and tasks that use the - // EC2 launch type, the maximum number of tasks in the service that remain in the - // RUNNING state while the container instances are in the DRAINING state. For the - // Fargate launch type, the maximum percent value is not used. - MaximumPercent int32 - - // For a service that uses the rolling update (ECS) deployment type, the minimum - // number of tasks in a service that must remain in the RUNNING state during a - // deployment, and while any container instances are in the DRAINING state if the - // service contains tasks using the EC2 launch type. Expressed as a percentage of - // the desired number of tasks. The default value is 100%. For a service that uses - // the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and tasks that use the - // EC2 launch type, the minimum number of the tasks in the service that remain in - // the RUNNING state while the container instances are in the DRAINING state. For - // the Fargate launch type, the minimum healthy percent value is not used. - MinimumHealthyPercent int32 - - noSmithyDocumentSerde -} - -// Information about the deployment controller type that the service uses. -type AwsEcsServiceDeploymentControllerDetails struct { - - // The rolling update (ECS) deployment type replaces the current running version of - // the container with the latest version. The blue/green (CODE_DEPLOY) deployment - // type uses the blue/green deployment model that is powered by CodeDeploy. This - // deployment model a new deployment of a service can be verified before production - // traffic is sent to it. The external (EXTERNAL) deployment type allows the use of - // any third-party deployment controller for full control over the deployment - // process for an Amazon ECS service. Valid values: ECS | CODE_DEPLOY | EXTERNAL - Type *string - - noSmithyDocumentSerde -} - -// Provides details about a service within an ECS cluster. -type AwsEcsServiceDetails struct { - - // The capacity provider strategy that the service uses. - CapacityProviderStrategy []AwsEcsServiceCapacityProviderStrategyDetails - - // The ARN of the cluster that hosts the service. - Cluster *string - - // Deployment parameters for the service. Includes the number of tasks that run and - // the order in which to start and stop tasks. - DeploymentConfiguration *AwsEcsServiceDeploymentConfigurationDetails - - // Contains the deployment controller type that the service uses. - DeploymentController *AwsEcsServiceDeploymentControllerDetails - - // The number of instantiations of the task definition to run on the service. - DesiredCount int32 - - // Whether to enable Amazon ECS managed tags for the tasks in the service. - EnableEcsManagedTags bool - - // Whether the execute command functionality is enabled for the service. - EnableExecuteCommand bool - - // After a task starts, the amount of time in seconds that the Amazon ECS service - // scheduler ignores unhealthy Elastic Load Balancing target health checks. - HealthCheckGracePeriodSeconds int32 - - // The launch type that the service uses. Valid values: EC2 | FARGATE | EXTERNAL - LaunchType *string - - // Information about the load balancers that the service uses. - LoadBalancers []AwsEcsServiceLoadBalancersDetails - - // The name of the service. - Name *string - - // For tasks that use the awsvpc networking mode, the VPC subnet and security group - // configuration. - NetworkConfiguration *AwsEcsServiceNetworkConfigurationDetails - - // The placement constraints for the tasks in the service. - PlacementConstraints []AwsEcsServicePlacementConstraintsDetails - - // Information about how tasks for the service are placed. - PlacementStrategies []AwsEcsServicePlacementStrategiesDetails - - // The platform version on which to run the service. Only specified for tasks that - // are hosted on Fargate. If a platform version is not specified, the LATEST - // platform version is used by default. - PlatformVersion *string - - // Indicates whether to propagate the tags from the task definition to the task or - // from the service to the task. If no value is provided, then tags are not - // propagated. Valid values: TASK_DEFINITION | SERVICE - PropagateTags *string - - // The ARN of the IAM role that is associated with the service. The role allows the - // Amazon ECS container agent to register container instances with an Elastic Load - // Balancing load balancer. - Role *string - - // The scheduling strategy to use for the service. The REPLICA scheduling strategy - // places and maintains the desired number of tasks across the cluster. By default, - // the service scheduler spreads tasks across Availability Zones. Task placement - // strategies and constraints are used to customize task placement decisions. The - // DAEMON scheduling strategy deploys exactly one task on each active container - // instance that meets all of the task placement constraints that are specified in - // the cluster. The service scheduler also evaluates the task placement constraints - // for running tasks and stops tasks that do not meet the placement constraints. - // Valid values: REPLICA | DAEMON - SchedulingStrategy *string - - // The ARN of the service. - ServiceArn *string - - // The name of the service. The name can contain up to 255 characters. It can use - // letters, numbers, underscores, and hyphens. - ServiceName *string - - // Information about the service discovery registries to assign to the service. - ServiceRegistries []AwsEcsServiceServiceRegistriesDetails - - // The task definition to use for tasks in the service. - TaskDefinition *string - - noSmithyDocumentSerde -} - -// Information about a load balancer that the service uses. -type AwsEcsServiceLoadBalancersDetails struct { - - // The name of the container to associate with the load balancer. - ContainerName *string - - // The port on the container to associate with the load balancer. This port must - // correspond to a containerPort in the task definition the tasks in the service - // are using. For tasks that use the EC2 launch type, the container instance they - // are launched on must allow ingress traffic on the hostPort of the port mapping. - ContainerPort int32 - - // The name of the load balancer to associate with the Amazon ECS service or task - // set. Only specified when using a Classic Load Balancer. For an Application Load - // Balancer or a Network Load Balancer, the load balancer name is omitted. - LoadBalancerName *string - - // The ARN of the Elastic Load Balancing target group or groups associated with a - // service or task set. Only specified when using an Application Load Balancer or a - // Network Load Balancer. For a Classic Load Balancer, the target group ARN is - // omitted. - TargetGroupArn *string - - noSmithyDocumentSerde -} - -// For tasks that use the awsvpc networking mode, the VPC subnet and security group -// configuration. -type AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails struct { - - // Whether the task's elastic network interface receives a public IP address. The - // default value is DISABLED. Valid values: ENABLED | DISABLED - AssignPublicIp *string - - // The IDs of the security groups associated with the task or service. You can - // provide up to five security groups. - SecurityGroups []string - - // The IDs of the subnets associated with the task or service. You can provide up - // to 16 subnets. - Subnets []string - - noSmithyDocumentSerde -} - -// For tasks that use the awsvpc networking mode, the VPC subnet and security group -// configuration. -type AwsEcsServiceNetworkConfigurationDetails struct { - - // The VPC subnet and security group configuration. - AwsVpcConfiguration *AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails - - noSmithyDocumentSerde -} - -// A placement constraint for the tasks in the service. -type AwsEcsServicePlacementConstraintsDetails struct { - - // A cluster query language expression to apply to the constraint. You cannot - // specify an expression if the constraint type is distinctInstance. - Expression *string - - // The type of constraint. Use distinctInstance to run each task in a particular - // group on a different container instance. Use memberOf to restrict the selection - // to a group of valid candidates. Valid values: distinctInstance | memberOf - Type *string - - noSmithyDocumentSerde -} - -// A placement strategy that determines how to place the tasks for the service. -type AwsEcsServicePlacementStrategiesDetails struct { - - // The field to apply the placement strategy against. For the spread placement - // strategy, valid values are instanceId (or host, which has the same effect), or - // any platform or custom attribute that is applied to a container instance, such - // as attribute:ecs.availability-zone. For the binpack placement strategy, valid - // values are cpu and memory. For the random placement strategy, this attribute is - // not used. - Field *string - - // The type of placement strategy. The random placement strategy randomly places - // tasks on available candidates. The spread placement strategy spreads placement - // across available candidates evenly based on the value of Field. The binpack - // strategy places tasks on available candidates that have the least available - // amount of the resource that is specified in Field. Valid values: random | spread - // | binpack - Type *string - - noSmithyDocumentSerde -} - -// Information about a service discovery registry to assign to the service. -type AwsEcsServiceServiceRegistriesDetails struct { - - // The container name value to use for the service discovery service. If the task - // definition uses the bridge or host network mode, you must specify ContainerName - // and ContainerPort. If the task definition uses the awsvpc network mode and a - // type SRV DNS record, you must specify either ContainerName and ContainerPort, or - // Port , but not both. - ContainerName *string - - // The port value to use for the service discovery service. If the task definition - // uses the bridge or host network mode, you must specify ContainerName and - // ContainerPort. If the task definition uses the awsvpc network mode and a type - // SRV DNS record, you must specify either ContainerName and ContainerPort, or Port - // , but not both. - ContainerPort int32 - - // The port value to use for a service discovery service that specifies an SRV - // record. This field can be used if both the awsvpcawsvpc network mode and SRV - // records are used. - Port int32 - - // The ARN of the service registry. - RegistryArn *string - - noSmithyDocumentSerde -} - // A dependency that is defined for container startup and shutdown. type AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails struct { @@ -2965,7 +2673,7 @@ type AwsEcsTaskDefinitionDetails struct { RequiresCompatibilities []string // The short name or ARN of the IAM role that grants containers in the task - // permission to call Amazon Web Services API operations on your behalf. + // permission to call AWS API operations on your behalf. TaskRoleArn *string // The data volume definitions for the task. @@ -3218,28 +2926,24 @@ type AwsElasticBeanstalkEnvironmentTier struct { noSmithyDocumentSerde } -// Information about an Amazon Elasticsearch Service domain. +// Information about an Elasticsearch domain. type AwsElasticsearchDomainDetails struct { - // IAM policy document specifying the access policies for the new Elasticsearch - // domain. + // IAM policy document specifying the access policies for the new Amazon ES domain. AccessPolicies *string // Additional options for the domain endpoint. DomainEndpointOptions *AwsElasticsearchDomainDomainEndpointOptions - // Unique identifier for an Elasticsearch domain. + // Unique identifier for an Amazon ES domain. DomainId *string - // Name of an Elasticsearch domain. Domain names are unique across all domains - // owned by the same account within an Amazon Web Services Region. Domain names - // must start with a lowercase letter and must be between 3 and 28 characters. - // Valid characters are a-z (lowercase only), 0-9, and – (hyphen). + // Name of an Amazon ES domain. Domain names are unique across all domains owned by + // the same account within an AWS Region. Domain names must start with a lowercase + // letter and must be between 3 and 28 characters. Valid characters are a-z + // (lowercase only), 0-9, and – (hyphen). DomainName *string - // Information about an Elasticsearch cluster configuration. - ElasticsearchClusterConfig *AwsElasticsearchDomainElasticsearchClusterConfigDetails - // Elasticsearch version. ElasticsearchVersion *string @@ -3247,10 +2951,10 @@ type AwsElasticsearchDomainDetails struct { EncryptionAtRestOptions *AwsElasticsearchDomainEncryptionAtRestOptions // Domain-specific endpoint used to submit index, search, and data upload requests - // to an Elasticsearch domain. The endpoint is a service URL. + // to an Amazon ES domain. The endpoint is a service URL. Endpoint *string - // The key-value pair that exists if the Elasticsearch domain uses VPC endpoints. + // The key-value pair that exists if the Amazon ES domain uses VPC endpoints. Endpoints map[string]string // Configures the CloudWatch Logs to publish for the Elasticsearch domain. @@ -3263,7 +2967,7 @@ type AwsElasticsearchDomainDetails struct { // software. ServiceSoftwareOptions *AwsElasticsearchDomainServiceSoftwareOptions - // Information that Elasticsearch derives based on VPCOptions for the domain. + // Information that Amazon ES derives based on VPCOptions for the domain. VPCOptions *AwsElasticsearchDomainVPCOptions noSmithyDocumentSerde @@ -3288,52 +2992,6 @@ type AwsElasticsearchDomainDomainEndpointOptions struct { noSmithyDocumentSerde } -// details about the configuration of an Elasticsearch cluster. -type AwsElasticsearchDomainElasticsearchClusterConfigDetails struct { - - // The number of instances to use for the master node. If this attribute is - // specified, then DedicatedMasterEnabled must be true. - DedicatedMasterCount int32 - - // Whether to use a dedicated master node for the Elasticsearch domain. A dedicated - // master node performs cluster management tasks, but doesn't hold data or respond - // to data upload requests. - DedicatedMasterEnabled bool - - // The hardware configuration of the computer that hosts the dedicated master node. - // For example, m3.medium.elasticsearch. If this attribute is specified, then - // DedicatedMasterEnabled must be true. - DedicatedMasterType *string - - // The number of data nodes to use in the Elasticsearch domain. - InstanceCount int32 - - // The instance type for your data nodes. For example, m3.medium.elasticsearch. - InstanceType *string - - // Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is - // true. - ZoneAwarenessConfig *AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails - - // Whether to enable zone awareness for the Elasticsearch domain. When zone - // awareness is enabled, Elasticsearch allocates the cluster's nodes and replica - // index shards across Availability Zones in the same Region. This prevents data - // loss and minimizes downtime if a node or data center fails. - ZoneAwarenessEnabled bool - - noSmithyDocumentSerde -} - -// Configuration options for zone awareness. -type AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails struct { - - // he number of Availability Zones that the domain uses. Valid values are 2 and 3. - // The default is 2. - AvailabilityZoneCount int32 - - noSmithyDocumentSerde -} - // Details about the configuration for encryption at rest. type AwsElasticsearchDomainEncryptionAtRestOptions struct { @@ -3349,9 +3007,6 @@ type AwsElasticsearchDomainEncryptionAtRestOptions struct { // configures the CloudWatch Logs to publish for the Elasticsearch domain. type AwsElasticsearchDomainLogPublishingOptions struct { - // The log configuration. - AuditLogs *AwsElasticsearchDomainLogPublishingOptionsLogConfig - // Configures the Elasticsearch index logs publishing. IndexSlowLogs *AwsElasticsearchDomainLogPublishingOptionsLogConfig @@ -3412,7 +3067,7 @@ type AwsElasticsearchDomainServiceSoftwareOptions struct { noSmithyDocumentSerde } -// Information that Elasticsearch derives based on VPCOptions for the domain. +// Information that Amazon ES derives based on VPCOptions for the domain. type AwsElasticsearchDomainVPCOptions struct { // The list of Availability Zones associated with the VPC subnets. @@ -3769,7 +3424,7 @@ type AwsIamAccessKeyDetails struct { // The identifier of the access key. AccessKeyId *string - // The Amazon Web Services account ID of the account for the key. + // The AWS account ID of the account for the key. AccountId *string // Indicates when the IAM access key was created. Uses the date-time format @@ -3833,7 +3488,7 @@ type AwsIamAccessKeySessionContextAttributes struct { // Information about the entity that created the session. type AwsIamAccessKeySessionContextSessionIssuer struct { - // The identifier of the Amazon Web Services account that created the session. + // The identifier of the AWS account that created the session. AccountId *string // The ARN of the session. @@ -4126,8 +3781,7 @@ type AwsIamUserPolicy struct { // Contains metadata about a customer master key (CMK). type AwsKmsKeyDetails struct { - // The twelve-digit account ID of the Amazon Web Services account that owns the - // CMK. + // The twelve-digit account ID of the AWS account that owns the CMK. AWSAccountId *string // Indicates when the CMK was created. Uses the date-time format specified in RFC @@ -4142,18 +3796,18 @@ type AwsKmsKeyDetails struct { // The globally unique identifier for the CMK. KeyId *string - // The manager of the CMK. CMKs in your Amazon Web Services account are either - // customer managed or Amazon Web Services managed. + // The manager of the CMK. CMKs in your AWS account are either customer managed or + // AWS managed. KeyManager *string // The state of the CMK. KeyState *string - // The source of the CMK's key material. When this value is AWS_KMS, KMS created - // the key material. When this value is EXTERNAL, the key material was imported - // from your existing key management infrastructure or the CMK lacks key material. - // When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM - // cluster associated with a custom key store. + // The source of the CMK's key material. When this value is AWS_KMS, AWS KMS + // created the key material. When this value is EXTERNAL, the key material was + // imported from your existing key management infrastructure or the CMK lacks key + // material. When this value is AWS_CLOUDHSM, the key material was created in the + // AWS CloudHSM cluster associated with a custom key store. Origin *string noSmithyDocumentSerde @@ -4163,8 +3817,8 @@ type AwsKmsKeyDetails struct { // or upload a deployment package directly. type AwsLambdaFunctionCode struct { - // An Amazon S3 bucket in the same Amazon Web Services Region as your function. The - // bucket can be in a different Amazon Web Services account. + // An Amazon S3 bucket in the same AWS Region as your function. The bucket can be + // in a different AWS account. S3Bucket *string // The Amazon S3 key of the deployment package. @@ -4173,8 +3827,8 @@ type AwsLambdaFunctionCode struct { // For versioned objects, the version of the deployment package object to use. S3ObjectVersion *string - // The base64-encoded contents of the deployment package. Amazon Web Services SDK - // and Amazon Web Services CLI clients handle the encoding for you. + // The base64-encoded contents of the deployment package. AWS SDK and AWS CLI + // clients handle the encoding for you. ZipFile *string noSmithyDocumentSerde @@ -4183,7 +3837,7 @@ type AwsLambdaFunctionCode struct { // The dead-letter queue for failed asynchronous invocations. type AwsLambdaFunctionDeadLetterConfig struct { - // The ARN of an SQS queue or SNS topic. + // The ARN of an Amazon SQS queue or Amazon SNS topic. TargetArn *string noSmithyDocumentSerde @@ -4210,7 +3864,7 @@ type AwsLambdaFunctionDetails struct { // The function that Lambda calls to begin executing your function. Handler *string - // The KMS key that is used to encrypt the function's environment variables. This + // The KMS key that's used to encrypt the function's environment variables. This // key is only returned if you've configured a customer managed CMK. KmsKeyArn *string @@ -4241,7 +3895,7 @@ type AwsLambdaFunctionDetails struct { // The amount of time that Lambda allows a function to run before stopping it. Timeout int32 - // The function's X-Ray tracing configuration. + // The function's AWS X-Ray tracing configuration. TracingConfig *AwsLambdaFunctionTracingConfig // The version of the Lambda function. @@ -4277,7 +3931,7 @@ type AwsLambdaFunctionEnvironmentError struct { noSmithyDocumentSerde } -// An Lambda layer. +// An AWS Lambda layer. type AwsLambdaFunctionLayer struct { // The ARN of the function layer. @@ -4289,7 +3943,7 @@ type AwsLambdaFunctionLayer struct { noSmithyDocumentSerde } -// The function's X-Ray tracing configuration. +// The function's AWS X-Ray tracing configuration. type AwsLambdaFunctionTracingConfig struct { // The tracing mode. @@ -4374,8 +4028,8 @@ type AwsRdsDbClusterDetails struct { // Whether tags are copied from the DB cluster to snapshots of the DB cluster. CopyTagsToSnapshot bool - // Whether the DB cluster is a clone of a DB cluster owned by a different Amazon - // Web Services account. + // Whether the DB cluster is a clone of a DB cluster owned by a different AWS + // account. CrossAccountClone bool // A list of custom endpoints for the DB cluster. @@ -4397,8 +4051,8 @@ type AwsRdsDbClusterDetails struct { // The name of the DB cluster parameter group for the DB cluster. DbClusterParameterGroup *string - // The identifier of the DB cluster. The identifier must be unique within each - // Amazon Web Services Region and is immutable. + // The identifier of the DB cluster. The identifier must be unique within each AWS + // Region and is immutable. DbClusterResourceId *string // The subnet group that is associated with the DB cluster, including the name, @@ -4438,8 +4092,8 @@ type AwsRdsDbClusterDetails struct { // Whether the mapping of IAM accounts to database accounts is enabled. IamDatabaseAuthenticationEnabled bool - // The ARN of the KMS master key that is used to encrypt the database instances in - // the DB cluster. + // The ARN of the AWS KMS master key that is used to encrypt the database instances + // in the DB cluster. KmsKeyId *string // The name of the master user for the DB cluster. @@ -4539,8 +4193,8 @@ type AwsRdsDbClusterSnapshotDetails struct { // Whether mapping of IAM accounts to database accounts is enabled. IamDatabaseAuthenticationEnabled bool - // The ARN of the KMS master key that is used to encrypt the database instances in - // the DB cluster. + // The ARN of the AWS KMS master key that is used to encrypt the database instances + // in the DB cluster. KmsKeyId *string // The license model information for this DB cluster snapshot. @@ -4595,10 +4249,11 @@ type AwsRdsDbDomainMembership struct { noSmithyDocumentSerde } -// An IAM role associated with the DB instance. +// An AWS Identity and Access Management (IAM) role associated with the DB +// instance. type AwsRdsDbInstanceAssociatedRole struct { - // The name of the feature associated with the IAM role. + // The name of the feature associated with the IAM)role. FeatureName *string // The ARN of the IAM role that is associated with the DB instance. @@ -4608,15 +4263,15 @@ type AwsRdsDbInstanceAssociatedRole struct { // The Status property returns one of the following values: // // * ACTIVE - The IAM - // role ARN is associated with the DB instance and can be used to access other - // Amazon Web Services services on your behalf. + // role ARN is associated with the DB instance and can be used to access other AWS + // services on your behalf. // - // * PENDING - The IAM role ARN is - // being associated with the DB instance. + // * PENDING - The IAM role ARN is being associated with + // the DB instance. // - // * INVALID - The IAM role ARN is - // associated with the DB instance. But the DB instance is unable to assume the IAM - // role in order to access other Amazon Web Services services on your behalf. + // * INVALID - The IAM role ARN is associated with the DB + // instance. But the DB instance is unable to assume the IAM role in order to + // access other AWS services on your behalf. Status *string noSmithyDocumentSerde @@ -4628,7 +4283,8 @@ type AwsRdsDbInstanceDetails struct { // The amount of storage (in gigabytes) to initially allocate for the DB instance. AllocatedStorage int32 - // The IAM roles associated with the DB instance. + // The AWS Identity and Access Management (IAM) roles associated with the DB + // instance. AssociatedRoles []AwsRdsDbInstanceAssociatedRole // Indicates whether minor version patches are applied automatically. @@ -4684,9 +4340,9 @@ type AwsRdsDbInstanceDetails struct { // Information about the subnet group that is associated with the DB instance. DbSubnetGroup *AwsRdsDbSubnetGroup - // The Amazon Web Services Region-unique, immutable identifier for the DB instance. - // This identifier is found in CloudTrail log entries whenever the KMS key for the - // DB instance is accessed. + // The AWS Region-unique, immutable identifier for the DB instance. This identifier + // is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB + // instance is accessed. DbiResourceId *string // Indicates whether the DB instance has deletion protection enabled. When deletion @@ -4713,16 +4369,17 @@ type AwsRdsDbInstanceDetails struct { // metrics data for the DB instance. EnhancedMonitoringResourceArn *string - // True if mapping of IAM accounts to database accounts is enabled, and otherwise - // false. IAM database authentication can be enabled for the following database - // engines. + // True if mapping of AWS Identity and Access Management (IAM) accounts to database + // accounts is enabled, and otherwise false. IAM database authentication can be + // enabled for the following database engines. // - // * For MySQL 5.6, minor version 5.6.34 or higher + // * For MySQL 5.6, minor version + // 5.6.34 or higher // - // * For MySQL 5.7, - // minor version 5.7.16 or higher + // * For MySQL 5.7, minor version 5.7.16 or higher // - // * Aurora 5.6 or higher + // * Aurora 5.6 + // or higher IAMDatabaseAuthenticationEnabled bool // Indicates when the DB instance was created. Uses the date-time format specified @@ -4734,7 +4391,7 @@ type AwsRdsDbInstanceDetails struct { // Specifies the provisioned IOPS (I/O operations per second) for this DB instance. Iops int32 - // If StorageEncrypted is true, the KMS key identifier for the encrypted DB + // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted DB // instance. KmsKeyId *string @@ -4777,7 +4434,7 @@ type AwsRdsDbInstanceDetails struct { // Indicates whether Performance Insights is enabled for the DB instance. PerformanceInsightsEnabled bool - // The identifier of the KMS key used to encrypt the Performance Insights data. + // The identifier of the AWS KMS key used to encrypt the Performance Insights data. PerformanceInsightsKmsKeyId *string // The number of days to retain Performance Insights data. @@ -4999,7 +4656,7 @@ type AwsRdsDbSnapshotDetails struct { // time of the snapshot. Iops int32 - // If Encrypted is true, the KMS key identifier for the encrypted DB snapshot. + // If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot. KmsKeyId *string // License model information for the restored DB instance. @@ -5030,8 +4687,7 @@ type AwsRdsDbSnapshotDetails struct { // The DB snapshot ARN that the DB snapshot was copied from. SourceDbSnapshotIdentifier *string - // The Amazon Web Services Region that the DB snapshot was created in or copied - // from. + // The AWS Region that the DB snapshot was created in or copied from. SourceRegion *string // The status of this DB snapshot. @@ -5119,48 +4775,6 @@ type AwsRdsDbSubnetGroupSubnetAvailabilityZone struct { noSmithyDocumentSerde } -// Details about an Amazon RDS event notification subscription. The subscription -// allows Amazon RDS to post events to an SNS topic. -type AwsRdsEventSubscriptionDetails struct { - - // The identifier of the account that is associated with the event notification - // subscription. - CustSubscriptionId *string - - // The identifier of the event notification subscription. - CustomerAwsId *string - - // Whether the event notification subscription is enabled. - Enabled bool - - // The list of event categories for the event notification subscription. - EventCategoriesList []string - - // The ARN of the event notification subscription. - EventSubscriptionArn *string - - // The ARN of the SNS topic to post the event notifications to. - SnsTopicArn *string - - // A list of source identifiers for the event notification subscription. - SourceIdsList []string - - // The source type for the event notification subscription. - SourceType *string - - // The status of the event notification subscription. Valid values: creating | - // modifying | deleting | active | no-permission | topic-not-exist - Status *string - - // The datetime when the event notification subscription was created. Uses the - // date-time format specified in RFC 3339 section 5.6, Internet Date/Time Format - // (https://tools.ietf.org/html/rfc3339#section-5.6). The value cannot contain - // spaces. For example, 2020-03-22T13:22:13.933Z. - SubscriptionCreationTime *string - - noSmithyDocumentSerde -} - // Identifies the log types to enable and disable. type AwsRdsPendingCloudWatchLogsExports struct { @@ -5392,11 +5006,10 @@ type AwsRedshiftClusterDetails struct { // modify cluster command. HsmStatus *AwsRedshiftClusterHsmStatus - // A list of IAM roles that the cluster can use to access other Amazon Web Services - // services. + // A list of IAM roles that the cluster can use to access other AWS services. IamRoles []AwsRedshiftClusterIamRole - // The identifier of the KMS encryption key that is used to encrypt data in the + // The identifier of the AWS KMS encryption key that is used to encrypt data in the // cluster. KmsKeyId *string @@ -5508,8 +5121,7 @@ type AwsRedshiftClusterHsmStatus struct { noSmithyDocumentSerde } -// An IAM role that the cluster can use to access other Amazon Web Services -// services. +// An IAM role that the cluster can use to access other AWS services. type AwsRedshiftClusterIamRole struct { // The status of the IAM role's association with the cluster. Valid values: in-sync @@ -5638,8 +5250,8 @@ type AwsS3AccountPublicAccessBlockDetails struct { IgnorePublicAcls bool // Indicates whether to restrict access to an access point or S3 bucket that has a - // public policy to only Amazon Web Services service principals and authorized - // users within the S3 bucket owner's account. + // public policy to only AWS service principals and authorized users within the S3 + // bucket owner's account. RestrictPublicBuckets bool noSmithyDocumentSerde @@ -5846,7 +5458,7 @@ type AwsS3BucketDetails struct { // bucket. type AwsS3BucketServerSideEncryptionByDefault struct { - // KMS customer master key (CMK) ID to use for the default encryption. + // AWS KMS customer master key (CMK) ID to use for the default encryption. KMSMasterKeyID *string // Server-side encryption algorithm to use for the default encryption. @@ -5891,8 +5503,8 @@ type AwsS3ObjectDetails struct { // spaces. For example, 2020-03-22T13:22:13.933Z. LastModified *string - // The identifier of the KMS symmetric customer managed customer master key (CMK) - // that was used for the object. + // The identifier of the AWS Key Management Service (AWS KMS) symmetric customer + // managed customer master key (CMK) that was used for the object. SSEKMSKeyId *string // If the object is stored using server-side encryption, the value of the @@ -5905,7 +5517,7 @@ type AwsS3ObjectDetails struct { noSmithyDocumentSerde } -// Details about an Secrets Manager secret. +// Details about an AWS Secrets Manager secret. type AwsSecretsManagerSecretDetails struct { // Whether the secret is deleted. @@ -5914,8 +5526,8 @@ type AwsSecretsManagerSecretDetails struct { // The user-provided description of the secret. Description *string - // The ARN, Key ID, or alias of the KMS customer master key (CMK) used to encrypt - // the SecretString or SecretBinary values for versions of this secret. + // The ARN, Key ID, or alias of the AWS KMS customer master key (CMK) used to + // encrypt the SecretString or SecretBinary values for versions of this secret. KmsKeyId *string // The name of the secret. @@ -5946,14 +5558,14 @@ type AwsSecretsManagerSecretRotationRules struct { } // Provides consistent format for the contents of the Security Hub-aggregated -// findings. AwsSecurityFinding format enables you to share findings between Amazon -// Web Services security services and third-party solutions, and security standards -// checks. A finding is a potential security issue generated either by Amazon Web -// Services services or by the integrated third-party solutions and standards -// checks. +// findings. AwsSecurityFinding format enables you to share findings between AWS +// security services and third-party solutions, and security standards checks. A +// finding is a potential security issue generated either by AWS services (Amazon +// GuardDuty, Amazon Inspector, and Amazon Macie) or by the integrated third-party +// solutions and standards checks. type AwsSecurityFinding struct { - // The Amazon Web Services account ID that a finding is generated in. + // The AWS account ID that a finding is generated in. // // This member is required. AwsAccountId *string @@ -6018,20 +5630,9 @@ type AwsSecurityFinding struct { // Provides details about an action that affects or that was taken on a resource. Action *Action - // The name of the company for the product that generated the finding. Security Hub - // populates this attribute automatically for each finding. You cannot be updated - // using BatchImportFindings or BatchUpdateFindings. The exception to this is when - // you use a custom integration. When you use the Security Hub console to filter - // findings by company name, you use this attribute. When you use the Security Hub - // API to filter findings by company name, you use the aws/securityhub/CompanyName - // attribute under ProductFields. Security Hub does not synchronize those two - // attributes. - CompanyName *string - // This data type is exclusive to findings that are generated as the result of a // check run against a specific rule in a supported security standard, such as CIS - // Amazon Web Services Foundations. Contains security standard-related finding - // details. + // AWS Foundations. Contains security standard-related finding details. Compliance *Compliance // A finding's confidence. Confidence is defined as the likelihood that a finding @@ -6086,29 +5687,12 @@ type AwsSecurityFinding struct { // A data type where security-findings providers can include additional // solution-specific details that aren't part of the defined AwsSecurityFinding - // format. Can contain up to 50 key-value pairs. For each key-value pair, the key - // can contain up to 128 characters, and the value can contain up to 2048 - // characters. + // format. ProductFields map[string]string - // The name of the product that generated the finding. Security Hub populates this - // attribute automatically for each finding. You cannot update it using - // BatchImportFindings or BatchUpdateFindings. The exception to this is when you - // use a custom integration. When you use the Security Hub console to filter - // findings by product name, you use this attribute. When you use the Security Hub - // API to filter findings by product name, you use the aws/securityhub/ProductyName - // attribute under ProductFields. Security Hub does not synchronize those two - // attributes. - ProductName *string - // The record state of a finding. RecordState RecordState - // The Region from which the finding was generated. Security Hub populates this - // attribute automatically for each finding. You cannot update it using - // BatchImportFindings or BatchUpdateFindings. - Region *string - // A list of related findings. RelatedFindings []RelatedFinding @@ -6158,18 +5742,16 @@ type AwsSecurityFinding struct { // each attribute, you can provide up to 20 filter values. type AwsSecurityFindingFilters struct { - // The Amazon Web Services account ID that a finding is generated in. + // The AWS account ID that a finding is generated in. AwsAccountId []StringFilter // The name of the findings provider (company) that owns the solution (product) - // that generates findings. Note that this is a filter against the - // aws/securityhub/CompanyName field in ProductFields. It is not a filter for the - // top-level CompanyName field. + // that generates findings. CompanyName []StringFilter // Exclusive to findings that are generated as the result of a check run against a - // specific rule in a supported standard, such as CIS Amazon Web Services - // Foundations. Contains security standard-related finding details. + // specific rule in a supported standard, such as CIS AWS Foundations. Contains + // security standard-related finding details. ComplianceStatus []StringFilter // A finding's confidence. Confidence is defined as the likelihood that a finding @@ -6328,9 +5910,7 @@ type AwsSecurityFindingFilters struct { // format. ProductFields []MapFilter - // The name of the solution (product) that generates findings. Note that this is a - // filter against the aws/securityhub/ProductName field in ProductFields. It is not - // a filter for the top-level ProductName field. + // The name of the solution (product) that generates findings. ProductName []StringFilter // The recommendation of what to do about the issue described in a finding. @@ -6339,9 +5919,6 @@ type AwsSecurityFindingFilters struct { // The updated record state for the finding. RecordState []StringFilter - // The Region from which the finding was generated. - Region []StringFilter - // The solution-generated identifier for a related finding. RelatedFindingsId []StringFilter @@ -6378,21 +5955,12 @@ type AwsSecurityFindingFilters struct { // The creation date/time of the IAM access key related to a finding. ResourceAwsIamAccessKeyCreatedAt []DateFilter - // The name of the principal that is associated with an IAM access key. - ResourceAwsIamAccessKeyPrincipalName []StringFilter - // The status of the IAM access key related to a finding. ResourceAwsIamAccessKeyStatus []StringFilter // The user associated with the IAM access key related to a finding. - // - // Deprecated: This filter is deprecated. Instead, use - // ResourceAwsIamAccessKeyPrincipalName. ResourceAwsIamAccessKeyUserName []StringFilter - // The name of an IAM user. - ResourceAwsIamUserUserName []StringFilter - // The canonical user ID of the owner of the S3 bucket. ResourceAwsS3BucketOwnerId []StringFilter @@ -6418,15 +5986,14 @@ type AwsSecurityFindingFilters struct { // The canonical identifier for the given resource type. ResourceId []StringFilter - // The canonical Amazon Web Services partition name that the Region is assigned to. + // The canonical AWS partition name that the Region is assigned to. ResourcePartition []StringFilter - // The canonical Amazon Web Services external Region name where this resource is - // located. + // The canonical AWS external Region name where this resource is located. ResourceRegion []StringFilter - // A list of Amazon Web Services tags associated with a resource at the time the - // finding was processed. + // A list of AWS tags associated with a resource at the time the finding was + // processed. ResourceTags []MapFilter // Specifies the type of the resource that details are provided for. @@ -6437,15 +6004,15 @@ type AwsSecurityFindingFilters struct { // The normalized severity of a finding. // - // Deprecated: This filter is deprecated. Instead, use SeverityLabel or - // FindingProviderFieldsSeverityLabel. + // Deprecated: This filter is deprecated, use SeverityLabel or + // FindingProviderFieldsSeverityLabel instead. SeverityNormalized []NumberFilter // The native severity as defined by the security-findings provider's solution that // generated the finding. // - // Deprecated: This filter is deprecated. Instead, use - // FindingProviderSeverityOriginal. + // Deprecated: This filter is deprecated, use FindingProviiltersSeverityOriginal + // instead. SeverityProduct []NumberFilter // A URL that links to a page about the current finding in the security-findings @@ -6540,15 +6107,15 @@ type AwsSecurityFindingIdentifier struct { // A wrapper type for the topic's ARN. type AwsSnsTopicDetails struct { - // The ID of an Amazon Web Services managed customer master key (CMK) for Amazon - // SNS or a custom CMK. + // The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom + // CMK. KmsMasterKeyId *string // The subscription's owner. Owner *string // Subscription is an embedded property that describes the subscription endpoints - // of an SNS topic. + // of an Amazon SNS topic. Subscription []AwsSnsTopicSubscription // The name of the topic. @@ -6577,11 +6144,11 @@ type AwsSqsQueueDetails struct { DeadLetterTargetArn *string // The length of time, in seconds, for which Amazon SQS can reuse a data key to - // encrypt or decrypt messages before calling KMS again. + // encrypt or decrypt messages before calling AWS KMS again. KmsDataKeyReusePeriodSeconds int32 - // The ID of an Amazon Web Services managed customer master key (CMK) for Amazon - // SQS or a custom CMK. + // The ID of an AWS managed customer master key (CMK) for Amazon SQS or a custom + // CMK. KmsMasterKeyId *string // The name of the new queue. @@ -6686,7 +6253,7 @@ type AwsSsmPatchComplianceDetails struct { noSmithyDocumentSerde } -// Details about an WAF WebACL. +// Details about a WAF WebACL. type AwsWafWebAclDetails struct { // The action to perform if none of the rules contained in the WebACL match. @@ -6706,11 +6273,11 @@ type AwsWafWebAclDetails struct { noSmithyDocumentSerde } -// Details for a rule in an WAF WebACL. +// Details for a rule in a WAF WebACL. type AwsWafWebAclRule struct { - // Specifies the action that CloudFront or WAF takes when a web request matches the - // conditions in the rule. + // Specifies the action that CloudFront or AWS WAF takes when a web request matches + // the conditions in the rule. Action *WafAction // Rules to exclude from a rule group. @@ -6876,8 +6443,8 @@ type Compliance struct { // // * // NOT_AVAILABLE - Check could not be performed due to a service outage, API error, - // or because the result of the Config evaluation was NOT_APPLICABLE. If the Config - // evaluation result was NOT_APPLICABLE, then after 3 days, Security Hub + // or because the result of the AWS Config evaluation was NOT_APPLICABLE. If the + // AWS Config evaluation result was NOT_APPLICABLE, then after 3 days, Security Hub // automatically archives the finding. Status ComplianceStatus @@ -6885,7 +6452,7 @@ type Compliance struct { // Status. For the list of status reason codes and their meanings, see // Standards-related information in the ASFF // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff) - // in the Security Hub User Guide. + // in the AWS Security Hub User Guide. StatusReasons []StatusReason noSmithyDocumentSerde @@ -7322,11 +6889,11 @@ type MapFilter struct { // The details about a member account. type Member struct { - // The Amazon Web Services account ID of the member account. + // The AWS account ID of the member account. AccountId *string - // The Amazon Web Services account ID of the Security Hub administrator account - // associated with this member account. + // The AWS account ID of the Security Hub administrator account associated with + // this member account. AdministratorId *string // The email address of the member account. @@ -7336,8 +6903,8 @@ type Member struct { // account. InvitedAt *time.Time - // This is replaced by AdministratorID. The Amazon Web Services account ID of the - // Security Hub administrator account associated with this member account. + // This is replaced by AdministratorID. The AWS account ID of the Security Hub + // administrator account associated with this member account. // // Deprecated: This field is deprecated, use AdministratorId instead. MasterId *string @@ -7365,11 +6932,6 @@ type Member struct { // // * DELETED - // Indicates that the administrator account deleted the member account. - // - // * - // ACCOUNT_SUSPENDED - Indicates that an organization account was suspended from - // Amazon Web Services at the same time that the administrator account tried to - // enable the organization account as a member account. MemberStatus *string // The timestamp for the date and time when the member account was updated. @@ -7768,10 +7330,9 @@ type Product struct { // findings that it receives from Security Hub. IntegrationTypes []IntegrationType - // For integrations with Amazon Web Services services, the Amazon Web Services - // Console URL from which to activate the service. For integrations with - // third-party products, the Marketplace URL from which to subscribe to or purchase - // the product. + // For integrations with AWS services, the AWS Console URL from which to activate + // the service. For integrations with third-party products, the AWS Marketplace URL + // from which to subscribe to or purchase the product. MarketplaceUrl *string // The name of the product. @@ -7878,19 +7439,18 @@ type Resource struct { // Additional details about the resource related to a finding. Details *ResourceDetails - // The canonical Amazon Web Services partition name that the Region is assigned to. + // The canonical AWS partition name that the Region is assigned to. Partition Partition - // The canonical Amazon Web Services external Region name where this resource is - // located. + // The canonical AWS external Region name where this resource is located. Region *string // Identifies the role of the resource in the finding. A resource is either the // actor or target of the finding activity, ResourceRole *string - // A list of Amazon Web Services tags associated with a resource at the time the - // finding was processed. + // A list of AWS tags associated with a resource at the time the finding was + // processed. Tags map[string]string noSmithyDocumentSerde @@ -7920,7 +7480,7 @@ type ResourceDetails struct { // Details for an autoscaling group. AwsAutoScalingAutoScalingGroup *AwsAutoScalingAutoScalingGroupDetails - // Provides details about an Certificate Manager certificate. + // Provides details about an AWS Certificate Manager (ACM) certificate. AwsCertificateManagerCertificate *AwsCertificateManagerCertificateDetails // Details about a CloudFront distribution. @@ -7929,7 +7489,7 @@ type ResourceDetails struct { // Provides details about a CloudTrail trail. AwsCloudTrailTrail *AwsCloudTrailTrailDetails - // Details for an CodeBuild project. + // Details for an AWS CodeBuild project. AwsCodeBuildProject *AwsCodeBuildProjectDetails // Details about a DynamoDB table. @@ -7944,13 +7504,13 @@ type ResourceDetails struct { // Details about an EC2 network access control list (ACL). AwsEc2NetworkAcl *AwsEc2NetworkAclDetails - // Details for an EC2 network interface. + // Details for an Amazon EC2 network interface. AwsEc2NetworkInterface *AwsEc2NetworkInterfaceDetails // Details for an EC2 security group. AwsEc2SecurityGroup *AwsEc2SecurityGroupDetails - // Details about a subnet in Amazon EC2. + // Details about a subnet in EC2. AwsEc2Subnet *AwsEc2SubnetDetails // Details for an EC2 volume. @@ -7962,9 +7522,6 @@ type ResourceDetails struct { // Details about an ECS cluster. AwsEcsCluster *AwsEcsClusterDetails - // Details about a service within an ECS cluster. - AwsEcsService *AwsEcsServiceDetails - // Details about a task definition. A task definition describes the container and // volume definitions of an Amazon Elastic Container Service task. AwsEcsTaskDefinition *AwsEcsTaskDefinitionDetails @@ -7996,7 +7553,7 @@ type ResourceDetails struct { // Details about an IAM user. AwsIamUser *AwsIamUserDetails - // Details about an KMS key. + // Details about a KMS key. AwsKmsKey *AwsKmsKeyDetails // Details about a Lambda function. @@ -8017,19 +7574,16 @@ type ResourceDetails struct { // Details about an Amazon RDS database snapshot. AwsRdsDbSnapshot *AwsRdsDbSnapshotDetails - // Details about an RDS event notification subscription. - AwsRdsEventSubscription *AwsRdsEventSubscriptionDetails - // Contains details about an Amazon Redshift cluster. AwsRedshiftCluster *AwsRedshiftClusterDetails // Details about the Amazon S3 Public Access Block configuration for an account. AwsS3AccountPublicAccessBlock *AwsS3AccountPublicAccessBlockDetails - // Details about an S3 bucket related to a finding. + // Details about an Amazon S3 bucket related to a finding. AwsS3Bucket *AwsS3BucketDetails - // Details about an S3 object related to a finding. + // Details about an Amazon S3 object related to a finding. AwsS3Object *AwsS3ObjectDetails // Details about a Secrets Manager secret. @@ -8045,7 +7599,7 @@ type ResourceDetails struct { // patch baseline that was used to patch the instance. AwsSsmPatchCompliance *AwsSsmPatchComplianceDetails - // Details for an WAF WebACL. + // Details for a WAF WebACL. AwsWafWebAcl *AwsWafWebAclDetails // Details about a container resource related to a finding. @@ -8070,7 +7624,7 @@ type ResourceDetails struct { // Details about the account that was not processed. type Result struct { - // An Amazon Web Services account ID of the account that was not processed. + // An AWS account ID of the account that was not processed. AccountId *string // The reason that the account was not processed. @@ -8174,8 +7728,8 @@ type Severity struct { Original *string // Deprecated. This attribute is being deprecated. Instead of providing Product, - // provide Original. The native severity as defined by the Amazon Web Services - // service or integrated partner product that generated the finding. + // provide Original. The native severity as defined by the AWS service or + // integrated partner product that generated the finding. Product float64 noSmithyDocumentSerde @@ -8217,8 +7771,8 @@ type SeverityUpdate struct { // * 90–100 - CRITICAL Normalized int32 - // The native severity as defined by the Amazon Web Services service or integrated - // partner product that generated the finding. + // The native severity as defined by the AWS service or integrated partner product + // that generated the finding. Product float64 noSmithyDocumentSerde @@ -8310,7 +7864,7 @@ type StandardsControl struct { // The severity of findings generated from this security standard control. The // finding severity is based on an assessment of how easy it would be to compromise - // Amazon Web Services resources if the issue is detected. + // AWS resources if the issue is detected. SeverityRating SeverityRating // The ARN of the security standard control. @@ -8383,7 +7937,7 @@ type StatusReason struct { // A code that represents a reason for the control status. For the list of status // reason codes and their meanings, see Standards-related information in the ASFF // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff) - // in the Security Hub User Guide. + // in the AWS Security Hub User Guide. // // This member is required. ReasonCode *string @@ -8542,22 +8096,22 @@ type VulnerabilityVendor struct { noSmithyDocumentSerde } -// Details about the action that CloudFront or WAF takes when a web request matches -// the conditions in the rule. +// Details about the action that CloudFront or AWS WAF takes when a web request +// matches the conditions in the rule. type WafAction struct { - // Specifies how you want WAF to respond to requests that match the settings in a - // rule. Valid settings include the following: + // Specifies how you want AWS WAF to respond to requests that match the settings in + // a rule. Valid settings include the following: // - // * ALLOW - WAF allows requests + // * ALLOW - AWS WAF allows + // requests // - // * - // BLOCK - WAF blocks requests + // * BLOCK - AWS WAF blocks requests // - // * COUNT - WAF increments a counter of the requests - // that match all of the conditions in the rule. WAF then continues to inspect the - // web request based on the remaining rules in the web ACL. You can't specify COUNT - // for the default action for a WebACL. + // * COUNT - AWS WAF increments a + // counter of the requests that match all of the conditions in the rule. AWS WAF + // then continues to inspect the web request based on the remaining rules in the + // web ACL. You can't specify COUNT for the default action for a WebACL. Type *string noSmithyDocumentSerde diff --git a/service/serverlessapplicationrepository/go.mod b/service/serverlessapplicationrepository/go.mod index e602d73cb45..90981220483 100644 --- a/service/serverlessapplicationrepository/go.mod +++ b/service/serverlessapplicationrepository/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/serverlessapplicationrepository/go.sum b/service/serverlessapplicationrepository/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/serverlessapplicationrepository/go.sum +++ b/service/serverlessapplicationrepository/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/servicecatalog/go.mod b/service/servicecatalog/go.mod index dbe13c050bc..fc7dc8a752c 100644 --- a/service/servicecatalog/go.mod +++ b/service/servicecatalog/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicecatalog/go.sum b/service/servicecatalog/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/servicecatalog/go.sum +++ b/service/servicecatalog/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/servicecatalogappregistry/go.mod b/service/servicecatalogappregistry/go.mod index be9a398dfd4..847e4680a2a 100644 --- a/service/servicecatalogappregistry/go.mod +++ b/service/servicecatalogappregistry/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicecatalogappregistry/go.sum b/service/servicecatalogappregistry/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/servicecatalogappregistry/go.sum +++ b/service/servicecatalogappregistry/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/servicediscovery/go.mod b/service/servicediscovery/go.mod index ed83d4c8b8a..63784a73ee3 100644 --- a/service/servicediscovery/go.mod +++ b/service/servicediscovery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicediscovery/go.sum b/service/servicediscovery/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/servicediscovery/go.sum +++ b/service/servicediscovery/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/servicequotas/go.mod b/service/servicequotas/go.mod index 1b198382307..79c59eb0701 100644 --- a/service/servicequotas/go.mod +++ b/service/servicequotas/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicequotas/go.sum b/service/servicequotas/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/servicequotas/go.sum +++ b/service/servicequotas/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ses/go.mod b/service/ses/go.mod index ecf79d20dc6..5d34819cde0 100644 --- a/service/ses/go.mod +++ b/service/ses/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ses/go.sum b/service/ses/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/ses/go.sum +++ b/service/ses/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sesv2/go.mod b/service/sesv2/go.mod index 839abb913ef..86fdaa34620 100644 --- a/service/sesv2/go.mod +++ b/service/sesv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sesv2/go.sum b/service/sesv2/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sesv2/go.sum +++ b/service/sesv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sfn/go.mod b/service/sfn/go.mod index d563b37d16b..9d6d795a117 100644 --- a/service/sfn/go.mod +++ b/service/sfn/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sfn/go.sum b/service/sfn/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sfn/go.sum +++ b/service/sfn/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/shield/api_op_AssociateDRTLogBucket.go b/service/shield/api_op_AssociateDRTLogBucket.go index 447c920c100..b66748a138d 100644 --- a/service/shield/api_op_AssociateDRTLogBucket.go +++ b/service/shield/api_op_AssociateDRTLogBucket.go @@ -10,14 +10,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 -// bucket containing log data such as Application Load Balancer access logs, -// CloudFront logs, or logs from third party sources. You can associate up to 10 -// Amazon S3 buckets with your subscription. To use the services of the SRT and -// make an AssociateDRTLogBucket request, you must be subscribed to the Business -// Support plan (https://aws.amazon.com/premiumsupport/business-support/) or the -// Enterprise Support plan -// (https://aws.amazon.com/premiumsupport/enterprise-support/). +// Authorizes the DDoS Response Team (DRT) to access the specified Amazon S3 bucket +// containing your AWS WAF logs. You can associate up to 10 Amazon S3 buckets with +// your subscription. To use the services of the DRT and make an +// AssociateDRTLogBucket request, you must be subscribed to the Business Support +// plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise +// Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). func (c *Client) AssociateDRTLogBucket(ctx context.Context, params *AssociateDRTLogBucketInput, optFns ...func(*Options)) (*AssociateDRTLogBucketOutput, error) { if params == nil { params = &AssociateDRTLogBucketInput{} @@ -35,7 +33,7 @@ func (c *Client) AssociateDRTLogBucket(ctx context.Context, params *AssociateDRT type AssociateDRTLogBucketInput struct { - // The Amazon S3 bucket that contains the logs that you want to share. + // The Amazon S3 bucket that contains your AWS WAF logs. // // This member is required. LogBucket *string diff --git a/service/shield/api_op_AssociateDRTRole.go b/service/shield/api_op_AssociateDRTRole.go index 6fd2b689532..c1a62bda46c 100644 --- a/service/shield/api_op_AssociateDRTRole.go +++ b/service/shield/api_op_AssociateDRTRole.go @@ -10,11 +10,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Authorizes the Shield Response Team (SRT) using the specified role, to access -// your Amazon Web Services account to assist with DDoS attack mitigation during -// potential attacks. This enables the SRT to inspect your WAF configuration and -// create or update WAF rules and web ACLs. You can associate only one RoleArn with -// your subscription. If you submit an AssociateDRTRole request for an account that +// Authorizes the DDoS Response Team (DRT), using the specified role, to access +// your AWS account to assist with DDoS attack mitigation during potential attacks. +// This enables the DRT to inspect your AWS WAF configuration and create or update +// AWS WAF rules and web ACLs. You can associate only one RoleArn with your +// subscription. If you submit an AssociateDRTRole request for an account that // already has an associated role, the new RoleArn will replace the existing // RoleArn. Prior to making the AssociateDRTRole request, you must attach the // AWSShieldDRTAccessPolicy @@ -25,14 +25,15 @@ import ( // The role must also trust the service principal drt.shield.amazonaws.com. For // more information, see IAM JSON Policy Elements: Principal // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html). -// The SRT will have access only to your WAF and Shield resources. By submitting -// this request, you authorize the SRT to inspect your WAF and Shield configuration -// and create and update WAF rules and web ACLs on your behalf. The SRT takes these -// actions only if explicitly authorized by you. You must have the iam:PassRole -// permission to make an AssociateDRTRole request. For more information, see -// Granting a User Permissions to Pass a Role to an Amazon Web Services Service +// The DRT will have access only to your AWS WAF and Shield resources. By +// submitting this request, you authorize the DRT to inspect your AWS WAF and +// Shield configuration and create and update AWS WAF rules and web ACLs on your +// behalf. The DRT takes these actions only if explicitly authorized by you. You +// must have the iam:PassRole permission to make an AssociateDRTRole request. For +// more information, see Granting a User Permissions to Pass a Role to an AWS +// Service // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). -// To use the services of the SRT and make an AssociateDRTRole request, you must be +// To use the services of the DRT and make an AssociateDRTRole request, you must be // subscribed to the Business Support plan // (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise // Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). @@ -53,9 +54,9 @@ func (c *Client) AssociateDRTRole(ctx context.Context, params *AssociateDRTRoleI type AssociateDRTRoleInput struct { - // The Amazon Resource Name (ARN) of the role the SRT will use to access your - // Amazon Web Services account. Prior to making the AssociateDRTRole request, you - // must attach the AWSShieldDRTAccessPolicy + // The Amazon Resource Name (ARN) of the role the DRT will use to access your AWS + // account. Prior to making the AssociateDRTRole request, you must attach the + // AWSShieldDRTAccessPolicy // (https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy) // managed policy to this role. For more information see Attaching and Detaching // IAM Policies diff --git a/service/shield/api_op_AssociateHealthCheck.go b/service/shield/api_op_AssociateHealthCheck.go index 4f471fa0bd8..11f14b1cf90 100644 --- a/service/shield/api_op_AssociateHealthCheck.go +++ b/service/shield/api_op_AssociateHealthCheck.go @@ -11,13 +11,14 @@ import ( ) // Adds health-based detection to the Shield Advanced protection for a resource. -// Shield Advanced health-based detection uses the health of your Amazon Web -// Services resource to improve responsiveness and accuracy in attack detection and -// mitigation. You define the health check in Route 53 and then associate it with -// your Shield Advanced protection. For more information, see Shield Advanced -// Health-Based Detection +// Shield Advanced health-based detection uses the health of your AWS resource to +// improve responsiveness and accuracy in attack detection and mitigation. You +// define the health check in Route 53 and then associate it with your Shield +// Advanced protection. For more information, see Shield Advanced Health-Based +// Detection // (https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) -// in the WAF Developer Guide. +// in the AWS WAF and AWS Shield Developer Guide +// (https://docs.aws.amazon.com/waf/latest/developerguide/). func (c *Client) AssociateHealthCheck(ctx context.Context, params *AssociateHealthCheckInput, optFns ...func(*Options)) (*AssociateHealthCheckOutput, error) { if params == nil { params = &AssociateHealthCheckInput{} diff --git a/service/shield/api_op_AssociateProactiveEngagementDetails.go b/service/shield/api_op_AssociateProactiveEngagementDetails.go index 26bea908cee..9fbd3ef79a2 100644 --- a/service/shield/api_op_AssociateProactiveEngagementDetails.go +++ b/service/shield/api_op_AssociateProactiveEngagementDetails.go @@ -11,16 +11,17 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Initializes proactive engagement and sets the list of contacts for the Shield -// Response Team (SRT) to use. You must provide at least one phone number in the +// Initializes proactive engagement and sets the list of contacts for the DDoS +// Response Team (DRT) to use. You must provide at least one phone number in the // emergency contact list. After you have initialized proactive engagement using // this call, to disable or enable proactive engagement, use the calls // DisableProactiveEngagement and EnableProactiveEngagement. This call defines the -// list of email addresses and phone numbers that the SRT can use to contact you -// for escalations to the SRT and to initiate proactive customer support. The -// contacts that you provide in the request replace any contacts that were already -// defined. If you already have contacts defined and want to use them, retrieve the -// list using DescribeEmergencyContactSettings and then provide it to this call. +// list of email addresses and phone numbers that the DDoS Response Team (DRT) can +// use to contact you for escalations to the DRT and to initiate proactive customer +// support. The contacts that you provide in the request replace any contacts that +// were already defined. If you already have contacts defined and want to use them, +// retrieve the list using DescribeEmergencyContactSettings and then provide it to +// this call. func (c *Client) AssociateProactiveEngagementDetails(ctx context.Context, params *AssociateProactiveEngagementDetailsInput, optFns ...func(*Options)) (*AssociateProactiveEngagementDetailsOutput, error) { if params == nil { params = &AssociateProactiveEngagementDetailsInput{} @@ -38,8 +39,8 @@ func (c *Client) AssociateProactiveEngagementDetails(ctx context.Context, params type AssociateProactiveEngagementDetailsInput struct { - // A list of email addresses and phone numbers that the Shield Response Team (SRT) - // can use to contact you for escalations to the SRT and to initiate proactive + // A list of email addresses and phone numbers that the DDoS Response Team (DRT) + // can use to contact you for escalations to the DRT and to initiate proactive // customer support. To enable proactive engagement, the contact list must include // at least one phone number. The contacts that you provide here replace any // contacts that were already defined. If you already have contacts defined and diff --git a/service/shield/api_op_CreateProtection.go b/service/shield/api_op_CreateProtection.go index 91edc832c9e..69161f5fdd7 100644 --- a/service/shield/api_op_CreateProtection.go +++ b/service/shield/api_op_CreateProtection.go @@ -11,15 +11,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables Shield Advanced for a specific Amazon Web Services resource. The -// resource can be an Amazon CloudFront distribution, Elastic Load Balancing load -// balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route -// 53 hosted zone. You can add protection to only a single resource with each -// CreateProtection request. If you want to add protection to multiple resources at -// once, use the WAF console (https://console.aws.amazon.com/waf/). For more -// information see Getting Started with Shield Advanced +// Enables AWS Shield Advanced for a specific AWS resource. The resource can be an +// Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global +// Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone. +// You can add protection to only a single resource with each CreateProtection +// request. If you want to add protection to multiple resources at once, use the +// AWS WAF console (https://console.aws.amazon.com/waf/). For more information see +// Getting Started with AWS Shield Advanced // (https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html) -// and Add Shield Advanced Protection to more Amazon Web Services Resources +// and Add AWS Shield Advanced Protection to more AWS Resources // (https://docs.aws.amazon.com/waf/latest/developerguide/configure-new-protection.html). func (c *Client) CreateProtection(ctx context.Context, params *CreateProtectionInput, optFns ...func(*Options)) (*CreateProtectionOutput, error) { if params == nil { @@ -54,10 +54,10 @@ type CreateProtectionInput struct { // arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name // // * - // For an Amazon CloudFront distribution: + // For an AWS CloudFront distribution: // arn:aws:cloudfront::account-id:distribution/distribution-id // - // * For an Global + // * For an AWS Global // Accelerator accelerator: // arn:aws:globalaccelerator::account-id:accelerator/accelerator-id // diff --git a/service/shield/api_op_CreateProtectionGroup.go b/service/shield/api_op_CreateProtectionGroup.go index 4bd04ddf4a1..0a7eb38322d 100644 --- a/service/shield/api_op_CreateProtectionGroup.go +++ b/service/shield/api_op_CreateProtectionGroup.go @@ -31,7 +31,7 @@ func (c *Client) CreateProtectionGroup(ctx context.Context, params *CreateProtec type CreateProtectionGroupInput struct { - // Defines how Shield combines resource data for the group in order to detect, + // Defines how AWS Shield combines resource data for the group in order to detect, // mitigate, and report events. // // * Sum - Use the total traffic across the group. @@ -45,8 +45,8 @@ type CreateProtectionGroupInput struct { // * Max - // Use the highest traffic from each resource. This is useful for resources that // don't share traffic and for resources that share that traffic in a non-uniform - // way. Examples include Amazon CloudFront and origin resources for CloudFront - // distributions. + // way. Examples include CloudFront distributions and origin resources for + // CloudFront distributions. // // This member is required. Aggregation types.ProtectionGroupAggregation diff --git a/service/shield/api_op_CreateSubscription.go b/service/shield/api_op_CreateSubscription.go index 052a2702aea..62a346be2b4 100644 --- a/service/shield/api_op_CreateSubscription.go +++ b/service/shield/api_op_CreateSubscription.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Activates Shield Advanced for an account. When you initally create a +// Activates AWS Shield Advanced for an account. When you initally create a // subscription, your subscription is set to be automatically renewed at the end of // the existing subscription period. You can change this by submitting an // UpdateSubscription request. diff --git a/service/shield/api_op_DeleteProtection.go b/service/shield/api_op_DeleteProtection.go index 2833c21e768..2e99bcb6ddb 100644 --- a/service/shield/api_op_DeleteProtection.go +++ b/service/shield/api_op_DeleteProtection.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an Shield Advanced Protection. +// Deletes an AWS Shield Advanced Protection. func (c *Client) DeleteProtection(ctx context.Context, params *DeleteProtectionInput, optFns ...func(*Options)) (*DeleteProtectionOutput, error) { if params == nil { params = &DeleteProtectionInput{} diff --git a/service/shield/api_op_DeleteSubscription.go b/service/shield/api_op_DeleteSubscription.go index f6238f29d6b..30a9f09a3e1 100644 --- a/service/shield/api_op_DeleteSubscription.go +++ b/service/shield/api_op_DeleteSubscription.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes Shield Advanced from an account. Shield Advanced requires a 1-year -// subscription commitment. You cannot delete a subscription prior to the +// Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a +// 1-year subscription commitment. You cannot delete a subscription prior to the // completion of that commitment. // // Deprecated: This operation has been deprecated. diff --git a/service/shield/api_op_DescribeAttackStatistics.go b/service/shield/api_op_DescribeAttackStatistics.go index a2457a1d0bb..dfaa0d6116c 100644 --- a/service/shield/api_op_DescribeAttackStatistics.go +++ b/service/shield/api_op_DescribeAttackStatistics.go @@ -11,15 +11,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Provides information about the number and type of attacks Shield has detected in -// the last year for all resources that belong to your account, regardless of -// whether you've defined Shield protections for them. This operation is available -// to Shield customers as well as to Shield Advanced customers. The operation -// returns data for the time range of midnight UTC, one year ago, to midnight UTC, -// today. For example, if the current time is 2020-10-26 15:39:32 PDT, equal to -// 2020-10-26 22:39:32 UTC, then the time range for the attack data returned is -// from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC. The time range -// indicates the period covered by the attack statistics data items. +// Provides information about the number and type of attacks AWS Shield has +// detected in the last year for all resources that belong to your account, +// regardless of whether you've defined Shield protections for them. This operation +// is available to Shield customers as well as to Shield Advanced customers. The +// operation returns data for the time range of midnight UTC, one year ago, to +// midnight UTC, today. For example, if the current time is 2020-10-26 15:39:32 +// PDT, equal to 2020-10-26 22:39:32 UTC, then the time range for the attack data +// returned is from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC. The time +// range indicates the period covered by the attack statistics data items. func (c *Client) DescribeAttackStatistics(ctx context.Context, params *DescribeAttackStatisticsInput, optFns ...func(*Options)) (*DescribeAttackStatisticsOutput, error) { if params == nil { params = &DescribeAttackStatisticsInput{} diff --git a/service/shield/api_op_DescribeDRTAccess.go b/service/shield/api_op_DescribeDRTAccess.go index 4e632afc685..a163704f628 100644 --- a/service/shield/api_op_DescribeDRTAccess.go +++ b/service/shield/api_op_DescribeDRTAccess.go @@ -10,9 +10,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the current role and list of Amazon S3 log buckets used by the Shield -// Response Team (SRT) to access your Amazon Web Services account while assisting -// with attack mitigation. +// Returns the current role and list of Amazon S3 log buckets used by the DDoS +// Response Team (DRT) to access your AWS account while assisting with attack +// mitigation. func (c *Client) DescribeDRTAccess(ctx context.Context, params *DescribeDRTAccessInput, optFns ...func(*Options)) (*DescribeDRTAccessOutput, error) { if params == nil { params = &DescribeDRTAccessInput{} @@ -34,11 +34,11 @@ type DescribeDRTAccessInput struct { type DescribeDRTAccessOutput struct { - // The list of Amazon S3 buckets accessed by the SRT. + // The list of Amazon S3 buckets accessed by the DRT. LogBucketList []string - // The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon - // Web Services account. + // The Amazon Resource Name (ARN) of the role the DRT used to access your AWS + // account. RoleArn *string // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_DescribeEmergencyContactSettings.go b/service/shield/api_op_DescribeEmergencyContactSettings.go index 23b2a0a18f3..90338a11f0a 100644 --- a/service/shield/api_op_DescribeEmergencyContactSettings.go +++ b/service/shield/api_op_DescribeEmergencyContactSettings.go @@ -11,9 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// A list of email addresses and phone numbers that the Shield Response Team (SRT) +// A list of email addresses and phone numbers that the DDoS Response Team (DRT) // can use to contact you if you have proactive engagement enabled, for escalations -// to the SRT and to initiate proactive customer support. +// to the DRT and to initiate proactive customer support. func (c *Client) DescribeEmergencyContactSettings(ctx context.Context, params *DescribeEmergencyContactSettingsInput, optFns ...func(*Options)) (*DescribeEmergencyContactSettingsOutput, error) { if params == nil { params = &DescribeEmergencyContactSettingsInput{} @@ -35,9 +35,9 @@ type DescribeEmergencyContactSettingsInput struct { type DescribeEmergencyContactSettingsOutput struct { - // A list of email addresses and phone numbers that the Shield Response Team (SRT) + // A list of email addresses and phone numbers that the DDoS Response Team (DRT) // can use to contact you if you have proactive engagement enabled, for escalations - // to the SRT and to initiate proactive customer support. + // to the DRT and to initiate proactive customer support. EmergencyContactList []types.EmergencyContact // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_DescribeProtection.go b/service/shield/api_op_DescribeProtection.go index e3b483c15b6..c6154ebfb82 100644 --- a/service/shield/api_op_DescribeProtection.go +++ b/service/shield/api_op_DescribeProtection.go @@ -34,10 +34,9 @@ type DescribeProtectionInput struct { // ResourceArn or the ProtectionID, but not both. ProtectionId *string - // The ARN (Amazon Resource Name) of the Amazon Web Services resource for the - // Protection object that is described. When submitting the DescribeProtection - // request you must provide either the ResourceArn or the ProtectionID, but not - // both. + // The ARN (Amazon Resource Name) of the AWS resource for the Protection object + // that is described. When submitting the DescribeProtection request you must + // provide either the ResourceArn or the ProtectionID, but not both. ResourceArn *string noSmithyDocumentSerde diff --git a/service/shield/api_op_DescribeProtectionGroup.go b/service/shield/api_op_DescribeProtectionGroup.go index 3928ad68101..50ec3c017fa 100644 --- a/service/shield/api_op_DescribeProtectionGroup.go +++ b/service/shield/api_op_DescribeProtectionGroup.go @@ -41,8 +41,8 @@ type DescribeProtectionGroupInput struct { type DescribeProtectionGroupOutput struct { - // A grouping of protected resources that you and Shield Advanced can monitor as a - // collective. This resource grouping improves the accuracy of detection and + // A grouping of protected resources that you and AWS Shield Advanced can monitor + // as a collective. This resource grouping improves the accuracy of detection and // reduces false positives. // // This member is required. diff --git a/service/shield/api_op_DescribeSubscription.go b/service/shield/api_op_DescribeSubscription.go index a7b3ea02a40..9279d206c5c 100644 --- a/service/shield/api_op_DescribeSubscription.go +++ b/service/shield/api_op_DescribeSubscription.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Provides details about the Shield Advanced subscription for an account. +// Provides details about the AWS Shield Advanced subscription for an account. func (c *Client) DescribeSubscription(ctx context.Context, params *DescribeSubscriptionInput, optFns ...func(*Options)) (*DescribeSubscriptionOutput, error) { if params == nil { params = &DescribeSubscriptionInput{} @@ -33,7 +33,7 @@ type DescribeSubscriptionInput struct { type DescribeSubscriptionOutput struct { - // The Shield Advanced subscription details for an account. + // The AWS Shield Advanced subscription details for an account. Subscription *types.Subscription // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_DisableProactiveEngagement.go b/service/shield/api_op_DisableProactiveEngagement.go index 3dcd5a7c16f..b666b66c2a3 100644 --- a/service/shield/api_op_DisableProactiveEngagement.go +++ b/service/shield/api_op_DisableProactiveEngagement.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes authorization from the Shield Response Team (SRT) to notify contacts -// about escalations to the SRT and to initiate proactive customer support. +// Removes authorization from the DDoS Response Team (DRT) to notify contacts about +// escalations to the DRT and to initiate proactive customer support. func (c *Client) DisableProactiveEngagement(ctx context.Context, params *DisableProactiveEngagementInput, optFns ...func(*Options)) (*DisableProactiveEngagementOutput, error) { if params == nil { params = &DisableProactiveEngagementInput{} diff --git a/service/shield/api_op_DisassociateDRTLogBucket.go b/service/shield/api_op_DisassociateDRTLogBucket.go index b94b8155d9b..edd4fb63a51 100644 --- a/service/shield/api_op_DisassociateDRTLogBucket.go +++ b/service/shield/api_op_DisassociateDRTLogBucket.go @@ -10,13 +10,13 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes the Shield Response Team's (SRT) access to the specified Amazon S3 -// bucket containing the logs that you shared previously. To make a -// DisassociateDRTLogBucket request, you must be subscribed to the Business Support -// plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise +// Removes the DDoS Response Team's (DRT) access to the specified Amazon S3 bucket +// containing your AWS WAF logs. To make a DisassociateDRTLogBucket request, you +// must be subscribed to the Business Support plan +// (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise // Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). // However, if you are not subscribed to one of these support plans, but had been -// previously and had granted the SRT access to your account, you can submit a +// previously and had granted the DRT access to your account, you can submit a // DisassociateDRTLogBucket request to remove this access. func (c *Client) DisassociateDRTLogBucket(ctx context.Context, params *DisassociateDRTLogBucketInput, optFns ...func(*Options)) (*DisassociateDRTLogBucketOutput, error) { if params == nil { @@ -35,7 +35,7 @@ func (c *Client) DisassociateDRTLogBucket(ctx context.Context, params *Disassoci type DisassociateDRTLogBucketInput struct { - // The Amazon S3 bucket that contains the logs that you want to share. + // The Amazon S3 bucket that contains your AWS WAF logs. // // This member is required. LogBucket *string diff --git a/service/shield/api_op_DisassociateDRTRole.go b/service/shield/api_op_DisassociateDRTRole.go index 58b0a910bfc..508ef8089c9 100644 --- a/service/shield/api_op_DisassociateDRTRole.go +++ b/service/shield/api_op_DisassociateDRTRole.go @@ -10,14 +10,13 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes the Shield Response Team's (SRT) access to your Amazon Web Services -// account. To make a DisassociateDRTRole request, you must be subscribed to the -// Business Support plan (https://aws.amazon.com/premiumsupport/business-support/) -// or the Enterprise Support plan -// (https://aws.amazon.com/premiumsupport/enterprise-support/). However, if you are -// not subscribed to one of these support plans, but had been previously and had -// granted the SRT access to your account, you can submit a DisassociateDRTRole -// request to remove this access. +// Removes the DDoS Response Team's (DRT) access to your AWS account. To make a +// DisassociateDRTRole request, you must be subscribed to the Business Support plan +// (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise +// Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). +// However, if you are not subscribed to one of these support plans, but had been +// previously and had granted the DRT access to your account, you can submit a +// DisassociateDRTRole request to remove this access. func (c *Client) DisassociateDRTRole(ctx context.Context, params *DisassociateDRTRoleInput, optFns ...func(*Options)) (*DisassociateDRTRoleOutput, error) { if params == nil { params = &DisassociateDRTRoleInput{} diff --git a/service/shield/api_op_DisassociateHealthCheck.go b/service/shield/api_op_DisassociateHealthCheck.go index 60176e76360..a69970f3c8d 100644 --- a/service/shield/api_op_DisassociateHealthCheck.go +++ b/service/shield/api_op_DisassociateHealthCheck.go @@ -11,13 +11,14 @@ import ( ) // Removes health-based detection from the Shield Advanced protection for a -// resource. Shield Advanced health-based detection uses the health of your Amazon -// Web Services resource to improve responsiveness and accuracy in attack detection -// and mitigation. You define the health check in Route 53 and then associate or +// resource. Shield Advanced health-based detection uses the health of your AWS +// resource to improve responsiveness and accuracy in attack detection and +// mitigation. You define the health check in Route 53 and then associate or // disassociate it with your Shield Advanced protection. For more information, see // Shield Advanced Health-Based Detection // (https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) -// in the WAF Developer Guide. +// in the AWS WAF and AWS Shield Developer Guide +// (https://docs.aws.amazon.com/waf/latest/developerguide/). func (c *Client) DisassociateHealthCheck(ctx context.Context, params *DisassociateHealthCheckInput, optFns ...func(*Options)) (*DisassociateHealthCheckOutput, error) { if params == nil { params = &DisassociateHealthCheckInput{} diff --git a/service/shield/api_op_EnableProactiveEngagement.go b/service/shield/api_op_EnableProactiveEngagement.go index 2d0140f0156..53258024e00 100644 --- a/service/shield/api_op_EnableProactiveEngagement.go +++ b/service/shield/api_op_EnableProactiveEngagement.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Authorizes the Shield Response Team (SRT) to use email and phone to notify -// contacts about escalations to the SRT and to initiate proactive customer +// Authorizes the DDoS Response Team (DRT) to use email and phone to notify +// contacts about escalations to the DRT and to initiate proactive customer // support. func (c *Client) EnableProactiveEngagement(ctx context.Context, params *EnableProactiveEngagementInput, optFns ...func(*Options)) (*EnableProactiveEngagementOutput, error) { if params == nil { diff --git a/service/shield/api_op_ListProtectionGroups.go b/service/shield/api_op_ListProtectionGroups.go index a1347706baf..6d41842da1e 100644 --- a/service/shield/api_op_ListProtectionGroups.go +++ b/service/shield/api_op_ListProtectionGroups.go @@ -54,8 +54,8 @@ type ListProtectionGroupsOutput struct { ProtectionGroups []types.ProtectionGroup // If you specify a value for MaxResults and you have more protection groups than - // the value of MaxResults, Shield Advanced returns this token that you can use in - // your next request, to get the next batch of objects. + // the value of MaxResults, AWS Shield Advanced returns this token that you can use + // in your next request, to get the next batch of objects. NextToken *string // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_ListProtections.go b/service/shield/api_op_ListProtections.go index 52ba5858a39..468ec95a2cd 100644 --- a/service/shield/api_op_ListProtections.go +++ b/service/shield/api_op_ListProtections.go @@ -49,9 +49,9 @@ type ListProtectionsInput struct { type ListProtectionsOutput struct { // If you specify a value for MaxResults and you have more Protections than the - // value of MaxResults, Shield Advanced returns a NextToken value in the response - // that allows you to list another group of Protections. For the second and - // subsequent ListProtections requests, specify the value of NextToken from the + // value of MaxResults, AWS Shield Advanced returns a NextToken value in the + // response that allows you to list another group of Protections. For the second + // and subsequent ListProtections requests, specify the value of NextToken from the // previous response to get information about another batch of Protections. Shield // Advanced might return the list of Protection objects in batches smaller than the // number specified by MaxResults. If there are more Protection objects to return, diff --git a/service/shield/api_op_ListResourcesInProtectionGroup.go b/service/shield/api_op_ListResourcesInProtectionGroup.go index 2368df6f12c..d776da93b35 100644 --- a/service/shield/api_op_ListResourcesInProtectionGroup.go +++ b/service/shield/api_op_ListResourcesInProtectionGroup.go @@ -61,7 +61,7 @@ type ListResourcesInProtectionGroupOutput struct { ResourceArns []string // If you specify a value for MaxResults and you have more resources in the - // protection group than the value of MaxResults, Shield Advanced returns this + // protection group than the value of MaxResults, AWS Shield Advanced returns this // token that you can use in your next request, to get the next batch of objects. NextToken *string diff --git a/service/shield/api_op_ListTagsForResource.go b/service/shield/api_op_ListTagsForResource.go index 162b9976843..ea187c35913 100644 --- a/service/shield/api_op_ListTagsForResource.go +++ b/service/shield/api_op_ListTagsForResource.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets information about Amazon Web Services tags for a specified Amazon Resource -// Name (ARN) in Shield. +// Gets information about AWS tags for a specified Amazon Resource Name (ARN) in +// AWS Shield. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/shield/api_op_TagResource.go b/service/shield/api_op_TagResource.go index 1a18891f5ed..58a7c47d0f3 100644 --- a/service/shield/api_op_TagResource.go +++ b/service/shield/api_op_TagResource.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Adds or updates tags for a resource in Shield. +// Adds or updates tags for a resource in AWS Shield. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/shield/api_op_UntagResource.go b/service/shield/api_op_UntagResource.go index cc5e987b88f..5e5ef09ae7c 100644 --- a/service/shield/api_op_UntagResource.go +++ b/service/shield/api_op_UntagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes tags from a resource in Shield. +// Removes tags from a resource in AWS Shield. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/shield/api_op_UpdateEmergencyContactSettings.go b/service/shield/api_op_UpdateEmergencyContactSettings.go index b9fa8ee0c7c..fad324536d1 100644 --- a/service/shield/api_op_UpdateEmergencyContactSettings.go +++ b/service/shield/api_op_UpdateEmergencyContactSettings.go @@ -12,9 +12,8 @@ import ( ) // Updates the details of the list of email addresses and phone numbers that the -// Shield Response Team (SRT) can use to contact you if you have proactive -// engagement enabled, for escalations to the SRT and to initiate proactive -// customer support. +// DDoS Response Team (DRT) can use to contact you if you have proactive engagement +// enabled, for escalations to the DRT and to initiate proactive customer support. func (c *Client) UpdateEmergencyContactSettings(ctx context.Context, params *UpdateEmergencyContactSettingsInput, optFns ...func(*Options)) (*UpdateEmergencyContactSettingsOutput, error) { if params == nil { params = &UpdateEmergencyContactSettingsInput{} @@ -32,9 +31,9 @@ func (c *Client) UpdateEmergencyContactSettings(ctx context.Context, params *Upd type UpdateEmergencyContactSettingsInput struct { - // A list of email addresses and phone numbers that the Shield Response Team (SRT) + // A list of email addresses and phone numbers that the DDoS Response Team (DRT) // can use to contact you if you have proactive engagement enabled, for escalations - // to the SRT and to initiate proactive customer support. If you have proactive + // to the DRT and to initiate proactive customer support. If you have proactive // engagement enabled, the contact list must include at least one phone number. EmergencyContactList []types.EmergencyContact diff --git a/service/shield/api_op_UpdateProtectionGroup.go b/service/shield/api_op_UpdateProtectionGroup.go index 8c98f0e72d3..8fe9b67abab 100644 --- a/service/shield/api_op_UpdateProtectionGroup.go +++ b/service/shield/api_op_UpdateProtectionGroup.go @@ -31,7 +31,7 @@ func (c *Client) UpdateProtectionGroup(ctx context.Context, params *UpdateProtec type UpdateProtectionGroupInput struct { - // Defines how Shield combines resource data for the group in order to detect, + // Defines how AWS Shield combines resource data for the group in order to detect, // mitigate, and report events. // // * Sum - Use the total traffic across the group. @@ -45,7 +45,7 @@ type UpdateProtectionGroupInput struct { // * Max - // Use the highest traffic from each resource. This is useful for resources that // don't share traffic and for resources that share that traffic in a non-uniform - // way. Examples include Amazon CloudFront distributions and origin resources for + // way. Examples include CloudFront distributions and origin resources for // CloudFront distributions. // // This member is required. diff --git a/service/shield/doc.go b/service/shield/doc.go index 999865fb971..7494e0e0d51 100644 --- a/service/shield/doc.go +++ b/service/shield/doc.go @@ -3,10 +3,10 @@ // Package shield provides the API client, operations, and parameter types for AWS // Shield. // -// Shield Advanced This is the Shield Advanced API Reference. This guide is for -// developers who need detailed information about the Shield Advanced API actions, -// data types, and errors. For detailed information about WAF and Shield Advanced -// features and an overview of how to use the WAF and Shield Advanced APIs, see the -// WAF and Shield Developer Guide +// AWS Shield Advanced This is the AWS Shield Advanced API Reference. This guide is +// for developers who need detailed information about the AWS Shield Advanced API +// actions, data types, and errors. For detailed information about AWS WAF and AWS +// Shield Advanced features and an overview of how to use the AWS WAF and AWS +// Shield Advanced APIs, see the AWS WAF and AWS Shield Developer Guide // (https://docs.aws.amazon.com/waf/latest/developerguide/). package shield diff --git a/service/shield/go.mod b/service/shield/go.mod index 856afab5a4c..c360c558252 100644 --- a/service/shield/go.mod +++ b/service/shield/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/shield/go.sum b/service/shield/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/shield/go.sum +++ b/service/shield/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/shield/types/errors.go b/service/shield/types/errors.go index 8d718e4c937..74f8e9adae9 100644 --- a/service/shield/types/errors.go +++ b/service/shield/types/errors.go @@ -27,11 +27,10 @@ func (e *AccessDeniedException) ErrorMessage() string { func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// In order to grant the necessary access to the Shield Response Team (SRT) the -// user submitting the request must have the iam:PassRole permission. This error +// In order to grant the necessary access to the DDoS Response Team (DRT), the user +// submitting the request must have the iam:PassRole permission. This error // indicates the user did not have the appropriate permissions. For more -// information, see Granting a User Permissions to Pass a Role to an Amazon Web -// Services Service +// information, see Granting a User Permissions to Pass a Role to an AWS Service // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). type AccessDeniedForDependencyException struct { Message *string diff --git a/service/shield/types/types.go b/service/shield/types/types.go index f6aa8d5f7ea..66f7fa91098 100644 --- a/service/shield/types/types.go +++ b/service/shield/types/types.go @@ -16,12 +16,7 @@ type AttackDetail struct { // The unique identifier (ID) of the attack. AttackId *string - // The array of objects that provide details of the Shield event. For - // infrastructure layer events (L3 and L4 events) after January 25, 2021, you can - // view metrics for top contributors in Amazon CloudWatch metrics. For more - // information, see Shield metrics and alarms - // (https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#set-ddos-alarms) - // in the WAF Developer Guide. + // The array of AttackProperty objects. AttackProperties []AttackProperty // The time the attack ended, in Unix time in seconds. For more information see @@ -47,30 +42,28 @@ type AttackDetail struct { noSmithyDocumentSerde } -// Details of a Shield event. This is provided as part of an AttackDetail. +// Details of the described attack. type AttackProperty struct { - // The type of Shield event that was observed. NETWORK indicates layer 3 and layer - // 4 events and APPLICATION indicates layer 7 events. For infrastructure layer - // events (L3 and L4 events) after January 25, 2021, you can view metrics for top - // contributors in Amazon CloudWatch metrics. For more information, see Shield - // metrics and alarms - // (https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#set-ddos-alarms) - // in the WAF Developer Guide. + // The type of distributed denial of service (DDoS) event that was observed. + // NETWORK indicates layer 3 and layer 4 events and APPLICATION indicates layer 7 + // events. AttackLayer AttackLayer - // Defines the Shield event property information that is provided. The + // Defines the DDoS attack property information that is provided. The // WORDPRESS_PINGBACK_REFLECTOR and WORDPRESS_PINGBACK_SOURCE values are valid only - // for WordPress reflective pingback events. + // for WordPress reflective pingback DDoS attacks. AttackPropertyIdentifier AttackPropertyIdentifier - // Contributor objects for the top five contributors to a Shield event. + // The array of contributor objects that includes the top five contributors to an + // attack. TopContributors []Contributor - // The total contributions made to this Shield event by all contributors. + // The total contributions made to this attack by all contributors, not just the + // five listed in the TopContributors list. Total int64 - // The unit used for the ContributorValue property. + // The unit of the Value of the contributions. Unit Unit noSmithyDocumentSerde @@ -218,8 +211,8 @@ type Contributor struct { noSmithyDocumentSerde } -// Contact information that the SRT can use to contact you if you have proactive -// engagement enabled, for escalations to the SRT and to initiate proactive +// Contact information that the DRT can use to contact you if you have proactive +// engagement enabled, for escalations to the DRT and to initiate proactive // customer support. type EmergencyContact struct { @@ -274,19 +267,18 @@ type Protection struct { // The ARN (Amazon Resource Name) of the protection. ProtectionArn *string - // The ARN (Amazon Resource Name) of the Amazon Web Services resource that is - // protected. + // The ARN (Amazon Resource Name) of the AWS resource that is protected. ResourceArn *string noSmithyDocumentSerde } -// A grouping of protected resources that you and Shield Advanced can monitor as a -// collective. This resource grouping improves the accuracy of detection and +// A grouping of protected resources that you and AWS Shield Advanced can monitor +// as a collective. This resource grouping improves the accuracy of detection and // reduces false positives. type ProtectionGroup struct { - // Defines how Shield combines resource data for the group in order to detect, + // Defines how AWS Shield combines resource data for the group in order to detect, // mitigate, and report events. // // * Sum - Use the total traffic across the group. @@ -300,7 +292,7 @@ type ProtectionGroup struct { // * Max - // Use the highest traffic from each resource. This is useful for resources that // don't share traffic and for resources that share that traffic in a non-uniform - // way. Examples include Amazon CloudFront distributions and origin resources for + // way. Examples include CloudFront distributions and origin resources for // CloudFront distributions. // // This member is required. @@ -408,7 +400,7 @@ type SubResourceSummary struct { noSmithyDocumentSerde } -// Information about the Shield Advanced subscription for an account. +// Information about the AWS Shield Advanced subscription for an account. type Subscription struct { // Limits settings for your subscription. @@ -429,11 +421,11 @@ type Subscription struct { // Specifies how many protections of a given type you can create. Limits []Limit - // If ENABLED, the Shield Response Team (SRT) will use email and phone to notify - // contacts about escalations to the SRT and to initiate proactive customer + // If ENABLED, the DDoS Response Team (DRT) will use email and phone to notify + // contacts about escalations to the DRT and to initiate proactive customer // support. If PENDING, you have requested proactive engagement and the request is // pending. The status changes to ENABLED when your request is fully processed. If - // DISABLED, the SRT will not proactively notify contacts about escalations or to + // DISABLED, the DRT will not proactively notify contacts about escalations or to // initiate proactive customer support. ProactiveEngagementStatus ProactiveEngagementStatus @@ -445,7 +437,7 @@ type Subscription struct { // The ARN (Amazon Resource Name) of the subscription. SubscriptionArn *string - // The length, in seconds, of the Shield Advanced subscription for the account. + // The length, in seconds, of the AWS Shield Advanced subscription for the account. TimeCommitmentInSeconds int64 noSmithyDocumentSerde @@ -505,14 +497,13 @@ type SummarizedCounter struct { noSmithyDocumentSerde } -// A tag associated with an Amazon Web Services resource. Tags are key:value pairs -// that you can use to categorize and manage your resources, for purposes like -// billing or other management. Typically, the tag key represents a category, such -// as "environment", and the tag value represents a specific value within that -// category, such as "test," "development," or "production". Or you might set the -// tag key to "customer" and the value to the customer name or ID. You can specify -// one or more tags to add to each Amazon Web Services resource, up to 50 tags for -// a resource. +// A tag associated with an AWS resource. Tags are key:value pairs that you can use +// to categorize and manage your resources, for purposes like billing or other +// management. Typically, the tag key represents a category, such as "environment", +// and the tag value represents a specific value within that category, such as +// "test," "development," or "production". Or you might set the tag key to +// "customer" and the value to the customer name or ID. You can specify one or more +// tags to add to each AWS resource, up to 50 tags for a resource. type Tag struct { // Part of the key:value pair that defines a tag. You can use a tag key to describe diff --git a/service/signer/go.mod b/service/signer/go.mod index bd7933484b6..c47c0c47e3f 100644 --- a/service/signer/go.mod +++ b/service/signer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/signer/go.sum b/service/signer/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/signer/go.sum +++ b/service/signer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sms/go.mod b/service/sms/go.mod index 619f6a7a1e0..d0bbd6eed7d 100644 --- a/service/sms/go.mod +++ b/service/sms/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sms/go.sum b/service/sms/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sms/go.sum +++ b/service/sms/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/snowball/go.mod b/service/snowball/go.mod index 2fd437a7e07..4b4bebe323e 100644 --- a/service/snowball/go.mod +++ b/service/snowball/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/snowball/go.sum b/service/snowball/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/snowball/go.sum +++ b/service/snowball/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sns/go.mod b/service/sns/go.mod index f5a6bc4c4bc..01067436855 100644 --- a/service/sns/go.mod +++ b/service/sns/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sns/go.sum b/service/sns/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sns/go.sum +++ b/service/sns/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sqs/go.mod b/service/sqs/go.mod index ec9eb2300a4..4f1d229ab39 100644 --- a/service/sqs/go.mod +++ b/service/sqs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sqs/go.sum b/service/sqs/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sqs/go.sum +++ b/service/sqs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ssm/go.mod b/service/ssm/go.mod index d13f2672c39..e947f5abf6e 100644 --- a/service/ssm/go.mod +++ b/service/ssm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssm/go.sum b/service/ssm/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/ssm/go.sum +++ b/service/ssm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ssmcontacts/go.mod b/service/ssmcontacts/go.mod index 03874628c54..7f1505c53dd 100644 --- a/service/ssmcontacts/go.mod +++ b/service/ssmcontacts/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssmcontacts/go.sum b/service/ssmcontacts/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/ssmcontacts/go.sum +++ b/service/ssmcontacts/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ssmincidents/go.mod b/service/ssmincidents/go.mod index 8814137c0ef..7ea744c3fde 100644 --- a/service/ssmincidents/go.mod +++ b/service/ssmincidents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssmincidents/go.sum b/service/ssmincidents/go.sum index 83be82a84e4..22181669cd3 100644 --- a/service/ssmincidents/go.sum +++ b/service/ssmincidents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sso/go.mod b/service/sso/go.mod index 9bd8dc84fad..36f892c2b75 100644 --- a/service/sso/go.mod +++ b/service/sso/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sso/go.sum b/service/sso/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sso/go.sum +++ b/service/sso/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go b/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go index 68250a6d866..a6d3ed2742f 100644 --- a/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go +++ b/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go @@ -12,8 +12,8 @@ import ( // Attaches an IAM managed policy ARN to a permission set. If the permission set is // already referenced by one or more account assignments, you will need to call -// ProvisionPermissionSet after this operation. Calling ProvisionPermissionSet -// applies the corresponding IAM policy updates to all assigned accounts. +// ProvisionPermissionSet after this action to apply the corresponding IAM policy +// updates to all assigned accounts. func (c *Client) AttachManagedPolicyToPermissionSet(ctx context.Context, params *AttachManagedPolicyToPermissionSetInput, optFns ...func(*Options)) (*AttachManagedPolicyToPermissionSetOutput, error) { if params == nil { params = &AttachManagedPolicyToPermissionSetInput{} @@ -32,8 +32,8 @@ func (c *Client) AttachManagedPolicyToPermissionSet(ctx context.Context, params type AttachManagedPolicyToPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_CreateAccountAssignment.go b/service/ssoadmin/api_op_CreateAccountAssignment.go index f6d345b9343..63eb3bcd61c 100644 --- a/service/ssoadmin/api_op_CreateAccountAssignment.go +++ b/service/ssoadmin/api_op_CreateAccountAssignment.go @@ -11,15 +11,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Assigns access to a principal for a specified Amazon Web Services account using -// a specified permission set. The term principal here refers to a user or group -// that is defined in Amazon Web Services SSO. As part of a successful -// CreateAccountAssignment call, the specified permission set will automatically be -// provisioned to the account in the form of an IAM policy. That policy is attached -// to the SSO-created IAM role. If the permission set is subsequently updated, the -// corresponding IAM policies attached to roles in your accounts will not be -// updated automatically. In this case, you must call ProvisionPermissionSet to -// make these updates. +// Assigns access to a principal for a specified AWS account using a specified +// permission set. The term principal here refers to a user or group that is +// defined in AWS SSO. As part of a successful CreateAccountAssignment call, the +// specified permission set will automatically be provisioned to the account in the +// form of an IAM policy attached to the SSO-created IAM role. If the permission +// set is subsequently updated, the corresponding IAM policies attached to roles in +// your accounts will not be updated automatically. In this case, you will need to +// call ProvisionPermissionSet to make these updates. func (c *Client) CreateAccountAssignment(ctx context.Context, params *CreateAccountAssignmentInput, optFns ...func(*Options)) (*CreateAccountAssignmentOutput, error) { if params == nil { params = &CreateAccountAssignmentInput{} @@ -38,8 +37,8 @@ func (c *Client) CreateAccountAssignment(ctx context.Context, params *CreateAcco type CreateAccountAssignmentInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string @@ -50,10 +49,10 @@ type CreateAccountAssignmentInput struct { // This member is required. PermissionSetArn *string - // An identifier for an object in Amazon Web Services SSO, such as a user or group. - // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For - // more information about PrincipalIds in Amazon Web Services SSO, see the Amazon - // Web Services SSO Identity Store API Reference. + // An identifier for an object in AWS SSO, such as a user or group. PrincipalIds + // are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more + // information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API + // Reference. // // This member is required. PrincipalId *string @@ -63,8 +62,8 @@ type CreateAccountAssignmentInput struct { // This member is required. PrincipalType types.PrincipalType - // TargetID is an Amazon Web Services account identifier, typically a 10-12 digit - // string (For example, 123456789012). + // TargetID is an AWS account identifier, typically a 10-12 digit string (For + // example, 123456789012). // // This member is required. TargetId *string diff --git a/service/ssoadmin/api_op_CreateInstanceAccessControlAttributeConfiguration.go b/service/ssoadmin/api_op_CreateInstanceAccessControlAttributeConfiguration.go index 0d430ca5ab3..a79b104fd54 100644 --- a/service/ssoadmin/api_op_CreateInstanceAccessControlAttributeConfiguration.go +++ b/service/ssoadmin/api_op_CreateInstanceAccessControlAttributeConfiguration.go @@ -11,11 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables the attributes-based access control (ABAC) feature for the specified -// Amazon Web Services SSO instance. You can also specify new attributes to add to -// your ABAC configuration during the enabling process. For more information about -// ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User -// Guide. +// Enables the attributes-based access control (ABAC) feature for the specified AWS +// SSO instance. You can also specify new attributes to add to your ABAC +// configuration during the enabling process. For more information about ABAC, see +// Attribute-Based Access Control in the AWS SSO User Guide. func (c *Client) CreateInstanceAccessControlAttributeConfiguration(ctx context.Context, params *CreateInstanceAccessControlAttributeConfigurationInput, optFns ...func(*Options)) (*CreateInstanceAccessControlAttributeConfigurationOutput, error) { if params == nil { params = &CreateInstanceAccessControlAttributeConfigurationInput{} @@ -33,13 +32,12 @@ func (c *Client) CreateInstanceAccessControlAttributeConfiguration(ctx context.C type CreateInstanceAccessControlAttributeConfigurationInput struct { - // Specifies the Amazon Web Services SSO identity store attributes to add to your - // ABAC configuration. When using an external identity provider as an identity - // source, you can pass attributes through the SAML assertion. Doing so provides an - // alternative to configuring attributes from the Amazon Web Services SSO identity - // store. If a SAML assertion passes any of these attributes, Amazon Web Services - // SSO will replace the attribute value with the value from the Amazon Web Services - // SSO identity store. + // Specifies the AWS SSO identity store attributes to add to your ABAC + // configuration. When using an external identity provider as an identity source, + // you can pass attributes through the SAML assertion as an alternative to + // configuring attributes from the AWS SSO identity store. If a SAML assertion + // passes any of these attributes, AWS SSO will replace the attribute value with + // the value from the AWS SSO identity store. // // This member is required. InstanceAccessControlAttributeConfiguration *types.InstanceAccessControlAttributeConfiguration diff --git a/service/ssoadmin/api_op_CreatePermissionSet.go b/service/ssoadmin/api_op_CreatePermissionSet.go index 303ff27c4aa..090a8303eb5 100644 --- a/service/ssoadmin/api_op_CreatePermissionSet.go +++ b/service/ssoadmin/api_op_CreatePermissionSet.go @@ -12,8 +12,7 @@ import ( ) // Creates a permission set within a specified SSO instance. To grant users and -// groups access to Amazon Web Services account resources, use -// CreateAccountAssignment. +// groups access to AWS account resources, use CreateAccountAssignment. func (c *Client) CreatePermissionSet(ctx context.Context, params *CreatePermissionSetInput, optFns ...func(*Options)) (*CreatePermissionSetOutput, error) { if params == nil { params = &CreatePermissionSetInput{} @@ -32,8 +31,8 @@ func (c *Client) CreatePermissionSet(ctx context.Context, params *CreatePermissi type CreatePermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string @@ -62,7 +61,7 @@ type CreatePermissionSetInput struct { type CreatePermissionSetOutput struct { - // Defines the level of access on an Amazon Web Services account. + // Defines the level of access on an AWS account. PermissionSet *types.PermissionSet // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_DeleteAccountAssignment.go b/service/ssoadmin/api_op_DeleteAccountAssignment.go index a0d38d5806a..57809e4e032 100644 --- a/service/ssoadmin/api_op_DeleteAccountAssignment.go +++ b/service/ssoadmin/api_op_DeleteAccountAssignment.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a principal's access from a specified Amazon Web Services account using -// a specified permission set. +// Deletes a principal's access from a specified AWS account using a specified +// permission set. func (c *Client) DeleteAccountAssignment(ctx context.Context, params *DeleteAccountAssignmentInput, optFns ...func(*Options)) (*DeleteAccountAssignmentOutput, error) { if params == nil { params = &DeleteAccountAssignmentInput{} @@ -31,8 +31,8 @@ func (c *Client) DeleteAccountAssignment(ctx context.Context, params *DeleteAcco type DeleteAccountAssignmentInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string @@ -42,10 +42,10 @@ type DeleteAccountAssignmentInput struct { // This member is required. PermissionSetArn *string - // An identifier for an object in Amazon Web Services SSO, such as a user or group. - // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For - // more information about PrincipalIds in Amazon Web Services SSO, see the Amazon - // Web Services SSO Identity Store API Reference. + // An identifier for an object in AWS SSO, such as a user or group. PrincipalIds + // are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more + // information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API + // Reference. // // This member is required. PrincipalId *string @@ -55,8 +55,8 @@ type DeleteAccountAssignmentInput struct { // This member is required. PrincipalType types.PrincipalType - // TargetID is an Amazon Web Services account identifier, typically a 10-12 digit - // string (For example, 123456789012). + // TargetID is an AWS account identifier, typically a 10-12 digit string (For + // example, 123456789012). // // This member is required. TargetId *string diff --git a/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go b/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go index 1b15d5082ec..eb2729a4ea8 100644 --- a/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go +++ b/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) DeleteInlinePolicyFromPermissionSet(ctx context.Context, params type DeleteInlinePolicyFromPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DeleteInstanceAccessControlAttributeConfiguration.go b/service/ssoadmin/api_op_DeleteInstanceAccessControlAttributeConfiguration.go index c095933195f..ccbd602eea6 100644 --- a/service/ssoadmin/api_op_DeleteInstanceAccessControlAttributeConfiguration.go +++ b/service/ssoadmin/api_op_DeleteInstanceAccessControlAttributeConfiguration.go @@ -11,11 +11,11 @@ import ( ) // Disables the attributes-based access control (ABAC) feature for the specified -// Amazon Web Services SSO instance and deletes all of the attribute mappings that -// have been configured. Once deleted, any attributes that are received from an -// identity source and any custom attributes you have previously configured will -// not be passed. For more information about ABAC, see Attribute-Based Access -// Control in the Amazon Web Services SSO User Guide. +// AWS SSO instance and deletes all of the attribute mappings that have been +// configured. Once deleted, any attributes that are received from an identity +// source and any custom attributes you have previously configured will not be +// passed. For more information about ABAC, see Attribute-Based Access Control in +// the AWS SSO User Guide. func (c *Client) DeleteInstanceAccessControlAttributeConfiguration(ctx context.Context, params *DeleteInstanceAccessControlAttributeConfigurationInput, optFns ...func(*Options)) (*DeleteInstanceAccessControlAttributeConfigurationOutput, error) { if params == nil { params = &DeleteInstanceAccessControlAttributeConfigurationInput{} diff --git a/service/ssoadmin/api_op_DeletePermissionSet.go b/service/ssoadmin/api_op_DeletePermissionSet.go index 73eaa6f6106..20c35d692f7 100644 --- a/service/ssoadmin/api_op_DeletePermissionSet.go +++ b/service/ssoadmin/api_op_DeletePermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) DeletePermissionSet(ctx context.Context, params *DeletePermissi type DeletePermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go b/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go index 024d33d5c13..022f35967d1 100644 --- a/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go +++ b/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go @@ -35,8 +35,8 @@ type DescribeAccountAssignmentCreationStatusInput struct { AccountAssignmentCreationRequestId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go b/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go index bbc5059dfa7..8e90b96a350 100644 --- a/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go +++ b/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go @@ -35,8 +35,8 @@ type DescribeAccountAssignmentDeletionStatusInput struct { AccountAssignmentDeletionRequestId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DescribeInstanceAccessControlAttributeConfiguration.go b/service/ssoadmin/api_op_DescribeInstanceAccessControlAttributeConfiguration.go index b41482bcd95..ef7c0ee7822 100644 --- a/service/ssoadmin/api_op_DescribeInstanceAccessControlAttributeConfiguration.go +++ b/service/ssoadmin/api_op_DescribeInstanceAccessControlAttributeConfiguration.go @@ -11,12 +11,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the list of Amazon Web Services SSO identity store attributes that have -// been configured to work with attributes-based access control (ABAC) for the -// specified Amazon Web Services SSO instance. This will not return attributes -// configured and sent by an external identity provider. For more information about -// ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User -// Guide. +// Returns the list of AWS SSO identity store attributes that have been configured +// to work with attributes-based access control (ABAC) for the specified AWS SSO +// instance. This will not return attributes configured and sent by an external +// identity provider. For more information about ABAC, see Attribute-Based Access +// Control in the AWS SSO User Guide. func (c *Client) DescribeInstanceAccessControlAttributeConfiguration(ctx context.Context, params *DescribeInstanceAccessControlAttributeConfigurationInput, optFns ...func(*Options)) (*DescribeInstanceAccessControlAttributeConfigurationOutput, error) { if params == nil { params = &DescribeInstanceAccessControlAttributeConfigurationInput{} @@ -44,8 +43,8 @@ type DescribeInstanceAccessControlAttributeConfigurationInput struct { type DescribeInstanceAccessControlAttributeConfigurationOutput struct { - // Gets the list of Amazon Web Services SSO identity store attributes that have - // been added to your ABAC configuration. + // Gets the list of AWS SSO identity store attributes added to your ABAC + // configuration. InstanceAccessControlAttributeConfiguration *types.InstanceAccessControlAttributeConfiguration // The status of the attribute configuration process. diff --git a/service/ssoadmin/api_op_DescribePermissionSet.go b/service/ssoadmin/api_op_DescribePermissionSet.go index b5842571657..6ff11894d3e 100644 --- a/service/ssoadmin/api_op_DescribePermissionSet.go +++ b/service/ssoadmin/api_op_DescribePermissionSet.go @@ -30,8 +30,8 @@ func (c *Client) DescribePermissionSet(ctx context.Context, params *DescribePerm type DescribePermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string @@ -46,7 +46,7 @@ type DescribePermissionSetInput struct { type DescribePermissionSetOutput struct { - // Describes the level of access on an Amazon Web Services account. + // Describes the level of access on an AWS account. PermissionSet *types.PermissionSet // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go b/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go index 834effd7c65..889da2fd6c1 100644 --- a/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go +++ b/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go @@ -30,8 +30,8 @@ func (c *Client) DescribePermissionSetProvisioningStatus(ctx context.Context, pa type DescribePermissionSetProvisioningStatusInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go b/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go index 29e6706d7b0..ae2d4202355 100644 --- a/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go +++ b/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) DetachManagedPolicyFromPermissionSet(ctx context.Context, param type DetachManagedPolicyFromPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go b/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go index 9a5008befaf..88a24c9f9ea 100644 --- a/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go +++ b/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) GetInlinePolicyForPermissionSet(ctx context.Context, params *Ge type GetInlinePolicyForPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go b/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go index b81570e7ff0..3f77f996909 100644 --- a/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go +++ b/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the status of the Amazon Web Services account assignment creation requests -// for a specified SSO instance. +// Lists the status of the AWS account assignment creation requests for a specified +// SSO instance. func (c *Client) ListAccountAssignmentCreationStatus(ctx context.Context, params *ListAccountAssignmentCreationStatusInput, optFns ...func(*Options)) (*ListAccountAssignmentCreationStatusOutput, error) { if params == nil { params = &ListAccountAssignmentCreationStatusInput{} @@ -32,8 +32,8 @@ func (c *Client) ListAccountAssignmentCreationStatus(ctx context.Context, params type ListAccountAssignmentCreationStatusInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go b/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go index d85464be04f..bf320d4422a 100644 --- a/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go +++ b/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the status of the Amazon Web Services account assignment deletion requests -// for a specified SSO instance. +// Lists the status of the AWS account assignment deletion requests for a specified +// SSO instance. func (c *Client) ListAccountAssignmentDeletionStatus(ctx context.Context, params *ListAccountAssignmentDeletionStatusInput, optFns ...func(*Options)) (*ListAccountAssignmentDeletionStatusOutput, error) { if params == nil { params = &ListAccountAssignmentDeletionStatusInput{} @@ -32,8 +32,8 @@ func (c *Client) ListAccountAssignmentDeletionStatus(ctx context.Context, params type ListAccountAssignmentDeletionStatusInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListAccountAssignments.go b/service/ssoadmin/api_op_ListAccountAssignments.go index 3219bd88958..b5ce7223525 100644 --- a/service/ssoadmin/api_op_ListAccountAssignments.go +++ b/service/ssoadmin/api_op_ListAccountAssignments.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the assignee of the specified Amazon Web Services account with the -// specified permission set. +// Lists the assignee of the specified AWS account with the specified permission +// set. func (c *Client) ListAccountAssignments(ctx context.Context, params *ListAccountAssignmentsInput, optFns ...func(*Options)) (*ListAccountAssignmentsOutput, error) { if params == nil { params = &ListAccountAssignmentsInput{} @@ -31,15 +31,14 @@ func (c *Client) ListAccountAssignments(ctx context.Context, params *ListAccount type ListAccountAssignmentsInput struct { - // The identifier of the Amazon Web Services account from which to list the - // assignments. + // The identifier of the AWS account from which to list the assignments. // // This member is required. AccountId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string @@ -61,8 +60,7 @@ type ListAccountAssignmentsInput struct { type ListAccountAssignmentsOutput struct { - // The list of assignments that match the input Amazon Web Services account and - // permission set. + // The list of assignments that match the input AWS account and permission set. AccountAssignments []types.AccountAssignment // The pagination token for the list API. Initially the value is null. Use the diff --git a/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go b/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go index 3b287050fa1..39f94f82373 100644 --- a/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go +++ b/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the Amazon Web Services accounts where the specified permission set is -// provisioned. +// Lists all the AWS accounts where the specified permission set is provisioned. func (c *Client) ListAccountsForProvisionedPermissionSet(ctx context.Context, params *ListAccountsForProvisionedPermissionSetInput, optFns ...func(*Options)) (*ListAccountsForProvisionedPermissionSetOutput, error) { if params == nil { params = &ListAccountsForProvisionedPermissionSetInput{} @@ -32,14 +31,14 @@ func (c *Client) ListAccountsForProvisionedPermissionSet(ctx context.Context, pa type ListAccountsForProvisionedPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string - // The ARN of the PermissionSet from which the associated Amazon Web Services - // accounts will be listed. + // The ARN of the PermissionSet from which the associated AWS accounts will be + // listed. // // This member is required. PermissionSetArn *string @@ -51,7 +50,7 @@ type ListAccountsForProvisionedPermissionSetInput struct { // output of previous API calls to make subsequent calls. NextToken *string - // The permission set provisioning status for an Amazon Web Services account. + // The permission set provisioning status for an AWS account. ProvisioningStatus types.ProvisioningStatus noSmithyDocumentSerde @@ -59,7 +58,7 @@ type ListAccountsForProvisionedPermissionSetInput struct { type ListAccountsForProvisionedPermissionSetOutput struct { - // The list of Amazon Web Services AccountIds. + // The list of AWS AccountIds. AccountIds []string // The pagination token for the list API. Initially the value is null. Use the diff --git a/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go b/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go index e5158fadae6..2cf3c7667d5 100644 --- a/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go +++ b/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go @@ -31,8 +31,8 @@ func (c *Client) ListManagedPoliciesInPermissionSet(ctx context.Context, params type ListManagedPoliciesInPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go b/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go index 4172e0ccdd1..57415ab54b4 100644 --- a/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go +++ b/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go @@ -32,8 +32,8 @@ func (c *Client) ListPermissionSetProvisioningStatus(ctx context.Context, params type ListPermissionSetProvisioningStatusInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListPermissionSets.go b/service/ssoadmin/api_op_ListPermissionSets.go index 44a3dbcdf20..611ec77122d 100644 --- a/service/ssoadmin/api_op_ListPermissionSets.go +++ b/service/ssoadmin/api_op_ListPermissionSets.go @@ -30,8 +30,8 @@ func (c *Client) ListPermissionSets(ctx context.Context, params *ListPermissionS type ListPermissionSetsInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string @@ -52,7 +52,7 @@ type ListPermissionSetsOutput struct { // output of previous API calls to make subsequent calls. NextToken *string - // Defines the level of access on an Amazon Web Services account. + // Defines the level of access on an AWS account. PermissionSets []string // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go b/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go index 53a2f6e4b95..226b04a114b 100644 --- a/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go +++ b/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the permission sets that are provisioned to a specified Amazon Web -// Services account. +// Lists all the permission sets that are provisioned to a specified AWS account. func (c *Client) ListPermissionSetsProvisionedToAccount(ctx context.Context, params *ListPermissionSetsProvisionedToAccountInput, optFns ...func(*Options)) (*ListPermissionSetsProvisionedToAccountOutput, error) { if params == nil { params = &ListPermissionSetsProvisionedToAccountInput{} @@ -31,15 +30,14 @@ func (c *Client) ListPermissionSetsProvisionedToAccount(ctx context.Context, par type ListPermissionSetsProvisionedToAccountInput struct { - // The identifier of the Amazon Web Services account from which to list the - // assignments. + // The identifier of the AWS account from which to list the assignments. // // This member is required. AccountId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string @@ -63,7 +61,7 @@ type ListPermissionSetsProvisionedToAccountOutput struct { // output of previous API calls to make subsequent calls. NextToken *string - // Defines the level of access that an Amazon Web Services account has. + // Defines the level of access that an AWS account has. PermissionSets []string // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_ListTagsForResource.go b/service/ssoadmin/api_op_ListTagsForResource.go index 99590854337..0abce7a5f99 100644 --- a/service/ssoadmin/api_op_ListTagsForResource.go +++ b/service/ssoadmin/api_op_ListTagsForResource.go @@ -31,8 +31,8 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes type ListTagsForResourceInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ProvisionPermissionSet.go b/service/ssoadmin/api_op_ProvisionPermissionSet.go index 5fa4f202aee..0bf92982dbf 100644 --- a/service/ssoadmin/api_op_ProvisionPermissionSet.go +++ b/service/ssoadmin/api_op_ProvisionPermissionSet.go @@ -31,8 +31,8 @@ func (c *Client) ProvisionPermissionSet(ctx context.Context, params *ProvisionPe type ProvisionPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string @@ -47,8 +47,8 @@ type ProvisionPermissionSetInput struct { // This member is required. TargetType types.ProvisionTargetType - // TargetID is an Amazon Web Services account identifier, typically a 10-12 digit - // string (For example, 123456789012). + // TargetID is an AWS account identifier, typically a 10-12 digit string (For + // example, 123456789012). TargetId *string noSmithyDocumentSerde diff --git a/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go b/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go index 0637e779164..4c3323529ef 100644 --- a/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go +++ b/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go @@ -37,8 +37,8 @@ type PutInlinePolicyToPermissionSetInput struct { InlinePolicy *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_TagResource.go b/service/ssoadmin/api_op_TagResource.go index 26b263dfb31..8223ceb925d 100644 --- a/service/ssoadmin/api_op_TagResource.go +++ b/service/ssoadmin/api_op_TagResource.go @@ -30,8 +30,8 @@ func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optF type TagResourceInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_UntagResource.go b/service/ssoadmin/api_op_UntagResource.go index 9865f832c18..73b340405a1 100644 --- a/service/ssoadmin/api_op_UntagResource.go +++ b/service/ssoadmin/api_op_UntagResource.go @@ -29,8 +29,8 @@ func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, type UntagResourceInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_UpdateInstanceAccessControlAttributeConfiguration.go b/service/ssoadmin/api_op_UpdateInstanceAccessControlAttributeConfiguration.go index df2706c7838..472d8c7b473 100644 --- a/service/ssoadmin/api_op_UpdateInstanceAccessControlAttributeConfiguration.go +++ b/service/ssoadmin/api_op_UpdateInstanceAccessControlAttributeConfiguration.go @@ -11,15 +11,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the Amazon Web Services SSO identity store attributes that you can use -// with the Amazon Web Services SSO instance for attributes-based access control -// (ABAC). When using an external identity provider as an identity source, you can -// pass attributes through the SAML assertion as an alternative to configuring -// attributes from the Amazon Web Services SSO identity store. If a SAML assertion -// passes any of these attributes, Amazon Web Services SSO replaces the attribute -// value with the value from the Amazon Web Services SSO identity store. For more -// information about ABAC, see Attribute-Based Access Control in the Amazon Web -// Services SSO User Guide. +// Updates the AWS SSO identity store attributes to use with the AWS SSO instance +// for attributes-based access control (ABAC). When using an external identity +// provider as an identity source, you can pass attributes through the SAML +// assertion as an alternative to configuring attributes from the AWS SSO identity +// store. If a SAML assertion passes any of these attributes, AWS SSO will replace +// the attribute value with the value from the AWS SSO identity store. For more +// information about ABAC, see Attribute-Based Access Control in the AWS SSO User +// Guide. func (c *Client) UpdateInstanceAccessControlAttributeConfiguration(ctx context.Context, params *UpdateInstanceAccessControlAttributeConfigurationInput, optFns ...func(*Options)) (*UpdateInstanceAccessControlAttributeConfigurationOutput, error) { if params == nil { params = &UpdateInstanceAccessControlAttributeConfigurationInput{} diff --git a/service/ssoadmin/api_op_UpdatePermissionSet.go b/service/ssoadmin/api_op_UpdatePermissionSet.go index f1dec8e6b90..861cb29e7e5 100644 --- a/service/ssoadmin/api_op_UpdatePermissionSet.go +++ b/service/ssoadmin/api_op_UpdatePermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) UpdatePermissionSet(ctx context.Context, params *UpdatePermissi type UpdatePermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/doc.go b/service/ssoadmin/doc.go index 4d30da344a0..0641179bfa8 100644 --- a/service/ssoadmin/doc.go +++ b/service/ssoadmin/doc.go @@ -3,16 +3,4 @@ // Package ssoadmin provides the API client, operations, and parameter types for // AWS Single Sign-On Admin. // -// Amazon Web Services Single Sign On (SSO) is a cloud SSO service that makes it -// easy to centrally manage SSO access to multiple Amazon Web Services accounts and -// business applications. This guide provides information on SSO operations which -// could be used for access management of Amazon Web Services accounts. For -// information about Amazon Web Services SSO features, see the Amazon Web Services -// Single Sign-On User Guide -// (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html). Many -// operations in the SSO APIs rely on identifiers for users and groups, known as -// principals. For more information about how to work with principals and principal -// IDs in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store -// API Reference -// (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/welcome.html). package ssoadmin diff --git a/service/ssoadmin/go.mod b/service/ssoadmin/go.mod index 451fb2b59c5..59abc1e8d6d 100644 --- a/service/ssoadmin/go.mod +++ b/service/ssoadmin/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssoadmin/go.sum b/service/ssoadmin/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/ssoadmin/go.sum +++ b/service/ssoadmin/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ssoadmin/types/types.go b/service/ssoadmin/types/types.go index 6c7f78b51c3..c5fe65bfca8 100644 --- a/service/ssoadmin/types/types.go +++ b/service/ssoadmin/types/types.go @@ -7,17 +7,17 @@ import ( "time" ) -// These are Amazon Web Services SSO identity store attributes that you can -// configure for use in attributes-based access control (ABAC). You can create -// permissions policies that determine who can access your Amazon Web Services -// resources based upon the configured attribute values. When you enable ABAC and -// specify AccessControlAttributes, Amazon Web Services SSO passes the attribute -// values of the authenticated user into IAM for use in policy evaluation. +// These are AWS SSO identity store attributes that you can configure for use in +// attributes-based access control (ABAC). You can create permission policies that +// determine who can access your AWS resources based upon the configured attribute +// value(s). When you enable ABAC and specify AccessControlAttributes, AWS SSO +// passes the attribute(s) value of the authenticated user into IAM for use in +// policy evaluation. type AccessControlAttribute struct { // The name of the attribute associated with your identities in your identity // source. This is used to map a specified attribute in your identity source with - // an attribute in Amazon Web Services SSO. + // an attribute in AWS SSO. // // This member is required. Key *string @@ -33,8 +33,7 @@ type AccessControlAttribute struct { // The value used for mapping a specified attribute to an identity source. type AccessControlAttributeValue struct { - // The identity source to use when mapping a specified attribute to Amazon Web - // Services SSO. + // The identity source to use when mapping a specified attribute to AWS SSO. // // This member is required. Source []string @@ -42,23 +41,22 @@ type AccessControlAttributeValue struct { noSmithyDocumentSerde } -// The assignment that indicates a principal's limited access to a specified Amazon -// Web Services account with a specified permission set. The term principal here -// refers to a user or group that is defined in Amazon Web Services SSO. +// The assignment that indicates a principal's limited access to a specified AWS +// account with a specified permission set. The term principal here refers to a +// user or group that is defined in AWS SSO. type AccountAssignment struct { - // The identifier of the Amazon Web Services account. + // The identifier of the AWS account. AccountId *string // The ARN of the permission set. For more information about ARNs, see Amazon - // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon - // Web Services General Reference. + // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. PermissionSetArn *string - // An identifier for an object in Amazon Web Services SSO, such as a user or group. - // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For - // more information about PrincipalIds in Amazon Web Services SSO, see the Amazon - // Web Services SSO Identity Store API Reference. + // An identifier for an object in AWS SSO, such as a user or group. PrincipalIds + // are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more + // information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API + // Reference. PrincipalId *string // The entity type for which the assignment will be created. @@ -78,14 +76,13 @@ type AccountAssignmentOperationStatus struct { FailureReason *string // The ARN of the permission set. For more information about ARNs, see Amazon - // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon - // Web Services General Reference. + // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. PermissionSetArn *string - // An identifier for an object in Amazon Web Services SSO, such as a user or group. - // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For - // more information about PrincipalIds in Amazon Web Services SSO, see the Amazon - // Web Services SSO Identity Store API Reference. + // An identifier for an object in AWS SSO, such as a user or group. PrincipalIds + // are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more + // information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API + // Reference. PrincipalId *string // The entity type for which the assignment will be created. @@ -98,8 +95,8 @@ type AccountAssignmentOperationStatus struct { // The status of the permission set provisioning process. Status StatusValues - // TargetID is an Amazon Web Services account identifier, typically a 10-12 digit - // string (For example, 123456789012). + // TargetID is an AWS account identifier, typically a 10-12 digit string (For + // example, 123456789012). TargetId *string // The entity type for which the assignment will be created. @@ -128,8 +125,7 @@ type AccountAssignmentOperationStatusMetadata struct { type AttachedManagedPolicy struct { // The ARN of the IAM managed policy. For more information about ARNs, see Amazon - // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon - // Web Services General Reference. + // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. Arn *string // The name of the IAM managed policy. @@ -142,8 +138,8 @@ type AttachedManagedPolicy struct { // configuration. type InstanceAccessControlAttributeConfiguration struct { - // Lists the attributes that are configured for ABAC in the specified Amazon Web - // Services SSO instance. + // Lists the attributes that are configured for ABAC in the specified AWS SSO + // instance. // // This member is required. AccessControlAttributes []AccessControlAttribute @@ -158,8 +154,8 @@ type InstanceMetadata struct { IdentityStoreId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - // Service Namespaces in the Amazon Web Services General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service + // Namespaces in the AWS General Reference. InstanceArn *string noSmithyDocumentSerde @@ -187,8 +183,7 @@ type PermissionSet struct { Name *string // The ARN of the permission set. For more information about ARNs, see Amazon - // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon - // Web Services General Reference. + // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. PermissionSetArn *string // Used to redirect users within the application during the federation @@ -206,8 +201,7 @@ type PermissionSet struct { // a specified permission set. type PermissionSetProvisioningStatus struct { - // The identifier of the Amazon Web Services account from which to list the - // assignments. + // The identifier of the AWS account from which to list the assignments. AccountId *string // The date that the permission set was created. @@ -217,8 +211,8 @@ type PermissionSetProvisioningStatus struct { FailureReason *string // The ARN of the permission set that is being provisioned. For more information - // about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service - // Namespaces in the Amazon Web Services General Reference. + // about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the + // AWS General Reference. PermissionSetArn *string // The identifier for tracking the request operation that is generated by the @@ -248,8 +242,8 @@ type PermissionSetProvisioningStatusMetadata struct { } // A set of key-value pairs that are used to manage the resource. Tags can only be -// applied to permission sets and cannot be applied to corresponding roles that -// Amazon Web Services SSO creates in Amazon Web Services accounts. +// applied to permission sets and cannot be applied to corresponding roles that AWS +// SSO creates in AWS accounts. type Tag struct { // The key for the tag. diff --git a/service/ssooidc/go.mod b/service/ssooidc/go.mod index a40bf34c677..22a24d97019 100644 --- a/service/ssooidc/go.mod +++ b/service/ssooidc/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssooidc/go.sum b/service/ssooidc/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/ssooidc/go.sum +++ b/service/ssooidc/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/storagegateway/go.mod b/service/storagegateway/go.mod index 8a6201d5a07..3f7eafb5bd1 100644 --- a/service/storagegateway/go.mod +++ b/service/storagegateway/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/storagegateway/go.sum b/service/storagegateway/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/storagegateway/go.sum +++ b/service/storagegateway/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sts/go.mod b/service/sts/go.mod index 86563b24dbc..aa9b1a5d99c 100644 --- a/service/sts/go.mod +++ b/service/sts/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sts/go.sum b/service/sts/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/sts/go.sum +++ b/service/sts/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/support/go.mod b/service/support/go.mod index 45a1917b78a..6eee9fd5412 100644 --- a/service/support/go.mod +++ b/service/support/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/support/go.sum b/service/support/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/support/go.sum +++ b/service/support/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/swf/go.mod b/service/swf/go.mod index 71ca4e90304..2fb6b2203dd 100644 --- a/service/swf/go.mod +++ b/service/swf/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/swf/go.sum b/service/swf/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/swf/go.sum +++ b/service/swf/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/synthetics/api_op_CreateCanary.go b/service/synthetics/api_op_CreateCanary.go index 1017662a36c..2d999243eac 100644 --- a/service/synthetics/api_op_CreateCanary.go +++ b/service/synthetics/api_op_CreateCanary.go @@ -46,8 +46,7 @@ func (c *Client) CreateCanary(ctx context.Context, params *CreateCanaryInput, op type CreateCanaryInput struct { // The location in Amazon S3 where Synthetics stores artifacts from the test runs - // of this canary. Artifacts include the log file, screenshots, and HAR files. The - // name of the S3 bucket can't include a period (.). + // of this canary. Artifacts include the log file, screenshots, and HAR files. // // This member is required. ArtifactS3Location *string diff --git a/service/synthetics/api_op_TagResource.go b/service/synthetics/api_op_TagResource.go index 24a3fb6d992..c6f7b81eebb 100644 --- a/service/synthetics/api_op_TagResource.go +++ b/service/synthetics/api_op_TagResource.go @@ -13,13 +13,13 @@ import ( // Assigns one or more tags (key-value pairs) to the specified canary. Tags can // help you organize and categorize your resources. You can also use them to scope // user permissions, by granting a user permission to access or change only -// resources with certain tag values. Tags don't have any semantic meaning to -// Amazon Web Services and are interpreted strictly as strings of characters. You -// can use the TagResource action with a canary that already has tags. If you -// specify a new tag key for the alarm, this tag is appended to the list of tags -// associated with the alarm. If you specify a tag key that is already associated -// with the alarm, the new tag value that you specify replaces the previous value -// for that tag. You can associate as many as 50 tags with a canary. +// resources with certain tag values. Tags don't have any semantic meaning to AWS +// and are interpreted strictly as strings of characters. You can use the +// TagResource action with a canary that already has tags. If you specify a new tag +// key for the alarm, this tag is appended to the list of tags associated with the +// alarm. If you specify a tag key that is already associated with the alarm, the +// new tag value that you specify replaces the previous value for that tag. You can +// associate as many as 50 tags with a canary. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/synthetics/api_op_UpdateCanary.go b/service/synthetics/api_op_UpdateCanary.go index fae902c310d..bb23ce2adc3 100644 --- a/service/synthetics/api_op_UpdateCanary.go +++ b/service/synthetics/api_op_UpdateCanary.go @@ -86,8 +86,6 @@ type UpdateCanaryInput struct { // The number of days to retain data about successful runs of this canary. SuccessRetentionPeriodInDays *int32 - VisualReference *types.VisualReferenceInput - // If this canary is to test an endpoint in a VPC, this structure contains // information about the subnet and security groups of the VPC endpoint. For more // information, see Running a Canary in a VPC diff --git a/service/synthetics/deserializers.go b/service/synthetics/deserializers.go index 041b1267688..23ce751d8c6 100644 --- a/service/synthetics/deserializers.go +++ b/service/synthetics/deserializers.go @@ -1801,121 +1801,6 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo return output } -func awsRestjson1_deserializeDocumentBaseScreenshot(v **types.BaseScreenshot, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.BaseScreenshot - if *v == nil { - sv = &types.BaseScreenshot{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "IgnoreCoordinates": - if err := awsRestjson1_deserializeDocumentBaseScreenshotIgnoreCoordinates(&sv.IgnoreCoordinates, value); err != nil { - return err - } - - case "ScreenshotName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ScreenshotName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentBaseScreenshotIgnoreCoordinates(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BaseScreenshotConfigIgnoreCoordinate to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentBaseScreenshots(v *[]types.BaseScreenshot, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.BaseScreenshot - if *v == nil { - cv = []types.BaseScreenshot{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.BaseScreenshot - destAddr := &col - if err := awsRestjson1_deserializeDocumentBaseScreenshot(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - func awsRestjson1_deserializeDocumentCanaries(v *[]types.Canary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2116,11 +2001,6 @@ func awsRestjson1_deserializeDocumentCanary(v **types.Canary, value interface{}) return err } - case "VisualReference": - if err := awsRestjson1_deserializeDocumentVisualReferenceOutput(&sv.VisualReference, value); err != nil { - return err - } - case "VpcConfig": if err := awsRestjson1_deserializeDocumentVpcConfigOutput(&sv.VpcConfig, value); err != nil { return err @@ -3107,51 +2987,6 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc return nil } -func awsRestjson1_deserializeDocumentVisualReferenceOutput(v **types.VisualReferenceOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.VisualReferenceOutput - if *v == nil { - sv = &types.VisualReferenceOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "BaseCanaryRunId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.BaseCanaryRunId = ptr.String(jtv) - } - - case "BaseScreenshots": - if err := awsRestjson1_deserializeDocumentBaseScreenshots(&sv.BaseScreenshots, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsRestjson1_deserializeDocumentVpcConfigOutput(v **types.VpcConfigOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/synthetics/go.mod b/service/synthetics/go.mod index 2f9312c1a44..c1a56d73297 100644 --- a/service/synthetics/go.mod +++ b/service/synthetics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/synthetics/go.sum b/service/synthetics/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/synthetics/go.sum +++ b/service/synthetics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/synthetics/serializers.go b/service/synthetics/serializers.go index 669d717de06..c3734febc2b 100644 --- a/service/synthetics/serializers.go +++ b/service/synthetics/serializers.go @@ -998,13 +998,6 @@ func awsRestjson1_serializeOpDocumentUpdateCanaryInput(v *UpdateCanaryInput, val ok.Integer(*v.SuccessRetentionPeriodInDays) } - if v.VisualReference != nil { - ok := object.Key("VisualReference") - if err := awsRestjson1_serializeDocumentVisualReferenceInput(v.VisualReference, ok); err != nil { - return err - } - } - if v.VpcConfig != nil { ok := object.Key("VpcConfig") if err := awsRestjson1_serializeDocumentVpcConfigInput(v.VpcConfig, ok); err != nil { @@ -1015,49 +1008,6 @@ func awsRestjson1_serializeOpDocumentUpdateCanaryInput(v *UpdateCanaryInput, val return nil } -func awsRestjson1_serializeDocumentBaseScreenshot(v *types.BaseScreenshot, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.IgnoreCoordinates != nil { - ok := object.Key("IgnoreCoordinates") - if err := awsRestjson1_serializeDocumentBaseScreenshotIgnoreCoordinates(v.IgnoreCoordinates, ok); err != nil { - return err - } - } - - if v.ScreenshotName != nil { - ok := object.Key("ScreenshotName") - ok.String(*v.ScreenshotName) - } - - return nil -} - -func awsRestjson1_serializeDocumentBaseScreenshotIgnoreCoordinates(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsRestjson1_serializeDocumentBaseScreenshots(v []types.BaseScreenshot, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentBaseScreenshot(&v[i], av); err != nil { - return err - } - } - return nil -} - func awsRestjson1_serializeDocumentCanaryCodeInput(v *types.CanaryCodeInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1180,25 +1130,6 @@ func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson. return nil } -func awsRestjson1_serializeDocumentVisualReferenceInput(v *types.VisualReferenceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.BaseCanaryRunId != nil { - ok := object.Key("BaseCanaryRunId") - ok.String(*v.BaseCanaryRunId) - } - - if v.BaseScreenshots != nil { - ok := object.Key("BaseScreenshots") - if err := awsRestjson1_serializeDocumentBaseScreenshots(v.BaseScreenshots, ok); err != nil { - return err - } - } - - return nil -} - func awsRestjson1_serializeDocumentVpcConfigInput(v *types.VpcConfigInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/synthetics/types/types.go b/service/synthetics/types/types.go index b914e3d1e91..dfe8452aa68 100644 --- a/service/synthetics/types/types.go +++ b/service/synthetics/types/types.go @@ -7,16 +7,6 @@ import ( "time" ) -type BaseScreenshot struct { - - // This member is required. - ScreenshotName *string - - IgnoreCoordinates []string - - noSmithyDocumentSerde -} - // This structure contains all information about one canary in your account. type Canary struct { @@ -72,8 +62,6 @@ type Canary struct { // modified, and most recently run. Timeline *CanaryTimeline - VisualReference *VisualReferenceOutput - // If this canary is to test an endpoint in a VPC, this structure contains // information about the subnets and security groups of the VPC endpoint. For more // information, see Running a Canary in a VPC @@ -91,14 +79,14 @@ type Canary struct { type CanaryCodeInput struct { // The entry point to use for the source code when running the canary. This value - // must end with the string .handler. The string is limited to 29 characters or - // fewer. + // must end with the string .handler. // // This member is required. Handler *string - // If your canary script is located in S3, specify the bucket name here. Do not - // include s3:// as the start of the bucket name. + // If your canary script is located in S3, specify the full bucket name here. The + // bucket must already exist. Specify the full bucket name, including s3:// as the + // start of the bucket name. S3Bucket *string // The S3 key of your script. For more information, see Working with Amazon S3 @@ -109,8 +97,8 @@ type CanaryCodeInput struct { S3Version *string // If you input your canary script directly into the canary instead of referring to - // an S3 location, the value of this parameter is the base64-encoded contents of - // the .zip file that contains the script. It can be up to 5 MB. + // an S3 location, the value of this parameter is the .zip file that contains the + // script. It can be up to 5 MB. ZipFile []byte noSmithyDocumentSerde @@ -167,9 +155,9 @@ type CanaryRun struct { // A structure that contains input information for a canary run. type CanaryRunConfigInput struct { - // Specifies whether this canary is to use active X-Ray tracing when it runs. + // Specifies whether this canary is to use active AWS X-Ray tracing when it runs. // Active tracing enables this canary run to be displayed in the ServiceLens and - // X-Ray service maps even if the canary does not hit an endpoint that has X-Ray + // X-Ray service maps even if the canary does not hit an endpoint that has X-ray // tracing enabled. Using X-Ray tracing incurs charges. For more information, see // Canaries and X-Ray tracing // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html). @@ -203,7 +191,7 @@ type CanaryRunConfigInput struct { // A structure that contains information about a canary run. type CanaryRunConfigOutput struct { - // Displays whether this canary run used active X-Ray tracing. + // Displays whether this canary run used active AWS X-Ray tracing. ActiveTracing *bool // The maximum amount of memory available to the canary while it is running, in MB. @@ -248,17 +236,13 @@ type CanaryRunTimeline struct { // time when it should stop making runs. type CanaryScheduleInput struct { - // A rate expression or a cron expression that defines how often the canary is to - // run. For a rate expression, The syntax is rate(number unit). unit can be minute, - // minutes, or hour. For example, rate(1 minute) runs the canary once a minute, - // rate(10 minutes) runs it once every 10 minutes, and rate(1 hour) runs it once - // every hour. You can specify a frequency between rate(1 minute) and rate(1 hour). - // Specifying rate(0 minute) or rate(0 hour) is a special value that causes the - // canary to run only once when it is started. Use cron(expression) to specify a - // cron expression. You can't schedule a canary to wait for more than a year before - // running. For information about the syntax for cron expressions, see Scheduling - // canary runs using cron - // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html). + // A rate expression that defines how often the canary is to run. The syntax is + // rate(number unit). unit can be minute, minutes, or hour. For example, rate(1 + // minute) runs the canary once a minute, rate(10 minutes) runs it once every 10 + // minutes, and rate(1 hour) runs it once every hour. You can specify a frequency + // between rate(1 minute) and rate(1 hour). Specifying rate(0 minute) or rate(0 + // hour) is a special value that causes the canary to run only once when it is + // started. // // This member is required. Expression *string @@ -280,16 +264,12 @@ type CanaryScheduleOutput struct { // value. DurationInSeconds *int64 - // A rate expression or a cron expression that defines how often the canary is to - // run. For a rate expression, The syntax is rate(number unit). unit can be minute, - // minutes, or hour. For example, rate(1 minute) runs the canary once a minute, - // rate(10 minutes) runs it once every 10 minutes, and rate(1 hour) runs it once - // every hour. You can specify a frequency between rate(1 minute) and rate(1 hour). - // Specifying rate(0 minute) or rate(0 hour) is a special value that causes the - // canary to run only once when it is started. Use cron(expression) to specify a - // cron expression. For information about the syntax for cron expressions, see - // Scheduling canary runs using cron - // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html). + // A rate expression that defines how often the canary is to run. The syntax is + // rate(number unit). unit can be minute, minutes, or hour. For example, rate(1 + // minute) runs the canary once a minute, rate(10 minutes) runs it once every 10 + // minutes, and rate(1 hour) runs it once every hour. Specifying rate(0 minute) or + // rate(0 hour) is a special value that causes the canary to run only once when it + // is started. Expression *string noSmithyDocumentSerde @@ -352,24 +332,6 @@ type RuntimeVersion struct { noSmithyDocumentSerde } -type VisualReferenceInput struct { - - // This member is required. - BaseCanaryRunId *string - - BaseScreenshots []BaseScreenshot - - noSmithyDocumentSerde -} - -type VisualReferenceOutput struct { - BaseCanaryRunId *string - - BaseScreenshots []BaseScreenshot - - noSmithyDocumentSerde -} - // If this canary is to test an endpoint in a VPC, this structure contains // information about the subnets and security groups of the VPC endpoint. For more // information, see Running a Canary in a VPC diff --git a/service/synthetics/validators.go b/service/synthetics/validators.go index c7d88e89630..a34a5070170 100644 --- a/service/synthetics/validators.go +++ b/service/synthetics/validators.go @@ -250,38 +250,6 @@ func addOpUpdateCanaryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateCanary{}, middleware.After) } -func validateBaseScreenshot(v *types.BaseScreenshot) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "BaseScreenshot"} - if v.ScreenshotName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ScreenshotName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateBaseScreenshots(v []types.BaseScreenshot) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "BaseScreenshots"} - for i := range v { - if err := validateBaseScreenshot(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateCanaryCodeInput(v *types.CanaryCodeInput) error { if v == nil { return nil @@ -312,26 +280,6 @@ func validateCanaryScheduleInput(v *types.CanaryScheduleInput) error { } } -func validateVisualReferenceInput(v *types.VisualReferenceInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "VisualReferenceInput"} - if v.BaseScreenshots != nil { - if err := validateBaseScreenshots(v.BaseScreenshots); err != nil { - invalidParams.AddNested("BaseScreenshots", err.(smithy.InvalidParamsError)) - } - } - if v.BaseCanaryRunId == nil { - invalidParams.Add(smithy.NewErrParamRequired("BaseCanaryRunId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpCreateCanaryInput(v *CreateCanaryInput) error { if v == nil { return nil @@ -514,11 +462,6 @@ func validateOpUpdateCanaryInput(v *UpdateCanaryInput) error { invalidParams.AddNested("Schedule", err.(smithy.InvalidParamsError)) } } - if v.VisualReference != nil { - if err := validateVisualReferenceInput(v.VisualReference); err != nil { - invalidParams.AddNested("VisualReference", err.(smithy.InvalidParamsError)) - } - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/textract/api_op_AnalyzeExpense.go b/service/textract/api_op_AnalyzeExpense.go deleted file mode 100644 index 24479b7fd9a..00000000000 --- a/service/textract/api_op_AnalyzeExpense.go +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package textract - -import ( - "context" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - "github.com/aws/aws-sdk-go-v2/aws/signer/v4" - "github.com/aws/aws-sdk-go-v2/service/textract/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Analyzes an input document for financially related relationships between text. -// Information is returned as ExpenseDocuments and seperated as follows. -// -// * -// LineItemGroups- A data set containing LineItems which store information about -// the lines of text, such as an item purchased and its price on a receipt. -// -// * -// SummaryFields- Contains all other information a receipt, such as header -// information or the vendors name. -func (c *Client) AnalyzeExpense(ctx context.Context, params *AnalyzeExpenseInput, optFns ...func(*Options)) (*AnalyzeExpenseOutput, error) { - if params == nil { - params = &AnalyzeExpenseInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "AnalyzeExpense", params, optFns, c.addOperationAnalyzeExpenseMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*AnalyzeExpenseOutput) - out.ResultMetadata = metadata - return out, nil -} - -type AnalyzeExpenseInput struct { - - // The input document, either as bytes or as an S3 object. You pass image bytes to - // an Amazon Textract API operation by using the Bytes property. For example, you - // would use the Bytes property to pass a document loaded from a local file system. - // Image bytes passed by using the Bytes property must be base64 encoded. Your code - // might not need to encode document file bytes if you're using an AWS SDK to call - // Amazon Textract API operations. You pass images stored in an S3 bucket to an - // Amazon Textract API operation by using the S3Object property. Documents stored - // in an S3 bucket don't need to be base64 encoded. The AWS Region for the S3 - // bucket that contains the S3 object must match the AWS Region that you use for - // Amazon Textract operations. If you use the AWS CLI to call Amazon Textract - // operations, passing image bytes using the Bytes property isn't supported. You - // must first upload the document to an Amazon S3 bucket, and then call the - // operation using the S3Object property. For Amazon Textract to process an S3 - // object, the user must have permission to access the S3 object. - // - // This member is required. - Document *types.Document - - noSmithyDocumentSerde -} - -type AnalyzeExpenseOutput struct { - - // Information about the input document. - DocumentMetadata *types.DocumentMetadata - - // The expenses detected by Amazon Textract. - ExpenseDocuments []types.ExpenseDocument - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationAnalyzeExpenseMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpAnalyzeExpense{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAnalyzeExpense{}, middleware.After) - if err != nil { - return err - } - if err = addSetLoggerMiddleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { - return err - } - if err = addResolveEndpointMiddleware(stack, options); err != nil { - return err - } - if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { - return err - } - if err = addRetryMiddlewares(stack, options); err != nil { - return err - } - if err = addHTTPSignerV4Middleware(stack, options); err != nil { - return err - } - if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addOpAnalyzeExpenseValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAnalyzeExpense(options.Region), middleware.Before); err != nil { - return err - } - if err = addRequestIDRetrieverMiddleware(stack); err != nil { - return err - } - if err = addResponseErrorMiddleware(stack); err != nil { - return err - } - if err = addRequestResponseLogging(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opAnalyzeExpense(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - SigningName: "textract", - OperationName: "AnalyzeExpense", - } -} diff --git a/service/textract/deserializers.go b/service/textract/deserializers.go index b16eab9e2ee..f4811201114 100644 --- a/service/textract/deserializers.go +++ b/service/textract/deserializers.go @@ -157,141 +157,6 @@ func awsAwsjson11_deserializeOpErrorAnalyzeDocument(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpAnalyzeExpense struct { -} - -func (*awsAwsjson11_deserializeOpAnalyzeExpense) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpAnalyzeExpense) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorAnalyzeExpense(response, &metadata) - } - output := &AnalyzeExpenseOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentAnalyzeExpenseOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorAnalyzeExpense(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("BadDocumentException", errorCode): - return awsAwsjson11_deserializeErrorBadDocumentException(response, errorBody) - - case strings.EqualFold("DocumentTooLargeException", errorCode): - return awsAwsjson11_deserializeErrorDocumentTooLargeException(response, errorBody) - - case strings.EqualFold("InternalServerError", errorCode): - return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - - case strings.EqualFold("InvalidParameterException", errorCode): - return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) - - case strings.EqualFold("InvalidS3ObjectException", errorCode): - return awsAwsjson11_deserializeErrorInvalidS3ObjectException(response, errorBody) - - case strings.EqualFold("ProvisionedThroughputExceededException", errorCode): - return awsAwsjson11_deserializeErrorProvisionedThroughputExceededException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("UnsupportedDocumentException", errorCode): - return awsAwsjson11_deserializeErrorUnsupportedDocumentException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - type awsAwsjson11_deserializeOpDetectDocumentText struct { } @@ -534,9 +399,6 @@ func awsAwsjson11_deserializeOpErrorGetDocumentAnalysis(response *smithyhttp.Res case strings.EqualFold("InvalidJobIdException", errorCode): return awsAwsjson11_deserializeErrorInvalidJobIdException(response, errorBody) - case strings.EqualFold("InvalidKMSKeyException", errorCode): - return awsAwsjson11_deserializeErrorInvalidKMSKeyException(response, errorBody) - case strings.EqualFold("InvalidParameterException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) @@ -666,9 +528,6 @@ func awsAwsjson11_deserializeOpErrorGetDocumentTextDetection(response *smithyhtt case strings.EqualFold("InvalidJobIdException", errorCode): return awsAwsjson11_deserializeErrorInvalidJobIdException(response, errorBody) - case strings.EqualFold("InvalidKMSKeyException", errorCode): - return awsAwsjson11_deserializeErrorInvalidKMSKeyException(response, errorBody) - case strings.EqualFold("InvalidParameterException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) @@ -2087,7 +1946,7 @@ func awsAwsjson11_deserializeDocumentEntityTypes(v *[]types.EntityType, value in return nil } -func awsAwsjson11_deserializeDocumentExpenseDetection(v **types.ExpenseDetection, value interface{}) error { +func awsAwsjson11_deserializeDocumentGeometry(v **types.Geometry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2100,61 +1959,23 @@ func awsAwsjson11_deserializeDocumentExpenseDetection(v **types.ExpenseDetection return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExpenseDetection + var sv *types.Geometry if *v == nil { - sv = &types.ExpenseDetection{} + sv = &types.Geometry{} } else { sv = *v } for key, value := range shape { switch key { - case "Confidence": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Confidence = ptr.Float32(float32(f64)) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Confidence = ptr.Float32(float32(f64)) - - default: - return fmt.Errorf("expected Percent to be a JSON Number, got %T instead", value) - - } - } - - case "Geometry": - if err := awsAwsjson11_deserializeDocumentGeometry(&sv.Geometry, value); err != nil { + case "BoundingBox": + if err := awsAwsjson11_deserializeDocumentBoundingBox(&sv.BoundingBox, value); err != nil { return err } - case "Text": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Text = ptr.String(jtv) + case "Polygon": + if err := awsAwsjson11_deserializeDocumentPolygon(&sv.Polygon, value); err != nil { + return err } default: @@ -2166,7 +1987,7 @@ func awsAwsjson11_deserializeDocumentExpenseDetection(v **types.ExpenseDetection return nil } -func awsAwsjson11_deserializeDocumentExpenseDocument(v **types.ExpenseDocument, value interface{}) error { +func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLoopActivationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2179,36 +2000,36 @@ func awsAwsjson11_deserializeDocumentExpenseDocument(v **types.ExpenseDocument, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExpenseDocument + var sv *types.HumanLoopActivationOutput if *v == nil { - sv = &types.ExpenseDocument{} + sv = &types.HumanLoopActivationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ExpenseIndex": + case "HumanLoopActivationConditionsEvaluationResults": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UInteger to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected SynthesizedJsonHumanLoopActivationConditionsEvaluationResults to be of type string, got %T instead", value) } - sv.ExpenseIndex = ptr.Int32(int32(i64)) + sv.HumanLoopActivationConditionsEvaluationResults = ptr.String(jtv) } - case "LineItemGroups": - if err := awsAwsjson11_deserializeDocumentLineItemGroupList(&sv.LineItemGroups, value); err != nil { + case "HumanLoopActivationReasons": + if err := awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(&sv.HumanLoopActivationReasons, value); err != nil { return err } - case "SummaryFields": - if err := awsAwsjson11_deserializeDocumentExpenseFieldList(&sv.SummaryFields, value); err != nil { - return err + case "HumanLoopArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) + } + sv.HumanLoopArn = ptr.String(jtv) } default: @@ -2220,7 +2041,7 @@ func awsAwsjson11_deserializeDocumentExpenseDocument(v **types.ExpenseDocument, return nil } -func awsAwsjson11_deserializeDocumentExpenseDocumentList(v *[]types.ExpenseDocument, value interface{}) error { +func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2233,20 +2054,22 @@ func awsAwsjson11_deserializeDocumentExpenseDocumentList(v *[]types.ExpenseDocum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ExpenseDocument + var cv []string if *v == nil { - cv = []types.ExpenseDocument{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.ExpenseDocument - destAddr := &col - if err := awsAwsjson11_deserializeDocumentExpenseDocument(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HumanLoopActivationReason to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -2254,7 +2077,7 @@ func awsAwsjson11_deserializeDocumentExpenseDocumentList(v *[]types.ExpenseDocum return nil } -func awsAwsjson11_deserializeDocumentExpenseField(v **types.ExpenseField, value interface{}) error { +func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.HumanLoopQuotaExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2267,338 +2090,40 @@ func awsAwsjson11_deserializeDocumentExpenseField(v **types.ExpenseField, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExpenseField + var sv *types.HumanLoopQuotaExceededException if *v == nil { - sv = &types.ExpenseField{} + sv = &types.HumanLoopQuotaExceededException{} } else { sv = *v } for key, value := range shape { switch key { - case "LabelDetection": - if err := awsAwsjson11_deserializeDocumentExpenseDetection(&sv.LabelDetection, value); err != nil { - return err - } - - case "PageNumber": + case "Code": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UInteger to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PageNumber = ptr.Int32(int32(i64)) + sv.Code = ptr.String(jtv) } - case "Type": - if err := awsAwsjson11_deserializeDocumentExpenseType(&sv.Type, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - case "ValueDetection": - if err := awsAwsjson11_deserializeDocumentExpenseDetection(&sv.ValueDetection, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentExpenseFieldList(v *[]types.ExpenseField, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ExpenseField - if *v == nil { - cv = []types.ExpenseField{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ExpenseField - destAddr := &col - if err := awsAwsjson11_deserializeDocumentExpenseField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentExpenseType(v **types.ExpenseType, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ExpenseType - if *v == nil { - sv = &types.ExpenseType{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Confidence": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Confidence = ptr.Float32(float32(f64)) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Confidence = ptr.Float32(float32(f64)) - - default: - return fmt.Errorf("expected Percent to be a JSON Number, got %T instead", value) - - } - } - - case "Text": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Text = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentGeometry(v **types.Geometry, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.Geometry - if *v == nil { - sv = &types.Geometry{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "BoundingBox": - if err := awsAwsjson11_deserializeDocumentBoundingBox(&sv.BoundingBox, value); err != nil { - return err - } - - case "Polygon": - if err := awsAwsjson11_deserializeDocumentPolygon(&sv.Polygon, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLoopActivationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.HumanLoopActivationOutput - if *v == nil { - sv = &types.HumanLoopActivationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "HumanLoopActivationConditionsEvaluationResults": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SynthesizedJsonHumanLoopActivationConditionsEvaluationResults to be of type string, got %T instead", value) - } - sv.HumanLoopActivationConditionsEvaluationResults = ptr.String(jtv) - } - - case "HumanLoopActivationReasons": - if err := awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(&sv.HumanLoopActivationReasons, value); err != nil { - return err - } - - case "HumanLoopArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) - } - sv.HumanLoopArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HumanLoopActivationReason to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.HumanLoopQuotaExceededException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.HumanLoopQuotaExceededException - if *v == nil { - sv = &types.HumanLoopQuotaExceededException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Code": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Code = ptr.String(jtv) - } - - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "QuotaCode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.QuotaCode = ptr.String(jtv) + case "QuotaCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.QuotaCode = ptr.String(jtv) } case "ResourceType": @@ -3007,159 +2532,6 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentLineItemFields(v **types.LineItemFields, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.LineItemFields - if *v == nil { - sv = &types.LineItemFields{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "LineItemExpenseFields": - if err := awsAwsjson11_deserializeDocumentExpenseFieldList(&sv.LineItemExpenseFields, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentLineItemGroup(v **types.LineItemGroup, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.LineItemGroup - if *v == nil { - sv = &types.LineItemGroup{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "LineItemGroupIndex": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected UInteger to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.LineItemGroupIndex = ptr.Int32(int32(i64)) - } - - case "LineItems": - if err := awsAwsjson11_deserializeDocumentLineItemList(&sv.LineItems, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentLineItemGroupList(v *[]types.LineItemGroup, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.LineItemGroup - if *v == nil { - cv = []types.LineItemGroup{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.LineItemGroup - destAddr := &col - if err := awsAwsjson11_deserializeDocumentLineItemGroup(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentLineItemList(v *[]types.LineItemFields, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.LineItemFields - if *v == nil { - cv = []types.LineItemFields{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.LineItemFields - destAddr := &col - if err := awsAwsjson11_deserializeDocumentLineItemFields(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - func awsAwsjson11_deserializeDocumentPages(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -3693,47 +3065,6 @@ func awsAwsjson11_deserializeOpDocumentAnalyzeDocumentOutput(v **AnalyzeDocument return nil } -func awsAwsjson11_deserializeOpDocumentAnalyzeExpenseOutput(v **AnalyzeExpenseOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *AnalyzeExpenseOutput - if *v == nil { - sv = &AnalyzeExpenseOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "DocumentMetadata": - if err := awsAwsjson11_deserializeDocumentDocumentMetadata(&sv.DocumentMetadata, value); err != nil { - return err - } - - case "ExpenseDocuments": - if err := awsAwsjson11_deserializeDocumentExpenseDocumentList(&sv.ExpenseDocuments, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - func awsAwsjson11_deserializeOpDocumentDetectDocumentTextOutput(v **DetectDocumentTextOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/textract/generated.json b/service/textract/generated.json index 38c006b3b06..62509949099 100644 --- a/service/textract/generated.json +++ b/service/textract/generated.json @@ -6,7 +6,6 @@ "files": [ "api_client.go", "api_op_AnalyzeDocument.go", - "api_op_AnalyzeExpense.go", "api_op_DetectDocumentText.go", "api_op_GetDocumentAnalysis.go", "api_op_GetDocumentTextDetection.go", diff --git a/service/textract/go.mod b/service/textract/go.mod index 3f77612410d..4b0179294cd 100644 --- a/service/textract/go.mod +++ b/service/textract/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/textract/go.sum b/service/textract/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/textract/go.sum +++ b/service/textract/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/textract/serializers.go b/service/textract/serializers.go index 3a7dad7bfe7..e07c232b29f 100644 --- a/service/textract/serializers.go +++ b/service/textract/serializers.go @@ -61,53 +61,6 @@ func (m *awsAwsjson11_serializeOpAnalyzeDocument) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpAnalyzeExpense struct { -} - -func (*awsAwsjson11_serializeOpAnalyzeExpense) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpAnalyzeExpense) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*AnalyzeExpenseInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("Textract.AnalyzeExpense") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentAnalyzeExpenseInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsAwsjson11_serializeOpDetectDocumentText struct { } @@ -519,20 +472,6 @@ func awsAwsjson11_serializeOpDocumentAnalyzeDocumentInput(v *AnalyzeDocumentInpu return nil } -func awsAwsjson11_serializeOpDocumentAnalyzeExpenseInput(v *AnalyzeExpenseInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Document != nil { - ok := object.Key("Document") - if err := awsAwsjson11_serializeDocumentDocument(v.Document, ok); err != nil { - return err - } - } - - return nil -} - func awsAwsjson11_serializeOpDocumentDetectDocumentTextInput(v *DetectDocumentTextInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/textract/types/types.go b/service/textract/types/types.go index 6406d7a8143..c38ff367c00 100644 --- a/service/textract/types/types.go +++ b/service/textract/types/types.go @@ -219,72 +219,6 @@ type DocumentMetadata struct { noSmithyDocumentSerde } -// An object used to store information about the Value or Label detected by Amazon -// Textract. -type ExpenseDetection struct { - - // The confidence in detection, as a percentage - Confidence *float32 - - // Information about where the following items are located on a document page: - // detected page, text, key-value pairs, tables, table cells, and selection - // elements. - Geometry *Geometry - - // The word or line of text recognized by Amazon Textract - Text *string - - noSmithyDocumentSerde -} - -// The structure holding all the information returned by AnalyzeExpense -type ExpenseDocument struct { - - // Denotes which invoice or receipt in the document the information is coming from. - // First document will be 1, the second 2, and so on. - ExpenseIndex *int32 - - // Information detected on each table of a document, seperated into LineItems. - LineItemGroups []LineItemGroup - - // Any information found outside of a table by Amazon Textract. - SummaryFields []ExpenseField - - noSmithyDocumentSerde -} - -// Breakdown of detected information, seperated into the catagories Type, -// LableDetection, and ValueDetection -type ExpenseField struct { - - // The explicitly stated label of a detected element. - LabelDetection *ExpenseDetection - - // The page number the value was detected on. - PageNumber *int32 - - // The implied label of a detected element. Present alongside LabelDetection for - // explicit elements. - Type *ExpenseType - - // The value of a detected element. Present in explicit and implicit elements. - ValueDetection *ExpenseDetection - - noSmithyDocumentSerde -} - -// An object used to store information about the Type detected by Amazon Textract. -type ExpenseType struct { - - // The confidence of accuracy, as a percentage. - Confidence *float32 - - // The word or line of text detected by Amazon Textract. - Text *string - - noSmithyDocumentSerde -} - // Information about where the following items are located on a document page: // detected page, text, key-value pairs, tables, table cells, and selection // elements. @@ -352,30 +286,6 @@ type HumanLoopDataAttributes struct { noSmithyDocumentSerde } -// A structure that holds information about the different lines found in a -// document's tables. -type LineItemFields struct { - - // ExpenseFields used to show information from detected lines on a table. - LineItemExpenseFields []ExpenseField - - noSmithyDocumentSerde -} - -// A grouping of tables which contain LineItems, with each table identified by the -// table's LineItemGroupIndex. -type LineItemGroup struct { - - // The number used to identify a specific table in a document. The first table - // encountered will have a LineItemGroupIndex of 1, the second 2, etc. - LineItemGroupIndex *int32 - - // The breakdown of information on a particular line of a table. - LineItems []LineItemFields - - noSmithyDocumentSerde -} - // The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon // Textract publishes the completion status of an asynchronous document operation, // such as StartDocumentTextDetection. @@ -396,23 +306,7 @@ type NotificationChannel struct { } // Sets whether or not your output will go to a user created bucket. Used to set -// the name of the bucket, and the prefix on the output file. OutputConfig is an -// optional parameter which lets you adjust where your output will be placed. By -// default, Amazon Textract will store the results internally and can only be -// accessed by the Get API operations. With OutputConfig enabled, you can set the -// name of the bucket the output will be sent to and the file prefix of the results -// where you can download your results. Additionally, you can set the KMSKeyID -// parameter to a customer master key (CMK) to encrypt your output. Without this -// parameter set Amazon Textract will encrypt server-side using the AWS managed CMK -// for Amazon S3. Decryption of Customer Content is necessary for processing of the -// documents by Amazon Textract. If your account is opted out under an AI services -// opt out policy then all unencrypted Customer Content is immediately and -// permanently deleted after the Customer Content has been processed by the -// service. No copy of of the output is retained by Amazon Textract. For -// information about how to opt out, see Managing AI services opt-out policy. -// (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html) -// For more information on data privacy, see the Data Privacy FAQ -// (https://aws.amazon.com/compliance/data-privacy-faq/). +// the name of the bucket, and the prefix on the output file. type OutputConfig struct { // The name of the bucket your output will go to. @@ -472,8 +366,7 @@ type Relationship struct { // bucket, the user must have permission to access the S3 bucket and file. type S3Object struct { - // The name of the S3 bucket. Note that the # character is not valid in the file - // name. + // The name of the S3 bucket. Bucket *string // The file name of the input document. Synchronous operations can use image files diff --git a/service/textract/validators.go b/service/textract/validators.go index 5c07b4bbc55..2cc86263507 100644 --- a/service/textract/validators.go +++ b/service/textract/validators.go @@ -30,26 +30,6 @@ func (m *validateOpAnalyzeDocument) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } -type validateOpAnalyzeExpense struct { -} - -func (*validateOpAnalyzeExpense) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpAnalyzeExpense) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*AnalyzeExpenseInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpAnalyzeExpenseInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpDetectDocumentText struct { } @@ -154,10 +134,6 @@ func addOpAnalyzeDocumentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAnalyzeDocument{}, middleware.After) } -func addOpAnalyzeExpenseValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpAnalyzeExpense{}, middleware.After) -} - func addOpDetectDocumentTextValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDetectDocumentText{}, middleware.After) } @@ -252,21 +228,6 @@ func validateOpAnalyzeDocumentInput(v *AnalyzeDocumentInput) error { } } -func validateOpAnalyzeExpenseInput(v *AnalyzeExpenseInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "AnalyzeExpenseInput"} - if v.Document == nil { - invalidParams.Add(smithy.NewErrParamRequired("Document")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpDetectDocumentTextInput(v *DetectDocumentTextInput) error { if v == nil { return nil diff --git a/service/timestreamquery/go.mod b/service/timestreamquery/go.mod index b3c4ddd3ff1..ba1ebfa5f02 100644 --- a/service/timestreamquery/go.mod +++ b/service/timestreamquery/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.0.1 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.0.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/timestreamquery/go.sum b/service/timestreamquery/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/timestreamquery/go.sum +++ b/service/timestreamquery/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/timestreamwrite/go.mod b/service/timestreamwrite/go.mod index 89ea8f876b9..96c9c710d73 100644 --- a/service/timestreamwrite/go.mod +++ b/service/timestreamwrite/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.0.1 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.0.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/timestreamwrite/go.sum b/service/timestreamwrite/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/timestreamwrite/go.sum +++ b/service/timestreamwrite/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/transcribe/go.mod b/service/transcribe/go.mod index 3421847025d..c2976976c81 100644 --- a/service/transcribe/go.mod +++ b/service/transcribe/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/transcribe/go.sum b/service/transcribe/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/transcribe/go.sum +++ b/service/transcribe/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/transfer/go.mod b/service/transfer/go.mod index fc6e1c8dccd..0fb0965bd7b 100644 --- a/service/transfer/go.mod +++ b/service/transfer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/transfer/go.sum b/service/transfer/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/transfer/go.sum +++ b/service/transfer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/translate/go.mod b/service/translate/go.mod index 12c52c5588f..96804538fad 100644 --- a/service/translate/go.mod +++ b/service/translate/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/translate/go.sum b/service/translate/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/translate/go.sum +++ b/service/translate/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/waf/go.mod b/service/waf/go.mod index 0da3ce51d32..e93bdf6be56 100644 --- a/service/waf/go.mod +++ b/service/waf/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/waf/go.sum b/service/waf/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/waf/go.sum +++ b/service/waf/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/wafregional/go.mod b/service/wafregional/go.mod index 5a512dfb5b8..afcb5a3bb4d 100644 --- a/service/wafregional/go.mod +++ b/service/wafregional/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wafregional/go.sum b/service/wafregional/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/wafregional/go.sum +++ b/service/wafregional/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/wafv2/go.mod b/service/wafv2/go.mod index 04d61bc7e87..612bb92daa7 100644 --- a/service/wafv2/go.mod +++ b/service/wafv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wafv2/go.sum b/service/wafv2/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/wafv2/go.sum +++ b/service/wafv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/wellarchitected/go.mod b/service/wellarchitected/go.mod index 63e9c0ffbbd..edf43a88219 100644 --- a/service/wellarchitected/go.mod +++ b/service/wellarchitected/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wellarchitected/go.sum b/service/wellarchitected/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/wellarchitected/go.sum +++ b/service/wellarchitected/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/workdocs/go.mod b/service/workdocs/go.mod index 733fabb945e..9cab1fc02b4 100644 --- a/service/workdocs/go.mod +++ b/service/workdocs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workdocs/go.sum b/service/workdocs/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/workdocs/go.sum +++ b/service/workdocs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/worklink/go.mod b/service/worklink/go.mod index 4d65d09fda7..fec53d0d60c 100644 --- a/service/worklink/go.mod +++ b/service/worklink/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/worklink/go.sum b/service/worklink/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/worklink/go.sum +++ b/service/worklink/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/workmail/go.mod b/service/workmail/go.mod index 31770a96e26..cf8404d949f 100644 --- a/service/workmail/go.mod +++ b/service/workmail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workmail/go.sum b/service/workmail/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/workmail/go.sum +++ b/service/workmail/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/workmailmessageflow/go.mod b/service/workmailmessageflow/go.mod index 73cd5343bf5..a4108f9e3bc 100644 --- a/service/workmailmessageflow/go.mod +++ b/service/workmailmessageflow/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workmailmessageflow/go.sum b/service/workmailmessageflow/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/workmailmessageflow/go.sum +++ b/service/workmailmessageflow/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/workspaces/go.mod b/service/workspaces/go.mod index 403203ece2e..45a2aea51c7 100644 --- a/service/workspaces/go.mod +++ b/service/workspaces/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workspaces/go.sum b/service/workspaces/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/workspaces/go.sum +++ b/service/workspaces/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/xray/go.mod b/service/xray/go.mod index c2dad7dfc8a..89b562298b2 100644 --- a/service/xray/go.mod +++ b/service/xray/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 + github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/xray/go.sum b/service/xray/go.sum index a8411cb9e1d..829b1536381 100644 --- a/service/xray/go.sum +++ b/service/xray/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54 h1:CkBR6T9z72f58dOEq0Q5HKBJUWkrO+c8Iw7NFONY/sU= -github.com/aws/smithy-go v1.6.1-0.20210729222435-d3a155d0ce54/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= +github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= From 67d848828047f3a3d09e96329d91ee7b5ec6a4d6 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Mon, 2 Aug 2021 14:02:35 -0700 Subject: [PATCH 2/6] Fixup smithy-go module dependency --- go.mod | 2 +- go.sum | 4 ++-- modman.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 4b106fd0dff..53deb4bc9ca 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/aws/aws-sdk-go-v2 require ( - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 // indirect github.com/google/go-cmp v0.5.6 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/go.sum b/go.sum index 22181669cd3..6e425b89066 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/modman.toml b/modman.toml index 47a0e9e775a..ac739112488 100644 --- a/modman.toml +++ b/modman.toml @@ -1,5 +1,5 @@ [dependencies] -"github.com/aws/smithy-go" = "v1.6.1-0.20210719175327-4970553d9934" +"github.com/aws/smithy-go" = "v1.6.1-0.20210802184028-9ae615e18907" "github.com/google/go-cmp" = "v0.5.6" "github.com/jmespath/go-jmespath" = "v0.4.0" From a7cec76b627a535e3679f11267f37bfe2f4826ff Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Mon, 2 Aug 2021 14:05:36 -0700 Subject: [PATCH 3/6] Update module smithy-go version dependency --- .../642413e2bf3b4fae9bdb6e49133974ab.json | 295 ++++++++++++++++++ config/go.mod | 2 +- config/go.sum | 4 +- credentials/go.mod | 2 +- credentials/go.sum | 4 +- example/service/s3/listObjects/go.sum | 4 +- example/service/s3/usingPrivateLink/go.sum | 4 +- feature/cloudfront/sign/go.sum | 4 +- feature/dynamodb/attributevalue/go.mod | 2 +- feature/dynamodb/attributevalue/go.sum | 4 +- feature/dynamodb/expression/go.sum | 4 +- feature/dynamodbstreams/attributevalue/go.mod | 2 +- feature/dynamodbstreams/attributevalue/go.sum | 4 +- feature/ec2/imds/go.mod | 2 +- feature/ec2/imds/go.sum | 4 +- .../ec2/imds/internal/configtesting/go.sum | 4 +- feature/rds/auth/go.sum | 4 +- feature/s3/manager/go.mod | 2 +- feature/s3/manager/go.sum | 4 +- go.mod | 2 +- internal/configsources/configtesting/go.sum | 4 +- internal/configsources/go.sum | 4 +- internal/ini/go.sum | 2 +- internal/protocoltest/awsrestjson/go.mod | 2 +- internal/protocoltest/awsrestjson/go.sum | 4 +- internal/protocoltest/ec2query/go.mod | 2 +- internal/protocoltest/ec2query/go.sum | 4 +- internal/protocoltest/jsonrpc/go.mod | 2 +- internal/protocoltest/jsonrpc/go.sum | 4 +- internal/protocoltest/jsonrpc10/go.mod | 2 +- internal/protocoltest/jsonrpc10/go.sum | 4 +- internal/protocoltest/query/go.mod | 2 +- internal/protocoltest/query/go.sum | 4 +- internal/protocoltest/restxml/go.mod | 2 +- internal/protocoltest/restxml/go.sum | 4 +- .../protocoltest/restxmlwithnamespace/go.mod | 2 +- .../protocoltest/restxmlwithnamespace/go.sum | 4 +- service/accessanalyzer/go.mod | 2 +- service/accessanalyzer/go.sum | 4 +- service/acm/go.mod | 2 +- service/acm/go.sum | 4 +- service/acmpca/go.mod | 2 +- service/acmpca/go.sum | 4 +- service/alexaforbusiness/go.mod | 2 +- service/alexaforbusiness/go.sum | 4 +- service/amp/go.mod | 2 +- service/amp/go.sum | 4 +- service/amplify/go.mod | 2 +- service/amplify/go.sum | 4 +- service/amplifybackend/go.mod | 2 +- service/amplifybackend/go.sum | 4 +- service/apigateway/go.mod | 2 +- service/apigateway/go.sum | 4 +- service/apigatewaymanagementapi/go.mod | 2 +- service/apigatewaymanagementapi/go.sum | 4 +- service/apigatewayv2/go.mod | 2 +- service/apigatewayv2/go.sum | 4 +- service/appconfig/go.mod | 2 +- service/appconfig/go.sum | 4 +- service/appflow/go.mod | 2 +- service/appflow/go.sum | 4 +- service/appintegrations/go.mod | 2 +- service/appintegrations/go.sum | 4 +- service/applicationautoscaling/go.mod | 2 +- service/applicationautoscaling/go.sum | 4 +- service/applicationcostprofiler/go.mod | 2 +- service/applicationcostprofiler/go.sum | 4 +- service/applicationdiscoveryservice/go.mod | 2 +- service/applicationdiscoveryservice/go.sum | 4 +- service/applicationinsights/go.mod | 2 +- service/applicationinsights/go.sum | 4 +- service/appmesh/go.mod | 2 +- service/appmesh/go.sum | 4 +- service/apprunner/go.mod | 2 +- service/apprunner/go.sum | 4 +- service/appstream/go.mod | 2 +- service/appstream/go.sum | 4 +- service/appsync/go.mod | 2 +- service/appsync/go.sum | 4 +- service/athena/go.mod | 2 +- service/athena/go.sum | 4 +- service/auditmanager/go.mod | 2 +- service/auditmanager/go.sum | 4 +- service/autoscaling/go.mod | 2 +- service/autoscaling/go.sum | 4 +- service/autoscalingplans/go.mod | 2 +- service/autoscalingplans/go.sum | 4 +- service/backup/go.mod | 2 +- service/backup/go.sum | 4 +- service/batch/go.mod | 2 +- service/batch/go.sum | 4 +- service/braket/go.mod | 2 +- service/braket/go.sum | 4 +- service/budgets/go.mod | 2 +- service/budgets/go.sum | 4 +- service/chime/go.mod | 2 +- service/chime/go.sum | 4 +- service/cloud9/go.mod | 2 +- service/cloud9/go.sum | 4 +- service/clouddirectory/go.mod | 2 +- service/clouddirectory/go.sum | 4 +- service/cloudformation/go.mod | 2 +- service/cloudformation/go.sum | 4 +- service/cloudfront/go.mod | 2 +- service/cloudfront/go.sum | 4 +- service/cloudhsm/go.mod | 2 +- service/cloudhsm/go.sum | 4 +- service/cloudhsmv2/go.mod | 2 +- service/cloudhsmv2/go.sum | 4 +- service/cloudsearch/go.mod | 2 +- service/cloudsearch/go.sum | 4 +- service/cloudsearchdomain/go.mod | 2 +- service/cloudsearchdomain/go.sum | 4 +- service/cloudtrail/go.mod | 2 +- service/cloudtrail/go.sum | 4 +- service/cloudwatch/go.mod | 2 +- service/cloudwatch/go.sum | 4 +- service/cloudwatchevents/go.mod | 2 +- service/cloudwatchevents/go.sum | 4 +- service/cloudwatchlogs/go.mod | 2 +- service/cloudwatchlogs/go.sum | 4 +- service/codeartifact/go.mod | 2 +- service/codeartifact/go.sum | 4 +- service/codebuild/go.mod | 2 +- service/codebuild/go.sum | 4 +- service/codecommit/go.mod | 2 +- service/codecommit/go.sum | 4 +- service/codedeploy/go.mod | 2 +- service/codedeploy/go.sum | 4 +- service/codeguruprofiler/go.mod | 2 +- service/codeguruprofiler/go.sum | 4 +- service/codegurureviewer/go.mod | 2 +- service/codegurureviewer/go.sum | 4 +- service/codepipeline/go.mod | 2 +- service/codepipeline/go.sum | 4 +- service/codestar/go.mod | 2 +- service/codestar/go.sum | 4 +- service/codestarconnections/go.mod | 2 +- service/codestarconnections/go.sum | 4 +- service/codestarnotifications/go.mod | 2 +- service/codestarnotifications/go.sum | 4 +- service/cognitoidentity/go.mod | 2 +- service/cognitoidentity/go.sum | 4 +- service/cognitoidentityprovider/go.mod | 2 +- service/cognitoidentityprovider/go.sum | 4 +- service/cognitosync/go.mod | 2 +- service/cognitosync/go.sum | 4 +- service/comprehend/go.mod | 2 +- service/comprehend/go.sum | 4 +- service/comprehendmedical/go.mod | 2 +- service/comprehendmedical/go.sum | 4 +- service/computeoptimizer/go.mod | 2 +- service/computeoptimizer/go.sum | 4 +- service/configservice/go.mod | 2 +- service/configservice/go.sum | 4 +- service/connect/go.mod | 2 +- service/connect/go.sum | 4 +- service/connectcontactlens/go.mod | 2 +- service/connectcontactlens/go.sum | 4 +- service/connectparticipant/go.mod | 2 +- service/connectparticipant/go.sum | 4 +- service/costandusagereportservice/go.mod | 2 +- service/costandusagereportservice/go.sum | 4 +- service/costexplorer/go.mod | 2 +- service/costexplorer/go.sum | 4 +- service/customerprofiles/go.mod | 2 +- service/customerprofiles/go.sum | 4 +- service/databasemigrationservice/go.mod | 2 +- service/databasemigrationservice/go.sum | 4 +- service/databrew/go.mod | 2 +- service/databrew/go.sum | 4 +- service/dataexchange/go.mod | 2 +- service/dataexchange/go.sum | 4 +- service/datapipeline/go.mod | 2 +- service/datapipeline/go.sum | 4 +- service/datasync/go.mod | 2 +- service/datasync/go.sum | 4 +- service/dax/go.mod | 2 +- service/dax/go.sum | 4 +- service/detective/go.mod | 2 +- service/detective/go.sum | 4 +- service/devicefarm/go.mod | 2 +- service/devicefarm/go.sum | 4 +- service/devopsguru/go.mod | 2 +- service/devopsguru/go.sum | 4 +- service/directconnect/go.mod | 2 +- service/directconnect/go.sum | 4 +- service/directoryservice/go.mod | 2 +- service/directoryservice/go.sum | 4 +- service/dlm/go.mod | 2 +- service/dlm/go.sum | 4 +- service/docdb/go.mod | 2 +- service/docdb/go.sum | 4 +- service/dynamodb/go.mod | 2 +- service/dynamodb/go.sum | 4 +- service/dynamodbstreams/go.mod | 2 +- service/dynamodbstreams/go.sum | 4 +- service/ebs/go.mod | 2 +- service/ebs/go.sum | 4 +- service/ec2/go.mod | 2 +- service/ec2/go.sum | 4 +- service/ec2instanceconnect/go.mod | 2 +- service/ec2instanceconnect/go.sum | 4 +- service/ecr/go.mod | 2 +- service/ecr/go.sum | 4 +- service/ecrpublic/go.mod | 2 +- service/ecrpublic/go.sum | 4 +- service/ecs/go.mod | 2 +- service/ecs/go.sum | 4 +- service/efs/go.mod | 2 +- service/efs/go.sum | 4 +- service/eks/go.mod | 2 +- service/eks/go.sum | 4 +- service/elasticache/go.mod | 2 +- service/elasticache/go.sum | 4 +- service/elasticbeanstalk/go.mod | 2 +- service/elasticbeanstalk/go.sum | 4 +- service/elasticinference/go.mod | 2 +- service/elasticinference/go.sum | 4 +- service/elasticloadbalancing/go.mod | 2 +- service/elasticloadbalancing/go.sum | 4 +- service/elasticloadbalancingv2/go.mod | 2 +- service/elasticloadbalancingv2/go.sum | 4 +- service/elasticsearchservice/go.mod | 2 +- service/elasticsearchservice/go.sum | 4 +- service/elastictranscoder/go.mod | 2 +- service/elastictranscoder/go.sum | 4 +- service/emr/go.mod | 2 +- service/emr/go.sum | 4 +- service/emrcontainers/go.mod | 2 +- service/emrcontainers/go.sum | 4 +- service/eventbridge/go.mod | 2 +- service/eventbridge/go.sum | 4 +- service/finspace/go.mod | 2 +- service/finspace/go.sum | 4 +- service/finspacedata/go.mod | 2 +- service/finspacedata/go.sum | 4 +- service/firehose/go.mod | 2 +- service/firehose/go.sum | 4 +- service/fis/go.mod | 2 +- service/fis/go.sum | 4 +- service/fms/go.mod | 2 +- service/fms/go.sum | 4 +- service/forecast/go.mod | 2 +- service/forecast/go.sum | 4 +- service/forecastquery/go.mod | 2 +- service/forecastquery/go.sum | 4 +- service/frauddetector/go.mod | 2 +- service/frauddetector/go.sum | 4 +- service/fsx/go.mod | 2 +- service/fsx/go.sum | 4 +- service/gamelift/go.mod | 2 +- service/gamelift/go.sum | 4 +- service/glacier/go.mod | 2 +- service/glacier/go.sum | 4 +- service/globalaccelerator/go.mod | 2 +- service/globalaccelerator/go.sum | 4 +- service/glue/go.mod | 2 +- service/glue/go.sum | 4 +- service/greengrass/go.mod | 2 +- service/greengrass/go.sum | 4 +- service/greengrassv2/go.mod | 2 +- service/greengrassv2/go.sum | 4 +- service/groundstation/go.mod | 2 +- service/groundstation/go.sum | 4 +- service/guardduty/go.mod | 2 +- service/guardduty/go.sum | 4 +- service/health/go.mod | 2 +- service/health/go.sum | 4 +- service/healthlake/go.mod | 2 +- service/healthlake/go.sum | 4 +- service/honeycode/go.mod | 2 +- service/honeycode/go.sum | 4 +- service/iam/go.mod | 2 +- service/iam/go.sum | 4 +- service/identitystore/go.mod | 2 +- service/identitystore/go.sum | 4 +- service/imagebuilder/go.mod | 2 +- service/imagebuilder/go.sum | 4 +- service/inspector/go.mod | 2 +- service/inspector/go.sum | 4 +- service/internal/accept-encoding/go.mod | 2 +- service/internal/accept-encoding/go.sum | 4 +- service/internal/benchmark/go.mod | 2 +- service/internal/benchmark/go.sum | 4 +- service/internal/endpoint-discovery/go.mod | 2 +- service/internal/endpoint-discovery/go.sum | 4 +- service/internal/integrationtest/go.mod | 2 +- service/internal/integrationtest/go.sum | 4 +- service/internal/presigned-url/go.mod | 2 +- service/internal/presigned-url/go.sum | 4 +- service/internal/s3shared/go.mod | 2 +- service/internal/s3shared/go.sum | 4 +- service/iot/go.mod | 2 +- service/iot/go.sum | 4 +- service/iot1clickdevicesservice/go.mod | 2 +- service/iot1clickdevicesservice/go.sum | 4 +- service/iot1clickprojects/go.mod | 2 +- service/iot1clickprojects/go.sum | 4 +- service/iotanalytics/go.mod | 2 +- service/iotanalytics/go.sum | 4 +- service/iotdataplane/go.mod | 2 +- service/iotdataplane/go.sum | 4 +- service/iotdeviceadvisor/go.mod | 2 +- service/iotdeviceadvisor/go.sum | 4 +- service/iotevents/go.mod | 2 +- service/iotevents/go.sum | 4 +- service/ioteventsdata/go.mod | 2 +- service/ioteventsdata/go.sum | 4 +- service/iotfleethub/go.mod | 2 +- service/iotfleethub/go.sum | 4 +- service/iotjobsdataplane/go.mod | 2 +- service/iotjobsdataplane/go.sum | 4 +- service/iotsecuretunneling/go.mod | 2 +- service/iotsecuretunneling/go.sum | 4 +- service/iotsitewise/go.mod | 2 +- service/iotsitewise/go.sum | 4 +- service/iotthingsgraph/go.mod | 2 +- service/iotthingsgraph/go.sum | 4 +- service/iotwireless/go.mod | 2 +- service/iotwireless/go.sum | 4 +- service/ivs/go.mod | 2 +- service/ivs/go.sum | 4 +- service/kafka/go.mod | 2 +- service/kafka/go.sum | 4 +- service/kendra/go.mod | 2 +- service/kendra/go.sum | 4 +- service/kinesis/go.mod | 2 +- service/kinesis/go.sum | 4 +- service/kinesisanalytics/go.mod | 2 +- service/kinesisanalytics/go.sum | 4 +- service/kinesisanalyticsv2/go.mod | 2 +- service/kinesisanalyticsv2/go.sum | 4 +- service/kinesisvideo/go.mod | 2 +- service/kinesisvideo/go.sum | 4 +- service/kinesisvideoarchivedmedia/go.mod | 2 +- service/kinesisvideoarchivedmedia/go.sum | 4 +- service/kinesisvideomedia/go.mod | 2 +- service/kinesisvideomedia/go.sum | 4 +- service/kinesisvideosignaling/go.mod | 2 +- service/kinesisvideosignaling/go.sum | 4 +- service/kms/go.mod | 2 +- service/kms/go.sum | 4 +- service/lakeformation/go.mod | 2 +- service/lakeformation/go.sum | 4 +- service/lambda/go.mod | 2 +- service/lambda/go.sum | 4 +- service/lexmodelbuildingservice/go.mod | 2 +- service/lexmodelbuildingservice/go.sum | 4 +- service/lexmodelsv2/go.mod | 2 +- service/lexmodelsv2/go.sum | 4 +- service/lexruntimeservice/go.mod | 2 +- service/lexruntimeservice/go.sum | 4 +- service/lexruntimev2/go.mod | 2 +- service/lexruntimev2/go.sum | 4 +- service/licensemanager/go.mod | 2 +- service/licensemanager/go.sum | 4 +- service/lightsail/go.mod | 2 +- service/lightsail/go.sum | 4 +- service/location/go.mod | 2 +- service/location/go.sum | 4 +- service/lookoutequipment/go.mod | 2 +- service/lookoutequipment/go.sum | 4 +- service/lookoutmetrics/go.mod | 2 +- service/lookoutmetrics/go.sum | 4 +- service/lookoutvision/go.mod | 2 +- service/lookoutvision/go.sum | 4 +- service/machinelearning/go.mod | 2 +- service/machinelearning/go.sum | 4 +- service/macie/go.mod | 2 +- service/macie/go.sum | 4 +- service/macie2/go.mod | 2 +- service/macie2/go.sum | 4 +- service/managedblockchain/go.mod | 2 +- service/managedblockchain/go.sum | 4 +- service/marketplacecatalog/go.mod | 2 +- service/marketplacecatalog/go.sum | 4 +- service/marketplacecommerceanalytics/go.mod | 2 +- service/marketplacecommerceanalytics/go.sum | 4 +- service/marketplaceentitlementservice/go.mod | 2 +- service/marketplaceentitlementservice/go.sum | 4 +- service/marketplacemetering/go.mod | 2 +- service/marketplacemetering/go.sum | 4 +- service/mediaconnect/go.mod | 2 +- service/mediaconnect/go.sum | 4 +- service/mediaconvert/go.mod | 2 +- service/mediaconvert/go.sum | 4 +- service/medialive/go.mod | 2 +- service/medialive/go.sum | 4 +- service/mediapackage/go.mod | 2 +- service/mediapackage/go.sum | 4 +- service/mediapackagevod/go.mod | 2 +- service/mediapackagevod/go.sum | 4 +- service/mediastore/go.mod | 2 +- service/mediastore/go.sum | 4 +- service/mediastoredata/go.mod | 2 +- service/mediastoredata/go.sum | 4 +- service/mediatailor/go.mod | 2 +- service/mediatailor/go.sum | 4 +- service/mgn/go.mod | 2 +- service/mgn/go.sum | 4 +- service/migrationhub/go.mod | 2 +- service/migrationhub/go.sum | 4 +- service/migrationhubconfig/go.mod | 2 +- service/migrationhubconfig/go.sum | 4 +- service/mobile/go.mod | 2 +- service/mobile/go.sum | 4 +- service/mq/go.mod | 2 +- service/mq/go.sum | 4 +- service/mturk/go.mod | 2 +- service/mturk/go.sum | 4 +- service/mwaa/go.mod | 2 +- service/mwaa/go.sum | 4 +- service/neptune/go.mod | 2 +- service/neptune/go.sum | 4 +- service/networkfirewall/go.mod | 2 +- service/networkfirewall/go.sum | 4 +- service/networkmanager/go.mod | 2 +- service/networkmanager/go.sum | 4 +- service/nimble/go.mod | 2 +- service/nimble/go.sum | 4 +- service/opsworks/go.mod | 2 +- service/opsworks/go.sum | 4 +- service/opsworkscm/go.mod | 2 +- service/opsworkscm/go.sum | 4 +- service/organizations/go.mod | 2 +- service/organizations/go.sum | 4 +- service/outposts/go.mod | 2 +- service/outposts/go.sum | 4 +- service/personalize/go.mod | 2 +- service/personalize/go.sum | 4 +- service/personalizeevents/go.mod | 2 +- service/personalizeevents/go.sum | 4 +- service/personalizeruntime/go.mod | 2 +- service/personalizeruntime/go.sum | 4 +- service/pi/go.mod | 2 +- service/pi/go.sum | 4 +- service/pinpoint/go.mod | 2 +- service/pinpoint/go.sum | 4 +- service/pinpointemail/go.mod | 2 +- service/pinpointemail/go.sum | 4 +- service/pinpointsmsvoice/go.mod | 2 +- service/pinpointsmsvoice/go.sum | 4 +- service/polly/go.mod | 2 +- service/polly/go.sum | 4 +- service/pricing/go.mod | 2 +- service/pricing/go.sum | 4 +- service/proton/go.mod | 2 +- service/proton/go.sum | 4 +- service/qldb/go.mod | 2 +- service/qldb/go.sum | 4 +- service/qldbsession/go.mod | 2 +- service/qldbsession/go.sum | 4 +- service/quicksight/go.mod | 2 +- service/quicksight/go.sum | 4 +- service/ram/go.mod | 2 +- service/ram/go.sum | 4 +- service/rds/go.mod | 2 +- service/rds/go.sum | 4 +- service/rdsdata/go.mod | 2 +- service/rdsdata/go.sum | 4 +- service/redshift/go.mod | 2 +- service/redshift/go.sum | 4 +- service/redshiftdata/go.mod | 2 +- service/redshiftdata/go.sum | 4 +- service/rekognition/go.mod | 2 +- service/rekognition/go.sum | 4 +- service/resourcegroups/go.mod | 2 +- service/resourcegroups/go.sum | 4 +- service/resourcegroupstaggingapi/go.mod | 2 +- service/resourcegroupstaggingapi/go.sum | 4 +- service/robomaker/go.mod | 2 +- service/robomaker/go.sum | 4 +- service/route53/go.mod | 2 +- service/route53/go.sum | 4 +- service/route53domains/go.mod | 2 +- service/route53domains/go.sum | 4 +- service/route53resolver/go.mod | 2 +- service/route53resolver/go.sum | 4 +- service/s3/go.mod | 2 +- service/s3/go.sum | 4 +- service/s3/internal/configtesting/go.sum | 4 +- service/s3control/go.mod | 2 +- service/s3control/go.sum | 4 +- service/s3outposts/go.mod | 2 +- service/s3outposts/go.sum | 4 +- service/sagemaker/go.mod | 2 +- service/sagemaker/go.sum | 4 +- service/sagemakera2iruntime/go.mod | 2 +- service/sagemakera2iruntime/go.sum | 4 +- service/sagemakeredge/go.mod | 2 +- service/sagemakeredge/go.sum | 4 +- service/sagemakerfeaturestoreruntime/go.mod | 2 +- service/sagemakerfeaturestoreruntime/go.sum | 4 +- service/sagemakerruntime/go.mod | 2 +- service/sagemakerruntime/go.sum | 4 +- service/savingsplans/go.mod | 2 +- service/savingsplans/go.sum | 4 +- service/schemas/go.mod | 2 +- service/schemas/go.sum | 4 +- service/secretsmanager/go.mod | 2 +- service/secretsmanager/go.sum | 4 +- service/securityhub/go.mod | 2 +- service/securityhub/go.sum | 4 +- .../serverlessapplicationrepository/go.mod | 2 +- .../serverlessapplicationrepository/go.sum | 4 +- service/servicecatalog/go.mod | 2 +- service/servicecatalog/go.sum | 4 +- service/servicecatalogappregistry/go.mod | 2 +- service/servicecatalogappregistry/go.sum | 4 +- service/servicediscovery/go.mod | 2 +- service/servicediscovery/go.sum | 4 +- service/servicequotas/go.mod | 2 +- service/servicequotas/go.sum | 4 +- service/ses/go.mod | 2 +- service/ses/go.sum | 4 +- service/sesv2/go.mod | 2 +- service/sesv2/go.sum | 4 +- service/sfn/go.mod | 2 +- service/sfn/go.sum | 4 +- service/shield/go.mod | 2 +- service/shield/go.sum | 4 +- service/signer/go.mod | 2 +- service/signer/go.sum | 4 +- service/sms/go.mod | 2 +- service/sms/go.sum | 4 +- service/snowball/go.mod | 2 +- service/snowball/go.sum | 4 +- service/sns/go.mod | 2 +- service/sns/go.sum | 4 +- service/sqs/go.mod | 2 +- service/sqs/go.sum | 4 +- service/ssm/go.mod | 2 +- service/ssm/go.sum | 4 +- service/ssmcontacts/go.mod | 2 +- service/ssmcontacts/go.sum | 4 +- service/ssmincidents/go.mod | 2 +- service/ssmincidents/go.sum | 4 +- service/sso/go.mod | 2 +- service/sso/go.sum | 4 +- service/ssoadmin/go.mod | 2 +- service/ssoadmin/go.sum | 4 +- service/ssooidc/go.mod | 2 +- service/ssooidc/go.sum | 4 +- service/storagegateway/go.mod | 2 +- service/storagegateway/go.sum | 4 +- service/sts/go.mod | 2 +- service/sts/go.sum | 4 +- service/support/go.mod | 2 +- service/support/go.sum | 4 +- service/swf/go.mod | 2 +- service/swf/go.sum | 4 +- service/synthetics/go.mod | 2 +- service/synthetics/go.sum | 4 +- service/textract/go.mod | 2 +- service/textract/go.sum | 4 +- service/timestreamquery/go.mod | 2 +- service/timestreamquery/go.sum | 4 +- service/timestreamwrite/go.mod | 2 +- service/timestreamwrite/go.sum | 4 +- service/transcribe/go.mod | 2 +- service/transcribe/go.sum | 4 +- service/transfer/go.mod | 2 +- service/transfer/go.sum | 4 +- service/translate/go.mod | 2 +- service/translate/go.sum | 4 +- service/waf/go.mod | 2 +- service/waf/go.sum | 4 +- service/wafregional/go.mod | 2 +- service/wafregional/go.sum | 4 +- service/wafv2/go.mod | 2 +- service/wafv2/go.sum | 4 +- service/wellarchitected/go.mod | 2 +- service/wellarchitected/go.sum | 4 +- service/workdocs/go.mod | 2 +- service/workdocs/go.sum | 4 +- service/worklink/go.mod | 2 +- service/worklink/go.sum | 4 +- service/workmail/go.mod | 2 +- service/workmail/go.sum | 4 +- service/workmailmessageflow/go.mod | 2 +- service/workmailmessageflow/go.sum | 4 +- service/workspaces/go.mod | 2 +- service/workspaces/go.sum | 4 +- service/xray/go.mod | 2 +- service/xray/go.sum | 4 +- 586 files changed, 1176 insertions(+), 881 deletions(-) create mode 100644 .changelog/642413e2bf3b4fae9bdb6e49133974ab.json diff --git a/.changelog/642413e2bf3b4fae9bdb6e49133974ab.json b/.changelog/642413e2bf3b4fae9bdb6e49133974ab.json new file mode 100644 index 00000000000..9d31b12f1ff --- /dev/null +++ b/.changelog/642413e2bf3b4fae9bdb6e49133974ab.json @@ -0,0 +1,295 @@ +{ + "id": "642413e2-bf3b-4fae-9bdb-6e49133974ab", + "type": "feature", + "description": "Update smithy-go version dependency", + "modules": [ + ".", + "config", + "credentials", + "feature/dynamodb/attributevalue", + "feature/dynamodbstreams/attributevalue", + "feature/ec2/imds", + "feature/s3/manager", + "internal/protocoltest/awsrestjson", + "internal/protocoltest/ec2query", + "internal/protocoltest/jsonrpc", + "internal/protocoltest/jsonrpc10", + "internal/protocoltest/query", + "internal/protocoltest/restxml", + "internal/protocoltest/restxmlwithnamespace", + "service/accessanalyzer", + "service/acm", + "service/acmpca", + "service/alexaforbusiness", + "service/amp", + "service/amplify", + "service/amplifybackend", + "service/apigateway", + "service/apigatewaymanagementapi", + "service/apigatewayv2", + "service/appconfig", + "service/appflow", + "service/appintegrations", + "service/applicationautoscaling", + "service/applicationcostprofiler", + "service/applicationdiscoveryservice", + "service/applicationinsights", + "service/appmesh", + "service/apprunner", + "service/appstream", + "service/appsync", + "service/athena", + "service/auditmanager", + "service/autoscaling", + "service/autoscalingplans", + "service/backup", + "service/batch", + "service/braket", + "service/budgets", + "service/chime", + "service/cloud9", + "service/clouddirectory", + "service/cloudformation", + "service/cloudfront", + "service/cloudhsm", + "service/cloudhsmv2", + "service/cloudsearch", + "service/cloudsearchdomain", + "service/cloudtrail", + "service/cloudwatch", + "service/cloudwatchevents", + "service/cloudwatchlogs", + "service/codeartifact", + "service/codebuild", + "service/codecommit", + "service/codedeploy", + "service/codeguruprofiler", + "service/codegurureviewer", + "service/codepipeline", + "service/codestar", + "service/codestarconnections", + "service/codestarnotifications", + "service/cognitoidentity", + "service/cognitoidentityprovider", + "service/cognitosync", + "service/comprehend", + "service/comprehendmedical", + "service/computeoptimizer", + "service/configservice", + "service/connect", + "service/connectcontactlens", + "service/connectparticipant", + "service/costandusagereportservice", + "service/costexplorer", + "service/customerprofiles", + "service/databasemigrationservice", + "service/databrew", + "service/dataexchange", + "service/datapipeline", + "service/datasync", + "service/dax", + "service/detective", + "service/devicefarm", + "service/devopsguru", + "service/directconnect", + "service/directoryservice", + "service/dlm", + "service/docdb", + "service/dynamodb", + "service/dynamodbstreams", + "service/ebs", + "service/ec2", + "service/ec2instanceconnect", + "service/ecr", + "service/ecrpublic", + "service/ecs", + "service/efs", + "service/eks", + "service/elasticache", + "service/elasticbeanstalk", + "service/elasticinference", + "service/elasticloadbalancing", + "service/elasticloadbalancingv2", + "service/elasticsearchservice", + "service/elastictranscoder", + "service/emr", + "service/emrcontainers", + "service/eventbridge", + "service/finspace", + "service/finspacedata", + "service/firehose", + "service/fis", + "service/fms", + "service/forecast", + "service/forecastquery", + "service/frauddetector", + "service/fsx", + "service/gamelift", + "service/glacier", + "service/globalaccelerator", + "service/glue", + "service/greengrass", + "service/greengrassv2", + "service/groundstation", + "service/guardduty", + "service/health", + "service/healthlake", + "service/honeycode", + "service/iam", + "service/identitystore", + "service/imagebuilder", + "service/inspector", + "service/internal/accept-encoding", + "service/internal/benchmark", + "service/internal/endpoint-discovery", + "service/internal/integrationtest", + "service/internal/presigned-url", + "service/internal/s3shared", + "service/iot", + "service/iot1clickdevicesservice", + "service/iot1clickprojects", + "service/iotanalytics", + "service/iotdataplane", + "service/iotdeviceadvisor", + "service/iotevents", + "service/ioteventsdata", + "service/iotfleethub", + "service/iotjobsdataplane", + "service/iotsecuretunneling", + "service/iotsitewise", + "service/iotthingsgraph", + "service/iotwireless", + "service/ivs", + "service/kafka", + "service/kendra", + "service/kinesis", + "service/kinesisanalytics", + "service/kinesisanalyticsv2", + "service/kinesisvideo", + "service/kinesisvideoarchivedmedia", + "service/kinesisvideomedia", + "service/kinesisvideosignaling", + "service/kms", + "service/lakeformation", + "service/lambda", + "service/lexmodelbuildingservice", + "service/lexmodelsv2", + "service/lexruntimeservice", + "service/lexruntimev2", + "service/licensemanager", + "service/lightsail", + "service/location", + "service/lookoutequipment", + "service/lookoutmetrics", + "service/lookoutvision", + "service/machinelearning", + "service/macie", + "service/macie2", + "service/managedblockchain", + "service/marketplacecatalog", + "service/marketplacecommerceanalytics", + "service/marketplaceentitlementservice", + "service/marketplacemetering", + "service/mediaconnect", + "service/mediaconvert", + "service/medialive", + "service/mediapackage", + "service/mediapackagevod", + "service/mediastore", + "service/mediastoredata", + "service/mediatailor", + "service/mgn", + "service/migrationhub", + "service/migrationhubconfig", + "service/mobile", + "service/mq", + "service/mturk", + "service/mwaa", + "service/neptune", + "service/networkfirewall", + "service/networkmanager", + "service/nimble", + "service/opsworks", + "service/opsworkscm", + "service/organizations", + "service/outposts", + "service/personalize", + "service/personalizeevents", + "service/personalizeruntime", + "service/pi", + "service/pinpoint", + "service/pinpointemail", + "service/pinpointsmsvoice", + "service/polly", + "service/pricing", + "service/proton", + "service/qldb", + "service/qldbsession", + "service/quicksight", + "service/ram", + "service/rds", + "service/rdsdata", + "service/redshift", + "service/redshiftdata", + "service/rekognition", + "service/resourcegroups", + "service/resourcegroupstaggingapi", + "service/robomaker", + "service/route53", + "service/route53domains", + "service/route53resolver", + "service/s3", + "service/s3control", + "service/s3outposts", + "service/sagemaker", + "service/sagemakera2iruntime", + "service/sagemakeredge", + "service/sagemakerfeaturestoreruntime", + "service/sagemakerruntime", + "service/savingsplans", + "service/schemas", + "service/secretsmanager", + "service/securityhub", + "service/serverlessapplicationrepository", + "service/servicecatalog", + "service/servicecatalogappregistry", + "service/servicediscovery", + "service/servicequotas", + "service/ses", + "service/sesv2", + "service/sfn", + "service/shield", + "service/signer", + "service/sms", + "service/snowball", + "service/sns", + "service/sqs", + "service/ssm", + "service/ssmcontacts", + "service/ssmincidents", + "service/sso", + "service/ssoadmin", + "service/ssooidc", + "service/storagegateway", + "service/sts", + "service/support", + "service/swf", + "service/synthetics", + "service/textract", + "service/timestreamquery", + "service/timestreamwrite", + "service/transcribe", + "service/transfer", + "service/translate", + "service/waf", + "service/wafregional", + "service/wafv2", + "service/wellarchitected", + "service/workdocs", + "service/worklink", + "service/workmail", + "service/workmailmessageflow", + "service/workspaces", + "service/xray" + ] +} \ No newline at end of file diff --git a/config/go.mod b/config/go.mod index 6641066df07..ce777e68bac 100644 --- a/config/go.mod +++ b/config/go.mod @@ -9,7 +9,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/ini v1.1.1 github.com/aws/aws-sdk-go-v2/service/sso v1.3.1 github.com/aws/aws-sdk-go-v2/service/sts v1.6.0 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/config/go.sum b/config/go.sum index 829b1536381..256f90b195c 100644 --- a/config/go.sum +++ b/config/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/credentials/go.mod b/credentials/go.mod index 4e8cbd202dd..4954f3b5ad5 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.3.0 github.com/aws/aws-sdk-go-v2/service/sso v1.3.1 github.com/aws/aws-sdk-go-v2/service/sts v1.6.0 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/credentials/go.sum b/credentials/go.sum index 829b1536381..256f90b195c 100644 --- a/credentials/go.sum +++ b/credentials/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/example/service/s3/listObjects/go.sum b/example/service/s3/listObjects/go.sum index 829b1536381..256f90b195c 100644 --- a/example/service/s3/listObjects/go.sum +++ b/example/service/s3/listObjects/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/example/service/s3/usingPrivateLink/go.sum b/example/service/s3/usingPrivateLink/go.sum index 829b1536381..256f90b195c 100644 --- a/example/service/s3/usingPrivateLink/go.sum +++ b/example/service/s3/usingPrivateLink/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/cloudfront/sign/go.sum b/feature/cloudfront/sign/go.sum index 829b1536381..256f90b195c 100644 --- a/feature/cloudfront/sign/go.sum +++ b/feature/cloudfront/sign/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/dynamodb/attributevalue/go.mod b/feature/dynamodb/attributevalue/go.mod index 277d862c598..454d141cb1b 100644 --- a/feature/dynamodb/attributevalue/go.mod +++ b/feature/dynamodb/attributevalue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.4.1 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.3.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/feature/dynamodb/attributevalue/go.sum b/feature/dynamodb/attributevalue/go.sum index 22181669cd3..6e425b89066 100644 --- a/feature/dynamodb/attributevalue/go.sum +++ b/feature/dynamodb/attributevalue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/feature/dynamodb/expression/go.sum b/feature/dynamodb/expression/go.sum index 22181669cd3..6e425b89066 100644 --- a/feature/dynamodb/expression/go.sum +++ b/feature/dynamodb/expression/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/feature/dynamodbstreams/attributevalue/go.mod b/feature/dynamodbstreams/attributevalue/go.mod index bd64a93ffb8..16075c0e34e 100644 --- a/feature/dynamodbstreams/attributevalue/go.mod +++ b/feature/dynamodbstreams/attributevalue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.4.1 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.3.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/feature/dynamodbstreams/attributevalue/go.sum b/feature/dynamodbstreams/attributevalue/go.sum index 22181669cd3..6e425b89066 100644 --- a/feature/dynamodbstreams/attributevalue/go.sum +++ b/feature/dynamodbstreams/attributevalue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/feature/ec2/imds/go.mod b/feature/ec2/imds/go.mod index e8c932de92f..2c2c64b3ad4 100644 --- a/feature/ec2/imds/go.mod +++ b/feature/ec2/imds/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/feature/ec2/imds/go.sum b/feature/ec2/imds/go.sum index 829b1536381..256f90b195c 100644 --- a/feature/ec2/imds/go.sum +++ b/feature/ec2/imds/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/ec2/imds/internal/configtesting/go.sum b/feature/ec2/imds/internal/configtesting/go.sum index 829b1536381..256f90b195c 100644 --- a/feature/ec2/imds/internal/configtesting/go.sum +++ b/feature/ec2/imds/internal/configtesting/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/rds/auth/go.sum b/feature/rds/auth/go.sum index 829b1536381..256f90b195c 100644 --- a/feature/rds/auth/go.sum +++ b/feature/rds/auth/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod index 7dd78b5231d..a0554d12487 100644 --- a/feature/s3/manager/go.mod +++ b/feature/s3/manager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/config v1.5.0 github.com/aws/aws-sdk-go-v2/service/s3 v1.11.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/feature/s3/manager/go.sum b/feature/s3/manager/go.sum index 22181669cd3..6e425b89066 100644 --- a/feature/s3/manager/go.sum +++ b/feature/s3/manager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/go.mod b/go.mod index 53deb4bc9ca..8206434ed02 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/aws/aws-sdk-go-v2 require ( - github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 // indirect + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/internal/configsources/configtesting/go.sum b/internal/configsources/configtesting/go.sum index 829b1536381..256f90b195c 100644 --- a/internal/configsources/configtesting/go.sum +++ b/internal/configsources/configtesting/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/configsources/go.sum b/internal/configsources/go.sum index 829b1536381..256f90b195c 100644 --- a/internal/configsources/go.sum +++ b/internal/configsources/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/ini/go.sum b/internal/ini/go.sum index 4363468a30f..ff58bb96e31 100644 --- a/internal/ini/go.sum +++ b/internal/ini/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/internal/protocoltest/awsrestjson/go.mod b/internal/protocoltest/awsrestjson/go.mod index 793db606e1f..e5f1524b5b0 100644 --- a/internal/protocoltest/awsrestjson/go.mod +++ b/internal/protocoltest/awsrestjson/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/awsrestjson/go.sum b/internal/protocoltest/awsrestjson/go.sum index 829b1536381..256f90b195c 100644 --- a/internal/protocoltest/awsrestjson/go.sum +++ b/internal/protocoltest/awsrestjson/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/ec2query/go.mod b/internal/protocoltest/ec2query/go.mod index caef40f3435..de53d3881d4 100644 --- a/internal/protocoltest/ec2query/go.mod +++ b/internal/protocoltest/ec2query/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/ec2query/go.sum b/internal/protocoltest/ec2query/go.sum index 829b1536381..256f90b195c 100644 --- a/internal/protocoltest/ec2query/go.sum +++ b/internal/protocoltest/ec2query/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/jsonrpc/go.mod b/internal/protocoltest/jsonrpc/go.mod index ddb4105799a..1212549233c 100644 --- a/internal/protocoltest/jsonrpc/go.mod +++ b/internal/protocoltest/jsonrpc/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/jsonrpc/go.sum b/internal/protocoltest/jsonrpc/go.sum index 829b1536381..256f90b195c 100644 --- a/internal/protocoltest/jsonrpc/go.sum +++ b/internal/protocoltest/jsonrpc/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/jsonrpc10/go.mod b/internal/protocoltest/jsonrpc10/go.mod index c2c57cb6d3c..c1a4612c020 100644 --- a/internal/protocoltest/jsonrpc10/go.mod +++ b/internal/protocoltest/jsonrpc10/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/jsonrpc10/go.sum b/internal/protocoltest/jsonrpc10/go.sum index 829b1536381..256f90b195c 100644 --- a/internal/protocoltest/jsonrpc10/go.sum +++ b/internal/protocoltest/jsonrpc10/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/query/go.mod b/internal/protocoltest/query/go.mod index eef0cf1ebda..08934279483 100644 --- a/internal/protocoltest/query/go.mod +++ b/internal/protocoltest/query/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/query/go.sum b/internal/protocoltest/query/go.sum index 829b1536381..256f90b195c 100644 --- a/internal/protocoltest/query/go.sum +++ b/internal/protocoltest/query/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/restxml/go.mod b/internal/protocoltest/restxml/go.mod index 9b660fb903f..69e11ac991a 100644 --- a/internal/protocoltest/restxml/go.mod +++ b/internal/protocoltest/restxml/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/restxml/go.sum b/internal/protocoltest/restxml/go.sum index 829b1536381..256f90b195c 100644 --- a/internal/protocoltest/restxml/go.sum +++ b/internal/protocoltest/restxml/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/internal/protocoltest/restxmlwithnamespace/go.mod b/internal/protocoltest/restxmlwithnamespace/go.mod index 81b10e9b6a9..7ebd9acdcc8 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.mod +++ b/internal/protocoltest/restxmlwithnamespace/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/internal/protocoltest/restxmlwithnamespace/go.sum b/internal/protocoltest/restxmlwithnamespace/go.sum index 829b1536381..256f90b195c 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.sum +++ b/internal/protocoltest/restxmlwithnamespace/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/accessanalyzer/go.mod b/service/accessanalyzer/go.mod index cbeca07188c..a6bea7c9bc7 100644 --- a/service/accessanalyzer/go.mod +++ b/service/accessanalyzer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/accessanalyzer/go.sum b/service/accessanalyzer/go.sum index 829b1536381..256f90b195c 100644 --- a/service/accessanalyzer/go.sum +++ b/service/accessanalyzer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/acm/go.mod b/service/acm/go.mod index 8c3e9ee8ec0..fe4f759a6a7 100644 --- a/service/acm/go.mod +++ b/service/acm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acm/go.sum b/service/acm/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/acm/go.sum +++ b/service/acm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/acmpca/go.mod b/service/acmpca/go.mod index 7aee14cf18a..6c9c9c032bf 100644 --- a/service/acmpca/go.mod +++ b/service/acmpca/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/acmpca/go.sum +++ b/service/acmpca/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/alexaforbusiness/go.mod b/service/alexaforbusiness/go.mod index ab7dbb1e6e0..1ef8fdf7437 100644 --- a/service/alexaforbusiness/go.mod +++ b/service/alexaforbusiness/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/alexaforbusiness/go.sum b/service/alexaforbusiness/go.sum index 829b1536381..256f90b195c 100644 --- a/service/alexaforbusiness/go.sum +++ b/service/alexaforbusiness/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/amp/go.mod b/service/amp/go.mod index f758eb764cd..a3c69c556f9 100644 --- a/service/amp/go.mod +++ b/service/amp/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amp/go.sum b/service/amp/go.sum index 829b1536381..256f90b195c 100644 --- a/service/amp/go.sum +++ b/service/amp/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/amplify/go.mod b/service/amplify/go.mod index 170f6306837..328be65a8e9 100644 --- a/service/amplify/go.mod +++ b/service/amplify/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amplify/go.sum b/service/amplify/go.sum index 829b1536381..256f90b195c 100644 --- a/service/amplify/go.sum +++ b/service/amplify/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/amplifybackend/go.mod b/service/amplifybackend/go.mod index bde3bcfc36f..9566d4dd8a2 100644 --- a/service/amplifybackend/go.mod +++ b/service/amplifybackend/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amplifybackend/go.sum b/service/amplifybackend/go.sum index 829b1536381..256f90b195c 100644 --- a/service/amplifybackend/go.sum +++ b/service/amplifybackend/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/apigateway/go.mod b/service/apigateway/go.mod index 42f63eab084..2ab77561e7b 100644 --- a/service/apigateway/go.mod +++ b/service/apigateway/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigateway/go.sum b/service/apigateway/go.sum index 829b1536381..256f90b195c 100644 --- a/service/apigateway/go.sum +++ b/service/apigateway/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/apigatewaymanagementapi/go.mod b/service/apigatewaymanagementapi/go.mod index 27a30c2dedd..50d8af37178 100644 --- a/service/apigatewaymanagementapi/go.mod +++ b/service/apigatewaymanagementapi/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigatewaymanagementapi/go.sum b/service/apigatewaymanagementapi/go.sum index 829b1536381..256f90b195c 100644 --- a/service/apigatewaymanagementapi/go.sum +++ b/service/apigatewaymanagementapi/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/apigatewayv2/go.mod b/service/apigatewayv2/go.mod index eab3b8eac00..fe35f5ce95b 100644 --- a/service/apigatewayv2/go.mod +++ b/service/apigatewayv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigatewayv2/go.sum b/service/apigatewayv2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/apigatewayv2/go.sum +++ b/service/apigatewayv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appconfig/go.mod b/service/appconfig/go.mod index db393d8a91a..b7816ffaf43 100644 --- a/service/appconfig/go.mod +++ b/service/appconfig/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appconfig/go.sum b/service/appconfig/go.sum index 829b1536381..256f90b195c 100644 --- a/service/appconfig/go.sum +++ b/service/appconfig/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appflow/go.mod b/service/appflow/go.mod index 1fb78462eec..ed815a30ffd 100644 --- a/service/appflow/go.mod +++ b/service/appflow/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appflow/go.sum b/service/appflow/go.sum index 829b1536381..256f90b195c 100644 --- a/service/appflow/go.sum +++ b/service/appflow/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appintegrations/go.mod b/service/appintegrations/go.mod index 1965bc7c167..29229a45df2 100644 --- a/service/appintegrations/go.mod +++ b/service/appintegrations/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appintegrations/go.sum b/service/appintegrations/go.sum index 829b1536381..256f90b195c 100644 --- a/service/appintegrations/go.sum +++ b/service/appintegrations/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/applicationautoscaling/go.mod b/service/applicationautoscaling/go.mod index e9126ea3699..2efef4a4f92 100644 --- a/service/applicationautoscaling/go.mod +++ b/service/applicationautoscaling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationautoscaling/go.sum b/service/applicationautoscaling/go.sum index 829b1536381..256f90b195c 100644 --- a/service/applicationautoscaling/go.sum +++ b/service/applicationautoscaling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/applicationcostprofiler/go.mod b/service/applicationcostprofiler/go.mod index ecc8d101bd2..929542c7b2f 100644 --- a/service/applicationcostprofiler/go.mod +++ b/service/applicationcostprofiler/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationcostprofiler/go.sum b/service/applicationcostprofiler/go.sum index 829b1536381..256f90b195c 100644 --- a/service/applicationcostprofiler/go.sum +++ b/service/applicationcostprofiler/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/applicationdiscoveryservice/go.mod b/service/applicationdiscoveryservice/go.mod index 0456aa93edf..4415dc61bc7 100644 --- a/service/applicationdiscoveryservice/go.mod +++ b/service/applicationdiscoveryservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationdiscoveryservice/go.sum b/service/applicationdiscoveryservice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/applicationdiscoveryservice/go.sum +++ b/service/applicationdiscoveryservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/applicationinsights/go.mod b/service/applicationinsights/go.mod index 3087ae320b4..65f7f0ecd0b 100644 --- a/service/applicationinsights/go.mod +++ b/service/applicationinsights/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationinsights/go.sum b/service/applicationinsights/go.sum index 829b1536381..256f90b195c 100644 --- a/service/applicationinsights/go.sum +++ b/service/applicationinsights/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appmesh/go.mod b/service/appmesh/go.mod index a43c4520132..f35d9ce9e15 100644 --- a/service/appmesh/go.mod +++ b/service/appmesh/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appmesh/go.sum b/service/appmesh/go.sum index 829b1536381..256f90b195c 100644 --- a/service/appmesh/go.sum +++ b/service/appmesh/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/apprunner/go.mod b/service/apprunner/go.mod index dcccfee7b54..a72bc349067 100644 --- a/service/apprunner/go.mod +++ b/service/apprunner/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apprunner/go.sum b/service/apprunner/go.sum index 829b1536381..256f90b195c 100644 --- a/service/apprunner/go.sum +++ b/service/apprunner/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/appstream/go.mod b/service/appstream/go.mod index 0efc1f289c4..a61f287cc4c 100644 --- a/service/appstream/go.mod +++ b/service/appstream/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/appstream/go.sum b/service/appstream/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/appstream/go.sum +++ b/service/appstream/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/appsync/go.mod b/service/appsync/go.mod index 6d968ed9fb9..8951b0b44fd 100644 --- a/service/appsync/go.mod +++ b/service/appsync/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appsync/go.sum b/service/appsync/go.sum index 829b1536381..256f90b195c 100644 --- a/service/appsync/go.sum +++ b/service/appsync/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/athena/go.mod b/service/athena/go.mod index c8cd1dcdbd1..f32d4fc6627 100644 --- a/service/athena/go.mod +++ b/service/athena/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/athena/go.sum b/service/athena/go.sum index 829b1536381..256f90b195c 100644 --- a/service/athena/go.sum +++ b/service/athena/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/auditmanager/go.mod b/service/auditmanager/go.mod index 3d305b101e3..ca98d1a5320 100644 --- a/service/auditmanager/go.mod +++ b/service/auditmanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/auditmanager/go.sum b/service/auditmanager/go.sum index 829b1536381..256f90b195c 100644 --- a/service/auditmanager/go.sum +++ b/service/auditmanager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/autoscaling/go.mod b/service/autoscaling/go.mod index b14b7b5232c..e74f06ad24f 100644 --- a/service/autoscaling/go.mod +++ b/service/autoscaling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/autoscaling/go.sum +++ b/service/autoscaling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/autoscalingplans/go.mod b/service/autoscalingplans/go.mod index 8b3412cd759..1e3b678f879 100644 --- a/service/autoscalingplans/go.mod +++ b/service/autoscalingplans/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/autoscalingplans/go.sum b/service/autoscalingplans/go.sum index 829b1536381..256f90b195c 100644 --- a/service/autoscalingplans/go.sum +++ b/service/autoscalingplans/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/backup/go.mod b/service/backup/go.mod index 36fb797106c..25ae7bbdf3b 100644 --- a/service/backup/go.mod +++ b/service/backup/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/backup/go.sum b/service/backup/go.sum index 829b1536381..256f90b195c 100644 --- a/service/backup/go.sum +++ b/service/backup/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/batch/go.mod b/service/batch/go.mod index f1a363b3577..ab643fbb4ef 100644 --- a/service/batch/go.mod +++ b/service/batch/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/batch/go.sum b/service/batch/go.sum index 829b1536381..256f90b195c 100644 --- a/service/batch/go.sum +++ b/service/batch/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/braket/go.mod b/service/braket/go.mod index 87fa8521384..b6088b2c22a 100644 --- a/service/braket/go.mod +++ b/service/braket/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/braket/go.sum b/service/braket/go.sum index 829b1536381..256f90b195c 100644 --- a/service/braket/go.sum +++ b/service/braket/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/budgets/go.mod b/service/budgets/go.mod index d4cf38d8799..e7aecbd5b3b 100644 --- a/service/budgets/go.mod +++ b/service/budgets/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/budgets/go.sum b/service/budgets/go.sum index 829b1536381..256f90b195c 100644 --- a/service/budgets/go.sum +++ b/service/budgets/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/chime/go.mod b/service/chime/go.mod index d82dfbb4ce6..331502223ab 100644 --- a/service/chime/go.mod +++ b/service/chime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chime/go.sum b/service/chime/go.sum index 829b1536381..256f90b195c 100644 --- a/service/chime/go.sum +++ b/service/chime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloud9/go.mod b/service/cloud9/go.mod index bb6378d05cd..3ef83629ca4 100644 --- a/service/cloud9/go.mod +++ b/service/cloud9/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloud9/go.sum b/service/cloud9/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cloud9/go.sum +++ b/service/cloud9/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/clouddirectory/go.mod b/service/clouddirectory/go.mod index 8877b6a9af1..29a2ec92360 100644 --- a/service/clouddirectory/go.mod +++ b/service/clouddirectory/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/clouddirectory/go.sum b/service/clouddirectory/go.sum index 829b1536381..256f90b195c 100644 --- a/service/clouddirectory/go.sum +++ b/service/clouddirectory/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudformation/go.mod b/service/cloudformation/go.mod index 33734799f9c..30111ba7cef 100644 --- a/service/cloudformation/go.mod +++ b/service/cloudformation/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/cloudformation/go.sum +++ b/service/cloudformation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudfront/go.mod b/service/cloudfront/go.mod index ab89d70c399..8f4b61b53f8 100644 --- a/service/cloudfront/go.mod +++ b/service/cloudfront/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/cloudfront/go.sum +++ b/service/cloudfront/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudhsm/go.mod b/service/cloudhsm/go.mod index 869e92fd956..28a6c6ec6c6 100644 --- a/service/cloudhsm/go.mod +++ b/service/cloudhsm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudhsm/go.sum b/service/cloudhsm/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cloudhsm/go.sum +++ b/service/cloudhsm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudhsmv2/go.mod b/service/cloudhsmv2/go.mod index b42adbeccf7..482ce53ca12 100644 --- a/service/cloudhsmv2/go.mod +++ b/service/cloudhsmv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudhsmv2/go.sum b/service/cloudhsmv2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cloudhsmv2/go.sum +++ b/service/cloudhsmv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudsearch/go.mod b/service/cloudsearch/go.mod index 8a6d9dfde71..430be70a038 100644 --- a/service/cloudsearch/go.mod +++ b/service/cloudsearch/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudsearch/go.sum b/service/cloudsearch/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cloudsearch/go.sum +++ b/service/cloudsearch/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudsearchdomain/go.mod b/service/cloudsearchdomain/go.mod index 75e1ca8e7c0..4359e35da8a 100644 --- a/service/cloudsearchdomain/go.mod +++ b/service/cloudsearchdomain/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudsearchdomain/go.sum b/service/cloudsearchdomain/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cloudsearchdomain/go.sum +++ b/service/cloudsearchdomain/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudtrail/go.mod b/service/cloudtrail/go.mod index 0e620aae245..77b03e9ea0c 100644 --- a/service/cloudtrail/go.mod +++ b/service/cloudtrail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudtrail/go.sum b/service/cloudtrail/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cloudtrail/go.sum +++ b/service/cloudtrail/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudwatch/go.mod b/service/cloudwatch/go.mod index bebe46ea08c..cba79a83b66 100644 --- a/service/cloudwatch/go.mod +++ b/service/cloudwatch/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/cloudwatch/go.sum +++ b/service/cloudwatch/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/cloudwatchevents/go.mod b/service/cloudwatchevents/go.mod index 473df91a2e8..a81d8dec413 100644 --- a/service/cloudwatchevents/go.mod +++ b/service/cloudwatchevents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudwatchevents/go.sum b/service/cloudwatchevents/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cloudwatchevents/go.sum +++ b/service/cloudwatchevents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cloudwatchlogs/go.mod b/service/cloudwatchlogs/go.mod index d9bf7043cc6..64380492949 100644 --- a/service/cloudwatchlogs/go.mod +++ b/service/cloudwatchlogs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudwatchlogs/go.sum b/service/cloudwatchlogs/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cloudwatchlogs/go.sum +++ b/service/cloudwatchlogs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codeartifact/go.mod b/service/codeartifact/go.mod index f1c3b5cef70..418c70d742b 100644 --- a/service/codeartifact/go.mod +++ b/service/codeartifact/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codeartifact/go.sum b/service/codeartifact/go.sum index 829b1536381..256f90b195c 100644 --- a/service/codeartifact/go.sum +++ b/service/codeartifact/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codebuild/go.mod b/service/codebuild/go.mod index 7961677b7f7..a6faf04eba6 100644 --- a/service/codebuild/go.mod +++ b/service/codebuild/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codebuild/go.sum b/service/codebuild/go.sum index 829b1536381..256f90b195c 100644 --- a/service/codebuild/go.sum +++ b/service/codebuild/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codecommit/go.mod b/service/codecommit/go.mod index 152b1846bdc..e6ade7b86c8 100644 --- a/service/codecommit/go.mod +++ b/service/codecommit/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codecommit/go.sum b/service/codecommit/go.sum index 829b1536381..256f90b195c 100644 --- a/service/codecommit/go.sum +++ b/service/codecommit/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codedeploy/go.mod b/service/codedeploy/go.mod index bef531188e6..1196e7018db 100644 --- a/service/codedeploy/go.mod +++ b/service/codedeploy/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codedeploy/go.sum b/service/codedeploy/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/codedeploy/go.sum +++ b/service/codedeploy/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codeguruprofiler/go.mod b/service/codeguruprofiler/go.mod index bdf4559c4d4..0155a225767 100644 --- a/service/codeguruprofiler/go.mod +++ b/service/codeguruprofiler/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codeguruprofiler/go.sum b/service/codeguruprofiler/go.sum index 829b1536381..256f90b195c 100644 --- a/service/codeguruprofiler/go.sum +++ b/service/codeguruprofiler/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codegurureviewer/go.mod b/service/codegurureviewer/go.mod index 891ec48fe9b..52007853e40 100644 --- a/service/codegurureviewer/go.mod +++ b/service/codegurureviewer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codegurureviewer/go.sum b/service/codegurureviewer/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/codegurureviewer/go.sum +++ b/service/codegurureviewer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/codepipeline/go.mod b/service/codepipeline/go.mod index 3f744bd9732..9e72aa9aa23 100644 --- a/service/codepipeline/go.mod +++ b/service/codepipeline/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codepipeline/go.sum b/service/codepipeline/go.sum index 829b1536381..256f90b195c 100644 --- a/service/codepipeline/go.sum +++ b/service/codepipeline/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codestar/go.mod b/service/codestar/go.mod index 4a910990912..b489acfae31 100644 --- a/service/codestar/go.mod +++ b/service/codestar/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestar/go.sum b/service/codestar/go.sum index 829b1536381..256f90b195c 100644 --- a/service/codestar/go.sum +++ b/service/codestar/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codestarconnections/go.mod b/service/codestarconnections/go.mod index 9ee0a86f1f4..98314c5feee 100644 --- a/service/codestarconnections/go.mod +++ b/service/codestarconnections/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestarconnections/go.sum b/service/codestarconnections/go.sum index 829b1536381..256f90b195c 100644 --- a/service/codestarconnections/go.sum +++ b/service/codestarconnections/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/codestarnotifications/go.mod b/service/codestarnotifications/go.mod index 4e2a7dbf2df..021d4e5672d 100644 --- a/service/codestarnotifications/go.mod +++ b/service/codestarnotifications/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestarnotifications/go.sum b/service/codestarnotifications/go.sum index 829b1536381..256f90b195c 100644 --- a/service/codestarnotifications/go.sum +++ b/service/codestarnotifications/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cognitoidentity/go.mod b/service/cognitoidentity/go.mod index 4f34a1eced7..600be645adb 100644 --- a/service/cognitoidentity/go.mod +++ b/service/cognitoidentity/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitoidentity/go.sum b/service/cognitoidentity/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cognitoidentity/go.sum +++ b/service/cognitoidentity/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cognitoidentityprovider/go.mod b/service/cognitoidentityprovider/go.mod index baa13e3b6a4..0e3c6907741 100644 --- a/service/cognitoidentityprovider/go.mod +++ b/service/cognitoidentityprovider/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitoidentityprovider/go.sum b/service/cognitoidentityprovider/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cognitoidentityprovider/go.sum +++ b/service/cognitoidentityprovider/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/cognitosync/go.mod b/service/cognitosync/go.mod index c928d804a3c..ad5ec22389d 100644 --- a/service/cognitosync/go.mod +++ b/service/cognitosync/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitosync/go.sum b/service/cognitosync/go.sum index 829b1536381..256f90b195c 100644 --- a/service/cognitosync/go.sum +++ b/service/cognitosync/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/comprehend/go.mod b/service/comprehend/go.mod index f5652e186b1..1fef997a0a3 100644 --- a/service/comprehend/go.mod +++ b/service/comprehend/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/comprehend/go.sum b/service/comprehend/go.sum index 829b1536381..256f90b195c 100644 --- a/service/comprehend/go.sum +++ b/service/comprehend/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/comprehendmedical/go.mod b/service/comprehendmedical/go.mod index 21cc318d983..a26c98702b1 100644 --- a/service/comprehendmedical/go.mod +++ b/service/comprehendmedical/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/comprehendmedical/go.sum b/service/comprehendmedical/go.sum index 829b1536381..256f90b195c 100644 --- a/service/comprehendmedical/go.sum +++ b/service/comprehendmedical/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/computeoptimizer/go.mod b/service/computeoptimizer/go.mod index df55376a3ed..7ae48735beb 100644 --- a/service/computeoptimizer/go.mod +++ b/service/computeoptimizer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/computeoptimizer/go.sum b/service/computeoptimizer/go.sum index 829b1536381..256f90b195c 100644 --- a/service/computeoptimizer/go.sum +++ b/service/computeoptimizer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/configservice/go.mod b/service/configservice/go.mod index cec38f0d6b5..625f55174d3 100644 --- a/service/configservice/go.mod +++ b/service/configservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/configservice/go.sum b/service/configservice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/configservice/go.sum +++ b/service/configservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/connect/go.mod b/service/connect/go.mod index 5cd5e0ecd43..d6d9e257064 100644 --- a/service/connect/go.mod +++ b/service/connect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connect/go.sum b/service/connect/go.sum index 829b1536381..256f90b195c 100644 --- a/service/connect/go.sum +++ b/service/connect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/connectcontactlens/go.mod b/service/connectcontactlens/go.mod index e84cbd66df4..fc7dc1e5ace 100644 --- a/service/connectcontactlens/go.mod +++ b/service/connectcontactlens/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectcontactlens/go.sum b/service/connectcontactlens/go.sum index 829b1536381..256f90b195c 100644 --- a/service/connectcontactlens/go.sum +++ b/service/connectcontactlens/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/connectparticipant/go.mod b/service/connectparticipant/go.mod index 88de366c921..68cc9b14bec 100644 --- a/service/connectparticipant/go.mod +++ b/service/connectparticipant/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectparticipant/go.sum b/service/connectparticipant/go.sum index 829b1536381..256f90b195c 100644 --- a/service/connectparticipant/go.sum +++ b/service/connectparticipant/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/costandusagereportservice/go.mod b/service/costandusagereportservice/go.mod index ef856848c72..6fee7f1eaba 100644 --- a/service/costandusagereportservice/go.mod +++ b/service/costandusagereportservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/costandusagereportservice/go.sum b/service/costandusagereportservice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/costandusagereportservice/go.sum +++ b/service/costandusagereportservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/costexplorer/go.mod b/service/costexplorer/go.mod index 6b287dc929f..1a196e9a99d 100644 --- a/service/costexplorer/go.mod +++ b/service/costexplorer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/costexplorer/go.sum b/service/costexplorer/go.sum index 829b1536381..256f90b195c 100644 --- a/service/costexplorer/go.sum +++ b/service/costexplorer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/customerprofiles/go.mod b/service/customerprofiles/go.mod index 4b0a3be53e1..a9d2da9712f 100644 --- a/service/customerprofiles/go.mod +++ b/service/customerprofiles/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/customerprofiles/go.sum b/service/customerprofiles/go.sum index 829b1536381..256f90b195c 100644 --- a/service/customerprofiles/go.sum +++ b/service/customerprofiles/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/databasemigrationservice/go.mod b/service/databasemigrationservice/go.mod index 2e34a6833c7..887892ae928 100644 --- a/service/databasemigrationservice/go.mod +++ b/service/databasemigrationservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/databasemigrationservice/go.sum +++ b/service/databasemigrationservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/databrew/go.mod b/service/databrew/go.mod index 524f0c52a34..fb92bc64538 100644 --- a/service/databrew/go.mod +++ b/service/databrew/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/databrew/go.sum b/service/databrew/go.sum index 829b1536381..256f90b195c 100644 --- a/service/databrew/go.sum +++ b/service/databrew/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/dataexchange/go.mod b/service/dataexchange/go.mod index 278abfa81ae..064b62dc755 100644 --- a/service/dataexchange/go.mod +++ b/service/dataexchange/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dataexchange/go.sum b/service/dataexchange/go.sum index 829b1536381..256f90b195c 100644 --- a/service/dataexchange/go.sum +++ b/service/dataexchange/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/datapipeline/go.mod b/service/datapipeline/go.mod index 39cdb75b984..61e2d566084 100644 --- a/service/datapipeline/go.mod +++ b/service/datapipeline/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/datapipeline/go.sum b/service/datapipeline/go.sum index 829b1536381..256f90b195c 100644 --- a/service/datapipeline/go.sum +++ b/service/datapipeline/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/datasync/go.mod b/service/datasync/go.mod index c7ebec05545..9748cdf2f22 100644 --- a/service/datasync/go.mod +++ b/service/datasync/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/datasync/go.sum b/service/datasync/go.sum index 829b1536381..256f90b195c 100644 --- a/service/datasync/go.sum +++ b/service/datasync/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/dax/go.mod b/service/dax/go.mod index fa88c41249f..1d3e57d1240 100644 --- a/service/dax/go.mod +++ b/service/dax/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dax/go.sum b/service/dax/go.sum index 829b1536381..256f90b195c 100644 --- a/service/dax/go.sum +++ b/service/dax/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/detective/go.mod b/service/detective/go.mod index dcd470ff603..00392a50163 100644 --- a/service/detective/go.mod +++ b/service/detective/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/detective/go.sum b/service/detective/go.sum index 829b1536381..256f90b195c 100644 --- a/service/detective/go.sum +++ b/service/detective/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/devicefarm/go.mod b/service/devicefarm/go.mod index fc0089ad1ab..78c1f3544c5 100644 --- a/service/devicefarm/go.mod +++ b/service/devicefarm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/devicefarm/go.sum b/service/devicefarm/go.sum index 829b1536381..256f90b195c 100644 --- a/service/devicefarm/go.sum +++ b/service/devicefarm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/devopsguru/go.mod b/service/devopsguru/go.mod index 218e6aa6ac0..193073bacec 100644 --- a/service/devopsguru/go.mod +++ b/service/devopsguru/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/devopsguru/go.sum b/service/devopsguru/go.sum index 829b1536381..256f90b195c 100644 --- a/service/devopsguru/go.sum +++ b/service/devopsguru/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/directconnect/go.mod b/service/directconnect/go.mod index a981d60f13e..b1d58fccd01 100644 --- a/service/directconnect/go.mod +++ b/service/directconnect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/directconnect/go.sum b/service/directconnect/go.sum index 829b1536381..256f90b195c 100644 --- a/service/directconnect/go.sum +++ b/service/directconnect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/directoryservice/go.mod b/service/directoryservice/go.mod index 1cef9765db3..b45033c2184 100644 --- a/service/directoryservice/go.mod +++ b/service/directoryservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/directoryservice/go.sum b/service/directoryservice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/directoryservice/go.sum +++ b/service/directoryservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/dlm/go.mod b/service/dlm/go.mod index bd3fbb79f32..8e238048391 100644 --- a/service/dlm/go.mod +++ b/service/dlm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dlm/go.sum b/service/dlm/go.sum index 829b1536381..256f90b195c 100644 --- a/service/dlm/go.sum +++ b/service/dlm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/docdb/go.mod b/service/docdb/go.mod index 964fade1cdc..25dc7cf7094 100644 --- a/service/docdb/go.mod +++ b/service/docdb/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/docdb/go.sum b/service/docdb/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/docdb/go.sum +++ b/service/docdb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/dynamodb/go.mod b/service/dynamodb/go.mod index ee9d660341b..5eda94195fb 100644 --- a/service/dynamodb/go.mod +++ b/service/dynamodb/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.0.1 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.2.1 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.0.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum index 4ba11c58549..eeae1d6f277 100644 --- a/service/dynamodb/go.sum +++ b/service/dynamodb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/service/dynamodbstreams/go.mod b/service/dynamodbstreams/go.mod index 82708c8c63f..9b0dca84d14 100644 --- a/service/dynamodbstreams/go.mod +++ b/service/dynamodbstreams/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dynamodbstreams/go.sum b/service/dynamodbstreams/go.sum index 829b1536381..256f90b195c 100644 --- a/service/dynamodbstreams/go.sum +++ b/service/dynamodbstreams/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ebs/go.mod b/service/ebs/go.mod index efbc74b072b..b6794008d2b 100644 --- a/service/ebs/go.mod +++ b/service/ebs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ebs/go.sum b/service/ebs/go.sum index 829b1536381..256f90b195c 100644 --- a/service/ebs/go.sum +++ b/service/ebs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ec2/go.mod b/service/ec2/go.mod index c627e9a056d..ead72a880e3 100644 --- a/service/ec2/go.mod +++ b/service/ec2/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ec2/go.sum b/service/ec2/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/ec2/go.sum +++ b/service/ec2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ec2instanceconnect/go.mod b/service/ec2instanceconnect/go.mod index 885eddd5b8a..b20dee0884b 100644 --- a/service/ec2instanceconnect/go.mod +++ b/service/ec2instanceconnect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ec2instanceconnect/go.sum b/service/ec2instanceconnect/go.sum index 829b1536381..256f90b195c 100644 --- a/service/ec2instanceconnect/go.sum +++ b/service/ec2instanceconnect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ecr/go.mod b/service/ecr/go.mod index fb8e4793e80..06d405b5872 100644 --- a/service/ecr/go.mod +++ b/service/ecr/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecr/go.sum b/service/ecr/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/ecr/go.sum +++ b/service/ecr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ecrpublic/go.mod b/service/ecrpublic/go.mod index d6f50dc7c7b..81c9c39afc0 100644 --- a/service/ecrpublic/go.mod +++ b/service/ecrpublic/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ecrpublic/go.sum b/service/ecrpublic/go.sum index 829b1536381..256f90b195c 100644 --- a/service/ecrpublic/go.sum +++ b/service/ecrpublic/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ecs/go.mod b/service/ecs/go.mod index b78efd01a78..b69ca1c622b 100644 --- a/service/ecs/go.mod +++ b/service/ecs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecs/go.sum b/service/ecs/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/ecs/go.sum +++ b/service/ecs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/efs/go.mod b/service/efs/go.mod index d76b04bf61f..9bd2f8aea75 100644 --- a/service/efs/go.mod +++ b/service/efs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/efs/go.sum b/service/efs/go.sum index 829b1536381..256f90b195c 100644 --- a/service/efs/go.sum +++ b/service/efs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/eks/go.mod b/service/eks/go.mod index db7d95b412d..92e860a2063 100644 --- a/service/eks/go.mod +++ b/service/eks/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/eks/go.sum b/service/eks/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/eks/go.sum +++ b/service/eks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticache/go.mod b/service/elasticache/go.mod index bcced436c63..5d5f9b6b080 100644 --- a/service/elasticache/go.mod +++ b/service/elasticache/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/elasticache/go.sum +++ b/service/elasticache/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticbeanstalk/go.mod b/service/elasticbeanstalk/go.mod index 8db414bf530..383c5888aed 100644 --- a/service/elasticbeanstalk/go.mod +++ b/service/elasticbeanstalk/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/elasticbeanstalk/go.sum +++ b/service/elasticbeanstalk/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticinference/go.mod b/service/elasticinference/go.mod index d127c446ca8..0a9c31bbd0e 100644 --- a/service/elasticinference/go.mod +++ b/service/elasticinference/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticinference/go.sum b/service/elasticinference/go.sum index 829b1536381..256f90b195c 100644 --- a/service/elasticinference/go.sum +++ b/service/elasticinference/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/elasticloadbalancing/go.mod b/service/elasticloadbalancing/go.mod index acf4454864c..813ee95de4b 100644 --- a/service/elasticloadbalancing/go.mod +++ b/service/elasticloadbalancing/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/elasticloadbalancing/go.sum +++ b/service/elasticloadbalancing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod index 8316b1ec424..2a6db4bd9e2 100644 --- a/service/elasticloadbalancingv2/go.mod +++ b/service/elasticloadbalancingv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/elasticloadbalancingv2/go.sum +++ b/service/elasticloadbalancingv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/elasticsearchservice/go.mod b/service/elasticsearchservice/go.mod index 5d112198b8a..dabd5dd556c 100644 --- a/service/elasticsearchservice/go.mod +++ b/service/elasticsearchservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticsearchservice/go.sum b/service/elasticsearchservice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/elasticsearchservice/go.sum +++ b/service/elasticsearchservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/elastictranscoder/go.mod b/service/elastictranscoder/go.mod index 183dd3ee121..d139c1136a6 100644 --- a/service/elastictranscoder/go.mod +++ b/service/elastictranscoder/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/elastictranscoder/go.sum +++ b/service/elastictranscoder/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/emr/go.mod b/service/emr/go.mod index 3d0c2570c3b..6041bfe622b 100644 --- a/service/emr/go.mod +++ b/service/emr/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/emr/go.sum b/service/emr/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/emr/go.sum +++ b/service/emr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/emrcontainers/go.mod b/service/emrcontainers/go.mod index 407188c928c..fdf0d18c1f2 100644 --- a/service/emrcontainers/go.mod +++ b/service/emrcontainers/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/emrcontainers/go.sum b/service/emrcontainers/go.sum index 829b1536381..256f90b195c 100644 --- a/service/emrcontainers/go.sum +++ b/service/emrcontainers/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/eventbridge/go.mod b/service/eventbridge/go.mod index cf0c8485c56..cd981bb0ccf 100644 --- a/service/eventbridge/go.mod +++ b/service/eventbridge/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/eventbridge/go.sum b/service/eventbridge/go.sum index 829b1536381..256f90b195c 100644 --- a/service/eventbridge/go.sum +++ b/service/eventbridge/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/finspace/go.mod b/service/finspace/go.mod index 48d143efec8..5cf279341d1 100644 --- a/service/finspace/go.mod +++ b/service/finspace/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/finspace/go.sum b/service/finspace/go.sum index 829b1536381..256f90b195c 100644 --- a/service/finspace/go.sum +++ b/service/finspace/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/finspacedata/go.mod b/service/finspacedata/go.mod index e5d639b963e..9c0b8c93159 100644 --- a/service/finspacedata/go.mod +++ b/service/finspacedata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/finspacedata/go.sum b/service/finspacedata/go.sum index 829b1536381..256f90b195c 100644 --- a/service/finspacedata/go.sum +++ b/service/finspacedata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/firehose/go.mod b/service/firehose/go.mod index 45cb4446f08..00b86730158 100644 --- a/service/firehose/go.mod +++ b/service/firehose/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/firehose/go.sum b/service/firehose/go.sum index 829b1536381..256f90b195c 100644 --- a/service/firehose/go.sum +++ b/service/firehose/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/fis/go.mod b/service/fis/go.mod index c9239d7e149..99e8b0ade14 100644 --- a/service/fis/go.mod +++ b/service/fis/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fis/go.sum b/service/fis/go.sum index 829b1536381..256f90b195c 100644 --- a/service/fis/go.sum +++ b/service/fis/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/fms/go.mod b/service/fms/go.mod index 29785aa654a..246c37efcbf 100644 --- a/service/fms/go.mod +++ b/service/fms/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fms/go.sum b/service/fms/go.sum index 829b1536381..256f90b195c 100644 --- a/service/fms/go.sum +++ b/service/fms/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/forecast/go.mod b/service/forecast/go.mod index 7753373fe6b..485a009498e 100644 --- a/service/forecast/go.mod +++ b/service/forecast/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/forecast/go.sum b/service/forecast/go.sum index 829b1536381..256f90b195c 100644 --- a/service/forecast/go.sum +++ b/service/forecast/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/forecastquery/go.mod b/service/forecastquery/go.mod index 5330435449a..1f91516b78b 100644 --- a/service/forecastquery/go.mod +++ b/service/forecastquery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/forecastquery/go.sum b/service/forecastquery/go.sum index 829b1536381..256f90b195c 100644 --- a/service/forecastquery/go.sum +++ b/service/forecastquery/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/frauddetector/go.mod b/service/frauddetector/go.mod index 75905c361c0..1f5f7958c70 100644 --- a/service/frauddetector/go.mod +++ b/service/frauddetector/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/frauddetector/go.sum b/service/frauddetector/go.sum index 829b1536381..256f90b195c 100644 --- a/service/frauddetector/go.sum +++ b/service/frauddetector/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/fsx/go.mod b/service/fsx/go.mod index fc79448a539..56078ea26a2 100644 --- a/service/fsx/go.mod +++ b/service/fsx/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fsx/go.sum b/service/fsx/go.sum index 829b1536381..256f90b195c 100644 --- a/service/fsx/go.sum +++ b/service/fsx/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/gamelift/go.mod b/service/gamelift/go.mod index d0c16422bb1..7cc9b4aed91 100644 --- a/service/gamelift/go.mod +++ b/service/gamelift/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/gamelift/go.sum b/service/gamelift/go.sum index 829b1536381..256f90b195c 100644 --- a/service/gamelift/go.sum +++ b/service/gamelift/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/glacier/go.mod b/service/glacier/go.mod index 4b4b6aeebb0..3a53ad43c5d 100644 --- a/service/glacier/go.mod +++ b/service/glacier/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/glacier/go.sum b/service/glacier/go.sum index 829b1536381..256f90b195c 100644 --- a/service/glacier/go.sum +++ b/service/glacier/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/globalaccelerator/go.mod b/service/globalaccelerator/go.mod index d22a121103f..019a1f92076 100644 --- a/service/globalaccelerator/go.mod +++ b/service/globalaccelerator/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/globalaccelerator/go.sum b/service/globalaccelerator/go.sum index 829b1536381..256f90b195c 100644 --- a/service/globalaccelerator/go.sum +++ b/service/globalaccelerator/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/glue/go.mod b/service/glue/go.mod index e9aa0145b71..e447fc85bb2 100644 --- a/service/glue/go.mod +++ b/service/glue/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/glue/go.sum b/service/glue/go.sum index 829b1536381..256f90b195c 100644 --- a/service/glue/go.sum +++ b/service/glue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/greengrass/go.mod b/service/greengrass/go.mod index 0e85f6a8c68..b513a25cd1c 100644 --- a/service/greengrass/go.mod +++ b/service/greengrass/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/greengrass/go.sum b/service/greengrass/go.sum index 829b1536381..256f90b195c 100644 --- a/service/greengrass/go.sum +++ b/service/greengrass/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/greengrassv2/go.mod b/service/greengrassv2/go.mod index b2018746f9c..edaff847adf 100644 --- a/service/greengrassv2/go.mod +++ b/service/greengrassv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/greengrassv2/go.sum b/service/greengrassv2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/greengrassv2/go.sum +++ b/service/greengrassv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/groundstation/go.mod b/service/groundstation/go.mod index 958da341a07..bf8d4d079b1 100644 --- a/service/groundstation/go.mod +++ b/service/groundstation/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/groundstation/go.sum b/service/groundstation/go.sum index 829b1536381..256f90b195c 100644 --- a/service/groundstation/go.sum +++ b/service/groundstation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/guardduty/go.mod b/service/guardduty/go.mod index 0c2280f1a20..6abd53f3edb 100644 --- a/service/guardduty/go.mod +++ b/service/guardduty/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/guardduty/go.sum b/service/guardduty/go.sum index 829b1536381..256f90b195c 100644 --- a/service/guardduty/go.sum +++ b/service/guardduty/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/health/go.mod b/service/health/go.mod index 302420f42a1..f4a4c4b9cc4 100644 --- a/service/health/go.mod +++ b/service/health/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/health/go.sum b/service/health/go.sum index 829b1536381..256f90b195c 100644 --- a/service/health/go.sum +++ b/service/health/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/healthlake/go.mod b/service/healthlake/go.mod index 6093547c710..72b1cf6d471 100644 --- a/service/healthlake/go.mod +++ b/service/healthlake/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/healthlake/go.sum b/service/healthlake/go.sum index 829b1536381..256f90b195c 100644 --- a/service/healthlake/go.sum +++ b/service/healthlake/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/honeycode/go.mod b/service/honeycode/go.mod index 5a561e4dbbc..ad591a8baeb 100644 --- a/service/honeycode/go.mod +++ b/service/honeycode/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/honeycode/go.sum b/service/honeycode/go.sum index 829b1536381..256f90b195c 100644 --- a/service/honeycode/go.sum +++ b/service/honeycode/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iam/go.mod b/service/iam/go.mod index 79afe4b62c6..af92efd64f0 100644 --- a/service/iam/go.mod +++ b/service/iam/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iam/go.sum b/service/iam/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iam/go.sum +++ b/service/iam/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/identitystore/go.mod b/service/identitystore/go.mod index f1a5c2843bc..911015b400a 100644 --- a/service/identitystore/go.mod +++ b/service/identitystore/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/identitystore/go.sum b/service/identitystore/go.sum index 829b1536381..256f90b195c 100644 --- a/service/identitystore/go.sum +++ b/service/identitystore/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/imagebuilder/go.mod b/service/imagebuilder/go.mod index d66259a216a..72b3a18efb3 100644 --- a/service/imagebuilder/go.mod +++ b/service/imagebuilder/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/imagebuilder/go.sum b/service/imagebuilder/go.sum index 829b1536381..256f90b195c 100644 --- a/service/imagebuilder/go.sum +++ b/service/imagebuilder/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/inspector/go.mod b/service/inspector/go.mod index 317b26f2825..cf0a02cfc55 100644 --- a/service/inspector/go.mod +++ b/service/inspector/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/inspector/go.sum b/service/inspector/go.sum index 829b1536381..256f90b195c 100644 --- a/service/inspector/go.sum +++ b/service/inspector/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/internal/accept-encoding/go.mod b/service/internal/accept-encoding/go.mod index 8d11f484715..82b19da1c15 100644 --- a/service/internal/accept-encoding/go.mod +++ b/service/internal/accept-encoding/go.mod @@ -2,4 +2,4 @@ module github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding go 1.15 -require github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 +require github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 diff --git a/service/internal/accept-encoding/go.sum b/service/internal/accept-encoding/go.sum index e15f477e171..e9b125d9cb3 100644 --- a/service/internal/accept-encoding/go.sum +++ b/service/internal/accept-encoding/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod index 87b079a288d..925ca830f3e 100644 --- a/service/internal/benchmark/go.mod +++ b/service/internal/benchmark/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.4.1 github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.5.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/benchmark/go.sum b/service/internal/benchmark/go.sum index 4997a4aa427..ca6819bc2ae 100644 --- a/service/internal/benchmark/go.sum +++ b/service/internal/benchmark/go.sum @@ -1,7 +1,7 @@ github.com/aws/aws-sdk-go v1.34.33 h1:ymkFm0rNPEOlgjyX3ojEd4zqzW6kGICBkqWs7LqgHtU= github.com/aws/aws-sdk-go v1.34.33/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= diff --git a/service/internal/endpoint-discovery/go.mod b/service/internal/endpoint-discovery/go.mod index db9edc6ca71..d43b59b3c73 100644 --- a/service/internal/endpoint-discovery/go.mod +++ b/service/internal/endpoint-discovery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/endpoint-discovery/go.sum b/service/internal/endpoint-discovery/go.sum index 829b1536381..256f90b195c 100644 --- a/service/internal/endpoint-discovery/go.sum +++ b/service/internal/endpoint-discovery/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod index 17d0a4ed910..2770fc86210 100644 --- a/service/internal/integrationtest/go.mod +++ b/service/internal/integrationtest/go.mod @@ -85,7 +85,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/wafregional v1.4.1 github.com/aws/aws-sdk-go-v2/service/wafv2 v1.6.1 github.com/aws/aws-sdk-go-v2/service/workspaces v1.5.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/service/internal/integrationtest/go.sum b/service/internal/integrationtest/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/internal/integrationtest/go.sum +++ b/service/internal/integrationtest/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/internal/presigned-url/go.mod b/service/internal/presigned-url/go.mod index 79d7afbc80b..d0ecbf8c7b5 100644 --- a/service/internal/presigned-url/go.mod +++ b/service/internal/presigned-url/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/service/internal/presigned-url/go.sum b/service/internal/presigned-url/go.sum index 829b1536381..256f90b195c 100644 --- a/service/internal/presigned-url/go.sum +++ b/service/internal/presigned-url/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/internal/s3shared/go.mod b/service/internal/s3shared/go.mod index c50c69dda63..179e65c3308 100644 --- a/service/internal/s3shared/go.mod +++ b/service/internal/s3shared/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/s3shared/go.sum b/service/internal/s3shared/go.sum index 829b1536381..256f90b195c 100644 --- a/service/internal/s3shared/go.sum +++ b/service/internal/s3shared/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iot/go.mod b/service/iot/go.mod index bceca49cc69..8bd6efacef6 100644 --- a/service/iot/go.mod +++ b/service/iot/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot/go.sum b/service/iot/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iot/go.sum +++ b/service/iot/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iot1clickdevicesservice/go.mod b/service/iot1clickdevicesservice/go.mod index a1503376dc3..b7ac5c92708 100644 --- a/service/iot1clickdevicesservice/go.mod +++ b/service/iot1clickdevicesservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot1clickdevicesservice/go.sum b/service/iot1clickdevicesservice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iot1clickdevicesservice/go.sum +++ b/service/iot1clickdevicesservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iot1clickprojects/go.mod b/service/iot1clickprojects/go.mod index 4807a60b549..05549e29656 100644 --- a/service/iot1clickprojects/go.mod +++ b/service/iot1clickprojects/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot1clickprojects/go.sum b/service/iot1clickprojects/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iot1clickprojects/go.sum +++ b/service/iot1clickprojects/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotanalytics/go.mod b/service/iotanalytics/go.mod index 47f3d32ca90..ab803a39f22 100644 --- a/service/iotanalytics/go.mod +++ b/service/iotanalytics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotanalytics/go.sum b/service/iotanalytics/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iotanalytics/go.sum +++ b/service/iotanalytics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotdataplane/go.mod b/service/iotdataplane/go.mod index 796b32e854a..a82256723a0 100644 --- a/service/iotdataplane/go.mod +++ b/service/iotdataplane/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotdataplane/go.sum b/service/iotdataplane/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iotdataplane/go.sum +++ b/service/iotdataplane/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotdeviceadvisor/go.mod b/service/iotdeviceadvisor/go.mod index b1406bf4a46..3dbe188e674 100644 --- a/service/iotdeviceadvisor/go.mod +++ b/service/iotdeviceadvisor/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotdeviceadvisor/go.sum b/service/iotdeviceadvisor/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iotdeviceadvisor/go.sum +++ b/service/iotdeviceadvisor/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotevents/go.mod b/service/iotevents/go.mod index 477b2c3b643..533714a0808 100644 --- a/service/iotevents/go.mod +++ b/service/iotevents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotevents/go.sum b/service/iotevents/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iotevents/go.sum +++ b/service/iotevents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ioteventsdata/go.mod b/service/ioteventsdata/go.mod index 7bbd93723a9..f2f11340307 100644 --- a/service/ioteventsdata/go.mod +++ b/service/ioteventsdata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ioteventsdata/go.sum b/service/ioteventsdata/go.sum index 829b1536381..256f90b195c 100644 --- a/service/ioteventsdata/go.sum +++ b/service/ioteventsdata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotfleethub/go.mod b/service/iotfleethub/go.mod index 3b1480ebf94..9794314932d 100644 --- a/service/iotfleethub/go.mod +++ b/service/iotfleethub/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotfleethub/go.sum b/service/iotfleethub/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iotfleethub/go.sum +++ b/service/iotfleethub/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotjobsdataplane/go.mod b/service/iotjobsdataplane/go.mod index ca9a820112e..c79cd5645e8 100644 --- a/service/iotjobsdataplane/go.mod +++ b/service/iotjobsdataplane/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotjobsdataplane/go.sum b/service/iotjobsdataplane/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iotjobsdataplane/go.sum +++ b/service/iotjobsdataplane/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotsecuretunneling/go.mod b/service/iotsecuretunneling/go.mod index 7239e2af805..6c808e5ff04 100644 --- a/service/iotsecuretunneling/go.mod +++ b/service/iotsecuretunneling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotsecuretunneling/go.sum b/service/iotsecuretunneling/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iotsecuretunneling/go.sum +++ b/service/iotsecuretunneling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotsitewise/go.mod b/service/iotsitewise/go.mod index e3237695291..0788331fc52 100644 --- a/service/iotsitewise/go.mod +++ b/service/iotsitewise/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/iotsitewise/go.sum b/service/iotsitewise/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/iotsitewise/go.sum +++ b/service/iotsitewise/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/iotthingsgraph/go.mod b/service/iotthingsgraph/go.mod index b2a1dd86415..75490db2673 100644 --- a/service/iotthingsgraph/go.mod +++ b/service/iotthingsgraph/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotthingsgraph/go.sum b/service/iotthingsgraph/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iotthingsgraph/go.sum +++ b/service/iotthingsgraph/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/iotwireless/go.mod b/service/iotwireless/go.mod index 280a1ed9049..2e1d90a532b 100644 --- a/service/iotwireless/go.mod +++ b/service/iotwireless/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotwireless/go.sum b/service/iotwireless/go.sum index 829b1536381..256f90b195c 100644 --- a/service/iotwireless/go.sum +++ b/service/iotwireless/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ivs/go.mod b/service/ivs/go.mod index a912321af93..7c9f9da94bf 100644 --- a/service/ivs/go.mod +++ b/service/ivs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ivs/go.sum b/service/ivs/go.sum index 829b1536381..256f90b195c 100644 --- a/service/ivs/go.sum +++ b/service/ivs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kafka/go.mod b/service/kafka/go.mod index b9636710f7c..d3f9f29c27f 100644 --- a/service/kafka/go.mod +++ b/service/kafka/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kafka/go.sum b/service/kafka/go.sum index 829b1536381..256f90b195c 100644 --- a/service/kafka/go.sum +++ b/service/kafka/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kendra/go.mod b/service/kendra/go.mod index 288755aa9a9..787d59b63ed 100644 --- a/service/kendra/go.mod +++ b/service/kendra/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kendra/go.sum b/service/kendra/go.sum index 829b1536381..256f90b195c 100644 --- a/service/kendra/go.sum +++ b/service/kendra/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesis/go.mod b/service/kinesis/go.mod index 477b15dc3cd..0028d489569 100644 --- a/service/kinesis/go.mod +++ b/service/kinesis/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/kinesis/go.sum +++ b/service/kinesis/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/kinesisanalytics/go.mod b/service/kinesisanalytics/go.mod index ba30e2e2fad..658ba19fc9b 100644 --- a/service/kinesisanalytics/go.mod +++ b/service/kinesisanalytics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisanalytics/go.sum b/service/kinesisanalytics/go.sum index 829b1536381..256f90b195c 100644 --- a/service/kinesisanalytics/go.sum +++ b/service/kinesisanalytics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisanalyticsv2/go.mod b/service/kinesisanalyticsv2/go.mod index 2b3ee84b2d9..73476514496 100644 --- a/service/kinesisanalyticsv2/go.mod +++ b/service/kinesisanalyticsv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisanalyticsv2/go.sum b/service/kinesisanalyticsv2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/kinesisanalyticsv2/go.sum +++ b/service/kinesisanalyticsv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisvideo/go.mod b/service/kinesisvideo/go.mod index 8b21ebda2a6..494b95b159c 100644 --- a/service/kinesisvideo/go.mod +++ b/service/kinesisvideo/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideo/go.sum b/service/kinesisvideo/go.sum index 829b1536381..256f90b195c 100644 --- a/service/kinesisvideo/go.sum +++ b/service/kinesisvideo/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisvideoarchivedmedia/go.mod b/service/kinesisvideoarchivedmedia/go.mod index 79ea179db40..55290bfd183 100644 --- a/service/kinesisvideoarchivedmedia/go.mod +++ b/service/kinesisvideoarchivedmedia/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideoarchivedmedia/go.sum b/service/kinesisvideoarchivedmedia/go.sum index 829b1536381..256f90b195c 100644 --- a/service/kinesisvideoarchivedmedia/go.sum +++ b/service/kinesisvideoarchivedmedia/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisvideomedia/go.mod b/service/kinesisvideomedia/go.mod index 6290f9b1d6b..60ea0535553 100644 --- a/service/kinesisvideomedia/go.mod +++ b/service/kinesisvideomedia/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideomedia/go.sum b/service/kinesisvideomedia/go.sum index 829b1536381..256f90b195c 100644 --- a/service/kinesisvideomedia/go.sum +++ b/service/kinesisvideomedia/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kinesisvideosignaling/go.mod b/service/kinesisvideosignaling/go.mod index 8ae62581d2b..a4c4d7d9a73 100644 --- a/service/kinesisvideosignaling/go.mod +++ b/service/kinesisvideosignaling/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideosignaling/go.sum b/service/kinesisvideosignaling/go.sum index 829b1536381..256f90b195c 100644 --- a/service/kinesisvideosignaling/go.sum +++ b/service/kinesisvideosignaling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/kms/go.mod b/service/kms/go.mod index 65ae73c3532..160ec65da8d 100644 --- a/service/kms/go.mod +++ b/service/kms/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kms/go.sum b/service/kms/go.sum index 829b1536381..256f90b195c 100644 --- a/service/kms/go.sum +++ b/service/kms/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lakeformation/go.mod b/service/lakeformation/go.mod index bc85f5dc0d1..bc787e41745 100644 --- a/service/lakeformation/go.mod +++ b/service/lakeformation/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lakeformation/go.sum b/service/lakeformation/go.sum index 829b1536381..256f90b195c 100644 --- a/service/lakeformation/go.sum +++ b/service/lakeformation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lambda/go.mod b/service/lambda/go.mod index 4478b0f9093..0daa9e40517 100644 --- a/service/lambda/go.mod +++ b/service/lambda/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lambda/go.sum b/service/lambda/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/lambda/go.sum +++ b/service/lambda/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/lexmodelbuildingservice/go.mod b/service/lexmodelbuildingservice/go.mod index c553112e52e..a0e755c17e3 100644 --- a/service/lexmodelbuildingservice/go.mod +++ b/service/lexmodelbuildingservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexmodelbuildingservice/go.sum b/service/lexmodelbuildingservice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/lexmodelbuildingservice/go.sum +++ b/service/lexmodelbuildingservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lexmodelsv2/go.mod b/service/lexmodelsv2/go.mod index 03ff93e6994..f199d7c95eb 100644 --- a/service/lexmodelsv2/go.mod +++ b/service/lexmodelsv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexmodelsv2/go.sum b/service/lexmodelsv2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/lexmodelsv2/go.sum +++ b/service/lexmodelsv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lexruntimeservice/go.mod b/service/lexruntimeservice/go.mod index 72851c96786..e32933e0a73 100644 --- a/service/lexruntimeservice/go.mod +++ b/service/lexruntimeservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexruntimeservice/go.sum b/service/lexruntimeservice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/lexruntimeservice/go.sum +++ b/service/lexruntimeservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lexruntimev2/go.mod b/service/lexruntimev2/go.mod index 3758274cc3a..97887c11dd7 100644 --- a/service/lexruntimev2/go.mod +++ b/service/lexruntimev2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexruntimev2/go.sum b/service/lexruntimev2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/lexruntimev2/go.sum +++ b/service/lexruntimev2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/licensemanager/go.mod b/service/licensemanager/go.mod index 49a645c74a3..b2069823eef 100644 --- a/service/licensemanager/go.mod +++ b/service/licensemanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/licensemanager/go.sum b/service/licensemanager/go.sum index 829b1536381..256f90b195c 100644 --- a/service/licensemanager/go.sum +++ b/service/licensemanager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lightsail/go.mod b/service/lightsail/go.mod index 4d1cce8d765..5ac1b8e6281 100644 --- a/service/lightsail/go.mod +++ b/service/lightsail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lightsail/go.sum b/service/lightsail/go.sum index 829b1536381..256f90b195c 100644 --- a/service/lightsail/go.sum +++ b/service/lightsail/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/location/go.mod b/service/location/go.mod index 18fa3c0aa94..33e32ec70aa 100644 --- a/service/location/go.mod +++ b/service/location/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/location/go.sum b/service/location/go.sum index 829b1536381..256f90b195c 100644 --- a/service/location/go.sum +++ b/service/location/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lookoutequipment/go.mod b/service/lookoutequipment/go.mod index 8b8bd9d10e9..302e967f38a 100644 --- a/service/lookoutequipment/go.mod +++ b/service/lookoutequipment/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lookoutequipment/go.sum b/service/lookoutequipment/go.sum index 829b1536381..256f90b195c 100644 --- a/service/lookoutequipment/go.sum +++ b/service/lookoutequipment/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lookoutmetrics/go.mod b/service/lookoutmetrics/go.mod index 99e03187ab1..ddc386fdf6a 100644 --- a/service/lookoutmetrics/go.mod +++ b/service/lookoutmetrics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lookoutmetrics/go.sum b/service/lookoutmetrics/go.sum index 829b1536381..256f90b195c 100644 --- a/service/lookoutmetrics/go.sum +++ b/service/lookoutmetrics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/lookoutvision/go.mod b/service/lookoutvision/go.mod index a1a93e72b56..afa9bf9e3f0 100644 --- a/service/lookoutvision/go.mod +++ b/service/lookoutvision/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lookoutvision/go.sum b/service/lookoutvision/go.sum index 829b1536381..256f90b195c 100644 --- a/service/lookoutvision/go.sum +++ b/service/lookoutvision/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/machinelearning/go.mod b/service/machinelearning/go.mod index 38a216bf2a8..c1ebb26bca0 100644 --- a/service/machinelearning/go.mod +++ b/service/machinelearning/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/machinelearning/go.sum b/service/machinelearning/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/machinelearning/go.sum +++ b/service/machinelearning/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/macie/go.mod b/service/macie/go.mod index 2f6d277ba88..e077c4ce3cd 100644 --- a/service/macie/go.mod +++ b/service/macie/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/macie/go.sum b/service/macie/go.sum index 829b1536381..256f90b195c 100644 --- a/service/macie/go.sum +++ b/service/macie/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/macie2/go.mod b/service/macie2/go.mod index 877ac071111..12eaece3e3e 100644 --- a/service/macie2/go.mod +++ b/service/macie2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/macie2/go.sum b/service/macie2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/macie2/go.sum +++ b/service/macie2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/managedblockchain/go.mod b/service/managedblockchain/go.mod index 37da6541c40..7c19f392d02 100644 --- a/service/managedblockchain/go.mod +++ b/service/managedblockchain/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/managedblockchain/go.sum b/service/managedblockchain/go.sum index 829b1536381..256f90b195c 100644 --- a/service/managedblockchain/go.sum +++ b/service/managedblockchain/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/marketplacecatalog/go.mod b/service/marketplacecatalog/go.mod index 6292740ce6a..18c258b02bf 100644 --- a/service/marketplacecatalog/go.mod +++ b/service/marketplacecatalog/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacecatalog/go.sum b/service/marketplacecatalog/go.sum index 829b1536381..256f90b195c 100644 --- a/service/marketplacecatalog/go.sum +++ b/service/marketplacecatalog/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/marketplacecommerceanalytics/go.mod b/service/marketplacecommerceanalytics/go.mod index b183438e64f..085fb458fc1 100644 --- a/service/marketplacecommerceanalytics/go.mod +++ b/service/marketplacecommerceanalytics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacecommerceanalytics/go.sum b/service/marketplacecommerceanalytics/go.sum index 829b1536381..256f90b195c 100644 --- a/service/marketplacecommerceanalytics/go.sum +++ b/service/marketplacecommerceanalytics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/marketplaceentitlementservice/go.mod b/service/marketplaceentitlementservice/go.mod index 40c4774b0ad..c2ee4a3e0c8 100644 --- a/service/marketplaceentitlementservice/go.mod +++ b/service/marketplaceentitlementservice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplaceentitlementservice/go.sum b/service/marketplaceentitlementservice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/marketplaceentitlementservice/go.sum +++ b/service/marketplaceentitlementservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/marketplacemetering/go.mod b/service/marketplacemetering/go.mod index f827faefe54..62c3739be9b 100644 --- a/service/marketplacemetering/go.mod +++ b/service/marketplacemetering/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacemetering/go.sum b/service/marketplacemetering/go.sum index 829b1536381..256f90b195c 100644 --- a/service/marketplacemetering/go.sum +++ b/service/marketplacemetering/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediaconnect/go.mod b/service/mediaconnect/go.mod index 35672f9ebdb..a78191c189a 100644 --- a/service/mediaconnect/go.mod +++ b/service/mediaconnect/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/mediaconnect/go.sum b/service/mediaconnect/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/mediaconnect/go.sum +++ b/service/mediaconnect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediaconvert/go.mod b/service/mediaconvert/go.mod index e944cde7dbf..d8e2e1e05f2 100644 --- a/service/mediaconvert/go.mod +++ b/service/mediaconvert/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediaconvert/go.sum b/service/mediaconvert/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mediaconvert/go.sum +++ b/service/mediaconvert/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/medialive/go.mod b/service/medialive/go.mod index 41699483d67..9054ac7e1b2 100644 --- a/service/medialive/go.mod +++ b/service/medialive/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/medialive/go.sum b/service/medialive/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/medialive/go.sum +++ b/service/medialive/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/mediapackage/go.mod b/service/mediapackage/go.mod index 8f4535c5b83..2138b34371d 100644 --- a/service/mediapackage/go.mod +++ b/service/mediapackage/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediapackage/go.sum b/service/mediapackage/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mediapackage/go.sum +++ b/service/mediapackage/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediapackagevod/go.mod b/service/mediapackagevod/go.mod index 05709a22a06..403f18b3674 100644 --- a/service/mediapackagevod/go.mod +++ b/service/mediapackagevod/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediapackagevod/go.sum b/service/mediapackagevod/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mediapackagevod/go.sum +++ b/service/mediapackagevod/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediastore/go.mod b/service/mediastore/go.mod index d382cd225cf..13e4cdb4e5b 100644 --- a/service/mediastore/go.mod +++ b/service/mediastore/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediastore/go.sum b/service/mediastore/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mediastore/go.sum +++ b/service/mediastore/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediastoredata/go.mod b/service/mediastoredata/go.mod index 6f4516906d7..8cc2efcd987 100644 --- a/service/mediastoredata/go.mod +++ b/service/mediastoredata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediastoredata/go.sum b/service/mediastoredata/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mediastoredata/go.sum +++ b/service/mediastoredata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mediatailor/go.mod b/service/mediatailor/go.mod index d2921051b6b..8b8c4833900 100644 --- a/service/mediatailor/go.mod +++ b/service/mediatailor/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediatailor/go.sum b/service/mediatailor/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mediatailor/go.sum +++ b/service/mediatailor/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mgn/go.mod b/service/mgn/go.mod index ef9336b1260..85fd304d914 100644 --- a/service/mgn/go.mod +++ b/service/mgn/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mgn/go.sum b/service/mgn/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mgn/go.sum +++ b/service/mgn/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/migrationhub/go.mod b/service/migrationhub/go.mod index 6578818dae8..9a5544050bf 100644 --- a/service/migrationhub/go.mod +++ b/service/migrationhub/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhub/go.sum b/service/migrationhub/go.sum index 829b1536381..256f90b195c 100644 --- a/service/migrationhub/go.sum +++ b/service/migrationhub/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/migrationhubconfig/go.mod b/service/migrationhubconfig/go.mod index 951d7050043..0975c0f06de 100644 --- a/service/migrationhubconfig/go.mod +++ b/service/migrationhubconfig/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhubconfig/go.sum b/service/migrationhubconfig/go.sum index 829b1536381..256f90b195c 100644 --- a/service/migrationhubconfig/go.sum +++ b/service/migrationhubconfig/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mobile/go.mod b/service/mobile/go.mod index e3275160423..adf3171a32f 100644 --- a/service/mobile/go.mod +++ b/service/mobile/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mobile/go.sum b/service/mobile/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mobile/go.sum +++ b/service/mobile/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mq/go.mod b/service/mq/go.mod index da8516e3c6f..6ee99cad19d 100644 --- a/service/mq/go.mod +++ b/service/mq/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mq/go.sum b/service/mq/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mq/go.sum +++ b/service/mq/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mturk/go.mod b/service/mturk/go.mod index 51233419fff..f4d0eff5d53 100644 --- a/service/mturk/go.mod +++ b/service/mturk/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mturk/go.sum b/service/mturk/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mturk/go.sum +++ b/service/mturk/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/mwaa/go.mod b/service/mwaa/go.mod index 0ad1c0cbbbc..9b2e50b2537 100644 --- a/service/mwaa/go.mod +++ b/service/mwaa/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mwaa/go.sum b/service/mwaa/go.sum index 829b1536381..256f90b195c 100644 --- a/service/mwaa/go.sum +++ b/service/mwaa/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/neptune/go.mod b/service/neptune/go.mod index 3fda58e5bf9..20dfb1561cc 100644 --- a/service/neptune/go.mod +++ b/service/neptune/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/neptune/go.sum b/service/neptune/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/neptune/go.sum +++ b/service/neptune/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/networkfirewall/go.mod b/service/networkfirewall/go.mod index 86013524b24..cc633bd1bcc 100644 --- a/service/networkfirewall/go.mod +++ b/service/networkfirewall/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/networkfirewall/go.sum b/service/networkfirewall/go.sum index 829b1536381..256f90b195c 100644 --- a/service/networkfirewall/go.sum +++ b/service/networkfirewall/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/networkmanager/go.mod b/service/networkmanager/go.mod index bd699242ef2..3ab27d89426 100644 --- a/service/networkmanager/go.mod +++ b/service/networkmanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/networkmanager/go.sum b/service/networkmanager/go.sum index 829b1536381..256f90b195c 100644 --- a/service/networkmanager/go.sum +++ b/service/networkmanager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/nimble/go.mod b/service/nimble/go.mod index b66ba131d59..b0652b08638 100644 --- a/service/nimble/go.mod +++ b/service/nimble/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/nimble/go.sum b/service/nimble/go.sum index 829b1536381..256f90b195c 100644 --- a/service/nimble/go.sum +++ b/service/nimble/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/opsworks/go.mod b/service/opsworks/go.mod index d2c2014c59a..b342ec11592 100644 --- a/service/opsworks/go.mod +++ b/service/opsworks/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/opsworks/go.sum +++ b/service/opsworks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/opsworkscm/go.mod b/service/opsworkscm/go.mod index e0a0e24fffe..b1930fd0fd2 100644 --- a/service/opsworkscm/go.mod +++ b/service/opsworkscm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/opsworkscm/go.sum +++ b/service/opsworkscm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/organizations/go.mod b/service/organizations/go.mod index 9cce1c76c97..177676eebfb 100644 --- a/service/organizations/go.mod +++ b/service/organizations/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/organizations/go.sum b/service/organizations/go.sum index 829b1536381..256f90b195c 100644 --- a/service/organizations/go.sum +++ b/service/organizations/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/outposts/go.mod b/service/outposts/go.mod index 5d007645798..cb81c8a451b 100644 --- a/service/outposts/go.mod +++ b/service/outposts/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/outposts/go.sum b/service/outposts/go.sum index 829b1536381..256f90b195c 100644 --- a/service/outposts/go.sum +++ b/service/outposts/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/personalize/go.mod b/service/personalize/go.mod index 6d63508c6f4..2594df97461 100644 --- a/service/personalize/go.mod +++ b/service/personalize/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalize/go.sum b/service/personalize/go.sum index 829b1536381..256f90b195c 100644 --- a/service/personalize/go.sum +++ b/service/personalize/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/personalizeevents/go.mod b/service/personalizeevents/go.mod index d516cc6c66e..1b150387992 100644 --- a/service/personalizeevents/go.mod +++ b/service/personalizeevents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalizeevents/go.sum b/service/personalizeevents/go.sum index 829b1536381..256f90b195c 100644 --- a/service/personalizeevents/go.sum +++ b/service/personalizeevents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/personalizeruntime/go.mod b/service/personalizeruntime/go.mod index 2c9d964f96f..99bb63ebcb3 100644 --- a/service/personalizeruntime/go.mod +++ b/service/personalizeruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalizeruntime/go.sum b/service/personalizeruntime/go.sum index 829b1536381..256f90b195c 100644 --- a/service/personalizeruntime/go.sum +++ b/service/personalizeruntime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pi/go.mod b/service/pi/go.mod index 7039c412ca7..3d608894484 100644 --- a/service/pi/go.mod +++ b/service/pi/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pi/go.sum b/service/pi/go.sum index 829b1536381..256f90b195c 100644 --- a/service/pi/go.sum +++ b/service/pi/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pinpoint/go.mod b/service/pinpoint/go.mod index f596d7ed3a4..c7da819e8f1 100644 --- a/service/pinpoint/go.mod +++ b/service/pinpoint/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpoint/go.sum b/service/pinpoint/go.sum index 829b1536381..256f90b195c 100644 --- a/service/pinpoint/go.sum +++ b/service/pinpoint/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pinpointemail/go.mod b/service/pinpointemail/go.mod index 12400c2ed72..9209d08216b 100644 --- a/service/pinpointemail/go.mod +++ b/service/pinpointemail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpointemail/go.sum b/service/pinpointemail/go.sum index 829b1536381..256f90b195c 100644 --- a/service/pinpointemail/go.sum +++ b/service/pinpointemail/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pinpointsmsvoice/go.mod b/service/pinpointsmsvoice/go.mod index 6f2609872ba..a01c325d2c5 100644 --- a/service/pinpointsmsvoice/go.mod +++ b/service/pinpointsmsvoice/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpointsmsvoice/go.sum b/service/pinpointsmsvoice/go.sum index 829b1536381..256f90b195c 100644 --- a/service/pinpointsmsvoice/go.sum +++ b/service/pinpointsmsvoice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/polly/go.mod b/service/polly/go.mod index 2d27b807605..0792ac408f7 100644 --- a/service/polly/go.mod +++ b/service/polly/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/polly/go.sum b/service/polly/go.sum index 829b1536381..256f90b195c 100644 --- a/service/polly/go.sum +++ b/service/polly/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/pricing/go.mod b/service/pricing/go.mod index 9a33c9f7a13..b3cedcad9bd 100644 --- a/service/pricing/go.mod +++ b/service/pricing/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pricing/go.sum b/service/pricing/go.sum index 829b1536381..256f90b195c 100644 --- a/service/pricing/go.sum +++ b/service/pricing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/proton/go.mod b/service/proton/go.mod index dbef26c710a..cf188e0db69 100644 --- a/service/proton/go.mod +++ b/service/proton/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/proton/go.sum b/service/proton/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/proton/go.sum +++ b/service/proton/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/qldb/go.mod b/service/qldb/go.mod index 490ae81b83d..aa3170b0d8a 100644 --- a/service/qldb/go.mod +++ b/service/qldb/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qldb/go.sum b/service/qldb/go.sum index 829b1536381..256f90b195c 100644 --- a/service/qldb/go.sum +++ b/service/qldb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/qldbsession/go.mod b/service/qldbsession/go.mod index 0565dbfd463..3b2bc18d278 100644 --- a/service/qldbsession/go.mod +++ b/service/qldbsession/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qldbsession/go.sum b/service/qldbsession/go.sum index 829b1536381..256f90b195c 100644 --- a/service/qldbsession/go.sum +++ b/service/qldbsession/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/quicksight/go.mod b/service/quicksight/go.mod index 49d3cba500b..c17728c38b0 100644 --- a/service/quicksight/go.mod +++ b/service/quicksight/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/quicksight/go.sum b/service/quicksight/go.sum index 829b1536381..256f90b195c 100644 --- a/service/quicksight/go.sum +++ b/service/quicksight/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ram/go.mod b/service/ram/go.mod index 69f1557bbce..47d1eadf840 100644 --- a/service/ram/go.mod +++ b/service/ram/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ram/go.sum b/service/ram/go.sum index 829b1536381..256f90b195c 100644 --- a/service/ram/go.sum +++ b/service/ram/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/rds/go.mod b/service/rds/go.mod index 67e6ec5d439..cdaf842b420 100644 --- a/service/rds/go.mod +++ b/service/rds/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rds/go.sum b/service/rds/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/rds/go.sum +++ b/service/rds/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/rdsdata/go.mod b/service/rdsdata/go.mod index 79d5246903b..0d86771e868 100644 --- a/service/rdsdata/go.mod +++ b/service/rdsdata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/rdsdata/go.sum b/service/rdsdata/go.sum index 829b1536381..256f90b195c 100644 --- a/service/rdsdata/go.sum +++ b/service/rdsdata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/redshift/go.mod b/service/redshift/go.mod index 34711664fdd..cc90cd02650 100644 --- a/service/redshift/go.mod +++ b/service/redshift/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/redshift/go.sum b/service/redshift/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/redshift/go.sum +++ b/service/redshift/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/redshiftdata/go.mod b/service/redshiftdata/go.mod index 8a69e065f4e..51ee52c440b 100644 --- a/service/redshiftdata/go.mod +++ b/service/redshiftdata/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/redshiftdata/go.sum b/service/redshiftdata/go.sum index 829b1536381..256f90b195c 100644 --- a/service/redshiftdata/go.sum +++ b/service/redshiftdata/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/rekognition/go.mod b/service/rekognition/go.mod index d8430d9648a..755113ae5c1 100644 --- a/service/rekognition/go.mod +++ b/service/rekognition/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/rekognition/go.sum +++ b/service/rekognition/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/resourcegroups/go.mod b/service/resourcegroups/go.mod index 3ec3aa9bd03..861d33877a0 100644 --- a/service/resourcegroups/go.mod +++ b/service/resourcegroups/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resourcegroups/go.sum b/service/resourcegroups/go.sum index 829b1536381..256f90b195c 100644 --- a/service/resourcegroups/go.sum +++ b/service/resourcegroups/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/resourcegroupstaggingapi/go.mod b/service/resourcegroupstaggingapi/go.mod index 178c3bb5f50..2e23e22190d 100644 --- a/service/resourcegroupstaggingapi/go.mod +++ b/service/resourcegroupstaggingapi/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resourcegroupstaggingapi/go.sum b/service/resourcegroupstaggingapi/go.sum index 829b1536381..256f90b195c 100644 --- a/service/resourcegroupstaggingapi/go.sum +++ b/service/resourcegroupstaggingapi/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/robomaker/go.mod b/service/robomaker/go.mod index 5ab33051fdb..ba6760cc448 100644 --- a/service/robomaker/go.mod +++ b/service/robomaker/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/robomaker/go.sum b/service/robomaker/go.sum index 829b1536381..256f90b195c 100644 --- a/service/robomaker/go.sum +++ b/service/robomaker/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/route53/go.mod b/service/route53/go.mod index df12e9da5cf..9ad06f1e920 100644 --- a/service/route53/go.mod +++ b/service/route53/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53/go.sum b/service/route53/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/route53/go.sum +++ b/service/route53/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/route53domains/go.mod b/service/route53domains/go.mod index d900016a3f6..18aa9de5c76 100644 --- a/service/route53domains/go.mod +++ b/service/route53domains/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53domains/go.sum b/service/route53domains/go.sum index 829b1536381..256f90b195c 100644 --- a/service/route53domains/go.sum +++ b/service/route53domains/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/route53resolver/go.mod b/service/route53resolver/go.mod index 0b0ed5a13ac..7300dd2f5a1 100644 --- a/service/route53resolver/go.mod +++ b/service/route53resolver/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53resolver/go.sum b/service/route53resolver/go.sum index 829b1536381..256f90b195c 100644 --- a/service/route53resolver/go.sum +++ b/service/route53resolver/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/s3/go.mod b/service/s3/go.mod index 4cb08ad687e..54317fc7736 100644 --- a/service/s3/go.mod +++ b/service/s3/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.2.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.5.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/google/go-cmp v0.5.6 ) diff --git a/service/s3/go.sum b/service/s3/go.sum index 829b1536381..256f90b195c 100644 --- a/service/s3/go.sum +++ b/service/s3/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/s3/internal/configtesting/go.sum b/service/s3/internal/configtesting/go.sum index 829b1536381..256f90b195c 100644 --- a/service/s3/internal/configtesting/go.sum +++ b/service/s3/internal/configtesting/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/s3control/go.mod b/service/s3control/go.mod index 121f648d85b..63bb75c55ee 100644 --- a/service/s3control/go.mod +++ b/service/s3control/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.5.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3control/go.sum b/service/s3control/go.sum index 829b1536381..256f90b195c 100644 --- a/service/s3control/go.sum +++ b/service/s3control/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/s3outposts/go.mod b/service/s3outposts/go.mod index ca5a7fd1cdf..58bc895bb59 100644 --- a/service/s3outposts/go.mod +++ b/service/s3outposts/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3outposts/go.sum b/service/s3outposts/go.sum index 829b1536381..256f90b195c 100644 --- a/service/s3outposts/go.sum +++ b/service/s3outposts/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sagemaker/go.mod b/service/sagemaker/go.mod index 3d54b48ab6f..8cf039ad662 100644 --- a/service/sagemaker/go.mod +++ b/service/sagemaker/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/sagemaker/go.sum +++ b/service/sagemaker/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sagemakera2iruntime/go.mod b/service/sagemakera2iruntime/go.mod index 5937afb3597..702ebf92cb8 100644 --- a/service/sagemakera2iruntime/go.mod +++ b/service/sagemakera2iruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakera2iruntime/go.sum b/service/sagemakera2iruntime/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sagemakera2iruntime/go.sum +++ b/service/sagemakera2iruntime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sagemakeredge/go.mod b/service/sagemakeredge/go.mod index d2d76739647..6548103eee4 100644 --- a/service/sagemakeredge/go.mod +++ b/service/sagemakeredge/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakeredge/go.sum b/service/sagemakeredge/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sagemakeredge/go.sum +++ b/service/sagemakeredge/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sagemakerfeaturestoreruntime/go.mod b/service/sagemakerfeaturestoreruntime/go.mod index 16913716e28..3e4d0bc43a8 100644 --- a/service/sagemakerfeaturestoreruntime/go.mod +++ b/service/sagemakerfeaturestoreruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakerfeaturestoreruntime/go.sum b/service/sagemakerfeaturestoreruntime/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sagemakerfeaturestoreruntime/go.sum +++ b/service/sagemakerfeaturestoreruntime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sagemakerruntime/go.mod b/service/sagemakerruntime/go.mod index 7761f4c49cd..8ecd290db89 100644 --- a/service/sagemakerruntime/go.mod +++ b/service/sagemakerruntime/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakerruntime/go.sum b/service/sagemakerruntime/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sagemakerruntime/go.sum +++ b/service/sagemakerruntime/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/savingsplans/go.mod b/service/savingsplans/go.mod index 2e63bde3478..64e8caa565f 100644 --- a/service/savingsplans/go.mod +++ b/service/savingsplans/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/savingsplans/go.sum b/service/savingsplans/go.sum index 829b1536381..256f90b195c 100644 --- a/service/savingsplans/go.sum +++ b/service/savingsplans/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/schemas/go.mod b/service/schemas/go.mod index 7c30bf1a17c..f7f8eeb4166 100644 --- a/service/schemas/go.mod +++ b/service/schemas/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/schemas/go.sum b/service/schemas/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/schemas/go.sum +++ b/service/schemas/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/secretsmanager/go.mod b/service/secretsmanager/go.mod index f7e3a63cc15..ed0be9d21d3 100644 --- a/service/secretsmanager/go.mod +++ b/service/secretsmanager/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/secretsmanager/go.sum b/service/secretsmanager/go.sum index 829b1536381..256f90b195c 100644 --- a/service/secretsmanager/go.sum +++ b/service/secretsmanager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/securityhub/go.mod b/service/securityhub/go.mod index 087d2debe7a..882b24d921d 100644 --- a/service/securityhub/go.mod +++ b/service/securityhub/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/securityhub/go.sum b/service/securityhub/go.sum index 829b1536381..256f90b195c 100644 --- a/service/securityhub/go.sum +++ b/service/securityhub/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/serverlessapplicationrepository/go.mod b/service/serverlessapplicationrepository/go.mod index 90981220483..a5df4acc7e1 100644 --- a/service/serverlessapplicationrepository/go.mod +++ b/service/serverlessapplicationrepository/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/serverlessapplicationrepository/go.sum b/service/serverlessapplicationrepository/go.sum index 829b1536381..256f90b195c 100644 --- a/service/serverlessapplicationrepository/go.sum +++ b/service/serverlessapplicationrepository/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/servicecatalog/go.mod b/service/servicecatalog/go.mod index fc7dc8a752c..25ec599062a 100644 --- a/service/servicecatalog/go.mod +++ b/service/servicecatalog/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicecatalog/go.sum b/service/servicecatalog/go.sum index 829b1536381..256f90b195c 100644 --- a/service/servicecatalog/go.sum +++ b/service/servicecatalog/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/servicecatalogappregistry/go.mod b/service/servicecatalogappregistry/go.mod index 847e4680a2a..2c883399485 100644 --- a/service/servicecatalogappregistry/go.mod +++ b/service/servicecatalogappregistry/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicecatalogappregistry/go.sum b/service/servicecatalogappregistry/go.sum index 829b1536381..256f90b195c 100644 --- a/service/servicecatalogappregistry/go.sum +++ b/service/servicecatalogappregistry/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/servicediscovery/go.mod b/service/servicediscovery/go.mod index 63784a73ee3..d34748eb8db 100644 --- a/service/servicediscovery/go.mod +++ b/service/servicediscovery/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicediscovery/go.sum b/service/servicediscovery/go.sum index 829b1536381..256f90b195c 100644 --- a/service/servicediscovery/go.sum +++ b/service/servicediscovery/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/servicequotas/go.mod b/service/servicequotas/go.mod index 79c59eb0701..6e7a71ae79a 100644 --- a/service/servicequotas/go.mod +++ b/service/servicequotas/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicequotas/go.sum b/service/servicequotas/go.sum index 829b1536381..256f90b195c 100644 --- a/service/servicequotas/go.sum +++ b/service/servicequotas/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ses/go.mod b/service/ses/go.mod index 5d34819cde0..c40e30a5227 100644 --- a/service/ses/go.mod +++ b/service/ses/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ses/go.sum b/service/ses/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/ses/go.sum +++ b/service/ses/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sesv2/go.mod b/service/sesv2/go.mod index 86fdaa34620..adbc01b52e0 100644 --- a/service/sesv2/go.mod +++ b/service/sesv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sesv2/go.sum b/service/sesv2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sesv2/go.sum +++ b/service/sesv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sfn/go.mod b/service/sfn/go.mod index 9d6d795a117..a48231662ac 100644 --- a/service/sfn/go.mod +++ b/service/sfn/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sfn/go.sum b/service/sfn/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sfn/go.sum +++ b/service/sfn/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/shield/go.mod b/service/shield/go.mod index c360c558252..b3f42fcf0c3 100644 --- a/service/shield/go.mod +++ b/service/shield/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/shield/go.sum b/service/shield/go.sum index 829b1536381..256f90b195c 100644 --- a/service/shield/go.sum +++ b/service/shield/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/signer/go.mod b/service/signer/go.mod index c47c0c47e3f..3c3dd444a63 100644 --- a/service/signer/go.mod +++ b/service/signer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/signer/go.sum b/service/signer/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/signer/go.sum +++ b/service/signer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sms/go.mod b/service/sms/go.mod index d0bbd6eed7d..4bf38528171 100644 --- a/service/sms/go.mod +++ b/service/sms/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sms/go.sum b/service/sms/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sms/go.sum +++ b/service/sms/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/snowball/go.mod b/service/snowball/go.mod index 4b4bebe323e..2621373ce1a 100644 --- a/service/snowball/go.mod +++ b/service/snowball/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/snowball/go.sum b/service/snowball/go.sum index 829b1536381..256f90b195c 100644 --- a/service/snowball/go.sum +++ b/service/snowball/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sns/go.mod b/service/sns/go.mod index 01067436855..83e436ea987 100644 --- a/service/sns/go.mod +++ b/service/sns/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sns/go.sum b/service/sns/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sns/go.sum +++ b/service/sns/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sqs/go.mod b/service/sqs/go.mod index 4f1d229ab39..ff34ab1c424 100644 --- a/service/sqs/go.mod +++ b/service/sqs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sqs/go.sum b/service/sqs/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sqs/go.sum +++ b/service/sqs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ssm/go.mod b/service/ssm/go.mod index e947f5abf6e..73e94135857 100644 --- a/service/ssm/go.mod +++ b/service/ssm/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssm/go.sum b/service/ssm/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/ssm/go.sum +++ b/service/ssm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/ssmcontacts/go.mod b/service/ssmcontacts/go.mod index 7f1505c53dd..76f67475105 100644 --- a/service/ssmcontacts/go.mod +++ b/service/ssmcontacts/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssmcontacts/go.sum b/service/ssmcontacts/go.sum index 829b1536381..256f90b195c 100644 --- a/service/ssmcontacts/go.sum +++ b/service/ssmcontacts/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ssmincidents/go.mod b/service/ssmincidents/go.mod index 7ea744c3fde..2ce3d98aae3 100644 --- a/service/ssmincidents/go.mod +++ b/service/ssmincidents/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssmincidents/go.sum b/service/ssmincidents/go.sum index 22181669cd3..6e425b89066 100644 --- a/service/ssmincidents/go.sum +++ b/service/ssmincidents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= diff --git a/service/sso/go.mod b/service/sso/go.mod index 36f892c2b75..512ac8243e3 100644 --- a/service/sso/go.mod +++ b/service/sso/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sso/go.sum b/service/sso/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sso/go.sum +++ b/service/sso/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ssoadmin/go.mod b/service/ssoadmin/go.mod index 59abc1e8d6d..b84e04960e2 100644 --- a/service/ssoadmin/go.mod +++ b/service/ssoadmin/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssoadmin/go.sum b/service/ssoadmin/go.sum index 829b1536381..256f90b195c 100644 --- a/service/ssoadmin/go.sum +++ b/service/ssoadmin/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/ssooidc/go.mod b/service/ssooidc/go.mod index 22a24d97019..aa76d864290 100644 --- a/service/ssooidc/go.mod +++ b/service/ssooidc/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssooidc/go.sum b/service/ssooidc/go.sum index 829b1536381..256f90b195c 100644 --- a/service/ssooidc/go.sum +++ b/service/ssooidc/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/storagegateway/go.mod b/service/storagegateway/go.mod index 3f7eafb5bd1..1a97c570548 100644 --- a/service/storagegateway/go.mod +++ b/service/storagegateway/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/storagegateway/go.sum b/service/storagegateway/go.sum index 829b1536381..256f90b195c 100644 --- a/service/storagegateway/go.sum +++ b/service/storagegateway/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/sts/go.mod b/service/sts/go.mod index aa9b1a5d99c..a7b681b03e3 100644 --- a/service/sts/go.mod +++ b/service/sts/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sts/go.sum b/service/sts/go.sum index 829b1536381..256f90b195c 100644 --- a/service/sts/go.sum +++ b/service/sts/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/support/go.mod b/service/support/go.mod index 6eee9fd5412..5f74ef34ccb 100644 --- a/service/support/go.mod +++ b/service/support/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/support/go.sum b/service/support/go.sum index 829b1536381..256f90b195c 100644 --- a/service/support/go.sum +++ b/service/support/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/swf/go.mod b/service/swf/go.mod index 2fb6b2203dd..188a8c8b8b9 100644 --- a/service/swf/go.mod +++ b/service/swf/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/swf/go.sum b/service/swf/go.sum index 829b1536381..256f90b195c 100644 --- a/service/swf/go.sum +++ b/service/swf/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/synthetics/go.mod b/service/synthetics/go.mod index c1a56d73297..bf76204cf92 100644 --- a/service/synthetics/go.mod +++ b/service/synthetics/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/synthetics/go.sum b/service/synthetics/go.sum index 829b1536381..256f90b195c 100644 --- a/service/synthetics/go.sum +++ b/service/synthetics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/textract/go.mod b/service/textract/go.mod index 4b0179294cd..91d48b44635 100644 --- a/service/textract/go.mod +++ b/service/textract/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/textract/go.sum b/service/textract/go.sum index 829b1536381..256f90b195c 100644 --- a/service/textract/go.sum +++ b/service/textract/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/timestreamquery/go.mod b/service/timestreamquery/go.mod index ba1ebfa5f02..2371ce43708 100644 --- a/service/timestreamquery/go.mod +++ b/service/timestreamquery/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.0.1 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.0.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/timestreamquery/go.sum b/service/timestreamquery/go.sum index 829b1536381..256f90b195c 100644 --- a/service/timestreamquery/go.sum +++ b/service/timestreamquery/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/timestreamwrite/go.mod b/service/timestreamwrite/go.mod index 96c9c710d73..e102b56b696 100644 --- a/service/timestreamwrite/go.mod +++ b/service/timestreamwrite/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.0.1 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.0.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/timestreamwrite/go.sum b/service/timestreamwrite/go.sum index 829b1536381..256f90b195c 100644 --- a/service/timestreamwrite/go.sum +++ b/service/timestreamwrite/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/transcribe/go.mod b/service/transcribe/go.mod index c2976976c81..48570312266 100644 --- a/service/transcribe/go.mod +++ b/service/transcribe/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/transcribe/go.sum b/service/transcribe/go.sum index 829b1536381..256f90b195c 100644 --- a/service/transcribe/go.sum +++ b/service/transcribe/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/transfer/go.mod b/service/transfer/go.mod index 0fb0965bd7b..a164aa61ca0 100644 --- a/service/transfer/go.mod +++ b/service/transfer/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/transfer/go.sum b/service/transfer/go.sum index 829b1536381..256f90b195c 100644 --- a/service/transfer/go.sum +++ b/service/transfer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/translate/go.mod b/service/translate/go.mod index 96804538fad..a897cbb55af 100644 --- a/service/translate/go.mod +++ b/service/translate/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/translate/go.sum b/service/translate/go.sum index 829b1536381..256f90b195c 100644 --- a/service/translate/go.sum +++ b/service/translate/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/waf/go.mod b/service/waf/go.mod index e93bdf6be56..4ac2fdf1ab1 100644 --- a/service/waf/go.mod +++ b/service/waf/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/waf/go.sum b/service/waf/go.sum index 829b1536381..256f90b195c 100644 --- a/service/waf/go.sum +++ b/service/waf/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/wafregional/go.mod b/service/wafregional/go.mod index afcb5a3bb4d..77e8f8b0cc4 100644 --- a/service/wafregional/go.mod +++ b/service/wafregional/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wafregional/go.sum b/service/wafregional/go.sum index 829b1536381..256f90b195c 100644 --- a/service/wafregional/go.sum +++ b/service/wafregional/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/wafv2/go.mod b/service/wafv2/go.mod index 612bb92daa7..432028a2bc3 100644 --- a/service/wafv2/go.mod +++ b/service/wafv2/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wafv2/go.sum b/service/wafv2/go.sum index 829b1536381..256f90b195c 100644 --- a/service/wafv2/go.sum +++ b/service/wafv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/wellarchitected/go.mod b/service/wellarchitected/go.mod index edf43a88219..b35de779bf7 100644 --- a/service/wellarchitected/go.mod +++ b/service/wellarchitected/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wellarchitected/go.sum b/service/wellarchitected/go.sum index 829b1536381..256f90b195c 100644 --- a/service/wellarchitected/go.sum +++ b/service/wellarchitected/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/workdocs/go.mod b/service/workdocs/go.mod index 9cab1fc02b4..2b59be2af4a 100644 --- a/service/workdocs/go.mod +++ b/service/workdocs/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workdocs/go.sum b/service/workdocs/go.sum index 829b1536381..256f90b195c 100644 --- a/service/workdocs/go.sum +++ b/service/workdocs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/worklink/go.mod b/service/worklink/go.mod index fec53d0d60c..1fd30f29142 100644 --- a/service/worklink/go.mod +++ b/service/worklink/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/worklink/go.sum b/service/worklink/go.sum index 829b1536381..256f90b195c 100644 --- a/service/worklink/go.sum +++ b/service/worklink/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/workmail/go.mod b/service/workmail/go.mod index cf8404d949f..e283a62fec2 100644 --- a/service/workmail/go.mod +++ b/service/workmail/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workmail/go.sum b/service/workmail/go.sum index 829b1536381..256f90b195c 100644 --- a/service/workmail/go.sum +++ b/service/workmail/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/workmailmessageflow/go.mod b/service/workmailmessageflow/go.mod index a4108f9e3bc..369162be8f7 100644 --- a/service/workmailmessageflow/go.mod +++ b/service/workmailmessageflow/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workmailmessageflow/go.sum b/service/workmailmessageflow/go.sum index 829b1536381..256f90b195c 100644 --- a/service/workmailmessageflow/go.sum +++ b/service/workmailmessageflow/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/workspaces/go.mod b/service/workspaces/go.mod index 45a2aea51c7..61aa42f7a3e 100644 --- a/service/workspaces/go.mod +++ b/service/workspaces/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workspaces/go.sum b/service/workspaces/go.sum index 829b1536381..256f90b195c 100644 --- a/service/workspaces/go.sum +++ b/service/workspaces/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= diff --git a/service/xray/go.mod b/service/xray/go.mod index 89b562298b2..9c6e86cb641 100644 --- a/service/xray/go.mod +++ b/service/xray/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 - github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/xray/go.sum b/service/xray/go.sum index 829b1536381..256f90b195c 100644 --- a/service/xray/go.sum +++ b/service/xray/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934 h1:H/cJ5RmCmecKKWw+u9fwLGx/p0d51cywdjYDRnXOYjI= -github.com/aws/smithy-go v1.6.1-0.20210719175327-4970553d9934/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= From 4125f1aae73637daf093c556203d97bd84aae6d7 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Mon, 2 Aug 2021 14:07:04 -0700 Subject: [PATCH 4/6] update models --- .../appintegrations.2020-07-29.json | 38 +- .../aws-models/appsync.2017-07-25.json | 122 +- .../aws-models/auditmanager.2017-07-25.json | 262 +- .../aws-models/batch.2016-08-10.json | 334 +- .../aws-models/chime.2018-05-01.json | 474 ++- .../aws-models/cloudformation.2010-05-15.json | 1340 +++++-- .../aws-models/cloudwatch.2010-08-01.json | 41 +- .../aws-models/codebuild.2016-10-06.json | 301 +- .../cognitoidentityprovider.2016-04-18.json | 128 +- .../computeoptimizer.2019-11-01.json | 6 +- .../aws-models/databrew.2017-07-25.json | 299 +- .../aws-models/directconnect.2012-10-25.json | 21 +- .../aws-models/ec2.2016-11-15.json | 2120 +++++++++-- .../aws-models/ecs.2014-11-13.json | 180 +- .../elasticloadbalancingv2.2015-12-01.json | 125 +- .../aws-models/emr.2009-03-31.json | 315 +- .../aws-models/emrcontainers.2020-10-01.json | 68 +- .../aws-models/greengrassv2.2020-11-30.json | 303 +- .../aws-models/health.2016-08-04.json | 42 +- .../aws-models/iam.2010-05-08.json | 4 +- .../aws-models/identitystore.2020-06-15.json | 49 +- .../aws-models/imagebuilder.2019-12-02.json | 264 +- .../aws-models/iot.2015-05-28.json | 124 +- .../aws-models/iotanalytics.2017-11-27.json | 388 +- .../aws-models/iotsitewise.2019-12-02.json | 283 +- .../aws-models/iotwireless.2020-11-22.json | 40 +- .../aws-models/kendra.2019-02-03.json | 79 +- .../aws-models/lambda.2015-03-31.json | 47 +- .../lexmodelbuildingservice.2017-04-19.json | 4 + .../aws-models/lexmodelsv2.2020-08-07.json | 366 ++ .../aws-models/location.2020-11-19.json | 565 ++- .../aws-models/medialive.2017-10-14.json | 56 +- .../aws-models/personalize.2018-05-22.json | 33 +- .../aws-models/proton.2020-07-20.json | 82 +- .../aws-models/qldb.2019-01-02.json | 108 +- .../aws-models/quicksight.2018-04-01.json | 1131 ++++-- .../aws-models/rds.2014-10-31.json | 142 +- .../aws-models/redshiftdata.2019-12-20.json | 408 +- .../aws-models/robomaker.2018-06-29.json | 54 +- .../aws-models/route53.2013-04-01.json | 203 +- .../route53recoverycluster.2019-12-02.json | 511 +++ ...ute53recoverycontrolconfig.2020-11-02.json | 2333 ++++++++++++ .../route53recoveryreadiness.2019-12-02.json | 3373 +++++++++++++++++ .../aws-models/s3control.2018-08-20.json | 197 +- .../aws-models/s3outposts.2017-07-25.json | 130 +- .../aws-models/sagemaker.2017-07-24.json | 272 +- .../aws-models/savingsplans.2019-06-28.json | 20 +- .../aws-models/secretsmanager.2017-10-17.json | 87 +- .../aws-models/securityhub.2018-10-26.json | 918 ++++- .../aws-models/shield.2016-06-02.json | 122 +- .../aws-models/ssmcontacts.2021-05-03.json | 27 +- .../aws-models/ssoadmin.2020-07-20.json | 209 +- .../aws-models/synthetics.2017-10-11.json | 95 +- .../aws-models/textract.2018-06-27.json | 282 +- .../aws/go/codegen/endpoint-prefix.json | 3 + 55 files changed, 16371 insertions(+), 3157 deletions(-) create mode 100644 codegen/sdk-codegen/aws-models/route53recoverycluster.2019-12-02.json create mode 100644 codegen/sdk-codegen/aws-models/route53recoverycontrolconfig.2020-11-02.json create mode 100644 codegen/sdk-codegen/aws-models/route53recoveryreadiness.2019-12-02.json diff --git a/codegen/sdk-codegen/aws-models/appintegrations.2020-07-29.json b/codegen/sdk-codegen/aws-models/appintegrations.2020-07-29.json index e0fba4fd367..cf6e613ad66 100644 --- a/codegen/sdk-codegen/aws-models/appintegrations.2020-07-29.json +++ b/codegen/sdk-codegen/aws-models/appintegrations.2020-07-29.json @@ -86,7 +86,7 @@ "name": "app-integrations" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n \n

The Amazon AppIntegrations service enables you to configure and reuse connections to external applications.

\n

For information about how you can use external applications with Amazon Connect, see Set up pre-built integrations in the Amazon Connect Administrator Guide.

", + "smithy.api#documentation": "

The Amazon AppIntegrations service enables you to configure and reuse connections to external applications.

\n

For information about how you can use external applications with Amazon Connect, see Set up pre-built integrations in the Amazon Connect Administrator Guide.

", "smithy.api#title": "Amazon AppIntegrations Service" } }, @@ -148,7 +148,7 @@ } ], "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Creates an EventIntegration, given a specified name, description, and a reference to an\n Amazon Eventbridge bus in your account and a partner event source that will push events to that bus. No\n objects are created in the your account, only metadata that is persisted on the EventIntegration\n control plane.

", + "smithy.api#documentation": "

Creates an EventIntegration, given a specified name, description, and a reference to an\n Amazon EventBridge bus in your account and a partner event source that pushes events to that bus. No\n objects are created in the your account, only metadata that is persisted on the EventIntegration\n control plane.

", "smithy.api#http": { "method": "POST", "uri": "/eventIntegrations", @@ -182,7 +182,7 @@ "EventBridgeBus": { "target": "com.amazonaws.appintegrations#EventBridgeBus", "traits": { - "smithy.api#documentation": "

The Eventbridge bus.

", + "smithy.api#documentation": "

The EventBridge bus.

", "smithy.api#required": {} } }, @@ -238,7 +238,7 @@ } ], "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Deletes the specified existing event integration. If the event integration is associated\n with clients, the request is rejected.

", + "smithy.api#documentation": "

Deletes the specified existing event integration. If the event integration is associated\n with clients, the request is rejected.

", "smithy.api#http": { "method": "DELETE", "uri": "/eventIntegrations/{Name}", @@ -318,7 +318,7 @@ } }, "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

The event filter.

" + "smithy.api#documentation": "

The event filter.

" } }, "com.amazonaws.appintegrations#EventIntegration": { @@ -351,7 +351,7 @@ "EventBridgeBus": { "target": "com.amazonaws.appintegrations#EventBridgeBus", "traits": { - "smithy.api#documentation": "

The Amazon Eventbridge bus for the event integration.

" + "smithy.api#documentation": "

The Amazon EventBridge bus for the event integration.

" } }, "Tags": { @@ -362,7 +362,7 @@ } }, "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

The event integration.

" + "smithy.api#documentation": "

The event integration.

" } }, "com.amazonaws.appintegrations#EventIntegrationAssociation": { @@ -395,7 +395,7 @@ "EventBridgeRuleName": { "target": "com.amazonaws.appintegrations#EventBridgeRuleName", "traits": { - "smithy.api#documentation": "

The name of the Eventbridge rule.

" + "smithy.api#documentation": "

The name of the EventBridge rule.

" } }, "ClientAssociationMetadata": { @@ -406,7 +406,7 @@ } }, "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

The event integration association.

" + "smithy.api#documentation": "

The event integration association.

" } }, "com.amazonaws.appintegrations#EventIntegrationAssociationsList": { @@ -459,7 +459,7 @@ } ], "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Return information about the event integration.

", + "smithy.api#documentation": "

Return information about the event integration.

", "smithy.api#http": { "method": "GET", "uri": "/eventIntegrations/{Name}", @@ -504,7 +504,7 @@ "EventBridgeBus": { "target": "com.amazonaws.appintegrations#EventBridgeBus", "traits": { - "smithy.api#documentation": "

The Eventbridge bus.

" + "smithy.api#documentation": "

The EventBridge bus.

" } }, "EventFilter": { @@ -583,7 +583,7 @@ } ], "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Returns a paginated list of event integration associations in the account.

", + "smithy.api#documentation": "

Returns a paginated list of event integration associations in the account.

", "smithy.api#http": { "method": "GET", "uri": "/eventIntegrations/{EventIntegrationName}/associations", @@ -658,7 +658,7 @@ } ], "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Returns a paginated list of event integrations in the account.

", + "smithy.api#documentation": "

Returns a paginated list of event integrations in the account.

", "smithy.api#http": { "method": "GET", "uri": "/eventIntegrations", @@ -725,7 +725,7 @@ } ], "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Lists the tags for the specified resource.

", + "smithy.api#documentation": "

Lists the tags for the specified resource.

", "smithy.api#http": { "method": "GET", "uri": "/tags/{resourceArn}", @@ -797,7 +797,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.appintegrations#ResourceNotFoundException": { @@ -896,7 +896,7 @@ } ], "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Adds the specified tags to the specified resource.

", + "smithy.api#documentation": "

Adds the specified tags to the specified resource.

", "smithy.api#http": { "method": "POST", "uri": "/tags/{resourceArn}", @@ -953,7 +953,7 @@ "com.amazonaws.appintegrations#UUID": { "type": "string", "traits": { - "smithy.api#pattern": "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" + "smithy.api#pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" } }, "com.amazonaws.appintegrations#UntagResource": { @@ -979,7 +979,7 @@ } ], "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Removes the specified tags from the specified resource.

", + "smithy.api#documentation": "

Removes the specified tags from the specified resource.

", "smithy.api#http": { "method": "DELETE", "uri": "/tags/{resourceArn}", @@ -1038,7 +1038,7 @@ } ], "traits": { - "smithy.api#documentation": "

The Amazon AppIntegrations APIs are in preview release and are subject to change.

\n

Updates the description of an event integration.

", + "smithy.api#documentation": "

Updates the description of an event integration.

", "smithy.api#http": { "method": "PATCH", "uri": "/eventIntegrations/{Name}", diff --git a/codegen/sdk-codegen/aws-models/appsync.2017-07-25.json b/codegen/sdk-codegen/aws-models/appsync.2017-07-25.json index 164d15805b3..eb0dbef8fb4 100644 --- a/codegen/sdk-codegen/aws-models/appsync.2017-07-25.json +++ b/codegen/sdk-codegen/aws-models/appsync.2017-07-25.json @@ -169,7 +169,7 @@ "name": "appsync" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

AWS AppSync provides API actions for creating and interacting with data sources using\n GraphQL from your application.

", + "smithy.api#documentation": "

AppSync provides API actions for creating and interacting with data sources using\n GraphQL from your application.

", "smithy.api#title": "AWS AppSync", "smithy.api#xmlNamespace": { "uri": "http://appsync.amazonaws.com" @@ -195,7 +195,7 @@ "authenticationType": { "target": "com.amazonaws.appsync#AuthenticationType", "traits": { - "smithy.api#documentation": "

The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user pools.

" + "smithy.api#documentation": "

The authentication type: API key, Identity and Access Management, OIDC, or Amazon Cognito user pools.

" } }, "openIDConnectConfig": { @@ -209,6 +209,12 @@ "traits": { "smithy.api#documentation": "

The Amazon Cognito user pool configuration.

" } + }, + "lambdaAuthorizerConfig": { + "target": "com.amazonaws.appsync#LambdaAuthorizerConfig", + "traits": { + "smithy.api#documentation": "

Configuration for AWS Lambda function authorization.

" + } } }, "traits": { @@ -403,7 +409,7 @@ } }, "traits": { - "smithy.api#documentation": "

Describes an API key.

\n

Customers invoke AWS AppSync GraphQL API operations with API keys as an identity\n mechanism. There are two key versions:

\n

\n da1: This version was introduced at launch in November\n 2017. These keys always expire after 7 days. Key expiration is managed by Amazon DynamoDB\n TTL. The keys ceased to be valid after February 21, 2018 and should not be used after that\n date.

\n \n

\n da2: This version was introduced in February 2018 when\n AppSync added support to extend key expiration.

\n " + "smithy.api#documentation": "

Describes an API key.

\n

Customers invoke AppSync GraphQL API operations with API keys as an identity\n mechanism. There are two key versions:

\n

\n da1: This version was introduced at launch in November\n 2017. These keys always expire after 7 days. Key expiration is managed by Amazon DynamoDB\n TTL. The keys ceased to be valid after February 21, 2018 and should not be used after that\n date.

\n \n

\n da2: This version was introduced in February 2018 when\n AppSync added support to extend key expiration.

\n " } }, "com.amazonaws.appsync#ApiKeyLimitExceededException": { @@ -470,6 +476,10 @@ { "value": "OPENID_CONNECT", "name": "OPENID_CONNECT" + }, + { + "value": "AWS_LAMBDA", + "name": "AWS_LAMBDA" } ] } @@ -487,7 +497,7 @@ "awsIamConfig": { "target": "com.amazonaws.appsync#AwsIamConfig", "traits": { - "smithy.api#documentation": "

The AWS IAM settings.

" + "smithy.api#documentation": "

The Identity and Access Management settings.

" } } }, @@ -512,18 +522,18 @@ "signingRegion": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The signing region for AWS IAM authorization.

" + "smithy.api#documentation": "

The signing region for Identity and Access Management authorization.

" } }, "signingServiceName": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The signing service name for AWS IAM authorization.

" + "smithy.api#documentation": "

The signing service name for Identity and Access Management authorization.

" } } }, "traits": { - "smithy.api#documentation": "

The AWS IAM configuration.

" + "smithy.api#documentation": "

The Identity and Access Management configuration.

" } }, "com.amazonaws.appsync#BadRequestException": { @@ -590,7 +600,7 @@ "awsRegion": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The AWS Region in which the user pool was created.

", + "smithy.api#documentation": "

The Amazon Web Services Region in which the user pool was created.

", "smithy.api#required": {} } }, @@ -897,7 +907,7 @@ "serviceRoleArn": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The AWS IAM service role ARN for the data source. The system assumes this role when\n accessing the data source.

" + "smithy.api#documentation": "

The Identity and Access Management service role ARN for the data source. The system assumes this role when\n accessing the data source.

" } }, "dynamodbConfig": { @@ -909,7 +919,7 @@ "lambdaConfig": { "target": "com.amazonaws.appsync#LambdaDataSourceConfig", "traits": { - "smithy.api#documentation": "

AWS Lambda settings.

" + "smithy.api#documentation": "

Amazon Web Services Lambda settings.

" } }, "elasticsearchConfig": { @@ -1096,7 +1106,7 @@ "authenticationType": { "target": "com.amazonaws.appsync#AuthenticationType", "traits": { - "smithy.api#documentation": "

The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user pools.

", + "smithy.api#documentation": "

The authentication type: API key, Identity and Access Management, OIDC, or Amazon Cognito user pools.

", "smithy.api#required": {} } }, @@ -1129,6 +1139,12 @@ "traits": { "smithy.api#documentation": "

A flag indicating whether to enable X-Ray tracing for the\n GraphqlApi.

" } + }, + "lambdaAuthorizerConfig": { + "target": "com.amazonaws.appsync#LambdaAuthorizerConfig", + "traits": { + "smithy.api#documentation": "

Configuration for AWS Lambda function authorization.

" + } } } }, @@ -1351,13 +1367,13 @@ "type": { "target": "com.amazonaws.appsync#DataSourceType", "traits": { - "smithy.api#documentation": "

The type of the data source.

\n " + "smithy.api#documentation": "

The type of the data source.

\n " } }, "serviceRoleArn": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The AWS IAM service role ARN for the data source. The system assumes this role when\n accessing the data source.

" + "smithy.api#documentation": "

The Identity and Access Management service role ARN for the data source. The system assumes this role when\n accessing the data source.

" } }, "dynamodbConfig": { @@ -1369,7 +1385,7 @@ "lambdaConfig": { "target": "com.amazonaws.appsync#LambdaDataSourceConfig", "traits": { - "smithy.api#documentation": "

AWS Lambda settings.

" + "smithy.api#documentation": "

Amazon Web Services Lambda settings.

" } }, "elasticsearchConfig": { @@ -1891,7 +1907,7 @@ "awsRegion": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The AWS Region.

", + "smithy.api#documentation": "

The Amazon Web Services Region.

", "smithy.api#required": {} } }, @@ -1931,7 +1947,7 @@ "awsRegion": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The AWS Region.

", + "smithy.api#documentation": "

The Amazon Web Services Region.

", "smithy.api#required": {} } } @@ -2697,7 +2713,13 @@ "wafWebAclArn": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The ARN of the AWS Web Application Firewall (WAF) ACL associated with this\n GraphqlApi, if one exists.

" + "smithy.api#documentation": "

The ARN of the WAF ACL associated with this\n GraphqlApi, if one exists.

" + } + }, + "lambdaAuthorizerConfig": { + "target": "com.amazonaws.appsync#LambdaAuthorizerConfig", + "traits": { + "smithy.api#documentation": "

\n

Configuration for AWS Lambda function authorization.

" } } }, @@ -2717,7 +2739,7 @@ "endpoint": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The HTTP URL endpoint. You can either specify the domain name or IP, and port\n combination, and the URL scheme must be HTTP or HTTPS. If the port is not specified, AWS\n AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS\n endpoints.

" + "smithy.api#documentation": "

The HTTP URL endpoint. You can either specify the domain name or IP, and port\n combination, and the URL scheme must be HTTP or HTTPS. If the port is not specified, AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS\n endpoints.

" } }, "authorizationConfig": { @@ -2739,11 +2761,38 @@ } }, "traits": { - "smithy.api#documentation": "

An internal AWS AppSync error occurred. Try your request again.

", + "smithy.api#documentation": "

An internal AppSync error occurred. Try your request again.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, + "com.amazonaws.appsync#LambdaAuthorizerConfig": { + "type": "structure", + "members": { + "authorizerResultTtlInSeconds": { + "target": "com.amazonaws.appsync#TTL", + "traits": { + "smithy.api#documentation": "

The number of seconds a response should be cached for. The default is 5 minutes (300 seconds).\n The Lambda function can override this by returning a\n ttlOverride key in its response. A value of 0 disables caching of\n responses.

" + } + }, + "authorizerUri": { + "target": "com.amazonaws.appsync#String", + "traits": { + "smithy.api#documentation": "

The ARN of the lambda function to be called for authorization. This may be a standard\n Lambda ARN, a version ARN (.../v3) or alias ARN.

\n

\n Note: This Lambda function must have the following resource-based\n policy assigned to it. When configuring Lambda authorizers in the Console, this is done for\n you. To do so with the AWS CLI, run the following:

\n

\n aws lambda add-permission --function-name \"arn:aws:lambda:us-east-2:111122223333:function:my-function\" --statement-id \"appsync\" --principal appsync.amazonaws.com --action lambda:InvokeFunction\n

", + "smithy.api#required": {} + } + }, + "identityValidationExpression": { + "target": "com.amazonaws.appsync#String", + "traits": { + "smithy.api#documentation": "

A regular expression for validation of tokens before the Lambda Function is called.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A LambdaAuthorizerConfig holds configuration on how to authorize AppSync API access when using\n the AWS_LAMBDA authorizer mode. Be aware that an AppSync API may have only one Lambda authorizer configured\n at a time.

" + } + }, "com.amazonaws.appsync#LambdaConflictHandlerConfig": { "type": "structure", "members": { @@ -2770,7 +2819,7 @@ } }, "traits": { - "smithy.api#documentation": "

Describes an AWS Lambda data source configuration.

" + "smithy.api#documentation": "

Describes an Amazon Web Services Lambda data source configuration.

" } }, "com.amazonaws.appsync#LimitExceededException": { @@ -3401,7 +3450,7 @@ "cloudWatchLogsRoleArn": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The service role that AWS AppSync will assume to publish to Amazon CloudWatch logs in\n your account.

", + "smithy.api#documentation": "

The service role that AppSync will assume to publish to Amazon CloudWatch logs in\n your account.

", "smithy.api#required": {} } }, @@ -3472,7 +3521,7 @@ "clientId": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The client identifier of the Relying party at the OpenID identity provider. This\n identifier is typically obtained when the Relying party is registered with the OpenID\n identity provider. You can specify a regular expression so the AWS AppSync can validate\n against multiple client identifiers at a time.

" + "smithy.api#documentation": "

The client identifier of the Relying party at the OpenID identity provider. This\n identifier is typically obtained when the Relying party is registered with the OpenID\n identity provider. You can specify a regular expression so the AppSync can validate\n against multiple client identifiers at a time.

" } }, "iatTTL": { @@ -3514,7 +3563,7 @@ "min": 1, "max": 65536 }, - "smithy.api#pattern": "[\\\\S]+" + "smithy.api#pattern": "^[\\\\S]+$" } }, "com.amazonaws.appsync#PipelineConfig": { @@ -3537,7 +3586,7 @@ "awsRegion": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

AWS Region for RDS HTTP endpoint.

" + "smithy.api#documentation": "

Amazon Web Services Region for RDS HTTP endpoint.

" } }, "dbClusterIdentifier": { @@ -3561,7 +3610,7 @@ "awsSecretStoreArn": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

AWS secret store ARN for database credentials.

" + "smithy.api#documentation": "

Amazon Web Services secret store ARN for database credentials.

" } } }, @@ -3706,7 +3755,7 @@ "min": 1, "max": 65536 }, - "smithy.api#pattern": "[_A-Za-z][_0-9A-Za-z]*" + "smithy.api#pattern": "^[_A-Za-z][_0-9A-Za-z]*$" } }, "com.amazonaws.appsync#SchemaStatus": { @@ -3834,6 +3883,15 @@ "smithy.api#documentation": "

Describes a Sync configuration for a resolver.

\n

Contains information on which Conflict Detection as well as Resolution strategy should\n be performed when the resolver is invoked.

" } }, + "com.amazonaws.appsync#TTL": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 3600 + } + } + }, "com.amazonaws.appsync#TagKey": { "type": "string", "traits": { @@ -3842,7 +3900,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$" + "smithy.api#pattern": "^(?!aws:)[ a-zA-Z+-=._:/]+$" } }, "com.amazonaws.appsync#TagKeyList": { @@ -4325,7 +4383,7 @@ "lambdaConfig": { "target": "com.amazonaws.appsync#LambdaDataSourceConfig", "traits": { - "smithy.api#documentation": "

The new AWS Lambda configuration.

" + "smithy.api#documentation": "

The new Amazon Web Services Lambda configuration.

" } }, "elasticsearchConfig": { @@ -4554,6 +4612,12 @@ "traits": { "smithy.api#documentation": "

A flag indicating whether to enable X-Ray tracing for the\n GraphqlApi.

" } + }, + "lambdaAuthorizerConfig": { + "target": "com.amazonaws.appsync#LambdaAuthorizerConfig", + "traits": { + "smithy.api#documentation": "

Configuration for AWS Lambda function authorization.

" + } } } }, @@ -4773,7 +4837,7 @@ "awsRegion": { "target": "com.amazonaws.appsync#String", "traits": { - "smithy.api#documentation": "

The AWS Region in which the user pool was created.

", + "smithy.api#documentation": "

The Amazon Web Services Region in which the user pool was created.

", "smithy.api#required": {} } }, diff --git a/codegen/sdk-codegen/aws-models/auditmanager.2017-07-25.json b/codegen/sdk-codegen/aws-models/auditmanager.2017-07-25.json index 3e8d9c2fbbd..2321adfd823 100644 --- a/codegen/sdk-codegen/aws-models/auditmanager.2017-07-25.json +++ b/codegen/sdk-codegen/aws-models/auditmanager.2017-07-25.json @@ -35,24 +35,24 @@ "id": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified AWS account. \n

" + "smithy.api#documentation": "

\n The identifier for the specified account. \n

" } }, "emailAddress": { "target": "com.amazonaws.auditmanager#EmailAddress", "traits": { - "smithy.api#documentation": "

\n The email address associated with the specified AWS account. \n

" + "smithy.api#documentation": "

\n The email address associated with the specified account. \n

" } }, "name": { "target": "com.amazonaws.auditmanager#AccountName", "traits": { - "smithy.api#documentation": "

\n The name of the specified AWS account. \n

" + "smithy.api#documentation": "

\n The name of the specified account. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The wrapper of AWS account details, such as account ID, email address, and so on. \n

" + "smithy.api#documentation": "

\n The wrapper of account details, such as account ID, email address, and so on. \n

" } }, "com.amazonaws.auditmanager#AWSAccounts": { @@ -67,12 +67,12 @@ "serviceName": { "target": "com.amazonaws.auditmanager#AWSServiceName", "traits": { - "smithy.api#documentation": "

\n The name of the AWS service. \n

" + "smithy.api#documentation": "

\n The name of the Amazon Web Service. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n An AWS service such as Amazon S3, AWS CloudTrail, and so on. \n

" + "smithy.api#documentation": "

\n An Amazon Web Service such as Amazon S3, CloudTrail, and so on. \n

" } }, "com.amazonaws.auditmanager#AWSServiceName": { @@ -102,7 +102,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n Your account is not registered with AWS Audit Manager. Check the delegated administrator setup on the AWS Audit Manager settings page, and try again.\n

", + "smithy.api#documentation": "

\n Your account is not registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again.\n

", "smithy.api#error": "client", "smithy.api#httpError": 403 } @@ -217,7 +217,7 @@ "awsAccount": { "target": "com.amazonaws.auditmanager#AWSAccount", "traits": { - "smithy.api#documentation": "

\n The AWS account associated with the assessment. \n

" + "smithy.api#documentation": "

\n The account associated with the assessment. \n

" } }, "metadata": { @@ -240,7 +240,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n An entity that defines the scope of audit evidence collected by AWS Audit Manager. An AWS Audit Manager assessment is an implementation of an AWS Audit Manager framework. \n

" + "smithy.api#documentation": "

\n An entity that defines the scope of audit evidence collected by Audit Manager. An Audit Manager assessment is an implementation of an Audit Manager framework. \n

" } }, "com.amazonaws.auditmanager#AssessmentControl": { @@ -302,7 +302,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The control entity that represents a standard or custom control used in an AWS Audit Manager assessment.\n

" + "smithy.api#documentation": "

\n The control entity that represents a standard or custom control used in an Audit Manager assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentControlSet": { @@ -358,7 +358,7 @@ } }, "traits": { - "smithy.api#documentation": "

\nRepresents a set of controls in an AWS Audit Manager assessment.\n

" + "smithy.api#documentation": "

\n Represents a set of controls in an Audit Manager assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentControlSets": { @@ -425,7 +425,7 @@ "dataSource": { "target": "com.amazonaws.auditmanager#String", "traits": { - "smithy.api#documentation": "

\n The AWS service from which the evidence was collected. \n

" + "smithy.api#documentation": "

\n The Amazon Web Service from which the evidence was collected. \n

" } }, "author": { @@ -461,7 +461,7 @@ "evidenceByTypeConfigurationDataCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The number of evidence that falls under the configuration data category. This evidence is collected from configuration snapshots of other AWS services such as Amazon EC2, Amazon S3, or IAM.\n

" + "smithy.api#documentation": "

\n The number of evidence that falls under the configuration data category. This evidence is collected from configuration snapshots of other Amazon Web Services services such as Amazon EC2, Amazon S3, or IAM.\n

" } }, "evidenceByTypeManualCount": { @@ -473,30 +473,30 @@ "evidenceByTypeComplianceCheckCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The number of evidence that falls under the compliance check category. This evidence is collected from AWS Config or AWS Security Hub.\n

" + "smithy.api#documentation": "

\n The number of evidence that falls under the compliance check category. This evidence is collected from Config or Security Hub.\n

" } }, "evidenceByTypeComplianceCheckIssuesCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The total number of issues that were reported directly from AWS Security\n Hub, AWS Config, or both.\n

" + "smithy.api#documentation": "

\n The total number of issues that were reported directly from Security Hub, Config, or both.\n

" } }, "evidenceByTypeUserActivityCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The number of evidence that falls under the user activity category. This evidence is collected from AWS CloudTrail logs.\n

" + "smithy.api#documentation": "

\n The number of evidence that falls under the user activity category. This evidence is collected from CloudTrail logs.\n

" } }, "evidenceAwsServiceSourceCount": { "target": "com.amazonaws.auditmanager#Integer", "traits": { - "smithy.api#documentation": "

\n The total number of AWS resources assessed to generate the evidence. \n

" + "smithy.api#documentation": "

\n The total number of Amazon Web Services resources assessed to generate the evidence. \n

" } } }, "traits": { - "smithy.api#documentation": "

\nThe folder in which AWS Audit Manager stores evidence for an assessment.\n

" + "smithy.api#documentation": "

\n The folder in which Audit Manager stores evidence for an assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentEvidenceFolderName": { @@ -541,7 +541,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The file used to structure and automate AWS Audit Manager assessments for a given compliance standard.\n

" + "smithy.api#documentation": "

\n The file used to structure and automate Audit Manager assessments for a given compliance standard.\n

" } }, "com.amazonaws.auditmanager#AssessmentFrameworkDescription": { @@ -670,7 +670,7 @@ "scope": { "target": "com.amazonaws.auditmanager#Scope", "traits": { - "smithy.api#documentation": "

\n The wrapper of AWS accounts and services in scope for the assessment. \n

" + "smithy.api#documentation": "

\n The wrapper of accounts and services in scope for the assessment. \n

" } }, "roles": { @@ -755,7 +755,7 @@ } }, "traits": { - "smithy.api#documentation": "

\nA metadata object associated with an assessment in AWS Audit Manager.\n

" + "smithy.api#documentation": "

\n A metadata object associated with an assessment in Audit Manager.\n

" } }, "com.amazonaws.auditmanager#AssessmentName": { @@ -792,7 +792,7 @@ "awsAccountId": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified AWS account. \n

" + "smithy.api#documentation": "

\n The identifier for the specified account. \n

" } }, "assessmentId": { @@ -827,7 +827,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A finalized document generated from an AWS Audit Manager assessment. These reports summarize the relevant evidence collected for your audit, and link to the relevant evidence folders which are named and organized according to the controls specified in your assessment.\n

" + "smithy.api#documentation": "

\n A finalized document generated from an Audit Manager assessment. These reports summarize the relevant evidence collected for your audit, and link to the relevant evidence folders which are named and organized according to the controls specified in your assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentReportDescription": { @@ -985,7 +985,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The location in which AWS Audit Manager saves assessment reports for the given assessment.\n

" + "smithy.api#documentation": "

\n The location in which Audit Manager saves assessment reports for the given assessment.\n

" } }, "com.amazonaws.auditmanager#AssessmentReportsMetadata": { @@ -1032,7 +1032,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Associates an evidence folder to the specified assessment report in AWS Audit Manager. \n

", + "smithy.api#documentation": "

\n Associates an evidence folder to the specified assessment report in Audit Manager. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/associateToAssessmentReport", @@ -1071,7 +1071,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "^arn:.*:auditmanager:.*" + "smithy.api#pattern": "^arn:.*:auditmanager:" } }, "com.amazonaws.auditmanager#BatchAssociateAssessmentReportEvidence": { @@ -1097,7 +1097,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Associates a list of evidence to an assessment report in an AWS Audit Manager assessment.\n

", + "smithy.api#documentation": "

\n Associates a list of evidence to an assessment report in an Audit Manager assessment.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/batchAssociateToAssessmentReport", @@ -1172,7 +1172,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Create a batch of delegations for a specified assessment in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Create a batch of delegations for a specified assessment in Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/assessments/{assessmentId}/delegations", @@ -1186,7 +1186,7 @@ "createDelegationRequest": { "target": "com.amazonaws.auditmanager#CreateDelegationRequest", "traits": { - "smithy.api#documentation": "

\nThe API request to batch create delegations in AWS Audit Manager.\n

" + "smithy.api#documentation": "

\n The API request to batch create delegations in Audit Manager.\n

" } }, "errorCode": { @@ -1218,7 +1218,7 @@ "createDelegationRequests": { "target": "com.amazonaws.auditmanager#CreateDelegationRequests", "traits": { - "smithy.api#documentation": "

\n The API request to batch create delegations in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n The API request to batch create delegations in Audit Manager.\n

", "smithy.api#required": {} } }, @@ -1272,7 +1272,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nDeletes the delegations in the specified AWS Audit Manager assessment.\n

", + "smithy.api#documentation": "

\n Deletes the delegations in the specified Audit Manager assessment.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/delegations", @@ -1366,7 +1366,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Disassociates a list of evidence from the specified assessment report in AWS Audit Manager. \n

", + "smithy.api#documentation": "

\n Disassociates a list of evidence from the specified assessment report in Audit Manager. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/batchDisassociateFromAssessmentReport", @@ -1441,7 +1441,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Uploads one or more pieces of evidence to the specified control in the assessment in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Uploads one or more pieces of evidence to the specified control in the assessment in Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence", @@ -1455,7 +1455,7 @@ "manualEvidence": { "target": "com.amazonaws.auditmanager#ManualEvidence", "traits": { - "smithy.api#documentation": "

\nManual evidence that cannot be collected automatically by AWS Audit Manager.\n

" + "smithy.api#documentation": "

\n Manual evidence that cannot be collected automatically by Audit Manager.\n

" } }, "errorCode": { @@ -1698,7 +1698,7 @@ "name": "auditmanager" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

Welcome to the AWS Audit Manager API reference. This guide is for developers who need detailed information about the AWS Audit Manager API operations, data types, and errors.

\n

AWS Audit Manager is a service that provides automated evidence collection so that you\n can continuously audit your AWS usage, and assess the effectiveness of your controls to\n better manage risk and simplify compliance.

\n

AWS Audit Manager provides pre-built frameworks that structure and automate assessments\n for a given compliance standard. Frameworks include a pre-built collection of controls with\n descriptions and testing procedures, which are grouped according to the requirements of the\n specified compliance standard or regulation. You can also customize frameworks and controls\n to support internal audits with unique requirements.

\n \n

Use the following links to get started with the AWS Audit Manager API:

\n \n \n

If you're new to AWS Audit Manager, we recommend that you review the AWS Audit Manager User Guide.

", + "smithy.api#documentation": "

Welcome to the Audit Manager API reference. This guide is for developers who need detailed information about the Audit Manager API operations, data types, and errors.

\n

Audit Manager is a service that provides automated evidence collection so that you\n can continuously audit your Amazon Web Services usage, and assess the effectiveness of your controls to\n better manage risk and simplify compliance.

\n

Audit Manager provides pre-built frameworks that structure and automate assessments\n for a given compliance standard. Frameworks include a pre-built collection of controls with\n descriptions and testing procedures, which are grouped according to the requirements of the\n specified compliance standard or regulation. You can also customize frameworks and controls\n to support internal audits with unique requirements.

\n \n

Use the following links to get started with the Audit Manager API:

\n \n \n

If you're new to Audit Manager, we recommend that you review the Audit Manager User Guide.

", "smithy.api#title": "AWS Audit Manager" } }, @@ -1738,12 +1738,12 @@ "createdBy": { "target": "com.amazonaws.auditmanager#IamArn", "traits": { - "smithy.api#documentation": "

\n The IAM user or role that performed the action. \n

" + "smithy.api#documentation": "

\n The IAM user or role that performed the action. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The record of a change within AWS Audit Manager, such as a modified assessment, a delegated control set, and so on. \n

" + "smithy.api#documentation": "

\n The record of a change within Audit Manager, such as a modified assessment, a delegated control set, and so on. \n

" } }, "com.amazonaws.auditmanager#ChangeLogs": { @@ -1816,7 +1816,7 @@ "controlSources": { "target": "com.amazonaws.auditmanager#ControlSources", "traits": { - "smithy.api#documentation": "

\n The data source that determines from where AWS Audit Manager collects evidence for the control. \n

" + "smithy.api#documentation": "

\n The data source that determines from where Audit Manager collects evidence for the control. \n

" } }, "controlMappingSources": { @@ -1857,7 +1857,7 @@ } }, "traits": { - "smithy.api#documentation": "

\nA control in AWS Audit Manager.\n

" + "smithy.api#documentation": "

\n A control in Audit Manager.\n

" } }, "com.amazonaws.auditmanager#ControlComment": { @@ -1962,7 +1962,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The data source that determines from where AWS Audit Manager collects evidence for the control.\n

" + "smithy.api#documentation": "

\n The data source that determines from where Audit Manager collects evidence for the control.\n

" } }, "com.amazonaws.auditmanager#ControlMappingSources": { @@ -2000,7 +2000,7 @@ "controlSources": { "target": "com.amazonaws.auditmanager#ControlSources", "traits": { - "smithy.api#documentation": "

\n The data source that determines from where AWS Audit Manager collects evidence for the control.\n

" + "smithy.api#documentation": "

\n The data source that determines from where Audit Manager collects evidence for the control.\n

" } }, "createdAt": { @@ -2082,7 +2082,7 @@ } }, "traits": { - "smithy.api#documentation": "

\nA set of controls in AWS Audit Manager.\n

" + "smithy.api#documentation": "

\n A set of controls in Audit Manager.\n

" } }, "com.amazonaws.auditmanager#ControlSetId": { @@ -2219,7 +2219,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Creates an assessment in AWS Audit Manager. \n

", + "smithy.api#documentation": "

\n Creates an assessment in Audit Manager. \n

", "smithy.api#http": { "method": "POST", "uri": "/assessments", @@ -2250,7 +2250,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nCreates a custom framework in AWS Audit Manager. \n

", + "smithy.api#documentation": "

\n Creates a custom framework in Audit Manager. \n

", "smithy.api#http": { "method": "POST", "uri": "/assessmentFrameworks", @@ -2269,7 +2269,7 @@ } }, "traits": { - "smithy.api#documentation": "

\nControl entity attributes that uniquely identify an existing control to be added to a framework in AWS Audit Manager.\n

" + "smithy.api#documentation": "

\n Control entity attributes that uniquely identify an existing control to be added to a framework in Audit Manager.\n

" } }, "com.amazonaws.auditmanager#CreateAssessmentFrameworkControlSet": { @@ -2290,7 +2290,7 @@ } }, "traits": { - "smithy.api#documentation": "

\nA controlSet entity that represents a collection of controls in AWS Audit Manager. This does not contain the control set ID.\n

" + "smithy.api#documentation": "

\n A controlSet entity that represents a collection of controls in Audit Manager. This does not contain the control set ID.\n

" } }, "com.amazonaws.auditmanager#CreateAssessmentFrameworkControlSets": { @@ -2513,7 +2513,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nCreates a new custom control in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Creates a new custom control in Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/controls", @@ -2533,7 +2533,7 @@ "sourceDescription": { "target": "com.amazonaws.auditmanager#SourceDescription", "traits": { - "smithy.api#documentation": "

\n The description of the data source that determines from where AWS Audit Manager collects evidence for the control. \n

" + "smithy.api#documentation": "

\n The description of the data source that determines from where Audit Manager collects evidence for the control. \n

" } }, "sourceSetUpOption": { @@ -2668,7 +2668,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A collection of attributes used to create a delegation for an assessment in AWS Audit Manager.\n

" + "smithy.api#documentation": "

\n A collection of attributes used to create a delegation for an assessment in Audit Manager.\n

" } }, "com.amazonaws.auditmanager#CreateDelegationRequests": { @@ -2893,7 +2893,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deletes an assessment in AWS Audit Manager. \n

", + "smithy.api#documentation": "

\n Deletes an assessment in Audit Manager. \n

", "smithy.api#http": { "method": "DELETE", "uri": "/assessments/{assessmentId}", @@ -2924,7 +2924,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deletes a custom framework in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Deletes a custom framework in Audit Manager.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/assessmentFrameworks/{frameworkId}", @@ -2972,7 +2972,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nDeletes an assessment report from an assessment in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Deletes an assessment report from an assessment in Audit Manager.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/assessments/{assessmentId}/reports/{assessmentReportId}", @@ -3045,7 +3045,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deletes a custom control in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Deletes a custom control in Audit Manager.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/controls/{controlId}", @@ -3093,7 +3093,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nDeregisters an account in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Deregisters an account in Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/account/deregisterAccount", @@ -3139,7 +3139,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Deregisters the delegated AWS administrator account from the AWS organization. \n

", + "smithy.api#documentation": "

Removes the specified member account as a delegated administrator for Audit Manager.

\n \n

When you remove a delegated administrator from your Audit Manager settings, or when you\n deregister a delegated administrator from Organizations, you continue to have access\n to the evidence that you previously collected under that account. However, Audit Manager\n will stop collecting and attaching evidence to that delegated administrator account\n moving forward.

\n
", "smithy.api#http": { "method": "POST", "uri": "/account/deregisterOrganizationAdminAccount", @@ -3185,7 +3185,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Disassociates an evidence folder from the specified assessment report in AWS Audit Manager. \n

", + "smithy.api#documentation": "

\n Disassociates an evidence folder from the specified assessment report in Audit Manager. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/disassociateFromAssessmentReport", @@ -3234,7 +3234,7 @@ "min": 3, "max": 3 }, - "smithy.api#pattern": "[0-9]{3}" + "smithy.api#pattern": "^[0-9]{3}$" } }, "com.amazonaws.auditmanager#ErrorMessage": { @@ -3269,7 +3269,7 @@ "evidenceAwsAccountId": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified AWS account. \n

" + "smithy.api#documentation": "

\n The identifier for the specified account. \n

" } }, "time": { @@ -3281,7 +3281,7 @@ "eventSource": { "target": "com.amazonaws.auditmanager#AWSServiceName", "traits": { - "smithy.api#documentation": "

\nThe AWS service from which the evidence is collected.\n

" + "smithy.api#documentation": "

\n The Amazon Web Service from which the evidence is collected.\n

" } }, "eventName": { @@ -3317,19 +3317,19 @@ "complianceCheck": { "target": "com.amazonaws.auditmanager#String", "traits": { - "smithy.api#documentation": "

The evaluation status for evidence that falls under the compliance check category. For\n evidence collected from AWS Security Hub, a Pass or\n Fail result is shown. For evidence collected from AWS Config, a\n Compliant or Noncompliant result is shown.

" + "smithy.api#documentation": "

The evaluation status for evidence that falls under the compliance check category. For\n evidence collected from Security Hub, a Pass or\n Fail result is shown. For evidence collected from Config, a\n Compliant or Noncompliant result is shown.

" } }, "awsOrganization": { "target": "com.amazonaws.auditmanager#String", "traits": { - "smithy.api#documentation": "

\n The AWS account from which the evidence is collected, and its AWS organization path.\n

" + "smithy.api#documentation": "

\n The account from which the evidence is collected, and its organization path.\n

" } }, "awsAccountId": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified AWS account. \n

" + "smithy.api#documentation": "

\n The identifier for the specified account. \n

" } }, "evidenceFolderId": { @@ -3466,7 +3466,7 @@ "controlSources": { "target": "com.amazonaws.auditmanager#ControlSources", "traits": { - "smithy.api#documentation": "

\nThe sources from which AWS Audit Manager collects evidence for the control.\n

" + "smithy.api#documentation": "

\n The sources from which Audit Manager collects evidence for the control.\n

" } }, "controlSets": { @@ -3507,7 +3507,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The file used to structure and automate AWS Audit Manager assessments for a given compliance standard.\n

" + "smithy.api#documentation": "

\n The file used to structure and automate Audit Manager assessments for a given compliance standard.\n

" } }, "com.amazonaws.auditmanager#FrameworkDescription": { @@ -3590,7 +3590,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "^arn:.*" + "smithy.api#pattern": "^arn:" } }, "com.amazonaws.auditmanager#GetAccountStatus": { @@ -3607,7 +3607,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns the registration status of an account in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns the registration status of an account in Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/account/status", @@ -3625,7 +3625,7 @@ "status": { "target": "com.amazonaws.auditmanager#AccountStatus", "traits": { - "smithy.api#documentation": "

\nThe status of the specified AWS account.\n

" + "smithy.api#documentation": "

\n The status of the specified account.\n

" } } } @@ -3653,7 +3653,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns an assessment from AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns an assessment from Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}", @@ -3684,7 +3684,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns a framework from AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns a framework from Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessmentFrameworks/{frameworkId}", @@ -3739,7 +3739,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns the URL of a specified assessment report in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns the URL of a specified assessment report in Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/reports/{assessmentReportId}/url", @@ -3823,7 +3823,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns a list of changelogs from AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns a list of changelogs from Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/changelogs", @@ -3917,7 +3917,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns a control from AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns a control from Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/controls/{controlId}", @@ -4041,7 +4041,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns evidence from AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns evidence from Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}", @@ -4072,7 +4072,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns all evidence from a specified evidence folder in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns all evidence from a specified evidence folder in Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence", @@ -4168,7 +4168,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns an evidence folder from the specified assessment in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns an evidence folder from the specified assessment in Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}", @@ -4239,7 +4239,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the evidence folders from a specified assessment in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns the evidence folders from a specified assessment in Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/evidenceFolders", @@ -4275,7 +4275,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of evidence folders associated with a specified control of an assessment in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns a list of evidence folders associated with a specified control of an assessment in Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}", @@ -4463,7 +4463,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the name of the delegated AWS administrator account for the AWS organization. \n

", + "smithy.api#documentation": "

\n Returns the name of the delegated Amazon Web Services administrator account for the organization. \n

", "smithy.api#http": { "method": "GET", "uri": "/account/organizationAdminAccount", @@ -4512,7 +4512,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of the in-scope AWS services for the specified assessment. \n

", + "smithy.api#documentation": "

\n Returns a list of the in-scope Amazon Web Services services for the specified assessment. \n

", "smithy.api#http": { "method": "GET", "uri": "/services", @@ -4530,7 +4530,7 @@ "serviceMetadata": { "target": "com.amazonaws.auditmanager#ServiceMetadataList", "traits": { - "smithy.api#documentation": "

\n The metadata associated with the aAWS service.\n

" + "smithy.api#documentation": "

\n The metadata associated with the Amazon Web Service.\n

" } } } @@ -4552,7 +4552,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns the settings for the specified AWS account. \n

", + "smithy.api#documentation": "

\n Returns the settings for the specified account. \n

", "smithy.api#http": { "method": "GET", "uri": "/settings/{attribute}", @@ -4579,7 +4579,7 @@ "settings": { "target": "com.amazonaws.auditmanager#Settings", "traits": { - "smithy.api#documentation": "

\n The settings object that holds all supported AWS Audit Manager settings. \n

" + "smithy.api#documentation": "

\n The settings object that holds all supported Audit Manager settings. \n

" } } } @@ -4601,7 +4601,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "^arn:.*:iam:.*" + "smithy.api#pattern": "^arn:.*:iam:" } }, "com.amazonaws.auditmanager#Integer": { @@ -4657,7 +4657,7 @@ "min": 7, "max": 2048 }, - "smithy.api#pattern": "^arn:.*:kms:.*|DEFAULT" + "smithy.api#pattern": "^arn:.*:kms:.*|DEFAULT$" } }, "com.amazonaws.auditmanager#LastUpdatedBy": { @@ -4690,7 +4690,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns a list of the frameworks available in the AWS Audit Manager framework library.\n

", + "smithy.api#documentation": "

\n Returns a list of the frameworks available in the Audit Manager framework library.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessmentFrameworks", @@ -4773,7 +4773,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns a list of assessment reports created in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns a list of assessment reports created in Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessmentReports", @@ -4842,7 +4842,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns a list of current and past assessments from AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns a list of current and past assessments from Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/assessments", @@ -4911,7 +4911,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns a list of controls from AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns a list of controls from Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/controls", @@ -5065,7 +5065,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of all AWS Audit Manager notifications. \n

", + "smithy.api#documentation": "

\n Returns a list of all Audit Manager notifications. \n

", "smithy.api#http": { "method": "GET", "uri": "/notifications", @@ -5134,7 +5134,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nReturns a list of tags for the specified resource in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Returns a list of tags for the specified resource in Audit Manager.\n

", "smithy.api#http": { "method": "GET", "uri": "/tags/{resourceArn}", @@ -5177,7 +5177,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n Evidence that is uploaded to AWS Audit Manager manually. \n

" + "smithy.api#documentation": "

\n Evidence that is uploaded to Audit Manager manually. \n

" } }, "com.amazonaws.auditmanager#ManualEvidenceList": { @@ -5210,7 +5210,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.auditmanager#Notification": { @@ -5266,7 +5266,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The notification used to inform a user of an update in AWS Audit Manager. For example, this includes the notification that is sent when a control set is delegated for review. \n

" + "smithy.api#documentation": "

\n The notification used to inform a user of an update in Audit Manager. For example, this includes the notification that is sent when a control set is delegated for review. \n

" } }, "com.amazonaws.auditmanager#Notifications": { @@ -5325,7 +5325,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Enables AWS Audit Manager for the specified AWS account. \n

", + "smithy.api#documentation": "

\n Enables Audit Manager for the specified account. \n

", "smithy.api#http": { "method": "POST", "uri": "/account/registerAccount", @@ -5339,13 +5339,13 @@ "kmsKey": { "target": "com.amazonaws.auditmanager#KmsKey", "traits": { - "smithy.api#documentation": "

\n The AWS KMS key details. \n

" + "smithy.api#documentation": "

\n The KMS key details. \n

" } }, "delegatedAdminAccount": { "target": "com.amazonaws.auditmanager#AccountId", "traits": { - "smithy.api#documentation": "

\n The delegated administrator account for AWS Audit Manager. \n

" + "smithy.api#documentation": "

\n The delegated administrator account for Audit Manager. \n

" } } } @@ -5384,7 +5384,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Enables an AWS account within the organization as the delegated administrator for AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Enables an account within the organization as the delegated administrator for Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/account/registerOrganizationAdminAccount", @@ -5416,7 +5416,7 @@ "organizationId": { "target": "com.amazonaws.auditmanager#organizationId", "traits": { - "smithy.api#documentation": "

\n The identifier for the specified AWS organization. \n

" + "smithy.api#documentation": "

\n The identifier for the specified organization. \n

" } } } @@ -5438,7 +5438,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A system asset that is evaluated in an AWS Audit Manager assessment. \n

" + "smithy.api#documentation": "

\n A system asset that is evaluated in an Audit Manager assessment. \n

" } }, "com.amazonaws.auditmanager#ResourceNotFoundException": { @@ -5494,7 +5494,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The wrapper that contains the AWS Audit Manager role information of the current user, such as the role type and IAM Amazon Resource Name (ARN).\n

" + "smithy.api#documentation": "

\n The wrapper that contains the Audit Manager role information of the current user, such as the role type and IAM Amazon Resource Name (ARN).\n

" } }, "com.amazonaws.auditmanager#RoleType": { @@ -5525,7 +5525,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "^(S|s)3:\\/\\/[a-zA-Z0-9-_\\/.]+$" + "smithy.api#pattern": "^(S|s)3:\\/\\/[a-zA-Z0-9\\-\\.\\(\\)\\'\\*\\_\\!\\/]+$" } }, "com.amazonaws.auditmanager#SNSTopic": { @@ -5544,18 +5544,18 @@ "awsAccounts": { "target": "com.amazonaws.auditmanager#AWSAccounts", "traits": { - "smithy.api#documentation": "

\n The AWS accounts included in the scope of the assessment. \n

" + "smithy.api#documentation": "

\n The accounts included in the scope of the assessment. \n

" } }, "awsServices": { "target": "com.amazonaws.auditmanager#AWSServices", "traits": { - "smithy.api#documentation": "

\n The AWS services included in the scope of the assessment. \n

" + "smithy.api#documentation": "

\n The Amazon Web Services services included in the scope of the assessment. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The wrapper that contains the AWS accounts and AWS services in scope for the assessment.\n

" + "smithy.api#documentation": "

\n The wrapper that contains the accounts and services in scope for the assessment.\n

" } }, "com.amazonaws.auditmanager#ServiceMetadata": { @@ -5564,30 +5564,30 @@ "name": { "target": "com.amazonaws.auditmanager#AWSServiceName", "traits": { - "smithy.api#documentation": "

\nThe name of the AWS service.\n

" + "smithy.api#documentation": "

\n The name of the Amazon Web Service.\n

" } }, "displayName": { "target": "com.amazonaws.auditmanager#NonEmptyString", "traits": { - "smithy.api#documentation": "

\nThe display name of the AWS service.\n

" + "smithy.api#documentation": "

\n The display name of the Amazon Web Service.\n

" } }, "description": { "target": "com.amazonaws.auditmanager#NonEmptyString", "traits": { - "smithy.api#documentation": "

\n The description of the specified AWS service.\n

" + "smithy.api#documentation": "

\n The description of the specified Amazon Web Service.\n

" } }, "category": { "target": "com.amazonaws.auditmanager#NonEmptyString", "traits": { - "smithy.api#documentation": "

\n The category in which the AWS service belongs, such as compute, storage, database, and so on.\n

" + "smithy.api#documentation": "

\n The category in which the Amazon Web Service belongs, such as compute, storage, database, and so on.\n

" } } }, "traits": { - "smithy.api#documentation": "

\n The metadata associated with the specified AWS service.\n

" + "smithy.api#documentation": "

\n The metadata associated with the specified Amazon Web Service.\n

" } }, "com.amazonaws.auditmanager#ServiceMetadataList": { @@ -5629,13 +5629,13 @@ "isAwsOrgEnabled": { "target": "com.amazonaws.auditmanager#Boolean", "traits": { - "smithy.api#documentation": "

\n Specifies whether AWS Organizations is enabled. \n

" + "smithy.api#documentation": "

\n Specifies whether Organizations is enabled. \n

" } }, "snsTopic": { "target": "com.amazonaws.auditmanager#SNSTopic", "traits": { - "smithy.api#documentation": "

\n The designated Amazon Simple Notification Service (Amazon SNS) topic. \n

" + "smithy.api#documentation": "

\n The designated Amazon Simple Notification Service (Amazon SNS) topic. \n

" } }, "defaultAssessmentReportsDestination": { @@ -5653,12 +5653,12 @@ "kmsKey": { "target": "com.amazonaws.auditmanager#KmsKey", "traits": { - "smithy.api#documentation": "

\n The AWS KMS key details. \n

" + "smithy.api#documentation": "

\n The KMS key details. \n

" } } }, "traits": { - "smithy.api#documentation": "

\n The settings object that holds all supported AWS Audit Manager settings. \n

" + "smithy.api#documentation": "

\n The settings object that holds all supported Audit Manager settings. \n

" } }, "com.amazonaws.auditmanager#SnsArn": { @@ -5668,7 +5668,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "^arn:.*:sns:.*" + "smithy.api#pattern": "^arn:.*:sns:" } }, "com.amazonaws.auditmanager#SourceDescription": { @@ -5712,12 +5712,12 @@ "keywordValue": { "target": "com.amazonaws.auditmanager#KeywordValue", "traits": { - "smithy.api#documentation": "

\nThe value of the keyword used to search AWS CloudTrail logs, AWS Config rules, AWS Security Hub checks, and AWS API names when mapping a control data source. \n

" + "smithy.api#documentation": "

\n The value of the keyword used to search CloudTrail logs, Config rules, Security Hub checks, and Amazon Web Services API names when mapping a control data source. \n

" } } }, "traits": { - "smithy.api#documentation": "

\nThe keyword to search for in AWS CloudTrail logs, AWS Config rules, AWS Security Hub checks, and AWS API names.\n

" + "smithy.api#documentation": "

\n The keyword to search for in CloudTrail logs, Config rules, Security Hub checks, and Amazon Web Services API names.\n

" } }, "com.amazonaws.auditmanager#SourceName": { @@ -5838,7 +5838,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nTags the specified resource in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Tags the specified resource in Audit Manager.\n

", "smithy.api#http": { "method": "POST", "uri": "/tags/{resourceArn}", @@ -5877,7 +5877,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": ".{0,255}" + "smithy.api#pattern": "^.{0,255}$" } }, "com.amazonaws.auditmanager#TestingInformation": { @@ -5973,7 +5973,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nRemoves a tag from a resource in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Removes a tag from a resource in Audit Manager.\n

", "smithy.api#http": { "method": "DELETE", "uri": "/tags/{resourceArn}", @@ -6029,7 +6029,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Edits an AWS Audit Manager assessment. \n

", + "smithy.api#documentation": "

\n Edits an Audit Manager assessment. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}", @@ -6060,7 +6060,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nUpdates a control within an assessment in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Updates a control within an assessment in Audit Manager.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}", @@ -6143,7 +6143,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Updates the status of a control set in an AWS Audit Manager assessment.\n

", + "smithy.api#documentation": "

\n Updates the status of a control set in an Audit Manager assessment.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/controlSets/{controlSetId}/status", @@ -6220,7 +6220,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nUpdates a custom framework in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Updates a custom framework in Audit Manager.\n

", "smithy.api#http": { "method": "PUT", "uri": "/assessmentFrameworks/{frameworkId}", @@ -6252,7 +6252,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n A controlSet entity that represents a collection of controls in AWS Audit Manager. This does not contain the control set ID.\n

" + "smithy.api#documentation": "

\n A controlSet entity that represents a collection of controls in Audit Manager. This does not contain the control set ID.\n

" } }, "com.amazonaws.auditmanager#UpdateAssessmentFrameworkControlSets": { @@ -6389,7 +6389,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Updates the status of an assessment in AWS Audit Manager. \n

", + "smithy.api#documentation": "

\n Updates the status of an assessment in Audit Manager. \n

", "smithy.api#http": { "method": "PUT", "uri": "/assessments/{assessmentId}/status", @@ -6451,7 +6451,7 @@ } ], "traits": { - "smithy.api#documentation": "

\nUpdates a custom control in AWS Audit Manager.\n

", + "smithy.api#documentation": "

\n Updates a custom control in Audit Manager.\n

", "smithy.api#http": { "method": "PUT", "uri": "/controls/{controlId}", @@ -6541,7 +6541,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Updates AWS Audit Manager settings for the current user account. \n

", + "smithy.api#documentation": "

\n Updates Audit Manager settings for the current user account. \n

", "smithy.api#http": { "method": "PUT", "uri": "/settings", @@ -6555,7 +6555,7 @@ "snsTopic": { "target": "com.amazonaws.auditmanager#SnsArn", "traits": { - "smithy.api#documentation": "

\nThe Amazon Simple Notification Service (Amazon SNS) topic to which AWS Audit Manager sends notifications.\n

" + "smithy.api#documentation": "

\n The Amazon Simple Notification Service (Amazon SNS) topic to which Audit Manager sends notifications.\n

" } }, "defaultAssessmentReportsDestination": { @@ -6573,7 +6573,7 @@ "kmsKey": { "target": "com.amazonaws.auditmanager#KmsKey", "traits": { - "smithy.api#documentation": "

\n The AWS KMS key details. \n

" + "smithy.api#documentation": "

\n The KMS key details. \n

" } } } @@ -6632,7 +6632,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Validates the integrity of an assessment report in AWS Audit Manager. \n

", + "smithy.api#documentation": "

\n Validates the integrity of an assessment report in Audit Manager. \n

", "smithy.api#http": { "method": "POST", "uri": "/assessmentReports/integrity", @@ -6779,7 +6779,7 @@ "min": 12, "max": 34 }, - "smithy.api#pattern": "o-[a-z0-9]{10,32}" + "smithy.api#pattern": "^o-[a-z0-9]{10,32}$" } } } diff --git a/codegen/sdk-codegen/aws-models/batch.2016-08-10.json b/codegen/sdk-codegen/aws-models/batch.2016-08-10.json index e6c179f3ce0..d5bbd1da330 100644 --- a/codegen/sdk-codegen/aws-models/batch.2016-08-10.json +++ b/codegen/sdk-codegen/aws-models/batch.2016-08-10.json @@ -103,7 +103,7 @@ "name": "batch" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

Using AWS Batch, you can run batch computing workloads on the AWS Cloud. Batch computing is a common means for\n developers, scientists, and engineers to access large amounts of compute resources. AWS Batch uses the advantages of\n this computing workload to remove the undifferentiated heavy lifting of configuring and managing required\n infrastructure. At the same time, it also adopts a familiar batch computing software approach. Given these\n advantages, AWS Batch can help you to efficiently provision resources in response to jobs submitted, thus effectively\n helping you to eliminate capacity constraints, reduce compute costs, and deliver your results more quickly.

\n

As a fully managed service, AWS Batch can run batch computing workloads of any scale. AWS Batch automatically\n provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific\n workloads. With AWS Batch, there's no need to install or manage batch computing software. This means that you can focus\n your time and energy on analyzing results and solving your specific problems.

", + "smithy.api#documentation": "Batch\n

Using Batch, you can run batch computing workloads on the Cloud. Batch computing is a common means for\n developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of\n this computing workload to remove the undifferentiated heavy lifting of configuring and managing required\n infrastructure. At the same time, it also adopts a familiar batch computing software approach. Given these\n advantages, Batch can help you to efficiently provision resources in response to jobs submitted, thus effectively\n helping you to eliminate capacity constraints, reduce compute costs, and deliver your results more quickly.

\n

As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically\n provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific\n workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus\n your time and energy on analyzing results and solving your specific problems.

", "smithy.api#title": "AWS Batch", "smithy.api#xmlNamespace": { "uri": "http://batch.amazonaws.com/doc/2016-08-10/" @@ -145,7 +145,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing an AWS Batch array job.

" + "smithy.api#documentation": "

An object representing an Batch array job.

" } }, "com.amazonaws.batch#ArrayPropertiesDetail": { @@ -239,7 +239,7 @@ "logStreamName": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is\n /aws/batch/job. Each container attempt receives a log stream name when they reach the\n RUNNING status.

" + "smithy.api#documentation": "

The name of the CloudWatch Logs log stream associated with the container. The log group for Batch jobs is\n /aws/batch/job. Each container attempt receives a log stream name when they reach the\n RUNNING status.

" } }, "networkInterfaces": { @@ -414,7 +414,7 @@ } ], "traits": { - "smithy.api#documentation": "

Cancels a job in an AWS Batch job queue. Jobs that are in the SUBMITTED, PENDING, or\n RUNNABLE state are canceled. Jobs that have progressed to STARTING or RUNNING\n aren't canceled, but the API operation still succeeds, even if no job is canceled. These jobs must be terminated with\n the TerminateJob operation.

", + "smithy.api#documentation": "

Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED, PENDING, or\n RUNNABLE state are canceled. Jobs that have progressed to STARTING or RUNNING\n aren't canceled, but the API operation still succeeds, even if no job is canceled. These jobs must be terminated with\n the TerminateJob operation.

", "smithy.api#http": { "method": "POST", "uri": "/v1/canceljob", @@ -428,14 +428,14 @@ "jobId": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The AWS Batch job ID of the job to cancel.

", + "smithy.api#documentation": "

The Batch job ID of the job to cancel.

", "smithy.api#required": {} } }, "reason": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity\n logs.

", + "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the Batch activity\n logs.

", "smithy.api#required": {} } } @@ -494,13 +494,13 @@ "type": { "target": "com.amazonaws.batch#CEType", "traits": { - "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For more information, see\n Compute Environments in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For more information, see\n Compute Environments in the\n Batch User Guide.

" } }, "state": { "target": "com.amazonaws.batch#CEState", "traits": { - "smithy.api#documentation": "

The state of the compute environment. The valid values are ENABLED or DISABLED.

\n

If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" + "smithy.api#documentation": "

The state of the compute environment. The valid values are ENABLED or DISABLED.

\n

If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" } }, "status": { @@ -518,18 +518,18 @@ "computeResources": { "target": "com.amazonaws.batch#ComputeResource", "traits": { - "smithy.api#documentation": "

The compute resources defined for the compute environment. For more information, see Compute Environments in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The compute resources defined for the compute environment. For more information, see Compute Environments in the\n Batch User Guide.

" } }, "serviceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The service role associated with the compute environment that allows AWS Batch to make calls to AWS API\n operations on your behalf. For more information, see AWS Batch service IAM role in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The service role associated with the compute environment that allows Batch to make calls to Amazon Web Services API\n operations on your behalf. For more information, see Batch service IAM role in the\n Batch User Guide.

" } } }, "traits": { - "smithy.api#documentation": "

An object representing an AWS Batch compute environment.

" + "smithy.api#documentation": "

An object representing an Batch compute environment.

" } }, "com.amazonaws.batch#ComputeEnvironmentDetailList": { @@ -557,7 +557,7 @@ } }, "traits": { - "smithy.api#documentation": "

The order in which compute environments are tried for job placement within a queue. Compute environments are\n tried in ascending order. For example, if two compute environments are associated with a job queue, the compute\n environment with a lower order integer value is tried for job placement first. Compute environments must be in the\n VALID state before you can associate them with a job queue. All of the compute environments must be\n either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT);\n EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
" + "smithy.api#documentation": "

The order in which compute environments are tried for job placement within a queue. Compute environments are\n tried in ascending order. For example, if two compute environments are associated with a job queue, the compute\n environment with a lower order integer value is tried for job placement first. Compute environments must be in the\n VALID state before you can associate them with a job queue. All of the compute environments must be\n either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT);\n EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
" } }, "com.amazonaws.batch#ComputeEnvironmentOrders": { @@ -572,39 +572,39 @@ "type": { "target": "com.amazonaws.batch#CRType", "traits": { - "smithy.api#documentation": "

The type of compute environment: EC2, SPOT, FARGATE, or\n FARGATE_SPOT. For more information, see Compute Environments in the\n AWS Batch User Guide.

\n

If you choose SPOT, you must also specify an Amazon EC2 Spot Fleet role with the\n spotIamFleetRole parameter. For more information, see Amazon EC2 Spot Fleet role in the\n AWS Batch User Guide.

", + "smithy.api#documentation": "

The type of compute environment: EC2, SPOT, FARGATE, or\n FARGATE_SPOT. For more information, see Compute Environments in the\n Batch User Guide.

\n

If you choose SPOT, you must also specify an Amazon EC2 Spot Fleet role with the\n spotIamFleetRole parameter. For more information, see Amazon EC2 Spot Fleet role in the\n Batch User Guide.

", "smithy.api#required": {} } }, "allocationStrategy": { "target": "com.amazonaws.batch#CRAllocationStrategy", "traits": { - "smithy.api#documentation": "

The allocation strategy to use for the compute resource if not enough instances of the best fitting instance\n type can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more\n information, see Allocation Strategies\n in the AWS Batch User Guide.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
\n
\n
BEST_FIT (default)
\n
\n

AWS Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost\n instance type. If additional instances of the selected instance type aren't available, AWS Batch waits for the\n additional instances to be available. If there aren't enough instances available, or if the user is hitting Amazon EC2 service limits then\n additional jobs aren't run until the currently running jobs have completed. This allocation strategy keeps costs\n lower but can limit scaling. If you are using Spot Fleets with BEST_FIT then the Spot Fleet IAM Role\n must be specified.

\n
\n
BEST_FIT_PROGRESSIVE
\n
\n

AWS Batch will select additional instance types that are large enough to meet the requirements of the jobs in\n the queue, with a preference for instance types with a lower cost per unit vCPU. If additional instances of the\n previously selected instance types aren't available, AWS Batch will select new instance types.

\n
\n
SPOT_CAPACITY_OPTIMIZED
\n
\n

AWS Batch will select one or more instance types that are large enough to meet the requirements of the jobs in\n the queue, with a preference for instance types that are less likely to be interrupted. This allocation strategy\n is only available for Spot Instance compute resources.

\n
\n
\n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies, AWS Batch might\n need to go above maxvCpus to meet your capacity requirements. In this event, AWS Batch never exceeds\n maxvCpus by more than a single instance.

" + "smithy.api#documentation": "

The allocation strategy to use for the compute resource if not enough instances of the best fitting instance\n type can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more\n information, see Allocation Strategies\n in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
\n
\n
BEST_FIT (default)
\n
\n

Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost\n instance type. If additional instances of the selected instance type aren't available, Batch waits for the\n additional instances to be available. If there aren't enough instances available, or if the user is reaching\n Amazon EC2 service limits\n then additional jobs aren't run until the currently running jobs have completed. This allocation strategy keeps\n costs lower but can limit scaling. If you are using Spot Fleets with BEST_FIT then the Spot Fleet IAM\n Role must be specified.

\n
\n
BEST_FIT_PROGRESSIVE
\n
\n

Batch will select additional instance types that are large enough to meet the requirements of the jobs in\n the queue, with a preference for instance types with a lower cost per unit vCPU. If additional instances of the\n previously selected instance types aren't available, Batch will select new instance types.

\n
\n
SPOT_CAPACITY_OPTIMIZED
\n
\n

Batch will select one or more instance types that are large enough to meet the requirements of the jobs in\n the queue, with a preference for instance types that are less likely to be interrupted. This allocation strategy\n is only available for Spot Instance compute resources.

\n
\n
\n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies, Batch might\n need to go above maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

" } }, "minvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute environment is\n DISABLED).

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute environment is\n DISABLED).

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "maxvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that a compute environment can reach.

\n \n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies,\n AWS Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, AWS Batch never\n exceeds maxvCpus by more than a single instance. For example, no more than a single instance from among\n those specified in your compute environment is allocated.

\n
", + "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that a compute environment can reach.

\n \n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies,\n Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never\n exceeds maxvCpus by more than a single instance. For example, no more than a single instance from among\n those specified in your compute environment is allocated.

\n
", "smithy.api#required": {} } }, "desiredvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The desired number of Amazon EC2 vCPUS in the compute environment. AWS Batch modifies this value between the minimum\n and maximum values, based on job queue demand.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

The desired number of Amazon EC2 vCPUS in the compute environment. Batch modifies this value between the minimum\n and maximum values, based on job queue demand.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "instanceTypes": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The instances types that can be launched. You can specify instance families to launch any instance type within\n those families (for example, c5 or p3), or you can specify specific sizes within a family\n (such as c5.8xlarge). You can also choose optimal to select instance types (from the C4,\n M4, and R4 instance families) that match the demand of your job queues.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
\n \n

When you create a compute environment, the instance types that you select for the compute environment must\n share the same architecture. For example, you can't mix x86 and ARM instances in the same compute\n environment.

\n
\n \n

Currently, optimal uses instance types from the C4, M4, and R4 instance families. In Regions that\n don't have instance types from those instance families, instance types from the C5, M5. and R5 instance families are\n used.

\n
" + "smithy.api#documentation": "

The instances types that can be launched. You can specify instance families to launch any instance type within\n those families (for example, c5 or p3), or you can specify specific sizes within a family\n (such as c5.8xlarge). You can also choose optimal to select instance types (from the C4,\n M4, and R4 instance families) that match the demand of your job queues.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
\n \n

When you create a compute environment, the instance types that you select for the compute environment must\n share the same architecture. For example, you can't mix x86 and ARM instances in the same compute\n environment.

\n
\n \n

Currently, optimal uses instance types from the C4, M4, and R4 instance families. In Regions that\n don't have instance types from those instance families, instance types from the C5, M5. and R5 instance families are\n used.

\n
" } }, "imageId": { @@ -613,73 +613,73 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use ec2Configuration[].imageIdOverride instead." }, - "smithy.api#documentation": "

The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is\n overridden by the imageIdOverride member of the Ec2Configuration structure.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
\n \n

The AMI that you choose for a compute environment must match the architecture of the instance types that\n you intend to use for that compute environment. For example, if your compute environment uses A1 instance types,\n the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the\n Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see Amazon ECS-optimized\n Amazon Linux 2 AMI\n in the Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is\n overridden by the imageIdOverride member of the Ec2Configuration structure.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
\n \n

The AMI that you choose for a compute environment must match the architecture of the instance types that\n you intend to use for that compute environment. For example, if your compute environment uses A1 instance types,\n the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the\n Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see Amazon ECS-optimized\n Amazon Linux 2 AMI\n in the Amazon Elastic Container Service Developer Guide.

\n
" } }, "subnets": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The VPC subnets into which the compute resources are launched. These subnets must be within the same VPC.\n Fargate compute resources can contain up to 16 subnets. For more information, see VPCs and Subnets in the Amazon VPC User\n Guide.

", + "smithy.api#documentation": "

The VPC subnets where the compute resources are launched. These subnets must be within the same VPC. Fargate\n compute resources can contain up to 16 subnets. For more information, see VPCs and Subnets in the Amazon VPC User\n Guide.

", "smithy.api#required": {} } }, "securityGroupIds": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The Amazon EC2 security groups associated with instances launched in the compute environment. One or more security\n groups must be specified, either in securityGroupIds or using a launch template referenced in\n launchTemplate. This parameter is required for jobs running on Fargate resources and must contain at\n least one security group. Fargate doesn't support launch templates. If security groups are specified using both\n securityGroupIds and launchTemplate, the values in securityGroupIds is\n used.

" + "smithy.api#documentation": "

The Amazon EC2 security groups associated with instances launched in the compute environment. One or more security\n groups must be specified, either in securityGroupIds or using a launch template referenced in\n launchTemplate. This parameter is required for jobs that are running on Fargate resources and must\n contain at least one security group. Fargate doesn't support launch templates. If security groups are specified\n using both securityGroupIds and launchTemplate, the values in securityGroupIds\n are used.

" } }, "ec2KeyPair": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon EC2 key pair that's used for instances launched in the compute environment. You can use this key pair to\n log in to your instances with SSH.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

The Amazon EC2 key pair that's used for instances launched in the compute environment. You can use this key pair to\n log in to your instances with SSH.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "instanceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. You can specify the short name\n or full Amazon Resource Name (ARN) of an instance profile. For example,\n \n ecsInstanceRole\n or\n arn:aws:iam:::instance-profile/ecsInstanceRole\n .\n For more information, see Amazon ECS Instance\n Role in the AWS Batch User Guide.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. You can specify the short name\n or full Amazon Resource Name (ARN) of an instance profile. For example,\n \n ecsInstanceRole\n or\n arn:aws:iam:::instance-profile/ecsInstanceRole\n .\n For more information, see Amazon ECS Instance\n Role in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "tags": { "target": "com.amazonaws.batch#TagsMap", "traits": { - "smithy.api#documentation": "

Key-value pair tags to be applied to EC2 resources that are launched in the compute environment. For AWS Batch,\n these take the form of \"String1\": \"String2\", where String1 is the tag key and String2 is the tag value−for\n example, { \"Name\": \"AWS Batch Instance - C4OnDemand\" }. This is helpful for recognizing your AWS Batch instances in the\n Amazon EC2 console. These tags can't be updated or removed after the compute environment has been created; any changes\n require creating a new compute environment and removing the old compute environment. These tags aren't seen when\n using the AWS Batch ListTagsForResource API operation.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

Key-value pair tags to be applied to EC2 resources that are launched in the compute environment. For Batch,\n these take the form of \"String1\": \"String2\", where String1 is the tag key and String2 is the tag value−for\n example, { \"Name\": \"Batch Instance - C4OnDemand\" }. This is helpful for recognizing your Batch instances in the\n Amazon EC2 console. These tags can't be updated or removed after the compute environment is created.Aany changes to these\n tags require that you create a new compute environment and remove the old compute environment. These tags aren't seen\n when using the Batch ListTagsForResource API operation.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "placementGroup": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel\n jobs to your compute environment, you should consider creating a cluster placement group and associate it with your\n compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single\n Availability Zone with high network flow potential. For more information, see Placement Groups in the Amazon EC2 User Guide for\n Linux Instances.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel\n jobs to your compute environment, you should consider creating a cluster placement group and associate it with your\n compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single\n Availability Zone with high network flow potential. For more information, see Placement Groups in the Amazon EC2 User Guide for\n Linux Instances.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "bidPercentage": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that\n instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must\n be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and\n never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand\n price.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that\n instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must\n be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and\n never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand\n price.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "spotIamFleetRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This role is\n required if the allocation strategy set to BEST_FIT or if the allocation strategy isn't specified. For\n more information, see Amazon EC2 Spot Fleet\n Role in the AWS Batch User Guide.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
\n \n

To tag your Spot Instances on creation, the Spot Fleet IAM role specified here must use the newer AmazonEC2SpotFleetTaggingRole managed policy. The previously recommended AmazonEC2SpotFleetRole managed policy doesn't have the required permissions to tag Spot\n Instances. For more information, see Spot Instances not tagged on creation in the\n AWS Batch User Guide.

\n
" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This role is\n required if the allocation strategy set to BEST_FIT or if the allocation strategy isn't specified. For\n more information, see Amazon EC2 Spot Fleet\n Role in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
\n \n

To tag your Spot Instances on creation, the Spot Fleet IAM role specified here must use the newer AmazonEC2SpotFleetTaggingRole managed policy. The previously recommended AmazonEC2SpotFleetRole managed policy doesn't have the required permissions to tag Spot\n Instances. For more information, see Spot Instances not tagged on creation in the\n Batch User Guide.

\n
" } }, "launchTemplate": { "target": "com.amazonaws.batch#LaunchTemplateSpecification", "traits": { - "smithy.api#documentation": "

The launch template to use for your compute resources. Any other compute resource parameters that you specify in\n a CreateComputeEnvironment API operation override the same parameters in the launch template. You\n must specify either the launch template ID or launch template name in the request, but not both. For more\n information, see Launch Template Support in\n the AWS Batch User Guide.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

The launch template to use for your compute resources. Any other compute resource parameters that you specify in\n a CreateComputeEnvironment API operation override the same parameters in the launch template. You\n must specify either the launch template ID or launch template name in the request, but not both. For more\n information, see Launch Template Support in\n the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "ec2Configuration": { "target": "com.amazonaws.batch#Ec2ConfigurationList", "traits": { - "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment.\n If Ec2Configuration isn't specified, the default is ECS_AL1.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment.\n If Ec2Configuration isn't specified, the default is ECS_AL1.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } } }, "traits": { - "smithy.api#documentation": "

An object representing an AWS Batch compute resource. For more information, see Compute Environments in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

An object representing an Batch compute resource. For more information, see Compute Environments in the\n Batch User Guide.

" } }, "com.amazonaws.batch#ComputeResourceUpdate": { @@ -688,25 +688,25 @@ "minvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The minimum number of Amazon EC2 vCPUs that an environment should maintain.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

The minimum number of Amazon EC2 vCPUs that an environment should maintain.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "maxvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that an environment can reach.

\n \n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies,\n AWS Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, AWS Batch never\n exceeds maxvCpus by more than a single instance. That is, no more than a single instance from among\n those specified in your compute environment.

\n
" + "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that an environment can reach.

\n \n

With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies,\n Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never\n exceeds maxvCpus by more than a single instance. That is, no more than a single instance from among\n those specified in your compute environment.

\n
" } }, "desiredvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The desired number of Amazon EC2 vCPUS in the compute environment.

\n \n

This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.

\n
" + "smithy.api#documentation": "

The desired number of Amazon EC2 vCPUS in the compute environment.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be\n specified.

\n
" } }, "subnets": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The VPC subnets that the compute resources are launched into. Fargate compute resources can contain up to 16\n subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This\n can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User\n Guide.

" + "smithy.api#documentation": "

The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16\n subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This\n can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User\n Guide.

" } }, "securityGroupIds": { @@ -717,7 +717,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing the attributes of a compute environment that can be updated. For more information, see\n Compute Environments in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

An object representing the attributes of a compute environment that can be updated. For more information, see\n Compute Environments in the\n Batch User Guide.

" } }, "com.amazonaws.batch#ContainerDetail": { @@ -756,7 +756,7 @@ "executionRoleArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the\n execution\n role that AWS Batch can assume. For more information, see AWS Batch execution IAM role in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM role in the\n Batch User Guide.

" } }, "volumes": { @@ -768,7 +768,7 @@ "environment": { "target": "com.amazonaws.batch#EnvironmentVariables", "traits": { - "smithy.api#documentation": "

The environment variables to pass to a container.

\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the AWS Batch service.

\n
" + "smithy.api#documentation": "

The environment variables to pass to a container.

\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the Batch service.

\n
" } }, "mountPoints": { @@ -786,13 +786,13 @@ "ulimits": { "target": "com.amazonaws.batch#Ulimits", "traits": { - "smithy.api#documentation": "

A list of ulimit values to set in the container. This parameter maps to Ulimits in the\n Create a container section of the Docker Remote API and the --ulimit option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources.

\n
" + "smithy.api#documentation": "

A list of ulimit values to set in the container. This parameter maps to Ulimits in the\n Create a container section of the Docker Remote API and the --ulimit option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources.

\n
" } }, "privileged": { "target": "com.amazonaws.batch#Boolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given elevated permissions on the host container instance (similar\n to the root user). The default value is false.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided, or specified\n as false.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given elevated permissions on the host container instance (similar\n to the root user). The default value is false.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or\n specified as false.

\n
" } }, "user": { @@ -828,13 +828,13 @@ "logStreamName": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is\n /aws/batch/job. Each container attempt receives a log stream name when they reach the\n RUNNING status.

" + "smithy.api#documentation": "

The name of the CloudWatch Logs log stream associated with the container. The log group for Batch jobs is\n /aws/batch/job. Each container attempt receives a log stream name when they reach the\n RUNNING status.

" } }, "instanceType": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The instance type of the underlying host infrastructure of a multi-node parallel job.

\n \n

This parameter isn't applicable to jobs running on Fargate resources.

\n
" + "smithy.api#documentation": "

The instance type of the underlying host infrastructure of a multi-node parallel job.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources.

\n
" } }, "networkInterfaces": { @@ -858,25 +858,25 @@ "logConfiguration": { "target": "com.amazonaws.batch#LogConfiguration", "traits": { - "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container section of the\n Docker Remote API and the --log-driver option to docker run.\n By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a\n different logging driver than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured properly on the\n container instance. Or, alternatively, it must be configured on a different log server for remote logging options.\n For more information on the options for different supported log drivers, see Configure logging drivers in the Docker\n documentation.

\n \n

AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers might be available in future releases of the Amazon ECS\n container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers available on that\n instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that\n instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the\n Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container section of the\n Docker Remote API and the --log-driver option to docker run.\n By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a\n different logging driver than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured properly on the\n container instance. Or, alternatively, it must be configured on a different log server for remote logging options.\n For more information on the options for different supported log drivers, see Configure logging drivers in the Docker\n documentation.

\n \n

Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers might be available in future releases of the Amazon ECS\n container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers available on that\n instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that\n instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the\n Amazon Elastic Container Service Developer Guide.

\n
" } }, "secrets": { "target": "com.amazonaws.batch#SecretList", "traits": { - "smithy.api#documentation": "

The secrets to pass to the container. For more information, see Specifying sensitive data in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The secrets to pass to the container. For more information, see Specifying sensitive data in the\n Batch User Guide.

" } }, "networkConfiguration": { "target": "com.amazonaws.batch#NetworkConfiguration", "traits": { - "smithy.api#documentation": "

The network configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" + "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" } }, "fargatePlatformConfiguration": { "target": "com.amazonaws.batch#FargatePlatformConfiguration", "traits": { - "smithy.api#documentation": "

The platform configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" + "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" } } }, @@ -893,7 +893,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter indicates the number of vCPUs reserved for the container.It overrides the vcpus\n parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the\n resourceRequirement structure in the job definition.

\n

This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate\n resources. For Fargate resources, you can only use resourceRequirement. For EC2 resources, you can use\n either this parameter or resourceRequirement but not both.

\n

This parameter maps to CpuShares in the Create a container section of the\n Docker Remote API and the --cpu-shares option to docker run.\n Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.

\n \n \n

This parameter isn't applicable to jobs that run on Fargate resources and shouldn't be provided. For jobs\n that run on Fargate resources, you must specify the vCPU requirement for the job using\n resourceRequirements.

\n \n
" + "smithy.api#documentation": "

This parameter indicates the number of vCPUs reserved for the container.It overrides the vcpus\n parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the\n resourceRequirement structure in the job definition. To override vCPU requirements that are specified\n in the ResourceRequirement structure in the job definition, ResourceRequirement must be\n specified in the SubmitJob request, with type set to VCPU and\n value set to the new value.

\n

This parameter maps to CpuShares in the Create a container section of the\n Docker Remote API and the --cpu-shares option to docker run.\n Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.

\n \n

This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on\n Fargate resources. For Fargate resources, you can only use resourceRequirement. For EC2 resources,\n you can use either this parameter or resourceRequirement but not both.

\n
" } }, "memory": { @@ -902,7 +902,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the\n memory parameter set in the job definition, but doesn't override any memory requirement specified in\n the ResourceRequirement structure in the job definition.

\n

This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate\n resources. For these resources, use resourceRequirement instead.

" + "smithy.api#documentation": "

This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the\n memory parameter set in the job definition, but doesn't override any memory requirement specified in\n the ResourceRequirement structure in the job definition. To override memory requirements that are\n specified in the ResourceRequirement structure in the job definition, ResourceRequirement\n must be specified in the SubmitJob request, with type set to MEMORY and\n value set to the new value.

\n

This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate\n resources. For these resources, use resourceRequirement instead.

" } }, "command": { @@ -914,13 +914,13 @@ "instanceType": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The instance type to use for a multi-node parallel job.

\n \n

This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and\n shouldn't be provided.

\n
" + "smithy.api#documentation": "

The instance type to use for a multi-node parallel job.

\n \n

This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and\n shouldn't be provided.

\n
" } }, "environment": { "target": "com.amazonaws.batch#EnvironmentVariables", "traits": { - "smithy.api#documentation": "

The environment variables to send to the container. You can add new environment variables, which are added to\n the container at launch, or you can override the existing environment variables from the Docker image or the job\n definition.

\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the AWS Batch service.

\n
" + "smithy.api#documentation": "

The environment variables to send to the container. You can add new environment variables, which are added to\n the container at launch, or you can override the existing environment variables from the Docker image or the job\n definition.

\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the Batch service.

\n
" } }, "resourceRequirements": { @@ -949,7 +949,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

The number of vCPUs reserved for the job. Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to\n CpuShares in the Create a container section of the Docker Remote API and the\n --cpu-shares option to docker run. The number of vCPUs must\n be specified but can be be specified in several places. You must specify it at least once for each node.

\n

This parameter is supported on EC2 resources but isn't supported for jobs that run on Fargate resources. For\n these resources, use resourceRequirement instead. You can use this parameter or\n resourceRequirements structure but not both.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided. For jobs that\n run on Fargate resources, you must specify the vCPU requirement for the job using\n resourceRequirements.

\n
" + "smithy.api#documentation": "

The number of vCPUs reserved for the job. Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to\n CpuShares in the Create a container section of the Docker Remote API and the\n --cpu-shares option to docker run. The number of vCPUs must\n be specified but can be specified in several places. You must specify it at least once for each node.

\n

This parameter is supported on EC2 resources but isn't supported for jobs that run on Fargate resources. For\n these resources, use resourceRequirement instead. You can use this parameter or\n resourceRequirements structure but not both.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided. For\n jobs that run on Fargate resources, you must specify the vCPU requirement for the job using\n resourceRequirements.

\n
" } }, "memory": { @@ -958,7 +958,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter indicates the memory hard limit (in MiB) for a container. If your container attempts to exceed\n the specified number, it is terminated. You must specify at least 4 MiB of memory for a job using this parameter. The\n memory hard limit can be specified in several places. It must be specified for each node at least once.

\n

This parameter maps to Memory in the Create a container section of the\n Docker Remote API and the --memory option to docker\n run.

\n

This parameter is supported on EC2 resources but isn't supported on Fargate resources. For Fargate\n resources, you should specify the memory requirement using resourceRequirement. You can do this for EC2\n resources.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a\n particular instance type, see Memory\n Management in the AWS Batch User Guide.

\n
" + "smithy.api#documentation": "

This parameter indicates the memory hard limit (in MiB) for a container. If your container attempts to exceed\n the specified number, it's terminated. You must specify at least 4 MiB of memory for a job using this parameter. The\n memory hard limit can be specified in several places. It must be specified for each node at least once.

\n

This parameter maps to Memory in the Create a container section of the\n Docker Remote API and the --memory option to docker\n run.

\n

This parameter is supported on EC2 resources but isn't supported on Fargate resources. For Fargate\n resources, you should specify the memory requirement using resourceRequirement. You can also do this for\n EC2 resources.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a\n particular instance type, see Memory\n Management in the Batch User Guide.

\n
" } }, "command": { @@ -970,13 +970,13 @@ "jobRoleArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions. For more information, see\n IAM Roles for Tasks\n in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more information, see\n IAM Roles for Tasks\n in the Amazon Elastic Container Service Developer Guide.

" } }, "executionRoleArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must\n provide an execution role. For more information, see AWS Batch execution IAM role in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the execution role that Batch can assume. For jobs that run on Fargate resources, you must\n provide an execution role. For more information, see Batch execution IAM role in the\n Batch User Guide.

" } }, "volumes": { @@ -988,7 +988,7 @@ "environment": { "target": "com.amazonaws.batch#EnvironmentVariables", "traits": { - "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to Env in the\n Create a container section of the Docker Remote API and the --env option to docker run.

\n \n

We don't recommend using plaintext environment variables for sensitive information, such as credential\n data.

\n
\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the AWS Batch service.

\n
" + "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to Env in the\n Create a container section of the Docker Remote API and the --env option to docker run.

\n \n

We don't recommend using plaintext environment variables for sensitive information, such as credential\n data.

\n
\n \n

Environment variables must not start with AWS_BATCH; this naming\n convention is reserved for variables that are set by the Batch service.

\n
" } }, "mountPoints": { @@ -1006,13 +1006,13 @@ "privileged": { "target": "com.amazonaws.batch#Boolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given elevated permissions on the host container instance (similar\n to the root user). This parameter maps to Privileged in the\n Create a container section of the Docker Remote API and the --privileged option to\n docker run. The default value is false.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided, or specified\n as false.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given elevated permissions on the host container instance (similar\n to the root user). This parameter maps to Privileged in the\n Create a container section of the Docker Remote API and the --privileged option to\n docker run. The default value is false.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or\n specified as false.

\n
" } }, "ulimits": { "target": "com.amazonaws.batch#Ulimits", "traits": { - "smithy.api#documentation": "

A list of ulimits to set in the container. This parameter maps to Ulimits in the\n Create a container section of the Docker Remote API and the --ulimit option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" + "smithy.api#documentation": "

A list of ulimits to set in the container. This parameter maps to Ulimits in the\n Create a container section of the Docker Remote API and the --ulimit option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" } }, "user": { @@ -1024,7 +1024,7 @@ "instanceType": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use\n the same instance type.

\n \n

This parameter isn't applicable to single-node container jobs or for jobs that run on Fargate resources and\n shouldn't be provided.

\n
" + "smithy.api#documentation": "

The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use\n the same instance type.

\n \n

This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and\n shouldn't be provided.

\n
" } }, "resourceRequirements": { @@ -1042,25 +1042,25 @@ "logConfiguration": { "target": "com.amazonaws.batch#LogConfiguration", "traits": { - "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container section of the\n Docker Remote API and the --log-driver option to docker run.\n By default, containers use the same logging driver that the Docker daemon uses. However the container might use a\n different logging driver than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured properly on the\n container instance (or on a different log server for remote logging options). For more information on the options for\n different supported log drivers, see Configure\n logging drivers in the Docker documentation.

\n \n

AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type).

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers available on that\n instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that\n instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the\n Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container section of the\n Docker Remote API and the --log-driver option to docker run.\n By default, containers use the same logging driver that the Docker daemon uses. However the container might use a\n different logging driver than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured properly on the\n container instance (or on a different log server for remote logging options). For more information on the options for\n different supported log drivers, see Configure\n logging drivers in the Docker documentation.

\n \n

Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type).

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers available on that\n instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that\n instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the\n Amazon Elastic Container Service Developer Guide.

\n
" } }, "secrets": { "target": "com.amazonaws.batch#SecretList", "traits": { - "smithy.api#documentation": "

The secrets for the container. For more information, see Specifying sensitive data in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The secrets for the container. For more information, see Specifying sensitive data in the\n Batch User Guide.

" } }, "networkConfiguration": { "target": "com.amazonaws.batch#NetworkConfiguration", "traits": { - "smithy.api#documentation": "

The network configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" + "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" } }, "fargatePlatformConfiguration": { "target": "com.amazonaws.batch#FargatePlatformConfiguration", "traits": { - "smithy.api#documentation": "

The platform configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" + "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" } } }, @@ -1105,7 +1105,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED compute\n environments. MANAGED compute environments can use Amazon EC2 or AWS Fargate resources.\n UNMANAGED compute environments can only use EC2 resources.

\n

In a managed compute environment, AWS Batch manages the capacity and instance types of the compute resources\n within the environment. This is based on the compute resource specification that you define or the launch template that you\n specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot\n Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can\n optionally set a maximum price so that Spot Instances only launch\n when\n the Spot Instance price is less than a specified percentage of the On-Demand price.

\n \n \n

Multi-node parallel jobs aren't supported on Spot Instances.

\n
\n

In an unmanaged compute environment, you can manage your own EC2 compute resources and have a lot of flexibility\n with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that\n each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the\n Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, launch\n your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS container instance in the\n Amazon Elastic Container Service Developer Guide.

\n \n

AWS Batch doesn't upgrade the AMIs in a compute environment after the environment is created. For example, it\n doesn't update the AMIs when a newer version of the Amazon ECS optimized AMI is available. Therefore, you're responsible\n for managing the guest operating system (including its updates and security patches) and any additional application\n software or utilities that you install on the compute resources. To use a new AMI for your AWS Batch jobs, complete\n these steps:

\n
    \n
  1. \n

    Create a new compute environment with the new AMI.

    \n
  2. \n
  3. \n

    Add the compute environment to an existing job queue.

    \n
  4. \n
  5. \n

    Remove the earlier compute environment from your job queue.

    \n
  6. \n
  7. \n

    Delete the earlier compute environment.

    \n
  8. \n
\n
", + "smithy.api#documentation": "

Creates an Batch compute environment. You can create MANAGED or UNMANAGED compute\n environments. MANAGED compute environments can use Amazon EC2 or Fargate resources.\n UNMANAGED compute environments can only use EC2 resources.

\n

In a managed compute environment, Batch manages the capacity and instance types of the compute resources\n within the environment. This is based on the compute resource specification that you define or the launch template that you\n specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot\n Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can\n optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a\n specified percentage of the On-Demand price.

\n \n

Multi-node parallel jobs aren't supported on Spot Instances.

\n
\n

In an unmanaged compute environment, you can manage your own EC2 compute resources and have a lot of flexibility\n with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that\n each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance\n AMIs in the Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you\n can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with\n it. Then, launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS\n container instance in the Amazon Elastic Container Service Developer Guide.

\n \n

Batch doesn't upgrade the AMIs in a compute environment after the environment is created. For example, it\n doesn't update the AMIs when a newer version of the Amazon ECS optimized AMI is available. Therefore, you're responsible\n for managing the guest operating system (including its updates and security patches) and any additional application\n software or utilities that you install on the compute resources. To use a new AMI for your Batch jobs, complete\n these steps:

\n
    \n
  1. \n

    Create a new compute environment with the new AMI.

    \n
  2. \n
  3. \n

    Add the compute environment to an existing job queue.

    \n
  4. \n
  5. \n

    Remove the earlier compute environment from your job queue.

    \n
  6. \n
  7. \n

    Delete the earlier compute environment.

    \n
  8. \n
\n
", "smithy.api#http": { "method": "POST", "uri": "/v1/createcomputeenvironment", @@ -1126,32 +1126,32 @@ "type": { "target": "com.amazonaws.batch#CEType", "traits": { - "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For more information, see\n Compute Environments in the\n AWS Batch User Guide.

", + "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For more information, see\n Compute Environments in the\n Batch User Guide.

", "smithy.api#required": {} } }, "state": { "target": "com.amazonaws.batch#CEState", "traits": { - "smithy.api#documentation": "

The state of the compute environment. If the state is ENABLED, then the compute environment accepts\n jobs from a queue and can scale out automatically based on queues.

\n

If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" + "smithy.api#documentation": "

The state of the compute environment. If the state is ENABLED, then the compute environment accepts\n jobs from a queue and can scale out automatically based on queues.

\n

If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" } }, "computeResources": { "target": "com.amazonaws.batch#ComputeResource", "traits": { - "smithy.api#documentation": "

Details about the compute resources managed by the compute environment. This parameter is required for managed\n compute environments. For more information, see Compute Environments in the AWS Batch User Guide.

" + "smithy.api#documentation": "

Details about the compute resources managed by the compute environment. This parameter is required for managed\n compute environments. For more information, see Compute Environments in the Batch User Guide.

" } }, "serviceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For\n more information, see AWS Batch service IAM\n role in the AWS Batch User Guide.

\n \n

If your account has already created the AWS Batch service-linked role, that role is used by default for your\n compute environment unless you specify a role here. If the AWS Batch service-linked role does not exist in your\n account, and no role is specified here, the service will try to create the AWS Batch service-linked role in your\n account.

\n
\n

If your specified role has a path other than /, then you must specify either the full role ARN\n (recommended) or prefix the role name with the path. For example, if a role with the name bar has a path\n of /foo/ then you would specify /foo/bar as the role name. For more information, see Friendly names\n and paths in the IAM User Guide.

\n \n

Depending on how you created your AWS Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" + "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf. For\n more information, see Batch service IAM\n role in the Batch User Guide.

\n \n

If your account already created the Batch service-linked role, that role is used by default for your compute\n environment unless you specify a different role here. If the Batch service-linked role doesn't exist in your\n account, and no role is specified here, the service attempts to create the Batch service-linked role in your\n account.

\n
\n

If your specified role has a path other than /, then you must specify either the full role ARN\n (recommended) or prefix the role name with the path. For example, if a role with the name bar has a path\n of /foo/ then you would specify /foo/bar as the role name. For more information, see Friendly names\n and paths in the IAM User Guide.

\n \n

Depending on how you created your Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the compute environment to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General\n Reference.

\n

These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't\n propagate to the underlying compute resources.

" + "smithy.api#documentation": "

The tags that you apply to the compute environment to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

\n

These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't\n propagate to the underlying compute resources.

" } } }, @@ -1193,7 +1193,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an AWS Batch job queue. When you create a job queue, you associate one or more compute environments to the\n queue and assign an order of preference for the compute environments.

\n

You also set a priority to the job queue that determines the order that the AWS Batch scheduler places jobs onto\n its associated compute environments. For example, if a compute environment is associated with more than one job\n queue, the job queue with a higher priority is given preference for scheduling jobs to that compute\n environment.

", + "smithy.api#documentation": "

Creates an Batch job queue. When you create a job queue, you associate one or more compute environments to the\n queue and assign an order of preference for the compute environments.

\n

You also set a priority to the job queue that determines the order that the Batch scheduler places jobs onto\n its associated compute environments. For example, if a compute environment is associated with more than one job\n queue, the job queue with a higher priority is given preference for scheduling jobs to that compute\n environment.

", "smithy.api#http": { "method": "POST", "uri": "/v1/createjobqueue", @@ -1220,21 +1220,21 @@ "priority": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the\n priority parameter) are evaluated first when associated with the same compute environment. Priority is\n determined in descending order. For example, a job queue with a priority value of 10 is given scheduling\n preference over a job queue with a priority value of 1. All of the compute environments must be either\n EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and\n Fargate compute environments cannot be mixed.

", + "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the\n priority parameter) are evaluated first when associated with the same compute environment. Priority is\n determined in descending order. For example, a job queue with a priority value of 10 is given scheduling\n preference over a job queue with a priority value of 1. All of the compute environments must be either\n EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and\n Fargate compute environments can't be mixed.

", "smithy.api#required": {} } }, "computeEnvironmentOrder": { "target": "com.amazonaws.batch#ComputeEnvironmentOrders", "traits": { - "smithy.api#documentation": "

The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler\n uses this parameter to determine which compute environment should run a specific job. Compute environments must be in\n the VALID state before you can associate them with a job queue. You can associate up to three compute\n environments with a job queue. All of the compute environments must be either EC2 (EC2 or\n SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute\n environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
", + "smithy.api#documentation": "

The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler\n uses this parameter to determine which compute environment should run a specific job. Compute environments must be in\n the VALID state before you can associate them with a job queue. You can associate up to three compute\n environments with a job queue. All of the compute environments must be either EC2 (EC2 or\n SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute\n environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
", "smithy.api#required": {} } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging your AWS Batch resources in AWS Batch User Guide.

" + "smithy.api#documentation": "

The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide.

" } } }, @@ -1278,7 +1278,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes an AWS Batch compute environment.

\n

Before you can delete a compute environment, you must set its state to DISABLED with the UpdateComputeEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation. Compute environments that use AWS Fargate resources must terminate all\n active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute\n environment enters an invalid state.

", + "smithy.api#documentation": "

Deletes an Batch compute environment.

\n

Before you can delete a compute environment, you must set its state to DISABLED with the UpdateComputeEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation. Compute environments that use Fargate resources must terminate all\n active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute\n environment enters an invalid state.

", "smithy.api#http": { "method": "POST", "uri": "/v1/deletecomputeenvironment", @@ -1366,7 +1366,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deregisters an AWS Batch job definition. Job definitions are permanently deleted after 180 days.

", + "smithy.api#documentation": "

Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days.

", "smithy.api#http": { "method": "POST", "uri": "/v1/deregisterjobdefinition", @@ -1499,7 +1499,7 @@ "jobDefinitions": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

A list of up to 100 job definition names or full Amazon Resource Name (ARN) entries.

" + "smithy.api#documentation": "

A list of up to 100 job definitions. Each\n entry in the list can either be an ARN of the form\n arn:aws:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision} or a short version\n using the form ${JobDefinitionName}:${Revision}.

" } }, "maxResults": { @@ -1638,7 +1638,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes a list of AWS Batch jobs.

", + "smithy.api#documentation": "

Describes a list of Batch jobs.

", "smithy.api#http": { "method": "POST", "uri": "/v1/describejobs", @@ -1685,7 +1685,7 @@ "containerPath": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The path inside the container used to expose the host device. By default, the hostPath value is\n used.

" + "smithy.api#documentation": "

The path inside the container that's used to expose the host device. By default, the hostPath value\n is used.

" } }, "permissions": { @@ -1696,7 +1696,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing a container instance host device.

\n \n

This object isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" + "smithy.api#documentation": "

An object representing a container instance host device.

\n \n

This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.

\n
" } }, "com.amazonaws.batch#DeviceCgroupPermission": { @@ -1742,7 +1742,7 @@ "iam": { "target": "com.amazonaws.batch#EFSAuthorizationConfigIAM", "traits": { - "smithy.api#documentation": "

Whether or not to use the AWS Batch execution IAM role defined in a job definition when mounting the Amazon EFS file\n system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. If this parameter\n is omitted, the default value of DISABLED is used. For more information, see Using Amazon EFS Access Points in the\n AWS Batch User Guide. EFS IAM authorization requires that TransitEncryption be\n ENABLED and that a JobRoleArn is specified.

" + "smithy.api#documentation": "

Whether or not to use the Batch job IAM role defined in a job definition when mounting the Amazon EFS file system.\n If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. If this\n parameter is omitted, the default value of DISABLED is used. For more information, see Using Amazon EFS Access Points in\n the Batch User Guide. EFS IAM authorization requires that TransitEncryption be\n ENABLED and that a JobRoleArn is specified.

" } } }, @@ -1793,19 +1793,19 @@ "rootDirectory": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is\n omitted, the root of the Amazon EFS volume will be used. Specifying / will have the same effect as omitting\n this parameter.

\n \n

If an EFS access point is specified in the authorizationConfig, the root directory parameter must\n either be omitted or set to / which will enforce the path set on the Amazon EFS access point.

\n
" + "smithy.api#documentation": "

The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is\n omitted, the root of the Amazon EFS volume is used instead. Specifying / has the same effect as omitting this\n parameter. The maximum length is 4,096 characters.

\n \n

If an EFS access point is specified in the authorizationConfig, the root directory parameter must\n either be omitted or set to /, which enforces the path set on the Amazon EFS access point.

\n
" } }, "transitEncryption": { "target": "com.amazonaws.batch#EFSTransitEncryption", "traits": { - "smithy.api#documentation": "

Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server.\n Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default\n value of DISABLED is used. For more information, see Encrypting data in transit in the\n Amazon Elastic File System User Guide.

" + "smithy.api#documentation": "

Determines whether to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server.\n Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default\n value of DISABLED is used. For more information, see Encrypting data in transit in the\n Amazon Elastic File System User Guide.

" } }, "transitEncryptionPort": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you do not specify a\n transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. For more\n information, see EFS Mount Helper in\n the Amazon Elastic File System User Guide.

" + "smithy.api#documentation": "

The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you don't specify a\n transit encryption port, it uses the port selection strategy that the Amazon EFS mount helper uses. The value must be\n between 0 and 65,535. For more information, see EFS Mount Helper in the Amazon Elastic File System User Guide.

" } }, "authorizationConfig": { @@ -1816,7 +1816,7 @@ } }, "traits": { - "smithy.api#documentation": "

This parameter is specified when you are using an Amazon Elastic File System file system for task storage. For more information,\n see Amazon EFS Volumes in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

This is used when you're using an Amazon Elastic File System file system for job storage. For more information, see Amazon EFS Volumes in the\n Batch User Guide.

" } }, "com.amazonaws.batch#Ec2Configuration": { @@ -1825,7 +1825,7 @@ "imageType": { "target": "com.amazonaws.batch#ImageType", "traits": { - "smithy.api#documentation": "

The image type to match with the instance type to select an AMI. If the imageIdOverride parameter\n isn't specified, then a recent Amazon ECS-optimized AMI (ECS_AL1) is\n used. Starting on March 31, 2021, this default will be changing to ECS_AL2 (Amazon Linux 2).

\n
\n
ECS_AL2
\n
\n

\n Amazon Linux\n 2− Default for all AWS Graviton-based instance families (for example, C6g,\n M6g, R6g, and T4g) and can be used for all non-GPU instance types.

\n
\n
ECS_AL2_NVIDIA
\n
\n

\n Amazon Linux\n 2 (GPU)−Default for all GPU instance families (for example P4 and G4) and\n can be used for all non-AWS Graviton-based instance types.

\n
\n
ECS_AL1
\n
\n

\n Amazon\n Linux−Default for all non-GPU, non-AWS Graviton instance families. Amazon Linux is reaching the\n end-of-life of standard support. For more information, see Amazon\n Linux AMI.

\n
\n
", + "smithy.api#documentation": "

The image type to match with the instance type to select an AMI. If the imageIdOverride parameter\n isn't specified, then a recent Amazon ECS-optimized AMI (ECS_AL1) is\n used. Starting on March 31, 2021, this default will be changing to ECS_AL2 (Amazon Linux 2).

\n
\n
ECS_AL2
\n
\n

\n Amazon Linux\n 2− Default for all Amazon Web Services Graviton-based instance families (for example, C6g,\n M6g, R6g, and T4g) and can be used for all non-GPU instance types.

\n
\n
ECS_AL2_NVIDIA
\n
\n

\n Amazon Linux\n 2 (GPU)−Default for all GPU instance families (for example P4 and G4) and\n can be used for all non Amazon Web Services Graviton-based instance types.

\n
\n
ECS_AL1
\n
\n

\n Amazon\n Linux−Default for all non-GPU, non Amazon Web Services Graviton instance families. Amazon Linux is reaching the\n end-of-life of standard support. For more information, see Amazon\n Linux AMI.

\n
\n
", "smithy.api#required": {} } }, @@ -1837,7 +1837,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for instances in the compute environment. If\n Ec2Configuration isn't specified, the default is currently ECS_AL1 (Amazon Linux) for\n non-GPU, non-Graviton instances. Starting on March 31, 2021, this default will be changing to ECS_AL2\n (Amazon Linux\n 2).

\n \n

This object isn't applicable to jobs running on Fargate resources.

\n
" + "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for instances in the compute environment. If\n Ec2Configuration isn't specified, the default is currently ECS_AL1 (Amazon Linux) for\n non-GPU, non AWSGraviton instances. Starting on March 31, 2021, this default will be changing to ECS_AL2\n (Amazon Linux\n 2).

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" } }, "com.amazonaws.batch#Ec2ConfigurationList": { @@ -1858,19 +1858,19 @@ "onStatusReason": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

Contains a glob pattern to match against the StatusReason returned for a job. The pattern can be up\n to 512 characters long, and can contain letters, numbers, periods (.), colons (:), and white space (including spaces\n or tabs).\n It can optionally end with an\n asterisk (*) so that only the start of the string needs to be an exact match.

" + "smithy.api#documentation": "

Contains a glob pattern to match against the StatusReason returned for a job. The pattern can be up\n to 512 characters in length. It can contain letters, numbers, periods (.), colons (:), and white space (including\n spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact\n match.

" } }, "onReason": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

Contains a glob pattern to match against the Reason returned for a job. The pattern can be up to\n 512 characters long, and can contain letters, numbers, periods (.), colons (:), and white space (including spaces and\n tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact\n match.

" + "smithy.api#documentation": "

Contains a glob pattern to match against the Reason returned for a job. The pattern can be up to\n 512 characters in length. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces\n and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact\n match.

" } }, "onExitCode": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

Contains a glob pattern to match against the decimal representation of the ExitCode returned for a\n job. The pattern can be up to 512 characters long, can contain only numbers, and can optionally end with an asterisk\n (*) so that only the start of the string needs to be an exact match.

" + "smithy.api#documentation": "

Contains a glob pattern to match against the decimal representation of the ExitCode returned for a\n job. The pattern can be up to 512 characters in length. It can contain only numbers, and can optionally end with an\n asterisk (*) so that only the start of the string needs to be an exact match.

" } }, "action": { @@ -1897,12 +1897,12 @@ "platformVersion": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The AWS Fargate platform version where the jobs are running. A platform version is specified only for jobs\n running on Fargate resources. If one isn't specified, the LATEST platform version is used by default.\n This uses a recent, approved version of the AWS Fargate platform for compute resources. For more information, see\n AWS Fargate platform\n versions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Fargate platform version where the jobs are running. A platform version is specified only for jobs\n that are running on Fargate resources. If one isn't specified, the LATEST platform version is used by\n default. This uses a recent, approved version of the Fargate platform for compute resources. For more\n information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.

" } } }, "traits": { - "smithy.api#documentation": "

The platform configuration for jobs running on Fargate resources. For jobs that run on EC2 resources, you\n shouldn't specify this parameter.

" + "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that run on EC2 resources must\n not specify this parameter.

" } }, "com.amazonaws.batch#Host": { @@ -2019,14 +2019,14 @@ "type": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The type of job definition. If the job is run on Fargate resources, then multinode isn't\n supported. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the\n AWS Batch User Guide.

", + "smithy.api#documentation": "

The type of job definition. If the job is run on Fargate resources, then multinode isn't\n supported. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the\n Batch User Guide.

", "smithy.api#required": {} } }, "parameters": { "target": "com.amazonaws.batch#ParametersMap", "traits": { - "smithy.api#documentation": "

Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are\n specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding\n parameter defaults from the job definition. For more information about specifying parameters, see Job Definition Parameters in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are\n specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding\n parameter defaults from the job definition. For more information about specifying parameters, see Job Definition Parameters in the\n Batch User Guide.

" } }, "retryStrategy": { @@ -2044,7 +2044,7 @@ "timeout": { "target": "com.amazonaws.batch#JobTimeout", "traits": { - "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout\n duration after which AWS Batch terminates your jobs if they haven't finished.

" + "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout\n duration after which Batch terminates your jobs if they haven't finished.

" } }, "nodeProperties": { @@ -2073,7 +2073,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing an AWS Batch job definition.

" + "smithy.api#documentation": "

An object representing an Batch job definition.

" } }, "com.amazonaws.batch#JobDefinitionList": { @@ -2103,7 +2103,7 @@ "jobId": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The job ID of the AWS Batch job associated with this dependency.

" + "smithy.api#documentation": "

The job ID of the Batch job associated with this dependency.

" } }, "type": { @@ -2114,7 +2114,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing an AWS Batch job dependency.

" + "smithy.api#documentation": "

An object representing an Batch job dependency.

" } }, "com.amazonaws.batch#JobDependencyList": { @@ -2156,7 +2156,7 @@ "status": { "target": "com.amazonaws.batch#JobStatus", "traits": { - "smithy.api#documentation": "

The current status for the job.

\n \n

If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status in the\n troubleshooting section of the AWS Batch User Guide.

\n
", + "smithy.api#documentation": "

The current status for the job.

\n \n

If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status in the\n troubleshooting section of the Batch User Guide.

\n
", "smithy.api#required": {} } }, @@ -2231,7 +2231,7 @@ "nodeProperties": { "target": "com.amazonaws.batch#NodeProperties", "traits": { - "smithy.api#documentation": "

An object representing the node properties of a multi-node parallel job.

\n \n

This isn't applicable to jobs running on Fargate resources.

\n
" + "smithy.api#documentation": "

An object representing the node properties of a multi-node parallel job.

\n \n

This isn't applicable to jobs that are running on Fargate resources.

\n
" } }, "arrayProperties": { @@ -2266,7 +2266,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing an AWS Batch job.

" + "smithy.api#documentation": "

An object representing an Batch job.

" } }, "com.amazonaws.batch#JobDetailList": { @@ -2328,12 +2328,12 @@ "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags applied to the job queue. For more information, see Tagging your AWS Batch resources in\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The tags applied to the job queue. For more information, see Tagging your Batch resources in\n Batch User Guide.

" } } }, "traits": { - "smithy.api#documentation": "

An object representing the details of an AWS Batch job queue.

" + "smithy.api#documentation": "

An object representing the details of an Batch job queue.

" } }, "com.amazonaws.batch#JobQueueDetailList": { @@ -2445,7 +2445,13 @@ "nodeProperties": { "target": "com.amazonaws.batch#NodePropertiesSummary", "traits": { - "smithy.api#documentation": "

The node properties for a single node in a job summary list.

\n \n

This isn't applicable to jobs running on Fargate resources.

\n
" + "smithy.api#documentation": "

The node properties for a single node in a job summary list.

\n \n

This isn't applicable to jobs that are running on Fargate resources.

\n
" + } + }, + "jobDefinition": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the job definition.

" } } }, @@ -2465,7 +2471,7 @@ "attemptDurationSeconds": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The time duration in seconds (measured from the job attempt's startedAt timestamp) after which\n AWS Batch terminates your jobs if they have not finished. The minimum value for the timeout is 60 seconds.

" + "smithy.api#documentation": "

The time duration in seconds (measured from the job attempt's startedAt timestamp) after which\n Batch terminates your jobs if they have not finished. The minimum value for the timeout is 60 seconds.

" } } }, @@ -2493,6 +2499,26 @@ "smithy.api#documentation": "

A key-value pair object.

" } }, + "com.amazonaws.batch#KeyValuesPair": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The name of the filter. Filter names are case sensitive.

" + } + }, + "values": { + "target": "com.amazonaws.batch#StringList", + "traits": { + "smithy.api#documentation": "

The filter values.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A filter name and value pair that's used to return a more specific list of results from a ListJobs\n API operation.

" + } + }, "com.amazonaws.batch#LaunchTemplateSpecification": { "type": "structure", "members": { @@ -2511,12 +2537,12 @@ "version": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The version number of the launch template, $Latest, or $Default.

\n

If the value is $Latest, the latest version of the launch template is used. If the value is\n $Default, the default version of the launch template is used.

\n \n

After the compute environment is created, the launch template version used will not be changed, even if the\n $Default or $Latest version for the launch template is updated. To use a new launch\n template version, create a new compute environment, add the new compute environment to the existing job queue,\n remove the old compute environment from the job queue, and delete the old compute environment.

\n
\n

Default: $Default.

" + "smithy.api#documentation": "

The version number of the launch template, $Latest, or $Default.

\n

If the value is $Latest, the latest version of the launch template is used. If the value is\n $Default, the default version of the launch template is used.

\n \n

After the compute environment is created, the launch template version that's used isn't changed, even if the\n $Default or $Latest version for the launch template is updated. To use a new launch\n template version, create a new compute environment, add the new compute environment to the existing job queue,\n remove the old compute environment from the job queue, and delete the old compute environment.

\n
\n

Default: $Default.

" } } }, "traits": { - "smithy.api#documentation": "

An object representing a launch template associated with a compute resource. You must specify either the launch\n template ID or launch template name in the request, but not both.

\n

If security groups are specified using both the securityGroupIds parameter of\n CreateComputeEnvironment and the launch template, the values in the securityGroupIds\n parameter of CreateComputeEnvironment will be used.

\n \n

This object isn't applicable to jobs running on Fargate resources.

\n
" + "smithy.api#documentation": "

An object representing a launch template associated with a compute resource. You must specify either the launch\n template ID or launch template name in the request, but not both.

\n

If security groups are specified using both the securityGroupIds parameter of\n CreateComputeEnvironment and the launch template, the values in the securityGroupIds\n parameter of CreateComputeEnvironment will be used.

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" } }, "com.amazonaws.batch#LinuxParameters": { @@ -2525,7 +2551,7 @@ "devices": { "target": "com.amazonaws.batch#DevicesList", "traits": { - "smithy.api#documentation": "

Any host devices to expose to the container. This parameter maps to Devices in the\n Create a container section of the Docker Remote API and the --device option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" + "smithy.api#documentation": "

Any host devices to expose to the container. This parameter maps to Devices in the\n Create a container section of the Docker Remote API and the --device option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" } }, "initProcessEnabled": { @@ -2537,25 +2563,25 @@ "sharedMemorySize": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The value for the size (in MiB) of the /dev/shm volume. This parameter maps to the\n --shm-size option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" + "smithy.api#documentation": "

The value for the size (in MiB) of the /dev/shm volume. This parameter maps to the\n --shm-size option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" } }, "tmpfs": { "target": "com.amazonaws.batch#TmpfsList", "traits": { - "smithy.api#documentation": "

The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the\n --tmpfs option to docker run.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" + "smithy.api#documentation": "

The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the\n --tmpfs option to docker run.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" } }, "maxSwap": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The total amount of swap memory (in MiB) a container can use. This parameter is translated to the\n --memory-swap option to docker run where the value is the\n sum of the container memory plus the maxSwap value. For more information, see \n --memory-swap details in the Docker documentation.

\n

If a maxSwap value of 0 is specified, the container doesn't use swap. Accepted values\n are 0 or any positive integer. If the maxSwap parameter is omitted, the container doesn't\n use the swap configuration for the container instance it is running on. A maxSwap value must be set for\n the swappiness parameter to be used.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" + "smithy.api#documentation": "

The total amount of swap memory (in MiB) a container can use. This parameter is translated to the\n --memory-swap option to docker run where the value is the\n sum of the container memory plus the maxSwap value. For more information, see \n --memory-swap details in the Docker documentation.

\n

If a maxSwap value of 0 is specified, the container doesn't use swap. Accepted values\n are 0 or any positive integer. If the maxSwap parameter is omitted, the container doesn't\n use the swap configuration for the container instance it is running on. A maxSwap value must be set for\n the swappiness parameter to be used.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" } }, "swappiness": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

This allows you to tune a container's memory swappiness behavior. A swappiness value of\n 0 causes swapping not to happen unless absolutely necessary. A swappiness value of\n 100 causes pages to be swapped very aggressively. Accepted values are whole numbers between\n 0 and 100. If the swappiness parameter isn't specified, a default value of\n 60 is used. If a value isn't specified for maxSwap then this parameter is ignored. If\n maxSwap is set to 0, the container doesn't use swap. This parameter maps to the\n --memory-swappiness option to docker run.

\n

Consider the following when you use a per-container swap configuration.

\n \n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" + "smithy.api#documentation": "

This allows you to tune a container's memory swappiness behavior. A swappiness value of\n 0 causes swapping not to happen unless absolutely necessary. A swappiness value of\n 100 causes pages to be swapped very aggressively. Accepted values are whole numbers between\n 0 and 100. If the swappiness parameter isn't specified, a default value of\n 60 is used. If a value isn't specified for maxSwap, then this parameter is ignored. If\n maxSwap is set to 0, the container doesn't use swap. This parameter maps to the\n --memory-swappiness option to docker run.

\n

Consider the following when you use a per-container swap configuration.

\n \n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" } } }, @@ -2580,7 +2606,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of AWS Batch jobs.

\n

You must specify only one of the following items:

\n \n

You can filter the results by job status with the jobStatus parameter. If you don't specify a\n status, only RUNNING jobs are returned.

", + "smithy.api#documentation": "

Returns a list of Batch jobs.

\n

You must specify only one of the following items:

\n \n

You can filter the results by job status with the jobStatus parameter. If you don't specify a\n status, only RUNNING jobs are returned.

", "smithy.api#http": { "method": "POST", "uri": "/v1/listjobs", @@ -2593,6 +2619,12 @@ } } }, + "com.amazonaws.batch#ListJobsFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.batch#KeyValuesPair" + } + }, "com.amazonaws.batch#ListJobsRequest": { "type": "structure", "members": { @@ -2617,7 +2649,7 @@ "jobStatus": { "target": "com.amazonaws.batch#JobStatus", "traits": { - "smithy.api#documentation": "

The job status used to filter jobs in the specified queue. If you don't specify a status, only\n RUNNING jobs are returned.

" + "smithy.api#documentation": "

The job status used to filter jobs in the specified queue. If the filters parameter is specified,\n the jobStatus parameter is ignored and jobs with any status are returned. If you don't specify a status,\n only RUNNING jobs are returned.

" } }, "maxResults": { @@ -2631,6 +2663,12 @@ "traits": { "smithy.api#documentation": "

The nextToken value returned from a previous paginated ListJobs request where\n maxResults was used and the results exceeded the value of that parameter. Pagination continues from the\n end of the previous results that returned the nextToken value. This value is null when\n there are no more results to return.

\n \n

This token should be treated as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } + }, + "filters": { + "target": "com.amazonaws.batch#ListJobsFilterList", + "traits": { + "smithy.api#documentation": "

The filter to apply to the query. Only one filter can be used at a time. When the filter is used,\n jobStatus is ignored. The filter doesn't apply to child jobs in an array or multi-node parallel (MNP)\n jobs. The results are sorted by the createdAt field, with the most recent jobs being first.

\n
\n
JOB_NAME
\n
\n

The value of the filter is a case-insensitive match for the job name. If the value ends with an asterisk (*),\n the filter will match any job name that begins with the string before the '*'. This corresponds to the\n jobName value. For example, test1 matches both Test1 and\n test1, and test1* matches both test1 and Test10. When the\n JOB_NAME filter is used, the results are grouped by the job name and version.

\n
\n
JOB_DEFINITION
\n
\n

The value for the filter is the name or Amazon Resource Name (ARN) of the job definition. This corresponds to the\n jobDefinition value. The value is case sensitive. When the value for the filter is the job\n definition name, the results include all the jobs that used any revision of that job definition name. If the value\n ends with an asterisk (*), the filter will match any job definition name that begins with the string before the\n '*'. For example, jd1 matches only jd1, and jd1* matches both\n jd1 and jd1A. The version of the job definition that's used doesn't affect the sort\n order. When the JOB_DEFINITION filter is used and the ARN is used (which is in the form\n arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}), the\n results include jobs that used the specified revision of the job definition. Asterisk (*) is not supported when\n the ARN is used.

\n
\n
BEFORE_CREATED_AT
\n
\n

The value for the filter is the time that's before the job was created. This corresponds to the\n createdAt value. The value is a string representation of the number of seconds since 00:00:00 UTC\n (midnight) on January 1, 1970.

\n
\n
AFTER_CREATED_AT
\n
\n

The value for the filter is the time that's after the job was created. This corresponds to the\n createdAt value. The value is a string representation of the number of seconds since 00:00:00 UTC\n (midnight) on January 1, 1970.

\n
\n
" + } } }, "traits": { @@ -2672,7 +2710,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the tags for an AWS Batch resource. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

Lists the tags for an Batch resource. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#http": { "method": "GET", "uri": "/v1/tags/{resourceArn}", @@ -2686,7 +2724,7 @@ "resourceArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the resource that tags are listed for. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the resource that tags are listed for. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2710,7 +2748,7 @@ "logDriver": { "target": "com.amazonaws.batch#LogDriver", "traits": { - "smithy.api#documentation": "

The log driver to use for the container. The valid values listed for this parameter are log drivers that the\n Amazon ECS container agent can communicate with by default.

\n

The supported log drivers are awslogs, fluentd, gelf,\n json-file, journald, logentries, syslog, and\n splunk.

\n \n

Jobs running on Fargate resources are restricted to the awslogs and splunk log\n drivers.

\n
\n
\n
awslogs
\n
\n

Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs Log Driver in the\n AWS Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation.

\n
\n
fluentd
\n
\n

Specifies the Fluentd logging driver. For more information, including usage and options, see Fluentd logging driver in the Docker\n documentation.

\n
\n
gelf
\n
\n

Specifies the Graylog Extended Format (GELF) logging driver. For more information, including usage and\n options, see Graylog Extended Format logging\n driver in the Docker documentation.

\n
\n
journald
\n
\n

Specifies the journald logging driver. For more information, including usage and options, see Journald logging driver in the Docker\n documentation.

\n
\n
json-file
\n
\n

Specifies the JSON file logging driver. For more information, including usage and options, see JSON File logging driver in the Docker\n documentation.

\n
\n
splunk
\n
\n

Specifies the Splunk logging driver. For more information, including usage and options, see Splunk logging driver in the Docker\n documentation.

\n
\n
syslog
\n
\n

Specifies the syslog logging driver. For more information, including usage and options, see Syslog logging driver in the Docker\n documentation.

\n
\n
\n \n

If you have a custom driver that's not listed earlier that you want to work with the Amazon ECS container agent, you\n can fork the Amazon ECS container agent project that's available on\n GitHub and customize it to work with that driver. We encourage you to submit pull requests for changes that\n you want to have included. However, Amazon Web Services doesn't currently support running modified copies of this\n software.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

", + "smithy.api#documentation": "

The log driver to use for the container. The valid values listed for this parameter are log drivers that the\n Amazon ECS container agent can communicate with by default.

\n

The supported log drivers are awslogs, fluentd, gelf,\n json-file, journald, logentries, syslog, and\n splunk.

\n \n

Jobs that are running on Fargate resources are restricted to the awslogs and splunk\n log drivers.

\n
\n
\n
awslogs
\n
\n

Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs Log Driver in the\n Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation.

\n
\n
fluentd
\n
\n

Specifies the Fluentd logging driver. For more information, including usage and options, see Fluentd logging driver in the Docker\n documentation.

\n
\n
gelf
\n
\n

Specifies the Graylog Extended Format (GELF) logging driver. For more information, including usage and\n options, see Graylog Extended Format logging\n driver in the Docker documentation.

\n
\n
journald
\n
\n

Specifies the journald logging driver. For more information, including usage and options, see Journald logging driver in the Docker\n documentation.

\n
\n
json-file
\n
\n

Specifies the JSON file logging driver. For more information, including usage and options, see JSON File logging driver in the Docker\n documentation.

\n
\n
splunk
\n
\n

Specifies the Splunk logging driver. For more information, including usage and options, see Splunk logging driver in the Docker\n documentation.

\n
\n
syslog
\n
\n

Specifies the syslog logging driver. For more information, including usage and options, see Syslog logging driver in the Docker\n documentation.

\n
\n
\n \n

If you have a custom driver that's not listed earlier that you want to work with the Amazon ECS container agent, you\n can fork the Amazon ECS container agent project that's available on\n GitHub and customize it to work with that driver. We encourage you to submit pull requests for changes that\n you want to have included. However, Amazon Web Services doesn't currently support running modified copies of this\n software.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log into your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

", "smithy.api#required": {} } }, @@ -2723,7 +2761,7 @@ "secretOptions": { "target": "com.amazonaws.batch#SecretList", "traits": { - "smithy.api#documentation": "

The secrets to pass to the log configuration. For more information, see Specifying Sensitive Data in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The secrets to pass to the log configuration. For more information, see Specifying Sensitive Data in the\n Batch User Guide.

" } } }, @@ -2816,12 +2854,12 @@ "assignPublicIp": { "target": "com.amazonaws.batch#AssignPublicIp", "traits": { - "smithy.api#documentation": "

Indicates whether the job should have a public IP address. For a job running on Fargate resources in a private\n subnet to send outbound traffic to the internet (for example, in order to pull container images), the private subnet\n requires a NAT gateway be attached to route requests to the internet. For more information, see Amazon ECS task networking. The\n default value is \"DISABLED\".

" + "smithy.api#documentation": "

Indicates whether the job should have a public IP address. For a job that is running on Fargate resources in a\n private subnet to send outbound traffic to the internet (for example, to pull container images), the private subnet\n requires a NAT gateway be attached to route requests to the internet. For more information, see Amazon ECS task networking. The\n default value is \"DISABLED\".

" } } }, "traits": { - "smithy.api#documentation": "

The network configuration for jobs running on Fargate resources. Jobs running on EC2 resources must not\n specify this parameter.

" + "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2\n resources must not specify this parameter.

" } }, "com.amazonaws.batch#NetworkInterface": { @@ -2893,7 +2931,7 @@ } }, "traits": { - "smithy.api#documentation": "

Object representing any node overrides to a job definition that's used in a SubmitJob API\n operation.

\n \n

This isn't applicable to jobs running on Fargate resources and shouldn't be provided; use\n containerOverrides instead.

\n
" + "smithy.api#documentation": "

Object representing any node overrides to a job definition that's used in a SubmitJob API\n operation.

\n \n

This isn't applicable to jobs that are running on Fargate resources and shouldn't be provided; use\n containerOverrides instead.

\n
" } }, "com.amazonaws.batch#NodeProperties": { @@ -3052,7 +3090,7 @@ } ], "traits": { - "smithy.api#documentation": "

Registers an AWS Batch job definition.

", + "smithy.api#documentation": "

Registers an Batch job definition.

", "smithy.api#http": { "method": "POST", "uri": "/v1/registerjobdefinition", @@ -3073,7 +3111,7 @@ "type": { "target": "com.amazonaws.batch#JobDefinitionType", "traits": { - "smithy.api#documentation": "

The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the\n AWS Batch User Guide.

\n \n

If the job is run on Fargate resources, then multinode isn't supported.

\n
", + "smithy.api#documentation": "

The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the\n Batch User Guide.

\n \n

If the job is run on Fargate resources, then multinode isn't supported.

\n
", "smithy.api#required": {} } }, @@ -3092,7 +3130,7 @@ "nodeProperties": { "target": "com.amazonaws.batch#NodeProperties", "traits": { - "smithy.api#documentation": "

An object with various properties specific to multi-node parallel jobs. If you specify node properties for a\n job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel Jobs in the\n AWS Batch User Guide. If the job definition's type parameter is\n container, then you must specify either containerProperties or\n nodeProperties.

\n \n

If the job runs on Fargate resources, then you must not specify nodeProperties; use\n containerProperties instead.

\n
" + "smithy.api#documentation": "

An object with various properties specific to multi-node parallel jobs. If you specify node properties for a\n job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel Jobs in the\n Batch User Guide. If the job definition's type parameter is\n container, then you must specify either containerProperties or\n nodeProperties.

\n \n

If the job runs on Fargate resources, then you must not specify nodeProperties; use\n containerProperties instead.

\n
" } }, "retryStrategy": { @@ -3110,13 +3148,13 @@ "timeout": { "target": "com.amazonaws.batch#JobTimeout", "traits": { - "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates\n your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for\n the timeout is 60 seconds. Any timeout configuration that's specified during a SubmitJob operation\n overrides the timeout configuration defined here. For more information, see Job Timeouts in the AWS Batch User Guide.

" + "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates\n your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for\n the timeout is 60 seconds. Any timeout configuration that's specified during a SubmitJob operation\n overrides the timeout configuration defined here. For more information, see Job Timeouts in the Batch User Guide.

" } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the job definition to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS Batch User Guide.

" + "smithy.api#documentation": "

The tags that you apply to the job definition to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Batch User Guide.

" } }, "platformCapabilities": { @@ -3162,7 +3200,7 @@ "value": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The quantity of the specified resource to reserve for the container. The values vary based on the\n type specified.

\n
\n
type=\"GPU\"
\n
\n

The number of physical GPUs to reserve for the container. The number of GPUs reserved for all containers in a\n job shouldn't exceed the number of available GPUs on the compute resource that the job is launched on.

\n \n

GPUs are not available for jobs running on Fargate resources.

\n
\n
\n
type=\"MEMORY\"
\n
\n

The memory hard limit (in MiB) present to the container. This parameter is supported for jobs running on EC2\n resources. If your container attempts to exceed the memory specified, the container is terminated. This parameter\n maps to Memory in the Create a container section of the Docker Remote API and the\n --memory option to docker run. You must specify at least\n 4 MiB of memory for a job. This is required but can be specified in several places for multi-node parallel (MNP)\n jobs. It must be specified for each node at least once. This parameter maps to Memory in the\n Create a container section of the Docker Remote API and the --memory option to docker run.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for\n a particular instance type, see Memory\n Management in the AWS Batch User Guide.

\n
\n

For jobs running on Fargate resources, then value is the hard limit (in MiB), and must match\n one of the supported values and the VCPU values must be one of the values supported for that memory\n value.

\n
\n
value = 512
\n
\n

\n VCPU = 0.25

\n
\n
value = 1024
\n
\n

\n VCPU = 0.25 or 0.5

\n
\n
value = 2048
\n
\n

\n VCPU = 0.25, 0.5, or 1

\n
\n
value = 3072
\n
\n

\n VCPU = 0.5, or 1

\n
\n
value = 4096
\n
\n

\n VCPU = 0.5, 1, or 2

\n
\n
value = 5120, 6144, or 7168
\n
\n

\n VCPU = 1 or 2

\n
\n
value = 8192
\n
\n

\n VCPU = 1, 2, or 4

\n
\n
value = 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384
\n
\n

\n VCPU = 2 or 4

\n
\n
value = 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720
\n
\n

\n VCPU = 4

\n
\n
\n
\n
type=\"VCPU\"
\n
\n

The number of vCPUs reserved for the container. This parameter maps to CpuShares in the\n Create a container section of the Docker Remote API and the --cpu-shares option to\n docker run. Each vCPU is equivalent to 1,024 CPU shares. For EC2\n resources, you must specify at least one vCPU. This is required but can be specified in several places; it must be\n specified for each node at least once.

\n

For jobs running on Fargate resources, then value must match one of the supported values and\n the MEMORY values must be one of the values supported for that VCPU value. The supported values are\n 0.25, 0.5, 1, 2, and 4

\n
\n
value = 0.25
\n
\n

\n MEMORY = 512, 1024, or 2048

\n
\n
value = 0.5
\n
\n

\n MEMORY = 1024, 2048, 3072, or 4096

\n
\n
value = 1
\n
\n

\n MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192

\n
\n
value = 2
\n
\n

\n MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384

\n
\n
value = 4
\n
\n

\n MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456,\n 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720

\n
\n
\n
\n
", + "smithy.api#documentation": "

The quantity of the specified resource to reserve for the container. The values vary based on the\n type specified.

\n
\n
type=\"GPU\"
\n
\n

The number of physical GPUs to reserve for the container. The number of GPUs reserved for all containers in a\n job shouldn't exceed the number of available GPUs on the compute resource that the job is launched on.

\n \n

GPUs are not available for jobs that are running on Fargate resources.

\n
\n
\n
type=\"MEMORY\"
\n
\n

The memory hard limit (in MiB) present to the container. This parameter is supported for jobs that are\n running on EC2 resources. If your container attempts to exceed the memory specified, the container is terminated.\n This parameter maps to Memory in the Create a container section of the\n Docker Remote API and the --memory option to docker run.\n You must specify at least 4 MiB of memory for a job. This is required but can be specified in several places for\n multi-node parallel (MNP) jobs. It must be specified for each node at least once. This parameter maps to\n Memory in the Create a container section of the Docker Remote API and the\n --memory option to docker run.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for\n a particular instance type, see Memory\n Management in the Batch User Guide.

\n
\n

For jobs that are running on Fargate resources, then value is the hard limit (in MiB), and\n must match one of the supported values and the VCPU values must be one of the values supported for\n that memory value.

\n
\n
value = 512
\n
\n

\n VCPU = 0.25

\n
\n
value = 1024
\n
\n

\n VCPU = 0.25 or 0.5

\n
\n
value = 2048
\n
\n

\n VCPU = 0.25, 0.5, or 1

\n
\n
value = 3072
\n
\n

\n VCPU = 0.5, or 1

\n
\n
value = 4096
\n
\n

\n VCPU = 0.5, 1, or 2

\n
\n
value = 5120, 6144, or 7168
\n
\n

\n VCPU = 1 or 2

\n
\n
value = 8192
\n
\n

\n VCPU = 1, 2, or 4

\n
\n
value = 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384
\n
\n

\n VCPU = 2 or 4

\n
\n
value = 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720
\n
\n

\n VCPU = 4

\n
\n
\n
\n
type=\"VCPU\"
\n
\n

The number of vCPUs reserved for the container. This parameter maps to CpuShares in the\n Create a container section of the Docker Remote API and the --cpu-shares option to\n docker run. Each vCPU is equivalent to 1,024 CPU shares. For EC2\n resources, you must specify at least one vCPU. This is required but can be specified in several places; it must be\n specified for each node at least once.

\n

For jobs that are running on Fargate resources, then value must match one of the supported\n values and the MEMORY values must be one of the values supported for that VCPU value. The supported\n values are 0.25, 0.5, 1, 2, and 4

\n
\n
value = 0.25
\n
\n

\n MEMORY = 512, 1024, or 2048

\n
\n
value = 0.5
\n
\n

\n MEMORY = 1024, 2048, 3072, or 4096

\n
\n
value = 1
\n
\n

\n MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192

\n
\n
value = 2
\n
\n

\n MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384

\n
\n
value = 4
\n
\n

\n MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456,\n 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720

\n
\n
\n
\n
", "smithy.api#required": {} } }, @@ -3235,7 +3273,7 @@ } }, "traits": { - "smithy.api#documentation": "

The retry strategy associated with a job. For more information, see Automated job retries in the AWS Batch User Guide.

" + "smithy.api#documentation": "

The retry strategy associated with a job. For more information, see Automated job retries in the Batch User Guide.

" } }, "com.amazonaws.batch#Secret": { @@ -3251,13 +3289,13 @@ "valueFrom": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN of the AWS Secrets Manager secret or the\n full ARN of the parameter in the AWS Systems Manager Parameter Store.

\n \n

If the AWS Systems Manager Parameter Store parameter exists in the same Region as the job you're launching, then you can use\n either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must\n be specified.

\n
", + "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the\n full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.

\n \n

If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Region as the job you're launching, then you can use\n either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must\n be specified.

\n
", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

An object representing the secret to expose to your container. Secrets can be exposed to a container in the\n following ways:

\n \n

For more information, see Specifying\n sensitive data in the AWS Batch User Guide.

" + "smithy.api#documentation": "

An object representing the secret to expose to your container. Secrets can be exposed to a container in the\n following ways:

\n \n

For more information, see Specifying\n sensitive data in the Batch User Guide.

" } }, "com.amazonaws.batch#SecretList": { @@ -3305,7 +3343,7 @@ } ], "traits": { - "smithy.api#documentation": "

Submits an AWS Batch job from a job definition. Parameters that are specified during SubmitJob\n override parameters defined in the job definition. vCPU and memory requirements that are specified in the\n ResourceRequirements objects in the job definition are the exception. They can't be overridden this way\n using the memory and vcpus parameters. Rather, you must specify updates to job definition\n parameters in a ResourceRequirements object that's included in the containerOverrides\n parameter.

\n \n

Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14\n days, Fargate resources might become unavailable and job might be terminated.

\n
", + "smithy.api#documentation": "

Submits an Batch job from a job definition. Parameters that are specified during SubmitJob\n override parameters defined in the job definition. vCPU and memory requirements that are specified in the\n ResourceRequirements objects in the job definition are the exception. They can't be overridden this way\n using the memory and vcpus parameters. Rather, you must specify updates to job definition\n parameters in a ResourceRequirements object that's included in the containerOverrides\n parameter.

\n \n

Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14\n days, Fargate resources might become unavailable and job might be terminated.

\n
", "smithy.api#http": { "method": "POST", "uri": "/v1/submitjob", @@ -3333,7 +3371,7 @@ "arrayProperties": { "target": "com.amazonaws.batch#ArrayProperties", "traits": { - "smithy.api#documentation": "

The array properties for the submitted job, such as the size of the array. The array size can be between 2 and\n 10,000. If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the\n AWS Batch User Guide.

" + "smithy.api#documentation": "

The array properties for the submitted job, such as the size of the array. The array size can be between 2 and\n 10,000. If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the\n Batch User Guide.

" } }, "dependsOn": { @@ -3364,7 +3402,7 @@ "nodeOverrides": { "target": "com.amazonaws.batch#NodeOverrides", "traits": { - "smithy.api#documentation": "

A list of node overrides in JSON format that specify the node range to target and the container overrides for\n that node range.

\n \n

This parameter isn't applicable to jobs running on Fargate resources; use containerOverrides\n instead.

\n
" + "smithy.api#documentation": "

A list of node overrides in JSON format that specify the node range to target and the container overrides for\n that node range.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources; use\n containerOverrides instead.

\n
" } }, "retryStrategy": { @@ -3382,13 +3420,13 @@ "timeout": { "target": "com.amazonaws.batch#JobTimeout", "traits": { - "smithy.api#documentation": "

The timeout configuration for this SubmitJob operation. You can specify a timeout duration\n after which AWS Batch terminates your jobs if they haven't finished. If a job is terminated due to a timeout, it isn't\n retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration\n specified in the job definition. For array jobs, child jobs have the same timeout configuration as the parent job.\n For more information, see Job\n Timeouts in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The timeout configuration for this SubmitJob operation. You can specify a timeout duration\n after which Batch terminates your jobs if they haven't finished. If a job is terminated due to a timeout, it isn't\n retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration\n specified in the job definition. For array jobs, child jobs have the same timeout configuration as the parent job.\n For more information, see Job\n Timeouts in the Amazon Elastic Container Service Developer Guide.

" } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the job request to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging AWS Resources in AWS General\n Reference.

" + "smithy.api#documentation": "

The tags that you apply to the job request to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

" } } }, @@ -3459,7 +3497,7 @@ } ], "traits": { - "smithy.api#documentation": "

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a\n resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags\n associated with that resource are deleted as well. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a\n resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that\n are associated with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#http": { "method": "POST", "uri": "/v1/tags/{resourceArn}", @@ -3473,7 +3511,7 @@ "resourceArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource that tags are added to. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource that tags are added to. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3481,7 +3519,7 @@ "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the resource to help you categorize and organize your resources. Each tag consists of\n a key and an optional value. For more information, see Tagging AWS Resources in AWS General\n Reference.

", + "smithy.api#documentation": "

The tags that you apply to the resource to help you categorize and organize your resources. Each tag consists of\n a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

", "smithy.api#required": {} } } @@ -3555,14 +3593,14 @@ "jobId": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The AWS Batch job ID of the job to terminate.

", + "smithy.api#documentation": "

The Batch job ID of the job to terminate.

", "smithy.api#required": {} } }, "reason": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity\n logs.

", + "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the Batch activity\n logs.

", "smithy.api#required": {} } } @@ -3600,7 +3638,7 @@ } }, "traits": { - "smithy.api#documentation": "

The container path, mount options, and size of the tmpfs mount.

\n \n

This object isn't applicable to jobs running on Fargate resources.

\n
" + "smithy.api#documentation": "

The container path, mount options, and size of the tmpfs mount.

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" } }, "com.amazonaws.batch#TmpfsList": { @@ -3635,7 +3673,7 @@ } }, "traits": { - "smithy.api#documentation": "

The ulimit settings to pass to the container.

\n \n

This object isn't applicable to jobs running on Fargate resources.

\n
" + "smithy.api#documentation": "

The ulimit settings to pass to the container.

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" } }, "com.amazonaws.batch#Ulimits": { @@ -3661,7 +3699,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes specified tags from an AWS Batch resource.

", + "smithy.api#documentation": "

Deletes specified tags from an Batch resource.

", "smithy.api#http": { "method": "DELETE", "uri": "/v1/tags/{resourceArn}", @@ -3675,7 +3713,7 @@ "resourceArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource from which to delete tags. AWS Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource from which to delete tags. Batch resources that support tags are compute environments, jobs, job definitions, and job\n queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3711,7 +3749,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates an AWS Batch compute environment.

", + "smithy.api#documentation": "

Updates an Batch compute environment.

", "smithy.api#http": { "method": "POST", "uri": "/v1/updatecomputeenvironment", @@ -3732,19 +3770,19 @@ "state": { "target": "com.amazonaws.batch#CEState", "traits": { - "smithy.api#documentation": "

The state of the compute environment. Compute environments in the ENABLED state can accept jobs\n from a queue and scale in or out automatically based on the workload demand of its associated queues.

\n

If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" + "smithy.api#documentation": "

The state of the compute environment. Compute environments in the ENABLED state can accept jobs\n from a queue and scale in or out automatically based on the workload demand of its associated queues.

\n

If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated\n job queue on the compute resources within the environment. If the compute environment is managed, then it can scale\n its instances out or in automatically, based on the job queue demand.

\n

If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the\n environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed\n compute environments in the DISABLED state don't scale out. However, they scale in to\n minvCpus value after instances become idle.

" } }, "computeResources": { "target": "com.amazonaws.batch#ComputeResourceUpdate", "traits": { - "smithy.api#documentation": "

Details of the compute resources managed by the compute environment. Required for a managed compute environment.\n For more information, see Compute\n Environments in the AWS Batch User Guide.

" + "smithy.api#documentation": "

Details of the compute resources managed by the compute environment. Required for a managed compute environment.\n For more information, see Compute\n Environments in the Batch User Guide.

" } }, "serviceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For\n more information, see AWS Batch service IAM\n role in the AWS Batch User Guide.

\n \n

If the compute environment has a service-linked role, it cannot be changed to use a regular IAM role. If the\n compute environment has a regular IAM role, it cannot be changed to use a service-linked role.

\n
\n \n

If your specified role has a path other than /, then you must either specify the full role ARN\n (this is recommended) or prefix the role name with the path.

\n \n

Depending on how you created your AWS Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" + "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf.\n For more information, see Batch service IAM\n role in the Batch User Guide.

\n \n

If the compute environment has a service-linked role, it can't be changed to use a regular IAM role.\n Likewise, if the compute environment has a regular IAM role, it can't be changed to use a service-linked\n role.

\n
\n

If your specified role has a path other than /, then you must either specify the full role ARN\n (this is recommended) or prefix the role name with the path.

\n \n

Depending on how you created your Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" } } }, @@ -3819,7 +3857,7 @@ "computeEnvironmentOrder": { "target": "com.amazonaws.batch#ComputeEnvironmentOrders", "traits": { - "smithy.api#documentation": "

Details the set of compute environments mapped to a job queue and their order relative to each other. This is\n one of the parameters used by the job scheduler to determine which compute environment should run a given job.\n Compute environments must be in the VALID state before you can associate them with a job queue. All of\n the compute environments must be either EC2 (EC2 or SPOT) or Fargate\n (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
" + "smithy.api#documentation": "

Details the set of compute environments mapped to a job queue and their order relative to each other. This is\n one of the parameters used by the job scheduler to determine which compute environment should run a given job.\n Compute environments must be in the VALID state before you can associate them with a job queue. All of\n the compute environments must be either EC2 (EC2 or SPOT) or Fargate\n (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
" } } }, @@ -3850,7 +3888,7 @@ "host": { "target": "com.amazonaws.batch#Host", "traits": { - "smithy.api#documentation": "

The contents of the host parameter determine whether your data volume persists on the host\n container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path\n for your data volume. However, the data isn't guaranteed to persist after the containers associated with it stop\n running.

\n \n

This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided.

\n
" + "smithy.api#documentation": "

The contents of the host parameter determine whether your data volume persists on the host\n container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path\n for your data volume. However, the data isn't guaranteed to persist after the containers associated with it stop\n running.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be\n provided.

\n
" } }, "name": { @@ -3862,7 +3900,7 @@ "efsVolumeConfiguration": { "target": "com.amazonaws.batch#EFSVolumeConfiguration", "traits": { - "smithy.api#documentation": "

This parameter is specified when you are using an Amazon Elastic File System file system for job storage. Jobs running on\n Fargate resources must specify a platformVersion of at least 1.4.0.

" + "smithy.api#documentation": "

This parameter is specified when you are using an Amazon Elastic File System file system for job storage. Jobs that are running\n on Fargate resources must specify a platformVersion of at least 1.4.0.

" } } }, diff --git a/codegen/sdk-codegen/aws-models/chime.2018-05-01.json b/codegen/sdk-codegen/aws-models/chime.2018-05-01.json index 52fa923ee04..d4e3e5869e0 100644 --- a/codegen/sdk-codegen/aws-models/chime.2018-05-01.json +++ b/codegen/sdk-codegen/aws-models/chime.2018-05-01.json @@ -93,6 +93,12 @@ "smithy.api#documentation": "

Supported licenses for the Amazon Chime account.

" } }, + "AccountStatus": { + "target": "com.amazonaws.chime#AccountStatus", + "traits": { + "smithy.api#documentation": "

The status of the account.

" + } + }, "SigninDelegateGroups": { "target": "com.amazonaws.chime#SigninDelegateGroupList", "traits": { @@ -140,6 +146,21 @@ "smithy.api#documentation": "

Settings related to the Amazon Chime account. This includes settings that start or stop\n remote control of shared screens, or start or stop the dial-out option in the Amazon Chime web application. For more information about these settings, see \n Use the Policies Page in the Amazon Chime Administration Guide.

" } }, + "com.amazonaws.chime#AccountStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Suspended", + "name": "Suspended" + }, + { + "value": "Active", + "name": "Active" + } + ] + } + }, "com.amazonaws.chime#AccountType": { "type": "string", "traits": { @@ -7097,6 +7118,86 @@ "smithy.api#documentation": "

The emergency calling configuration details associated with an Amazon Chime Voice Connector.

" } }, + "com.amazonaws.chime#EngineTranscribeMedicalSettings": { + "type": "structure", + "members": { + "LanguageCode": { + "target": "com.amazonaws.chime#TranscribeMedicalLanguageCode", + "traits": { + "smithy.api#documentation": "

The language code specified for the Amazon Transcribe Medical engine.

", + "smithy.api#required": {} + } + }, + "Specialty": { + "target": "com.amazonaws.chime#TranscribeMedicalSpecialty", + "traits": { + "smithy.api#documentation": "

The specialty specified for the Amazon Transcribe Medical engine.

", + "smithy.api#required": {} + } + }, + "Type": { + "target": "com.amazonaws.chime#TranscribeMedicalType", + "traits": { + "smithy.api#documentation": "

The type of transcription.

", + "smithy.api#required": {} + } + }, + "VocabularyName": { + "target": "com.amazonaws.chime#String", + "traits": { + "smithy.api#documentation": "

The name of the vocabulary passed to Amazon Transcribe Medical.

" + } + }, + "Region": { + "target": "com.amazonaws.chime#TranscribeMedicalRegion", + "traits": { + "smithy.api#documentation": "

The AWS Region passed to Amazon Transcribe Medical. If you don't specify a Region, Amazon Chime uses the Region closest to the meeting's Region.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Settings specific to the Amazon Transcribe Medical engine.

" + } + }, + "com.amazonaws.chime#EngineTranscribeSettings": { + "type": "structure", + "members": { + "LanguageCode": { + "target": "com.amazonaws.chime#TranscribeLanguageCode", + "traits": { + "smithy.api#documentation": "

The language code specified for the Amazon Transcribe engine.

", + "smithy.api#required": {} + } + }, + "VocabularyFilterMethod": { + "target": "com.amazonaws.chime#TranscribeVocabularyFilterMethod", + "traits": { + "smithy.api#documentation": "

The filtering method passed to Amazon Transcribe.

" + } + }, + "VocabularyFilterName": { + "target": "com.amazonaws.chime#String", + "traits": { + "smithy.api#documentation": "

The name of the vocabulary filter passed to Amazon Transcribe.

" + } + }, + "VocabularyName": { + "target": "com.amazonaws.chime#String", + "traits": { + "smithy.api#documentation": "

The name of the vocabulary passed to Amazon Transcribe.

" + } + }, + "Region": { + "target": "com.amazonaws.chime#TranscribeRegion", + "traits": { + "smithy.api#documentation": "

The AWS Region passed to Amazon Transcribe. If you don't specify a Region, Amazon Chime uses the Region closest to the meeting's Region.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Settings specific to the Amazon Transcribe engine.

" + } + }, "com.amazonaws.chime#ErrorCode": { "type": "string", "traits": { @@ -12485,12 +12586,12 @@ "EventIngestionUrl": { "target": "com.amazonaws.chime#UriType", "traits": { - "smithy.api#documentation": "

The event ingestion URL.

" + "smithy.api#documentation": "

The URL of the S3 bucket used to store the captured media.

" } } }, "traits": { - "smithy.api#documentation": "

A set of endpoints used by clients to connect to the media service group for a Amazon Chime SDK meeting.

" + "smithy.api#documentation": "

A set of endpoints used by clients to connect to the media service group for an Amazon Chime SDK meeting.

" } }, "com.amazonaws.chime#Meeting": { @@ -15764,6 +15865,136 @@ ] } }, + "com.amazonaws.chime#StartMeetingTranscription": { + "type": "operation", + "input": { + "target": "com.amazonaws.chime#StartMeetingTranscriptionRequest" + }, + "output": { + "target": "com.amazonaws.chime#StartMeetingTranscriptionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.chime#BadRequestException" + }, + { + "target": "com.amazonaws.chime#ForbiddenException" + }, + { + "target": "com.amazonaws.chime#NotFoundException" + }, + { + "target": "com.amazonaws.chime#ResourceLimitExceededException" + }, + { + "target": "com.amazonaws.chime#ServiceFailureException" + }, + { + "target": "com.amazonaws.chime#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.chime#ThrottledClientException" + }, + { + "target": "com.amazonaws.chime#UnauthorizedClientException" + }, + { + "target": "com.amazonaws.chime#UnprocessableEntityException" + } + ], + "traits": { + "smithy.api#documentation": "

Start transcription for the specified meetingId.

", + "smithy.api#http": { + "method": "POST", + "uri": "/meetings/{MeetingId}/transcription?operation=start", + "code": 200 + } + } + }, + "com.amazonaws.chime#StartMeetingTranscriptionRequest": { + "type": "structure", + "members": { + "MeetingId": { + "target": "com.amazonaws.chime#GuidString", + "traits": { + "smithy.api#documentation": "

The unique ID of the meeting being transcribed.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "TranscriptionConfiguration": { + "target": "com.amazonaws.chime#TranscriptionConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration for the current transcription operation. Must contain EngineTranscribeSettings or EngineTranscribeMedicalSettings.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.chime#StartMeetingTranscriptionResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.chime#StopMeetingTranscription": { + "type": "operation", + "input": { + "target": "com.amazonaws.chime#StopMeetingTranscriptionRequest" + }, + "output": { + "target": "com.amazonaws.chime#StopMeetingTranscriptionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.chime#BadRequestException" + }, + { + "target": "com.amazonaws.chime#ForbiddenException" + }, + { + "target": "com.amazonaws.chime#NotFoundException" + }, + { + "target": "com.amazonaws.chime#ServiceFailureException" + }, + { + "target": "com.amazonaws.chime#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.chime#ThrottledClientException" + }, + { + "target": "com.amazonaws.chime#UnauthorizedClientException" + }, + { + "target": "com.amazonaws.chime#UnprocessableEntityException" + } + ], + "traits": { + "smithy.api#documentation": "

Stops transcription for the specified meetingId.

", + "smithy.api#http": { + "method": "POST", + "uri": "/meetings/{MeetingId}/transcription?operation=stop", + "code": 200 + } + } + }, + "com.amazonaws.chime#StopMeetingTranscriptionRequest": { + "type": "structure", + "members": { + "MeetingId": { + "target": "com.amazonaws.chime#GuidString", + "traits": { + "smithy.api#documentation": "

The unique ID of the meeting for which you stop transcription.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.chime#StopMeetingTranscriptionResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.chime#StreamingConfiguration": { "type": "structure", "members": { @@ -16199,6 +16430,239 @@ "smithy.api#pattern": "^8(00|33|44|55|66|77|88)$" } }, + "com.amazonaws.chime#TranscribeLanguageCode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "en-US", + "name": "EN_US" + }, + { + "value": "en-GB", + "name": "EN_GB" + }, + { + "value": "es-US", + "name": "ES_US" + }, + { + "value": "fr-CA", + "name": "FR_CA" + }, + { + "value": "fr-FR", + "name": "FR_FR" + }, + { + "value": "en-AU", + "name": "EN_AU" + }, + { + "value": "it-IT", + "name": "IT_IT" + }, + { + "value": "de-DE", + "name": "DE_DE" + }, + { + "value": "pt-BR", + "name": "PT_BR" + }, + { + "value": "ja-JP", + "name": "JA_JP" + }, + { + "value": "ko-KR", + "name": "KO_KR" + }, + { + "value": "zh-CN", + "name": "ZH_CN" + } + ] + } + }, + "com.amazonaws.chime#TranscribeMedicalLanguageCode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "en-US", + "name": "EN_US" + } + ] + } + }, + "com.amazonaws.chime#TranscribeMedicalRegion": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "us-east-1", + "name": "US_EAST_1" + }, + { + "value": "us-east-2", + "name": "US_EAST_2" + }, + { + "value": "us-west-2", + "name": "US_WEST_2" + }, + { + "value": "ap-southeast-2", + "name": "AP_SOUTHEAST_2" + }, + { + "value": "ca-central-1", + "name": "CA_CENTRAL_1" + }, + { + "value": "eu-west-1", + "name": "EU_WEST_1" + } + ] + } + }, + "com.amazonaws.chime#TranscribeMedicalSpecialty": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "PRIMARYCARE", + "name": "PrimaryCare" + }, + { + "value": "CARDIOLOGY", + "name": "Cardiology" + }, + { + "value": "NEUROLOGY", + "name": "Neurology" + }, + { + "value": "ONCOLOGY", + "name": "Oncology" + }, + { + "value": "RADIOLOGY", + "name": "Radiology" + }, + { + "value": "UROLOGY", + "name": "Urology" + } + ] + } + }, + "com.amazonaws.chime#TranscribeMedicalType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CONVERSATION", + "name": "Conversation" + }, + { + "value": "DICTATION", + "name": "Dictation" + } + ] + } + }, + "com.amazonaws.chime#TranscribeRegion": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "us-east-2", + "name": "US_EAST_2" + }, + { + "value": "us-east-1", + "name": "US_EAST_1" + }, + { + "value": "us-west-2", + "name": "US_WEST_2" + }, + { + "value": "ap-northeast-2", + "name": "AP_NORTHEAST_2" + }, + { + "value": "ap-southeast-2", + "name": "AP_SOUTHEAST_2" + }, + { + "value": "ap-northeast-1", + "name": "AP_NORTHEAST_1" + }, + { + "value": "ca-central-1", + "name": "CA_CENTRAL_1" + }, + { + "value": "eu-central-1", + "name": "EU_CENTRAL_1" + }, + { + "value": "eu-west-1", + "name": "EU_WEST_1" + }, + { + "value": "eu-west-2", + "name": "EU_WEST_2" + }, + { + "value": "sa-east-1", + "name": "SA_EAST_1" + } + ] + } + }, + "com.amazonaws.chime#TranscribeVocabularyFilterMethod": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "remove", + "name": "Remove" + }, + { + "value": "mask", + "name": "Mask" + }, + { + "value": "tag", + "name": "Tag" + } + ] + } + }, + "com.amazonaws.chime#TranscriptionConfiguration": { + "type": "structure", + "members": { + "EngineTranscribeSettings": { + "target": "com.amazonaws.chime#EngineTranscribeSettings", + "traits": { + "smithy.api#documentation": "

The transcription configuration settings passed to Amazon Transcribe.

" + } + }, + "EngineTranscribeMedicalSettings": { + "target": "com.amazonaws.chime#EngineTranscribeMedicalSettings", + "traits": { + "smithy.api#documentation": "

The transcription configuration settings passed to Amazon Transcribe.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The configuration for the current transcription operation. Must contain EngineTranscribeSettings or EngineTranscribeMedicalSettings.

" + } + }, "com.amazonaws.chime#UCBuzzConsoleService": { "type": "service", "version": "2018-05-01", @@ -16686,6 +17150,12 @@ { "target": "com.amazonaws.chime#SendChannelMessage" }, + { + "target": "com.amazonaws.chime#StartMeetingTranscription" + }, + { + "target": "com.amazonaws.chime#StopMeetingTranscription" + }, { "target": "com.amazonaws.chime#TagAttendee" }, diff --git a/codegen/sdk-codegen/aws-models/cloudformation.2010-05-15.json b/codegen/sdk-codegen/aws-models/cloudformation.2010-05-15.json index c4046355490..15ac8ba1bc2 100644 --- a/codegen/sdk-codegen/aws-models/cloudformation.2010-05-15.json +++ b/codegen/sdk-codegen/aws-models/cloudformation.2010-05-15.json @@ -47,7 +47,7 @@ "Status": { "target": "com.amazonaws.cloudformation#AccountGateStatus", "traits": { - "smithy.api#documentation": "

The status of the account gate function.

\n " + "smithy.api#documentation": "

The status of the account gate function.

\n " } }, "StatusReason": { @@ -58,7 +58,7 @@ } }, "traits": { - "smithy.api#documentation": "

Structure that contains the results of the account gate function which AWS\n CloudFormation invokes, if present, before proceeding with a stack set operation in an\n account and Region.

\n

For each account and Region, AWS CloudFormation lets you specify a Lamdba function\n that encapsulates any requirements that must be met before CloudFormation can proceed with\n a stack set operation in that account and Region. CloudFormation invokes the function each\n time a stack set operation is requested for that account and Region; if the function\n returns FAILED, CloudFormation cancels the operation in that account and\n Region, and sets the stack set operation result status for that account and Region to\n FAILED.

\n

For more information, see Configuring a\n target account gate.

" + "smithy.api#documentation": "

Structure that contains the results of the account gate function which CloudFormation invokes, if present, before proceeding with a stack set operation in an\n account and Region.

\n

For each account and Region, CloudFormation lets you specify a Lamdba\n function that encapsulates any requirements that must be met before CloudFormation\n can proceed with a stack set operation in that account and Region. CloudFormation\n invokes the function each time a stack set operation is requested for that account and\n Region; if the function returns FAILED, CloudFormation cancels the\n operation in that account and Region, and sets the stack set operation result status for\n that account and Region to FAILED.

\n

For more information, see Configuring a\n target account gate.

" } }, "com.amazonaws.cloudformation#AccountGateStatus": { @@ -100,7 +100,7 @@ } }, "traits": { - "smithy.api#documentation": "

The AccountLimit data type.

\n

CloudFormation has the following limits per account:

\n \n

For more information about these account limits, and other CloudFormation limits, see\n AWS CloudFormation\n Limits in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

The AccountLimit data type.

\n

CloudFormation has the following limits per account:

\n \n

For more information about these account limits, and other CloudFormation\n limits, see CloudFormation Limits in the CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#AccountLimitList": { @@ -142,7 +142,7 @@ } ], "traits": { - "smithy.api#documentation": "

Activates a public third-party extension, making it available for use in stack templates. For more information, see Using public extensions in the CloudFormation User Guide.

\n

Once you have activated a public third-party extension in your account and region, use SetTypeConfiguration to specify configuration properties for the extension. For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

", + "smithy.api#documentation": "

Activates a public third-party extension, making it available for use in stack\n templates. For more information, see Using\n public extensions in the CloudFormation User Guide.

\n

Once you have activated a public third-party extension in your account and region, use\n SetTypeConfiguration to specify configuration properties for the extension. For\n more information, see Configuring extensions at the account level in the CloudFormation\n User Guide.

", "smithy.api#idempotent": {} } }, @@ -152,37 +152,37 @@ "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The extension type.

\n

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

" + "smithy.api#documentation": "

The extension type.

\n

Conditional: You must specify PublicTypeArn, or TypeName,\n Type, and PublisherId.

" } }, "PublicTypeArn": { "target": "com.amazonaws.cloudformation#ThirdPartyTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the public extension.

\n

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the public extension.

\n

Conditional: You must specify PublicTypeArn, or TypeName,\n Type, and PublisherId.

" } }, "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The ID of the extension publisher.

\n

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

" + "smithy.api#documentation": "

The ID of the extension publisher.

\n

Conditional: You must specify PublicTypeArn, or TypeName,\n Type, and PublisherId.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify PublicTypeArn, or TypeName,\n Type, and PublisherId.

" } }, "TypeNameAlias": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

An alias to assign to the public extension, in this account and region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.

\n

An extension alias must be unique within a given account and region. You can activate the same public resource multiple times in the same account and region, using different type name aliases.

" + "smithy.api#documentation": "

An alias to assign to the public extension, in this account and region. If you specify\n an alias for the extension, CloudFormation treats the alias as the extension type name\n within this account and region. You must use the alias to refer to the extension in your\n templates, API calls, and CloudFormation console.

\n

An extension alias must be unique within a given account and region. You can activate\n the same public resource multiple times in the same account and region, using different\n type name aliases.

" } }, "AutoUpdate": { "target": "com.amazonaws.cloudformation#AutoUpdate", "traits": { - "smithy.api#documentation": "

Whether to automatically update the extension in this account and region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated.

\n

The default is true.

" + "smithy.api#documentation": "

Whether to automatically update the extension in this account and region when a new\n minor version is published by the extension publisher. Major\n versions released by the publisher must be manually updated.

\n

The default is true.

" } }, "LoggingConfig": { @@ -197,13 +197,13 @@ "VersionBump": { "target": "com.amazonaws.cloudformation#VersionBump", "traits": { - "smithy.api#documentation": "

Manually updates a previously-activated type to a new major or minor version, if available. You can also use this parameter to update the value of AutoUpdate.

\n " + "smithy.api#documentation": "

Manually updates a previously-activated type to a new major or minor version, if\n available. You can also use this parameter to update the value of\n AutoUpdate.

\n " } }, "MajorVersion": { "target": "com.amazonaws.cloudformation#MajorVersion", "traits": { - "smithy.api#documentation": "

The major version of this extension you want to activate, if multiple major versions are available. The default is the latest major version. CloudFormation uses the latest available minor version of the major version selected.

\n

You can specify MajorVersion or VersionBump, but not both.

" + "smithy.api#documentation": "

The major version of this extension you want to activate, if multiple major versions are\n available. The default is the latest major version. CloudFormation uses the latest\n available minor version of the major version selected.

\n

You can specify MajorVersion or VersionBump, but not\n both.

" } } } @@ -214,7 +214,7 @@ "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the activated extension, in this account and region.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the activated extension, in this account and\n region.

" } } } @@ -254,18 +254,18 @@ "Enabled": { "target": "com.amazonaws.cloudformation#AutoDeploymentNullable", "traits": { - "smithy.api#documentation": "

If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.

" + "smithy.api#documentation": "

If set to true, StackSets automatically deploys additional stack instances\n to Organizations accounts that are added to a target organization or organizational\n unit (OU) in the specified Regions. If an account is removed from a target organization or\n OU, StackSets deletes stack instances from the account in the specified Regions.

" } }, "RetainStacksOnAccountRemoval": { "target": "com.amazonaws.cloudformation#RetainStacksOnAccountRemovalNullable", "traits": { - "smithy.api#documentation": "

If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.

" + "smithy.api#documentation": "

If set to true, stack resources are retained when an account is removed\n from a target organization or OU. If set to false, stack resources are\n deleted. Specify only if Enabled is set to True.

" } } }, "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to a target organization or organizational unit (OU).

" + "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to\n Organizations accounts that are added to a target organization or organizational\n unit (OU).

" } }, "com.amazonaws.cloudformation#AutoDeploymentNullable": { @@ -297,7 +297,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns configuration data for the specified CloudFormation extensions, from the CloudFormation registry for the account and region.

\n

For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

" + "smithy.api#documentation": "

Returns configuration data for the specified CloudFormation extensions, from the\n CloudFormation registry for the account and region.

\n

For more information, see Configuring extensions at the account level in the\n CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#BatchDescribeTypeConfigurationsError": { @@ -320,7 +320,7 @@ } }, "traits": { - "smithy.api#documentation": "

Detailed information concerning an error generated during the setting of configuration data for a CloudFormation extension.

" + "smithy.api#documentation": "

Detailed information concerning an error generated during the setting of configuration\n data for a CloudFormation extension.

" } }, "com.amazonaws.cloudformation#BatchDescribeTypeConfigurationsErrors": { @@ -347,19 +347,19 @@ "Errors": { "target": "com.amazonaws.cloudformation#BatchDescribeTypeConfigurationsErrors", "traits": { - "smithy.api#documentation": "

A list of information concerning any errors generated during the setting of the specified configurations.

" + "smithy.api#documentation": "

A list of information concerning any errors generated during the setting of the\n specified configurations.

" } }, "UnprocessedTypeConfigurations": { "target": "com.amazonaws.cloudformation#UnprocessedTypeConfigurations", "traits": { - "smithy.api#documentation": "

A list of any of the specified extension configurations that CloudFormation could not process for any reason.

" + "smithy.api#documentation": "

A list of any of the specified extension configurations that CloudFormation could not\n process for any reason.

" } }, "TypeConfigurations": { "target": "com.amazonaws.cloudformation#TypeConfigurationDetailsList", "traits": { - "smithy.api#documentation": "

A list of any of the specified extension configurations from the CloudFormation registry.

" + "smithy.api#documentation": "

A list of any of the specified extension configurations from the CloudFormation\n registry.

" } } } @@ -439,7 +439,7 @@ "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this CancelUpdateStack request. Specify this\n token if you plan to retry requests so that AWS CloudFormation knows that you're not\n attempting to cancel an update on a stack with the same name. You might retry\n CancelUpdateStack requests to ensure that AWS CloudFormation successfully\n received them.

" + "smithy.api#documentation": "

A unique identifier for this CancelUpdateStack request. Specify this\n token if you plan to retry requests so that CloudFormation knows that you're not\n attempting to cancel an update on a stack with the same name. You might retry\n CancelUpdateStack requests to ensure that CloudFormation\n successfully received them.

" } } }, @@ -507,18 +507,18 @@ "Type": { "target": "com.amazonaws.cloudformation#ChangeType", "traits": { - "smithy.api#documentation": "

The type of entity that AWS CloudFormation changes. Currently, the only entity type\n is Resource.

" + "smithy.api#documentation": "

The type of entity that CloudFormation changes. Currently, the only entity\n type is Resource.

" } }, "ResourceChange": { "target": "com.amazonaws.cloudformation#ResourceChange", "traits": { - "smithy.api#documentation": "

A ResourceChange structure that describes the resource and action that\n AWS CloudFormation will perform.

" + "smithy.api#documentation": "

A ResourceChange structure that describes the resource and action that\n CloudFormation will perform.

" } } }, "traits": { - "smithy.api#documentation": "

The Change structure describes the changes AWS CloudFormation will\n perform if you execute the change set.

" + "smithy.api#documentation": "

The Change structure describes the changes CloudFormation will\n perform if you execute the change set.

" } }, "com.amazonaws.cloudformation#ChangeAction": { @@ -672,7 +672,7 @@ "ExecutionStatus": { "target": "com.amazonaws.cloudformation#ExecutionStatus", "traits": { - "smithy.api#documentation": "

If the change set execution status is AVAILABLE, you can execute the\n change set. If you can’t execute the change set, the status indicates why. For example, a\n change set might be in an UNAVAILABLE state because AWS CloudFormation is\n still creating it or in an OBSOLETE state because the stack was already\n updated.

" + "smithy.api#documentation": "

If the change set execution status is AVAILABLE, you can execute the\n change set. If you can’t execute the change set, the status indicates why. For example, a\n change set might be in an UNAVAILABLE state because CloudFormation is\n still creating it or in an OBSOLETE state because the stack was already\n updated.

" } }, "Status": { @@ -684,7 +684,7 @@ "StatusReason": { "target": "com.amazonaws.cloudformation#ChangeSetStatusReason", "traits": { - "smithy.api#documentation": "

A description of the change set's status. For example, if your change set is in the\n FAILED state, AWS CloudFormation shows the error message.

" + "smithy.api#documentation": "

A description of the change set's status. For example, if your change set is in the\n FAILED state, CloudFormation shows the error message.

" } }, "CreationTime": { @@ -916,6 +916,9 @@ { "target": "com.amazonaws.cloudformation#GetTemplateSummary" }, + { + "target": "com.amazonaws.cloudformation#ImportStacksToStackSet" + }, { "target": "com.amazonaws.cloudformation#ListChangeSets" }, @@ -1010,7 +1013,7 @@ "name": "cloudformation" }, "aws.protocols#awsQuery": {}, - "smithy.api#documentation": "AWS CloudFormation\n

AWS CloudFormation allows you to create and manage AWS infrastructure deployments\n predictably and repeatedly. You can use AWS CloudFormation to leverage AWS products, such\n as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification\n Service, Elastic Load Balancing, and Auto Scaling to build highly-reliable, highly\n scalable, cost-effective applications without creating or configuring the underlying AWS\n infrastructure.

\n

With AWS CloudFormation, you declare all of your resources and dependencies in a\n template file. The template defines a collection of resources as a single unit called a\n stack. AWS CloudFormation creates and deletes all member resources of the stack together\n and manages all dependencies between the resources for you.

\n

For more information about AWS CloudFormation, see the AWS CloudFormation Product Page.

\n

Amazon CloudFormation makes use of other AWS products. If you need additional\n technical information about a specific AWS product, you can find the product's technical\n documentation at docs.aws.amazon.com.

", + "smithy.api#documentation": "AWS CloudFormation\n

CloudFormation allows you to create and manage Amazon Web Services\n infrastructure deployments predictably and repeatedly. You can use CloudFormation\n to leverage Amazon Web Services products, such as Amazon Elastic Compute Cloud, Amazon\n Elastic Block Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto\n Scaling to build highly-reliable, highly scalable, cost-effective applications without\n creating or configuring the underlying Amazon Web Services infrastructure.

\n

With CloudFormation, you declare all of your resources and dependencies in a\n template file. The template defines a collection of resources as a single unit called a\n stack. CloudFormation creates and deletes all member resources of the stack\n together and manages all dependencies between the resources for you.

\n

For more information about CloudFormation, see the CloudFormation Product Page.

\n

CloudFormation makes use of other Amazon Web Services products. If you need\n additional technical information about a specific Amazon Web Services product, you can find\n the product's technical documentation at \n docs.aws.amazon.com\n .

", "smithy.api#title": "AWS CloudFormation", "smithy.api#xmlNamespace": { "uri": "http://cloudformation.amazonaws.com/doc/2010-05-15/" @@ -1051,7 +1054,7 @@ } ], "traits": { - "smithy.api#documentation": "

For a specified stack that is in the UPDATE_ROLLBACK_FAILED state,\n continues rolling it back to the UPDATE_ROLLBACK_COMPLETE state. Depending on\n the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can\n return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state), and\n then try to update the stack again.

\n

A stack goes into the UPDATE_ROLLBACK_FAILED state when AWS\n CloudFormation cannot roll back all changes after a failed stack update. For example, you\n might have a stack that is rolling back to an old database instance that was deleted\n outside of AWS CloudFormation. Because AWS CloudFormation doesn't know the database was\n deleted, it assumes that the database instance still exists and attempts to roll back to\n it, causing the update rollback to fail.

" + "smithy.api#documentation": "

For a specified stack that is in the UPDATE_ROLLBACK_FAILED state,\n continues rolling it back to the UPDATE_ROLLBACK_COMPLETE state. Depending on\n the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can\n return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state), and\n then try to update the stack again.

\n

A stack goes into the UPDATE_ROLLBACK_FAILED state when CloudFormation cannot roll back all changes after a failed stack update. For example,\n you might have a stack that is rolling back to an old database instance that was deleted\n outside of CloudFormation. Because CloudFormation doesn't know the database\n was deleted, it assumes that the database instance still exists and attempts to roll back\n to it, causing the update rollback to fail.

" } }, "com.amazonaws.cloudformation#ContinueUpdateRollbackInput": { @@ -1067,19 +1070,19 @@ "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation uses the role's\n credentials to make calls on your behalf. AWS CloudFormation always uses this role for all\n future operations on the stack. As long as users have permission to operate on the stack,\n AWS CloudFormation uses this role even if the users don't have permission to pass it.\n Ensure that the role grants least privilege.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes to roll back the stack. CloudFormation uses the role's\n credentials to make calls on your behalf. CloudFormation always uses this role for\n all future operations on the stack. As long as users have permission to operate on the\n stack, CloudFormation uses this role even if the users don't have permission to\n pass it. Ensure that the role grants least privilege.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" } }, "ResourcesToSkip": { "target": "com.amazonaws.cloudformation#ResourcesToSkip", "traits": { - "smithy.api#documentation": "

A list of the logical IDs of the resources that AWS CloudFormation skips during the\n continue update rollback operation. You can specify only resources that are in the\n UPDATE_FAILED state because a rollback failed. You can't specify resources\n that are in the UPDATE_FAILED state for other reasons, for example, because an\n update was cancelled. To check why a resource update failed, use the DescribeStackResources action, and view the resource status reason.

\n \n

Specify this property to skip rolling back resources that AWS CloudFormation can't\n successfully roll back. We recommend that you troubleshoot resources before skipping them. AWS CloudFormation sets the\n status of the specified resources to UPDATE_COMPLETE and continues to roll\n back the stack. After the rollback is complete, the state of the skipped resources will\n be inconsistent with the state of the resources in the stack template. Before performing\n another stack update, you must update the stack or resources to be consistent with each\n other. If you don't, subsequent stack updates might fail, and the stack will become\n unrecoverable.

\n
\n

Specify the minimum number of resources required to successfully roll back your\n stack. For example, a failed resource update might cause dependent resources to fail. In\n this case, it might not be necessary to skip the dependent resources.

\n

To skip resources that are part of nested stacks, use the following format:\n NestedStackName.ResourceLogicalID. If you want to specify the logical ID of\n a stack resource (Type: AWS::CloudFormation::Stack) in the\n ResourcesToSkip list, then its corresponding embedded stack must be in one\n of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or\n DELETE_FAILED.

\n \n

Don't confuse a child stack's name with its corresponding logical ID defined in\n the parent stack. For an example of a continue update rollback operation with nested\n stacks, see Using ResourcesToSkip to recover a nested stacks hierarchy.

\n
" + "smithy.api#documentation": "

A list of the logical IDs of the resources that CloudFormation skips during\n the continue update rollback operation. You can specify only resources that are in the\n UPDATE_FAILED state because a rollback failed. You can't specify resources\n that are in the UPDATE_FAILED state for other reasons, for example, because an\n update was cancelled. To check why a resource update failed, use the DescribeStackResources action, and view the resource status reason.

\n \n

Specify this property to skip rolling back resources that CloudFormation\n can't successfully roll back. We recommend that you troubleshoot resources before skipping them. CloudFormation sets\n the status of the specified resources to UPDATE_COMPLETE and continues to\n roll back the stack. After the rollback is complete, the state of the skipped resources\n will be inconsistent with the state of the resources in the stack template. Before\n performing another stack update, you must update the stack or resources to be consistent\n with each other. If you don't, subsequent stack updates might fail, and the stack will\n become unrecoverable.

\n
\n

Specify the minimum number of resources required to successfully roll back your\n stack. For example, a failed resource update might cause dependent resources to fail. In\n this case, it might not be necessary to skip the dependent resources.

\n

To skip resources that are part of nested stacks, use the following format:\n NestedStackName.ResourceLogicalID. If you want to specify the logical ID of\n a stack resource (Type: AWS::CloudFormation::Stack) in the\n ResourcesToSkip list, then its corresponding embedded stack must be in one\n of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or\n DELETE_FAILED.

\n \n

Don't confuse a child stack's name with its corresponding logical ID defined in\n the parent stack. For an example of a continue update rollback operation with nested\n stacks, see Using ResourcesToSkip to recover a nested stacks hierarchy.

\n
" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this ContinueUpdateRollback request. Specify\n this token if you plan to retry requests so that AWS CloudFormation knows that you're not\n attempting to continue the rollback to a stack with the same name. You might retry\n ContinueUpdateRollback requests to ensure that AWS CloudFormation\n successfully received them.

" + "smithy.api#documentation": "

A unique identifier for this ContinueUpdateRollback request. Specify\n this token if you plan to retry requests so that CloudFormationknows that you're\n not attempting to continue the rollback to a stack with the same name. You might retry\n ContinueUpdateRollback requests to ensure that CloudFormation\n successfully received them.

" } } }, @@ -1114,7 +1117,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a list of changes that will be applied to a stack so that you can review the\n changes before executing them. You can create a change set for a stack that doesn't exist\n or an existing stack. If you create a change set for a stack that doesn't exist, the change\n set shows all of the resources that AWS CloudFormation will create. If you create a change\n set for an existing stack, AWS CloudFormation compares the stack's information with the\n information that you submit in the change set and lists the differences. Use change sets to\n understand which resources AWS CloudFormation will create or change, and how it will change\n resources in an existing stack, before you create or update a stack.

\n

To create a change set for a stack that doesn't exist, for the\n ChangeSetType parameter, specify CREATE. To create a change\n set for an existing stack, specify UPDATE for the ChangeSetType\n parameter. To create a change set for an import operation, specify IMPORT for\n the ChangeSetType parameter. After the CreateChangeSet call\n successfully completes, AWS CloudFormation starts creating the change set. To check the\n status of the change set or to review it, use the DescribeChangeSet\n action.

\n

When you are satisfied with the changes the change set will make, execute the change\n set by using the ExecuteChangeSet action. AWS CloudFormation doesn't make\n changes until you execute the change set.

\n

To create a change set for the entire stack hierachy, set\n IncludeNestedStacks to True.

" + "smithy.api#documentation": "

Creates a list of changes that will be applied to a stack so that you can review the\n changes before executing them. You can create a change set for a stack that doesn't exist\n or an existing stack. If you create a change set for a stack that doesn't exist, the change\n set shows all of the resources that CloudFormation will create. If you create a\n change set for an existing stack, CloudFormation compares the stack's information\n with the information that you submit in the change set and lists the differences. Use\n change sets to understand which resources CloudFormation will create or change, and\n how it will change resources in an existing stack, before you create or update a\n stack.

\n

To create a change set for a stack that doesn't exist, for the\n ChangeSetType parameter, specify CREATE. To create a change\n set for an existing stack, specify UPDATE for the ChangeSetType\n parameter. To create a change set for an import operation, specify IMPORT for\n the ChangeSetType parameter. After the CreateChangeSet call\n successfully completes, CloudFormation starts creating the change set. To check the\n status of the change set or to review it, use the DescribeChangeSet\n action.

\n

When you are satisfied with the changes the change set will make, execute the change\n set by using the ExecuteChangeSet action. CloudFormation doesn't\n make changes until you execute the change set.

\n

To create a change set for the entire stack hierachy, set\n IncludeNestedStacks to True.

" } }, "com.amazonaws.cloudformation#CreateChangeSetInput": { @@ -1123,20 +1126,20 @@ "StackName": { "target": "com.amazonaws.cloudformation#StackNameOrId", "traits": { - "smithy.api#documentation": "

The name or the unique ID of the stack for which you are creating a change set. AWS\n CloudFormation generates the change set by comparing this stack's information with the\n information that you submit, such as a modified template or different parameter input\n values.

", + "smithy.api#documentation": "

The name or the unique ID of the stack for which you are creating a change set.\n CloudFormation generates the change set by comparing this stack's information\n with the information that you submit, such as a modified template or different parameter\n input values.

", "smithy.api#required": {} } }, "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

A structure that contains the body of the revised template, with a minimum length of\n 1 byte and a maximum length of 51,200 bytes. AWS CloudFormation generates the change set by\n comparing this template with the template of the stack that you specified.

\n

Conditional: You must specify only TemplateBody or\n TemplateURL.

" + "smithy.api#documentation": "

A structure that contains the body of the revised template, with a minimum length of\n 1 byte and a maximum length of 51,200 bytes. CloudFormation generates the change\n set by comparing this template with the template of the stack that you specified.

\n

Conditional: You must specify only TemplateBody or\n TemplateURL.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

The location of the file that contains the revised template. The URL must point to a\n template (max size: 460,800 bytes) that is located in an S3 bucket or a Systems Manager\n document. AWS CloudFormation generates the change set by comparing this template with the\n stack that you specified.

\n

Conditional: You must specify only TemplateBody or\n TemplateURL.

" + "smithy.api#documentation": "

The location of the file that contains the revised template. The URL must point to a\n template (max size: 460,800 bytes) that is located in an S3 bucket or a Systems Manager\n document. CloudFormation generates the change set by comparing this template with\n the stack that you specified.

\n

Conditional: You must specify only TemplateBody or\n TemplateURL.

" } }, "UsePreviousTemplate": { @@ -1154,37 +1157,37 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for AWS CloudFormation to create the stack.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for CloudFormation to create the stack.

\n " } }, "ResourceTypes": { "target": "com.amazonaws.cloudformation#ResourceTypes", "traits": { - "smithy.api#documentation": "

The template resource types that you have permissions to work with if you execute\n this change set, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance.

\n

If the list of resource types doesn't include a resource type that you're updating,\n the stack update fails. By default, AWS CloudFormation grants permissions to all resource\n types. AWS Identity and Access Management (IAM) uses this parameter for condition keys in\n IAM policies for AWS CloudFormation. For more information, see Controlling Access with\n AWS Identity and Access Management in the AWS CloudFormation User\n Guide.

" + "smithy.api#documentation": "

The template resource types that you have permissions to work with if you execute\n this change set, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance.

\n

If the list of resource types doesn't include a resource type that you're updating,\n the stack update fails. By default, CloudFormation grants permissions to all\n resource types. Identity and Access Management (IAM) uses this parameter for condition keys in IAM\n policies for CloudFormation. For more information, see Controlling Access with\n Identity and Access Management in the CloudFormation User Guide.

" } }, "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes when executing the change set. AWS CloudFormation uses the\n role's credentials to make calls on your behalf. AWS CloudFormation uses this role for all\n future operations on the stack. As long as users have permission to operate on the stack,\n AWS CloudFormation uses this role even if the users don't have permission to pass it.\n Ensure that the role grants least privilege.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes when executing the change set. CloudFormation uses the\n role's credentials to make calls on your behalf. CloudFormation uses this role for\n all future operations on the stack. As long as users have permission to operate on the\n stack, CloudFormation uses this role even if the users don't have permission to\n pass it. Ensure that the role grants least privilege.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" } }, "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "NotificationARNs": { "target": "com.amazonaws.cloudformation#NotificationARNs", "traits": { - "smithy.api#documentation": "

The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon SNS)\n topics that AWS CloudFormation associates with the stack. To remove all associated\n notification topics, specify an empty list.

" + "smithy.api#documentation": "

The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon SNS)\n topics that CloudFormation associates with the stack. To remove all associated\n notification topics, specify an empty list.

" } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

Key-value pairs to associate with this stack. AWS CloudFormation also propagates\n these tags to resources in the stack. You can specify a maximum of 50 tags.

" + "smithy.api#documentation": "

Key-value pairs to associate with this stack. CloudFormation also propagates\n these tags to resources in the stack. You can specify a maximum of 50 tags.

" } }, "ChangeSetName": { @@ -1197,7 +1200,7 @@ "ClientToken": { "target": "com.amazonaws.cloudformation#ClientToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this CreateChangeSet request. Specify this token\n if you plan to retry requests so that AWS CloudFormation knows that you're not attempting\n to create another change set with the same name. You might retry\n CreateChangeSet requests to ensure that AWS CloudFormation successfully\n received them.

" + "smithy.api#documentation": "

A unique identifier for this CreateChangeSet request. Specify this token\n if you plan to retry requests so that CloudFormation knows that you're not\n attempting to create another change set with the same name. You might retry\n CreateChangeSet requests to ensure that CloudFormation successfully\n received them.

" } }, "Description": { @@ -1209,7 +1212,7 @@ "ChangeSetType": { "target": "com.amazonaws.cloudformation#ChangeSetType", "traits": { - "smithy.api#documentation": "

The type of change set operation. To create a change set for a new stack, specify\n CREATE. To create a change set for an existing stack, specify\n UPDATE. To create a change set for an import operation, specify\n IMPORT.

\n

If you create a change set for a new stack, AWS Cloudformation creates a stack with a\n unique stack ID, but no template or resources. The stack will be in the \n REVIEW_IN_PROGRESS\n state until you execute the change\n set.

\n

By default, AWS CloudFormation specifies UPDATE. You can't use the\n UPDATE type to create a change set for a new stack or the\n CREATE type to create a change set for an existing stack.

" + "smithy.api#documentation": "

The type of change set operation. To create a change set for a new stack, specify\n CREATE. To create a change set for an existing stack, specify\n UPDATE. To create a change set for an import operation, specify\n IMPORT.

\n

If you create a change set for a new stack, CloudFormation creates a stack\n with a unique stack ID, but no template or resources. The stack will be in the \n REVIEW_IN_PROGRESS\n state until you execute the change\n set.

\n

By default, CloudFormation specifies UPDATE. You can't use the\n UPDATE type to create a change set for a new stack or the\n CREATE type to create a change set for an existing stack.

" } }, "ResourcesToImport": { @@ -1288,13 +1291,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the\n TemplateURL parameter, but not both.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information, go to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the\n TemplateURL parameter, but not both.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information, go to the Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the\n TemplateURL parameter, but not both.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information, go to the Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the\n TemplateURL parameter, but not both.

" } }, "Parameters": { @@ -1312,7 +1315,7 @@ "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "TimeoutInMinutes": { @@ -1330,19 +1333,19 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for AWS CloudFormation to create the stack.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for CloudFormation to create the stack.

\n " } }, "ResourceTypes": { "target": "com.amazonaws.cloudformation#ResourceTypes", "traits": { - "smithy.api#documentation": "

The template resource types that you have permissions to work with for this create\n stack action, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance. Use the following syntax to describe template\n resource types: AWS::* (for all AWS resource), Custom::* (for all\n custom resources), Custom::logical_ID\n (for a specific custom resource),\n AWS::service_name::* (for all resources of a\n particular AWS service), and\n AWS::service_name::resource_logical_ID\n (for a specific AWS resource).

\n

If the list of resource types doesn't include a resource that you're creating, the\n stack creation fails. By default, AWS CloudFormation grants permissions to all resource\n types. AWS Identity and Access Management (IAM) uses this parameter for AWS\n CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with AWS Identity and Access Management.

" + "smithy.api#documentation": "

The template resource types that you have permissions to work with for this create\n stack action, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance. Use the following syntax to describe template\n resource types: AWS::* (for all Amazon Web Services resources),\n Custom::* (for all custom resources),\n Custom::logical_ID\n (for a specific custom resource),\n AWS::service_name::* (for all resources of a\n particular Amazon Web Services service), and\n AWS::service_name::resource_logical_ID\n (for a specific Amazon Web Services resource).

\n

If the list of resource types doesn't include a resource that you're creating, the\n stack creation fails. By default, CloudFormation grants permissions to all resource\n types. Identity and Access Management (IAM) uses this parameter for CloudFormation-specific\n condition keys in IAM policies. For more information, see Controlling Access with\n Identity and Access Management.

" } }, "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes to create the stack. AWS CloudFormation uses the role's\n credentials to make calls on your behalf. AWS CloudFormation always uses this role for all\n future operations on the stack. As long as users have permission to operate on the stack,\n AWS CloudFormation uses this role even if the users don't have permission to pass it.\n Ensure that the role grants least privilege.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes to create the stack. CloudFormation uses the role's\n credentials to make calls on your behalf. CloudFormation always uses this role for\n all future operations on the stack. As long as users have permission to operate on the\n stack, CloudFormation uses this role even if the users don't have permission to\n pass it. Ensure that the role grants least privilege.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" } }, "OnFailure": { @@ -1354,31 +1357,31 @@ "StackPolicyBody": { "target": "com.amazonaws.cloudformation#StackPolicyBody", "traits": { - "smithy.api#documentation": "

Structure containing the stack policy body. For more information, go to Prevent Updates\n to Stack Resources in the AWS CloudFormation User Guide.\n You can specify either the StackPolicyBody or the StackPolicyURL\n parameter, but not both.

" + "smithy.api#documentation": "

Structure containing the stack policy body. For more information, go to Prevent Updates\n to Stack Resources in the CloudFormation User\n Guide. You can specify either the StackPolicyBody or the\n StackPolicyURL parameter, but not both.

" } }, "StackPolicyURL": { "target": "com.amazonaws.cloudformation#StackPolicyURL", "traits": { - "smithy.api#documentation": "

Location of a file containing the stack policy. The URL must point to a policy\n (maximum size: 16 KB) located in an S3 bucket in the same\n Region as the stack. You can specify either the StackPolicyBody or the\n StackPolicyURL parameter, but not both.

" + "smithy.api#documentation": "

Location of a file containing the stack policy. The URL must point to a policy\n (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack. You can\n specify either the StackPolicyBody or the StackPolicyURL\n parameter, but not both.

" } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

Key-value pairs to associate with this stack. AWS CloudFormation also propagates\n these tags to the resources created in the stack. A maximum number of 50 tags can be\n specified.

" + "smithy.api#documentation": "

Key-value pairs to associate with this stack. CloudFormation also propagates\n these tags to the resources created in the stack. A maximum number of 50 tags can be\n specified.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this CreateStack request. Specify this token if\n you plan to retry requests so that AWS CloudFormation knows that you're not attempting to\n create a stack with the same name. You might retry CreateStack requests to\n ensure that AWS CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" + "smithy.api#documentation": "

A unique identifier for this CreateStack request. Specify this token if\n you plan to retry requests so that CloudFormation knows that you're not attempting\n to create a stack with the same name. You might retry CreateStack requests to\n ensure that CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" } }, "EnableTerminationProtection": { "target": "com.amazonaws.cloudformation#EnableTerminationProtection", "traits": { - "smithy.api#documentation": "

Whether to enable termination protection on the specified stack. If a user attempts\n to delete a stack with termination protection enabled, the operation fails and the stack\n remains unchanged. For more information, see Protecting a Stack From Being\n Deleted in the AWS CloudFormation User Guide. Termination protection is\n disabled on stacks by default.

\n

For nested stacks,\n termination protection is set on the root stack and cannot be changed directly on the\n nested stack.

" + "smithy.api#documentation": "

Whether to enable termination protection on the specified stack. If a user attempts\n to delete a stack with termination protection enabled, the operation fails and the stack\n remains unchanged. For more information, see Protecting a Stack From Being\n Deleted in the CloudFormation User Guide. Termination protection is\n disabled on stacks by default.

\n

For nested stacks,\n termination protection is set on the root stack and cannot be changed directly on the\n nested stack.

" } } }, @@ -1415,7 +1418,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates stack instances for the specified accounts, within the specified Regions. A\n stack instance refers to a stack in a specific account and Region. You must specify at least one value for either Accounts or DeploymentTargets, and you must specify at least one value for Regions.

" + "smithy.api#documentation": "

Creates stack instances for the specified accounts, within the specified Regions. A\n stack instance refers to a stack in a specific account and Region. You must specify at\n least one value for either Accounts or DeploymentTargets, and you\n must specify at least one value for Regions.

" } }, "com.amazonaws.cloudformation#CreateStackInstancesInput": { @@ -1431,45 +1434,45 @@ "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The names of one or more AWS accounts that you want to create stack instances in the\n specified Region(s) for.

\n

You can specify Accounts or DeploymentTargets, but not both.

" + "smithy.api#documentation": "

[Self-managed permissions] The names of one or more accounts that\n you want to create stack instances in the specified Region(s) for.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" } }, "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts for which to create stack instances in the specified Regions.

\n

You can specify Accounts or DeploymentTargets, but not both.

" + "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts for which to create\n stack instances in the specified Regions.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" } }, "Regions": { "target": "com.amazonaws.cloudformation#RegionList", "traits": { - "smithy.api#documentation": "

The names of one or more Regions where you want to create stack instances using the\n specified AWS account(s).

", + "smithy.api#documentation": "

The names of one or more Regions where you want to create stack instances using the\n specified accounts.

", "smithy.api#required": {} } }, "ParameterOverrides": { "target": "com.amazonaws.cloudformation#Parameters", "traits": { - "smithy.api#documentation": "

A list of stack set parameters whose values you want to override in the selected\n stack instances.

\n

Any overridden parameter values will be applied to all stack instances in the\n specified accounts and Regions. When specifying parameters and their values, be aware of\n how AWS CloudFormation sets parameter values during stack instance operations:

\n \n

During stack set updates, any parameter values overridden for a stack instance are\n not updated, but retain their overridden value.

\n

You can only override the parameter values that are specified in\n the stack set; to add or delete a parameter itself, use UpdateStackSet to update the stack set template.

" + "smithy.api#documentation": "

A list of stack set parameters whose values you want to override in the selected\n stack instances.

\n

Any overridden parameter values will be applied to all stack instances in the\n specified accounts and Regions. When specifying parameters and their values, be aware of\n how CloudFormation sets parameter values during stack instance\n operations:

\n \n

During stack set updates, any parameter values overridden for a stack instance are\n not updated, but retain their overridden value.

\n

You can only override the parameter values that are specified in\n the stack set; to add or delete a parameter itself, use UpdateStackSet to update the stack set template.

" } }, "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

Preferences for how AWS CloudFormation performs this stack set operation.

" + "smithy.api#documentation": "

Preferences for how CloudFormation performs this stack set\n operation.

" } }, "OperationId": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that AWS\n CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that AWS\n CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", + "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", "smithy.api#idempotencyToken": {} } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -1541,13 +1544,19 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

The structure that contains the template body, with a minimum length of 1 byte and a\n maximum length of 51,200 bytes. For more information, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the TemplateURL parameter,\n but not both.

" + "smithy.api#documentation": "

The structure that contains the template body, with a minimum length of 1 byte and a\n maximum length of 51,200 bytes. For more information, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the TemplateURL parameter,\n but not both.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

The location of the file that contains the template body. The URL must point to a\n template (maximum size: 460,800 bytes) that's located in an Amazon S3 bucket or a Systems\n Manager document. For more information, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the TemplateURL parameter,\n but not both.

" + "smithy.api#documentation": "

The location of the file that contains the template body. The URL must point to a\n template (maximum size: 460,800 bytes) that's located in an Amazon S3 bucket or a Systems\n Manager document. For more information, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify either the TemplateBody or the TemplateURL parameter,\n but not both.

" + } + }, + "StackId": { + "target": "com.amazonaws.cloudformation#StackId", + "traits": { + "smithy.api#documentation": "

The stack ID you are importing into a new stack set. Specify the Amazon Resource Number\n (ARN) of the stack.

" } }, "Parameters": { @@ -1559,49 +1568,49 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack set template contains\n certain capabilities in order for AWS CloudFormation to create the stack set and related stack\n instances.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack set template contains\n certain capabilities in order for CloudFormation to create the stack set and related stack\n instances.

\n " } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

The key-value pairs to associate with this stack set and the stacks created from it.\n AWS CloudFormation also propagates these tags to supported resources that are created in\n the stacks. A maximum number of 50 tags can be specified.

\n

If you specify tags as part of a CreateStackSet action, AWS\n CloudFormation checks to see if you have the required IAM permission to tag resources. If\n you don't, the entire CreateStackSet action fails with an access\n denied error, and the stack set is not created.

" + "smithy.api#documentation": "

The key-value pairs to associate with this stack set and the stacks created from it.\n CloudFormation also propagates these tags to supported resources that are\n created in the stacks. A maximum number of 50 tags can be specified.

\n

If you specify tags as part of a CreateStackSet action, CloudFormation checks to see if you have the required IAM permission to tag resources.\n If you don't, the entire CreateStackSet action fails with an access\n denied error, and the stack set is not created.

" } }, "AdministrationRoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role to use to create this stack set.

\n

Specify an IAM role only if you are using customized administrator roles to control\n which users or groups can manage specific stack sets within the same administrator account.\n For more information, see Prerequisites:\n Granting Permissions for Stack Set Operations in the\n AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role to use to create this stack set.

\n

Specify an IAM role only if you are using customized administrator roles to control\n which users or groups can manage specific stack sets within the same administrator account.\n For more information, see Prerequisites:\n Granting Permissions for Stack Set Operations in the\n CloudFormation User Guide.

" } }, "ExecutionRoleName": { "target": "com.amazonaws.cloudformation#ExecutionRoleName", "traits": { - "smithy.api#documentation": "

The name of the IAM execution role to use to create the stack set. If you do not specify\n an execution role, AWS CloudFormation uses the AWSCloudFormationStackSetExecutionRole role\n for the stack set operation.

\n

Specify an IAM role only if you are using customized execution roles to control which\n stack resources users and groups can include in their stack sets.\n \n

" + "smithy.api#documentation": "

The name of the IAM execution role to use to create the stack set. If you do not specify\n an execution role, CloudFormation uses the AWSCloudFormationStackSetExecutionRole role\n for the stack set operation.

\n

Specify an IAM role only if you are using customized execution roles to control which\n stack resources users and groups can include in their stack sets.\n \n

" } }, "PermissionModel": { "target": "com.amazonaws.cloudformation#PermissionModels", "traits": { - "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created. By default, SELF-MANAGED is specified.

\n " + "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created. By default,\n SELF-MANAGED is specified.

\n " } }, "AutoDeployment": { "target": "com.amazonaws.cloudformation#AutoDeployment", "traits": { - "smithy.api#documentation": "

Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to the target organization or organizational unit (OU). Specify only if PermissionModel is SERVICE_MANAGED.

" + "smithy.api#documentation": "

Describes whether StackSets automatically deploys to Organizations accounts that\n are added to the target organization or organizational unit (OU). Specify only if\n PermissionModel is SERVICE_MANAGED.

" } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n \n

Stack sets with service-managed permissions are created in the management account, including stack sets that are created by delegated administrators.

" + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n \n

Stack sets with service-managed permissions are created in the management account,\n including stack sets that are created by delegated administrators.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this CreateStackSet request. Specify this token\n if you plan to retry requests so that AWS CloudFormation knows that you're not attempting\n to create another stack set with the same name. You might retry CreateStackSet\n requests to ensure that AWS CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.\n

", + "smithy.api#documentation": "

A unique identifier for this CreateStackSet request. Specify this token\n if you plan to retry requests so that CloudFormation knows that you're not\n attempting to create another stack set with the same name. You might retry\n CreateStackSet requests to ensure that CloudFormation successfully\n received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.\n

", "smithy.api#idempotencyToken": {} } } @@ -1655,7 +1664,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deactivates a public extension that was previously activated in this account and region.

\n

Once deactivated, an extension cannot be used in any CloudFormation operation. This includes stack update operations where the stack template includes the extension, even if no updates are being made to the extension. In addition, deactivated extensions are not automatically updated if a new version of the extension is released.

", + "smithy.api#documentation": "

Deactivates a public extension that was previously activated in this account and\n region.

\n

Once deactivated, an extension cannot be used in any CloudFormation operation. This\n includes stack update operations where the stack template includes the extension, even if\n no updates are being made to the extension. In addition, deactivated extensions are not\n automatically updated if a new version of the extension is released.

", "smithy.api#idempotent": {} } }, @@ -1665,19 +1674,19 @@ "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The type name of the extension, in this account and region. If you specified a type name alias when enabling the extension, use the type name alias.

\n

Conditional: You must specify either Arn, or TypeName and Type.

" + "smithy.api#documentation": "

The type name of the extension, in this account and region. If you specified a type name\n alias when enabling the extension, use the type name alias.

\n

Conditional: You must specify either Arn, or TypeName and\n Type.

" } }, "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The extension type.

\n

Conditional: You must specify either Arn, or TypeName and Type.

" + "smithy.api#documentation": "

The extension type.

\n

Conditional: You must specify either Arn, or TypeName and\n Type.

" } }, "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

Conditional: You must specify either Arn, or TypeName and Type.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

Conditional: You must specify either Arn, or TypeName and\n Type.

" } } } @@ -1700,7 +1709,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the specified change set. Deleting change sets ensures that no one executes\n the wrong change set.

\n

If the call successfully completes, AWS CloudFormation successfully deleted the\n change set.

\n

If IncludeNestedStacks specifies True during the creation of\n the nested change set, then DeleteChangeSet will delete all change sets that belong to the stacks hierarchy and\n will also delete all change sets for nested stacks with the status of REVIEW_IN_PROGRESS.

" + "smithy.api#documentation": "

Deletes the specified change set. Deleting change sets ensures that no one executes\n the wrong change set.

\n

If the call successfully completes, CloudFormation successfully deleted the\n change set.

\n

If IncludeNestedStacks specifies True during the creation of\n the nested change set, then DeleteChangeSet will delete all change sets that\n belong to the stacks hierarchy and will also delete all change sets for nested stacks with\n the status of REVIEW_IN_PROGRESS.

" } }, "com.amazonaws.cloudformation#DeleteChangeSetInput": { @@ -1758,19 +1767,19 @@ "RetainResources": { "target": "com.amazonaws.cloudformation#RetainResources", "traits": { - "smithy.api#documentation": "

For stacks in the DELETE_FAILED state, a list of resource logical IDs\n that are associated with the resources you want to retain. During deletion, AWS\n CloudFormation deletes the stack but does not delete the retained resources.

\n

Retaining resources is useful when you cannot delete a resource, such as a non-empty\n S3 bucket, but you want to delete the stack.

" + "smithy.api#documentation": "

For stacks in the DELETE_FAILED state, a list of resource logical IDs\n that are associated with the resources you want to retain. During deletion, CloudFormation deletes the stack but does not delete the retained resources.

\n

Retaining resources is useful when you cannot delete a resource, such as a non-empty\n S3 bucket, but you want to delete the stack.

" } }, "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes to delete the stack. AWS CloudFormation uses the role's\n credentials to make calls on your behalf.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes to delete the stack. CloudFormation uses the role's\n credentials to make calls on your behalf.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this DeleteStack request. Specify this token if\n you plan to retry requests so that AWS CloudFormation knows that you're not attempting to\n delete a stack with the same name. You might retry DeleteStack requests to\n ensure that AWS CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" + "smithy.api#documentation": "

A unique identifier for this DeleteStack request. Specify this token if\n you plan to retry requests so that CloudFormation knows that you're not attempting\n to delete a stack with the same name. You might retry DeleteStack requests to\n ensure that CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" } } }, @@ -1820,13 +1829,13 @@ "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The names of the AWS accounts that you want to delete stack instances for.

\n

You can specify Accounts or DeploymentTargets, but not both.

" + "smithy.api#documentation": "

[Self-managed permissions] The names of the accounts that you want\n to delete stack instances for.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" } }, "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts from which to delete stack instances.

\n

You can specify Accounts or DeploymentTargets, but not both.

" + "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts from which to delete\n stack instances.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" } }, "Regions": { @@ -1839,7 +1848,7 @@ "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

Preferences for how AWS CloudFormation performs this stack set operation.

" + "smithy.api#documentation": "

Preferences for how CloudFormation performs this stack set\n operation.

" } }, "RetainStacks": { @@ -1852,14 +1861,14 @@ "OperationId": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

If you don't specify an operation ID, the SDK generates one automatically.

\n

The operation ID also functions as an idempotency token, to ensure that AWS\n CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You can retry stack set operation requests to ensure that AWS\n CloudFormation successfully received them.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", + "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

If you don't specify an operation ID, the SDK generates one automatically.

\n

The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You can retry stack set operation requests to ensure that CloudFormation successfully received them.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", "smithy.api#idempotencyToken": {} } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -1908,7 +1917,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -1926,24 +1935,24 @@ "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

The names of one or more AWS accounts for which you want to deploy stack set updates.

" + "smithy.api#documentation": "

The names of one or more accounts for which you want to deploy stack\n set updates.

" } }, "AccountsUrl": { "target": "com.amazonaws.cloudformation#AccountsUrl", "traits": { - "smithy.api#documentation": "

Returns the value of the AccountsUrl property.

" + "smithy.api#documentation": "

Returns the value of the AccountsUrl property.

" } }, "OrganizationalUnitIds": { "target": "com.amazonaws.cloudformation#OrganizationalUnitIdList", "traits": { - "smithy.api#documentation": "

The organization root ID or organizational unit (OU) IDs to which StackSets deploys.

" + "smithy.api#documentation": "

The organization root ID or organizational unit (OU) IDs to which StackSets\n deploys.

" } } }, "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts to which StackSets deploys. StackSets does not deploy stack instances to the organization management account, even if the organization management account is in your organization or in an OU in your organization.

\n

For update operations, you can specify either Accounts or OrganizationalUnitIds. For create and delete operations, specify OrganizationalUnitIds.

" + "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts to which StackSets\n deploys. StackSets does not deploy stack instances to the organization management account,\n even if the organization management account is in your organization or in an OU in your\n organization.

\n

For update operations, you can specify either Accounts or\n OrganizationalUnitIds. For create and delete operations, specify\n OrganizationalUnitIds.

" } }, "com.amazonaws.cloudformation#DeprecatedStatus": { @@ -1978,7 +1987,7 @@ } ], "traits": { - "smithy.api#documentation": "

Marks an extension or extension version as DEPRECATED in the CloudFormation registry, removing it from active use. Deprecated extensions or extension versions cannot be used in CloudFormation operations.

\n

To deregister an entire extension, you must individually deregister all active versions of that extension. If an extension has only a single active version, deregistering that version results in the extension itself being deregistered and marked as deprecated in the registry.

\n

You cannot deregister the default version of an extension if there are other active version of that extension. If you do deregister the default version of an extension, the textensionype itself is deregistered as well and marked as deprecated.

\n

To view the deprecation status of an extension or extension version, use DescribeType.

", + "smithy.api#documentation": "

Marks an extension or extension version as DEPRECATED in the CloudFormation registry, removing it from active use. Deprecated extensions or\n extension versions cannot be used in CloudFormation operations.

\n

To deregister an entire extension, you must individually deregister all active versions\n of that extension. If an extension has only a single active version, deregistering that\n version results in the extension itself being deregistered and marked as deprecated in the\n registry.

\n

You cannot deregister the default version of an extension if there are other active\n version of that extension. If you do deregister the default version of an extension, the\n textensionype itself is deregistered as well and marked as deprecated.

\n

To view the deprecation status of an extension or extension version, use DescribeType.

", "smithy.api#idempotent": {} } }, @@ -1988,25 +1997,25 @@ "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.

" + "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of\n the Amazon Resource Name (ARN) assigned to the extension version when it is\n registered.

" } } } @@ -2024,7 +2033,7 @@ "target": "com.amazonaws.cloudformation#DescribeAccountLimitsOutput" }, "traits": { - "smithy.api#documentation": "

Retrieves your account's AWS CloudFormation limits, such as the maximum number of\n stacks that you can create in your account. For more information about account limits, see\n AWS CloudFormation\n Limits in the AWS CloudFormation User Guide.

", + "smithy.api#documentation": "

Retrieves your account's CloudFormation limits, such as the maximum number of\n stacks that you can create in your account. For more information about account limits, see\n CloudFormation Limits in the CloudFormation User\n Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -2052,7 +2061,7 @@ "AccountLimits": { "target": "com.amazonaws.cloudformation#AccountLimitList", "traits": { - "smithy.api#documentation": "

An account limit structure that contain a list of AWS CloudFormation account limits\n and their values.

" + "smithy.api#documentation": "

An account limit structure that contain a list of CloudFormation account\n limits and their values.

" } }, "NextToken": { @@ -2080,7 +2089,44 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the inputs for the change set and a list of changes that AWS CloudFormation\n will make if you execute the change set. For more information, see Updating Stacks Using Change Sets in the AWS CloudFormation User\n Guide.

" + "smithy.api#documentation": "

Returns the inputs for the change set and a list of changes that CloudFormation will make if you execute the change set. For more information, see Updating Stacks Using Change Sets in the CloudFormation User\n Guide.

", + "smithy.api#suppress": [ + "WaitableTraitInvalidErrorType" + ], + "smithy.waiters#waitable": { + "ChangeSetCreateComplete": { + "documentation": "Wait until change set status is CREATE_COMPLETE.", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "Status", + "expected": "CREATE_COMPLETE", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Status", + "expected": "FAILED", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationError" + } + } + ], + "minDelay": 30 + } + } } }, "com.amazonaws.cloudformation#DescribeChangeSetInput": { @@ -2158,7 +2204,7 @@ "ExecutionStatus": { "target": "com.amazonaws.cloudformation#ExecutionStatus", "traits": { - "smithy.api#documentation": "

If the change set execution status is AVAILABLE, you can execute the\n change set. If you can’t execute the change set, the status indicates why. For example, a\n change set might be in an UNAVAILABLE state because AWS CloudFormation is\n still creating it or in an OBSOLETE state because the stack was already\n updated.

" + "smithy.api#documentation": "

If the change set execution status is AVAILABLE, you can execute the\n change set. If you can’t execute the change set, the status indicates why. For example, a\n change set might be in an UNAVAILABLE state because CloudFormation is\n still creating it or in an OBSOLETE state because the stack was already\n updated.

" } }, "Status": { @@ -2170,7 +2216,7 @@ "StatusReason": { "target": "com.amazonaws.cloudformation#ChangeSetStatusReason", "traits": { - "smithy.api#documentation": "

A description of the change set's status. For example, if your attempt to create a\n change set failed, AWS CloudFormation shows the error message.

" + "smithy.api#documentation": "

A description of the change set's status. For example, if your attempt to create a\n change set failed, CloudFormation shows the error message.

" } }, "NotificationARNs": { @@ -2182,7 +2228,7 @@ "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "Capabilities": { @@ -2200,7 +2246,7 @@ "Changes": { "target": "com.amazonaws.cloudformation#Changes", "traits": { - "smithy.api#documentation": "

A list of Change structures that describes the resources AWS\n CloudFormation changes if you execute the change set.

" + "smithy.api#documentation": "

A list of Change structures that describes the resources CloudFormation changes if you execute the change set.

" } }, "NextToken": { @@ -2218,13 +2264,13 @@ "ParentChangeSetId": { "target": "com.amazonaws.cloudformation#ChangeSetId", "traits": { - "smithy.api#documentation": "

Specifies the change set ID of the parent change set in the current nested change set hierarchy.

" + "smithy.api#documentation": "

Specifies the change set ID of the parent change set in the current nested change set\n hierarchy.

" } }, "RootChangeSetId": { "target": "com.amazonaws.cloudformation#ChangeSetId", "traits": { - "smithy.api#documentation": "

Specifies the change set ID of the root change set in the current nested change set hierarchy.

" + "smithy.api#documentation": "

Specifies the change set ID of the root change set in the current nested change set\n hierarchy.

" } } }, @@ -2246,7 +2292,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns information about a CloudFormation extension publisher.

\n

If you do not supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account.

\n

For more information on registering as a publisher, see:

\n ", + "smithy.api#documentation": "

Returns information about a CloudFormation extension publisher.

\n

If you do not supply a PublisherId, and you have registered as an extension\n publisher, DescribePublisher returns information about your own publisher\n account.

\n

For more information on registering as a publisher, see:

\n ", "smithy.api#idempotent": {} } }, @@ -2256,7 +2302,7 @@ "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The ID of the extension publisher.

\n

If you do not supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account.

" + "smithy.api#documentation": "

The ID of the extension publisher.

\n

If you do not supply a PublisherId, and you have registered as an extension\n publisher, DescribePublisher returns information about your own publisher\n account.

" } } } @@ -2273,13 +2319,13 @@ "PublisherStatus": { "target": "com.amazonaws.cloudformation#PublisherStatus", "traits": { - "smithy.api#documentation": "

Whether the publisher is verified. Currently, all registered publishers are verified.

" + "smithy.api#documentation": "

Whether the publisher is verified. Currently, all registered publishers are\n verified.

" } }, "IdentityProvider": { "target": "com.amazonaws.cloudformation#IdentityProvider", "traits": { - "smithy.api#documentation": "

The type of account used as the identity provider when registering this publisher with CloudFormation.

" + "smithy.api#documentation": "

The type of account used as the identity provider when registering this publisher with\n CloudFormation.

" } }, "PublisherProfile": { @@ -2308,7 +2354,7 @@ "StackDriftDetectionId": { "target": "com.amazonaws.cloudformation#StackDriftDetectionId", "traits": { - "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of drift results AWS CloudFormation retains for any given stack, and for how\n long, may vary.

", + "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of drift results CloudFormation retains for any given stack, and for how\n long, may vary.

", "smithy.api#required": {} } } @@ -2327,20 +2373,20 @@ "StackDriftDetectionId": { "target": "com.amazonaws.cloudformation#StackDriftDetectionId", "traits": { - "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of reports AWS CloudFormation retains for any given stack, and for how long,\n may vary.

", + "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of reports CloudFormation retains for any given stack, and for how long,\n may vary.

", "smithy.api#required": {} } }, "StackDriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected configuration.

\n " + "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected configuration.

\n " } }, "DetectionStatus": { "target": "com.amazonaws.cloudformation#StackDriftDetectionStatus", "traits": { - "smithy.api#documentation": "

The status of the stack drift detection operation.

\n ", + "smithy.api#documentation": "

The status of the stack drift detection operation.

\n ", "smithy.api#required": {} } }, @@ -2374,7 +2420,7 @@ "target": "com.amazonaws.cloudformation#DescribeStackEventsOutput" }, "traits": { - "smithy.api#documentation": "

Returns all stack related events for a specified stack in reverse chronological\n order. For more information about a stack's event history, go to Stacks in the AWS CloudFormation User Guide.

\n \n

You can list events for stacks that have failed to create or have been deleted by\n specifying the unique stack identifier (stack ID).

\n
", + "smithy.api#documentation": "

Returns all stack related events for a specified stack in reverse chronological\n order. For more information about a stack's event history, go to Stacks in the CloudFormation User Guide.

\n \n

You can list events for stacks that have failed to create or have been deleted by\n specifying the unique stack identifier (stack ID).

\n
", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -2439,7 +2485,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the stack instance that's associated with the specified stack set, AWS\n account, and Region.

\n

For a list of stack instances that are associated with a specific stack set, use\n ListStackInstances.

" + "smithy.api#documentation": "

Returns the stack instance that's associated with the specified stack set, account, and Region.

\n

For a list of stack instances that are associated with a specific stack set, use\n ListStackInstances.

" } }, "com.amazonaws.cloudformation#DescribeStackInstanceInput": { @@ -2455,7 +2501,7 @@ "StackInstanceAccount": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

The ID of an AWS account that's associated with this stack instance.

", + "smithy.api#documentation": "

The ID of an account that's associated with this stack\n instance.

", "smithy.api#required": {} } }, @@ -2469,7 +2515,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -2506,7 +2552,7 @@ "target": "com.amazonaws.cloudformation#DescribeStackResourceDriftsOutput" }, "traits": { - "smithy.api#documentation": "

Returns drift information for the resources that have been checked for drift in the\n specified stack. This includes actual and expected configuration values for resources where\n AWS CloudFormation detects configuration drift.

\n

For a given stack, there will be one StackResourceDrift for each stack\n resource that has been checked for drift. Resources that have not yet been checked for\n drift are not included. Resources that do not currently support drift detection are not\n checked, and so not included. For a list of resources that support drift detection, see\n Resources that Support Drift Detection.

\n

Use DetectStackResourceDrift to detect drift on individual\n resources, or DetectStackDrift to detect drift on all supported resources\n for a given stack.

", + "smithy.api#documentation": "

Returns drift information for the resources that have been checked for drift in the\n specified stack. This includes actual and expected configuration values for resources where\n CloudFormation detects configuration drift.

\n

For a given stack, there will be one StackResourceDrift for each stack\n resource that has been checked for drift. Resources that have not yet been checked for\n drift are not included. Resources that do not currently support drift detection are not\n checked, and so not included. For a list of resources that support drift detection, see\n Resources that Support Drift Detection.

\n

Use DetectStackResourceDrift to detect drift on individual\n resources, or DetectStackDrift to detect drift on all supported resources\n for a given stack.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -2527,7 +2573,7 @@ "StackResourceDriftStatusFilters": { "target": "com.amazonaws.cloudformation#StackResourceDriftStatusFilters", "traits": { - "smithy.api#documentation": "

The resource drift status values to use as filters for the resource drift results\n returned.

\n " + "smithy.api#documentation": "

The resource drift status values to use as filters for the resource drift results\n returned.

\n " } }, "NextToken": { @@ -2550,7 +2596,7 @@ "StackResourceDrifts": { "target": "com.amazonaws.cloudformation#StackResourceDrifts", "traits": { - "smithy.api#documentation": "

Drift information for the resources that have been checked for drift in the specified\n stack. This includes actual and expected configuration values for resources where AWS CloudFormation\n detects drift.

\n

For a given stack, there will be one StackResourceDrift for each stack\n resource that has been checked for drift. Resources that have not yet been checked for\n drift are not included. Resources that do not currently support drift detection are not\n checked, and so not included. For a list of resources that support drift detection, see\n Resources that Support Drift Detection.

", + "smithy.api#documentation": "

Drift information for the resources that have been checked for drift in the specified\n stack. This includes actual and expected configuration values for resources where CloudFormation\n detects drift.

\n

For a given stack, there will be one StackResourceDrift for each stack\n resource that has been checked for drift. Resources that have not yet been checked for\n drift are not included. Resources that do not currently support drift detection are not\n checked, and so not included. For a list of resources that support drift detection, see\n Resources that Support Drift Detection.

", "smithy.api#required": {} } }, @@ -2607,7 +2653,7 @@ "target": "com.amazonaws.cloudformation#DescribeStackResourcesOutput" }, "traits": { - "smithy.api#documentation": "

Returns AWS resource descriptions for running and deleted stacks. If\n StackName is specified, all the associated resources that are part of the\n stack are returned. If PhysicalResourceId is specified, the associated\n resources of the stack that the resource belongs to are returned.

\n \n

Only the first 100 resources will be returned. If your stack has more resources\n than this, you should use ListStackResources instead.

\n
\n

For deleted stacks, DescribeStackResources returns resource information\n for up to 90 days after the stack has been deleted.

\n

You must specify either StackName or PhysicalResourceId,\n but not both. In addition, you can specify LogicalResourceId to filter the\n returned result. For more information about resources, the LogicalResourceId\n and PhysicalResourceId, go to the AWS CloudFormation User\n Guide.

\n \n

A ValidationError is returned if you specify both\n StackName and PhysicalResourceId in the same\n request.

\n
" + "smithy.api#documentation": "

Returns Amazon Web Services resource descriptions for running and deleted stacks. If\n StackName is specified, all the associated resources that are part of the\n stack are returned. If PhysicalResourceId is specified, the associated\n resources of the stack that the resource belongs to are returned.

\n \n

Only the first 100 resources will be returned. If your stack has more resources\n than this, you should use ListStackResources instead.

\n
\n

For deleted stacks, DescribeStackResources returns resource information\n for up to 90 days after the stack has been deleted.

\n

You must specify either StackName or PhysicalResourceId,\n but not both. In addition, you can specify LogicalResourceId to filter the\n returned result. For more information about resources, the LogicalResourceId\n and PhysicalResourceId, go to the CloudFormation User\n Guide.

\n \n

A ValidationError is returned if you specify both\n StackName and PhysicalResourceId in the same\n request.

\n
" } }, "com.amazonaws.cloudformation#DescribeStackResourcesInput": { @@ -2628,7 +2674,7 @@ "PhysicalResourceId": { "target": "com.amazonaws.cloudformation#PhysicalResourceId", "traits": { - "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by AWS CloudFormation.

\n

For example, for an Amazon Elastic Compute Cloud (EC2) instance,\n PhysicalResourceId corresponds to the InstanceId. You can pass\n the EC2 InstanceId to DescribeStackResources to find which stack\n the instance belongs to and what other resources are part of the stack.

\n

Required: Conditional. If you do not specify PhysicalResourceId, you\n must specify StackName.

\n

Default: There is no default value.

" + "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by CloudFormation.

\n

For example, for an Amazon Elastic Compute Cloud (EC2) instance,\n PhysicalResourceId corresponds to the InstanceId. You can pass\n the EC2 InstanceId to DescribeStackResources to find which stack\n the instance belongs to and what other resources are part of the stack.

\n

Required: Conditional. If you do not specify PhysicalResourceId, you\n must specify StackName.

\n

Default: There is no default value.

" } } }, @@ -2680,7 +2726,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -2725,7 +2771,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -2766,6 +2812,358 @@ "inputToken": "NextToken", "outputToken": "NextToken", "items": "Stacks" + }, + "smithy.api#suppress": [ + "WaitableTraitInvalidErrorType" + ], + "smithy.waiters#waitable": { + "StackCreateComplete": { + "documentation": "Wait until stack status is CREATE_COMPLETE.", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "CREATE_COMPLETE", + "comparator": "allStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "CREATE_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "DELETE_COMPLETE", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "DELETE_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "ROLLBACK_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "ROLLBACK_COMPLETE", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationError" + } + } + ], + "minDelay": 30 + }, + "StackDeleteComplete": { + "documentation": "Wait until stack status is DELETE_COMPLETE.", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "DELETE_COMPLETE", + "comparator": "allStringEquals" + } + } + }, + { + "state": "success", + "matcher": { + "errorType": "ValidationError" + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "DELETE_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "CREATE_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "ROLLBACK_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_ROLLBACK_IN_PROGRESS", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_ROLLBACK_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_ROLLBACK_COMPLETE", + "comparator": "anyStringEquals" + } + } + } + ], + "minDelay": 30 + }, + "StackExists": { + "acceptors": [ + { + "state": "success", + "matcher": { + "success": true + } + }, + { + "state": "retry", + "matcher": { + "errorType": "ValidationError" + } + } + ], + "minDelay": 5 + }, + "StackImportComplete": { + "documentation": "Wait until stack status is IMPORT_COMPLETE.", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "IMPORT_COMPLETE", + "comparator": "allStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "ROLLBACK_COMPLETE", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "ROLLBACK_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "IMPORT_ROLLBACK_IN_PROGRESS", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "IMPORT_ROLLBACK_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "IMPORT_ROLLBACK_COMPLETE", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationError" + } + } + ], + "minDelay": 30 + }, + "StackRollbackComplete": { + "documentation": "Wait until stack status is UPDATE_ROLLBACK_COMPLETE.", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_ROLLBACK_COMPLETE", + "comparator": "allStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_ROLLBACK_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "DELETE_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationError" + } + } + ], + "minDelay": 30 + }, + "StackUpdateComplete": { + "documentation": "Wait until stack status is UPDATE_COMPLETE.", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_COMPLETE", + "comparator": "allStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_ROLLBACK_FAILED", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Stacks[].StackStatus", + "expected": "UPDATE_ROLLBACK_COMPLETE", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationError" + } + } + ], + "minDelay": 30 + } } } }, @@ -2826,7 +3224,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns detailed information about an extension that has been registered.

\n

If you specify a VersionId, DescribeType returns information about that specific extension version. Otherwise, it returns information about the default extension version.

", + "smithy.api#documentation": "

Returns detailed information about an extension that has been registered.

\n

If you specify a VersionId, DescribeType returns information\n about that specific extension version. Otherwise, it returns information about the default\n extension version.

", "smithy.api#idempotent": {} } }, @@ -2836,25 +3234,25 @@ "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "Arn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.

\n

If you specify a VersionId, DescribeType returns information about that specific extension version. Otherwise, it returns information about the default extension version.

" + "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of\n the Amazon Resource Name (ARN) assigned to the extension version when it is\n registered.

\n

If you specify a VersionId, DescribeType returns information\n about that specific extension version. Otherwise, it returns information about the default\n extension version.

" } }, "PublisherId": { @@ -2889,31 +3287,31 @@ "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

If the extension is a public third-party type you have activated with a type name alias, CloudFormation returns the type name alias. For more information, see ActivateType.

" + "smithy.api#documentation": "

The name of the extension.

\n

If the extension is a public third-party type you have activated with a type name alias,\n CloudFormation returns the type name alias. For more information, see ActivateType.

" } }, "DefaultVersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of the default version of the extension. The default version is used when the extension version is not specified.

\n

This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon and published by third parties, CloudFormation returns null. For more information, see RegisterType.

\n

To set the default version of an extension, use \n SetTypeDefaultVersion\n .

" + "smithy.api#documentation": "

The ID of the default version of the extension. The default version is used when the\n extension version is not specified.

\n

This applies only to private extensions you have registered in your account. For public\n extensions, both those provided by Amazon and published by third parties, CloudFormation\n returns null. For more information, see RegisterType.

\n

To set the default version of an extension, use \n SetTypeDefaultVersion\n .

" } }, "IsDefaultVersion": { "target": "com.amazonaws.cloudformation#IsDefaultVersion", "traits": { - "smithy.api#documentation": "

Whether the specified extension version is set as the default version.

\n

This applies only to private extensions you have registered in your account, and extensions published by Amazon. For public third-party extensions, whether or not they are activated in your account, CloudFormation returns null.

" + "smithy.api#documentation": "

Whether the specified extension version is set as the default version.

\n

This applies only to private extensions you have registered in your account, and\n extensions published by Amazon. For public third-party extensions, whether or not they are\n activated in your account, CloudFormation returns null.

" } }, "TypeTestsStatus": { "target": "com.amazonaws.cloudformation#TypeTestsStatus", "traits": { - "smithy.api#documentation": "

The contract test status of the registered extension version. To return the extension test status of a specifc extension version, you must specify VersionId.

\n

This applies only to registered private extension versions. CloudFormation does not return this information for public extensions, whether or not they are activated in your account.

\n " + "smithy.api#documentation": "

The contract test status of the registered extension version. To return the extension\n test status of a specifc extension version, you must specify VersionId.

\n

This applies only to registered private extension versions. CloudFormation does not\n return this information for public extensions, whether or not they are activated in your\n account.

\n " } }, "TypeTestsStatusDescription": { "target": "com.amazonaws.cloudformation#TypeTestsStatusDescription", "traits": { - "smithy.api#documentation": "

The description of the test status. To return the extension test status of a specifc extension version, you must specify VersionId.

\n

This applies only to registered private extension versions. CloudFormation does not return this information for public extensions, whether or not they are activated in your account.

" + "smithy.api#documentation": "

The description of the test status. To return the extension test status of a specifc\n extension version, you must specify VersionId.

\n

This applies only to registered private extension versions. CloudFormation does not\n return this information for public extensions, whether or not they are activated in your\n account.

" } }, "Description": { @@ -2925,43 +3323,43 @@ "Schema": { "target": "com.amazonaws.cloudformation#TypeSchema", "traits": { - "smithy.api#documentation": "

The schema that defines the extension.

\n

For more information on extension schemas, see Resource Provider Schema in the CloudFormation CLI User Guide.

" + "smithy.api#documentation": "

The schema that defines the extension.

\n

For more information on extension schemas, see Resource Provider\n Schema in the CloudFormation CLI User\n Guide.

" } }, "ProvisioningType": { "target": "com.amazonaws.cloudformation#ProvisioningType", "traits": { - "smithy.api#documentation": "

For resource type extensions, the provisioning behavior of the resource type. AWS CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted.

\n

Valid values include:

\n " + "smithy.api#documentation": "

For resource type extensions, the provisioning behavior of the resource type. CloudFormation\n determines the provisioning type during registration, based on the types of handlers in the\n schema handler package submitted.

\n

Valid values include:

\n " } }, "DeprecatedStatus": { "target": "com.amazonaws.cloudformation#DeprecatedStatus", "traits": { - "smithy.api#documentation": "

The deprecation status of the extension version.

\n

Valid values include:

\n \n

For public third-party extensions, CloudFormation returns null.

" + "smithy.api#documentation": "

The deprecation status of the extension version.

\n

Valid values include:

\n \n

For public third-party extensions, CloudFormation returns null.

" } }, "LoggingConfig": { "target": "com.amazonaws.cloudformation#LoggingConfig", "traits": { - "smithy.api#documentation": "

Contains logging configuration information for private extensions. This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon and published by third parties, CloudFormation returns null. For more information, see RegisterType.

" + "smithy.api#documentation": "

Contains logging configuration information for private extensions. This applies only to\n private extensions you have registered in your account. For public extensions, both those\n provided by Amazon and published by third parties, CloudFormation returns\n null. For more information, see RegisterType.

" } }, "RequiredActivatedTypes": { "target": "com.amazonaws.cloudformation#RequiredActivatedTypes", "traits": { - "smithy.api#documentation": "

For extensions that are modules, the public third-party extensions that must be activated in your account in order for the module itself to be activated.

" + "smithy.api#documentation": "

For extensions that are modules, the public third-party extensions that must be\n activated in your account in order for the module itself to be activated.

" } }, "ExecutionRoleArn": { "target": "com.amazonaws.cloudformation#RoleARN2", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM execution role used to register the extension. This applies only to private extensions you have registered in your account. For more information, see RegisterType.

\n

\n

If the registered extension calls any AWS APIs, you must create an \n IAM execution\n role\n that includes the necessary permissions to call those\n AWS APIs, and provision that execution role in your account. CloudFormation then\n assumes that execution role to provide your extension with the appropriate\n credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM execution role used to register the extension.\n This applies only to private extensions you have registered in your account. For more\n information, see RegisterType.

\n

\n

If the registered extension calls any Amazon Web Services APIs, you must create an\n \n IAM\n execution role\n that includes the necessary permissions to call\n those Amazon Web Services APIs, and provision that execution role in your account. CloudFormation then assumes that execution role to provide your extension with the\n appropriate credentials.

" } }, "Visibility": { "target": "com.amazonaws.cloudformation#Visibility", "traits": { - "smithy.api#documentation": "

The scope at which the extension is visible and usable in CloudFormation operations.

\n

Valid values include:

\n " + "smithy.api#documentation": "

The scope at which the extension is visible and usable in CloudFormation\n operations.

\n

Valid values include:

\n " } }, "SourceUrl": { @@ -2979,61 +3377,61 @@ "LastUpdated": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When the specified extension version was registered. This applies only to:

\n " + "smithy.api#documentation": "

When the specified extension version was registered. This applies only to:

\n " } }, "TimeCreated": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When the specified private extension version was registered or activated in your account.

" + "smithy.api#documentation": "

When the specified private extension version was registered or activated in your\n account.

" } }, "ConfigurationSchema": { "target": "com.amazonaws.cloudformation#ConfigurationSchema", "traits": { - "smithy.api#documentation": "

A JSON string that represent the current configuration data for the extension in this account and region.

\n

To set the configuration data for an extension, use SetTypeConfiguration. For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

" + "smithy.api#documentation": "

A JSON string that represent the current configuration data for the extension in this\n account and region.

\n

To set the configuration data for an extension, use SetTypeConfiguration. For more information, see Configuring extensions at the account level in the CloudFormation\n User Guide.

" } }, "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The publisher ID of the extension publisher.

\n

This applies only to public third-party extensions. For private registered extensions, and extensions provided by Amazon, CloudFormation returns null.

" + "smithy.api#documentation": "

The publisher ID of the extension publisher.

\n

This applies only to public third-party extensions. For private registered extensions,\n and extensions provided by Amazon, CloudFormation returns null.

" } }, "OriginalTypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the type name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this account and region, CloudFormation treats that alias as the extension's type name within the account and region, not the type name of the public extension. For more information, see Specifying aliases to refer to extensions in the CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the type\n name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this\n account and region, CloudFormation treats that alias as the extension's type name within\n the account and region, not the type name of the public extension. For more information,\n see Specifying aliases to refer to extensions in the\n CloudFormation User Guide.

" } }, "OriginalTypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the Amazon Resource Name (ARN) of the public extension.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the Amazon\n Resource Name (ARN) of the public extension.

" } }, "PublicVersionNumber": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

The version number of a public third-party extension.

\n

This applies only if you specify a public extension you have activated in your account, or specify a public extension without specifying a version. For all other extensions, CloudFormation returns null.

" + "smithy.api#documentation": "

The version number of a public third-party extension.

\n

This applies only if you specify a public extension you have activated in your account,\n or specify a public extension without specifying a version. For all other extensions,\n CloudFormation returns null.

" } }, "LatestPublicVersion": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

The latest version of a public extension that is available for use.

\n

This only applies if you specify a public extension, and you do not specify a version. For all other requests, CloudFormation returns null.

" + "smithy.api#documentation": "

The latest version of a public extension that is available for\n use.

\n

This only applies if you specify a public extension, and you do not specify a version.\n For all other requests, CloudFormation returns null.

" } }, "IsActivated": { "target": "com.amazonaws.cloudformation#IsActivated", "traits": { - "smithy.api#documentation": "

Whether or not the extension is activated in the account and region.

\n

This only applies to public third-party extensions. For all other extensions, CloudFormation returns null.

" + "smithy.api#documentation": "

Whether or not the extension is activated in the account and region.

\n

This only applies to public third-party extensions. For all other extensions,\n CloudFormation returns null.

" } }, "AutoUpdate": { "target": "com.amazonaws.cloudformation#AutoUpdate", "traits": { - "smithy.api#documentation": "

Whether CloudFormation automatically updates the extension in this account and region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated. For more information, see Activating public extensions for use in your account in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

Whether CloudFormation automatically updates the extension in this account and region\n when a new minor version is published by the extension publisher.\n Major versions released by the publisher must be manually updated. For more information,\n see Activating public extensions for use in your account in the CloudFormation User Guide.

" } } } @@ -3052,7 +3450,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns information about an extension's registration, including its current status and type and version identifiers.

\n

When you initiate a registration request using \n RegisterType\n , you can then use \n DescribeTypeRegistration\n to monitor the progress of that registration request.

\n

Once the registration request has completed, use \n DescribeType\n to return detailed information about an extension.

", + "smithy.api#documentation": "

Returns information about an extension's registration, including its current status and\n type and version identifiers.

\n

When you initiate a registration request using \n RegisterType\n , you can then use \n DescribeTypeRegistration\n to\n monitor the progress of that registration request.

\n

Once the registration request has completed, use \n DescribeType\n to return detailed information about an extension.

", "smithy.api#idempotent": {}, "smithy.waiters#waitable": { "TypeRegistrationComplete": { @@ -3090,7 +3488,7 @@ "RegistrationToken": { "target": "com.amazonaws.cloudformation#RegistrationToken", "traits": { - "smithy.api#documentation": "

The identifier for this registration request.

\n

This registration token is generated by CloudFormation when you initiate a registration request using \n RegisterType\n .

", + "smithy.api#documentation": "

The identifier for this registration request.

\n

This registration token is generated by CloudFormation when you initiate a\n registration request using \n RegisterType\n .

", "smithy.api#required": {} } } @@ -3114,13 +3512,13 @@ "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension being registered.

\n

For registration requests with a ProgressStatus of other than COMPLETE, this will be null.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension being registered.

\n

For registration requests with a ProgressStatus of other than\n COMPLETE, this will be null.

" } }, "TypeVersionArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of this specific version of the extension being registered.

\n

For registration requests with a ProgressStatus of other than COMPLETE, this will be null.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of this specific version of the extension being\n registered.

\n

For registration requests with a ProgressStatus of other than\n COMPLETE, this will be null.

" } } } @@ -3143,7 +3541,7 @@ "target": "com.amazonaws.cloudformation#DetectStackDriftOutput" }, "traits": { - "smithy.api#documentation": "

Detects whether a stack's actual configuration differs, or has\n drifted, from it's expected configuration, as defined in the stack\n template and any values specified as template parameters. For each resource in the stack\n that supports drift detection, AWS CloudFormation compares the actual configuration of the resource with\n its expected template configuration. Only resource properties explicitly defined in the\n stack template are checked for drift. A stack is considered to have drifted if one or more\n of its resources differ from their expected template configurations. For more information,\n see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Use DetectStackDrift to detect drift on all supported resources for a\n given stack, or DetectStackResourceDrift to detect drift on individual\n resources.

\n

For a list of stack resources that currently support drift detection, see Resources that Support Drift Detection.

\n

\n DetectStackDrift can take up to several minutes, depending on the number\n of resources contained within the stack. Use DescribeStackDriftDetectionStatus to monitor the progress of a detect stack\n drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and\n its resources.

\n

When detecting drift on a stack, AWS CloudFormation does not detect drift on any nested stacks\n belonging to that stack. Perform DetectStackDrift directly on the nested stack\n itself.

" + "smithy.api#documentation": "

Detects whether a stack's actual configuration differs, or has\n drifted, from it's expected configuration, as defined in the stack\n template and any values specified as template parameters. For each resource in the stack\n that supports drift detection, CloudFormation compares the actual configuration of the resource with\n its expected template configuration. Only resource properties explicitly defined in the\n stack template are checked for drift. A stack is considered to have drifted if one or more\n of its resources differ from their expected template configurations. For more information,\n see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Use DetectStackDrift to detect drift on all supported resources for a\n given stack, or DetectStackResourceDrift to detect drift on individual\n resources.

\n

For a list of stack resources that currently support drift detection, see Resources that Support Drift Detection.

\n

\n DetectStackDrift can take up to several minutes, depending on the number\n of resources contained within the stack. Use DescribeStackDriftDetectionStatus to monitor the progress of a detect stack\n drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and\n its resources.

\n

When detecting drift on a stack, CloudFormation does not detect drift on any nested stacks\n belonging to that stack. Perform DetectStackDrift directly on the nested stack\n itself.

" } }, "com.amazonaws.cloudformation#DetectStackDriftInput": { @@ -3170,7 +3568,7 @@ "StackDriftDetectionId": { "target": "com.amazonaws.cloudformation#StackDriftDetectionId", "traits": { - "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of drift results AWS CloudFormation retains for any given stack, and for how\n long, may vary.

", + "smithy.api#documentation": "

The ID of the drift detection results of this operation.

\n

CloudFormation generates new results, with a new drift detection ID, each time this operation\n is run. However, the number of drift results CloudFormation retains for any given stack, and for how\n long, may vary.

", "smithy.api#required": {} } } @@ -3185,7 +3583,7 @@ "target": "com.amazonaws.cloudformation#DetectStackResourceDriftOutput" }, "traits": { - "smithy.api#documentation": "

Returns information about whether a resource's actual configuration differs, or has\n drifted, from it's expected configuration, as defined in the stack\n template and any values specified as template parameters. This information includes actual\n and expected property values for resources in which AWS CloudFormation detects drift. Only resource\n properties explicitly defined in the stack template are checked for drift. For more\n information about stack and resource drift, see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Use DetectStackResourceDrift to detect drift on individual resources, or\n DetectStackDrift to detect drift on all resources in a given stack\n that support drift detection.

\n

Resources that do not currently support drift detection cannot be checked. For a list\n of resources that support drift detection, see Resources that Support Drift Detection.

" + "smithy.api#documentation": "

Returns information about whether a resource's actual configuration differs, or has\n drifted, from it's expected configuration, as defined in the stack\n template and any values specified as template parameters. This information includes actual\n and expected property values for resources in which CloudFormation detects drift. Only resource\n properties explicitly defined in the stack template are checked for drift. For more\n information about stack and resource drift, see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Use DetectStackResourceDrift to detect drift on individual resources, or\n DetectStackDrift to detect drift on all resources in a given stack\n that support drift detection.

\n

Resources that do not currently support drift detection cannot be checked. For a list\n of resources that support drift detection, see Resources that Support Drift Detection.

" } }, "com.amazonaws.cloudformation#DetectStackResourceDriftInput": { @@ -3239,7 +3637,7 @@ } ], "traits": { - "smithy.api#documentation": "

Detect drift on a stack set. When CloudFormation performs drift detection on a stack\n set, it performs drift detection on the stack associated with each stack instance in the\n stack set. For more information, see How CloudFormation\n Performs Drift Detection on a Stack Set.

\n

\n DetectStackSetDrift returns the OperationId of the stack set\n drift detection operation. Use this operation id with \n DescribeStackSetOperation\n to monitor the progress of the drift\n detection operation. The drift detection operation may take some time, depending on the\n number of stack instances included in the stack set, as well as the number of resources\n included in each stack.

\n

Once the operation has completed, use the following actions to return drift\n information:

\n \n

For more information on performing a drift detection operation on a stack set, see\n Detecting Unmanaged\n Changes in Stack Sets.

\n

You can only run a single drift detection operation on a given stack set at one time.

\n

To stop a drift detection stack set operation, use \n StopStackSetOperation\n .

" + "smithy.api#documentation": "

Detect drift on a stack set. When CloudFormation performs drift detection on a\n stack set, it performs drift detection on the stack associated with each stack instance in\n the stack set. For more information, see How CloudFormation Performs Drift Detection on a Stack Set.

\n

\n DetectStackSetDrift returns the OperationId of the stack set\n drift detection operation. Use this operation id with \n DescribeStackSetOperation\n to monitor the progress of the drift\n detection operation. The drift detection operation may take some time, depending on the\n number of stack instances included in the stack set, as well as the number of resources\n included in each stack.

\n

Once the operation has completed, use the following actions to return drift\n information:

\n \n

For more information on performing a drift detection operation on a stack set, see\n Detecting Unmanaged\n Changes in Stack Sets.

\n

You can only run a single drift detection operation on a given stack set at one time.

\n

To stop a drift detection stack set operation, use \n StopStackSetOperation\n .

" } }, "com.amazonaws.cloudformation#DetectStackSetDriftInput": { @@ -3265,7 +3663,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -3347,7 +3745,7 @@ "target": "com.amazonaws.cloudformation#EstimateTemplateCostOutput" }, "traits": { - "smithy.api#documentation": "

Returns the estimated monthly cost of a template. The return value is an AWS Simple\n Monthly Calculator URL with a query string that describes the resources required to run the\n template.

" + "smithy.api#documentation": "

Returns the estimated monthly cost of a template. The return value is an Amazon Web Services Simple Monthly Calculator URL with a query string that describes the\n resources required to run the template.

" } }, "com.amazonaws.cloudformation#EstimateTemplateCostInput": { @@ -3356,13 +3754,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. (For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.)

\n

Conditional: You must pass TemplateBody or TemplateURL. If\n both are passed, only TemplateBody is used.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. (For more information, go to Template Anatomy\n in the CloudFormation User Guide.)

\n

Conditional: You must pass TemplateBody or TemplateURL. If\n both are passed, only TemplateBody is used.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template that\n is located in an Amazon S3 bucket or a Systems Manager document. For more information, go to\n Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template that\n is located in an Amazon S3 bucket or a Systems Manager document. For more information, go\n to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" } }, "Parameters": { @@ -3382,7 +3780,7 @@ "Url": { "target": "com.amazonaws.cloudformation#Url", "traits": { - "smithy.api#documentation": "

An AWS Simple Monthly Calculator URL with a query string that describes the resources\n required to run the template.

" + "smithy.api#documentation": "

An Amazon Web Services Simple Monthly Calculator URL with a query string that\n describes the resources required to run the template.

" } } }, @@ -3431,7 +3829,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates a stack using the input information that was provided when the specified\n change set was created. After the call successfully completes, AWS CloudFormation starts\n updating the stack. Use the DescribeStacks action to view the status of\n the update.

\n

When you execute a change set, AWS CloudFormation deletes all other change sets\n associated with the stack because they aren't valid for the updated stack.

\n

If a stack policy is associated with the stack, AWS CloudFormation enforces the\n policy during the update. You can't specify a temporary stack policy that overrides the\n current policy.

\n

To create a change set for the entire stack hierachy, IncludeNestedStacks\n must have been set to True.

" + "smithy.api#documentation": "

Updates a stack using the input information that was provided when the specified\n change set was created. After the call successfully completes, CloudFormation\n starts updating the stack. Use the DescribeStacks action to view the\n status of the update.

\n

When you execute a change set, CloudFormation deletes all other change sets\n associated with the stack because they aren't valid for the updated stack.

\n

If a stack policy is associated with the stack, CloudFormation enforces the\n policy during the update. You can't specify a temporary stack policy that overrides the\n current policy.

\n

To create a change set for the entire stack hierachy, IncludeNestedStacks\n must have been set to True.

" } }, "com.amazonaws.cloudformation#ExecuteChangeSetInput": { @@ -3453,7 +3851,7 @@ "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this ExecuteChangeSet request. Specify this\n token if you plan to retry requests so that AWS CloudFormation knows that you're not\n attempting to execute a change set to update a stack with the same name. You might retry\n ExecuteChangeSet requests to ensure that AWS CloudFormation successfully\n received them.

" + "smithy.api#documentation": "

A unique identifier for this ExecuteChangeSet request. Specify this\n token if you plan to retry requests so that CloudFormation knows that you're not\n attempting to execute a change set to update a stack with the same name. You might retry\n ExecuteChangeSet requests to ensure that CloudFormation\n successfully received them.

" } } }, @@ -3607,7 +4005,7 @@ "StackPolicyBody": { "target": "com.amazonaws.cloudformation#StackPolicyBody", "traits": { - "smithy.api#documentation": "

Structure containing the stack policy body. (For more information, go to Prevent Updates\n to Stack Resources in the AWS CloudFormation User Guide.)

" + "smithy.api#documentation": "

Structure containing the stack policy body. (For more information, go to Prevent Updates\n to Stack Resources in the CloudFormation User Guide.)

" } } }, @@ -3644,13 +4042,13 @@ "ChangeSetName": { "target": "com.amazonaws.cloudformation#ChangeSetNameOrId", "traits": { - "smithy.api#documentation": "

The name or Amazon Resource Name (ARN) of a change set for which AWS CloudFormation\n returns the associated template. If you specify a name, you must also specify the\n StackName.

" + "smithy.api#documentation": "

The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template. If you specify a name, you must also specify the\n StackName.

" } }, "TemplateStage": { "target": "com.amazonaws.cloudformation#TemplateStage", "traits": { - "smithy.api#documentation": "

For templates that include transforms, the stage of the template that AWS\n CloudFormation returns. To get the user-submitted template, specify Original.\n To get the template after AWS CloudFormation has processed all transforms, specify\n Processed.

\n

If the template doesn't include transforms, Original and\n Processed return the same template. By default, AWS CloudFormation\n specifies Processed.

" + "smithy.api#documentation": "

For templates that include transforms, the stage of the template that CloudFormation returns. To get the user-submitted template, specify\n Original. To get the template after CloudFormation has processed\n all transforms, specify Processed.

\n

If the template doesn't include transforms, Original and\n Processed return the same template. By default, CloudFormation\n specifies Processed.

" } } }, @@ -3664,13 +4062,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.)

\n

AWS CloudFormation returns the same template that was used when the stack was\n created.

" + "smithy.api#documentation": "

Structure containing the template body. (For more information, go to Template Anatomy in the CloudFormation User Guide.)

\n

CloudFormation returns the same template that was used when the stack was\n created.

" } }, "StagesAvailable": { "target": "com.amazonaws.cloudformation#StageList", "traits": { - "smithy.api#documentation": "

The stage of the template that you can retrieve. For stacks, the\n Original and Processed templates are always available. For\n change sets, the Original template is always available. After AWS\n CloudFormation finishes creating the change set, the Processed template\n becomes available.

" + "smithy.api#documentation": "

The stage of the template that you can retrieve. For stacks, the\n Original and Processed templates are always available. For\n change sets, the Original template is always available. After CloudFormation finishes creating the change set, the Processed template\n becomes available.

" } } }, @@ -3701,13 +4099,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information about templates, see Template Anatomy in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n StackName, StackSetName, TemplateBody, or\n TemplateURL.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information about templates, see Template Anatomy in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n StackName, StackSetName, TemplateBody, or\n TemplateURL.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information about templates, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n StackName, StackSetName, TemplateBody, or\n TemplateURL.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information about templates, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n StackName, StackSetName, TemplateBody, or\n TemplateURL.

" } }, "StackName": { @@ -3725,7 +4123,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } }, @@ -3751,7 +4149,7 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

The capabilities found within the template. If your template contains IAM resources,\n you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when\n you use the CreateStack or UpdateStack actions with\n your template; otherwise, those actions return an InsufficientCapabilities error.

\n

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

" + "smithy.api#documentation": "

The capabilities found within the template. If your template contains IAM resources,\n you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when\n you use the CreateStack or UpdateStack actions with\n your template; otherwise, those actions return an InsufficientCapabilities error.

\n

For more information, see Acknowledging IAM Resources in CloudFormation Templates.

" } }, "CapabilitiesReason": { @@ -3769,7 +4167,7 @@ "Version": { "target": "com.amazonaws.cloudformation#Version", "traits": { - "smithy.api#documentation": "

The AWS template format version, which identifies the capabilities of the\n template.

" + "smithy.api#documentation": "

The Amazon Web Services template format version, which identifies the capabilities of\n the template.

" } }, "Metadata": { @@ -3881,6 +4279,87 @@ ] } }, + "com.amazonaws.cloudformation#ImportStacksToStackSet": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudformation#ImportStacksToStackSetInput" + }, + "output": { + "target": "com.amazonaws.cloudformation#ImportStacksToStackSetOutput" + }, + "errors": [ + { + "target": "com.amazonaws.cloudformation#InvalidOperationException" + }, + { + "target": "com.amazonaws.cloudformation#LimitExceededException" + }, + { + "target": "com.amazonaws.cloudformation#OperationIdAlreadyExistsException" + }, + { + "target": "com.amazonaws.cloudformation#OperationInProgressException" + }, + { + "target": "com.amazonaws.cloudformation#StackNotFoundException" + }, + { + "target": "com.amazonaws.cloudformation#StackSetNotFoundException" + }, + { + "target": "com.amazonaws.cloudformation#StaleRequestException" + } + ], + "traits": { + "smithy.api#documentation": "

Import existing stacks into a new stack sets. Use the stack import operation to import\n up to 10 stacks into a new stack set in the same account as the source stack or in a\n different administrator account and Region, by specifying the stack ID of the stack you\n intend to import.

\n \n

\n ImportStacksToStackSet is only supported by self-managed permissions.

\n
" + } + }, + "com.amazonaws.cloudformation#ImportStacksToStackSetInput": { + "type": "structure", + "members": { + "StackSetName": { + "target": "com.amazonaws.cloudformation#StackSetNameOrId", + "traits": { + "smithy.api#documentation": "

The name of the stack set. The name must be unique in the Region where you create your\n stack set.

", + "smithy.api#required": {} + } + }, + "StackIds": { + "target": "com.amazonaws.cloudformation#StackIdList", + "traits": { + "smithy.api#documentation": "

The IDs of the stacks you are importing into a stack set. You import up to 10 stacks per\n stack set at a time.

", + "smithy.api#required": {} + } + }, + "OperationPreferences": { + "target": "com.amazonaws.cloudformation#StackSetOperationPreferences" + }, + "OperationId": { + "target": "com.amazonaws.cloudformation#ClientRequestToken", + "traits": { + "smithy.api#documentation": "

A unique, user defined, identifier for the stack set operation.

", + "smithy.api#idempotencyToken": {} + } + }, + "CallAs": { + "target": "com.amazonaws.cloudformation#CallAs", + "traits": { + "smithy.api#documentation": "

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " + } + } + } + }, + "com.amazonaws.cloudformation#ImportStacksToStackSetOutput": { + "type": "structure", + "members": { + "OperationId": { + "target": "com.amazonaws.cloudformation#ClientRequestToken", + "traits": { + "smithy.api#documentation": "

The unique identifier for the stack set operation.

" + } + } + } + }, "com.amazonaws.cloudformation#Imports": { "type": "list", "member": { @@ -3972,7 +4451,7 @@ "code": "InvalidStateTransition", "httpResponseCode": 400 }, - "smithy.api#documentation": "

Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to users.

", + "smithy.api#documentation": "

Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to\n users.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4013,7 +4492,7 @@ "code": "LimitExceededException", "httpResponseCode": 400 }, - "smithy.api#documentation": "

The quota for the resource has already been reached.

\n

For information on resource and stack limitations, see Limits in\n the AWS CloudFormation User Guide.

", + "smithy.api#documentation": "

The quota for the resource has already been reached.

\n

For information on resource and stack limitations, see Limits in\n the CloudFormation User Guide.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4036,7 +4515,7 @@ "target": "com.amazonaws.cloudformation#ListChangeSetsOutput" }, "traits": { - "smithy.api#documentation": "

Returns the ID and status of each active change set for a stack. For example, AWS\n CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or\n CREATE_PENDING state.

", + "smithy.api#documentation": "

Returns the ID and status of each active change set for a stack. For example, CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or\n CREATE_PENDING state.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -4094,7 +4573,7 @@ "target": "com.amazonaws.cloudformation#ListExportsOutput" }, "traits": { - "smithy.api#documentation": "

Lists all exported output values in the account and Region in which you call this\n action. Use this action to see the exported output values that you can import into other\n stacks. To import values, use the \n Fn::ImportValue\n function.

\n

For more information, see AWS\n CloudFormation Export Stack Output Values.

", + "smithy.api#documentation": "

Lists all exported output values in the account and Region in which you call this\n action. Use this action to see the exported output values that you can import into other\n stacks. To import values, use the \n Fn::ImportValue\n function.

\n

For more information, see \n CloudFormation Export Stack Output Values.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -4153,7 +4632,7 @@ "ExportName": { "target": "com.amazonaws.cloudformation#ExportName", "traits": { - "smithy.api#documentation": "

The name of the exported output value. AWS CloudFormation returns the stack names\n that are importing this value.

", + "smithy.api#documentation": "

The name of the exported output value. CloudFormation returns the stack names\n that are importing this value.

", "smithy.api#required": {} } }, @@ -4196,7 +4675,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns summary information about stack instances that are associated with the\n specified stack set. You can filter for stack instances that are associated with a specific\n AWS account name or Region, or that have a specific status.

", + "smithy.api#documentation": "

Returns summary information about stack instances that are associated with the\n specified stack set. You can filter for stack instances that are associated with a specific\n account name or Region, or that have a specific status.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -4236,7 +4715,7 @@ "StackInstanceAccount": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

The name of the AWS account that you want to list stack instances for.

" + "smithy.api#documentation": "

The name of the account that you want to list stack instances\n for.

" } }, "StackInstanceRegion": { @@ -4248,7 +4727,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -4386,7 +4865,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -4456,7 +4935,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -4487,7 +4966,7 @@ "target": "com.amazonaws.cloudformation#ListStackSetsOutput" }, "traits": { - "smithy.api#documentation": "

Returns summary information about stack sets that are associated with the\n user.

\n ", + "smithy.api#documentation": "

Returns summary information about stack sets that are associated with the\n user.

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -4520,7 +4999,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the management account or as a delegated administrator in a member\n account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -4628,19 +5107,19 @@ "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "RegistrationStatusFilter": { @@ -4652,13 +5131,13 @@ "MaxResults": { "target": "com.amazonaws.cloudformation#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

" + "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of\n available results exceeds this maximum, the response includes a NextToken\n value that you can assign to the NextToken request parameter to get the next\n set of results.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

" + "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the\n response object's NextToken parameter value is set to a token. To retrieve the\n next set of results, call this action again and assign that token to the request object's\n NextToken parameter. If there are no remaining results, the previous\n response object's NextToken parameter is set to null.

" } } } @@ -4669,13 +5148,13 @@ "RegistrationTokenList": { "target": "com.amazonaws.cloudformation#RegistrationTokenList", "traits": { - "smithy.api#documentation": "

A list of extension registration tokens.

\n

Use \n DescribeTypeRegistration\n to return detailed information about a type registration request.

" + "smithy.api#documentation": "

A list of extension registration tokens.

\n

Use \n DescribeTypeRegistration\n to return detailed\n information about a type registration request.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.

" + "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is\n set to a token. To retrieve the next set of results, call this action again and assign that\n token to the request object's NextToken parameter. If the request returns all\n results, NextToken is set to null.

" } } } @@ -4709,37 +5188,37 @@ "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The kind of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension for which you want version summary information.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The name of the extension for which you want version summary information.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "Arn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension for which you want version summary information.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension for which you want version summary\n information.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "MaxResults": { "target": "com.amazonaws.cloudformation#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

" + "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of\n available results exceeds this maximum, the response includes a NextToken\n value that you can assign to the NextToken request parameter to get the next\n set of results.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

" + "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the\n response object's NextToken parameter value is set to a token. To retrieve the\n next set of results, call this action again and assign that token to the request object's\n NextToken parameter. If there are no remaining results, the previous\n response object's NextToken parameter is set to null.

" } }, "DeprecatedStatus": { "target": "com.amazonaws.cloudformation#DeprecatedStatus", "traits": { - "smithy.api#documentation": "

The deprecation status of the extension versions that you want to get summary information about.

\n

Valid values include:

\n \n

The default is LIVE.

" + "smithy.api#documentation": "

The deprecation status of the extension versions that you want to get summary\n information about.

\n

Valid values include:

\n \n

The default is LIVE.

" } }, "PublisherId": { @@ -4756,13 +5235,13 @@ "TypeVersionSummaries": { "target": "com.amazonaws.cloudformation#TypeVersionSummaries", "traits": { - "smithy.api#documentation": "

A list of TypeVersionSummary structures that contain information about the specified extension's versions.

" + "smithy.api#documentation": "

A list of TypeVersionSummary structures that contain information about the\n specified extension's versions.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.

" + "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is\n set to a token. To retrieve the next set of results, call this action again and assign that\n token to the request object's NextToken parameter. If the request returns all\n results, NextToken is set to null.

" } } } @@ -4797,19 +5276,19 @@ "Visibility": { "target": "com.amazonaws.cloudformation#Visibility", "traits": { - "smithy.api#documentation": "

The scope at which the extensions are visible and usable in CloudFormation operations.

\n

Valid values include:

\n \n

The default is PRIVATE.

" + "smithy.api#documentation": "

The scope at which the extensions are visible and usable in CloudFormation\n operations.

\n

Valid values include:

\n \n

The default is PRIVATE.

" } }, "ProvisioningType": { "target": "com.amazonaws.cloudformation#ProvisioningType", "traits": { - "smithy.api#documentation": "

For resource types, the provisioning behavior of the resource type. AWS CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted.

\n

Valid values include:

\n \n

The default is FULLY_MUTABLE.

" + "smithy.api#documentation": "

For resource types, the provisioning behavior of the resource type. CloudFormation determines the\n provisioning type during registration, based on the types of handlers in the schema handler\n package submitted.

\n

Valid values include:

\n \n

The default is FULLY_MUTABLE.

" } }, "DeprecatedStatus": { "target": "com.amazonaws.cloudformation#DeprecatedStatus", "traits": { - "smithy.api#documentation": "

The deprecation status of the extension that you want to get summary information about.

\n

Valid values include:

\n " + "smithy.api#documentation": "

The deprecation status of the extension that you want to get summary information\n about.

\n

Valid values include:

\n " } }, "Type": { @@ -4821,19 +5300,19 @@ "Filters": { "target": "com.amazonaws.cloudformation#TypeFilters", "traits": { - "smithy.api#documentation": "

Filter criteria to use in determining which extensions to return.

\n

If you specify a filter, CloudFormation ignores any specified Visibility value when returning the list of types.

" + "smithy.api#documentation": "

Filter criteria to use in determining which extensions to return.

\n

If you specify a filter, CloudFormation ignores any specified Visibility\n value when returning the list of types.

" } }, "MaxResults": { "target": "com.amazonaws.cloudformation#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

" + "smithy.api#documentation": "

The maximum number of results to be returned with a single call. If the number of\n available results exceeds this maximum, the response includes a NextToken\n value that you can assign to the NextToken request parameter to get the next\n set of results.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

" + "smithy.api#documentation": "

If the previous paginated request didn't return all of the remaining results, the\n response object's NextToken parameter value is set to a token. To retrieve the\n next set of results, call this action again and assign that token to the request object's\n NextToken parameter. If there are no remaining results, the previous\n response object's NextToken parameter is set to null.

" } } } @@ -4844,13 +5323,13 @@ "TypeSummaries": { "target": "com.amazonaws.cloudformation#TypeSummaries", "traits": { - "smithy.api#documentation": "

A list of TypeSummary structures that contain information about the specified extensions.

" + "smithy.api#documentation": "

A list of TypeSummary structures that contain information about the\n specified extensions.

" } }, "NextToken": { "target": "com.amazonaws.cloudformation#NextToken", "traits": { - "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.

" + "smithy.api#documentation": "

If the request doesn't return all of the remaining results, NextToken is\n set to a token. To retrieve the next set of results, call this action again and assign that\n token to the request object's NextToken parameter. If the request returns all\n results, NextToken is set to null.

" } } } @@ -4871,14 +5350,14 @@ "LogRoleArn": { "target": "com.amazonaws.cloudformation#RoleARN2", "traits": { - "smithy.api#documentation": "

The ARN of the role that CloudFormation should assume when sending log entries to CloudWatch logs.

", + "smithy.api#documentation": "

The ARN of the role that CloudFormation should assume when sending log entries\n to CloudWatch logs.

", "smithy.api#required": {} } }, "LogGroupName": { "target": "com.amazonaws.cloudformation#LogGroupName", "traits": { - "smithy.api#documentation": "

The Amazon CloudWatch log group to which CloudFormation sends error logging information when invoking the extension's handlers.

", + "smithy.api#documentation": "

The Amazon CloudWatch log group to which CloudFormation sends error logging\n information when invoking the extension's handlers.

", "smithy.api#required": {} } } @@ -4953,18 +5432,18 @@ "TypeHierarchy": { "target": "com.amazonaws.cloudformation#TypeHierarchy", "traits": { - "smithy.api#documentation": "

A concantenated list of the the module type or types containing the resource. Module types are listed starting with the inner-most nested module, and separated by /.

\n

In the following example, the resource was created from a module of type AWS::First::Example::MODULE, that is nested inside a parent module of type AWS::Second::Example::MODULE.

\n

\n AWS::First::Example::MODULE/AWS::Second::Example::MODULE\n

" + "smithy.api#documentation": "

A concantenated list of the the module type or types containing the resource. Module\n types are listed starting with the inner-most nested module, and separated by\n /.

\n

In the following example, the resource was created from a module of type\n AWS::First::Example::MODULE, that is nested inside a parent module of type\n AWS::Second::Example::MODULE.

\n

\n AWS::First::Example::MODULE/AWS::Second::Example::MODULE\n

" } }, "LogicalIdHierarchy": { "target": "com.amazonaws.cloudformation#LogicalIdHierarchy", "traits": { - "smithy.api#documentation": "

A concantenated list of the logical IDs of the module or modules containing the resource. Modules are listed starting with the inner-most nested module, and separated by /.

\n

In the following example, the resource was created from a module, moduleA, that is nested inside a parent module, moduleB.

\n

\n moduleA/moduleB\n

\n

For more information, see Referencing resources in a module in the CloudFormation User Guide.

" + "smithy.api#documentation": "

A concantenated list of the logical IDs of the module or modules containing the\n resource. Modules are listed starting with the inner-most nested module, and separated by\n /.

\n

In the following example, the resource was created from a module, moduleA,\n that is nested inside a parent module, moduleB.

\n

\n moduleA/moduleB\n

\n

For more information, see Referencing\n resources in a module in the CloudFormation User\n Guide.

" } } }, "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

\n

For more information on modules, see Using modules to encapsulate and reuse resource configurations in the CloudFormation User Guide.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

\n

For more information on modules, see Using modules to encapsulate and\n reuse resource configurations in the CloudFormation User\n Guide.

" } }, "com.amazonaws.cloudformation#MonitoringTimeInMinutes": { @@ -5129,7 +5608,7 @@ "code": "ConditionalCheckFailed", "httpResponseCode": 400 }, - "smithy.api#documentation": "

Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to users.

", + "smithy.api#documentation": "

Error reserved for use by the CloudFormation CLI. CloudFormation does not return this error to\n users.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -5205,7 +5684,7 @@ "ParameterKey": { "target": "com.amazonaws.cloudformation#ParameterKey", "traits": { - "smithy.api#documentation": "

The key associated with the parameter. If you don't specify a key and value for a\n particular parameter, AWS CloudFormation uses the default value that is specified in your\n template.

" + "smithy.api#documentation": "

The key associated with the parameter. If you don't specify a key and value for a\n particular parameter, CloudFormation uses the default value that is specified in\n your template.

" } }, "ParameterValue": { @@ -5242,7 +5721,7 @@ } }, "traits": { - "smithy.api#documentation": "

A set of criteria that AWS CloudFormation uses to validate parameter values. Although\n other constraints might be defined in the stack template, AWS CloudFormation returns only\n the AllowedValues property.

" + "smithy.api#documentation": "

A set of criteria that CloudFormation uses to validate parameter values.\n Although other constraints might be defined in the stack template, CloudFormation\n returns only the AllowedValues property.

" } }, "com.amazonaws.cloudformation#ParameterDeclaration": { @@ -5269,7 +5748,7 @@ "NoEcho": { "target": "com.amazonaws.cloudformation#NoEcho", "traits": { - "smithy.api#documentation": "

Flag that indicates whether the parameter value is shown as plain text in logs and in\n the AWS Management Console.

" + "smithy.api#documentation": "

Flag that indicates whether the parameter value is shown as plain text in logs and in\n the Management Console.

" } }, "Description": { @@ -5281,7 +5760,7 @@ "ParameterConstraints": { "target": "com.amazonaws.cloudformation#ParameterConstraints", "traits": { - "smithy.api#documentation": "

The criteria that AWS CloudFormation uses to validate parameter values.

" + "smithy.api#documentation": "

The criteria that CloudFormation uses to validate parameter values.

" } } }, @@ -5359,7 +5838,7 @@ } }, "traits": { - "smithy.api#documentation": "

Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses\n context key-value pairs in cases where a resource's logical and physical IDs are not enough\n to uniquely identify that resource. Each context key-value pair specifies a resource that\n contains the targeted resource.

" + "smithy.api#documentation": "

Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses\n context key-value pairs in cases where a resource's logical and physical IDs are not enough\n to uniquely identify that resource. Each context key-value pair specifies a resource that\n contains the targeted resource.

" } }, "com.amazonaws.cloudformation#PrivateTypeArn": { @@ -5471,7 +5950,7 @@ } ], "traits": { - "smithy.api#documentation": "

Publishes the specified extension to the CloudFormation registry as a public extension in this region. Public extensions are available for use by all CloudFormation users. For more information on publishing extensions, see Publishing extensions to make them available for public use in the CloudFormation CLI User Guide.

\n

To publish an extension, you must be registered as a publisher with CloudFormation. For more information, see RegisterPublisher.

", + "smithy.api#documentation": "

Publishes the specified extension to the CloudFormation registry as a public extension\n in this region. Public extensions are available for use by all CloudFormation users. For\n more information on publishing extensions, see Publishing extensions to make them available for public use in the\n CloudFormation CLI User Guide.

\n

To publish an extension, you must be registered as a publisher with CloudFormation. For\n more information, see RegisterPublisher.

", "smithy.api#idempotent": {} } }, @@ -5481,25 +5960,25 @@ "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The type of the extension.

\n

Conditional: You must specify Arn, or TypeName and Type.

" + "smithy.api#documentation": "

The type of the extension.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" } }, "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the extension.

\n

Conditional: You must specify Arn, or TypeName and Type.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the extension.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify Arn, or TypeName and Type.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" } }, "PublicVersionNumber": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

The version number to assign to this version of the extension.

\n

Use the following format, and adhere to semantic versioning when assigning a version number to your extension:

\n

\n MAJOR.MINOR.PATCH\n

\n

For more information, see Semantic Versioning 2.0.0.

\n

If you do not specify a version number, CloudFormation increments the version number by one minor version release.

" + "smithy.api#documentation": "

The version number to assign to this version of the extension.

\n

Use the following format, and adhere to semantic versioning when assigning a version\n number to your extension:

\n

\n MAJOR.MINOR.PATCH\n

\n

For more information, see Semantic Versioning\n 2.0.0.

\n

If you do not specify a version number, CloudFormation increments the version number by\n one minor version release.

\n

The first time you publish a type, CloudFormation sets the version number to 1.0.0,\n regardless of the value you specify.

" } } } @@ -5510,7 +5989,7 @@ "PublicTypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) assigned to the public extension upon publication.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) assigned to the public extension upon\n publication.

" } } } @@ -5678,7 +6157,7 @@ } ], "traits": { - "smithy.api#documentation": "

Registers your account as a publisher of public extensions in the CloudFormation registry. Public extensions are available for use by all CloudFormation users. This publisher ID applies to your account in all AWS regions.

\n

For information on requirements for registering as a public extension publisher, see Registering your account to publish CloudFormation extensions in the CloudFormation CLI User Guide.

\n

", + "smithy.api#documentation": "

Registers your account as a publisher of public extensions in the CloudFormation\n registry. Public extensions are available for use by all CloudFormation users. This\n publisher ID applies to your account in all Regions.

\n

For information on requirements for registering as a public extension publisher, see\n Registering your account to publish CloudFormation\n extensions in the CloudFormation CLI User Guide.

\n

", "smithy.api#idempotent": {} } }, @@ -5688,13 +6167,13 @@ "AcceptTermsAndConditions": { "target": "com.amazonaws.cloudformation#AcceptTermsAndConditions", "traits": { - "smithy.api#documentation": "

Whether you accept the terms and conditions for publishing extensions in the CloudFormation registry. You must accept the terms and conditions in order to register to publish public extensions to the CloudFormation registry.

\n

The default is false.

" + "smithy.api#documentation": "

Whether you accept the Terms and Conditions for publishing extensions in the CloudFormation registry.\n You must accept the terms and conditions in order to register to publish public extensions\n to the CloudFormation registry.

\n

The default is false.

" } }, "ConnectionArn": { "target": "com.amazonaws.cloudformation#ConnectionArn", "traits": { - "smithy.api#documentation": "

If you are using a Bitbucket or GitHub account for identity verification, the Amazon Resource Name (ARN) for your connection to that account.

\n

For more information, see Registering your account to publish CloudFormation extensions in the CloudFormation CLI User Guide.

" + "smithy.api#documentation": "

If you are using a Bitbucket or GitHub account for identity verification, the Amazon\n Resource Name (ARN) for your connection to that account.

\n

For more information, see Registering your account to publish CloudFormation\n extensions in the CloudFormation CLI User Guide.

" } } } @@ -5724,7 +6203,7 @@ } ], "traits": { - "smithy.api#documentation": "

Registers an extension with the CloudFormation service. Registering an extension makes it available for use in CloudFormation templates in your AWS account, and includes:

\n \n

For more information on how to develop extensions and ready them for registeration, see Creating Resource Providers in the CloudFormation CLI User Guide.

\n

You can have a maximum of 50 resource extension versions registered at a time. This maximum is per account and per region. Use DeregisterType to deregister specific extension versions if necessary.

\n

Once you have initiated a registration request using \n RegisterType\n , you can use \n DescribeTypeRegistration\n to monitor the progress of the registration request.

\n

Once you have registered a private extension in your account and region, use SetTypeConfiguration to specify configuration properties for the extension. For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

", + "smithy.api#documentation": "

Registers an extension with the CloudFormation service. Registering an\n extension makes it available for use in CloudFormation templates in your account, and includes:

\n \n

For more information on how to develop extensions and ready them for registeration, see\n Creating Resource\n Providers in the CloudFormation CLI User\n Guide.

\n

You can have a maximum of 50 resource extension versions registered at a time. This\n maximum is per account and per region. Use DeregisterType to deregister specific extension versions if necessary.

\n

Once you have initiated a registration request using \n RegisterType\n , you can use \n DescribeTypeRegistration\n to\n monitor the progress of the registration request.

\n

Once you have registered a private extension in your account and region, use SetTypeConfiguration to specify configuration properties for the extension. For\n more information, see Configuring extensions at the account level in the CloudFormation\n User Guide.

", "smithy.api#idempotent": {} } }, @@ -5740,14 +6219,14 @@ "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension being registered.

\n

We recommend that extension names adhere to the following patterns:

\n \n \n \n

The following organization namespaces are reserved and cannot be used in your extension names:

\n \n
", + "smithy.api#documentation": "

The name of the extension being registered.

\n

We recommend that extension names adhere to the following patterns:

\n \n\n \n

The following organization namespaces are reserved and cannot be used in your\n extension names:

\n \n
", "smithy.api#required": {} } }, "SchemaHandlerPackage": { "target": "com.amazonaws.cloudformation#S3Url", "traits": { - "smithy.api#documentation": "

A url to the S3 bucket containing the extension project package that contains the neccessary files for the extension you want to register.

\n

For information on generating a schema handler package for the extension you want to register, see submit in the CloudFormation CLI User Guide.

\n \n

The\n user registering the extension must be able to access the package in the S3 bucket. That is, the user needs to have GetObject permissions\n for the schema handler package. For\n more information, see Actions, Resources, and Condition Keys for Amazon S3 in the\n AWS Identity and Access Management User Guide.

\n
", + "smithy.api#documentation": "

A url to the S3 bucket containing the extension project package that contains the\n neccessary files for the extension you want to register.

\n

For information on generating a schema handler package for the extension you want to\n register, see submit\n in the CloudFormation CLI User Guide.

\n \n

The user registering the extension must be able to access the package in the S3\n bucket. That is, the user needs to have GetObject permissions for the\n schema handler package. For more information, see Actions, Resources, and Condition Keys\n for Amazon S3 in the Identity and Access Management User\n Guide.

\n
", "smithy.api#required": {} } }, @@ -5760,13 +6239,13 @@ "ExecutionRoleArn": { "target": "com.amazonaws.cloudformation#RoleARN2", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the extension.

\n

For CloudFormation to assume the specified execution role, the role must contain a trust relationship with the CloudFormation service principle (resources.cloudformation.amazonaws.com). For more information on adding trust relationships, see Modifying a role trust policy in the AWS Identity and Access Management User Guide.

\n

If your extension calls AWS APIs in any of its handlers, you must create an\n \n IAM execution\n role\n that includes the necessary permissions to call those\n AWS APIs, and provision that execution role in your account. When CloudFormation needs to invoke the resource type handler, CloudFormation assumes this execution role to create a temporary session token, which it then passes to the resource type handler, thereby supplying your resource type with the appropriate credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume\n when invoking the extension.

\n

For CloudFormation to assume the specified execution role, the role must contain a trust\n relationship with the CloudFormation service principle\n (resources.cloudformation.amazonaws.com). For more information on adding\n trust relationships, see Modifying a role trust policy in the Identity and Access Management User\n Guide.

\n

If your extension calls Amazon Web Services APIs in any of its handlers, you must create\n an \n IAM\n execution role\n that includes the necessary permissions to call\n those Amazon Web Services APIs, and provision that execution role in your account. When\n CloudFormation needs to invoke the resource type handler, CloudFormation assumes this\n execution role to create a temporary session token, which it then passes to the resource\n type handler, thereby supplying your resource type with the appropriate credentials.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#RequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier that acts as an idempotency key for this registration request. Specifying a client request token prevents CloudFormation from generating more than one version of an extension from the same registeration request, even if the request is submitted multiple times.

" + "smithy.api#documentation": "

A unique identifier that acts as an idempotency key for this registration request.\n Specifying a client request token prevents CloudFormation from generating more\n than one version of an extension from the same registeration request, even if the request\n is submitted multiple times.

" } } } @@ -5777,7 +6256,7 @@ "RegistrationToken": { "target": "com.amazonaws.cloudformation#RegistrationToken", "traits": { - "smithy.api#documentation": "

The identifier for this registration request.

\n

Use this registration token when calling \n DescribeTypeRegistration\n , which returns information about the status and IDs of the extension registration.

" + "smithy.api#documentation": "

The identifier for this registration request.

\n

Use this registration token when calling \n DescribeTypeRegistration\n , which returns information about the status and IDs of the extension\n registration.

" } } } @@ -5867,13 +6346,13 @@ "TypeNameAlias": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

An alias assigned to the public extension, in this account and region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.

" + "smithy.api#documentation": "

An alias assigned to the public extension, in this account and region. If you specify an\n alias for the extension, CloudFormation treats the alias as the extension type name within\n this account and region. You must use the alias to refer to the extension in your\n templates, API calls, and CloudFormation console.

" } }, "OriginalTypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The type name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this account and region, CloudFormation treats that alias as the extension's type name within the account and region, not the type name of the public extension. For more information, see Specifying aliases to refer to extensions in the CloudFormation User Guide.

" + "smithy.api#documentation": "

The type name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this\n account and region, CloudFormation treats that alias as the extension's type name within\n the account and region, not the type name of the public extension. For more information,\n see Specifying aliases to refer to extensions in the\n CloudFormation User Guide.

" } }, "PublisherId": { @@ -5890,7 +6369,7 @@ } }, "traits": { - "smithy.api#documentation": "

For extensions that are modules, a public third-party extension that must be activated in your account in order for the module itself to be activated.

\n

For more information, see Activating public modules for use in your account in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

For extensions that are modules, a public third-party extension that must be activated\n in your account in order for the module itself to be activated.

\n

For more information, see Activating public\n modules for use in your account in the CloudFormation User\n Guide.

" } }, "com.amazonaws.cloudformation#RequiredActivatedTypes": { @@ -5955,7 +6434,7 @@ "Action": { "target": "com.amazonaws.cloudformation#ChangeAction", "traits": { - "smithy.api#documentation": "

The action that AWS CloudFormation takes on the resource, such as Add\n (adds a new resource), Modify (changes a resource), Remove\n (deletes a resource), Import (imports a resource), or Dynamic\n (exact action for the resource cannot be determined).

" + "smithy.api#documentation": "

The action that CloudFormation takes on the resource, such as\n Add (adds a new resource), Modify (changes a resource),\n Remove (deletes a resource), Import (imports a resource), or\n Dynamic (exact action for the resource cannot be determined).

" } }, "LogicalResourceId": { @@ -5973,13 +6452,13 @@ "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

The type of AWS CloudFormation resource, such as\n AWS::S3::Bucket.

" + "smithy.api#documentation": "

The type of CloudFormation resource, such as\n AWS::S3::Bucket.

" } }, "Replacement": { "target": "com.amazonaws.cloudformation#Replacement", "traits": { - "smithy.api#documentation": "

For the Modify action, indicates whether AWS CloudFormation will replace\n the resource by creating a new one and deleting the old one. This value depends on the\n value of the RequiresRecreation property in the\n ResourceTargetDefinition structure. For example, if the\n RequiresRecreation field is Always and the\n Evaluation field is Static, Replacement is\n True. If the RequiresRecreation field is Always\n and the Evaluation field is Dynamic, Replacement is\n Conditionally.

\n

If you have multiple changes with different RequiresRecreation values,\n the Replacement value depends on the change with the most impact. A\n RequiresRecreation value of Always has the most impact,\n followed by Conditionally, and then Never.

" + "smithy.api#documentation": "

For the Modify action, indicates whether CloudFormation will\n replace the resource by creating a new one and deleting the old one. This value depends on\n the value of the RequiresRecreation property in the\n ResourceTargetDefinition structure. For example, if the\n RequiresRecreation field is Always and the\n Evaluation field is Static, Replacement is\n True. If the RequiresRecreation field is Always\n and the Evaluation field is Dynamic, Replacement is\n Conditionally.

\n

If you have multiple changes with different RequiresRecreation values,\n the Replacement value depends on the change with the most impact. A\n RequiresRecreation value of Always has the most impact,\n followed by Conditionally, and then Never.

" } }, "Scope": { @@ -5991,7 +6470,7 @@ "Details": { "target": "com.amazonaws.cloudformation#ResourceChangeDetails", "traits": { - "smithy.api#documentation": "

For the Modify action, a list of ResourceChangeDetail\n structures that describes the changes that AWS CloudFormation will make to the resource.\n

" + "smithy.api#documentation": "

For the Modify action, a list of ResourceChangeDetail\n structures that describes the changes that CloudFormation will make to the\n resource.

" } }, "ChangeSetId": { @@ -6003,12 +6482,12 @@ "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" } } }, "traits": { - "smithy.api#documentation": "

The ResourceChange structure describes the resource and the action that\n AWS CloudFormation will perform on it if you execute this change set.

" + "smithy.api#documentation": "

The ResourceChange structure describes the resource and the action that\n CloudFormation will perform on it if you execute this change set.

" } }, "com.amazonaws.cloudformation#ResourceChangeDetail": { @@ -6017,19 +6496,19 @@ "Target": { "target": "com.amazonaws.cloudformation#ResourceTargetDefinition", "traits": { - "smithy.api#documentation": "

A ResourceTargetDefinition structure that describes the field that AWS\n CloudFormation will change and whether the resource will be recreated.

" + "smithy.api#documentation": "

A ResourceTargetDefinition structure that describes the field that\n CloudFormation will change and whether the resource will be recreated.

" } }, "Evaluation": { "target": "com.amazonaws.cloudformation#EvaluationType", "traits": { - "smithy.api#documentation": "

Indicates whether AWS CloudFormation can determine the target value, and whether the\n target value will change before you execute a change set.

\n

For Static evaluations, AWS CloudFormation can determine that the target\n value will change, and its value. For example, if you directly modify the\n InstanceType property of an EC2 instance, AWS CloudFormation knows that\n this property value will change, and its value, so this is a Static\n evaluation.

\n

For Dynamic evaluations, cannot determine the target value because it\n depends on the result of an intrinsic function, such as a Ref or\n Fn::GetAtt intrinsic function, when the stack is updated. For example, if\n your template includes a reference to a resource that is conditionally recreated, the value\n of the reference (the physical ID of the resource) might change, depending on if the\n resource is recreated. If the resource is recreated, it will have a new physical ID, so all\n references to that resource will also be updated.

" + "smithy.api#documentation": "

Indicates whether CloudFormation can determine the target value, and whether\n the target value will change before you execute a change set.

\n

For Static evaluations, CloudFormation can determine that the\n target value will change, and its value. For example, if you directly modify the\n InstanceType property of an EC2 instance, CloudFormation knows that\n this property value will change, and its value, so this is a Static\n evaluation.

\n

For Dynamic evaluations, cannot determine the target value because it\n depends on the result of an intrinsic function, such as a Ref or\n Fn::GetAtt intrinsic function, when the stack is updated. For example, if\n your template includes a reference to a resource that is conditionally recreated, the value\n of the reference (the physical ID of the resource) might change, depending on if the\n resource is recreated. If the resource is recreated, it will have a new physical ID, so all\n references to that resource will also be updated.

" } }, "ChangeSource": { "target": "com.amazonaws.cloudformation#ChangeSource", "traits": { - "smithy.api#documentation": "

The group to which the CausingEntity value belongs. There are five\n entity groups:

\n " + "smithy.api#documentation": "

The group to which the CausingEntity value belongs. There are five\n entity groups:

\n " } }, "CausingEntity": { @@ -6040,7 +6519,7 @@ } }, "traits": { - "smithy.api#documentation": "

For a resource with Modify as the action, the\n ResourceChange structure describes the changes AWS CloudFormation will make\n to that resource.

" + "smithy.api#documentation": "

For a resource with Modify as the action, the\n ResourceChange structure describes the changes CloudFormation will\n make to that resource.

" } }, "com.amazonaws.cloudformation#ResourceChangeDetails": { @@ -6248,12 +6727,12 @@ "RequiresRecreation": { "target": "com.amazonaws.cloudformation#RequiresRecreation", "traits": { - "smithy.api#documentation": "

If the Attribute value is Properties, indicates whether a\n change to this property causes the resource to be recreated. The value can be\n Never, Always, or Conditionally. To determine the\n conditions for a Conditionally recreation, see the update behavior for that\n property in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

If the Attribute value is Properties, indicates whether a\n change to this property causes the resource to be recreated. The value can be\n Never, Always, or Conditionally. To determine the\n conditions for a Conditionally recreation, see the update behavior for that\n property in the CloudFormation User Guide.

" } } }, "traits": { - "smithy.api#documentation": "

The field that AWS CloudFormation will change, such as the name of a resource's\n property, and whether the resource will be recreated.

" + "smithy.api#documentation": "

The field that CloudFormation will change, such as the name of a resource's\n property, and whether the resource will be recreated.

" } }, "com.amazonaws.cloudformation#ResourceToImport": { @@ -6262,7 +6741,7 @@ "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

The type of resource to import into your stack, such as AWS::S3::Bucket. For a list of supported resource types, see Resources that support import operations in the AWS CloudFormation User Guide.

", + "smithy.api#documentation": "

The type of resource to import into your stack, such as AWS::S3::Bucket.\n For a list of supported resource types, see Resources that support import operations in the CloudFormation User\n Guide.

", "smithy.api#required": {} } }, @@ -6370,18 +6849,18 @@ "RollbackTriggers": { "target": "com.amazonaws.cloudformation#RollbackTriggers", "traits": { - "smithy.api#documentation": "

The triggers to monitor during stack creation or update actions.

\n

By default, AWS CloudFormation saves the rollback triggers specified for a stack and applies them\n to any subsequent update operations for the stack, unless you specify otherwise. If you do\n specify rollback triggers for this parameter, those triggers replace any list of triggers\n previously specified for the stack. This means:

\n \n

If a specified trigger is missing, the entire stack operation fails and is rolled\n back.

" + "smithy.api#documentation": "

The triggers to monitor during stack creation or update actions.

\n

By default, CloudFormation saves the rollback triggers specified for a stack and applies them\n to any subsequent update operations for the stack, unless you specify otherwise. If you do\n specify rollback triggers for this parameter, those triggers replace any list of triggers\n previously specified for the stack. This means:

\n \n

If a specified trigger is missing, the entire stack operation fails and is rolled\n back.

" } }, "MonitoringTimeInMinutes": { "target": "com.amazonaws.cloudformation#MonitoringTimeInMinutes", "traits": { - "smithy.api#documentation": "

The amount of time, in minutes, during which CloudFormation should monitor all the\n rollback triggers after the stack creation or update operation deploys all necessary\n resources.

\n

The default is 0 minutes.

\n

If you specify a monitoring period but do not specify any rollback triggers,\n CloudFormation still waits the specified period of time before cleaning up old resources\n after update operations. You can use this monitoring period to perform any manual stack\n validation desired, and manually cancel the stack creation or update (using CancelUpdateStack, for example) as necessary.

\n

If you specify 0 for this parameter, CloudFormation still monitors the specified\n rollback triggers during stack creation and update operations. Then, for update operations,\n it begins disposing of old resources immediately once the operation completes.

" + "smithy.api#documentation": "

The amount of time, in minutes, during which CloudFormation should monitor\n all the rollback triggers after the stack creation or update operation deploys all\n necessary resources.

\n

The default is 0 minutes.

\n

If you specify a monitoring period but do not specify any rollback triggers, CloudFormation still waits the specified period of time before cleaning up old\n resources after update operations. You can use this monitoring period to perform any manual\n stack validation desired, and manually cancel the stack creation or update (using CancelUpdateStack, for example) as necessary.

\n

If you specify 0 for this parameter, CloudFormation still monitors the\n specified rollback triggers during stack creation and update operations. Then, for update\n operations, it begins disposing of old resources immediately once the operation\n completes.

" } } }, "traits": { - "smithy.api#documentation": "

Structure containing the rollback triggers for AWS CloudFormation to monitor during stack creation\n and updating operations, and for the specified monitoring period afterwards.

\n

Rollback triggers enable you to have AWS CloudFormation monitor the state of your application\n during stack creation and updating, and to roll back that operation if the application\n breaches the threshold of any of the alarms you've specified. For more information, see\n Monitor and Roll Back Stack\n Operations.

" + "smithy.api#documentation": "

Structure containing the rollback triggers for CloudFormation to monitor during stack creation\n and updating operations, and for the specified monitoring period afterwards.

\n

Rollback triggers enable you to have CloudFormation monitor the state of your application\n during stack creation and updating, and to roll back that operation if the application\n breaches the threshold of any of the alarms you've specified. For more information, see\n Monitor and Roll Back Stack\n Operations.

" } }, "com.amazonaws.cloudformation#RollbackTrigger": { @@ -6403,7 +6882,7 @@ } }, "traits": { - "smithy.api#documentation": "

A rollback trigger AWS CloudFormation monitors during creation and updating of stacks. If any of\n the alarms you specify goes to ALARM state during the stack operation or within the\n specified monitoring period afterwards, CloudFormation rolls back the entire stack\n operation.

" + "smithy.api#documentation": "

A rollback trigger CloudFormation monitors during creation and updating of stacks. If any of\n the alarms you specify goes to ALARM state during the stack operation or within the\n specified monitoring period afterwards, CloudFormation rolls back the entire stack\n operation.

" } }, "com.amazonaws.cloudformation#RollbackTriggers": { @@ -6465,13 +6944,13 @@ "StackPolicyBody": { "target": "com.amazonaws.cloudformation#StackPolicyBody", "traits": { - "smithy.api#documentation": "

Structure containing the stack policy body. For more information, go to Prevent Updates\n to Stack Resources in the AWS CloudFormation User Guide. You can specify either\n the StackPolicyBody or the StackPolicyURL parameter, but not\n both.

" + "smithy.api#documentation": "

Structure containing the stack policy body. For more information, go to Prevent Updates\n to Stack Resources in the CloudFormation User Guide. You can specify\n either the StackPolicyBody or the StackPolicyURL parameter, but\n not both.

" } }, "StackPolicyURL": { "target": "com.amazonaws.cloudformation#StackPolicyURL", "traits": { - "smithy.api#documentation": "

Location of a file containing the stack policy. The URL must point to a policy\n (maximum size: 16 KB) located in an S3 bucket in the same\n Region as the stack. You can specify either the StackPolicyBody or the\n StackPolicyURL parameter, but not both.

" + "smithy.api#documentation": "

Location of a file containing the stack policy. The URL must point to a policy\n (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack. You can\n specify either the StackPolicyBody or the StackPolicyURL\n parameter, but not both.

" } } }, @@ -6496,7 +6975,7 @@ } ], "traits": { - "smithy.api#documentation": "

Specifies the configuration data for a registered CloudFormation extension, in the given account and region.

\n

To view the current configuration data for an extension, refer to the ConfigurationSchema element of DescribeType. For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

\n \n

It is strongly recommended that you use dynamic references to restrict sensitive configuration definitions, such as third-party credentials. For more details on dynamic references, see Using dynamic references to specify template values in the AWS CloudFormation User Guide.

\n
" + "smithy.api#documentation": "

Specifies the configuration data for a registered CloudFormation extension, in the given\n account and region.

\n

To view the current configuration data for an extension, refer to the\n ConfigurationSchema element of DescribeType.\n For more information, see Configuring extensions at the account level in the\n CloudFormation User Guide.

\n \n

It is strongly recommended that you use dynamic references to restrict sensitive\n configuration definitions, such as third-party credentials. For more details on dynamic\n references, see Using dynamic references to specify\n template values in the CloudFormation User\n Guide.

\n
" } }, "com.amazonaws.cloudformation#SetTypeConfigurationInput": { @@ -6505,32 +6984,32 @@ "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will be the ARN assigned when you register the type in this account and region.

\n

Do not include the extension versions suffix at the end of the ARN. You can set the configuration for an extension, but not for a specific extension version.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will\n be the ARN assigned when you register the type in this account and region.

\n

Do not include the extension versions suffix at the end of the ARN. You can set the\n configuration for an extension, but not for a specific extension version.

" } }, "Configuration": { "target": "com.amazonaws.cloudformation#TypeConfiguration", "traits": { - "smithy.api#documentation": "

The configuration data for the extension, in this account and region.

\n

The configuration data must be formatted as JSON, and validate against the schema returned in the ConfigurationSchema response element of API_DescribeType. For more information, see Defining account-level configuration data for an extension in the CloudFormation CLI User Guide.

", + "smithy.api#documentation": "

The configuration data for the extension, in this account and region.

\n

The configuration data must be formatted as JSON, and validate against the schema\n returned in the ConfigurationSchema response element of API_DescribeType. For more information, see Defining account-level configuration data for an extension in the\n CloudFormation CLI User Guide.

", "smithy.api#required": {} } }, "ConfigurationAlias": { "target": "com.amazonaws.cloudformation#TypeConfigurationAlias", "traits": { - "smithy.api#documentation": "

An alias by which to refer to this extension configuration data.

\n

Conditional: Specifying a configuration alias is required when setting a configuration for a resource type extension.

" + "smithy.api#documentation": "

An alias by which to refer to this extension configuration data.

\n

Conditional: Specifying a configuration alias is required when setting a configuration\n for a resource type extension.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify ConfigurationArn, or Type and TypeName.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify ConfigurationArn, or Type and\n TypeName.

" } }, "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The type of extension.

\n

Conditional: You must specify ConfigurationArn, or Type and TypeName.

" + "smithy.api#documentation": "

The type of extension.

\n

Conditional: You must specify ConfigurationArn, or Type and\n TypeName.

" } } } @@ -6541,7 +7020,7 @@ "ConfigurationArn": { "target": "com.amazonaws.cloudformation#TypeConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the configuration data, in this account and region.

\n

Conditional: You must specify ConfigurationArn, or Type and TypeName.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the configuration data, in this account and\n region.

\n

Conditional: You must specify ConfigurationArn, or Type and\n TypeName.

" } } } @@ -6563,7 +7042,7 @@ } ], "traits": { - "smithy.api#documentation": "

Specify the default version of an extension. The default version of an extension will be used in CloudFormation operations.

", + "smithy.api#documentation": "

Specify the default version of an extension. The default version of an extension will be\n used in CloudFormation operations.

", "smithy.api#idempotent": {} } }, @@ -6573,25 +7052,25 @@ "Arn": { "target": "com.amazonaws.cloudformation#PrivateTypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension for which you want version summary information.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the extension for which you want version summary\n information.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "Type": { "target": "com.amazonaws.cloudformation#RegistryType", "traits": { - "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The kind of extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or Arn.

" + "smithy.api#documentation": "

The name of the extension.

\n

Conditional: You must specify either TypeName and Type, or\n Arn.

" } }, "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.

" + "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of\n the Amazon Resource Name (ARN) assigned to the extension version when it is\n registered.

" } } } @@ -6606,7 +7085,7 @@ "target": "com.amazonaws.cloudformation#SignalResourceInput" }, "traits": { - "smithy.api#documentation": "

Sends a signal to the specified resource with a success or failure status. You can\n use the SignalResource API in conjunction with a creation policy or update policy. AWS\n CloudFormation doesn't proceed with a stack creation or update until resources receive the\n required number of signals or the timeout period is exceeded. The SignalResource API is\n useful in cases where you want to send signals from anywhere other than an Amazon EC2\n instance.

" + "smithy.api#documentation": "

Sends a signal to the specified resource with a success or failure status. You can\n use the SignalResource API in conjunction with a creation policy or update policy. CloudFormation doesn't proceed with a stack creation or update until resources receive\n the required number of signals or the timeout period is exceeded. The SignalResource API is\n useful in cases where you want to send signals from anywhere other than an Amazon EC2\n instance.

" } }, "com.amazonaws.cloudformation#SignalResourceInput": { @@ -6636,7 +7115,7 @@ "Status": { "target": "com.amazonaws.cloudformation#ResourceSignalStatus", "traits": { - "smithy.api#documentation": "

The status of the signal, which is either success or failure. A failure signal causes\n AWS CloudFormation to immediately fail the stack creation or update.

", + "smithy.api#documentation": "

The status of the signal, which is either success or failure. A failure signal causes\n CloudFormation to immediately fail the stack creation or update.

", "smithy.api#required": {} } } @@ -6701,7 +7180,7 @@ "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "StackStatus": { @@ -6750,7 +7229,7 @@ "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that is associated with the stack. During a stack operation, AWS CloudFormation uses this\n role's credentials to make calls on your behalf.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that is\n associated with the stack. During a stack operation, CloudFormation uses this\n role's credentials to make calls on your behalf.

" } }, "Tags": { @@ -6762,19 +7241,19 @@ "EnableTerminationProtection": { "target": "com.amazonaws.cloudformation#EnableTerminationProtection", "traits": { - "smithy.api#documentation": "

Whether termination protection is enabled for the stack.

\n

For nested stacks,\n termination protection is set on the root stack and cannot be changed directly on the\n nested stack. For more information, see Protecting a Stack From Being\n Deleted in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

Whether termination protection is enabled for the stack.

\n

For nested stacks,\n termination protection is set on the root stack and cannot be changed directly on the\n nested stack. For more information, see Protecting a Stack From Being\n Deleted in the CloudFormation User Guide.

" } }, "ParentId": { "target": "com.amazonaws.cloudformation#StackId", "traits": { - "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n direct parent of this stack. For the first level of nested stacks, the root stack is also\n the parent stack.

\n

For more information, see Working with Nested Stacks in the\n AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n direct parent of this stack. For the first level of nested stacks, the root stack is also\n the parent stack.

\n

For more information, see Working with Nested Stacks in the\n CloudFormation User Guide.

" } }, "RootId": { "target": "com.amazonaws.cloudformation#StackId", "traits": { - "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n top-level stack to which the nested stack ultimately belongs.

\n

For more information, see Working with Nested Stacks in the\n AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n top-level stack to which the nested stack ultimately belongs.

\n

For more information, see Working with Nested Stacks in the\n CloudFormation User Guide.

" } }, "DriftInformation": { @@ -6825,7 +7304,7 @@ "StackDriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected template\n configuration.

\n ", + "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected template\n configuration.

\n ", "smithy.api#required": {} } }, @@ -6846,7 +7325,7 @@ "StackDriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected template\n configuration.

\n ", + "smithy.api#documentation": "

Status of the stack's actual configuration compared to its expected template\n configuration.

\n ", "smithy.api#required": {} } }, @@ -6923,7 +7402,7 @@ "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

Type of resource. (For more information, go to AWS\n Resource Types Reference in the AWS CloudFormation User Guide.)

" + "smithy.api#documentation": "

Type of resource. (For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User\n Guide.)

" } }, "Timestamp": { @@ -6954,7 +7433,7 @@ "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The token passed to the operation that generated this event.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" + "smithy.api#documentation": "

The token passed to the operation that generated this event.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" } } }, @@ -6971,6 +7450,12 @@ "com.amazonaws.cloudformation#StackId": { "type": "string" }, + "com.amazonaws.cloudformation#StackIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.cloudformation#StackId" + } + }, "com.amazonaws.cloudformation#StackInstance": { "type": "structure", "members": { @@ -6983,13 +7468,13 @@ "Region": { "target": "com.amazonaws.cloudformation#Region", "traits": { - "smithy.api#documentation": "

The name of the AWS Region that the stack instance is associated with.

" + "smithy.api#documentation": "

The name of the Region that the stack instance is associated\n with.

" } }, "Account": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The name of the AWS account that the stack instance is associated with.

" + "smithy.api#documentation": "

[Self-managed permissions] The name of the account that the stack\n instance is associated with.

" } }, "StackId": { @@ -7025,24 +7510,24 @@ "OrganizationalUnitId": { "target": "com.amazonaws.cloudformation#OrganizationalUnitId", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.

" + "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs\n that you specified for DeploymentTargets.

" } }, "DriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack instance's actual configuration compared to the expected template\n and parameter configuration of the stack set to which it belongs.

\n " + "smithy.api#documentation": "

Status of the stack instance's actual configuration compared to the expected template\n and parameter configuration of the stack set to which it belongs.

\n " } }, "LastDriftCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on the stack\n instance. This value will be NULL for any stack instance on which drift\n detection has not yet been performed.

" + "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on\n the stack instance. This value will be NULL for any stack instance on which\n drift detection has not yet been performed.

" } } }, "traits": { - "smithy.api#documentation": "

An AWS CloudFormation stack, in a specific account and Region, that's part of a stack\n set operation. A stack instance is a reference to an attempted or actual stack in a given\n account within a given Region. A stack instance can exist without a stack—for example, if\n the stack couldn't be created for some reason. A stack instance is associated with only one\n stack set. Each stack instance contains the ID of its associated stack set, as well as the\n ID of the actual stack and the stack status.

" + "smithy.api#documentation": "

An CloudFormation stack, in a specific account and Region, that's part of a\n stack set operation. A stack instance is a reference to an attempted or actual stack in a\n given account within a given Region. A stack instance can exist without a stack—for\n example, if the stack couldn't be created for some reason. A stack instance is associated\n with only one stack set. Each stack instance contains the ID of its associated stack set,\n as well as the ID of the actual stack and the stack status.

" } }, "com.amazonaws.cloudformation#StackInstanceComprehensiveStatus": { @@ -7051,7 +7536,7 @@ "DetailedStatus": { "target": "com.amazonaws.cloudformation#StackInstanceDetailedStatus", "traits": { - "smithy.api#documentation": "" + "smithy.api#documentation": "" } } }, @@ -7196,13 +7681,13 @@ "Region": { "target": "com.amazonaws.cloudformation#Region", "traits": { - "smithy.api#documentation": "

The name of the AWS Region that the stack instance is associated with.

" + "smithy.api#documentation": "

The name of the Region that the stack instance is associated\n with.

" } }, "Account": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The name of the AWS account that the stack instance is associated with.

" + "smithy.api#documentation": "

[Self-managed permissions] The name of the account that the stack\n instance is associated with.

" } }, "StackId": { @@ -7232,19 +7717,19 @@ "OrganizationalUnitId": { "target": "com.amazonaws.cloudformation#OrganizationalUnitId", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.

" + "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs\n that you specified for DeploymentTargets.

" } }, "DriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack instance's actual configuration compared to the expected template\n and parameter configuration of the stack set to which it belongs.

\n " + "smithy.api#documentation": "

Status of the stack instance's actual configuration compared to the expected template\n and parameter configuration of the stack set to which it belongs.

\n " } }, "LastDriftCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on the stack\n instance. This value will be NULL for any stack instance on which drift\n detection has not yet been performed.

" + "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on\n the stack instance. This value will be NULL for any stack instance on which\n drift detection has not yet been performed.

" } } }, @@ -7264,6 +7749,23 @@ "smithy.api#pattern": "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$" } }, + "com.amazonaws.cloudformation#StackNotFoundException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.cloudformation#ErrorMessage" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "StackNotFoundException", + "httpResponseCode": 404 + }, + "smithy.api#documentation": "

The specified stack ARN doesn’t exist or stack doesn’t exist corresponding to the ARN in\n input.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, "com.amazonaws.cloudformation#StackPolicyBody": { "type": "string", "traits": { @@ -7325,13 +7827,13 @@ "PhysicalResourceId": { "target": "com.amazonaws.cloudformation#PhysicalResourceId", "traits": { - "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by AWS CloudFormation.

" + "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by CloudFormation.

" } }, "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

Type of resource. (For more information, go to AWS\n Resource Types Reference in the AWS CloudFormation User Guide.)

", + "smithy.api#documentation": "

Type of resource. (For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User\n Guide.)

", "smithy.api#required": {} } }, @@ -7370,7 +7872,7 @@ "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" } } }, @@ -7403,13 +7905,13 @@ "PhysicalResourceId": { "target": "com.amazonaws.cloudformation#PhysicalResourceId", "traits": { - "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by AWS CloudFormation.

" + "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by CloudFormation.

" } }, "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

Type of resource. ((For more information, go to AWS\n Resource Types Reference in the AWS CloudFormation User Guide.)

", + "smithy.api#documentation": "

Type of resource. ((For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User\n Guide.)

", "smithy.api#required": {} } }, @@ -7442,7 +7944,7 @@ "Metadata": { "target": "com.amazonaws.cloudformation#Metadata", "traits": { - "smithy.api#documentation": "

The content of the Metadata attribute declared for the resource. For\n more information, see Metadata\n Attribute in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

The content of the Metadata attribute declared for the resource. For\n more information, see Metadata\n Attribute in the CloudFormation User Guide.

" } }, "DriftInformation": { @@ -7454,7 +7956,7 @@ "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" } } }, @@ -7482,13 +7984,13 @@ "PhysicalResourceId": { "target": "com.amazonaws.cloudformation#PhysicalResourceId", "traits": { - "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by AWS CloudFormation.

" + "smithy.api#documentation": "

The name or unique identifier that corresponds to a physical instance ID of a\n resource supported by CloudFormation.

" } }, "PhysicalResourceIdContext": { "target": "com.amazonaws.cloudformation#PhysicalResourceIdContext", "traits": { - "smithy.api#documentation": "

Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses\n context key-value pairs in cases where a resource's logical and physical IDs are not enough\n to uniquely identify that resource. Each context key-value pair specifies a unique resource\n that contains the targeted resource.

" + "smithy.api#documentation": "

Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses\n context key-value pairs in cases where a resource's logical and physical IDs are not enough\n to uniquely identify that resource. Each context key-value pair specifies a unique resource\n that contains the targeted resource.

" } }, "ResourceType": { @@ -7519,26 +8021,26 @@ "StackResourceDriftStatus": { "target": "com.amazonaws.cloudformation#StackResourceDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", + "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", "smithy.api#required": {} } }, "Timestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Time at which AWS CloudFormation performed drift detection on the stack resource.

", + "smithy.api#documentation": "

Time at which CloudFormation performed drift detection on the stack resource.

", "smithy.api#required": {} } }, "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" } } }, "traits": { - "smithy.api#documentation": "

Contains the drift information for a resource that has been checked for drift. This\n includes actual and expected property values for resources in which AWS CloudFormation has detected\n drift. Only resource properties explicitly defined in the stack template are checked for\n drift. For more information, see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Resources that do not currently support drift detection cannot be checked. For a list\n of resources that support drift detection, see Resources that Support\n Drift Detection.

\n

Use DetectStackResourceDrift to detect drift on individual\n resources, or DetectStackDrift to detect drift on all resources in a\n given stack that support drift detection.

" + "smithy.api#documentation": "

Contains the drift information for a resource that has been checked for drift. This\n includes actual and expected property values for resources in which CloudFormation has detected\n drift. Only resource properties explicitly defined in the stack template are checked for\n drift. For more information, see Detecting\n Unregulated Configuration Changes to Stacks and Resources.

\n

Resources that do not currently support drift detection cannot be checked. For a list\n of resources that support drift detection, see Resources that Support\n Drift Detection.

\n

Use DetectStackResourceDrift to detect drift on individual\n resources, or DetectStackDrift to detect drift on all resources in a\n given stack that support drift detection.

" } }, "com.amazonaws.cloudformation#StackResourceDriftInformation": { @@ -7547,14 +8049,14 @@ "StackResourceDriftStatus": { "target": "com.amazonaws.cloudformation#StackResourceDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", + "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", "smithy.api#required": {} } }, "LastCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When AWS CloudFormation last checked if the resource had drifted from its expected\n configuration.

" + "smithy.api#documentation": "

When CloudFormation last checked if the resource had drifted from its expected\n configuration.

" } } }, @@ -7568,14 +8070,14 @@ "StackResourceDriftStatus": { "target": "com.amazonaws.cloudformation#StackResourceDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", + "smithy.api#documentation": "

Status of the resource's actual configuration compared to its expected\n configuration

\n ", "smithy.api#required": {} } }, "LastCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When AWS CloudFormation last checked if the resource had drifted from its expected\n configuration.

" + "smithy.api#documentation": "

When CloudFormation last checked if the resource had drifted from its expected\n configuration.

" } } }, @@ -7649,7 +8151,7 @@ "ResourceType": { "target": "com.amazonaws.cloudformation#ResourceType", "traits": { - "smithy.api#documentation": "

Type of resource. (For more information, go to AWS\n Resource Types Reference in the AWS CloudFormation User Guide.)

", + "smithy.api#documentation": "

Type of resource. (For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User\n Guide.)

", "smithy.api#required": {} } }, @@ -7682,7 +8184,7 @@ "ModuleInfo": { "target": "com.amazonaws.cloudformation#ModuleInfo", "traits": { - "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.

" + "smithy.api#documentation": "

Contains information about the module from which the resource was created, if the\n resource was created from a module included in the stack template.

" } } }, @@ -7738,7 +8240,7 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

The capabilities that are allowed in the stack set. Some stack set templates might\n include resources that can affect permissions in your AWS account—for example, by creating\n new AWS Identity and Access Management (IAM) users. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.\n

" + "smithy.api#documentation": "

The capabilities that are allowed in the stack set. Some stack set templates might\n include resources that can affect permissions in your account—for\n example, by creating new Identity and Access Management (IAM) users. For more information, see\n Acknowledging IAM Resources in CloudFormation Templates.\n

" } }, "Tags": { @@ -7756,13 +8258,13 @@ "AdministrationRoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role used to create or update the stack\n set.

\n

Use customized administrator roles to control which users or groups can manage specific\n stack sets within the same administrator account. For more information, see Prerequisites: Granting Permissions for Stack\n Set Operations in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role used to create or update the stack\n set.

\n

Use customized administrator roles to control which users or groups can manage specific\n stack sets within the same administrator account. For more information, see Prerequisites: Granting Permissions for Stack\n Set Operations in the CloudFormation User Guide.

" } }, "ExecutionRoleName": { "target": "com.amazonaws.cloudformation#ExecutionRoleName", "traits": { - "smithy.api#documentation": "

The name of the IAM execution role used to create or update the stack set.

\n

Use customized execution roles to control which stack resources users and groups can\n include in their stack sets.\n

" + "smithy.api#documentation": "

The name of the IAM execution role used to create or update the stack set.

\n

Use customized execution roles to control which stack resources users and groups can\n include in their stack sets.

" } }, "StackSetDriftDetectionDetails": { @@ -7774,24 +8276,24 @@ "AutoDeployment": { "target": "com.amazonaws.cloudformation#AutoDeployment", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to a target organization or organizational unit (OU).

" + "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to\n Organizations accounts that are added to a target organization or organizational\n unit (OU).

" } }, "PermissionModel": { "target": "com.amazonaws.cloudformation#PermissionModels", "traits": { - "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created.

\n " + "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created.

\n " } }, "OrganizationalUnitIds": { "target": "com.amazonaws.cloudformation#OrganizationalUnitIdList", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.

" + "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs\n that you specified for DeploymentTargets.

" } } }, "traits": { - "smithy.api#documentation": "

A structure that contains information about a stack set. A stack set enables you to\n provision stacks into AWS accounts and across Regions by using a single CloudFormation\n template. In the stack set, you specify the template to use, as well as any parameters and\n capabilities that the template requires.

" + "smithy.api#documentation": "

A structure that contains information about a stack set. A stack set enables you to\n provision stacks into accounts and across Regions by using a single\n CloudFormation template. In the stack set, you specify the template to use, as\n well as any parameters and capabilities that the template requires.

" } }, "com.amazonaws.cloudformation#StackSetARN": { @@ -7803,7 +8305,7 @@ "DriftStatus": { "target": "com.amazonaws.cloudformation#StackSetDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack set's actual configuration compared to its expected template and\n parameter configuration. A stack set is considered to have drifted if one or more of its\n stack instances have drifted from their expected template and parameter\n configuration.

\n " + "smithy.api#documentation": "

Status of the stack set's actual configuration compared to its expected template and\n parameter configuration. A stack set is considered to have drifted if one or more of its\n stack instances have drifted from their expected template and parameter\n configuration.

\n " } }, "DriftDetectionStatus": { @@ -7815,7 +8317,7 @@ "LastDriftCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on the stack\n set. This value will be NULL for any stack set on which drift detection has\n not yet been performed.

" + "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on\n the stack set. This value will be NULL for any stack set on which drift\n detection has not yet been performed.

" } }, "TotalStackInstancesCount": { @@ -7850,7 +8352,7 @@ } }, "traits": { - "smithy.api#documentation": "

Detailed information about the drift status of the stack set.

\n

For stack sets, contains information about the last completed drift\n operation performed on the stack set. Information about drift operations in-progress is not\n included.

\n

For stack set operations, includes information about drift operations currently being\n performed on the stack set.

\n

For more information, see Detecting Unmanaged\n Changes in Stack Sets in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

Detailed information about the drift status of the stack set.

\n

For stack sets, contains information about the last completed drift\n operation performed on the stack set. Information about drift operations in-progress is not\n included.

\n

For stack set operations, includes information about drift operations currently being\n performed on the stack set.

\n

For more information, see Detecting Unmanaged\n Changes in Stack Sets in the CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#StackSetDriftDetectionStatus": { @@ -7969,13 +8471,13 @@ "Status": { "target": "com.amazonaws.cloudformation#StackSetOperationStatus", "traits": { - "smithy.api#documentation": "

The status of the operation.

\n " + "smithy.api#documentation": "

The status of the operation.

\n " } }, "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

The preferences for how AWS CloudFormation performs this stack set\n operation.

" + "smithy.api#documentation": "

The preferences for how CloudFormation performs this stack set\n operation.

" } }, "RetainStacks": { @@ -7987,19 +8489,19 @@ "AdministrationRoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role used to perform this stack set\n operation.

\n

Use customized administrator roles to control which users or groups can manage specific\n stack sets within the same administrator account. For more information, see Define Permissions for Multiple\n Administrators in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role used to perform this stack set\n operation.

\n

Use customized administrator roles to control which users or groups can manage specific\n stack sets within the same administrator account. For more information, see Define Permissions for Multiple\n Administrators in the CloudFormation User Guide.

" } }, "ExecutionRoleName": { "target": "com.amazonaws.cloudformation#ExecutionRoleName", "traits": { - "smithy.api#documentation": "

The name of the IAM execution role used to create or update the stack set.

\n

Use customized execution roles to control which stack resources users and groups can\n include in their stack sets.\n

" + "smithy.api#documentation": "

The name of the IAM execution role used to create or update the stack set.

\n

Use customized execution roles to control which stack resources users and groups can\n include in their stack sets.

" } }, "CreationTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

The time at which the operation was initiated. Note that the creation times for the\n stack set operation might differ from the creation time of the individual stacks\n themselves. This is because AWS CloudFormation needs to perform preparatory work for the\n operation, such as dispatching the work to the requested Regions, before actually creating\n the first stacks.

" + "smithy.api#documentation": "

The time at which the operation was initiated. Note that the creation times for the\n stack set operation might differ from the creation time of the individual stacks\n themselves. This is because CloudFormation needs to perform preparatory work for\n the operation, such as dispatching the work to the requested Regions, before actually\n creating the first stacks.

" } }, "EndTimestamp": { @@ -8011,13 +8513,13 @@ "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts affected by the stack operation.

" + "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts affected by the stack\n operation.

" } }, "StackSetDriftDetectionDetails": { "target": "com.amazonaws.cloudformation#StackSetDriftDetectionDetails", "traits": { - "smithy.api#documentation": "

Detailed information about the drift status of the stack set. This includes information\n about drift operations currently being performed on the stack set.

\n

this information will only be present for stack set operations whose Action\n type is DETECT_DRIFT.

\n

For more information, see Detecting Unmanaged\n Changes in Stack Sets in the AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

Detailed information about the drift status of the stack set. This includes information\n about drift operations currently being performed on the stack set.

\n

this information will only be present for stack set operations whose Action\n type is DETECT_DRIFT.

\n

For more information, see Detecting Unmanaged\n Changes in Stack Sets in the CloudFormation User Guide.

" } } }, @@ -8054,7 +8556,7 @@ "RegionConcurrencyType": { "target": "com.amazonaws.cloudformation#RegionConcurrencyType", "traits": { - "smithy.api#documentation": "

The concurrency type of deploying StackSets operations in regions, could be in parallel or one region at a time.

" + "smithy.api#documentation": "

The concurrency type of deploying StackSets operations in Regions, could be in parallel\n or one Region at a time.

" } }, "RegionOrder": { @@ -8066,30 +8568,30 @@ "FailureToleranceCount": { "target": "com.amazonaws.cloudformation#FailureToleranceCount", "traits": { - "smithy.api#documentation": "

The number of accounts, per Region, for which this operation can fail before AWS\n CloudFormation stops the operation in that Region. If the operation is stopped in a Region,\n AWS CloudFormation doesn't attempt the operation in any subsequent Regions.

\n

Conditional: You must specify either FailureToleranceCount or\n FailureTolerancePercentage (but not both).

\n

By default, 0 is specified.

" + "smithy.api#documentation": "

The number of accounts, per Region, for which this operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a\n Region, CloudFormation doesn't attempt the operation in any subsequent\n Regions.

\n

Conditional: You must specify either FailureToleranceCount or\n FailureTolerancePercentage (but not both).

\n

By default, 0 is specified.

" } }, "FailureTolerancePercentage": { "target": "com.amazonaws.cloudformation#FailureTolerancePercentage", "traits": { - "smithy.api#documentation": "

The percentage of accounts, per Region, for which this stack operation can fail\n before AWS CloudFormation stops the operation in that Region. If the operation is stopped\n in a Region, AWS CloudFormation doesn't attempt the operation in any subsequent\n Regions.

\n

When calculating the number of accounts based on the specified percentage, AWS\n CloudFormation rounds down to the next whole number.

\n

Conditional: You must specify either FailureToleranceCount or\n FailureTolerancePercentage, but not both.

\n

By default, 0 is specified.

" + "smithy.api#documentation": "

The percentage of accounts, per Region, for which this stack operation can fail\n before CloudFormation stops the operation in that Region. If the operation is\n stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent\n Regions.

\n

When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number.

\n

Conditional: You must specify either FailureToleranceCount or\n FailureTolerancePercentage, but not both.

\n

By default, 0 is specified.

" } }, "MaxConcurrentCount": { "target": "com.amazonaws.cloudformation#MaxConcurrentCount", "traits": { - "smithy.api#documentation": "

The maximum number of accounts in which to perform this operation at one time. This\n is dependent on the value of\n FailureToleranceCount. MaxConcurrentCount is at most one more\n than the FailureToleranceCount.

\n

Note that this setting lets you specify the maximum for\n operations. For large deployments, under certain circumstances the actual number of\n accounts acted upon concurrently may be lower due to service throttling.

\n

Conditional: You must specify either MaxConcurrentCount or\n MaxConcurrentPercentage, but not both.

\n

By default, 1 is specified.

" + "smithy.api#documentation": "

The maximum number of accounts in which to perform this operation at one time. This\n is dependent on the value of FailureToleranceCount.\n MaxConcurrentCount is at most one more than the\n FailureToleranceCount.

\n

Note that this setting lets you specify the maximum for\n operations. For large deployments, under certain circumstances the actual number of\n accounts acted upon concurrently may be lower due to service throttling.

\n

Conditional: You must specify either MaxConcurrentCount or\n MaxConcurrentPercentage, but not both.

\n

By default, 1 is specified.

" } }, "MaxConcurrentPercentage": { "target": "com.amazonaws.cloudformation#MaxConcurrentPercentage", "traits": { - "smithy.api#documentation": "

The maximum percentage of accounts in which to perform this operation at one\n time.

\n

When calculating the number of accounts based on the specified percentage, AWS\n CloudFormation rounds down to the next whole number. This is true except in cases where\n rounding down would result is zero. In this case, CloudFormation sets the number as one\n instead.

\n

Note that this setting lets you specify the maximum for\n operations. For large deployments, under certain circumstances the actual number of\n accounts acted upon concurrently may be lower due to service throttling.

\n

Conditional: You must specify either MaxConcurrentCount or\n MaxConcurrentPercentage, but not both.

\n

By default, 1 is specified.

" + "smithy.api#documentation": "

The maximum percentage of accounts in which to perform this operation at one\n time.

\n

When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where\n rounding down would result is zero. In this case, CloudFormation sets the number\n as one instead.

\n

Note that this setting lets you specify the maximum for\n operations. For large deployments, under certain circumstances the actual number of\n accounts acted upon concurrently may be lower due to service throttling.

\n

Conditional: You must specify either MaxConcurrentCount or\n MaxConcurrentPercentage, but not both.

\n

By default, 1 is specified.

" } } }, "traits": { - "smithy.api#documentation": "

The user-specified preferences for how AWS CloudFormation performs a stack set\n operation.

\n

For more information on maximum concurrent accounts and failure tolerance, see Stack set operation options.

" + "smithy.api#documentation": "

The user-specified preferences for how CloudFormation performs a stack set\n operation.

\n

For more information on maximum concurrent accounts and failure tolerance, see Stack set operation options.

" } }, "com.amazonaws.cloudformation#StackSetOperationResultStatus": { @@ -8131,13 +8633,13 @@ "Account": { "target": "com.amazonaws.cloudformation#Account", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The name of the AWS account for this operation result.

" + "smithy.api#documentation": "

[Self-managed permissions] The name of the account for this\n operation result.

" } }, "Region": { "target": "com.amazonaws.cloudformation#Region", "traits": { - "smithy.api#documentation": "

The name of the AWS Region for this operation result.

" + "smithy.api#documentation": "

The name of the Region for this operation result.

" } }, "Status": { @@ -8155,13 +8657,13 @@ "AccountGateResult": { "target": "com.amazonaws.cloudformation#AccountGateResult", "traits": { - "smithy.api#documentation": "

The results of the account gate function AWS CloudFormation invokes, if present,\n before proceeding with stack set operations in an account

" + "smithy.api#documentation": "

The results of the account gate function CloudFormation invokes, if present,\n before proceeding with stack set operations in an account

" } }, "OrganizationalUnitId": { "target": "com.amazonaws.cloudformation#OrganizationalUnitId", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.

" + "smithy.api#documentation": "

[Service-managed permissions] The organization root ID or organizational unit (OU) IDs\n that you specified for DeploymentTargets.

" } } }, @@ -8224,13 +8726,13 @@ "Status": { "target": "com.amazonaws.cloudformation#StackSetOperationStatus", "traits": { - "smithy.api#documentation": "

The overall status of the operation.

\n " + "smithy.api#documentation": "

The overall status of the operation.

\n " } }, "CreationTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

The time at which the operation was initiated. Note that the creation times for the\n stack set operation might differ from the creation time of the individual stacks\n themselves. This is because AWS CloudFormation needs to perform preparatory work for the\n operation, such as dispatching the work to the requested Regions, before actually creating\n the first stacks.

" + "smithy.api#documentation": "

The time at which the operation was initiated. Note that the creation times for the\n stack set operation might differ from the creation time of the individual stacks\n themselves. This is because CloudFormation needs to perform preparatory work for\n the operation, such as dispatching the work to the requested Regions, before actually\n creating the first stacks.

" } }, "EndTimestamp": { @@ -8295,25 +8797,25 @@ "AutoDeployment": { "target": "com.amazonaws.cloudformation#AutoDeployment", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to a target organizational unit (OU).

" + "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to\n Organizations accounts that are added to a target organizational unit\n (OU).

" } }, "PermissionModel": { "target": "com.amazonaws.cloudformation#PermissionModels", "traits": { - "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created.

\n " + "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created.

\n " } }, "DriftStatus": { "target": "com.amazonaws.cloudformation#StackDriftStatus", "traits": { - "smithy.api#documentation": "

Status of the stack set's actual configuration compared to its expected template and\n parameter configuration. A stack set is considered to have drifted if one or more of its\n stack instances have drifted from their expected template and parameter\n configuration.

\n " + "smithy.api#documentation": "

Status of the stack set's actual configuration compared to its expected template and\n parameter configuration. A stack set is considered to have drifted if one or more of its\n stack instances have drifted from their expected template and parameter\n configuration.

\n " } }, "LastDriftCheckTimestamp": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on the stack\n set. This value will be NULL for any stack set on which drift detection has\n not yet been performed.

" + "smithy.api#documentation": "

Most recent time when CloudFormation performed a drift detection operation on\n the stack set. This value will be NULL for any stack set on which drift\n detection has not yet been performed.

" } } }, @@ -8488,13 +8990,13 @@ "ParentId": { "target": "com.amazonaws.cloudformation#StackId", "traits": { - "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n direct parent of this stack. For the first level of nested stacks, the root stack is also\n the parent stack.

\n

For more information, see Working with Nested Stacks in the\n AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n direct parent of this stack. For the first level of nested stacks, the root stack is also\n the parent stack.

\n

For more information, see Working with Nested Stacks in the\n CloudFormation User Guide.

" } }, "RootId": { "target": "com.amazonaws.cloudformation#StackId", "traits": { - "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n top-level stack to which the nested stack ultimately belongs.

\n

For more information, see Working with Nested Stacks in the\n AWS CloudFormation User Guide.

" + "smithy.api#documentation": "

For nested stacks--stacks created as resources for another stack--the stack ID of the\n top-level stack to which the nested stack ultimately belongs.

\n

For more information, see Working with Nested Stacks in the\n CloudFormation User Guide.

" } }, "DriftInformation": { @@ -8589,7 +9091,7 @@ "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -8620,7 +9122,7 @@ "Key": { "target": "com.amazonaws.cloudformation#TagKey", "traits": { - "smithy.api#documentation": "

\n Required. A string used to identify this tag. You can specify a\n maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the\n reserved prefix: aws:.

", + "smithy.api#documentation": "

\n Required. A string used to identify this tag. You can specify a\n maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (Amazon Web Services) have the reserved prefix: aws:.

", "smithy.api#required": {} } }, @@ -8633,7 +9135,7 @@ } }, "traits": { - "smithy.api#documentation": "

The Tag type enables you to specify a key-value pair that can be used to store\n information about an AWS CloudFormation stack.

" + "smithy.api#documentation": "

The Tag type enables you to specify a key-value pair that can be used to store\n information about an CloudFormation stack.

" } }, "com.amazonaws.cloudformation#TagKey": { @@ -8756,7 +9258,7 @@ } ], "traits": { - "smithy.api#documentation": "

Tests a registered extension to make sure it meets all necessary requirements for being published in the CloudFormation registry.

\n \n

For more information, see Testing your public extension prior to publishing in the CloudFormation CLI User Guide.

\n

If you do not specify a version, CloudFormation uses the default version of the extension in your account and region for testing.

\n

To perform testing, CloudFormation assumes the execution role specified when the test was registered. For more information, see RegisterType.

\n

Once you've initiated testing on an extension using TestType, you can use DescribeType to monitor the current test status and test status description for the extension.

\n

An extension must have a test status of PASSED before it can be published. For more information, see Publishing extensions to make them available for public use in the CloudFormation CLI User Guide.

", + "smithy.api#documentation": "

Tests a registered extension to make sure it meets all necessary requirements for being\n published in the CloudFormation registry.

\n \n

For more information, see Testing your public extension prior to publishing in the\n CloudFormation CLI User Guide.

\n

If you do not specify a version, CloudFormation uses the default version of the\n extension in your account and region for testing.

\n

To perform testing, CloudFormation assumes the execution role specified when the type\n was registered. For more information, see RegisterType.

\n

Once you've initiated testing on an extension using TestType, you can use\n DescribeType to monitor the current test status and test\n status description for the extension.

\n

An extension must have a test status of PASSED before it can be published.\n For more information, see Publishing extensions to make them available for public use\n in the CloudFormation CLI User Guide.

", "smithy.api#idempotent": {} } }, @@ -8766,31 +9268,31 @@ "Arn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the extension.

\n

Conditional: You must specify Arn, or TypeName and Type.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the extension.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" } }, "Type": { "target": "com.amazonaws.cloudformation#ThirdPartyType", "traits": { - "smithy.api#documentation": "

The type of the extension to test.

\n

Conditional: You must specify Arn, or TypeName and Type.

" + "smithy.api#documentation": "

The type of the extension to test.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" } }, "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension to test.

\n

Conditional: You must specify Arn, or TypeName and Type.

" + "smithy.api#documentation": "

The name of the extension to test.

\n

Conditional: You must specify Arn, or TypeName and\n Type.

" } }, "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The version of the extension to test.

\n

You can specify the version id with either Arn, or with TypeName and Type.

\n

If you do not specify a version, CloudFormation uses the default version of the extension in this account and region for testing.

" + "smithy.api#documentation": "

The version of the extension to test.

\n

You can specify the version id with either Arn, or with\n TypeName and Type.

\n

If you do not specify a version, CloudFormation uses the default version of the\n extension in this account and region for testing.

" } }, "LogDeliveryBucket": { "target": "com.amazonaws.cloudformation#S3Bucket", "traits": { - "smithy.api#documentation": "

The S3 bucket to which CloudFormation delivers the contract test execution logs.

\n

CloudFormation delivers the logs by the time contract testing has completed and the extension has been assigned a test type status of PASSED or FAILED.

\n

The user calling TestType must be able to access items in the specified S3 bucket. Specifically, the user needs the following permissions:

\n \n

For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the AWS Identity and Access Management User Guide.

" + "smithy.api#documentation": "

The S3 bucket to which CloudFormation delivers the contract test execution logs.

\n

CloudFormation delivers the logs by the time contract testing has completed and the\n extension has been assigned a test type status of PASSED or\n FAILED.

\n

The user calling TestType must be able to access items in the specified S3\n bucket. Specifically, the user needs the following permissions:

\n \n

For more information, see Actions, Resources, and\n Condition Keys for Amazon S3 in the Amazon Web Services Identity and\n Access Management User Guide.

" } } } @@ -8926,31 +9428,31 @@ "Arn": { "target": "com.amazonaws.cloudformation#TypeConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the configuration data, in this account and region.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the configuration data, in this account and\n region.

" } }, "Alias": { "target": "com.amazonaws.cloudformation#TypeConfigurationAlias", "traits": { - "smithy.api#documentation": "

The alias specified for this configuration, if one was specified when the configuration was set.

" + "smithy.api#documentation": "

The alias specified for this configuration, if one was specified when the configuration\n was set.

" } }, "Configuration": { "target": "com.amazonaws.cloudformation#TypeConfiguration", "traits": { - "smithy.api#documentation": "

A JSON string specifying the configuration data for the extension, in this account and region.

\n

If a configuration has not been set for a specified extension, CloudFormation returns {}.

" + "smithy.api#documentation": "

A JSON string specifying the configuration data for the extension, in this account and\n region.

\n

If a configuration has not been set for a specified extension, CloudFormation returns\n {}.

" } }, "LastUpdated": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When the configuration data was last updated for this extension.

\n

If a configuration has not been set for a specified extension, CloudFormation returns null.

" + "smithy.api#documentation": "

When the configuration data was last updated for this extension.

\n

If a configuration has not been set for a specified extension, CloudFormation returns\n null.

" } }, "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will be the ARN assigned when you register the type in this account and region.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will\n be the ARN assigned when you register the type in this account and region.

" } }, "TypeName": { @@ -8962,12 +9464,12 @@ "IsDefaultConfiguration": { "target": "com.amazonaws.cloudformation#IsDefaultConfiguration", "traits": { - "smithy.api#documentation": "

Whether or not this configuration data is the default configuration for the extension.

" + "smithy.api#documentation": "

Whether or not this configuration data is the default configuration for the\n extension.

" } } }, "traits": { - "smithy.api#documentation": "

Detailed information concerning the specification of a CloudFormation extension in a given account and region.

\n

For more information, see Configuring extensions at the account level in the CloudFormation User Guide.

" + "smithy.api#documentation": "

Detailed information concerning the specification of a CloudFormation extension in a\n given account and region.

\n

For more information, see Configuring extensions at the account level in the\n CloudFormation User Guide.

" } }, "com.amazonaws.cloudformation#TypeConfigurationDetailsList": { @@ -8982,13 +9484,13 @@ "TypeArn": { "target": "com.amazonaws.cloudformation#TypeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will be the ARN assigned when you register the type in this account and region.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the extension, in this account and region.

\n

For public extensions, this will be the ARN assigned when you activate the type in this account and region. For private extensions, this will\n be the ARN assigned when you register the type in this account and region.

" } }, "TypeConfigurationAlias": { "target": "com.amazonaws.cloudformation#TypeConfigurationAlias", "traits": { - "smithy.api#documentation": "

The alias specified for this configuration, if one was specified when the configuration was set.

" + "smithy.api#documentation": "

The alias specified for this configuration, if one was specified when the configuration\n was set.

" } }, "TypeConfigurationArn": { @@ -9048,13 +9550,13 @@ "Category": { "target": "com.amazonaws.cloudformation#Category", "traits": { - "smithy.api#documentation": "

The category of extensions to return.

\n " + "smithy.api#documentation": "

The category of extensions to return.

\n " } }, "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The id of the publisher of the extension.

\n

Extensions published by Amazon are not assigned a publisher ID. Use the AWS-TYPES category to specify a list of types published by Amazon.

" + "smithy.api#documentation": "

The id of the publisher of the extension.

\n

Extensions published by Amazon are not assigned a publisher ID. Use the\n AWS-TYPES category to specify a list of types published by Amazon.

" } }, "TypeNamePrefix": { @@ -9135,13 +9637,13 @@ "TypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

The name of the extension.

\n

If you specified a TypeNameAlias when you activate this extension in your account and region, CloudFormation considers that alias as the type name.

" + "smithy.api#documentation": "

The name of the extension.

\n

If you specified a TypeNameAlias when you activate this extension in your account and region, CloudFormation considers\n that alias as the type name.

" } }, "DefaultVersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of the default version of the extension. The default version is used when the extension version is not specified.

\n

This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon and published by third parties, CloudFormation returns null. For more information, see RegisterType.

\n

To set the default version of an extension, use \n SetTypeDefaultVersion\n .

" + "smithy.api#documentation": "

The ID of the default version of the extension. The default version is used when the\n extension version is not specified.

\n

This applies only to private extensions you have registered in your account. For public\n extensions, both those provided by Amazon and published by third parties, CloudFormation\n returns null. For more information, see RegisterType.

\n

To set the default version of an extension, use \n SetTypeDefaultVersion\n .

" } }, "TypeArn": { @@ -9153,7 +9655,7 @@ "LastUpdated": { "target": "com.amazonaws.cloudformation#Timestamp", "traits": { - "smithy.api#documentation": "

When the specified extension version was registered. This applies only to:

\n \n

For all other extension types, CloudFormation returns null.

" + "smithy.api#documentation": "

When the specified extension version was registered. This applies only to:

\n \n

For all other extension types, CloudFormation returns null.

" } }, "Description": { @@ -9165,48 +9667,48 @@ "PublisherId": { "target": "com.amazonaws.cloudformation#PublisherId", "traits": { - "smithy.api#documentation": "

The ID of the extension publisher, if the extension is published by a third party. Extensions published by Amazon do not return a publisher ID.

" + "smithy.api#documentation": "

The ID of the extension publisher, if the extension is published by a third party.\n Extensions published by Amazon do not return a publisher ID.

" } }, "OriginalTypeName": { "target": "com.amazonaws.cloudformation#TypeName", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the type name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this account and region, CloudFormation treats that alias as the extension's type name within the account and region, not the type name of the public extension. For more information, see Specifying aliases to refer to extensions in the CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the type\n name of the public extension.

\n

If you specified a TypeNameAlias when enabling the extension in this\n account and region, CloudFormation treats that alias as the extension's type name within\n the account and region, not the type name of the public extension. For more information,\n see Specifying aliases to refer to extensions in the\n CloudFormation User Guide.

" } }, "PublicVersionNumber": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the version of the public extension to be used for CloudFormation operations in this account and region.

\n

How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extention in this account and region when a new version is released. For more information, see Setting CloudFormation to automatically use new versions of extensions in the CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the version\n of the public extension to be used for CloudFormation operations in this account and\n region.

\n

How you specified AutoUpdate when enabling the extension affects whether\n CloudFormation automatically updates the extention in this account and region when a new\n version is released. For more information, see Setting CloudFormation to automatically use new versions of\n extensions in the CloudFormation User Guide.

" } }, "LatestPublicVersion": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the latest version of the public extension that is available. For any extensions other than activated third-arty extensions, CloudFormation returns null.

\n

How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extention in this account and region when a new version is released. For more information, see Setting CloudFormation to automatically use new versions of extensions in the CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the latest\n version of the public extension that is available. For any extensions\n other than activated third-arty extensions, CloudFormation returns\n null.

\n

How you specified AutoUpdate when enabling the extension affects whether\n CloudFormation automatically updates the extention in this account and region when a new\n version is released. For more information, see Setting CloudFormation to automatically use new versions of\n extensions in the CloudFormation User Guide.

" } }, "PublisherIdentity": { "target": "com.amazonaws.cloudformation#IdentityProvider", "traits": { - "smithy.api#documentation": "

The service used to verify the publisher identity.

\n

For more information, see Registering your account to publish CloudFormation extensions in the CFN-CLI User Guide for Extension Development.

" + "smithy.api#documentation": "

The service used to verify the publisher identity.

\n

For more information, see Registering your account to publish CloudFormation extensions in the \n CFN-CLI User Guide for Extension Development.

" } }, "PublisherName": { "target": "com.amazonaws.cloudformation#PublisherName", "traits": { - "smithy.api#documentation": "

The publisher name, as defined in the public profile for that publisher in the service used to verify the publisher identity.

" + "smithy.api#documentation": "

The publisher name, as defined in the public profile for that publisher in the service\n used to verify the publisher identity.

" } }, "IsActivated": { "target": "com.amazonaws.cloudformation#IsActivated", "traits": { - "smithy.api#documentation": "

Whether or not the extension is activated for this account and region.

\n

This applies only to third-party public extensions. Extensions published by Amazon are activated by default.

" + "smithy.api#documentation": "

Whether or not the extension is activated for this account and region.

\n

This applies only to third-party public extensions. Extensions published by Amazon are\n activated by default.

" } } }, "traits": { - "smithy.api#documentation": "

Contains summary information about the specified CloudFormation extension.

" + "smithy.api#documentation": "

Contains summary information about the specified CloudFormation\n extension.

" } }, "com.amazonaws.cloudformation#TypeTestsStatus": { @@ -9276,13 +9778,13 @@ "VersionId": { "target": "com.amazonaws.cloudformation#TypeVersionId", "traits": { - "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.

" + "smithy.api#documentation": "

The ID of a specific version of the extension. The version ID is the value at the end of\n the Amazon Resource Name (ARN) assigned to the extension version when it is\n registered.

" } }, "IsDefaultVersion": { "target": "com.amazonaws.cloudformation#IsDefaultVersion", "traits": { - "smithy.api#documentation": "

Whether the specified extension version is set as the default version.

\n

This applies only to private extensions you have registered in your account, and extensions published by Amazon. For public third-party extensions, whether or not they are activated in your account, CloudFormation returns null.

" + "smithy.api#documentation": "

Whether the specified extension version is set as the default version.

\n

This applies only to private extensions you have registered in your account, and\n extensions published by Amazon. For public third-party extensions, whether or not they are\n activated in your account, CloudFormation returns null.

" } }, "Arn": { @@ -9306,12 +9808,12 @@ "PublicVersionNumber": { "target": "com.amazonaws.cloudformation#PublicVersionNumber", "traits": { - "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the version of the public extension to be used for CloudFormation operations in this account and region. For any extensions other than activated third-arty extensions, CloudFormation returns null.

\n

How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extention in this account and region when a new version is released. For more information, see Setting CloudFormation to automatically use new versions of extensions in the CloudFormation User Guide.

" + "smithy.api#documentation": "

For public extensions that have been activated for this account and region, the version\n of the public extension to be used for CloudFormation operations in this account and\n region. For any extensions other than activated third-arty extensions, CloudFormation\n returns null.

\n

How you specified AutoUpdate when enabling the extension affects whether\n CloudFormation automatically updates the extention in this account and region when a new\n version is released. For more information, see Setting CloudFormation to automatically use new versions of\n extensions in the CloudFormation User Guide.

" } } }, "traits": { - "smithy.api#documentation": "

Contains summary information about a specific version of a CloudFormation extension.

" + "smithy.api#documentation": "

Contains summary information about a specific version of a CloudFormation\n extension.

" } }, "com.amazonaws.cloudformation#UnprocessedTypeConfigurations": { @@ -9353,13 +9855,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. (For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.)

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody, TemplateURL, or set the\n UsePreviousTemplate to true.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. (For more information, go to Template Anatomy\n in the CloudFormation User Guide.)

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody, TemplateURL, or set the\n UsePreviousTemplate to true.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template that\n is located in an Amazon S3 bucket or a Systems Manager document. For more information, go to\n Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody, TemplateURL, or set the\n UsePreviousTemplate to true.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template that\n is located in an Amazon S3 bucket or a Systems Manager document. For more information, go\n to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody, TemplateURL, or set the\n UsePreviousTemplate to true.

" } }, "UsePreviousTemplate": { @@ -9377,7 +9879,7 @@ "StackPolicyDuringUpdateURL": { "target": "com.amazonaws.cloudformation#StackPolicyDuringUpdateURL", "traits": { - "smithy.api#documentation": "

Location of a file containing the temporary overriding stack policy. The URL must\n point to a policy (max size: 16KB) located in an S3 bucket in\n the same Region as the stack. You can specify either the\n StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL\n parameter, but not both.

\n

If you want to update protected resources, specify a temporary overriding stack\n policy during this update. If you do not specify a stack policy, the current policy that is\n associated with the stack will be used.

" + "smithy.api#documentation": "

Location of a file containing the temporary overriding stack policy. The URL must\n point to a policy (max size: 16KB) located in an S3 bucket in the same Region as the stack.\n You can specify either the StackPolicyDuringUpdateBody or the\n StackPolicyDuringUpdateURL parameter, but not both.

\n

If you want to update protected resources, specify a temporary overriding stack\n policy during this update. If you do not specify a stack policy, the current policy that is\n associated with the stack will be used.

" } }, "Parameters": { @@ -9389,25 +9891,25 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for AWS CloudFormation to update the stack.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for CloudFormation to update the stack.

\n " } }, "ResourceTypes": { "target": "com.amazonaws.cloudformation#ResourceTypes", "traits": { - "smithy.api#documentation": "

The template resource types that you have permissions to work with for this update\n stack action, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance.

\n

If the list of resource types doesn't include a resource that you're updating, the\n stack update fails. By default, AWS CloudFormation grants permissions to all resource\n types. AWS Identity and Access Management (IAM) uses this parameter for AWS\n CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with AWS Identity and Access Management.

" + "smithy.api#documentation": "

The template resource types that you have permissions to work with for this update\n stack action, such as AWS::EC2::Instance, AWS::EC2::*, or\n Custom::MyCustomInstance.

\n

If the list of resource types doesn't include a resource that you're updating, the\n stack update fails. By default, CloudFormation grants permissions to all resource\n types. Identity and Access Management (IAM) uses this parameter for CloudFormation-specific\n condition keys in IAM policies. For more information, see Controlling Access with\n Identity and Access Management.

" } }, "RoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role\n that AWS CloudFormation assumes to update the stack. AWS CloudFormation uses the role's\n credentials to make calls on your behalf. AWS CloudFormation always uses this role for all\n future operations on the stack. As long as users have permission to operate on the stack,\n AWS CloudFormation uses this role even if the users don't have permission to pass it.\n Ensure that the role grants least privilege.

\n

If you don't specify a value, AWS CloudFormation uses the role that was previously\n associated with the stack. If no role is available, AWS CloudFormation uses a temporary\n session that is generated from your user credentials.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that CloudFormation assumes to update the stack. CloudFormation uses the role's\n credentials to make calls on your behalf. CloudFormation always uses this role for\n all future operations on the stack. As long as users have permission to operate on the\n stack, CloudFormation uses this role even if the users don't have permission to\n pass it. Ensure that the role grants least privilege.

\n

If you don't specify a value, CloudFormation uses the role that was\n previously associated with the stack. If no role is available, CloudFormation uses\n a temporary session that is generated from your user credentials.

" } }, "RollbackConfiguration": { "target": "com.amazonaws.cloudformation#RollbackConfiguration", "traits": { - "smithy.api#documentation": "

The rollback triggers for AWS CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" + "smithy.api#documentation": "

The rollback triggers for CloudFormation to monitor during stack creation and\n updating operations, and for the specified monitoring period afterwards.

" } }, "StackPolicyBody": { @@ -9419,25 +9921,25 @@ "StackPolicyURL": { "target": "com.amazonaws.cloudformation#StackPolicyURL", "traits": { - "smithy.api#documentation": "

Location of a file containing the updated stack policy. The URL must point to a\n policy (max size: 16KB) located in an S3 bucket in the same\n Region as the stack. You can specify either the StackPolicyBody or the\n StackPolicyURL parameter, but not both.

\n

You might update the stack policy, for example, in order to protect a new resource\n that you created during a stack update. If you do not specify a stack policy, the current\n policy that is associated with the stack is unchanged.

" + "smithy.api#documentation": "

Location of a file containing the updated stack policy. The URL must point to a\n policy (max size: 16KB) located in an S3 bucket in the same Region as the stack. You can\n specify either the StackPolicyBody or the StackPolicyURL\n parameter, but not both.

\n

You might update the stack policy, for example, in order to protect a new resource\n that you created during a stack update. If you do not specify a stack policy, the current\n policy that is associated with the stack is unchanged.

" } }, "NotificationARNs": { "target": "com.amazonaws.cloudformation#NotificationARNs", "traits": { - "smithy.api#documentation": "

Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that AWS\n CloudFormation associates with the stack. Specify an empty list to remove all notification\n topics.

" + "smithy.api#documentation": "

Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that CloudFormation associates with the stack. Specify an empty list to remove all\n notification topics.

" } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

Key-value pairs to associate with this stack. AWS CloudFormation also propagates\n these tags to supported resources in the stack. You can specify a maximum number of 50\n tags.

\n

If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's\n tags. If you specify an empty value, AWS CloudFormation removes all associated\n tags.

" + "smithy.api#documentation": "

Key-value pairs to associate with this stack. CloudFormation also propagates\n these tags to supported resources in the stack. You can specify a maximum number of 50\n tags.

\n

If you don't specify this parameter, CloudFormation doesn't modify the\n stack's tags. If you specify an empty value, CloudFormation removes all associated\n tags.

" } }, "ClientRequestToken": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

A unique identifier for this UpdateStack request. Specify this token if\n you plan to retry requests so that AWS CloudFormation knows that you're not attempting to\n update a stack with the same name. You might retry UpdateStack requests to\n ensure that AWS CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" + "smithy.api#documentation": "

A unique identifier for this UpdateStack request. Specify this token if\n you plan to retry requests so that CloudFormation knows that you're not attempting\n to update a stack with the same name. You might retry UpdateStack requests to\n ensure that CloudFormation successfully received them.

\n

All events triggered by a given stack operation are assigned the same client request\n token, which you can use to track operations. For example, if you execute a\n CreateStack operation with the token token1, then all the\n StackEvents generated by that operation will have\n ClientRequestToken set as token1.

\n

In the console, stack operations display the client request token on the Events tab.\n Stack operations that are initiated from the console use the token format\n Console-StackOperation-ID, which helps you easily identify the\n stack operation . For example, if you create a stack using the console, each stack event\n would be assigned the same token in the following format:\n Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

" } } }, @@ -9490,13 +9992,13 @@ "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The names of one or more AWS accounts for which you want to update parameter values\n for stack instances. The overridden parameter values will be applied to all stack instances\n in the specified accounts and Regions.

\n

You can specify Accounts or DeploymentTargets, but not both.

" + "smithy.api#documentation": "

[Self-managed permissions] The names of one or more accounts for\n which you want to update parameter values for stack instances. The overridden parameter\n values will be applied to all stack instances in the specified accounts and\n Regions.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" } }, "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts for which you want to update parameter values for stack instances. If your update targets OUs, the overridden parameter values only apply to the accounts that are currently in the target OUs and their child OUs. Accounts added to the target OUs and their child OUs in the future won't use the overridden values.

\n

You can specify Accounts or DeploymentTargets, but not both.

" + "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts for which you want to\n update parameter values for stack instances. If your update targets OUs, the overridden\n parameter values only apply to the accounts that are currently in the target OUs and their\n child OUs. Accounts added to the target OUs and their child OUs in the future won't use the\n overridden values.

\n

You can specify Accounts or DeploymentTargets, but not\n both.

" } }, "Regions": { @@ -9509,26 +10011,26 @@ "ParameterOverrides": { "target": "com.amazonaws.cloudformation#Parameters", "traits": { - "smithy.api#documentation": "

A list of input parameters whose values you want to update for the specified stack\n instances.

\n

Any overridden parameter values will be applied to all stack instances in the\n specified accounts and Regions. When specifying parameters and their values, be aware of\n how AWS CloudFormation sets parameter values during stack instance update\n operations:

\n \n

During stack set updates, any parameter values overridden for a stack instance are\n not updated, but retain their overridden value.

\n

You can only override the parameter values that are specified in\n the stack set; to add or delete a parameter itself, use UpdateStackSet to\n update the stack set template. If you add a parameter to a template, before you can\n override the parameter value specified in the stack set you must first use UpdateStackSet to update all stack instances with the updated template and\n parameter value specified in the stack set. Once a stack instance has been updated with the\n new parameter, you can then override the parameter value using\n UpdateStackInstances.

" + "smithy.api#documentation": "

A list of input parameters whose values you want to update for the specified stack\n instances.

\n

Any overridden parameter values will be applied to all stack instances in the\n specified accounts and Regions. When specifying parameters and their values, be aware of\n how CloudFormation sets parameter values during stack instance update\n operations:

\n \n

During stack set updates, any parameter values overridden for a stack instance are\n not updated, but retain their overridden value.

\n

You can only override the parameter values that are specified in\n the stack set; to add or delete a parameter itself, use UpdateStackSet to\n update the stack set template. If you add a parameter to a template, before you can\n override the parameter value specified in the stack set you must first use UpdateStackSet to update all stack instances with the updated template and\n parameter value specified in the stack set. Once a stack instance has been updated with the\n new parameter, you can then override the parameter value using\n UpdateStackInstances.

" } }, "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

Preferences for how AWS CloudFormation performs this stack set operation.

" + "smithy.api#documentation": "

Preferences for how CloudFormation performs this stack set\n operation.

" } }, "OperationId": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that AWS\n CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that AWS\n CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.\n

", + "smithy.api#documentation": "

The unique identifier for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that CloudFormation successfully received them.

\n

If you don't specify an operation ID, the SDK generates one automatically.\n

", "smithy.api#idempotencyToken": {} } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -9609,13 +10111,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

The structure that contains the template body, with a minimum length of 1 byte and a\n maximum length of 51,200 bytes. For more information, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody or TemplateURL—or set\n UsePreviousTemplate to true.

" + "smithy.api#documentation": "

The structure that contains the template body, with a minimum length of 1 byte and a\n maximum length of 51,200 bytes. For more information, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody or TemplateURL—or set\n UsePreviousTemplate to true.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

The location of the file that contains the template body. The URL must point to a\n template (maximum size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems\n Manager document. For more information, see Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody or TemplateURL—or set\n UsePreviousTemplate to true.

" + "smithy.api#documentation": "

The location of the file that contains the template body. The URL must point to a\n template (maximum size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems\n Manager document. For more information, see Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must specify only one of the following parameters:\n TemplateBody or TemplateURL—or set\n UsePreviousTemplate to true.

" } }, "UsePreviousTemplate": { @@ -9633,74 +10135,74 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for AWS CloudFormation to update the stack set and its associated stack\n instances.

\n " + "smithy.api#documentation": "

In some cases, you must explicitly acknowledge that your stack template contains certain\n capabilities in order for CloudFormation to update the stack set and its associated stack\n instances.

\n " } }, "Tags": { "target": "com.amazonaws.cloudformation#Tags", "traits": { - "smithy.api#documentation": "

The key-value pairs to associate with this stack set and the stacks created from it.\n AWS CloudFormation also propagates these tags to supported resources that are created in\n the stacks. You can specify a maximum number of 50 tags.

\n

If you specify tags for this parameter, those tags replace any list of tags that are\n currently associated with this stack set. This means:

\n \n

If you specify new tags as part of an UpdateStackSet action, AWS\n CloudFormation checks to see if you have the required IAM permission to tag resources. If\n you omit tags that are currently associated with the stack set from the list of tags you\n specify, AWS CloudFormation assumes that you want to remove those tags from the stack set,\n and checks to see if you have permission to untag resources. If you don't have the\n necessary permission(s), the entire UpdateStackSet action fails with an\n access denied error, and the stack set is not updated.

" + "smithy.api#documentation": "

The key-value pairs to associate with this stack set and the stacks created from it.\n CloudFormation also propagates these tags to supported resources that are\n created in the stacks. You can specify a maximum number of 50 tags.

\n

If you specify tags for this parameter, those tags replace any list of tags that are\n currently associated with this stack set. This means:

\n \n

If you specify new tags as part of an UpdateStackSet action, CloudFormation checks to see if you have the required IAM permission to tag resources.\n If you omit tags that are currently associated with the stack set from the list of tags you\n specify, CloudFormation assumes that you want to remove those tags from the stack\n set, and checks to see if you have permission to untag resources. If you don't have the\n necessary permission(s), the entire UpdateStackSet action fails with an\n access denied error, and the stack set is not updated.

" } }, "OperationPreferences": { "target": "com.amazonaws.cloudformation#StackSetOperationPreferences", "traits": { - "smithy.api#documentation": "

Preferences for how AWS CloudFormation performs this stack set operation.

" + "smithy.api#documentation": "

Preferences for how CloudFormation performs this stack set\n operation.

" } }, "AdministrationRoleARN": { "target": "com.amazonaws.cloudformation#RoleARN", "traits": { - "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role to use to update this stack set.

\n

Specify an IAM role only if you are using customized administrator roles to control\n which users or groups can manage specific stack sets within the same administrator account.\n For more information, see Granting\n Permissions for Stack Set Operations in the\n AWS CloudFormation User Guide.

\n

If you specified a customized administrator role when you created the stack set, you\n must specify a customized administrator role, even if it is the same customized\n administrator role used with this stack set previously.

" + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the IAM role to use to update this stack set.

\n

Specify an IAM role only if you are using customized administrator roles to control\n which users or groups can manage specific stack sets within the same administrator account.\n For more information, see Granting\n Permissions for Stack Set Operations in the\n CloudFormation User Guide.

\n

If you specified a customized administrator role when you created the stack set, you\n must specify a customized administrator role, even if it is the same customized\n administrator role used with this stack set previously.

" } }, "ExecutionRoleName": { "target": "com.amazonaws.cloudformation#ExecutionRoleName", "traits": { - "smithy.api#documentation": "

The name of the IAM execution role to use to update the stack set. If you do not specify\n an execution role, AWS CloudFormation uses the AWSCloudFormationStackSetExecutionRole role\n for the stack set operation.

\n

Specify an IAM role only if you are using customized execution roles to control which\n stack resources users and groups can include in their stack sets.\n

\n

If you specify a customized execution role, AWS CloudFormation uses that role to update the stack.\n If you do not specify a customized execution role, AWS CloudFormation performs the update using the role\n previously associated with the stack set, so long as you have permissions to perform\n operations on the stack set.

" + "smithy.api#documentation": "

The name of the IAM execution role to use to update the stack set. If you do not specify\n an execution role, CloudFormation uses the AWSCloudFormationStackSetExecutionRole role\n for the stack set operation.

\n

Specify an IAM role only if you are using customized execution roles to control which\n stack resources users and groups can include in their stack sets.

\n

If you specify a customized execution role, CloudFormation uses that role to update the stack.\n If you do not specify a customized execution role, CloudFormation performs the update using the role\n previously associated with the stack set, so long as you have permissions to perform\n operations on the stack set.

" } }, "DeploymentTargets": { "target": "com.amazonaws.cloudformation#DeploymentTargets", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] The AWS Organizations accounts in which to update associated stack instances.

\n

To update all the stack instances associated with this stack set, do not specify DeploymentTargets or Regions.

\n

If the stack set update includes changes to the template (that is, if TemplateBody or TemplateURL is specified), or the Parameters, AWS CloudFormation marks all stack instances with a status of OUTDATED prior to updating the stack instances in the specified accounts and Regions. If the stack set update does not include changes to the template or parameters, AWS CloudFormation updates the stack instances in the specified accounts and Regions, while leaving all other stack instances with their existing stack instance status.

" + "smithy.api#documentation": "

[Service-managed permissions] The Organizations accounts in which to update\n associated stack instances.

\n

To update all the stack instances associated with this stack set, do not specify\n DeploymentTargets or Regions.

\n

If the stack set update includes changes to the template (that is, if\n TemplateBody or TemplateURL is specified), or the\n Parameters, CloudFormation marks all stack instances with a status\n of OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, CloudFormation updates the stack instances in the specified accounts\n and Regions, while leaving all other stack instances with their existing stack instance\n status.

" } }, "PermissionModel": { "target": "com.amazonaws.cloudformation#PermissionModels", "traits": { - "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created. You cannot modify PermissionModel if there are stack instances associated with your stack set.

\n " + "smithy.api#documentation": "

Describes how the IAM roles required for stack set operations are created. You cannot\n modify PermissionModel if there are stack instances associated with your stack\n set.

\n " } }, "AutoDeployment": { "target": "com.amazonaws.cloudformation#AutoDeployment", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to AWS Organizations accounts that are added to a target organization or organizational unit (OU).

\n

If you specify AutoDeployment, do not specify DeploymentTargets or Regions.

" + "smithy.api#documentation": "

[Service-managed permissions] Describes whether StackSets automatically deploys to\n Organizations accounts that are added to a target organization or organizational\n unit (OU).

\n

If you specify AutoDeployment, do not specify\n DeploymentTargets or Regions.

" } }, "OperationId": { "target": "com.amazonaws.cloudformation#ClientRequestToken", "traits": { - "smithy.api#documentation": "

The unique ID for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that AWS\n CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that AWS\n CloudFormation successfully received them.

\n

If you don't specify an operation ID, AWS CloudFormation generates one\n automatically.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", + "smithy.api#documentation": "

The unique ID for this stack set operation.

\n

The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the stack set operation only once, even if you retry the request\n multiple times. You might retry stack set operation requests to ensure that CloudFormation successfully received them.

\n

If you don't specify an operation ID, CloudFormation generates one\n automatically.

\n

Repeating this stack set operation with a new operation ID retries all stack\n instances whose status is OUTDATED.

", "smithy.api#idempotencyToken": {} } }, "Accounts": { "target": "com.amazonaws.cloudformation#AccountList", "traits": { - "smithy.api#documentation": "

[Self-managed permissions] The accounts in which to update associated stack instances. If you specify accounts, you\n must also specify the Regions in which to update stack set instances.

\n

To update all the stack instances associated with this stack set,\n do not specify the Accounts or Regions properties.

\n

If the stack set update includes changes to the template (that is, if the\n TemplateBody or TemplateURL properties are specified), or the\n Parameters property, AWS CloudFormation marks all stack instances with a status of\n OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, AWS CloudFormation updates the stack instances in the specified accounts and Regions, while\n leaving all other stack instances with their existing stack instance status.

" + "smithy.api#documentation": "

[Self-managed permissions] The accounts in which to update associated stack instances.\n If you specify accounts, you must also specify the Regions in which to update stack set\n instances.

\n

To update all the stack instances associated with this stack set,\n do not specify the Accounts or Regions properties.

\n

If the stack set update includes changes to the template (that is, if the\n TemplateBody or TemplateURL properties are specified), or the\n Parameters property, CloudFormation marks all stack instances with a status of\n OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, CloudFormation updates the stack instances in the specified accounts and Regions, while\n leaving all other stack instances with their existing stack instance status.

" } }, "Regions": { "target": "com.amazonaws.cloudformation#RegionList", "traits": { - "smithy.api#documentation": "

The Regions in which to update associated stack instances. If you specify Regions, you\n must also specify accounts in which to update stack set instances.

\n

To update all the stack instances associated with this stack set,\n do not specify the Accounts or Regions properties.

\n

If the stack set update includes changes to the template (that is, if the\n TemplateBody or TemplateURL properties are specified), or the\n Parameters property, AWS CloudFormation marks all stack instances with a status of\n OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, AWS CloudFormation updates the stack instances in the specified accounts and Regions, while\n leaving all other stack instances with their existing stack instance status.

" + "smithy.api#documentation": "

The Regions in which to update associated stack instances. If you specify Regions, you\n must also specify accounts in which to update stack set instances.

\n

To update all the stack instances associated with this stack set,\n do not specify the Accounts or Regions properties.

\n

If the stack set update includes changes to the template (that is, if the\n TemplateBody or TemplateURL properties are specified), or the\n Parameters property, CloudFormation marks all stack instances with a status of\n OUTDATED prior to updating the stack instances in the specified accounts\n and Regions. If the stack set update does not include changes to the template or\n parameters, CloudFormation updates the stack instances in the specified accounts and Regions, while\n leaving all other stack instances with their existing stack instance status.

" } }, "CallAs": { "target": "com.amazonaws.cloudformation#CallAs", "traits": { - "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

\n

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

\n " + "smithy.api#documentation": "

[Service-managed permissions] Specifies whether you are acting as an account\n administrator in the organization's management account or as a delegated administrator in a\n member account.

\n

By default, SELF is specified. Use SELF for stack sets with\n self-managed permissions.

\n " } } } @@ -9725,7 +10227,7 @@ "target": "com.amazonaws.cloudformation#UpdateTerminationProtectionOutput" }, "traits": { - "smithy.api#documentation": "

Updates termination protection for the specified stack. If a user attempts to delete\n a stack with termination protection enabled, the operation fails and the stack remains\n unchanged. For more information, see Protecting a\n Stack From Being Deleted in the AWS CloudFormation User Guide.

\n

For nested\n stacks, termination protection is set on the root stack and cannot be changed\n directly on the nested stack.

" + "smithy.api#documentation": "

Updates termination protection for the specified stack. If a user attempts to delete\n a stack with termination protection enabled, the operation fails and the stack remains\n unchanged. For more information, see Protecting a\n Stack From Being Deleted in the CloudFormation User Guide.

\n

For nested\n stacks, termination protection is set on the root stack and cannot be changed\n directly on the nested stack.

" } }, "com.amazonaws.cloudformation#UpdateTerminationProtectionInput": { @@ -9782,7 +10284,7 @@ "target": "com.amazonaws.cloudformation#ValidateTemplateOutput" }, "traits": { - "smithy.api#documentation": "

Validates a specified template. AWS CloudFormation first checks if the template is\n valid JSON. If it isn't, AWS CloudFormation checks if the template is valid YAML. If both\n these checks fail, AWS CloudFormation returns a template validation error.

" + "smithy.api#documentation": "

Validates a specified template. CloudFormation first checks if the template\n is valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If\n both these checks fail, CloudFormation returns a template validation\n error.

" } }, "com.amazonaws.cloudformation#ValidateTemplateInput": { @@ -9791,13 +10293,13 @@ "TemplateBody": { "target": "com.amazonaws.cloudformation#TemplateBody", "traits": { - "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" + "smithy.api#documentation": "

Structure containing the template body with a minimum length of 1 byte and a maximum\n length of 51,200 bytes. For more information, go to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" } }, "TemplateURL": { "target": "com.amazonaws.cloudformation#TemplateURL", "traits": { - "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information, go to Template Anatomy\n in the AWS CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" + "smithy.api#documentation": "

Location of file containing the template body. The URL must point to a template (max\n size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document.\n For more information, go to Template Anatomy\n in the CloudFormation User Guide.

\n

Conditional: You must pass TemplateURL or TemplateBody. If\n both are passed, only TemplateBody is used.

" } } }, @@ -9823,7 +10325,7 @@ "Capabilities": { "target": "com.amazonaws.cloudformation#Capabilities", "traits": { - "smithy.api#documentation": "

The capabilities found within the template. If your template contains IAM resources,\n you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when\n you use the CreateStack or UpdateStack actions with\n your template; otherwise, those actions return an InsufficientCapabilities error.

\n

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

" + "smithy.api#documentation": "

The capabilities found within the template. If your template contains IAM resources,\n you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when\n you use the CreateStack or UpdateStack actions with\n your template; otherwise, those actions return an InsufficientCapabilities error.

\n

For more information, see Acknowledging IAM Resources in CloudFormation Templates.

" } }, "CapabilitiesReason": { diff --git a/codegen/sdk-codegen/aws-models/cloudwatch.2010-08-01.json b/codegen/sdk-codegen/aws-models/cloudwatch.2010-08-01.json index d564524a1d6..ec30af17c95 100644 --- a/codegen/sdk-codegen/aws-models/cloudwatch.2010-08-01.json +++ b/codegen/sdk-codegen/aws-models/cloudwatch.2010-08-01.json @@ -29,6 +29,15 @@ ] }, "shapes": { + "com.amazonaws.cloudwatch#AccountId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + } + } + }, "com.amazonaws.cloudwatch#ActionPrefix": { "type": "string", "traits": { @@ -1315,14 +1324,14 @@ "Name": { "target": "com.amazonaws.cloudwatch#DimensionName", "traits": { - "smithy.api#documentation": "

The name of the dimension. Dimension names cannot contain blank spaces or non-ASCII\n\t\tcharacters.

", + "smithy.api#documentation": "

The name of the dimension. Dimension names must contain only ASCII characters and must include \n\t\t\tat least one non-whitespace character.

", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.cloudwatch#DimensionValue", "traits": { - "smithy.api#documentation": "

The value of the dimension. Dimension values cannot contain blank spaces \n\t\t\tor non-ASCII characters.

", + "smithy.api#documentation": "

The value of the dimension. Dimension values must contain only ASCII characters and must include \n\t\t\tat least one non-whitespace character.

", "smithy.api#required": {} } } @@ -1885,7 +1894,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets statistics for the specified metric.

\n\n\n\n\t\t

The maximum number of data points returned from a single call is 1,440. If \n\t\t\tyou request more than 1,440 data points, CloudWatch returns an error. \n\t\t\tTo reduce the number of data points, you can narrow the specified time range and make \n\t\t\tmultiple requests across adjacent time ranges, or you can increase the specified period. \n\t\t\tData points are not returned in chronological order.

\n\n\t\t

CloudWatch aggregates data points based on the length of the period\n\t\t\tthat you specify. For example, if you request statistics with a one-hour period, \n\t\t\tCloudWatch aggregates all data points with time stamps that fall within each \n\t\t\tone-hour period. Therefore, the number of values aggregated by CloudWatch is larger than\n\t\t\tthe number of data points returned.

\n\t\t

CloudWatch needs raw data points to calculate percentile statistics. If you publish \n\t\t\tdata using a statistic set instead, you can only retrieve \n\t\t\tpercentile statistics for this data if one of the following conditions is true:

\n\t\t \n\t\t

Percentile statistics are not available for metrics when any of the metric values are negative numbers.

\n\t\t

Amazon CloudWatch retains metric data as follows:

\n\t\t \n\t\t

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect \n\t\t\tdata using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, \n\t\t\tbut is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with \n\t\ta resolution of 1 hour.

\n\t\t

CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.

\t\n\n\t\t

For information about metrics and dimensions supported by AWS services, see the \n\t\t\tAmazon CloudWatch Metrics and Dimensions Reference in the\n\t\t\tAmazon CloudWatch User Guide.

" + "smithy.api#documentation": "

Gets statistics for the specified metric.

\n\n\n\n\t\t

The maximum number of data points returned from a single call is 1,440. If \n\t\t\tyou request more than 1,440 data points, CloudWatch returns an error. \n\t\t\tTo reduce the number of data points, you can narrow the specified time range and make \n\t\t\tmultiple requests across adjacent time ranges, or you can increase the specified period. \n\t\t\tData points are not returned in chronological order.

\n\n\t\t

CloudWatch aggregates data points based on the length of the period\n\t\t\tthat you specify. For example, if you request statistics with a one-hour period, \n\t\t\tCloudWatch aggregates all data points with time stamps that fall within each \n\t\t\tone-hour period. Therefore, the number of values aggregated by CloudWatch is larger than\n\t\t\tthe number of data points returned.

\n\t\t

CloudWatch needs raw data points to calculate percentile statistics. If you publish \n\t\t\tdata using a statistic set instead, you can only retrieve \n\t\t\tpercentile statistics for this data if one of the following conditions is true:

\n\t\t \n\t\t

Percentile statistics are not available for metrics when any of the metric values are negative numbers.

\n\t\t

Amazon CloudWatch retains metric data as follows:

\n\t\t \n\t\t

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect \n\t\t\tdata using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, \n\t\t\tbut is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with \n\t\ta resolution of 1 hour.

\n\t\t

CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.

\t\n\n\t\t

For information about metrics and dimensions supported by Amazon Web Services services, see the \n\t\t\tAmazon CloudWatch Metrics and Dimensions Reference in the\n\t\t\tAmazon CloudWatch User Guide.

" } }, "com.amazonaws.cloudwatch#GetMetricStatisticsInput": { @@ -1908,7 +1917,7 @@ "Dimensions": { "target": "com.amazonaws.cloudwatch#Dimensions", "traits": { - "smithy.api#documentation": "

The dimensions. If the metric contains multiple dimensions, you must include a value for each dimension. CloudWatch treats each unique combination of dimensions as a separate metric.\n\t\t If a specific combination of dimensions was not published, you can't retrieve statistics for it.\n\t\t You must specify the same dimensions that were used when the metrics were created. For an example,\n\t\t see Dimension Combinations in the Amazon CloudWatch User Guide. For more information about specifying dimensions, see Publishing Metrics in the\n\t\t\tAmazon CloudWatch User Guide.

" + "smithy.api#documentation": "

The dimensions. If the metric contains multiple dimensions, you must include a value for each dimension. \n\t\t\tCloudWatch treats each unique combination of dimensions as a separate metric.\n\t\t If a specific combination of dimensions was not published, you can't retrieve statistics for it.\n\t\t You must specify the same dimensions that were used when the metrics were created. For an example,\n\t\t see Dimension Combinations in the Amazon CloudWatch User Guide. For more information about specifying dimensions, see Publishing Metrics in the\n\t\t\tAmazon CloudWatch User Guide.

" } }, "StartTime": { @@ -2100,7 +2109,7 @@ "OutputFormat": { "target": "com.amazonaws.cloudwatch#OutputFormat", "traits": { - "smithy.api#documentation": "

The format of the resulting image. Only PNG images are supported.

\n\n\t\t

The default is png. If you specify png, the API returns an HTTP response with the \n\t\t\tcontent-type set to text/xml. The image data is in a MetricWidgetImage \n\t\t\tfield. For example:

\n\t\t\n\t\t

\n \n\t\t\t>\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n 6f0d4192-4d42-11e8-82c1-f539a07e0e3b\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t\n\t\t

The image/png setting is intended only for custom HTTP requests. For most\n\t\t\tuse cases, and all actions using an AWS SDK, you should use png. If you specify \n\t\t\timage/png, the HTTP response has a content-type set to image/png, \n\t\t\tand the body of the response is a PNG image.

" + "smithy.api#documentation": "

The format of the resulting image. Only PNG images are supported.

\n\n\t\t

The default is png. If you specify png, the API returns an HTTP response with the \n\t\t\tcontent-type set to text/xml. The image data is in a MetricWidgetImage \n\t\t\tfield. For example:

\n\t\t\n\t\t

\n \n\t\t\t>\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t

\n 6f0d4192-4d42-11e8-82c1-f539a07e0e3b\n

\n\t\t

\n \n

\n\t\t

\n \n

\n\t\t\n\t\t

The image/png setting is intended only for custom HTTP requests. For most\n\t\t\tuse cases, and all actions using an Amazon Web Services SDK, you should use png. If you specify \n\t\t\timage/png, the HTTP response has a content-type set to image/png, \n\t\t\tand the body of the response is a PNG image.

" } } } @@ -2241,7 +2250,7 @@ "name": "monitoring" }, "aws.protocols#awsQuery": {}, - "smithy.api#documentation": "

Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the\n\t\t\tapplications you run on AWS in real time. You can use CloudWatch to collect and track\n\t\t\tmetrics, which are the variables you want to measure for your resources and\n\t\t\tapplications.

\n\n\t\t

CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules\n\t\t\tthat you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2\n\t\t\tinstances. Then, use this data to determine whether you should launch\n\t\t\tadditional instances to handle increased load. You can also use this data to stop\n\t\t\tunder-used instances to save\n\t\t\tmoney.

\n\n\t\t

In addition to monitoring the built-in metrics that come with AWS, you can monitor\n\t\t\tyour own custom metrics. With CloudWatch, you gain system-wide visibility into resource\n\t\t\tutilization, application performance, and operational health.

", + "smithy.api#documentation": "

Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources and the\n\t\t\tapplications you run on Amazon Web Services in real time. You can use CloudWatch to collect and track\n\t\t\tmetrics, which are the variables you want to measure for your resources and\n\t\t\tapplications.

\n\n\t\t

CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules\n\t\t\tthat you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2\n\t\t\tinstances. Then, use this data to determine whether you should launch\n\t\t\tadditional instances to handle increased load. You can also use this data to stop\n\t\t\tunder-used instances to save\n\t\t\tmoney.

\n\n\t\t

In addition to monitoring the built-in metrics that come with Amazon Web Services, you can monitor\n\t\t\tyour own custom metrics. With CloudWatch, you gain system-wide visibility into resource\n\t\t\tutilization, application performance, and operational health.

", "smithy.api#title": "Amazon CloudWatch", "smithy.api#xmlNamespace": { "uri": "http://monitoring.amazonaws.com/doc/2010-08-01/" @@ -3017,7 +3026,7 @@ } }, "traits": { - "smithy.api#documentation": "

A message returned by the GetMetricDataAPI, including a code and a description.

" + "smithy.api#documentation": "

A message returned by the GetMetricDataAPI, including a code and a description.

\n\t\t

If a cross-Region GetMetricData operation fails with a code of Forbidden and a \n\t\t\tvalue of Authentication too complex to \n\t\t\tretrieve cross region data, you can correct the problem by running the GetMetricData\n\t\toperation in the same Region where the metric data is.

" } }, "com.amazonaws.cloudwatch#MessageDataCode": { @@ -3279,6 +3288,12 @@ "traits": { "smithy.api#documentation": "

The granularity, in seconds, of the returned data points. For metrics with regular resolution, a \n\t\t\tperiod can be as short as one minute (60 seconds) and must be a multiple of 60. \n\t\t\tFor high-resolution metrics that are collected at intervals of less than one minute, \n\t\t\tthe period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics \n\t\t\tstored by a PutMetricData operation that includes a StorageResolution of 1 second.

" } + }, + "AccountId": { + "target": "com.amazonaws.cloudwatch#AccountId", + "traits": { + "smithy.api#documentation": "

The ID of the account where the metrics are located, if this is a cross-account alarm.

\n\t\t

Use this field only for PutMetricAlarm operations. It is not used in \n\t\tGetMetricData operations.

" + } } }, "traits": { @@ -3927,7 +3942,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates or updates an alarm and associates it with the specified metric, metric math expression, \n\t\t\tor anomaly detection model.

\n\t\t

Alarms based on anomaly detection models cannot have Auto Scaling actions.

\n\t\t

When this operation creates an alarm, the alarm state is immediately set to\n\t\t\tINSUFFICIENT_DATA. The alarm is then evaluated and its state is set\n\t\t\tappropriately. Any actions associated with the new state are then executed.

\n\t\t

When you update an existing alarm, its state is left unchanged, but the\n\t\t\tupdate completely overwrites the previous configuration of the alarm.

\n\n\t\t

If you are an IAM user, you must have \n\t\t\tAmazon EC2 permissions for some alarm operations:

\n\t\t \n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t

The first time you create an alarm in the \n\t\t\tAWS Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch\n\t\t\tcreates the necessary service-linked role for you. The service-linked roles \n\t\t\tare called AWSServiceRoleForCloudWatchEvents and \n\t\t\tAWSServiceRoleForCloudWatchAlarms_ActionSSM.\n\t\t\tFor more information, see AWS service-linked role.

" + "smithy.api#documentation": "

Creates or updates an alarm and associates it with the specified metric, metric math expression, \n\t\t\tor anomaly detection model.

\n\t\t\n\t\t\n\t\t

Alarms based on anomaly detection models cannot have Auto Scaling actions.

\n\t\t

When this operation creates an alarm, the alarm state is immediately set to\n\t\t\tINSUFFICIENT_DATA. The alarm is then evaluated and its state is set\n\t\t\tappropriately. Any actions associated with the new state are then executed.

\n\t\t

When you update an existing alarm, its state is left unchanged, but the\n\t\t\tupdate completely overwrites the previous configuration of the alarm.

\n\n\t\t

If you are an IAM user, you must have \n\t\t\tAmazon EC2 permissions for some alarm operations:

\n\t\t \n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t

The first time you create an alarm in the \n\t\t\tManagement Console, the CLI, or by using the PutMetricAlarm API, CloudWatch\n\t\t\tcreates the necessary service-linked role for you. The service-linked roles \n\t\t\tare called AWSServiceRoleForCloudWatchEvents and \n\t\t\tAWSServiceRoleForCloudWatchAlarms_ActionSSM.\n\t\t\tFor more information, see Amazon Web Services service-linked role.

\n\t\t\t\n\t\t

\n Cross-account alarms\n

\n\t\t\n\t\t

You can set an alarm on metrics in the current account, or in another \n\t\t\taccount. To create a cross-account alarm that watches a metric in a different account, you must have completed the following\n\t\t\tpre-requisites:

\n\t\t " } }, "com.amazonaws.cloudwatch#PutMetricAlarmInput": { @@ -3961,7 +3976,7 @@ "AlarmActions": { "target": "com.amazonaws.cloudwatch#ResourceList", "traits": { - "smithy.api#documentation": "

The actions to execute when this alarm transitions to the ALARM state from any other state. \n\t\t\tEach action is specified as an Amazon Resource Name (ARN).

\n\n\t\t

Valid Values: arn:aws:automate:region:ec2:stop | \n\t\t\tarn:aws:automate:region:ec2:terminate | \n\t\t\tarn:aws:automate:region:ec2:recover |\n\t\t\tarn:aws:automate:region:ec2:reboot |\n\t\t\tarn:aws:sns:region:account-id:sns-topic-name\n |\n\t\t\tarn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name\n \n\t\t\t| arn:aws:ssm:region:account-id:opsitem:severity\n \n

\n\n\t\t

Valid Values (for use with IAM roles):\n\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 |\n\t\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 |\n\t\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0\n

" + "smithy.api#documentation": "

The actions to execute when this alarm transitions to the ALARM state from any other state. \n\t\t\tEach action is specified as an Amazon Resource Name (ARN).

\n\n\t\t

Valid Values: arn:aws:automate:region:ec2:stop | \n\t\t\tarn:aws:automate:region:ec2:terminate | \n\t\t\tarn:aws:automate:region:ec2:recover |\n\t\t\tarn:aws:automate:region:ec2:reboot |\n\t\t\tarn:aws:sns:region:account-id:sns-topic-name\n |\n\t\t\tarn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name\n \n\t\t\t| arn:aws:ssm:region:account-id:opsitem:severity\n \n\t\t\t| arn:aws:ssm-incidents::account-id:response-plan:response-plan-name\n \n

\n\n\t\t

Valid Values (for use with IAM roles):\n\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 |\n\t\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 |\n\t\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 |\n\t\t\tarn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0\n

" } }, "InsufficientDataActions": { @@ -4099,7 +4114,7 @@ "Namespace": { "target": "com.amazonaws.cloudwatch#Namespace", "traits": { - "smithy.api#documentation": "

The namespace for the metric data.

\n\t\t

To avoid conflicts\n\t\t\twith AWS service namespaces, you should not specify a namespace that begins with AWS/\n

", + "smithy.api#documentation": "

The namespace for the metric data.

\n\t\t

To avoid conflicts\n\t\t\twith Amazon Web Services service namespaces, you should not specify a namespace that begins with AWS/\n

", "smithy.api#required": {} } }, @@ -4138,7 +4153,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics \n\t\t\tto AWS destinations including\n\t\t\tAmazon S3 and to many third-party solutions.

\n\t\t

For more information, see \n\t\tUsing Metric Streams.

\n\t\t

To create a metric stream, \n\t\t\tyou must be logged on to an account that has the iam:PassRole permission\n\t\t\tand either the CloudWatchFullAccess\n\t\tpolicy or the cloudwatch:PutMetricStream \n\t\tpermission.

\n\t\t

When you create or update a metric stream, you choose one of the following:

\n\t\t \n\t\t\n\t\t

When you use PutMetricStream to create a new metric stream, the stream \n\t\tis created in the running state. If you use it to update an existing stream, \n\t\tthe state of the stream is not changed.

" + "smithy.api#documentation": "

Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics \n\t\t\tto Amazon Web Services destinations including\n\t\t\tAmazon S3 and to many third-party solutions.

\n\t\t

For more information, see \n\t\tUsing Metric Streams.

\n\t\t

To create a metric stream, \n\t\t\tyou must be logged on to an account that has the iam:PassRole permission\n\t\t\tand either the CloudWatchFullAccess\n\t\tpolicy or the cloudwatch:PutMetricStream \n\t\tpermission.

\n\t\t

When you create or update a metric stream, you choose one of the following:

\n\t\t \n\t\t\n\t\t

When you use PutMetricStream to create a new metric stream, the stream \n\t\tis created in the running state. If you use it to update an existing stream, \n\t\tthe state of the stream is not changed.

" } }, "com.amazonaws.cloudwatch#PutMetricStreamInput": { @@ -4187,7 +4202,7 @@ "Tags": { "target": "com.amazonaws.cloudwatch#TagList", "traits": { - "smithy.api#documentation": "

A list of key-value pairs to associate with the metric stream. You can associate as \n\t\t\tmany as 50 tags with a metric stream.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to scope user\n\t\t\tpermissions by granting a user\n\t\t\tpermission to access or change only resources with certain tag values.

" + "smithy.api#documentation": "

A list of key-value pairs to associate with the metric stream. You can associate as \n\t\t\tmany as 50 tags with a metric stream.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to scope user\n\t\t\tpermissions by granting a user\n\t\t\tpermission to access or change only resources with certain tag values.

\n\t\t

You can use this parameter only when you are creating a new metric stream. If you are using this operation to update an existing metric stream, any tags\n\t\t\tyou specify in this parameter are ignored. To change the tags of an existing metric stream, use\n\t\t\tTagResource\n\t\t\tor UntagResource.

" } } } @@ -4781,7 +4796,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that \n\t\t\tcan be tagged are alarms and Contributor Insights rules.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to scope user\n\t\t\tpermissions by granting a user\n\t\t\tpermission to access or change only resources with certain tag values.

\n\t\t

Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.

\n\t\t

You can use the TagResource action with an alarm that already has tags. If you specify a new tag key for the alarm, \n\t\t\tthis tag is appended to the list of tags associated\n\t\t\twith the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces\n\t\t\tthe previous value for that tag.

\n\t\t

You can associate as many as 50 tags with a CloudWatch resource.

" + "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that \n\t\t\tcan be tagged are alarms and Contributor Insights rules.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to scope user\n\t\t\tpermissions by granting a user\n\t\t\tpermission to access or change only resources with certain tag values.

\n\t\t

Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

\n\t\t

You can use the TagResource action with an alarm that already has tags. If you specify a new tag key for the alarm, \n\t\t\tthis tag is appended to the list of tags associated\n\t\t\twith the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces\n\t\t\tthe previous value for that tag.

\n\t\t

You can associate as many as 50 tags with a CloudWatch resource.

" } }, "com.amazonaws.cloudwatch#TagResourceInput": { diff --git a/codegen/sdk-codegen/aws-models/codebuild.2016-10-06.json b/codegen/sdk-codegen/aws-models/codebuild.2016-10-06.json index 8c338794c11..e514a8e41b2 100644 --- a/codegen/sdk-codegen/aws-models/codebuild.2016-10-06.json +++ b/codegen/sdk-codegen/aws-models/codebuild.2016-10-06.json @@ -37,7 +37,7 @@ } }, "traits": { - "smithy.api#documentation": "

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

", + "smithy.api#documentation": "

An AWS service limit was exceeded for the calling AWS account.

", "smithy.api#error": "client" } }, @@ -270,7 +270,7 @@ "names": { "target": "com.amazonaws.codebuild#ProjectNames", "traits": { - "smithy.api#documentation": "

The names or ARNs of the build projects. To get information about a project shared\n with your Amazon Web Services account, its ARN must be specified. You cannot specify a shared project\n using its name.

", + "smithy.api#documentation": "

The names or ARNs of the build projects. To get information about a project shared\n with your AWS account, its ARN must be specified. You cannot specify a shared project\n using its name.

", "smithy.api#required": {} } } @@ -397,7 +397,7 @@ "computeTypesAllowed": { "target": "com.amazonaws.codebuild#ComputeTypesAllowed", "traits": { - "smithy.api#documentation": "

An array of strings that specify the compute types that are allowed for the batch\n build. See Build environment\n compute types in the CodeBuild User Guide for these values.\n

" + "smithy.api#documentation": "

An array of strings that specify the compute types that are allowed for the batch\n build. See Build environment\n compute types in the AWS CodeBuild User Guide for these values.\n

" } } }, @@ -408,6 +408,26 @@ "com.amazonaws.codebuild#Boolean": { "type": "boolean" }, + "com.amazonaws.codebuild#BucketOwnerAccess": { + "type": "string", + "traits": { + "smithy.api#documentation": "

Specifies the access for objects that are uploaded to an Amazon S3 bucket that is owned by\n another account.

\n

By default, only the account that uploads the objects to the bucket has access to\n these objects. This property allows you to give the bucket owner access to these\n objects.

\n
\n
NONE
\n
\n

The bucket owner does not have access to the objects. This is the\n default.

\n
\n
READ_ONLY
\n
\n

The bucket owner has read only access to the objects. The uploading account\n retains ownership of the objects.

\n
\n
FULL
\n
\n

The bucket owner has full access to the objects. Object ownership is determined\n by the following criteria:

\n \n

For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3\n Object Ownership in the Amazon Simple Storage Service User\n Guide.

\n
\n
", + "smithy.api#enum": [ + { + "value": "NONE", + "name": "NONE" + }, + { + "value": "READ_ONLY", + "name": "READ_ONLY" + }, + { + "value": "FULL", + "name": "FULL" + } + ] + } + }, "com.amazonaws.codebuild#Build": { "type": "structure", "members": { @@ -456,19 +476,19 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

Any version identifier for the version of the source code to be built. If\n sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

" + "smithy.api#documentation": "

Any version identifier for the version of the source code to be built. If\n sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide.

" } }, "resolvedSourceVersion": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

An identifier for the version of this build's source code.

\n " + "smithy.api#documentation": "

An identifier for the version of this build's source code.

\n " } }, "projectName": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the CodeBuild project.

" + "smithy.api#documentation": "

The name of the AWS CodeBuild project.

" } }, "phases": { @@ -492,7 +512,7 @@ "secondarySourceVersions": { "target": "com.amazonaws.codebuild#ProjectSecondarySourceVersions", "traits": { - "smithy.api#documentation": "

An array of ProjectSourceVersion objects. Each\n ProjectSourceVersion must be one of:

\n " + "smithy.api#documentation": "

An array of ProjectSourceVersion objects. Each\n ProjectSourceVersion must be one of:

\n " } }, "artifacts": { @@ -528,13 +548,13 @@ "logs": { "target": "com.amazonaws.codebuild#LogsLocation", "traits": { - "smithy.api#documentation": "

Information about the build's logs in CloudWatch Logs.

" + "smithy.api#documentation": "

Information about the build's logs in Amazon CloudWatch Logs.

" } }, "timeoutInMinutes": { "target": "com.amazonaws.codebuild#WrapperInt", "traits": { - "smithy.api#documentation": "

How long, in minutes, for CodeBuild to wait before timing out this build if it does\n not get marked as completed.

" + "smithy.api#documentation": "

How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not\n get marked as completed.

" } }, "queuedTimeoutInMinutes": { @@ -552,13 +572,13 @@ "initiator": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The entity that started the build. Valid values include:

\n " + "smithy.api#documentation": "

The entity that started the build. Valid values include:

\n " } }, "vpcConfig": { "target": "com.amazonaws.codebuild#VpcConfig", "traits": { - "smithy.api#documentation": "

If your CodeBuild project accesses resources in an Amazon VPC, you provide this\n parameter that identifies the VPC ID and the list of security group IDs and subnet IDs.\n The security groups and subnets must belong to the same VPC. You must provide at least\n one security group and one subnet ID.

" + "smithy.api#documentation": "

If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide this parameter\n that identifies the VPC ID and the list of security group IDs and subnet IDs. The\n security groups and subnets must belong to the same VPC. You must provide at least one\n security group and one subnet ID.

" } }, "networkInterface": { @@ -570,13 +590,13 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" + "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" } }, "exportedEnvironmentVariables": { "target": "com.amazonaws.codebuild#ExportedEnvironmentVariables", "traits": { - "smithy.api#documentation": "

A list of exported environment variables for this build.

\n

Exported environment variables are used in conjunction with CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the CodePipeline User Guide.

" + "smithy.api#documentation": "

A list of exported environment variables for this build.

\n

Exported environment variables are used in conjunction with AWS CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the AWS CodePipeline User Guide.

" } }, "reportArns": { @@ -646,6 +666,9 @@ "traits": { "smithy.api#documentation": "

An identifier for this artifact definition.

" } + }, + "bucketOwnerAccess": { + "target": "com.amazonaws.codebuild#BucketOwnerAccess" } }, "traits": { @@ -712,7 +735,7 @@ "resolvedSourceVersion": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the resolved version of this batch build's source code.

\n " + "smithy.api#documentation": "

The identifier of the resolved version of this batch build's source code.

\n " } }, "projectName": { @@ -739,7 +762,7 @@ "secondarySourceVersions": { "target": "com.amazonaws.codebuild#ProjectSecondarySourceVersions", "traits": { - "smithy.api#documentation": "

An array of ProjectSourceVersion objects. Each\n ProjectSourceVersion must be one of:

\n " + "smithy.api#documentation": "

An array of ProjectSourceVersion objects. Each\n ProjectSourceVersion must be one of:

\n " } }, "artifacts": { @@ -790,7 +813,7 @@ "initiator": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The entity that started the batch build. Valid values include:

\n " + "smithy.api#documentation": "

The entity that started the batch build. Valid values include:

\n " } }, "vpcConfig": { @@ -799,7 +822,7 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the batch build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" + "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the batch build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" } }, "buildBatchNumber": { @@ -1157,7 +1180,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information that defines how the CodeBuild build project reports the build status\n to the source provider.

" + "smithy.api#documentation": "

Contains information that defines how the AWS CodeBuild build project reports the build status\n to the source provider.

" } }, "com.amazonaws.codebuild#BuildSummaries": { @@ -1260,25 +1283,25 @@ "status": { "target": "com.amazonaws.codebuild#LogsConfigStatusType", "traits": { - "smithy.api#documentation": "

The current status of the logs in CloudWatch Logs for a build project. Valid values are:

\n ", + "smithy.api#documentation": "

The current status of the logs in Amazon CloudWatch Logs for a build project. Valid values are:

\n ", "smithy.api#required": {} } }, "groupName": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The group name of the logs in CloudWatch Logs. For more information, see Working\n with Log Groups and Log Streams.

" + "smithy.api#documentation": "

The group name of the logs in Amazon CloudWatch Logs. For more information, see Working\n with Log Groups and Log Streams.

" } }, "streamName": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The prefix of the stream name of the CloudWatch Logs. For more information, see Working\n with Log Groups and Log Streams.

" + "smithy.api#documentation": "

The prefix of the stream name of the Amazon CloudWatch Logs. For more information, see Working\n with Log Groups and Log Streams.

" } } }, "traits": { - "smithy.api#documentation": "

Information about CloudWatch Logs for a build project.

" + "smithy.api#documentation": "

Information about Amazon CloudWatch Logs for a build project.

" } }, "com.amazonaws.codebuild#CodeBuild_20161006": { @@ -1430,7 +1453,7 @@ "name": "codebuild" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "

CodeBuild is a fully managed build service in the cloud. CodeBuild compiles your source\n code, runs unit tests, and produces artifacts that are ready to deploy. CodeBuild eliminates\n the need to provision, manage, and scale your own build servers. It provides prepackaged\n build environments for the most popular programming languages and build tools, such as\n Apache Maven, Gradle, and more. You can also fully customize build environments in CodeBuild\n to use your own build tools. CodeBuild scales automatically to meet peak build requests. You\n pay only for the build time you consume. For more information about CodeBuild, see the \n CodeBuild\n User Guide.\n

", + "smithy.api#documentation": "AWS CodeBuild\n

AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild compiles your source code,\n runs unit tests, and produces artifacts that are ready to deploy. AWS CodeBuild eliminates the\n need to provision, manage, and scale your own build servers. It provides prepackaged\n build environments for the most popular programming languages and build tools, such as\n Apache Maven, Gradle, and more. You can also fully customize build environments in AWS CodeBuild\n to use your own build tools. AWS CodeBuild scales automatically to meet peak build requests. You\n pay only for the build time you consume. For more information about AWS CodeBuild, see the \n AWS CodeBuild User\n Guide.\n

", "smithy.api#title": "AWS CodeBuild" } }, @@ -1636,7 +1659,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the latest\n version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version takes\n precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

" + "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the latest\n version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version takes\n precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide. \n

" } }, "secondarySourceVersions": { @@ -1674,14 +1697,14 @@ "serviceRole": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the Identity and Access Management role that enables CodeBuild to interact with dependent Amazon Web Services services\n on behalf of the Amazon Web Services account.

", + "smithy.api#documentation": "

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services\n on behalf of the AWS account.

", "smithy.api#required": {} } }, "timeoutInMinutes": { "target": "com.amazonaws.codebuild#TimeOut", "traits": { - "smithy.api#documentation": "

How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before it times out\n any build that has not been marked as completed. The default is 60 minutes.

" + "smithy.api#documentation": "

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before it times out\n any build that has not been marked as completed. The default is 60 minutes.

" } }, "queuedTimeoutInMinutes": { @@ -1693,19 +1716,19 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" + "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" } }, "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

A list of tag key and value pairs associated with this build project.

\n

These tags are available for use by Amazon Web Services services that support CodeBuild build project\n tags.

" + "smithy.api#documentation": "

A list of tag key and value pairs associated with this build project.

\n

These tags are available for use by AWS services that support AWS CodeBuild build project\n tags.

" } }, "vpcConfig": { "target": "com.amazonaws.codebuild#VpcConfig", "traits": { - "smithy.api#documentation": "

VpcConfig enables CodeBuild to access resources in an Amazon VPC.

" + "smithy.api#documentation": "

VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.

" } }, "badgeEnabled": { @@ -1717,7 +1740,7 @@ "logsConfig": { "target": "com.amazonaws.codebuild#LogsConfig", "traits": { - "smithy.api#documentation": "

Information about logs for the build project. These can be logs in CloudWatch Logs, logs\n uploaded to a specified S3 bucket, or both.

" + "smithy.api#documentation": "

Information about logs for the build project. These can be logs in Amazon CloudWatch Logs, logs\n uploaded to a specified S3 bucket, or both.

" } }, "fileSystemLocations": { @@ -1801,7 +1824,7 @@ "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

\n A list of tag key and value pairs associated with this report group.\n

\n

These tags are available for use by Amazon Web Services services that support CodeBuild report group\n tags.

" + "smithy.api#documentation": "

\n A list of tag key and value pairs associated with this report group.\n

\n

These tags are available for use by AWS services that support AWS CodeBuild report group\n tags.

" } } } @@ -1840,7 +1863,7 @@ } ], "traits": { - "smithy.api#documentation": "

For an existing CodeBuild build project that has its source code stored in a GitHub or\n Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a\n code change is pushed to the repository.

\n \n

If you enable webhooks for an CodeBuild project, and the project is used as a build\n step in CodePipeline, then two identical builds are created for each commit. One build is\n triggered through webhooks, and one through CodePipeline. Because billing is on a per-build\n basis, you are billed for both builds. Therefore, if you are using CodePipeline, we\n recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the\n Webhook box. For more information, see step 5 in Change a Build Project's Settings.

\n
" + "smithy.api#documentation": "

For an existing AWS CodeBuild build project that has its source code stored in a GitHub or\n Bitbucket repository, enables AWS CodeBuild to start rebuilding the source code every time a\n code change is pushed to the repository.

\n \n

If you enable webhooks for an AWS CodeBuild project, and the project is used as a build\n step in AWS CodePipeline, then two identical builds are created for each commit. One build is\n triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build\n basis, you are billed for both builds. Therefore, if you are using AWS CodePipeline, we\n recommend that you disable webhooks in AWS CodeBuild. In the AWS CodeBuild console, clear the\n Webhook box. For more information, see step 5 in Change a Build Project's Settings.

\n
" } }, "com.amazonaws.codebuild#CreateWebhookInput": { @@ -1849,7 +1872,7 @@ "projectName": { "target": "com.amazonaws.codebuild#ProjectName", "traits": { - "smithy.api#documentation": "

The name of the CodeBuild project.

", + "smithy.api#documentation": "

The name of the AWS CodeBuild project.

", "smithy.api#required": {} } }, @@ -1879,7 +1902,7 @@ "webhook": { "target": "com.amazonaws.codebuild#Webhook", "traits": { - "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n CodeBuild.

" + "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n AWS CodeBuild.

" } } } @@ -2168,7 +2191,7 @@ } ], "traits": { - "smithy.api#documentation": "

For an existing CodeBuild build project that has its source code stored in a GitHub or\n Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code\n change is pushed to the repository.

" + "smithy.api#documentation": "

For an existing AWS CodeBuild build project that has its source code stored in a GitHub or\n Bitbucket repository, stops AWS CodeBuild from rebuilding the source code every time a code\n change is pushed to the repository.

" } }, "com.amazonaws.codebuild#DeleteWebhookInput": { @@ -2177,7 +2200,7 @@ "projectName": { "target": "com.amazonaws.codebuild#ProjectName", "traits": { - "smithy.api#documentation": "

The name of the CodeBuild project.

", + "smithy.api#documentation": "

The name of the AWS CodeBuild project.

", "smithy.api#required": {} } } @@ -2371,7 +2394,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about a Docker image that is managed by CodeBuild.

" + "smithy.api#documentation": "

Information about a Docker image that is managed by AWS CodeBuild.

" } }, "com.amazonaws.codebuild#EnvironmentImages": { @@ -2397,7 +2420,7 @@ } }, "traits": { - "smithy.api#documentation": "

A set of Docker images that are related by programming language and are managed by\n CodeBuild.

" + "smithy.api#documentation": "

A set of Docker images that are related by programming language and are managed by\n AWS CodeBuild.

" } }, "com.amazonaws.codebuild#EnvironmentLanguages": { @@ -2423,7 +2446,7 @@ } }, "traits": { - "smithy.api#documentation": "

A set of Docker images that are related by platform and are managed by\n CodeBuild.

" + "smithy.api#documentation": "

A set of Docker images that are related by platform and are managed by AWS CodeBuild.

" } }, "com.amazonaws.codebuild#EnvironmentPlatforms": { @@ -2472,14 +2495,14 @@ "value": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The value of the environment variable.

\n \n

We strongly discourage the use of PLAINTEXT environment variables to\n store sensitive values, especially Amazon Web Services secret key IDs and secret access keys.\n PLAINTEXT environment variables can be displayed in plain text\n using the CodeBuild console and the AWS Command Line Interface (AWS CLI). For sensitive values, we recommend you\n use an environment variable of type PARAMETER_STORE or\n SECRETS_MANAGER.

\n
", + "smithy.api#documentation": "

The value of the environment variable.

\n \n

We strongly discourage the use of PLAINTEXT environment variables to\n store sensitive values, especially AWS secret key IDs and secret access keys.\n PLAINTEXT environment variables can be displayed in plain text\n using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI). For sensitive values, we recommend you use an\n environment variable of type PARAMETER_STORE or\n SECRETS_MANAGER.

\n
", "smithy.api#required": {} } }, "type": { "target": "com.amazonaws.codebuild#EnvironmentVariableType", "traits": { - "smithy.api#documentation": "

The type of environment variable. Valid values include:

\n " + "smithy.api#documentation": "

The type of environment variable. Valid values include:

\n " } } }, @@ -2529,7 +2552,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about an exported environment variable.

\n

Exported environment variables are used in conjunction with CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the CodePipeline User Guide.

\n \n

During a build, the value of a variable is available starting with the\n install phase. It can be updated between the start of the\n install phase and the end of the post_build phase.\n After the post_build phase ends, the value of exported variables cannot\n change.

\n
" + "smithy.api#documentation": "

Contains information about an exported environment variable.

\n

Exported environment variables are used in conjunction with AWS CodePipeline to export\n environment variables from the current build stage to subsequent stages in the pipeline.\n For more information, see Working with variables in the AWS CodePipeline User Guide.

\n \n

During a build, the value of a variable is available starting with the\n install phase. It can be updated between the start of the\n install phase and the end of the post_build phase.\n After the post_build phase ends, the value of exported variables cannot\n change.

\n
" } }, "com.amazonaws.codebuild#ExportedEnvironmentVariables": { @@ -2681,13 +2704,13 @@ "fetchSubmodules": { "target": "com.amazonaws.codebuild#WrapperBoolean", "traits": { - "smithy.api#documentation": "

Set to true to fetch Git submodules for your CodeBuild build project.

", + "smithy.api#documentation": "

Set to true to fetch Git submodules for your AWS CodeBuild build project.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Information about the Git submodules configuration for an CodeBuild build project.\n

" + "smithy.api#documentation": "

Information about the Git submodules configuration for an AWS CodeBuild build project.\n

" } }, "com.amazonaws.codebuild#Identifiers": { @@ -2737,7 +2760,7 @@ } ], "traits": { - "smithy.api#documentation": "

Imports the source repository credentials for an CodeBuild project that has its\n source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

" + "smithy.api#documentation": "

Imports the source repository credentials for an AWS CodeBuild project that has its\n source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

" } }, "com.amazonaws.codebuild#ImportSourceCredentialsInput": { @@ -2766,7 +2789,7 @@ "authType": { "target": "com.amazonaws.codebuild#AuthType", "traits": { - "smithy.api#documentation": "

The type of authentication used to connect to a GitHub, GitHub Enterprise, or\n Bitbucket repository. An OAUTH connection is not supported by the API and must be\n created using the CodeBuild console.

", + "smithy.api#documentation": "

The type of authentication used to connect to a GitHub, GitHub Enterprise, or\n Bitbucket repository. An OAUTH connection is not supported by the API and must be\n created using the AWS CodeBuild console.

", "smithy.api#required": {} } }, @@ -2827,7 +2850,7 @@ "projectName": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the CodeBuild build project that the cache is reset for.

", + "smithy.api#documentation": "

The name of the AWS CodeBuild build project that the cache is reset for.

", "smithy.api#required": {} } } @@ -3094,7 +3117,7 @@ "projectName": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the CodeBuild project.

", + "smithy.api#documentation": "

The name of the AWS CodeBuild project.

", "smithy.api#required": {} } }, @@ -3172,7 +3195,7 @@ "target": "com.amazonaws.codebuild#ListCuratedEnvironmentImagesOutput" }, "traits": { - "smithy.api#documentation": "

Gets information about Docker images that are managed by CodeBuild.

" + "smithy.api#documentation": "

Gets information about Docker images that are managed by AWS CodeBuild.

" } }, "com.amazonaws.codebuild#ListCuratedEnvironmentImagesInput": { @@ -3185,7 +3208,7 @@ "platforms": { "target": "com.amazonaws.codebuild#EnvironmentPlatforms", "traits": { - "smithy.api#documentation": "

Information about supported platforms for Docker images that are managed by\n CodeBuild.

" + "smithy.api#documentation": "

Information about supported platforms for Docker images that are managed by\n AWS CodeBuild.

" } } } @@ -3266,7 +3289,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Gets a list ARNs for the report groups in the current Amazon Web Services account.\n

", + "smithy.api#documentation": "

\n Gets a list ARNs for the report groups in the current AWS account.\n

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -3316,7 +3339,7 @@ "reportGroups": { "target": "com.amazonaws.codebuild#ReportGroupArns", "traits": { - "smithy.api#documentation": "

\n The list of ARNs for the report groups in the current Amazon Web Services account.\n

" + "smithy.api#documentation": "

\n The list of ARNs for the report groups in the current AWS account.\n

" } } } @@ -3335,7 +3358,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Returns a list of ARNs for the reports in the current Amazon Web Services account.\n

", + "smithy.api#documentation": "

\n Returns a list of ARNs for the reports in the current AWS account.\n

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -3464,7 +3487,7 @@ "reports": { "target": "com.amazonaws.codebuild#ReportArns", "traits": { - "smithy.api#documentation": "

\n The list of returned ARNs for the reports in the current Amazon Web Services account.\n

" + "smithy.api#documentation": "

\n The list of returned ARNs for the reports in the current AWS account.\n

" } } } @@ -3483,7 +3506,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets a list of projects that are shared with other Amazon Web Services accounts or users.

", + "smithy.api#documentation": "

Gets a list of projects that are shared with other AWS accounts or users.

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -3498,7 +3521,7 @@ "sortBy": { "target": "com.amazonaws.codebuild#SharedResourceSortByType", "traits": { - "smithy.api#documentation": "

The criterion to be used to list build projects shared with the current Amazon Web Services account\n or user. Valid values include:

\n " + "smithy.api#documentation": "

The criterion to be used to list build projects shared with the current AWS account\n or user. Valid values include:

\n " } }, "sortOrder": { @@ -3533,7 +3556,7 @@ "projects": { "target": "com.amazonaws.codebuild#ProjectArns", "traits": { - "smithy.api#documentation": "

The list of ARNs for the build projects shared with the current Amazon Web Services account or\n user.

" + "smithy.api#documentation": "

The list of ARNs for the build projects shared with the current AWS account or user.\n

" } } } @@ -3552,7 +3575,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets a list of report groups that are shared with other Amazon Web Services accounts or users.\n

", + "smithy.api#documentation": "

Gets a list of report groups that are shared with other AWS accounts or users.\n

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -3573,7 +3596,7 @@ "sortBy": { "target": "com.amazonaws.codebuild#SharedResourceSortByType", "traits": { - "smithy.api#documentation": "

The criterion to be used to list report groups shared with the current Amazon Web Services account\n or user. Valid values include:

\n " + "smithy.api#documentation": "

The criterion to be used to list report groups shared with the current AWS account or\n user. Valid values include:

\n " } }, "nextToken": { @@ -3602,7 +3625,7 @@ "reportGroups": { "target": "com.amazonaws.codebuild#ReportGroupArns", "traits": { - "smithy.api#documentation": "

The list of ARNs for the report groups shared with the current Amazon Web Services account or user.\n

" + "smithy.api#documentation": "

The list of ARNs for the report groups shared with the current AWS account or user.\n

" } } } @@ -3645,7 +3668,7 @@ "cloudWatchLogs": { "target": "com.amazonaws.codebuild#CloudWatchLogsConfig", "traits": { - "smithy.api#documentation": "

Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default.

" + "smithy.api#documentation": "

Information about Amazon CloudWatch Logs for a build project. Amazon CloudWatch Logs are enabled by default.

" } }, "s3Logs": { @@ -3656,7 +3679,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about logs for a build project. These can be logs in CloudWatch Logs, built in a\n specified S3 bucket, or both.

" + "smithy.api#documentation": "

Information about logs for a build project. These can be logs in Amazon CloudWatch Logs, built in a\n specified S3 bucket, or both.

" } }, "com.amazonaws.codebuild#LogsConfigStatusType": { @@ -3680,19 +3703,19 @@ "groupName": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The name of the CloudWatch Logs group for the build logs.

" + "smithy.api#documentation": "

The name of the Amazon CloudWatch Logs group for the build logs.

" } }, "streamName": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The name of the CloudWatch Logs stream for the build logs.

" + "smithy.api#documentation": "

The name of the Amazon CloudWatch Logs stream for the build logs.

" } }, "deepLink": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The URL to an individual build log in CloudWatch Logs.

" + "smithy.api#documentation": "

The URL to an individual build log in Amazon CloudWatch Logs.

" } }, "s3DeepLink": { @@ -3704,7 +3727,7 @@ "cloudWatchLogsArn": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The ARN of CloudWatch Logs for a build project. Its format is\n arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}.\n For more information, see Resources Defined by CloudWatch Logs.

" + "smithy.api#documentation": "

The ARN of Amazon CloudWatch Logs for a build project. Its format is\n arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}.\n For more information, see Resources Defined by Amazon CloudWatch Logs.

" } }, "s3LogsArn": { @@ -3716,7 +3739,7 @@ "cloudWatchLogs": { "target": "com.amazonaws.codebuild#CloudWatchLogsConfig", "traits": { - "smithy.api#documentation": "

Information about CloudWatch Logs for a build project.

" + "smithy.api#documentation": "

Information about Amazon CloudWatch Logs for a build project.

" } }, "s3Logs": { @@ -3727,7 +3750,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about build logs in CloudWatch Logs.

" + "smithy.api#documentation": "

Information about build logs in Amazon CloudWatch Logs.

" } }, "com.amazonaws.codebuild#NetworkInterface": { @@ -3884,7 +3907,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

" + "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide. \n

" } }, "secondarySourceVersions": { @@ -3920,13 +3943,13 @@ "serviceRole": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the Identity and Access Management role that enables CodeBuild to interact with dependent Amazon Web Services services\n on behalf of the Amazon Web Services account.

" + "smithy.api#documentation": "

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services\n on behalf of the AWS account.

" } }, "timeoutInMinutes": { "target": "com.amazonaws.codebuild#TimeOut", "traits": { - "smithy.api#documentation": "

How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before timing out any\n related build that did not get marked as completed. The default is 60 minutes.

" + "smithy.api#documentation": "

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any\n related build that did not get marked as completed. The default is 60 minutes.

" } }, "queuedTimeoutInMinutes": { @@ -3938,13 +3961,13 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/). If you don't specify a \n value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).\n

" + "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" } }, "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

A list of tag key and value pairs associated with this build project.

\n

These tags are available for use by Amazon Web Services services that support CodeBuild build project\n tags.

" + "smithy.api#documentation": "

A list of tag key and value pairs associated with this build project.

\n

These tags are available for use by AWS services that support AWS CodeBuild build project\n tags.

" } }, "created": { @@ -3962,13 +3985,13 @@ "webhook": { "target": "com.amazonaws.codebuild#Webhook", "traits": { - "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n CodeBuild.

" + "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n AWS CodeBuild.

" } }, "vpcConfig": { "target": "com.amazonaws.codebuild#VpcConfig", "traits": { - "smithy.api#documentation": "

Information about the VPC configuration that CodeBuild accesses.

" + "smithy.api#documentation": "

Information about the VPC configuration that AWS CodeBuild accesses.

" } }, "badge": { @@ -3980,7 +4003,7 @@ "logsConfig": { "target": "com.amazonaws.codebuild#LogsConfig", "traits": { - "smithy.api#documentation": "

Information about logs for the build project. A project can create logs in CloudWatch Logs, an\n S3 bucket, or both.

" + "smithy.api#documentation": "

Information about logs for the build project. A project can create logs in Amazon CloudWatch Logs, an\n S3 bucket, or both.

" } }, "fileSystemLocations": { @@ -4024,38 +4047,38 @@ "type": { "target": "com.amazonaws.codebuild#ArtifactsType", "traits": { - "smithy.api#documentation": "

The type of build output artifact. Valid values include:

\n ", + "smithy.api#documentation": "

The type of build output artifact. Valid values include:

\n ", "smithy.api#required": {} } }, "location": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

Information about the build output artifact location:

\n " + "smithy.api#documentation": "

Information about the build output artifact location:

\n " } }, "path": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

Along with namespaceType and name, the pattern that\n CodeBuild uses to name and store the output artifact:

\n \n

For example, if path is set to MyArtifacts,\n namespaceType is set to NONE, and name is set\n to MyArtifact.zip, the output artifact is stored in the output bucket at\n MyArtifacts/MyArtifact.zip.

" + "smithy.api#documentation": "

Along with namespaceType and name, the pattern that AWS CodeBuild\n uses to name and store the output artifact:

\n \n

For example, if path is set to MyArtifacts,\n namespaceType is set to NONE, and name is set\n to MyArtifact.zip, the output artifact is stored in the output bucket at\n MyArtifacts/MyArtifact.zip.

" } }, "namespaceType": { "target": "com.amazonaws.codebuild#ArtifactNamespace", "traits": { - "smithy.api#documentation": "

Along with path and name, the pattern that CodeBuild uses to\n determine the name and location to store the output artifact:

\n \n

For example, if path is set to MyArtifacts,\n namespaceType is set to BUILD_ID, and name is\n set to MyArtifact.zip, the output artifact is stored in\n MyArtifacts//MyArtifact.zip.

" + "smithy.api#documentation": "

Along with path and name, the pattern that AWS CodeBuild uses to\n determine the name and location to store the output artifact:

\n \n

For example, if path is set to MyArtifacts,\n namespaceType is set to BUILD_ID, and name is\n set to MyArtifact.zip, the output artifact is stored in\n MyArtifacts//MyArtifact.zip.

" } }, "name": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

Along with path and namespaceType, the pattern that\n CodeBuild uses to name and store the output artifact:

\n \n

For example:

\n " + "smithy.api#documentation": "

Along with path and namespaceType, the pattern that AWS CodeBuild\n uses to name and store the output artifact:

\n \n

For example:

\n " } }, "packaging": { "target": "com.amazonaws.codebuild#ArtifactPackaging", "traits": { - "smithy.api#documentation": "

The type of build output artifact to create:

\n " + "smithy.api#documentation": "

The type of build output artifact to create:

\n " } }, "overrideArtifactName": { @@ -4075,6 +4098,9 @@ "traits": { "smithy.api#documentation": "

An identifier for this artifact definition.

" } + }, + "bucketOwnerAccess": { + "target": "com.amazonaws.codebuild#BucketOwnerAccess" } }, "traits": { @@ -4193,21 +4219,21 @@ "type": { "target": "com.amazonaws.codebuild#EnvironmentType", "traits": { - "smithy.api#documentation": "

The type of build environment to use for related builds.

\n \n \n

For more information, see Build environment compute types in the CodeBuild\n user guide.

", + "smithy.api#documentation": "

The type of build environment to use for related builds.

\n ", "smithy.api#required": {} } }, "image": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The image tag or image digest that identifies the Docker image to use for this build\n project. Use the following formats:

\n \n

For more information, see Docker images provided by CodeBuild in the CodeBuild user\n guide.

", + "smithy.api#documentation": "

The image tag or image digest that identifies the Docker image to use for this build\n project. Use the following formats:

\n ", "smithy.api#required": {} } }, "computeType": { "target": "com.amazonaws.codebuild#ComputeType", "traits": { - "smithy.api#documentation": "

Information about the compute resources the build project uses. Available values\n include:

\n \n

If you use BUILD_GENERAL1_LARGE:

\n \n

For more information, see Build Environment\n Compute Types in the CodeBuild User Guide.\n

", + "smithy.api#documentation": "

Information about the compute resources the build project uses. Available values\n include:

\n \n

If you use BUILD_GENERAL1_LARGE:

\n \n

For more information, see Build Environment\n Compute Types in the AWS CodeBuild User Guide.\n

", "smithy.api#required": {} } }, @@ -4226,7 +4252,7 @@ "certificate": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded\n certificate for the build project. For more information, see certificate in the\n CodeBuild User Guide.

" + "smithy.api#documentation": "

The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded\n certificate for the build project. For more information, see certificate in the\n AWS CodeBuild User Guide.

" } }, "registryCredential": { @@ -4238,7 +4264,7 @@ "imagePullCredentialsType": { "target": "com.amazonaws.codebuild#ImagePullCredentialsType", "traits": { - "smithy.api#documentation": "

The type of credentials CodeBuild uses to pull images in your build. There are two valid\n values:

\n \n

When you use a cross-account or private registry image, you must use SERVICE_ROLE\n credentials. When you use an CodeBuild curated image, you must use CODEBUILD credentials.\n

" + "smithy.api#documentation": "

The type of credentials AWS CodeBuild uses to pull images in your build. There are two valid\n values:

\n \n

When you use a cross-account or private registry image, you must use SERVICE_ROLE\n credentials. When you use an AWS CodeBuild curated image, you must use CODEBUILD credentials.\n

" } } }, @@ -4258,7 +4284,7 @@ "location": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A string that specifies the location of the file system created by Amazon EFS. Its\n format is efs-dns-name:/directory-path. You can find the DNS name of file\n system when you view it in the Amazon EFS console. The directory path is a path to a\n directory in the file system that CodeBuild mounts. For example, if the DNS name of a\n file system is fs-abcd1234.efs.us-west-2.amazonaws.com, and its mount\n directory is my-efs-mount-directory, then the location is\n fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory.

\n

The directory path in the format efs-dns-name:/directory-path is\n optional. If you do not specify a directory path, the location is only the DNS name and\n CodeBuild mounts the entire file system.

" + "smithy.api#documentation": "

A string that specifies the location of the file system created by Amazon EFS. Its\n format is efs-dns-name:/directory-path. You can find the DNS name of file\n system when you view it in the AWS EFS console. The directory path is a path to a\n directory in the file system that CodeBuild mounts. For example, if the DNS name of a\n file system is fs-abcd1234.efs.us-west-2.amazonaws.com, and its mount\n directory is my-efs-mount-directory, then the location is\n fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory.

\n

The directory path in the format efs-dns-name:/directory-path is\n optional. If you do not specify a directory path, the location is only the DNS name and\n CodeBuild mounts the entire file system.

" } }, "mountPoint": { @@ -4276,7 +4302,7 @@ "mountOptions": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The mount options for a file system created by Amazon EFS. The default mount options used\n by CodeBuild are\n nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2. For\n more information, see Recommended NFS Mount\n Options.

" + "smithy.api#documentation": "

The mount options for a file system created by AWS EFS. The default mount options\n used by CodeBuild are\n nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2. For\n more information, see Recommended NFS Mount\n Options.

" } } }, @@ -4349,14 +4375,14 @@ "type": { "target": "com.amazonaws.codebuild#SourceType", "traits": { - "smithy.api#documentation": "

The type of repository that contains the source code to be built. Valid values\n include:

\n ", + "smithy.api#documentation": "

The type of repository that contains the source code to be built. Valid values\n include:

\n ", "smithy.api#required": {} } }, "location": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

Information about the location of the source code to be built. Valid values\n include:

\n \n

\n If you specify CODEPIPELINE for the Type property, don't specify this \n property. For all of the other types, you must specify Location.\n

" + "smithy.api#documentation": "

Information about the location of the source code to be built. Valid values\n include:

\n " } }, "gitCloneDepth": { @@ -4374,19 +4400,19 @@ "buildspec": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The buildspec file declaration to use for the builds in this build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" + "smithy.api#documentation": "

The buildspec file declaration to use for the builds in this build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same AWS Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" } }, "auth": { "target": "com.amazonaws.codebuild#SourceAuth", "traits": { - "smithy.api#documentation": "

Information about the authorization settings for CodeBuild to access the source code to be\n built.

\n

This information is for the CodeBuild console's use only. Your code should not get or set\n this information directly.

" + "smithy.api#documentation": "

Information about the authorization settings for AWS CodeBuild to access the source code to be\n built.

\n

This information is for the AWS CodeBuild console's use only. Your code should not get or set\n this information directly.

" } }, "reportBuildStatus": { "target": "com.amazonaws.codebuild#WrapperBoolean", "traits": { - "smithy.api#documentation": "

Set to true to report the status of a build's start and finish to your source\n provider. This option is valid only when your source provider is GitHub, GitHub\n Enterprise, or Bitbucket. If this is set and you use a different source provider, an\n invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" + "smithy.api#documentation": "

Set to true to report the status of a build's start and finish to your source\n provider. This option is valid only when your source provider is GitHub, GitHub\n Enterprise, or Bitbucket. If this is set and you use a different source provider, an\n invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the AWS CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" } }, "buildStatusConfig": { @@ -4425,7 +4451,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The source version for the corresponding source identifier. If specified, must be one\n of:

\n \n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

", + "smithy.api#documentation": "

The source version for the corresponding source identifier. If specified, must be one\n of:

\n \n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide.

", "smithy.api#required": {} } } @@ -4478,7 +4504,7 @@ "policy": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

A JSON-formatted resource policy. For more information, see Sharing\n a Project and Sharing a Report Group in the CodeBuild User Guide.\n

", + "smithy.api#documentation": "

A JSON-formatted resource policy. For more information, see Sharing\n a Project and Sharing a Report Group in the AWS CodeBuild User Guide.\n

", "smithy.api#required": {} } }, @@ -4508,20 +4534,20 @@ "credential": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.

\n \n

The credential can use the name of the credentials only if they\n exist in your current Region.

\n
", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager.

\n \n

The credential can use the name of the credentials only if they\n exist in your current AWS Region.

\n
", "smithy.api#required": {} } }, "credentialProvider": { "target": "com.amazonaws.codebuild#CredentialProviderType", "traits": { - "smithy.api#documentation": "

The service that created the credentials to access a private Docker registry. The\n valid value, SECRETS_MANAGER, is for Secrets Manager.

", + "smithy.api#documentation": "

The service that created the credentials to access a private Docker registry. The\n valid value, SECRETS_MANAGER, is for AWS Secrets Manager.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Information about credentials that provide access to a private Docker registry. When\n this is set:

\n \n

For more information, see Private Registry with\n Secrets Manager Sample for CodeBuild.

" + "smithy.api#documentation": "

Information about credentials that provide access to a private Docker registry. When\n this is set:

\n \n

For more information, see Private Registry with\n AWS Secrets Manager Sample for AWS CodeBuild.

" } }, "com.amazonaws.codebuild#Report": { @@ -4722,7 +4748,7 @@ "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

A list of tag key and value pairs associated with this report group.

\n

These tags are available for use by Amazon Web Services services that support CodeBuild report group\n tags.

" + "smithy.api#documentation": "

A list of tag key and value pairs associated with this report group.

\n

These tags are available for use by AWS services that support AWS CodeBuild report group\n tags.

" } }, "status": { @@ -5016,7 +5042,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the\n same settings already exists.

", + "smithy.api#documentation": "

The specified AWS resource cannot be created, because an AWS resource with the same\n settings already exists.

", "smithy.api#error": "client" } }, @@ -5028,7 +5054,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified Amazon Web Services resource cannot be found.

", + "smithy.api#documentation": "

The specified AWS resource cannot be found.

", "smithy.api#error": "client" } }, @@ -5087,7 +5113,7 @@ "idempotencyToken": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n RetryBuildBatch request. The token is included in the\n RetryBuildBatch request and is valid for five minutes. If you repeat\n the RetryBuildBatch request with the same token, but change a parameter,\n CodeBuild returns a parameter mismatch error.

" + "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n RetryBuildBatch request. The token is included in the\n RetryBuildBatch request and is valid for five minutes. If you repeat\n the RetryBuildBatch request with the same token, but change a parameter,\n AWS CodeBuild returns a parameter mismatch error.

" } }, "retryType": { @@ -5133,7 +5159,7 @@ "idempotencyToken": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n RetryBuild request. The token is included in the\n RetryBuild request and is valid for five minutes. If you repeat\n the RetryBuild request with the same token, but change a parameter,\n CodeBuild returns a parameter mismatch error.

" + "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n RetryBuild request. The token is included in the\n RetryBuild request and is valid for five minutes. If you repeat\n the RetryBuild request with the same token, but change a parameter,\n AWS CodeBuild returns a parameter mismatch error.

" } } } @@ -5167,6 +5193,9 @@ "traits": { "smithy.api#documentation": "

Set to true if you do not want your S3 build log output encrypted. By default S3\n build logs are encrypted.

" } + }, + "bucketOwnerAccess": { + "target": "com.amazonaws.codebuild#BucketOwnerAccess" } }, "traits": { @@ -5185,7 +5214,7 @@ "bucketOwner": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data\n to be exported to an Amazon S3 bucket that is owned by an account other than the account\n running the build.

" + "smithy.api#documentation": "

The AWS account identifier of the owner of the Amazon S3 bucket. This allows report data to be exported to an Amazon S3 bucket\n that is owned by an account other than the account running the build.

" } }, "path": { @@ -5197,7 +5226,7 @@ "packaging": { "target": "com.amazonaws.codebuild#ReportPackagingType", "traits": { - "smithy.api#documentation": "

The type of build output artifact to create. Valid values include:

\n " + "smithy.api#documentation": "

The type of build output artifact to create. Valid values include:

\n " } }, "encryptionKey": { @@ -5305,7 +5334,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the authorization settings for CodeBuild to access the source code\n to be built.

\n

This information is for the CodeBuild console's use only. Your code should not get or\n set this information directly.

" + "smithy.api#documentation": "

Information about the authorization settings for AWS CodeBuild to access the source code to be\n built.

\n

This information is for the AWS CodeBuild console's use only. Your code should not get or set\n this information directly.

" } }, "com.amazonaws.codebuild#SourceAuthType": { @@ -5454,7 +5483,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The version of the batch build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

\n
\n
CodeCommit
\n
\n

The commit ID, branch, or Git tag to use.

\n
\n
GitHub
\n
\n

The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

\n
\n
Bitbucket
\n
\n

The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

\n
\n
Amazon S3
\n
\n

The version ID of the object that represents the build input ZIP file to\n use.

\n
\n
\n

If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

" + "smithy.api#documentation": "

The version of the batch build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

\n
\n
AWS CodeCommit
\n
\n

The commit ID, branch, or Git tag to use.

\n
\n
GitHub
\n
\n

The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

\n
\n
Bitbucket
\n
\n

The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

\n
\n
Amazon S3
\n
\n

The version ID of the object that represents the build input ZIP file to\n use.

\n
\n
\n

If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide.

" } }, "artifactsOverride": { @@ -5508,7 +5537,7 @@ "buildspecOverride": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A buildspec file declaration that overrides, for this build only, the latest one\n already defined in the build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" + "smithy.api#documentation": "

A buildspec file declaration that overrides, for this build only, the latest one\n already defined in the build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same AWS Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" } }, "insecureSslOverride": { @@ -5580,13 +5609,13 @@ "encryptionKeyOverride": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Key Management Service customer master key (CMK) that overrides the one specified in the batch build\n project. The CMK key encrypts the build output artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" + "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) that overrides the one specified in the batch build\n project. The CMK key encrypts the build output artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" } }, "idempotencyToken": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n StartBuildBatch request. The token is included in the\n StartBuildBatch request and is valid for five minutes. If you repeat\n the StartBuildBatch request with the same token, but change a parameter,\n CodeBuild returns a parameter mismatch error.

" + "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n StartBuildBatch request. The token is included in the\n StartBuildBatch request and is valid for five minutes. If you repeat\n the StartBuildBatch request with the same token, but change a parameter,\n AWS CodeBuild returns a parameter mismatch error.

" } }, "logsConfigOverride": { @@ -5604,7 +5633,7 @@ "imagePullCredentialsTypeOverride": { "target": "com.amazonaws.codebuild#ImagePullCredentialsType", "traits": { - "smithy.api#documentation": "

The type of credentials CodeBuild uses to pull images in your batch build. There are two valid\n values:

\n
\n
CODEBUILD
\n
\n

Specifies that CodeBuild uses its own credentials. This requires that you\n modify your ECR repository policy to trust CodeBuild's service principal.

\n
\n
SERVICE_ROLE
\n
\n

Specifies that CodeBuild uses your build project's service role.

\n
\n
\n

When using a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When using an CodeBuild curated image,\n you must use CODEBUILD credentials.

" + "smithy.api#documentation": "

The type of credentials AWS CodeBuild uses to pull images in your batch build. There are two valid\n values:

\n
\n
CODEBUILD
\n
\n

Specifies that AWS CodeBuild uses its own credentials. This requires that you\n modify your ECR repository policy to trust AWS CodeBuild's service principal.

\n
\n
SERVICE_ROLE
\n
\n

Specifies that AWS CodeBuild uses your build project's service role.

\n
\n
\n

When using a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When using an AWS CodeBuild curated image,\n you must use CODEBUILD credentials.

" } }, "buildBatchConfigOverride": { @@ -5638,7 +5667,7 @@ "projectName": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the CodeBuild build project to start running a build.

", + "smithy.api#documentation": "

The name of the AWS CodeBuild build project to start running a build.

", "smithy.api#required": {} } }, @@ -5657,7 +5686,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The version of the build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

\n
\n
CodeCommit
\n
\n

The commit ID, branch, or Git tag to use.

\n
\n
GitHub
\n
\n

The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

\n
\n
Bitbucket
\n
\n

The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

\n
\n
Amazon S3
\n
\n

The version ID of the object that represents the build input ZIP file to\n use.

\n
\n
\n

If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide.

" + "smithy.api#documentation": "

The version of the build input to be built, for this build only. If not specified,\n the latest version is used. If specified, the contents depends on the source\n provider:

\n
\n
AWS CodeCommit
\n
\n

The commit ID, branch, or Git tag to use.

\n
\n
GitHub
\n
\n

The commit ID, pull request ID, branch name, or tag name that corresponds\n to the version of the source code you want to build. If a pull request ID is\n specified, it must use the format pr/pull-request-ID (for\n example pr/25). If a branch name is specified, the branch's\n HEAD commit ID is used. If not specified, the default branch's HEAD commit\n ID is used.

\n
\n
Bitbucket
\n
\n

The commit ID, branch name, or tag name that corresponds to the version of\n the source code you want to build. If a branch name is specified, the\n branch's HEAD commit ID is used. If not specified, the default branch's HEAD\n commit ID is used.

\n
\n
Amazon S3
\n
\n

The version ID of the object that represents the build input ZIP file to\n use.

\n
\n
\n

If sourceVersion is specified at the project level, then this\n sourceVersion (at the build level) takes precedence.

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide.

" } }, "artifactsOverride": { @@ -5705,13 +5734,13 @@ "gitSubmodulesConfigOverride": { "target": "com.amazonaws.codebuild#GitSubmodulesConfig", "traits": { - "smithy.api#documentation": "

Information about the Git submodules configuration for this build of an CodeBuild build\n project.

" + "smithy.api#documentation": "

Information about the Git submodules configuration for this build of an AWS CodeBuild build\n project.

" } }, "buildspecOverride": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A buildspec file declaration that overrides, for this build only, the latest one\n already defined in the build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" + "smithy.api#documentation": "

A buildspec file declaration that overrides, for this build only, the latest one\n already defined in the build project.

\n

If this value is set, it can be either an inline buildspec definition, the path to an\n alternate buildspec file relative to the value of the built-in\n CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket.\n The bucket must be in the same AWS Region as the build project. Specify the buildspec\n file using its ARN (for example,\n arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not\n provided or is set to an empty string, the source code must contain a buildspec file in\n its root directory. For more information, see Buildspec File Name and Storage Location.

" } }, "insecureSslOverride": { @@ -5723,7 +5752,7 @@ "reportBuildStatusOverride": { "target": "com.amazonaws.codebuild#WrapperBoolean", "traits": { - "smithy.api#documentation": "

Set to true to report to your source provider the status of a build's start and\n completion. If you use this option with a source provider other than GitHub, GitHub\n Enterprise, or Bitbucket, an invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" + "smithy.api#documentation": "

Set to true to report to your source provider the status of a build's start and\n completion. If you use this option with a source provider other than GitHub, GitHub\n Enterprise, or Bitbucket, an invalidInputException is thrown.

\n

To be able to report the build status to the source provider, the user associated with the source provider must\nhave write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the AWS CodeBuild User Guide.

\n \n

The status of a build triggered by a webhook is always reported to your source\n provider.

\n
" } }, "buildStatusConfigOverride": { @@ -5789,13 +5818,13 @@ "encryptionKeyOverride": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Key Management Service customer master key (CMK) that overrides the one specified in the build\n project. The CMK key encrypts the build output artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" + "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) that overrides the one specified in the build\n project. The CMK key encrypts the build output artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).

" } }, "idempotencyToken": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n StartBuild request. The token is included in the StartBuild request and is valid for 5\n minutes. If you repeat the StartBuild request with the same token, but change a\n parameter, CodeBuild returns a parameter mismatch error.

" + "smithy.api#documentation": "

A unique, case sensitive identifier you provide to ensure the idempotency of the\n StartBuild request. The token is included in the StartBuild request and is valid for 5\n minutes. If you repeat the StartBuild request with the same token, but change a\n parameter, AWS CodeBuild returns a parameter mismatch error.

" } }, "logsConfigOverride": { @@ -5813,7 +5842,7 @@ "imagePullCredentialsTypeOverride": { "target": "com.amazonaws.codebuild#ImagePullCredentialsType", "traits": { - "smithy.api#documentation": "

The type of credentials CodeBuild uses to pull images in your build. There are two valid\n values:

\n
\n
CODEBUILD
\n
\n

Specifies that CodeBuild uses its own credentials. This requires that you\n modify your ECR repository policy to trust CodeBuild's service principal.

\n
\n
SERVICE_ROLE
\n
\n

Specifies that CodeBuild uses your build project's service role.

\n
\n
\n

When using a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When using an CodeBuild curated image,\n you must use CODEBUILD credentials.

" + "smithy.api#documentation": "

The type of credentials AWS CodeBuild uses to pull images in your build. There are two valid\n values:

\n
\n
CODEBUILD
\n
\n

Specifies that AWS CodeBuild uses its own credentials. This requires that you\n modify your ECR repository policy to trust AWS CodeBuild's service principal.

\n
\n
SERVICE_ROLE
\n
\n

Specifies that AWS CodeBuild uses your build project's service role.

\n
\n
\n

When using a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When using an AWS CodeBuild curated image,\n you must use CODEBUILD credentials.

" } }, "debugSessionEnabled": { @@ -5981,7 +6010,7 @@ } }, "traits": { - "smithy.api#documentation": "

A tag, consisting of a key and a value.

\n

This tag is available for use by Amazon Web Services services that support tags in CodeBuild.

" + "smithy.api#documentation": "

A tag, consisting of a key and a value.

\n

This tag is available for use by AWS services that support tags in AWS CodeBuild.

" } }, "com.amazonaws.codebuild#TagList": { @@ -6171,7 +6200,7 @@ "sourceVersion": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the CodeBuild User Guide. \n

" + "smithy.api#documentation": "

A version of the build input to be built for this project. If not specified, the\n latest version is used. If specified, it must be one of:

\n \n

If sourceVersion is specified at the build level, then that version\n takes precedence over this sourceVersion (at the project level).

\n

For more information, see Source Version Sample\n with CodeBuild in the AWS CodeBuild User Guide. \n

" } }, "secondarySourceVersions": { @@ -6207,13 +6236,13 @@ "serviceRole": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The replacement ARN of the Identity and Access Management role that enables CodeBuild to interact with dependent\n Amazon Web Services services on behalf of the Amazon Web Services account.

" + "smithy.api#documentation": "

The replacement ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent\n AWS services on behalf of the AWS account.

" } }, "timeoutInMinutes": { "target": "com.amazonaws.codebuild#TimeOut", "traits": { - "smithy.api#documentation": "

The replacement value in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before\n timing out any related build that did not get marked as completed.

" + "smithy.api#documentation": "

The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before\n timing out any related build that did not get marked as completed.

" } }, "queuedTimeoutInMinutes": { @@ -6225,19 +6254,19 @@ "encryptionKey": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Key Management Service customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" + "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output\n artifacts.

\n \n

You can use a cross-account KMS key to encrypt the build output artifacts if your\n service role has permission to that key.

\n
\n

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using\n the format alias/).\n

" } }, "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

An updated list of tag key and value pairs associated with this build project.

\n

These tags are available for use by Amazon Web Services services that support CodeBuild build project\n tags.

" + "smithy.api#documentation": "

An updated list of tag key and value pairs associated with this build project.

\n

These tags are available for use by AWS services that support AWS CodeBuild build project\n tags.

" } }, "vpcConfig": { "target": "com.amazonaws.codebuild#VpcConfig", "traits": { - "smithy.api#documentation": "

VpcConfig enables CodeBuild to access resources in an Amazon VPC.

" + "smithy.api#documentation": "

VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.

" } }, "badgeEnabled": { @@ -6249,7 +6278,7 @@ "logsConfig": { "target": "com.amazonaws.codebuild#LogsConfig", "traits": { - "smithy.api#documentation": "

Information about logs for the build project. A project can create logs in CloudWatch Logs,\n logs in an S3 bucket, or both.

" + "smithy.api#documentation": "

Information about logs for the build project. A project can create logs in Amazon CloudWatch Logs,\n logs in an S3 bucket, or both.

" } }, "fileSystemLocations": { @@ -6319,7 +6348,7 @@ "tags": { "target": "com.amazonaws.codebuild#TagList", "traits": { - "smithy.api#documentation": "

\n An updated list of tag key and value pairs associated with this report group.\n

\n

These tags are available for use by Amazon Web Services services that support CodeBuild report group\n tags.

" + "smithy.api#documentation": "

\n An updated list of tag key and value pairs associated with this report group.\n

\n

These tags are available for use by AWS services that support AWS CodeBuild report group\n tags.

" } } } @@ -6355,7 +6384,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the webhook associated with an CodeBuild build project.

\n \n

If you use Bitbucket for your repository, rotateSecret is ignored.\n

\n
" + "smithy.api#documentation": "

Updates the webhook associated with an AWS CodeBuild build project.

\n \n

If you use Bitbucket for your repository, rotateSecret is ignored.\n

\n
" } }, "com.amazonaws.codebuild#UpdateWebhookInput": { @@ -6364,7 +6393,7 @@ "projectName": { "target": "com.amazonaws.codebuild#ProjectName", "traits": { - "smithy.api#documentation": "

The name of the CodeBuild project.

", + "smithy.api#documentation": "

The name of the AWS CodeBuild project.

", "smithy.api#required": {} } }, @@ -6400,7 +6429,7 @@ "webhook": { "target": "com.amazonaws.codebuild#Webhook", "traits": { - "smithy.api#documentation": "

Information about a repository's webhook that is associated with a project in CodeBuild.\n

" + "smithy.api#documentation": "

Information about a repository's webhook that is associated with a project in AWS CodeBuild.\n

" } } } @@ -6438,7 +6467,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the VPC configuration that CodeBuild accesses.

" + "smithy.api#documentation": "

Information about the VPC configuration that AWS CodeBuild accesses.

" } }, "com.amazonaws.codebuild#Webhook": { @@ -6453,7 +6482,7 @@ "payloadUrl": { "target": "com.amazonaws.codebuild#NonEmptyString", "traits": { - "smithy.api#documentation": "

The CodeBuild endpoint where webhook events are sent.

" + "smithy.api#documentation": "

The AWS CodeBuild endpoint where webhook events are sent.

" } }, "secret": { @@ -6488,7 +6517,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n CodeBuild.

" + "smithy.api#documentation": "

Information about a webhook that connects repository events to a build project in\n AWS CodeBuild.

" } }, "com.amazonaws.codebuild#WebhookBuildType": { @@ -6512,7 +6541,7 @@ "type": { "target": "com.amazonaws.codebuild#WebhookFilterType", "traits": { - "smithy.api#documentation": "

The type of webhook filter. There are six webhook filter types: EVENT,\n ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF,\n FILE_PATH, and COMMIT_MESSAGE.

\n
\n
EVENT
\n
\n

A webhook event triggers a build when the provided pattern\n matches one of five event types: PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED,\n PULL_REQUEST_REOPENED, and\n PULL_REQUEST_MERGED. The EVENT patterns are\n specified as a comma-separated string. For example, PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED filters all push, pull\n request created, and pull request updated events.

\n \n

The PULL_REQUEST_REOPENED works with GitHub and GitHub\n Enterprise only.

\n
\n
\n
ACTOR_ACCOUNT_ID
\n
\n

A webhook event triggers a build when a GitHub, GitHub Enterprise, or\n Bitbucket account ID matches the regular expression pattern.\n

\n
\n
HEAD_REF
\n
\n

A webhook event triggers a build when the head reference matches the\n regular expression pattern. For example,\n refs/heads/branch-name and refs/tags/tag-name.

\n

Works with GitHub and GitHub Enterprise push, GitHub and GitHub\n Enterprise pull request, Bitbucket push, and Bitbucket pull request events.\n

\n
\n
BASE_REF
\n
\n

A webhook event triggers a build when the base reference matches the\n regular expression pattern. For example,\n refs/heads/branch-name.

\n \n

Works with pull request events only.

\n
\n
\n
FILE_PATH
\n
\n

A webhook triggers a build when the path of a changed file matches the\n regular expression pattern.

\n \n

Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events.

\n
\n
\n
COMMIT_MESSAGE
\n
\n

A webhook triggers a build when the head commit message matches the\n regular expression pattern.

\n \n

Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events.

\n
\n
\n
", + "smithy.api#documentation": "

The type of webhook filter. There are six webhook filter types: EVENT,\n ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF,\n FILE_PATH, and COMMIT_MESSAGE.

\n
\n
\n EVENT\n
\n
\n

A webhook event triggers a build when the provided pattern\n matches one of five event types: PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED,\n PULL_REQUEST_REOPENED, and\n PULL_REQUEST_MERGED. The EVENT patterns are\n specified as a comma-separated string. For example, PUSH,\n PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED filters all push, pull\n request created, and pull request updated events.

\n \n

The PULL_REQUEST_REOPENED works with GitHub and GitHub\n Enterprise only.

\n
\n
\n
\n ACTOR_ACCOUNT_ID\n
\n
\n

A webhook event triggers a build when a GitHub, GitHub Enterprise, or\n Bitbucket account ID matches the regular expression pattern.\n

\n
\n
\n HEAD_REF\n
\n
\n

A webhook event triggers a build when the head reference matches the\n regular expression pattern. For example,\n refs/heads/branch-name and refs/tags/tag-name.

\n

Works with GitHub and GitHub Enterprise push, GitHub and GitHub\n Enterprise pull request, Bitbucket push, and Bitbucket pull request events.\n

\n
\n
\n BASE_REF\n
\n
\n

A webhook event triggers a build when the base reference matches the\n regular expression pattern. For example,\n refs/heads/branch-name.

\n \n

Works with pull request events only.

\n
\n
\n
\n FILE_PATH\n
\n
\n

A webhook triggers a build when the path of a changed file matches the\n regular expression pattern.

\n \n

Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events.

\n
\n
\n
COMMIT_MESSAGE
\n
\n

A webhook triggers a build when the head commit message matches the\n regular expression pattern.

\n \n

Works with GitHub and Bitbucket events push and pull requests events.\n Also works with GitHub Enterprise push events, but does not work with\n GitHub Enterprise pull request events.

\n
\n
\n
", "smithy.api#required": {} } }, diff --git a/codegen/sdk-codegen/aws-models/cognitoidentityprovider.2016-04-18.json b/codegen/sdk-codegen/aws-models/cognitoidentityprovider.2016-04-18.json index 08fd104adb2..e4efbcad6f2 100644 --- a/codegen/sdk-codegen/aws-models/cognitoidentityprovider.2016-04-18.json +++ b/codegen/sdk-codegen/aws-models/cognitoidentityprovider.2016-04-18.json @@ -661,7 +661,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

If your user pool configuration includes triggers, the AdminConfirmSignUp API action\n invokes the AWS Lambda function that is specified for the post\n confirmation trigger. When Amazon Cognito invokes this function, it\n passes a JSON payload, which the function receives as input. In this payload, the\n clientMetadata attribute provides the data that you assigned to the\n ClientMetadata parameter in your AdminConfirmSignUp request. In your function code in\n AWS Lambda, you can process the ClientMetadata value to enhance your workflow for your\n specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

If your user pool configuration includes triggers, the AdminConfirmSignUp API action\n invokes the Lambda function that is specified for the post\n confirmation trigger. When Amazon Cognito invokes this function, it\n passes a JSON payload, which the function receives as input. In this payload, the\n clientMetadata attribute provides the data that you assigned to the\n ClientMetadata parameter in your AdminConfirmSignUp request. In your function code in\n Lambda, you can process the ClientMetadata value to enhance your workflow for your\n specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -735,7 +735,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new user in the specified user pool.

\n

If MessageAction is not set, the default is to send a welcome message via\n email or phone (SMS).

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

This message is based on a template that you configured in your call to create or\n update a user pool. This template includes your custom sign-up instructions and\n placeholders for user name and temporary password.

\n

Alternatively, you can call AdminCreateUser with “SUPPRESS” for the\n MessageAction parameter, and Amazon Cognito will not send any email.

\n

In either case, the user will be in the FORCE_CHANGE_PASSWORD state until\n they sign in and change their password.

\n

\n AdminCreateUser requires developer credentials.

" + "smithy.api#documentation": "

Creates a new user in the specified user pool.

\n

If MessageAction is not set, the default is to send a welcome message via\n email or phone (SMS).

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

This message is based on a template that you configured in your call to create or\n update a user pool. This template includes your custom sign-up instructions and\n placeholders for user name and temporary password.

\n

Alternatively, you can call AdminCreateUser with “SUPPRESS” for the\n MessageAction parameter, and Amazon Cognito will not send any email.

\n

In either case, the user will be in the FORCE_CHANGE_PASSWORD state until\n they sign in and change their password.

\n

\n AdminCreateUser requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminCreateUserConfigType": { @@ -820,7 +820,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is\n assigned to the pre sign-up trigger. When Amazon Cognito invokes\n this function, it passes a JSON payload, which the function receives as input. This\n payload contains a clientMetadata attribute, which provides the data that\n you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your\n function code in AWS Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is\n assigned to the pre sign-up trigger. When Amazon Cognito invokes\n this function, it passes a JSON payload, which the function receives as input. This\n payload contains a clientMetadata attribute, which provides the data that\n you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your\n function code in Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -1460,7 +1460,7 @@ } ], "traits": { - "smithy.api#documentation": "

Initiates the authentication flow, as an administrator.

\n \n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" + "smithy.api#documentation": "

Initiates the authentication flow, as an administrator.

\n \n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminInitiateAuthRequest": { @@ -1496,7 +1496,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for certain custom\n workflows that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminInitiateAuth API action, Amazon Cognito invokes the AWS Lambda\n functions that are specified for various triggers. The ClientMetadata value is passed as\n input to the functions for only the following triggers:

\n \n

When Amazon Cognito invokes the functions for these triggers, it passes a JSON\n payload, which the function receives as input. This payload contains a\n validationData attribute, which provides the data that you assigned to\n the ClientMetadata parameter in your AdminInitiateAuth request. In your function code in\n AWS Lambda, you can process the validationData value to enhance your\n workflow for your specific needs.

\n

When you use the AdminInitiateAuth API action, Amazon Cognito also invokes the\n functions for the following triggers, but it does not provide the ClientMetadata value\n as input:

\n \n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for certain custom\n workflows that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminInitiateAuth API action, Amazon Cognito invokes the Lambda\n functions that are specified for various triggers. The ClientMetadata value is passed as\n input to the functions for only the following triggers:

\n \n

When Amazon Cognito invokes the functions for these triggers, it passes a JSON\n payload, which the function receives as input. This payload contains a\n validationData attribute, which provides the data that you assigned to\n the ClientMetadata parameter in your AdminInitiateAuth request. In your function code in\n Lambda, you can process the validationData value to enhance your\n workflow for your specific needs.

\n

When you use the AdminInitiateAuth API action, Amazon Cognito also invokes the\n functions for the following triggers, but it does not provide the ClientMetadata value\n as input:

\n \n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } }, "AnalyticsMetadata": { @@ -1982,7 +1982,7 @@ } ], "traits": { - "smithy.api#documentation": "

Resets the specified user's password in a user pool as an administrator. Works on any\n user.

\n

When a developer calls this API, the current password is invalidated, so it must be\n changed. If a user tries to sign in after the API is called, the app will get a\n PasswordResetRequiredException exception back and should direct the user down the flow\n to reset the password, which is the same as the forgot password flow. In addition, if\n the user pool has phone verification selected and a verified phone number exists for the\n user, or if email verification is selected and a verified email exists for the user,\n calling this API will also result in sending a message to the end user with the code to\n change their password.

\n \n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" + "smithy.api#documentation": "

Resets the specified user's password in a user pool as an administrator. Works on any\n user.

\n

When a developer calls this API, the current password is invalidated, so it must be\n changed. If a user tries to sign in after the API is called, the app will get a\n PasswordResetRequiredException exception back and should direct the user down the flow\n to reset the password, which is the same as the forgot password flow. In addition, if\n the user pool has phone verification selected and a verified phone number exists for the\n user, or if email verification is selected and a verified email exists for the user,\n calling this API will also result in sending a message to the end user with the code to\n change their password.

\n \n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminResetUserPasswordRequest": { @@ -2005,7 +2005,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminResetUserPassword API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your AdminResetUserPassword\n request. In your function code in AWS Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminResetUserPassword API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your AdminResetUserPassword\n request. In your function code in Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -2091,7 +2091,7 @@ } ], "traits": { - "smithy.api#documentation": "

Responds to an authentication challenge, as an administrator.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" + "smithy.api#documentation": "

Responds to an authentication challenge, as an administrator.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminRespondToAuthChallengeRequest": { @@ -2145,7 +2145,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminRespondToAuthChallenge API action, Amazon Cognito invokes any\n functions that are assigned to the following triggers: pre sign-up,\n custom message, post authentication,\n user migration, pre token generation,\n define auth challenge, create auth\n challenge, and verify auth challenge response. When\n Amazon Cognito invokes any of these functions, it passes a JSON payload, which the\n function receives as input. This payload contains a clientMetadata\n attribute, which provides the data that you assigned to the ClientMetadata parameter in\n your AdminRespondToAuthChallenge request. In your function code in AWS Lambda, you can\n process the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminRespondToAuthChallenge API action, Amazon Cognito invokes any\n functions that are assigned to the following triggers: pre sign-up,\n custom message, post authentication,\n user migration, pre token generation,\n define auth challenge, create auth\n challenge, and verify auth challenge response. When\n Amazon Cognito invokes any of these functions, it passes a JSON payload, which the\n function receives as input. This payload contains a clientMetadata\n attribute, which provides the data that you assigned to the ClientMetadata parameter in\n your AdminRespondToAuthChallenge request. In your function code in Lambda, you can\n process the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -2590,7 +2590,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the specified user's attributes, including developer attributes, as an\n administrator. Works on any user.

\n

For custom attributes, you must prepend the custom: prefix to the\n attribute name.

\n

In addition to updating user attributes, this API can also be used to mark phone and\n email as verified.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" + "smithy.api#documentation": "

Updates the specified user's attributes, including developer attributes, as an\n administrator. Works on any user.

\n

For custom attributes, you must prepend the custom: prefix to the\n attribute name.

\n

In addition to updating user attributes, this API can also be used to mark phone and\n email as verified.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
\n \n

Calling this action requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#AdminUpdateUserAttributesRequest": { @@ -2620,7 +2620,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the AdminUpdateUserAttributes API action, Amazon Cognito invokes the\n function that is assigned to the custom message trigger. When\n Amazon Cognito invokes this function, it passes a JSON payload, which the function\n receives as input. This payload contains a clientMetadata attribute, which\n provides the data that you assigned to the ClientMetadata parameter in your\n AdminUpdateUserAttributes request. In your function code in AWS Lambda, you can process\n the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the AdminUpdateUserAttributes API action, Amazon Cognito invokes the\n function that is assigned to the custom message trigger. When\n Amazon Cognito invokes this function, it passes a JSON payload, which the function\n receives as input. This payload contains a clientMetadata attribute, which\n provides the data that you assigned to the ClientMetadata parameter in your\n AdminUpdateUserAttributes request. In your function code in Lambda, you can process\n the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -3775,7 +3775,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the ConfirmForgotPassword API action, Amazon Cognito invokes the function\n that is assigned to the post confirmation trigger. When Amazon\n Cognito invokes this function, it passes a JSON payload, which the function receives as\n input. This payload contains a clientMetadata attribute, which provides the\n data that you assigned to the ClientMetadata parameter in your ConfirmForgotPassword\n request. In your function code in AWS Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the ConfirmForgotPassword API action, Amazon Cognito invokes the function\n that is assigned to the post confirmation trigger. When Amazon\n Cognito invokes this function, it passes a JSON payload, which the function receives as\n input. This payload contains a clientMetadata attribute, which provides the\n data that you assigned to the ClientMetadata parameter in your ConfirmForgotPassword\n request. In your function code in Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -3899,7 +3899,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the ConfirmSignUp API action, Amazon Cognito invokes the function that is\n assigned to the post confirmation trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your ConfirmSignUp request. In your\n function code in AWS Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the ConfirmSignUp API action, Amazon Cognito invokes the function that is\n assigned to the post confirmation trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your ConfirmSignUp request. In your\n function code in Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -4333,7 +4333,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new Amazon Cognito user pool and sets the password policy for the\n pool.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" + "smithy.api#documentation": "

Creates a new Amazon Cognito user pool and sets the password policy for the\n pool.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" } }, "com.amazonaws.cognitoidentityprovider#CreateUserPoolClient": { @@ -4472,7 +4472,7 @@ "AllowedOAuthScopes": { "target": "com.amazonaws.cognitoidentityprovider#ScopeListType", "traits": { - "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by AWS are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" + "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by Amazon Web Services are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" } }, "AllowedOAuthFlowsUserPoolClient": { @@ -4602,7 +4602,7 @@ "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { - "smithy.api#documentation": "

The Lambda trigger configuration information for the new user pool.

\n \n

In a push model, event sources (such as Amazon S3 and custom applications) need\n permission to invoke a function. So you will need to make an extra call to add\n permission for these event sources to invoke your Lambda function.

\n

\n

For more information on using the Lambda API to add permission, see \n AddPermission .

\n

For adding permission using the AWS CLI, see add-permission\n .

\n
" + "smithy.api#documentation": "

The Lambda trigger configuration information for the new user pool.

\n \n

In a push model, event sources (such as Amazon S3 and custom applications) need\n permission to invoke a function. So you will need to make an extra call to add\n permission for these event sources to invoke your Lambda function.

\n

\n

For more information on using the Lambda API to add permission, see \n AddPermission .

\n

For adding permission using the CLI, see add-permission\n .

\n
" } }, "AutoVerifiedAttributes": { @@ -4760,7 +4760,7 @@ "CertificateArn": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. You use\n this certificate for the subdomain of your custom domain.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an Certificate Manager SSL certificate. You use\n this certificate for the subdomain of your custom domain.

", "smithy.api#required": {} } } @@ -5835,7 +5835,7 @@ "AWSAccountId": { "target": "com.amazonaws.cognitoidentityprovider#AWSAccountIdType", "traits": { - "smithy.api#documentation": "

The AWS account ID for the user pool owner.

" + "smithy.api#documentation": "

The account ID for the user pool owner.

" } }, "Domain": { @@ -5962,7 +5962,7 @@ "EmailSendingAccount": { "target": "com.amazonaws.cognitoidentityprovider#EmailSendingAccountType", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon Cognito emails your users by using its built-in email\n functionality or your Amazon SES email configuration. Specify one of the following\n values:

\n
\n
COGNITO_DEFAULT
\n
\n

When Amazon Cognito emails your users, it uses its built-in email\n functionality. When you use the default option, Amazon Cognito allows only a\n limited number of emails each day for your user pool. For typical production\n environments, the default email limit is below the required delivery volume.\n To achieve a higher delivery volume, specify DEVELOPER to use your Amazon\n SES email configuration.

\n

To look up the email delivery limit for the default option, see Limits in Amazon Cognito in the Amazon Cognito\n Developer Guide.

\n

The default FROM address is no-reply@verificationemail.com. To customize\n the FROM address, provide the ARN of an Amazon SES verified email address\n for the SourceArn parameter.

\n

If EmailSendingAccount is COGNITO_DEFAULT, the following parameters\n aren't allowed:

\n \n \n

DEVELOPER EmailSendingAccount is required.

\n
\n
\n
DEVELOPER
\n
\n

When Amazon Cognito emails your users, it uses your Amazon SES\n configuration. Amazon Cognito calls Amazon SES on your behalf to send email\n from your verified email address. When you use this option, the email\n delivery limits are the same limits that apply to your Amazon SES verified\n email address in your AWS account.

\n

If you use this option, you must provide the ARN of an Amazon SES verified\n email address for the SourceArn parameter.

\n

Before Amazon Cognito can email your users, it requires additional\n permissions to call Amazon SES on your behalf. When you update your user\n pool with this option, Amazon Cognito creates a service-linked\n role, which is a type of IAM role, in your AWS account. This\n role contains the permissions that allow Amazon Cognito to access Amazon SES\n and send email messages with your address. For more information about the\n service-linked role that Amazon Cognito creates, see Using Service-Linked Roles for Amazon\n Cognito in the Amazon Cognito Developer\n Guide.

\n
\n
" + "smithy.api#documentation": "

Specifies whether Amazon Cognito emails your users by using its built-in email\n functionality or your Amazon SES email configuration. Specify one of the following\n values:

\n
\n
COGNITO_DEFAULT
\n
\n

When Amazon Cognito emails your users, it uses its built-in email\n functionality. When you use the default option, Amazon Cognito allows only a\n limited number of emails each day for your user pool. For typical production\n environments, the default email limit is below the required delivery volume.\n To achieve a higher delivery volume, specify DEVELOPER to use your Amazon\n SES email configuration.

\n

To look up the email delivery limit for the default option, see Limits in Amazon Cognito in the Amazon Cognito\n Developer Guide.

\n

The default FROM address is no-reply@verificationemail.com. To customize\n the FROM address, provide the ARN of an Amazon SES verified email address\n for the SourceArn parameter.

\n

If EmailSendingAccount is COGNITO_DEFAULT, the following parameters\n aren't allowed:

\n \n \n

DEVELOPER EmailSendingAccount is required.

\n
\n
\n
DEVELOPER
\n
\n

When Amazon Cognito emails your users, it uses your Amazon SES\n configuration. Amazon Cognito calls Amazon SES on your behalf to send email\n from your verified email address. When you use this option, the email\n delivery limits are the same limits that apply to your Amazon SES verified\n email address in your account.

\n

If you use this option, you must provide the ARN of an Amazon SES verified\n email address for the SourceArn parameter.

\n

Before Amazon Cognito can email your users, it requires additional\n permissions to call Amazon SES on your behalf. When you update your user\n pool with this option, Amazon Cognito creates a service-linked\n role, which is a type of IAM role, in your account. This\n role contains the permissions that allow Amazon Cognito to access Amazon SES\n and send email messages with your address. For more information about the\n service-linked role that Amazon Cognito creates, see Using Service-Linked Roles for Amazon\n Cognito in the Amazon Cognito Developer\n Guide.

\n
\n
" } }, "From": { @@ -5974,7 +5974,7 @@ "ConfigurationSet": { "target": "com.amazonaws.cognitoidentityprovider#SESConfigurationSet", "traits": { - "smithy.api#documentation": "

The set of configuration rules that can be applied to emails sent using Amazon SES. A\n configuration set is applied to an email by including a reference to the configuration\n set in the headers of the email. Once applied, all of the rules in that configuration\n set are applied to the email. Configuration sets can be used to apply the following\n types of rules to emails:

\n " + "smithy.api#documentation": "

The set of configuration rules that can be applied to emails sent using Amazon SES. A\n configuration set is applied to an email by including a reference to the configuration\n set in the headers of the email. Once applied, all of the rules in that configuration\n set are applied to the email. Configuration sets can be used to apply the following\n types of rules to emails:

\n " } } }, @@ -6426,7 +6426,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Calling this API causes a message to be sent to the end user with a confirmation code\n that is required to change the user's password. For the Username parameter,\n you can use the username or user alias. The method used to send the confirmation code is\n sent according to the specified AccountRecoverySetting. For more information, see Recovering\n User Accounts in the Amazon Cognito Developer Guide. If\n neither a verified phone number nor a verified email exists, an\n InvalidParameterException is thrown. To use the confirmation code for\n resetting the password, call ConfirmForgotPassword.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Calling this API causes a message to be sent to the end user with a confirmation code\n that is required to change the user's password. For the Username parameter,\n you can use the username or user alias. The method used to send the confirmation code is\n sent according to the specified AccountRecoverySetting. For more information, see Recovering\n User Accounts in the Amazon Cognito Developer Guide. If\n neither a verified phone number nor a verified email exists, an\n InvalidParameterException is thrown. To use the confirmation code for\n resetting the password, call ConfirmForgotPassword.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -6468,7 +6468,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the ForgotPassword API action, Amazon Cognito invokes any functions that\n are assigned to the following triggers: pre sign-up,\n custom message, and user migration. When\n Amazon Cognito invokes any of these functions, it passes a JSON payload, which the\n function receives as input. This payload contains a clientMetadata\n attribute, which provides the data that you assigned to the ClientMetadata parameter in\n your ForgotPassword request. In your function code in AWS Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the ForgotPassword API action, Amazon Cognito invokes any functions that\n are assigned to the following triggers: pre sign-up,\n custom message, and user migration. When\n Amazon Cognito invokes any of these functions, it passes a JSON payload, which the\n function receives as input. This payload contains a clientMetadata\n attribute, which provides the data that you assigned to the ClientMetadata parameter in\n your ForgotPassword request. In your function code in Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -6964,7 +6964,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Gets the user attribute verification code for the specified attribute name.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Gets the user attribute verification code for the specified attribute name.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -6988,7 +6988,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the GetUserAttributeVerificationCode API action, Amazon Cognito invokes the\n function that is assigned to the custom message trigger. When\n Amazon Cognito invokes this function, it passes a JSON payload, which the function\n receives as input. This payload contains a clientMetadata attribute, which\n provides the data that you assigned to the ClientMetadata parameter in your\n GetUserAttributeVerificationCode request. In your function code in AWS Lambda, you can\n process the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the GetUserAttributeVerificationCode API action, Amazon Cognito invokes the\n function that is assigned to the custom message trigger. When\n Amazon Cognito invokes this function, it passes a JSON payload, which the function\n receives as input. This payload contains a clientMetadata attribute, which\n provides the data that you assigned to the ClientMetadata parameter in your\n GetUserAttributeVerificationCode request. In your function code in Lambda, you can\n process the clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -7476,7 +7476,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Initiates the authentication flow.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Initiates the authentication flow.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -7499,7 +7499,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for certain custom\n workflows that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the InitiateAuth API action, Amazon Cognito invokes the AWS Lambda\n functions that are specified for various triggers. The ClientMetadata value is passed as\n input to the functions for only the following triggers:

\n \n

When Amazon Cognito invokes the functions for these triggers, it passes a JSON\n payload, which the function receives as input. This payload contains a\n validationData attribute, which provides the data that you assigned to\n the ClientMetadata parameter in your InitiateAuth request. In your function code in AWS\n Lambda, you can process the validationData value to enhance your workflow\n for your specific needs.

\n

When you use the InitiateAuth API action, Amazon Cognito also invokes the functions\n for the following triggers, but it does not provide the ClientMetadata value as\n input:

\n \n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for certain custom\n workflows that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the InitiateAuth API action, Amazon Cognito invokes the Lambda\n functions that are specified for various triggers. The ClientMetadata value is passed as\n input to the functions for only the following triggers:

\n \n

When Amazon Cognito invokes the functions for these triggers, it passes a JSON\n payload, which the function receives as input. This payload contains a\n validationData attribute, which provides the data that you assigned to\n the ClientMetadata parameter in your InitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow\n for your specific needs.

\n

When you use the InitiateAuth API action, Amazon Cognito also invokes the functions\n for the following triggers, but it does not provide the ClientMetadata value as\n input:

\n \n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } }, "ClientId": { @@ -7598,12 +7598,12 @@ "message": { "target": "com.amazonaws.cognitoidentityprovider#MessageType", "traits": { - "smithy.api#documentation": "

The message returned when the Amazon Cognito service throws an invalid AWS Lambda\n response exception.

" + "smithy.api#documentation": "

The message returned when the Amazon Cognito service throws an invalid Lambda\n response exception.

" } } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters an invalid AWS\n Lambda response.

", + "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters an invalid Lambda response.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -7680,7 +7680,7 @@ } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when the trust relationship is invalid for the role provided\n for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com or the external ID provided in the role does\n not match what is provided in the SMS configuration for the user pool.

", + "smithy.api#documentation": "

This exception is thrown when the trust relationship is invalid for the role provided\n for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com or the external ID provided in the role does\n not match what is provided in the SMS configuration for the user pool.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -7707,31 +7707,31 @@ "PreSignUp": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A pre-registration AWS Lambda trigger.

" + "smithy.api#documentation": "

A pre-registration Lambda trigger.

" } }, "CustomMessage": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A custom Message AWS Lambda trigger.

" + "smithy.api#documentation": "

A custom Message Lambda trigger.

" } }, "PostConfirmation": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A post-confirmation AWS Lambda trigger.

" + "smithy.api#documentation": "

A post-confirmation Lambda trigger.

" } }, "PreAuthentication": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A pre-authentication AWS Lambda trigger.

" + "smithy.api#documentation": "

A pre-authentication Lambda trigger.

" } }, "PostAuthentication": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

A post-authentication AWS Lambda trigger.

" + "smithy.api#documentation": "

A post-authentication Lambda trigger.

" } }, "DefineAuthChallenge": { @@ -7767,13 +7767,13 @@ "CustomSMSSender": { "target": "com.amazonaws.cognitoidentityprovider#CustomSMSLambdaVersionConfigType", "traits": { - "smithy.api#documentation": "

A custom SMS sender AWS Lambda trigger.

" + "smithy.api#documentation": "

A custom SMS sender Lambda trigger.

" } }, "CustomEmailSender": { "target": "com.amazonaws.cognitoidentityprovider#CustomEmailLambdaVersionConfigType", "traits": { - "smithy.api#documentation": "

A custom email sender AWS Lambda trigger.

" + "smithy.api#documentation": "

A custom email sender Lambda trigger.

" } }, "KMSKeyID": { @@ -7784,7 +7784,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies the configuration for AWS Lambda triggers.

" + "smithy.api#documentation": "

Specifies the configuration for Lambda triggers.

" } }, "com.amazonaws.cognitoidentityprovider#LimitExceededException": { @@ -7798,7 +7798,7 @@ } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when a user exceeds the limit for a requested AWS\n resource.

", + "smithy.api#documentation": "

This exception is thrown when a user exceeds the limit for a requested Amazon Web Services\n resource.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -8380,7 +8380,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the user pools associated with an AWS account.

", + "smithy.api#documentation": "

Lists the user pools associated with an account.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -9276,7 +9276,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Resends the confirmation (for confirmation of registration) to a specific user in the\n user pool.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Resends the confirmation (for confirmation of registration) to a specific user in the\n user pool.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -9318,7 +9318,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the ResendConfirmationCode API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your ResendConfirmationCode\n request. In your function code in AWS Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the ResendConfirmationCode API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your ResendConfirmationCode\n request. In your function code in Lambda, you can process the\n clientMetadata value to enhance your workflow for your specific\n needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -9539,7 +9539,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Responds to the authentication challenge.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Responds to the authentication challenge.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -9587,7 +9587,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the RespondToAuthChallenge API action, Amazon Cognito invokes any functions\n that are assigned to the following triggers: post authentication,\n pre token generation, define auth\n challenge, create auth challenge, and\n verify auth challenge. When Amazon Cognito invokes any of these\n functions, it passes a JSON payload, which the function receives as input. This payload\n contains a clientMetadata attribute, which provides the data that you\n assigned to the ClientMetadata parameter in your RespondToAuthChallenge request. In your\n function code in AWS Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the RespondToAuthChallenge API action, Amazon Cognito invokes any functions\n that are assigned to the following triggers: post authentication,\n pre token generation, define auth\n challenge, create auth challenge, and\n verify auth challenge. When Amazon Cognito invokes any of these\n functions, it passes a JSON payload, which the function receives as input. This payload\n contains a clientMetadata attribute, which provides the data that you\n assigned to the ClientMetadata parameter in your RespondToAuthChallenge request. In your\n function code in Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -10227,7 +10227,7 @@ } ], "traits": { - "smithy.api#documentation": "

Set the user pool multi-factor authentication (MFA) configuration.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" + "smithy.api#documentation": "

Set the user pool multi-factor authentication (MFA) configuration.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" } }, "com.amazonaws.cognitoidentityprovider#SetUserPoolMfaConfigRequest": { @@ -10403,7 +10403,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Registers the user in the specified user pool and creates a user name, password, and\n user attributes.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Registers the user in the specified user pool and creates a user name, password, and\n user attributes.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -10464,7 +10464,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the SignUp API action, Amazon Cognito invokes any functions that are\n assigned to the following triggers: pre sign-up, custom\n message, and post confirmation. When Amazon Cognito\n invokes any of these functions, it passes a JSON payload, which the function receives as\n input. This payload contains a clientMetadata attribute, which provides the\n data that you assigned to the ClientMetadata parameter in your SignUp request. In your\n function code in AWS Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the SignUp API action, Amazon Cognito invokes any functions that are\n assigned to the following triggers: pre sign-up, custom\n message, and post confirmation. When Amazon Cognito\n invokes any of these functions, it passes a JSON payload, which the function receives as\n input. This payload contains a clientMetadata attribute, which provides the\n data that you assigned to the ClientMetadata parameter in your SignUp request. In your\n function code in Lambda, you can process the clientMetadata value to\n enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -10518,19 +10518,19 @@ "SnsCallerArn": { "target": "com.amazonaws.cognitoidentityprovider#ArnType", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.\n This is the ARN of the IAM role in your AWS account which Cognito will use to send SMS\n messages. SMS messages are subject to a spending limit.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.\n This is the ARN of the IAM role in your account which Cognito will use to send SMS\n messages. SMS messages are subject to a spending limit.

", "smithy.api#required": {} } }, "ExternalId": { "target": "com.amazonaws.cognitoidentityprovider#StringType", "traits": { - "smithy.api#documentation": "

The external ID is a value that we recommend you use to add security to your IAM role\n which is used to call Amazon SNS to send SMS messages for your user pool. If you provide\n an ExternalId, the Cognito User Pool will include it when attempting to\n assume your IAM role, so that you can set your roles trust policy to require the\n ExternalID. If you use the Cognito Management Console to create a role\n for SMS MFA, Cognito will create a role with the required permissions and a trust policy\n that demonstrates use of the ExternalId.

\n

For more information about the ExternalId of a role, see How to use an\n external ID when granting access to your AWS resources to a third\n party\n

" + "smithy.api#documentation": "

The external ID is a value that we recommend you use to add security to your IAM role\n which is used to call Amazon SNS to send SMS messages for your user pool. If you provide\n an ExternalId, the Cognito User Pool will include it when attempting to\n assume your IAM role, so that you can set your roles trust policy to require the\n ExternalID. If you use the Cognito Management Console to create a role\n for SMS MFA, Cognito will create a role with the required permissions and a trust policy\n that demonstrates use of the ExternalId.

\n

For more information about the ExternalId of a role, see How to use an\n external ID when granting access to your Amazon Web Services resources to a third\n party\n

" } } }, "traits": { - "smithy.api#documentation": "

The SMS configuration type that includes the settings the Cognito User Pool needs to\n call for the Amazon SNS service to send an SMS message from your AWS account. The\n Cognito User Pool makes the request to the Amazon SNS Service by using an AWS IAM role\n that you provide for your AWS account.

" + "smithy.api#documentation": "

The SMS configuration type that includes the settings the Cognito User Pool needs to\n call for the Amazon SNS service to send an SMS message from your account. The\n Cognito User Pool makes the request to the Amazon SNS Service by using an IAM role\n that you provide for your account.

" } }, "com.amazonaws.cognitoidentityprovider#SmsMfaConfigType": { @@ -11036,12 +11036,12 @@ "message": { "target": "com.amazonaws.cognitoidentityprovider#MessageType", "traits": { - "smithy.api#documentation": "

The message returned when the Amazon Cognito service returns an unexpected AWS Lambda\n exception.

" + "smithy.api#documentation": "

The message returned when the Amazon Cognito service returns an unexpected Lambda\n exception.

" } } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters an unexpected\n exception with the AWS Lambda service.

", + "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters an unexpected\n exception with the Lambda service.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -11334,7 +11334,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the specified group with the specified attributes.

\n

Calling this action requires developer credentials.

\n \n

If you don't provide a value for an attribute, it will be set to the default\n value.

\n
" + "smithy.api#documentation": "

Updates the specified group with the specified attributes.

\n

Calling this action requires developer credentials.

" } }, "com.amazonaws.cognitoidentityprovider#UpdateGroupRequest": { @@ -11605,7 +11605,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Allows a user to update a specific attribute (one at a time).

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", + "smithy.api#documentation": "

Allows a user to update a specific attribute (one at a time).

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
", "smithy.api#optionalAuth": {} } }, @@ -11629,7 +11629,7 @@ "ClientMetadata": { "target": "com.amazonaws.cognitoidentityprovider#ClientMetadataType", "traits": { - "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning AWS Lambda functions to user pool triggers.\n When you use the UpdateUserAttributes API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your UpdateUserAttributes request.\n In your function code in AWS Lambda, you can process the clientMetadata\n value to enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" + "smithy.api#documentation": "

A map of custom key-value pairs that you can provide as input for any custom workflows\n that this action triggers.

\n

You create custom workflows by assigning Lambda functions to user pool triggers.\n When you use the UpdateUserAttributes API action, Amazon Cognito invokes the function\n that is assigned to the custom message trigger. When Amazon Cognito\n invokes this function, it passes a JSON payload, which the function receives as input.\n This payload contains a clientMetadata attribute, which provides the data\n that you assigned to the ClientMetadata parameter in your UpdateUserAttributes request.\n In your function code in Lambda, you can process the clientMetadata\n value to enhance your workflow for your specific needs.

\n

For more information, see Customizing User Pool Workflows with Lambda Triggers in the\n Amazon Cognito Developer Guide.

\n \n

Take the following limitations into consideration when you use the ClientMetadata\n parameter:

\n \n
" } } }, @@ -11695,7 +11695,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the specified user pool with the specified attributes. You can get a list of\n the current user pool settings using DescribeUserPool. If you don't provide a value for an attribute, it will be set to the default\n value.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other AWS\n service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" + "smithy.api#documentation": "

Updates the specified user pool with the specified attributes. You can get a list of\n the current user pool settings using DescribeUserPool. If you don't provide a value for an attribute, it will be set to the default\n value.

\n \n \n

This action might generate an SMS text message. Starting June 1, 2021, U.S. \n telecom carriers require that you register an origination phone number before you can \n send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, \n you must register a phone number with Amazon Pinpoint. \n Cognito will use the the registered number automatically. Otherwise, Cognito users that must\n receive SMS messages might be unable to sign up, activate their accounts, or sign\n in.

\n

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In \n sandbox\n mode\n , you’ll have limitations, such as sending messages\n to only verified phone numbers. After testing in the sandbox environment, you can\n move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon\n Cognito Developer Guide.

\n
" } }, "com.amazonaws.cognitoidentityprovider#UpdateUserPoolClient": { @@ -11834,7 +11834,7 @@ "AllowedOAuthScopes": { "target": "com.amazonaws.cognitoidentityprovider#ScopeListType", "traits": { - "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by AWS are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" + "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by Amazon Web Services are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" } }, "AllowedOAuthFlowsUserPoolClient": { @@ -11906,7 +11906,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the Secure Sockets Layer (SSL) certificate for the custom domain for your user\n pool.

\n

You can use this operation to provide the Amazon Resource Name (ARN) of a new\n certificate to Amazon Cognito. You cannot use it to change the domain for a user\n pool.

\n

A custom domain is used to host the Amazon Cognito hosted UI, which provides sign-up\n and sign-in pages for your application. When you set up a custom domain, you provide a\n certificate that you manage with AWS Certificate Manager (ACM). When necessary, you can\n use this operation to change the certificate that you applied to your custom\n domain.

\n

Usually, this is unnecessary following routine certificate renewal with ACM. When you\n renew your existing certificate in ACM, the ARN for your certificate remains the same,\n and your custom domain uses the new certificate automatically.

\n

However, if you replace your existing certificate with a new one, ACM gives the new\n certificate a new ARN. To apply the new certificate to your custom domain, you must\n provide this ARN to Amazon Cognito.

\n

When you add your new certificate in ACM, you must choose US East (N. Virginia) as the\n AWS Region.

\n

After you submit your request, Amazon Cognito requires up to 1 hour to distribute your\n new certificate to your custom domain.

\n

For more information about adding a custom domain to your user pool, see Using Your Own Domain for the Hosted UI.

" + "smithy.api#documentation": "

Updates the Secure Sockets Layer (SSL) certificate for the custom domain for your user\n pool.

\n

You can use this operation to provide the Amazon Resource Name (ARN) of a new\n certificate to Amazon Cognito. You cannot use it to change the domain for a user\n pool.

\n

A custom domain is used to host the Amazon Cognito hosted UI, which provides sign-up\n and sign-in pages for your application. When you set up a custom domain, you provide a\n certificate that you manage with Certificate Manager (ACM). When necessary, you can\n use this operation to change the certificate that you applied to your custom\n domain.

\n

Usually, this is unnecessary following routine certificate renewal with ACM. When you\n renew your existing certificate in ACM, the ARN for your certificate remains the same,\n and your custom domain uses the new certificate automatically.

\n

However, if you replace your existing certificate with a new one, ACM gives the new\n certificate a new ARN. To apply the new certificate to your custom domain, you must\n provide this ARN to Amazon Cognito.

\n

When you add your new certificate in ACM, you must choose US East (N. Virginia) as the\n Region.

\n

After you submit your request, Amazon Cognito requires up to 1 hour to distribute your\n new certificate to your custom domain.

\n

For more information about adding a custom domain to your user pool, see Using Your Own Domain for the Hosted UI.

" } }, "com.amazonaws.cognitoidentityprovider#UpdateUserPoolDomainRequest": { @@ -11971,7 +11971,7 @@ "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { - "smithy.api#documentation": "

The AWS Lambda configuration information from the request to update the user\n pool.

" + "smithy.api#documentation": "

The Lambda configuration information from the request to update the user\n pool.

" } }, "AutoVerifiedAttributes": { @@ -12272,12 +12272,12 @@ "message": { "target": "com.amazonaws.cognitoidentityprovider#MessageType", "traits": { - "smithy.api#documentation": "

The message returned when the Amazon Cognito service returns a user validation\n exception with the AWS Lambda service.

" + "smithy.api#documentation": "

The message returned when the Amazon Cognito service returns a user validation\n exception with the Lambda service.

" } } }, "traits": { - "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters a user validation\n exception with the AWS Lambda service.

", + "smithy.api#documentation": "

This exception is thrown when the Amazon Cognito service encounters a user validation\n exception with the Lambda service.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -12494,7 +12494,7 @@ "AllowedOAuthScopes": { "target": "com.amazonaws.cognitoidentityprovider#ScopeListType", "traits": { - "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by AWS are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" + "smithy.api#documentation": "

The allowed OAuth scopes. Possible values provided by OAuth are: phone,\n email, openid, and profile. Possible values\n provided by Amazon Web Services are: aws.cognito.signin.user.admin. Custom scopes created\n in Resource Servers are also supported.

" } }, "AllowedOAuthFlowsUserPoolClient": { @@ -12545,7 +12545,7 @@ "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { - "smithy.api#documentation": "

The AWS Lambda configuration information in a user pool description.

" + "smithy.api#documentation": "

The Lambda configuration information in a user pool description.

" } }, "Status": { @@ -12682,7 +12682,7 @@ "LambdaConfig": { "target": "com.amazonaws.cognitoidentityprovider#LambdaConfigType", "traits": { - "smithy.api#documentation": "

The AWS Lambda triggers associated with the user pool.

" + "smithy.api#documentation": "

The Lambda triggers associated with the user pool.

" } }, "Status": { @@ -12796,7 +12796,7 @@ "SmsConfigurationFailure": { "target": "com.amazonaws.cognitoidentityprovider#StringType", "traits": { - "smithy.api#documentation": "

The reason why the SMS configuration cannot send the messages to your users.

\n

This message might include comma-separated values to describe why your SMS configuration\n can't send messages to user pool end users.

\n \n " + "smithy.api#documentation": "

The reason why the SMS configuration cannot send the messages to your users.

\n

This message might include comma-separated values to describe why your SMS configuration\n can't send messages to user pool end users.

\n \n " } }, "EmailConfigurationFailure": { diff --git a/codegen/sdk-codegen/aws-models/computeoptimizer.2019-11-01.json b/codegen/sdk-codegen/aws-models/computeoptimizer.2019-11-01.json index 14046f2dac8..5cded38efde 100644 --- a/codegen/sdk-codegen/aws-models/computeoptimizer.2019-11-01.json +++ b/codegen/sdk-codegen/aws-models/computeoptimizer.2019-11-01.json @@ -175,7 +175,7 @@ "performanceRisk": { "target": "com.amazonaws.computeoptimizer#PerformanceRisk", "traits": { - "smithy.api#documentation": "

The performance risk of the Auto Scaling group configuration recommendation.

\n

Performance risk indicates the likelihood of the recommended instance type not meeting\n the resource needs of your workload. Compute Optimizer calculates an individual performance risk\n score for each specification of the recommended instance, including CPU, memory, EBS\n throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS.\n The performance\n risk of the recommended instance is calculated as the maximum performance risk score\n across the analyzed resource specifications.

\n

The value ranges from 0 to 5, with 0 meaning that the recommended resource is\n predicted to always provide enough hardware capability. The higher the performance risk\n is, the more likely you should validate whether the recommended resource meets the\n performance requirements of your workload before migrating your resource.

" + "smithy.api#documentation": "

The performance risk of the Auto Scaling group configuration recommendation.

\n

Performance risk indicates the likelihood of the recommended instance type not meeting\n the resource needs of your workload. Compute Optimizer calculates an individual performance risk\n score for each specification of the recommended instance, including CPU, memory, EBS\n throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS.\n The performance\n risk of the recommended instance is calculated as the maximum performance risk score\n across the analyzed resource specifications.

\n

The value ranges from 0 - 4, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" } }, "rank": { @@ -2402,7 +2402,7 @@ "performanceRisk": { "target": "com.amazonaws.computeoptimizer#PerformanceRisk", "traits": { - "smithy.api#documentation": "

The performance risk of the instance recommendation option.

\n

Performance risk indicates the likelihood of the recommended instance type not meeting\n the resource needs of your workload. Compute Optimizer calculates an individual performance risk\n score for each specification of the recommended instance, including CPU, memory, EBS\n throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS.\n The performance\n risk of the recommended instance is calculated as the maximum performance risk score\n across the analyzed resource specifications.

\n

The value ranges from 0 to 5, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" + "smithy.api#documentation": "

The performance risk of the instance recommendation option.

\n

Performance risk indicates the likelihood of the recommended instance type not meeting\n the resource needs of your workload. Compute Optimizer calculates an individual performance risk\n score for each specification of the recommended instance, including CPU, memory, EBS\n throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS.\n The performance\n risk of the recommended instance is calculated as the maximum performance risk score\n across the analyzed resource specifications.

\n

The value ranges from 0 - 4, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" } }, "rank": { @@ -3720,7 +3720,7 @@ "performanceRisk": { "target": "com.amazonaws.computeoptimizer#PerformanceRisk", "traits": { - "smithy.api#documentation": "

The performance risk of the volume recommendation option.

\n

Performance risk is the likelihood of the recommended volume type meeting the\n performance requirement of your workload.

\n

The value ranges from 0 to 5, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" + "smithy.api#documentation": "

The performance risk of the volume recommendation option.

\n

Performance risk is the likelihood of the recommended volume type meeting the\n performance requirement of your workload.

\n

The value ranges from 0 - 4, with 0 meaning\n that the recommended resource is predicted to always provide enough hardware capability.\n The higher the performance risk is, the more likely you should validate whether the\n recommendation will meet the performance requirements of your workload before migrating\n your resource.

" } }, "rank": { diff --git a/codegen/sdk-codegen/aws-models/databrew.2017-07-25.json b/codegen/sdk-codegen/aws-models/databrew.2017-07-25.json index 97e7f172a24..65356fd3c3e 100644 --- a/codegen/sdk-codegen/aws-models/databrew.2017-07-25.json +++ b/codegen/sdk-codegen/aws-models/databrew.2017-07-25.json @@ -335,6 +335,69 @@ } } }, + "com.amazonaws.databrew#ColumnSelector": { + "type": "structure", + "members": { + "Regex": { + "target": "com.amazonaws.databrew#ColumnName", + "traits": { + "smithy.api#documentation": "

A regular expression for selecting a column from a dataset.

" + } + }, + "Name": { + "target": "com.amazonaws.databrew#ColumnName", + "traits": { + "smithy.api#documentation": "

The name of a column from a dataset.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Selector of a column from a dataset for profile job configuration. One selector includes either a column name or a regular \n expression.

" + } + }, + "com.amazonaws.databrew#ColumnSelectorList": { + "type": "list", + "member": { + "target": "com.amazonaws.databrew#ColumnSelector" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.databrew#ColumnStatisticsConfiguration": { + "type": "structure", + "members": { + "Selectors": { + "target": "com.amazonaws.databrew#ColumnSelectorList", + "traits": { + "smithy.api#documentation": "

List of column selectors. Selectors can be used to select columns from the dataset. \n When selectors are undefined, configuration will be applied to all supported columns.\n

" + } + }, + "Statistics": { + "target": "com.amazonaws.databrew#StatisticsConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for evaluations. Statistics can be used to select evaluations and override \n parameters of evaluations. \n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration for column evaluations for a profile job. ColumnStatisticsConfiguration can be used to select \n evaluations and override parameters of evaluations for particular columns. \n

" + } + }, + "com.amazonaws.databrew#ColumnStatisticsConfigurationList": { + "type": "list", + "member": { + "target": "com.amazonaws.databrew#ColumnStatisticsConfiguration" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, "com.amazonaws.databrew#CompressionFormat": { "type": "string", "traits": { @@ -616,6 +679,12 @@ "smithy.api#required": {} } }, + "Configuration": { + "target": "com.amazonaws.databrew#ProfileConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for profile jobs. Used to select columns, do evaluations, \n and override default parameters of evaluations. When configuration is null, the\n profile job will run with default settings.

" + } + }, "RoleArn": { "target": "com.amazonaws.databrew#Arn", "traits": { @@ -857,7 +926,13 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output from running the job.

" + "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output from running the job.

" + } + }, + "DatabaseOutputs": { + "target": "com.amazonaws.databrew#DatabaseOutputList", + "traits": { + "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output destination for \n a DataBrew recipe job to write to.

" } }, "ProjectName": { @@ -1059,7 +1134,7 @@ } }, "traits": { - "smithy.api#documentation": "

Represents a set of options that define how DataBrew will write a comma-separated value (CSV) file.

" + "smithy.api#documentation": "

Represents a set of options that define how DataBrew will write a \n comma-separated value (CSV) file.

" } }, "com.amazonaws.databrew#DataCatalogInputDefinition": { @@ -1102,7 +1177,7 @@ "CatalogId": { "target": "com.amazonaws.databrew#CatalogId", "traits": { - "smithy.api#documentation": "

The unique identifier of the AWS account that holds the Data Catalog that stores the data.

" + "smithy.api#documentation": "

The unique identifier of the Amazon Web Services account that holds the Data Catalog that stores the data.

" } }, "DatabaseName": { @@ -1122,7 +1197,7 @@ "S3Options": { "target": "com.amazonaws.databrew#S3TableOutputOptions", "traits": { - "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the S3 output generated \n by recipe jobs.

" + "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the Amazon S3 output generated \n by recipe jobs.

" } }, "DatabaseOptions": { @@ -1139,7 +1214,7 @@ } }, "traits": { - "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the output generated by recipe \n jobs.

" + "smithy.api#documentation": "

Represents options that specify how and where in the Glue Data Catalog DataBrew \n writes the output generated by recipe jobs.

" } }, "com.amazonaws.databrew#DataCatalogOutputList": { @@ -1187,6 +1262,56 @@ } } }, + "com.amazonaws.databrew#DatabaseOutput": { + "type": "structure", + "members": { + "GlueConnectionName": { + "target": "com.amazonaws.databrew#GlueConnectionName", + "traits": { + "smithy.api#documentation": "

The Glue connection that stores the connection information for the \n target database.

", + "smithy.api#required": {} + } + }, + "DatabaseOptions": { + "target": "com.amazonaws.databrew#DatabaseTableOutputOptions", + "traits": { + "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the database output \n generated by recipe jobs.

", + "smithy.api#required": {} + } + }, + "DatabaseOutputMode": { + "target": "com.amazonaws.databrew#DatabaseOutputMode", + "traits": { + "smithy.api#documentation": "

The output mode to write into the database. Currently supported option: NEW_TABLE.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a JDBC database output object which defines the output destination for \n a DataBrew recipe job to write into.

" + } + }, + "com.amazonaws.databrew#DatabaseOutputList": { + "type": "list", + "member": { + "target": "com.amazonaws.databrew#DatabaseOutput" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.databrew#DatabaseOutputMode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "NEW_TABLE", + "name": "NEW_TABLE" + } + ] + } + }, "com.amazonaws.databrew#DatabaseTableName": { "type": "string", "traits": { @@ -1921,7 +2046,13 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output from running the job.

" + "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output from running the job.

" + } + }, + "DatabaseOutputs": { + "target": "com.amazonaws.databrew#DatabaseOutputList", + "traits": { + "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output \n destination for a DataBrew recipe job to write into.

" } }, "ProjectName": { @@ -1930,6 +2061,12 @@ "smithy.api#documentation": "

The DataBrew project associated with this job.

" } }, + "ProfileConfiguration": { + "target": "com.amazonaws.databrew#ProfileConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for profile jobs. Used to select columns, do evaluations, \n and override default parameters of evaluations. When configuration is null, the\n profile job will run with default settings.

" + } + }, "RecipeReference": { "target": "com.amazonaws.databrew#RecipeReference" }, @@ -2051,6 +2188,12 @@ "smithy.api#required": {} } }, + "ProfileConfiguration": { + "target": "com.amazonaws.databrew#ProfileConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for profile jobs. Used to select columns, do evaluations, \n and override default parameters of evaluations. When configuration is null, the\n profile job will run with default settings.

" + } + }, "RunId": { "target": "com.amazonaws.databrew#JobRunId", "traits": { @@ -2084,7 +2227,13 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output from running the job.

" + "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output from running the job.

" + } + }, + "DatabaseOutputs": { + "target": "com.amazonaws.databrew#DatabaseOutputList", + "traits": { + "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output \n destination for a DataBrew recipe job to write into.

" } }, "RecipeReference": { @@ -2780,7 +2929,13 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output \n from running the job.

" + "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output \n from running the job.

" + } + }, + "DatabaseOutputs": { + "target": "com.amazonaws.databrew#DatabaseOutputList", + "traits": { + "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output \n destination for a DataBrew recipe job to write into.

" } }, "ProjectName": { @@ -2929,7 +3084,13 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output \n from running the job.

" + "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output \n from running the job.

" + } + }, + "DatabaseOutputs": { + "target": "com.amazonaws.databrew#DatabaseOutputList", + "traits": { + "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output \n destination for a DataBrew recipe job to write into.

" } }, "RecipeReference": { @@ -3794,7 +3955,7 @@ } }, "traits": { - "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the output generated by\n recipe jobs or profile jobs.

" + "smithy.api#documentation": "

Represents options that specify how and where in Amazon S3 DataBrew writes the output generated by\n recipe jobs or profile jobs.

" } }, "com.amazonaws.databrew#OutputFormat": { @@ -3903,7 +4064,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 12288 + "max": 32768 } } }, @@ -3961,6 +4122,32 @@ "com.amazonaws.databrew#Preview": { "type": "boolean" }, + "com.amazonaws.databrew#ProfileConfiguration": { + "type": "structure", + "members": { + "DatasetStatisticsConfiguration": { + "target": "com.amazonaws.databrew#StatisticsConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for inter-column evaluations. Configuration can be used to select evaluations and override \n parameters of evaluations. When configuration is undefined, the profile job will run all supported \n inter-column evaluations.\n

" + } + }, + "ProfileColumns": { + "target": "com.amazonaws.databrew#ColumnSelectorList", + "traits": { + "smithy.api#documentation": "

List of column selectors. ProfileColumns can be used to select columns from the dataset. When \n ProfileColumns is undefined, the profile job will profile all supported columns.\n

" + } + }, + "ColumnStatisticsConfigurations": { + "target": "com.amazonaws.databrew#ColumnStatisticsConfigurationList", + "traits": { + "smithy.api#documentation": "

List of configurations for column evaluations. ColumnStatisticsConfigurations are used to \n select evaluations and override parameters of evaluations for particular columns. When \n ColumnStatisticsConfigurations is undefined, the profile job will profile all supported columns \n and run all supported evaluations.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration for profile jobs. Configuration can be used to select columns, do evaluations, and override default \n parameters of evaluations. When configuration is undefined, the profile job will apply default settings to all \n supported columns.\n

" + } + }, "com.amazonaws.databrew#Project": { "type": "structure", "members": { @@ -4417,7 +4604,7 @@ } }, "traits": { - "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the S3 output generated by \n recipe jobs.

" + "smithy.api#documentation": "

Represents options that specify how and where DataBrew writes the Amazon S3 output generated by \n recipe jobs.

" } }, "com.amazonaws.databrew#Sample": { @@ -4916,6 +5103,80 @@ "com.amazonaws.databrew#StartedBy": { "type": "string" }, + "com.amazonaws.databrew#Statistic": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[A-Z\\_]+$" + } + }, + "com.amazonaws.databrew#StatisticList": { + "type": "list", + "member": { + "target": "com.amazonaws.databrew#Statistic" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.databrew#StatisticOverride": { + "type": "structure", + "members": { + "Statistic": { + "target": "com.amazonaws.databrew#Statistic", + "traits": { + "smithy.api#documentation": "

The name of an evaluation

", + "smithy.api#required": {} + } + }, + "Parameters": { + "target": "com.amazonaws.databrew#ParameterMap", + "traits": { + "smithy.api#documentation": "

A map that includes overrides of an evaluation’s parameters.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Override of a particular evaluation for a profile job.

" + } + }, + "com.amazonaws.databrew#StatisticOverrideList": { + "type": "list", + "member": { + "target": "com.amazonaws.databrew#StatisticOverride" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.databrew#StatisticsConfiguration": { + "type": "structure", + "members": { + "IncludedStatistics": { + "target": "com.amazonaws.databrew#StatisticList", + "traits": { + "smithy.api#documentation": "

List of included evaluations. When the list is undefined, all supported \n evaluations will be included.

" + } + }, + "Overrides": { + "target": "com.amazonaws.databrew#StatisticOverrideList", + "traits": { + "smithy.api#documentation": "

List of overrides for evaluations.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration of evaluations for a profile job. This configuration can be used to select \n evaluations and override the parameters of selected evaluations.\n

" + } + }, "com.amazonaws.databrew#StepIndex": { "type": "integer", "traits": { @@ -5274,6 +5535,12 @@ "com.amazonaws.databrew#UpdateProfileJobRequest": { "type": "structure", "members": { + "Configuration": { + "target": "com.amazonaws.databrew#ProfileConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration for profile jobs. Used to select columns, do evaluations, \n and override default parameters of evaluations. When configuration is null, the\n profile job will run with default settings.

" + } + }, "EncryptionKeyArn": { "target": "com.amazonaws.databrew#EncryptionKeyArn", "traits": { @@ -5520,7 +5787,13 @@ "DataCatalogOutputs": { "target": "com.amazonaws.databrew#DataCatalogOutputList", "traits": { - "smithy.api#documentation": "

One or more artifacts that represent the AWS Glue Data Catalog output from running the job.

" + "smithy.api#documentation": "

One or more artifacts that represent the Glue Data Catalog output from running the job.

" + } + }, + "DatabaseOutputs": { + "target": "com.amazonaws.databrew#DatabaseOutputList", + "traits": { + "smithy.api#documentation": "

Represents a list of JDBC database output objects which defines the output destination for a \n DataBrew recipe job to write into.

" } }, "RoleArn": { diff --git a/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json b/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json index 3113429d355..4ed757427c3 100644 --- a/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json +++ b/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json @@ -707,11 +707,14 @@ "awsDeviceV2": { "target": "com.amazonaws.directconnect#AwsDeviceV2", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint on which the BGP peer terminates.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates the BGP peer.

" } }, "awsLogicalDeviceId": { - "target": "com.amazonaws.directconnect#AwsLogicalDeviceId" + "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", + "traits": { + "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" + } } }, "traits": { @@ -1069,13 +1072,13 @@ "awsDeviceV2": { "target": "com.amazonaws.directconnect#AwsDeviceV2", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint on which the physical connection terminates.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates the physical connection.

" } }, "awsLogicalDeviceId": { "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates a physical connection's BGP sessions.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" } }, "hasLogicalRedundancy": { @@ -3461,13 +3464,13 @@ "awsDeviceV2": { "target": "com.amazonaws.directconnect#AwsDeviceV2", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint on which the physical connection terminates.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates the physical connection.

" } }, "awsLogicalDeviceId": { "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates a physical connection's BGP sessions.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" } }, "hasLogicalRedundancy": { @@ -3629,7 +3632,7 @@ "awsLogicalDeviceId": { "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates a physical connection's BGP sessions.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" } }, "connections": { @@ -5382,13 +5385,13 @@ "awsDeviceV2": { "target": "com.amazonaws.directconnect#AwsDeviceV2", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint on which the virtual interface terminates.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates the physical connection.

" } }, "awsLogicalDeviceId": { "target": "com.amazonaws.directconnect#AwsLogicalDeviceId", "traits": { - "smithy.api#documentation": "

The Direct Connect endpoint that terminates a physical connection's BGP sessions.

" + "smithy.api#documentation": "

The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.

" } }, "tags": { diff --git a/codegen/sdk-codegen/aws-models/ec2.2016-11-15.json b/codegen/sdk-codegen/aws-models/ec2.2016-11-15.json index ab74b23878b..2b7ddf961d6 100644 --- a/codegen/sdk-codegen/aws-models/ec2.2016-11-15.json +++ b/codegen/sdk-codegen/aws-models/ec2.2016-11-15.json @@ -564,7 +564,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "NetworkInterfaceOwnerId", - "smithy.api#documentation": "

The ID of the account that owns the network interface.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the network interface.

", "smithy.api#xmlName": "networkInterfaceOwnerId" } }, @@ -774,7 +774,7 @@ "target": "com.amazonaws.ec2#AllocateAddressResult" }, "traits": { - "smithy.api#documentation": "

Allocates an Elastic IP address to your account. After you allocate the Elastic IP address you can associate \n it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address \n pool and can be allocated to a different account.

\n

You can allocate an Elastic IP address from an address pool owned by Amazon Web Services or from an address pool created \n from a public IPv4 address range that you have brought to Amazon Web Services for use with your Amazon Web Services resources using bring your own \n IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

\n

[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an \n Elastic IP address that you released after it is allocated to another account. You cannot recover an Elastic IP\n address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.

\n

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate\n 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic IP addresses for EC2-VPC per Region.

\n

For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

\n

You can allocate a carrier IP address which is a public IP address from a telecommunication carrier, to a network interface which resides in a subnet in a Wavelength Zone (for example an EC2 instance).

" + "smithy.api#documentation": "

Allocates an Elastic IP address to your Amazon Web Services account. After you allocate the Elastic IP address you can associate \n it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address \n pool and can be allocated to a different Amazon Web Services account.

\n

You can allocate an Elastic IP address from an address pool owned by Amazon Web Services or from an address pool created \n from a public IPv4 address range that you have brought to Amazon Web Services for use with your Amazon Web Services resources using bring your own \n IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

\n

[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an \n Elastic IP address that you released after it is allocated to another Amazon Web Services account. You cannot recover an Elastic IP\n address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.

\n

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate\n 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic IP addresses for EC2-VPC per Region.

\n

For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

\n

You can allocate a carrier IP address which is a public IP address from a telecommunication carrier, to a network interface which resides in a subnet in a Wavelength Zone (for example an EC2 instance).

" } }, "com.amazonaws.ec2#AllocateAddressRequest": { @@ -1201,6 +1201,9 @@ { "target": "com.amazonaws.ec2#AssociateIamInstanceProfile" }, + { + "target": "com.amazonaws.ec2#AssociateInstanceEventWindow" + }, { "target": "com.amazonaws.ec2#AssociateRouteTable" }, @@ -1321,6 +1324,9 @@ { "target": "com.amazonaws.ec2#CreateImage" }, + { + "target": "com.amazonaws.ec2#CreateInstanceEventWindow" + }, { "target": "com.amazonaws.ec2#CreateInstanceExportTask" }, @@ -1399,6 +1405,9 @@ { "target": "com.amazonaws.ec2#CreateSubnet" }, + { + "target": "com.amazonaws.ec2#CreateSubnetCidrReservation" + }, { "target": "com.amazonaws.ec2#CreateTags" }, @@ -1495,6 +1504,9 @@ { "target": "com.amazonaws.ec2#DeleteFpgaImage" }, + { + "target": "com.amazonaws.ec2#DeleteInstanceEventWindow" + }, { "target": "com.amazonaws.ec2#DeleteInternetGateway" }, @@ -1561,6 +1573,9 @@ { "target": "com.amazonaws.ec2#DeleteSubnet" }, + { + "target": "com.amazonaws.ec2#DeleteSubnetCidrReservation" + }, { "target": "com.amazonaws.ec2#DeleteTags" }, @@ -1774,6 +1789,9 @@ { "target": "com.amazonaws.ec2#DescribeInstanceEventNotificationAttributes" }, + { + "target": "com.amazonaws.ec2#DescribeInstanceEventWindows" + }, { "target": "com.amazonaws.ec2#DescribeInstances" }, @@ -2068,6 +2086,9 @@ { "target": "com.amazonaws.ec2#DisassociateIamInstanceProfile" }, + { + "target": "com.amazonaws.ec2#DisassociateInstanceEventWindow" + }, { "target": "com.amazonaws.ec2#DisassociateRouteTable" }, @@ -2179,6 +2200,9 @@ { "target": "com.amazonaws.ec2#GetSerialConsoleAccessStatus" }, + { + "target": "com.amazonaws.ec2#GetSubnetCidrReservations" + }, { "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagations" }, @@ -2260,6 +2284,9 @@ { "target": "com.amazonaws.ec2#ModifyInstanceEventStartTime" }, + { + "target": "com.amazonaws.ec2#ModifyInstanceEventWindow" + }, { "target": "com.amazonaws.ec2#ModifyInstanceMetadataOptions" }, @@ -2754,7 +2781,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "DestinationPrefixListId", - "smithy.api#documentation": "

The prefix of the AWS service.

", + "smithy.api#documentation": "

The prefix of the Amazon Web Service.

", "smithy.api#xmlName": "destinationPrefixListId" } }, @@ -3040,7 +3067,7 @@ "target": "com.amazonaws.ec2#AssignIpv6AddressesResult" }, "traits": { - "smithy.api#documentation": "

Assigns one or more IPv6 addresses to the specified network interface. You can\n specify one or more specific IPv6 addresses, or you can specify the number of IPv6\n addresses to be automatically assigned from within the subnet's IPv6 CIDR block range.\n You can assign as many IPv6 addresses to a network interface as you can assign private\n IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type\n in the Amazon Elastic Compute Cloud User Guide.

\n

You must specify either the IPv6 addresses or the IPv6 address count in the request.

" + "smithy.api#documentation": "

Assigns one or more IPv6 addresses to the specified network interface. You can\n specify one or more specific IPv6 addresses, or you can specify the number of IPv6\n addresses to be automatically assigned from within the subnet's IPv6 CIDR block range.\n You can assign as many IPv6 addresses to a network interface as you can assign private\n IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type\n in the Amazon Elastic Compute Cloud User Guide.

\n

You must specify either the IPv6 addresses or the IPv6 address count in the request.

\n

You can optionally use Prefix Delegation on the network interface. You must specify\n either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For\n information, see Prefix Delegation in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#AssignIpv6AddressesRequest": { @@ -3062,6 +3089,19 @@ "smithy.api#xmlName": "ipv6Addresses" } }, + "Ipv6PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "

The number of IPv6 Prefix Delegation prefixes that AWS automatically assigns to the\n network interface. You cannot use this option if you use the Ipv6Prefixes\n option.

" + } + }, + "Ipv6Prefixes": { + "target": "com.amazonaws.ec2#IpPrefixList", + "traits": { + "smithy.api#documentation": "

One or more IPv6 Prefix Delegation prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

", + "smithy.api#xmlName": "Ipv6Prefix" + } + }, "NetworkInterfaceId": { "target": "com.amazonaws.ec2#NetworkInterfaceId", "traits": { @@ -3084,6 +3124,14 @@ "smithy.api#xmlName": "assignedIpv6Addresses" } }, + "AssignedIpv6Prefixes": { + "target": "com.amazonaws.ec2#IpPrefixList", + "traits": { + "aws.protocols#ec2QueryName": "AssignedIpv6PrefixSet", + "smithy.api#documentation": "

The IPv6 Prefix Delegation prefixes\n that are\n assigned to the network interface.

", + "smithy.api#xmlName": "assignedIpv6PrefixSet" + } + }, "NetworkInterfaceId": { "target": "com.amazonaws.ec2#String", "traits": { @@ -3103,7 +3151,7 @@ "target": "com.amazonaws.ec2#AssignPrivateIpAddressesResult" }, "traits": { - "smithy.api#documentation": "

Assigns one or more secondary private IP addresses to the specified network interface.

\n

You can specify one or more specific secondary IP addresses, or you can specify the number \n of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. \n The number of secondary IP addresses that you can assign to an instance varies by instance type.\n For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about \n Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

\n

When you move a secondary private IP address to another network interface, any Elastic IP address \n that is associated with the IP address is also moved.

\n

Remapping an IP address is an asynchronous operation. When you move an IP address from one network\n interface to another, check network/interfaces/macs/mac/local-ipv4s in the instance\n metadata to confirm that the remapping is complete.

\n

You must specify either the IP addresses or the IP address count in the request.

" + "smithy.api#documentation": "

Assigns one or more secondary private IP addresses to the specified network interface.

\n

You can specify one or more specific secondary IP addresses, or you can specify the number \n of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. \n The number of secondary IP addresses that you can assign to an instance varies by instance type.\n For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about \n Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

\n

When you move a secondary private IP address to another network interface, any Elastic IP address \n that is associated with the IP address is also moved.

\n

Remapping an IP address is an asynchronous operation. When you move an IP address from one network\n interface to another, check network/interfaces/macs/mac/local-ipv4s in the instance\n metadata to confirm that the remapping is complete.

\n

You must specify either the IP addresses or the IP address count in the request.

\n

You can optionally use Prefix Delegation on the network interface. You must specify\n either the IPv4 Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For\n information, see Prefix Delegation in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#AssignPrivateIpAddressesRequest": { @@ -3141,6 +3189,19 @@ "smithy.api#documentation": "

The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.

", "smithy.api#xmlName": "secondaryPrivateIpAddressCount" } + }, + "Ipv4Prefixes": { + "target": "com.amazonaws.ec2#IpPrefixList", + "traits": { + "smithy.api#documentation": "

One or more IPv4 Prefix Delegation prefixes assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

", + "smithy.api#xmlName": "Ipv4Prefix" + } + }, + "Ipv4PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "

The number of IPv4 Prefix Delegation prefixes that AWS automatically assigns to the network interface. You cannot use this option if you use the Ipv4 Prefixes option.

" + } } }, "traits": { @@ -3165,6 +3226,14 @@ "smithy.api#documentation": "

The private IP addresses assigned to the network interface.

", "smithy.api#xmlName": "assignedPrivateIpAddressesSet" } + }, + "AssignedIpv4Prefixes": { + "target": "com.amazonaws.ec2#Ipv4PrefixesList", + "traits": { + "aws.protocols#ec2QueryName": "AssignedIpv4PrefixSet", + "smithy.api#documentation": "

The IPv4 Prefix Delegation prefixes\n that are\n assigned to the network interface.

", + "smithy.api#xmlName": "assignedIpv4PrefixSet" + } } } }, @@ -3344,7 +3413,7 @@ "target": "com.amazonaws.ec2#AssociateDhcpOptionsRequest" }, "traits": { - "smithy.api#documentation": "

Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

\n

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

\n

For more information, see DHCP Options Sets\n in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

\n

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

\n

For more information, see DHCP options sets\n in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#AssociateDhcpOptionsRequest": { @@ -3482,6 +3551,56 @@ } } }, + "com.amazonaws.ec2#AssociateInstanceEventWindow": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#AssociateInstanceEventWindowRequest" + }, + "output": { + "target": "com.amazonaws.ec2#AssociateInstanceEventWindowResult" + }, + "traits": { + "smithy.api#documentation": "

Associates one or more targets with an event window. Only one type of target (instance IDs,\n Dedicated Host IDs, or tags) can be specified with an event window.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" + } + }, + "com.amazonaws.ec2#AssociateInstanceEventWindowRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + }, + "InstanceEventWindowId": { + "target": "com.amazonaws.ec2#InstanceEventWindowId", + "traits": { + "smithy.api#documentation": "

The ID of the event window.

", + "smithy.api#required": {} + } + }, + "AssociationTarget": { + "target": "com.amazonaws.ec2#InstanceEventWindowAssociationRequest", + "traits": { + "smithy.api#documentation": "

One or more targets associated with the specified event window.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#AssociateInstanceEventWindowResult": { + "type": "structure", + "members": { + "InstanceEventWindow": { + "target": "com.amazonaws.ec2#InstanceEventWindow", + "traits": { + "aws.protocols#ec2QueryName": "InstanceEventWindow", + "smithy.api#documentation": "

Information about the event window.

", + "smithy.api#xmlName": "instanceEventWindow" + } + } + } + }, "com.amazonaws.ec2#AssociateRouteTable": { "type": "operation", "input": { @@ -3491,7 +3610,7 @@ "target": "com.amazonaws.ec2#AssociateRouteTableResult" }, "traits": { - "smithy.api#documentation": "

Associates a subnet in your VPC or an internet gateway or virtual private gateway\n attached to your VPC with a route table in your VPC. This association causes traffic\n from the subnet or gateway to be routed according to the routes in the route table. The\n action returns an association ID, which you need in order to disassociate the route\n table later. A route table can be associated with multiple subnets.

\n

For more information, see Route Tables in the\n Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Associates a subnet in your VPC or an internet gateway or virtual private gateway\n attached to your VPC with a route table in your VPC. This association causes traffic\n from the subnet or gateway to be routed according to the routes in the route table. The\n action returns an association ID, which you need in order to disassociate the route\n table later. A route table can be associated with multiple subnets.

\n

For more information, see Route tables in the\n Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#AssociateRouteTableRequest": { @@ -3797,7 +3916,7 @@ "target": "com.amazonaws.ec2#AssociateVpcCidrBlockResult" }, "traits": { - "smithy.api#documentation": "

Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block,\n an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that\n you provisioned through bring your own IP addresses (BYOIP). The IPv6 CIDR block size is fixed\n at /56.

\n

You must specify one of the following in the request: an IPv4 CIDR block, an IPv6\n pool, or an Amazon-provided IPv6 CIDR block.

\n

For more information about associating CIDR blocks with your VPC and applicable\n restrictions, see VPC and Subnet Sizing in the\n Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block,\n an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that\n you provisioned through bring your own IP addresses (BYOIP). The IPv6 CIDR block size is fixed\n at /56.

\n

You must specify one of the following in the request: an IPv4 CIDR block, an IPv6\n pool, or an Amazon-provided IPv6 CIDR block.

\n

For more information about associating CIDR blocks with your VPC and applicable\n restrictions, see VPC and subnet sizing in the\n Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#AssociateVpcCidrBlockRequest": { @@ -4275,7 +4394,7 @@ "target": "com.amazonaws.ec2#VolumeAttachment" }, "traits": { - "smithy.api#documentation": "

Attaches an EBS volume to a running or stopped instance and exposes it to the instance\n with the specified device name.

\n

Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For\n more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

\n

After you attach an EBS volume, you must make it available. For more information, see \n Making an EBS volume available for use.

\n

If a volume has an AWS Marketplace product code:

\n \n

For more information, see Attaching Amazon EBS volumes in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Attaches an EBS volume to a running or stopped instance and exposes it to the instance\n with the specified device name.

\n

Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For\n more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

\n

After you attach an EBS volume, you must make it available. For more information, see \n Make an EBS volume available for use.

\n

If a volume has an Amazon Web Services Marketplace product code:

\n \n

For more information, see Attach an Amazon EBS volume to an instance in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#AttachVolumeRequest": { @@ -6140,7 +6259,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the account that owns the Capacity Reservation.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the Capacity Reservation.

", "smithy.api#xmlName": "ownerId" } }, @@ -6188,7 +6307,7 @@ "target": "com.amazonaws.ec2#CapacityReservationTenancy", "traits": { "aws.protocols#ec2QueryName": "Tenancy", - "smithy.api#documentation": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

\n\t\t ", + "smithy.api#documentation": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

\n\t\t ", "smithy.api#xmlName": "tenancy" } }, @@ -6308,7 +6427,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the account that owns the resource group.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the resource group.

", "smithy.api#xmlName": "ownerId" } } @@ -6604,7 +6723,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The AWS account ID of the owner of the carrier gateway.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the carrier gateway.

", "smithy.api#xmlName": "ownerId" } }, @@ -6720,7 +6839,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides authorization for Amazon to bring a specific IP address range to a specific\n account using bring your own IP addresses (BYOIP). For more information, see Configuring your BYOIP address range in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Provides authorization for Amazon to bring a specific IP address range to a specific\n Amazon Web Services account using bring your own IP addresses (BYOIP). For more information, see Configuring your BYOIP address range in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CidrBlock": { @@ -7911,7 +8030,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The account ID of the instance owner. This is only present if the product code is\n attached to the instance.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the instance owner. This is only present if the product code is\n attached to the instance.

", "smithy.api#xmlName": "ownerId" } }, @@ -8389,7 +8508,7 @@ "target": "com.amazonaws.ec2#CopySnapshotResult" }, "traits": { - "smithy.api#documentation": "

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a\n snapshot within the same Region, from one Region to another, or from a Region to an Outpost. \n You can't copy a snapshot from an Outpost to a Region, from one Outpost to another, or within \n the same Outpost.

\n

You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).

\n \n \t\n

When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. \n \tCopies of unencrypted snapshots remain unencrypted, unless you enable encryption for the \n \tsnapshot copy operation. By default, encrypted snapshot copies use the default AWS Key Management Service (AWS KMS) \n \tcustomer master key (CMK); however, you can specify a different CMK. To copy an encrypted \n \tsnapshot that has been shared from another account, you must have permissions for the CMK \n \tused to encrypt the snapshot.

\n \t\n \t

Snapshots copied to an Outpost are encrypted by default using the default\n \t\tencryption key for the Region, or a different key that you specify in the request using \n \t\tKmsKeyId. Outposts do not support unencrypted \n \t\tsnapshots. For more information, \n \t\t\tAmazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.

\n

Snapshots created by copying another snapshot have an arbitrary volume ID that should not\n be used for any purpose.

\n

For more information, see Copying an Amazon EBS snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a\n snapshot within the same Region, from one Region to another, or from a Region to an Outpost. \n You can't copy a snapshot from an Outpost to a Region, from one Outpost to another, or within \n the same Outpost.

\n

You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).

\n \n \t\n

When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. \n \tCopies of unencrypted snapshots remain unencrypted, unless you enable encryption for the \n \tsnapshot copy operation. By default, encrypted snapshot copies use the default Key Management Service (KMS) \n \tKMS key; however, you can specify a different KMS key. To copy an encrypted \n \tsnapshot that has been shared from another account, you must have permissions for the KMS key \n \tused to encrypt the snapshot.

\n \t\n \t

Snapshots copied to an Outpost are encrypted by default using the default\n \t\tencryption key for the Region, or a different key that you specify in the request using \n \t\tKmsKeyId. Outposts do not support unencrypted \n \t\tsnapshots. For more information, \n \t\t\tAmazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.

\n

Snapshots created by copying another snapshot have an arbitrary volume ID that should not\n be used for any purpose.

\n

For more information, see Copy an Amazon EBS snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CopySnapshotRequest": { @@ -8404,14 +8523,14 @@ "DestinationOutpostArn": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot. Only \n\t\tspecify this parameter when copying a snapshot from an AWS Region to an Outpost. \n\t\tThe snapshot must be in the Region for the destination Outpost. You cannot copy a \n\t\tsnapshot from an Outpost to a Region, from one Outpost to another, or within the same \n\t\tOutpost.

\n \t

For more information, see \n \t\tCopying snapshots from an AWS Region to an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot. Only \n\t\tspecify this parameter when copying a snapshot from an Amazon Web Services Region to an Outpost. \n\t\tThe snapshot must be in the Region for the destination Outpost. You cannot copy a \n\t\tsnapshot from an Outpost to a Region, from one Outpost to another, or within the same \n\t\tOutpost.

\n \t

For more information, see \n \t\tCopy snapshots from an Amazon Web Services Region to an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" } }, "DestinationRegion": { "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "DestinationRegion", - "smithy.api#documentation": "

The destination Region to use in the PresignedUrl parameter of a snapshot\n copy operation. This parameter is only valid for specifying the destination Region in a\n PresignedUrl parameter, where it is required.

\n \n

The snapshot copy is sent to the regional endpoint that you sent the HTTP\n request to (for example, ec2.us-east-1.amazonaws.com). With the AWS CLI, this is\n specified using the --region parameter or the default Region in your AWS\n configuration file.

", + "smithy.api#documentation": "

The destination Region to use in the PresignedUrl parameter of a snapshot\n copy operation. This parameter is only valid for specifying the destination Region in a\n PresignedUrl parameter, where it is required.

\n \n

The snapshot copy is sent to the regional endpoint that you sent the HTTP\n \trequest to (for example, ec2.us-east-1.amazonaws.com). With the CLI, this is\n specified using the --region parameter or the default Region in your Amazon Web Services\n configuration file.

", "smithy.api#xmlName": "destinationRegion" } }, @@ -8427,7 +8546,7 @@ "target": "com.amazonaws.ec2#KmsKeyId", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.\n If this parameter is not specified, your AWS managed CMK for EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the CMK using any of the following:

\n \n

AWS authenticates the CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

", + "smithy.api#documentation": "

The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS encryption.\n If this parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the KMS key using any of the following:

\n \n

Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

", "smithy.api#xmlName": "kmsKeyId" } }, @@ -8435,7 +8554,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "PresignedUrl", - "smithy.api#documentation": "

When you copy an encrypted source snapshot using the Amazon EC2 Query API, you must supply a\n pre-signed URL. This parameter is optional for unencrypted snapshots. For more information,\n see Query\n requests.

\n

The PresignedUrl should use the snapshot source endpoint, the\n CopySnapshot action, and include the SourceRegion,\n SourceSnapshotId, and DestinationRegion parameters. The\n PresignedUrl must be signed using AWS Signature Version 4. Because EBS\n snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic\n that is described in Authenticating Requests: Using Query\n Parameters (AWS Signature Version 4) in the Amazon Simple Storage Service API Reference. An\n invalid or improperly signed PresignedUrl will cause the copy operation to fail\n asynchronously, and the snapshot will move to an error state.

", + "smithy.api#documentation": "

When you copy an encrypted source snapshot using the Amazon EC2 Query API, you must supply a\n pre-signed URL. This parameter is optional for unencrypted snapshots. For more information,\n see Query\n requests.

\n

The PresignedUrl should use the snapshot source endpoint, the\n CopySnapshot action, and include the SourceRegion,\n SourceSnapshotId, and DestinationRegion parameters. The\n PresignedUrl must be signed using Amazon Web Services Signature Version 4. Because EBS\n snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic\n that is described in Authenticating Requests: Using Query\n Parameters (Amazon Web Services Signature Version 4) in the Amazon Simple Storage Service API Reference. An\n invalid or improperly signed PresignedUrl will cause the copy operation to fail\n asynchronously, and the snapshot will move to an error state.

", "smithy.api#xmlName": "presignedUrl" } }, @@ -8611,7 +8730,7 @@ "Tenancy": { "target": "com.amazonaws.ec2#CapacityReservationTenancy", "traits": { - "smithy.api#documentation": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

\n\t\t " + "smithy.api#documentation": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

\n\t\t " } }, "InstanceCount": { @@ -8693,7 +8812,7 @@ "target": "com.amazonaws.ec2#CreateCarrierGatewayResult" }, "traits": { - "smithy.api#documentation": "

Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the AWS Wavelength Developer\n Guide.

" + "smithy.api#documentation": "

Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the Amazon Web Services Wavelength Developer Guide.

" } }, "com.amazonaws.ec2#CreateCarrierGatewayRequest": { @@ -8722,7 +8841,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. For more information, see How to Ensure\n Idempotency.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. For more information, see How to ensure\n idempotency.

", "smithy.api#idempotencyToken": {} } } @@ -9054,7 +9173,7 @@ "target": "com.amazonaws.ec2#CreateDefaultSubnetResult" }, "traits": { - "smithy.api#documentation": "

Creates a default subnet with a size /20 IPv4 CIDR block in the\n specified Availability Zone in your default VPC. You can have only one default subnet\n per Availability Zone. For more information, see Creating a Default\n Subnet in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a default subnet with a size /20 IPv4 CIDR block in the\n specified Availability Zone in your default VPC. You can have only one default subnet\n per Availability Zone. For more information, see Creating a default\n subnet in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateDefaultSubnetRequest": { @@ -9097,7 +9216,7 @@ "target": "com.amazonaws.ec2#CreateDefaultVpcResult" }, "traits": { - "smithy.api#documentation": "

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet\n\t\t\tin each Availability Zone. For more information about the components of a default VPC,\n\t\t\tsee Default VPC and\n\t\t\tDefault Subnets in the Amazon Virtual Private Cloud User Guide. You cannot\n\t\t\tspecify the components of the default VPC yourself.

\n\t\t

If you deleted your previous default VPC, you can create a default VPC. You cannot have\n\t\t\tmore than one default VPC per Region.

\n\t\t

If your account supports EC2-Classic, you cannot use this action to create a default VPC\n\t\t\tin a Region that supports EC2-Classic. If you want a default VPC in a Region that\n\t\t\tsupports EC2-Classic, see \"I really want a default VPC for my existing EC2 account. Is\n\t\t\tthat possible?\" in the Default VPCs\n\t\t\tFAQ.

" + "smithy.api#documentation": "

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet\n\t\t\tin each Availability Zone. For more information about the components of a default VPC,\n\t\t\tsee Default VPC and\n\t\t\tdefault subnets in the Amazon Virtual Private Cloud User Guide. You cannot\n\t\t\tspecify the components of the default VPC yourself.

\n\t\t

If you deleted your previous default VPC, you can create a default VPC. You cannot have\n\t\t\tmore than one default VPC per Region.

\n\t\t

If your account supports EC2-Classic, you cannot use this action to create a default VPC\n\t\t\tin a Region that supports EC2-Classic. If you want a default VPC in a Region that\n\t\t\tsupports EC2-Classic, see \"I really want a default VPC for my existing EC2 account. Is\n\t\t\tthat possible?\" in the Default VPCs\n\t\t\tFAQ.

" } }, "com.amazonaws.ec2#CreateDefaultVpcRequest": { @@ -9133,7 +9252,7 @@ "target": "com.amazonaws.ec2#CreateDhcpOptionsResult" }, "traits": { - "smithy.api#documentation": "

Creates a set of DHCP options for your VPC. After creating the set, you must\n\t\t\t\tassociate it with the VPC, causing all existing and new instances that you launch in\n\t\t\t\tthe VPC to use this set of DHCP options. The following are the individual DHCP\n\t\t\t\toptions you can specify. For more information about the options, see RFC 2132.

\n \n\n

Your VPC automatically starts out with a set of DHCP options that includes only a DNS\n\t\t\tserver that we provide (AmazonProvidedDNS). If you create a set of options, and if your\n\t\t\tVPC has an internet gateway, make sure to set the domain-name-servers\n\t\t\toption either to AmazonProvidedDNS or to a domain name server of your\n\t\t\tchoice. For more information, see DHCP Options Sets in the\n\t\t\tAmazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a set of DHCP options for your VPC. After creating the set, you must\n\t\t\t\tassociate it with the VPC, causing all existing and new instances that you launch in\n\t\t\t\tthe VPC to use this set of DHCP options. The following are the individual DHCP\n\t\t\t\toptions you can specify. For more information about the options, see RFC 2132.

\n \n\n

Your VPC automatically starts out with a set of DHCP options that includes only a DNS\n\t\t\tserver that we provide (AmazonProvidedDNS). If you create a set of options, and if your\n\t\t\tVPC has an internet gateway, make sure to set the domain-name-servers\n\t\t\toption either to AmazonProvidedDNS or to a domain name server of your\n\t\t\tchoice. For more information, see DHCP options sets in the\n\t\t\tAmazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateDhcpOptionsRequest": { @@ -9196,7 +9315,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n\t\t\trequest. For more information, see How to Ensure\n\t\t\t\tIdempotency.

" + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n\t\t\trequest. For more information, see How to ensure\n\t\t\t\tidempotency.

" } }, "DryRun": { @@ -9490,7 +9609,7 @@ "target": "com.amazonaws.ec2#CreateFlowLogsResult" }, "traits": { - "smithy.api#documentation": "

Creates one or more flow logs to capture information about IP traffic for a specific network interface,\n subnet, or VPC.

\n \n

Flow log data for a monitored network interface is recorded as flow log records, which are log events \n consisting of fields that describe the traffic flow. For more information, see \n Flow Log Records \n in the Amazon Virtual Private Cloud User Guide.

\n \n

When publishing to CloudWatch Logs, flow log records are published to a log group, and each network \n interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all \n of the monitored network interfaces are published to a single log file object that is stored in the specified \n bucket.

\n \n

For more information, see VPC Flow Logs in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates one or more flow logs to capture information about IP traffic for a specific network interface,\n subnet, or VPC.

\n \n

Flow log data for a monitored network interface is recorded as flow log records, which are log events \n consisting of fields that describe the traffic flow. For more information, see \n Flow log records \n in the Amazon Virtual Private Cloud User Guide.

\n \n

When publishing to CloudWatch Logs, flow log records are published to a log group, and each network \n interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all \n of the monitored network interfaces are published to a single log file object that is stored in the specified \n bucket.

\n \n

For more information, see VPC Flow Logs in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateFlowLogsRequest": { @@ -9505,7 +9624,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. For more information, see How to Ensure\n Idempotency.

" + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. For more information, see How to ensure\n idempotency.

" } }, "DeliverLogsPermissionArn": { @@ -9557,7 +9676,7 @@ "LogFormat": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The fields to include in the flow log record, in the order in which they should\n appear. For a list of available fields, see Flow Log Records. If you\n omit this parameter, the flow log is created using the default format. If you specify this parameter, you must specify at least one field.

\n

Specify the fields using the ${field-id} format, separated by spaces. For\n the AWS CLI, use single quotation marks (' ') to surround the parameter value.

" + "smithy.api#documentation": "

The fields to include in the flow log record, in the order in which they should\n appear. For a list of available fields, see Flow log records. If you\n omit this parameter, the flow log is created using the default format. If you specify this parameter, \n you must specify at least one field.

\n

Specify the fields using the ${field-id} format, separated by spaces. For\n the CLI, use single quotation marks (' ') to surround the parameter value.

" } }, "TagSpecifications": { @@ -9773,6 +9892,68 @@ } } }, + "com.amazonaws.ec2#CreateInstanceEventWindow": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#CreateInstanceEventWindowRequest" + }, + "output": { + "target": "com.amazonaws.ec2#CreateInstanceEventWindowResult" + }, + "traits": { + "smithy.api#documentation": "

Creates an event window in which scheduled events for the associated Amazon EC2 instances can\n run.

\n

You can define either a set of time ranges or a cron expression when creating the event\n window, but not both. All event window times are in UTC.

\n

You can create up to 200 event windows per Amazon Web Services Region.

\n

When you create the event window, targets (instance IDs, Dedicated Host IDs, or tags)\n are not yet associated with it. To ensure that the event window can be used, you must\n associate one or more targets with it by using the AssociateInstanceEventWindow API.

\n \n \n

Event windows are applicable only for scheduled events that stop, reboot, or\n terminate instances.

\n

Event windows are not applicable for:

\n \n
\n \n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" + } + }, + "com.amazonaws.ec2#CreateInstanceEventWindowRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + }, + "Name": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The name of the event window.

" + } + }, + "TimeRanges": { + "target": "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequestSet", + "traits": { + "smithy.api#documentation": "

The time range for the event window. If you specify a time range, you can't specify a cron\n expression.

", + "smithy.api#xmlName": "TimeRange" + } + }, + "CronExpression": { + "target": "com.amazonaws.ec2#InstanceEventWindowCronExpression", + "traits": { + "smithy.api#documentation": "

The cron expression for the event window, for example, * 0-4,20-23 * * 1,5. If\n you specify a cron expression, you can't specify a time range.

\n

Constraints:

\n \n

For more information about cron expressions, see cron on the Wikipedia\n website.

" + } + }, + "TagSpecifications": { + "target": "com.amazonaws.ec2#TagSpecificationList", + "traits": { + "smithy.api#documentation": "

The tags to apply to the event window.

", + "smithy.api#xmlName": "TagSpecification" + } + } + } + }, + "com.amazonaws.ec2#CreateInstanceEventWindowResult": { + "type": "structure", + "members": { + "InstanceEventWindow": { + "target": "com.amazonaws.ec2#InstanceEventWindow", + "traits": { + "aws.protocols#ec2QueryName": "InstanceEventWindow", + "smithy.api#documentation": "

Information about the event window.

", + "smithy.api#xmlName": "instanceEventWindow" + } + } + } + }, "com.amazonaws.ec2#CreateInstanceExportTask": { "type": "operation", "input": { @@ -10288,7 +10469,7 @@ "target": "com.amazonaws.ec2#CreateNatGatewayResult" }, "traits": { - "smithy.api#documentation": "

Creates a NAT gateway in the specified subnet. This action creates a network interface\n in the specified subnet with a private IP address from the IP address range of the\n subnet. You can create either a public NAT gateway or a private NAT gateway.

\n

With a public NAT gateway, internet-bound traffic from a private subnet can be routed\n to the NAT gateway, so that instances in a private subnet can connect to the internet.

\n

With a private NAT gateway, private communication is routed across VPCs and on-premises\n networks through a transit gateway or virtual private gateway. Common use cases include\n running large workloads behind a small pool of allowlisted IPv4 addresses, preserving\n private IPv4 addresses, and communicating between overlapping networks.

\n

For more information, see NAT Gateways in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a NAT gateway in the specified subnet. This action creates a network interface\n in the specified subnet with a private IP address from the IP address range of the\n subnet. You can create either a public NAT gateway or a private NAT gateway.

\n

With a public NAT gateway, internet-bound traffic from a private subnet can be routed\n to the NAT gateway, so that instances in a private subnet can connect to the internet.

\n

With a private NAT gateway, private communication is routed across VPCs and on-premises\n networks through a transit gateway or virtual private gateway. Common use cases include\n running large workloads behind a small pool of allowlisted IPv4 addresses, preserving\n private IPv4 addresses, and communicating between overlapping networks.

\n

For more information, see NAT gateways in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateNatGatewayRequest": { @@ -10303,7 +10484,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n\t\t\trequest. For more information, see How to Ensure\n\t\t\t\tIdempotency.

\n

Constraint: Maximum 64 ASCII characters.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n\t\t\trequest. For more information, see How to ensure\n\t\t\t\tidempotency.

\n

Constraint: Maximum 64 ASCII characters.

", "smithy.api#idempotencyToken": {} } }, @@ -10526,26 +10707,26 @@ "SourceIp": { "target": "com.amazonaws.ec2#IpAddress", "traits": { - "smithy.api#documentation": "

The IP address of the AWS resource that is the source of the path.

" + "smithy.api#documentation": "

The IP address of the Amazon Web Services resource that is the source of the path.

" } }, "DestinationIp": { "target": "com.amazonaws.ec2#IpAddress", "traits": { - "smithy.api#documentation": "

The IP address of the AWS resource that is the destination of the path.

" + "smithy.api#documentation": "

The IP address of the Amazon Web Services resource that is the destination of the path.

" } }, "Source": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The AWS resource that is the source of the path.

", + "smithy.api#documentation": "

The Amazon Web Services resource that is the source of the path.

", "smithy.api#required": {} } }, "Destination": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The AWS resource that is the destination of the path.

", + "smithy.api#documentation": "

The Amazon Web Services resource that is the destination of the path.

", "smithy.api#required": {} } }, @@ -10578,7 +10759,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to Ensure Idempotency.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to ensure idempotency.

", "smithy.api#idempotencyToken": {}, "smithy.api#required": {} } @@ -10619,7 +10800,7 @@ "target": "com.amazonaws.ec2#CreateNetworkInterfacePermissionResult" }, "traits": { - "smithy.api#documentation": "

Grants an Amazon Web Services-authorized account permission to attach the specified network interface to\n an instance in their account.

\n\t

You can grant permission to a single account only, and only one account at a time.

" + "smithy.api#documentation": "

Grants an Amazon Web Services-authorized account permission to attach the specified network interface to\n an instance in their account.

\n\t

You can grant permission to a single Amazon Web Services account only, and only one account at a time.

" } }, "com.amazonaws.ec2#CreateNetworkInterfacePermissionRequest": { @@ -10635,7 +10816,7 @@ "AwsAccountId": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The account ID.

" + "smithy.api#documentation": "

The Amazon Web Services account ID.

" } }, "AwsService": { @@ -10744,6 +10925,32 @@ "smithy.api#xmlName": "secondaryPrivateIpAddressCount" } }, + "Ipv4Prefixes": { + "target": "com.amazonaws.ec2#Ipv4PrefixList", + "traits": { + "smithy.api#documentation": "

One or moreIPv4 Prefix Delegation prefixes assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

", + "smithy.api#xmlName": "Ipv4Prefix" + } + }, + "Ipv4PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "

The number of IPv4 Prefix Delegation prefixes that AWS automatically assigns to the network interface. You cannot use this option if you use the Ipv4 Prefixes option.

" + } + }, + "Ipv6Prefixes": { + "target": "com.amazonaws.ec2#Ipv6PrefixList", + "traits": { + "smithy.api#documentation": "

One or moreIPv6 Prefix Delegation prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

", + "smithy.api#xmlName": "Ipv6Prefix" + } + }, + "Ipv6PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "

The number of IPv6 Prefix Delegation prefixes that AWS automatically assigns to the network interface. You cannot use this option if you use the Ipv6Prefixes option.

" + } + }, "InterfaceType": { "target": "com.amazonaws.ec2#NetworkInterfaceCreationType", "traits": { @@ -10877,7 +11084,7 @@ "target": "com.amazonaws.ec2#CreateReplaceRootVolumeTaskResult" }, "traits": { - "smithy.api#documentation": "

Creates a root volume replacement task for an Amazon EC2 instance. The root volume \n can either be restored to its initial launch state, or it can be restored using a \n specific snapshot.

\n \n

For more information, see Replace a root volume \n in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Creates a root volume replacement task for an Amazon EC2 instance. The root volume \n can either be restored to its initial launch state, or it can be restored using a \n specific snapshot.

\n \n

For more information, see Replace a root volume in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateReplaceRootVolumeTaskRequest": { @@ -10899,7 +11106,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. \n If you do not specify a client token, a randomly generated token is used for the request \n to ensure idempotency. For more information, see Ensuring Idempotency.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. \n If you do not specify a client token, a randomly generated token is used for the request \n to ensure idempotency. For more information, see Ensuring idempotency.

", "smithy.api#idempotencyToken": {} } }, @@ -11075,7 +11282,7 @@ "target": "com.amazonaws.ec2#CreateRouteResult" }, "traits": { - "smithy.api#documentation": "

Creates a route in a route table within a VPC.

\n

You must specify one of the following targets: internet gateway or virtual private\n\t\t\tgateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

\n

When determining how to route traffic, we use the route with the most specific match.\n For example, traffic is destined for the IPv4 address 192.0.2.3, and the\n route table includes the following two IPv4 routes:

\n\t\t\t \n\t\t

Both routes apply to the traffic destined for 192.0.2.3. However, the second route\n\t\t\t\tin the list covers a smaller number of IP addresses and is therefore more specific,\n\t\t\t\tso we use that route to determine where to target the traffic.

\n

For more information about route tables, see Route Tables in the\n Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a route in a route table within a VPC.

\n

You must specify one of the following targets: internet gateway or virtual private\n\t\t\tgateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

\n

When determining how to route traffic, we use the route with the most specific match.\n For example, traffic is destined for the IPv4 address 192.0.2.3, and the\n route table includes the following two IPv4 routes:

\n\t\t\t \n\t\t

Both routes apply to the traffic destined for 192.0.2.3. However, the second route\n\t\t\t\tin the list covers a smaller number of IP addresses and is therefore more specific,\n\t\t\t\tso we use that route to determine where to target the traffic.

\n

For more information about route tables, see Route tables in the\n Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateRouteRequest": { @@ -11216,7 +11423,7 @@ "target": "com.amazonaws.ec2#CreateRouteTableResult" }, "traits": { - "smithy.api#documentation": "

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

\n

For more information, see Route Tables in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

\n

For more information, see Route tables in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateRouteTableRequest": { @@ -11344,7 +11551,7 @@ "target": "com.amazonaws.ec2#Snapshot" }, "traits": { - "smithy.api#documentation": "

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for\n \tbackups, to make copies of EBS volumes, and to save data before shutting down an\n \tinstance.

\n \n \n

You can create snapshots of volumes in a Region and volumes on an Outpost. If you \n \tcreate a snapshot of a volume in a Region, the snapshot must be stored in the same \n \tRegion as the volume. If you create a snapshot of a volume on an Outpost, the snapshot \n \tcan be stored on the same Outpost as the volume, or in the Region for that Outpost.

\n \t\n

When a snapshot is created, any AWS Marketplace product codes that are associated with the\n source volume are propagated to the snapshot.

\n

You can take a snapshot of an attached volume that is in use. However, snapshots only\n capture data that has been written to your EBS volume at the time the snapshot command is\n issued; this might exclude any data that has been cached by any applications or the operating\n system. If you can pause any file systems on the volume long enough to take a snapshot, your\n snapshot should be complete. However, if you cannot pause all file writes to the volume, you\n should unmount the volume from within the instance, issue the snapshot command, and then\n remount the volume to ensure a consistent and complete snapshot. You may remount and use your\n volume while the snapshot status is pending.

\n

To create a snapshot for EBS volumes that serve as root devices, you should stop the\n instance before taking the snapshot.

\n

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that\n are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes\n and any associated snapshots always remain protected.

\n

You can tag your snapshots during creation. For more information, see Tagging your Amazon EC2\n resources in the Amazon Elastic Compute Cloud User Guide.

\n

For more information, see Amazon Elastic Block Store and Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for\n \tbackups, to make copies of EBS volumes, and to save data before shutting down an\n \tinstance.

\n \n \n

You can create snapshots of volumes in a Region and volumes on an Outpost. If you \n \tcreate a snapshot of a volume in a Region, the snapshot must be stored in the same \n \tRegion as the volume. If you create a snapshot of a volume on an Outpost, the snapshot \n \tcan be stored on the same Outpost as the volume, or in the Region for that Outpost.

\n \t\n

When a snapshot is created, any Amazon Web Services Marketplace product codes that are associated with the\n source volume are propagated to the snapshot.

\n

You can take a snapshot of an attached volume that is in use. However, snapshots only\n capture data that has been written to your Amazon EBS volume at the time the snapshot command is\n issued; this might exclude any data that has been cached by any applications or the operating\n system. If you can pause any file systems on the volume long enough to take a snapshot, your\n snapshot should be complete. However, if you cannot pause all file writes to the volume, you\n should unmount the volume from within the instance, issue the snapshot command, and then\n remount the volume to ensure a consistent and complete snapshot. You may remount and use your\n volume while the snapshot status is pending.

\n

To create a snapshot for Amazon EBS volumes that serve as root devices, you should stop the\n instance before taking the snapshot.

\n

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that\n are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes\n and any associated snapshots always remain protected.

\n

You can tag your snapshots during creation. For more information, see Tag your Amazon EC2\n resources in the Amazon Elastic Compute Cloud User Guide.

\n

For more information, see Amazon Elastic Block Store and Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateSnapshotRequest": { @@ -11359,13 +11566,13 @@ "OutpostArn": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Outpost on which to create a local \n \tsnapshot.

\n \t \n \t

For more information, see \n \t\tCreating local snapshots from volumes on an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost on which to create a local \n \tsnapshot.

\n \t \n \t

For more information, see Create local snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide.

" } }, "VolumeId": { "target": "com.amazonaws.ec2#VolumeId", "traits": { - "smithy.api#documentation": "

The ID of the EBS volume.

", + "smithy.api#documentation": "

The ID of the Amazon EBS volume.

", "smithy.api#required": {} } }, @@ -11417,7 +11624,7 @@ "OutpostArn": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Outpost on which to create the local \n \t\tsnapshots.

\n \t \n \t

For more information, see \n \t\tCreating multi-volume local snapshots from instances on an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost on which to create the local \n \t\tsnapshots.

\n \t \n \t

For more information, see \n \t\tCreate multi-volume local snapshots from instances on an Outpost in the \n \t\tAmazon Elastic Compute Cloud User Guide.

" } }, "TagSpecifications": { @@ -11463,7 +11670,7 @@ "target": "com.amazonaws.ec2#CreateSpotDatafeedSubscriptionResult" }, "traits": { - "smithy.api#documentation": "

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs.\n\t\t\t\tYou can create one data feed per account. For more information, see\n Spot Instance data feed \n in the Amazon EC2 User Guide for Linux Instances.

" + "smithy.api#documentation": "

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs.\n\t\t\t\tYou can create one data feed per Amazon Web Services account. For more information, see\n Spot Instance data feed \n in the Amazon EC2 User Guide for Linux Instances.

" } }, "com.amazonaws.ec2#CreateSpotDatafeedSubscriptionRequest": { @@ -11581,7 +11788,77 @@ "target": "com.amazonaws.ec2#CreateSubnetResult" }, "traits": { - "smithy.api#documentation": "

Creates a subnet in a specified VPC.

\n

You must specify an IPv4 CIDR block for the subnet. After you create a subnet, you\n can't change its CIDR block. The allowed block size is between a /16 netmask (65,536 IP\n addresses) and /28 netmask (16 IP addresses). The CIDR block must not overlap with the\n CIDR block of an existing subnet in the VPC.

\n

If you've associated an IPv6 CIDR block with your VPC, you can create a subnet with an\n IPv6 CIDR block that uses a /64 prefix length.

\n \n

AWS reserves both the first four and the last IPv4 address in each subnet's CIDR\n block. They're not available for use.

\n
\n

If you add more than one subnet to a VPC, they're set up in a star topology with a\n logical router in the middle.

\n

When you stop an instance in a subnet, it retains its private IPv4 address. It's\n therefore possible to have a subnet with no running instances (they're all stopped), but\n no remaining IP addresses available.

\n

For more information about subnets, see Your VPC and Subnets in the\n Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Creates a subnet in a specified VPC.

\n

You must specify an IPv4 CIDR block for the subnet. After you create a subnet, you\n can't change its CIDR block. The allowed block size is between a /16 netmask (65,536 IP\n addresses) and /28 netmask (16 IP addresses). The CIDR block must not overlap with the\n CIDR block of an existing subnet in the VPC.

\n

If you've associated an IPv6 CIDR block with your VPC, you can create a subnet with an\n IPv6 CIDR block that uses a /64 prefix length.

\n \n

Amazon Web Services reserves both the first four and the last IPv4 address in each subnet's CIDR\n block. They're not available for use.

\n
\n

If you add more than one subnet to a VPC, they're set up in a star topology with a\n logical router in the middle.

\n

When you stop an instance in a subnet, it retains its private IPv4 address. It's\n therefore possible to have a subnet with no running instances (they're all stopped), but\n no remaining IP addresses available.

\n

For more information about subnets, see Your VPC and subnets in the\n Amazon Virtual Private Cloud User Guide.

" + } + }, + "com.amazonaws.ec2#CreateSubnetCidrReservation": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#CreateSubnetCidrReservationRequest" + }, + "output": { + "target": "com.amazonaws.ec2#CreateSubnetCidrReservationResult" + }, + "traits": { + "smithy.api#documentation": "

Creates a subnet CIDR reservation. For information about subnet CIDR reservations, see Subnet CIDR reservations in the Amazon Virtual Private Cloud User Guide.

" + } + }, + "com.amazonaws.ec2#CreateSubnetCidrReservationRequest": { + "type": "structure", + "members": { + "TagSpecifications": { + "target": "com.amazonaws.ec2#TagSpecificationList", + "traits": { + "smithy.api#documentation": "

The tags to assign to the subnet CIDR reservation.

", + "smithy.api#xmlName": "TagSpecification" + } + }, + "SubnetId": { + "target": "com.amazonaws.ec2#SubnetId", + "traits": { + "smithy.api#documentation": "

The ID of the subnet.

", + "smithy.api#required": {} + } + }, + "Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The IPv4 or IPV6 CIDR range to reserve.

", + "smithy.api#required": {} + } + }, + "ReservationType": { + "target": "com.amazonaws.ec2#SubnetCidrReservationType", + "traits": { + "smithy.api#documentation": "

The type of reservation.

\n

The following are valid values:

\n ", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The\n description\n to assign to the subnet CIDR reservation.

" + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + } + } + }, + "com.amazonaws.ec2#CreateSubnetCidrReservationResult": { + "type": "structure", + "members": { + "SubnetCidrReservation": { + "target": "com.amazonaws.ec2#SubnetCidrReservation", + "traits": { + "aws.protocols#ec2QueryName": "SubnetCidrReservation", + "smithy.api#documentation": "

Information about the created subnet CIDR reservation.

", + "smithy.api#xmlName": "subnetCidrReservation" + } + } } }, "com.amazonaws.ec2#CreateSubnetRequest": { @@ -11597,7 +11874,7 @@ "AvailabilityZone": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Availability Zone or Local Zone for the subnet.

\n

Default: AWS selects one for you. If you create more than one subnet in your VPC, we \n do not necessarily select a different zone for each subnet.

\n

To create a subnet in a Local Zone, set this value to the Local Zone ID, for example\n us-west-2-lax-1a. For information about the Regions that support Local Zones, \n see Available Regions in the Amazon Elastic Compute Cloud User Guide.

\n

To create a subnet in an Outpost, set this value to the Availability Zone for the\n Outpost and specify the Outpost ARN.

" + "smithy.api#documentation": "

The Availability Zone or Local Zone for the subnet.

\n

Default: Amazon Web Services selects one for you. If you create more than one subnet in your VPC, we \n do not necessarily select a different zone for each subnet.

\n

To create a subnet in a Local Zone, set this value to the Local Zone ID, for example\n us-west-2-lax-1a. For information about the Regions that support Local Zones, \n see Available Regions in the Amazon Elastic Compute Cloud User Guide.

\n

To create a subnet in an Outpost, set this value to the Availability Zone for the\n Outpost and specify the Outpost ARN.

" } }, "AvailabilityZoneId": { @@ -11606,13 +11883,6 @@ "smithy.api#documentation": "

The AZ ID or the Local Zone ID of the subnet.

" } }, - "CidrBlock": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

", - "smithy.api#required": {} - } - }, "Ipv6CidrBlock": { "target": "com.amazonaws.ec2#String", "traits": { @@ -11639,6 +11909,13 @@ "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

", "smithy.api#xmlName": "dryRun" } + }, + "CidrBlock": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

", + "smithy.api#required": {} + } } } }, @@ -12687,7 +12964,7 @@ "target": "com.amazonaws.ec2#Volume" }, "traits": { - "smithy.api#documentation": "

Creates an EBS volume that can be attached to an instance in the same Availability Zone.

\n

You can create a new empty volume or restore a volume from an EBS snapshot.\n Any AWS Marketplace product codes from the snapshot are propagated to the volume.

\n

You can create encrypted volumes. Encrypted volumes must be attached to instances that \n support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically \n encrypted. For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

\n

You can tag your volumes during creation. For more information, see Tagging your Amazon EC2\n resources in the Amazon Elastic Compute Cloud User Guide.

\n

For more information, see Creating an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Creates an EBS volume that can be attached to an instance in the same Availability Zone.

\n

You can create a new empty volume or restore a volume from an EBS snapshot.\n Any Amazon Web Services Marketplace product codes from the snapshot are propagated to the volume.

\n

You can create encrypted volumes. Encrypted volumes must be attached to instances that \n support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically \n encrypted. For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

\n

You can tag your volumes during creation. For more information, see Tag your Amazon EC2\n resources in the Amazon Elastic Compute Cloud User Guide.

\n

For more information, see Create an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateVolumePermission": { @@ -12705,7 +12982,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "UserId", - "smithy.api#documentation": "

The AWS account ID to be added or removed.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account to be added or removed.

", "smithy.api#xmlName": "userId" } } @@ -12729,13 +13006,13 @@ "Add": { "target": "com.amazonaws.ec2#CreateVolumePermissionList", "traits": { - "smithy.api#documentation": "

Adds the specified AWS account ID or group to the list.

" + "smithy.api#documentation": "

Adds the specified Amazon Web Services account ID or group to the list.

" } }, "Remove": { "target": "com.amazonaws.ec2#CreateVolumePermissionList", "traits": { - "smithy.api#documentation": "

Removes the specified AWS account ID or group from the list.

" + "smithy.api#documentation": "

Removes the specified Amazon Web Services account ID or group from the list.

" } } }, @@ -12764,13 +13041,13 @@ "Iops": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents \n the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline \n performance of the volume and the rate at which the volume accumulates I/O credits for bursting.

\n

The following are the supported values for each volume type:

\n \n

For io1 and io2 volumes, we guarantee 64,000 IOPS only for \n Instances built on the Nitro System. Other instance families guarantee performance \n up to 32,000 IOPS.

\n

This parameter is required for io1 and io2 volumes.\n The default for gp3 volumes is 3,000 IOPS.\n This parameter is not supported for gp2, st1, sc1, or standard volumes.

" + "smithy.api#documentation": "

The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents \n the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline \n performance of the volume and the rate at which the volume accumulates I/O credits for bursting.

\n

The following are the supported values for each volume type:

\n \n

\n io1 and io2 volumes support up to 64,000 IOPS only on \n Instances built on the Nitro System. Other instance families support performance \n up to 32,000 IOPS.

\n

This parameter is required for io1 and io2 volumes.\n The default for gp3 volumes is 3,000 IOPS.\n This parameter is not supported for gp2, st1, sc1, or standard volumes.

" } }, "KmsKeyId": { "target": "com.amazonaws.ec2#KmsKeyId", "traits": { - "smithy.api#documentation": "

The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.\n If this parameter is not specified, your AWS managed CMK for EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the CMK using any of the following:

\n \n

AWS authenticates the CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

" + "smithy.api#documentation": "

The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS encryption.\n If this parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the KMS key using any of the following:

\n \n

Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

" } }, "OutpostArn": { @@ -12823,6 +13100,13 @@ "traits": { "smithy.api#documentation": "

The throughput to provision for a volume, with a maximum of 1,000 MiB/s.

\n

This parameter is valid only for gp3 volumes.

\n \t

Valid Range: Minimum value of 125. Maximum value of 1000.

" } + }, + "ClientToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency \n of the request. For more information, see Ensure \n Idempotency.

", + "smithy.api#idempotencyToken": {} + } } } }, @@ -12835,7 +13119,7 @@ "target": "com.amazonaws.ec2#CreateVpcResult" }, "traits": { - "smithy.api#documentation": "

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create\n\t\t\tuses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4\n\t\t\taddresses). For more information about how large to make your VPC, see Your VPC and\n\t\t\t\tSubnets in the Amazon Virtual Private Cloud User Guide.

\n

You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

\n\t\t

By default, each instance you launch in the VPC has the default DHCP options, which\n\t\t\tinclude only a default DNS server that we provide (AmazonProvidedDNS). For more\n\t\t\tinformation, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

\n

You can specify the instance tenancy value for the VPC when you create it. You can't change\n this value for the VPC after you create it. For more information, see Dedicated Instances in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create\n\t\t\tuses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4\n\t\t\taddresses). For more information about how large to make your VPC, see Your VPC and\n\t\t\t\tsubnets in the Amazon Virtual Private Cloud User Guide.

\n

You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided \n IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address \n pool that you provisioned through bring your own IP addresses (BYOIP).

\n\t

By default, each instance you launch in the VPC has the default DHCP options, which\n\t\t\tinclude only a default DNS server that we provide (AmazonProvidedDNS). For more\n\t\t\tinformation, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.

\n

You can specify the instance tenancy value for the VPC when you create it. You can't change\n this value for the VPC after you create it. For more information, see Dedicated Instances in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateVpcEndpoint": { @@ -13122,7 +13406,7 @@ "target": "com.amazonaws.ec2#CreateVpcPeeringConnectionResult" }, "traits": { - "smithy.api#documentation": "

Requests a VPC peering connection between two VPCs: a requester VPC that you own and\n\t\t\tan accepter VPC with which to create the connection. The accepter VPC can belong to\n\t\t\tanother AWS account and can be in a different Region to the requester VPC. The requester\n\t\t\tVPC and accepter VPC cannot have overlapping CIDR blocks.

\n \n

Limitations and rules apply to a VPC peering connection. For more information, see the limitations section in the VPC Peering Guide.

\n
\n

The owner of the accepter VPC must accept the peering request to activate the peering\n connection. The VPC peering connection request expires after 7 days, after which it\n cannot be accepted or rejected.

\n

If you create a VPC peering connection request between VPCs with overlapping CIDR\n blocks, the VPC peering connection has a status of failed.

" + "smithy.api#documentation": "

Requests a VPC peering connection between two VPCs: a requester VPC that you own and\n\t\t an accepter VPC with which to create the connection. The accepter VPC can belong to\n\t\t another Amazon Web Services account and can be in a different Region to the requester VPC. \n The requester VPC and accepter VPC cannot have overlapping CIDR blocks.

\n \n

Limitations and rules apply to a VPC peering connection. For more information, see \n the limitations section in the VPC Peering Guide.

\n
\n

The owner of the accepter VPC must accept the peering request to activate the peering\n connection. The VPC peering connection request expires after 7 days, after which it\n cannot be accepted or rejected.

\n

If you create a VPC peering connection request between VPCs with overlapping CIDR\n blocks, the VPC peering connection has a status of failed.

" } }, "com.amazonaws.ec2#CreateVpcPeeringConnectionRequest": { @@ -13140,7 +13424,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "PeerOwnerId", - "smithy.api#documentation": "

The AWS account ID of the owner of the accepter VPC.

\n

Default: Your AWS account ID

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the accepter VPC.

\n

Default: Your Amazon Web Services account ID

", "smithy.api#xmlName": "peerOwnerId" } }, @@ -13636,6 +13920,15 @@ "com.amazonaws.ec2#DedicatedHostId": { "type": "string" }, + "com.amazonaws.ec2#DedicatedHostIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#DedicatedHostId", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#DefaultNetworkCardIndex": { "type": "integer", "traits": { @@ -14203,6 +14496,56 @@ } } }, + "com.amazonaws.ec2#DeleteInstanceEventWindow": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeleteInstanceEventWindowRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeleteInstanceEventWindowResult" + }, + "traits": { + "smithy.api#documentation": "

Deletes the specified event window.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" + } + }, + "com.amazonaws.ec2#DeleteInstanceEventWindowRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + }, + "ForceDelete": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Specify true to force delete the event window. Use the force delete parameter\n if the event window is currently associated with targets.

" + } + }, + "InstanceEventWindowId": { + "target": "com.amazonaws.ec2#InstanceEventWindowId", + "traits": { + "smithy.api#documentation": "

The ID of the event window.

", + "smithy.api#required": {}, + "smithy.api#xmlName": "InstanceEventWindowId" + } + } + } + }, + "com.amazonaws.ec2#DeleteInstanceEventWindowResult": { + "type": "structure", + "members": { + "InstanceEventWindowState": { + "target": "com.amazonaws.ec2#InstanceEventWindowStateChange", + "traits": { + "aws.protocols#ec2QueryName": "InstanceEventWindowState", + "smithy.api#documentation": "

The state of the event window.

", + "smithy.api#xmlName": "instanceEventWindowState" + } + } + } + }, "com.amazonaws.ec2#DeleteInternetGateway": { "type": "operation", "input": { @@ -15170,7 +15513,7 @@ "target": "com.amazonaws.ec2#DeleteSnapshotRequest" }, "traits": { - "smithy.api#documentation": "

Deletes the specified snapshot.

\n

When you make periodic snapshots of a volume, the snapshots are incremental, and only the\n blocks on the device that have changed since your last snapshot are saved in the new snapshot.\n When you delete a snapshot, only the data not needed for any other snapshot is removed. So\n regardless of which prior snapshots have been deleted, all active snapshots will have access\n to all the information needed to restore the volume.

\n

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI.\n You must first de-register the AMI before you can delete the snapshot.

\n

For more information, see Deleting an Amazon EBS snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Deletes the specified snapshot.

\n

When you make periodic snapshots of a volume, the snapshots are incremental, and only the\n blocks on the device that have changed since your last snapshot are saved in the new snapshot.\n When you delete a snapshot, only the data not needed for any other snapshot is removed. So\n regardless of which prior snapshots have been deleted, all active snapshots will have access\n to all the information needed to restore the volume.

\n

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI.\n You must first de-register the AMI before you can delete the snapshot.

\n

For more information, see Delete an Amazon EBS snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#DeleteSnapshotRequest": { @@ -15227,6 +15570,49 @@ "smithy.api#documentation": "

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

" } }, + "com.amazonaws.ec2#DeleteSubnetCidrReservation": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeleteSubnetCidrReservationRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeleteSubnetCidrReservationResult" + }, + "traits": { + "smithy.api#documentation": "

Deletes a subnet CIDR reservation.

" + } + }, + "com.amazonaws.ec2#DeleteSubnetCidrReservationRequest": { + "type": "structure", + "members": { + "SubnetCidrReservationId": { + "target": "com.amazonaws.ec2#SubnetCidrReservationId", + "traits": { + "smithy.api#documentation": "

The ID of the subnet CIDR reservation.

", + "smithy.api#required": {} + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + } + } + }, + "com.amazonaws.ec2#DeleteSubnetCidrReservationResult": { + "type": "structure", + "members": { + "DeletedSubnetCidrReservation": { + "target": "com.amazonaws.ec2#SubnetCidrReservation", + "traits": { + "aws.protocols#ec2QueryName": "DeletedSubnetCidrReservation", + "smithy.api#documentation": "

Information about the deleted subnet CIDR reservation.

", + "smithy.api#xmlName": "deletedSubnetCidrReservation" + } + } + } + }, "com.amazonaws.ec2#DeleteSubnetRequest": { "type": "structure", "members": { @@ -15280,7 +15666,7 @@ "target": "com.amazonaws.ec2#TagList", "traits": { "aws.protocols#ec2QueryName": "Tag", - "smithy.api#documentation": "

The tags to delete. Specify a tag key and an optional tag value to delete\n specific tags. If you specify a tag key without a tag value, we delete any tag with this\n key regardless of its value. If you specify a tag key with an empty string as the tag\n value, we delete the tag only if its value is an empty string.

\n

If you omit this parameter, we delete all user-defined tags for the specified\n resources. We do not delete AWS-generated tags (tags that have the aws:\n prefix).

", + "smithy.api#documentation": "

The tags to delete. Specify a tag key and an optional tag value to delete\n specific tags. If you specify a tag key without a tag value, we delete any tag with this\n key regardless of its value. If you specify a tag key with an empty string as the tag\n value, we delete the tag only if its value is an empty string.

\n

If you omit this parameter, we delete all user-defined tags for the specified\n resources. We do not delete Amazon Web Services-generated tags (tags that have the aws:\n prefix).

", "smithy.api#xmlName": "tag" } } @@ -15865,7 +16251,7 @@ "target": "com.amazonaws.ec2#DeleteVolumeRequest" }, "traits": { - "smithy.api#documentation": "

Deletes the specified EBS volume. The volume must be in the available state\n (not attached to an instance).

\n

The volume can remain in the deleting state for several minutes.

\n

For more information, see Deleting an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Deletes the specified EBS volume. The volume must be in the available state\n (not attached to an instance).

\n

The volume can remain in the deleting state for several minutes.

\n

For more information, see Delete an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#DeleteVolumeRequest": { @@ -16281,7 +16667,7 @@ "target": "com.amazonaws.ec2#DeregisterInstanceEventNotificationAttributesResult" }, "traits": { - "smithy.api#documentation": "

Deregisters tag keys to prevent tags that have the specified tag keys from being included\n\t\t\tin scheduled event notifications for resources in the Region.

" + "smithy.api#documentation": "

c

\n \t

Deregisters tag keys to prevent tags that have the specified tag keys from being included\n\t\t\tin scheduled event notifications for resources in the Region.

" } }, "com.amazonaws.ec2#DeregisterInstanceEventNotificationAttributesRequest": { @@ -16582,7 +16968,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters. Filter names and values are case-sensitive.

\n ", + "smithy.api#documentation": "

One or more filters. Filter names and values are case-sensitive.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -16892,7 +17278,7 @@ "target": "com.amazonaws.ec2#DescribeCapacityReservationsResult" }, "traits": { - "smithy.api#documentation": "

Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the \n\t\t \tRegion that you're currently using.

", + "smithy.api#documentation": "

Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the \n\t\t \tAmazon Web Services Region that you're currently using.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -16935,7 +17321,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t \t ", + "smithy.api#documentation": "

One or more filters.

\n\t \t ", "smithy.api#xmlName": "Filter" } }, @@ -16999,7 +17385,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -17868,7 +18254,7 @@ "target": "com.amazonaws.ec2#DescribeDhcpOptionsResult" }, "traits": { - "smithy.api#documentation": "

Describes one or more of your DHCP options sets.

\n\t\t

For more information, see DHCP Options Sets in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", + "smithy.api#documentation": "

Describes one or more of your DHCP options sets.

\n\t\t

For more information, see DHCP options sets in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -17899,7 +18285,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -18319,7 +18705,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the AWS account that enabled fast snapshot restores on the snapshot.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot.

", "smithy.api#xmlName": "ownerId" } }, @@ -18327,7 +18713,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerAlias", - "smithy.api#documentation": "

The AWS owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", + "smithy.api#documentation": "

The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", "smithy.api#xmlName": "ownerAlias" } }, @@ -18419,7 +18805,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters. The possible values are:

\n ", + "smithy.api#documentation": "

The filters. The possible values are:

\n ", "smithy.api#xmlName": "Filter" } }, @@ -19917,6 +20303,85 @@ } } }, + "com.amazonaws.ec2#DescribeInstanceEventWindows": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DescribeInstanceEventWindowsRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DescribeInstanceEventWindowsResult" + }, + "traits": { + "smithy.api#documentation": "

Describes the specified event windows or all event windows.

\n

If you specify event window IDs, the output includes information for only the specified\n event windows. If you specify filters, the output includes information for only those event\n windows that meet the filter criteria. If you do not specify event windows IDs or filters,\n the output includes information for all event windows, which can affect performance. We\n recommend that you use pagination to ensure that the operation returns quickly and\n successfully.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "InstanceEventWindows", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#DescribeInstanceEventWindowsRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + }, + "InstanceEventWindowIds": { + "target": "com.amazonaws.ec2#InstanceEventWindowIdSet", + "traits": { + "smithy.api#documentation": "

The IDs of the event windows.

", + "smithy.api#xmlName": "InstanceEventWindowId" + } + }, + "Filters": { + "target": "com.amazonaws.ec2#FilterList", + "traits": { + "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#ResultRange", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return in a single call. To retrieve the remaining\n results, make another call with the returned NextToken value. This value can\n be between 20 and 500. You cannot specify this parameter and the event window IDs parameter\n in the same call.

" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The token to request the next page of results.

" + } + } + }, + "traits": { + "smithy.api#documentation": "Describe instance event windows by InstanceEventWindow." + } + }, + "com.amazonaws.ec2#DescribeInstanceEventWindowsResult": { + "type": "structure", + "members": { + "InstanceEventWindows": { + "target": "com.amazonaws.ec2#InstanceEventWindowSet", + "traits": { + "aws.protocols#ec2QueryName": "InstanceEventWindowSet", + "smithy.api#documentation": "

Information about the event windows.

", + "smithy.api#xmlName": "instanceEventWindowSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "smithy.api#xmlName": "nextToken" + } + } + } + }, "com.amazonaws.ec2#DescribeInstanceStatus": { "type": "operation", "input": { @@ -20366,7 +20831,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -20457,7 +20922,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -21663,7 +22128,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -22020,7 +22485,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -22125,7 +22590,7 @@ "target": "com.amazonaws.ec2#FilterList", "traits": { "aws.protocols#ec2QueryName": "Filter", - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "filter" } }, @@ -22536,7 +23001,7 @@ "target": "com.amazonaws.ec2#DescribeReplaceRootVolumeTasksResult" }, "traits": { - "smithy.api#documentation": "

Describes a root volume replacement task. For more information, see \n Replace a root volume in the \n Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

Describes a root volume replacement task. For more information, see \n Replace a root volume in the Amazon Elastic Compute Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -22574,7 +23039,7 @@ "MaxResults": { "target": "com.amazonaws.ec2#DescribeReplaceRootVolumeTasksMaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to return with a single call. To retrieve the remaining results, \n make another call with the returned nextToken value.

" + "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" } }, "NextToken": { @@ -22606,7 +23071,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "NextToken", - "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no \n more results to return.

", + "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "smithy.api#xmlName": "nextToken" } } @@ -22975,7 +23440,7 @@ "target": "com.amazonaws.ec2#DescribeRouteTablesResult" }, "traits": { - "smithy.api#documentation": "

Describes one or more of your route tables.

\n

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

\n\t\t

For more information, see Route Tables in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", + "smithy.api#documentation": "

Describes one or more of your route tables.

\n

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

\n\t\t

For more information, see Route tables in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -22999,7 +23464,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n\t\t ", + "smithy.api#documentation": "

One or more filters.

\n\t\t ", "smithy.api#xmlName": "Filter" } }, @@ -23579,7 +24044,7 @@ "target": "com.amazonaws.ec2#DescribeSnapshotsResult" }, "traits": { - "smithy.api#documentation": "

Describes the specified EBS snapshots available to you or all of the EBS snapshots\n available to you.

\n

The snapshots available to you include public snapshots, private snapshots that you own,\n and private snapshots owned by other AWS accounts for which you have explicit create volume\n permissions.

\n

The create volume permissions fall into the following categories:

\n \n

The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot\n owners, or AWS accounts with create volume permissions. If no options are specified, Amazon\n EC2 returns all snapshots for which you have create volume permissions.

\n

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are\n returned. If you specify an invalid snapshot ID, an error is returned. If you specify a\n snapshot ID for which you do not have access, it is not included in the returned\n results.

\n

If you specify one or more snapshot owners using the OwnerIds option, only\n snapshots from the specified owners and for which you have access are returned. The results\n can include the AWS account IDs of the specified owners, amazon for snapshots\n owned by Amazon, or self for snapshots that you own.

\n

If you specify a list of restorable users, only snapshots with create snapshot permissions\n for those users are returned. You can specify AWS account IDs (if you own the snapshots),\n self for snapshots for which you own or have explicit permissions, or\n all for public snapshots.

\n

If you are describing a long list of snapshots, we recommend that you paginate the output to make the\n list more manageable. The MaxResults parameter sets the maximum number of results\n returned in a single page. If the list of results exceeds your MaxResults value,\n then that number of results is returned along with a NextToken value that can be\n passed to a subsequent DescribeSnapshots request to retrieve the remaining\n results.

\n

To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

\n

For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

Describes the specified EBS snapshots available to you or all of the EBS snapshots\n available to you.

\n

The snapshots available to you include public snapshots, private snapshots that you own,\n and private snapshots owned by other Amazon Web Services accounts for which you have explicit create volume\n permissions.

\n

The create volume permissions fall into the following categories:

\n \n

The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot\n owners, or Amazon Web Services accounts with create volume permissions. If no options are specified, \n Amazon EC2 returns all snapshots for which you have create volume permissions.

\n

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are\n returned. If you specify an invalid snapshot ID, an error is returned. If you specify a\n snapshot ID for which you do not have access, it is not included in the returned\n results.

\n

If you specify one or more snapshot owners using the OwnerIds option, only\n snapshots from the specified owners and for which you have access are returned. The results\n can include the Amazon Web Services account IDs of the specified owners, amazon for snapshots\n owned by Amazon, or self for snapshots that you own.

\n

If you specify a list of restorable users, only snapshots with create snapshot permissions\n for those users are returned. You can specify Amazon Web Services account IDs (if you own the snapshots),\n self for snapshots for which you own or have explicit permissions, or\n all for public snapshots.

\n

If you are describing a long list of snapshots, we recommend that you paginate the output to make the\n list more manageable. The MaxResults parameter sets the maximum number of results\n returned in a single page. If the list of results exceeds your MaxResults value,\n then that number of results is returned along with a NextToken value that can be\n passed to a subsequent DescribeSnapshots request to retrieve the remaining\n results.

\n

To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

\n

For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -23611,7 +24076,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -23630,14 +24095,14 @@ "OwnerIds": { "target": "com.amazonaws.ec2#OwnerStringList", "traits": { - "smithy.api#documentation": "

Scopes the results to snapshots with the specified owners. You can specify a combination of\n AWS account IDs, self, and amazon.

", + "smithy.api#documentation": "

Scopes the results to snapshots with the specified owners. You can specify a combination of\n Amazon Web Services account IDs, self, and amazon.

", "smithy.api#xmlName": "Owner" } }, "RestorableByUserIds": { "target": "com.amazonaws.ec2#RestorableByStringList", "traits": { - "smithy.api#documentation": "

The IDs of the AWS accounts that can create volumes from the snapshot.

", + "smithy.api#documentation": "

The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.

", "smithy.api#xmlName": "RestorableBy" } }, @@ -24486,7 +24951,7 @@ "target": "com.amazonaws.ec2#DescribeSubnetsResult" }, "traits": { - "smithy.api#documentation": "

Describes one or more of your subnets.

\n

For more information, see Your VPC and Subnets in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", + "smithy.api#documentation": "

Describes one or more of your subnets.

\n

For more information, see Your VPC and subnets in the\n\t\t\t\tAmazon Virtual Private Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -24527,7 +24992,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -25640,7 +26105,7 @@ "target": "com.amazonaws.ec2#DescribeVolumeStatusResult" }, "traits": { - "smithy.api#documentation": "

Describes the status of the specified volumes. Volume status provides the result of the\n checks performed on your volumes to determine events that can impair the performance of your\n volumes. The performance of a volume can be affected if an issue occurs on the volume's\n underlying host. If the volume's underlying host experiences a power outage or system issue,\n after the system is restored, there could be data inconsistencies on the volume. Volume events\n notify you if this occurs. Volume actions notify you if any action needs to be taken in\n response to the event.

\n

The DescribeVolumeStatus operation provides the following information about\n the specified volumes:

\n

\n Status: Reflects the current status of the volume. The possible\n values are ok, impaired , warning, or\n insufficient-data. If all checks pass, the overall status of the volume is\n ok. If the check fails, the overall status is impaired. If the\n status is insufficient-data, then the checks might still be taking place on your\n volume at the time. We recommend that you retry the request. For more information about volume\n status, see Monitoring the status of your volumes in the\n Amazon Elastic Compute Cloud User Guide.

\n

\n Events: Reflect the cause of a volume status and might require you to\n take action. For example, if your volume returns an impaired status, then the\n volume event might be potential-data-inconsistency. This means that your volume\n has been affected by an issue with the underlying host, has all I/O operations disabled, and\n might have inconsistent data.

\n

\n Actions: Reflect the actions you might have to take in response to an\n event. For example, if the status of the volume is impaired and the volume event\n shows potential-data-inconsistency, then the action shows\n enable-volume-io. This means that you may want to enable the I/O operations for\n the volume by calling the EnableVolumeIO action and then check the volume\n for data consistency.

\n

Volume status is based on the volume status checks, and does not reflect the volume state.\n Therefore, volume status does not indicate volumes in the error state (for\n example, when a volume is incapable of accepting I/O.)

", + "smithy.api#documentation": "

Describes the status of the specified volumes. Volume status provides the result of the\n checks performed on your volumes to determine events that can impair the performance of your\n volumes. The performance of a volume can be affected if an issue occurs on the volume's\n underlying host. If the volume's underlying host experiences a power outage or system issue,\n after the system is restored, there could be data inconsistencies on the volume. Volume events\n notify you if this occurs. Volume actions notify you if any action needs to be taken in\n response to the event.

\n

The DescribeVolumeStatus operation provides the following information about\n the specified volumes:

\n

\n Status: Reflects the current status of the volume. The possible\n values are ok, impaired , warning, or\n insufficient-data. If all checks pass, the overall status of the volume is\n ok. If the check fails, the overall status is impaired. If the\n status is insufficient-data, then the checks might still be taking place on your\n volume at the time. We recommend that you retry the request. For more information about volume\n status, see Monitor the status of your volumes in the\n Amazon Elastic Compute Cloud User Guide.

\n

\n Events: Reflect the cause of a volume status and might require you to\n take action. For example, if your volume returns an impaired status, then the\n volume event might be potential-data-inconsistency. This means that your volume\n has been affected by an issue with the underlying host, has all I/O operations disabled, and\n might have inconsistent data.

\n

\n Actions: Reflect the actions you might have to take in response to an\n event. For example, if the status of the volume is impaired and the volume event\n shows potential-data-inconsistency, then the action shows\n enable-volume-io. This means that you may want to enable the I/O operations for\n the volume by calling the EnableVolumeIO action and then check the volume\n for data consistency.

\n

Volume status is based on the volume status checks, and does not reflect the volume state.\n Therefore, volume status does not indicate volumes in the error state (for\n example, when a volume is incapable of accepting I/O.)

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -25812,7 +26277,7 @@ "target": "com.amazonaws.ec2#DescribeVolumesModificationsResult" }, "traits": { - "smithy.api#documentation": "

Describes the most recent volume modification request for the specified EBS volumes.

\n

If a volume has never been modified, some information in the output will be null.\n If a volume has been modified more than once, the output includes only the most \n recent modification request.

\n

You can also use CloudWatch Events to check the status of a modification to an EBS\n volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see\n Monitoring volume modifications in the\n Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

Describes the most recent volume modification request for the specified EBS volumes.

\n

If a volume has never been modified, some information in the output will be null.\n If a volume has been modified more than once, the output includes only the most \n recent modification request.

\n

You can also use CloudWatch Events to check the status of a modification to an EBS\n volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see\n Monitor the progress of volume modifications in the Amazon Elastic Compute Cloud User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -26686,7 +27151,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -26810,7 +27275,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters.

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -27189,7 +27654,7 @@ "target": "com.amazonaws.ec2#VolumeAttachment" }, "traits": { - "smithy.api#documentation": "

Detaches an EBS volume from an instance. Make sure to unmount any file systems on the\n device within your operating system before detaching the volume. Failure to do so can result\n in the volume becoming stuck in the busy state while detaching. If this happens,\n detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot\n the instance, or all three. If an EBS volume is the root device of an instance, it can't be\n detached while the instance is running. To detach the root volume, stop the instance\n first.

\n

When a volume with an AWS Marketplace product code is detached from an instance, the\n product code is no longer associated with the instance.

\n

For more information, see Detaching an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Detaches an EBS volume from an instance. Make sure to unmount any file systems on the\n device within your operating system before detaching the volume. Failure to do so can result\n in the volume becoming stuck in the busy state while detaching. If this happens,\n detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot\n the instance, or all three. If an EBS volume is the root device of an instance, it can't be\n detached while the instance is running. To detach the root volume, stop the instance\n first.

\n

When a volume with an Amazon Web Services Marketplace product code is detached from an instance, the\n product code is no longer associated with the instance.

\n

For more information, see Detach an Amazon EBS volume in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#DetachVolumeRequest": { @@ -27349,7 +27814,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the AWS account that owns the DHCP options set.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the DHCP options set.

", "smithy.api#xmlName": "ownerId" } }, @@ -27582,7 +28047,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the AWS account that enabled fast snapshot restores on the snapshot.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot.

", "smithy.api#xmlName": "ownerId" } }, @@ -27590,7 +28055,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerAlias", - "smithy.api#documentation": "

The AWS owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", + "smithy.api#documentation": "

The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", "smithy.api#xmlName": "ownerAlias" } }, @@ -28135,13 +28600,63 @@ } } }, + "com.amazonaws.ec2#DisassociateInstanceEventWindow": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DisassociateInstanceEventWindowRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DisassociateInstanceEventWindowResult" + }, + "traits": { + "smithy.api#documentation": "

Disassociates one or more targets from an event window.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" + } + }, + "com.amazonaws.ec2#DisassociateInstanceEventWindowRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + }, + "InstanceEventWindowId": { + "target": "com.amazonaws.ec2#InstanceEventWindowId", + "traits": { + "smithy.api#documentation": "

The ID of the event window.

", + "smithy.api#required": {} + } + }, + "AssociationTarget": { + "target": "com.amazonaws.ec2#InstanceEventWindowDisassociationRequest", + "traits": { + "smithy.api#documentation": "

One or more targets to disassociate from the specified event window.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#DisassociateInstanceEventWindowResult": { + "type": "structure", + "members": { + "InstanceEventWindow": { + "target": "com.amazonaws.ec2#InstanceEventWindow", + "traits": { + "aws.protocols#ec2QueryName": "InstanceEventWindow", + "smithy.api#documentation": "

Information about the event window.

", + "smithy.api#xmlName": "instanceEventWindow" + } + } + } + }, "com.amazonaws.ec2#DisassociateRouteTable": { "type": "operation", "input": { "target": "com.amazonaws.ec2#DisassociateRouteTableRequest" }, "traits": { - "smithy.api#documentation": "

Disassociates a subnet or gateway from a route table.

\n\t\t

After you perform this action, the subnet no longer uses the routes in the route table.\n\t\t\t\tInstead, it uses the routes in the VPC's main route table. For more information\n\t\t\t\tabout route tables, see Route\n\t\t\t\tTables in the Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Disassociates a subnet or gateway from a route table.

\n\t\t

After you perform this action, the subnet no longer uses the routes in the route table.\n\t\t\t\tInstead, it uses the routes in the VPC's main route table. For more information\n\t\t\t\tabout route tables, see Route\n\t\t\t\ttables in the Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#DisassociateRouteTableRequest": { @@ -29472,7 +29987,7 @@ "target": "com.amazonaws.ec2#EnableEbsEncryptionByDefaultResult" }, "traits": { - "smithy.api#documentation": "

Enables EBS encryption by default for your account in the current Region.

\n

After you enable encryption by default, the EBS volumes that you create are\n always encrypted, either using the default CMK or the CMK that you specified\n when you created each volume. For more information, see Amazon EBS encryption in the\n Amazon Elastic Compute Cloud User Guide.

\n

You can specify the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId\n or ResetEbsDefaultKmsKeyId.

\n

Enabling encryption by default has no effect on the encryption status of your \n existing volumes.

\n

After you enable encryption by default, you can no longer launch instances\n using instance types that do not support encryption. For more information, see Supported\n instance types.

" + "smithy.api#documentation": "

Enables EBS encryption by default for your account in the current Region.

\n

After you enable encryption by default, the EBS volumes that you create are\n \talways encrypted, either using the default KMS key or the KMS key that you specified\n when you created each volume. For more information, see Amazon EBS encryption in the\n Amazon Elastic Compute Cloud User Guide.

\n \t

You can specify the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId\n or ResetEbsDefaultKmsKeyId.

\n

Enabling encryption by default has no effect on the encryption status of your \n existing volumes.

\n

After you enable encryption by default, you can no longer launch instances\n using instance types that do not support encryption. For more information, see Supported\n instance types.

" } }, "com.amazonaws.ec2#EnableEbsEncryptionByDefaultRequest": { @@ -29628,7 +30143,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the AWS account that enabled fast snapshot restores on the snapshot.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot.

", "smithy.api#xmlName": "ownerId" } }, @@ -29636,7 +30151,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerAlias", - "smithy.api#documentation": "

The AWS owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", + "smithy.api#documentation": "

The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

", "smithy.api#xmlName": "ownerAlias" } }, @@ -29720,7 +30235,7 @@ "SourceSnapshotIds": { "target": "com.amazonaws.ec2#SnapshotIdStringList", "traits": { - "smithy.api#documentation": "

The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify\n a snapshot that was shared with you from another AWS account.

", + "smithy.api#documentation": "

The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify\n a snapshot that was shared with you from another Amazon Web Services account.

", "smithy.api#required": {}, "smithy.api#xmlName": "SourceSnapshotId" } @@ -32738,7 +33253,7 @@ "target": "com.amazonaws.ec2#GetCapacityReservationUsageResult" }, "traits": { - "smithy.api#documentation": "

Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner \n\t\t\tand each account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only \n\t\t\tthe Capacity Reservation owner's usage.

" + "smithy.api#documentation": "

Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner \n\t\t\tand each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only \n\t\t\tthe Capacity Reservation owner's usage.

" } }, "com.amazonaws.ec2#GetCapacityReservationUsageRequest": { @@ -33095,7 +33610,7 @@ "target": "com.amazonaws.ec2#GetEbsDefaultKmsKeyIdResult" }, "traits": { - "smithy.api#documentation": "

Describes the default customer master key (CMK) for EBS encryption by default for your account in this Region. \n You can change the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or\n ResetEbsDefaultKmsKeyId.

\n

For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Describes the default KMS key for EBS encryption by default for your account in this Region. \n \t\tYou can change the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or\n ResetEbsDefaultKmsKeyId.

\n

For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#GetEbsDefaultKmsKeyIdRequest": { @@ -33116,7 +33631,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default CMK for encryption by default.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default KMS key for encryption by default.

", "smithy.api#xmlName": "kmsKeyId" } } @@ -33793,51 +34308,42 @@ } } }, - "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagations": { + "com.amazonaws.ec2#GetSubnetCidrReservations": { "type": "operation", "input": { - "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsRequest" + "target": "com.amazonaws.ec2#GetSubnetCidrReservationsRequest" }, "output": { - "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsResult" + "target": "com.amazonaws.ec2#GetSubnetCidrReservationsResult" }, "traits": { - "smithy.api#documentation": "

Lists the route tables to which the specified resource attachment propagates routes.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "TransitGatewayAttachmentPropagations", - "pageSize": "MaxResults" + "smithy.api#documentation": "

Gets information about the subnet CIDR reservations.

" + } + }, + "com.amazonaws.ec2#GetSubnetCidrReservationsMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 5, + "max": 1000 } } }, - "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsRequest": { + "com.amazonaws.ec2#GetSubnetCidrReservationsRequest": { "type": "structure", "members": { - "TransitGatewayAttachmentId": { - "target": "com.amazonaws.ec2#TransitGatewayAttachmentId", - "traits": { - "smithy.api#documentation": "

The ID of the attachment.

", - "smithy.api#required": {} - } - }, "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", + "smithy.api#documentation": "

One or more filters.

\n ", "smithy.api#xmlName": "Filter" } }, - "MaxResults": { - "target": "com.amazonaws.ec2#TransitGatewayMaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" - } - }, - "NextToken": { - "target": "com.amazonaws.ec2#String", + "SubnetId": { + "target": "com.amazonaws.ec2#SubnetId", "traits": { - "smithy.api#documentation": "

The token for the next page of results.

" + "smithy.api#documentation": "

The ID of the subnet.

", + "smithy.api#required": {} } }, "DryRun": { @@ -33845,93 +34351,38 @@ "traits": { "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" } - } - } - }, - "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsResult": { - "type": "structure", - "members": { - "TransitGatewayAttachmentPropagations": { - "target": "com.amazonaws.ec2#TransitGatewayAttachmentPropagationList", - "traits": { - "aws.protocols#ec2QueryName": "TransitGatewayAttachmentPropagations", - "smithy.api#documentation": "

Information about the propagation route tables.

", - "smithy.api#xmlName": "transitGatewayAttachmentPropagations" - } }, "NextToken": { "target": "com.amazonaws.ec2#String", "traits": { - "aws.protocols#ec2QueryName": "NextToken", - "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", - "smithy.api#xmlName": "nextToken" - } - } - } - }, - "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociations": { - "type": "operation", - "input": { - "target": "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsRequest" - }, - "output": { - "target": "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsResult" - }, - "traits": { - "smithy.api#documentation": "

Gets information about the associations for the transit gateway multicast domain.

", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "MulticastDomainAssociations", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsRequest": { - "type": "structure", - "members": { - "TransitGatewayMulticastDomainId": { - "target": "com.amazonaws.ec2#TransitGatewayMulticastDomainId", - "traits": { - "smithy.api#documentation": "

The ID of the transit gateway multicast domain.

" - } - }, - "Filters": { - "target": "com.amazonaws.ec2#FilterList", - "traits": { - "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", - "smithy.api#xmlName": "Filter" + "smithy.api#documentation": "

The token for the next page of results.

" } }, "MaxResults": { - "target": "com.amazonaws.ec2#TransitGatewayMaxResults", + "target": "com.amazonaws.ec2#GetSubnetCidrReservationsMaxResults", "traits": { "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" } - }, - "NextToken": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#documentation": "

The token for the next page of results.

" - } - }, - "DryRun": { - "target": "com.amazonaws.ec2#Boolean", - "traits": { - "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" - } } } }, - "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsResult": { + "com.amazonaws.ec2#GetSubnetCidrReservationsResult": { "type": "structure", "members": { - "MulticastDomainAssociations": { - "target": "com.amazonaws.ec2#TransitGatewayMulticastDomainAssociationList", + "SubnetIpv4CidrReservations": { + "target": "com.amazonaws.ec2#SubnetCidrReservationList", "traits": { - "aws.protocols#ec2QueryName": "MulticastDomainAssociations", - "smithy.api#documentation": "

Information about the multicast domain associations.

", - "smithy.api#xmlName": "multicastDomainAssociations" + "aws.protocols#ec2QueryName": "SubnetIpv4CidrReservationSet", + "smithy.api#documentation": "

Information about the IPv4 subnet CIDR reservations.

", + "smithy.api#xmlName": "subnetIpv4CidrReservationSet" + } + }, + "SubnetIpv6CidrReservations": { + "target": "com.amazonaws.ec2#SubnetCidrReservationList", + "traits": { + "aws.protocols#ec2QueryName": "SubnetIpv6CidrReservationSet", + "smithy.api#documentation": "

Information about the IPv6 subnet CIDR reservations.

", + "smithy.api#xmlName": "subnetIpv6CidrReservationSet" } }, "NextToken": { @@ -33944,38 +34395,38 @@ } } }, - "com.amazonaws.ec2#GetTransitGatewayPrefixListReferences": { + "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagations": { "type": "operation", "input": { - "target": "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesRequest" + "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsRequest" }, "output": { - "target": "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesResult" + "target": "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsResult" }, "traits": { - "smithy.api#documentation": "

Gets information about the prefix list references in a specified transit gateway route table.

", + "smithy.api#documentation": "

Lists the route tables to which the specified resource attachment propagates routes.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", - "items": "TransitGatewayPrefixListReferences", + "items": "TransitGatewayAttachmentPropagations", "pageSize": "MaxResults" } } }, - "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesRequest": { + "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsRequest": { "type": "structure", "members": { - "TransitGatewayRouteTableId": { - "target": "com.amazonaws.ec2#TransitGatewayRouteTableId", + "TransitGatewayAttachmentId": { + "target": "com.amazonaws.ec2#TransitGatewayAttachmentId", "traits": { - "smithy.api#documentation": "

The ID of the transit gateway route table.

", + "smithy.api#documentation": "

The ID of the attachment.

", "smithy.api#required": {} } }, "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", + "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", "smithy.api#xmlName": "Filter" } }, @@ -33999,15 +34450,15 @@ } } }, - "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesResult": { + "com.amazonaws.ec2#GetTransitGatewayAttachmentPropagationsResult": { "type": "structure", "members": { - "TransitGatewayPrefixListReferences": { - "target": "com.amazonaws.ec2#TransitGatewayPrefixListReferenceSet", + "TransitGatewayAttachmentPropagations": { + "target": "com.amazonaws.ec2#TransitGatewayAttachmentPropagationList", "traits": { - "aws.protocols#ec2QueryName": "TransitGatewayPrefixListReferenceSet", - "smithy.api#documentation": "

Information about the prefix list references.

", - "smithy.api#xmlName": "transitGatewayPrefixListReferenceSet" + "aws.protocols#ec2QueryName": "TransitGatewayAttachmentPropagations", + "smithy.api#documentation": "

Information about the propagation route tables.

", + "smithy.api#xmlName": "transitGatewayAttachmentPropagations" } }, "NextToken": { @@ -34020,38 +34471,189 @@ } } }, - "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociations": { + "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociations": { "type": "operation", "input": { - "target": "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsRequest" + "target": "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsRequest" }, "output": { - "target": "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsResult" + "target": "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsResult" }, "traits": { - "smithy.api#documentation": "

Gets information about the associations for the specified transit gateway route table.

", + "smithy.api#documentation": "

Gets information about the associations for the transit gateway multicast domain.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", - "items": "Associations", + "items": "MulticastDomainAssociations", "pageSize": "MaxResults" } } }, - "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsRequest": { + "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsRequest": { "type": "structure", "members": { - "TransitGatewayRouteTableId": { - "target": "com.amazonaws.ec2#TransitGatewayRouteTableId", + "TransitGatewayMulticastDomainId": { + "target": "com.amazonaws.ec2#TransitGatewayMulticastDomainId", "traits": { - "smithy.api#documentation": "

The ID of the transit gateway route table.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The ID of the transit gateway multicast domain.

" } }, "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", + "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#TransitGatewayMaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The token for the next page of results.

" + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + } + } + }, + "com.amazonaws.ec2#GetTransitGatewayMulticastDomainAssociationsResult": { + "type": "structure", + "members": { + "MulticastDomainAssociations": { + "target": "com.amazonaws.ec2#TransitGatewayMulticastDomainAssociationList", + "traits": { + "aws.protocols#ec2QueryName": "MulticastDomainAssociations", + "smithy.api#documentation": "

Information about the multicast domain associations.

", + "smithy.api#xmlName": "multicastDomainAssociations" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "smithy.api#xmlName": "nextToken" + } + } + } + }, + "com.amazonaws.ec2#GetTransitGatewayPrefixListReferences": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesRequest" + }, + "output": { + "target": "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesResult" + }, + "traits": { + "smithy.api#documentation": "

Gets information about the prefix list references in a specified transit gateway route table.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "TransitGatewayPrefixListReferences", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesRequest": { + "type": "structure", + "members": { + "TransitGatewayRouteTableId": { + "target": "com.amazonaws.ec2#TransitGatewayRouteTableId", + "traits": { + "smithy.api#documentation": "

The ID of the transit gateway route table.

", + "smithy.api#required": {} + } + }, + "Filters": { + "target": "com.amazonaws.ec2#FilterList", + "traits": { + "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#TransitGatewayMaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned nextToken value.

" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The token for the next page of results.

" + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + } + } + }, + "com.amazonaws.ec2#GetTransitGatewayPrefixListReferencesResult": { + "type": "structure", + "members": { + "TransitGatewayPrefixListReferences": { + "target": "com.amazonaws.ec2#TransitGatewayPrefixListReferenceSet", + "traits": { + "aws.protocols#ec2QueryName": "TransitGatewayPrefixListReferenceSet", + "smithy.api#documentation": "

Information about the prefix list references.

", + "smithy.api#xmlName": "transitGatewayPrefixListReferenceSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "smithy.api#xmlName": "nextToken" + } + } + } + }, + "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociations": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsRequest" + }, + "output": { + "target": "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsResult" + }, + "traits": { + "smithy.api#documentation": "

Gets information about the associations for the specified transit gateway route table.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Associations", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#GetTransitGatewayRouteTableAssociationsRequest": { + "type": "structure", + "members": { + "TransitGatewayRouteTableId": { + "target": "com.amazonaws.ec2#TransitGatewayRouteTableId", + "traits": { + "smithy.api#documentation": "

The ID of the transit gateway route table.

", + "smithy.api#required": {} + } + }, + "Filters": { + "target": "com.amazonaws.ec2#FilterList", + "traits": { + "smithy.api#documentation": "

One or more filters. The possible values are:

\n ", "smithy.api#xmlName": "Filter" } }, @@ -34585,7 +35187,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the account that owns the Dedicated Host.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the Dedicated Host.

", "smithy.api#xmlName": "ownerId" } }, @@ -34633,7 +35235,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the account that owns the instance.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the instance.

", "smithy.api#xmlName": "ownerId" } } @@ -34952,6 +35554,15 @@ ] } }, + "com.amazonaws.ec2#Hour": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 23 + } + } + }, "com.amazonaws.ec2#HttpTokensState": { "type": "string", "traits": { @@ -37752,6 +38363,318 @@ "com.amazonaws.ec2#InstanceEventId": { "type": "string" }, + "com.amazonaws.ec2#InstanceEventWindow": { + "type": "structure", + "members": { + "InstanceEventWindowId": { + "target": "com.amazonaws.ec2#InstanceEventWindowId", + "traits": { + "aws.protocols#ec2QueryName": "InstanceEventWindowId", + "smithy.api#documentation": "

The ID of the event window.

", + "smithy.api#xmlName": "instanceEventWindowId" + } + }, + "TimeRanges": { + "target": "com.amazonaws.ec2#InstanceEventWindowTimeRangeList", + "traits": { + "aws.protocols#ec2QueryName": "TimeRangeSet", + "smithy.api#documentation": "

One or more time ranges defined for the event window.

", + "smithy.api#xmlName": "timeRangeSet" + } + }, + "Name": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Name", + "smithy.api#documentation": "

The name of the event window.

", + "smithy.api#xmlName": "name" + } + }, + "CronExpression": { + "target": "com.amazonaws.ec2#InstanceEventWindowCronExpression", + "traits": { + "aws.protocols#ec2QueryName": "CronExpression", + "smithy.api#documentation": "

The cron expression defined for the event window.

", + "smithy.api#xmlName": "cronExpression" + } + }, + "AssociationTarget": { + "target": "com.amazonaws.ec2#InstanceEventWindowAssociationTarget", + "traits": { + "aws.protocols#ec2QueryName": "AssociationTarget", + "smithy.api#documentation": "

One or more targets associated with the event window.

", + "smithy.api#xmlName": "associationTarget" + } + }, + "State": { + "target": "com.amazonaws.ec2#InstanceEventWindowState", + "traits": { + "aws.protocols#ec2QueryName": "State", + "smithy.api#documentation": "

The current state of the event window.

", + "smithy.api#xmlName": "state" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "

The instance tags associated with the event window.

", + "smithy.api#xmlName": "tagSet" + } + } + }, + "traits": { + "smithy.api#documentation": "

The event window.

" + } + }, + "com.amazonaws.ec2#InstanceEventWindowAssociationRequest": { + "type": "structure", + "members": { + "InstanceIds": { + "target": "com.amazonaws.ec2#InstanceIdList", + "traits": { + "smithy.api#documentation": "

The IDs of the instances to associate with the event window. If the instance is on a\n Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated\n Host ID parameter.

", + "smithy.api#xmlName": "InstanceId" + } + }, + "InstanceTags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "smithy.api#documentation": "

The instance tags to associate with the event window. Any instances associated with the\n tags will be associated with the event window.

", + "smithy.api#xmlName": "InstanceTag" + } + }, + "DedicatedHostIds": { + "target": "com.amazonaws.ec2#DedicatedHostIdList", + "traits": { + "smithy.api#documentation": "

The IDs of the Dedicated Hosts to associate with the event window.

", + "smithy.api#xmlName": "DedicatedHostId" + } + } + }, + "traits": { + "smithy.api#documentation": "

One or more targets associated with the specified event window. Only one\n type of target (instance ID, instance tag, or Dedicated Host ID)\n can be associated with an event window.

" + } + }, + "com.amazonaws.ec2#InstanceEventWindowAssociationTarget": { + "type": "structure", + "members": { + "InstanceIds": { + "target": "com.amazonaws.ec2#InstanceIdList", + "traits": { + "aws.protocols#ec2QueryName": "InstanceIdSet", + "smithy.api#documentation": "

The IDs of the instances associated with the event window.

", + "smithy.api#xmlName": "instanceIdSet" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "

The instance tags associated with the event window. Any instances associated with the tags\n will be associated with the event window.

", + "smithy.api#xmlName": "tagSet" + } + }, + "DedicatedHostIds": { + "target": "com.amazonaws.ec2#DedicatedHostIdList", + "traits": { + "aws.protocols#ec2QueryName": "DedicatedHostIdSet", + "smithy.api#documentation": "

The IDs of the Dedicated Hosts associated with the event window.

", + "smithy.api#xmlName": "dedicatedHostIdSet" + } + } + }, + "traits": { + "smithy.api#documentation": "

One or more targets associated with the event window.

" + } + }, + "com.amazonaws.ec2#InstanceEventWindowCronExpression": { + "type": "string" + }, + "com.amazonaws.ec2#InstanceEventWindowDisassociationRequest": { + "type": "structure", + "members": { + "InstanceIds": { + "target": "com.amazonaws.ec2#InstanceIdList", + "traits": { + "smithy.api#documentation": "

The IDs of the instances to disassociate from the event window.

", + "smithy.api#xmlName": "InstanceId" + } + }, + "InstanceTags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "smithy.api#documentation": "

The instance tags to disassociate from the event window. Any instances associated with\n the tags will be disassociated from the event window.

", + "smithy.api#xmlName": "InstanceTag" + } + }, + "DedicatedHostIds": { + "target": "com.amazonaws.ec2#DedicatedHostIdList", + "traits": { + "smithy.api#documentation": "

The IDs of the Dedicated Hosts to disassociate from the event window.

", + "smithy.api#xmlName": "DedicatedHostId" + } + } + }, + "traits": { + "smithy.api#documentation": "

The targets to disassociate from the specified event window.

" + } + }, + "com.amazonaws.ec2#InstanceEventWindowId": { + "type": "string" + }, + "com.amazonaws.ec2#InstanceEventWindowIdSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#InstanceEventWindowId", + "traits": { + "smithy.api#xmlName": "InstanceEventWindowId" + } + } + }, + "com.amazonaws.ec2#InstanceEventWindowSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#InstanceEventWindow", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#InstanceEventWindowState": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "creating", + "name": "creating" + }, + { + "value": "deleting", + "name": "deleting" + }, + { + "value": "active", + "name": "active" + }, + { + "value": "deleted", + "name": "deleted" + } + ] + } + }, + "com.amazonaws.ec2#InstanceEventWindowStateChange": { + "type": "structure", + "members": { + "InstanceEventWindowId": { + "target": "com.amazonaws.ec2#InstanceEventWindowId", + "traits": { + "aws.protocols#ec2QueryName": "InstanceEventWindowId", + "smithy.api#documentation": "

The ID of the event window.

", + "smithy.api#xmlName": "instanceEventWindowId" + } + }, + "State": { + "target": "com.amazonaws.ec2#InstanceEventWindowState", + "traits": { + "aws.protocols#ec2QueryName": "State", + "smithy.api#documentation": "

The current state of the event window.

", + "smithy.api#xmlName": "state" + } + } + }, + "traits": { + "smithy.api#documentation": "

The state of the event window.

" + } + }, + "com.amazonaws.ec2#InstanceEventWindowTimeRange": { + "type": "structure", + "members": { + "StartWeekDay": { + "target": "com.amazonaws.ec2#WeekDay", + "traits": { + "aws.protocols#ec2QueryName": "StartWeekDay", + "smithy.api#documentation": "

The day on which the time range begins.

", + "smithy.api#xmlName": "startWeekDay" + } + }, + "StartHour": { + "target": "com.amazonaws.ec2#Hour", + "traits": { + "aws.protocols#ec2QueryName": "StartHour", + "smithy.api#documentation": "

The hour when the time range begins.

", + "smithy.api#xmlName": "startHour" + } + }, + "EndWeekDay": { + "target": "com.amazonaws.ec2#WeekDay", + "traits": { + "aws.protocols#ec2QueryName": "EndWeekDay", + "smithy.api#documentation": "

The day on which the time range ends.

", + "smithy.api#xmlName": "endWeekDay" + } + }, + "EndHour": { + "target": "com.amazonaws.ec2#Hour", + "traits": { + "aws.protocols#ec2QueryName": "EndHour", + "smithy.api#documentation": "

The hour when the time range ends.

", + "smithy.api#xmlName": "endHour" + } + } + }, + "traits": { + "smithy.api#documentation": "

The start day and time and the end day and time of the time range, in UTC.

" + } + }, + "com.amazonaws.ec2#InstanceEventWindowTimeRangeList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#InstanceEventWindowTimeRange", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequest": { + "type": "structure", + "members": { + "StartWeekDay": { + "target": "com.amazonaws.ec2#WeekDay", + "traits": { + "smithy.api#documentation": "

The day on which the time range begins.

" + } + }, + "StartHour": { + "target": "com.amazonaws.ec2#Hour", + "traits": { + "smithy.api#documentation": "

The hour when the time range begins.

" + } + }, + "EndWeekDay": { + "target": "com.amazonaws.ec2#WeekDay", + "traits": { + "smithy.api#documentation": "

The day on which the time range ends.

" + } + }, + "EndHour": { + "target": "com.amazonaws.ec2#Hour", + "traits": { + "smithy.api#documentation": "

The hour when the time range ends.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The start day and time and the end day and time of the time range, in UTC.

" + } + }, + "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequestSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequest" + } + }, "com.amazonaws.ec2#InstanceExportDetails": { "type": "structure", "members": { @@ -37818,6 +38741,15 @@ "com.amazonaws.ec2#InstanceId": { "type": "string" }, + "com.amazonaws.ec2#InstanceIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#InstanceId", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#InstanceIdSet": { "type": "list", "member": { @@ -37864,6 +38796,31 @@ ] } }, + "com.amazonaws.ec2#InstanceIpv4Prefix": { + "type": "structure", + "members": { + "Ipv4Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv4Prefix", + "smithy.api#documentation": "

One or more IPv4 delegated prefixes assigned to the network interface.

", + "smithy.api#xmlName": "ipv4Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about an IPv4 delegated prefix.

" + } + }, + "com.amazonaws.ec2#InstanceIpv4PrefixList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#InstanceIpv4Prefix", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#InstanceIpv6Address": { "type": "structure", "members": { @@ -37912,6 +38869,31 @@ "smithy.api#documentation": "

Describes an IPv6 address.

" } }, + "com.amazonaws.ec2#InstanceIpv6Prefix": { + "type": "structure", + "members": { + "Ipv6Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6Prefix", + "smithy.api#documentation": "

One or more IPv6 delegated prefixes assigned to the network interface.

", + "smithy.api#xmlName": "ipv6Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about an IPv6 delegated prefix.

" + } + }, + "com.amazonaws.ec2#InstanceIpv6PrefixList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#InstanceIpv6Prefix", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#InstanceLifecycle": { "type": "string", "traits": { @@ -38178,7 +39160,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the account that created the network interface.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that created the network interface.

", "smithy.api#xmlName": "ownerId" } }, @@ -38245,6 +39227,22 @@ "smithy.api#documentation": "

Describes the type of network interface.

\n\t

Valid values: interface | efa | trunk\n

", "smithy.api#xmlName": "interfaceType" } + }, + "Ipv4Prefixes": { + "target": "com.amazonaws.ec2#InstanceIpv4PrefixList", + "traits": { + "aws.protocols#ec2QueryName": "Ipv4PrefixSet", + "smithy.api#documentation": "

The IPv4 delegated prefixes that are assigned to the network interface.

", + "smithy.api#xmlName": "ipv4PrefixSet" + } + }, + "Ipv6Prefixes": { + "target": "com.amazonaws.ec2#InstanceIpv6PrefixList", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6PrefixSet", + "smithy.api#documentation": "

The IPv6 delegated prefixes that are assigned to the network interface.

", + "smithy.api#xmlName": "ipv6PrefixSet" + } } }, "traits": { @@ -38471,6 +39469,32 @@ "traits": { "smithy.api#documentation": "

The index of the network card. Some instance types support multiple network cards. \n The primary network interface must be assigned to network card index 0. \n The default is network card index 0.

" } + }, + "Ipv4Prefixes": { + "target": "com.amazonaws.ec2#Ipv4PrefixList", + "traits": { + "smithy.api#documentation": "

One or more IPv4 delegated prefixes to be assigned to the network interface. You cannot \n use this option if you use the Ipv4PrefixCount option.

", + "smithy.api#xmlName": "Ipv4Prefix" + } + }, + "Ipv4PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "

The number of IPv4 delegated prefixes to be automatically assigned to the network interface. \n You cannot use this option if you use the Ipv4Prefix option.

" + } + }, + "Ipv6Prefixes": { + "target": "com.amazonaws.ec2#Ipv6PrefixList", + "traits": { + "smithy.api#documentation": "

One or more IPv6 delegated prefixes to be assigned to the network interface. You cannot \n use this option if you use the Ipv6PrefixCount option.

", + "smithy.api#xmlName": "Ipv6Prefix" + } + }, + "Ipv6PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "

The number of IPv6 delegated prefixes to be automatically assigned to the network interface. \n You cannot use this option if you use the Ipv6Prefix option.

" + } } }, "traits": { @@ -39869,6 +40893,14 @@ "value": "g3s.xlarge", "name": "g3s_xlarge" }, + { + "value": "g4ad.xlarge", + "name": "g4ad_xlarge" + }, + { + "value": "g4ad.2xlarge", + "name": "g4ad_2xlarge" + }, { "value": "g4ad.4xlarge", "name": "g4ad_4xlarge" @@ -40834,7 +41866,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "AccountId", - "smithy.api#documentation": "

The ID of the account that is making use of the Capacity Reservation.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that is making use of the Capacity Reservation.

", "smithy.api#xmlName": "accountId" } }, @@ -40842,7 +41874,7 @@ "target": "com.amazonaws.ec2#Integer", "traits": { "aws.protocols#ec2QueryName": "UsedInstanceCount", - "smithy.api#documentation": "

The number of instances the account currently has in the Capacity Reservation.

", + "smithy.api#documentation": "

The number of instances the Amazon Web Services account currently has in the Capacity Reservation.

", "smithy.api#xmlName": "usedInstanceCount" } } @@ -40931,7 +41963,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the AWS account that owns the internet gateway.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the internet gateway.

", "smithy.api#xmlName": "ownerId" } }, @@ -41094,6 +42126,15 @@ } } }, + "com.amazonaws.ec2#IpPrefixList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#IpRange": { "type": "structure", "members": { @@ -41139,6 +42180,79 @@ "com.amazonaws.ec2#Ipv4PoolEc2Id": { "type": "string" }, + "com.amazonaws.ec2#Ipv4PrefixList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv4PrefixSpecificationRequest", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv4PrefixListResponse": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv4PrefixSpecificationResponse", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv4PrefixSpecification": { + "type": "structure", + "members": { + "Ipv4Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv4Prefix", + "smithy.api#documentation": "

The IPv4 Prefix Delegation prefix. For information, see Prefix Delegation in the\n Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#xmlName": "ipv4Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes an IPv4 Prefix Delegation.

" + } + }, + "com.amazonaws.ec2#Ipv4PrefixSpecificationRequest": { + "type": "structure", + "members": { + "Ipv4Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The IPv4 Prefix Delegation prefix. For information, see Prefix Delegation in the\n Amazon Elastic Compute Cloud User Guide.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the IPv4 Prefix Delegation option for a network interface.

" + } + }, + "com.amazonaws.ec2#Ipv4PrefixSpecificationResponse": { + "type": "structure", + "members": { + "Ipv4Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv4Prefix", + "smithy.api#documentation": "

One or more IPv4 delegated prefixes assigned to the network interface.

", + "smithy.api#xmlName": "ipv4Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the IPv4 delegated prefixes assigned \n to a network interface.

" + } + }, + "com.amazonaws.ec2#Ipv4PrefixesList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv4PrefixSpecification", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#Ipv6Address": { "type": "string" }, @@ -41285,6 +42399,79 @@ } } }, + "com.amazonaws.ec2#Ipv6PrefixList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6PrefixSpecificationRequest", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6PrefixListResponse": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6PrefixSpecificationResponse", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6PrefixSpecification": { + "type": "structure", + "members": { + "Ipv6Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6Prefix", + "smithy.api#documentation": "

The IPv6 Prefix Delegation prefix.

", + "smithy.api#xmlName": "ipv6Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the IPv6 Prefix Delegation.

" + } + }, + "com.amazonaws.ec2#Ipv6PrefixSpecificationRequest": { + "type": "structure", + "members": { + "Ipv6Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The IPv6 Prefix Delegation prefix.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the IPv4 Prefix Delegation option for a network interface.

" + } + }, + "com.amazonaws.ec2#Ipv6PrefixSpecificationResponse": { + "type": "structure", + "members": { + "Ipv6Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6Prefix", + "smithy.api#documentation": "

One or more IPv6 delegated prefixes assigned to the network interface.

", + "smithy.api#xmlName": "ipv6Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the IPv6 delegated prefixes assigned \n to a network interface.

" + } + }, + "com.amazonaws.ec2#Ipv6PrefixesList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6PrefixSpecification", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#Ipv6Range": { "type": "structure", "members": { @@ -42003,7 +43190,7 @@ "target": "com.amazonaws.ec2#KmsKeyId", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.

", + "smithy.api#documentation": "

The ARN of the Key Management Service (KMS) CMK used for encryption.

", "smithy.api#xmlName": "kmsKeyId" } }, @@ -42068,7 +43255,7 @@ "KmsKeyId": { "target": "com.amazonaws.ec2#KmsKeyId", "traits": { - "smithy.api#documentation": "

The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for\n encryption.

" + "smithy.api#documentation": "

The ARN of the symmetric Key Management Service (KMS) CMK used for\n encryption.

" } }, "SnapshotId": { @@ -42178,13 +43365,13 @@ "target": "com.amazonaws.ec2#Boolean", "traits": { "aws.protocols#ec2QueryName": "Enabled", - "smithy.api#documentation": "

If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves; \n\t\totherwise, it is not enabled for AWS Nitro Enclaves.

", + "smithy.api#documentation": "

If this parameter is set to true, the instance is enabled for Amazon Web Services Nitro Enclaves; \n\t\totherwise, it is not enabled for Amazon Web Services Nitro Enclaves.

", "smithy.api#xmlName": "enabled" } } }, "traits": { - "smithy.api#documentation": "

Indicates whether the instance is enabled for AWS Nitro Enclaves.

" + "smithy.api#documentation": "

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.

" } }, "com.amazonaws.ec2#LaunchTemplateEnclaveOptionsRequest": { @@ -42193,12 +43380,12 @@ "Enabled": { "target": "com.amazonaws.ec2#Boolean", "traits": { - "smithy.api#documentation": "

To enable the instance for AWS Nitro Enclaves, set this parameter to true.

" + "smithy.api#documentation": "

To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to true.

" } } }, "traits": { - "smithy.api#documentation": "

Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, \n\t\tsee \n\t\t\tWhat is AWS Nitro Enclaves? in the AWS Nitro Enclaves User Guide.

" + "smithy.api#documentation": "

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, \n\t\tsee \n\t\t\tWhat is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.

" } }, "com.amazonaws.ec2#LaunchTemplateErrorCode": { @@ -42480,7 +43667,7 @@ "target": "com.amazonaws.ec2#Boolean", "traits": { "aws.protocols#ec2QueryName": "AssociateCarrierIpAddress", - "smithy.api#documentation": "

Indicates whether to associate a Carrier IP address with eth0 for a new network interface.

\n

Use this option when you launch an instance in a Wavelength Zone and want to associate\n a Carrier IP address with the network interface. For more information about Carrier IP\n addresses, see Carrier IP addresses in the AWS Wavelength Developer\n Guide.

", + "smithy.api#documentation": "

Indicates whether to associate a Carrier IP address with eth0 for a new network interface.

\n

Use this option when you launch an instance in a Wavelength Zone and want to associate\n a Carrier IP address with the network interface. For more information about Carrier IP\n addresses, see Carrier IP addresses in the Wavelength Developer\n Guide.

", "smithy.api#xmlName": "associateCarrierIpAddress" } }, @@ -42595,6 +43782,38 @@ "smithy.api#documentation": "

The index of the network card.

", "smithy.api#xmlName": "networkCardIndex" } + }, + "Ipv4Prefixes": { + "target": "com.amazonaws.ec2#Ipv4PrefixListResponse", + "traits": { + "aws.protocols#ec2QueryName": "Ipv4PrefixSet", + "smithy.api#documentation": "

One or more IPv4 delegated prefixes assigned to the network interface.

", + "smithy.api#xmlName": "ipv4PrefixSet" + } + }, + "Ipv4PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "aws.protocols#ec2QueryName": "Ipv4PrefixCount", + "smithy.api#documentation": "

The number of IPv4 delegated prefixes that AWS automatically assigned to the \n network interface.

", + "smithy.api#xmlName": "ipv4PrefixCount" + } + }, + "Ipv6Prefixes": { + "target": "com.amazonaws.ec2#Ipv6PrefixListResponse", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6PrefixSet", + "smithy.api#documentation": "

One or more IPv6 delegated prefixes assigned to the network interface.

", + "smithy.api#xmlName": "ipv6PrefixSet" + } + }, + "Ipv6PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6PrefixCount", + "smithy.api#documentation": "

The number of IPv6 delegated prefixes that AWS automatically assigned to the network \n interface.

", + "smithy.api#xmlName": "ipv6PrefixCount" + } } }, "traits": { @@ -42616,7 +43835,7 @@ "AssociateCarrierIpAddress": { "target": "com.amazonaws.ec2#Boolean", "traits": { - "smithy.api#documentation": "

Associates a Carrier IP address with eth0 for a new network interface.

\n

Use this option when you launch an instance in a Wavelength Zone and want to associate\n a Carrier IP address with the network interface. For more information about Carrier IP\n addresses, see Carrier IP addresses in the AWS Wavelength Developer\n Guide.

" + "smithy.api#documentation": "

Associates a Carrier IP address with eth0 for a new network interface.

\n

Use this option when you launch an instance in a Wavelength Zone and want to associate\n a Carrier IP address with the network interface. For more information about Carrier IP\n addresses, see Carrier IP addresses in the Wavelength Developer\n Guide.

" } }, "AssociatePublicIpAddress": { @@ -42703,6 +43922,32 @@ "traits": { "smithy.api#documentation": "

The index of the network card. Some instance types support multiple network cards. \n The primary network interface must be assigned to network card index 0. \n The default is network card index 0.

" } + }, + "Ipv4Prefixes": { + "target": "com.amazonaws.ec2#Ipv4PrefixList", + "traits": { + "smithy.api#documentation": "

One or more IPv4 delegated prefixes to be assigned to the network interface. You cannot use \n this option if you use the Ipv4PrefixCount option.

", + "smithy.api#xmlName": "Ipv4Prefix" + } + }, + "Ipv4PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "

The number of IPv4 delegated prefixes to be automatically assigned to the \n network interface. You cannot use this option if you use the Ipv4Prefix option.

" + } + }, + "Ipv6Prefixes": { + "target": "com.amazonaws.ec2#Ipv6PrefixList", + "traits": { + "smithy.api#documentation": "

One or more IPv6 delegated prefixes to be assigned to the network interface. You cannot \n use this option if you use the Ipv6PrefixCount option.

", + "smithy.api#xmlName": "Ipv6Prefix" + } + }, + "Ipv6PrefixCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "

The number of IPv6 delegated prefixes to be automatically assigned to the network \n interface. You cannot use this option if you use the Ipv6Prefix option.

" + } } }, "traits": { @@ -44643,7 +45888,7 @@ "target": "com.amazonaws.ec2#ModifyDefaultCreditSpecificationResult" }, "traits": { - "smithy.api#documentation": "

Modifies the default credit option for CPU usage of burstable performance instances.\n The default credit option is set at the account level per Region, and is specified\n per instance family. All new burstable performance instances in the account launch using\n the default credit option.

\n

\n ModifyDefaultCreditSpecification is an asynchronous operation, which works at an Region \n level and modifies the credit option for each Availability Zone. All zones in a\n Region are updated within five minutes. But if instances are launched during this\n operation, they might not get the new credit option until the zone is updated. To verify\n whether the update has occurred, you can call GetDefaultCreditSpecification and check\n DefaultCreditSpecification for updates.

\n

For more information, see Burstable\n performance instances in the Amazon EC2 User Guide.

" + "smithy.api#documentation": "

Modifies the default credit option for CPU usage of burstable performance instances.\n The default credit option is set at the account level per Amazon Web Services Region, and is specified\n per instance family. All new burstable performance instances in the account launch using\n the default credit option.

\n

\n ModifyDefaultCreditSpecification is an asynchronous operation, which works at an Amazon Web Services Region \n level and modifies the credit option for each Availability Zone. All zones in a\n Region are updated within five minutes. But if instances are launched during this\n operation, they might not get the new credit option until the zone is updated. To verify\n whether the update has occurred, you can call GetDefaultCreditSpecification and check\n DefaultCreditSpecification for updates.

\n

For more information, see Burstable\n performance instances in the Amazon EC2 User Guide.

" } }, "com.amazonaws.ec2#ModifyDefaultCreditSpecificationRequest": { @@ -44693,7 +45938,7 @@ "target": "com.amazonaws.ec2#ModifyEbsDefaultKmsKeyIdResult" }, "traits": { - "smithy.api#documentation": "

Changes the default customer master key (CMK) for EBS encryption by default for your account in this Region.

\n

AWS creates a unique AWS managed CMK in each Region for use with encryption by default. If\n you change the default CMK to a symmetric customer managed CMK, it is used instead of the AWS\n managed CMK. To reset the default CMK to the AWS managed CMK for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric CMKs.

\n

If you delete or disable the customer managed CMK that you specified for use with\n encryption by default, your instances will fail to launch.

\n

For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Changes the default KMS key for EBS encryption by default for your account in this Region.

\n \t

Amazon Web Services creates a unique Amazon Web Services managed KMS key in each Region for use with encryption by default. If\n you change the default KMS key to a symmetric customer managed KMS key, it is used instead of the Amazon Web Services\n managed KMS key. To reset the default KMS key to the Amazon Web Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric KMS keys.

\n

If you delete or disable the customer managed KMS key that you specified for use with\n encryption by default, your instances will fail to launch.

\n

For more information, see Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#ModifyEbsDefaultKmsKeyIdRequest": { @@ -44702,7 +45947,7 @@ "KmsKeyId": { "target": "com.amazonaws.ec2#KmsKeyId", "traits": { - "smithy.api#documentation": "

The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.\n If this parameter is not specified, your AWS managed CMK for EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the CMK using any of the following:

\n \n

AWS authenticates the CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

\n

Amazon EBS does not support asymmetric CMKs.

", + "smithy.api#documentation": "

The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS encryption.\n If this parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId is\n specified, the encrypted state must be true.

\n

You can specify the KMS key using any of the following:

\n \n

Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an ID, alias, or ARN that is not valid, \n the action can appear to complete, but eventually fails.

\n

Amazon EBS does not support asymmetric KMS keys.

", "smithy.api#required": {} } }, @@ -44721,7 +45966,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default CMK for encryption by default.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default KMS key for encryption by default.

", "smithy.api#xmlName": "kmsKeyId" } } @@ -45418,6 +46663,68 @@ } } }, + "com.amazonaws.ec2#ModifyInstanceEventWindow": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ModifyInstanceEventWindowRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ModifyInstanceEventWindowResult" + }, + "traits": { + "smithy.api#documentation": "

Modifies the specified event window.

\n

You can define either a set of time ranges or a cron expression when modifying the event\n window, but not both.

\n

To modify the targets associated with the event window, use the AssociateInstanceEventWindow and DisassociateInstanceEventWindow API.

\n

If Amazon Web Services has already scheduled an event, modifying an event window won't change the time\n of the scheduled event.

\n

For more information, see Define event windows for scheduled\n events in the Amazon EC2 User Guide.

" + } + }, + "com.amazonaws.ec2#ModifyInstanceEventWindowRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "

Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation. \n Otherwise, it is UnauthorizedOperation.

" + } + }, + "Name": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The name of the event window.

" + } + }, + "InstanceEventWindowId": { + "target": "com.amazonaws.ec2#InstanceEventWindowId", + "traits": { + "smithy.api#documentation": "

The ID of the event window.

", + "smithy.api#required": {} + } + }, + "TimeRanges": { + "target": "com.amazonaws.ec2#InstanceEventWindowTimeRangeRequestSet", + "traits": { + "smithy.api#documentation": "

The time ranges of the event window.

", + "smithy.api#xmlName": "TimeRange" + } + }, + "CronExpression": { + "target": "com.amazonaws.ec2#InstanceEventWindowCronExpression", + "traits": { + "smithy.api#documentation": "

The cron expression of the event window, for example, * 0-4,20-23 * * 1,5.

\n

Constraints:

\n \n

For more information about cron expressions, see cron on the Wikipedia\n website.

" + } + } + } + }, + "com.amazonaws.ec2#ModifyInstanceEventWindowResult": { + "type": "structure", + "members": { + "InstanceEventWindow": { + "target": "com.amazonaws.ec2#InstanceEventWindow", + "traits": { + "aws.protocols#ec2QueryName": "InstanceEventWindow", + "smithy.api#documentation": "

Information about the event window.

", + "smithy.api#xmlName": "instanceEventWindow" + } + } + } + }, "com.amazonaws.ec2#ModifyInstanceMetadataOptions": { "type": "operation", "input": { @@ -45880,7 +47187,7 @@ "target": "com.amazonaws.ec2#ModifySnapshotAttributeRequest" }, "traits": { - "smithy.api#documentation": "

Adds or removes permission settings for the specified snapshot. You may add or remove\n specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot\n do both in a single operation. If you need to both add and remove account IDs for a snapshot,\n you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

\n

Encrypted snapshots and snapshots with AWS Marketplace product codes cannot be made\n public. Snapshots encrypted with your default CMK cannot be shared with other accounts.

\n

For more information about modifying snapshot permissions, see Sharing snapshots in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Adds or removes permission settings for the specified snapshot. You may add or remove\n specified Amazon Web Services account IDs from a snapshot's list of create volume permissions, but you cannot\n do both in a single operation. If you need to both add and remove account IDs for a snapshot,\n you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

\n

Encrypted snapshots and snapshots with Amazon Web Services Marketplace product codes cannot be made\n public. Snapshots encrypted with your default KMS key cannot be shared with other accounts.

\n

For more information about modifying snapshot permissions, see Share a snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#ModifySnapshotAttributeRequest": { @@ -46583,7 +47890,7 @@ "target": "com.amazonaws.ec2#ModifyVolumeResult" }, "traits": { - "smithy.api#documentation": "

You can modify several parameters of an existing EBS volume, including volume size, volume\n type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance\n type, you might be able to apply these changes without stopping the instance or detaching the\n volume from it. For more information about modifying an EBS volume running Linux, see Modifying the size, IOPS, or\n type of an EBS volume on Linux. For more information about modifying an EBS volume\n running Windows, see Modifying the size, IOPS, or type of an EBS volume on Windows.

\n

When you complete a resize operation on your volume, you need to extend the volume's\n file-system size to take advantage of the new storage capacity. For information about\n extending a Linux file system, see Extending a Linux\n file system. For information about extending a Windows file system, see Extending a\n Windows file system.

\n

You can use CloudWatch Events to check the status of a modification to an EBS volume. For\n information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a\n modification using DescribeVolumesModifications. For information\n about tracking status changes using either method, see Monitoring volume\n modifications.

\n

With previous-generation instance types, resizing an EBS volume might require detaching and\n reattaching the volume or stopping and restarting the instance. For more information, see\n Amazon EBS Elastic \n Volumes (Linux) or Amazon EBS Elastic Volumes (Windows).

\n

If you reach the maximum volume modification rate per volume limit, you will need to wait\n at least six hours before applying further modifications to the affected EBS volume.

" + "smithy.api#documentation": "

You can modify several parameters of an existing EBS volume, including volume size, volume\n type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance\n type, you might be able to apply these changes without stopping the instance or detaching the\n volume from it. For more information about modifying EBS volumes, see Amazon EBS Elastic Volumes (Linux instances) \n or Amazon EBS Elastic Volumes (Windows instances).

\n

When you complete a resize operation on your volume, you need to extend the volume's\n file-system size to take advantage of the new storage capacity. For more information, see Extend a Linux file system or \n Extend a Windows file system.

\n

You can use CloudWatch Events to check the status of a modification to an EBS volume. For\n information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a\n modification using DescribeVolumesModifications. For information\n about tracking status changes using either method, see Monitor the progress of volume modifications.

\n

With previous-generation instance types, resizing an EBS volume might require detaching and\n reattaching the volume or stopping and restarting the instance.

\n

If you reach the maximum volume modification rate per volume limit, you must wait\n at least six hours before applying further modifications to the affected EBS volume.

" } }, "com.amazonaws.ec2#ModifyVolumeAttribute": { @@ -46640,25 +47947,25 @@ "Size": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The target size of the volume, in GiB. The target volume size must be greater than or\n equal to the existing size of the volume.

\n

The following are the supported volumes sizes for each volume type:

\n \n

Default: If no size is specified, the existing size is retained.

" + "smithy.api#documentation": "

The target size of the volume, in GiB. The target volume size must be greater than or\n equal to the existing size of the volume.

\n

The following are the supported volumes sizes for each volume type:

\n \n

Default: The existing size is retained.

" } }, "VolumeType": { "target": "com.amazonaws.ec2#VolumeType", "traits": { - "smithy.api#documentation": "

The target EBS volume type of the volume. For more information, see Amazon EBS volume types in the Amazon Elastic Compute Cloud User Guide.

\n

Default: If no type is specified, the existing type is retained.

" + "smithy.api#documentation": "

The target EBS volume type of the volume. For more information, see Amazon EBS volume types in the Amazon Elastic Compute Cloud User Guide.

\n

Default: The existing type is retained.

" } }, "Iops": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The target IOPS rate of the volume. This parameter is valid only for gp3, io1, and io2 volumes.

\n

The following are the supported values for each volume type:

\n \n

Default: If no IOPS value is specified, the existing value is retained, unless a volume type is modified that supports different values.

" + "smithy.api#documentation": "

The target IOPS rate of the volume. This parameter is valid only for gp3, io1, and io2 volumes.

\n

The following are the supported values for each volume type:

\n \n

Default: The existing value is retained if you keep the same volume type. If you change\n the volume type to io1, io2, or gp3, the default is 3,000.

" } }, "Throughput": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The target throughput of the volume, in MiB/s. This parameter is valid only for gp3 volumes. \n The maximum value is 1,000.

\n

Default: If no throughput value is specified, the existing value is retained.

\n \t

Valid Range: Minimum value of 125. Maximum value of 1000.

" + "smithy.api#documentation": "

The target throughput of the volume, in MiB/s. This parameter is valid only for gp3 volumes. \n The maximum value is 1,000.

\n

Default: The existing value is retained if the source and target volume type is gp3.\n Otherwise, the default value is 125.

\n \t

Valid Range: Minimum value of 125. Maximum value of 1000.

" } }, "MultiAttachEnabled": { @@ -47031,7 +48338,7 @@ "target": "com.amazonaws.ec2#ModifyVpcPeeringConnectionOptionsResult" }, "traits": { - "smithy.api#documentation": "

Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

\n \n

If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries\n from the local VPC. This ensures that queries from the local VPC resolve to private IP\n addresses in the peer VPC. This option is not available if the peered VPCs are in\n different AWS accounts or different Regions. For peered VPCs in different AWS accounts,\n each AWS account owner must initiate a separate request to modify the peering connection\n options. For inter-region peering connections, you must use the Region for the requester\n VPC to modify the requester VPC peering options and the Region for the accepter VPC to\n modify the accepter VPC peering options. To verify which VPCs are the accepter and the\n requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

" + "smithy.api#documentation": "

Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

\n \n

If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution \n for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP\n addresses in the peer VPC. This option is not available if the peered VPCs are in different\n different Amazon Web Services accounts or different Regions. For peered VPCs in different \n Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request \n to modify the peering connection options. For inter-region peering connections, you must use the \n Region for the requester VPC to modify the requester VPC peering options and the Region for the \n accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and \n the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

" } }, "com.amazonaws.ec2#ModifyVpcPeeringConnectionOptionsRequest": { @@ -47747,7 +49054,7 @@ "target": "com.amazonaws.ec2#ProvisionedBandwidth", "traits": { "aws.protocols#ec2QueryName": "ProvisionedBandwidth", - "smithy.api#documentation": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", + "smithy.api#documentation": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through \n the Support Center.

", "smithy.api#xmlName": "provisionedBandwidth" } }, @@ -47948,7 +49255,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the AWS account that owns the network ACL.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the network ACL.

", "smithy.api#xmlName": "ownerId" } } @@ -48277,7 +49584,7 @@ "target": "com.amazonaws.ec2#ArnList", "traits": { "aws.protocols#ec2QueryName": "FilterInArnSet", - "smithy.api#documentation": "

The Amazon Resource Names (ARN) of the AWS resources that the path must traverse.

", + "smithy.api#documentation": "

The Amazon Resource Names (ARN) of the Amazon Web Services resources that the path must traverse.

", "smithy.api#xmlName": "filterInArnSet" } }, @@ -48419,7 +49726,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "Source", - "smithy.api#documentation": "

The AWS resource that is the source of the path.

", + "smithy.api#documentation": "

The Amazon Web Services resource that is the source of the path.

", "smithy.api#xmlName": "source" } }, @@ -48427,7 +49734,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "Destination", - "smithy.api#documentation": "

The AWS resource that is the destination of the path.

", + "smithy.api#documentation": "

The Amazon Web Services resource that is the destination of the path.

", "smithy.api#xmlName": "destination" } }, @@ -48435,7 +49742,7 @@ "target": "com.amazonaws.ec2#IpAddress", "traits": { "aws.protocols#ec2QueryName": "SourceIp", - "smithy.api#documentation": "

The IP address of the AWS resource that is the source of the path.

", + "smithy.api#documentation": "

The IP address of the Amazon Web Services resource that is the source of the path.

", "smithy.api#xmlName": "sourceIp" } }, @@ -48443,7 +49750,7 @@ "target": "com.amazonaws.ec2#IpAddress", "traits": { "aws.protocols#ec2QueryName": "DestinationIp", - "smithy.api#documentation": "

The IP address of the AWS resource that is the destination of the path.

", + "smithy.api#documentation": "

The IP address of the Amazon Web Services resource that is the destination of the path.

", "smithy.api#xmlName": "destinationIp" } }, @@ -48584,7 +49891,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The account ID of the owner of the network interface.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the network interface.

", "smithy.api#xmlName": "ownerId" } }, @@ -48612,11 +49919,27 @@ "smithy.api#xmlName": "privateIpAddressesSet" } }, + "Ipv4Prefixes": { + "target": "com.amazonaws.ec2#Ipv4PrefixesList", + "traits": { + "aws.protocols#ec2QueryName": "Ipv4PrefixSet", + "smithy.api#documentation": "

The IPv4 Prefix Delegation prefixes\n that are\n assigned to the network interface.

", + "smithy.api#xmlName": "ipv4PrefixSet" + } + }, + "Ipv6Prefixes": { + "target": "com.amazonaws.ec2#Ipv6PrefixesList", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6PrefixSet", + "smithy.api#documentation": "

The IPv6 Prefix Delegation prefixes\n that are\n assigned to the network interface.

", + "smithy.api#xmlName": "ipv6PrefixSet" + } + }, "RequesterId": { "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "RequesterId", - "smithy.api#documentation": "

The alias or account ID of the principal or service that created the network interface.

", + "smithy.api#documentation": "

The alias or Amazon Web Services account ID of the principal or service that created the network interface.

", "smithy.api#xmlName": "requesterId" } }, @@ -48792,7 +50115,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "InstanceOwnerId", - "smithy.api#documentation": "

The account ID of the owner of the instance.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the instance.

", "smithy.api#xmlName": "instanceOwnerId" } }, @@ -48947,7 +50270,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "AwsAccountId", - "smithy.api#documentation": "

The account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account ID.

", "smithy.api#xmlName": "awsAccountId" } }, @@ -51786,7 +53109,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "UserId", - "smithy.api#documentation": "

The account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account ID.

", "smithy.api#xmlName": "userId" } }, @@ -52418,7 +53741,7 @@ "target": "com.amazonaws.ec2#ReleaseAddressRequest" }, "traits": { - "smithy.api#documentation": "

Releases the specified Elastic IP address.

\n

[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it\n\t\t\t\tfrom any instance that it's associated with. To disassociate an Elastic IP address without\n\t\t\t\treleasing it, use DisassociateAddress.

\n

[Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address\n\t\t\t before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

\n

After releasing an Elastic IP address, it is released to the IP address pool. \n Be sure to update your DNS records and any servers or devices that communicate with the address. \n If you attempt to release an Elastic IP address that you already released, you'll get an\n AuthFailure error if the address is already allocated to another account.

\n

[EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it.\n For more information, see AllocateAddress.

" + "smithy.api#documentation": "

Releases the specified Elastic IP address.

\n

[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it\n\t\t\t\tfrom any instance that it's associated with. To disassociate an Elastic IP address without\n\t\t\t\treleasing it, use DisassociateAddress.

\n

[Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address\n\t\t\t before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

\n

After releasing an Elastic IP address, it is released to the IP address pool. \n Be sure to update your DNS records and any servers or devices that communicate with the address. \n If you attempt to release an Elastic IP address that you already released, you'll get an\n AuthFailure error if the address is already allocated to another Amazon Web Services account.

\n

[EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it.\n For more information, see AllocateAddress.

" } }, "com.amazonaws.ec2#ReleaseAddressRequest": { @@ -52838,7 +54161,7 @@ "target": "com.amazonaws.ec2#ReplaceRouteRequest" }, "traits": { - "smithy.api#documentation": "

Replaces an existing route within a route table in a VPC. You must provide only one of\n the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC\n peering connection, network interface, egress-only internet gateway, or transit\n gateway.

\n

For more information, see Route Tables in the\n Amazon Virtual Private Cloud User Guide.

" + "smithy.api#documentation": "

Replaces an existing route within a route table in a VPC. You must provide only one of\n the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC\n peering connection, network interface, egress-only internet gateway, or transit\n gateway.

\n

For more information, see Route tables in the\n Amazon Virtual Private Cloud User Guide.

" } }, "com.amazonaws.ec2#ReplaceRouteRequest": { @@ -52972,7 +54295,7 @@ "target": "com.amazonaws.ec2#ReplaceRouteTableAssociationResult" }, "traits": { - "smithy.api#documentation": "

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation\n completes, the subnet or gateway uses the routes in the new route table. For more\n information about route tables, see Route\n Tables in the Amazon Virtual Private Cloud User Guide.

\n

You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

" + "smithy.api#documentation": "

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation\n completes, the subnet or gateway uses the routes in the new route table. For more\n information about route tables, see Route\n tables in the Amazon Virtual Private Cloud User Guide.

\n

You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

" } }, "com.amazonaws.ec2#ReplaceRouteTableAssociationRequest": { @@ -53419,19 +54742,19 @@ "HibernationOptions": { "target": "com.amazonaws.ec2#LaunchTemplateHibernationOptionsRequest", "traits": { - "smithy.api#documentation": "

Indicates whether an instance is enabled for hibernation. This parameter is valid only\n if the instance meets the hibernation\n prerequisites. For\n more information, see Hibernate Your Instance in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Indicates whether an instance is enabled for hibernation. This parameter is valid only\n if the instance meets the hibernation\n prerequisites. For\n more information, see Hibernate your instance in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "MetadataOptions": { "target": "com.amazonaws.ec2#LaunchTemplateInstanceMetadataOptionsRequest", "traits": { - "smithy.api#documentation": "

The metadata options for the instance. For more information, see Instance Metadata and User Data in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

The metadata options for the instance. For more information, see Instance metadata and user data in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "EnclaveOptions": { "target": "com.amazonaws.ec2#LaunchTemplateEnclaveOptionsRequest", "traits": { - "smithy.api#documentation": "

Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, \n\t\t\tsee \n\t\t\t\tWhat is AWS Nitro Enclaves? in the AWS Nitro Enclaves User Guide.

\t\t\n\t\t

You can't enable AWS Nitro Enclaves and hibernation on the same instance.

" + "smithy.api#documentation": "

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, \n\t\t\tsee \n\t\t\t\tWhat is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.

\t\t\n\t\t

You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance.

" } } }, @@ -53801,7 +55124,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the account that owns the reservation.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the reservation.

", "smithy.api#xmlName": "ownerId" } }, @@ -53809,7 +55132,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "RequesterId", - "smithy.api#documentation": "

The ID of the requester that launched the instances on your behalf (for example, \n Management Console or Auto Scaling).

", + "smithy.api#documentation": "

The ID of the requester that launched the instances on your behalf (for example, \n Amazon Web Services Management Console or Auto Scaling).

", "smithy.api#xmlName": "requesterId" } }, @@ -54681,7 +56004,7 @@ "target": "com.amazonaws.ec2#ResetEbsDefaultKmsKeyIdResult" }, "traits": { - "smithy.api#documentation": "

Resets the default customer master key (CMK) for EBS encryption for your account in this Region \n to the AWS managed CMK for EBS.

\n

After resetting the default CMK to the AWS managed CMK, you can continue to encrypt by a \n customer managed CMK by specifying it when you create the volume. For more information, see\n Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Resets the default KMS key for EBS encryption for your account in this Region \n to the Amazon Web Services managed KMS key for EBS.

\n

After resetting the default KMS key to the Amazon Web Services managed KMS key, you can continue to encrypt by a \n customer managed KMS key by specifying it when you create the volume. For more information, see\n Amazon EBS encryption\n in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#ResetEbsDefaultKmsKeyIdRequest": { @@ -54702,7 +56025,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default CMK for EBS encryption by default.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by default.

", "smithy.api#xmlName": "kmsKeyId" } } @@ -54906,7 +56229,7 @@ "target": "com.amazonaws.ec2#ResetSnapshotAttributeRequest" }, "traits": { - "smithy.api#documentation": "

Resets permission settings for the specified snapshot.

\n

For more information about modifying snapshot permissions, see Sharing snapshots in the\n Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Resets permission settings for the specified snapshot.

\n

For more information about modifying snapshot permissions, see Share a snapshot in the\n Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#ResetSnapshotAttributeRequest": { @@ -55028,6 +56351,10 @@ "value": "instance", "name": "instance" }, + { + "value": "instance-event-window", + "name": "instance_event_window" + }, { "value": "internet-gateway", "name": "internet_gateway" @@ -55376,7 +56703,7 @@ "target": "com.amazonaws.ec2#LaunchTemplateCpuOptions", "traits": { "aws.protocols#ec2QueryName": "CpuOptions", - "smithy.api#documentation": "

The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User\n\t\t\t\tGuide.

", + "smithy.api#documentation": "

The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User\n\t\t\t\tGuide.

", "smithy.api#xmlName": "cpuOptions" } }, @@ -55400,7 +56727,7 @@ "target": "com.amazonaws.ec2#LaunchTemplateHibernationOptions", "traits": { "aws.protocols#ec2QueryName": "HibernationOptions", - "smithy.api#documentation": "

Indicates whether an instance is configured for hibernation. For more information, see\n Hibernate\n Your Instance in the Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

Indicates whether an instance is configured for hibernation. For more information, see\n Hibernate\n your instance in the Amazon Elastic Compute Cloud User Guide.

", "smithy.api#xmlName": "hibernationOptions" } }, @@ -55408,7 +56735,7 @@ "target": "com.amazonaws.ec2#LaunchTemplateInstanceMetadataOptions", "traits": { "aws.protocols#ec2QueryName": "MetadataOptions", - "smithy.api#documentation": "

The metadata options for the instance. For more information, see Instance Metadata and User Data in the\n Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

The metadata options for the instance. For more information, see Instance metadata and user data in the\n Amazon Elastic Compute Cloud User Guide.

", "smithy.api#xmlName": "metadataOptions" } }, @@ -55416,7 +56743,7 @@ "target": "com.amazonaws.ec2#LaunchTemplateEnclaveOptions", "traits": { "aws.protocols#ec2QueryName": "EnclaveOptions", - "smithy.api#documentation": "

Indicates whether the instance is enabled for AWS Nitro Enclaves.

", + "smithy.api#documentation": "

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.

", "smithy.api#xmlName": "enclaveOptions" } } @@ -55543,6 +56870,15 @@ } } }, + "com.amazonaws.ec2#ResultRange": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 20, + "max": 500 + } + } + }, "com.amazonaws.ec2#RevokeClientVpnIngress": { "type": "operation", "input": { @@ -55877,7 +57213,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "DestinationPrefixListId", - "smithy.api#documentation": "

The prefix of the AWS service.

", + "smithy.api#documentation": "

The prefix of the Amazon Web Service.

", "smithy.api#xmlName": "destinationPrefixListId" } }, @@ -55909,7 +57245,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "InstanceOwnerId", - "smithy.api#documentation": "

The AWS account ID of the owner of the instance.

", + "smithy.api#documentation": "

The ID of Amazon Web Services account that owns the instance.

", "smithy.api#xmlName": "instanceOwnerId" } }, @@ -56083,7 +57419,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the AWS account that owns the route table.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the route table.

", "smithy.api#xmlName": "ownerId" } } @@ -57812,7 +59148,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "GroupOwnerId", - "smithy.api#documentation": "

The ID of the account that owns the security group.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the security group.

", "smithy.api#xmlName": "groupOwnerId" } }, @@ -58494,7 +59830,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the\n volume encryption key for the parent volume.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the\n volume encryption key for the parent volume.

", "smithy.api#xmlName": "kmsKeyId" } }, @@ -58502,7 +59838,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The AWS account ID of the EBS snapshot owner.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the EBS snapshot.

", "smithy.api#xmlName": "ownerId" } }, @@ -58542,7 +59878,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "StatusMessage", - "smithy.api#documentation": "

Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails\n (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error\n state details to help you diagnose why the error occurred. This parameter is only returned by\n DescribeSnapshots.

", + "smithy.api#documentation": "

Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails\n (for example, if the proper Key Management Service (KMS) permissions are not obtained) this field displays error\n state details to help you diagnose why the error occurred. This parameter is only returned by\n DescribeSnapshots.

", "smithy.api#xmlName": "statusMessage" } }, @@ -58566,7 +59902,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerAlias", - "smithy.api#documentation": "

The AWS owner alias, from an Amazon-maintained list (amazon). This is not \n the user-configured AWS account alias set using the IAM console.

", + "smithy.api#documentation": "

The Amazon Web Services owner alias, from an Amazon-maintained list (amazon). This is not \n the user-configured Amazon Web Services account alias set using the IAM console.

", "smithy.api#xmlName": "ownerAlias" } }, @@ -58574,7 +59910,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OutpostArn", - "smithy.api#documentation": "

The ARN of the AWS Outpost on which the snapshot is stored. For more information, see EBS Local Snapshot on Outposts in the \n \t\tAmazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the \n \t\tAmazon Elastic Compute Cloud User Guide.

", "smithy.api#xmlName": "outpostArn" } }, @@ -58834,7 +60170,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OutpostArn", - "smithy.api#documentation": "

The ARN of the AWS Outpost on which the snapshot is stored. For more information, see EBS Local Snapshot on Outposts in the \n \t\tAmazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the \n \t\tAmazon Elastic Compute Cloud User Guide.

", "smithy.api#xmlName": "outpostArn" } } @@ -59038,7 +60374,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The account ID of the account.

", + "smithy.api#documentation": "

The Amazon Web Services account ID of the account.

", "smithy.api#xmlName": "ownerId" } }, @@ -59882,7 +61218,7 @@ "BlockDurationMinutes": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The required duration for the Spot Instances (also known as Spot blocks), in minutes.\n This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).

\n

The duration period starts as soon as your Spot Instance receives its instance ID. At\n the end of the duration period, Amazon EC2 marks the Spot Instance for termination and\n provides a Spot Instance termination notice, which gives the instance a two-minute\n warning before it terminates.

\n

You can't specify an Availability Zone group or a launch group if you specify a\n duration.

\n

New accounts or accounts with no previous billing history with Amazon Web Services are not eligible\n for Spot Instances with a defined duration (also known as Spot blocks).

" + "smithy.api#documentation": "

Deprecated.

" } }, "ValidUntil": { @@ -60348,7 +61684,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to Ensure Idempotency.

", + "smithy.api#documentation": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to ensure idempotency.

", "smithy.api#idempotencyToken": {}, "smithy.api#required": {} } @@ -60817,7 +62153,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the AWS account that owns the subnet.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the subnet.

", "smithy.api#xmlName": "ownerId" } }, @@ -60957,6 +62293,97 @@ ] } }, + "com.amazonaws.ec2#SubnetCidrReservation": { + "type": "structure", + "members": { + "SubnetCidrReservationId": { + "target": "com.amazonaws.ec2#SubnetCidrReservationId", + "traits": { + "aws.protocols#ec2QueryName": "SubnetCidrReservationId", + "smithy.api#documentation": "

The ID of the subnet CIDR reservation.

", + "smithy.api#xmlName": "subnetCidrReservationId" + } + }, + "SubnetId": { + "target": "com.amazonaws.ec2#SubnetId", + "traits": { + "aws.protocols#ec2QueryName": "SubnetId", + "smithy.api#documentation": "

The ID of the subnet.

", + "smithy.api#xmlName": "subnetId" + } + }, + "Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Cidr", + "smithy.api#documentation": "

The CIDR that has been reserved.

", + "smithy.api#xmlName": "cidr" + } + }, + "ReservationType": { + "target": "com.amazonaws.ec2#SubnetCidrReservationType", + "traits": { + "aws.protocols#ec2QueryName": "ReservationType", + "smithy.api#documentation": "

The type of reservation.

", + "smithy.api#xmlName": "reservationType" + } + }, + "OwnerId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "OwnerId", + "smithy.api#documentation": "

The ID of the account that owns the subnet CIDR reservation.

", + "smithy.api#xmlName": "ownerId" + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Description", + "smithy.api#documentation": "

The\n description\n assigned to the subnet CIDR\n reservation.

", + "smithy.api#xmlName": "description" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "

The tags assigned to the subnet CIDR reservation.

", + "smithy.api#xmlName": "tagSet" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes a subnet CIDR reservation.

" + } + }, + "com.amazonaws.ec2#SubnetCidrReservationId": { + "type": "string" + }, + "com.amazonaws.ec2#SubnetCidrReservationList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#SubnetCidrReservation", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#SubnetCidrReservationType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "prefix", + "name": "prefix" + }, + { + "value": "explicit", + "name": "explicit" + } + ] + } + }, "com.amazonaws.ec2#SubnetId": { "type": "string" }, @@ -61200,7 +62627,7 @@ "target": "com.amazonaws.ec2#ResourceType", "traits": { "aws.protocols#ec2QueryName": "ResourceType", - "smithy.api#documentation": "

The type of resource to tag. Currently, the resource types that support tagging on\n creation are: capacity-reservation | carrier-gateway |\n client-vpn-endpoint | customer-gateway |\n \t dedicated-host | dhcp-options | egress-only-internet-gateway | elastic-ip | elastic-gpu |\n \t export-image-task\n | export-instance-task | fleet | fpga-image |\n \t host-reservation | image| import-image-task |\n import-snapshot-task | instance |\n internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 |\n \t key-pair | launch-template | local-gateway-route-table-vpc-association | placement-group |\n \t prefix-list | natgateway | network-acl | network-interface | \n \t reserved-instances |route-table | security-group| snapshot | spot-fleet-request\n | spot-instances-request | snapshot | subnet |\n traffic-mirror-filter | traffic-mirror-session |\n traffic-mirror-target | transit-gateway |\n \t transit-gateway-attachment | transit-gateway-multicast-domain | transit-gateway-route-table |\n volume |vpc | vpc-peering-connection |\n vpc-endpoint (for interface and gateway endpoints) |\n vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log |\n vpn-connection | vpn-gateway.

\n

To tag a resource after it has been created, see CreateTags.

", + "smithy.api#documentation": "

The type of resource to tag. Currently, the resource types that support tagging on\n creation are: capacity-reservation | carrier-gateway |\n client-vpn-endpoint | customer-gateway |\n \t dedicated-host | dhcp-options | egress-only-internet-gateway | elastic-ip | elastic-gpu |\n \t export-image-task\n | export-instance-task | fleet | fpga-image |\n \t host-reservation | image| import-image-task |\n \t import-snapshot-task | instance | instance-event-window |\n internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 |\n \t key-pair | launch-template | local-gateway-route-table-vpc-association | placement-group |\n \t prefix-list | natgateway | network-acl | network-interface | \n \t reserved-instances |route-table | security-group| snapshot | spot-fleet-request\n | spot-instances-request | snapshot | subnet |\n traffic-mirror-filter | traffic-mirror-session |\n traffic-mirror-target | transit-gateway |\n \t transit-gateway-attachment | transit-gateway-multicast-domain | transit-gateway-route-table |\n volume |vpc | vpc-peering-connection |\n vpc-endpoint (for interface and gateway endpoints) |\n \t vpc-endpoint-service (for Amazon Web Services PrivateLink) | vpc-flow-log |\n vpn-connection | vpn-gateway.

\n

To tag a resource after it has been created, see CreateTags.

", "smithy.api#xmlName": "resourceType" } }, @@ -64765,12 +66192,27 @@ "target": "com.amazonaws.ec2#UnassignIpv6AddressesResult" }, "traits": { - "smithy.api#documentation": "

Unassigns one or more IPv6 addresses from a network interface.

" + "smithy.api#documentation": "

Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.

" } }, "com.amazonaws.ec2#UnassignIpv6AddressesRequest": { "type": "structure", "members": { + "Ipv6Addresses": { + "target": "com.amazonaws.ec2#Ipv6AddressList", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6Addresses", + "smithy.api#documentation": "

The IPv6 addresses to unassign from the network interface.

", + "smithy.api#xmlName": "ipv6Addresses" + } + }, + "Ipv6Prefixes": { + "target": "com.amazonaws.ec2#IpPrefixList", + "traits": { + "smithy.api#documentation": "

One or moreIPv6 Prefix Delegation prefixes to unassign from the network interface.

", + "smithy.api#xmlName": "Ipv6Prefix" + } + }, "NetworkInterfaceId": { "target": "com.amazonaws.ec2#NetworkInterfaceId", "traits": { @@ -64779,15 +66221,6 @@ "smithy.api#required": {}, "smithy.api#xmlName": "networkInterfaceId" } - }, - "Ipv6Addresses": { - "target": "com.amazonaws.ec2#Ipv6AddressList", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6Addresses", - "smithy.api#documentation": "

The IPv6 addresses to unassign from the network interface.

", - "smithy.api#required": {}, - "smithy.api#xmlName": "ipv6Addresses" - } } } }, @@ -64809,6 +66242,14 @@ "smithy.api#documentation": "

The IPv6 addresses that have been unassigned from the network interface.

", "smithy.api#xmlName": "unassignedIpv6Addresses" } + }, + "UnassignedIpv6Prefixes": { + "target": "com.amazonaws.ec2#IpPrefixList", + "traits": { + "aws.protocols#ec2QueryName": "UnassignedIpv6PrefixSet", + "smithy.api#documentation": "

The IPv4 Prefix Delegation prefixes that have been unassigned from the network interface.

", + "smithy.api#xmlName": "unassignedIpv6PrefixSet" + } } } }, @@ -64818,7 +66259,7 @@ "target": "com.amazonaws.ec2#UnassignPrivateIpAddressesRequest" }, "traits": { - "smithy.api#documentation": "

Unassigns one or more secondary private IP addresses from a network interface.

" + "smithy.api#documentation": "

Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.

" } }, "com.amazonaws.ec2#UnassignPrivateIpAddressesRequest": { @@ -64838,9 +66279,15 @@ "traits": { "aws.protocols#ec2QueryName": "PrivateIpAddress", "smithy.api#documentation": "

The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.

", - "smithy.api#required": {}, "smithy.api#xmlName": "privateIpAddress" } + }, + "Ipv4Prefixes": { + "target": "com.amazonaws.ec2#IpPrefixList", + "traits": { + "smithy.api#documentation": "

The IPv4 Prefix Delegation prefixes to unassign from the network interface.

", + "smithy.api#xmlName": "Ipv4Prefix" + } } }, "traits": { @@ -65041,7 +66488,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the error that occurred. For more information about errors, see Error Codes.

" + "smithy.api#documentation": "

Information about the error that occurred. For more information about errors, see Error codes.

" } }, "com.amazonaws.ec2#UnsuccessfulItemList": { @@ -65618,7 +67065,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the\n volume encryption key for the volume.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the\n volume encryption key for the volume.

", "smithy.api#xmlName": "kmsKeyId" } }, @@ -66444,7 +67891,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The ID of the AWS account that owns the VPC.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the VPC.

", "smithy.api#xmlName": "ownerId" } }, @@ -67282,7 +68729,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "OwnerId", - "smithy.api#documentation": "

The AWS account ID of the VPC owner.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the VPC.

", "smithy.api#xmlName": "ownerId" } }, @@ -67911,6 +69358,41 @@ "target": "com.amazonaws.ec2#VpnTunnelOptionsSpecification" } }, + "com.amazonaws.ec2#WeekDay": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "sunday", + "name": "sunday" + }, + { + "value": "monday", + "name": "monday" + }, + { + "value": "tuesday", + "name": "tuesday" + }, + { + "value": "wednesday", + "name": "wednesday" + }, + { + "value": "thursday", + "name": "thursday" + }, + { + "value": "friday", + "name": "friday" + }, + { + "value": "saturday", + "name": "saturday" + } + ] + } + }, "com.amazonaws.ec2#WithdrawByoipCidr": { "type": "operation", "input": { diff --git a/codegen/sdk-codegen/aws-models/ecs.2014-11-13.json b/codegen/sdk-codegen/aws-models/ecs.2014-11-13.json index 2c4ae4d00d3..7fd0b1b2a8d 100644 --- a/codegen/sdk-codegen/aws-models/ecs.2014-11-13.json +++ b/codegen/sdk-codegen/aws-models/ecs.2014-11-13.json @@ -245,7 +245,7 @@ "name": "ecs" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Amazon Elastic Container Service\n\t\t

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes\n\t\t\tit easy to run, stop, and manage Docker containers on a cluster. You can host your\n\t\t\tcluster on a serverless infrastructure that is managed by Amazon ECS by launching your\n\t\t\tservices or tasks on AWS Fargate. For more control, you can host your tasks on a cluster\n\t\t\tof Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage.

\n\t\t

Amazon ECS makes it easy to launch and stop container-based applications with simple API\n\t\t\tcalls, allows you to get the state of your cluster from a centralized service, and gives\n\t\t\tyou access to many familiar Amazon EC2 features.

\n\t\t

You can use Amazon ECS to schedule the placement of containers across your cluster based on\n\t\t\tyour resource needs, isolation policies, and availability requirements. Amazon ECS eliminates\n\t\t\tthe need for you to operate your own cluster management and configuration management\n\t\t\tsystems or worry about scaling your management infrastructure.

", + "smithy.api#documentation": "Amazon Elastic Container Service\n\t\t

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes\n\t\t\tit easy to run, stop, and manage Docker containers on a cluster. You can host your\n\t\t\tcluster on a serverless infrastructure that is managed by Amazon ECS by launching your\n\t\t\tservices or tasks on Fargate. For more control, you can host your tasks on a cluster\n\t\t\tof Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage.

\n\t\t

Amazon ECS makes it easy to launch and stop container-based applications with simple API\n\t\t\tcalls, allows you to get the state of your cluster from a centralized service, and gives\n\t\t\tyou access to many familiar Amazon EC2 features.

\n\t\t

You can use Amazon ECS to schedule the placement of containers across your cluster based on\n\t\t\tyour resource needs, isolation policies, and availability requirements. Amazon ECS eliminates\n\t\t\tthe need for you to operate your own cluster management and configuration management\n\t\t\tsystems or worry about scaling your management infrastructure.

", "smithy.api#title": "Amazon EC2 Container Service", "smithy.api#xmlNamespace": { "uri": "http://ecs.amazonaws.com/doc/2014-11-13/" @@ -409,7 +409,7 @@ "managedTerminationProtection": { "target": "com.amazonaws.ecs#ManagedTerminationProtection", "traits": { - "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection.

\n\t\t \n\t\t\t

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection will not work.

\n\t\t
\n\t\t

When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in\n\t\t\tan Auto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions enabled as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide.

\n\t\t

When managed termination protection is disabled, your Amazon EC2 instances are not\n\t\t\tprotected from termination when the Auto Scaling group scales in.

" + "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection.

\n\t\t \n\t\t\t

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection will not work.

\n\t\t
\n\t\t

When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in\n\t\t\tan Auto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions enabled as well. For more information, see Instance Protection in the Auto Scaling User Guide.

\n\t\t

When managed termination protection is disabled, your Amazon EC2 instances are not\n\t\t\tprotected from termination when the Auto Scaling group scales in.

" } } }, @@ -429,7 +429,7 @@ "managedTerminationProtection": { "target": "com.amazonaws.ecs#ManagedTerminationProtection", "traits": { - "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection.

\n\t\t \n\t\t\t

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection will not work.

\n\t\t
\n\t\t

When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in\n\t\t\tan Auto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions enabled as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide.

\n\t\t

When managed termination protection is disabled, your Amazon EC2 instances are not\n\t\t\tprotected from termination when the Auto Scaling group scales in.

" + "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection.

\n\t\t \n\t\t\t

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection will not work.

\n\t\t
\n\t\t

When managed termination protection is enabled, Amazon ECS prevents the Amazon EC2 instances in\n\t\t\tan Auto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions enabled as well. For more information, see Instance Protection in the Auto Scaling User Guide.

\n\t\t

When managed termination protection is disabled, your Amazon EC2 instances are not\n\t\t\tprotected from termination when the Auto Scaling group scales in.

" } } }, @@ -443,14 +443,14 @@ "subnets": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The IDs of the subnets associated with the task or service. There is a limit of 16\n\t\t\tsubnets that can be specified per AwsVpcConfiguration.

\n\t\t \n\t\t \n\t\t\t

All specified subnets must be from the same VPC.

\n\t\t
", + "smithy.api#documentation": "

The IDs of the subnets associated with the task or service. There is a limit of 16\n\t\t\tsubnets that can be specified per AwsVpcConfiguration.

\n\t\t\n\t\t \n\t\t\t

All specified subnets must be from the same VPC.

\n\t\t
", "smithy.api#required": {} } }, "securityGroups": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The IDs of the security groups associated with the task or service. If you do not\n\t\t\tspecify a security group, the default security group for the VPC is used. There is a\n\t\t\tlimit of 5 security groups that can be specified per\n\t\t\tAwsVpcConfiguration.

\n\t\t \n\t\t \n\t\t\t

All specified security groups must be from the same VPC.

\n\t\t
" + "smithy.api#documentation": "

The IDs of the security groups associated with the task or service. If you do not\n\t\t\tspecify a security group, the default security group for the VPC is used. There is a\n\t\t\tlimit of 5 security groups that can be specified per\n\t\t\tAwsVpcConfiguration.

\n\t\t\n\t\t \n\t\t\t

All specified security groups must be from the same VPC.

\n\t\t
" } }, "assignPublicIp": { @@ -472,7 +472,7 @@ } }, "traits": { - "smithy.api#documentation": "

Your AWS account has been blocked. For more information, contact AWS Support.

", + "smithy.api#documentation": "

Your Amazon Web Services account has been blocked. For more information, contact \n\t\t\t\tAmazon Web Services Support.

", "smithy.api#error": "client" } }, @@ -533,7 +533,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and\n\t\t\torganize it. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and\n\t\t\torganize it. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } }, @@ -603,7 +603,7 @@ } }, "traits": { - "smithy.api#documentation": "

The details of a capacity provider strategy. A capacity provider strategy can be set\n\t\t\twhen using the RunTask or CreateCluster APIs or as\n\t\t\tthe default capacity provider strategy for a cluster with the CreateCluster API.

\n\t\t

Only capacity providers that are already associated with a cluster and have an\n\t\t\t\tACTIVE or UPDATING status can be used in a capacity\n\t\t\tprovider strategy. The PutClusterCapacityProviders API is used to\n\t\t\tassociate a capacity provider with a cluster.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New Auto Scaling group capacity providers can be\n\t\t\tcreated with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be used in a\n\t\t\tcapacity provider strategy.

" + "smithy.api#documentation": "

The details of a capacity provider strategy. A capacity provider strategy can be set\n\t\t\twhen using the RunTask or CreateCluster APIs or as\n\t\t\tthe default capacity provider strategy for a cluster with the CreateCluster API.

\n\t\t

Only capacity providers that are already associated with a cluster and have an\n\t\t\t\tACTIVE or UPDATING status can be used in a capacity\n\t\t\tprovider strategy. The PutClusterCapacityProviders API is used to\n\t\t\tassociate a capacity provider with a cluster.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New Auto Scaling group capacity providers can be\n\t\t\tcreated with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be used in a\n\t\t\tcapacity provider strategy.

" } }, "com.amazonaws.ecs#CapacityProviderStrategyItemBase": { @@ -679,7 +679,7 @@ "clusterArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs namespace, followed by the Region of the cluster, the AWS account ID of the cluster owner, the cluster namespace, and then the cluster name. For example, arn:aws:ecs:region:012345678910:cluster/test.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs namespace, followed by the Region of the cluster, the account ID of the cluster owner, the cluster namespace, and then the cluster name. For example, arn:aws:ecs:region:012345678910:cluster/test.

" } }, "clusterName": { @@ -733,7 +733,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "settings": { @@ -1232,7 +1232,7 @@ "privileged": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the host\n\t\t\tcontainer instance (similar to the root user). This parameter maps to\n\t\t\t\tPrivileged in the Create a container section of the\n\t\t\tDocker Remote API and the --privileged option to docker run.

\n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the host\n\t\t\tcontainer instance (similar to the root user). This parameter maps to\n\t\t\t\tPrivileged in the Create a container section of the\n\t\t\tDocker Remote API and the --privileged option to docker run.

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" } }, "readonlyRootFilesystem": { @@ -1364,13 +1364,13 @@ "containerInstanceArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

" } }, "ec2InstanceId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ID of the container instance. For Amazon EC2 instances, this value is the Amazon EC2\n\t\t\tinstance ID. For external instances, this value is the AWS Systems Manager managed instance ID.

" + "smithy.api#documentation": "

The ID of the container instance. For Amazon EC2 instances, this value is the Amazon EC2\n\t\t\tinstance ID. For external instances, this value is the Amazon Web Services Systems Manager managed instance ID.

" } }, "capacityProviderName": { @@ -1460,7 +1460,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } }, @@ -1668,7 +1668,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new capacity provider. Capacity providers are associated with an Amazon ECS\n\t\t\tcluster and are used in capacity provider strategies to facilitate cluster auto\n\t\t\tscaling.

\n\t\t

Only capacity providers using an Auto Scaling group can be created. Amazon ECS tasks on\n\t\t\tAWS Fargate use the FARGATE and FARGATE_SPOT capacity providers\n\t\t\twhich are already created and available to all accounts in Regions supported by\n\t\t\tAWS Fargate.

" + "smithy.api#documentation": "

Creates a new capacity provider. Capacity providers are associated with an Amazon ECS\n\t\t\tcluster and are used in capacity provider strategies to facilitate cluster auto\n\t\t\tscaling.

\n\t\t

Only capacity providers using an Auto Scaling group can be created. Amazon ECS tasks on\n\t\t\tFargate use the FARGATE and FARGATE_SPOT capacity providers\n\t\t\twhich are already created and available to all accounts in Regions supported by\n\t\t\tFargate.

" } }, "com.amazonaws.ecs#CreateCapacityProviderRequest": { @@ -1691,7 +1691,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } } @@ -1727,7 +1727,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new Amazon ECS cluster. By default, your account receives a default\n\t\t\tcluster when you launch your first container instance. However, you can create your own\n\t\t\tcluster with a unique name with the CreateCluster action.

\n\t\t \n\t\t\t

When you call the CreateCluster API operation, Amazon ECS attempts to\n\t\t\t\tcreate the Amazon ECS service-linked role for your account so that required resources in\n\t\t\t\tother AWS services can be managed on your behalf. However, if the IAM user that\n\t\t\t\tmakes the call does not have permissions to create the service-linked role, it is\n\t\t\t\tnot created. For more information, see Using\n\t\t\t\t\tService-Linked Roles for Amazon ECS in the\n\t\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t
" + "smithy.api#documentation": "

Creates a new Amazon ECS cluster. By default, your account receives a default\n\t\t\tcluster when you launch your first container instance. However, you can create your own\n\t\t\tcluster with a unique name with the CreateCluster action.

\n\t\t \n\t\t\t

When you call the CreateCluster API operation, Amazon ECS attempts to\n\t\t\t\tcreate the Amazon ECS service-linked role for your account so that required resources in\n\t\t\t\tother Amazon Web Services services can be managed on your behalf. However, if the IAM user that\n\t\t\t\tmakes the call does not have permissions to create the service-linked role, it is\n\t\t\t\tnot created. For more information, see Using\n\t\t\t\t\tService-Linked Roles for Amazon ECS in the\n\t\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t
" } }, "com.amazonaws.ecs#CreateClusterRequest": { @@ -1742,7 +1742,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "settings": { @@ -1760,7 +1760,7 @@ "capacityProviders": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The short name of one or more capacity providers to associate with the cluster. A\n\t\t\tcapacity provider must be associated with a cluster before it can be included as part of\n\t\t\tthe default capacity provider strategy of the cluster or used in a capacity provider\n\t\t\tstrategy when calling the CreateService or RunTask\n\t\t\tactions.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created and not already associated with another cluster. New\n\t\t\tAuto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

" + "smithy.api#documentation": "

The short name of one or more capacity providers to associate with the cluster. A\n\t\t\tcapacity provider must be associated with a cluster before it can be included as part of\n\t\t\tthe default capacity provider strategy of the cluster or used in a capacity provider\n\t\t\tstrategy when calling the CreateService or RunTask\n\t\t\tactions.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created and not already associated with another cluster. New\n\t\t\tAuto Scaling group capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

" } }, "defaultCapacityProviderStrategy": { @@ -1845,7 +1845,7 @@ "loadBalancers": { "target": "com.amazonaws.ecs#LoadBalancers", "traits": { - "smithy.api#documentation": "

A load balancer object representing the load balancers to use with your service. For\n\t\t\tmore information, see Service Load Balancing in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

If the service is using the rolling update (ECS) deployment controller\n\t\t\tand using either an Application Load Balancer or Network Load Balancer, you must specify one or more target group ARNs to\n\t\t\tattach to the service. The service-linked role is required for services that make use of\n\t\t\tmultiple target groups. For more information, see Using service-linked roles for Amazon ECS in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

If the service is using the CODE_DEPLOY deployment controller, the\n\t\t\tservice is required to use either an Application Load Balancer or Network Load Balancer. When creating an AWS CodeDeploy deployment\n\t\t\tgroup, you specify two target groups (referred to as a targetGroupPair).\n\t\t\tDuring a deployment, AWS CodeDeploy determines which task set in your service has the status\n\t\t\t\tPRIMARY and associates one target group with it, and then associates\n\t\t\tthe other target group with the replacement task set. The load balancer can also have up\n\t\t\tto two listeners: a required listener for production traffic and an optional listener\n\t\t\tthat allows you perform validation tests with Lambda functions before routing production\n\t\t\ttraffic to it.

\n\t\t

After you create a service using the ECS deployment controller, the load\n\t\t\tbalancer name or target group ARN, container name, and container port specified in the\n\t\t\tservice definition are immutable. If you are using the CODE_DEPLOY\n\t\t\tdeployment controller, these values can be changed when updating the service.

\n\t\t

For Application Load Balancers and Network Load Balancers, this object must contain the load balancer target group ARN,\n\t\t\tthe container name (as it appears in a container definition), and the container port to\n\t\t\taccess from the load balancer. The load balancer name parameter must be omitted. When a\n\t\t\ttask from this service is placed on a container instance, the container instance and\n\t\t\tport combination is registered as a target in the target group specified here.

\n\t\t

For Classic Load Balancers, this object must contain the load balancer name, the container name (as it\n\t\t\tappears in a container definition), and the container port to access from the load\n\t\t\tbalancer. The target group ARN parameter must be omitted. When a task from this service\n\t\t\tis placed on a container instance, the container instance is registered with the load\n\t\t\tbalancer specified here.

\n\t\t

Services with tasks that use the awsvpc network mode (for example, those\n\t\t\twith the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are\n\t\t\tnot supported. Also, when you create any target groups for these services, you must\n\t\t\tchoose ip as the target type, not instance, because tasks that\n\t\t\tuse the awsvpc network mode are associated with an elastic network\n\t\t\tinterface, not an Amazon EC2 instance.

" + "smithy.api#documentation": "

A load balancer object representing the load balancers to use with your service. For\n\t\t\tmore information, see Service Load Balancing in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

If the service is using the rolling update (ECS) deployment controller\n\t\t\tand using either an Application Load Balancer or Network Load Balancer, you must specify one or more target group ARNs to\n\t\t\tattach to the service. The service-linked role is required for services that make use of\n\t\t\tmultiple target groups. For more information, see Using service-linked roles for Amazon ECS in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t

If the service is using the CODE_DEPLOY deployment controller, the\n\t\t\tservice is required to use either an Application Load Balancer or Network Load Balancer. When creating an CodeDeploy deployment\n\t\t\tgroup, you specify two target groups (referred to as a targetGroupPair).\n\t\t\tDuring a deployment, CodeDeploy determines which task set in your service has the status\n\t\t\t\tPRIMARY and associates one target group with it, and then associates\n\t\t\tthe other target group with the replacement task set. The load balancer can also have up\n\t\t\tto two listeners: a required listener for production traffic and an optional listener\n\t\t\tthat allows you perform validation tests with Lambda functions before routing production\n\t\t\ttraffic to it.

\n\t\t

After you create a service using the ECS deployment controller, the load\n\t\t\tbalancer name or target group ARN, container name, and container port specified in the\n\t\t\tservice definition are immutable. If you are using the CODE_DEPLOY\n\t\t\tdeployment controller, these values can be changed when updating the service.

\n\t\t

For Application Load Balancers and Network Load Balancers, this object must contain the load balancer target group ARN,\n\t\t\tthe container name (as it appears in a container definition), and the container port to\n\t\t\taccess from the load balancer. The load balancer name parameter must be omitted. When a\n\t\t\ttask from this service is placed on a container instance, the container instance and\n\t\t\tport combination is registered as a target in the target group specified here.

\n\t\t

For Classic Load Balancers, this object must contain the load balancer name, the container name (as it\n\t\t\tappears in a container definition), and the container port to access from the load\n\t\t\tbalancer. The target group ARN parameter must be omitted. When a task from this service\n\t\t\tis placed on a container instance, the container instance is registered with the load\n\t\t\tbalancer specified here.

\n\t\t

Services with tasks that use the awsvpc network mode (for example, those\n\t\t\twith the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are\n\t\t\tnot supported. Also, when you create any target groups for these services, you must\n\t\t\tchoose ip as the target type, not instance, because tasks that\n\t\t\tuse the awsvpc network mode are associated with an elastic network\n\t\t\tinterface, not an Amazon EC2 instance.

" } }, "serviceRegistries": { @@ -1869,7 +1869,7 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The infrastructure on which to run your service. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

\n\t\t

The FARGATE launch type runs your tasks on AWS Fargate On-Demand\n\t\t\tinfrastructure.

\n\t\t \n\t\t\t

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see AWS Fargate capacity providers in the\n\t\t\t\t\tAmazon ECS User Guide for AWS Fargate.

\n\t\t
\n\t\t

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n\t\t

The EXTERNAL launch type runs your tasks on your on-premise server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n\t\t

A service can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

" + "smithy.api#documentation": "

The infrastructure on which to run your service. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

\n\t\t

The FARGATE launch type runs your tasks on Fargate On-Demand\n\t\t\tinfrastructure.

\n\t\t \n\t\t\t

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see Fargate capacity providers in the\n\t\t\t\t\tAmazon ECS User Guide for Fargate.

\n\t\t
\n\t\t

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n\t\t

The EXTERNAL launch type runs your tasks on your on-premise server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n\t\t

A service can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

" } }, "capacityProviderStrategy": { @@ -1881,7 +1881,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version that your tasks in the service are running on. A platform version\n\t\t\tis specified only for tasks using the Fargate launch type. If one isn't\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see AWS Fargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version that your tasks in the service are running on. A platform version\n\t\t\tis specified only for tasks using the Fargate launch type. If one isn't\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see Fargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" } }, "role": { @@ -1935,7 +1935,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define. When a\n\t\t\tservice is deleted, the tags are deleted as well.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define. When a\n\t\t\tservice is deleted, the tags are deleted as well.

\n

The following basic restrictions apply to tags:

\n " } }, "enableECSManagedTags": { @@ -1964,7 +1964,7 @@ "service": { "target": "com.amazonaws.ecs#Service", "traits": { - "smithy.api#documentation": "

The full description of your service following the create call.

\n\t\t

If a service is using the ECS deployment controller, the\n\t\t\t\tdeploymentController and taskSets parameters will not be\n\t\t\treturned.

\n\t\t

If the service is using the CODE_DEPLOY deployment controller, the\n\t\t\t\tdeploymentController, taskSets and\n\t\t\t\tdeployments parameters will be returned, however the\n\t\t\t\tdeployments parameter will be an empty list.

" + "smithy.api#documentation": "

The full description of your service following the create call.

\n\t\t

A service will return either a capacityProviderStrategy or\n\t\t\t\tlaunchType parameter, but not both, depending on which one was\n\t\t\tspecified during creation.

\n\t\t

If a service is using the ECS deployment controller, the\n\t\t\t\tdeploymentController and taskSets parameters will not be\n\t\t\treturned.

\n\t\t

If the service is using the CODE_DEPLOY deployment controller, the\n\t\t\t\tdeploymentController, taskSets and\n\t\t\t\tdeployments parameters will be returned, however the\n\t\t\t\tdeployments parameter will be an empty list.

" } } } @@ -2033,7 +2033,7 @@ "externalId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

An optional non-unique tag that identifies this task set in external systems. If the\n\t\t\ttask set is associated with a service discovery registry, the tasks in this task set\n\t\t\twill have the ECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute set to the provided\n\t\t\tvalue.

" + "smithy.api#documentation": "

An optional non-unique tag that identifies this task set in external systems. If the\n\t\t\ttask set is associated with a service discovery registry, the tasks in this task set\n\t\t\twill have the ECS_TASK_SET_EXTERNAL_ID Cloud Map attribute set to the provided\n\t\t\tvalue.

" } }, "taskDefinition": { @@ -2070,7 +2070,7 @@ "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use for the task set.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

" + "smithy.api#documentation": "

The capacity provider strategy to use for the task set.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

" } }, "platformVersion": { @@ -2094,7 +2094,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define. When a\n\t\t\tservice is deleted, the tags are deleted as well.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define. When a\n\t\t\tservice is deleted, the tags are deleted as well.

\n

The following basic restrictions apply to tags:

\n " } } } @@ -2105,7 +2105,7 @@ "taskSet": { "target": "com.amazonaws.ecs#TaskSet", "traits": { - "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an\n\t\t\t\tEXTERNAL deployment. A task set includes details such as the desired\n\t\t\tnumber of tasks, how many tasks are running, and whether the task set serves production\n\t\t\ttraffic.

" + "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an\n\t\t\t\tEXTERNAL deployment. A task set includes details such as the desired\n\t\t\tnumber of tasks, how many tasks are running, and whether the task set serves production\n\t\t\ttraffic.

" } } } @@ -2541,7 +2541,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version on which your tasks in the service are running. A platform\n\t\t\tversion is only specified for tasks using the Fargate launch type. If one\n\t\t\tis not specified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see AWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version on which your tasks in the service are running. A platform\n\t\t\tversion is only specified for tasks using the Fargate launch type. If one\n\t\t\tis not specified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "networkConfiguration": { @@ -2621,7 +2621,7 @@ "type": { "target": "com.amazonaws.ecs#DeploymentControllerType", "traits": { - "smithy.api#documentation": "

The deployment controller type to use.

\n\t\t

There are three deployment controller types available:

\n\t\t
\n
ECS
\n
\n\t\t\t\t\t

The rolling update (ECS) deployment type involves replacing\n\t\t\t\t\t\tthe current running version of the container with the latest version. The\n\t\t\t\t\t\tnumber of containers Amazon ECS adds or removes from the service during a rolling\n\t\t\t\t\t\tupdate is controlled by adjusting the minimum and maximum number of healthy\n\t\t\t\t\t\ttasks allowed during a service deployment, as specified in the DeploymentConfiguration.

\n\t\t\t\t
\n
CODE_DEPLOY
\n
\n\t\t\t\t\t

The blue/green (CODE_DEPLOY) deployment type uses the\n\t\t\t\t\t\tblue/green deployment model powered by AWS CodeDeploy, which allows you to verify a\n\t\t\t\t\t\tnew deployment of a service before sending production traffic to it.

\n\t\t\t\t
\n
EXTERNAL
\n
\n\t\t\t\t\t

The external (EXTERNAL) deployment type enables you to use\n\t\t\t\t\t\tany third-party deployment controller for full control over the deployment\n\t\t\t\t\t\tprocess for an Amazon ECS service.

\n\t\t\t\t
\n
", + "smithy.api#documentation": "

The deployment controller type to use.

\n\t\t

There are three deployment controller types available:

\n\t\t
\n
ECS
\n
\n\t\t\t\t\t

The rolling update (ECS) deployment type involves replacing\n\t\t\t\t\t\tthe current running version of the container with the latest version. The\n\t\t\t\t\t\tnumber of containers Amazon ECS adds or removes from the service during a rolling\n\t\t\t\t\t\tupdate is controlled by adjusting the minimum and maximum number of healthy\n\t\t\t\t\t\ttasks allowed during a service deployment, as specified in the DeploymentConfiguration.

\n\t\t\t\t
\n
CODE_DEPLOY
\n
\n\t\t\t\t\t

The blue/green (CODE_DEPLOY) deployment type uses the\n\t\t\t\t\t\tblue/green deployment model powered by CodeDeploy, which allows you to verify a\n\t\t\t\t\t\tnew deployment of a service before sending production traffic to it.

\n\t\t\t\t
\n
EXTERNAL
\n
\n\t\t\t\t\t

The external (EXTERNAL) deployment type enables you to use\n\t\t\t\t\t\tany third-party deployment controller for full control over the deployment\n\t\t\t\t\t\tprocess for an Amazon ECS service.

\n\t\t\t\t
\n
", "smithy.api#required": {} } } @@ -2712,7 +2712,7 @@ "containerInstance": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The container instance ID or full ARN of the container instance to deregister.\n\t\t\tThe ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

", + "smithy.api#documentation": "

The container instance ID or full ARN of the container instance to deregister.\n\t\t\tThe ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

", "smithy.api#required": {} } }, @@ -3127,7 +3127,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that is applied to the task definition to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that is applied to the task definition to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } } @@ -3440,7 +3440,7 @@ "containerInstance": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The container instance ID or full ARN of the container instance.\n\t\t\tThe ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

" + "smithy.api#documentation": "

The container instance ID or full ARN of the container instance.\n\t\t\tThe ARN contains the arn:aws:ecs namespace, followed by the Region of the container instance, the account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID.

" } }, "cluster": { @@ -3664,7 +3664,7 @@ } }, "traits": { - "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on AWS Fargate. For more information, see Fargate task\n\t\t\t\tstorage in the Amazon ECS User Guide for AWS Fargate.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on AWS Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" + "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on Fargate. For more information, see Fargate task\n\t\t\t\tstorage in the Amazon ECS User Guide for Fargate.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" } }, "com.amazonaws.ecs#ExecuteCommand": { @@ -3705,7 +3705,7 @@ "kmsKeyId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

Specify an AWS Key Management Service key ID to encrypt the data between the local\n\t\t\tclient and the container.

" + "smithy.api#documentation": "

Specify an Key Management Service key ID to encrypt the data between the local client\n\t\t\tand the container.

" } }, "logging": { @@ -3867,14 +3867,14 @@ "credentialsParameter": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The authorization credential option to use. The authorization credential options can\n\t\t\tbe provided using either the Amazon Resource Name (ARN) of an AWS Secrets Manager secret or AWS Systems Manager\n\t\t\tParameter Store parameter. The ARNs refer to the stored credentials.

", + "smithy.api#documentation": "

The authorization credential option to use. The authorization credential options can\n\t\t\tbe provided using either the Amazon Resource Name (ARN) of an Secrets Manager secret or SSM\n\t\t\tParameter Store parameter. The ARNs refer to the stored credentials.

", "smithy.api#required": {} } }, "domain": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

A fully qualified domain name hosted by an AWS Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on\n\t\t\tAmazon EC2.

", + "smithy.api#documentation": "

A fully qualified domain name hosted by an Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on\n\t\t\tAmazon EC2.

", "smithy.api#required": {} } } @@ -3957,7 +3957,7 @@ "options": { "target": "com.amazonaws.ecs#FirelensConfigurationOptionsMap", "traits": { - "smithy.api#documentation": "

The options to use when configuring the log router. This field is optional and can be\n\t\t\tused to specify a custom configuration file or to add additional metadata, such as the\n\t\t\ttask, task definition, cluster, and container instance details to the log event. If\n\t\t\tspecified, the syntax to use is\n\t\t\t\t\"options\":{\"enable-ecs-log-metadata\":\"true|false\",\"config-file-type:\"s3|file\",\"config-file-value\":\"arn:aws:s3:::mybucket/fluent.conf|filepath\"}.\n\t\t\tFor more information, see Creating\n\t\t\t\ta Task Definition that Uses a FireLens Configuration in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

Tasks hosted on AWS Fargate only support the file configuration file\n\t\t\t\ttype.

\n\t\t
" + "smithy.api#documentation": "

The options to use when configuring the log router. This field is optional and can be\n\t\t\tused to specify a custom configuration file or to add additional metadata, such as the\n\t\t\ttask, task definition, cluster, and container instance details to the log event. If\n\t\t\tspecified, the syntax to use is\n\t\t\t\t\"options\":{\"enable-ecs-log-metadata\":\"true|false\",\"config-file-type:\"s3|file\",\"config-file-value\":\"arn:aws:s3:::mybucket/fluent.conf|filepath\"}.\n\t\t\tFor more information, see Creating\n\t\t\t\ta Task Definition that Uses a FireLens Configuration in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

Tasks hosted on Fargate only support the file configuration file\n\t\t\t\ttype.

\n\t\t
" } } }, @@ -4031,7 +4031,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing a container health check. Health check parameters that are\n\t\t\tspecified in a container definition override any Docker health checks that exist in the\n\t\t\tcontainer image (such as those specified in a parent image or from the image's\n\t\t\tDockerfile).

\n\t\t

You can view the health status of both individual containers and a task with the\n\t\t\tDescribeTasks API operation or when viewing the task details in the console.

\n\t\t

The following describes the possible healthStatus values for a\n\t\t\tcontainer:

\n\t\t \n\t\t

The following describes the possible healthStatus values for a task. The\n\t\t\tcontainer health check status of nonessential containers do not have an effect on the\n\t\t\thealth status of a task.

\n\t\t \n\t\t

If a task is run manually, and not as part of a service, the task will continue its\n\t\t\tlifecycle regardless of its health status. For tasks that are part of a service, if the\n\t\t\ttask reports as unhealthy then the task will be stopped and the service scheduler will\n\t\t\treplace it.

\n\t\t

The following are notes about container health check support:

\n\t\t " + "smithy.api#documentation": "

An object representing a container health check. Health check parameters that are\n\t\t\tspecified in a container definition override any Docker health checks that exist in the\n\t\t\tcontainer image (such as those specified in a parent image or from the image's\n\t\t\tDockerfile).

\n\t\t

You can view the health status of both individual containers and a task with the\n\t\t\tDescribeTasks API operation or when viewing the task details in the console.

\n\t\t

The following describes the possible healthStatus values for a\n\t\t\tcontainer:

\n\t\t \n\t\t

The following describes the possible healthStatus values for a task. The\n\t\t\tcontainer health check status of nonessential containers do not have an effect on the\n\t\t\thealth status of a task.

\n\t\t \n\t\t

If a task is run manually, and not as part of a service, the task will continue its\n\t\t\tlifecycle regardless of its health status. For tasks that are part of a service, if the\n\t\t\ttask reports as unhealthy then the task will be stopped and the service scheduler will\n\t\t\treplace it.

\n\t\t

The following are notes about container health check support:

\n\t\t " } }, "com.amazonaws.ecs#HealthStatus": { @@ -4189,7 +4189,7 @@ "add": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The Linux capabilities for the container that have been added to the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapAdd in the\n\t\t\tCreate a container section of the Docker Remote API and the\n\t\t\t\t--cap-add option to docker\n\t\t\t\trun.

\n\t\t \n\t\t\t

Tasks launched on AWS Fargate only support adding the SYS_PTRACE kernel\n\t\t\t\tcapability.

\n\t\t
\n\t\t

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" + "smithy.api#documentation": "

The Linux capabilities for the container that have been added to the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapAdd in the\n\t\t\tCreate a container section of the Docker Remote API and the\n\t\t\t\t--cap-add option to docker\n\t\t\t\trun.

\n\t\t \n\t\t\t

Tasks launched on Fargate only support adding the SYS_PTRACE kernel\n\t\t\t\tcapability.

\n\t\t
\n\t\t

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" } }, "drop": { @@ -5067,7 +5067,7 @@ "logDriver": { "target": "com.amazonaws.ecs#LogDriver", "traits": { - "smithy.api#documentation": "

The log driver to use for the container.

\n\t\t

For tasks on AWS Fargate, the supported log drivers are awslogs,\n\t\t\t\tsplunk, and awsfirelens.

\n\t\t

For tasks hosted on Amazon EC2 instances, the supported log drivers are\n\t\t\t\tawslogs, fluentd, gelf,\n\t\t\t\tjson-file, journald,\n\t\t\t\tlogentries,syslog, splunk, and\n\t\t\t\tawsfirelens.

\n\t\t

For more information about using the awslogs log driver, see Using\n\t\t\t\tthe awslogs log driver in the Amazon Elastic Container Service Developer Guide.

\n\t\t

For more information about using the awsfirelens log driver, see Custom log routing in the Amazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

If you have a custom driver that is not listed, you can fork the Amazon ECS container\n\t\t\t\tagent project that is available\n\t\t\t\t\ton GitHub and customize it to work with that driver. We encourage you to\n\t\t\t\tsubmit pull requests for changes that you would like to have included. However, we\n\t\t\t\tdo not currently provide support for running modified copies of this\n\t\t\t\tsoftware.

\n\t\t
", + "smithy.api#documentation": "

The log driver to use for the container.

\n\t\t

For tasks on Fargate, the supported log drivers are awslogs,\n\t\t\t\tsplunk, and awsfirelens.

\n\t\t

For tasks hosted on Amazon EC2 instances, the supported log drivers are\n\t\t\t\tawslogs, fluentd, gelf,\n\t\t\t\tjson-file, journald,\n\t\t\t\tlogentries,syslog, splunk, and\n\t\t\t\tawsfirelens.

\n\t\t

For more information about using the awslogs log driver, see Using\n\t\t\t\tthe awslogs log driver in the Amazon Elastic Container Service Developer Guide.

\n\t\t

For more information about using the awsfirelens log driver, see Custom log routing in the Amazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

If you have a custom driver that is not listed, you can fork the Amazon ECS container\n\t\t\t\tagent project that is available\n\t\t\t\t\ton GitHub and customize it to work with that driver. We encourage you to\n\t\t\t\tsubmit pull requests for changes that you would like to have included. However, we\n\t\t\t\tdo not currently provide support for running modified copies of this\n\t\t\t\tsoftware.

\n\t\t
", "smithy.api#required": {} } }, @@ -5085,7 +5085,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log configuration for the container. This parameter maps to LogConfig\n\t\t\tin the Create a container section of the Docker Remote API and the\n\t\t\t\t--log-driver option to \n docker\n\t\t\t\t\trun\n .

\n\t\t

By default, containers use the same logging driver that the Docker daemon uses;\n\t\t\thowever the container may use a different logging driver than the Docker daemon by\n\t\t\tspecifying a log driver configuration in the container definition. For more information\n\t\t\ton the options for different supported log drivers, see Configure logging\n\t\t\t\tdrivers in the Docker documentation.

\n\t\t

The following should be noted when specifying a log configuration for your\n\t\t\tcontainers:

\n\t\t " + "smithy.api#documentation": "

The log configuration for the container. This parameter maps to LogConfig\n\t\t\tin the Create a container section of the Docker Remote API and the\n\t\t\t\t--log-driver option to \n docker\n\t\t\t\t\trun\n .

\n\t\t

By default, containers use the same logging driver that the Docker daemon uses;\n\t\t\thowever the container may use a different logging driver than the Docker daemon by\n\t\t\tspecifying a log driver configuration in the container definition. For more information\n\t\t\ton the options for different supported log drivers, see Configure logging\n\t\t\t\tdrivers in the Docker documentation.

\n\t\t

The following should be noted when specifying a log configuration for your\n\t\t\tcontainers:

\n\t\t " } }, "com.amazonaws.ecs#LogConfigurationOptionsMap": { @@ -5957,14 +5957,14 @@ "capacityProviders": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The name of one or more capacity providers to associate with the cluster.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", + "smithy.api#documentation": "

The name of one or more capacity providers to associate with the cluster.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", "smithy.api#required": {} } }, "defaultCapacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use by default for the cluster.

\n\t\t

When creating a service or running a task on a cluster, if no capacity provider or\n\t\t\tlaunch type is specified then the default capacity provider strategy for the cluster is\n\t\t\tused.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", + "smithy.api#documentation": "

The capacity provider strategy to use by default for the cluster.

\n\t\t

When creating a service or running a task on a cluster, if no capacity provider or\n\t\t\tlaunch type is specified then the default capacity provider strategy for the cluster is\n\t\t\tused.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", "smithy.api#required": {} } } @@ -6058,7 +6058,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value, both of which you\n\t\t\tdefine.

\n

The following basic restrictions apply to tags:

\n " } } } @@ -6094,7 +6094,7 @@ } ], "traits": { - "smithy.api#documentation": "

Registers a new task definition from the supplied family and\n\t\t\t\tcontainerDefinitions. Optionally, you can add data volumes to your\n\t\t\tcontainers with the volumes parameter. For more information about task\n\t\t\tdefinition parameters and defaults, see Amazon ECS Task\n\t\t\t\tDefinitions in the Amazon Elastic Container Service Developer Guide.

\n\t\t

You can specify an IAM role for your task with the taskRoleArn parameter.\n\t\t\tWhen you specify an IAM role for a task, its containers can then use the latest versions\n\t\t\tof the AWS CLI or SDKs to make API requests to the AWS services that are specified in\n\t\t\tthe IAM policy associated with the role. For more information, see IAM\n\t\t\t\tRoles for Tasks in the Amazon Elastic Container Service Developer Guide.

\n\t\t

You can specify a Docker networking mode for the containers in your task definition\n\t\t\twith the networkMode parameter. The available network modes correspond to\n\t\t\tthose described in Network\n\t\t\t\tsettings in the Docker run reference. If you specify the awsvpc\n\t\t\tnetwork mode, the task is allocated an elastic network interface, and you must specify a\n\t\t\t\tNetworkConfiguration when you create a service or run a task with\n\t\t\tthe task definition. For more information, see Task Networking\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Registers a new task definition from the supplied family and\n\t\t\t\tcontainerDefinitions. Optionally, you can add data volumes to your\n\t\t\tcontainers with the volumes parameter. For more information about task\n\t\t\tdefinition parameters and defaults, see Amazon ECS Task\n\t\t\t\tDefinitions in the Amazon Elastic Container Service Developer Guide.

\n\t\t

You can specify an IAM role for your task with the taskRoleArn parameter.\n\t\t\tWhen you specify an IAM role for a task, its containers can then use the latest versions\n\t\t\tof the CLI or SDKs to make API requests to the Amazon Web Services services that are specified in\n\t\t\tthe IAM policy associated with the role. For more information, see IAM\n\t\t\t\tRoles for Tasks in the Amazon Elastic Container Service Developer Guide.

\n\t\t

You can specify a Docker networking mode for the containers in your task definition\n\t\t\twith the networkMode parameter. The available network modes correspond to\n\t\t\tthose described in Network\n\t\t\t\tsettings in the Docker run reference. If you specify the awsvpc\n\t\t\tnetwork mode, the task is allocated an elastic network interface, and you must specify a\n\t\t\t\tNetworkConfiguration when you create a service or run a task with\n\t\t\tthe task definition. For more information, see Task Networking\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#RegisterTaskDefinitionRequest": { @@ -6116,13 +6116,13 @@ "executionRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent\n permission to make AWS API calls on your behalf. The task execution IAM role is required\n depending on the requirements of your task. For more information, see Amazon ECS task\n execution IAM role in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent\n permission to make Amazon Web Services API calls on your behalf. The task execution IAM role is required\n depending on the requirements of your task. For more information, see Amazon ECS task\n execution IAM role in the Amazon Elastic Container Service Developer Guide.

" } }, "networkMode": { "target": "com.amazonaws.ecs#NetworkMode", "traits": { - "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 instances, any network mode can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n \n

Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants with the\n ecs-init package, or AWS Fargate infrastructure support the\n awsvpc network mode.

\n
\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

Docker for Windows uses different network modes than Docker for Linux. When you\n register a task definition with Windows containers, you must not specify a network mode.\n If you use the console to register a task definition with Windows containers, you must\n choose the network mode object.

\n

For more information, see Network\n settings in the Docker run reference.

" + "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

For more information, see Network\n settings in the Docker run reference.

" } }, "containerDefinitions": { @@ -6165,19 +6165,19 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task definition to help you categorize and organize\n\t\t\tthem. Each tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task definition to help you categorize and organize\n\t\t\tthem. Each tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "pidMode": { "target": "com.amazonaws.ecs#PidMode", "traits": { - "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. If host\n is specified, then all containers within the tasks that specified the\n host PID mode on the same container instance share the\n same process namespace with the host Amazon EC2 instance. If task is\n specified, all containers within the specified task share the same\n process namespace. If no value is specified, the default is a private\n namespace. For more information, see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, be aware that there is a\n heightened risk of undesired process namespace expose. For more\n information, see Docker\n security.

\n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" + "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. If host\n is specified, then all containers within the tasks that specified the\n host PID mode on the same container instance share the\n same process namespace with the host Amazon EC2 instance. If task is\n specified, all containers within the specified task share the same\n process namespace. If no value is specified, the default is a private\n namespace. For more information, see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, be aware that there is a\n heightened risk of undesired process namespace expose. For more\n information, see Docker\n security.

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" } }, "ipcMode": { "target": "com.amazonaws.ecs#IpcMode", "traits": { - "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" + "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" } }, "proxyConfiguration": { @@ -6195,7 +6195,7 @@ "ephemeralStorage": { "target": "com.amazonaws.ecs#EphemeralStorage", "traits": { - "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on AWS Fargate. For more information, see Fargate task\n\t\t\t\tstorage in the Amazon ECS User Guide for AWS Fargate.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on AWS Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" + "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on Fargate. For more information, see Fargate task\n\t\t\t\tstorage in the Amazon ECS User Guide for Fargate.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" } } } @@ -6223,7 +6223,7 @@ "credentialsParameter": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret containing the private repository\n\t\t\tcredentials.

\n\t\t \n\t\t\t

When you are using the Amazon ECS API, AWS CLI, or AWS SDK, if the secret exists in the\n\t\t\t\tsame Region as the task that you are launching then you can use either the full ARN\n\t\t\t\tor the name of the secret. When you are using the AWS Management Console, you must specify the\n\t\t\t\tfull ARN of the secret.

\n\t\t
", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret containing the private repository\n\t\t\tcredentials.

\n\t\t \n\t\t\t

When you are using the Amazon ECS API, CLI, or Amazon Web Services SDK, if the secret exists in the\n\t\t\t\tsame Region as the task that you are launching then you can use either the full ARN\n\t\t\t\tor the name of the secret. When you are using the Amazon Web Services Management Console, you must specify the\n\t\t\t\tfull ARN of the secret.

\n\t\t
", "smithy.api#required": {} } } @@ -6402,7 +6402,7 @@ "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use for the task.

\n\t\t

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

" + "smithy.api#documentation": "

The capacity provider strategy to use for the task.

\n\t\t

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n\t\t

When you use cluster auto scaling, you must specify capacityProviderStrategy and not launchType.

" } }, "cluster": { @@ -6438,7 +6438,7 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The infrastructure on which to run your standalone task. For more information, see\n\t\t\t\tAmazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

\n\t\t

The FARGATE launch type runs your tasks on AWS Fargate On-Demand\n\t\t\tinfrastructure.

\n\t\t \n\t\t\t

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see AWS Fargate capacity providers in the\n\t\t\t\t\tAmazon ECS User Guide for AWS Fargate.

\n\t\t
\n\t\t

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n\t\t

The EXTERNAL launch type runs your tasks on your on-premise server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n\t\t

A task can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

" + "smithy.api#documentation": "

The infrastructure on which to run your standalone task. For more information, see\n\t\t\t\tAmazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

\n\t\t

The FARGATE launch type runs your tasks on Fargate On-Demand\n\t\t\tinfrastructure.

\n\t\t \n\t\t\t

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see Fargate capacity providers in the\n\t\t\t\t\tAmazon ECS User Guide for Fargate.

\n\t\t
\n\t\t

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n\t\t

The EXTERNAL launch type runs your tasks on your on-premise server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n\t\t

A task can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

\n\t\t

When you use cluster auto scaling, you must specify capacityProviderStrategy and not launchType.

" } }, "networkConfiguration": { @@ -6468,7 +6468,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version the task should run. A platform version is only specified for\n\t\t\ttasks using the Fargate launch type. If one is not specified, the\n\t\t\t\tLATEST platform version is used by default. For more information, see\n\t\t\t\tAWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version the task should run. A platform version is only specified for\n\t\t\ttasks using the Fargate launch type. If one is not specified, the\n\t\t\t\tLATEST platform version is used by default. For more information, see\n\t\t\t\tFargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "propagateTags": { @@ -6492,7 +6492,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "taskDefinition": { @@ -6595,7 +6595,7 @@ "valueFrom": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN of\n\t\t\tthe AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.

\n\t\t \n\t\t\t

If the AWS Systems Manager Parameter Store parameter exists in the same Region as the task you\n\t\t\t\tare launching, then you can use either the full ARN or name of the parameter. If the\n\t\t\t\tparameter exists in a different Region, then the full ARN must be specified.

\n\t\t
", + "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN of\n\t\t\tthe Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.

\n\t\t \n\t\t\t

If the SSM Parameter Store parameter exists in the same Region as the task you\n\t\t\t\tare launching, then you can use either the full ARN or name of the parameter. If the\n\t\t\t\tparameter exists in a different Region, then the full ARN must be specified.

\n\t\t
", "smithy.api#required": {} } } @@ -6634,7 +6634,7 @@ "serviceArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ARN that identifies the service. The ARN contains the arn:aws:ecs namespace, followed by the Region of the service, the AWS account ID of the service owner, the service namespace, and then the service name. For example, arn:aws:ecs:region:012345678910:service/my-service.

" + "smithy.api#documentation": "

The ARN that identifies the service. The ARN contains the arn:aws:ecs namespace, followed by the Region of the service, the account ID of the service owner, the service namespace, and then the service name. For example, arn:aws:ecs:region:012345678910:service/my-service.

" } }, "serviceName": { @@ -6688,19 +6688,19 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The infrastructure on which your service is running. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The launch type the service is using. When using the DescribeServices API, this field\n\t\t\tis omitted if the service was created using a capacity provider strategy.

" } }, "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy associated with the service.

" + "smithy.api#documentation": "

The capacity provider strategy the service is using. When using the DescribeServices\n\t\t\tAPI, this field is omitted if the service was created using a launch type.

" } }, "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version on which to run your service. A platform version is only\n\t\t\tspecified for tasks using the Fargate launch type. If one is not\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see AWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version on which to run your service. A platform version is only\n\t\t\tspecified for tasks hosted on Fargate. If one is not specified, the\n\t\t\t\tLATEST platform version is used by default. For more information, see\n\t\t\t\tFargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "taskDefinition": { @@ -6718,7 +6718,7 @@ "taskSets": { "target": "com.amazonaws.ecs#TaskSets", "traits": { - "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" + "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" } }, "deployments": { @@ -6784,7 +6784,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "createdBy": { @@ -6901,7 +6901,7 @@ "registryArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is\n\t\t\tAWS Cloud Map. For more information, see CreateService.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is\n\t\t\tCloud Map. For more information, see CreateService.

" } }, "port": { @@ -7141,7 +7141,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "taskDefinition": { @@ -7542,7 +7542,7 @@ } }, "traits": { - "smithy.api#documentation": "

The metadata that you apply to a resource to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to a resource to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "com.amazonaws.ecs#TagKey": { @@ -7603,7 +7603,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The tags to add to the resource. A tag is an array of key-value pairs.

\n\t\t

The following basic restrictions apply to tags:

\n ", + "smithy.api#documentation": "

The tags to add to the resource. A tag is an array of key-value pairs.

\n\t\t

The following basic restrictions apply to tags:

\n ", "smithy.api#required": {} } } @@ -7802,7 +7802,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version on which your task is running. A platform version is only\n\t\t\tspecified for tasks using the Fargate launch type. If one is not\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see AWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version on which your task is running. A platform version is only\n\t\t\tspecified for tasks using the Fargate launch type. If one is not\n\t\t\tspecified, the LATEST platform version is used by default. For more\n\t\t\tinformation, see Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "pullStartedAt": { @@ -7856,7 +7856,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } }, "taskArn": { @@ -7912,19 +7912,19 @@ "taskRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants containers in the\n\t\t\ttask permission to call AWS APIs on your behalf. For more information, see Amazon ECS\n\t\t\t\tTask Role in the Amazon Elastic Container Service Developer Guide.

\n\t\t

IAM roles for tasks on Windows require that the -EnableTaskIAMRole option\n\t\t\tis set when you launch the Amazon ECS-optimized Windows AMI. Your containers must also run some\n\t\t\tconfiguration code in order to take advantage of the feature. For more information, see\n\t\t\t\tWindows IAM roles\n\t\t\t\tfor tasks in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the Identity and Access Management role that grants containers in the\n\t\t\ttask permission to call Amazon Web Services APIs on your behalf. For more information, see Amazon ECS\n\t\t\t\tTask Role in the Amazon Elastic Container Service Developer Guide.

\n\t\t

IAM roles for tasks on Windows require that the -EnableTaskIAMRole option\n\t\t\tis set when you launch the Amazon ECS-optimized Windows AMI. Your containers must also run some\n\t\t\tconfiguration code in order to take advantage of the feature. For more information, see\n\t\t\t\tWindows IAM roles\n\t\t\t\tfor tasks in the Amazon Elastic Container Service Developer Guide.

" } }, "executionRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent\n permission to make AWS API calls on your behalf. The task execution IAM role is required\n depending on the requirements of your task. For more information, see Amazon ECS task\n execution IAM role in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent\n permission to make Amazon Web Services API calls on your behalf. The task execution IAM role is required\n depending on the requirements of your task. For more information, see Amazon ECS task\n execution IAM role in the Amazon Elastic Container Service Developer Guide.

" } }, "networkMode": { "target": "com.amazonaws.ecs#NetworkMode", "traits": { - "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 instances, any network mode can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n \n

Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants with the\n ecs-init package, or AWS Fargate infrastructure support the\n awsvpc network mode.

\n
\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

Docker for Windows uses different network modes than Docker for Linux. When you\n register a task definition with Windows containers, you must not specify a network mode.\n If you use the console to register a task definition with Windows containers, you must\n choose the network mode object.

\n

For more information, see Network\n settings in the Docker run reference.

" + "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

For more information, see Network\n settings in the Docker run reference.

" } }, "revision": { @@ -7936,7 +7936,7 @@ "volumes": { "target": "com.amazonaws.ecs#VolumeList", "traits": { - "smithy.api#documentation": "

The list of data volume definitions for the task. For more information, see Using data volumes in tasks in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

The host and sourcePath parameters are not supported for\n\t\t\t\ttasks run on AWS Fargate.

\n\t\t
" + "smithy.api#documentation": "

The list of data volume definitions for the task. For more information, see Using data volumes in tasks in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

The host and sourcePath parameters are not supported for\n\t\t\t\ttasks run on Fargate.

\n\t\t
" } }, "status": { @@ -7948,13 +7948,13 @@ "requiresAttributes": { "target": "com.amazonaws.ecs#RequiresAttributes", "traits": { - "smithy.api#documentation": "

The container instance attributes required by your task. When an Amazon EC2 instance is\n\t\t\tregistered to your cluster, the Amazon ECS container agent assigns some standard attributes\n\t\t\tto the instance. You can apply custom attributes, specified as key-value pairs using the\n\t\t\tAmazon ECS console or the PutAttributes API. These attributes are used when\n\t\t\tconsidering task placement for tasks hosted on Amazon EC2 instances. For more information,\n\t\t\tsee Attributes in the Amazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

This parameter is not supported for tasks run on AWS Fargate.

\n\t\t
" + "smithy.api#documentation": "

The container instance attributes required by your task. When an Amazon EC2 instance is\n\t\t\tregistered to your cluster, the Amazon ECS container agent assigns some standard attributes\n\t\t\tto the instance. You can apply custom attributes, specified as key-value pairs using the\n\t\t\tAmazon ECS console or the PutAttributes API. These attributes are used when\n\t\t\tconsidering task placement for tasks hosted on Amazon EC2 instances. For more information,\n\t\t\tsee Attributes in the Amazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

This parameter is not supported for tasks run on Fargate.

\n\t\t
" } }, "placementConstraints": { "target": "com.amazonaws.ecs#TaskDefinitionPlacementConstraints", "traits": { - "smithy.api#documentation": "

An array of placement constraint objects to use for tasks.

\n\t\t \n\t\t\t

This parameter is not supported for tasks run on AWS Fargate.

\n\t\t
" + "smithy.api#documentation": "

An array of placement constraint objects to use for tasks.

\n\t\t \n\t\t\t

This parameter is not supported for tasks run on Fargate.

\n\t\t
" } }, "compatibilities": { @@ -7978,7 +7978,7 @@ "memory": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The amount (in MiB) of memory used by the task.

\n\t\t

If your tasks will be run on Amazon EC2 instances, you must specify either a task-level\n\t\t\tmemory value or a container-level memory value. This field is optional and any value can\n\t\t\tbe used. If a task-level memory value is specified then the container-level memory value\n\t\t\tis optional. For more information regarding container-level memory and memory\n\t\t\treservation, see ContainerDefinition.

\n\t\t

If your tasks will be run on AWS Fargate, this field is required and you must use one of\n\t\t\tthe following values, which determines your range of valid values for the\n\t\t\t\tcpu parameter:

\n " + "smithy.api#documentation": "

The amount (in MiB) of memory used by the task.

\n\t\t

If your tasks will be run on Amazon EC2 instances, you must specify either a task-level\n\t\t\tmemory value or a container-level memory value. This field is optional and any value can\n\t\t\tbe used. If a task-level memory value is specified then the container-level memory value\n\t\t\tis optional. For more information regarding container-level memory and memory\n\t\t\treservation, see ContainerDefinition.

\n\t\t

If your tasks will be run on Fargate, this field is required and you must use one of\n\t\t\tthe following values, which determines your range of valid values for the\n\t\t\t\tcpu parameter:

\n " } }, "inferenceAccelerators": { @@ -7990,13 +7990,13 @@ "pidMode": { "target": "com.amazonaws.ecs#PidMode", "traits": { - "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. If host\n is specified, then all containers within the tasks that specified the\n host PID mode on the same container instance share the\n same process namespace with the host Amazon EC2 instance. If task is\n specified, all containers within the specified task share the same\n process namespace. If no value is specified, the default is a private\n namespace. For more information, see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, be aware that there is a\n heightened risk of undesired process namespace expose. For more\n information, see Docker\n security.

\n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" + "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. If host\n is specified, then all containers within the tasks that specified the\n host PID mode on the same container instance share the\n same process namespace with the host Amazon EC2 instance. If task is\n specified, all containers within the specified task share the same\n process namespace. If no value is specified, the default is a private\n namespace. For more information, see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, be aware that there is a\n heightened risk of undesired process namespace expose. For more\n information, see Docker\n security.

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" } }, "ipcMode": { "target": "com.amazonaws.ecs#IpcMode", "traits": { - "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on AWS Fargate.

\n
" + "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" } }, "proxyConfiguration": { @@ -8087,7 +8087,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing a constraint on task placement in the task definition. For more\n\t\t\tinformation, see Task placement constraints in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

Task placement constraints are not supported for tasks run on AWS Fargate.

\n\t\t
" + "smithy.api#documentation": "

An object representing a constraint on task placement in the task definition. For more\n\t\t\tinformation, see Task placement constraints in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n\t\t \n\t\t\t

Task placement constraints are not supported for tasks run on Fargate.

\n\t\t
" } }, "com.amazonaws.ecs#TaskDefinitionPlacementConstraintType": { @@ -8181,7 +8181,7 @@ "ephemeralStorage": { "target": "com.amazonaws.ecs#EphemeralStorage", "traits": { - "smithy.api#documentation": "

The ephemeral storage setting override for the task.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on AWS Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" + "smithy.api#documentation": "

The ephemeral storage setting override for the task.

\n\t\t \n\t\t\t

This parameter is only supported for tasks hosted on Fargate using platform\n\t\t\t\tversion 1.4.0 or later.

\n\t\t
" } } }, @@ -8219,13 +8219,13 @@ "startedBy": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The tag specified when a task set is started. If the task set is created by an AWS CodeDeploy\n\t\t\tdeployment, the startedBy parameter is CODE_DEPLOY. For a task\n\t\t\tset created for an external deployment, the startedBy field isn't used.

" + "smithy.api#documentation": "

The tag specified when a task set is started. If the task set is created by an CodeDeploy\n\t\t\tdeployment, the startedBy parameter is CODE_DEPLOY. For a task\n\t\t\tset created for an external deployment, the startedBy field isn't used.

" } }, "externalId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The external ID associated with the task set.

\n\t\t

If a task set is created by an AWS CodeDeploy deployment, the externalId parameter\n\t\t\tcontains the AWS CodeDeploy deployment ID.

\n\t\t

If a task set is created for an external deployment and is associated with a service\n\t\t\tdiscovery registry, the externalId parameter contains the\n\t\t\t\tECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute.

" + "smithy.api#documentation": "

The external ID associated with the task set.

\n\t\t

If a task set is created by an CodeDeploy deployment, the externalId parameter\n\t\t\tcontains the CodeDeploy deployment ID.

\n\t\t

If a task set is created for an external deployment and is associated with a service\n\t\t\tdiscovery registry, the externalId parameter contains the\n\t\t\t\tECS_TASK_SET_EXTERNAL_ID Cloud Map attribute.

" } }, "status": { @@ -8285,7 +8285,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The AWS Fargate platform version on which the tasks in the task set are running. A\n\t\t\tplatform version is only specified for tasks run on AWS Fargate. For more information, see\n\t\t\t\tAWS Fargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Fargate platform version on which the tasks in the task set are running. A\n\t\t\tplatform version is only specified for tasks run on Fargate. For more information, see\n\t\t\t\tFargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" } }, "networkConfiguration": { @@ -8327,12 +8327,12 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define.

\n\t\t

The following basic restrictions apply to tags:

\n " } } }, "traits": { - "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" + "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" } }, "com.amazonaws.ecs#TaskSetField": { @@ -8965,7 +8965,7 @@ } ], "traits": { - "smithy.api#documentation": "\n\t\t\t

Updating the task placement strategies and constraints on an Amazon ECS service remains\n\t\t\t\tin preview and is a Beta Service as defined by and subject to the Beta Service\n\t\t\t\tParticipation Service Terms located at https://aws.amazon.com/service-terms (\"Beta Terms\"). These Beta Terms\n\t\t\t\tapply to your participation in this preview.

\n\t\t
\n\t\t

Modifies the parameters of a service.

\n\t\t

For services using the rolling update (ECS) deployment controller, the\n\t\t\tdesired count, deployment configuration, network configuration, task placement\n\t\t\tconstraints and strategies, or task definition used can be updated.

\n\t\t

For services using the blue/green (CODE_DEPLOY) deployment controller,\n\t\t\tonly the desired count, deployment configuration, task placement constraints and\n\t\t\tstrategies, and health check grace period can be updated using this API. If the network\n\t\t\tconfiguration, platform version, or task definition need to be updated, a new AWS CodeDeploy\n\t\t\tdeployment should be created. For more information, see CreateDeployment in the AWS CodeDeploy API Reference.

\n\t\t

For services using an external deployment controller, you can update only the desired\n\t\t\tcount, task placement constraints and strategies, and health check grace period using\n\t\t\tthis API. If the launch type, load balancer, network configuration, platform version, or\n\t\t\ttask definition need to be updated, you should create a new task set. For more\n\t\t\tinformation, see CreateTaskSet.

\n\t\t

You can add to or subtract from the number of instantiations of a task definition in a\n\t\t\tservice by specifying the cluster that the service is running in and a new\n\t\t\t\tdesiredCount parameter.

\n\t\t

If you have updated the Docker image of your application, you can create a new task\n\t\t\tdefinition with that image and deploy it to your service. The service scheduler uses the\n\t\t\tminimum healthy percent and maximum percent parameters (in the service's deployment\n\t\t\tconfiguration) to determine the deployment strategy.

\n\t\t \n\t\t\t

If your updated Docker image uses the same tag as what is in the existing task\n\t\t\t\tdefinition for your service (for example, my_image:latest), you do not\n\t\t\t\tneed to create a new revision of your task definition. You can update the service\n\t\t\t\tusing the forceNewDeployment option. The new tasks launched by the\n\t\t\t\tdeployment pull the current image/tag combination from your repository when they\n\t\t\t\tstart.

\n\t\t
\n\t\t

You can also update the deployment configuration of a service. When a deployment is\n\t\t\ttriggered by updating the task definition of a service, the service scheduler uses the\n\t\t\tdeployment configuration parameters, minimumHealthyPercent and\n\t\t\t\tmaximumPercent, to determine the deployment strategy.

\n\t\t \n\t\t

When UpdateService stops a task during a deployment, the equivalent\n\t\t\tof docker stop is issued to the containers running in the task. This\n\t\t\tresults in a SIGTERM and a 30-second timeout, after which\n\t\t\t\tSIGKILL is sent and the containers are forcibly stopped. If the\n\t\t\tcontainer handles the SIGTERM gracefully and exits within 30 seconds from\n\t\t\treceiving it, no SIGKILL is sent.

\n\t\t

When the service scheduler launches new tasks, it determines task placement in your\n\t\t\tcluster with the following logic:

\n\t\t \n\t\t

When the service scheduler stops running tasks, it attempts to maintain balance across\n\t\t\tthe Availability Zones in your cluster using the following logic:

\n\t\t " + "smithy.api#documentation": "\n\t\t\t

Updating the task placement strategies and constraints on an Amazon ECS service remains\n\t\t\t\tin preview and is a Beta Service as defined by and subject to the Beta Service\n\t\t\t\tParticipation Service Terms located at https://aws.amazon.com/service-terms (\"Beta Terms\"). These Beta Terms\n\t\t\t\tapply to your participation in this preview.

\n\t\t
\n\t\t

Modifies the parameters of a service.

\n\t\t

For services using the rolling update (ECS) deployment controller, the\n\t\t\tdesired count, deployment configuration, network configuration, task placement\n\t\t\tconstraints and strategies, or task definition used can be updated.

\n\t\t

For services using the blue/green (CODE_DEPLOY) deployment controller,\n\t\t\tonly the desired count, deployment configuration, task placement constraints and\n\t\t\tstrategies, and health check grace period can be updated using this API. If the network\n\t\t\tconfiguration, platform version, or task definition need to be updated, a new CodeDeploy\n\t\t\tdeployment should be created. For more information, see CreateDeployment in the CodeDeploy API Reference.

\n\t\t

For services using an external deployment controller, you can update only the desired\n\t\t\tcount, task placement constraints and strategies, and health check grace period using\n\t\t\tthis API. If the launch type, load balancer, network configuration, platform version, or\n\t\t\ttask definition need to be updated, you should create a new task set. For more\n\t\t\tinformation, see CreateTaskSet.

\n\t\t

You can add to or subtract from the number of instantiations of a task definition in a\n\t\t\tservice by specifying the cluster that the service is running in and a new\n\t\t\t\tdesiredCount parameter.

\n\t\t

If you have updated the Docker image of your application, you can create a new task\n\t\t\tdefinition with that image and deploy it to your service. The service scheduler uses the\n\t\t\tminimum healthy percent and maximum percent parameters (in the service's deployment\n\t\t\tconfiguration) to determine the deployment strategy.

\n\t\t \n\t\t\t

If your updated Docker image uses the same tag as what is in the existing task\n\t\t\t\tdefinition for your service (for example, my_image:latest), you do not\n\t\t\t\tneed to create a new revision of your task definition. You can update the service\n\t\t\t\tusing the forceNewDeployment option. The new tasks launched by the\n\t\t\t\tdeployment pull the current image/tag combination from your repository when they\n\t\t\t\tstart.

\n\t\t
\n\t\t

You can also update the deployment configuration of a service. When a deployment is\n\t\t\ttriggered by updating the task definition of a service, the service scheduler uses the\n\t\t\tdeployment configuration parameters, minimumHealthyPercent and\n\t\t\t\tmaximumPercent, to determine the deployment strategy.

\n\t\t \n\t\t

When UpdateService stops a task during a deployment, the equivalent\n\t\t\tof docker stop is issued to the containers running in the task. This\n\t\t\tresults in a SIGTERM and a 30-second timeout, after which\n\t\t\t\tSIGKILL is sent and the containers are forcibly stopped. If the\n\t\t\tcontainer handles the SIGTERM gracefully and exits within 30 seconds from\n\t\t\treceiving it, no SIGKILL is sent.

\n\t\t

When the service scheduler launches new tasks, it determines task placement in your\n\t\t\tcluster with the following logic:

\n\t\t \n\t\t

When the service scheduler stops running tasks, it attempts to maintain balance across\n\t\t\tthe Availability Zones in your cluster using the following logic:

\n\t\t " } }, "com.amazonaws.ecs#UpdateServicePrimaryTaskSet": { @@ -9077,7 +9077,7 @@ "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to update the service to use.

\n\t\t

If the service is using the default capacity provider strategy for the cluster, the\n\t\t\tservice can be updated to use one or more capacity providers as opposed to the default\n\t\t\tcapacity provider strategy. However, when a service is using a capacity provider\n\t\t\tstrategy that is not the default capacity provider strategy, the service cannot be\n\t\t\tupdated to use the cluster's default capacity provider strategy.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a AWS Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The AWS Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

\n\t\t

" + "smithy.api#documentation": "

The capacity provider strategy to update the service to use.

\n\t\t

If the service is using the default capacity provider strategy for the cluster, the\n\t\t\tservice can be updated to use one or more capacity providers as opposed to the default\n\t\t\tcapacity provider strategy. However, when a service is using a capacity provider\n\t\t\tstrategy that is not the default capacity provider strategy, the service cannot be\n\t\t\tupdated to use the cluster's default capacity provider strategy.

\n\t\t

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n\t\t

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n\t\t

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n\t\t

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

\n\t\t

" } }, "deploymentConfiguration": { @@ -9107,7 +9107,7 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version on which your tasks in the service are running. A platform\n\t\t\tversion is only specified for tasks using the Fargate launch type. If a\n\t\t\tplatform version is not specified, the LATEST platform version is used by\n\t\t\tdefault. For more information, see AWS Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version on which your tasks in the service are running. A platform\n\t\t\tversion is only specified for tasks using the Fargate launch type. If a\n\t\t\tplatform version is not specified, the LATEST platform version is used by\n\t\t\tdefault. For more information, see Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" } }, "forceNewDeployment": { @@ -9270,7 +9270,7 @@ "dockerVolumeConfiguration": { "target": "com.amazonaws.ecs#DockerVolumeConfiguration", "traits": { - "smithy.api#documentation": "

This parameter is specified when you are using Docker volumes.

\n\t\t

Windows containers only support the use of the local driver. To use bind\n\t\t\tmounts, specify the host parameter instead.

\n\t\t \n\t\t\t

Docker volumes are not supported by tasks run on AWS Fargate.

\n\t\t
" + "smithy.api#documentation": "

This parameter is specified when you are using Docker volumes.

\n\t\t

Windows containers only support the use of the local driver. To use bind\n\t\t\tmounts, specify the host parameter instead.

\n\t\t \n\t\t\t

Docker volumes are not supported by tasks run on Fargate.

\n\t\t
" } }, "efsVolumeConfiguration": { diff --git a/codegen/sdk-codegen/aws-models/elasticloadbalancingv2.2015-12-01.json b/codegen/sdk-codegen/aws-models/elasticloadbalancingv2.2015-12-01.json index 5715aee94ac..268205b148e 100644 --- a/codegen/sdk-codegen/aws-models/elasticloadbalancingv2.2015-12-01.json +++ b/codegen/sdk-codegen/aws-models/elasticloadbalancingv2.2015-12-01.json @@ -1640,6 +1640,80 @@ "inputToken": "Marker", "outputToken": "NextMarker", "items": "LoadBalancers" + }, + "smithy.api#suppress": [ + "WaitableTraitInvalidErrorType" + ], + "smithy.waiters#waitable": { + "LoadBalancerAvailable": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "LoadBalancers[].State.Code", + "expected": "active", + "comparator": "allStringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "LoadBalancers[].State.Code", + "expected": "provisioning", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "errorType": "LoadBalancerNotFound" + } + } + ], + "minDelay": 15 + }, + "LoadBalancerExists": { + "acceptors": [ + { + "state": "success", + "matcher": { + "success": true + } + }, + { + "state": "retry", + "matcher": { + "errorType": "LoadBalancerNotFound" + } + } + ], + "minDelay": 15 + }, + "LoadBalancersDeleted": { + "acceptors": [ + { + "state": "retry", + "matcher": { + "output": { + "path": "LoadBalancers[].State.Code", + "expected": "active", + "comparator": "allStringEquals" + } + } + }, + { + "state": "success", + "matcher": { + "errorType": "LoadBalancerNotFound" + } + } + ], + "minDelay": 15 + } } } }, @@ -2001,7 +2075,54 @@ } ], "traits": { - "smithy.api#documentation": "

Describes the health of the specified targets or all of your targets.

" + "smithy.api#documentation": "

Describes the health of the specified targets or all of your targets.

", + "smithy.api#suppress": [ + "WaitableTraitInvalidErrorType" + ], + "smithy.waiters#waitable": { + "TargetDeregistered": { + "acceptors": [ + { + "state": "success", + "matcher": { + "errorType": "InvalidTarget" + } + }, + { + "state": "success", + "matcher": { + "output": { + "path": "TargetHealthDescriptions[].TargetHealth.State", + "expected": "unused", + "comparator": "allStringEquals" + } + } + } + ], + "minDelay": 15 + }, + "TargetInService": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "TargetHealthDescriptions[].TargetHealth.State", + "expected": "healthy", + "comparator": "allStringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "errorType": "InvalidInstance" + } + } + ], + "minDelay": 15 + } + } } }, "com.amazonaws.elasticloadbalancingv2#DescribeTargetHealthInput": { @@ -2819,7 +2940,7 @@ "Key": { "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerAttributeKey", "traits": { - "smithy.api#documentation": "

The name of the attribute.

\n\n

The following attribute is supported by all load balancers:

\n \n\n

The following attributes are supported by both Application Load Balancers and Network Load\n Balancers:

\n \n\n

The following attributes are supported by only Application Load Balancers:

\n \n\n

The following attribute is supported by Network Load Balancers and Gateway Load\n Balancers:

\n " + "smithy.api#documentation": "

The name of the attribute.

\n\n

The following attribute is supported by all load balancers:

\n \n\n

The following attributes are supported by both Application Load Balancers and Network Load\n Balancers:

\n \n\n

The following attributes are supported by only Application Load Balancers:

\n \n\n

The following attribute is supported by Network Load Balancers and Gateway Load\n Balancers:

\n " } }, "Value": { diff --git a/codegen/sdk-codegen/aws-models/emr.2009-03-31.json b/codegen/sdk-codegen/aws-models/emr.2009-03-31.json index d55356731fc..0e15e9615aa 100644 --- a/codegen/sdk-codegen/aws-models/emr.2009-03-31.json +++ b/codegen/sdk-codegen/aws-models/emr.2009-03-31.json @@ -558,7 +558,7 @@ } }, "traits": { - "smithy.api#documentation": "

Properties that describe the AWS principal that created the\n BlockPublicAccessConfiguration using the\n PutBlockPublicAccessConfiguration action as well as the date and time that\n the configuration was created. Each time a configuration for block public access is\n updated, Amazon EMR updates this metadata.

" + "smithy.api#documentation": "

Properties that describe the Amazon Web Services principal that created the\n BlockPublicAccessConfiguration using the\n PutBlockPublicAccessConfiguration action as well as the date and time that\n the configuration was created. Each time a configuration for block public access is\n updated, Amazon EMR updates this metadata.

" } }, "com.amazonaws.emr#Boolean": { @@ -635,7 +635,7 @@ } ], "traits": { - "smithy.api#documentation": "

Cancels a pending step or steps in a running cluster. Available only in Amazon EMR\n versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps are allowed in\n each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee\n that a step will be canceled, even if the request is successfully submitted. You can only\n cancel steps that are in a PENDING state.

" + "smithy.api#documentation": "

Cancels a pending step or steps in a running cluster. Available only in Amazon EMR\n versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps are allowed in\n each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee\n that a step will be canceled, even if the request is successfully submitted. When you use Amazon EMR versions 5.28.0 and later, you can cancel steps that are in a PENDING or RUNNING state. In earlier versions of Amazon EMR, you can only cancel steps that are in a PENDING state.

" } }, "com.amazonaws.emr#CancelStepsInfo": { @@ -835,7 +835,7 @@ "LogEncryptionKmsKeyId": { "target": "com.amazonaws.emr#String", "traits": { - "smithy.api#documentation": "

The AWS KMS customer master key (CMK) used for encrypting log files. This attribute is\n only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.

" + "smithy.api#documentation": "

The KMS key used for encrypting log files. This attribute is\n only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.

" } }, "RequestedAmiVersion": { @@ -871,7 +871,7 @@ "VisibleToAllUsers": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

Indicates whether the cluster is visible to all IAM users of the AWS account associated\n with the cluster. The default value, true, indicates that all IAM users in the\n AWS account can perform cluster actions if they have the proper IAM policy permissions. If\n this value is false, only the IAM user that created the cluster can perform\n actions. This value can be changed on a running cluster by using the SetVisibleToAllUsers action. You can override the default value of\n true when you create a cluster by using the VisibleToAllUsers\n parameter of the RunJobFlow action.

" + "smithy.api#documentation": "

Indicates whether the cluster is visible to IAM principals in the account associated\n with the cluster. When true, IAM principals in the\n account can perform EMR cluster actions on the cluster that their IAM policies allow. When false, only the IAM principal that created the cluster and the account root user can perform EMR actions, regardless of IAM permissions policies attached to other IAM principals.

\n

The default value is false if a value is not provided when creating a cluster using the EMR API RunJobFlow command or the CLI create-cluster command. The default value is true when a cluster is created using the Management Console. IAM principals that are allowed to perform actions on the cluster can use the SetVisibleToAllUsers action to change the value on a running cluster. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Guide.

" } }, "Applications": { @@ -889,7 +889,7 @@ "ServiceRole": { "target": "com.amazonaws.emr#String", "traits": { - "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR service to access AWS resources on\n your behalf.

" + "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR service to access Amazon Web Services resources on\n your behalf.

" } }, "NormalizedInstanceHours": { @@ -1451,7 +1451,7 @@ "ServiceRole": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR Studio. The service role provides a\n way for Amazon EMR Studio to interoperate with other AWS services.

", + "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR Studio. The service role provides a\n way for Amazon EMR Studio to interoperate with other Amazon Web Services services.

", "smithy.api#required": {} } }, @@ -1538,13 +1538,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group from the AWS SSO Identity\n Store. For more information, see UserId and GroupId in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group from the Amazon Web Services SSO Identity\n Store. For more information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityType": { @@ -1557,7 +1557,7 @@ "SessionPolicyArn": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the session policy that will be applied to the user\n or group. Session policies refine Studio user permissions without the need to use multiple\n IAM user roles.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the session policy that will be applied to the user\n or group. You should specify the ARN for the session policy that you want to apply, not the ARN of your user role. For more information, see Create an EMR Studio User Role with Session Policies.

", "smithy.api#required": {} } } @@ -1661,13 +1661,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR\n Studio. For more information, see UserId and GroupId in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group to remove from the Amazon EMR\n Studio. For more information, see UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user name or group to remove from the Amazon EMR Studio. For more information, see\n UserName and DisplayName in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The name of the user name or group to remove from the Amazon EMR Studio. For more information, see\n UserName and DisplayName in the Amazon Web Services SSO Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityType": { @@ -1917,6 +1917,72 @@ } } }, + "com.amazonaws.emr#DescribeReleaseLabel": { + "type": "operation", + "input": { + "target": "com.amazonaws.emr#DescribeReleaseLabelInput" + }, + "output": { + "target": "com.amazonaws.emr#DescribeReleaseLabelOutput" + }, + "errors": [ + { + "target": "com.amazonaws.emr#InternalServerException" + }, + { + "target": "com.amazonaws.emr#InvalidRequestException" + } + ], + "traits": { + "smithy.api#documentation": "

Provides EMR release label details, such as releases available the region where the API request is run, and the available applications for a specific EMR release label. Can also list EMR release versions that support a specified version of Spark.

" + } + }, + "com.amazonaws.emr#DescribeReleaseLabelInput": { + "type": "structure", + "members": { + "ReleaseLabel": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

The target release label to be described.

" + } + }, + "NextToken": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

The pagination token. Reserved for future use. Currently set to null.

" + } + }, + "MaxResults": { + "target": "com.amazonaws.emr#MaxResultsNumber", + "traits": { + "smithy.api#documentation": "

Reserved for future use. Currently set to null.

" + } + } + } + }, + "com.amazonaws.emr#DescribeReleaseLabelOutput": { + "type": "structure", + "members": { + "ReleaseLabel": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

The target release label described in the response.

" + } + }, + "Applications": { + "target": "com.amazonaws.emr#SimplifiedApplicationList", + "traits": { + "smithy.api#documentation": "

The list of applications available for the target release label. Name is the name of the application. Version is the concise version of the application.

" + } + }, + "NextToken": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

The pagination token. Reserved for future use. Currently set to null.

" + } + } + } + }, "com.amazonaws.emr#DescribeSecurityConfiguration": { "type": "operation", "input": { @@ -2339,6 +2405,9 @@ { "target": "com.amazonaws.emr#DescribeNotebookExecution" }, + { + "target": "com.amazonaws.emr#DescribeReleaseLabel" + }, { "target": "com.amazonaws.emr#DescribeSecurityConfiguration" }, @@ -2375,6 +2444,9 @@ { "target": "com.amazonaws.emr#ListNotebookExecutions" }, + { + "target": "com.amazonaws.emr#ListReleaseLabels" + }, { "target": "com.amazonaws.emr#ListSecurityConfigurations" }, @@ -2451,7 +2523,7 @@ "name": "elasticmapreduce" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "

Amazon EMR is a web service that makes it easier to process large amounts of data\n efficiently. Amazon EMR uses Hadoop processing combined with several AWS services to do\n tasks such as web indexing, data mining, log file analysis, machine learning, scientific\n simulation, and data warehouse management.

", + "smithy.api#documentation": "

Amazon EMR is a web service that makes it easier to process large amounts of data\n efficiently. Amazon EMR uses Hadoop processing combined with several Amazon Web Services services to do\n tasks such as web indexing, data mining, log file analysis, machine learning, scientific\n simulation, and data warehouse management.

", "smithy.api#title": "Amazon Elastic MapReduce", "smithy.api#xmlNamespace": { "uri": "http://elasticmapreduce.amazonaws.com/doc/2009-03-31" @@ -2551,7 +2623,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the Amazon EMR block public access configuration for your AWS account in the\n current Region. For more information see Configure Block\n Public Access for Amazon EMR in the Amazon EMR Management\n Guide.

" + "smithy.api#documentation": "

Returns the Amazon EMR block public access configuration for your account in the\n current Region. For more information see Configure Block\n Public Access for Amazon EMR in the Amazon EMR Management\n Guide.

" } }, "com.amazonaws.emr#GetBlockPublicAccessConfigurationInput": { @@ -2571,7 +2643,7 @@ "BlockPublicAccessConfigurationMetadata": { "target": "com.amazonaws.emr#BlockPublicAccessConfigurationMetadata", "traits": { - "smithy.api#documentation": "

Properties that describe the AWS principal that created the\n BlockPublicAccessConfiguration using the\n PutBlockPublicAccessConfiguration action as well as the date and time that\n the configuration was created. Each time a configuration for block public access is\n updated, Amazon EMR updates this metadata.

", + "smithy.api#documentation": "

Properties that describe the Amazon Web Services principal that created the\n BlockPublicAccessConfiguration using the\n PutBlockPublicAccessConfiguration action as well as the date and time that\n the configuration was created. Each time a configuration for block public access is\n updated, Amazon EMR updates this metadata.

", "smithy.api#required": {} } } @@ -2645,13 +2717,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group. For more information, see\n UserId and GroupId in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group. For more information, see\n UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group to fetch. For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The name of the user or group to fetch. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityType": { @@ -2826,7 +2898,7 @@ "EbsVolumes": { "target": "com.amazonaws.emr#EbsVolumeList", "traits": { - "smithy.api#documentation": "

The list of EBS volumes that are attached to this instance.

" + "smithy.api#documentation": "

The list of Amazon EBS volumes that are attached to this instance.

" } } }, @@ -2903,7 +2975,7 @@ "InstanceTypeSpecifications": { "target": "com.amazonaws.emr#InstanceTypeSpecificationList", "traits": { - "smithy.api#documentation": "

The specification for the instance types that comprise an instance fleet. Up to five\n unique instance specifications may be defined for each instance fleet.

" + "smithy.api#documentation": "

An array of specifications for the instance types that comprise an instance fleet.

" } }, "LaunchSpecifications": { @@ -3233,7 +3305,7 @@ "Configurations": { "target": "com.amazonaws.emr#ConfigurationList", "traits": { - "smithy.api#documentation": "\n

Amazon EMR releases 4.x or later.

\n
\n

The list of configurations supplied for an EMR cluster instance group. You can specify a\n separate configuration for each instance group (master, core, and task).

" + "smithy.api#documentation": "\n

Amazon EMR releases 4.x or later.

\n
\n

The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a\n separate configuration for each instance group (master, core, and task).

" } }, "ConfigurationsVersion": { @@ -3883,7 +3955,7 @@ "min": 1, "max": 256 }, - "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" } }, "com.amazonaws.emr#InstanceTypeConfig": { @@ -3917,7 +3989,7 @@ "EbsConfiguration": { "target": "com.amazonaws.emr#EbsConfiguration", "traits": { - "smithy.api#documentation": "

The configuration of Amazon Elastic Block Storage (Amazon EBS) attached to each instance\n as defined by InstanceType.

" + "smithy.api#documentation": "

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance\n as defined by InstanceType.

" } }, "Configurations": { @@ -3928,7 +4000,7 @@ } }, "traits": { - "smithy.api#documentation": "

An instance type configuration for each instance type in an instance fleet, which\n determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot\n target capacities. There can be a maximum of five instance type configurations in a\n fleet.

\n \n

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and\n later, excluding 5.0.x versions.

\n
" + "smithy.api#documentation": "

An instance type configuration for each instance type in an instance fleet, which\n determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot\n target capacities. When you use an allocation strategy, you can include a maximum of 30 instance type configurations for a fleet. For more information about how to use an allocation strategy, see Configure Instance Fleets. Without an allocation strategy, you may specify a maximum of five instance type configurations for a fleet.

\n \n

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and\n later, excluding 5.0.x versions.

\n
" } }, "com.amazonaws.emr#InstanceTypeConfigList": { @@ -3973,7 +4045,7 @@ "EbsBlockDevices": { "target": "com.amazonaws.emr#EbsBlockDeviceList", "traits": { - "smithy.api#documentation": "

The configuration of Amazon Elastic Block Storage (Amazon EBS) attached to each instance\n as defined by InstanceType.

" + "smithy.api#documentation": "

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance\n as defined by InstanceType.

" } }, "EbsOptimized": { @@ -4003,6 +4075,10 @@ "type": "structure", "members": {}, "traits": { + "aws.protocols#awsQueryError": { + "code": "InternalFailure", + "httpResponseCode": 500 + }, "smithy.api#documentation": "

Indicates that an error occurred while processing the request and that the request was\n not completed.

", "smithy.api#error": "server", "smithy.api#httpError": 500 @@ -4070,7 +4146,7 @@ "LogEncryptionKmsKeyId": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The AWS KMS customer master key (CMK) used for encrypting log files. This attribute is\n only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.

" + "smithy.api#documentation": "

The KMS key used for encrypting log files. This attribute is\n only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.

" } }, "AmiVersion": { @@ -4114,7 +4190,7 @@ "VisibleToAllUsers": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

Indicates whether the cluster is visible to all IAM users of the AWS account associated\n with the cluster. The default value, true, indicates that all IAM users in the\n AWS account can perform cluster actions if they have the proper IAM policy permissions. If\n this value is false, only the IAM user that created the cluster can perform\n actions. This value can be changed on a running cluster by using the SetVisibleToAllUsers action. You can override the default value of\n true when you create a cluster by using the VisibleToAllUsers\n parameter of the RunJobFlow action.

" + "smithy.api#documentation": "

Indicates whether the cluster is visible to IAM principals in the account associated\n with the cluster. When true, IAM principals in the\n account can perform EMR cluster actions that their IAM policies allow. When false, only the IAM principal that created the cluster and the account root user can perform EMR actions, regardless of IAM permissions policies attached to other IAM principals.

\n

The default value is false if a value is not provided when creating a cluster using the EMR API RunJobFlow command or the CLI create-cluster command. The default value is true when a cluster is created using the Management Console. IAM principals that are authorized to perform actions on the cluster can use the SetVisibleToAllUsers action to change the value on a running cluster. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Guide.

" } }, "JobFlowRole": { @@ -4126,7 +4202,7 @@ "ServiceRole": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The IAM role that is assumed by the Amazon EMR service to access AWS resources on your\n behalf.

" + "smithy.api#documentation": "

The IAM role that is assumed by the Amazon EMR service to access Amazon Web Services resources on your\n behalf.

" } }, "AutoScalingRole": { @@ -4292,7 +4368,7 @@ "KeepJobFlowAliveWhenNoSteps": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether the cluster should remain available after completing all steps.

" + "smithy.api#documentation": "

Specifies whether the cluster should remain available after completing all steps. Defaults to true. For more information about configuring cluster termination, see Control Cluster Termination in the EMR Management Guide.

" } }, "TerminationProtected": { @@ -4322,13 +4398,13 @@ "EmrManagedMasterSecurityGroup": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon EC2 security group for the master node.

" + "smithy.api#documentation": "

The identifier of the Amazon EC2 security group for the master node. If you specify EmrManagedMasterSecurityGroup, you must also specify EmrManagedSlaveSecurityGroup.

" } }, "EmrManagedSlaveSecurityGroup": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon EC2 security group for the core and task nodes.

" + "smithy.api#documentation": "

The identifier of the Amazon EC2 security group for the core and task nodes. If you specify EmrManagedSlaveSecurityGroup, you must also specify EmrManagedMasterSecurityGroup.

" } }, "ServiceAccessSecurityGroup": { @@ -4592,7 +4668,7 @@ } ], "traits": { - "smithy.api#documentation": "

Provides the status of all clusters visible to this AWS account. Allows you to filter\n the list of clusters based on certain criteria; for example, filtering by cluster creation\n date and time or by status. This call returns a maximum of 50 clusters per call, but\n returns a marker to track the paging of the cluster list across multiple ListClusters\n calls.

", + "smithy.api#documentation": "

Provides the status of all clusters visible to this account. Allows you to filter\n the list of clusters based on certain criteria; for example, filtering by cluster creation\n date and time or by status. This call returns a maximum of 50 clusters in unsorted order per call, but\n returns a marker to track the paging of the cluster list across multiple ListClusters\n calls.

", "smithy.api#paginated": { "inputToken": "Marker", "outputToken": "Marker", @@ -4618,7 +4694,7 @@ "ClusterStates": { "target": "com.amazonaws.emr#ClusterStateList", "traits": { - "smithy.api#documentation": "

The cluster state filters to apply when listing clusters.

" + "smithy.api#documentation": "

The cluster state filters to apply when listing clusters. Clusters that change state while this action runs may be not be returned as expected in the list of clusters.

" } }, "Marker": { @@ -4951,6 +5027,71 @@ } } }, + "com.amazonaws.emr#ListReleaseLabels": { + "type": "operation", + "input": { + "target": "com.amazonaws.emr#ListReleaseLabelsInput" + }, + "output": { + "target": "com.amazonaws.emr#ListReleaseLabelsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.emr#InternalServerException" + }, + { + "target": "com.amazonaws.emr#InvalidRequestException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves release labels of EMR services in the region where the API is called.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.emr#ListReleaseLabelsInput": { + "type": "structure", + "members": { + "Filters": { + "target": "com.amazonaws.emr#ReleaseLabelFilter", + "traits": { + "smithy.api#documentation": "

Filters the results of the request. Prefix specifies the prefix of release labels to return. Application specifies the application (with/without version) of release labels to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

Specifies the next page of results. If NextToken is not specified, which is usually the case for the first request of ListReleaseLabels, the first page of results are determined by other filtering parameters or by the latest version. The ListReleaseLabels request fails if the identity (AWS AccountID) and all filtering parameters are different from the original request, or if the NextToken is expired or tampered with.

" + } + }, + "MaxResults": { + "target": "com.amazonaws.emr#MaxResultsNumber", + "traits": { + "smithy.api#documentation": "

Defines the maximum number of release labels to return in a single response. The default is 100.

" + } + } + } + }, + "com.amazonaws.emr#ListReleaseLabelsOutput": { + "type": "structure", + "members": { + "ReleaseLabels": { + "target": "com.amazonaws.emr#StringList", + "traits": { + "smithy.api#documentation": "

The returned release labels.

" + } + }, + "NextToken": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

Used to paginate the next page of results if specified in the next ListReleaseLabels request.

" + } + } + } + }, "com.amazonaws.emr#ListSecurityConfigurations": { "type": "operation", "input": { @@ -5021,7 +5162,7 @@ } ], "traits": { - "smithy.api#documentation": "

Provides a list of steps for the cluster in reverse order unless you specify\n stepIds with the request of filter by StepStates. You can\n specify a maximum of 10 stepIDs.

", + "smithy.api#documentation": "

Provides a list of steps for the cluster in reverse order unless you specify\n stepIds with the request or filter by StepStates. You can\n specify a maximum of 10 stepIDs. The CLI automatically paginates results to return a list greater than 50 steps. To return more than 50 steps using the CLI, specify a Marker, which is a pagination token that indicates the next set of steps to retrieve.

", "smithy.api#paginated": { "inputToken": "Marker", "outputToken": "Marker", @@ -5054,7 +5195,7 @@ "Marker": { "target": "com.amazonaws.emr#Marker", "traits": { - "smithy.api#documentation": "

The pagination token that indicates the next set of results to retrieve.

" + "smithy.api#documentation": "

The maximum number of steps that a single ListSteps action returns is 50. To return a longer list of steps, use multiple ListSteps actions along with the Marker parameter, which is a pagination token that indicates the next set of results to retrieve.

" } } }, @@ -5074,7 +5215,7 @@ "Marker": { "target": "com.amazonaws.emr#Marker", "traits": { - "smithy.api#documentation": "

The pagination token that indicates the next set of results to retrieve.

" + "smithy.api#documentation": "

The maximum number of steps that a single ListSteps action returns is 50. To return a longer list of steps, use multiple ListSteps actions along with the Marker parameter, which is a pagination token that indicates the next set of results to retrieve.

" } } }, @@ -5164,7 +5305,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of all Amazon EMR Studios associated with the AWS account. The list\n includes details such as ID, Studio Access URL, and creation time for each Studio.

", + "smithy.api#documentation": "

Returns a list of all Amazon EMR Studios associated with the account. The list\n includes details such as ID, Studio Access URL, and creation time for each Studio.

", "smithy.api#paginated": { "inputToken": "Marker", "outputToken": "Marker", @@ -5235,6 +5376,16 @@ ] } }, + "com.amazonaws.emr#MaxResultsNumber": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1, + "max": 100 + } + } + }, "com.amazonaws.emr#MetricDimension": { "type": "structure", "members": { @@ -5294,7 +5445,7 @@ "StepConcurrencyLevel": { "target": "com.amazonaws.emr#Integer", "traits": { - "smithy.api#documentation": "

The number of steps that can be executed concurrently. You can specify a minimum of 1 step and a maximum of 256\n steps.

" + "smithy.api#documentation": "

The number of steps that can be executed concurrently. You can specify a minimum of 1 step and a maximum of 256 steps. We recommend that you do not change this parameter while steps are running or the ActionOnFailure setting may not behave as expected. For more information see Step$ActionOnFailure.

" } } } @@ -5340,7 +5491,7 @@ "InstanceFleet": { "target": "com.amazonaws.emr#InstanceFleetModifyConfig", "traits": { - "smithy.api#documentation": "

The unique identifier of the instance fleet.

", + "smithy.api#documentation": "

The configuration parameters of the instance fleet.

", "smithy.api#required": {} } } @@ -5569,7 +5720,7 @@ } }, "traits": { - "smithy.api#documentation": "

" + "smithy.api#documentation": "

Details for a notebook execution. The details include information such as the unique ID and status of the notebook execution.

" } }, "com.amazonaws.emr#NotebookExecutionSummaryList": { @@ -5584,7 +5735,7 @@ "UsageStrategy": { "target": "com.amazonaws.emr#OnDemandCapacityReservationUsageStrategy", "traits": { - "smithy.api#documentation": "

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

\n

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

\n

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

" + "smithy.api#documentation": "

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

\n

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

\n

If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

" } }, "CapacityReservationPreference": { @@ -5862,7 +6013,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates or updates an Amazon EMR block public access configuration for your AWS account\n in the current Region. For more information see Configure Block\n Public Access for Amazon EMR in the Amazon EMR Management\n Guide.

" + "smithy.api#documentation": "

Creates or updates an Amazon EMR block public access configuration for your account\n in the current Region. For more information see Configure Block\n Public Access for Amazon EMR in the Amazon EMR Management\n Guide.

" } }, "com.amazonaws.emr#PutBlockPublicAccessConfigurationInput": { @@ -5916,6 +6067,26 @@ "type": "structure", "members": {} }, + "com.amazonaws.emr#ReleaseLabelFilter": { + "type": "structure", + "members": { + "Prefix": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

Optional release label version prefix filter. For example, emr-5.

" + } + }, + "Application": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

Optional release label application filter. For example, spark@2.1.0.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The release label filters by application or version prefix.

" + } + }, "com.amazonaws.emr#RemoveAutoScalingPolicy": { "type": "operation", "input": { @@ -6082,7 +6253,7 @@ "LogEncryptionKmsKeyId": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The AWS KMS customer master key (CMK) used for encrypting log files. If a value is not\n provided, the logs remain encrypted by AES-256. This attribute is only available with\n Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0.

" + "smithy.api#documentation": "

The KMS key used for encrypting log files. If a value is not\n provided, the logs remain encrypted by AES-256. This attribute is only available with\n Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0.

" } }, "AdditionalInfo": { @@ -6149,7 +6320,7 @@ "VisibleToAllUsers": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

A value of true indicates that all IAM users in the AWS account can perform\n cluster actions if they have the proper IAM policy permissions. This is the default. A\n value of false indicates that only the IAM user who created the cluster can\n perform actions.

" + "smithy.api#documentation": "

Set this value to true so that IAM principals in the account associated with the cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults to false for clusters created using the EMR API or the CLI create-cluster command.

\n

When set to false, only the IAM principal that created the cluster and the account root user can perform EMR actions for the cluster, regardless of the IAM permissions policies attached to other IAM principals. For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Guide.

" } }, "JobFlowRole": { @@ -6161,7 +6332,7 @@ "ServiceRole": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR service to access AWS resources on\n your behalf.

" + "smithy.api#documentation": "

The IAM role that will be assumed by the Amazon EMR service to access Amazon Web Services resources on\n your behalf.

" } }, "Tags": { @@ -6375,7 +6546,7 @@ "Path": { "target": "com.amazonaws.emr#XmlString", "traits": { - "smithy.api#documentation": "

Location of the script to run during a bootstrap action. Can be either a location in\n Amazon S3 or on a local file system.

", + "smithy.api#documentation": "

Location in Amazon S3 of the script to run during a bootstrap action.

", "smithy.api#required": {} } }, @@ -6440,7 +6611,7 @@ "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the AWS SSO Identity Store API\n Reference.

" + "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API\n Reference.

" } }, "IdentityType": { @@ -6484,13 +6655,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group from the AWS SSO Identity\n Store.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group from the Amazon Web Services SSO Identity\n Store.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the AWS SSO Identity Store API\n Reference.

" + "smithy.api#documentation": "

The name of the user or group. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API\n Reference.

" } }, "IdentityType": { @@ -6533,7 +6704,7 @@ } ], "traits": { - "smithy.api#documentation": "

SetTerminationProtection locks a cluster (job flow) so the EC2 instances in the cluster\n cannot be terminated by user intervention, an API call, or in the event of a job-flow\n error. The cluster still terminates upon successful completion of the job flow. Calling\n SetTerminationProtection on a cluster is similar to calling the Amazon EC2\n DisableAPITermination API on all EC2 instances in a cluster.

\n

\n SetTerminationProtection is used to prevent accidental termination of a\n cluster and to ensure that in the event of an error, the instances persist so that you can\n recover any data stored in their ephemeral instance storage.

\n

To terminate a cluster that has been locked by setting\n SetTerminationProtection to true, you must first unlock the\n job flow by a subsequent call to SetTerminationProtection in which you set the\n value to false.

\n

For more information, seeManaging Cluster\n Termination in the Amazon EMR Management Guide.

" + "smithy.api#documentation": "

SetTerminationProtection locks a cluster (job flow) so the EC2 instances in the cluster\n cannot be terminated by user intervention, an API call, or in the event of a job-flow\n error. The cluster still terminates upon successful completion of the job flow. Calling\n SetTerminationProtection on a cluster is similar to calling the Amazon EC2\n DisableAPITermination API on all EC2 instances in a cluster.

\n

\n SetTerminationProtection is used to prevent accidental termination of a\n cluster and to ensure that in the event of an error, the instances persist so that you can\n recover any data stored in their ephemeral instance storage.

\n

To terminate a cluster that has been locked by setting\n SetTerminationProtection to true, you must first unlock the\n job flow by a subsequent call to SetTerminationProtection in which you set the\n value to false.

\n

For more information, seeManaging Cluster\n Termination in the Amazon EMR Management Guide.

" } }, "com.amazonaws.emr#SetTerminationProtectionInput": { @@ -6569,7 +6740,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets the Cluster$VisibleToAllUsers value, which determines whether the\n cluster is visible to all IAM users of the AWS account associated with the cluster. Only\n the IAM user who created the cluster or the AWS account root user can call this action. The\n default value, true, indicates that all IAM users in the AWS account can\n perform cluster actions if they have the proper IAM policy permissions. If set to\n false, only the IAM user that created the cluster can perform actions. This\n action works on running clusters. You can override the default true setting\n when you create a cluster by using the VisibleToAllUsers parameter with\n RunJobFlow.

" + "smithy.api#documentation": "

Sets the Cluster$VisibleToAllUsers value for an EMR cluster. When true, IAM principals in the\n account can perform EMR cluster actions that their IAM policies allow. When false, only the IAM principal that created the cluster and the account root user can perform EMR actions on the cluster, regardless of IAM permissions policies attached to other IAM principals.

\n

This action works on running clusters. When you create a cluster, use the RunJobFlowInput$VisibleToAllUsers parameter.

\n

For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMR Management Guide.

" } }, "com.amazonaws.emr#SetVisibleToAllUsersInput": { @@ -6585,7 +6756,7 @@ "VisibleToAllUsers": { "target": "com.amazonaws.emr#Boolean", "traits": { - "smithy.api#documentation": "

A value of true indicates that all IAM users in the AWS account can perform\n cluster actions if they have the proper IAM policy permissions. This is the default. A\n value of false indicates that only the IAM user who created the cluster can\n perform actions.

", + "smithy.api#documentation": "

A value of true indicates that an IAM principal in the account can perform\n EMR actions on the cluster that the IAM policies attached to the principal allow. A\n value of false indicates that only the IAM principal that created the cluster and the Amazon Web Services root user can perform EMR actions on the cluster.

", "smithy.api#required": {} } } @@ -6641,6 +6812,32 @@ "smithy.api#documentation": "

An automatic scaling configuration, which describes how the policy adds or removes\n instances, the cooldown period, and the number of EC2 instances that will be added each\n time the CloudWatch metric alarm condition is satisfied.

" } }, + "com.amazonaws.emr#SimplifiedApplication": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

The returned release label application name. For example, hadoop.

" + } + }, + "Version": { + "target": "com.amazonaws.emr#String", + "traits": { + "smithy.api#documentation": "

The returned release label application version. For example, 3.2.1.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The returned release label application names or versions.

" + } + }, + "com.amazonaws.emr#SimplifiedApplicationList": { + "type": "list", + "member": { + "target": "com.amazonaws.emr#SimplifiedApplication" + } + }, "com.amazonaws.emr#SpotProvisioningAllocationStrategy": { "type": "string", "traits": { @@ -6840,7 +7037,7 @@ "ActionOnFailure": { "target": "com.amazonaws.emr#ActionOnFailure", "traits": { - "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility.\n We recommend using TERMINATE_CLUSTER instead.

" + "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility.\n We recommend using TERMINATE_CLUSTER instead.

\n

If a cluster's StepConcurrencyLevel is greater than 1, do not use AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the ActionOnFailure setting is not valid.

\n

If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running, the ActionOnFailure parameter may not behave as you expect. In this case, for a step that fails with this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER, the cluster does not terminate.

" } }, "Status": { @@ -6882,7 +7079,7 @@ "ActionOnFailure": { "target": "com.amazonaws.emr#ActionOnFailure", "traits": { - "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility.\n We recommend using TERMINATE_CLUSTER instead.

" + "smithy.api#documentation": "

The action to take when the step fails. Use one of the following values:

\n \n

If a cluster's StepConcurrencyLevel is greater than 1, do not use AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the ActionOnFailure setting is not valid.

\n

If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running, the ActionOnFailure parameter may not behave as you expect. In this case, for a step that fails with this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER, the cluster does not terminate.

" } }, "HadoopJarStep": { @@ -6894,7 +7091,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specification of a cluster (job flow) step.

" + "smithy.api#documentation": "

Specification for a cluster (job flow) step.

" } }, "com.amazonaws.emr#StepConfigList": { @@ -7143,7 +7340,7 @@ "ActionOnFailure": { "target": "com.amazonaws.emr#ActionOnFailure", "traits": { - "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is available for backward compatibility.\n We recommend using TERMINATE_CLUSTER instead.

" + "smithy.api#documentation": "

The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER,\n CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is available for backward compatibility.

" } }, "Status": { @@ -7433,7 +7630,7 @@ } }, "traits": { - "smithy.api#documentation": "

A key-value pair containing user-defined metadata that you can associate with an Amazon\n EMR resource. Tags make it easier to associate clusters in various ways, such as grouping\n clusters to track your Amazon EMR resource allocation costs. For more information, see\n Tag\n Clusters.

" + "smithy.api#documentation": "

A key-value pair containing user-defined metadata that you can associate with an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping\n clusters to track your Amazon EMR resource allocation costs. For more information, see\n Tag\n Clusters.

" } }, "com.amazonaws.emr#TagList": { @@ -7669,13 +7866,13 @@ "IdentityId": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group. For more information, see\n UserId and GroupId in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The globally unique identifier (GUID) of the user or group. For more information, see\n UserId and GroupId in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityName": { "target": "com.amazonaws.emr#XmlStringMaxLen256", "traits": { - "smithy.api#documentation": "

The name of the user or group to update. For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" + "smithy.api#documentation": "

The name of the user or group to update. For more information, see UserName and DisplayName in the Amazon Web Services SSO Identity Store API Reference.\n Either IdentityName or IdentityId must be specified.

" } }, "IdentityType": { @@ -7738,7 +7935,7 @@ "min": 0, "max": 10280 }, - "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" } }, "com.amazonaws.emr#XmlStringList": { @@ -7754,7 +7951,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" } }, "com.amazonaws.emr#XmlStringMaxLen256List": { diff --git a/codegen/sdk-codegen/aws-models/emrcontainers.2020-10-01.json b/codegen/sdk-codegen/aws-models/emrcontainers.2020-10-01.json index 49248689f53..5a6baef6e02 100644 --- a/codegen/sdk-codegen/aws-models/emrcontainers.2020-10-01.json +++ b/codegen/sdk-codegen/aws-models/emrcontainers.2020-10-01.json @@ -175,7 +175,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.emrcontainers#CloudWatchMonitoringConfiguration": { @@ -199,6 +199,16 @@ "smithy.api#documentation": "

A configuration for CloudWatch monitoring. You can configure your jobs to send log information to CloudWatch Logs.

" } }, + "com.amazonaws.emrcontainers#ClusterId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[0-9A-Za-z][A-Za-z0-9\\-_]*$" + } + }, "com.amazonaws.emrcontainers#Configuration": { "type": "structure", "members": { @@ -283,7 +293,7 @@ } }, "id": { - "target": "com.amazonaws.emrcontainers#String256", + "target": "com.amazonaws.emrcontainers#ClusterId", "traits": { "smithy.api#documentation": "

The ID of the container cluster.

", "smithy.api#required": {} @@ -811,7 +821,7 @@ "type": "structure", "members": { "namespace": { - "target": "com.amazonaws.emrcontainers#String256", + "target": "com.amazonaws.emrcontainers#KubernetesNamespace", "traits": { "smithy.api#documentation": "

The namespaces of the EKS cluster.

" } @@ -908,6 +918,18 @@ "smithy.api#documentation": "

The subnet IDs of the endpoint.\n

" } }, + "stateDetails": { + "target": "com.amazonaws.emrcontainers#String256", + "traits": { + "smithy.api#documentation": "

\n Additional details of the endpoint state.\n

" + } + }, + "failureReason": { + "target": "com.amazonaws.emrcontainers#FailureReason", + "traits": { + "smithy.api#documentation": "

\n The reasons why the endpoint has failed.\n

" + } + }, "tags": { "target": "com.amazonaws.emrcontainers#TagMap", "traits": { @@ -975,7 +997,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.emrcontainers#EndpointTypes": { @@ -1003,7 +1025,7 @@ "min": 1, "max": 10280 }, - "smithy.api#pattern": "(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)", + "smithy.api#pattern": "^(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)$", "smithy.api#sensitive": {} } }, @@ -1020,7 +1042,7 @@ "min": 1, "max": 256 }, - "smithy.api#pattern": "(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)", + "smithy.api#pattern": "^(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)$", "smithy.api#sensitive": {} } }, @@ -1257,6 +1279,16 @@ "target": "com.amazonaws.emrcontainers#JobRun" } }, + "com.amazonaws.emrcontainers#KubernetesNamespace": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 63 + }, + "smithy.api#pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + }, "com.amazonaws.emrcontainers#ListJobRuns": { "type": "operation", "input": { @@ -1621,7 +1653,7 @@ "min": 1, "max": 512 }, - "smithy.api#pattern": "[\\.\\-_/#A-Za-z0-9]+" + "smithy.api#pattern": "^[\\.\\-_/#A-Za-z0-9]+$" } }, "com.amazonaws.emrcontainers#MonitoringConfiguration": { @@ -1657,7 +1689,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.emrcontainers#PersistentAppUI": { @@ -1682,7 +1714,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "[\\.\\-_/A-Za-z0-9]+" + "smithy.api#pattern": "^[\\.\\-_/A-Za-z0-9]+$" } }, "com.amazonaws.emrcontainers#RequestIdentityUserArn": { @@ -1702,7 +1734,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "[0-9a-z]+" + "smithy.api#pattern": "^[0-9a-z]+$" } }, "com.amazonaws.emrcontainers#ResourceNameString": { @@ -1712,7 +1744,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "[\\.\\-_/#A-Za-z0-9]+" + "smithy.api#pattern": "^[\\.\\-_/#A-Za-z0-9]+$" } }, "com.amazonaws.emrcontainers#ResourceNotFoundException": { @@ -1801,9 +1833,9 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 1024 + "max": 102400 }, - "smithy.api#pattern": "(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)", + "smithy.api#pattern": "^(?!\\s*$)(^[^';|\\u0026\\u003C\\u003E*?`$(){}\\[\\]!#\\\\]*$)$", "smithy.api#sensitive": {} } }, @@ -1931,7 +1963,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.emrcontainers#String128": { @@ -1941,7 +1973,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.emrcontainers#String256": { @@ -1951,7 +1983,7 @@ "min": 1, "max": 256 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.emrcontainers#StringEmpty256": { @@ -1961,7 +1993,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.emrcontainers#SubnetIds": { @@ -2109,7 +2141,7 @@ "min": 1, "max": 10280 }, - "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\r\\n\\t]*" + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\r\\n\\t]*$" } }, "com.amazonaws.emrcontainers#ValidationException": { diff --git a/codegen/sdk-codegen/aws-models/greengrassv2.2020-11-30.json b/codegen/sdk-codegen/aws-models/greengrassv2.2020-11-30.json index 5bdd9316eb2..2a77f5ed023 100644 --- a/codegen/sdk-codegen/aws-models/greengrassv2.2020-11-30.json +++ b/codegen/sdk-codegen/aws-models/greengrassv2.2020-11-30.json @@ -51,7 +51,7 @@ "thingName": { "target": "com.amazonaws.greengrassv2#IoTThingName", "traits": { - "smithy.api#documentation": "

The name of the AWS IoT thing that represents the client device to associate.

", + "smithy.api#documentation": "

The name of the IoT thing that represents the client device to associate.

", "smithy.api#required": {} } } @@ -78,7 +78,7 @@ "thingName": { "target": "com.amazonaws.greengrassv2#IoTThingName", "traits": { - "smithy.api#documentation": "

The name of the AWS IoT thing whose associate request failed.

" + "smithy.api#documentation": "

The name of the IoT thing whose associate request failed.

" } }, "code": { @@ -116,7 +116,7 @@ "thingName": { "target": "com.amazonaws.greengrassv2#IoTThingName", "traits": { - "smithy.api#documentation": "

The name of the AWS IoT thing that represents the associated client device.

" + "smithy.api#documentation": "

The name of the IoT thing that represents the associated client device.

" } }, "associationTimestamp": { @@ -168,7 +168,7 @@ } ], "traits": { - "smithy.api#documentation": "

Associate a list of client devices with a core device. Use this API operation to specify\n which client devices can discover a core device through cloud discovery. With cloud discovery,\n client devices connect to AWS IoT Greengrass to retrieve associated core devices' connectivity information\n and certificates. For more information, see Configure cloud\n discovery in the AWS IoT Greengrass V2 Developer Guide.

\n \n \n

Client devices are local IoT devices that connect to and communicate with an AWS IoT Greengrass core\n device over MQTT. You can connect client devices to a core device to sync MQTT messages and\n data to AWS IoT Core and interact with client devices in AWS IoT Greengrass components. For more information,\n see Interact with\n local IoT devices in the AWS IoT Greengrass V2 Developer Guide.

\n
", + "smithy.api#documentation": "

Associate a list of client devices with a core device. Use this API operation to specify\n which client devices can discover a core device through cloud discovery. With cloud discovery,\n client devices connect to IoT Greengrass to retrieve associated core devices' connectivity information\n and certificates. For more information, see Configure cloud\n discovery in the IoT Greengrass V2 Developer Guide.

\n \n \n

Client devices are local IoT devices that connect to and communicate with an IoT Greengrass core\n device over MQTT. You can connect client devices to a core device to sync MQTT messages and\n data to Amazon Web Services IoT Core and interact with client devices in Greengrass components. For more information,\n see Interact with\n local IoT devices in the IoT Greengrass V2 Developer Guide.

\n
", "smithy.api#http": { "method": "POST", "uri": "/greengrass/v2/coreDevices/{coreDeviceThingName}/associateClientDevices", @@ -188,7 +188,7 @@ "coreDeviceThingName": { "target": "com.amazonaws.greengrassv2#IoTThingName", "traits": { - "smithy.api#documentation": "

The name of the core device. This is also the name of the AWS IoT thing.

", + "smithy.api#documentation": "

The name of the core device. This is also the name of the IoT thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -201,7 +201,7 @@ "errorEntries": { "target": "com.amazonaws.greengrassv2#AssociateClientDeviceWithCoreDeviceErrorList", "traits": { - "smithy.api#documentation": "

The list of any errors for the entries in the request. Each error entry contains the name\n of the AWS IoT thing that failed to associate.

" + "smithy.api#documentation": "

The list of any errors for the entries in the request. Each error entry contains the name\n of the IoT thing that failed to associate.

" } } } @@ -252,7 +252,7 @@ "coreDeviceThingName": { "target": "com.amazonaws.greengrassv2#IoTThingName", "traits": { - "smithy.api#documentation": "

The name of the core device. This is also the name of the AWS IoT thing.

", + "smithy.api#documentation": "

The name of the core device. This is also the name of the IoT thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -265,11 +265,19 @@ "errorEntries": { "target": "com.amazonaws.greengrassv2#DisassociateClientDeviceFromCoreDeviceErrorList", "traits": { - "smithy.api#documentation": "

The list of errors (if any) for the entries in the request. Each error entry contains the\n name of the AWS IoT thing that failed to disassociate.

" + "smithy.api#documentation": "

The list of errors (if any) for the entries in the request. Each error entry contains the\n name of the IoT thing that failed to disassociate.

" } } } }, + "com.amazonaws.greengrassv2#CPU": { + "type": "double", + "traits": { + "smithy.api#range": { + "min": 0 + } + } + }, "com.amazonaws.greengrassv2#CancelDeployment": { "type": "operation", "input": { @@ -331,6 +339,16 @@ } } }, + "com.amazonaws.greengrassv2#ClientTokenString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9-]+$" + } + }, "com.amazonaws.greengrassv2#CloudComponentState": { "type": "string", "traits": { @@ -376,12 +394,12 @@ "errors": { "target": "com.amazonaws.greengrassv2#StringMap", "traits": { - "smithy.api#documentation": "

A dictionary of errors that communicate why the component is in an error state. For\n example, if AWS IoT Greengrass can't access an artifact for the component, then errors contains\n the artifact's URI as a key, and the error message as the value for that key.

" + "smithy.api#documentation": "

A dictionary of errors that communicate why the component is in an error state. For\n example, if IoT Greengrass can't access an artifact for the component, then errors contains\n the artifact's URI as a key, and the error message as the value for that key.

" } } }, "traits": { - "smithy.api#documentation": "

Contains the status of a component in the AWS IoT Greengrass service.

" + "smithy.api#documentation": "

Contains the status of a component in the IoT Greengrass service.

" } }, "com.amazonaws.greengrassv2#Component": { @@ -413,7 +431,7 @@ "com.amazonaws.greengrassv2#ComponentARN": { "type": "string", "traits": { - "smithy.api#pattern": "arn:aws(-cn|-us-gov)?:greengrass:[^:]+:(aws|[0-9]+):components:[^:]+" + "smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:greengrass:[^:]+:(aws|[0-9]+):components:[^:]+$" } }, "com.amazonaws.greengrassv2#ComponentCandidate": { @@ -434,12 +452,12 @@ "versionRequirements": { "target": "com.amazonaws.greengrassv2#ComponentVersionRequirementMap", "traits": { - "smithy.api#documentation": "

The version requirements for the component's dependencies. AWS IoT Greengrass core devices get the\n version requirements from component recipes.

\n

AWS IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

" + "smithy.api#documentation": "

The version requirements for the component's dependencies. Greengrass core devices get the\n version requirements from component recipes.

\n

IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

" } } }, "traits": { - "smithy.api#documentation": "

Contains information about a component that is a candidate to deploy to a AWS IoT Greengrass core\n device.

" + "smithy.api#documentation": "

Contains information about a component that is a candidate to deploy to a Greengrass core\n device.

" } }, "com.amazonaws.greengrassv2#ComponentCandidateList": { @@ -478,18 +496,18 @@ "merge": { "target": "com.amazonaws.greengrassv2#ComponentConfigurationString", "traits": { - "smithy.api#documentation": "

A serialized JSON string that contains the configuration object to merge to target\n devices. The core device merges this configuration with the component's existing\n configuration. If this is the first time a component deploys on a device, the core device\n merges this configuration with the component's default configuration. This means that the core\n device keeps it's existing configuration for keys and values that you don't specify in this\n object. For more information, see Merge configuration updates in the AWS IoT Greengrass V2 Developer\n Guide.

" + "smithy.api#documentation": "

A serialized JSON string that contains the configuration object to merge to target\n devices. The core device merges this configuration with the component's existing\n configuration. If this is the first time a component deploys on a device, the core device\n merges this configuration with the component's default configuration. This means that the core\n device keeps it's existing configuration for keys and values that you don't specify in this\n object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer\n Guide.

" } }, "reset": { "target": "com.amazonaws.greengrassv2#ComponentConfigurationPathList", "traits": { - "smithy.api#documentation": "

The list of configuration nodes to reset to default values on target devices. Use JSON\n pointers to specify each node to reset. JSON pointers start with a forward slash\n (/) and use forward slashes to separate the key for each level in the object.\n For more information, see the JSON pointer\n specification and Reset configuration updates in the AWS IoT Greengrass V2 Developer\n Guide.

" + "smithy.api#documentation": "

The list of configuration nodes to reset to default values on target devices. Use JSON\n pointers to specify each node to reset. JSON pointers start with a forward slash\n (/) and use forward slashes to separate the key for each level in the object.\n For more information, see the JSON pointer\n specification and Reset configuration updates in the IoT Greengrass V2 Developer\n Guide.

" } } }, "traits": { - "smithy.api#documentation": "

Contains information about a deployment's update to a component's configuration on\n Greengrass core devices. For more information, see Update component\n configurations in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

Contains information about a deployment's update to a component's configuration on\n Greengrass core devices. For more information, see Update component\n configurations in the IoT Greengrass V2 Developer Guide.

" } }, "com.amazonaws.greengrassv2#ComponentDependencyMap": { @@ -507,7 +525,7 @@ "versionRequirement": { "target": "com.amazonaws.greengrassv2#NonEmptyString", "traits": { - "smithy.api#documentation": "

The component version requirement for the component dependency.

\n

AWS IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

" + "smithy.api#documentation": "

The component version requirement for the component dependency.

\n

IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

" } }, "dependencyType": { @@ -548,13 +566,13 @@ "configurationUpdate": { "target": "com.amazonaws.greengrassv2#ComponentConfigurationUpdate", "traits": { - "smithy.api#documentation": "

The configuration updates to deploy for the component. You can define\n reset updates and merge updates. A reset updates\n the keys that you specify to the default configuration for the component. A merge updates the\n core device's component configuration with the keys and values that you specify. The AWS IoT Greengrass Core\n software applies reset updates before it applies merge updates. For more information, see\n Update component\n configurations in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

The configuration updates to deploy for the component. You can define\n reset updates and merge updates. A reset updates\n the keys that you specify to the default configuration for the component. A merge updates the\n core device's component configuration with the keys and values that you specify. The IoT Greengrass Core\n software applies reset updates before it applies merge updates. For more information, see\n Update component\n configurations in the IoT Greengrass V2 Developer Guide.

" } }, "runWith": { "target": "com.amazonaws.greengrassv2#ComponentRunWith", "traits": { - "smithy.api#documentation": "

The system user and group that the AWS IoT Greengrass Core software uses to run component processes on the\n core device. If you omit this parameter, the AWS IoT Greengrass Core software uses the system user and group\n that you configure for the core device. For more information, see Configure the user and group that run components in the AWS IoT Greengrass V2 Developer\n Guide.

" + "smithy.api#documentation": "

The system user and group that the IoT Greengrass Core software uses to run component processes on the\n core device. If you omit this parameter, the IoT Greengrass Core software uses the system user and group\n that you configure for the core device. For more information, see Configure the user and group that run components in the IoT Greengrass V2 Developer\n Guide.

" } } }, @@ -628,7 +646,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9-_.]+" + "smithy.api#pattern": "^[a-zA-Z0-9-_.]+$" } }, "com.amazonaws.greengrassv2#ComponentPlatform": { @@ -637,13 +655,13 @@ "name": { "target": "com.amazonaws.greengrassv2#NonEmptyString", "traits": { - "smithy.api#documentation": "

The friendly name of the platform. This name helps you identify the platform.

\n

If you omit this parameter, AWS IoT Greengrass creates a friendly name from the os and\n architecture of the platform.

" + "smithy.api#documentation": "

The friendly name of the platform. This name helps you identify the platform.

\n

If you omit this parameter, IoT Greengrass creates a friendly name from the os and\n architecture of the platform.

" } }, "attributes": { "target": "com.amazonaws.greengrassv2#PlatformAttributesMap", "traits": { - "smithy.api#documentation": "

A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the\n os and platform by default. You can specify additional platform\n attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information,\n see the AWS IoT Greengrass nucleus\n component in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

A dictionary of attributes for the platform. The IoT Greengrass Core software defines the\n os and platform by default. You can specify additional platform\n attributes for a core device when you deploy the Greengrass nucleus component. For more information,\n see the Greengrass nucleus\n component in the IoT Greengrass V2 Developer Guide.

" } } }, @@ -663,18 +681,24 @@ "posixUser": { "target": "com.amazonaws.greengrassv2#NonEmptyString", "traits": { - "smithy.api#documentation": "

The POSIX system user and (optional) group to use to run this component. Specify the user\n and group separated by a colon (:) in the following format:\n user:group. The group is optional. If you don't specify a group, the AWS IoT Greengrass Core\n software uses the primary user for the group.

" + "smithy.api#documentation": "

The POSIX system user and (optional) group to use to run this component. Specify the user\n and group separated by a colon (:) in the following format:\n user:group. The group is optional. If you don't specify a group, the IoT Greengrass Core\n software uses the primary user for the group.

\n

If you omit this parameter, the IoT Greengrass Core software uses the default system user and group that\n you configure on the Greengrass nucleus component. For more information, see Configure the user and group that run components.

" + } + }, + "systemResourceLimits": { + "target": "com.amazonaws.greengrassv2#SystemResourceLimits", + "traits": { + "smithy.api#documentation": "

The system resource limits to apply to this component's process on the core device.

\n

If you omit this parameter, the IoT Greengrass Core software uses the default system resource limits\n that you configure on the Greengrass nucleus component. For more information, see Configure system resource limits for components.

" } } }, "traits": { - "smithy.api#documentation": "

Contains information system user and group that the AWS IoT Greengrass Core software uses to run component\n processes on the core device. For more information, see Configure the user and group that run components in the AWS IoT Greengrass V2 Developer\n Guide.

" + "smithy.api#documentation": "

Contains information system user and group that the IoT Greengrass Core software uses to run component\n processes on the core device. For more information, see Configure the user and group that run components in the IoT Greengrass V2 Developer\n Guide.

" } }, "com.amazonaws.greengrassv2#ComponentVersionARN": { "type": "string", "traits": { - "smithy.api#pattern": "arn:aws(-cn|-us-gov)?:greengrass:[^:]+:(aws|[0-9]+):components:[^:]+:versions:[^:]+" + "smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:greengrass:[^:]+:(aws|[0-9]+):components:[^:]+:versions:[^:]+$" } }, "com.amazonaws.greengrassv2#ComponentVersionList": { @@ -725,7 +749,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "[0-9a-zA-Z-.+]+" + "smithy.api#pattern": "^[0-9a-zA-Z-.+]+$" } }, "com.amazonaws.greengrassv2#ComponentVisibilityScope": { @@ -779,13 +803,13 @@ "coreDeviceThingName": { "target": "com.amazonaws.greengrassv2#CoreDeviceThingName", "traits": { - "smithy.api#documentation": "

The name of the core device. This is also the name of the AWS IoT thing.

" + "smithy.api#documentation": "

The name of the core device. This is also the name of the IoT thing.

" } }, "status": { "target": "com.amazonaws.greengrassv2#CoreDeviceStatus", "traits": { - "smithy.api#documentation": "

The status of the core device. Core devices can have the following statuses:

\n " + "smithy.api#documentation": "

The status of the core device. Core devices can have the following statuses:

\n " } }, "lastStatusUpdateTimestamp": { @@ -796,7 +820,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about a AWS IoT Greengrass core device, which is an AWS IoT thing that runs the AWS IoT Greengrass\n Core software.

" + "smithy.api#documentation": "

Contains information about a Greengrass core device, which is an IoT thing that runs the IoT Greengrass\n Core software.

" } }, "com.amazonaws.greengrassv2#CoreDeviceArchitectureString": { @@ -865,6 +889,9 @@ { "target": "com.amazonaws.greengrassv2#InternalServerException" }, + { + "target": "com.amazonaws.greengrassv2#RequestAlreadyInProgressException" + }, { "target": "com.amazonaws.greengrassv2#ServiceQuotaExceededException" }, @@ -876,7 +903,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a component. Components are software that run on AWS IoT Greengrass core devices. After you\n develop and test a component on your core device, you can use this operation to upload your\n component to AWS IoT Greengrass. Then, you can deploy the component to other core devices.

\n

You can use this operation to do the following:

\n ", + "smithy.api#documentation": "

Creates a component. Components are software that run on Greengrass core devices. After you\n develop and test a component on your core device, you can use this operation to upload your\n component to IoT Greengrass. Then, you can deploy the component to other core devices.

\n

You can use this operation to do the following:

\n ", "smithy.api#http": { "method": "POST", "uri": "/greengrass/v2/createComponentVersion", @@ -902,7 +929,14 @@ "tags": { "target": "com.amazonaws.greengrassv2#TagMap", "traits": { - "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the IoT Greengrass V2 Developer Guide.

" + } + }, + "clientToken": { + "target": "com.amazonaws.greengrassv2#ClientTokenString", + "traits": { + "smithy.api#documentation": "

A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. \n Idempotency means that the request is successfully processed only once, even if you send the request multiple times. \n When a request succeeds, and you specify the same client token for subsequent successful requests, the IoT Greengrass V2 service \n returns the successful response that it caches from the previous request. IoT Greengrass V2 caches successful responses for \n idempotent requests for up to 8 hours.

", + "smithy.api#idempotencyToken": {} } } } @@ -940,7 +974,7 @@ "status": { "target": "com.amazonaws.greengrassv2#CloudComponentStatus", "traits": { - "smithy.api#documentation": "

The status of the component version in AWS IoT Greengrass V2. This status\n is different from the status of the component on a core device.

", + "smithy.api#documentation": "

The status of the component version in IoT Greengrass V2. This status\n is different from the status of the component on a core device.

", "smithy.api#required": {} } } @@ -961,6 +995,9 @@ { "target": "com.amazonaws.greengrassv2#InternalServerException" }, + { + "target": "com.amazonaws.greengrassv2#RequestAlreadyInProgressException" + }, { "target": "com.amazonaws.greengrassv2#ResourceNotFoundException" }, @@ -972,7 +1009,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a continuous deployment for a target, which is a AWS IoT Greengrass core device or group of core\n devices. When you add a new core device to a group of core devices that has a deployment, AWS IoT Greengrass\n deploys that group's deployment to the new device.

\n

You can define one deployment for each target. When you create a new deployment for a\n target that has an existing deployment, you replace the previous deployment. AWS IoT Greengrass applies the\n new deployment to the target devices.

\n

Every deployment has a revision number that indicates how many deployment revisions you\n define for a target. Use this operation to create a new revision of an existing deployment.\n This operation returns the revision number of the new deployment when you create it.

\n

For more information, see the Create deployments in the\n AWS IoT Greengrass V2 Developer Guide.

", + "smithy.api#documentation": "

Creates a continuous deployment for a target, which is a Greengrass core device or group of core\n devices. When you add a new core device to a group of core devices that has a deployment, IoT Greengrass\n deploys that group's deployment to the new device.

\n

You can define one deployment for each target. When you create a new deployment for a\n target that has an existing deployment, you replace the previous deployment. IoT Greengrass applies the\n new deployment to the target devices.

\n

Every deployment has a revision number that indicates how many deployment revisions you\n define for a target. Use this operation to create a new revision of an existing deployment.\n This operation returns the revision number of the new deployment when you create it.

\n

For more information, see the Create deployments in the\n IoT Greengrass V2 Developer Guide.

", "smithy.api#http": { "method": "POST", "uri": "/greengrass/v2/deployments", @@ -986,14 +1023,14 @@ "targetArn": { "target": "com.amazonaws.greengrassv2#TargetARN", "traits": { - "smithy.api#documentation": "

The ARN of the target AWS IoT thing or thing group.

", + "smithy.api#documentation": "

The ARN of the target IoT thing or thing group.

", "smithy.api#required": {} } }, "deploymentName": { "target": "com.amazonaws.greengrassv2#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the deployment.

\n

You can create deployments without names. If you create a deployment without a name, the\n AWS IoT Greengrass V2 console shows the deployment name as :,\n where targetType and targetName are the type and name of the\n deployment target.

" + "smithy.api#documentation": "

The name of the deployment.

" } }, "components": { @@ -1017,7 +1054,14 @@ "tags": { "target": "com.amazonaws.greengrassv2#TagMap", "traits": { - "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the IoT Greengrass V2 Developer Guide.

" + } + }, + "clientToken": { + "target": "com.amazonaws.greengrassv2#ClientTokenString", + "traits": { + "smithy.api#documentation": "

A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. \n Idempotency means that the request is successfully processed only once, even if you send the request multiple times. \n When a request succeeds, and you specify the same client token for subsequent successful requests, the IoT Greengrass V2 service \n returns the successful response that it caches from the previous request. IoT Greengrass V2 caches successful responses for \n idempotent requests for up to 8 hours.

", + "smithy.api#idempotencyToken": {} } } } @@ -1034,13 +1078,13 @@ "iotJobId": { "target": "com.amazonaws.greengrassv2#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ID of the AWS IoT job that applies the deployment to target devices.

" + "smithy.api#documentation": "

The ID of the IoT job that applies the deployment to target devices.

" } }, "iotJobArn": { "target": "com.amazonaws.greengrassv2#IoTJobARN", "traits": { - "smithy.api#documentation": "

The ARN of the AWS IoT job that applies the deployment to target devices.

" + "smithy.api#documentation": "

The ARN of the IoT job that applies the deployment to target devices.

" } } } @@ -1080,7 +1124,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a version of a component from AWS IoT Greengrass.

\n \n

This operation deletes the component's recipe and artifacts. As a result, deployments\n that refer to this component version will fail. If you have deployments that use this\n component version, you can remove the component from the deployment or update the deployment\n to use a valid version.

\n
", + "smithy.api#documentation": "

Deletes a version of a component from IoT Greengrass.

\n \n

This operation deletes the component's recipe and artifacts. As a result, deployments\n that refer to this component version will fail. If you have deployments that use this\n component version, you can remove the component from the deployment or update the deployment\n to use a valid version.

\n
", "smithy.api#http": { "method": "DELETE", "uri": "/greengrass/v2/components/{arn}", @@ -1127,7 +1171,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a AWS IoT Greengrass core device, which is an AWS IoT thing. This operation removes the core\n device from the list of core devices. This operation doesn't delete the AWS IoT thing. For more\n information about how to delete the AWS IoT thing, see DeleteThing in the\n AWS IoT API Reference.

", + "smithy.api#documentation": "

Deletes a Greengrass core device, which is an IoT thing. This operation removes the core\n device from the list of core devices. This operation doesn't delete the IoT thing. For more\n information about how to delete the IoT thing, see DeleteThing in the\n IoT API Reference.

", "smithy.api#http": { "method": "DELETE", "uri": "/greengrass/v2/coreDevices/{coreDeviceThingName}", @@ -1141,7 +1185,7 @@ "coreDeviceThingName": { "target": "com.amazonaws.greengrassv2#CoreDeviceThingName", "traits": { - "smithy.api#documentation": "

The name of the core device. This is also the name of the AWS IoT thing.

", + "smithy.api#documentation": "

The name of the core device. This is also the name of the IoT thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1154,7 +1198,7 @@ "targetArn": { "target": "com.amazonaws.greengrassv2#TargetARN", "traits": { - "smithy.api#documentation": "

The ARN of the target AWS IoT thing or thing group.

" + "smithy.api#documentation": "

The ARN of the target IoT thing or thing group.

" } }, "revisionId": { @@ -1172,7 +1216,7 @@ "deploymentName": { "target": "com.amazonaws.greengrassv2#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the deployment.

\n

You can create deployments without names. If you create a deployment without a name, the\n AWS IoT Greengrass V2 console shows the deployment name as :,\n where targetType and targetName are the type and name of the\n deployment target.

" + "smithy.api#documentation": "

The name of the deployment.

" } }, "creationTimestamp": { @@ -1211,7 +1255,7 @@ "action": { "target": "com.amazonaws.greengrassv2#DeploymentComponentUpdatePolicyAction", "traits": { - "smithy.api#documentation": "

Whether or not to notify components and wait for components to become safe to update.\n Choose from the following options:

\n \n

Default: NOTIFY_COMPONENTS\n

" + "smithy.api#documentation": "

Whether or not to notify components and wait for components to become safe to update.\n Choose from the following options:

\n \n

Default: NOTIFY_COMPONENTS\n

" } } }, @@ -1246,7 +1290,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about how long a component on a core device can validate its\n configuration updates before it times out. Components can use the SubscribeToValidateConfigurationUpdates IPC operation to receive notifications when\n a deployment specifies a configuration update. Then, components can respond with the SendConfigurationValidityReport IPC operation. For more information, see Create deployments in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

Contains information about how long a component on a core device can validate its\n configuration updates before it times out. Components can use the SubscribeToValidateConfigurationUpdates IPC operation to receive notifications when\n a deployment specifies a configuration update. Then, components can respond with the SendConfigurationValidityReport IPC operation. For more information, see Create deployments in the IoT Greengrass V2 Developer Guide.

" } }, "com.amazonaws.greengrassv2#DeploymentFailureHandlingPolicy": { @@ -1305,7 +1349,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about an AWS IoT job configuration.

" + "smithy.api#documentation": "

Contains information about an IoT job configuration.

" } }, "com.amazonaws.greengrassv2#DeploymentList": { @@ -1459,7 +1503,7 @@ "status": { "target": "com.amazonaws.greengrassv2#CloudComponentStatus", "traits": { - "smithy.api#documentation": "

The status of the component version in AWS IoT Greengrass V2. This status\n is different from the status of the component on a core device.

" + "smithy.api#documentation": "

The status of the component version in IoT Greengrass V2. This status\n is different from the status of the component on a core device.

" } }, "platforms": { @@ -1471,7 +1515,7 @@ "tags": { "target": "com.amazonaws.greengrassv2#TagMap", "traits": { - "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the IoT Greengrass V2 Developer Guide.

" } } } @@ -1494,7 +1538,7 @@ "thingName": { "target": "com.amazonaws.greengrassv2#IoTThingName", "traits": { - "smithy.api#documentation": "

The name of the AWS IoT thing that represents the client device to disassociate.

", + "smithy.api#documentation": "

The name of the IoT thing that represents the client device to disassociate.

", "smithy.api#required": {} } } @@ -1521,7 +1565,7 @@ "thingName": { "target": "com.amazonaws.greengrassv2#IoTThingName", "traits": { - "smithy.api#documentation": "

The name of the AWS IoT thing whose disassociate request failed.

" + "smithy.api#documentation": "

The name of the IoT thing whose disassociate request failed.

" } }, "code": { @@ -1566,20 +1610,20 @@ "deploymentName": { "target": "com.amazonaws.greengrassv2#DeploymentName", "traits": { - "smithy.api#documentation": "

The name of the deployment.

\n

You can create deployments without names. If you create a deployment without a name, the\n AWS IoT Greengrass V2 console shows the deployment name as :,\n where targetType and targetName are the type and name of the\n deployment target.

", + "smithy.api#documentation": "

The name of the deployment.

", "smithy.api#required": {} } }, "iotJobId": { "target": "com.amazonaws.greengrassv2#IoTJobId", "traits": { - "smithy.api#documentation": "

The ID of the AWS IoT job that applies the deployment to target devices.

" + "smithy.api#documentation": "

The ID of the IoT job that applies the deployment to target devices.

" } }, "iotJobArn": { "target": "com.amazonaws.greengrassv2#IoTJobARN", "traits": { - "smithy.api#documentation": "

The ARN of the AWS IoT job that applies the deployment to target devices.

" + "smithy.api#documentation": "

The ARN of the IoT job that applies the deployment to target devices.

" } }, "description": { @@ -1591,14 +1635,14 @@ "targetArn": { "target": "com.amazonaws.greengrassv2#TargetARN", "traits": { - "smithy.api#documentation": "

The ARN of the target AWS IoT thing or thing group.

", + "smithy.api#documentation": "

The ARN of the target IoT thing or thing group.

", "smithy.api#required": {} } }, "coreDeviceExecutionStatus": { "target": "com.amazonaws.greengrassv2#EffectiveDeploymentExecutionStatus", "traits": { - "smithy.api#documentation": "

The status of the deployment job on the AWS IoT Greengrass core device.

", + "smithy.api#documentation": "

The status of the deployment job on the Greengrass core device.

", "smithy.api#required": {} } }, @@ -1624,7 +1668,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about a deployment job that AWS IoT Greengrass sends to a AWS IoT Greengrass core device.

" + "smithy.api#documentation": "

Contains information about a deployment job that IoT Greengrass sends to a Greengrass core device.

" } }, "com.amazonaws.greengrassv2#EffectiveDeploymentExecutionStatus": { @@ -1683,7 +1727,7 @@ "com.amazonaws.greengrassv2#GenericV2ARN": { "type": "string", "traits": { - "smithy.api#pattern": "arn:aws(-cn|-us-gov)?:greengrass:[^:]+:(aws|[0-9]+):(components|deployments|coreDevices):.+" + "smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:greengrass:[^:]+:(aws|[0-9]+):(components|deployments|coreDevices):.+$" } }, "com.amazonaws.greengrassv2#GetComponent": { @@ -1760,7 +1804,7 @@ "tags": { "target": "com.amazonaws.greengrassv2#TagMap", "traits": { - "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the IoT Greengrass V2 Developer Guide.

" } } } @@ -1858,7 +1902,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves metadata for a AWS IoT Greengrass core device.

", + "smithy.api#documentation": "

Retrieves metadata for a Greengrass core device.

", "smithy.api#http": { "method": "GET", "uri": "/greengrass/v2/coreDevices/{coreDeviceThingName}", @@ -1872,7 +1916,7 @@ "coreDeviceThingName": { "target": "com.amazonaws.greengrassv2#CoreDeviceThingName", "traits": { - "smithy.api#documentation": "

The name of the core device. This is also the name of the AWS IoT thing.

", + "smithy.api#documentation": "

The name of the core device. This is also the name of the IoT thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1885,13 +1929,13 @@ "coreDeviceThingName": { "target": "com.amazonaws.greengrassv2#CoreDeviceThingName", "traits": { - "smithy.api#documentation": "

The name of the core device. This is also the name of the AWS IoT thing.

" + "smithy.api#documentation": "

The name of the core device. This is also the name of the IoT thing.

" } }, "coreVersion": { "target": "com.amazonaws.greengrassv2#GGCVersion", "traits": { - "smithy.api#documentation": "

The version of the AWS IoT Greengrass Core software that the core device runs. This version is equivalent to\n the version of the AWS IoT Greengrass nucleus component that runs on the core device. For more information,\n see the AWS IoT Greengrass nucleus\n component in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

The version of the IoT Greengrass Core software that the core device runs. This version is equivalent to\n the version of the Greengrass nucleus component that runs on the core device. For more information,\n see the Greengrass nucleus\n component in the IoT Greengrass V2 Developer Guide.

" } }, "platform": { @@ -1909,7 +1953,7 @@ "status": { "target": "com.amazonaws.greengrassv2#CoreDeviceStatus", "traits": { - "smithy.api#documentation": "

The status of the core device. The core device status can be:

\n " + "smithy.api#documentation": "

The status of the core device. The core device status can be:

\n " } }, "lastStatusUpdateTimestamp": { @@ -1921,7 +1965,7 @@ "tags": { "target": "com.amazonaws.greengrassv2#TagMap", "traits": { - "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the IoT Greengrass V2 Developer Guide.

" } } } @@ -1952,7 +1996,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets a deployment. Deployments define the components that run on AWS IoT Greengrass core devices.

", + "smithy.api#documentation": "

Gets a deployment. Deployments define the components that run on Greengrass core devices.

", "smithy.api#http": { "method": "GET", "uri": "/greengrass/v2/deployments/{deploymentId}", @@ -1979,7 +2023,7 @@ "targetArn": { "target": "com.amazonaws.greengrassv2#TargetARN", "traits": { - "smithy.api#documentation": "

The ARN of the target AWS IoT thing or thing group.

" + "smithy.api#documentation": "

The ARN of the target IoT thing or thing group.

" } }, "revisionId": { @@ -1997,7 +2041,7 @@ "deploymentName": { "target": "com.amazonaws.greengrassv2#NullableString", "traits": { - "smithy.api#documentation": "

The name of the deployment.

\n

You can create deployments without names. If you create a deployment without a name, the\n AWS IoT Greengrass V2 console shows the deployment name as :,\n where targetType and targetName are the type and name of the\n deployment target.

" + "smithy.api#documentation": "

The name of the deployment.

" } }, "deploymentStatus": { @@ -2009,13 +2053,13 @@ "iotJobId": { "target": "com.amazonaws.greengrassv2#NullableString", "traits": { - "smithy.api#documentation": "

The ID of the AWS IoT job that applies the deployment to target devices.

" + "smithy.api#documentation": "

The ID of the IoT job that applies the deployment to target devices.

" } }, "iotJobArn": { "target": "com.amazonaws.greengrassv2#IoTJobARN", "traits": { - "smithy.api#documentation": "

The ARN of the AWS IoT job that applies the deployment to target devices.

" + "smithy.api#documentation": "

The ARN of the IoT job that applies the deployment to target devices.

" } }, "components": { @@ -2051,7 +2095,7 @@ "tags": { "target": "com.amazonaws.greengrassv2#TagMap", "traits": { - "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the IoT Greengrass V2 Developer Guide.

" } } } @@ -2142,7 +2186,7 @@ "name": "greengrass" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

AWS IoT Greengrass brings local compute, messaging, data management, sync, and ML inference capabilities\n to edge devices. This enables devices to collect and analyze data closer to the source of\n information, react autonomously to local events, and communicate securely with each other on\n local networks. Local devices can also communicate securely with AWS IoT Core and export IoT data\n to the AWS Cloud. AWS IoT Greengrass developers can use AWS Lambda functions and components to create and\n deploy applications to fleets of edge devices for local operation.

\n

AWS IoT Greengrass Version 2 provides a new major version of the AWS IoT Greengrass Core software, new APIs, and a new console.\n Use this API reference to learn how to use the AWS IoT Greengrass V2 API operations to manage components,\n manage deployments, and core devices.

\n

For more information, see What is AWS IoT Greengrass? in\n the AWS IoT Greengrass V2 Developer Guide.

", + "smithy.api#documentation": "

IoT Greengrass brings local compute, messaging, data management, sync, and ML inference capabilities\n to edge devices. This enables devices to collect and analyze data closer to the source of\n information, react autonomously to local events, and communicate securely with each other on\n local networks. Local devices can also communicate securely with Amazon Web Services IoT Core and export IoT data\n to the Amazon Web Services Cloud. IoT Greengrass developers can use Lambda functions and components to create and\n deploy applications to fleets of edge devices for local operation.

\n

IoT Greengrass Version 2 provides a new major version of the IoT Greengrass Core software, new APIs, and a new console.\n Use this API reference to learn how to use the IoT Greengrass V2 API operations to manage components,\n manage deployments, and core devices.

\n

For more information, see What is IoT Greengrass? in\n the IoT Greengrass V2 Developer Guide.

", "smithy.api#title": "AWS IoT Greengrass V2" } }, @@ -2181,7 +2225,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about a component on a AWS IoT Greengrass core device.

" + "smithy.api#documentation": "

Contains information about a component on a Greengrass core device.

" } }, "com.amazonaws.greengrassv2#InstalledComponentLifecycleState": { @@ -2247,7 +2291,7 @@ } }, "traits": { - "smithy.api#documentation": "

AWS IoT Greengrass can't process your request right now. Try again later.

", + "smithy.api#documentation": "

IoT Greengrass can't process your request right now. Try again later.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } @@ -2255,7 +2299,7 @@ "com.amazonaws.greengrassv2#IoTJobARN": { "type": "string", "traits": { - "smithy.api#pattern": "arn:aws(-cn|-us-gov)?:iot:[^:]+:[0-9]+:job/.+" + "smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:iot:[^:]+:[0-9]+:job/.+$" } }, "com.amazonaws.greengrassv2#IoTJobAbortAction": { @@ -2550,7 +2594,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about a container in which AWS Lambda functions run on AWS IoT Greengrass core\n devices.

" + "smithy.api#documentation": "

Contains information about a container in which Lambda functions run on Greengrass core\n devices.

" } }, "com.amazonaws.greengrassv2#LambdaDeviceList": { @@ -2609,13 +2653,13 @@ "type": { "target": "com.amazonaws.greengrassv2#LambdaEventSourceType", "traits": { - "smithy.api#documentation": "

The type of event source. Choose from the following options:

\n ", + "smithy.api#documentation": "

The type of event source. Choose from the following options:

\n ", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Contains information about an event source for an AWS Lambda function. The event source\n defines the topics on which this Lambda function subscribes to receive messages that run the\n function.

" + "smithy.api#documentation": "

Contains information about an event source for an Lambda function. The event source\n defines the topics on which this Lambda function subscribes to receive messages that run the\n function.

" } }, "com.amazonaws.greengrassv2#LambdaEventSourceList": { @@ -2654,14 +2698,14 @@ "eventSources": { "target": "com.amazonaws.greengrassv2#LambdaEventSourceList", "traits": { - "smithy.api#documentation": "

The list of event sources to which to subscribe to receive work messages. The Lambda\n function runs when it receives a message from an event source. You can subscribe this function\n to local publish/subscribe messages and AWS IoT Core MQTT messages.

" + "smithy.api#documentation": "

The list of event sources to which to subscribe to receive work messages. The Lambda\n function runs when it receives a message from an event source. You can subscribe this function\n to local publish/subscribe messages and Amazon Web Services IoT Core MQTT messages.

" } }, "maxQueueSize": { "target": "com.amazonaws.greengrassv2#OptionalInteger", "traits": { "smithy.api#box": {}, - "smithy.api#documentation": "

The maximum size of the message queue for the Lambda function component. The AWS IoT Greengrass core\n stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to\n consume each message.

" + "smithy.api#documentation": "

The maximum size of the message queue for the Lambda function component. The IoT Greengrass core\n stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to\n consume each message.

" } }, "maxInstancesCount": { @@ -2675,7 +2719,7 @@ "target": "com.amazonaws.greengrassv2#OptionalInteger", "traits": { "smithy.api#box": {}, - "smithy.api#documentation": "

The maximum amount of time in seconds that a non-pinned Lambda function can idle before the\n AWS IoT Greengrass Core software stops its process.

" + "smithy.api#documentation": "

The maximum amount of time in seconds that a non-pinned Lambda function can idle before the\n IoT Greengrass Core software stops its process.

" } }, "timeoutInSeconds": { @@ -2696,7 +2740,7 @@ "target": "com.amazonaws.greengrassv2#OptionalBoolean", "traits": { "smithy.api#box": {}, - "smithy.api#documentation": "

Whether or not the Lambda function is pinned, or long-lived.

\n \n

Default: true\n

" + "smithy.api#documentation": "

Whether or not the Lambda function is pinned, or long-lived.

\n \n

Default: true\n

" } }, "inputPayloadEncodingType": { @@ -2725,7 +2769,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains parameters for a Lambda function that runs on AWS IoT Greengrass.

" + "smithy.api#documentation": "

Contains parameters for a Lambda function that runs on IoT Greengrass.

" } }, "com.amazonaws.greengrassv2#LambdaFilesystemPermission": { @@ -2746,7 +2790,7 @@ "com.amazonaws.greengrassv2#LambdaFunctionARNWithVersionNumber": { "type": "string", "traits": { - "smithy.api#pattern": "arn:aws(-cn|-us-gov)?:lambda:[^:]+:[0-9]+:function:[a-zA-Z0-9-_]+:[0-9]+" + "smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:lambda:[^:]+:[0-9]+:function:[a-zA-Z0-9-_]+:[0-9]+$" } }, "com.amazonaws.greengrassv2#LambdaFunctionRecipeSource": { @@ -2786,12 +2830,12 @@ "componentLambdaParameters": { "target": "com.amazonaws.greengrassv2#LambdaExecutionParameters", "traits": { - "smithy.api#documentation": "

The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core\n device.

" + "smithy.api#documentation": "

The system and runtime parameters for the Lambda function as it runs on the Greengrass core\n device.

" } } }, "traits": { - "smithy.api#documentation": "

Contains information about an AWS Lambda function to import to create a component.

" + "smithy.api#documentation": "

Contains information about an Lambda function to import to create a component.

" } }, "com.amazonaws.greengrassv2#LambdaInputPayloadEncodingType": { @@ -2830,7 +2874,7 @@ "isolationMode": { "target": "com.amazonaws.greengrassv2#LambdaIsolationMode", "traits": { - "smithy.api#documentation": "

The isolation mode for the process that contains the Lambda function. The process can run\n in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside\n any container.

\n

Default: GreengrassContainer\n

" + "smithy.api#documentation": "

The isolation mode for the process that contains the Lambda function. The process can run\n in an isolated runtime environment inside the IoT Greengrass container, or as a regular process outside\n any container.

\n

Default: GreengrassContainer\n

" } }, "containerParams": { @@ -2841,7 +2885,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains parameters for a Linux process that contains an AWS Lambda function.

" + "smithy.api#documentation": "

Contains parameters for a Linux process that contains an Lambda function.

" } }, "com.amazonaws.greengrassv2#LambdaVolumeList": { @@ -2877,12 +2921,12 @@ "target": "com.amazonaws.greengrassv2#OptionalBoolean", "traits": { "smithy.api#box": {}, - "smithy.api#documentation": "

Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.

\n

Default: false\n

" + "smithy.api#documentation": "

Whether or not to add the IoT Greengrass user group as an owner of the volume.

\n

Default: false\n

" } } }, "traits": { - "smithy.api#documentation": "

Contains information about a volume that Linux processes in a container can access. When\n you define a volume, the AWS IoT Greengrass Core software mounts the source files to the destination inside the\n container.

" + "smithy.api#documentation": "

Contains information about a volume that Linux processes in a container can access. When\n you define a volume, the IoT Greengrass Core software mounts the source files to the destination inside the\n container.

" } }, "com.amazonaws.greengrassv2#LifecycleStateDetails": { @@ -2939,7 +2983,7 @@ "coreDeviceThingName": { "target": "com.amazonaws.greengrassv2#IoTThingName", "traits": { - "smithy.api#documentation": "

The name of the core device. This is also the name of the AWS IoT thing.

", + "smithy.api#documentation": "

The name of the core device. This is also the name of the IoT thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3165,7 +3209,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a paginated list of AWS IoT Greengrass core devices.

", + "smithy.api#documentation": "

Retrieves a paginated list of Greengrass core devices.

", "smithy.api#http": { "method": "GET", "uri": "/greengrass/v2/coreDevices", @@ -3184,14 +3228,14 @@ "thingGroupArn": { "target": "com.amazonaws.greengrassv2#ThingGroupARN", "traits": { - "smithy.api#documentation": "

The ARN of the AWS IoT thing group by which to filter. If you specify this parameter, the\n list includes only core devices that are members of this thing group.

", + "smithy.api#documentation": "

The ARN of the IoT thing group by which to filter. If you specify this parameter, the\n list includes only core devices that are members of this thing group.

", "smithy.api#httpQuery": "thingGroupArn" } }, "status": { "target": "com.amazonaws.greengrassv2#CoreDeviceStatus", "traits": { - "smithy.api#documentation": "

The core device status by which to filter. If you specify this parameter, the list\n includes only core devices that have this status. Choose one of the following options:

\n ", + "smithy.api#documentation": "

The core device status by which to filter. If you specify this parameter, the list\n includes only core devices that have this status. Choose one of the following options:

\n ", "smithy.api#httpQuery": "status" } }, @@ -3271,7 +3315,7 @@ "targetArn": { "target": "com.amazonaws.greengrassv2#TargetARN", "traits": { - "smithy.api#documentation": "

The ARN of the target AWS IoT thing or thing group.

", + "smithy.api#documentation": "

The ARN of the target IoT thing or thing group.

", "smithy.api#httpQuery": "targetArn" } }, @@ -3342,7 +3386,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a paginated list of deployment jobs that AWS IoT Greengrass sends to AWS IoT Greengrass core\n devices.

", + "smithy.api#documentation": "

Retrieves a paginated list of deployment jobs that IoT Greengrass sends to Greengrass core\n devices.

", "smithy.api#http": { "method": "GET", "uri": "/greengrass/v2/coreDevices/{coreDeviceThingName}/effectiveDeployments", @@ -3361,7 +3405,7 @@ "coreDeviceThingName": { "target": "com.amazonaws.greengrassv2#CoreDeviceThingName", "traits": { - "smithy.api#documentation": "

The name of the core device. This is also the name of the AWS IoT thing.

", + "smithy.api#documentation": "

The name of the core device. This is also the name of the IoT thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3426,7 +3470,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a paginated list of the components that a AWS IoT Greengrass core device runs.

", + "smithy.api#documentation": "

Retrieves a paginated list of the components that a Greengrass core device runs.

", "smithy.api#http": { "method": "GET", "uri": "/greengrass/v2/coreDevices/{coreDeviceThingName}/installedComponents", @@ -3445,7 +3489,7 @@ "coreDeviceThingName": { "target": "com.amazonaws.greengrassv2#CoreDeviceThingName", "traits": { - "smithy.api#documentation": "

The name of the core device. This is also the name of the AWS IoT thing.

", + "smithy.api#documentation": "

The name of the core device. This is also the name of the IoT thing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3504,7 +3548,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the list of tags for an AWS IoT Greengrass resource.

", + "smithy.api#documentation": "

Retrieves the list of tags for an IoT Greengrass resource.

", "smithy.api#http": { "method": "GET", "uri": "/tags/{resourceArn}", @@ -3531,11 +3575,20 @@ "tags": { "target": "com.amazonaws.greengrassv2#TagMap", "traits": { - "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the AWS IoT Greengrass V2 Developer Guide.

" + "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the IoT Greengrass V2 Developer Guide.

" } } } }, + "com.amazonaws.greengrassv2#Memory": { + "type": "long", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 9223372036854771712 + } + } + }, "com.amazonaws.greengrassv2#NextTokenString": { "type": "string" }, @@ -3589,6 +3642,22 @@ ] } }, + "com.amazonaws.greengrassv2#RequestAlreadyInProgressException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.greengrassv2#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request is already in progress. This exception occurs when you use a client token for\n multiple requests while IoT Greengrass is still processing an earlier request that uses the same client\n token.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, "com.amazonaws.greengrassv2#ResolveComponentCandidates": { "type": "operation", "input": { @@ -3618,7 +3687,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of components that meet the component, version, and platform requirements\n of a deployment. AWS IoT Greengrass core devices call this operation when they receive a deployment to\n identify the components to install.

\n

This operation identifies components that meet all dependency requirements for a\n deployment. If the requirements conflict, then this operation returns an error and the\n deployment fails. For example, this occurs if component A requires version\n >2.0.0 and component B requires version <2.0.0\n of a component dependency.

\n

When you specify the component candidates to resolve, AWS IoT Greengrass compares each component's\n digest from the core device with the component's digest in the AWS Cloud. If the digests don't\n match, then AWS IoT Greengrass specifies to use the version from the AWS Cloud.

\n \n

To use this operation, you must use the data plane API endpoint and authenticate with an\n AWS IoT device certificate. For more information, see AWS IoT Greengrass endpoints and quotas.

\n
", + "smithy.api#documentation": "

Retrieves a list of components that meet the component, version, and platform requirements\n of a deployment. Greengrass core devices call this operation when they receive a deployment to\n identify the components to install.

\n

This operation identifies components that meet all dependency requirements for a\n deployment. If the requirements conflict, then this operation returns an error and the\n deployment fails. For example, this occurs if component A requires version\n >2.0.0 and component B requires version <2.0.0\n of a component dependency.

\n

When you specify the component candidates to resolve, IoT Greengrass compares each component's\n digest from the core device with the component's digest in the Amazon Web Services Cloud. If the digests don't\n match, then IoT Greengrass specifies to use the version from the Amazon Web Services Cloud.

\n \n

To use this operation, you must use the data plane API endpoint and authenticate with an\n IoT device certificate. For more information, see IoT Greengrass endpoints and quotas.

\n
", "smithy.api#http": { "method": "POST", "uri": "/greengrass/v2/resolveComponentCandidates", @@ -3685,7 +3754,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about a component version that is compatible to run on a AWS IoT Greengrass core\n device.

" + "smithy.api#documentation": "

Contains information about a component version that is compatible to run on a Greengrass core\n device.

" } }, "com.amazonaws.greengrassv2#ResolvedComponentVersionsList": { @@ -3781,6 +3850,26 @@ "target": "com.amazonaws.greengrassv2#NonEmptyString" } }, + "com.amazonaws.greengrassv2#SystemResourceLimits": { + "type": "structure", + "members": { + "memory": { + "target": "com.amazonaws.greengrassv2#Memory", + "traits": { + "smithy.api#documentation": "

The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on\n the core device.

" + } + }, + "cpus": { + "target": "com.amazonaws.greengrassv2#CPU", + "traits": { + "smithy.api#documentation": "

The maximum amount of CPU time that a component's processes can use on the core device. A\n core device's total CPU time is equivalent to the device's number of CPU cores. For example,\n on a core device with 4 CPU cores, you can set this value to 2 to limit the\n component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you\n can set this value to 0.25 to limit the component's processes to 25 percent usage\n of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core\n software doesn't limit the component's CPU usage.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains information about system resource limits that the IoT Greengrass Core software applies to a\n component's processes. For more information, see Configure system resource limits for components.

" + } + }, "com.amazonaws.greengrassv2#TagKey": { "type": "string", "traits": { @@ -3838,7 +3927,7 @@ } ], "traits": { - "smithy.api#documentation": "

Adds tags to an AWS IoT Greengrass resource. If a tag already exists for the resource, this operation\n updates the tag's value.

", + "smithy.api#documentation": "

Adds tags to an IoT Greengrass resource. If a tag already exists for the resource, this operation\n updates the tag's value.

", "smithy.api#http": { "method": "POST", "uri": "/tags/{resourceArn}", @@ -3860,7 +3949,7 @@ "tags": { "target": "com.amazonaws.greengrassv2#TagMap", "traits": { - "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the AWS IoT Greengrass V2 Developer Guide.

", + "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the resource. For more\n information, see Tag your\n resources in the IoT Greengrass V2 Developer Guide.

", "smithy.api#required": {} } } @@ -3882,13 +3971,13 @@ "com.amazonaws.greengrassv2#TargetARN": { "type": "string", "traits": { - "smithy.api#pattern": "arn:aws(-cn|-us-gov)?:iot:[^:]+:[0-9]+:(thing|thinggroup)/.+" + "smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:iot:[^:]+:[0-9]+:(thing|thinggroup)/.+$" } }, "com.amazonaws.greengrassv2#ThingGroupARN": { "type": "string", "traits": { - "smithy.api#pattern": "arn:aws(-cn|-us-gov)?:iot:[^:]+:[0-9]+:thinggroup/.+" + "smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:iot:[^:]+:[0-9]+:thinggroup/.+$" } }, "com.amazonaws.greengrassv2#ThrottlingException": { @@ -3952,7 +4041,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes a tag from an AWS IoT Greengrass resource.

", + "smithy.api#documentation": "

Removes a tag from an IoT Greengrass resource.

", "smithy.api#http": { "method": "DELETE", "uri": "/tags/{resourceArn}", diff --git a/codegen/sdk-codegen/aws-models/health.2016-08-04.json b/codegen/sdk-codegen/aws-models/health.2016-08-04.json index 5ace346c8a3..a2242baa351 100644 --- a/codegen/sdk-codegen/aws-models/health.2016-08-04.json +++ b/codegen/sdk-codegen/aws-models/health.2016-08-04.json @@ -331,7 +331,7 @@ } }, "maxResults": { - "target": "com.amazonaws.health#maxResults", + "target": "com.amazonaws.health#maxResultsLowerRange", "traits": { "smithy.api#documentation": "

The maximum number of items to return in one batch, between 10 and 100, inclusive.

" } @@ -787,7 +787,7 @@ } }, "maxResults": { - "target": "com.amazonaws.health#maxResults", + "target": "com.amazonaws.health#maxResultsLowerRange", "traits": { "smithy.api#documentation": "

The maximum number of items to return in one batch, between 10 and 100, inclusive.

" } @@ -1312,7 +1312,7 @@ "min": 3, "max": 100 }, - "smithy.api#pattern": "[^:/]{3,100}" + "smithy.api#pattern": "^[^:/]{3,100}$" } }, "com.amazonaws.health#EventTypeCategoryList": { @@ -1674,7 +1674,7 @@ "min": 6, "max": 18 }, - "smithy.api#pattern": "[a-z]{2}\\-[0-9a-z\\-]{4,16}" + "smithy.api#pattern": "^[a-z]{2}\\-[0-9a-z\\-]{4,16}$" } }, "com.amazonaws.health#availabilityZones": { @@ -1717,7 +1717,7 @@ "min": 0, "max": 1600 }, - "smithy.api#pattern": ".{0,1600}" + "smithy.api#pattern": "^.{0,1600}$" } }, "com.amazonaws.health#entityArnList": { @@ -1728,7 +1728,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 100 + "max": 99 } } }, @@ -1773,7 +1773,7 @@ "min": 0, "max": 1224 }, - "smithy.api#pattern": ".{0,1224}" + "smithy.api#pattern": "^.{0,1224}$" } }, "com.amazonaws.health#entityValueList": { @@ -1784,7 +1784,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 100 + "max": 99 } } }, @@ -1806,7 +1806,7 @@ "min": 0, "max": 1600 }, - "smithy.api#pattern": "arn:aws(-[a-z]+(-[a-z]+)?)?:health:[^:]*:[^:]*:event(?:/[\\w-]+){3}" + "smithy.api#pattern": "^arn:aws(-[a-z]+(-[a-z]+)?)?:health:[^:]*:[^:]*:event(?:/[\\w-]+){3}$" } }, "com.amazonaws.health#eventArnList": { @@ -1926,7 +1926,7 @@ "min": 3, "max": 100 }, - "smithy.api#pattern": "[a-zA-Z0-9\\_\\-]{3,100}" + "smithy.api#pattern": "^[a-zA-Z0-9\\_\\-]{3,100}$" } }, "com.amazonaws.health#eventTypeList2": { @@ -1951,7 +1951,7 @@ "min": 2, "max": 256 }, - "smithy.api#pattern": ".{2,256}" + "smithy.api#pattern": "^.{2,256}$" } }, "com.amazonaws.health#maxResults": { @@ -1964,6 +1964,16 @@ } } }, + "com.amazonaws.health#maxResultsLowerRange": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1, + "max": 100 + } + } + }, "com.amazonaws.health#metadataKey": { "type": "string", "traits": { @@ -1989,7 +1999,7 @@ "min": 4, "max": 10000 }, - "smithy.api#pattern": "[a-zA-Z0-9=/+_.-]{4,10000}" + "smithy.api#pattern": "^[a-zA-Z0-9=/+_.-]{4,10000}$" } }, "com.amazonaws.health#region": { @@ -1999,7 +2009,7 @@ "min": 2, "max": 25 }, - "smithy.api#pattern": "[^:/]{2,25}" + "smithy.api#pattern": "^[^:/]{2,25}$" } }, "com.amazonaws.health#regionList": { @@ -2021,7 +2031,7 @@ "min": 2, "max": 30 }, - "smithy.api#pattern": "[^:/]{2,30}" + "smithy.api#pattern": "^[^:/]{2,30}$" } }, "com.amazonaws.health#serviceList": { @@ -2058,7 +2068,7 @@ "min": 0, "max": 127 }, - "smithy.api#pattern": ".{0,127}" + "smithy.api#pattern": "^.{0,127}$" } }, "com.amazonaws.health#tagSet": { @@ -2083,7 +2093,7 @@ "min": 0, "max": 255 }, - "smithy.api#pattern": ".{0,255}" + "smithy.api#pattern": "^.{0,255}$" } }, "com.amazonaws.health#timestamp": { diff --git a/codegen/sdk-codegen/aws-models/iam.2010-05-08.json b/codegen/sdk-codegen/aws-models/iam.2010-05-08.json index 77f793ffd7b..d361b1aad68 100644 --- a/codegen/sdk-codegen/aws-models/iam.2010-05-08.json +++ b/codegen/sdk-codegen/aws-models/iam.2010-05-08.json @@ -1510,7 +1510,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).

\n

The OIDC provider that you create with this operation can be used as a principal in a\n role's trust policy. Such a policy establishes a trust relationship between Amazon Web Services and\n the OIDC provider.

\n

If you are using an OIDC identity provider from Google, Facebook, or Amazon Cognito, you don't\n need to create a separate IAM identity provider. These OIDC identity providers are\n already built-in to Amazon Web Services and are available for your use. Instead, you can move directly\n to creating new roles using your identity provider. To learn more, see Creating\n a role for web identity or OpenID connect federation in the IAM\n User Guide.

\n

When you create the IAM OIDC provider, you specify the following:

\n \n

You get all of this information from the OIDC IdP that you want to use to access\n Amazon Web Services.

\n \n

The trust for the OIDC provider is derived from the IAM provider that this\n operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider operation to highly privileged\n users.

\n
" + "smithy.api#documentation": "

Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).

\n

The OIDC provider that you create with this operation can be used as a principal in a\n role's trust policy. Such a policy establishes a trust relationship between Amazon Web Services and\n the OIDC provider.

\n

If you are using an OIDC identity provider from Google, Facebook, or Amazon Cognito, you don't\n need to create a separate IAM identity provider. These OIDC identity providers are\n already built-in to Amazon Web Services and are available for your use. Instead, you can move directly\n to creating new roles using your identity provider. To learn more, see Creating\n a role for web identity or OpenID connect federation in the IAM\n User Guide.

\n

When you create the IAM OIDC provider, you specify the following:

\n \n

You get all of this information from the OIDC IdP that you want to use to access\n Amazon Web Services.

\n \n

Amazon Web Services secures communication with some OIDC identity providers (IdPs) through our\n library of trusted certificate authorities (CAs) instead of using a certificate\n thumbprint to verify your IdP server certificate. These OIDC IdPs include Google, and\n those that use an Amazon S3 bucket to host a JSON Web Key Set (JWKS) endpoint. In these\n cases, your legacy thumbprint remains in your configuration, but is no longer used for validation.

\n
\n \n

The trust for the OIDC provider is derived from the IAM provider that this\n operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider operation to highly privileged\n users.

\n
" } }, "com.amazonaws.iam#CreateOpenIDConnectProviderRequest": { @@ -11479,7 +11479,7 @@ } ], "traits": { - "smithy.api#documentation": "

Replaces the existing list of server certificate thumbprints associated with an OpenID\n Connect (OIDC) provider resource object with a new list of thumbprints.

\n

The list that you pass with this operation completely replaces the existing list of\n thumbprints. (The lists are not merged.)

\n

Typically, you need to update a thumbprint only when the identity provider's\n certificate changes, which occurs rarely. However, if the provider's certificate\n does change, any attempt to assume an IAM role that specifies\n the OIDC provider as a principal fails until the certificate thumbprint is\n updated.

\n \n

Trust for the OIDC provider is derived from the provider's certificate and is\n validated by the thumbprint. Therefore, it is best to limit access to the\n UpdateOpenIDConnectProviderThumbprint operation to highly\n privileged users.

\n
" + "smithy.api#documentation": "

Replaces the existing list of server certificate thumbprints associated with an OpenID\n Connect (OIDC) provider resource object with a new list of thumbprints.

\n

The list that you pass with this operation completely replaces the existing list of\n thumbprints. (The lists are not merged.)

\n

Typically, you need to update a thumbprint only when the identity provider\n certificate changes, which occurs rarely. However, if the provider's certificate\n does change, any attempt to assume an IAM role that specifies\n the OIDC provider as a principal fails until the certificate thumbprint is\n updated.

\n \n

Amazon Web Services secures communication with some OIDC identity providers (IdPs) through our\n library of trusted certificate authorities (CAs) instead of using a certificate\n thumbprint to verify your IdP server certificate. These OIDC IdPs include Google, and\n those that use an Amazon S3 bucket to host a JSON Web Key Set (JWKS) endpoint. In these\n cases, your legacy thumbprint remains in your configuration, but is no longer used for validation.

\n
\n \n

Trust for the OIDC provider is derived from the provider certificate and is\n validated by the thumbprint. Therefore, it is best to limit access to the\n UpdateOpenIDConnectProviderThumbprint operation to highly\n privileged users.

\n
" } }, "com.amazonaws.iam#UpdateOpenIDConnectProviderThumbprintRequest": { diff --git a/codegen/sdk-codegen/aws-models/identitystore.2020-06-15.json b/codegen/sdk-codegen/aws-models/identitystore.2020-06-15.json index 533894f6eea..d7ffa7e6a52 100644 --- a/codegen/sdk-codegen/aws-models/identitystore.2020-06-15.json +++ b/codegen/sdk-codegen/aws-models/identitystore.2020-06-15.json @@ -58,6 +58,7 @@ "name": "identitystore" }, "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "

The AWS Single Sign-On (SSO) Identity Store service provides a single place to retrieve all of your\n identities (users and groups). For more information about AWS, see the AWS Single Sign-On User\n Guide.

", "smithy.api#title": "AWS SSO Identity Store" } }, @@ -87,7 +88,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}  ]+" + "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}  ]+$" } }, "com.amazonaws.identitystore#DescribeGroup": { @@ -125,7 +126,7 @@ "IdentityStoreId": { "target": "com.amazonaws.identitystore#IdentityStoreId", "traits": { - "smithy.api#documentation": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string which contains number and lower case letters. This value is generated at the time that a new identity store is created.

", + "smithy.api#documentation": "

The globally unique identifier for the identity store, such as\n d-1234567890. In this example, d- is a fixed prefix, and\n 1234567890 is a randomly generated string that contains number and lower\n case letters. This value is generated at the time that a new identity store is\n created.

", "smithy.api#required": {} } }, @@ -151,7 +152,7 @@ "DisplayName": { "target": "com.amazonaws.identitystore#GroupDisplayName", "traits": { - "smithy.api#documentation": "

Contains the group’s display name value. The length limit is 1024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space and non breaking space in this attribute. The characters “<>;:%” are excluded. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store.

", + "smithy.api#documentation": "

Contains the group’s display name value. The length limit is 1,024 characters. This\n value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new\n line, carriage return, space, and nonbreaking space in this attribute. The characters\n <>;:% are excluded. This value is specified at the time that the\n group is created and stored as an attribute of the group object in the identity\n store.

", "smithy.api#required": {} } } @@ -192,7 +193,7 @@ "IdentityStoreId": { "target": "com.amazonaws.identitystore#IdentityStoreId", "traits": { - "smithy.api#documentation": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string which contains number and lower case letters. This value is generated at the time that a new identity store is created.

", + "smithy.api#documentation": "

The globally unique identifier for the identity store, such as\n d-1234567890. In this example, d- is a fixed prefix, and\n 1234567890 is a randomly generated string that contains number and lower\n case letters. This value is generated at the time that a new identity store is\n created.

", "smithy.api#required": {} } }, @@ -211,7 +212,7 @@ "UserName": { "target": "com.amazonaws.identitystore#UserName", "traits": { - "smithy.api#documentation": "

Contains the user’s username value. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers and punctuation. The characters “<>;:%” are excluded. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

", + "smithy.api#documentation": "

Contains the user’s user name value. The length limit is 128 characters. This value can\n consist of letters, accented characters, symbols, numbers, and punctuation. The characters\n <>;:% are excluded. This value is specified at the time the user is\n created and stored as an attribute of the user object in the identity store.

", "smithy.api#required": {} } }, @@ -230,7 +231,7 @@ "AttributePath": { "target": "com.amazonaws.identitystore#AttributePath", "traits": { - "smithy.api#documentation": "

The attribute path used to specify which attribute name to search. Length limit is 255 characters. For example, UserName is a valid attribute path for the ListUsers API, and DisplayName is a valid attribute path for the ListGroups API.

", + "smithy.api#documentation": "

The attribute path that is used to specify which attribute name to search. Length limit\n is 255 characters. For example, UserName is a valid attribute path for the\n ListUsers API, and DisplayName is a valid attribute path for\n the ListGroups API.

", "smithy.api#required": {} } }, @@ -243,7 +244,7 @@ } }, "traits": { - "smithy.api#documentation": "

A query filter used by ListUsers and ListGroup. This filter object provides the attribute name and attribute value to search users or groups.

" + "smithy.api#documentation": "

A query filter used by ListUsers and ListGroup. This filter object provides the attribute name and attribute value to\n search users or groups.

" } }, "com.amazonaws.identitystore#Filters": { @@ -265,7 +266,7 @@ "DisplayName": { "target": "com.amazonaws.identitystore#GroupDisplayName", "traits": { - "smithy.api#documentation": "

Contains the group’s display name value. The length limit is 1024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space and non breaking space in this attribute. The characters “<>;:%” are excluded. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store.

", + "smithy.api#documentation": "

Contains the group’s display name value. The length limit is 1,024 characters. This\n value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new\n line, carriage return, space, and nonbreaking space in this attribute. The characters\n <>;:% are excluded. This value is specified at the time the group\n is created and stored as an attribute of the group object in the identity store.

", "smithy.api#required": {} } } @@ -281,7 +282,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+" + "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+$" } }, "com.amazonaws.identitystore#Groups": { @@ -345,7 +346,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the attribute name and value of the group that you specified in the search. We only support DisplayName as a valid filter attribute path currently, and filter is required. This API returns minimum attributes, including GroupId and group DisplayName in the response.

", + "smithy.api#documentation": "

Lists the attribute name and value of the group that you specified in the search. We only support DisplayName as a valid filter\n attribute path currently, and filter is required. This API returns minimum attributes, including GroupId and group\n DisplayName in the response.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -359,20 +360,20 @@ "IdentityStoreId": { "target": "com.amazonaws.identitystore#IdentityStoreId", "traits": { - "smithy.api#documentation": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string which contains number and lower case letters. This value is generated at the time that a new identity store is created.

", + "smithy.api#documentation": "

The globally unique identifier for the identity store, such as\n d-1234567890. In this example, d- is a fixed prefix, and\n 1234567890 is a randomly generated string that contains number and lower\n case letters. This value is generated at the time that a new identity store is\n created.

", "smithy.api#required": {} } }, "MaxResults": { "target": "com.amazonaws.identitystore#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned per request, which is used in the ListUsers and ListGroups request to specify how many results to return in one page. The length limit is 50 characters.

" + "smithy.api#documentation": "

The maximum number of results to be returned per request. This parameter is used in the\n ListUsers and ListGroups request to specify how many results\n to return in one page. The length limit is 50 characters.

" } }, "NextToken": { "target": "com.amazonaws.identitystore#NextToken", "traits": { - "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups APIs. This value is generated by the identity store service and is returned in the API response if the total results are more than the size of one page, and when this token is used in the API request to search for the next page.

" + "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups API\n operations. This value is generated by the identity store service. It is returned in the\n API response if the total results are more than the size of one page. This token is also\n returned when it is used in the API request to search for the next page.

" } }, "Filters": { @@ -396,7 +397,7 @@ "NextToken": { "target": "com.amazonaws.identitystore#NextToken", "traits": { - "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups APIs. This value is generated by the identity store service and is returned in the API response if the total results are more than the size of one page, and when this token is used in the API request to search for the next page.

" + "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups API\n operations. This value is generated by the identity store service. It is returned in the\n API response if the total results are more than the size of one page. This token is also\n returned when it1 is used in the API request to search for the next page.

" } } } @@ -427,7 +428,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the attribute name and value of the user that you specified in the search. We only support UserName as a valid filter attribute path currently, and filter is required. This API returns minimum attributes, including UserId and UserName in the response.

", + "smithy.api#documentation": "

Lists the attribute name and value of the user that you specified in the search. We only support UserName as a valid filter attribute\n path currently, and filter is required. This API returns minimum attributes, including UserId and UserName in the\n response.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -441,20 +442,20 @@ "IdentityStoreId": { "target": "com.amazonaws.identitystore#IdentityStoreId", "traits": { - "smithy.api#documentation": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string which contains number and lower case letters. This value is generated at the time that a new identity store is created.

", + "smithy.api#documentation": "

The globally unique identifier for the identity store, such as\n d-1234567890. In this example, d- is a fixed prefix, and\n 1234567890 is a randomly generated string that contains number and lower\n case letters. This value is generated at the time that a new identity store is\n created.

", "smithy.api#required": {} } }, "MaxResults": { "target": "com.amazonaws.identitystore#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to be returned per request, which is used in the ListUsers and ListGroups request to specify how many results to return in one page. The length limit is 50 characters.

" + "smithy.api#documentation": "

The maximum number of results to be returned per request. This parameter is used in the\n ListUsers and ListGroups request to specify how many results\n to return in one page. The length limit is 50 characters.

" } }, "NextToken": { "target": "com.amazonaws.identitystore#NextToken", "traits": { - "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups APIs. This value is generated by the identity store service and is returned in the API response if the total results are more than the size of one page, and when this token is used in the API request to search for the next page.

" + "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups API\n operations. This value is generated by the identity store service. It is returned in the\n API response if the total results are more than the size of one page. This token is also\n returned when it is used in the API request to search for the next page.

" } }, "Filters": { @@ -478,7 +479,7 @@ "NextToken": { "target": "com.amazonaws.identitystore#NextToken", "traits": { - "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups APIs. This value is generated by the identity store service and is returned in the API response if the total results are more than the size of one page, and when this token is used in the API request to search for the next page.

" + "smithy.api#documentation": "

The pagination token used for the ListUsers and ListGroups API\n operations. This value is generated by the identity store service. It is returned in the\n API response if the total results are more than the size of one page. This token is also\n returned when it is used in the API request to search for the next page.

" } } } @@ -509,13 +510,13 @@ "min": 1, "max": 65535 }, - "smithy.api#pattern": "^[-a-zA-Z0-9+=/:]*" + "smithy.api#pattern": "^[-a-zA-Z0-9+=/:]*$" } }, "com.amazonaws.identitystore#RequestId": { "type": "string", "traits": { - "smithy.api#pattern": "[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}" + "smithy.api#pattern": "^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$" } }, "com.amazonaws.identitystore#ResourceId": { @@ -585,7 +586,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+", + "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+$", "smithy.api#sensitive": {} } }, @@ -614,7 +615,7 @@ "UserName": { "target": "com.amazonaws.identitystore#UserName", "traits": { - "smithy.api#documentation": "

Contains the user’s username value. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers and punctuation. The characters “<>;:%” are excluded. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

", + "smithy.api#documentation": "

Contains the user’s user name value. The length limit is 128 characters. This value can\n consist of letters, accented characters, symbols, numbers, and punctuation. The characters\n <>;:% are excluded. This value is specified at the time the user is\n created and stored as an attribute of the user object in the identity store.

", "smithy.api#required": {} } }, @@ -637,7 +638,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+", + "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+$", "smithy.api#sensitive": {} } }, diff --git a/codegen/sdk-codegen/aws-models/imagebuilder.2019-12-02.json b/codegen/sdk-codegen/aws-models/imagebuilder.2019-12-02.json index 2e89ed41d8b..53e8a186d78 100644 --- a/codegen/sdk-codegen/aws-models/imagebuilder.2019-12-02.json +++ b/codegen/sdk-codegen/aws-models/imagebuilder.2019-12-02.json @@ -144,7 +144,7 @@ "launchPermission": { "target": "com.amazonaws.imagebuilder#LaunchPermissionConfiguration", "traits": { - "smithy.api#documentation": "

Launch permissions can be used to configure which accounts can use the AMI to launch\n instances.

" + "smithy.api#documentation": "

Launch permissions can be used to configure which accounts can use the AMI to launch\n\t\t\tinstances.

" } } }, @@ -222,7 +222,7 @@ } ], "traits": { - "smithy.api#documentation": "

CancelImageCreation cancels the creation of Image. This operation can only be used on\n images in a non-terminal state.

", + "smithy.api#documentation": "

CancelImageCreation cancels the creation of Image. This operation can only be used on\n\t\t\timages in a non-terminal state.

", "smithy.api#http": { "method": "PUT", "uri": "/CancelImageCreation", @@ -281,7 +281,7 @@ } }, "traits": { - "smithy.api#documentation": "

These errors are usually caused by a client action, such as using an action or resource on\n behalf of a user that doesn't have permissions to use the action or resource, or specifying an\n invalid resource identifier.

", + "smithy.api#documentation": "

These errors are usually caused by a client action, such as using an action or resource on\n\t\t\tbehalf of a user that doesn't have permissions to use the action or resource, or specifying an\n\t\t\tinvalid resource identifier.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -331,7 +331,7 @@ "type": { "target": "com.amazonaws.imagebuilder#ComponentType", "traits": { - "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n to test it.

" + "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n\t\t\tto test it.

" } }, "platform": { @@ -343,7 +343,7 @@ "supportedOsVersions": { "target": "com.amazonaws.imagebuilder#OsVersionList", "traits": { - "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n available, a prefix match is performed against the parent image OS version during image recipe\n creation.

" + "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n\t\t\tavailable, a prefix match is performed against the parent image OS version during image recipe\n\t\t\tcreation.

" } }, "parameters": { @@ -593,13 +593,13 @@ "supportedOsVersions": { "target": "com.amazonaws.imagebuilder#OsVersionList", "traits": { - "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n available, a prefix match is performed against the parent image OS version during image recipe\n creation.

" + "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n\t\t\tavailable, a prefix match is performed against the parent image OS version during image recipe\n\t\t\tcreation.

" } }, "type": { "target": "com.amazonaws.imagebuilder#ComponentType", "traits": { - "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n to test it.

" + "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n\t\t\tto test it.

" } }, "owner": { @@ -664,7 +664,7 @@ "arn": { "target": "com.amazonaws.imagebuilder#ImageBuilderArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the component.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the component.

\n\t\t \n\t\t\t

Semantic versioning is included in each object's Amazon Resource Name (ARN), \n\tat the level that applies to that object as follows:

\n\t
    \n
  1. \n\t\t\t

    Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are \n\t\t\t\teither left off entirely, or they are specified as wildcards, for example: x.x.x.

    \n\t\t
  2. \n
  3. \n\t\t\t

    Version ARNs have only the first three nodes: ..

    \n\t\t
  4. \n
  5. \n\t\t\t

    Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.

    \n\t\t
  6. \n
\n\t\t
" } }, "name": { @@ -676,7 +676,7 @@ "version": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the component.

" + "smithy.api#documentation": "

The semantic version of the component.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" } }, "description": { @@ -694,13 +694,13 @@ "supportedOsVersions": { "target": "com.amazonaws.imagebuilder#OsVersionList", "traits": { - "smithy.api#documentation": "

he operating system (OS) version supported by the component. If the OS information is\n available, a prefix match is performed against the parent image OS version during image recipe\n creation.

" + "smithy.api#documentation": "

he operating system (OS) version supported by the component. If the OS information is\n\t\t\tavailable, a prefix match is performed against the parent image OS version during image recipe\n\t\t\tcreation.

" } }, "type": { "target": "com.amazonaws.imagebuilder#ComponentType", "traits": { - "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n to test it.

" + "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n\t\t\tto test it.

" } }, "owner": { @@ -717,7 +717,7 @@ } }, "traits": { - "smithy.api#documentation": "

A high-level overview of a component semantic version.

" + "smithy.api#documentation": "

The defining characteristics of a specific version of an TOE component.

" } }, "com.amazonaws.imagebuilder#ComponentVersionArn": { @@ -797,7 +797,7 @@ "arn": { "target": "com.amazonaws.imagebuilder#ImageBuilderArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container recipe.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container recipe.

\n\t\t \n\t\t\t

Semantic versioning is included in each object's Amazon Resource Name (ARN), \n\tat the level that applies to that object as follows:

\n\t
    \n
  1. \n\t\t\t

    Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are \n\t\t\t\teither left off entirely, or they are specified as wildcards, for example: x.x.x.

    \n\t\t
  2. \n
  3. \n\t\t\t

    Version ARNs have only the first three nodes: ..

    \n\t\t
  4. \n
  5. \n\t\t\t

    Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.

    \n\t\t
  6. \n
\n\t\t
" } }, "containerType": { @@ -833,7 +833,7 @@ "version": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the container recipe (..).

" + "smithy.api#documentation": "

The semantic version of the container recipe.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" } }, "components": { @@ -1035,7 +1035,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new component that can be used to build, validate, test, and assess your\n image.

", + "smithy.api#documentation": "

Creates a new component that can be used to build, validate, test, and assess your\n\t\t\timage.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateComponent", @@ -1056,7 +1056,7 @@ "semanticVersion": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the component. This version follows the semantic version syntax.\n For example, major.minor.patch. This could be versioned like software (2.0.1) or like a date\n (2019.12.01).

", + "smithy.api#documentation": "

The semantic version of the component. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t
", "smithy.api#required": {} } }, @@ -1069,7 +1069,7 @@ "changeDescription": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The change description of the component. Describes what change has been made in this\n version, or what makes this version different from other versions of this component.

" + "smithy.api#documentation": "

The change description of the component. Describes what change has been made in this\n\t\t\tversion, or what makes this version different from other versions of this component.

" } }, "platform": { @@ -1082,19 +1082,19 @@ "supportedOsVersions": { "target": "com.amazonaws.imagebuilder#OsVersionList", "traits": { - "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n available, a prefix match is performed against the parent image OS version during image recipe\n creation.

" + "smithy.api#documentation": "

The operating system (OS) version supported by the component. If the OS information is\n\t\t\tavailable, a prefix match is performed against the parent image OS version during image recipe\n\t\t\tcreation.

" } }, "data": { "target": "com.amazonaws.imagebuilder#InlineComponentData", "traits": { - "smithy.api#documentation": "

The data of the component. Used to specify the data inline. Either data or\n uri can be used to specify the data within the component.

" + "smithy.api#documentation": "

The data of the component. Used to specify the data inline. Either data or\n\t\t\turi can be used to specify the data within the component.

" } }, "uri": { "target": "com.amazonaws.imagebuilder#Uri", "traits": { - "smithy.api#documentation": "

The uri of the component. Must be an Amazon S3 URL and the requester must have permission to\n access the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service\n quota. Either data or uri can be used to specify the data within the\n component.

" + "smithy.api#documentation": "

The uri of the component. Must be an Amazon S3 URL and the requester must have permission to\n\t\t\taccess the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service\n\t\t\tquota. Either data or uri can be used to specify the data within the\n\t\t\tcomponent.

" } }, "kmsKeyId": { @@ -1220,7 +1220,7 @@ "semanticVersion": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the container recipe (..).

", + "smithy.api#documentation": "

The semantic version of the container recipe. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t
", "smithy.api#required": {} } }, @@ -1370,7 +1370,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new distribution configuration. Distribution configurations define and configure\n the outputs of your pipeline.

", + "smithy.api#documentation": "

Creates a new distribution configuration. Distribution configurations define and configure\n\t\t\tthe outputs of your pipeline.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateDistributionConfiguration", @@ -1435,7 +1435,7 @@ "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that was created by this\n request.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that was created by this\n\t\t\trequest.

" } } } @@ -1478,7 +1478,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new image. This request will create a new image along with all of the \n configured output resources defined in the distribution configuration. You must specify \n exactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn.

", + "smithy.api#documentation": "

Creates a new image. This request will create a new image along with all of the \n\t\t\tconfigured output resources defined in the distribution configuration. You must specify \n\t\t\texactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateImage", @@ -1527,7 +1527,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new image pipeline. Image pipelines enable you to automate the creation and\n distribution of images.

", + "smithy.api#documentation": "

Creates a new image pipeline. Image pipelines enable you to automate the creation and\n\t\t\tdistribution of images.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateImagePipeline", @@ -1554,7 +1554,7 @@ "imageRecipeArn": { "target": "com.amazonaws.imagebuilder#ImageRecipeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images\n created by this image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images\n\t\t\tcreated by this image pipeline.

" } }, "containerRecipeArn": { @@ -1566,14 +1566,14 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to\n build images created by this image pipeline.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to\n\t\t\tbuild images created by this image pipeline.

", "smithy.api#required": {} } }, "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that will be used to\n configure and distribute images created by this image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that will be used to\n\t\t\tconfigure and distribute images created by this image pipeline.

" } }, "imageTestsConfiguration": { @@ -1585,7 +1585,7 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" } }, "schedule": { @@ -1683,7 +1683,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new image recipe. Image recipes define how images are configured, tested, and\n assessed.

", + "smithy.api#documentation": "

Creates a new image recipe. Image recipes define how images are configured, tested, and\n\t\t\tassessed.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateImageRecipe", @@ -1710,7 +1710,7 @@ "semanticVersion": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the image recipe.

", + "smithy.api#documentation": "

The semantic version of the image recipe. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t
", "smithy.api#required": {} } }, @@ -1724,7 +1724,7 @@ "parentImage": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The parent image of the image recipe. The value of the string can be the ARN of the parent \n image or an AMI ID. The format for the ARN follows this example: \n \tarn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/x.x.x. \n \tYou can provide the specific version that you want to use, or you can use a wildcard in \n \tall of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, \n \tand the AMI must be in the same Region in which you are using Image Builder.

", + "smithy.api#documentation": "

The parent image of the image recipe. The value of the string can be the ARN of the parent \n\t\t\timage or an AMI ID. The format for the ARN follows this example: \n\t\t\tarn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/x.x.x. \n\t\t\tYou can provide the specific version that you want to use, or you can use a wildcard in \n\t\t\tall of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, \n\t\t\tand the AMI must be in the same Region in which you are using Image Builder.

", "smithy.api#required": {} } }, @@ -1791,7 +1791,7 @@ "imageRecipeArn": { "target": "com.amazonaws.imagebuilder#ImageRecipeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that defines how images are\n configured, tested, and assessed.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that defines how images are\n\t\t\tconfigured, tested, and assessed.

" } }, "containerRecipeArn": { @@ -1803,13 +1803,13 @@ "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that defines and\n configures the outputs of your pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that defines and\n\t\t\tconfigures the outputs of your pipeline.

" } }, "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that defines the\n environment in which your image will be built and tested.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that defines the\n\t\t\tenvironment in which your image will be built and tested.

", "smithy.api#required": {} } }, @@ -1822,7 +1822,7 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" } }, "tags": { @@ -1905,7 +1905,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new infrastructure configuration. An infrastructure configuration defines the\n environment in which your image will be built and tested.

", + "smithy.api#documentation": "

Creates a new infrastructure configuration. An infrastructure configuration defines the\n\t\t\tenvironment in which your image will be built and tested.

", "smithy.api#http": { "method": "PUT", "uri": "/CreateInfrastructureConfiguration", @@ -1932,7 +1932,7 @@ "instanceTypes": { "target": "com.amazonaws.imagebuilder#InstanceTypeList", "traits": { - "smithy.api#documentation": "

The instance types of the infrastructure configuration. You can specify one or more\n instance types to use for this build. The service will pick one of these instance types based\n on availability.

" + "smithy.api#documentation": "

The instance types of the infrastructure configuration. You can specify one or more\n\t\t\tinstance types to use for this build. The service will pick one of these instance types based\n\t\t\ton availability.

" } }, "instanceProfileName": { @@ -1963,13 +1963,13 @@ "keyPair": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The key pair of the infrastructure configuration. This can be used to log on to and debug\n the instance used to create your image.

" + "smithy.api#documentation": "

The key pair of the infrastructure configuration. This can be used to log on to and debug\n\t\t\tthe instance used to create your image.

" } }, "terminateInstanceOnFailure": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

The terminate instance on failure setting of the infrastructure configuration. Set to\n false if you want Image Builder to retain the instance used to configure your AMI if the build\n or test phase of your workflow fails.

" + "smithy.api#documentation": "

The terminate instance on failure setting of the infrastructure configuration. Set to\n\t\t\tfalse if you want Image Builder to retain the instance used to configure your AMI if the build\n\t\t\tor test phase of your workflow fails.

" } }, "snsTopicArn": { @@ -2018,7 +2018,7 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that was created by\n this request.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that was created by\n\t\t\tthis request.

" } } } @@ -2535,19 +2535,19 @@ "containerDistributionConfiguration": { "target": "com.amazonaws.imagebuilder#ContainerDistributionConfiguration", "traits": { - "smithy.api#documentation": "

Container distribution settings for encryption, licensing, and sharing \n in a specific Region.

" + "smithy.api#documentation": "

Container distribution settings for encryption, licensing, and sharing \n\t\t\tin a specific Region.

" } }, "licenseConfigurationArns": { "target": "com.amazonaws.imagebuilder#LicenseConfigurationArnList", "traits": { - "smithy.api#documentation": "

The License Manager Configuration to associate with the AMI in the specified\n Region.

" + "smithy.api#documentation": "

The License Manager Configuration to associate with the AMI in the specified\n\t\t\tRegion.

" } }, "launchTemplateConfigurations": { "target": "com.amazonaws.imagebuilder#LaunchTemplateConfigurationList", "traits": { - "smithy.api#documentation": "

A group of launchTemplateConfiguration settings that apply to image distribution \n for specified accounts.

" + "smithy.api#documentation": "

A group of launchTemplateConfiguration settings that apply to image distribution \n\t\t\tfor specified accounts.

" } } }, @@ -2579,7 +2579,7 @@ "distributions": { "target": "com.amazonaws.imagebuilder#DistributionList", "traits": { - "smithy.api#documentation": "

The distribution objects that apply Region-specific \n settings for the deployment of the image to targeted Regions.

" + "smithy.api#documentation": "

The distribution objects that apply Region-specific \n\t\t\tsettings for the deployment of the image to targeted Regions.

" } }, "timeoutMinutes": { @@ -2827,7 +2827,7 @@ } }, "traits": { - "smithy.api#documentation": "

A filter name and value pair that is used to return a more specific list of results from a\n list operation. Filters can be used to match a set of resources by specific criteria, such as\n tags, attributes, or IDs.

" + "smithy.api#documentation": "

A filter name and value pair that is used to return a more specific list of results from a\n\t\t\tlist operation. Filters can be used to match a set of resources by specific criteria, such as\n\t\t\ttags, attributes, or IDs.

" } }, "com.amazonaws.imagebuilder#FilterList": { @@ -2989,7 +2989,7 @@ "componentBuildVersionArn": { "target": "com.amazonaws.imagebuilder#ComponentVersionArnOrBuildVersionArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the component that you want to retrieve. Regex requires\n \"/\\d+$\" suffix.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the component that you want to retrieve. Regex requires\n\t\t\t\"/\\d+$\" suffix.

", "smithy.api#httpQuery": "componentBuildVersionArn", "smithy.api#required": {} } @@ -3190,7 +3190,7 @@ "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that you want to\n retrieve.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that you want to\n\t\t\tretrieve.

", "smithy.api#httpQuery": "distributionConfigurationArn", "smithy.api#required": {} } @@ -3592,7 +3592,7 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that you want to\n retrieve.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that you want to\n\t\t\tretrieve.

", "smithy.api#httpQuery": "infrastructureConfigurationArn", "smithy.api#required": {} } @@ -3630,7 +3630,7 @@ } }, "traits": { - "smithy.api#documentation": "

You have specified a client token for an operation using parameter values that differ from\n a previous request that used the same client token.

", + "smithy.api#documentation": "

You have specified a client token for an operation using parameter values that differ from\n\t\t\ta previous request that used the same client token.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -3641,7 +3641,7 @@ "arn": { "target": "com.amazonaws.imagebuilder#ImageBuilderArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image.

\n\t\t \n\t\t\t

Semantic versioning is included in each object's Amazon Resource Name (ARN), \n\tat the level that applies to that object as follows:

\n\t
    \n
  1. \n\t\t\t

    Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are \n\t\t\t\teither left off entirely, or they are specified as wildcards, for example: x.x.x.

    \n\t\t
  2. \n
  3. \n\t\t\t

    Version ARNs have only the first three nodes: ..

    \n\t\t
  4. \n
  5. \n\t\t\t

    Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.

    \n\t\t
  6. \n
\n\t\t
" } }, "type": { @@ -3659,7 +3659,7 @@ "version": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the image.

" + "smithy.api#documentation": "

The semantic version of the image.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" } }, "platform": { @@ -3671,13 +3671,13 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" } }, "osVersion": { "target": "com.amazonaws.imagebuilder#OsVersion", "traits": { - "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n Microsoft Windows Server 2019.

" + "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n\t\t\tMicrosoft Windows Server 2019.

" } }, "state": { @@ -3695,7 +3695,7 @@ "containerRecipe": { "target": "com.amazonaws.imagebuilder#ContainerRecipe", "traits": { - "smithy.api#documentation": "

The container recipe used to create the container image type.

" + "smithy.api#documentation": "

The recipe that is used to create an Image Builder container image.

" } }, "sourcePipelineName": { @@ -3748,7 +3748,7 @@ } }, "traits": { - "smithy.api#documentation": "

An image build version.

" + "smithy.api#documentation": "

An Image Builder image. You must specify exactly one recipe for the image – either \n\t\t\ta container recipe (containerRecipe), which creates a container \n\t\t\timage, or an image recipe (imageRecipe), which creates an AMI.

" } }, "com.amazonaws.imagebuilder#ImageBuildVersionArn": { @@ -3819,13 +3819,13 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" } }, "imageRecipeArn": { "target": "com.amazonaws.imagebuilder#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe associated with this image\n pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe associated with this image\n\t\t\tpipeline.

" } }, "containerRecipeArn": { @@ -3837,13 +3837,13 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration associated with this\n image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration associated with this\n\t\t\timage pipeline.

" } }, "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration associated with this\n image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration associated with this\n\t\t\timage pipeline.

" } }, "imageTestsConfiguration": { @@ -3923,7 +3923,7 @@ "type": { "target": "com.amazonaws.imagebuilder#ImageType", "traits": { - "smithy.api#documentation": "

Specifies which type of image is created by the recipe - an AMI or a \n \tcontainer image.

" + "smithy.api#documentation": "

Specifies which type of image is created by the recipe - an AMI or a \n\t\t\tcontainer image.

" } }, "name": { @@ -3995,7 +3995,7 @@ "additionalInstanceConfiguration": { "target": "com.amazonaws.imagebuilder#AdditionalInstanceConfiguration", "traits": { - "smithy.api#documentation": "

Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to \n \tbuild and test your image configuration. Instance configuration adds a layer \n \tof control over those instances. You can define settings and add scripts to \n \trun when an instance is launched from your AMI.

" + "smithy.api#documentation": "

Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to \n\t\t\tbuild and test your image configuration. Instance configuration adds a layer \n\t\t\tof control over those instances. You can define settings and add scripts to \n\t\t\trun when an instance is launched from your AMI.

" } } }, @@ -4172,7 +4172,7 @@ "osVersion": { "target": "com.amazonaws.imagebuilder#OsVersion", "traits": { - "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n Microsoft Windows Server 2019.

" + "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n\t\t\tMicrosoft Windows Server 2019.

" } }, "state": { @@ -4267,54 +4267,54 @@ "arn": { "target": "com.amazonaws.imagebuilder#ImageBuilderArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image semantic version.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a specific version of an Image Builder image.

\n\t\t \n\t\t\t

Semantic versioning is included in each object's Amazon Resource Name (ARN), \n\tat the level that applies to that object as follows:

\n\t
    \n
  1. \n\t\t\t

    Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are \n\t\t\t\teither left off entirely, or they are specified as wildcards, for example: x.x.x.

    \n\t\t
  2. \n
  3. \n\t\t\t

    Version ARNs have only the first three nodes: ..

    \n\t\t
  4. \n
  5. \n\t\t\t

    Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.

    \n\t\t
  6. \n
\n\t\t
" } }, "name": { "target": "com.amazonaws.imagebuilder#ResourceName", "traits": { - "smithy.api#documentation": "

The name of the image semantic version.

" + "smithy.api#documentation": "

The name of this specific version of an Image Builder image.

" } }, "type": { "target": "com.amazonaws.imagebuilder#ImageType", "traits": { - "smithy.api#documentation": "

Specifies whether this is an AMI or container image.

" + "smithy.api#documentation": "

Specifies whether this image is an AMI or a container image.

" } }, "version": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the image semantic version.

" + "smithy.api#documentation": "

Details for a specific version of an Image Builder image. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Assignment: For the first three nodes you can assign any positive integer value, including \n\tzero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the \n\tbuild number, and that is not open for updates.

\n\t\t\t

\n Patterns: You can use any numeric pattern that adheres to the assignment requirements for \n\tthe nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or \n\ta date, such as 2021.01.01.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" } }, "platform": { "target": "com.amazonaws.imagebuilder#Platform", "traits": { - "smithy.api#documentation": "

The platform of the image semantic version.

" + "smithy.api#documentation": "

The platform of the image version, for example \"Windows\" or \"Linux\".

" } }, "osVersion": { "target": "com.amazonaws.imagebuilder#OsVersion", "traits": { - "smithy.api#documentation": "

The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or\n Microsoft Windows Server 2019.

" + "smithy.api#documentation": "

The operating system version of the Amazon EC2 build instance. For example, Amazon Linux 2, Ubuntu 18, or\n\t\t\tMicrosoft Windows Server 2019.

" } }, "owner": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The owner of the image semantic version.

" + "smithy.api#documentation": "

The owner of the image version.

" } }, "dateCreated": { "target": "com.amazonaws.imagebuilder#DateTime", "traits": { - "smithy.api#documentation": "

The date at which this image semantic version was created.

" + "smithy.api#documentation": "

The date on which this specific version of the Image Builder image was created.

" } } }, "traits": { - "smithy.api#documentation": "

An image semantic version.

" + "smithy.api#documentation": "

The defining characteristics of a specific version of an Image Builder image.

" } }, "com.amazonaws.imagebuilder#ImageVersionArn": { @@ -4397,7 +4397,7 @@ "semanticVersion": { "target": "com.amazonaws.imagebuilder#VersionNumber", "traits": { - "smithy.api#documentation": "

The semantic version of the component. This version follows the semantic version syntax.\n For example, major.minor.patch. This could be versioned like software (2.0.1) or like a date\n (2019.12.01).

", + "smithy.api#documentation": "

The semantic version of the component. This version follows the semantic version syntax.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
", "smithy.api#required": {} } }, @@ -4410,13 +4410,13 @@ "changeDescription": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The change description of the component. Describes what change has been made in this\n version, or what makes this version different from other versions of this component.

" + "smithy.api#documentation": "

The change description of the component. Describes what change has been made in this\n\t\t\tversion, or what makes this version different from other versions of this component.

" } }, "type": { "target": "com.amazonaws.imagebuilder#ComponentType", "traits": { - "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image or only\n to test it.

", + "smithy.api#documentation": "

The type of the component denotes whether the component is used to build the image, or only\n\t\t\tto test it.

", "smithy.api#required": {} } }, @@ -4437,13 +4437,13 @@ "data": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The data of the component. Used to specify the data inline. Either data or\n uri can be used to specify the data within the component.

" + "smithy.api#documentation": "

The data of the component. Used to specify the data inline. Either data or\n\t\t\turi can be used to specify the data within the component.

" } }, "uri": { "target": "com.amazonaws.imagebuilder#Uri", "traits": { - "smithy.api#documentation": "

The uri of the component. Must be an Amazon S3 URL and the requester must have permission to\n access the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service\n quota. Either data or uri can be used to specify the data within the\n component.

" + "smithy.api#documentation": "

The uri of the component. Must be an Amazon S3 URL and the requester must have permission to\n\t\t\taccess the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service\n\t\t\tquota. Either data or uri can be used to specify the data within the\n\t\t\tcomponent.

" } }, "kmsKeyId": { @@ -4551,7 +4551,7 @@ "terminateInstanceOnFailure": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

The terminate instance on failure configuration of the infrastructure\n configuration.

" + "smithy.api#documentation": "

The terminate instance on failure configuration of the infrastructure\n\t\t\tconfiguration.

" } }, "snsTopicArn": { @@ -4727,7 +4727,7 @@ "image": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AMI ID to use as the base image for a container build and test instance. If not specified, \n Image Builder will use the appropriate ECS-optimized AMI as a base image.

" + "smithy.api#documentation": "

The AMI ID to use as the base image for a container build and test instance. If not specified, \n\t\t\tImage Builder will use the appropriate ECS-optimized AMI as a base image.

" } }, "blockDeviceMappings": { @@ -4738,7 +4738,7 @@ } }, "traits": { - "smithy.api#documentation": "

Defines a custom source AMI and block device mapping configurations of an instance \n used for building and testing container images.

" + "smithy.api#documentation": "

Defines a custom source AMI and block device mapping configurations of an instance \n\t\t\tused for building and testing container images.

" } }, "com.amazonaws.imagebuilder#InstanceProfileNameType": { @@ -4781,7 +4781,7 @@ } }, "traits": { - "smithy.api#documentation": "

You have specified two or more mutually exclusive parameters. Review the error message for\n details.

", + "smithy.api#documentation": "

You have specified two or more mutually exclusive parameters. Review the error message for\n\t\t\tdetails.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4794,7 +4794,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified parameter is invalid. Review the available parameters for the API\n request.

", + "smithy.api#documentation": "

The specified parameter is invalid. Review the available parameters for the API\n\t\t\trequest.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4855,7 +4855,7 @@ } }, "traits": { - "smithy.api#documentation": "

Describes the configuration for a launch permission. The launch permission modification request is sent to the \n Amazon EC2 ModifyImageAttribute \n API on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public, \n set the launch permission authorized accounts to all. See the examples for making an AMI public at \n Amazon EC2 ModifyImageAttribute.

" + "smithy.api#documentation": "

Describes the configuration for a launch permission. The launch permission modification request is sent to the \n\t\t\tAmazon EC2 ModifyImageAttribute \n\t\t\tAPI on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public, \n\t\t\tset the launch permission authorized accounts to all. See the examples for making an AMI public at \n\t\t\tAmazon EC2 ModifyImageAttribute.

" } }, "com.amazonaws.imagebuilder#LaunchTemplateConfiguration": { @@ -4953,7 +4953,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

", + "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
", "smithy.api#http": { "method": "POST", "uri": "/ListComponentBuildVersions", @@ -4986,7 +4986,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" } } } @@ -5009,7 +5009,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" } } } @@ -5046,7 +5046,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

", + "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
", "smithy.api#http": { "method": "POST", "uri": "/ListComponents", @@ -5065,7 +5065,7 @@ "owner": { "target": "com.amazonaws.imagebuilder#Ownership", "traits": { - "smithy.api#documentation": "

The owner defines which components you want to list. By default, this request will only\n show components owned by your account. You can use this field to specify if you want to view\n components owned by yourself, by Amazon, or those components that have been shared with you by\n other customers.

" + "smithy.api#documentation": "

The owner defines which components you want to list. By default, this request will only\n\t\t\tshow components owned by your account. You can use this field to specify if you want to view\n\t\t\tcomponents owned by yourself, by Amazon, or those components that have been shared with you by\n\t\t\tother customers.

" } }, "filters": { @@ -5077,7 +5077,7 @@ "byName": { "target": "com.amazonaws.imagebuilder#Boolean", "traits": { - "smithy.api#documentation": "

Returns the list of component build versions for the specified semantic version.

" + "smithy.api#documentation": "

Returns the list of component build versions for the specified name.

" } }, "maxResults": { @@ -5090,7 +5090,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" } } } @@ -5107,13 +5107,13 @@ "componentVersionList": { "target": "com.amazonaws.imagebuilder#ComponentVersionList", "traits": { - "smithy.api#documentation": "

The list of component semantic versions.

" + "smithy.api#documentation": "

The list of component semantic versions.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t
" } }, "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" } } } @@ -5267,7 +5267,7 @@ "filters": { "target": "com.amazonaws.imagebuilder#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n " + "smithy.api#documentation": "

The filters.

\n\t\t " } }, "maxResults": { @@ -5280,7 +5280,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" } } } @@ -5303,7 +5303,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" } } } @@ -5379,7 +5379,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" } } } @@ -5402,7 +5402,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" } } } @@ -5577,7 +5577,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" } } } @@ -5600,7 +5600,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" } } } @@ -5669,7 +5669,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" } } } @@ -5692,7 +5692,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" } } } @@ -5748,7 +5748,7 @@ "owner": { "target": "com.amazonaws.imagebuilder#Ownership", "traits": { - "smithy.api#documentation": "

The owner defines which image recipes you want to list. By default, this request will only\n show image recipes owned by your account. You can use this field to specify if you want to\n view image recipes owned by yourself, by Amazon, or those image recipes that have been shared\n with you by other customers.

" + "smithy.api#documentation": "

The owner defines which image recipes you want to list. By default, this request will only\n\t\t\tshow image recipes owned by your account. You can use this field to specify if you want to\n\t\t\tview image recipes owned by yourself, by Amazon, or those image recipes that have been shared\n\t\t\twith you by other customers.

" } }, "filters": { @@ -5767,7 +5767,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" } } } @@ -5790,7 +5790,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" } } } @@ -5846,7 +5846,7 @@ "owner": { "target": "com.amazonaws.imagebuilder#Ownership", "traits": { - "smithy.api#documentation": "

The owner defines which images you want to list. By default, this request will only show\n images owned by your account. You can use this field to specify if you want to view images\n owned by yourself, by Amazon, or those images that have been shared with you by other\n customers.

" + "smithy.api#documentation": "

The owner defines which images you want to list. By default, this request will only show\n\t\t\timages owned by your account. You can use this field to specify if you want to view images\n\t\t\towned by yourself, by Amazon, or those images that have been shared with you by other\n\t\t\tcustomers.

" } }, "filters": { @@ -5871,7 +5871,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" } }, "includeDeprecated": { @@ -5894,13 +5894,13 @@ "imageVersionList": { "target": "com.amazonaws.imagebuilder#ImageVersionList", "traits": { - "smithy.api#documentation": "

The list of image semantic versions.

" + "smithy.api#documentation": "

The list of image semantic versions.

\n\t\t \n\t\t\t

The semantic version has four nodes: ../. \n\tYou can assign values for the first three, and can filter on all of them.

\n\t\t\t

\n Filtering: When you retrieve or reference a resource with a semantic version, you can use \n\twildcards (x) to filter your results. When you use a wildcard in any node, all nodes to the right of the \n\tfirst wildcard must also be wildcards. For example, specifying \"1.2.x\", or \"1.x.x\" works to filter list \n\tresults, but neither \"1.x.2\", nor \"x.2.x\" will work. You do not have to specify the build - Image Builder \n\tautomatically uses a wildcard for that, if applicable.

\n\t\t
" } }, "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" } } } @@ -5969,7 +5969,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n truncated response.

" + "smithy.api#documentation": "

A token to specify where to start paginating. This is the NextToken from a previously\n\t\t\ttruncated response.

" } } } @@ -5992,7 +5992,7 @@ "nextToken": { "target": "com.amazonaws.imagebuilder#PaginationToken", "traits": { - "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n elements that the service has not included in this request. Use this token with the next\n request to retrieve additional objects.

" + "smithy.api#documentation": "

The next token used for paginated responses. When this is not empty, there are additional\n\t\t\telements that the service has not included in this request. Use this token with the next\n\t\t\trequest to retrieve additional objects.

" } } } @@ -6226,7 +6226,7 @@ } ], "traits": { - "smithy.api#documentation": "

Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n PutComponentPolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n all principals with whom the resource is shared.

", + "smithy.api#documentation": "

Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n\t\t\tPutComponentPolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n\t\t\tall principals with whom the resource is shared.

", "smithy.api#http": { "method": "PUT", "uri": "/PutComponentPolicy", @@ -6384,7 +6384,7 @@ } ], "traits": { - "smithy.api#documentation": "

Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n PutImagePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n all principals with whom the resource is shared.

", + "smithy.api#documentation": "

Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n\t\t\tPutImagePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n\t\t\tall principals with whom the resource is shared.

", "smithy.api#http": { "method": "PUT", "uri": "/PutImagePolicy", @@ -6463,7 +6463,7 @@ } ], "traits": { - "smithy.api#documentation": "

Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n PutImageRecipePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n all principals with whom the resource is shared.

", + "smithy.api#documentation": "

Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API\n\t\t\tPutImageRecipePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to\n\t\t\tall principals with whom the resource is shared.

", "smithy.api#http": { "method": "PUT", "uri": "/PutImageRecipePolicy", @@ -6534,7 +6534,7 @@ } }, "traits": { - "smithy.api#documentation": "

You have attempted to mutate or delete a resource with a dependency that prohibits this\n action. See the error message for more details.

", + "smithy.api#documentation": "

You have attempted to mutate or delete a resource with a dependency that prohibits this\n\t\t\taction. See the error message for more details.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -6547,7 +6547,7 @@ } }, "traits": { - "smithy.api#documentation": "

The resource that you are trying to operate on is currently in use. Review the message\n details and retry later.

", + "smithy.api#documentation": "

The resource that you are trying to operate on is currently in use. Review the message\n\t\t\tdetails and retry later.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -6630,19 +6630,19 @@ "scheduleExpression": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The cron expression determines how often EC2 Image Builder evaluates your\n pipelineExecutionStartCondition.

\n

For information on how to format a cron expression in Image Builder, see Use cron\n expressions in EC2 Image Builder.

" + "smithy.api#documentation": "

The cron expression determines how often EC2 Image Builder evaluates your\n\t\t\tpipelineExecutionStartCondition.

\n\t\t

For information on how to format a cron expression in Image Builder, see Use cron\n\t\t\texpressions in EC2 Image Builder.

" } }, "timezone": { "target": "com.amazonaws.imagebuilder#Timezone", "traits": { - "smithy.api#documentation": "

The timezone that applies to the scheduling expression. For example, \"Etc/UTC\", \n \"America/Los_Angeles\" in the IANA \n timezone format. If not specified this defaults to UTC.

" + "smithy.api#documentation": "

The timezone that applies to the scheduling expression. For example, \"Etc/UTC\", \n\t\t\t\"America/Los_Angeles\" in the IANA \n\t\t\t\ttimezone format. If not specified this defaults to UTC.

" } }, "pipelineExecutionStartCondition": { "target": "com.amazonaws.imagebuilder#PipelineExecutionStartCondition", "traits": { - "smithy.api#documentation": "

The condition configures when the pipeline should trigger a new image build. When the\n pipelineExecutionStartCondition is set to\n EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, and you use semantic version\n filters on the source image or components in your image recipe, EC2 Image Builder will build a\n new image only when there are new versions of the image or components in your recipe that\n match the semantic version filter. When it is set to EXPRESSION_MATCH_ONLY, it\n will build a new image every time the CRON expression matches the current time. For semantic\n version syntax, see CreateComponent in the EC2 Image Builder API\n Reference.

" + "smithy.api#documentation": "

The condition configures when the pipeline should trigger a new image build. When the\n\t\t\tpipelineExecutionStartCondition is set to\n\t\t\tEXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, and you use semantic version\n\t\t\tfilters on the source image or components in your image recipe, EC2 Image Builder will build a\n\t\t\tnew image only when there are new versions of the image or components in your recipe that\n\t\t\tmatch the semantic version filter. When it is set to EXPRESSION_MATCH_ONLY, it\n\t\t\twill build a new image every time the CRON expression matches the current time. For semantic\n\t\t\tversion syntax, see CreateComponent in the EC2 Image Builder API\n\t\t\t\t\tReference.

" } } }, @@ -6802,7 +6802,7 @@ "uninstallAfterBuild": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

This property defaults to true. If Image Builder installs the SSM agent on a build \n\t\t\tinstance, it removes the agent before creating a snapshot for the AMI. To ensure that the AMI you create includes the SSM agent, set this property to false.

" + "smithy.api#documentation": "

Controls whether the SSM agent is removed from your final build image, prior to creating \n\t\t\tthe new AMI. If this is set to true, then the agent is removed from the final image. If it's \n\t\t\tset to false, then the agent is left in, so that it is included in the new AMI. The default \n\t\t\tvalue is false.

" } } }, @@ -7031,7 +7031,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates a new distribution configuration. Distribution configurations define and\n configure the outputs of your pipeline.

", + "smithy.api#documentation": "

Updates a new distribution configuration. Distribution configurations define and\n\t\t\tconfigure the outputs of your pipeline.

", "smithy.api#http": { "method": "PUT", "uri": "/UpdateDistributionConfiguration", @@ -7090,7 +7090,7 @@ "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that was updated by this\n request.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that was updated by this\n\t\t\trequest.

" } } } @@ -7130,7 +7130,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates an image pipeline. Image pipelines enable you to automate the creation and\n distribution of images.

\n \t \n

UpdateImagePipeline does not support selective updates for the pipeline. \n \t\tYou must specify all of the required properties in the update request, not just \n \t\tthe properties that have changed.

\n
", + "smithy.api#documentation": "

Updates an image pipeline. Image pipelines enable you to automate the creation and\n\t\t\tdistribution of images.

\n\t\t \n

UpdateImagePipeline does not support selective updates for the pipeline. \n\t\t\tYou must specify all of the required properties in the update request, not just \n\t\t\tthe properties that have changed.

\n
", "smithy.api#http": { "method": "PUT", "uri": "/UpdateImagePipeline", @@ -7157,7 +7157,7 @@ "imageRecipeArn": { "target": "com.amazonaws.imagebuilder#ImageRecipeArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images\n updated by this image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images\n\t\t\tupdated by this image pipeline.

" } }, "containerRecipeArn": { @@ -7169,14 +7169,14 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to\n build images updated by this image pipeline.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to\n\t\t\tbuild images updated by this image pipeline.

", "smithy.api#required": {} } }, "distributionConfigurationArn": { "target": "com.amazonaws.imagebuilder#DistributionConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that will be used to\n configure and distribute images updated by this image pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the distribution configuration that will be used to\n\t\t\tconfigure and distribute images updated by this image pipeline.

" } }, "imageTestsConfiguration": { @@ -7188,7 +7188,7 @@ "enhancedImageMetadataEnabled": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n system (OS) version and package list. This information is used to enhance the overall\n experience of using EC2 Image Builder. Enabled by default.

" + "smithy.api#documentation": "

Collects additional information about the image being created, including the operating\n\t\t\tsystem (OS) version and package list. This information is used to enhance the overall\n\t\t\texperience of using EC2 Image Builder. Enabled by default.

" } }, "schedule": { @@ -7271,7 +7271,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates a new infrastructure configuration. An infrastructure configuration defines the\n environment in which your image will be built and tested.

", + "smithy.api#documentation": "

Updates a new infrastructure configuration. An infrastructure configuration defines the\n\t\t\tenvironment in which your image will be built and tested.

", "smithy.api#http": { "method": "PUT", "uri": "/UpdateInfrastructureConfiguration", @@ -7285,7 +7285,7 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that you want to\n update.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that you want to\n\t\t\tupdate.

", "smithy.api#required": {} } }, @@ -7298,7 +7298,7 @@ "instanceTypes": { "target": "com.amazonaws.imagebuilder#InstanceTypeList", "traits": { - "smithy.api#documentation": "

The instance types of the infrastructure configuration. You can specify one or more\n instance types to use for this build. The service will pick one of these instance types based\n on availability.

" + "smithy.api#documentation": "

The instance types of the infrastructure configuration. You can specify one or more\n\t\t\tinstance types to use for this build. The service will pick one of these instance types based\n\t\t\ton availability.

" } }, "instanceProfileName": { @@ -7329,13 +7329,13 @@ "keyPair": { "target": "com.amazonaws.imagebuilder#NonEmptyString", "traits": { - "smithy.api#documentation": "

The key pair of the infrastructure configuration. This can be used to log on to and debug\n the instance used to create your image.

" + "smithy.api#documentation": "

The key pair of the infrastructure configuration. This can be used to log on to and debug\n\t\t\tthe instance used to create your image.

" } }, "terminateInstanceOnFailure": { "target": "com.amazonaws.imagebuilder#NullableBoolean", "traits": { - "smithy.api#documentation": "

The terminate instance on failure setting of the infrastructure configuration. Set to\n false if you want Image Builder to retain the instance used to configure your AMI if the build\n or test phase of your workflow fails.

" + "smithy.api#documentation": "

The terminate instance on failure setting of the infrastructure configuration. Set to\n\t\t\tfalse if you want Image Builder to retain the instance used to configure your AMI if the build\n\t\t\tor test phase of your workflow fails.

" } }, "snsTopicArn": { @@ -7378,7 +7378,7 @@ "infrastructureConfigurationArn": { "target": "com.amazonaws.imagebuilder#InfrastructureConfigurationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that was updated by\n this request.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the infrastructure configuration that was updated by\n\t\t\tthis request.

" } } } diff --git a/codegen/sdk-codegen/aws-models/iot.2015-05-28.json b/codegen/sdk-codegen/aws-models/iot.2015-05-28.json index f301680d9fc..08c723c52f3 100644 --- a/codegen/sdk-codegen/aws-models/iot.2015-05-28.json +++ b/codegen/sdk-codegen/aws-models/iot.2015-05-28.json @@ -880,7 +880,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-z]{4,9}-\\d{1}:\\d{12}:certificate/[a-zA-Z0-9/-]+" + "smithy.api#pattern": "^arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-z]{4,9}-\\d{1}:\\d{12}:certificate/[a-zA-Z0-9/-]+$" } }, "com.amazonaws.iot#Action": { @@ -1631,7 +1631,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches a policy to the specified target.

", + "smithy.api#documentation": "

Attaches the specified policy to the specified principal (certificate or other\n credential).

", "smithy.api#http": { "method": "PUT", "uri": "/target-policies/{policyName}", @@ -1861,7 +1861,7 @@ "min": 0, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_.,@/:#-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_.,@/:#-]+$" } }, "com.amazonaws.iot#AttributePayload": { @@ -1891,7 +1891,7 @@ "min": 0, "max": 800 }, - "smithy.api#pattern": "[a-zA-Z0-9_.,@/:#-]*" + "smithy.api#pattern": "^[a-zA-Z0-9_.,@/:#-]*$" } }, "com.amazonaws.iot#Attributes": { @@ -2047,7 +2047,7 @@ "min": 0, "max": 1000 }, - "smithy.api#pattern": "[\\p{Graph}\\x20]*" + "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" } }, "com.amazonaws.iot#AuditDetails": { @@ -2471,7 +2471,7 @@ "min": 1, "max": 40 }, - "smithy.api#pattern": "[a-zA-Z0-9\\-]+" + "smithy.api#pattern": "^[a-zA-Z0-9\\-]+$" } }, "com.amazonaws.iot#AuditTaskMetadata": { @@ -2748,7 +2748,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[\\w=,@-]+" + "smithy.api#pattern": "^[\\w=,@-]+$" } }, "com.amazonaws.iot#AuthorizerStatus": { @@ -2817,7 +2817,7 @@ "min": 12, "max": 12 }, - "smithy.api#pattern": "[0-9]+" + "smithy.api#pattern": "^[0-9]+$" } }, "com.amazonaws.iot#AwsArn": { @@ -3245,7 +3245,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#Behaviors": { @@ -3270,7 +3270,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "[\\p{Graph}\\x20]*" + "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" } }, "com.amazonaws.iot#BillingGroupId": { @@ -3280,7 +3280,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9\\-]+" + "smithy.api#pattern": "^[a-zA-Z0-9\\-]+$" } }, "com.amazonaws.iot#BillingGroupMetadata": { @@ -3304,7 +3304,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#BillingGroupNameAndArnList": { @@ -4047,7 +4047,7 @@ "min": 64, "max": 64 }, - "smithy.api#pattern": "(0x)?[a-fA-F0-9]+" + "smithy.api#pattern": "^(0x)?[a-fA-F0-9]+$" } }, "com.amazonaws.iot#CertificateMode": { @@ -4194,7 +4194,7 @@ "min": 2, "max": 43 }, - "smithy.api#pattern": "[a-fA-F0-9:\\.\\/]+" + "smithy.api#pattern": "^[a-fA-F0-9:\\.\\/]+$" } }, "com.amazonaws.iot#Cidrs": { @@ -4450,7 +4450,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "[^\\p{C}]+" + "smithy.api#pattern": "^[^\\p{C}]+$" } }, "com.amazonaws.iot#ComparisonOperator": { @@ -7301,7 +7301,7 @@ "smithy.api#box": {}, "smithy.api#range": { "min": 900, - "max": 3600 + "max": 43200 } } }, @@ -7347,7 +7347,7 @@ "min": 0, "max": 128 }, - "smithy.api#pattern": "[\\p{Graph}\\x20]*" + "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" } }, "com.amazonaws.iot#CustomMetricType": { @@ -11962,7 +11962,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#DetailsMap": { @@ -11980,7 +11980,7 @@ "smithy.api#length": { "min": 1 }, - "smithy.api#pattern": "[^\\p{C}]+" + "smithy.api#pattern": "^[^\\p{C}]+$" } }, "com.amazonaws.iot#DetectMitigationActionExecution": { @@ -12268,7 +12268,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#DimensionNames": { @@ -12384,7 +12384,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[\\w.-]+" + "smithy.api#pattern": "^[\\w.-]+$" } }, "com.amazonaws.iot#DomainConfigurationStatus": { @@ -12677,7 +12677,7 @@ "com.amazonaws.iot#ElasticsearchEndpoint": { "type": "string", "traits": { - "smithy.api#pattern": "https?://.*" + "smithy.api#pattern": "^https?://" } }, "com.amazonaws.iot#ElasticsearchId": { @@ -12811,7 +12811,7 @@ "com.amazonaws.iot#EvaluationStatistic": { "type": "string", "traits": { - "smithy.api#pattern": "(p0|p0\\.1|p0\\.01|p1|p10|p50|p90|p99|p99\\.9|p99\\.99|p100)" + "smithy.api#pattern": "^(p0|p0\\.1|p0\\.01|p1|p10|p50|p90|p99|p99\\.9|p99\\.99|p100)$" } }, "com.amazonaws.iot#EventConfigurations": { @@ -13064,7 +13064,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#FindingIds": { @@ -13116,7 +13116,7 @@ "com.amazonaws.iot#FirehoseSeparator": { "type": "string", "traits": { - "smithy.api#pattern": "([\\n\\t])|(\\r\\n)|(,)" + "smithy.api#pattern": "^([\\n\\t])|(\\r\\n)|(,)$" } }, "com.amazonaws.iot#Flag": { @@ -14518,7 +14518,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#IndexNamesList": { @@ -14927,7 +14927,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "[^\\p{C}]+" + "smithy.api#pattern": "^[^\\p{C}]+$" } }, "com.amazonaws.iot#JobDocument": { @@ -15215,7 +15215,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#JobProcessDetails": { @@ -15393,7 +15393,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#JobTemplateSummary": { @@ -15488,7 +15488,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#KeyPair": { @@ -20410,7 +20410,7 @@ "min": 0, "max": 1024 }, - "smithy.api#pattern": "[A-Za-z0-9+/]+={0,2}" + "smithy.api#pattern": "^[A-Za-z0-9+/]+={0,2}$" } }, "com.amazonaws.iot#MaxJobExecutionsPerMin": { @@ -20506,7 +20506,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#MetricNames": { @@ -20684,7 +20684,7 @@ "min": 0, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#MitigationActionNameList": { @@ -20781,7 +20781,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#ModelStatus": { @@ -20863,7 +20863,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#NextToken": { @@ -20960,7 +20960,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "[^\\p{C}]+" + "smithy.api#pattern": "^[^\\p{C}]+$" } }, "com.amazonaws.iot#OTAUpdateErrorMessage": { @@ -21032,7 +21032,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#OTAUpdateInfo": { @@ -21392,7 +21392,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[\\w+=,.@-]+" + "smithy.api#pattern": "^[\\w+=,.@-]+$" } }, "com.amazonaws.iot#PolicyNames": { @@ -21450,7 +21450,7 @@ "com.amazonaws.iot#PolicyVersionId": { "type": "string", "traits": { - "smithy.api#pattern": "[0-9]+" + "smithy.api#pattern": "^[0-9]+$" } }, "com.amazonaws.iot#PolicyVersionIdentifier": { @@ -21534,7 +21534,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9]+" + "smithy.api#pattern": "^[a-zA-Z0-9]+$" } }, "com.amazonaws.iot#Principals": { @@ -21861,7 +21861,7 @@ "min": 0, "max": 128 }, - "smithy.api#pattern": "[\\p{Upper}\\p{Digit}_]+" + "smithy.api#pattern": "^[\\p{Upper}\\p{Digit}_]+$" } }, "com.amazonaws.iot#ReasonForNonCompliance": { @@ -22266,7 +22266,7 @@ "min": 64, "max": 64 }, - "smithy.api#pattern": "(0x)?[a-fA-F0-9]+" + "smithy.api#pattern": "^(0x)?[a-fA-F0-9]+$" } }, "com.amazonaws.iot#RegistrationCodeValidationException": { @@ -22322,7 +22322,7 @@ "min": 3, "max": 256 }, - "smithy.api#pattern": "[a-zA-Z0-9._-]+" + "smithy.api#pattern": "^[a-zA-Z0-9._-]+$" } }, "com.amazonaws.iot#RegistryS3KeyName": { @@ -22332,7 +22332,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "[a-zA-Z0-9!_.*'()-\\/]+" + "smithy.api#pattern": "^[a-zA-Z0-9!_.*'()-\\/]+$" } }, "com.amazonaws.iot#RejectCertificateTransfer": { @@ -22704,7 +22704,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[\\w.:-]+" + "smithy.api#pattern": "^[\\w.:-]+$" } }, "com.amazonaws.iot#Resource": { @@ -22899,7 +22899,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[\\w=,@-]+" + "smithy.api#pattern": "^[\\w=,@-]+$" } }, "com.amazonaws.iot#RoleAliasArn": { @@ -23146,7 +23146,7 @@ "min": 0, "max": 2000 }, - "smithy.api#pattern": "https://ingestion-[a-zA-Z0-9]{1,12}\\.[a-zA-Z0-9]+\\.((sfdc-matrix\\.net)|(sfdcnow\\.com))/streams/\\w{1,20}/\\w{1,20}/event" + "smithy.api#pattern": "^https://ingestion-[a-zA-Z0-9]{1,12}\\.[a-zA-Z0-9]+\\.((sfdc-matrix\\.net)|(sfdcnow\\.com))/streams/\\w{1,20}/\\w{1,20}/event$" } }, "com.amazonaws.iot#SalesforceToken": { @@ -23211,7 +23211,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#SearchIndex": { @@ -23347,7 +23347,7 @@ "min": 0, "max": 1000 }, - "smithy.api#pattern": "[\\p{Graph}\\x20]*" + "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" } }, "com.amazonaws.iot#SecurityProfileIdentifier": { @@ -23385,7 +23385,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#SecurityProfileTarget": { @@ -24550,7 +24550,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "[^\\p{C}]+" + "smithy.api#pattern": "^[^\\p{C}]+$" } }, "com.amazonaws.iot#StreamFile": { @@ -24592,7 +24592,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#StreamInfo": { @@ -25062,7 +25062,7 @@ "min": 0, "max": 500 }, - "smithy.api#pattern": "[^\\p{C}]*" + "smithy.api#pattern": "^[^\\p{C}]*$" } }, "com.amazonaws.iot#TemplateName": { @@ -25441,7 +25441,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "[\\p{Graph}\\x20]*" + "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" } }, "com.amazonaws.iot#ThingGroupDocument": { @@ -25495,7 +25495,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9\\-]+" + "smithy.api#pattern": "^[a-zA-Z0-9\\-]+$" } }, "com.amazonaws.iot#ThingGroupIndexingConfiguration": { @@ -25579,7 +25579,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#ThingGroupNameAndArnList": { @@ -25688,7 +25688,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#ThingNameList": { @@ -25739,7 +25739,7 @@ "min": 0, "max": 2028 }, - "smithy.api#pattern": "[\\p{Graph}\\x20]*" + "smithy.api#pattern": "^[\\p{Graph}\\x20]*$" } }, "com.amazonaws.iot#ThingTypeId": { @@ -25784,7 +25784,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9:_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9:_-]+$" } }, "com.amazonaws.iot#ThingTypeProperties": { @@ -26002,7 +26002,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" } }, "com.amazonaws.iot#TokenSignature": { @@ -26012,7 +26012,7 @@ "min": 1, "max": 2560 }, - "smithy.api#pattern": "[A-Za-z0-9+/]+={0,2}" + "smithy.api#pattern": "^[A-Za-z0-9+/]+={0,2}$" } }, "com.amazonaws.iot#Topic": { @@ -28724,7 +28724,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9\\-]+" + "smithy.api#pattern": "^[a-zA-Z0-9\\-]+$" } }, "com.amazonaws.iot#VpcDestinationConfiguration": { diff --git a/codegen/sdk-codegen/aws-models/iotanalytics.2017-11-27.json b/codegen/sdk-codegen/aws-models/iotanalytics.2017-11-27.json index 573fcbc5fc4..f86a2831022 100644 --- a/codegen/sdk-codegen/aws-models/iotanalytics.2017-11-27.json +++ b/codegen/sdk-codegen/aws-models/iotanalytics.2017-11-27.json @@ -148,7 +148,7 @@ "name": "iotanalytics" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

AWS IoT Analytics allows you to collect large amounts of device data, process messages, and store them. \n You can then query the data and run sophisticated analytics on it. AWS IoT Analytics enables advanced \n data exploration through integration with Jupyter Notebooks and data visualization through integration \n with Amazon QuickSight.

\n\n

Traditional analytics and business intelligence tools are designed to process structured data. IoT data \n often comes from devices that record noisy processes (such as temperature, motion, or sound). As a result \n the data from these devices can have significant gaps, corrupted messages, and false readings that must be \n cleaned up before analysis can occur. Also, IoT data is often only meaningful in the context of other data \n from external sources.

\n\n

AWS IoT Analytics automates the steps required to analyze data from IoT devices. AWS IoT Analytics \n filters, transforms, and enriches IoT data before storing it in a time-series data store for analysis. You \n can set up the service to collect only the data you need from your devices, apply mathematical transforms \n to process the data, and enrich the data with device-specific metadata such as device type and location \n before storing it. Then, you can analyze your data by running queries using the built-in SQL query engine, \n or perform more complex analytics and machine learning inference. AWS IoT Analytics includes pre-built models \n for common IoT use cases so you can answer questions like which devices are about to fail or which customers \n are at risk of abandoning their wearable devices.

", + "smithy.api#documentation": "

IoT Analytics allows you to collect large amounts of device data, process messages, and store them. \n You can then query the data and run sophisticated analytics on it. IoT Analytics enables advanced \n data exploration through integration with Jupyter Notebooks and data visualization through integration \n with Amazon QuickSight.

\n\n

Traditional analytics and business intelligence tools are designed to process structured data. IoT data \n often comes from devices that record noisy processes (such as temperature, motion, or sound). As a result \n the data from these devices can have significant gaps, corrupted messages, and false readings that must be \n cleaned up before analysis can occur. Also, IoT data is often only meaningful in the context of other data \n from external sources.

\n\n

IoT Analytics automates the steps required to analyze data from IoT devices. IoT Analytics \n filters, transforms, and enriches IoT data before storing it in a time-series data store for analysis. You \n can set up the service to collect only the data you need from your devices, apply mathematical transforms \n to process the data, and enrich the data with device-specific metadata such as device type and location \n before storing it. Then, you can analyze your data by running queries using the built-in SQL query engine, \n or perform more complex analytics and machine learning inference. IoT Analytics includes pre-built models \n for common IoT use cases so you can answer questions like which devices are about to fail or which customers \n are at risk of abandoning their wearable devices.

", "smithy.api#title": "AWS IoT Analytics" } }, @@ -314,7 +314,7 @@ "messages": { "target": "com.amazonaws.iotanalytics#Messages", "traits": { - "smithy.api#documentation": "

The list of messages to be sent. Each message has the format: { \"messageId\": \"string\",\n \"payload\": \"string\"}.

\n

The field names of message payloads (data) that you send to AWS IoT Analytics:

\n \n

For example, {\"temp_01\": 29} or {\"_temp_01\": 29} are valid, but {\"temp-01\": 29},\n {\"01_temp\": 29} or {\"__temp_01\": 29} are invalid in message payloads.

", + "smithy.api#documentation": "

The list of messages to be sent. Each message has the format: { \"messageId\": \"string\",\n \"payload\": \"string\"}.

\n

The field names of message payloads (data) that you send to IoT Analytics:

\n \n

For example, {\"temp_01\": 29} or {\"_temp_01\": 29} are valid, but {\"temp-01\": 29},\n {\"01_temp\": 29} or {\"__temp_01\": 29} are invalid in message payloads.

", "smithy.api#required": {} } } @@ -422,7 +422,7 @@ "storage": { "target": "com.amazonaws.iotanalytics#ChannelStorage", "traits": { - "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the channel is\n created.

" + "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You can't change this storage option after the channel is\n created.

" } }, "arn": { @@ -458,7 +458,7 @@ "lastMessageArrivalTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time when a new message arrived in the channel.

\n

AWS IoT Analytics updates this value at most once per minute for one channel. \n Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" + "smithy.api#documentation": "

The last time when a new message arrived in the channel.

\n

IoT Analytics updates this value at most once per minute for one channel. Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" } } }, @@ -503,7 +503,7 @@ "s3Paths": { "target": "com.amazonaws.iotanalytics#S3PathChannelMessages", "traits": { - "smithy.api#documentation": "

Specifies one or more keys that identify the Amazon Simple Storage Service (Amazon S3) objects that save your\n channel messages.

\n

You must use the full path for the key.

\n

Example path: channel/mychannel/__dt=2020-02-29 00:00:00/1582940490000_1582940520000_123456789012_mychannel_0_2118.0.json.gz\n

" + "smithy.api#documentation": "

Specifies one or more keys that identify the Amazon Simple Storage Service (Amazon S3) objects that save your\n channel messages.

\n

You must use the full path for the key.

\n

Example path: channel/mychannel/__dt=2020-02-29\n 00:00:00/1582940490000_1582940520000_123456789012_mychannel_0_2118.0.json.gz\n

" } } }, @@ -518,7 +518,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_]+$" + "smithy.api#pattern": "^(^(?!_{2}))(^[a-zA-Z0-9_]+$)$" } }, "com.amazonaws.iotanalytics#ChannelStatistics": { @@ -560,18 +560,18 @@ "serviceManagedS3": { "target": "com.amazonaws.iotanalytics#ServiceManagedChannelS3Storage", "traits": { - "smithy.api#documentation": "

Use this to store channel data in an S3 bucket managed by AWS IoT Analytics. You cannot\n change the choice of service-managed or customer-managed S3 storage after the channel is\n created.

" + "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by IoT Analytics. You can't change the choice\n of S3 storage after the data store is created.

" } }, "customerManagedS3": { "target": "com.amazonaws.iotanalytics#CustomerManagedChannelS3Storage", "traits": { - "smithy.api#documentation": "

Use this to store channel data in an S3 bucket that you manage. If customer managed\n storage is selected, the retentionPeriod parameter is ignored. You cannot change\n the choice of service-managed or customer-managed S3 storage after the channel is\n created.

" + "smithy.api#documentation": "

Used to store channel data in an S3 bucket that you manage. If customer managed storage is\n selected, the retentionPeriod parameter is ignored. You can't change the choice\n of S3 storage after the data store is created.

" } } }, "traits": { - "smithy.api#documentation": "

Where channel data is stored. You may choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. This cannot be changed after creation of the channel.

" + "smithy.api#documentation": "

Where channel data is stored. You may choose one of serviceManagedS3,\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. This can't be changed after creation of the channel.

" } }, "com.amazonaws.iotanalytics#ChannelStorageSummary": { @@ -580,7 +580,7 @@ "serviceManagedS3": { "target": "com.amazonaws.iotanalytics#ServiceManagedChannelS3StorageSummary", "traits": { - "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by AWS IoT Analytics.

" + "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by IoT Analytics.

" } }, "customerManagedS3": { @@ -636,7 +636,7 @@ "lastMessageArrivalTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time when a new message arrived in the channel.

\n

AWS IoT Analytics updates this value at most once per minute for one channel. \n Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" + "smithy.api#documentation": "

The last time when a new message arrived in the channel.

\n

IoT Analytics updates this value at most once per minute for one channel. Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" } } }, @@ -657,7 +657,7 @@ "type": { "target": "com.amazonaws.iotanalytics#ColumnDataType", "traits": { - "smithy.api#documentation": "

The type of data. For more information about the supported data types, see Common data types\n in the AWS Glue Developer Guide.

", + "smithy.api#documentation": "

The type of data. For more information about the supported data types, see Common data types\n in the Glue Developer Guide.

", "smithy.api#required": {} } } @@ -771,7 +771,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a channel. A channel collects data from an MQTT topic and archives the raw,\n unprocessed messages before publishing the data to a pipeline.

", + "smithy.api#documentation": "

Used to create a channel. A channel collects data from an MQTT topic and archives the raw,\n unprocessed messages before publishing the data to a pipeline.

", "smithy.api#http": { "method": "POST", "uri": "/channels", @@ -792,7 +792,7 @@ "channelStorage": { "target": "com.amazonaws.iotanalytics#ChannelStorage", "traits": { - "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the channel is\n created.

" + "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You can't change this storage option after the channel is\n created.

" } }, "retentionPeriod": { @@ -861,7 +861,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a dataset. A dataset stores data retrieved from a data store by applying a\n queryAction (a SQL query) or a containerAction (executing a\n containerized application). This operation creates the skeleton of a dataset. The dataset can\n be populated manually by calling CreateDatasetContent or automatically according\n to a trigger you specify.

", + "smithy.api#documentation": "

Used to create a dataset. A dataset stores data retrieved from a data store by applying a\n queryAction (a SQL query) or a containerAction (executing a\n containerized application). This operation creates the skeleton of a dataset. The dataset can\n be populated manually by calling CreateDatasetContent or automatically according\n to a trigger you specify.

", "smithy.api#http": { "method": "POST", "uri": "/datasets", @@ -895,7 +895,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates the content of a data set by applying a queryAction (a SQL query) or\n a containerAction (executing a containerized application).

", + "smithy.api#documentation": "

Creates the content of a dataset by applying a queryAction (a SQL query) or a\n containerAction (executing a containerized application).

", "smithy.api#http": { "method": "POST", "uri": "/datasets/{datasetName}/content", @@ -939,21 +939,21 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the data set.

", + "smithy.api#documentation": "

The name of the dataset.

", "smithy.api#required": {} } }, "actions": { "target": "com.amazonaws.iotanalytics#DatasetActions", "traits": { - "smithy.api#documentation": "

A list of actions that create the data set contents.

", + "smithy.api#documentation": "

A list of actions that create the dataset contents.

", "smithy.api#required": {} } }, "triggers": { "target": "com.amazonaws.iotanalytics#DatasetTriggers", "traits": { - "smithy.api#documentation": "

A list of triggers. A trigger causes data set contents to be populated at a specified time\n interval or when another data set's contents are created. The list of triggers can be empty or\n contain up to five DataSetTrigger objects.

" + "smithy.api#documentation": "

A list of triggers. A trigger causes dataset contents to be populated at a specified time\n interval or when another dataset's contents are created. The list of triggers can be empty or\n contain up to five DataSetTrigger objects.

" } }, "contentDeliveryRules": { @@ -965,25 +965,25 @@ "retentionPeriod": { "target": "com.amazonaws.iotanalytics#RetentionPeriod", "traits": { - "smithy.api#documentation": "

Optional. How long, in days, versions of dataset contents are kept for the dataset. If not\n specified or set to null, versions of dataset contents are retained for at most\n 90 days. The number of versions of dataset contents retained is determined by the\n versioningConfiguration parameter. For more information, see Keeping Multiple Versions of AWS IoT Analytics Data Sets in the AWS IoT\n Analytics User Guide.

" + "smithy.api#documentation": "

Optional. How long, in days, versions of dataset contents are kept for the dataset. If not\n specified or set to null, versions of dataset contents are retained for at most\n 90 days. The number of versions of dataset contents retained is determined by the\n versioningConfiguration parameter. For more information, see \n Keeping Multiple Versions of IoT Analytics datasets in the\n IoT Analytics User Guide.

" } }, "versioningConfiguration": { "target": "com.amazonaws.iotanalytics#VersioningConfiguration", "traits": { - "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of AWS IoT Analytics Data Sets in the AWS IoT\n Analytics User Guide.

" + "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of IoT Analytics datasets in the\n IoT Analytics User Guide.

" } }, "tags": { "target": "com.amazonaws.iotanalytics#TagList", "traits": { - "smithy.api#documentation": "

Metadata which can be used to manage the data set.

" + "smithy.api#documentation": "

Metadata which can be used to manage the dataset.

" } }, "lateDataRules": { "target": "com.amazonaws.iotanalytics#LateDataRules", "traits": { - "smithy.api#documentation": "

A list of data rules that send notifications to Amazon CloudWatch, when data arrives late. To\n specify lateDataRules, the dataset must use a DeltaTimer\n filter.

" + "smithy.api#documentation": "

A list of data rules that send notifications to CloudWatch, when data arrives late. To specify lateDataRules, the dataset must use a DeltaTimer filter.

" } } } @@ -1040,7 +1040,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a data store, which is a repository for messages. \n Only data stores that are used to save pipeline data can be configured with ParquetConfiguration.

", + "smithy.api#documentation": "

Creates a data store, which is a repository for messages.

", "smithy.api#http": { "method": "POST", "uri": "/datastores", @@ -1061,7 +1061,7 @@ "datastoreStorage": { "target": "com.amazonaws.iotanalytics#DatastoreStorage", "traits": { - "smithy.api#documentation": "

Where data store data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the data store is\n created.

" + "smithy.api#documentation": "

Where data in a data store is stored.. You can choose serviceManagedS3 storage, customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created.

" } }, "retentionPeriod": { @@ -1079,13 +1079,13 @@ "fileFormatConfiguration": { "target": "com.amazonaws.iotanalytics#FileFormatConfiguration", "traits": { - "smithy.api#documentation": "

Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON \n and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" + "smithy.api#documentation": "

Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" } }, "datastorePartitions": { "target": "com.amazonaws.iotanalytics#DatastorePartitions", "traits": { - "smithy.api#documentation": "

\n Contains information about the partitions in a data store.\n

" + "smithy.api#documentation": "

Contains information about the partition dimensions in a data store.

" } } } @@ -1163,7 +1163,7 @@ "pipelineActivities": { "target": "com.amazonaws.iotanalytics#PipelineActivities", "traits": { - "smithy.api#documentation": "

A list of PipelineActivity objects. Activities perform transformations on\n your messages, such as removing, renaming or adding message attributes; filtering messages\n based on attribute values; invoking your Lambda functions on messages for advanced processing;\n or performing mathematical transformations to normalize device data.

\n

The list can be 2-25 PipelineActivity objects and must contain both a\n channel and a datastore activity. Each entry in the list must\n contain only one activity. For example:

\n

\n pipelineActivities = [ { \"channel\": { ... } }, { \"lambda\": { ... } }, ...\n ]\n

", + "smithy.api#documentation": "

A list of PipelineActivity objects. Activities perform transformations on\n your messages, such as removing, renaming or adding message attributes; filtering messages\n based on attribute values; invoking your Lambda unctions on messages for advanced processing;\n or performing mathematical transformations to normalize device data.

\n

The list can be 2-25 PipelineActivity objects and must contain both a\n channel and a datastore activity. Each entry in the list must\n contain only one activity. For example:

\n

\n pipelineActivities = [ { \"channel\": { ... } }, { \"lambda\": { ... } }, ...\n ]\n

", "smithy.api#required": {} } }, @@ -1205,19 +1205,19 @@ "keyPrefix": { "target": "com.amazonaws.iotanalytics#S3KeyPrefix", "traits": { - "smithy.api#documentation": "

Optional. The prefix used to create the keys of the channel data objects. Each object in\n an S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket\n has exactly one key. The prefix must end with a forward slash (/).

" + "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the channel data objects. Each object in\n an S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket\n has exactly one key. The prefix must end with a forward slash (/).

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 resources.

", + "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3\n resources.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Use this to store channel data in an S3 bucket that you manage. If customer managed\n storage is selected, the retentionPeriod parameter is ignored. You cannot change\n the choice of service-managed or customer-managed S3 storage after the channel is\n created.

" + "smithy.api#documentation": "

Used to store channel data in an S3 bucket that you manage. If customer-managed storage is\n selected, the retentionPeriod parameter is ignored. You can't change the choice\n of S3 storage after the data store is created.

" } }, "com.amazonaws.iotanalytics#CustomerManagedChannelS3StorageSummary": { @@ -1232,13 +1232,13 @@ "keyPrefix": { "target": "com.amazonaws.iotanalytics#S3KeyPrefix", "traits": { - "smithy.api#documentation": "

Optional. The prefix used to create the keys of the channel data objects. Each object in\n an S3 bucket has a key that is its unique identifier within the bucket (each object in a\n bucket has exactly one key). The prefix must end with a forward slash (/).

" + "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the channel data objects. Each object in\n an S3 bucket has a key that is its unique identifier within the bucket (each object in a\n bucket has exactly one key). The prefix must end with a forward slash (/).

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 resources.

" + "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3\n resources.

" } } }, @@ -1252,26 +1252,26 @@ "bucket": { "target": "com.amazonaws.iotanalytics#BucketName", "traits": { - "smithy.api#documentation": "

The name of the S3 bucket in which data store data is stored.

", + "smithy.api#documentation": "

The name of the Amazon S3 bucket where your data is stored.

", "smithy.api#required": {} } }, "keyPrefix": { "target": "com.amazonaws.iotanalytics#S3KeyPrefix", "traits": { - "smithy.api#documentation": "

Optional. The prefix used to create the keys of the data store data objects. Each object\n in an S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket\n has exactly one key. The prefix must end with a forward slash (/).

" + "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 resources.

", + "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3 resources.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Use this to store data store data in an S3 bucket that you manage. When customer-managed\n storage is selected, the retentionPeriod parameter is ignored. You cannot change\n the choice of service-managed or customer-managed S3 storage after the data store is\n created.

" + "smithy.api#documentation": "

S3-customer-managed; When you choose customer-managed storage, the retentionPeriod parameter is ignored. You can't change the choice of Amazon S3 storage after your data store is created.

" } }, "com.amazonaws.iotanalytics#CustomerManagedDatastoreS3StorageSummary": { @@ -1280,24 +1280,24 @@ "bucket": { "target": "com.amazonaws.iotanalytics#BucketName", "traits": { - "smithy.api#documentation": "

The name of the S3 bucket in which data store data is stored.

" + "smithy.api#documentation": "

The name of the Amazon S3 bucket where your data is stored.

" } }, "keyPrefix": { "target": "com.amazonaws.iotanalytics#S3KeyPrefix", "traits": { - "smithy.api#documentation": "

Optional. The prefix used to create the keys of the data store data objects. Each object\n in an S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket\n has exactly one key. The prefix must end with a forward slash (/).

" + "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 resources.

" + "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3 resources.

" } } }, "traits": { - "smithy.api#documentation": "

Used to store data store data in an S3 bucket that you manage.

" + "smithy.api#documentation": "

Contains information about the data store that you manage.

" } }, "com.amazonaws.iotanalytics#Dataset": { @@ -1306,25 +1306,25 @@ "name": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the data set.

" + "smithy.api#documentation": "

The name of the dataset.

" } }, "arn": { "target": "com.amazonaws.iotanalytics#DatasetArn", "traits": { - "smithy.api#documentation": "

The ARN of the data set.

" + "smithy.api#documentation": "

The ARN of the dataset.

" } }, "actions": { "target": "com.amazonaws.iotanalytics#DatasetActions", "traits": { - "smithy.api#documentation": "

The DatasetAction objects that automatically create the data set\n contents.

" + "smithy.api#documentation": "

The DatasetAction objects that automatically create the dataset\n contents.

" } }, "triggers": { "target": "com.amazonaws.iotanalytics#DatasetTriggers", "traits": { - "smithy.api#documentation": "

The DatasetTrigger objects that specify when the data set is automatically\n updated.

" + "smithy.api#documentation": "

The DatasetTrigger objects that specify when the dataset is automatically\n updated.

" } }, "contentDeliveryRules": { @@ -1336,42 +1336,42 @@ "status": { "target": "com.amazonaws.iotanalytics#DatasetStatus", "traits": { - "smithy.api#documentation": "

The status of the data set.

" + "smithy.api#documentation": "

The status of the dataset.

" } }, "creationTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

When the data set was created.

" + "smithy.api#documentation": "

When the dataset was created.

" } }, "lastUpdateTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time the data set was updated.

" + "smithy.api#documentation": "

The last time the dataset was updated.

" } }, "retentionPeriod": { "target": "com.amazonaws.iotanalytics#RetentionPeriod", "traits": { - "smithy.api#documentation": "

Optional. How long, in days, message data is kept for the data set.

" + "smithy.api#documentation": "

Optional. How long, in days, message data is kept for the dataset.

" } }, "versioningConfiguration": { "target": "com.amazonaws.iotanalytics#VersioningConfiguration", "traits": { - "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of AWS IoT Analytics Data Sets in the AWS IoT\n Analytics User Guide.

" + "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see \n Keeping Multiple Versions of IoT Analytics datasets in the\n IoT Analytics User Guide.

" } }, "lateDataRules": { "target": "com.amazonaws.iotanalytics#LateDataRules", "traits": { - "smithy.api#documentation": "

A list of data rules that send notifications to Amazon CloudWatch, when data arrives late. To\n specify lateDataRules, the dataset must use a DeltaTimer\n filter.

" + "smithy.api#documentation": "

A list of data rules that send notifications to CloudWatch, when data arrives late. To specify lateDataRules, the dataset must use a DeltaTimer filter.

" } } }, "traits": { - "smithy.api#documentation": "

Information about a data set.

" + "smithy.api#documentation": "

Information about a dataset.

" } }, "com.amazonaws.iotanalytics#DatasetAction": { @@ -1380,13 +1380,13 @@ "actionName": { "target": "com.amazonaws.iotanalytics#DatasetActionName", "traits": { - "smithy.api#documentation": "

The name of the data set action by which data set contents are automatically\n created.

" + "smithy.api#documentation": "

The name of the dataset action by which dataset contents are automatically created.

" } }, "queryAction": { "target": "com.amazonaws.iotanalytics#SqlQueryDatasetAction", "traits": { - "smithy.api#documentation": "

An SqlQueryDatasetAction object that uses an SQL query to automatically\n create data set contents.

" + "smithy.api#documentation": "

An SqlQueryDatasetAction object that uses an SQL query to automatically\n create dataset contents.

" } }, "containerAction": { @@ -1397,7 +1397,7 @@ } }, "traits": { - "smithy.api#documentation": "

A DatasetAction object that specifies how data set contents are automatically\n created.

" + "smithy.api#documentation": "

A DatasetAction object that specifies how dataset contents are automatically\n created.

" } }, "com.amazonaws.iotanalytics#DatasetActionName": { @@ -1478,7 +1478,7 @@ "iotEventsDestinationConfiguration": { "target": "com.amazonaws.iotanalytics#IotEventsDestinationConfiguration", "traits": { - "smithy.api#documentation": "

Configuration information for delivery of dataset contents to AWS IoT Events.

" + "smithy.api#documentation": "

Configuration information for delivery of dataset contents to IoT Events.

" } }, "s3DestinationConfiguration": { @@ -1550,18 +1550,18 @@ "state": { "target": "com.amazonaws.iotanalytics#DatasetContentState", "traits": { - "smithy.api#documentation": "

The state of the data set contents. Can be one of READY, CREATING, SUCCEEDED, or\n FAILED.

" + "smithy.api#documentation": "

The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, or\n FAILED.

" } }, "reason": { "target": "com.amazonaws.iotanalytics#Reason", "traits": { - "smithy.api#documentation": "

The reason the data set contents are in this state.

" + "smithy.api#documentation": "

The reason the dataset contents are in this state.

" } } }, "traits": { - "smithy.api#documentation": "

The state of the data set contents and the reason they are in this state.

" + "smithy.api#documentation": "

The state of the dataset contents and the reason they are in this state.

" } }, "com.amazonaws.iotanalytics#DatasetContentSummaries": { @@ -1582,7 +1582,7 @@ "status": { "target": "com.amazonaws.iotanalytics#DatasetContentStatus", "traits": { - "smithy.api#documentation": "

The status of the data set contents.

" + "smithy.api#documentation": "

The status of the dataset contents.

" } }, "creationTime": { @@ -1644,18 +1644,18 @@ "entryName": { "target": "com.amazonaws.iotanalytics#EntryName", "traits": { - "smithy.api#documentation": "

The name of the data set item.

" + "smithy.api#documentation": "

The name of the dataset item.

" } }, "dataURI": { "target": "com.amazonaws.iotanalytics#PresignedURI", "traits": { - "smithy.api#documentation": "

The presigned URI of the data set item.

" + "smithy.api#documentation": "

The presigned URI of the dataset item.

" } } }, "traits": { - "smithy.api#documentation": "

The reference to a data set entry.

" + "smithy.api#documentation": "

The reference to a dataset entry.

" } }, "com.amazonaws.iotanalytics#DatasetName": { @@ -1665,7 +1665,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_]+$" + "smithy.api#pattern": "^(^(?!_{2}))(^[a-zA-Z0-9_]+$)$" } }, "com.amazonaws.iotanalytics#DatasetStatus": { @@ -1699,31 +1699,31 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the data set.

" + "smithy.api#documentation": "

The name of the dataset.

" } }, "status": { "target": "com.amazonaws.iotanalytics#DatasetStatus", "traits": { - "smithy.api#documentation": "

The status of the data set.

" + "smithy.api#documentation": "

The status of the dataset.

" } }, "creationTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The time the data set was created.

" + "smithy.api#documentation": "

The time the dataset was created.

" } }, "lastUpdateTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time the data set was updated.

" + "smithy.api#documentation": "

The last time the dataset was updated.

" } }, "triggers": { "target": "com.amazonaws.iotanalytics#DatasetTriggers", "traits": { - "smithy.api#documentation": "

A list of triggers. A trigger causes data set content to be populated at a specified time\n interval or when another data set is populated. The list of triggers can be empty or contain\n up to five DataSetTrigger objects

" + "smithy.api#documentation": "

A list of triggers. A trigger causes dataset content to be populated at a specified time\n interval or when another dataset is populated. The list of triggers can be empty or contain up\n to five DataSetTrigger objects

" } }, "actions": { @@ -1734,7 +1734,7 @@ } }, "traits": { - "smithy.api#documentation": "

A summary of information about a data set.

" + "smithy.api#documentation": "

A summary of information about a dataset.

" } }, "com.amazonaws.iotanalytics#DatasetTrigger": { @@ -1749,12 +1749,12 @@ "dataset": { "target": "com.amazonaws.iotanalytics#TriggeringDataset", "traits": { - "smithy.api#documentation": "

The data set whose content creation triggers the creation of this data set's\n contents.

" + "smithy.api#documentation": "

The dataset whose content creation triggers the creation of this dataset's\n contents.

" } } }, "traits": { - "smithy.api#documentation": "

The DatasetTrigger that specifies when the data set is automatically\n updated.

" + "smithy.api#documentation": "

The DatasetTrigger that specifies when the dataset is automatically\n updated.

" } }, "com.amazonaws.iotanalytics#DatasetTriggers": { @@ -1781,7 +1781,7 @@ "storage": { "target": "com.amazonaws.iotanalytics#DatastoreStorage", "traits": { - "smithy.api#documentation": "

Where data store data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the data store is\n created.

" + "smithy.api#documentation": "

Where data in a data store is stored.. You can choose serviceManagedS3 storage, customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created.

" } }, "arn": { @@ -1817,19 +1817,19 @@ "lastMessageArrivalTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time when a new message arrived in the data store.

\n

AWS IoT Analytics updates this value at most once per minute for one data store. \n Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" + "smithy.api#documentation": "

The last time when a new message arrived in the data store.

\n

IoT Analytics updates this value at most once per minute for Amazon Simple Storage Service one data store. Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" } }, "fileFormatConfiguration": { "target": "com.amazonaws.iotanalytics#FileFormatConfiguration", "traits": { - "smithy.api#documentation": "

Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON \n and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" + "smithy.api#documentation": "

Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" } }, "datastorePartitions": { "target": "com.amazonaws.iotanalytics#DatastorePartitions", "traits": { - "smithy.api#documentation": "

\n Contains information about the partitions in a data store.\n

" + "smithy.api#documentation": "

Contains information about the partition dimensions in a data store.

" } } }, @@ -1862,6 +1862,35 @@ "com.amazonaws.iotanalytics#DatastoreArn": { "type": "string" }, + "com.amazonaws.iotanalytics#DatastoreIotSiteWiseMultiLayerStorage": { + "type": "structure", + "members": { + "customerManagedS3Storage": { + "target": "com.amazonaws.iotanalytics#IotSiteWiseCustomerManagedDatastoreS3Storage", + "traits": { + "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. You can't change the choice of Amazon S3 storage after your data store is created.

" + } + }, + "com.amazonaws.iotanalytics#DatastoreIotSiteWiseMultiLayerStorageSummary": { + "type": "structure", + "members": { + "customerManagedS3Storage": { + "target": "com.amazonaws.iotanalytics#IotSiteWiseCustomerManagedDatastoreS3StorageSummary", + "traits": { + "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains information about the data store that you manage, which stores data used by IoT SiteWise.

" + } + }, "com.amazonaws.iotanalytics#DatastoreName": { "type": "string", "traits": { @@ -1869,7 +1898,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_]+$" + "smithy.api#pattern": "^(^(?!_{2}))(^[a-zA-Z0-9_]+$)$" } }, "com.amazonaws.iotanalytics#DatastorePartition": { @@ -1878,18 +1907,18 @@ "attributePartition": { "target": "com.amazonaws.iotanalytics#Partition", "traits": { - "smithy.api#documentation": "

\n A partition defined by an attributeName.\n

" + "smithy.api#documentation": "

A partition dimension defined by an attributeName.

" } }, "timestampPartition": { "target": "com.amazonaws.iotanalytics#TimestampPartition", "traits": { - "smithy.api#documentation": "

\n A partition defined by an attributeName and a timestamp format.\n

" + "smithy.api#documentation": "

A partition dimension defined by a timestamp attribute.

" } } }, "traits": { - "smithy.api#documentation": "

\n A single partition in a data store.\n

" + "smithy.api#documentation": "

A single dimension to partition a data store. The dimension must be an\n AttributePartition or a TimestampPartition.

" } }, "com.amazonaws.iotanalytics#DatastorePartitions": { @@ -1898,12 +1927,12 @@ "partitions": { "target": "com.amazonaws.iotanalytics#Partitions", "traits": { - "smithy.api#documentation": "

\n A list of partitions in a data store.\n

" + "smithy.api#documentation": "

A list of partition dimensions in a data store.

" } } }, "traits": { - "smithy.api#documentation": "

\n Contains information about partitions in a data store.\n

" + "smithy.api#documentation": "

Contains information about the partition dimensions in a data store.

" } }, "com.amazonaws.iotanalytics#DatastoreStatistics": { @@ -1945,18 +1974,24 @@ "serviceManagedS3": { "target": "com.amazonaws.iotanalytics#ServiceManagedDatastoreS3Storage", "traits": { - "smithy.api#documentation": "

Use this to store data store data in an S3 bucket managed by AWS IoT Analytics. You cannot\n change the choice of service-managed or customer-managed S3 storage after the data store is\n created.

" + "smithy.api#documentation": "

Used to store data in an Amazon S3 bucket managed by IoT Analytics. You can't change the choice of Amazon S3 storage after your data store is created.

" } }, "customerManagedS3": { "target": "com.amazonaws.iotanalytics#CustomerManagedDatastoreS3Storage", "traits": { - "smithy.api#documentation": "

Use this to store data store data in an S3 bucket that you manage. When customer managed\n storage is selected, the retentionPeriod parameter is ignored. The choice of\n service-managed or customer-managed S3 storage cannot be changed after creation of the data\n store.

" + "smithy.api#documentation": "

S3-customer-managed; When you choose customer-managed storage, the retentionPeriod parameter is ignored. You can't change the choice of Amazon S3 storage after your data store is created.

" + } + }, + "iotSiteWiseMultiLayerStorage": { + "target": "com.amazonaws.iotanalytics#DatastoreIotSiteWiseMultiLayerStorage", + "traits": { + "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. You can't change the choice of Amazon S3 storage after your data store is created.

" } } }, "traits": { - "smithy.api#documentation": "

Where data store data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the data store is\n created.

" + "smithy.api#documentation": "

Where data in a data store is stored.. You can choose serviceManagedS3 storage, customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created.

" } }, "com.amazonaws.iotanalytics#DatastoreStorageSummary": { @@ -1965,18 +2000,24 @@ "serviceManagedS3": { "target": "com.amazonaws.iotanalytics#ServiceManagedDatastoreS3StorageSummary", "traits": { - "smithy.api#documentation": "

Used to store data store data in an S3 bucket managed by AWS IoT Analytics.

" + "smithy.api#documentation": "

Used to store data in an Amazon S3 bucket managed by IoT Analytics.

" } }, "customerManagedS3": { "target": "com.amazonaws.iotanalytics#CustomerManagedDatastoreS3StorageSummary", "traits": { - "smithy.api#documentation": "

Used to store data store data in an S3 bucket that you manage.

" + "smithy.api#documentation": "

Used to store data in an Amazon S3 bucket managed by IoT Analytics.

" + } + }, + "iotSiteWiseMultiLayerStorage": { + "target": "com.amazonaws.iotanalytics#DatastoreIotSiteWiseMultiLayerStorageSummary", + "traits": { + "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.

" } } }, "traits": { - "smithy.api#documentation": "

Where data store data is stored.

" + "smithy.api#documentation": "

Contains information about your data store.

" } }, "com.amazonaws.iotanalytics#DatastoreSummaries": { @@ -1997,7 +2038,7 @@ "datastoreStorage": { "target": "com.amazonaws.iotanalytics#DatastoreStorageSummary", "traits": { - "smithy.api#documentation": "

Where data store data is stored.

" + "smithy.api#documentation": "

Where data in a data store is stored.

" } }, "status": { @@ -2021,7 +2062,7 @@ "lastMessageArrivalTime": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

The last time when a new message arrived in the data store.

\n

AWS IoT Analytics updates this value at most once per minute for one data store. \n Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" + "smithy.api#documentation": "

The last time when a new message arrived in the data store.

\n

IoT Analytics updates this value at most once per minute for Amazon Simple Storage Service one data store. Hence, the lastMessageArrivalTime value is an approximation.

\n

This feature only applies to messages that arrived in the data store after October 23, 2020.

" } }, "fileFormatType": { @@ -2033,7 +2074,7 @@ "datastorePartitions": { "target": "com.amazonaws.iotanalytics#DatastorePartitions", "traits": { - "smithy.api#documentation": "

\n Contains information about the partitions in a data store.\n

" + "smithy.api#documentation": "

Contains information about the partition dimensions in a data store.

" } } }, @@ -2173,7 +2214,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the data set to delete.

", + "smithy.api#documentation": "

The name of the dataset to delete.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2296,13 +2337,13 @@ "timeoutInMinutes": { "target": "com.amazonaws.iotanalytics#SessionTimeoutInMinutes", "traits": { - "smithy.api#documentation": "

A time interval. You can use timeoutInMinutes so that AWS IoT Analytics can batch up late\n data notifications that have been generated since the last execution. AWS IoT Analytics sends one batch of\n notifications to Amazon CloudWatch Events at one time.

\n

For more information about how to write a timestamp expression, see Date and Time Functions and\n Operators, in the Presto 0.172 Documentation.

", + "smithy.api#documentation": "

A time interval. You can use timeoutInMinutes so that IoT Analytics can batch up late\n data notifications that have been generated since the last execution. IoT Analytics sends one batch of\n notifications to Amazon CloudWatch Events at one time.

\n

For more information about how to write a timestamp expression, see Date and Time Functions and\n Operators, in the Presto 0.172 Documentation.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

A structure that contains the configuration information of a delta time session\n window.

\n

\n \n DeltaTime\n specifies a time interval. You can use\n DeltaTime to create dataset contents with data that has arrived in the data\n store since the last execution. For an example of DeltaTime, see Creating\n a SQL dataset with a delta window (CLI) in the\n AWS IoT Analytics User Guide.

" + "smithy.api#documentation": "

A structure that contains the configuration information of a delta time session\n window.

\n

\n \n DeltaTime\n specifies a time interval. You can use\n DeltaTime to create dataset contents with data that has arrived in the data\n store since the last execution. For an example of DeltaTime, see Creating\n a SQL dataset with a delta window (CLI) in the\n IoT Analytics User Guide.

" } }, "com.amazonaws.iotanalytics#DescribeChannel": { @@ -2353,7 +2394,7 @@ "includeStatistics": { "target": "com.amazonaws.iotanalytics#IncludeStatisticsFlag", "traits": { - "smithy.api#documentation": "

If true, additional statistical information about the channel is included in the response.\n This feature cannot be used with a channel whose S3 storage is customer-managed.

", + "smithy.api#documentation": "

If true, additional statistical information about the channel is included in the response.\n This feature can't be used with a channel whose S3 storage is customer-managed.

", "smithy.api#httpQuery": "includeStatistics" } } @@ -2416,7 +2457,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the data set whose information is retrieved.

", + "smithy.api#documentation": "

The name of the dataset whose information is retrieved.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2429,7 +2470,7 @@ "dataset": { "target": "com.amazonaws.iotanalytics#Dataset", "traits": { - "smithy.api#documentation": "

An object that contains information about the data set.

" + "smithy.api#documentation": "

An object that contains information about the dataset.

" } } } @@ -2482,7 +2523,7 @@ "includeStatistics": { "target": "com.amazonaws.iotanalytics#IncludeStatisticsFlag", "traits": { - "smithy.api#documentation": "

If true, additional statistical information about the data store is included in the\n response. This feature cannot be used with a data store whose S3 storage is\n customer-managed.

", + "smithy.api#documentation": "

If true, additional statistical information about the data store is included in the\n response. This feature can't be used with a data store whose S3 storage is\n customer-managed.

", "smithy.api#httpQuery": "includeStatistics" } } @@ -2531,7 +2572,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the current settings of the AWS IoT Analytics logging options.

", + "smithy.api#documentation": "

Retrieves the current settings of the IoT Analytics logging options.

", "smithy.api#http": { "method": "GET", "uri": "/logging", @@ -2549,7 +2590,7 @@ "loggingOptions": { "target": "com.amazonaws.iotanalytics#LoggingOptions", "traits": { - "smithy.api#documentation": "

The current settings of the AWS IoT Analytics logging options.

" + "smithy.api#documentation": "

The current settings of the IoT Analytics logging options.

" } } } @@ -2651,7 +2692,7 @@ } }, "traits": { - "smithy.api#documentation": "

An activity that adds data from the AWS IoT device registry to your message.

" + "smithy.api#documentation": "

An activity that adds data from the IoT device registry to your message.

" } }, "com.amazonaws.iotanalytics#DeviceShadowEnrichActivity": { @@ -2693,7 +2734,7 @@ } }, "traits": { - "smithy.api#documentation": "

An activity that adds information from the AWS IoT Device Shadow service to a\n message.

" + "smithy.api#documentation": "

An activity that adds information from the IoT Device Shadow service to a\n message.

" } }, "com.amazonaws.iotanalytics#DoubleValue": { @@ -2748,7 +2789,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON \n and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" + "smithy.api#documentation": "

Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" } }, "com.amazonaws.iotanalytics#FileFormatType": { @@ -2829,7 +2870,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the contents of a data set as presigned URIs.

", + "smithy.api#documentation": "

Retrieves the contents of a dataset as presigned URIs.

", "smithy.api#http": { "method": "GET", "uri": "/datasets/{datasetName}/content", @@ -2843,7 +2884,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the data set whose contents are retrieved.

", + "smithy.api#documentation": "

The name of the dataset whose contents are retrieved.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2851,7 +2892,7 @@ "versionId": { "target": "com.amazonaws.iotanalytics#DatasetContentVersion", "traits": { - "smithy.api#documentation": "

The version of the data set whose contents are retrieved. You can also use the strings\n \"$LATEST\" or \"$LATEST_SUCCEEDED\" to retrieve the contents of the latest or latest successfully\n completed data set. If not specified, \"$LATEST_SUCCEEDED\" is the default.

", + "smithy.api#documentation": "

The version of the dataset whose contents are retrieved. You can also use the strings\n \"$LATEST\" or \"$LATEST_SUCCEEDED\" to retrieve the contents of the latest or latest successfully\n completed dataset. If not specified, \"$LATEST_SUCCEEDED\" is the default.

", "smithy.api#httpQuery": "versionId" } } @@ -2875,7 +2916,7 @@ "status": { "target": "com.amazonaws.iotanalytics#DatasetContentStatus", "traits": { - "smithy.api#documentation": "

The status of the data set content.

" + "smithy.api#documentation": "

The status of the dataset content.

" } } } @@ -2886,20 +2927,20 @@ "tableName": { "target": "com.amazonaws.iotanalytics#GlueTableName", "traits": { - "smithy.api#documentation": "

The name of the table in your AWS Glue Data Catalog that is used to perform the ETL\n operations. An AWS Glue Data Catalog table contains partitioned data and descriptions of data\n sources and targets.

", + "smithy.api#documentation": "

The name of the table in your Glue Data Catalog that is used to perform the ETL\n operations. An Glue Data Catalog table contains partitioned data and descriptions of data\n sources and targets.

", "smithy.api#required": {} } }, "databaseName": { "target": "com.amazonaws.iotanalytics#GlueDatabaseName", "traits": { - "smithy.api#documentation": "

The name of the database in your AWS Glue Data Catalog in which the table is located. An\n AWS Glue Data Catalog database contains metadata tables.

", + "smithy.api#documentation": "

The name of the database in your Glue Data Catalog in which the table is located. An\n Glue Data Catalog database contains metadata tables.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Configuration information for coordination with AWS Glue, a fully managed extract,\n transform and load (ETL) service.

" + "smithy.api#documentation": "

Configuration information for coordination with Glue, a fully managed extract, transform\n and load (ETL) service.

" } }, "com.amazonaws.iotanalytics#GlueDatabaseName": { @@ -2966,20 +3007,20 @@ "inputName": { "target": "com.amazonaws.iotanalytics#IotEventsInputName", "traits": { - "smithy.api#documentation": "

The name of the AWS IoT Events input to which dataset contents are delivered.

", + "smithy.api#documentation": "

The name of the IoT Events input to which dataset contents are delivered.

", "smithy.api#required": {} } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to deliver dataset contents\n to an AWS IoT Events input.

", + "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to deliver dataset contents to an IoT Events\n input.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Configuration information for delivery of dataset contents to AWS IoT Events.

" + "smithy.api#documentation": "

Configuration information for delivery of dataset contents to IoT Events.

" } }, "com.amazonaws.iotanalytics#IotEventsInputName": { @@ -2992,6 +3033,47 @@ "smithy.api#pattern": "^[a-zA-Z][a-zA-Z0-9_]*$" } }, + "com.amazonaws.iotanalytics#IotSiteWiseCustomerManagedDatastoreS3Storage": { + "type": "structure", + "members": { + "bucket": { + "target": "com.amazonaws.iotanalytics#BucketName", + "traits": { + "smithy.api#documentation": "

The name of the Amazon S3 bucket where your data is stored.

", + "smithy.api#required": {} + } + }, + "keyPrefix": { + "target": "com.amazonaws.iotanalytics#S3KeyPrefix", + "traits": { + "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. You can't change the choice of Amazon S3 storage after your data store is created.

" + } + }, + "com.amazonaws.iotanalytics#IotSiteWiseCustomerManagedDatastoreS3StorageSummary": { + "type": "structure", + "members": { + "bucket": { + "target": "com.amazonaws.iotanalytics#BucketName", + "traits": { + "smithy.api#documentation": "

The name of the Amazon S3 bucket where your data is stored.

" + } + }, + "keyPrefix": { + "target": "com.amazonaws.iotanalytics#S3KeyPrefix", + "traits": { + "smithy.api#documentation": "

(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains information about the data store that you manage, which stores data used by IoT SiteWise.

" + } + }, "com.amazonaws.iotanalytics#JsonConfiguration": { "type": "structure", "members": {}, @@ -3212,7 +3294,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists information about data set contents that have been created.

", + "smithy.api#documentation": "

Lists information about dataset contents that have been created.

", "smithy.api#http": { "method": "GET", "uri": "/datasets/{datasetName}/contents", @@ -3231,7 +3313,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the data set whose contents information you want to list.

", + "smithy.api#documentation": "

The name of the dataset whose contents information you want to list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3253,14 +3335,14 @@ "scheduledOnOrAfter": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

A filter to limit results to those data set contents whose creation is scheduled on or\n after the given time. See the field triggers.schedule in the\n CreateDataset request. (timestamp)

", + "smithy.api#documentation": "

A filter to limit results to those dataset contents whose creation is scheduled on or\n after the given time. See the field triggers.schedule in the\n CreateDataset request. (timestamp)

", "smithy.api#httpQuery": "scheduledOnOrAfter" } }, "scheduledBefore": { "target": "com.amazonaws.iotanalytics#Timestamp", "traits": { - "smithy.api#documentation": "

A filter to limit results to those data set contents whose creation is scheduled before\n the given time. See the field triggers.schedule in the CreateDataset\n request. (timestamp)

", + "smithy.api#documentation": "

A filter to limit results to those dataset contents whose creation is scheduled before the\n given time. See the field triggers.schedule in the CreateDataset\n request. (timestamp)

", "smithy.api#httpQuery": "scheduledBefore" } } @@ -3272,7 +3354,7 @@ "datasetContentSummaries": { "target": "com.amazonaws.iotanalytics#DatasetContentSummaries", "traits": { - "smithy.api#documentation": "

Summary information about data set contents that have been created.

" + "smithy.api#documentation": "

Summary information about dataset contents that have been created.

" } }, "nextToken": { @@ -3306,7 +3388,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves information about data sets.

", + "smithy.api#documentation": "

Retrieves information about datasets.

", "smithy.api#http": { "method": "GET", "uri": "/datasets", @@ -3583,7 +3665,7 @@ "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants permission to AWS IoT Analytics to perform logging.

", + "smithy.api#documentation": "

The ARN of the role that grants permission to IoT Analytics to perform logging.

", "smithy.api#required": {} } }, @@ -3597,7 +3679,7 @@ "enabled": { "target": "com.amazonaws.iotanalytics#LoggingEnabled", "traits": { - "smithy.api#documentation": "

If true, logging is enabled for AWS IoT Analytics.

", + "smithy.api#documentation": "

If true, logging is enabled for IoT Analytics.

", "smithy.api#required": {} } } @@ -3783,13 +3865,13 @@ "attributeName": { "target": "com.amazonaws.iotanalytics#PartitionAttributeName", "traits": { - "smithy.api#documentation": "

\n The attribute name of the partition.\n

", + "smithy.api#documentation": "

The name of the attribute that defines a partition dimension.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

\n A single partition.\n

" + "smithy.api#documentation": "

A partition dimension defined by an attribute.

" } }, "com.amazonaws.iotanalytics#PartitionAttributeName": { @@ -3906,7 +3988,7 @@ "selectAttributes": { "target": "com.amazonaws.iotanalytics#SelectAttributesActivity", "traits": { - "smithy.api#documentation": "

Creates a new message using only the specified attributes from the original message.\n

" + "smithy.api#documentation": "

Used to create a new message using only the specified attributes from the original\n message.

" } }, "filter": { @@ -3924,13 +4006,13 @@ "deviceRegistryEnrich": { "target": "com.amazonaws.iotanalytics#DeviceRegistryEnrichActivity", "traits": { - "smithy.api#documentation": "

Adds data from the AWS IoT device registry to your message.

" + "smithy.api#documentation": "

Adds data from the IoT device registry to your message.

" } }, "deviceShadowEnrich": { "target": "com.amazonaws.iotanalytics#DeviceShadowEnrichActivity", "traits": { - "smithy.api#documentation": "

Adds information from the AWS IoT Device Shadow service to a message.

" + "smithy.api#documentation": "

Adds information from the IoT Device Shadow service to a message.

" } } }, @@ -3948,7 +4030,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "^[a-zA-Z0-9_]+$" + "smithy.api#pattern": "^(^(?!_{2}))(^[a-zA-Z0-9_]+$)$" } }, "com.amazonaws.iotanalytics#PipelineSummaries": { @@ -4012,7 +4094,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets or updates the AWS IoT Analytics logging options.

\n

If you update the value of any loggingOptions field, it takes up to one\n minute for the change to take effect. Also, if you change the policy attached to the role you\n specified in the roleArn field (for example, to correct an invalid policy), it\n takes up to five minutes for that change to take effect.

", + "smithy.api#documentation": "

Sets or updates the IoT Analytics logging options.

\n

If you update the value of any loggingOptions field, it takes up to one\n minute for the change to take effect. Also, if you change the policy attached to the role you\n specified in the roleArn field (for example, to correct an invalid policy), it\n takes up to five minutes for that change to take effect.

", "smithy.api#http": { "method": "PUT", "uri": "/logging", @@ -4026,7 +4108,7 @@ "loggingOptions": { "target": "com.amazonaws.iotanalytics#LoggingOptions", "traits": { - "smithy.api#documentation": "

The new values of the AWS IoT Analytics logging options.

", + "smithy.api#documentation": "

The new values of the IoT Analytics logging options.

", "smithy.api#required": {} } } @@ -4294,7 +4376,7 @@ "pipelineActivity": { "target": "com.amazonaws.iotanalytics#PipelineActivity", "traits": { - "smithy.api#documentation": "

The pipeline activity that is run. This must not be a channel activity or a datastore\n activity because these activities are used in a pipeline only to load the original message and\n to store the (possibly) transformed message. If a lambda activity is specified, only\n short-running Lambda functions (those with a timeout of less than 30 seconds or less) can be\n used.

", + "smithy.api#documentation": "

The pipeline activity that is run. This must not be a channel activity or a data store\n activity because these activities are used in a pipeline only to load the original message and\n to store the (possibly) transformed message. If a Lambda activity is specified, only\n short-running Lambda functions (those with a timeout of less than 30 seconds or less) can be\n used.

", "smithy.api#required": {} } }, @@ -4344,19 +4426,19 @@ "glueConfiguration": { "target": "com.amazonaws.iotanalytics#GlueConfiguration", "traits": { - "smithy.api#documentation": "

Configuration information for coordination with AWS Glue, a fully managed extract,\n transform and load (ETL) service.

" + "smithy.api#documentation": "

Configuration information for coordination with Glue, a fully managed extract, transform\n and load (ETL) service.

" } }, "roleArn": { "target": "com.amazonaws.iotanalytics#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon\n S3 and AWS Glue resources.

", + "smithy.api#documentation": "

The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3 and Glue\n resources.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Configuration information for delivery of dataset contents to Amazon Simple Storage\n Service (Amazon S3).

" + "smithy.api#documentation": "

Configuration information for delivery of dataset contents to Amazon Simple Storage Service (Amazon S3).

" } }, "com.amazonaws.iotanalytics#S3KeyPrefix": { @@ -4493,7 +4575,7 @@ "columns": { "target": "com.amazonaws.iotanalytics#Columns", "traits": { - "smithy.api#documentation": "

Specifies one or more columns that store your data.

\n

Each schema can have up to 100 columns. Each column can have up to 100 nested types.

" + "smithy.api#documentation": "

Specifies one or more columns that store your data.

\n

Each schema can have up to 100 columns. Each column can have up to 100 nested\n types.

" } } }, @@ -4526,35 +4608,35 @@ } }, "traits": { - "smithy.api#documentation": "

Creates a new message using only the specified attributes from the original\n message.

" + "smithy.api#documentation": "

Used to create a new message using only the specified attributes from the original\n message.

" } }, "com.amazonaws.iotanalytics#ServiceManagedChannelS3Storage": { "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Use this to store channel data in an S3 bucket managed by AWS IoT Analytics. You cannot\n change the choice of service-managed or customer-managed S3 storage after the channel is\n created.

" + "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by IoT Analytics. You can't change the choice\n of S3 storage after the data store is created.

" } }, "com.amazonaws.iotanalytics#ServiceManagedChannelS3StorageSummary": { "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by AWS IoT Analytics.

" + "smithy.api#documentation": "

Used to store channel data in an S3 bucket managed by IoT Analytics.

" } }, "com.amazonaws.iotanalytics#ServiceManagedDatastoreS3Storage": { "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Use this to store data store data in an S3 bucket managed by AWS IoT Analytics. You cannot\n change the choice of service-managed or customer-managed S3 storage after the data store is\n created.

" + "smithy.api#documentation": "

Used to store data in an Amazon S3 bucket managed by IoT Analytics. You can't change the choice of Amazon S3 storage after your data store is created.

" } }, "com.amazonaws.iotanalytics#ServiceManagedDatastoreS3StorageSummary": { "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Used to store data store data in an S3 bucket managed by AWS IoT Analytics.

" + "smithy.api#documentation": "

Contains information about the data store that is managed by IoT Analytics.

" } }, "com.amazonaws.iotanalytics#ServiceUnavailableException": { @@ -4861,19 +4943,19 @@ "attributeName": { "target": "com.amazonaws.iotanalytics#PartitionAttributeName", "traits": { - "smithy.api#documentation": "

\n The attribute name of the partition defined by a timestamp.\n

", + "smithy.api#documentation": "

The attribute name of the partition defined by a timestamp.

", "smithy.api#required": {} } }, "timestampFormat": { "target": "com.amazonaws.iotanalytics#TimestampFormat", "traits": { - "smithy.api#documentation": "

\n The timestamp format of a partition defined by a timestamp. \n

" + "smithy.api#documentation": "

The timestamp format of a partition defined by a timestamp. The default format is seconds\n since epoch (January 1, 1970 at midnight UTC time).

" } } }, "traits": { - "smithy.api#documentation": "

\n A partition defined by a timestamp.\n

" + "smithy.api#documentation": "

A partition dimension defined by a timestamp attribute.

" } }, "com.amazonaws.iotanalytics#TriggeringDataset": { @@ -4982,7 +5064,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the settings of a channel.

", + "smithy.api#documentation": "

Used to update the settings of a channel.

", "smithy.api#http": { "method": "PUT", "uri": "/channels/{channelName}", @@ -5004,13 +5086,13 @@ "channelStorage": { "target": "com.amazonaws.iotanalytics#ChannelStorage", "traits": { - "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You cannot change this storage option after the channel is\n created.

" + "smithy.api#documentation": "

Where channel data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default is\n serviceManagedS3. You can't change this storage option after the channel is\n created.

" } }, "retentionPeriod": { "target": "com.amazonaws.iotanalytics#RetentionPeriod", "traits": { - "smithy.api#documentation": "

How long, in days, message data is kept for the channel. The retention period cannot be\n updated if the channel's S3 storage is customer-managed.

" + "smithy.api#documentation": "

How long, in days, message data is kept for the channel. The retention period can't be\n updated if the channel's Amazon S3 storage is customer-managed.

" } } } @@ -5038,7 +5120,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the settings of a data set.

", + "smithy.api#documentation": "

Updates the settings of a dataset.

", "smithy.api#http": { "method": "PUT", "uri": "/datasets/{datasetName}", @@ -5052,7 +5134,7 @@ "datasetName": { "target": "com.amazonaws.iotanalytics#DatasetName", "traits": { - "smithy.api#documentation": "

The name of the data set to update.

", + "smithy.api#documentation": "

The name of the dataset to update.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5085,13 +5167,13 @@ "versioningConfiguration": { "target": "com.amazonaws.iotanalytics#VersioningConfiguration", "traits": { - "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of AWS IoT Analytics Data Sets in the AWS IoT\n Analytics User Guide.

" + "smithy.api#documentation": "

Optional. How many versions of dataset contents are kept. If not specified or set to null,\n only the latest version plus the latest succeeded version (if they are different) are kept for\n the time period specified by the retentionPeriod parameter. For more information,\n see Keeping Multiple Versions of IoT Analytics datasets in the\n IoT Analytics User Guide.

" } }, "lateDataRules": { "target": "com.amazonaws.iotanalytics#LateDataRules", "traits": { - "smithy.api#documentation": "

A list of data rules that send notifications to Amazon CloudWatch, when data arrives late. To\n specify lateDataRules, the dataset must use a DeltaTimer\n filter.

" + "smithy.api#documentation": "

A list of data rules that send notifications to CloudWatch, when data arrives late. To specify lateDataRules, the dataset must use a DeltaTimer filter.

" } } } @@ -5119,7 +5201,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the settings of a data store.

", + "smithy.api#documentation": "

Used to update the settings of a data store.

", "smithy.api#http": { "method": "PUT", "uri": "/datastores/{datastoreName}", @@ -5141,19 +5223,19 @@ "retentionPeriod": { "target": "com.amazonaws.iotanalytics#RetentionPeriod", "traits": { - "smithy.api#documentation": "

How long, in days, message data is kept for the data store. The retention period cannot be\n updated if the data store's S3 storage is customer-managed.

" + "smithy.api#documentation": "

How long, in days, message data is kept for the data store. The retention period can't be\n updated if the data store's Amazon S3 storage is customer-managed.

" } }, "datastoreStorage": { "target": "com.amazonaws.iotanalytics#DatastoreStorage", "traits": { - "smithy.api#documentation": "

Where data store data is stored. You can choose one of serviceManagedS3 or\n customerManagedS3 storage. If not specified, the default\n isserviceManagedS3. You cannot change this storage option after the data store\n is created.

" + "smithy.api#documentation": "

Where data in a data store is stored.. You can choose serviceManagedS3 storage, customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default is serviceManagedS3. You can't change the choice of Amazon S3 storage after your data store is created.

" } }, "fileFormatConfiguration": { "target": "com.amazonaws.iotanalytics#FileFormatConfiguration", "traits": { - "smithy.api#documentation": "

Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON \n and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" + "smithy.api#documentation": "

Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.

\n

The default file format is JSON. You can specify only one format.

\n

You can't change the file format after you create the data store.

" } } } diff --git a/codegen/sdk-codegen/aws-models/iotsitewise.2019-12-02.json b/codegen/sdk-codegen/aws-models/iotsitewise.2019-12-02.json index 4da89a838dc..5c22152bced 100644 --- a/codegen/sdk-codegen/aws-models/iotsitewise.2019-12-02.json +++ b/codegen/sdk-codegen/aws-models/iotsitewise.2019-12-02.json @@ -1237,7 +1237,7 @@ "traits": { "smithy.api#documentation": "

Associates a child asset with the given parent asset through a hierarchy defined in the\n parent asset's model. For more information, see Associating assets in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "POST", @@ -1745,6 +1745,10 @@ { "value": "SYNC_FAILED", "name": "SYNC_FAILED" + }, + { + "value": "UNKNOWN", + "name": "UNKNOWN" } ] } @@ -1787,6 +1791,21 @@ "smithy.api#documentation": "

Contains information about a composite model property on an asset.

" } }, + "com.amazonaws.iotsitewise#ComputeLocation": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "EDGE", + "name": "EDGE" + }, + { + "value": "CLOUD", + "name": "CLOUD" + } + ] + } + }, "com.amazonaws.iotsitewise#ConfigurationErrorDetails": { "type": "structure", "members": { @@ -1879,6 +1898,15 @@ "smithy.api#httpError": 409 } }, + "com.amazonaws.iotsitewise#CoreDeviceThingName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + } + } + }, "com.amazonaws.iotsitewise#CreateAccessPolicy": { "type": "operation", "input": { @@ -2008,7 +2036,7 @@ "traits": { "smithy.api#documentation": "

Creates an asset from an existing asset model. For more information, see Creating assets in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "POST", @@ -2051,7 +2079,7 @@ "traits": { "smithy.api#documentation": "

Creates an asset model from specified property and hierarchy definitions. You create\n assets from asset models. With asset models, you can easily create assets of the same type\n that have standardized definitions. Each asset created from a model inherits the asset model's\n property and hierarchy definitions. For more information, see Defining asset models in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "POST", @@ -2322,7 +2350,7 @@ "traits": { "smithy.api#documentation": "

Creates a gateway, which is a virtual or edge device that delivers industrial data streams\n from local servers to IoT SiteWise. For more information, see Ingesting data using a gateway in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "edge." + "hostPrefix": "api." }, "smithy.api#http": { "method": "POST", @@ -2790,7 +2818,7 @@ "traits": { "smithy.api#documentation": "

Deletes an asset. This action can't be undone. For more information, see Deleting assets and\n models in the IoT SiteWise User Guide.

\n \n

You can't delete an asset that's associated to another asset. For more information, see\n DisassociateAssets.

\n
", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "DELETE", @@ -2827,7 +2855,7 @@ "traits": { "smithy.api#documentation": "

Deletes an asset model. This action can't be undone. You must delete all assets created\n from an asset model before you can delete the model. Also, you can't delete an asset model if\n a parent asset model exists that contains a property formula expression that depends on the\n asset model that you want to delete. For more information, see Deleting assets and models in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "DELETE", @@ -2983,7 +3011,7 @@ "traits": { "smithy.api#documentation": "

Deletes a gateway from IoT SiteWise. When you delete a gateway, some of the gateway's files remain\n in your gateway's file system.

", "smithy.api#endpoint": { - "hostPrefix": "edge." + "hostPrefix": "api." }, "smithy.api#http": { "method": "DELETE", @@ -3260,7 +3288,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about an asset.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -3332,7 +3360,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about an asset model.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -3491,7 +3519,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about an asset property.

\n \n

When you call this operation for an attribute property, this response includes the\n default attribute value that you define in the asset model. If you update the default value\n in the model, this operation's response includes the new default value.

\n
\n

This operation doesn't return the value of the asset property. To get the value of an\n asset property, use GetAssetPropertyValue.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -3774,6 +3802,9 @@ ], "traits": { "smithy.api#documentation": "

Retrieves information about the default encryption configuration for the Amazon Web Services account in\n the default or specified Region. For more information, see Key management in the\n IoT SiteWise User Guide.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, "smithy.api#http": { "method": "GET", "uri": "/configuration/account/encryption", @@ -3835,7 +3866,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about a gateway.

", "smithy.api#endpoint": { - "hostPrefix": "edge." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -3869,7 +3900,7 @@ "traits": { "smithy.api#documentation": "

Retrieves information about a gateway capability configuration.\n Each gateway capability defines data sources for a gateway. A capability configuration\n can contain multiple data source configurations. If you define OPC-UA sources for a gateway in\n the IoT SiteWise console, all of your OPC-UA sources are stored in one capability configuration. To\n list all capability configurations for a gateway, use DescribeGateway.

", "smithy.api#endpoint": { - "hostPrefix": "edge." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -4023,7 +4054,7 @@ "traits": { "smithy.api#documentation": "

Retrieves the current IoT SiteWise logging options.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -4356,7 +4387,10 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves information about the storage configuration for IoT SiteWise.

", + "smithy.api#documentation": "

Retrieves information about the storage configuration for IoT SiteWise.

\n \n

Exporting data to Amazon S3 is currently in preview release and is subject to change. We\n recommend that you use this feature only with test data, and not in production\n environments.

\n
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, "smithy.api#http": { "method": "GET", "uri": "/configuration/account/storage", @@ -4408,6 +4442,52 @@ "smithy.api#pattern": "^[^\\u0000-\\u001F\\u007F]+$" } }, + "com.amazonaws.iotsitewise#DetailedError": { + "type": "structure", + "members": { + "code": { + "target": "com.amazonaws.iotsitewise#DetailedErrorCode", + "traits": { + "smithy.api#documentation": "

The error code.

", + "smithy.api#required": {} + } + }, + "message": { + "target": "com.amazonaws.iotsitewise#DetailedErrorMessage", + "traits": { + "smithy.api#documentation": "

The error message.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains detailed error information.

" + } + }, + "com.amazonaws.iotsitewise#DetailedErrorCode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "INCOMPATIBLE_COMPUTE_LOCATION", + "name": "INCOMPATIBLE_COMPUTE_LOCATION" + }, + { + "value": "INCOMPATIBLE_FORWARDING_CONFIGURATION", + "name": "INCOMPATIBLE_FORWARDING_CONFIGURATION" + } + ] + } + }, + "com.amazonaws.iotsitewise#DetailedErrorMessage": { + "type": "string" + }, + "com.amazonaws.iotsitewise#DetailedErrors": { + "type": "list", + "member": { + "target": "com.amazonaws.iotsitewise#DetailedError" + } + }, "com.amazonaws.iotsitewise#DisassociateAssets": { "type": "operation", "input": { @@ -4433,7 +4513,7 @@ "traits": { "smithy.api#documentation": "

Disassociates a child asset from the given parent asset through a hierarchy defined in the\n parent asset's model.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "POST", @@ -4542,6 +4622,12 @@ "smithy.api#documentation": "

The error message.

", "smithy.api#required": {} } + }, + "details": { + "target": "com.amazonaws.iotsitewise#DetailedErrors", + "traits": { + "smithy.api#documentation": "

A list of detailed errors.

" + } } }, "traits": { @@ -4591,6 +4677,36 @@ "target": "com.amazonaws.iotsitewise#ExpressionVariable" } }, + "com.amazonaws.iotsitewise#ForwardingConfig": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.iotsitewise#ForwardingConfigState", + "traits": { + "smithy.api#documentation": "

The forwarding state for the given property.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The forwarding configuration for a given property.

" + } + }, + "com.amazonaws.iotsitewise#ForwardingConfigState": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "DISABLED", + "name": "DISABLED" + }, + { + "value": "ENABLED", + "name": "ENABLED" + } + ] + } + }, "com.amazonaws.iotsitewise#GatewayCapabilitySummaries": { "type": "list", "member": { @@ -4625,8 +4741,13 @@ "greengrass": { "target": "com.amazonaws.iotsitewise#Greengrass", "traits": { - "smithy.api#documentation": "

A gateway that runs on IoT Greengrass.

", - "smithy.api#required": {} + "smithy.api#documentation": "

A gateway that runs on IoT Greengrass.

" + } + }, + "greengrassV2": { + "target": "com.amazonaws.iotsitewise#GreengrassV2", + "traits": { + "smithy.api#documentation": "

A gateway that runs on IoT Greengrass V2.

" } } }, @@ -4657,6 +4778,9 @@ "smithy.api#required": {} } }, + "gatewayPlatform": { + "target": "com.amazonaws.iotsitewise#GatewayPlatform" + }, "gatewayCapabilitySummaries": { "target": "com.amazonaws.iotsitewise#GatewayCapabilitySummaries", "traits": { @@ -5056,7 +5180,7 @@ } ], "traits": { - "smithy.api#documentation": "

Get interpolated values for an asset property for a specified time interval, during a period of time. \n For example, you can use the this operation to return the interpolated temperature values for a wind turbine every 24 hours \n over a duration of 7 days.

\n

To identify an asset property, you must specify one of the following:

\n ", + "smithy.api#documentation": "

Get interpolated values for an asset property for a specified time interval, during a\n period of time. For example, you can use the this operation to return the interpolated\n temperature values for a wind turbine every 24 hours over a duration of 7 days.

\n

To identify an asset property, you must specify one of the following:

\n ", "smithy.api#endpoint": { "hostPrefix": "data." }, @@ -5199,6 +5323,21 @@ "smithy.api#documentation": "

Contains details for a gateway that runs on IoT Greengrass. To create a gateway that runs on IoT Greengrass,\n you must add the IoT SiteWise connector to a Greengrass group and deploy it. Your Greengrass\n group must also have permissions to upload data to IoT SiteWise. For more information, see Ingesting data using a\n gateway in the IoT SiteWise User Guide.

" } }, + "com.amazonaws.iotsitewise#GreengrassV2": { + "type": "structure", + "members": { + "coreDeviceThingName": { + "target": "com.amazonaws.iotsitewise#CoreDeviceThingName", + "traits": { + "smithy.api#documentation": "

The name of the IoT thing for your IoT Greengrass V2 core device.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains details for a gateway that runs on IoT Greengrass V2. To create a gateway that runs on IoT Greengrass V2, \n you must deploy the IoT SiteWise Edge component to your gateway device. \n Your Greengrass device role \n must use the AWSIoTSiteWiseEdgeAccess policy. For more information, \n see Using IoT SiteWise at the edge \n in the IoT SiteWise User Guide.

" + } + }, "com.amazonaws.iotsitewise#GroupIdentity": { "type": "structure", "members": { @@ -5650,7 +5789,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of summaries of all asset models.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -5726,7 +5865,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of asset relationships for an asset. You can use this operation\n to identify an asset's root asset and all associated assets between that asset and its\n root.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -5818,7 +5957,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of asset summaries.

\n

You can use this operation to do the following:

\n \n

You can't use this operation to list all assets. To retrieve summaries for all of your\n assets, use ListAssetModels to get all of your asset model IDs. Then, use ListAssets to get all\n assets for each asset model.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -5923,7 +6062,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of associated assets.

\n

You can use this operation to do the following:

\n ", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -6099,7 +6238,7 @@ "traits": { "smithy.api#documentation": "

Retrieves a paginated list of gateways.

", "smithy.api#endpoint": { - "hostPrefix": "edge." + "hostPrefix": "api." }, "smithy.api#http": { "method": "GET", @@ -6417,6 +6556,9 @@ ], "traits": { "smithy.api#documentation": "

Retrieves the list of tags for an IoT SiteWise resource.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, "smithy.api#http": { "method": "GET", "uri": "/tags", @@ -6513,11 +6655,33 @@ }, "com.amazonaws.iotsitewise#Measurement": { "type": "structure", - "members": {}, + "members": { + "processingConfig": { + "target": "com.amazonaws.iotsitewise#MeasurementProcessingConfig", + "traits": { + "smithy.api#documentation": "

The processing configuration for the given measurement property. \n You can configure measurements to be kept at the edge or forwarded to the Amazon Web Services Cloud. \n By default, measurements are forwarded to the cloud.

" + } + } + }, "traits": { "smithy.api#documentation": "

Contains an asset measurement property. For more information, see\n Measurements in the IoT SiteWise User Guide.

" } }, + "com.amazonaws.iotsitewise#MeasurementProcessingConfig": { + "type": "structure", + "members": { + "forwardingConfig": { + "target": "com.amazonaws.iotsitewise#ForwardingConfig", + "traits": { + "smithy.api#documentation": "

The forwarding configuration for the given measurement property.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The processing configuration for the given measurement property. \n You can configure measurements to be kept at the edge or forwarded to the Amazon Web Services Cloud. \n By default, measurements are forwarded to the cloud.

" + } + }, "com.amazonaws.iotsitewise#Metric": { "type": "structure", "members": { @@ -6541,12 +6705,33 @@ "smithy.api#documentation": "

The window (time interval) over which IoT SiteWise computes the metric's aggregation expression.\n IoT SiteWise computes one data point per window.

", "smithy.api#required": {} } + }, + "processingConfig": { + "target": "com.amazonaws.iotsitewise#MetricProcessingConfig", + "traits": { + "smithy.api#documentation": "

The processing configuration for the given metric property. \n You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. \n By default, metrics are forwarded to the cloud.

" + } } }, "traits": { "smithy.api#documentation": "

Contains an asset metric property. With metrics, you can calculate aggregate functions,\n such as an average, maximum, or minimum, as specified through an expression. A metric maps\n several values to a single value (such as a sum).

\n

The maximum number of dependent/cascading variables used in any one metric calculation is\n 10. Therefore, a root metric can have\n up to 10 cascading metrics in its computational dependency\n tree. Additionally, a metric can only have a data type of DOUBLE and consume\n properties with data types of INTEGER or DOUBLE.

\n

For more information, see Metrics in the IoT SiteWise User Guide.

" } }, + "com.amazonaws.iotsitewise#MetricProcessingConfig": { + "type": "structure", + "members": { + "computeLocation": { + "target": "com.amazonaws.iotsitewise#ComputeLocation", + "traits": { + "smithy.api#documentation": "

The compute location for the given metric property.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The processing configuration for the given metric property. \n You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. \n By default, metrics are forwarded to the cloud.

" + } + }, "com.amazonaws.iotsitewise#MetricWindow": { "type": "structure", "members": { @@ -7130,6 +7315,9 @@ ], "traits": { "smithy.api#documentation": "

Sets the default encryption configuration for the Amazon Web Services account. For more information, see\n Key management in\n the IoT SiteWise User Guide.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, "smithy.api#http": { "method": "POST", "uri": "/configuration/account/encryption", @@ -7208,7 +7396,7 @@ "traits": { "smithy.api#documentation": "

Sets logging options for IoT SiteWise.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "PUT", @@ -7265,7 +7453,10 @@ } ], "traits": { - "smithy.api#documentation": "

Configures storage settings for IoT SiteWise.

", + "smithy.api#documentation": "

Configures storage settings for IoT SiteWise.

\n \n

Exporting data to Amazon S3 is currently in preview release and is subject to change. We\n recommend that you use this feature only with test data, and not in production\n environments.

\n
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, "smithy.api#http": { "method": "POST", "uri": "/configuration/account/storage", @@ -7556,6 +7747,9 @@ ], "traits": { "smithy.api#documentation": "

Adds tags to an IoT SiteWise resource. If a tag already exists for the resource, this operation\n updates the tag's value.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, "smithy.api#http": { "method": "POST", "uri": "/tags", @@ -7702,12 +7896,36 @@ "smithy.api#documentation": "

The list of variables used in the expression.

", "smithy.api#required": {} } + }, + "processingConfig": { + "target": "com.amazonaws.iotsitewise#TransformProcessingConfig", + "traits": { + "smithy.api#documentation": "

The processing configuration for the given transform property. \n You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. \n You can also configure transforms to be computed at the edge or in the cloud.

" + } } }, "traits": { "smithy.api#documentation": "

Contains an asset transform property. A transform is a one-to-one mapping of a property's\n data points from one form to another. For example, you can use a transform to convert a\n Celsius data stream to Fahrenheit by applying the transformation expression to each data point\n of the Celsius stream. A transform can only have a data type of DOUBLE and\n consume properties with data types of INTEGER or DOUBLE.

\n

For more information, see Transforms in the IoT SiteWise User Guide.

" } }, + "com.amazonaws.iotsitewise#TransformProcessingConfig": { + "type": "structure", + "members": { + "computeLocation": { + "target": "com.amazonaws.iotsitewise#ComputeLocation", + "traits": { + "smithy.api#documentation": "

The compute location for the given transform property.

", + "smithy.api#required": {} + } + }, + "forwardingConfig": { + "target": "com.amazonaws.iotsitewise#ForwardingConfig" + } + }, + "traits": { + "smithy.api#documentation": "

The processing configuration for the given transform property. \n You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. \n You can also configure transforms to be computed at the edge or in the cloud.

" + } + }, "com.amazonaws.iotsitewise#TraversalDirection": { "type": "string", "traits": { @@ -7798,6 +8016,9 @@ ], "traits": { "smithy.api#documentation": "

Removes a tag from an IoT SiteWise resource.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, "smithy.api#http": { "method": "DELETE", "uri": "/tags", @@ -7940,7 +8161,7 @@ "traits": { "smithy.api#documentation": "

Updates an asset's name. For more information, see Updating assets and models in the\n IoT SiteWise User Guide.

", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "PUT", @@ -7983,7 +8204,7 @@ "traits": { "smithy.api#documentation": "

Updates an asset model and all of the assets that were created from the model. Each asset\n created from the model inherits the updated asset model's property and hierarchy definitions.\n For more information, see Updating assets and models in the\n IoT SiteWise User Guide.

\n \n

This operation overwrites the existing model with the provided model. To avoid deleting\n your asset model's properties or hierarchies, you must include their IDs and definitions in\n the updated asset model payload. For more information, see DescribeAssetModel.

\n

If you remove a property from an asset model, IoT SiteWise deletes all previous data for that\n property. If you remove a hierarchy definition from an asset model, IoT SiteWise disassociates every\n asset associated with that hierarchy. You can't change the type or data type of an existing\n property.

\n
", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "PUT", @@ -8080,7 +8301,7 @@ "traits": { "smithy.api#documentation": "

Updates an asset property's alias and notification state.

\n \n

This operation overwrites the property's existing alias and notification state. To keep\n your existing property's alias or notification state, you must include the existing values\n in the UpdateAssetProperty request. For more information, see DescribeAssetProperty.

\n
", "smithy.api#endpoint": { - "hostPrefix": "model." + "hostPrefix": "api." }, "smithy.api#http": { "method": "PUT", @@ -8271,7 +8492,7 @@ "traits": { "smithy.api#documentation": "

Updates a gateway's name.

", "smithy.api#endpoint": { - "hostPrefix": "edge." + "hostPrefix": "api." }, "smithy.api#http": { "method": "PUT", @@ -8311,7 +8532,7 @@ "traits": { "smithy.api#documentation": "

Updates a gateway capability configuration or defines a new capability configuration.\n Each gateway capability defines data sources for a gateway. A capability configuration\n can contain multiple data source configurations. If you define OPC-UA sources for a gateway in\n the IoT SiteWise console, all of your OPC-UA sources are stored in one capability configuration. To\n list all capability configurations for a gateway, use DescribeGateway.

", "smithy.api#endpoint": { - "hostPrefix": "edge." + "hostPrefix": "api." }, "smithy.api#http": { "method": "POST", diff --git a/codegen/sdk-codegen/aws-models/iotwireless.2020-11-22.json b/codegen/sdk-codegen/aws-models/iotwireless.2020-11-22.json index be0b5c81096..281a86e7f91 100644 --- a/codegen/sdk-codegen/aws-models/iotwireless.2020-11-22.json +++ b/codegen/sdk-codegen/aws-models/iotwireless.2020-11-22.json @@ -91,6 +91,7 @@ "com.amazonaws.iotwireless#AmazonId": { "type": "string", "traits": { + "smithy.api#documentation": "

The Sidewalk Amazon ID.

", "smithy.api#length": { "min": 0, "max": 2048 @@ -2293,7 +2294,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns current default log-levels, or log levels by resource types, could be for wireless device log options or wireless gateway log options.

", + "smithy.api#documentation": "

Returns current default log levels or log levels by resource types. Based on resource types, log levels can be\n for wireless device log options or wireless gateway log options.

", "smithy.api#http": { "method": "GET", "uri": "/log-levels", @@ -2414,7 +2415,7 @@ } ], "traits": { - "smithy.api#documentation": "

Fetches the log-level override if any for a given resource-ID and resource-type, coulde be a wireless device or a wireless gateway.

", + "smithy.api#documentation": "

Fetches the log-level override, if any, for a given resource-ID and resource-type. It can be used for\n a wireless device or a wireless gateway.

", "smithy.api#http": { "method": "GET", "uri": "/log-levels/{ResourceIdentifier}", @@ -2435,7 +2436,7 @@ "ResourceType": { "target": "com.amazonaws.iotwireless#ResourceType", "traits": { - "smithy.api#documentation": "

The type of the resource, currently support WirelessDevice and WirelessGateway.

", + "smithy.api#documentation": "

The type of the resource, which can be WirelessDevice or WirelessGateway.

", "smithy.api#httpQuery": "resourceType", "smithy.api#required": {} } @@ -4531,7 +4532,7 @@ "com.amazonaws.iotwireless#MessageType": { "type": "string", "traits": { - "smithy.api#documentation": "

Sidewalk device message type.

", + "smithy.api#documentation": "

Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY.

", "smithy.api#enum": [ { "value": "CUSTOM_COMMAND_ID_NOTIFY", @@ -4777,7 +4778,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets the log-level override for a resource-ID and resource-type, could be a wireless gateway or a wireless device.

", + "smithy.api#documentation": "

Sets the log-level override for a resource-ID and resource-type. This option can be specified for a wireless gateway \n or a wireless device. A limit of 200 log level override can be set per account.

", "smithy.api#http": { "method": "PUT", "uri": "/log-levels/{ResourceIdentifier}", @@ -4798,7 +4799,7 @@ "ResourceType": { "target": "com.amazonaws.iotwireless#ResourceType", "traits": { - "smithy.api#documentation": "

The type of the resource, currently support WirelessDevice and WirelessGateway.

", + "smithy.api#documentation": "

The type of the resource, which can be WirelessDevice or WirelessGateway.

", "smithy.api#httpQuery": "resourceType", "smithy.api#required": {} } @@ -4859,7 +4860,7 @@ } ], "traits": { - "smithy.api#documentation": "

Remove log-level overrides if any for all resources (both wireless devices and wireless gateways).

", + "smithy.api#documentation": "

Removes the log-level overrides for all resources; both wireless devices and wireless gateways.

", "smithy.api#http": { "method": "DELETE", "uri": "/log-levels", @@ -4901,7 +4902,7 @@ } ], "traits": { - "smithy.api#documentation": "

Remove log-level override if any for a specific resource-ID and resource-type, could be a wireless device or a wireless gateway.

", + "smithy.api#documentation": "

Removes the log-level override, if any, for a specific resource-ID and resource-type. It can be used for\n a wireless device or a wireless gateway.

", "smithy.api#http": { "method": "DELETE", "uri": "/log-levels/{ResourceIdentifier}", @@ -4922,7 +4923,7 @@ "ResourceType": { "target": "com.amazonaws.iotwireless#ResourceType", "traits": { - "smithy.api#documentation": "

The type of the resource, currently support WirelessDevice and WirelessGateway.

", + "smithy.api#documentation": "

The type of the resource, which can be WirelessDevice or WirelessGateway.

", "smithy.api#httpQuery": "resourceType", "smithy.api#required": {} } @@ -4939,7 +4940,7 @@ "com.amazonaws.iotwireless#ResourceIdentifier": { "type": "string", "traits": { - "smithy.api#documentation": "

The identifier of the resource. For a Wireless Device, it is the wireless device id. For a wireless gateway, it is the wireless gateway id.

", + "smithy.api#documentation": "

The identifier of the resource. For a Wireless Device, it is the wireless device ID. For a wireless gateway, \n it is the wireless gateway ID.

", "smithy.api#length": { "min": 0, "max": 256 @@ -5099,7 +5100,7 @@ "PayloadData": { "target": "com.amazonaws.iotwireless#PayloadData", "traits": { - "smithy.api#documentation": "

The message payload to send.

", + "smithy.api#documentation": "

The binary to be sent to the end device, encoded in base64.

", "smithy.api#required": {} } }, @@ -5292,6 +5293,9 @@ "com.amazonaws.iotwireless#SidewalkDevice": { "type": "structure", "members": { + "AmazonId": { + "target": "com.amazonaws.iotwireless#AmazonId" + }, "SidewalkId": { "target": "com.amazonaws.iotwireless#SidewalkId", "traits": { @@ -5930,7 +5934,7 @@ } ], "traits": { - "smithy.api#documentation": "

Set default log level, or log levels by resource types, could be for wireless device log options or wireless gateways log options. This is to control the log messages that will be displayed in CloudWatch.

", + "smithy.api#documentation": "

Set default log level, or log levels by resource types. This can be for wireless device log options or\n wireless gateways log options and is used to control the log messages that'll be displayed in CloudWatch.

", "smithy.api#http": { "method": "POST", "uri": "/log-levels", @@ -6285,7 +6289,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log option for a wireless device event. Can be used to set log level for a specific wireless device event. For a LoRaWAN device, the possible events for a log messsage are: Join, Rejoin, Downlink_Data, Uplink_Data. For a Sidewalk device, the possible events for a log message are: Registration, Downlink_Data, Uplink_Data.

" + "smithy.api#documentation": "

The log options for a wireless device event and can be used to set log levels for a specific wireless device event.

\n

For a LoRaWAN device, possible events for a log messsage are: Join, Rejoin, \n Downlink_Data, and Uplink_Data. For a Sidewalk device, possible events for a log message are \n Registration, Downlink_Data, and Uplink_Data.

" } }, "com.amazonaws.iotwireless#WirelessDeviceEventLogOptionList": { @@ -6321,6 +6325,10 @@ { "value": "ThingName", "name": "ThingName" + }, + { + "value": "SidewalkManufacturingSn", + "name": "SidewalkManufacturingSn" } ] } @@ -6346,7 +6354,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log option for wireless devices. Can be used to set log level for a specific type of wireless device.

" + "smithy.api#documentation": "

The log options for wireless devices and can be used to set log levels for a specific type of wireless device.

" } }, "com.amazonaws.iotwireless#WirelessDeviceLogOptionList": { @@ -6480,7 +6488,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log option for a wireless gateway event. Can be used to set log level for a specific wireless gateway event. For a LoRaWAN gateway, the possible events for a log message are: CUPS_Request, Certificate.

" + "smithy.api#documentation": "

The log options for a wireless gateway event and can be used to set log levels for a specific wireless gateway event.

\n

For a LoRaWAN gateway, possible events for a log message are CUPS_Request and Certificate.

" } }, "com.amazonaws.iotwireless#WirelessGatewayEventLogOptionList": { @@ -6540,7 +6548,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log option for wireless gateways. Can be used to set log level for a specific type of wireless gateway.

" + "smithy.api#documentation": "

The log options for wireless gateways and can be used to set log levels for a specific type of wireless gateway.

" } }, "com.amazonaws.iotwireless#WirelessGatewayLogOptionList": { diff --git a/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json b/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json index 72c0f43c7e5..b46b9f05fa3 100644 --- a/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json +++ b/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json @@ -355,7 +355,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides filtering the query results based on document\n attributes.

\n

When you use the AndAllFilters or\n OrAllFilters, filters you can use 2 layers under the\n first attribute filter. For example, you can use:

\n

\n \n

\n
    \n
  1. \n

    \n \n

    \n
  2. \n
  3. \n

    \n \n

    \n
  4. \n
\n

If you use more than 2 layers, you receive a\n ValidationException exception with the message\n \"AttributeFilter cannot have a depth of more than\n 2.\"

" + "smithy.api#documentation": "

Provides filtering the query results based on document\n attributes.

\n

When you use the AndAllFilters or\n OrAllFilters, filters you can use 2 layers under the\n first attribute filter. For example, you can use:

\n

\n \n

\n
    \n
  1. \n

    \n \n

    \n
  2. \n
  3. \n

    \n \n

    \n
  4. \n
\n

If you use more than 2 layers, you receive a\n ValidationException exception with the message\n \"AttributeFilter cannot have a depth of more than\n 2.\"

\n

If you use more than 10 attribute filters, you receive a \n ValidationException exception with the message \n \"AttributeFilter cannot have a length of more than 10\".

" } }, "com.amazonaws.kendra#AttributeFilterList": { @@ -731,14 +731,14 @@ "StorageCapacityUnits": { "target": "com.amazonaws.kendra#StorageCapacityUnit", "traits": { - "smithy.api#documentation": "

The amount of extra storage capacity for an index. A single capacity\n unit for an index provides 150 GB of storage space or \n 500,000 documents, whichever is reached first.

", + "smithy.api#documentation": "

The amount of extra storage capacity for an index. \n A single capacity unit provides 30 GB of storage space or 100,000 documents, \n whichever is reached first.

", "smithy.api#required": {} } }, "QueryCapacityUnits": { "target": "com.amazonaws.kendra#QueryCapacityUnit", "traits": { - "smithy.api#documentation": "

The amount of extra query capacity for an index and \n GetQuerySuggestions \n capacity.

\n

A single extra capacity unit for an index provides 0.5 queries per second or \n approximately 40,000 queries per day.

\n

\n GetQuerySuggestions capacity is 5 times the provisioned query \n capacity for an index. For example, the base capacity for an index is 0.5 \n queries per second, so GetQuerySuggestions capacity is 2.5 calls per second. \n If adding another 0.5 queries per second to total 1 queries per second for an \n index, the GetQuerySuggestions capacity is 5 calls per second.

", + "smithy.api#documentation": "

The amount of extra query capacity for an index and \n GetQuerySuggestions \n capacity.

\n

A single extra capacity unit for an index provides 0.1 queries per second or approximately \n 8,000 queries per day.

\n

\n GetQuerySuggestions capacity is five times the \n provisioned query capacity for an index, or the base capacity of 2.5 calls per second, \n whichever is higher. For example, the base capacity for an index is 0.1 queries per \n second, and GetQuerySuggestions capacity has a base of 2.5 calls per second. \n If you add another 0.1 queries per second to total 0.2 queries per second for an index, the \n GetQuerySuggestions capacity is 2.5 calls per second \n (higher than five times 0.2 queries per second).

", "smithy.api#required": {} } } @@ -1462,7 +1462,7 @@ "SecretArn": { "target": "com.amazonaws.kendra#SecretArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of credentials stored in AWS\n Secrets Manager. The credentials should be a user/password pair. For\n more information, see Using a\n Database Data Source. For more information about AWS\n Secrets Manager, see What Is AWS\n Secrets Manager in the Secrets Manager\n user guide.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of credentials stored in Secrets Manager.\n The credentials should be a user/password pair. For\n more information, see Using a\n Database Data Source. For more information about \n Secrets Manager, see What Is \n Secrets Manager in the Secrets Manager\n user guide.

", "smithy.api#required": {} } } @@ -1773,7 +1773,7 @@ "Edition": { "target": "com.amazonaws.kendra#IndexEdition", "traits": { - "smithy.api#documentation": "

The Amazon Kendra edition to use for the index. Choose\n DEVELOPER_EDITION for indexes intended for development,\n testing, or proof of concept. Use ENTERPRISE_EDITION for your\n production databases. Once you set the edition for an index, it can't be\n changed.

\n

The Edition parameter is optional. If you don't supply a\n value, the default is ENTERPRISE_EDITION.

" + "smithy.api#documentation": "

The Amazon Kendra edition to use for the index. Choose\n DEVELOPER_EDITION for indexes intended for development,\n testing, or proof of concept. Use ENTERPRISE_EDITION for your\n production databases. Once you set the edition for an index, it can't be\n changed.

\n

The Edition parameter is optional. If you don't supply a\n value, the default is ENTERPRISE_EDITION.

\n

For more information on quota limits for enterprise and developer editions, \n see Quotas.

" } }, "RoleArn": { @@ -2082,6 +2082,12 @@ }, "WebCrawlerConfiguration": { "target": "com.amazonaws.kendra#WebCrawlerConfiguration" + }, + "WorkDocsConfiguration": { + "target": "com.amazonaws.kendra#WorkDocsConfiguration", + "traits": { + "smithy.api#documentation": "

Provides the configuration information to connect to WorkDocs \n as your data source.

" + } } }, "traits": { @@ -2509,6 +2515,10 @@ { "value": "WEBCRAWLER", "name": "WEBCRAWLER" + }, + { + "value": "WORKDOCS", + "name": "WORKDOCS" } ] } @@ -6026,6 +6036,16 @@ ] } }, + "com.amazonaws.kendra#OrganizationId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 12, + "max": 12 + }, + "smithy.api#pattern": "^d-[0-9a-fA-F]{10}$" + } + }, "com.amazonaws.kendra#Port": { "type": "integer", "traits": { @@ -7682,7 +7702,7 @@ "SecretArn": { "target": "com.amazonaws.kendra#SecretArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of credentials stored in AWS\n Secrets Manager. The credentials should be a user/password pair. \n If you use SharePoint Sever, you also need to provide the sever \n domain name as part of the credentials. For\n more information, see Using a\n Microsoft SharePoint Data Source. For more information\n about AWS Secrets Manager, see What Is AWS\n Secrets Manager in the Secrets Manager\n user guide.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of credentials stored in \n Secrets Manager. The credentials should be a user/password pair. \n If you use SharePoint Server, you also need to provide the sever \n domain name as part of the credentials. For\n more information, see Using a\n Microsoft SharePoint Data Source. For more information\n about Secrets Manager, see What Is \n Secrets Manager in the Secrets Manager\n user guide.

", "smithy.api#required": {} } }, @@ -8054,7 +8074,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables you to provide feedback to Amazon Kendra to improve the\n performance of the service.

" + "smithy.api#documentation": "

Enables you to provide feedback to Amazon Kendra to improve the\n performance of your index.

" } }, "com.amazonaws.kendra#SubmitFeedbackRequest": { @@ -9220,6 +9240,51 @@ } ] } + }, + "com.amazonaws.kendra#WorkDocsConfiguration": { + "type": "structure", + "members": { + "OrganizationId": { + "target": "com.amazonaws.kendra#OrganizationId", + "traits": { + "smithy.api#documentation": "

The identifier of the directory corresponding to your \n Amazon WorkDocs site repository.

\n

You can find the organization ID in the \n AWS Directory Service by going to \n Active Directory, then \n Directories. Your Amazon WorkDocs site directory has an \n ID, which is the organization ID. You can also set up a new Amazon WorkDocs \n directory in the AWS Directory Service console and enable a Amazon WorkDocs site \n for the directory in the Amazon WorkDocs console.

", + "smithy.api#required": {} + } + }, + "CrawlComments": { + "target": "com.amazonaws.kendra#Boolean", + "traits": { + "smithy.api#documentation": "

\n TRUE to include comments on documents \n in your index. Including comments in your index means each comment \n is a document that can be searched on.

\n

The default is set to FALSE.

" + } + }, + "UseChangeLog": { + "target": "com.amazonaws.kendra#Boolean", + "traits": { + "smithy.api#documentation": "

\n TRUE to use the change logs to update documents in your \n index instead of scanning all documents.

\n

If you are syncing your Amazon WorkDocs data source with your index for the \n first time, all documents are scanned. After your first sync, you can \n use the change logs to update your documents in your index for \n future syncs.

\n

The default is set to FALSE.

" + } + }, + "InclusionPatterns": { + "target": "com.amazonaws.kendra#DataSourceInclusionsExclusionsStrings", + "traits": { + "smithy.api#documentation": "

A list of regular expression patterns to include certain files \n in your Amazon WorkDocs site repository. Files that match the patterns \n are included in the index. Files that don't match the patterns are \n excluded from the index. If a file matches both an inclusion pattern \n and an exclusion pattern, the exclusion pattern takes precedence and \n the file isn’t included in the index.

" + } + }, + "ExclusionPatterns": { + "target": "com.amazonaws.kendra#DataSourceInclusionsExclusionsStrings", + "traits": { + "smithy.api#documentation": "

A list of regular expression patterns to exclude certain files \n in your Amazon WorkDocs site repository. Files that match the patterns \n are excluded from the index. Files that don’t match the patterns \n are included in the index. If a file matches both an inclusion \n pattern and an exclusion pattern, the exclusion pattern takes \n precedence and the file isn’t included in the index.

" + } + }, + "FieldMappings": { + "target": "com.amazonaws.kendra#DataSourceToIndexFieldMappingList", + "traits": { + "smithy.api#documentation": "

A list of DataSourceToIndexFieldMapping objects that map \n Amazon WorkDocs field names to custom index field names in Amazon Kendra. You must first \n create the custom index fields using the UpdateIndex operation before \n you map to Amazon WorkDocs fields. For more information, see \n Mapping \n Data Source Fields. The Amazon WorkDocs data source field names \n need to exist in your Amazon WorkDocs custom metadata.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Provides the configuration information to connect to Amazon WorkDocs \n as your data source.

\n

Amazon WorkDocs connector is available in Oregon, North Virginia, Sydney, Singapore and Ireland \n regions.

" + } } } } diff --git a/codegen/sdk-codegen/aws-models/lambda.2015-03-31.json b/codegen/sdk-codegen/aws-models/lambda.2015-03-31.json index 9b30e3ba6b4..8513f099209 100644 --- a/codegen/sdk-codegen/aws-models/lambda.2015-03-31.json +++ b/codegen/sdk-codegen/aws-models/lambda.2015-03-31.json @@ -1100,7 +1100,7 @@ "SourceAccessConfigurations": { "target": "com.amazonaws.lambda#SourceAccessConfigurations", "traits": { - "smithy.api#documentation": "

An array of the authentication protocol, or the VPC components to secure your event source.

" + "smithy.api#documentation": "

An array of authentication protocols or VPC components required to secure your event source.

" } }, "SelfManagedEventSource": { @@ -1583,6 +1583,9 @@ { "target": "com.amazonaws.lambda#InvalidParameterValueException" }, + { + "target": "com.amazonaws.lambda#ResourceConflictException" + }, { "target": "com.amazonaws.lambda#ResourceNotFoundException" }, @@ -2052,7 +2055,7 @@ "StartingPosition": { "target": "com.amazonaws.lambda#EventSourcePosition", "traits": { - "smithy.api#documentation": "

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams\n sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

" + "smithy.api#documentation": "

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis\n streams.

" } }, "StartingPositionTimestamp": { @@ -2070,13 +2073,13 @@ "MaximumBatchingWindowInSeconds": { "target": "com.amazonaws.lambda#MaximumBatchingWindowInSeconds", "traits": { - "smithy.api#documentation": "

(Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

" + "smithy.api#documentation": "

(Streams and Amazon SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

" } }, "ParallelizationFactor": { "target": "com.amazonaws.lambda#ParallelizationFactor", "traits": { - "smithy.api#documentation": "

(Streams only) The number of batches to process from each shard concurrently. The default value is 1.

" + "smithy.api#documentation": "

(Streams only) The number of batches to process concurrently from each shard. The default value is 1.

" } }, "EventSourceArn": { @@ -2094,25 +2097,25 @@ "LastModified": { "target": "com.amazonaws.lambda#Date", "traits": { - "smithy.api#documentation": "

The date that the event source mapping was last updated, or its state changed.

" + "smithy.api#documentation": "

The date that the event source mapping was last updated or that its state changed.

" } }, "LastProcessingResult": { "target": "com.amazonaws.lambda#String", "traits": { - "smithy.api#documentation": "

The result of the last Lambda invocation of your Lambda function.

" + "smithy.api#documentation": "

The result of the last Lambda invocation of your function.

" } }, "State": { "target": "com.amazonaws.lambda#String", "traits": { - "smithy.api#documentation": "

The state of the event source mapping. It can be one of the following: Creating,\n Enabling, Enabled, Disabling, Disabled,\n Updating, or Deleting.

" + "smithy.api#documentation": "

The state of the event source mapping. It can be one of the following: Creating,\n Enabling, Enabled, Disabling, Disabled,\n Updating, or Deleting.

" } }, "StateTransitionReason": { "target": "com.amazonaws.lambda#String", "traits": { - "smithy.api#documentation": "

Indicates whether the last change to the event source mapping was made by a user, or by the Lambda\n service.

" + "smithy.api#documentation": "

Indicates whether a user or Lambda made the last change to the event source mapping.

" } }, "DestinationConfig": { @@ -2130,19 +2133,19 @@ "Queues": { "target": "com.amazonaws.lambda#Queues", "traits": { - "smithy.api#documentation": "

\n (MQ) The name of the Amazon MQ broker destination queue to consume.\n

" + "smithy.api#documentation": "

(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.

" } }, "SourceAccessConfigurations": { "target": "com.amazonaws.lambda#SourceAccessConfigurations", "traits": { - "smithy.api#documentation": "

An array of the authentication protocol, or the VPC components to secure your event source.

" + "smithy.api#documentation": "

An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.

" } }, "SelfManagedEventSource": { "target": "com.amazonaws.lambda#SelfManagedEventSource", "traits": { - "smithy.api#documentation": "

The Self-Managed Apache Kafka cluster for your event source.

" + "smithy.api#documentation": "

The self-managed Apache Kafka cluster for your event source.

" } }, "MaximumRecordAgeInSeconds": { @@ -2166,7 +2169,7 @@ "TumblingWindowInSeconds": { "target": "com.amazonaws.lambda#TumblingWindowInSeconds", "traits": { - "smithy.api#documentation": "

(Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

" + "smithy.api#documentation": "

(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.

" } }, "FunctionResponseTypes": { @@ -2177,7 +2180,7 @@ } }, "traits": { - "smithy.api#documentation": "

A mapping between an Amazon Web Services resource and an Lambda function. See CreateEventSourceMapping for details.

" + "smithy.api#documentation": "

A mapping between an Amazon Web Services resource and a Lambda function. For details, see CreateEventSourceMapping.

" } }, "com.amazonaws.lambda#EventSourceMappingsList": { @@ -4693,7 +4696,7 @@ "MaxItems": { "target": "com.amazonaws.lambda#MaxListItems", "traits": { - "smithy.api#documentation": "

The maximum number of event source mappings to return.

", + "smithy.api#documentation": "

The maximum number of event source mappings to return. Note that ListEventSourceMappings returns\n a maximum of 100 items in each response, even if you set the number higher.

", "smithy.api#httpQuery": "MaxItems" } } @@ -6058,6 +6061,9 @@ { "target": "com.amazonaws.lambda#InvalidParameterValueException" }, + { + "target": "com.amazonaws.lambda#ResourceConflictException" + }, { "target": "com.amazonaws.lambda#ResourceNotFoundException" }, @@ -6648,12 +6654,12 @@ "Endpoints": { "target": "com.amazonaws.lambda#Endpoints", "traits": { - "smithy.api#documentation": "

The list of bootstrap servers for your Kafka brokers in the following format: \"KAFKA_BOOTSTRAP_SERVERS\": [\"abc.xyz.com:xxxx\",\"abc2.xyz.com:xxxx\"].

" + "smithy.api#documentation": "

The list of bootstrap servers for your Kafka brokers in the following format: \"KAFKA_BOOTSTRAP_SERVERS\":\n [\"abc.xyz.com:xxxx\",\"abc2.xyz.com:xxxx\"].

" } } }, "traits": { - "smithy.api#documentation": "

The Self-Managed Apache Kafka cluster for your event source.

" + "smithy.api#documentation": "

The self-managed Apache Kafka cluster for your event source.

" } }, "com.amazonaws.lambda#SensitiveString": { @@ -6696,7 +6702,7 @@ "Type": { "target": "com.amazonaws.lambda#SourceAccessType", "traits": { - "smithy.api#documentation": "

The type of authentication protocol or the VPC components for your event source. For example: \"Type\":\"SASL_SCRAM_512_AUTH\".

\n " + "smithy.api#documentation": "

The type of authentication protocol, VPC components, or virtual host for your event source. For example: \"Type\":\"SASL_SCRAM_512_AUTH\".

\n " } }, "URI": { @@ -6707,7 +6713,7 @@ } }, "traits": { - "smithy.api#documentation": "

You can specify the authentication protocol, or the VPC components to secure access to your event source.

" + "smithy.api#documentation": "

To secure and define access to your event source, you can specify the authentication protocol, VPC components, or virtual host.

" } }, "com.amazonaws.lambda#SourceAccessConfigurations": { @@ -7461,7 +7467,7 @@ "SourceAccessConfigurations": { "target": "com.amazonaws.lambda#SourceAccessConfigurations", "traits": { - "smithy.api#documentation": "

An array of the authentication protocol, or the VPC components to secure your event source.

" + "smithy.api#documentation": "

An array of authentication protocols or VPC components required to secure your event source.

" } }, "TumblingWindowInSeconds": { @@ -7749,6 +7755,9 @@ { "target": "com.amazonaws.lambda#InvalidParameterValueException" }, + { + "target": "com.amazonaws.lambda#ResourceConflictException" + }, { "target": "com.amazonaws.lambda#ResourceNotFoundException" }, diff --git a/codegen/sdk-codegen/aws-models/lexmodelbuildingservice.2017-04-19.json b/codegen/sdk-codegen/aws-models/lexmodelbuildingservice.2017-04-19.json index d45ae03f4b4..c865be54da6 100644 --- a/codegen/sdk-codegen/aws-models/lexmodelbuildingservice.2017-04-19.json +++ b/codegen/sdk-codegen/aws-models/lexmodelbuildingservice.2017-04-19.json @@ -4197,6 +4197,10 @@ "value": "en-GB", "name": "EN_GB" }, + { + "value": "en-IN", + "name": "EN_IN" + }, { "value": "en-US", "name": "EN_US" diff --git a/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json b/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json index 6ecfc69395c..844226cb12b 100644 --- a/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json +++ b/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json @@ -3790,6 +3790,54 @@ "method": "GET", "uri": "/bots/{botId}", "code": 200 + }, + "smithy.waiters#waitable": { + "BotAvailable": { + "documentation": "Wait until a bot is available", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "botStatus", + "expected": "Available", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botStatus", + "expected": "Deleting", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botStatus", + "expected": "Failed", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botStatus", + "expected": "Inactive", + "comparator": "stringEquals" + } + } + } + ], + "minDelay": 10 + } } } }, @@ -3824,6 +3872,44 @@ "method": "GET", "uri": "/bots/{botId}/botaliases/{botAliasId}", "code": 200 + }, + "smithy.waiters#waitable": { + "BotAliasAvailable": { + "documentation": "Wait until a bot alias is available", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "botAliasStatus", + "expected": "Available", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botAliasStatus", + "expected": "Failed", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botAliasStatus", + "expected": "Deleting", + "comparator": "stringEquals" + } + } + } + ], + "minDelay": 10 + } } } }, @@ -3953,6 +4039,166 @@ "method": "GET", "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}", "code": 200 + }, + "smithy.waiters#waitable": { + "BotLocaleBuilt": { + "documentation": "Wait until a bot locale is built", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "Built", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "Deleting", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "Failed", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "NotBuilt", + "comparator": "stringEquals" + } + } + } + ], + "minDelay": 10 + }, + "BotLocaleCreated": { + "documentation": "Wait unit a bot locale is created", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "Built", + "comparator": "stringEquals" + } + } + }, + { + "state": "success", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "ReadyExpressTesting", + "comparator": "stringEquals" + } + } + }, + { + "state": "success", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "NotBuilt", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "Deleting", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "Failed", + "comparator": "stringEquals" + } + } + } + ], + "minDelay": 10 + }, + "BotLocaleExpressTestingAvailable": { + "documentation": "Wait until a bot locale build is ready for express testing", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "Built", + "comparator": "stringEquals" + } + } + }, + { + "state": "success", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "ReadyExpressTesting", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "Deleting", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "Failed", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botLocaleStatus", + "expected": "NotBuilt", + "comparator": "stringEquals" + } + } + } + ], + "minDelay": 10 + } } } }, @@ -4183,6 +4429,50 @@ "method": "GET", "uri": "/bots/{botId}/botversions/{botVersion}", "code": 200 + }, + "smithy.waiters#waitable": { + "BotVersionAvailable": { + "documentation": "Wait until a bot version is available", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "botStatus", + "expected": "Available", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botStatus", + "expected": "Deleting", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "botStatus", + "expected": "Failed", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "errorType": "ResourceNotFoundException" + } + } + ], + "minDelay": 10 + } } } }, @@ -4300,6 +4590,44 @@ "method": "GET", "uri": "/exports/{exportId}", "code": 200 + }, + "smithy.waiters#waitable": { + "BotExportCompleted": { + "documentation": "Wait until a bot has been exported", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "exportStatus", + "expected": "Completed", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "exportStatus", + "expected": "Deleting", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "exportStatus", + "expected": "Failed", + "comparator": "stringEquals" + } + } + } + ], + "minDelay": 10 + } } } }, @@ -4397,6 +4725,44 @@ "method": "GET", "uri": "/imports/{importId}", "code": 200 + }, + "smithy.waiters#waitable": { + "BotImportCompleted": { + "documentation": "Wait until a bot has been imported", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "importStatus", + "expected": "Completed", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "importStatus", + "expected": "Deleting", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "importStatus", + "expected": "Failed", + "comparator": "stringEquals" + } + } + } + ], + "minDelay": 10 + } } } }, diff --git a/codegen/sdk-codegen/aws-models/location.2020-11-19.json b/codegen/sdk-codegen/aws-models/location.2020-11-19.json index 3dd786826e1..441e7c5674b 100644 --- a/codegen/sdk-codegen/aws-models/location.2020-11-19.json +++ b/codegen/sdk-codegen/aws-models/location.2020-11-19.json @@ -13,7 +13,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request was denied due to insufficient access or permission. Check with an\n administrator to verify your permissions.

", + "smithy.api#documentation": "

The request was denied because of insufficient access or permissions. Check with an\n administrator to verify your permissions.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } @@ -55,6 +55,9 @@ { "target": "com.amazonaws.location#ResourceNotFoundException" }, + { + "target": "com.amazonaws.location#ServiceQuotaExceededException" + }, { "target": "com.amazonaws.location#ThrottlingException" }, @@ -63,7 +66,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an association between a geofence collection and a tracker resource. This\n allows the tracker resource to communicate location data to the linked geofence\n collection.

\n \n

Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.

\n
", + "smithy.api#documentation": "

Creates an association between a geofence collection and a tracker resource. This\n allows the tracker resource to communicate location data to the linked geofence\n collection.

\n

You can associate up to five geofence collections to each tracker resource.

\n \n

Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.

\n
", "smithy.api#endpoint": { "hostPrefix": "tracking." }, @@ -326,7 +329,7 @@ ], "traits": { "smithy.api#auth": [], - "smithy.api#documentation": "

Evaluates device positions against the geofence geometries from a given geofence\n collection. The evaluation determines if the device has entered or exited a geofenced\n area, which publishes ENTER or EXIT geofence events to Amazon EventBridge.

\n \n

The last geofence that a device was observed within, if any, is tracked for 30\n days after the most recent device position update

\n
", + "smithy.api#documentation": "

Evaluates device positions against the geofence geometries from a given geofence\n collection.

\n

This operation always returns an empty response because geofences are asynchronously\n evaluated. The evaluation determines if the device has entered or exited a geofenced\n area, and then publishes one of the following events to Amazon EventBridge:

\n \n \n

The last geofence that a device was observed within is tracked for 30 days after\n the most recent device position update.

\n
", "smithy.api#endpoint": { "hostPrefix": "geofencing." }, @@ -434,7 +437,7 @@ } ], "traits": { - "smithy.api#documentation": "

A batch request to retrieve all device positions.

", + "smithy.api#documentation": "

Lists the latest device positions for requested devices.

", "smithy.api#endpoint": { "hostPrefix": "tracking." }, @@ -892,7 +895,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Calculates a route given the following required parameters:\n DeparturePostiton and DestinationPosition. Requires that\n you first create\n aroute calculator resource\n

\n

By default, a request that doesn't specify a departure time uses the best time of day\n to travel with the best traffic conditions when calculating the route.

\n

Additional options include:

\n \n

\n

", + "smithy.api#documentation": "

\n Calculates a route given the following required parameters:\n DeparturePostiton and DestinationPosition. Requires that\n you first create a\n route calculator resource\n

\n

By default, a request that doesn't specify a departure time uses the best time of day\n to travel with the best traffic conditions when calculating the route.

\n

Additional options include:

\n \n

\n

", "smithy.api#endpoint": { "hostPrefix": "routes." }, @@ -1008,14 +1011,14 @@ "Legs": { "target": "com.amazonaws.location#LegList", "traits": { - "smithy.api#documentation": "

Contains details about each path between a pair of positions included along a route\n such as: StartPosition, EndPosition, Distance,\n DurationSeconds, Geometry, and Steps. The\n number of legs returned corresponds to one less than the total number of positions in\n the request.

\n

For example, a route with a departure position and destination position returns one\n leg with the positions snapped to a nearby road:

\n \n

A route with a waypoint between the departure and destination position returns two\n legs with the positions snapped to a nearby road.:

\n ", + "smithy.api#documentation": "

Contains details about each path between a pair of positions included along a route\n such as: StartPosition, EndPosition, Distance,\n DurationSeconds, Geometry, and Steps. The\n number of legs returned corresponds to one fewer than the total number of positions in\n the request.

\n

For example, a route with a departure position and destination position returns one\n leg with the positions snapped to a nearby road:

\n \n

A route with a waypoint between the departure and destination position returns two\n legs with the positions snapped to a nearby road:

\n ", "smithy.api#required": {} } }, "Summary": { "target": "com.amazonaws.location#CalculateRouteSummary", "traits": { - "smithy.api#documentation": "

Contains information about the whole route, such as: RouteBBox,\n DataSource, Distance, DistanceUnit, and\n DurationSeconds\n

", + "smithy.api#documentation": "

Contains information about the whole route, such as: RouteBBox,\n DataSource, Distance, DistanceUnit, and\n DurationSeconds.

", "smithy.api#required": {} } } @@ -1030,7 +1033,7 @@ "RouteBBox": { "target": "com.amazonaws.location#BoundingBox", "traits": { - "smithy.api#documentation": "

Specifies a geographical box surrounding a route. Used to zoom into a route when\n displaying it in a map. For example, [min x, min y, max x, max y]\n

\n

The first 2 bbox parameters describe the lower southwest corner:

\n \n

The next 2 bbox parameters describe the upper northeast corner:

\n ", + "smithy.api#documentation": "

Specifies a geographical box surrounding a route. Used to zoom into a route when\n displaying it in a map. For example, [min x, min y, max x, max y].

\n

The first 2 bbox parameters describe the lower southwest corner:

\n \n

The next 2 bbox parameters describe the upper northeast corner:

\n ", "smithy.api#required": {} } }, @@ -1117,7 +1120,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request was unsuccessful due to a conflict.

", + "smithy.api#documentation": "

The request was unsuccessful because of a conflict.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } @@ -1336,7 +1339,7 @@ "MapArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the map resource. Used when you need to specify a\n resource across all AWS.

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across\n all AWS.

\n ", "smithy.api#required": {} } }, @@ -1400,7 +1403,7 @@ "DataSource": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

Specifies the data provider of geospatial data.

\n \n

This field is case-sensitive. Enter the valid values as shown. For example, entering\n HERE will return an error.

\n
\n

Valid values include:

\n \n

For additional details on data providers, see the Amazon Location Service data providers page.

", + "smithy.api#documentation": "

Specifies the data provider of geospatial data.

\n \n

This field is case-sensitive. Enter the valid values as shown. For example, entering\n HERE returns an error.

\n
\n

Valid values include:

\n \n

For additional information , see Data providers\n on the Amazon Location Service Developer Guide.

", "smithy.api#required": {} } }, @@ -1420,7 +1423,7 @@ "DataSourceConfiguration": { "target": "com.amazonaws.location#DataSourceConfiguration", "traits": { - "smithy.api#documentation": "

Specifies the data storage option for requesting Places.

" + "smithy.api#documentation": "

Specifies the data storage option requesting Places.

" } }, "Tags": { @@ -1444,7 +1447,7 @@ "IndexArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource\n across all AWS.

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource\n across AWS.

\n ", "smithy.api#required": {} } }, @@ -1508,7 +1511,7 @@ "DataSource": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

Specifies the data provider of traffic and road network data.

\n \n

This field is case-sensitive. Enter the valid values as shown. For example,\n entering HERE returns an error.

\n
\n

Valid Values: Esri | Here\n

\n

For more information about data providers, see Amazon Location Service data providers.

", + "smithy.api#documentation": "

Specifies the data provider of traffic and road network data.

\n \n

This field is case-sensitive. Enter the valid values as shown. For example,\n entering HERE returns an error.

\n
\n

Valid values include:

\n \n

For additional information , see Data\n providers on the Amazon Location Service Developer Guide.

", "smithy.api#required": {} } }, @@ -1672,12 +1675,12 @@ "IntendedUse": { "target": "com.amazonaws.location#IntendedUse", "traits": { - "smithy.api#documentation": "

Specifies how the results of an operation will be stored by the caller.

\n

Valid values include:

\n \n

Default value: SingleUse\n

" + "smithy.api#documentation": "

Specifies how the results of an operation will be stored by the caller.

\n

Valid values include:

\n \n

Default value: SingleUse\n

" } } }, "traits": { - "smithy.api#documentation": "

Specifies the data storage option chosen for requesting Places.

" + "smithy.api#documentation": "

Specifies the data storage option chosen for requesting Places.

\n \n

When using Amazon Location Places:

\n \n

For more information, see the AWS Service Terms for\n Amazon Location Service.

\n
" } }, "com.amazonaws.location#DeleteGeofenceCollection": { @@ -2137,7 +2140,7 @@ "MapArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the map resource. Used when you need to specify a\n resource across all AWS.

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across\n all AWS.

\n ", "smithy.api#required": {} } }, @@ -2256,7 +2259,7 @@ "IndexArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource\n across all AWS.

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource\n across AWS.

\n ", "smithy.api#required": {} } }, @@ -2744,6 +2747,9 @@ "read": { "target": "com.amazonaws.location#DescribeGeofenceCollection" }, + "update": { + "target": "com.amazonaws.location#UpdateGeofenceCollection" + }, "delete": { "target": "com.amazonaws.location#DeleteGeofenceCollection" }, @@ -3136,7 +3142,7 @@ "FontStack": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

A comma-separated list of fonts to load glyphs from in order of preference.. For\n example, Noto Sans, Arial Unicode.

", + "smithy.api#documentation": "

A comma-separated list of fonts to load glyphs from in order of preference. For\n example, Noto Sans Regular, Arial Unicode.

\n

Valid fonts for Esri styles:

\n \n

Valid fonts for HERE Technologies styles:

\n ", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3228,7 +3234,7 @@ "FileName": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

The name of the sprite file. Use the following file names for the sprite sheet:

\n \n

For the JSON document contain image offsets. Use the following file names:

\n ", + "smithy.api#documentation": "

The name of the sprite file. Use the following file names for the sprite sheet:

\n \n

For the JSON document contain image offsets. Use the following file names:

\n ", "smithy.api#httpLabel": {}, "smithy.api#pattern": "^sprites(@2x)?\\.(png|json)$", "smithy.api#required": {} @@ -3535,7 +3541,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the calculated route's details for each path between a pair of positions. The\n number of legs returned corresponds to one less than the total number of positions in\n the request.

\n

For example, a route with a departure position and destination position returns one\n leg with the positions snapped to a nearby road:

\n \n

A route with a waypoint between the departure and destination position returns two\n legs with the positions snapped to a nearby road.:

\n " + "smithy.api#documentation": "

Contains the calculated route's details for each path between a pair of positions. The\n number of legs returned corresponds to one fewer than the total number of positions in\n the request.

\n

For example, a route with a departure position and destination position returns one\n leg with the positions snapped to a nearby road:

\n \n

A route with a waypoint between the departure and destination position returns two\n legs with the positions snapped to a nearby road:

\n " } }, "com.amazonaws.location#LegGeometry": { @@ -3620,7 +3626,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the latest device positions for requested devices.

", + "smithy.api#documentation": "

A batch request to retrieve all device positions.

", "smithy.api#endpoint": { "hostPrefix": "tracking." }, @@ -4418,7 +4424,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the tags for the specified Amazon Location Service resource.

", + "smithy.api#documentation": "

Returns a list of tags that are applied to the specified Amazon Location resource.

", "smithy.api#endpoint": { "hostPrefix": "metadata." }, @@ -4436,7 +4442,7 @@ "ResourceArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.

\n\t ", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4449,7 +4455,7 @@ "Tags": { "target": "com.amazonaws.location#TagMap", "traits": { - "smithy.api#documentation": "

The mapping from tag key to tag value for each tag associated with the specified resource.

" + "smithy.api#documentation": "

Tags that have been applied to the specified resource. Tags are mapped from the tag key to the tag value: \"TagKey\" : \"TagValue\".

\n\t " } } } @@ -4725,7 +4731,7 @@ "Style": { "target": "com.amazonaws.location#MapStyle", "traits": { - "smithy.api#documentation": "

Specifies the map style selected from an available data provider.

\n

Valid styles: RasterEsriImagery, VectorEsriStreets,\n VectorEsriTopographic, VectorEsriNavigation,\n VectorEsriDarkGrayCanvas, VectorEsriLightGrayCanvas,\n VectorHereBerlin.

\n \n

When using HERE as your data provider, and selecting the Style\n VectorHereBerlin, you may not use HERE Maps for Asset Management.\n See the AWS Service Terms for Amazon Location Service.

\n
", + "smithy.api#documentation": "

Specifies the map style selected from an available data provider. For additional\n information on each map style and to preview each map style, see Esri map\n styles and HERE map\n styles.

\n

Valid Esri styles:

\n \n

Valid HERE\n Technologies styles:

\n ", "smithy.api#required": {} } } @@ -4747,6 +4753,9 @@ "read": { "target": "com.amazonaws.location#DescribeMap" }, + "update": { + "target": "com.amazonaws.location#UpdateMap" + }, "delete": { "target": "com.amazonaws.location#DeleteMap" }, @@ -4882,6 +4891,9 @@ "read": { "target": "com.amazonaws.location#DescribePlaceIndex" }, + "update": { + "target": "com.amazonaws.location#UpdatePlaceIndex" + }, "delete": { "target": "com.amazonaws.location#DeletePlaceIndex" }, @@ -5093,6 +5105,9 @@ "read": { "target": "com.amazonaws.location#DescribeRouteCalculator" }, + "update": { + "target": "com.amazonaws.location#UpdateRouteCalculator" + }, "delete": { "target": "com.amazonaws.location#DeleteRouteCalculator" }, @@ -5426,6 +5441,24 @@ "smithy.api#documentation": "

A summary of the geocoding request sent using SearchPlaceIndexForText.

" } }, + "com.amazonaws.location#ServiceQuotaExceededException": { + "type": "structure", + "members": { + "Message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A message with the reason for the service quota exceeded exception error.

", + "smithy.api#jsonName": "message", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The operation was denied because the request would exceed the maximum quota\n set for Amazon Location Service.

", + "smithy.api#error": "client", + "smithy.api#httpError": 402 + } + }, "com.amazonaws.location#Step": { "type": "structure", "members": { @@ -5545,7 +5578,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified Amazon\n Location Service resource.

\n\n

Tags can help you organize and categorize your resources.\n You can also use them to scope user permissions, by granting a user\n permission to access or change only resources with certain tag values.

\n\n

Tags don't have any semantic meaning to AWS and are interpreted\n strictly as strings of characters.

\n\n

You can use the TagResource action with an Amazon\n Location Service resource that already has tags. If you specify a new\n tag key for the resource, this tag is appended to the tags already\n associated with the resource. If you specify a tag key that is already\n associated with the resource, the new tag value that you specify replaces\n the previous value for that tag.\n

\n\n

You can associate as many as 50 tags with a resource.

", + "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified Amazon\n Location Service resource.

\n\n

Tags can help you organize and categorize your resources.\n You can also use them to scope user permissions, by granting a user\n permission to access or change only resources with certain tag values.

\n\n

You can use the TagResource operation with an Amazon Location Service\n resource that already has tags. If you specify a new tag key for the resource, this tag\n is appended to the tags already associated with the resource. If you specify a tag key\n that's already associated with the resource, the new tag value that you specify replaces\n the previous value for that tag.

\n\n

You can associate up to 50 tags with a resource.

", "smithy.api#endpoint": { "hostPrefix": "metadata." }, @@ -5562,7 +5595,7 @@ "ResourceArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource whose tags you want to update.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource whose tags you want to update.

\n\t ", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5570,7 +5603,7 @@ "Tags": { "target": "com.amazonaws.location#TagMap", "traits": { - "smithy.api#documentation": "

The mapping from tag key to tag value for each tag associated with the specified resource.

", + "smithy.api#documentation": "

Tags that have been applied to the specified resource. Tags are mapped from the tag key to the tag value: \"TagKey\" : \"TagValue\".

\n\t ", "smithy.api#required": {} } } @@ -5602,7 +5635,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request was denied due to request throttling.

", + "smithy.api#documentation": "

The request was denied because of request throttling.

", "smithy.api#error": "client", "smithy.api#httpError": 429, "smithy.api#retryable": {} @@ -5636,6 +5669,9 @@ "read": { "target": "com.amazonaws.location#DescribeTracker" }, + "update": { + "target": "com.amazonaws.location#UpdateTracker" + }, "delete": { "target": "com.amazonaws.location#DeleteTracker" }, @@ -5790,7 +5826,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes one or more tags from the specified Amazon Location Service resource.

", + "smithy.api#documentation": "

Removes one or more tags from the specified Amazon Location resource.

", "smithy.api#endpoint": { "hostPrefix": "metadata." }, @@ -5808,7 +5844,7 @@ "ResourceArn": { "target": "com.amazonaws.location#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource from which you want to remove tags.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource from which you want to remove tags.

\n\t ", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5816,7 +5852,7 @@ "TagKeys": { "target": "com.amazonaws.location#TagKeys", "traits": { - "smithy.api#documentation": "

The list of tag keys to remove from the resource.

", + "smithy.api#documentation": "

The list of tag keys to remove from the specified resource.

", "smithy.api#httpQuery": "tagKeys", "smithy.api#required": {} } @@ -5827,6 +5863,469 @@ "type": "structure", "members": {} }, + "com.amazonaws.location#UpdateGeofenceCollection": { + "type": "operation", + "input": { + "target": "com.amazonaws.location#UpdateGeofenceCollectionRequest" + }, + "output": { + "target": "com.amazonaws.location#UpdateGeofenceCollectionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.location#AccessDeniedException" + }, + { + "target": "com.amazonaws.location#InternalServerException" + }, + { + "target": "com.amazonaws.location#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.location#ThrottlingException" + }, + { + "target": "com.amazonaws.location#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates the specified properties of a given geofence collection.

", + "smithy.api#endpoint": { + "hostPrefix": "geofencing." + }, + "smithy.api#http": { + "method": "PATCH", + "uri": "/geofencing/v0/collections/{CollectionName}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.location#UpdateGeofenceCollectionRequest": { + "type": "structure", + "members": { + "CollectionName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the geofence collection to update.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "PricingPlan": { + "target": "com.amazonaws.location#PricingPlan", + "traits": { + "smithy.api#documentation": "

Updates the pricing plan for the geofence collection.

\n

For more information about each pricing plan option restrictions, see Amazon Location Service\n pricing.

" + } + }, + "PricingPlanDataSource": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Updates the data provider for the geofence collection.

\n

A required value for the following pricing plans: MobileAssetTracking|\n MobileAssetManagement\n

\n

For more information about data providers and\n pricing plans, see the\n Amazon Location Service product page.

\n \n

This can only be updated when updating the PricingPlan in the same\n request.

\n

Amazon Location Service uses PricingPlanDataSource to calculate\n billing for your geofence collection. Your data won't be shared with the data\n provider, and will remain in your AWS account and Region unless you move it.

\n
" + } + }, + "Description": { + "target": "com.amazonaws.location#ResourceDescription", + "traits": { + "smithy.api#documentation": "

Updates the description for the geofence collection.

" + } + } + } + }, + "com.amazonaws.location#UpdateGeofenceCollectionResponse": { + "type": "structure", + "members": { + "CollectionName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the updated geofence collection.

", + "smithy.api#required": {} + } + }, + "CollectionArn": { + "target": "com.amazonaws.location#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the updated geofence collection. Used to specify a\n resource across AWS.

\n ", + "smithy.api#required": {} + } + }, + "UpdateTime": { + "target": "com.amazonaws.location#Timestamp", + "traits": { + "smithy.api#documentation": "

The time when the geofence collection was last updated in ISO 8601\n format: YYYY-MM-DDThh:mm:ss.sssZ\n

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.location#UpdateMap": { + "type": "operation", + "input": { + "target": "com.amazonaws.location#UpdateMapRequest" + }, + "output": { + "target": "com.amazonaws.location#UpdateMapResponse" + }, + "errors": [ + { + "target": "com.amazonaws.location#AccessDeniedException" + }, + { + "target": "com.amazonaws.location#InternalServerException" + }, + { + "target": "com.amazonaws.location#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.location#ThrottlingException" + }, + { + "target": "com.amazonaws.location#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates the specified properties of a given map resource.

", + "smithy.api#endpoint": { + "hostPrefix": "maps." + }, + "smithy.api#http": { + "method": "PATCH", + "uri": "/maps/v0/maps/{MapName}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.location#UpdateMapRequest": { + "type": "structure", + "members": { + "MapName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the map resource to update.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "PricingPlan": { + "target": "com.amazonaws.location#PricingPlan", + "traits": { + "smithy.api#documentation": "

Updates the pricing plan for the map resource.

\n

For more information about each pricing plan option restrictions, see Amazon Location Service pricing.

" + } + }, + "Description": { + "target": "com.amazonaws.location#ResourceDescription", + "traits": { + "smithy.api#documentation": "

Updates the description for the map resource.

" + } + } + } + }, + "com.amazonaws.location#UpdateMapResponse": { + "type": "structure", + "members": { + "MapName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the updated map resource.

", + "smithy.api#required": {} + } + }, + "MapArn": { + "target": "com.amazonaws.location#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the updated map resource. Used to specify a resource\n across AWS.

\n ", + "smithy.api#required": {} + } + }, + "UpdateTime": { + "target": "com.amazonaws.location#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp for when the map resource was last updated in ISO 8601\n format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.location#UpdatePlaceIndex": { + "type": "operation", + "input": { + "target": "com.amazonaws.location#UpdatePlaceIndexRequest" + }, + "output": { + "target": "com.amazonaws.location#UpdatePlaceIndexResponse" + }, + "errors": [ + { + "target": "com.amazonaws.location#AccessDeniedException" + }, + { + "target": "com.amazonaws.location#InternalServerException" + }, + { + "target": "com.amazonaws.location#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.location#ThrottlingException" + }, + { + "target": "com.amazonaws.location#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates the specified properties of a given place index resource.

", + "smithy.api#endpoint": { + "hostPrefix": "places." + }, + "smithy.api#http": { + "method": "PATCH", + "uri": "/places/v0/indexes/{IndexName}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.location#UpdatePlaceIndexRequest": { + "type": "structure", + "members": { + "IndexName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the place index resource to update.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "PricingPlan": { + "target": "com.amazonaws.location#PricingPlan", + "traits": { + "smithy.api#documentation": "

Updates the pricing plan for the place index resource.

\n

For more information about each pricing plan option restrictions, see Amazon Location Service pricing.

" + } + }, + "Description": { + "target": "com.amazonaws.location#ResourceDescription", + "traits": { + "smithy.api#documentation": "

Updates the description for the place index resource.

" + } + }, + "DataSourceConfiguration": { + "target": "com.amazonaws.location#DataSourceConfiguration", + "traits": { + "smithy.api#documentation": "

Updates the data storage option for the place index resource.

" + } + } + } + }, + "com.amazonaws.location#UpdatePlaceIndexResponse": { + "type": "structure", + "members": { + "IndexName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the updated place index resource.

", + "smithy.api#required": {} + } + }, + "IndexArn": { + "target": "com.amazonaws.location#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the upated place index resource. Used to specify a\n resource across AWS.

\n ", + "smithy.api#required": {} + } + }, + "UpdateTime": { + "target": "com.amazonaws.location#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp for when the place index resource was last updated in ISO 8601 format:\n YYYY-MM-DDThh:mm:ss.sssZ.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.location#UpdateRouteCalculator": { + "type": "operation", + "input": { + "target": "com.amazonaws.location#UpdateRouteCalculatorRequest" + }, + "output": { + "target": "com.amazonaws.location#UpdateRouteCalculatorResponse" + }, + "errors": [ + { + "target": "com.amazonaws.location#AccessDeniedException" + }, + { + "target": "com.amazonaws.location#InternalServerException" + }, + { + "target": "com.amazonaws.location#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.location#ThrottlingException" + }, + { + "target": "com.amazonaws.location#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates the specified properties for a given route calculator resource.

", + "smithy.api#endpoint": { + "hostPrefix": "routes." + }, + "smithy.api#http": { + "method": "PATCH", + "uri": "/routes/v0/calculators/{CalculatorName}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.location#UpdateRouteCalculatorRequest": { + "type": "structure", + "members": { + "CalculatorName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the route calculator resource to update.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "PricingPlan": { + "target": "com.amazonaws.location#PricingPlan", + "traits": { + "smithy.api#documentation": "

Updates the pricing plan for the route calculator resource.

\n

For more information about each pricing plan option restrictions, see Amazon Location\n Service pricing.

" + } + }, + "Description": { + "target": "com.amazonaws.location#ResourceDescription", + "traits": { + "smithy.api#documentation": "

Updates the description for the route calculator resource.

" + } + } + } + }, + "com.amazonaws.location#UpdateRouteCalculatorResponse": { + "type": "structure", + "members": { + "CalculatorName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the updated route calculator resource.

", + "smithy.api#required": {} + } + }, + "CalculatorArn": { + "target": "com.amazonaws.location#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the updated route calculator resource. Used to specify a resource\n across AWS.

\n ", + "smithy.api#required": {} + } + }, + "UpdateTime": { + "target": "com.amazonaws.location#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp for when the route calculator was last updated in ISO 8601\n format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.location#UpdateTracker": { + "type": "operation", + "input": { + "target": "com.amazonaws.location#UpdateTrackerRequest" + }, + "output": { + "target": "com.amazonaws.location#UpdateTrackerResponse" + }, + "errors": [ + { + "target": "com.amazonaws.location#AccessDeniedException" + }, + { + "target": "com.amazonaws.location#InternalServerException" + }, + { + "target": "com.amazonaws.location#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.location#ThrottlingException" + }, + { + "target": "com.amazonaws.location#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates the specified properties of a given tracker resource.

", + "smithy.api#endpoint": { + "hostPrefix": "tracking." + }, + "smithy.api#http": { + "method": "PATCH", + "uri": "/tracking/v0/trackers/{TrackerName}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.location#UpdateTrackerRequest": { + "type": "structure", + "members": { + "TrackerName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the tracker resource to update.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "PricingPlan": { + "target": "com.amazonaws.location#PricingPlan", + "traits": { + "smithy.api#documentation": "

Updates the pricing plan for the tracker resource.

\n

For more information about each pricing plan option restrictions, see Amazon Location Service\n pricing.

" + } + }, + "PricingPlanDataSource": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Updates the data provider for the tracker resource.

\n

A required value for the following pricing plans: MobileAssetTracking| MobileAssetManagement\n

\n

For more information about data providers and pricing plans, see the Amazon Location Service product\n page

\n \n

This can only be updated when updating the PricingPlan in the same\n request.

\n

Amazon Location Service uses PricingPlanDataSource to calculate\n billing for your tracker resource. Your data won't be shared with the data provider,\n and will remain in your AWS account and Region unless you move it.

\n
" + } + }, + "Description": { + "target": "com.amazonaws.location#ResourceDescription", + "traits": { + "smithy.api#documentation": "

Updates the description for the tracker resource.

" + } + } + } + }, + "com.amazonaws.location#UpdateTrackerResponse": { + "type": "structure", + "members": { + "TrackerName": { + "target": "com.amazonaws.location#ResourceName", + "traits": { + "smithy.api#documentation": "

The name of the updated tracker resource.

", + "smithy.api#required": {} + } + }, + "TrackerArn": { + "target": "com.amazonaws.location#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the updated tracker resource. Used to specify a resource across\n AWS.

\n ", + "smithy.api#required": {} + } + }, + "UpdateTime": { + "target": "com.amazonaws.location#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp for when the tracker resource was last updated in ISO 8601\n format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "smithy.api#required": {} + } + } + } + }, "com.amazonaws.location#ValidationException": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/medialive.2017-10-14.json b/codegen/sdk-codegen/aws-models/medialive.2017-10-14.json index 874ee056790..83b665715f3 100644 --- a/codegen/sdk-codegen/aws-models/medialive.2017-10-14.json +++ b/codegen/sdk-codegen/aws-models/medialive.2017-10-14.json @@ -824,6 +824,30 @@ ] } }, + "com.amazonaws.medialive#AudioHlsRenditionSelection": { + "type": "structure", + "members": { + "GroupId": { + "target": "com.amazonaws.medialive#__stringMin1", + "traits": { + "smithy.api#documentation": "Specifies the GROUP-ID in the #EXT-X-MEDIA tag of the target HLS audio rendition.", + "smithy.api#jsonName": "groupId", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.medialive#__stringMin1", + "traits": { + "smithy.api#documentation": "Specifies the NAME in the #EXT-X-MEDIA tag of the target HLS audio rendition.", + "smithy.api#jsonName": "name", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Audio Hls Rendition Selection" + } + }, "com.amazonaws.medialive#AudioLanguageSelection": { "type": "structure", "members": { @@ -1038,6 +1062,12 @@ "com.amazonaws.medialive#AudioSelectorSettings": { "type": "structure", "members": { + "AudioHlsRenditionSelection": { + "target": "com.amazonaws.medialive#AudioHlsRenditionSelection", + "traits": { + "smithy.api#jsonName": "audioHlsRenditionSelection" + } + }, "AudioLanguageSelection": { "target": "com.amazonaws.medialive#AudioLanguageSelection", "traits": { @@ -20105,11 +20135,35 @@ }, "com.amazonaws.medialive#WebvttDestinationSettings": { "type": "structure", - "members": {}, + "members": { + "StyleControl": { + "target": "com.amazonaws.medialive#WebvttDestinationStyleControl", + "traits": { + "smithy.api#documentation": "Controls whether the color and position of the source captions is passed through to the WebVTT output captions. PASSTHROUGH - Valid only if the source captions are EMBEDDED or TELETEXT. NO_STYLE_DATA - Don't pass through the style. The output captions will not contain any font styling information.", + "smithy.api#jsonName": "styleControl" + } + } + }, "traits": { "smithy.api#documentation": "Webvtt Destination Settings" } }, + "com.amazonaws.medialive#WebvttDestinationStyleControl": { + "type": "string", + "traits": { + "smithy.api#documentation": "Webvtt Destination Style Control", + "smithy.api#enum": [ + { + "value": "NO_STYLE_DATA", + "name": "NO_STYLE_DATA" + }, + { + "value": "PASSTHROUGH", + "name": "PASSTHROUGH" + } + ] + } + }, "com.amazonaws.medialive#__double": { "type": "double", "traits": { diff --git a/codegen/sdk-codegen/aws-models/personalize.2018-05-22.json b/codegen/sdk-codegen/aws-models/personalize.2018-05-22.json index 58e25d4a440..e1f2d9ca9aa 100644 --- a/codegen/sdk-codegen/aws-models/personalize.2018-05-22.json +++ b/codegen/sdk-codegen/aws-models/personalize.2018-05-22.json @@ -965,7 +965,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a campaign by deploying a solution version. When a client calls the\n GetRecommendations\n and\n GetPersonalizedRanking\n APIs, a campaign is specified in the request.

\n\n

\n Minimum Provisioned TPS and Auto-Scaling\n

\n \n

A transaction is a single GetRecommendations or\n GetPersonalizedRanking call. Transactions per second (TPS) is the throughput\n and unit of billing for Amazon Personalize. The minimum provisioned TPS\n (minProvisionedTPS) specifies the baseline throughput provisioned by\n Amazon Personalize, and thus, the minimum billing charge. \n

\n

\n If your TPS increases beyond\n minProvisionedTPS, Amazon Personalize auto-scales the provisioned capacity up and down,\n but never below minProvisionedTPS.\n There's a short time delay while the capacity is increased that might cause loss of\n transactions.

\n

The actual TPS used is calculated as the average requests/second within a 5-minute window.\n You pay for maximum of either the minimum provisioned TPS or the actual TPS.\n We recommend starting with a low minProvisionedTPS, track\n your usage using Amazon CloudWatch metrics, and then increase the minProvisionedTPS\n as necessary.

\n\n

\n Status\n

\n

A campaign can be in one of the following states:

\n \n

To get the campaign status, call DescribeCampaign.

\n \n

Wait until the status of the campaign\n is ACTIVE before asking the campaign for recommendations.

\n
\n \n

\n Related APIs\n

\n ", + "smithy.api#documentation": "

Creates a campaign by deploying a solution version. When a client calls the\n GetRecommendations\n and\n GetPersonalizedRanking\n APIs, a campaign is specified in the request.

\n\n

\n Minimum Provisioned TPS and Auto-Scaling\n

\n \n

A transaction is a single GetRecommendations or\n GetPersonalizedRanking call. Transactions per second (TPS) is the throughput\n and unit of billing for Amazon Personalize. The minimum provisioned TPS\n (minProvisionedTPS) specifies the baseline throughput provisioned by\n Amazon Personalize, and thus, the minimum billing charge. \n

\n

\n If your TPS increases beyond\n minProvisionedTPS, Amazon Personalize auto-scales the provisioned capacity up and down,\n but never below minProvisionedTPS.\n There's a short time delay while the capacity is increased that might cause loss of\n transactions.

\n

The actual TPS used is calculated as the average requests/second within a 5-minute window.\n You pay for maximum of either the minimum provisioned TPS or the actual TPS.\n We recommend starting with a low minProvisionedTPS, track\n your usage using Amazon CloudWatch metrics, and then increase the minProvisionedTPS\n as necessary.

\n\n

\n Status\n

\n

A campaign can be in one of the following states:

\n \n

To get the campaign status, call DescribeCampaign.

\n \n

Wait until the status of the campaign\n is ACTIVE before asking the campaign for recommendations.

\n
\n \n

\n Related APIs\n

\n ", "smithy.api#idempotent": {} } }, @@ -989,8 +989,7 @@ "minProvisionedTPS": { "target": "com.amazonaws.personalize#TransactionsPerSecond", "traits": { - "smithy.api#documentation": "

Specifies the requested minimum provisioned transactions (recommendations) per second that\n Amazon Personalize will support.

", - "smithy.api#required": {} + "smithy.api#documentation": "

Specifies the requested minimum provisioned transactions (recommendations) per second that\n Amazon Personalize will support.

" } }, "campaignConfig": { @@ -1068,7 +1067,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Creates a job that exports data from your dataset to an Amazon S3 bucket. \n To allow Amazon Personalize to export the training data, you must specify an\n service-linked AWS Identity and Access Management (IAM) role that gives Amazon Personalize PutObject permissions for your Amazon S3 bucket. \n For information, see Exporting a dataset \n in the Amazon Personalize developer guide.\n

\n

\n Status\n

\n

A dataset export job can be in one of the following states:

\n \n

\n To get the status of the export job, call DescribeDatasetExportJob,\n and specify the Amazon Resource Name (ARN) of the dataset export job. The dataset export is\n complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response\n includes a failureReason key, which describes why the job failed.\n

", + "smithy.api#documentation": "

\n Creates a job that exports data from your dataset to an Amazon S3 bucket. \n To allow Amazon Personalize to export the training data, you must specify an\n service-linked IAM role that gives Amazon Personalize PutObject permissions for your Amazon S3 bucket. \n For information, see Exporting a dataset \n in the Amazon Personalize developer guide.\n

\n

\n Status\n

\n

A dataset export job can be in one of the following states:

\n \n

\n To get the status of the export job, call DescribeDatasetExportJob,\n and specify the Amazon Resource Name (ARN) of the dataset export job. The dataset export is\n complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response\n includes a failureReason key, which describes why the job failed.\n

", "smithy.api#idempotent": {} } }, @@ -1098,7 +1097,7 @@ "roleArn": { "target": "com.amazonaws.personalize#RoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management service role that has permissions to add data to your\n output Amazon S3 bucket.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your\n output Amazon S3 bucket.

", "smithy.api#required": {} } }, @@ -1142,7 +1141,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an empty dataset group. A dataset group contains related datasets that supply data\n for training a model. A dataset group can contain at most three datasets, one for each type of\n dataset:

\n \n

To train a model (create a solution), a dataset group that contains an\n Interactions dataset is required. Call CreateDataset to add a\n dataset to the group.

\n

A dataset group can be in one of the following states:

\n \n

To get the status of the dataset group, call DescribeDatasetGroup. If\n the status shows as CREATE FAILED, the response includes a failureReason key,\n which describes why the creation failed.

\n \n

You must wait until the status of the dataset group is ACTIVE\n before adding a dataset to the group.

\n
\n

You can specify an AWS Key Management Service (KMS) key to encrypt the datasets in the group. If you\n specify a KMS key, you must also include an AWS Identity and Access Management (IAM) role that has permission to\n access the key.

\n

\n APIs that require a dataset group ARN in the request\n

\n \n

\n Related APIs\n

\n " + "smithy.api#documentation": "

Creates an empty dataset group. A dataset group contains related datasets that supply data\n for training a model. A dataset group can contain at most three datasets, one for each type of\n dataset:

\n \n

To train a model (create a solution), a dataset group that contains an\n Interactions dataset is required. Call CreateDataset to add a\n dataset to the group.

\n

A dataset group can be in one of the following states:

\n \n

To get the status of the dataset group, call DescribeDatasetGroup. If\n the status shows as CREATE FAILED, the response includes a failureReason key,\n which describes why the creation failed.

\n \n

You must wait until the status of the dataset group is ACTIVE\n before adding a dataset to the group.

\n
\n

You can specify an Key Management Service (KMS) key to encrypt the datasets in the group. If you\n specify a KMS key, you must also include an Identity and Access Management (IAM) role that has permission to\n access the key.

\n

\n APIs that require a dataset group ARN in the request\n

\n \n

\n Related APIs\n

\n " } }, "com.amazonaws.personalize#CreateDatasetGroupRequest": { @@ -1158,13 +1157,13 @@ "roleArn": { "target": "com.amazonaws.personalize#RoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the IAM role that has permissions to access the KMS key. Supplying an IAM\n role is only valid when also specifying a KMS key.

" + "smithy.api#documentation": "

The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management Service (KMS) key. Supplying an IAM\n role is only valid when also specifying a KMS key.

" } }, "kmsKeyArn": { "target": "com.amazonaws.personalize#KmsKeyArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a KMS key used to encrypt the datasets.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets.

" } } } @@ -1206,7 +1205,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a job that imports training data from your data source (an Amazon S3 bucket) to an\n Amazon Personalize dataset. To allow Amazon Personalize to import the training data, you must specify an\n AWS Identity and Access Management (IAM) service role that has permission to read from the data source, as Amazon Personalize makes a\n copy of your data and processes it in an internal AWS system. For information on granting access\n to your Amazon S3 bucket, see Giving Amazon Personalize \n Access to Amazon S3 Resources.

\n \n

The dataset import job replaces any existing data in the dataset that you imported in bulk.

\n
\n

\n Status\n

\n

A dataset import job can be in one of the following states:

\n \n

To get the status of the import job, call DescribeDatasetImportJob,\n providing the Amazon Resource Name (ARN) of the dataset import job. The dataset import is\n complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response\n includes a failureReason key, which describes why the job failed.

\n \n

Importing takes time. You must wait until the status shows as ACTIVE before training a\n model using the dataset.

\n
\n \n

\n Related APIs\n

\n " + "smithy.api#documentation": "

Creates a job that imports training data from your data source (an Amazon S3 bucket) to an\n Amazon Personalize dataset. To allow Amazon Personalize to import the training data, you must specify an\n IAM service role that has permission to read from the data source, as Amazon Personalize makes a\n copy of your data and processes it internally. For information on granting access\n to your Amazon S3 bucket, see Giving Amazon Personalize \n Access to Amazon S3 Resources.

\n \n

The dataset import job replaces any existing data in the dataset that you imported in bulk.

\n
\n

\n Status\n

\n

A dataset import job can be in one of the following states:

\n \n

To get the status of the import job, call DescribeDatasetImportJob,\n providing the Amazon Resource Name (ARN) of the dataset import job. The dataset import is\n complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response\n includes a failureReason key, which describes why the job failed.

\n \n

Importing takes time. You must wait until the status shows as ACTIVE before training a\n model using the dataset.

\n
\n \n

\n Related APIs\n

\n " } }, "com.amazonaws.personalize#CreateDatasetImportJobRequest": { @@ -1446,7 +1445,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an Amazon Personalize schema from the specified schema string. The schema you create\n must be in Avro JSON format.

\n

Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset\n type and has a set of required field and keywords.\n You specify a schema when you call CreateDataset.

\n \n

\n Related APIs\n

\n ", + "smithy.api#documentation": "

Creates an Amazon Personalize schema from the specified schema string. The schema you create\n must be in Avro JSON format.

\n

Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset\n type and has a set of required field and keywords.\n You specify a schema when you call CreateDataset.

\n \n

\n Related APIs\n

\n ", "smithy.api#idempotent": {} } }, @@ -1506,7 +1505,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates the configuration for training a model. A trained model is known as\n a solution. After the configuration is created, you train the model (create a solution)\n by calling the CreateSolutionVersion operation. Every time you call\n CreateSolutionVersion, a new version of the solution is created.

\n

After creating a solution version, you check its accuracy by calling\n GetSolutionMetrics. When you are satisfied with the version, you\n deploy it using CreateCampaign. The campaign provides recommendations\n to a client through the\n GetRecommendations API.

\n

To train a model, Amazon Personalize requires training data and a recipe. The training data\n comes from the dataset group that you provide in the request. A recipe specifies\n the training algorithm and a feature transformation. You can specify one of the predefined\n recipes provided by Amazon Personalize. Alternatively, you can specify\n performAutoML and Amazon Personalize will analyze your data and select the\n optimum USER_PERSONALIZATION recipe for you.

\n \n

Amazon Personalize doesn't support configuring the hpoObjective \n for solution hyperparameter optimization at this time.

\n
\n

\n Status\n

\n

A solution can be in one of the following states:

\n \n

To get the status of the solution, call DescribeSolution. Wait\n until the status shows as ACTIVE before calling CreateSolutionVersion.

\n \n \n \n

\n Related APIs\n

\n \n " + "smithy.api#documentation": "

Creates the configuration for training a model. A trained model is known as\n a solution. After the configuration is created, you train the model (create a solution)\n by calling the CreateSolutionVersion operation. Every time you call\n CreateSolutionVersion, a new version of the solution is created.

\n

After creating a solution version, you check its accuracy by calling\n GetSolutionMetrics. When you are satisfied with the version, you\n deploy it using CreateCampaign. The campaign provides recommendations\n to a client through the\n GetRecommendations API.

\n

To train a model, Amazon Personalize requires training data and a recipe. The training data\n comes from the dataset group that you provide in the request. A recipe specifies\n the training algorithm and a feature transformation. You can specify one of the predefined\n recipes provided by Amazon Personalize. Alternatively, you can specify\n performAutoML and Amazon Personalize will analyze your data and select the\n optimum USER_PERSONALIZATION recipe for you.

\n \n

Amazon Personalize doesn't support configuring the hpoObjective \n for solution hyperparameter optimization at this time.

\n
\n

\n Status\n

\n

A solution can be in one of the following states:

\n \n

To get the status of the solution, call DescribeSolution. Wait\n until the status shows as ACTIVE before calling CreateSolutionVersion.

\n \n \n \n

\n Related APIs\n

\n \n " } }, "com.amazonaws.personalize#CreateSolutionRequest": { @@ -1724,7 +1723,7 @@ "roleArn": { "target": "com.amazonaws.personalize#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management service role that has permissions to add data to your\n output Amazon S3 bucket.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your\n output Amazon S3 bucket.

" } }, "status": { @@ -1862,7 +1861,7 @@ "kmsKeyArn": { "target": "com.amazonaws.personalize#KmsKeyArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the KMS key used to encrypt the datasets.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt the datasets.

" } }, "creationDateTime": { @@ -1885,7 +1884,7 @@ } }, "traits": { - "smithy.api#documentation": "

A dataset group is a collection of related datasets (Interactions, User, and Item). You\n create a dataset group by calling CreateDatasetGroup. You then create a\n dataset and add it to a dataset group by calling CreateDataset. The dataset\n group is used to create and train a solution by calling CreateSolution. A\n dataset group can contain only one of each type of dataset.

\n

You can specify an AWS Key Management Service (KMS) key to encrypt the datasets in the group.

" + "smithy.api#documentation": "

A dataset group is a collection of related datasets (Interactions, User, and Item). You\n create a dataset group by calling CreateDatasetGroup. You then create a\n dataset and add it to a dataset group by calling CreateDataset. The dataset\n group is used to create and train a solution by calling CreateSolution. A\n dataset group can contain only one of each type of dataset.

\n

You can specify an Key Management Service (KMS) key to encrypt the datasets in the group.

" } }, "com.amazonaws.personalize#DatasetGroupSummary": { @@ -1974,7 +1973,7 @@ "roleArn": { "target": "com.amazonaws.personalize#Arn", "traits": { - "smithy.api#documentation": "

The ARN of the AWS Identity and Access Management (IAM) role that has permissions to read from the Amazon S3 data\n source.

" + "smithy.api#documentation": "

The ARN of the IAM role that has permissions to read from the Amazon S3 data\n source.

" } }, "status": { @@ -3231,7 +3230,7 @@ "accountId": { "target": "com.amazonaws.personalize#AccountId", "traits": { - "smithy.api#documentation": "

The Amazon AWS account that owns the event tracker.

" + "smithy.api#documentation": "

The Amazon Web Services account that owns the event tracker.

" } }, "trackingId": { @@ -4985,7 +4984,7 @@ "kmsKeyArn": { "target": "com.amazonaws.personalize#KmsKeyArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon Key Management Service (KMS) key that Amazon Personalize uses to\n encrypt or decrypt the input and output files of a batch inference job.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key that Amazon Personalize uses to\n encrypt or decrypt the input and output files of a batch inference job.

" } } }, diff --git a/codegen/sdk-codegen/aws-models/proton.2020-07-20.json b/codegen/sdk-codegen/aws-models/proton.2020-07-20.json index 3a569269dcf..c4a31542805 100644 --- a/codegen/sdk-codegen/aws-models/proton.2020-07-20.json +++ b/codegen/sdk-codegen/aws-models/proton.2020-07-20.json @@ -30,7 +30,7 @@ } ], "traits": { - "smithy.api#documentation": "

In a management account, an environment account connection request is accepted. When the environment account connection request is\n accepted, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment\n account.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", + "smithy.api#documentation": "

In a management account, an environment account connection request is accepted. When the environment account connection request is\n accepted, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment\n account.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", "smithy.api#idempotent": {} } }, @@ -186,7 +186,7 @@ "name": "proton" }, "aws.protocols#awsJson1_0": {}, - "smithy.api#documentation": "

This is the AWS Proton Service API Reference. It provides descriptions, syntax and usage examples for each of the actions and data types for the AWS Proton service.

\n

The documentation for each action shows the Query API request parameters and the XML response.

\n

Alternatively, you can use the AWS CLI to access an API. For more information, see the AWS Command Line Interface User Guide.

\n

The AWS Proton service is a two-pronged automation framework. Administrators create service templates to provide standardized\n infrastructure and deployment tooling for serverless and container based applications. Developers, in turn, select from the available\n service templates to automate their application or service deployments.

\n

Because administrators define the infrastructure and tooling that AWS Proton deploys and manages, they need permissions to use all of the\n listed API operations.

\n

When developers select a specific infrastructure and tooling set, AWS Proton deploys their applications. To monitor their applications that\n are running on AWS Proton, developers need permissions to the service create, list,\n update and delete API operations and the service instance list and\n update API operations.

\n

To learn more about AWS Proton administration, see the AWS Proton\n Administration Guide.

\n

To learn more about deploying serverless and containerized applications on AWS Proton, see the AWS Proton User Guide.

\n

\n Ensuring Idempotency\n

\n

When you make a mutating API request, the request typically returns a result before the asynchronous workflows of the operation are\n complete. Operations might also time out or encounter other server issues before they're complete, even if the request already returned a\n result. This might make it difficult to determine whether the request succeeded. Moreover, you might need to retry the request multiple\n times to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the\n operation occurs multiple times. This means that you might create more resources than you intended.

\n

\n Idempotency ensures that an API request action completes no more than one time. With an idempotent request, if the\n original request action completes successfully, any subsequent retries complete successfully without performing any further actions.\n However, the result might contain updated information, such as the current creation status.

\n

The following lists of APIs are grouped according to methods that ensure idempotency.

\n

\n Idempotent create APIs with a client token\n

\n

The API actions in this list support idempotency with the use of a client token. The corresponding AWS CLI commands\n also support idempotency using a client token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. To make an\n idempotent API request using one of these actions, specify a client token in the request. We recommend that you don't\n reuse the same client token for other API requests. If you don’t provide a client token for these APIs, a default client token is\n automatically provided by SDKs.

\n

Given a request action that has succeeded:

\n

If you retry the request using the same client token and the same parameters, the retry succeeds without performing any further actions\n other than returning the original resource detail data in the response.

\n

If you retry the request using the same client token, but one or more of the parameters are different, the retry throws a\n ValidationException with an IdempotentParameterMismatch error.

\n

Client tokens expire eight hours after a request is made. If you retry the request with the expired token, a new resource is\n created.

\n

If the original resource is deleted and you retry the request, a new resource is created.

\n

Idempotent create APIs with a client token:

\n \n\n

\n Idempotent delete APIs\n

\n

Given a request action that has succeeded:

\n

When you retry the request with an API from this group and the resource was deleted, its metadata is returned in the response.

\n

If you retry and the resource doesn't exist, the response is empty.

\n

In both cases, the retry succeeds.

\n

Idempotent delete APIs:

\n \n

\n Asynchronous idempotent delete APIs\n

\n

Given a request action that has succeeded:

\n

If you retry the request with an API from this group, if the original request delete operation status is\n DELETE_IN_PROGRESS, the retry returns the resource detail data in the response without performing any further actions.

\n

If the original request delete operation is complete, a retry returns an empty response.

\n

Asynchronous idempotent delete APIs:

\n ", + "smithy.api#documentation": "

This is the AWS Proton Service API Reference. It provides descriptions, syntax and usage examples for each of the actions and data types for the AWS Proton service.

\n

The documentation for each action shows the Query API request parameters and the XML response.

\n

Alternatively, you can use the AWS CLI to access an API. For more information, see the AWS Command Line Interface User Guide.

\n

The AWS Proton service is a two-pronged automation framework. Administrators create service templates to provide standardized\n infrastructure and deployment tooling for serverless and container based applications. Developers, in turn, select from the available\n service templates to automate their application or service deployments.

\n

Because administrators define the infrastructure and tooling that AWS Proton deploys and manages, they need permissions to use all of the\n listed API operations.

\n

When developers select a specific infrastructure and tooling set, AWS Proton deploys their applications. To monitor their applications\n that are running on AWS Proton, developers need permissions to the service create, list,\n update and delete API operations and the service instance list and\n update API operations.

\n

To learn more about AWS Proton administration, see the AWS Proton\n Administrator Guide.

\n

To learn more about deploying serverless and containerized applications on AWS Proton, see the AWS Proton User Guide.

\n

\n Ensuring Idempotency\n

\n

When you make a mutating API request, the request typically returns a result before the asynchronous workflows of the operation are\n complete. Operations might also time out or encounter other server issues before they're complete, even if the request already returned a\n result. This might make it difficult to determine whether the request succeeded. Moreover, you might need to retry the request multiple\n times to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the\n operation occurs multiple times. This means that you might create more resources than you intended.

\n

\n Idempotency ensures that an API request action completes no more than one time. With an idempotent request, if the\n original request action completes successfully, any subsequent retries complete successfully without performing any further actions.\n However, the result might contain updated information, such as the current creation status.

\n

The following lists of APIs are grouped according to methods that ensure idempotency.

\n

\n Idempotent create APIs with a client token\n

\n

The API actions in this list support idempotency with the use of a client token. The corresponding AWS CLI\n commands also support idempotency using a client token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. To\n make an idempotent API request using one of these actions, specify a client token in the request. We recommend that you\n don't reuse the same client token for other API requests. If you don’t provide a client token for these APIs, a\n default client token is automatically provided by SDKs.

\n

Given a request action that has succeeded:

\n

If you retry the request using the same client token and the same parameters, the retry succeeds without performing any further actions\n other than returning the original resource detail data in the response.

\n

If you retry the request using the same client token, but one or more of the parameters are different, the retry throws a\n ValidationException with an IdempotentParameterMismatch error.

\n

Client tokens expire eight hours after a request is made. If you retry the request with the expired token, a new resource is\n created.

\n

If the original resource is deleted and you retry the request, a new resource is created.

\n

Idempotent create APIs with a client token:

\n \n

\n Idempotent delete APIs\n

\n

Given a request action that has succeeded:

\n

When you retry the request with an API from this group and the resource was deleted, its metadata is returned in the response.

\n

If you retry and the resource doesn't exist, the response is empty.

\n

In both cases, the retry succeeds.

\n

Idempotent delete APIs:

\n \n

\n Asynchronous idempotent delete APIs\n

\n

Given a request action that has succeeded:

\n

If you retry the request with an API from this group, if the original request delete operation status is\n DELETE_IN_PROGRESS, the retry returns the resource detail data in the response without performing any further actions.

\n

If the original request delete operation is complete, a retry returns an empty response.

\n

Asynchronous idempotent delete APIs:

\n ", "smithy.api#title": "AWS Proton" } }, @@ -219,7 +219,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is\n IN_PROGRESS. For more information, see Update an environment in the AWS Proton Administration guide.

\n

The following list includes potential cancellation scenarios.

\n " + "smithy.api#documentation": "

Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is\n IN_PROGRESS. For more information, see Update an environment in the AWS Proton Administrator guide.

\n

The following list includes potential cancellation scenarios.

\n " } }, "com.amazonaws.proton#CancelEnvironmentDeploymentInput": { @@ -285,7 +285,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is\n IN_PROGRESS. For more information, see Update a service instance in the AWS Proton Administration guide or the AWS Proton User guide.

\n

The following list includes potential cancellation scenarios.

\n " + "smithy.api#documentation": "

Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is\n IN_PROGRESS. For more information, see Update a service instance in the AWS Proton Administrator guide or the AWS Proton User guide.

\n

The following list includes potential cancellation scenarios.

\n " } }, "com.amazonaws.proton#CancelServiceInstanceDeploymentInput": { @@ -359,7 +359,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is\n IN_PROGRESS. For more information, see Update a service pipeline in the AWS Proton Administration guide or the AWS Proton User guide.

\n

The following list includes potential cancellation scenarios.

\n " + "smithy.api#documentation": "

Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is\n IN_PROGRESS. For more information, see Update a service pipeline in the AWS Proton Administrator guide or the AWS Proton User guide.

\n

The following list includes potential cancellation scenarios.

\n " } }, "com.amazonaws.proton#CancelServicePipelineDeploymentInput": { @@ -515,7 +515,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deploy a new environment. An AWS Proton environment is created from an environment template that defines infrastructure and resources that\n can be shared across services. For more information, see the Environments in the AWS Proton Administration\n Guide.\n

", + "smithy.api#documentation": "

Deploy a new environment. An AWS Proton environment is created from an environment template that defines infrastructure and resources\n that can be shared across services. For more information, see the Environments in the AWS Proton Administrator\n Guide.\n

", "smithy.api#idempotent": {} } }, @@ -548,7 +548,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in\n the environment account from the management account.

\n

An environment account connection is a secure bi-directional connection between a management account and an\n environment account that maintains authorization and permissions. For more information, see Environment account connections in the AWS Proton\n Administration guide.

", + "smithy.api#documentation": "

Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in\n the environment account from a management account.

\n

An environment account connection is a secure bi-directional connection between a management account and an\n environment account that maintains authorization and permissions. For more information, see Environment account connections in the AWS Proton\n Administrator guide.

", "smithy.api#idempotent": {} } }, @@ -610,7 +610,7 @@ "templateName": { "target": "com.amazonaws.proton#ResourceName", "traits": { - "smithy.api#documentation": "

The name of the environment template. For more information, see Environment Templates in the AWS Proton Administration\n Guide.

", + "smithy.api#documentation": "

The name of the environment template. For more information, see Environment Templates in the AWS Proton Administrator\n Guide.

", "smithy.api#required": {} } }, @@ -636,26 +636,26 @@ "spec": { "target": "com.amazonaws.proton#SpecContents", "traits": { - "smithy.api#documentation": "

A link to a YAML formatted spec file that provides inputs as defined in the environment template bundle schema file. For more\n information, see Environments in the\n AWS Proton Administration Guide.

", + "smithy.api#documentation": "

A link to a YAML formatted spec file that provides inputs as defined in the environment template bundle schema file. For more\n information, see Environments in the\n AWS Proton Administrator Guide.

", "smithy.api#required": {} } }, "protonServiceRoleArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf. You must\n include either the environmentAccountConnectionId or protonServiceRoleArn parameter and value.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf. You\n must include either the environmentAccountConnectionId or protonServiceRoleArn parameter and value.

" } }, "environmentAccountConnectionId": { "target": "com.amazonaws.proton#EnvironmentAccountConnectionId", "traits": { - "smithy.api#documentation": "

The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an\n environment account. You must include either the environmentAccountConnectionId or protonServiceRoleArn\n parameter and value. For more information, see Environment account\n connections in the AWS Proton Administration guide.

" + "smithy.api#documentation": "

The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an\n environment account. You must include either the environmentAccountConnectionId or protonServiceRoleArn\n parameter and value. For more information, see Environment account\n connections in the AWS Proton Administrator guide.

" } }, "tags": { "target": "com.amazonaws.proton#TagList", "traits": { - "smithy.api#documentation": "

Create tags for your environment. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

" + "smithy.api#documentation": "

Create tags for your environment. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

" } } } @@ -701,7 +701,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create an environment template for AWS Proton. For more information, see Environment Templates in the AWS Proton Administration\n Guide.

\n

You can create an environment template in one of the two following ways:

\n ", + "smithy.api#documentation": "

Create an environment template for AWS Proton. For more information, see Environment Templates in the AWS Proton Administrator\n Guide.

\n

You can create an environment template in one of the two following ways:

\n ", "smithy.api#idempotent": {} } }, @@ -742,7 +742,7 @@ "tags": { "target": "com.amazonaws.proton#TagList", "traits": { - "smithy.api#documentation": "

Create tags for your environment template. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

" + "smithy.api#documentation": "

Create tags for your environment template. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

" } } } @@ -821,7 +821,7 @@ "majorVersion": { "target": "com.amazonaws.proton#TemplateVersionPart", "traits": { - "smithy.api#documentation": "

To create a new minor version of the environment template, include a majorVersion.

\n

To create a new major and minor version of the environment template, exclude majorVersion.

" + "smithy.api#documentation": "

To create a new minor version of the environment template, include a majorVersion.

\n

To create a new major and minor version of the environment template, exclude\n majorVersion.

" } }, "source": { @@ -883,7 +883,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create an AWS Proton service. An AWS Proton service is an instantiation of a service template and often includes several service instances and\n pipeline. For more information, see Services in the\n AWS Proton Administration Guide and Services in the AWS Proton User Guide.

", + "smithy.api#documentation": "

Create an AWS Proton service. An AWS Proton service is an instantiation of a service template and often includes several service instances\n and pipeline. For more information, see Services in\n the AWS Proton Administrator Guide and Services in the AWS Proton User Guide.

", "smithy.api#idempotent": {} } }, @@ -926,14 +926,14 @@ "spec": { "target": "com.amazonaws.proton#SpecContents", "traits": { - "smithy.api#documentation": "

A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t\n include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the AWS Proton\n Administration Guide and Create a\n service in the AWS Proton User Guide.

", + "smithy.api#documentation": "

A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t\n include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more\n information, see Create a service in the\n AWS Proton Administrator Guide and Create a service in the AWS Proton User Guide.

", "smithy.api#required": {} } }, "repositoryConnectionArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The ARN of the repository connection. For more information, see Set up repository connection in the\n AWS Proton Administration Guide and Getting started in the AWS Proton User\n Guide. Don't include this parameter if your service template doesn't include a\n service pipeline.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the repository connection. For more information, see Set up repository connection in the\n AWS Proton Administrator Guide and Setting up with AWS Proton in the AWS Proton\n User Guide. Don't include this parameter if your service template doesn't include\n a service pipeline.

" } }, "repositoryId": { @@ -945,13 +945,13 @@ "branchName": { "target": "com.amazonaws.proton#GitBranchName", "traits": { - "smithy.api#documentation": "

The name of the code repository branch that holds the code that's deployed in AWS Proton. Don't include this parameter\n if your service template doesn't include a service pipeline.

" + "smithy.api#documentation": "

The name of the code repository branch that holds the code that's deployed in AWS Proton. Don't include this\n parameter if your service template doesn't include a service pipeline.

" } }, "tags": { "target": "com.amazonaws.proton#TagList", "traits": { - "smithy.api#documentation": "

Create tags for your service. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

" + "smithy.api#documentation": "

Create tags for your service. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

" } } } @@ -997,7 +997,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CICD\n service pipeline. Developers, in turn, select the service template from AWS Proton. If the selected service template includes a service\n pipeline definition, they provide a link to their source code repository. AWS Proton then deploys and manages the infrastructure defined by the\n selected service template. For more information, see Service Templates in the AWS Proton Administration\n Guide.

", + "smithy.api#documentation": "

Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CICD\n service pipeline. Developers, in turn, select the service template from AWS Proton. If the selected service template includes a service\n pipeline definition, they provide a link to their source code repository. AWS Proton then deploys and manages the infrastructure defined by\n the selected service template. For more information, see Service Templates in the AWS Proton Administrator\n Guide.

", "smithy.api#idempotent": {} } }, @@ -1032,13 +1032,13 @@ "pipelineProvisioning": { "target": "com.amazonaws.proton#Provisioning", "traits": { - "smithy.api#documentation": "

AWS Proton includes a service pipeline for your service by default. When included, this parameter indicates that an AWS Proton service\n pipeline won't be included for your service. Once specified, this parameter can't be changed.\n For more information, see Service template\n bundles in the AWS Proton Administration Guide.

" + "smithy.api#documentation": "

AWS Proton includes a service pipeline for your service by default. When included, this parameter indicates that an AWS Proton service\n pipeline won't be included for your service. Once specified, this parameter can't be changed.\n For more information, see Service template\n bundles in the AWS Proton Administrator Guide.

" } }, "tags": { "target": "com.amazonaws.proton#TagList", "traits": { - "smithy.api#documentation": "

Create tags for your service template. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

" + "smithy.api#documentation": "

Create tags for your service template. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

" } } } @@ -1216,7 +1216,7 @@ } ], "traits": { - "smithy.api#documentation": "

In an environment account, delete an environment account connection.

\n

After you delete an environment account connection that’s in use by an AWS Proton environment, AWS Proton can’t\n manage the environment infrastructure resources until a new environment account connection is accepted for the environment account and\n associated environment. You're responsible for cleaning up provisioned resources that remain without an environment connection.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", + "smithy.api#documentation": "

In an environment account, delete an environment account connection.

\n

After you delete an environment account connection that’s in use by an AWS Proton environment, AWS Proton can’t\n manage the environment infrastructure resources until a new environment account connection is accepted for the environment account and\n associated environment. You're responsible for cleaning up provisioned resources that remain without an environment connection.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", "smithy.api#idempotent": {} } }, @@ -1752,7 +1752,7 @@ "templateName": { "target": "com.amazonaws.proton#ResourceName", "traits": { - "smithy.api#documentation": "

The ARN of the environment template.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the environment template.

", "smithy.api#required": {} } }, @@ -1786,7 +1786,7 @@ "protonServiceRoleArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your\n behalf.

" } }, "environmentAccountConnectionId": { @@ -2180,7 +2180,7 @@ "protonServiceRoleArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your\n behalf.

" } }, "environmentAccountConnectionId": { @@ -2765,7 +2765,7 @@ } ], "traits": { - "smithy.api#documentation": "

In an environment account, view the detail data for an environment account connection.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", + "smithy.api#documentation": "

In an environment account, view the detail data for an environment account connection.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", "smithy.api#readonly": {} } }, @@ -3534,7 +3534,7 @@ } ], "traits": { - "smithy.api#documentation": "

View a list of environment account connections.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", + "smithy.api#documentation": "

View a list of environment account connections.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -4150,7 +4150,7 @@ } ], "traits": { - "smithy.api#documentation": "

List tags for a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

", + "smithy.api#documentation": "

List tags for a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -4166,7 +4166,7 @@ "resourceArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The ARN of the resource for the listed tags.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource for the listed tags.

", "smithy.api#httpQuery": "resourceArn", "smithy.api#required": {} } @@ -4261,7 +4261,7 @@ } ], "traits": { - "smithy.api#documentation": "

In a management account, reject an environment account connection from another environment account.

\n

After you reject an environment account connection request, you won’t be able to accept or use the rejected\n environment account connection.

\n

You can’t reject an environment account connection that is connected to an environment.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", + "smithy.api#documentation": "

In a management account, reject an environment account connection from another environment account.

\n

After you reject an environment account connection request, you won’t be able to accept or use the rejected\n environment account connection.

\n

You can’t reject an environment account connection that is connected to an environment.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", "smithy.api#idempotent": {} } }, @@ -4445,7 +4445,7 @@ "repositoryConnectionArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The ARN of the repository connection. For more information, see Set up a repository connection in the\n AWS Proton Administration Guide and Getting started in the AWS Proton User\n Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the repository connection. For more information, see Set up a repository connection in the\n AWS Proton Administrator Guide and Setting up with AWS Proton in the AWS Proton\n User Guide.

" } }, "repositoryId": { @@ -4811,7 +4811,7 @@ } }, "traits": { - "smithy.api#documentation": "

A quota was exceeded. For more information, see AWS Proton\n Quotas in the AWS Proton Administration Guide.

", + "smithy.api#documentation": "

A quota was exceeded. For more information, see AWS Proton\n Quotas in the AWS Proton Administrator Guide.

", "smithy.api#error": "client", "smithy.api#httpError": 402 } @@ -5466,7 +5466,7 @@ } ], "traits": { - "smithy.api#documentation": "

Tag a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

", + "smithy.api#documentation": "

Tag a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

", "smithy.api#idempotent": {} } }, @@ -5609,7 +5609,7 @@ } ], "traits": { - "smithy.api#documentation": "

Remove a tag from a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

", + "smithy.api#documentation": "

Remove a tag from a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.

", "smithy.api#idempotent": {} } }, @@ -5718,7 +5718,7 @@ } ], "traits": { - "smithy.api#documentation": "

Update an environment.

\n

If the environment is associated with an environment account connection, don't update or include the\n protonServiceRoleArn parameter to update or connect to an environment account connection.

\n

You can only update to a new environment account connection if it was created in the same environment account that the current\n environment account connection was created in and associated with the current environment.

\n

If the environment isn't associated with an environment account connection, don't update or\n include the environmentAccountConnectionId parameter to update or connect to an environment account connection.

\n

You can update either the environmentAccountConnectionId or protonServiceRoleArn parameter and value. You\n can’t update both.

\n

There are four modes for updating an environment as described in the following. The deploymentType field defines the\n mode.

\n
\n
\n
\n

\n NONE\n

\n

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

\n
\n
\n
\n

\n CURRENT_VERSION\n

\n

In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are\n updated. Don’t include minor or major version parameters when you use this\n deployment-type.

\n
\n
\n
\n

\n MINOR_VERSION\n

\n

In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current\n major version in use, by default. You can also specify a different minor version of the current major version in use.

\n
\n
\n
\n

\n MAJOR_VERSION\n

\n

In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of\n the current template, by default. You can also specify a different major version that's higher than the major version in use\n and a minor version (optional).

\n
\n
" + "smithy.api#documentation": "

Update an environment.

\n

If the environment is associated with an environment account connection, don't update or include the\n protonServiceRoleArn parameter to update or connect to an environment account connection.

\n

You can only update to a new environment account connection if it was created in the same environment account that the current\n environment account connection was created in and is associated with the current environment.

\n

If the environment isn't associated with an environment account connection, don't update or\n include the environmentAccountConnectionId parameter to update or connect to an environment account connection.

\n

You can update either the environmentAccountConnectionId or protonServiceRoleArn parameter and value. You\n can’t update both.

\n

There are four modes for updating an environment as described in the following. The deploymentType field defines the\n mode.

\n
\n
\n
\n

\n NONE\n

\n

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

\n
\n
\n
\n

\n CURRENT_VERSION\n

\n

In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are\n updated. Don’t include minor or major version parameters when you use this\n deployment-type.

\n
\n
\n
\n

\n MINOR_VERSION\n

\n

In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current\n major version in use, by default. You can also specify a different minor version of the current major version in use.

\n
\n
\n
\n

\n MAJOR_VERSION\n

\n

In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of\n the current template, by default. You can also specify a different major version that's higher than the major version in use\n and a minor version (optional).

\n
\n
" } }, "com.amazonaws.proton#UpdateEnvironmentAccountConnection": { @@ -5750,7 +5750,7 @@ } ], "traits": { - "smithy.api#documentation": "

In an environment account, update an environment account connection to use a new IAM role.

\n

For more information, see Environment account connections\n in the AWS Proton Administration guide.

", + "smithy.api#documentation": "

In an environment account, update an environment account connection to use a new IAM role.

\n

For more information, see Environment account connections\n in the AWS Proton Administrator guide.

", "smithy.api#idempotent": {} } }, @@ -5829,7 +5829,7 @@ "protonServiceRoleArn": { "target": "com.amazonaws.proton#Arn", "traits": { - "smithy.api#documentation": "

The ARN of the AWS Proton service role that allows AWS Proton to make API calls to other services your behalf.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make API calls to other services your\n behalf.

" } }, "deploymentType": { @@ -5842,7 +5842,7 @@ "environmentAccountConnectionId": { "target": "com.amazonaws.proton#EnvironmentAccountConnectionId", "traits": { - "smithy.api#documentation": "

The ID of the environment account connection.

\n

You can only update to a new environment account connection if it was created in the same environment account that the current\n environment account connection was created in and associated with the current environment.

" + "smithy.api#documentation": "

The ID of the environment account connection.

\n

You can only update to a new environment account connection if it was created in the same environment account that the current\n environment account connection was created in and is associated with the current environment.

" } } }, @@ -6084,7 +6084,7 @@ "spec": { "target": "com.amazonaws.proton#SpecContents", "traits": { - "smithy.api#documentation": "

Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the\n list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a\n service in the AWS Proton Administration\n Guide or the AWS Proton User Guide.

" + "smithy.api#documentation": "

Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the\n list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a\n service in the AWS Proton Administrator\n Guide or the AWS Proton User Guide.

" } } }, diff --git a/codegen/sdk-codegen/aws-models/qldb.2019-01-02.json b/codegen/sdk-codegen/aws-models/qldb.2019-01-02.json index 1c4d0d616da..dfbbdb0c63b 100644 --- a/codegen/sdk-codegen/aws-models/qldb.2019-01-02.json +++ b/codegen/sdk-codegen/aws-models/qldb.2019-01-02.json @@ -211,7 +211,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new ledger in your AWS account in the current Region.

", + "smithy.api#documentation": "

Creates a new ledger in your account in the current Region.

", "smithy.api#http": { "method": "POST", "uri": "/ledgers", @@ -225,7 +225,7 @@ "Name": { "target": "com.amazonaws.qldb#LedgerName", "traits": { - "smithy.api#documentation": "

The name of the ledger that you want to create. The name must be unique among all of\n your ledgers in the current AWS Region.

\n

Naming constraints for ledger names are defined in Quotas in Amazon QLDB\n in the Amazon QLDB Developer Guide.

", + "smithy.api#documentation": "

The name of the ledger that you want to create. The name must be unique among all of\n the ledgers in your account in the current Region.

\n

Naming constraints for ledger names are defined in Quotas in Amazon QLDB\n in the Amazon QLDB Developer Guide.

", "smithy.api#required": {} } }, @@ -247,6 +247,12 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } + }, + "KmsKey": { + "target": "com.amazonaws.qldb#KmsKey", + "traits": { + "smithy.api#documentation": "

The key in Key Management Service (KMS) to use for encryption of data at rest in the ledger. For\n more information, see Encryption at rest in\n the Amazon QLDB Developer Guide.

\n

Use one of the following options to specify this parameter:

\n \n

To specify a customer managed KMS key, you can use its key ID, Amazon Resource Name\n (ARN), alias name, or alias ARN. When using an alias name, prefix it with\n \"alias/\". To specify a key in a different account, you must use the key\n ARN or alias ARN.

\n

For example:

\n \n

For more information, see Key identifiers (KeyId) in\n the Key Management Service Developer Guide.

" + } } } }, @@ -288,6 +294,12 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } + }, + "KmsKeyArn": { + "target": "com.amazonaws.qldb#Arn", + "traits": { + "smithy.api#documentation": "

The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If\n this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.

" + } } } }, @@ -470,7 +482,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns information about a ledger, including its state and when it was created.

", + "smithy.api#documentation": "

Returns information about a ledger, including its state, permissions mode, encryption at\n rest settings, and when it was created.

", "smithy.api#http": { "method": "GET", "uri": "/ledgers/{Name}", @@ -529,6 +541,12 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } + }, + "EncryptionDescription": { + "target": "com.amazonaws.qldb#LedgerEncryptionDescription", + "traits": { + "smithy.api#documentation": "

Information about the encryption of data at rest in the ledger. This includes the\n current status, the KMS key, and when the key became inaccessible (in the case of an\n error).

" + } } } }, @@ -541,6 +559,25 @@ } } }, + "com.amazonaws.qldb#EncryptionStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ENABLED", + "name": "ENABLED" + }, + { + "value": "UPDATING", + "name": "UPDATING" + }, + { + "value": "KMS_KEY_INACCESSIBLE", + "name": "KMS_KEY_INACCESSIBLE" + } + ] + } + }, "com.amazonaws.qldb#ErrorCause": { "type": "string", "traits": { @@ -619,7 +656,7 @@ "RoleArn": { "target": "com.amazonaws.qldb#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a\n journal export job to do the following:

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a\n journal export job to do the following:

\n ", "smithy.api#required": {} } } @@ -921,7 +958,7 @@ "ExclusiveEndTime": { "target": "com.amazonaws.qldb#Timestamp", "traits": { - "smithy.api#documentation": "

The exclusive date and time that specifies when the stream ends. If this parameter is\n blank, the stream runs indefinitely until you cancel it.

" + "smithy.api#documentation": "

The exclusive date and time that specifies when the stream ends. If this parameter is\n undefined, the stream runs indefinitely until you cancel it.

" } }, "RoleArn": { @@ -1036,7 +1073,7 @@ "RoleArn": { "target": "com.amazonaws.qldb#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a\n journal export job to do the following:

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a\n journal export job to do the following:

\n ", "smithy.api#required": {} } } @@ -1072,6 +1109,43 @@ "smithy.api#documentation": "

The configuration settings of the Amazon Kinesis Data Streams destination for an Amazon QLDB journal\n stream.

" } }, + "com.amazonaws.qldb#KmsKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1600 + } + } + }, + "com.amazonaws.qldb#LedgerEncryptionDescription": { + "type": "structure", + "members": { + "KmsKeyArn": { + "target": "com.amazonaws.qldb#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for\n encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key\n for encryption.

", + "smithy.api#required": {} + } + }, + "EncryptionStatus": { + "target": "com.amazonaws.qldb#EncryptionStatus", + "traits": { + "smithy.api#documentation": "

The current state of encryption at rest for the ledger. This can be one of the following\n values:

\n ", + "smithy.api#required": {} + } + }, + "InaccessibleKmsKeyDateTime": { + "target": "com.amazonaws.qldb#Timestamp", + "traits": { + "smithy.api#documentation": "

The date and time, in epoch time format, when the KMS key first became inaccessible,\n in the case of an error. (Epoch time format is the number of seconds that have elapsed\n since 12:00:00 AM January 1, 1970 UTC.)

\n

This parameter is undefined if the KMS key is accessible.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the encryption of data at rest in an Amazon QLDB ledger. This includes\n the current status, the key in Key Management Service (KMS), and when the key became inaccessible (in\n the case of an error).

\n

For more information, see Encryption at rest in\n the Amazon QLDB Developer Guide.

" + } + }, "com.amazonaws.qldb#LedgerList": { "type": "list", "member": { @@ -1242,7 +1316,7 @@ "target": "com.amazonaws.qldb#ListJournalS3ExportsResponse" }, "traits": { - "smithy.api#documentation": "

Returns an array of journal export job descriptions for all ledgers that are associated\n with the current AWS account and Region.

\n

This action returns a maximum of MaxResults items, and is paginated so that\n you can retrieve all the items by calling ListJournalS3Exports multiple\n times.

\n

This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer\n Guide.

", + "smithy.api#documentation": "

Returns an array of journal export job descriptions for all ledgers that are associated\n with the current account and Region.

\n

This action returns a maximum of MaxResults items, and is paginated so that\n you can retrieve all the items by calling ListJournalS3Exports multiple\n times.

\n

This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer\n Guide.

", "smithy.api#http": { "method": "GET", "uri": "/journal-s3-exports", @@ -1346,7 +1420,7 @@ "JournalS3Exports": { "target": "com.amazonaws.qldb#JournalS3ExportList", "traits": { - "smithy.api#documentation": "

The array of journal export job descriptions for all ledgers that are associated with\n the current AWS account and Region.

" + "smithy.api#documentation": "

The array of journal export job descriptions for all ledgers that are associated with\n the current account and Region.

" } }, "NextToken": { @@ -1366,7 +1440,7 @@ "target": "com.amazonaws.qldb#ListLedgersResponse" }, "traits": { - "smithy.api#documentation": "

Returns an array of ledger summaries that are associated with the current AWS account\n and Region.

\n

This action returns a maximum of 100 items and is paginated so that you can\n retrieve all the items by calling ListLedgers multiple times.

", + "smithy.api#documentation": "

Returns an array of ledger summaries that are associated with the current account\n and Region.

\n

This action returns a maximum of 100 items and is paginated so that you can\n retrieve all the items by calling ListLedgers multiple times.

", "smithy.api#http": { "method": "GET", "uri": "/ledgers", @@ -1404,7 +1478,7 @@ "Ledgers": { "target": "com.amazonaws.qldb#LedgerList", "traits": { - "smithy.api#documentation": "

The array of ledger summaries that are associated with the current AWS account and\n Region.

" + "smithy.api#documentation": "

The array of ledger summaries that are associated with the current account and\n Region.

" } }, "NextToken": { @@ -1631,7 +1705,7 @@ "KmsKeyArn": { "target": "com.amazonaws.qldb#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for a symmetric customer master key (CMK) in AWS Key\n Management Service (AWS KMS). Amazon S3 does not support asymmetric CMKs.

\n

You must provide a KmsKeyArn if you specify SSE_KMS as the\n ObjectEncryptionType.

\n

\n KmsKeyArn is not required if you specify SSE_S3 as the\n ObjectEncryptionType.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) in Key Management Service\n (KMS). Amazon S3 does not support asymmetric CMKs.

\n

You must provide a KmsKeyArn if you specify SSE_KMS as the\n ObjectEncryptionType.

\n

\n KmsKeyArn is not required if you specify SSE_S3 as the\n ObjectEncryptionType.

" } } }, @@ -2092,6 +2166,12 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } + }, + "KmsKey": { + "target": "com.amazonaws.qldb#KmsKey", + "traits": { + "smithy.api#documentation": "

The key in Key Management Service (KMS) to use for encryption of data at rest in the ledger. For\n more information, see Encryption at rest in\n the Amazon QLDB Developer Guide.

\n

Use one of the following options to specify this parameter:

\n \n

To specify a customer managed KMS key, you can use its key ID, Amazon Resource Name\n (ARN), alias name, or alias ARN. When using an alias name, prefix it with\n \"alias/\". To specify a key in a different account, you must use the key\n ARN or alias ARN.

\n

For example:

\n \n

For more information, see Key identifiers (KeyId) in\n the Key Management Service Developer Guide.

" + } } } }, @@ -2127,6 +2207,12 @@ "traits": { "smithy.api#documentation": "

The flag that prevents a ledger from being deleted by any user. If not provided on\n ledger creation, this feature is enabled (true) by default.

\n

If deletion protection is enabled, you must first disable it before you can delete the\n ledger. You can disable it by calling the UpdateLedger operation to set the flag to false.

" } + }, + "EncryptionDescription": { + "target": "com.amazonaws.qldb#LedgerEncryptionDescription", + "traits": { + "smithy.api#documentation": "

Information about the encryption of data at rest in the ledger. This includes the\n current status, the KMS key, and when the key became inaccessible (in the case of an\n error).

" + } } } }, diff --git a/codegen/sdk-codegen/aws-models/quicksight.2018-04-01.json b/codegen/sdk-codegen/aws-models/quicksight.2018-04-01.json index 4affa5fca06..8a066c641b5 100644 --- a/codegen/sdk-codegen/aws-models/quicksight.2018-04-01.json +++ b/codegen/sdk-codegen/aws-models/quicksight.2018-04-01.json @@ -38,7 +38,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -59,7 +59,7 @@ } }, "traits": { - "smithy.api#documentation": "

The Amazon QuickSight customizations associated with your AWS account or a QuickSight namespace in a specific AWS Region.

" + "smithy.api#documentation": "

The Amazon QuickSight customizations associated with your Amazon Web Services account; or a QuickSight namespace in a specific Region;.

" } }, "com.amazonaws.quicksight#AccountSettings": { @@ -68,7 +68,7 @@ "AccountName": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The \"account name\" you provided for the QuickSight subscription in your AWS account. \n You create this name when you sign up for QuickSight. It is unique in all of AWS and \n it appears only in the console when users sign in.

" + "smithy.api#documentation": "

The \"account name\" you provided for the QuickSight subscription in your Amazon Web Services account;. \n You create this name when you sign up for QuickSight. It is unique in all of Amazon Web Services and \n it appears only when users sign in.

" } }, "Edition": { @@ -80,7 +80,7 @@ "DefaultNamespace": { "target": "com.amazonaws.quicksight#Namespace", "traits": { - "smithy.api#documentation": "

The default QuickSight namespace for your AWS account.

" + "smithy.api#documentation": "

The default QuickSight namespace for your Amazon Web Services account;.

" } }, "NotificationEmail": { @@ -91,7 +91,7 @@ } }, "traits": { - "smithy.api#documentation": "

The QuickSight settings associated with your AWS account.

" + "smithy.api#documentation": "

The QuickSight settings associated with your Amazon Web Services account;.

" } }, "com.amazonaws.quicksight#ActionList": { @@ -123,7 +123,7 @@ } }, "traits": { - "smithy.api#documentation": "

The active AWS Identity and Access Management (IAM) policy assignment.

" + "smithy.api#documentation": "

The active Identity and Access Management (IAM) policy assignment.

" } }, "com.amazonaws.quicksight#ActiveIAMPolicyAssignmentList": { @@ -441,7 +441,7 @@ "Name": { "target": "com.amazonaws.quicksight#AnalysisName", "traits": { - "smithy.api#documentation": "

The name of the analysis. This name is displayed in the QuickSight console.\n

" + "smithy.api#documentation": "

The name of the analysis. This name is displayed in the QuickSight console.

" } }, "Status": { @@ -479,9 +479,44 @@ } } }, + "com.amazonaws.quicksight#AnonymousUserDashboardEmbeddingConfiguration": { + "type": "structure", + "members": { + "InitialDashboardId": { + "target": "com.amazonaws.quicksight#RestrictiveResourceId", + "traits": { + "smithy.api#documentation": "

The dashboard ID for the dashboard that you want the user to see first. This ID is included in the output URL. When the URL in response is accessed, Amazon QuickSight renders this dashboard.

\n

The Amazon Resource Name (ARN) of this dashboard must be included in the AuthorizedResourceArns parameter. Otherwise, the request will fail with InvalidParameterValueException.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the dashboard that you want to embed.

" + } + }, + "com.amazonaws.quicksight#AnonymousUserEmbeddingExperienceConfiguration": { + "type": "structure", + "members": { + "Dashboard": { + "target": "com.amazonaws.quicksight#AnonymousUserDashboardEmbeddingConfiguration", + "traits": { + "smithy.api#documentation": "

The type of embedding experience. In this case, an Amazon QuickSight dashboard.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The type of experience you want to embed. For anonymous users, you can embed an Amazon QuickSight dashboard.

" + } + }, "com.amazonaws.quicksight#Arn": { "type": "string" }, + "com.amazonaws.quicksight#ArnList": { + "type": "list", + "member": { + "target": "com.amazonaws.quicksight#Arn" + } + }, "com.amazonaws.quicksight#AssignmentStatus": { "type": "string", "traits": { @@ -601,7 +636,7 @@ } }, "traits": { - "smithy.api#documentation": "

AWS IoT Analytics parameters.

" + "smithy.api#documentation": "

Amazon Web Services IoT Analytics parameters.

" } }, "com.amazonaws.quicksight#Boolean": { @@ -706,7 +741,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -747,7 +782,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -1123,7 +1158,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -1171,7 +1206,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates Amazon QuickSight customizations the current AWS Region. Currently, you can\n add a custom default theme by using the CreateAccountCustomization or\n UpdateAccountCustomization API operation. To further customize\n QuickSight by removing QuickSight sample assets and videos for all new users, see Customizing QuickSight in the Amazon QuickSight User\n Guide.\n

\n

You can create customizations for your AWS account or, if you specify a namespace, for\n a QuickSight namespace instead. Customizations that apply to a namespace always override\n customizations that apply to an AWS account. To find out which customizations apply, use\n the DescribeAccountCustomization API operation.

\n

Before you use the CreateAccountCustomization API operation to add a theme \n as the namespace default, make sure that you first share the theme with the namespace. \n If you don't share it with the namespace, the theme isn't visible to your users \n even if you make it the default theme. \n To check if the theme is shared, view the current permissions by using the \n \n DescribeThemePermissions\n API operation.\n To share the theme, grant permissions by using the \n \n UpdateThemePermissions\n API operation.

", + "smithy.api#documentation": "

Creates Amazon QuickSight customizations the current Region;. Currently, you can\n add a custom default theme by using the CreateAccountCustomization or\n UpdateAccountCustomization API operation. To further customize\n QuickSight by removing QuickSight sample assets and videos for all new users, see Customizing QuickSight in the Amazon QuickSight User\n Guide.\n

\n

You can create customizations for your Amazon Web Services account; or, if you specify a namespace, for\n a QuickSight namespace instead. Customizations that apply to a namespace always override\n customizations that apply to an Amazon Web Services account;. To find out which customizations apply, use\n the DescribeAccountCustomization API operation.

\n

Before you use the CreateAccountCustomization API operation to add a theme \n as the namespace default, make sure that you first share the theme with the namespace. \n If you don't share it with the namespace, the theme isn't visible to your users \n even if you make it the default theme. \n To check if the theme is shared, view the current permissions by using the \n \n DescribeThemePermissions\n API operation.\n To share the theme, grant permissions by using the \n \n UpdateThemePermissions\n API operation.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/customizations", @@ -1185,7 +1220,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that you want to customize QuickSight for.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to customize QuickSight for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1200,7 +1235,7 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations you're adding in the current AWS Region. You can add\n these to an AWS account and a QuickSight namespace.

\n

For example, you can add a default theme by setting AccountCustomization\n to the midnight theme: \"AccountCustomization\": { \"DefaultTheme\":\n \"arn:aws:quicksight::aws:theme/MIDNIGHT\" }. Or, you can add a custom theme by\n specifying \"AccountCustomization\": { \"DefaultTheme\":\n \"arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639\"\n }.

", + "smithy.api#documentation": "

The QuickSight customizations you're adding in the current Region;. You can add\n these to an Amazon Web Services account; and a QuickSight namespace.

\n

For example, you can add a default theme by setting AccountCustomization\n to the midnight theme: \"AccountCustomization\": { \"DefaultTheme\":\n \"arn:aws:quicksight::aws:theme/MIDNIGHT\" }. Or, you can add a custom theme by\n specifying \"AccountCustomization\": { \"DefaultTheme\":\n \"arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639\"\n }.

", "smithy.api#required": {} } }, @@ -1218,13 +1253,13 @@ "Arn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the customization that you created for this AWS account.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the customization that you created for this Amazon Web Services account;.

" } }, "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that you want to customize QuickSight for.

" + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to customize QuickSight for.

" } }, "Namespace": { @@ -1236,13 +1271,13 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations you're adding in the current AWS Region.

" + "smithy.api#documentation": "

The QuickSight customizations you're adding in the current Region;.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -1300,7 +1335,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account where you are creating an analysis.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you are creating an analysis.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1329,7 +1364,7 @@ "Permissions": { "target": "com.amazonaws.quicksight#ResourcePermissionList", "traits": { - "smithy.api#documentation": "

A structure that describes the principals and the resource-level permissions on an\n analysis. You can use the Permissions structure to grant permissions by\n providing a list of AWS Identity and Access Management (IAM) action information for each\n principal listed by Amazon Resource Name (ARN).

\n \n

To specify no permissions, omit Permissions.

" + "smithy.api#documentation": "

A structure that describes the principals and the resource-level permissions on an\n analysis. You can use the Permissions structure to grant permissions by\n providing a list of Identity and Access Management (IAM) action information for each\n principal listed by Amazon Resource Name (ARN).

\n \n

To specify no permissions, omit Permissions.

" } }, "SourceEntity": { @@ -1384,7 +1419,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -1436,7 +1471,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a dashboard from a template. To first create a template, see the \n CreateTemplate\n API operation.

\n

A dashboard is an entity in QuickSight that identifies QuickSight reports, created\n from analyses. You can share QuickSight dashboards. With the right permissions, you can\n create scheduled email reports from them. If you have the correct permissions, you can \n create a dashboard from a template that exists in a different AWS account.

", + "smithy.api#documentation": "

Creates a dashboard from a template. To first create a template, see the \n CreateTemplate\n API operation.

\n

A dashboard is an entity in QuickSight that identifies QuickSight reports, created\n from analyses. You can share QuickSight dashboards. With the right permissions, you can\n create scheduled email reports from them. If you have the correct permissions, you can\n create a dashboard from a template that exists in a different Amazon Web Services account;.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}", @@ -1450,7 +1485,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account where you want to create the dashboard.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you want to create the dashboard.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1485,7 +1520,7 @@ "SourceEntity": { "target": "com.amazonaws.quicksight#DashboardSourceEntity", "traits": { - "smithy.api#documentation": "

The entity that you are using as a source when you create the dashboard. In\n SourceEntity, you specify the type of object you're using as source. You\n can only create a dashboard from a template, so you use a SourceTemplate\n entity. If you need to create a dashboard from an analysis, first convert the analysis\n to a template by using the CreateTemplate API operation. For\n SourceTemplate, specify the Amazon Resource Name (ARN) of the source\n template. The SourceTemplateARN can contain any AWS Account and any\n QuickSight-supported AWS Region.

\n

Use the DataSetReferences entity within SourceTemplate to\n list the replacement datasets for the placeholders listed in the original. The schema in\n each dataset must match its placeholder.

", + "smithy.api#documentation": "

The entity that you are using as a source when you create the dashboard. In\n SourceEntity, you specify the type of object you're using as source. You\n can only create a dashboard from a template, so you use a SourceTemplate\n entity. If you need to create a dashboard from an analysis, first convert the analysis\n to a template by using the CreateTemplate API operation. For\n SourceTemplate, specify the Amazon Resource Name (ARN) of the source\n template. The SourceTemplateARN can contain any Amazon Web Services account; and any\n QuickSight-supported Region;.

\n

Use the DataSetReferences entity within SourceTemplate to\n list the replacement datasets for the placeholders listed in the original. The schema in\n each dataset must match its placeholder.

", "smithy.api#required": {} } }, @@ -1510,7 +1545,7 @@ "ThemeArn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If\n you add a value for this field, it overrides the value that is used in the source\n entity. The theme ARN must exist in the same AWS account where you create the\n dashboard.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If\n you add a value for this field, it overrides the value that is used in the source\n entity. The theme ARN must exist in the same Amazon Web Services account; where you create the\n dashboard.

" } } } @@ -1552,7 +1587,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -1609,7 +1644,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1617,7 +1652,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

An ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

An ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#required": {} } }, @@ -1672,6 +1707,12 @@ "smithy.api#documentation": "

The row-level security configuration for the data that you want to create.

" } }, + "RowLevelPermissionTagConfiguration": { + "target": "com.amazonaws.quicksight#RowLevelPermissionTagConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.

" + } + }, "ColumnLevelPermissionRules": { "target": "com.amazonaws.quicksight#ColumnLevelPermissionRuleList", "traits": { @@ -1698,7 +1739,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "IngestionArn": { @@ -1716,7 +1757,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -1777,7 +1818,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1785,7 +1826,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

An ID for the data source. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

An ID for the data source. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#required": {} } }, @@ -1853,7 +1894,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "CreationStatus": { @@ -1865,7 +1906,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -2215,7 +2256,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2242,7 +2283,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -2273,7 +2314,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2303,7 +2344,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -2350,7 +2391,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an assignment with one specified IAM policy, identified by its Amazon Resource Name \n\t\t\t(ARN). This policy assignment is attached to the specified groups or users of Amazon QuickSight.\n\t\t\tAssignment names are unique per AWS account. To avoid overwriting rules in other namespaces, \n\t\t\tuse assignment names that are unique.

", + "smithy.api#documentation": "

Creates an assignment with one specified IAM policy, identified by its Amazon Resource Name \n\t\t\t(ARN). This policy assignment is attached to the specified groups or users of Amazon QuickSight.\n\t\t\tAssignment names are unique per Amazon Web Services account;. To avoid overwriting rules in other namespaces, \n\t\t\tuse assignment names that are unique.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments", @@ -2364,7 +2405,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account where you want to assign an IAM policy to QuickSight users or\n\t\t\tgroups.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you want to assign an IAM policy to QuickSight users or\n\t\t\tgroups.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2372,7 +2413,7 @@ "AssignmentName": { "target": "com.amazonaws.quicksight#IAMPolicyAssignmentName", "traits": { - "smithy.api#documentation": "

The name of the assignment, also called a rule. It must be unique within an AWS account.

", + "smithy.api#documentation": "

The name of the assignment, also called a rule. It must be unique within an Amazon Web Services account;.

", "smithy.api#required": {} } }, @@ -2411,7 +2452,7 @@ "AssignmentName": { "target": "com.amazonaws.quicksight#IAMPolicyAssignmentName", "traits": { - "smithy.api#documentation": "

The name of the assignment. This name must be unique within the AWS account.

" + "smithy.api#documentation": "

The name of the assignment. This name must be unique within the Amazon Web Services account;.

" } }, "AssignmentId": { @@ -2441,7 +2482,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -2485,7 +2526,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates and starts a new SPICE ingestion on a dataset

\n\t\t\n\t\t

Any ingestions operating on tagged datasets inherit the same tags automatically for use in\n\t\t\taccess control. For an example, see How do I create an IAM policy to control access to Amazon EC2 resources using\n\t\t\t\ttags? in the AWS Knowledge Center. Tags are visible on the tagged dataset, but not on the ingestion resource.

", + "smithy.api#documentation": "

Creates and starts a new SPICE ingestion on a dataset

\n\t\t\n\t\t

Any ingestions operating on tagged datasets inherit the same tags automatically for use in\n\t\t\taccess control. For an example, see How do I create an IAM policy to control access to Amazon EC2 resources using\n\t\t\t\ttags? in the Amazon Web Services Knowledge Center. Tags are visible on the tagged dataset, but not on the ingestion resource.

", "smithy.api#http": { "method": "PUT", "uri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}", @@ -2515,7 +2556,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2546,7 +2587,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -2599,7 +2640,7 @@ } ], "traits": { - "smithy.api#documentation": "

(Enterprise edition only) Creates a new namespace for you to use with Amazon QuickSight.

\n

A namespace allows you to isolate the QuickSight users and groups that are registered\n for that namespace. Users that access the namespace can share assets only with other\n users or groups in the same namespace. They can't see users and groups in other\n namespaces. You can create a namespace after your AWS account is subscribed to\n QuickSight. The namespace must be unique within the AWS account. By default, there is a\n limit of 100 namespaces per AWS account. To increase your limit, create a ticket with\n AWS Support.

", + "smithy.api#documentation": "

(Enterprise edition only) Creates a new namespace for you to use with Amazon QuickSight.

\n

A namespace allows you to isolate the QuickSight users and groups that are registered\n for that namespace. Users that access the namespace can share assets only with other\n users or groups in the same namespace. They can't see users and groups in other\n namespaces. You can create a namespace after your Amazon Web Services account; is subscribed to\n QuickSight. The namespace must be unique within the Amazon Web Services account;. By default, there is a\n limit of 100 namespaces per Amazon Web Services account;. To increase your limit, create a ticket with\n Amazon Web Services Support.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}", @@ -2613,7 +2654,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that you want to create the QuickSight namespace in.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to create the QuickSight namespace in.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2658,7 +2699,7 @@ "CapacityRegion": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS Region that you want to use for the free SPICE capacity for the new namespace.\n This is set to the region that you run CreateNamespace in.

" + "smithy.api#documentation": "

The Region; that you want to use for the free SPICE capacity for the new namespace.\n This is set to the region that you run CreateNamespace in.

" } }, "CreationStatus": { @@ -2676,7 +2717,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -2726,7 +2767,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a template from an existing QuickSight analysis or template. You can use the resulting\n\t\t\ttemplate to create a dashboard.

\n\t\t

A template is an entity in QuickSight that encapsulates the metadata\n\t\t\trequired to create an analysis and that you can use to create s dashboard. A template adds\n\t\t\ta layer of abstraction by using placeholders to replace the dataset associated with the\n\t\t\tanalysis. You can use templates to create dashboards by replacing dataset placeholders\n\t\t\twith datasets that follow the same schema that was used to create the source analysis\n\t\t\tand template.

", + "smithy.api#documentation": "

Creates a template from an existing Amazon QuickSight analysis or template. You can use the resulting\n\t\t\ttemplate to create a dashboard.

\n\t\t

A template is an entity in QuickSight that encapsulates the metadata\n\t\t\trequired to create an analysis and that you can use to create s dashboard. A template adds\n\t\t\ta layer of abstraction by using placeholders to replace the dataset associated with the\n\t\t\tanalysis. You can use templates to create dashboards by replacing dataset placeholders\n\t\t\twith datasets that follow the same schema that was used to create the source analysis\n\t\t\tand template.

", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/templates/{TemplateId}", @@ -2780,7 +2821,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the template that you creating an alias for.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you creating an alias for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2796,7 +2837,7 @@ "AliasName": { "target": "com.amazonaws.quicksight#AliasName", "traits": { - "smithy.api#documentation": "

The name that you want to give to the template alias that you're creating. Don't start the\n\t\t\talias name with the $ character. Alias names that start with $\n\t\t\tare reserved by QuickSight.

", + "smithy.api#documentation": "

The name that you want to give to the template alias that you're creating. Don't start the\n\t\t\talias name with the $ character. Alias names that start with $\n\t\t\tare reserved by Amazon QuickSight.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2829,7 +2870,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -2840,7 +2881,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2848,7 +2889,7 @@ "TemplateId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

An ID for the template that you want to create. This template is unique per AWS Region in\n\t\t\teach AWS account.

", + "smithy.api#documentation": "

An ID for the template that you want to create. This template is unique per Region; in\n\t\t\teach Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2868,7 +2909,7 @@ "SourceEntity": { "target": "com.amazonaws.quicksight#TemplateSourceEntity", "traits": { - "smithy.api#documentation": "

The entity that you are using as a source when you create the template. In\n\t\t\tSourceEntity, you specify the type of object you're using as source:\n\t\t\tSourceTemplate for a template or SourceAnalysis for an\n\t\t\tanalysis. Both of these require an Amazon Resource Name (ARN). For\n\t\t\tSourceTemplate, specify the ARN of the source template. For\n\t\t\tSourceAnalysis, specify the ARN of the source analysis. The SourceTemplate\n\t\t\tARN can contain any AWS Account and any QuickSight-supported AWS Region.

\n\t\t

Use the DataSetReferences entity within SourceTemplate or\n\t\t\tSourceAnalysis to list the replacement datasets for the placeholders listed\n\t\t\tin the original. The schema in each dataset must match its placeholder.

", + "smithy.api#documentation": "

The entity that you are using as a source when you create the template. In\n\t\t\tSourceEntity, you specify the type of object you're using as source:\n\t\t\tSourceTemplate for a template or SourceAnalysis for an\n\t\t\tanalysis. Both of these require an Amazon Resource Name (ARN). For\n\t\t\tSourceTemplate, specify the ARN of the source template. For\n\t\t\tSourceAnalysis, specify the ARN of the source analysis. The SourceTemplate\n\t\t\tARN can contain any Amazon Web Services account; and any QuickSight-supported Region;.

\n\t\t

Use the DataSetReferences entity within SourceTemplate or\n\t\t\tSourceAnalysis to list the replacement datasets for the placeholders listed\n\t\t\tin the original. The schema in each dataset must match its placeholder.

", "smithy.api#required": {} } }, @@ -2923,7 +2964,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -3020,7 +3061,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme for the new theme alias.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme for the new theme alias.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3069,7 +3110,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -3080,7 +3121,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account where you want to store the new theme.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you want to store the new theme.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3088,7 +3129,7 @@ "ThemeId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

An ID for the theme that you want to create. The theme ID is unique per AWS Region in\n\t\t\teach AWS account.

", + "smithy.api#documentation": "

An ID for the theme that you want to create. The theme ID is unique per Region; in\n\t\t\teach Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3171,7 +3212,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -3820,6 +3861,12 @@ "smithy.api#documentation": "

The row-level security configuration for the dataset.

" } }, + "RowLevelPermissionTagConfiguration": { + "target": "com.amazonaws.quicksight#RowLevelPermissionTagConfiguration", + "traits": { + "smithy.api#documentation": "

The element you can use to define tags for row-level security.

" + } + }, "ColumnLevelPermissionRules": { "target": "com.amazonaws.quicksight#ColumnLevelPermissionRuleList", "traits": { @@ -3997,6 +4044,12 @@ "smithy.api#documentation": "

The row-level security configuration for the dataset.

" } }, + "RowLevelPermissionTagConfigurationApplied": { + "target": "com.amazonaws.quicksight#Boolean", + "traits": { + "smithy.api#documentation": "

Whether or not the row level permission tags are applied.

" + } + }, "ColumnLevelPermissionRulesApplied": { "target": "com.amazonaws.quicksight#Boolean", "traits": { @@ -4026,7 +4079,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS\n account.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each \n Amazon Web Services account;.

" } }, "Name": { @@ -4210,7 +4263,7 @@ "AwsIotAnalyticsParameters": { "target": "com.amazonaws.quicksight#AwsIotAnalyticsParameters", "traits": { - "smithy.api#documentation": "

AWS IoT Analytics parameters.

" + "smithy.api#documentation": "

Amazon Web Services IoT Analytics parameters.

" } }, "JiraParameters": { @@ -4525,7 +4578,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes all Amazon QuickSight customizations in this AWS Region for the specified AWS\n account and QuickSight namespace.

", + "smithy.api#documentation": "

Deletes all Amazon QuickSight customizations in this Region; for the specified \n Amazon Web Services account; and QuickSight namespace.

", "smithy.api#http": { "method": "DELETE", "uri": "/accounts/{AwsAccountId}/customizations", @@ -4539,7 +4592,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that you want to delete QuickSight customizations from in\n this AWS Region.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to delete QuickSight customizations from in\n this Region;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4559,7 +4612,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -4614,7 +4667,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account where you want to delete an analysis.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; where you want to delete an analysis.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4674,7 +4727,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -4722,7 +4775,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're\n deleting.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're\n deleting.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4769,7 +4822,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -4814,7 +4867,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4822,7 +4875,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4841,13 +4894,13 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -4899,7 +4952,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4907,7 +4960,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4926,13 +4979,13 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -5231,7 +5284,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5252,7 +5305,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -5278,7 +5331,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5299,7 +5352,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -5357,7 +5410,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID where you want to delete the IAM policy assignment.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID where you want to delete the IAM policy assignment.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5392,7 +5445,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -5450,7 +5503,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that you want to delete the QuickSight namespace from.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to delete the QuickSight namespace from.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5471,7 +5524,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -5563,7 +5616,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the item to delete.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the item to delete.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5617,7 +5670,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -5628,7 +5681,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the template that you're deleting.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you're deleting.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5656,7 +5709,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Arn": { @@ -5763,7 +5816,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme alias to delete.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme alias to delete.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5804,7 +5857,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -5828,7 +5881,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme that you're deleting.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme that you're deleting.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5862,7 +5915,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -5912,7 +5965,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the Amazon QuickSight user that is associated with the identity of the AWS\n\t\t\tIdentity and Access Management (IAM) user or role that's making the call. The IAM user\n\t\t\tisn't deleted as a result of this call.

", + "smithy.api#documentation": "

Deletes the Amazon QuickSight user that is associated with the identity of the \n\t\t\tIdentity and Access Management (IAM) user or role that's making the call. The IAM user\n\t\t\tisn't deleted as a result of this call.

", "smithy.api#http": { "method": "DELETE", "uri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}", @@ -5974,7 +6027,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5998,7 +6051,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -6024,7 +6077,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6045,7 +6098,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -6095,7 +6148,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes the customizations associated with the provided AWS account and Amazon\n QuickSight namespace in an AWS Region. The QuickSight console evaluates which\n customizations to apply by running this API operation with the Resolved flag\n included.

\n

To determine what customizations display when you run this command, it can help to\n visualize the relationship of the entities involved.

\n ", + "smithy.api#documentation": "

Describes the customizations associated with the provided Amazon Web Services account; and Amazon\n QuickSight namespace in an Region;. The QuickSight console evaluates which\n customizations to apply by running this API operation with the Resolved flag\n included.

\n

To determine what customizations display when you run this command, it can help to\n visualize the relationship of the entities involved.

\n ", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/customizations", @@ -6109,7 +6162,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that you want to describe QuickSight customizations\n for.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to describe QuickSight customizations\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6136,13 +6189,13 @@ "Arn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the customization that's associated with this AWS account.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the customization that's associated with this Amazon Web Services account;.

" } }, "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that you're describing.

" + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you're describing.

" } }, "Namespace": { @@ -6154,13 +6207,13 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations that exist in the current AWS Region.

" + "smithy.api#documentation": "

The QuickSight customizations that exist in the current Region;.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -6201,7 +6254,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes the settings that were used when your QuickSight subscription was first\n created in this AWS account.

", + "smithy.api#documentation": "

Describes the settings that were used when your QuickSight subscription was first\n created in this Amazon Web Services account;.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/settings", @@ -6215,7 +6268,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that contains the settings that you want to list.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the settings that you want to list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6228,13 +6281,13 @@ "AccountSettings": { "target": "com.amazonaws.quicksight#AccountSettings", "traits": { - "smithy.api#documentation": "

The QuickSight settings for this AWS account. This information includes the edition of Amazon\n QuickSight that you subscribed to (Standard or Enterprise) and the notification email for the\n QuickSight subscription. In the QuickSight console, the QuickSight subscription is sometimes\n referred to as a QuickSight \"account\" even though it's technically not an account\n by itself. Instead, it's a subscription to the QuickSight service for your AWS account. The\n edition that you subscribe to applies to QuickSight in every AWS Region where you use it.

" + "smithy.api#documentation": "

The QuickSight settings for this Amazon Web Services account;. This information includes the edition of Amazon\n QuickSight that you subscribed to (Standard or Enterprise) and the notification email for the\n QuickSight subscription. In the QuickSight console, the QuickSight subscription is sometimes\n referred to as a QuickSight \"account\" even though it's technically not an account\n by itself. Instead, it's a subscription to the QuickSight service for your Amazon Web Services account;. The\n edition that you subscribe to applies to QuickSight in every Region; where you use it.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -6323,7 +6376,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the analysis whose permissions you're\n describing. You must be using the AWS account that the analysis is in.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis whose permissions you're\n describing. You must be using the Amazon Web Services account; that the analysis is in.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6369,7 +6422,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -6380,7 +6433,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the analysis. You must be using the AWS\n account that the analysis is in.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis. You must be using the \n Amazon Web Services account; that the analysis is in.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6414,7 +6467,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -6496,7 +6549,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're describing\n permissions for.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're describing\n permissions for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6542,7 +6595,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -6553,7 +6606,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're\n describing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're\n describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6601,7 +6654,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -6680,7 +6733,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6688,7 +6741,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6707,7 +6760,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "Permissions": { @@ -6719,7 +6772,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -6737,7 +6790,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6745,7 +6798,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6764,7 +6817,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -6850,7 +6903,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6858,7 +6911,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6877,7 +6930,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "Permissions": { @@ -6889,7 +6942,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -6907,7 +6960,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6915,7 +6968,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -6934,7 +6987,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -7270,7 +7323,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7297,7 +7350,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -7352,7 +7405,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the assignment that you want to describe.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the assignment that you want to describe.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7387,7 +7440,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -7442,7 +7495,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7477,7 +7530,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -7532,7 +7585,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that contains the QuickSight namespace that you want to describe.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the QuickSight namespace that you want to describe.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7553,13 +7606,13 @@ "Namespace": { "target": "com.amazonaws.quicksight#NamespaceInfoV2", "traits": { - "smithy.api#documentation": "

The information about the namespace that you're describing. The response includes \n the namespace ARN, name, AWS Region, creation status, and identity store. DescribeNamespace also\n works for namespaces that are in the process of being created. For incomplete namespaces,\n this API operation lists the namespace error types and messages associated with the creation process.

" + "smithy.api#documentation": "

The information about the namespace that you're describing. The response includes \n the namespace ARN, name, Region;, creation status, and identity store. DescribeNamespace also\n works for namespaces that are in the process of being created. For incomplete namespaces,\n this API operation lists the namespace error types and messages associated with the creation process.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -7651,7 +7704,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the template alias that you're\n\t\t\tdescribing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template alias that you're\n\t\t\tdescribing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7693,7 +7746,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -7741,7 +7794,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the template that you're describing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you're describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7780,7 +7833,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -7798,7 +7851,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the template that you're describing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you're describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7846,7 +7899,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -7934,7 +7987,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme alias that you're\n\t\t\tdescribing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme alias that you're\n\t\t\tdescribing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7976,7 +8029,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -8024,7 +8077,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme that you're describing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme that you're describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -8063,7 +8116,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -8081,7 +8134,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAndAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme that you're describing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme that you're describing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -8129,7 +8182,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -8188,7 +8241,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -8215,7 +8268,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -8245,7 +8298,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -8304,6 +8357,15 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.quicksight#EntryPath": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1000 + } + } + }, "com.amazonaws.quicksight#EntryPoint": { "type": "string", "traits": { @@ -8722,6 +8784,228 @@ ] } }, + "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUser": { + "type": "operation", + "input": { + "target": "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUserRequest" + }, + "output": { + "target": "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUserResponse" + }, + "errors": [ + { + "target": "com.amazonaws.quicksight#AccessDeniedException" + }, + { + "target": "com.amazonaws.quicksight#InternalFailureException" + }, + { + "target": "com.amazonaws.quicksight#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.quicksight#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException" + }, + { + "target": "com.amazonaws.quicksight#ThrottlingException" + }, + { + "target": "com.amazonaws.quicksight#UnsupportedPricingPlanException" + }, + { + "target": "com.amazonaws.quicksight#UnsupportedUserEditionException" + } + ], + "traits": { + "smithy.api#documentation": "

Generates an embed URL that you can use to embed an Amazon QuickSight dashboard in your website, without having to register any reader users. Before you use this action, make sure that you have configured the dashboards and permissions.

\n

The following rules apply to the generated URL:

\n \n

For more information, see Embedded Analytics in the Amazon QuickSight User\n Guide.

\n

For more information about the high-level steps for embedding and for an interactive demo of the ways you can customize embedding, visit the Amazon QuickSight Developer Portal.

", + "smithy.api#http": { + "method": "POST", + "uri": "/accounts/{AwsAccountId}/embed-url/anonymous-user", + "code": 200 + } + } + }, + "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUserRequest": { + "type": "structure", + "members": { + "AwsAccountId": { + "target": "com.amazonaws.quicksight#AwsAccountId", + "traits": { + "smithy.api#documentation": "

The ID for the Amazon Web Services account that contains the dashboard that you're embedding.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "SessionLifetimeInMinutes": { + "target": "com.amazonaws.quicksight#SessionLifetimeInMinutes", + "traits": { + "smithy.api#documentation": "

How many minutes the session is valid. The session lifetime must be in [15-600] minutes range.

" + } + }, + "Namespace": { + "target": "com.amazonaws.quicksight#Namespace", + "traits": { + "smithy.api#documentation": "

The Amazon QuickSight namespace that the anonymous user virtually belongs to. If you are not using an Amazon QuickSight custom namespace, set this to default.

", + "smithy.api#required": {} + } + }, + "SessionTags": { + "target": "com.amazonaws.quicksight#SessionTagList", + "traits": { + "smithy.api#documentation": "

The session tags used for row-level security. Before you use this parameter, make sure that\n you have configured the relevant datasets using the DataSet$RowLevelPermissionTagConfiguration parameter so that session tags can be used to provide row-level security.

\n

These are not the tags used for the Amazon Web Services resource tagging feature. For more information, see Using Row-Level Security (RLS) with Tags.

" + } + }, + "AuthorizedResourceArns": { + "target": "com.amazonaws.quicksight#ArnList", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Names for the Amazon QuickSight resources that the user is authorized to access during the lifetime of the session. If you choose Dashboard embedding experience, pass the list of dashboard ARNs in the account that you want the user to be able to view.

", + "smithy.api#required": {} + } + }, + "ExperienceConfiguration": { + "target": "com.amazonaws.quicksight#AnonymousUserEmbeddingExperienceConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration of the experience you are embedding.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUserResponse": { + "type": "structure", + "members": { + "EmbedUrl": { + "target": "com.amazonaws.quicksight#EmbeddingUrl", + "traits": { + "smithy.api#documentation": "

The embed URL for the dashboard.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.quicksight#StatusCode", + "traits": { + "smithy.api#documentation": "

The HTTP status of the request.

", + "smithy.api#httpResponseCode": {}, + "smithy.api#required": {} + } + }, + "RequestId": { + "target": "com.amazonaws.quicksight#String", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUser": { + "type": "operation", + "input": { + "target": "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUserRequest" + }, + "output": { + "target": "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUserResponse" + }, + "errors": [ + { + "target": "com.amazonaws.quicksight#AccessDeniedException" + }, + { + "target": "com.amazonaws.quicksight#InternalFailureException" + }, + { + "target": "com.amazonaws.quicksight#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.quicksight#QuickSightUserNotFoundException" + }, + { + "target": "com.amazonaws.quicksight#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException" + }, + { + "target": "com.amazonaws.quicksight#ThrottlingException" + }, + { + "target": "com.amazonaws.quicksight#UnsupportedPricingPlanException" + }, + { + "target": "com.amazonaws.quicksight#UnsupportedUserEditionException" + } + ], + "traits": { + "smithy.api#documentation": "

Generates an embed URL that you can use to embed an Amazon QuickSight experience in your website. This action can be used for any type of user registered in an Amazon QuickSight account. Before you use this action, make sure that you have configured the relevant Amazon QuickSight resource and permissions.

\n

The following rules apply to the generated URL:

\n \n

For more information, see Embedded Analytics in the Amazon QuickSight User\n Guide.

\n

For more information about the high-level steps for embedding and for an interactive demo of the ways you can customize embedding, visit the Amazon QuickSight Developer Portal.

", + "smithy.api#http": { + "method": "POST", + "uri": "/accounts/{AwsAccountId}/embed-url/registered-user", + "code": 200 + } + } + }, + "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUserRequest": { + "type": "structure", + "members": { + "AwsAccountId": { + "target": "com.amazonaws.quicksight#AwsAccountId", + "traits": { + "smithy.api#documentation": "

The ID for the Amazon Web Services account that contains the dashboard that you're embedding.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "SessionLifetimeInMinutes": { + "target": "com.amazonaws.quicksight#SessionLifetimeInMinutes", + "traits": { + "smithy.api#documentation": "

How many minutes the session is valid. The session lifetime must be in [15-600] minutes range.

" + } + }, + "UserArn": { + "target": "com.amazonaws.quicksight#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name for the registered user.

", + "smithy.api#required": {} + } + }, + "ExperienceConfiguration": { + "target": "com.amazonaws.quicksight#RegisteredUserEmbeddingExperienceConfiguration", + "traits": { + "smithy.api#documentation": "

The experience you are embedding. For registered users, you can embed Amazon QuickSight dashboards or the entire Amazon QuickSight console.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUserResponse": { + "type": "structure", + "members": { + "EmbedUrl": { + "target": "com.amazonaws.quicksight#EmbeddingUrl", + "traits": { + "smithy.api#documentation": "

The embed URL for the Amazon QuickSight dashboard or console.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.quicksight#StatusCode", + "traits": { + "smithy.api#documentation": "

The HTTP status of the request.

", + "smithy.api#httpResponseCode": {}, + "smithy.api#required": {} + } + }, + "RequestId": { + "target": "com.amazonaws.quicksight#String", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

", + "smithy.api#required": {} + } + } + } + }, "com.amazonaws.quicksight#GeoSpatialColumnGroup": { "type": "structure", "members": { @@ -8844,7 +9128,7 @@ } ], "traits": { - "smithy.api#documentation": "

Generates a session URL and authorization code that you can use to embed an Amazon\n QuickSight read-only dashboard in your web server code. Before you use this command,\n make sure that you have configured the dashboards and permissions.

\n

Currently, you can use GetDashboardEmbedURL only from the server, not\n from the user's browser. The following rules apply to the combination of URL and\n authorization code:

\n \n

For more information, see Embedded Analytics in the Amazon QuickSight User\n Guide.

", + "smithy.api#documentation": "

Generates a session URL and authorization code that you can use to embed an Amazon\n QuickSight read-only dashboard in your web server code. Before you use this command,\n make sure that you have configured the dashboards and permissions.

\n

Currently, you can use GetDashboardEmbedURL only from the server, not\n from the user's browser. The following rules apply to the combination of URL and\n authorization code:

\n \n

For more information, see Embedded Analytics in the Amazon QuickSight User\n Guide.

\n

For more information about the high-level steps for embedding and for an interactive demo of the ways you can customize embedding, visit the Amazon QuickSight Developer Portal.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url", @@ -8858,7 +9142,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that contains the dashboard that you're embedding.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the dashboard that you're embedding.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -8866,7 +9150,7 @@ "DashboardId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dashboard, also added to the AWS Identity and Access Management (IAM)\n policy.

", + "smithy.api#documentation": "

The ID for the dashboard, also added to the Identity and Access Management (IAM)\n policy.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -8917,7 +9201,7 @@ "Namespace": { "target": "com.amazonaws.quicksight#Namespace", "traits": { - "smithy.api#documentation": "

The QuickSight namespace that contains the dashboard IDs in this request.\n \t If you're not using a custom namespace, set this to \n \t \"default\".

", + "smithy.api#documentation": "

The Amazon QuickSight namespace that the user virtually belongs to. If you are not using an Amazon QuickSight custom namespace, set this to default.

", "smithy.api#httpQuery": "namespace" } }, @@ -8949,7 +9233,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } }, @@ -9009,7 +9293,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account associated with your QuickSight subscription.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; associated with your QuickSight subscription.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -9031,7 +9315,7 @@ "UserArn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type.\n\t\t\tYou can use this for any type of Amazon QuickSight users in your account (readers, authors, or\n\t\t\tadmins). They need to be authenticated as one of the following:

\n\t\t
    \n
  1. \n\t\t\t\t

    Active Directory (AD) users or group members

    \n\t\t\t
  2. \n
  3. \n\t\t\t\t

    Invited nonfederated users

    \n\t\t\t
  4. \n
  5. \n\t\t\t\t

    AWS Identity and Access Management (IAM) users and IAM role-based sessions authenticated\n through Federated Single Sign-On using SAML, OpenID Connect, or IAM\n federation

    \n\t\t\t
  6. \n
\n

Omit this parameter for users in the third group, IAM users and IAM role-based\n sessions.

", + "smithy.api#documentation": "

The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type.\n\t\t\tYou can use this for any type of Amazon QuickSight users in your account (readers, authors, or\n\t\t\tadmins). They need to be authenticated as one of the following:

\n\t\t
    \n
  1. \n\t\t\t\t

    Active Directory (AD) users or group members

    \n\t\t\t
  2. \n
  3. \n\t\t\t\t

    Invited nonfederated users

    \n\t\t\t
  4. \n
  5. \n\t\t\t\t

    Identity and Access Management (IAM) users and IAM role-based sessions authenticated\n through Federated Single Sign-On using SAML, OpenID Connect, or IAM\n federation

    \n\t\t\t
  6. \n
\n

Omit this parameter for users in the third group, IAM users and IAM role-based\n sessions.

", "smithy.api#httpQuery": "user-arn" } } @@ -9056,7 +9340,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -9189,7 +9473,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

" + "smithy.api#documentation": "

The Amazon Web Services account; ID.

" } }, "AssignmentId": { @@ -9224,7 +9508,7 @@ } }, "traits": { - "smithy.api#documentation": "

An AWS Identity and Access Management (IAM) policy assignment.

" + "smithy.api#documentation": "

An Identity and Access Management (IAM) policy assignment.

" } }, "com.amazonaws.quicksight#IAMPolicyAssignmentName": { @@ -9321,7 +9605,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -9786,7 +10070,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -9805,7 +10089,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -9824,7 +10108,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -9950,7 +10234,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -9983,7 +10267,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists Amazon QuickSight analyses that exist in the specified AWS account.

", + "smithy.api#documentation": "

Lists Amazon QuickSight analyses that exist in the specified Amazon Web Services account;.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/analyses", @@ -10002,7 +10286,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the analyses.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analyses.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10049,7 +10333,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -10102,7 +10386,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're listing versions\n for.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're listing versions\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10157,7 +10441,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -10185,7 +10469,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists dashboards in an AWS account.

", + "smithy.api#documentation": "

Lists dashboards in an Amazon Web Services account;.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/dashboards", @@ -10204,7 +10488,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the dashboards that you're\n listing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboards that you're\n listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10232,7 +10516,7 @@ "DashboardSummaryList": { "target": "com.amazonaws.quicksight#DashboardSummaryList", "traits": { - "smithy.api#documentation": "

A structure that contains all of the dashboards in your AWS account. This structure\n provides basic information about the dashboards.

" + "smithy.api#documentation": "

A structure that contains all of the dashboards in your Amazon Web Services account;. This structure\n provides basic information about the dashboards.

" } }, "NextToken": { @@ -10251,7 +10535,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -10282,7 +10566,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all of the datasets belonging to the current AWS account in an AWS Region.

\n\t\t

The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*.

", + "smithy.api#documentation": "

Lists all of the datasets belonging to the current Amazon Web Services account; in an Region;.

\n\t\t

The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/data-sets", @@ -10301,7 +10585,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10341,7 +10625,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -10379,7 +10663,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists data sources in current AWS Region that belong to this AWS account.

", + "smithy.api#documentation": "

Lists data sources in current Region; that belong to this Amazon Web Services account;.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/data-sources", @@ -10398,7 +10682,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10438,7 +10722,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -10726,7 +11010,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10759,7 +11043,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -10820,7 +11104,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -10868,7 +11152,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -10963,7 +11247,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the assignments.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the assignments.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11013,7 +11297,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "NextToken": { @@ -11037,7 +11321,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains these IAM policy assignments.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains these IAM policy assignments.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11091,7 +11375,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -11169,7 +11453,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11202,7 +11486,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -11249,7 +11533,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the namespaces for the specified AWS account.

", + "smithy.api#documentation": "

Lists the namespaces for the specified Amazon Web Services account;.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/namespaces", @@ -11268,7 +11552,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that contains the QuickSight namespaces that you want to list.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the QuickSight namespaces that you want to list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11296,7 +11580,7 @@ "Namespaces": { "target": "com.amazonaws.quicksight#Namespaces", "traits": { - "smithy.api#documentation": "

The information about the namespaces in this AWS account. The response includes \n the namespace ARN, name, AWS Region, notification email address, creation status, and \n identity store.

" + "smithy.api#documentation": "

The information about the namespaces in this Amazon Web Services account;. The response includes \n the namespace ARN, name, Region;, notification email address, creation status, and \n identity store.

" } }, "NextToken": { @@ -11308,7 +11592,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -11379,7 +11663,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -11436,7 +11720,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the template aliases that you're listing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template aliases that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11485,7 +11769,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "NextToken": { @@ -11544,7 +11828,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the templates that you're listing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the templates that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11599,7 +11883,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -11652,7 +11936,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the templates that you're listing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the templates that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11699,7 +11983,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -11750,7 +12034,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme aliases that you're listing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme aliases that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11799,7 +12083,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "NextToken": { @@ -11842,7 +12126,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the versions of the themes in the current AWS account.

", + "smithy.api#documentation": "

Lists all the versions of the themes in the current Amazon Web Services account;.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/themes/{ThemeId}/versions", @@ -11861,7 +12145,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the themes that you're listing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the themes that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11916,7 +12200,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -11953,7 +12237,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the themes in the current AWS account.

", + "smithy.api#documentation": "

Lists all the themes in the current Amazon Web Services account;.

", "smithy.api#http": { "method": "GET", "uri": "/accounts/{AwsAccountId}/themes", @@ -11972,7 +12256,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the themes that you're listing.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the themes that you're listing.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11995,7 +12279,7 @@ "Type": { "target": "com.amazonaws.quicksight#ThemeType", "traits": { - "smithy.api#documentation": "

The type of themes that you want to list. Valid options include the following:

\n \t ", + "smithy.api#documentation": "

The type of themes that you want to list. Valid options include the following:

\n \t ", "smithy.api#httpQuery": "type" } } @@ -12026,7 +12310,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -12085,7 +12369,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID that the user is in. Currently, you use the ID for the AWS account\n\t\t\tthat contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID that the user is in. Currently, you use the ID for the Amazon Web Services account;\n\t\t\tthat contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12133,7 +12417,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -12194,7 +12478,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12242,7 +12526,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -12551,7 +12835,7 @@ "CapacityRegion": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The namespace AWS Region.

" + "smithy.api#documentation": "

The namespace Region;.

" } }, "CreationStatus": { @@ -12854,7 +13138,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -12981,7 +13265,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -13169,6 +13453,12 @@ { "target": "com.amazonaws.quicksight#DescribeUser" }, + { + "target": "com.amazonaws.quicksight#GenerateEmbedUrlForAnonymousUser" + }, + { + "target": "com.amazonaws.quicksight#GenerateEmbedUrlForRegisteredUser" + }, { "target": "com.amazonaws.quicksight#GetDashboardEmbedUrl" }, @@ -13341,7 +13631,7 @@ "name": "quicksight" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "Amazon QuickSight API Reference\n

Amazon QuickSight is a fully managed, serverless business intelligence service for the\n AWS Cloud that makes it easy to extend data and insights to every user in your\n organization. This API reference contains documentation for a programming interface that\n you can use to manage Amazon QuickSight.

", + "smithy.api#documentation": "Amazon QuickSight API Reference\n

Amazon QuickSight is a fully managed, serverless business intelligence service for the\n Cloud that makes it easy to extend data and insights to every user in your\n organization. This API reference contains documentation for a programming interface that\n you can use to manage Amazon QuickSight.

", "smithy.api#title": "Amazon QuickSight" } }, @@ -13495,7 +13785,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -13517,7 +13807,7 @@ "CustomPermissionsName": { "target": "com.amazonaws.quicksight#RoleName", "traits": { - "smithy.api#documentation": "

(Enterprise edition only) The name of the custom permissions profile that you want to\n assign to this user. Customized permissions allows you to control a user's access by\n restricting access the following operations:

\n \n

To add custom permissions to an existing user, use \n UpdateUser\n instead.

\n

A set of custom permissions includes any combination of these restrictions. Currently,\n you need to create the profile names for custom permission sets by using the QuickSight\n console. Then, you use the RegisterUser API operation to assign the named set of\n permissions to a QuickSight user.

\n

QuickSight custom permissions are applied through IAM policies. Therefore, they\n override the permissions typically granted by assigning QuickSight users to one of the\n default security cohorts in QuickSight (admin, author, reader).

\n

This feature is available only to QuickSight Enterprise edition subscriptions that use\n SAML 2.0-Based Federation for Single Sign-On (SSO).

" + "smithy.api#documentation": "

(Enterprise edition only) The name of the custom permissions profile that you want to\n assign to this user. Customized permissions allows you to control a user's access by\n restricting access the following operations:

\n \n

To add custom permissions to an existing user, use \n UpdateUser\n instead.

\n

A set of custom permissions includes any combination of these restrictions. Currently,\n you need to create the profile names for custom permission sets by using the QuickSight\n console. Then, you use the RegisterUser API operation to assign the named set of\n permissions to a QuickSight user.

\n

QuickSight custom permissions are applied through IAM policies. Therefore, they\n override the permissions typically granted by assigning QuickSight users to one of the\n default security cohorts in QuickSight (admin, author, reader).

\n

This feature is available only to QuickSight Enterprise edition subscriptions.

" } }, "ExternalLoginFederationProviderType": { @@ -13558,7 +13848,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -13570,6 +13860,55 @@ } } }, + "com.amazonaws.quicksight#RegisteredUserDashboardEmbeddingConfiguration": { + "type": "structure", + "members": { + "InitialDashboardId": { + "target": "com.amazonaws.quicksight#RestrictiveResourceId", + "traits": { + "smithy.api#documentation": "

The dashboard ID for the dashboard that you want the user to see first. This ID is included in the output URL. When the URL in response is accessed, Amazon QuickSight renders this dashboard if the user has permissions to view it.

\n

If the user does not have permission to view this dashboard, they see a permissions error message.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the dashboard you want to embed.

" + } + }, + "com.amazonaws.quicksight#RegisteredUserEmbeddingExperienceConfiguration": { + "type": "structure", + "members": { + "Dashboard": { + "target": "com.amazonaws.quicksight#RegisteredUserDashboardEmbeddingConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration details for providing a dashboard embedding experience.

" + } + }, + "QuickSightConsole": { + "target": "com.amazonaws.quicksight#RegisteredUserQuickSightConsoleEmbeddingConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration details for providing an Amazon QuickSight console embedding experience. This can be used along with custom permissions to restrict access to certain features. For more information, see Customizing Access to the Amazon QuickSight Console in the Amazon QuickSight User\n Guide.

\n

Use GenerateEmbedUrlForRegisteredUser where\n you want to provide an authoring portal that allows users to create data sources,\n datasets, analyses, and dashboards. The users who accesses an embedded Amazon QuickSight console\n needs to belong to the author or admin security cohort. If you want to restrict permissions\n to some of these features, add a custom permissions profile to the user with the\n \n UpdateUser\n API operation. Use \n RegisterUser\n API operation to add a new user with a custom permission profile attached. For more\n information, see the following sections in the Amazon QuickSight User\n Guide:

\n \n

For more information about the high-level steps for embedding and for an interactive demo of the ways you can customize embedding, visit the Amazon QuickSight Developer Portal.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The type of experience you want to embed. For registered users, you can embed an Amazon QuickSight dashboard or the Amazon QuickSight console.

\n \n

Exactly one of the experience configurations is required. You can choose Dashboard or QuickSightConsole. You cannot choose more than one experience configuraton.

\n
" + } + }, + "com.amazonaws.quicksight#RegisteredUserQuickSightConsoleEmbeddingConfiguration": { + "type": "structure", + "members": { + "InitialPath": { + "target": "com.amazonaws.quicksight#EntryPath", + "traits": { + "smithy.api#documentation": "

The initial URL path for the Amazon QuickSight console. InitialPath is required.

\n

The entry point URL is constrained to the following paths:

\n " + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the Amazon QuickSight console that you want to embed.

" + } + }, "com.amazonaws.quicksight#RelationalTable": { "type": "structure", "members": { @@ -13675,7 +14014,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -13712,7 +14051,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -13728,7 +14067,7 @@ "Principal": { "target": "com.amazonaws.quicksight#Principal", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n ", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n ", "smithy.api#required": {} } }, @@ -13806,7 +14145,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -13859,7 +14198,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the analysis.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -13899,7 +14238,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -13984,6 +14323,12 @@ "traits": { "smithy.api#documentation": "

The user or group rules associated with the dataset that contains permissions for RLS.

\n

By default, FormatVersion is VERSION_1. When FormatVersion is VERSION_1, UserName and GroupName are required. When FormatVersion is VERSION_2, UserARN and GroupARN are required, and Namespace must not exist.

" } + }, + "Status": { + "target": "com.amazonaws.quicksight#Status", + "traits": { + "smithy.api#documentation": "

The status of the row-level security permission dataset. If enabled, the status is ENABLED. If disabled, the status is DISABLED.

" + } } }, "traits": { @@ -14020,6 +14365,82 @@ ] } }, + "com.amazonaws.quicksight#RowLevelPermissionTagConfiguration": { + "type": "structure", + "members": { + "Status": { + "target": "com.amazonaws.quicksight#Status", + "traits": { + "smithy.api#documentation": "

The status of row-level security tags. If enabled, the status is ENABLED. If disabled, the status is DISABLED.

" + } + }, + "TagRules": { + "target": "com.amazonaws.quicksight#RowLevelPermissionTagRuleList", + "traits": { + "smithy.api#documentation": "

A set of rules associated with row-level security, such as the tag names and columns that they are assigned to.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The configuration of tags on a dataset to set row-level security.

" + } + }, + "com.amazonaws.quicksight#RowLevelPermissionTagDelimiter": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 10 + } + } + }, + "com.amazonaws.quicksight#RowLevelPermissionTagRule": { + "type": "structure", + "members": { + "TagKey": { + "target": "com.amazonaws.quicksight#SessionTagKey", + "traits": { + "smithy.api#documentation": "

The unique key for a tag.

", + "smithy.api#required": {} + } + }, + "ColumnName": { + "target": "com.amazonaws.quicksight#String", + "traits": { + "smithy.api#documentation": "

The column name that a tag key is assigned to.

", + "smithy.api#required": {} + } + }, + "TagMultiValueDelimiter": { + "target": "com.amazonaws.quicksight#RowLevelPermissionTagDelimiter", + "traits": { + "smithy.api#documentation": "

A string that you want to use to delimit the values when you pass the values at run time. For example, you can delimit the values with a comma.

" + } + }, + "MatchAllValue": { + "target": "com.amazonaws.quicksight#SessionTagValue", + "traits": { + "smithy.api#documentation": "

A string that you want to use to filter by all the values in a column in the dataset and don’t want to list the values one by one. For example, you can use an asterisk as your match all value.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A set of rules associated with a tag.

" + } + }, + "com.amazonaws.quicksight#RowLevelPermissionTagRuleList": { + "type": "list", + "member": { + "target": "com.amazonaws.quicksight#RowLevelPermissionTagRule" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, "com.amazonaws.quicksight#S3Bucket": { "type": "string", "traits": { @@ -14044,7 +14465,7 @@ "ManifestFileLocation": { "target": "com.amazonaws.quicksight#ManifestFileLocation", "traits": { - "smithy.api#documentation": "

Location of the Amazon S3 manifest file. This is NULL if the manifest file was\n uploaded in the console.

", + "smithy.api#documentation": "

Location of the Amazon S3 manifest file. This is NULL if the manifest file was\n uploaded into QuickSight.

", "smithy.api#required": {} } } @@ -14110,7 +14531,7 @@ } ], "traits": { - "smithy.api#documentation": "

Searches for analyses that belong to the user specified in the filter.

", + "smithy.api#documentation": "

Searches for analyses that belong to the user specified in the filter.

\n \n

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

\n
", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/search/analyses", @@ -14129,7 +14550,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the analyses that you're searching\n for.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analyses that you're searching\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -14181,7 +14602,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -14215,7 +14636,7 @@ } ], "traits": { - "smithy.api#documentation": "

Searches for dashboards that belong to a user.

", + "smithy.api#documentation": "

Searches for dashboards that belong to a user.

\n \n

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

\n
", "smithy.api#http": { "method": "POST", "uri": "/accounts/{AwsAccountId}/search/dashboards", @@ -14234,7 +14655,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the user whose dashboards you're searching\n for.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the user whose dashboards you're searching\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -14286,7 +14707,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -14428,7 +14849,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -14438,6 +14859,59 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.quicksight#SessionTag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.quicksight#SessionTagKey", + "traits": { + "smithy.api#documentation": "

The key for the tag.

", + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.quicksight#SessionTagValue", + "traits": { + "smithy.api#documentation": "

The value that you want to assign the tag.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The key-value pair used for the row-level security tags feature.

" + } + }, + "com.amazonaws.quicksight#SessionTagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + } + } + }, + "com.amazonaws.quicksight#SessionTagList": { + "type": "list", + "member": { + "target": "com.amazonaws.quicksight#SessionTag" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, + "com.amazonaws.quicksight#SessionTagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#sensitive": {} + } + }, "com.amazonaws.quicksight#Sheet": { "type": "structure", "members": { @@ -14455,7 +14929,7 @@ } }, "traits": { - "smithy.api#documentation": "

A sheet, which is an object that contains a set of visuals that\n are viewed together on one page in the Amazon QuickSight console. Every analysis and dashboard\n contains at least one sheet. Each sheet contains at least one visualization widget, for\n example a chart, pivot table, or narrative insight. Sheets can be associated with other\n components, such as controls, filters, and so on.

" + "smithy.api#documentation": "

A sheet, which is an object that contains a set of visuals that\n are viewed together on one page in Amazon QuickSight. Every analysis and dashboard\n contains at least one sheet. Each sheet contains at least one visualization widget, for\n example a chart, pivot table, or narrative insight. Sheets can be associated with other\n components, such as controls, filters, and so on.

" } }, "com.amazonaws.quicksight#SheetControlsOption": { @@ -14616,6 +15090,21 @@ "smithy.api#documentation": "

Secure Socket Layer (SSL) properties that apply when QuickSight connects to your\n underlying data source.

" } }, + "com.amazonaws.quicksight#Status": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ENABLED", + "name": "ENABLED" + }, + { + "value": "DISABLED", + "name": "DISABLED" + } + ] + } + }, "com.amazonaws.quicksight#StatusCode": { "type": "integer" }, @@ -14697,7 +15186,7 @@ "Tags": { "target": "com.amazonaws.quicksight#ColumnTagList", "traits": { - "smithy.api#documentation": "

The dataset column tag, currently only used for geospatial type tagging. .

\n \n

This is not tags for the AWS tagging feature. .

\n
", + "smithy.api#documentation": "

The dataset column tag, currently only used for geospatial type tagging.

\n \n

This is not tags for the Amazon Web Services tagging feature.

\n
", "smithy.api#required": {} } } @@ -14768,7 +15257,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified QuickSight resource.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to\n\t\t\tscope user permissions, by granting a user permission to access or change only resources\n\t\t\twith certain tag values. You can use the TagResource operation with a\n\t\t\tresource that already has tags. If you specify a new tag key for the resource, this tag\n\t\t\tis appended to the list of tags associated with the resource. If you specify a tag key\n\t\t\tthat is already associated with the resource, the new tag value that you specify\n\t\t\treplaces the previous value for that tag.

\n\t\t

You can associate as many as 50 tags with a resource. QuickSight supports tagging on data\n\t\t\tset, data source, dashboard, and template.

\n\t\t

Tagging for QuickSight works in a similar way to tagging for other AWS services, except for\n\t\t\tthe following:

\n\t\t ", + "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified QuickSight resource.

\n\t\t

Tags can help you organize and categorize your resources. You can also use them to\n\t\t\tscope user permissions, by granting a user permission to access or change only resources\n\t\t\twith certain tag values. You can use the TagResource operation with a\n\t\t\tresource that already has tags. If you specify a new tag key for the resource, this tag\n\t\t\tis appended to the list of tags associated with the resource. If you specify a tag key\n\t\t\tthat is already associated with the resource, the new tag value that you specify\n\t\t\treplaces the previous value for that tag.

\n\t\t

You can associate as many as 50 tags with a resource. QuickSight supports tagging on data\n\t\t\tset, data source, dashboard, and template.

\n\t\t

Tagging for QuickSight works in a similar way to tagging for other AWS services, except for\n\t\t\tthe following:

\n\t\t ", "smithy.api#http": { "method": "POST", "uri": "/resources/{ResourceArn}/tags", @@ -14802,7 +15291,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -14847,7 +15336,7 @@ "TemplateId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The ID for the template. This is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID for the template. This is unique per Region; for each Amazon Web Services account;.

" } }, "LastUpdatedTime": { @@ -14864,7 +15353,7 @@ } }, "traits": { - "smithy.api#documentation": "

A template object. A template is an entity in QuickSight that\n encapsulates the metadata required to create an analysis and that you can use to create\n a dashboard. A template adds a layer of abstraction by using placeholders to replace the\n dataset associated with an analysis. You can use templates to create dashboards by\n replacing dataset placeholders with datasets that follow the same schema that was used\n to create the source analysis and template.

\n

You can share templates across AWS accounts by allowing users in other AWS accounts to\n create a template or a dashboard from an existing template.

" + "smithy.api#documentation": "

A template object. A template is an entity in QuickSight that\n encapsulates the metadata required to create an analysis and that you can use to create\n a dashboard. A template adds a layer of abstraction by using placeholders to replace the\n dataset associated with an analysis. You can use templates to create dashboards by\n replacing dataset placeholders with datasets that follow the same schema that was used\n to create the source analysis and template.

\n

You can share templates across Amazon Web Services accounts by allowing users in other Amazon Web Services accounts to\n create a template or a dashboard from an existing template.

" } }, "com.amazonaws.quicksight#TemplateAlias": { @@ -15037,7 +15526,7 @@ "TemplateId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The ID of the template. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID of the template. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "Name": { @@ -15417,7 +15906,7 @@ "ThemeId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The ID of the theme. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID of the theme. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "LatestVersionNumber": { @@ -15589,7 +16078,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -15842,12 +16331,12 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, "traits": { - "smithy.api#documentation": "

This error indicates that you are calling an embedding operation in Amazon QuickSight\n\t\t\twithout the required pricing plan on your AWS account. Before you can use embedding \n\t\t\tfor anonymous users, a QuickSight administrator needs to add capacity pricing to QuickSight. You \n\t\t can do this on the Manage QuickSight page.

\n

After capacity pricing is added, you can use the \n GetDashboardEmbedUrl API operation with the \n --identity-type ANONYMOUS option.

", + "smithy.api#documentation": "

This error indicates that you are calling an embedding operation in Amazon QuickSight\n\t\t\twithout the required pricing plan on your Amazon Web Services account;. Before you can use embedding \n\t\t\tfor anonymous users, a QuickSight administrator needs to add capacity pricing to QuickSight. You \n\t\t can do this on the Manage QuickSight page.

\n

After capacity pricing is added, you can use the \n GetDashboardEmbedUrl API operation with the \n --identity-type ANONYMOUS option.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } @@ -15861,7 +16350,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this request.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this request.

" } } }, @@ -15932,7 +16421,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -15973,7 +16462,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates Amazon QuickSight customizations the current AWS Region. Currently, the only\n customization you can use is a theme.

\n

You can use customizations for your AWS account or, if you specify a namespace, for a\n QuickSight namespace instead. Customizations that apply to a namespace override\n customizations that apply to an AWS account. To find out which customizations apply, use\n the DescribeAccountCustomization API operation.

", + "smithy.api#documentation": "

Updates Amazon QuickSight customizations the current Region;. Currently, the only\n customization you can use is a theme.

\n

You can use customizations for your Amazon Web Services account; or, if you specify a namespace, for a\n QuickSight namespace instead. Customizations that apply to a namespace override\n customizations that apply to an Amazon Web Services account;. To find out which customizations apply, use\n the DescribeAccountCustomization API operation.

", "smithy.api#http": { "method": "PUT", "uri": "/accounts/{AwsAccountId}/customizations", @@ -15987,7 +16476,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that you want to update QuickSight customizations\n for.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to update QuickSight customizations\n for.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16002,7 +16491,7 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations you're updating in the current AWS Region.

", + "smithy.api#documentation": "

The QuickSight customizations you're updating in the current Region;.

", "smithy.api#required": {} } } @@ -16014,13 +16503,13 @@ "Arn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the updated customization for this AWS account.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the updated customization for this Amazon Web Services account;.

" } }, "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that you want to update QuickSight customizations\n for.

" + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that you want to update QuickSight customizations\n for.

" } }, "Namespace": { @@ -16032,13 +16521,13 @@ "AccountCustomization": { "target": "com.amazonaws.quicksight#AccountCustomization", "traits": { - "smithy.api#documentation": "

The QuickSight customizations you're updating in the current AWS Region.

" + "smithy.api#documentation": "

The QuickSight customizations you're updating in the current Region;.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -16079,7 +16568,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the Amazon QuickSight settings in your AWS account.

", + "smithy.api#documentation": "

Updates the Amazon QuickSight settings in your Amazon Web Services account;.

", "smithy.api#http": { "method": "PUT", "uri": "/accounts/{AwsAccountId}/settings", @@ -16093,7 +16582,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that contains the QuickSight settings that you want to\n list.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that contains the QuickSight settings that you want to\n list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16101,14 +16590,14 @@ "DefaultNamespace": { "target": "com.amazonaws.quicksight#Namespace", "traits": { - "smithy.api#documentation": "

The default namespace for this AWS account. Currently, the default is\n default. AWS Identity and Access Management (IAM) users that register\n for the first time with QuickSight provide an email that becomes associated with the\n default namespace.

", + "smithy.api#documentation": "

The default namespace for this Amazon Web Services account;. Currently, the default is\n default. Identity and Access Management (IAM) users that register\n for the first time with QuickSight provide an email that becomes associated with the\n default namespace.

", "smithy.api#required": {} } }, "NotificationEmail": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The email address that you want QuickSight to send notifications to regarding your AWS\n account or QuickSight subscription.

" + "smithy.api#documentation": "

The email address that you want QuickSight to send notifications to regarding your \n Amazon Web Services account; or QuickSight subscription.

" } } } @@ -16119,7 +16608,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -16214,7 +16703,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the analysis whose permissions you're\n updating. You must be using the AWS account that the analysis is in.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis whose permissions you're\n updating. You must be using the Amazon Web Services account; that the analysis is in.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16265,7 +16754,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -16283,7 +16772,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the analysis that you're updating.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the analysis that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16355,7 +16844,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -16392,7 +16881,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates a dashboard in an AWS account.

", + "smithy.api#documentation": "

Updates a dashboard in an Amazon Web Services account;.

\n \n

Updating a Dashboard creates a new dashboard version but does not immediately publish\n the new version. You can update the published version of a dashboard by\n using the UpdateDashboardPublishedVersion API operation.

\n
", "smithy.api#http": { "method": "PUT", "uri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}", @@ -16443,7 +16932,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard whose permissions you're\n updating.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard whose permissions you're\n updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16494,7 +16983,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -16549,7 +17038,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're\n updating.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're\n updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16597,7 +17086,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -16608,7 +17097,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the dashboard that you're\n updating.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the dashboard that you're\n updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16631,7 +17120,7 @@ "SourceEntity": { "target": "com.amazonaws.quicksight#DashboardSourceEntity", "traits": { - "smithy.api#documentation": "

The entity that you are using as a source when you update the dashboard. In\n SourceEntity, you specify the type of object you're using as source. You\n can only update a dashboard from a template, so you use a SourceTemplate\n entity. If you need to update a dashboard from an analysis, first convert the analysis\n to a template by using the CreateTemplate API operation. For\n SourceTemplate, specify the Amazon Resource Name (ARN) of the source\n template. The SourceTemplate ARN can contain any AWS Account and any\n QuickSight-supported AWS Region.

\n

Use the DataSetReferences entity within SourceTemplate to\n list the replacement datasets for the placeholders listed in the original. The schema in\n each dataset must match its placeholder.

", + "smithy.api#documentation": "

The entity that you are using as a source when you update the dashboard. In\n SourceEntity, you specify the type of object you're using as source. You\n can only update a dashboard from a template, so you use a SourceTemplate\n entity. If you need to update a dashboard from an analysis, first convert the analysis\n to a template by using the CreateTemplate API operation. For\n SourceTemplate, specify the Amazon Resource Name (ARN) of the source\n template. The SourceTemplate ARN can contain any Amazon Web Services account; and any\n QuickSight-supported Region;.

\n

Use the DataSetReferences entity within SourceTemplate to\n list the replacement datasets for the placeholders listed in the original. The schema in\n each dataset must match its placeholder.

", "smithy.api#required": {} } }, @@ -16656,7 +17145,7 @@ "ThemeArn": { "target": "com.amazonaws.quicksight#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If\n you add a value for this field, it overrides the value that was originally associated\n with the entity. The theme ARN must exist in the same AWS account where you create the\n dashboard.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If\n you add a value for this field, it overrides the value that was originally associated\n with the entity. The theme ARN must exist in the same Amazon Web Services account; where you create the\n dashboard.

" } } } @@ -16697,7 +17186,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -16788,7 +17277,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16796,7 +17285,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset whose permissions you want to update. This ID is unique per AWS\n\t\t\tRegion for each AWS account.

", + "smithy.api#documentation": "

The ID for the dataset whose permissions you want to update. This ID is unique per \n\t\t\tRegion; for each Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16827,13 +17316,13 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset whose permissions you want to update. This ID is unique per AWS\n\t\t\tRegion for each AWS account.

" + "smithy.api#documentation": "

The ID for the dataset whose permissions you want to update. This ID is unique per \n\t\t\tRegion; for each Amazon Web Services account;.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -16851,7 +17340,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16859,7 +17348,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to update. This ID is unique per AWS Region for each\n\t\t\tAWS account.

", + "smithy.api#documentation": "

The ID for the dataset that you want to update. This ID is unique per Region; for each\n\t\t\tAmazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -16909,6 +17398,12 @@ "smithy.api#documentation": "

The row-level security configuration for the data you want to create.

" } }, + "RowLevelPermissionTagConfiguration": { + "target": "com.amazonaws.quicksight#RowLevelPermissionTagConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.

" + } + }, "ColumnLevelPermissionRules": { "target": "com.amazonaws.quicksight#ColumnLevelPermissionRuleList", "traits": { @@ -16929,7 +17424,7 @@ "DataSetId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID for the dataset that you want to create. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "IngestionArn": { @@ -16947,7 +17442,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -17039,7 +17534,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17047,7 +17542,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17078,13 +17573,13 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -17102,7 +17597,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID.

", + "smithy.api#documentation": "

The Amazon Web Services account; ID.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17110,7 +17605,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

", + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17160,7 +17655,7 @@ "DataSourceId": { "target": "com.amazonaws.quicksight#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the data source. This ID is unique per AWS Region for each AWS account.

" + "smithy.api#documentation": "

The ID of the data source. This ID is unique per Region; for each Amazon Web Services account;.

" } }, "UpdateStatus": { @@ -17172,7 +17667,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -17453,7 +17948,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the group is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17480,7 +17975,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -17538,7 +18033,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the IAM policy assignment.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the IAM policy assignment.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17546,7 +18041,7 @@ "AssignmentName": { "target": "com.amazonaws.quicksight#IAMPolicyAssignmentName", "traits": { - "smithy.api#documentation": "

The name of the assignment, also called a rule. This name must be unique within an AWS account.

", + "smithy.api#documentation": "

The name of the assignment, also called a rule. This name must be unique within an Amazon Web Services account;.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17615,7 +18110,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -17722,7 +18217,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the template alias that you're updating.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template alias that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17771,7 +18266,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -17819,7 +18314,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the template.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17870,7 +18365,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -17888,7 +18383,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the template that you're updating.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the template that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -17904,7 +18399,7 @@ "SourceEntity": { "target": "com.amazonaws.quicksight#TemplateSourceEntity", "traits": { - "smithy.api#documentation": "

The entity that you are using as a source when you update the template. In\n\t\t\tSourceEntity, you specify the type of object you're using as source:\n\t\t\tSourceTemplate for a template or SourceAnalysis for an\n\t\t\tanalysis. Both of these require an Amazon Resource Name (ARN). For\n\t\t\tSourceTemplate, specify the ARN of the source template. For\n\t\t\tSourceAnalysis, specify the ARN of the source analysis. The SourceTemplate\n\t\t\tARN can contain any AWS Account and any QuickSight-supported AWS Region.

\n\t\t

Use the DataSetReferences entity within SourceTemplate or\n\t\t\tSourceAnalysis to list the replacement datasets for the placeholders listed\n\t\t\tin the original. The schema in each dataset must match its placeholder.

", + "smithy.api#documentation": "

The entity that you are using as a source when you update the template. In\n\t\t\tSourceEntity, you specify the type of object you're using as source:\n\t\t\tSourceTemplate for a template or SourceAnalysis for an\n\t\t\tanalysis. Both of these require an Amazon Resource Name (ARN). For\n\t\t\tSourceTemplate, specify the ARN of the source template. For\n\t\t\tSourceAnalysis, specify the ARN of the source analysis. The SourceTemplate\n\t\t\tARN can contain any Amazon Web Services account; and any QuickSight-supported Region;.

\n\t\t

Use the DataSetReferences entity within SourceTemplate or\n\t\t\tSourceAnalysis to list the replacement datasets for the placeholders listed\n\t\t\tin the original. The schema in each dataset must match its placeholder.

", "smithy.api#required": {} } }, @@ -17959,7 +18454,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -18053,7 +18548,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme alias that you're updating.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme alias that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18102,7 +18597,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -18150,7 +18645,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18201,7 +18696,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { @@ -18219,7 +18714,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID of the AWS account that contains the theme that you're updating.

", + "smithy.api#documentation": "

The ID of the Amazon Web Services account; that contains the theme that you're updating.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18241,7 +18736,7 @@ "BaseThemeId": { "target": "com.amazonaws.quicksight#RestrictiveResourceId", "traits": { - "smithy.api#documentation": "

The theme ID, defined by Amazon QuickSight, that a custom theme inherits from.\n\t\tAll themes initially inherit from a default QuickSight theme.

", + "smithy.api#documentation": "

The theme ID, defined by Amazon QuickSight, that a custom theme inherits from.\n\t\tAll themes initially inherit from a default Amazon QuickSight theme.

", "smithy.api#required": {} } }, @@ -18296,7 +18791,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } } } @@ -18355,7 +18850,7 @@ "AwsAccountId": { "target": "com.amazonaws.quicksight#AwsAccountId", "traits": { - "smithy.api#documentation": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS\n\t\t\taccount that contains your Amazon QuickSight account.

", + "smithy.api#documentation": "

The ID for the Amazon Web Services account; that the user is in. Currently, you use the ID for the \n\t\t\tAmazon Web Services account; that contains your Amazon QuickSight account.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -18385,7 +18880,7 @@ "CustomPermissionsName": { "target": "com.amazonaws.quicksight#RoleName", "traits": { - "smithy.api#documentation": "

(Enterprise edition only) The name of the custom permissions profile that you want to\n assign to this user. Customized permissions allows you to control a user's access by\n restricting access the following operations:

\n \n

A set of custom permissions includes any combination of these restrictions. Currently,\n you need to create the profile names for custom permission sets by using the QuickSight\n console. Then, you use the RegisterUser API operation to assign the named set of\n permissions to a QuickSight user.

\n

QuickSight custom permissions are applied through IAM policies. Therefore, they\n override the permissions typically granted by assigning QuickSight users to one of the\n default security cohorts in QuickSight (admin, author, reader).

\n

This feature is available only to QuickSight Enterprise edition subscriptions that use\n SAML 2.0-Based Federation for Single Sign-On (SSO).

" + "smithy.api#documentation": "

(Enterprise edition only) The name of the custom permissions profile that you want to\n assign to this user. Customized permissions allows you to control a user's access by\n restricting access the following operations:

\n \n

A set of custom permissions includes any combination of these restrictions. Currently,\n you need to create the profile names for custom permission sets by using the QuickSight\n console. Then, you use the RegisterUser API operation to assign the named set of\n permissions to a QuickSight user.

\n

QuickSight custom permissions are applied through IAM policies. Therefore, they\n override the permissions typically granted by assigning QuickSight users to one of the\n default security cohorts in QuickSight (admin, author, reader).

\n

This feature is available only to QuickSight Enterprise edition subscriptions.

" } }, "UnapplyCustomPermissions": { @@ -18426,7 +18921,7 @@ "RequestId": { "target": "com.amazonaws.quicksight#String", "traits": { - "smithy.api#documentation": "

The AWS request ID for this operation.

" + "smithy.api#documentation": "

The Amazon Web Services request ID for this operation.

" } }, "Status": { diff --git a/codegen/sdk-codegen/aws-models/rds.2014-10-31.json b/codegen/sdk-codegen/aws-models/rds.2014-10-31.json index d3673b3a1c5..2bb3a2be76e 100644 --- a/codegen/sdk-codegen/aws-models/rds.2014-10-31.json +++ b/codegen/sdk-codegen/aws-models/rds.2014-10-31.json @@ -6946,7 +6946,7 @@ "SnapshotCreateTime": { "target": "com.amazonaws.rds#TStamp", "traits": { - "smithy.api#documentation": "

Specifies when the snapshot was taken in Coordinated Universal Time (UTC).

" + "smithy.api#documentation": "

Specifies when the snapshot was taken in Coordinated Universal Time (UTC). Changes for the copy when the snapshot is copied.

" } }, "Engine": { @@ -7042,7 +7042,7 @@ "SourceDBSnapshotIdentifier": { "target": "com.amazonaws.rds#String", "traits": { - "smithy.api#documentation": "

The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. It only has value in case of cross-customer or cross-region copy.

" + "smithy.api#documentation": "

The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. It only has a value in the case of a cross-account or cross-Region copy.

" } }, "StorageType": { @@ -7101,6 +7101,12 @@ }, "TagList": { "target": "com.amazonaws.rds#TagList" + }, + "OriginalSnapshotCreateTime": { + "target": "com.amazonaws.rds#TStamp", + "traits": { + "smithy.api#documentation": "

Specifies the time of the CreateDBSnapshot operation in Coordinated Universal Time (UTC). Doesn't change when the snapshot is copied.

" + } } }, "traits": { @@ -8826,7 +8832,7 @@ "Filters": { "target": "com.amazonaws.rds#FilterList", "traits": { - "smithy.api#documentation": "

A filter that specifies one or more DB clusters to describe.

\n

Supported filters:

\n " + "smithy.api#documentation": "

A filter that specifies one or more DB clusters to describe.

\n

Supported filters:

\n " } }, "MaxRecords": { @@ -9023,6 +9029,9 @@ "items": "DBInstances", "pageSize": "MaxRecords" }, + "smithy.api#suppress": [ + "WaitableTraitInvalidErrorType" + ], "smithy.waiters#waitable": { "DBInstanceAvailable": { "acceptors": [ @@ -9088,6 +9097,67 @@ } ], "minDelay": 30 + }, + "DBInstanceDeleted": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "length(DBInstances) == `0`", + "expected": "true", + "comparator": "booleanEquals" + } + } + }, + { + "state": "success", + "matcher": { + "errorType": "DBInstanceNotFound" + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "DBInstances[].DBInstanceStatus", + "expected": "creating", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "DBInstances[].DBInstanceStatus", + "expected": "modifying", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "DBInstances[].DBInstanceStatus", + "expected": "rebooting", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "DBInstances[].DBInstanceStatus", + "expected": "resetting-master-credentials", + "comparator": "anyStringEquals" + } + } + } + ], + "minDelay": 30 } } } @@ -9797,6 +9867,9 @@ "items": "DBSnapshots", "pageSize": "MaxRecords" }, + "smithy.api#suppress": [ + "WaitableTraitInvalidErrorType" + ], "smithy.waiters#waitable": { "DBSnapshotAvailable": { "acceptors": [ @@ -9862,6 +9935,67 @@ } ], "minDelay": 30 + }, + "DBSnapshotDeleted": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "length(DBSnapshots) == `0`", + "expected": "true", + "comparator": "booleanEquals" + } + } + }, + { + "state": "success", + "matcher": { + "errorType": "DBSnapshotNotFound" + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "DBSnapshots[].Status", + "expected": "creating", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "DBSnapshots[].Status", + "expected": "modifying", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "DBSnapshots[].Status", + "expected": "rebooting", + "comparator": "anyStringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "DBSnapshots[].Status", + "expected": "resetting-master-credentials", + "comparator": "anyStringEquals" + } + } + } + ], + "minDelay": 30 } } } @@ -10355,7 +10489,7 @@ "Filters": { "target": "com.amazonaws.rds#FilterList", "traits": { - "smithy.api#documentation": "

A filter that specifies one or more global DB clusters to describe.

\n

Supported filters:

\n " + "smithy.api#documentation": "

This parameter isn't currently supported.

" } }, "MaxRecords": { diff --git a/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json b/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json index 9b4600e23bc..18019eb0e16 100644 --- a/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json +++ b/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json @@ -14,6 +14,143 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.redshiftdata#BatchExecuteStatement": { + "type": "operation", + "input": { + "target": "com.amazonaws.redshiftdata#BatchExecuteStatementInput" + }, + "output": { + "target": "com.amazonaws.redshiftdata#BatchExecuteStatementOutput" + }, + "errors": [ + { + "target": "com.amazonaws.redshiftdata#ActiveStatementsExceededException" + }, + { + "target": "com.amazonaws.redshiftdata#BatchExecuteStatementException" + }, + { + "target": "com.amazonaws.redshiftdata#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Runs one or more SQL statements, which can be data manipulation language (DML) or data definition\n language (DDL). \n Depending on the authorization\n method, use one of the following combinations of request parameters:

\n " + } + }, + "com.amazonaws.redshiftdata#BatchExecuteStatementException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.redshiftdata#String", + "traits": { + "smithy.api#required": {} + } + }, + "StatementId": { + "target": "com.amazonaws.redshiftdata#String", + "traits": { + "smithy.api#documentation": "

Statement identifier of the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An SQL statement encountered an environmental error while running.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.redshiftdata#BatchExecuteStatementInput": { + "type": "structure", + "members": { + "Sqls": { + "target": "com.amazonaws.redshiftdata#SqlList", + "traits": { + "smithy.api#documentation": "

One or more SQL statements to run.

", + "smithy.api#required": {} + } + }, + "ClusterIdentifier": { + "target": "com.amazonaws.redshiftdata#Location", + "traits": { + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", + "smithy.api#required": {} + } + }, + "SecretArn": { + "target": "com.amazonaws.redshiftdata#SecretArn", + "traits": { + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" + } + }, + "DbUser": { + "target": "com.amazonaws.redshiftdata#String", + "traits": { + "smithy.api#documentation": "

The database user name. This parameter is required when authenticating using temporary credentials.

" + } + }, + "Database": { + "target": "com.amazonaws.redshiftdata#String", + "traits": { + "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", + "smithy.api#required": {} + } + }, + "WithEvent": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.

" + } + }, + "StatementName": { + "target": "com.amazonaws.redshiftdata#StatementNameString", + "traits": { + "smithy.api#documentation": "

The name of the SQL statements. You can name the SQL statements when you create them to identify the query.

" + } + } + } + }, + "com.amazonaws.redshiftdata#BatchExecuteStatementOutput": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.redshiftdata#StatementId", + "traits": { + "smithy.api#documentation": "

The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by BatchExecuteStatment.

" + } + }, + "CreatedAt": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The date and time (UTC) the statement was created.

" + } + }, + "ClusterIdentifier": { + "target": "com.amazonaws.redshiftdata#Location", + "traits": { + "smithy.api#documentation": "

The cluster identifier.

" + } + }, + "DbUser": { + "target": "com.amazonaws.redshiftdata#String", + "traits": { + "smithy.api#documentation": "

The database user name.

" + } + }, + "Database": { + "target": "com.amazonaws.redshiftdata#String", + "traits": { + "smithy.api#documentation": "

The name of the database.

" + } + }, + "SecretArn": { + "target": "com.amazonaws.redshiftdata#SecretArn", + "traits": { + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database.

" + } + } + } + }, "com.amazonaws.redshiftdata#Blob": { "type": "blob" }, @@ -49,6 +186,9 @@ }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { @@ -59,9 +199,9 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#UUID", + "target": "com.amazonaws.redshiftdata#StatementId", "traits": { - "smithy.api#documentation": "

The identifier of the SQL statement to cancel. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by ExecuteStatment and ListStatements.

", + "smithy.api#documentation": "

The identifier of the SQL statement to cancel. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by BatchExecuteStatment, ExecuteStatment, and ListStatements.

", "smithy.api#required": {} } } @@ -210,9 +350,9 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#UUID", + "target": "com.amazonaws.redshiftdata#StatementId", "traits": { - "smithy.api#documentation": "

The identifier of the SQL statement to describe. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by ExecuteStatment and ListStatements.

", + "smithy.api#documentation": "

The identifier of the SQL statement to describe. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n A suffix indicates the number of the SQL statement.\n For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.\n This identifier is returned by BatchExecuteStatment, ExecuteStatement, and ListStatements.

", "smithy.api#required": {} } } @@ -222,18 +362,12 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#UUID", + "target": "com.amazonaws.redshiftdata#StatementId", "traits": { "smithy.api#documentation": "

The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

", "smithy.api#required": {} } }, - "QueryString": { - "target": "com.amazonaws.redshiftdata#StatementString", - "traits": { - "smithy.api#documentation": "

The SQL statement text.

" - } - }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { @@ -258,18 +392,6 @@ "smithy.api#documentation": "

The cluster identifier.

" } }, - "ResultRows": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

Either the number of rows returned from the SQL statement or the number of rows affected.\n If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others.

" - } - }, - "ResultSize": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

The size in bytes of the returned results.

" - } - }, "Duration": { "target": "com.amazonaws.redshiftdata#Long", "traits": { @@ -300,12 +422,6 @@ "smithy.api#documentation": "

The date and time (UTC) that the metadata for the SQL statement was last updated. An\n example is the time the status last changed.

" } }, - "RedshiftQueryId": { - "target": "com.amazonaws.redshiftdata#Long", - "traits": { - "smithy.api#documentation": "

The identifier of the query generated by Amazon Redshift. \n These identifiers are also available in the query column of the STL_QUERY system view.

" - } - }, "RedshiftPid": { "target": "com.amazonaws.redshiftdata#Long", "traits": { @@ -318,11 +434,41 @@ "smithy.api#documentation": "

A value that indicates whether the statement has a result set. The result set can be empty.

" } }, + "QueryString": { + "target": "com.amazonaws.redshiftdata#StatementString", + "traits": { + "smithy.api#documentation": "

The SQL statement text.

" + } + }, + "ResultRows": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

Either the number of rows returned from the SQL statement or the number of rows affected.\n If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. \n A -1 indicates the value is null.

" + } + }, + "ResultSize": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

The size in bytes of the returned results. A -1 indicates the value is null.

" + } + }, + "RedshiftQueryId": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

The identifier of the query generated by Amazon Redshift. \n These identifiers are also available in the query column of the STL_QUERY system view.

" + } + }, "QueryParameters": { "target": "com.amazonaws.redshiftdata#SqlParametersList", "traits": { "smithy.api#documentation": "

The parameters for the SQL statement.

" } + }, + "SubStatements": { + "target": "com.amazonaws.redshiftdata#SubStatementList", + "traits": { + "smithy.api#documentation": "

The SQL statements from a multiple statement run.

" + } } } }, @@ -343,7 +489,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes the detailed information about a table from metadata in the cluster. The\n information includes its columns. \n A token is returned to page through the column list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", + "smithy.api#documentation": "

Describes the detailed information about a table from metadata in the cluster. The\n information includes its columns. \n A token is returned to page through the column list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -359,14 +505,14 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { @@ -457,7 +603,7 @@ } ], "traits": { - "smithy.api#documentation": "

Runs an SQL statement, which can be data manipulation language (DML) or data definition\n language (DDL). This statement must be a single SQL statement. \n Depending on the authorization\n method, use one of the following combinations of request parameters:

\n " + "smithy.api#documentation": "

Runs an SQL statement, which can be data manipulation language (DML) or data definition\n language (DDL). This statement must be a single SQL statement. \n Depending on the authorization\n method, use one of the following combinations of request parameters:

\n " } }, "com.amazonaws.redshiftdata#ExecuteStatementException": { @@ -497,14 +643,14 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { @@ -516,7 +662,8 @@ "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using temporary credentials.

" + "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", + "smithy.api#required": {} } }, "WithEvent": { @@ -543,9 +690,9 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#UUID", + "target": "com.amazonaws.redshiftdata#StatementId", "traits": { - "smithy.api#documentation": "

The identifier of the statement to be run. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

" + "smithy.api#documentation": "

The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

" } }, "CreatedAt": { @@ -663,9 +810,9 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#UUID", + "target": "com.amazonaws.redshiftdata#StatementId", "traits": { - "smithy.api#documentation": "

The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n This identifier is returned by ExecuteStatment and ListStatements.

", + "smithy.api#documentation": "

The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n A suffix indicates then number of the SQL statement.\n For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.\n This identifier is returned by BatchExecuteStatment, ExecuteStatment, and ListStatements.

", "smithy.api#required": {} } }, @@ -744,7 +891,7 @@ } ], "traits": { - "smithy.api#documentation": "

List the databases in a cluster. \n A token is returned to page through the database list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", + "smithy.api#documentation": "

List the databases in a cluster. \n A token is returned to page through the database list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -760,20 +907,21 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using temporary credentials.

" + "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", + "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { @@ -830,7 +978,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the schemas in a database. \n A token is returned to page through the schema list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", + "smithy.api#documentation": "

Lists the schemas in a database. \n A token is returned to page through the schema list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -846,14 +994,14 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { @@ -966,7 +1114,7 @@ "StatementName": { "target": "com.amazonaws.redshiftdata#StatementNameString", "traits": { - "smithy.api#documentation": "

The name of the SQL statement specified as input to ExecuteStatement to identify the query. \n You can list multiple statements by providing a prefix that matches the beginning of the statement name. \n For example, to list myStatement1, myStatement2, myStatement3, and so on, then provide the a value of myStatement. \n Data API does a case-sensitive match of SQL statement names to the prefix value you provide.

" + "smithy.api#documentation": "

The name of the SQL statement specified as input to BatchExecuteStatement or ExecuteStatement to identify the query. \n You can list multiple statements by providing a prefix that matches the beginning of the statement name. \n For example, to list myStatement1, myStatement2, myStatement3, and so on, then provide the a value of myStatement. \n Data API does a case-sensitive match of SQL statement names to the prefix value you provide.

" } }, "Status": { @@ -1018,7 +1166,7 @@ } ], "traits": { - "smithy.api#documentation": "

List the tables in a database. If neither SchemaPattern nor TablePattern are specified, then \n all tables in the database are returned.\n A token is returned to page through the table list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", + "smithy.api#documentation": "

List the tables in a database. If neither SchemaPattern nor TablePattern are specified, then \n all tables in the database are returned.\n A token is returned to page through the table list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1034,14 +1182,14 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.

", + "smithy.api#documentation": "

The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

", "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { - "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.

" + "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { @@ -1139,6 +1287,9 @@ "type": "service", "version": "2019-12-20", "operations": [ + { + "target": "com.amazonaws.redshiftdata#BatchExecuteStatement" + }, { "target": "com.amazonaws.redshiftdata#CancelStatement" }, @@ -1180,7 +1331,7 @@ }, "aws.protocols#awsJson1_1": {}, "smithy.api#cors": {}, - "smithy.api#documentation": "

You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You\n can run individual SQL statements, which are committed if the statement succeeds.

\n

For more information about the Amazon Redshift Data API, see \n Using the Amazon Redshift Data API in the \n Amazon Redshift Cluster Management Guide.

", + "smithy.api#documentation": "

You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You\n can run SQL statements, which are committed if the statement succeeds.

\n

For more information about the Amazon Redshift Data API, see \n Using the Amazon Redshift Data API in the \n Amazon Redshift Cluster Management Guide.

", "smithy.api#title": "Redshift Data API Service" } }, @@ -1217,6 +1368,18 @@ "com.amazonaws.redshiftdata#SecretArn": { "type": "string" }, + "com.amazonaws.redshiftdata#SqlList": { + "type": "list", + "member": { + "target": "com.amazonaws.redshiftdata#StatementString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 40 + } + } + }, "com.amazonaws.redshiftdata#SqlParameter": { "type": "structure", "members": { @@ -1260,7 +1423,7 @@ "type": "structure", "members": { "Id": { - "target": "com.amazonaws.redshiftdata#UUID", + "target": "com.amazonaws.redshiftdata#StatementId", "traits": { "smithy.api#documentation": "

The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

", "smithy.api#required": {} @@ -1272,6 +1435,12 @@ "smithy.api#documentation": "

The SQL statement.

" } }, + "QueryStrings": { + "target": "com.amazonaws.redshiftdata#StatementStringList", + "traits": { + "smithy.api#documentation": "

One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.

" + } + }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { @@ -1307,12 +1476,24 @@ "traits": { "smithy.api#documentation": "

The parameters used in a SQL statement.

" } + }, + "IsBatchStatement": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

A value that indicates whether the statement is a batch query request.

" + } } }, "traits": { "smithy.api#documentation": "

The SQL statement to run.

" } }, + "com.amazonaws.redshiftdata#StatementId": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[a-z0-9]{8}(-[a-z0-9]{4}){3}-[a-z0-9]{12}(:\\d+)?$" + } + }, "com.amazonaws.redshiftdata#StatementList": { "type": "list", "member": { @@ -1327,9 +1508,46 @@ } } }, + "com.amazonaws.redshiftdata#StatementStatusString": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SUBMITTED", + "name": "SUBMITTED" + }, + { + "value": "PICKED", + "name": "PICKED" + }, + { + "value": "STARTED", + "name": "STARTED" + }, + { + "value": "FINISHED", + "name": "FINISHED" + }, + { + "value": "ABORTED", + "name": "ABORTED" + }, + { + "value": "FAILED", + "name": "FAILED" + } + ] + } + }, "com.amazonaws.redshiftdata#StatementString": { "type": "string" }, + "com.amazonaws.redshiftdata#StatementStringList": { + "type": "list", + "member": { + "target": "com.amazonaws.redshiftdata#StatementString" + } + }, "com.amazonaws.redshiftdata#StatusString": { "type": "string", "traits": { @@ -1368,6 +1586,87 @@ "com.amazonaws.redshiftdata#String": { "type": "string" }, + "com.amazonaws.redshiftdata#SubStatementData": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.redshiftdata#StatementId", + "traits": { + "smithy.api#documentation": "

The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n A suffix indicates the number of the SQL statement.\n For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.

", + "smithy.api#required": {} + } + }, + "Duration": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

The amount of time in nanoseconds that the statement ran.

" + } + }, + "Error": { + "target": "com.amazonaws.redshiftdata#String", + "traits": { + "smithy.api#documentation": "

The error message from the cluster if the SQL statement encountered an error while running.

" + } + }, + "Status": { + "target": "com.amazonaws.redshiftdata#StatementStatusString", + "traits": { + "smithy.api#documentation": "

The status of the SQL statement. An\n example is the that the SQL statement finished.\n

" + } + }, + "CreatedAt": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The date and time (UTC) the statement was created.

" + } + }, + "UpdatedAt": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The date and time (UTC) that the statement metadata was last updated.

" + } + }, + "QueryString": { + "target": "com.amazonaws.redshiftdata#StatementString", + "traits": { + "smithy.api#documentation": "

The SQL statement text.

" + } + }, + "ResultRows": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

Either the number of rows returned from the SQL statement or the number of rows affected. \n If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others.\n A -1 indicates the value is null.

" + } + }, + "ResultSize": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

The size in bytes of the returned results. A -1 indicates the value is null.

" + } + }, + "RedshiftQueryId": { + "target": "com.amazonaws.redshiftdata#Long", + "traits": { + "smithy.api#documentation": "

The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

" + } + }, + "HasResultSet": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

A value that indicates whether the statement has a result set. The result set can be empty.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about an SQL statement.

" + } + }, + "com.amazonaws.redshiftdata#SubStatementList": { + "type": "list", + "member": { + "target": "com.amazonaws.redshiftdata#SubStatementData" + } + }, "com.amazonaws.redshiftdata#TableList": { "type": "list", "member": { @@ -1400,9 +1699,6 @@ "smithy.api#documentation": "

The properties of a table.

" } }, - "com.amazonaws.redshiftdata#UUID": { - "type": "string" - }, "com.amazonaws.redshiftdata#ValidationException": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/robomaker.2018-06-29.json b/codegen/sdk-codegen/aws-models/robomaker.2018-06-29.json index a8b4f8b2829..da82ed1e348 100644 --- a/codegen/sdk-codegen/aws-models/robomaker.2018-06-29.json +++ b/codegen/sdk-codegen/aws-models/robomaker.2018-06-29.json @@ -55,7 +55,7 @@ "min": 1, "max": 1224 }, - "smithy.api#pattern": "arn:.*" + "smithy.api#pattern": "^arn:" } }, "com.amazonaws.robomaker#Arns": { @@ -458,7 +458,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "[a-zA-Z0-9_\\-=]*" + "smithy.api#pattern": "^[a-zA-Z0-9_\\-=]*$" } }, "com.amazonaws.robomaker#Command": { @@ -468,7 +468,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "[a-zA-Z0-9_.\\-]*" + "smithy.api#pattern": "^[a-zA-Z0-9_.\\-]*$" } }, "com.amazonaws.robomaker#Compute": { @@ -2573,7 +2573,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "[0-9]*" + "smithy.api#pattern": "^[0-9]*$" } }, "com.amazonaws.robomaker#DeregisterRobot": { @@ -3756,6 +3756,12 @@ "traits": { "smithy.api#documentation": "

A map that contains tag keys and tag values that are attached to the world.

" } + }, + "worldDescriptionBody": { + "target": "com.amazonaws.robomaker#Json", + "traits": { + "smithy.api#documentation": "

Returns the JSON formatted string that describes the contents of your world.

" + } } } }, @@ -3840,6 +3846,12 @@ "traits": { "smithy.api#documentation": "

A map that contains tag keys and tag values that are attached to the world\n template.

" } + }, + "version": { + "target": "com.amazonaws.robomaker#GenericString", + "traits": { + "smithy.api#documentation": "

The version of the world template that you're using.

" + } } } }, @@ -3850,7 +3862,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": "[A-Z_][A-Z0-9_]*" + "smithy.api#pattern": "^[A-Z_][A-Z0-9_]*$" } }, "com.amazonaws.robomaker#EnvironmentVariableMap": { @@ -4183,7 +4195,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "arn:aws:iam::\\w+:role/.*" + "smithy.api#pattern": "^arn:aws:iam::\\w+:role/" } }, "com.amazonaws.robomaker#Id": { @@ -4254,7 +4266,7 @@ "min": 1, "max": 262144 }, - "smithy.api#pattern": "[\\S\\s]+" + "smithy.api#pattern": "^[\\S\\s]+$" } }, "com.amazonaws.robomaker#LastStartedAt": { @@ -5223,7 +5235,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "[a-zA-Z0-9_\\-]*" + "smithy.api#pattern": "^[a-zA-Z0-9_\\-]*$" } }, "com.amazonaws.robomaker#NetworkInterface": { @@ -5259,7 +5271,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": ".+" + "smithy.api#pattern": "^.+$" } }, "com.amazonaws.robomaker#NonSystemPort": { @@ -5298,7 +5310,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "[a-zA-Z0-9_.\\-\\/+=]*" + "smithy.api#pattern": "^[a-zA-Z0-9_.\\-\\/+=]*$" } }, "com.amazonaws.robomaker#Path": { @@ -5534,7 +5546,7 @@ "min": 1, "max": 4 }, - "smithy.api#pattern": "1.x" + "smithy.api#pattern": "^1.x$" } }, "com.amazonaws.robomaker#ResourceAlreadyExistsException": { @@ -5620,7 +5632,7 @@ "min": 1, "max": 40 }, - "smithy.api#pattern": "[a-zA-Z0-9_.\\-]*" + "smithy.api#pattern": "^[a-zA-Z0-9_.\\-]*$" } }, "com.amazonaws.robomaker#Robot": { @@ -6008,7 +6020,7 @@ "min": 3, "max": 63 }, - "smithy.api#pattern": "[a-z0-9][a-z0-9.\\-]*[a-z0-9]" + "smithy.api#pattern": "^[a-z0-9][a-z0-9.\\-]*[a-z0-9]$" } }, "com.amazonaws.robomaker#S3Etag": { @@ -6851,7 +6863,7 @@ "min": 0, "max": 1024 }, - "smithy.api#pattern": "7|9|11|Kinetic|Melodic|Dashing|Foxy" + "smithy.api#pattern": "^7|9|11|Kinetic|Melodic|Dashing|Foxy$" } }, "com.amazonaws.robomaker#SimulationTimeMillis": { @@ -7205,7 +7217,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9 _.\\-\\/+=:]*" + "smithy.api#pattern": "^[a-zA-Z0-9 _.\\-\\/+=:]*$" } }, "com.amazonaws.robomaker#TagKeyList": { @@ -7291,7 +7303,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": "[a-zA-Z0-9 _.\\-\\/+=:]*" + "smithy.api#pattern": "^[a-zA-Z0-9 _.\\-\\/+=:]*$" } }, "com.amazonaws.robomaker#TemplateLocation": { @@ -7358,6 +7370,12 @@ "traits": { "smithy.api#documentation": "

The name of the template.

" } + }, + "version": { + "target": "com.amazonaws.robomaker#GenericString", + "traits": { + "smithy.api#documentation": "

The version of the template that you're using.

" + } } }, "traits": { @@ -7958,7 +7976,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "(\\$LATEST)|[0-9]*" + "smithy.api#pattern": "^(\\$LATEST)|[0-9]*$" } }, "com.amazonaws.robomaker#VersionQualifier": { @@ -7968,7 +7986,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "ALL" + "smithy.api#pattern": "^ALL$" } }, "com.amazonaws.robomaker#WorldConfig": { diff --git a/codegen/sdk-codegen/aws-models/route53.2013-04-01.json b/codegen/sdk-codegen/aws-models/route53.2013-04-01.json index bc57aec1d67..bb543367718 100644 --- a/codegen/sdk-codegen/aws-models/route53.2013-04-01.json +++ b/codegen/sdk-codegen/aws-models/route53.2013-04-01.json @@ -309,6 +309,9 @@ { "target": "com.amazonaws.route53#ConcurrentModification" }, + { + "target": "com.amazonaws.route53#InvalidInput" + }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -403,27 +406,27 @@ "HostedZoneId": { "target": "com.amazonaws.route53#ResourceId", "traits": { - "smithy.api#documentation": "

\n Alias resource records sets only: The value used depends on where you want to route traffic:

\n\t\t
\n
Amazon API Gateway custom regional APIs and edge-optimized APIs
\n
\n

Specify the hosted zone ID for your API. You can get the applicable value using the AWS CLI command \n\t\t\t\t\tget-domain-names:

\n\t\t\t\t\t \n\t\t\t\t
\n
Amazon Virtual Private Cloud interface VPC endpoint
\n
\n

Specify the hosted zone ID for your interface endpoint. You can get the value of HostedZoneId \n\t\t\t\t\tusing the AWS CLI command \n\t\t\t\t\tdescribe-vpc-endpoints.

\n\t\t\t\t
\n
CloudFront distribution
\n
\n\t\t\t\t\t

Specify Z2FDTNDATAQYW2.

\n\t\t\t\t\t \n\t\t\t\t\t\t

Alias resource record sets for CloudFront can't be created in a private zone.

\n\t\t\t\t\t
\n\t\t\t\t
\n
Elastic Beanstalk environment
\n
\n\t\t\t\t\t

Specify the hosted zone ID for the region that you created the environment in. The environment \n\t\t\t\t\t\tmust have a regionalized subdomain. For a list of regions and the corresponding hosted zone IDs, see \n\t\t\t\t\t AWS Elastic Beanstalk endpoints and quotas in the \n\t\t\t\t\t\t the Amazon Web Services General Reference.

\n\t\t\t\t
\n
ELB load balancer
\n
\n\t\t\t\t\t

Specify the value of the hosted zone ID for the load balancer. Use the following methods to get the \n\t\t\t\t\t\thosted zone ID:

\n\t\t\t\t\t \n\t\t\t\t
\n
AWS Global Accelerator accelerator
\n
\n

Specify Z2BJ6XQ5FK7U4H.

\n
\n
An Amazon S3 bucket configured as a static website
\n
\n\t\t\t\t\t

Specify the hosted zone ID for the region that you created the bucket in. For more information about \n\t\t\t\t\t\tvalid values, see the table \n\t\t\t\t\t\tAmazon S3 Website Endpoints \n\t\t\t\t\t\tin the Amazon Web Services General Reference.

\n\t\t\t\t
\n
Another Route 53 resource record set in your hosted zone
\n
\n\t\t\t\t\t

Specify the hosted zone ID of your hosted zone. (An alias resource record set\n\t\t\t\t\t\tcan't reference a resource record set in a different hosted zone.)

\n\t\t\t\t
\n
", + "smithy.api#documentation": "

\n Alias resource records sets only: The value used depends on where you want to route traffic:

\n\t\t
\n
Amazon API Gateway custom regional APIs and edge-optimized APIs
\n
\n

Specify the hosted zone ID for your API. You can get the applicable value using the CLI command \n\t\t\t\t\tget-domain-names:

\n\t\t\t\t\t \n\t\t\t\t
\n
Amazon Virtual Private Cloud interface VPC endpoint
\n
\n

Specify the hosted zone ID for your interface endpoint. You can get the value of HostedZoneId \n\t\t\t\t\tusing the CLI command \n\t\t\t\t\tdescribe-vpc-endpoints.

\n\t\t\t\t
\n
CloudFront distribution
\n
\n\t\t\t\t\t

Specify Z2FDTNDATAQYW2.

\n\t\t\t\t\t \n\t\t\t\t\t\t

Alias resource record sets for CloudFront can't be created in a private zone.

\n\t\t\t\t\t
\n\t\t\t\t
\n
Elastic Beanstalk environment
\n
\n\t\t\t\t\t

Specify the hosted zone ID for the region that you created the environment in. The environment \n\t\t\t\t\t\tmust have a regionalized subdomain. For a list of regions and the corresponding hosted zone IDs, see \n\t\t\t\t\t Elastic Beanstalk endpoints and quotas in the \n\t\t\t\t\t\t the Amazon Web Services General Reference.

\n\t\t\t\t
\n
ELB load balancer
\n
\n\t\t\t\t\t

Specify the value of the hosted zone ID for the load balancer. Use the following methods to get the \n\t\t\t\t\t\thosted zone ID:

\n\t\t\t\t\t \n\t\t\t\t
\n
Global Accelerator accelerator
\n
\n

Specify Z2BJ6XQ5FK7U4H.

\n
\n
An Amazon S3 bucket configured as a static website
\n
\n\t\t\t\t\t

Specify the hosted zone ID for the region that you created the bucket in. For more information about \n\t\t\t\t\t\tvalid values, see the table \n\t\t\t\t\t\tAmazon S3 Website Endpoints \n\t\t\t\t\t\tin the Amazon Web Services General Reference.

\n\t\t\t\t
\n
Another Route 53 resource record set in your hosted zone
\n
\n\t\t\t\t\t

Specify the hosted zone ID of your hosted zone. (An alias resource record set\n\t\t\t\t\t\tcan't reference a resource record set in a different hosted zone.)

\n\t\t\t\t
\n
", "smithy.api#required": {} } }, "DNSName": { "target": "com.amazonaws.route53#DNSName", "traits": { - "smithy.api#documentation": "

\n Alias resource record sets only: The value that you specify depends on where you want to route queries:

\n\t\t
\n
Amazon API Gateway custom regional APIs and edge-optimized APIs
\n
\n

Specify the applicable domain name for your API. You can get the applicable value using the AWS CLI command \n\t\t\t\t\tget-domain-names:

\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t

The name of the record that you're creating must match a custom domain name for your API, such as \n\t\t\t\t\t\t\tapi.example.com.

\n\t\t\t\t\t
\n\t\t\t\t
\n
Amazon Virtual Private Cloud interface VPC endpoint
\n
\n

Enter the API endpoint for the interface endpoint, such as \n\t\t\t\t\tvpce-123456789abcdef01-example-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com. For edge-optimized APIs, \n\t\t\t\t\tthis is the domain name for the corresponding CloudFront distribution. You can get the value of DnsName using the AWS CLI command \n\t\t\t\t\tdescribe-vpc-endpoints.

\n\t\t\t\t
\n
CloudFront distribution
\n
\n

Specify the domain name that CloudFront assigned when you created your distribution.

\n\t\t\t\t\t

Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. \n\t\t\t\t\t\tFor example, if the name of the resource record set is acme.example.com, your CloudFront distribution must \n\t\t\t\t\t\tinclude acme.example.com as one of the alternate domain names. For more information, see \n\t\t\t\t\t\tUsing Alternate Domain Names (CNAMEs) in the \n\t\t\t\t\t\tAmazon CloudFront Developer Guide.

\n\t\t\t\t\t

You can't create a resource record set in a private hosted zone to route traffic to a CloudFront distribution.

\n\t\t\t\t\t \n

For failover alias records, you can't specify a CloudFront distribution for both the primary and secondary records. \n\t\t\t\t\t\tA distribution must include an alternate domain name that matches the name of the record. However, the primary and secondary records \n\t\t\t\t\t\thave the same name, and you can't include the same alternate domain name in more than one distribution.

\n
\n\t\t\t\t
\n
Elastic Beanstalk environment
\n
\n\t\t\t\t\t

If the domain name for your Elastic Beanstalk environment includes the region that you deployed the environment in, \n\t\t\t\t\t\tyou can create an alias record that routes traffic to the environment. For example, the domain name \n\t\t\t\t\t\tmy-environment.us-west-2.elasticbeanstalk.com is a regionalized domain name.

\n\t\t\t\t\t \n\t\t\t\t\t\t

For environments that were created before early 2016, the domain name doesn't include the region. To route traffic \n\t\t\t\t\t\t\tto these environments, you must create a CNAME record instead of an alias record. Note that you can't create a \n\t\t\t\t\t\t\tCNAME record for the root domain name. For example, if your domain name is example.com, you can create a record \n\t\t\t\t\t\t\tthat routes traffic for acme.example.com to your Elastic Beanstalk environment, but you can't create a record \n\t\t\t\t\t\t\tthat routes traffic for example.com to your Elastic Beanstalk environment.

\n\t\t\t\t\t
\n\t\t\t\t\t

For Elastic Beanstalk environments that have regionalized subdomains, specify the CNAME attribute for the environment. \n\t\t\t\t\t\tYou can use the following methods to get the value of the CNAME attribute:

\n\t\t\t\t\t \n\t\t\t\t
\n
ELB load balancer
\n
\n

Specify the DNS name that is associated with the load balancer. Get the DNS name by using the AWS Management Console, \n\t\t\t\t\tthe ELB API, or the AWS CLI.

\n\t\t\t\t\t \n\t\t\t\t
\n
AWS Global Accelerator accelerator
\n
\n

Specify the DNS name for your accelerator:

\n\t\t\t\t\t \n\t\t\t\t
\n
Amazon S3 bucket that is configured as a static website
\n
\n

Specify the domain name of the Amazon S3 website endpoint that you created the bucket in, for example, \n\t\t\t\t\ts3-website.us-east-2.amazonaws.com. For more information about valid values, see the table \n\t\t\t\t\tAmazon S3 Website Endpoints \n\t\t\t\t\tin the Amazon Web Services General Reference. For more information about using S3 buckets for websites, \n\t\t\t\t\tsee Getting Started with Amazon Route 53 \n\t\t\t\t\tin the Amazon Route 53 Developer Guide.\n

\n
\n
Another Route 53 resource record set
\n
\n

Specify the value of the Name element for a resource record set in the current hosted zone.

\n\t\t\t\t\t \n

If you're creating an alias record that has the same name as the hosted zone (known as the zone apex), \n\t\t\t\t\t\tyou can't specify the domain name for a record for which the value of Type is CNAME. This is because \n\t\t\t\t\t\tthe alias record must have the same type as the record that you're routing traffic to, and creating a CNAME record for the \n\t\t\t\t\t\tzone apex isn't supported even for an alias record.

\n
\n\t\t\t\t
\n
", + "smithy.api#documentation": "

\n Alias resource record sets only: The value that you specify depends on where you want to route queries:

\n\t\t
\n
Amazon API Gateway custom regional APIs and edge-optimized APIs
\n
\n

Specify the applicable domain name for your API. You can get the applicable value using the CLI command \n\t\t\t\t\tget-domain-names:

\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t

The name of the record that you're creating must match a custom domain name for your API, such as \n\t\t\t\t\t\t\tapi.example.com.

\n\t\t\t\t\t
\n\t\t\t\t
\n
Amazon Virtual Private Cloud interface VPC endpoint
\n
\n

Enter the API endpoint for the interface endpoint, such as \n\t\t\t\t\tvpce-123456789abcdef01-example-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com. For edge-optimized APIs, \n\t\t\t\t\tthis is the domain name for the corresponding CloudFront distribution. You can get the value of DnsName using the CLI command \n\t\t\t\t\tdescribe-vpc-endpoints.

\n\t\t\t\t
\n
CloudFront distribution
\n
\n

Specify the domain name that CloudFront assigned when you created your distribution.

\n\t\t\t\t\t

Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. \n\t\t\t\t\t\tFor example, if the name of the resource record set is acme.example.com, your CloudFront distribution must \n\t\t\t\t\t\tinclude acme.example.com as one of the alternate domain names. For more information, see \n\t\t\t\t\t\tUsing Alternate Domain Names (CNAMEs) in the \n\t\t\t\t\t\tAmazon CloudFront Developer Guide.

\n\t\t\t\t\t

You can't create a resource record set in a private hosted zone to route traffic to a CloudFront distribution.

\n\t\t\t\t\t \n

For failover alias records, you can't specify a CloudFront distribution for both the primary and secondary records. \n\t\t\t\t\t\tA distribution must include an alternate domain name that matches the name of the record. However, the primary and secondary records \n\t\t\t\t\t\thave the same name, and you can't include the same alternate domain name in more than one distribution.

\n
\n\t\t\t\t
\n
Elastic Beanstalk environment
\n
\n\t\t\t\t\t

If the domain name for your Elastic Beanstalk environment includes the region that you deployed the environment in, \n\t\t\t\t\t\tyou can create an alias record that routes traffic to the environment. For example, the domain name \n\t\t\t\t\t\tmy-environment.us-west-2.elasticbeanstalk.com is a regionalized domain name.

\n\t\t\t\t\t \n\t\t\t\t\t\t

For environments that were created before early 2016, the domain name doesn't include the region. To route traffic \n\t\t\t\t\t\t\tto these environments, you must create a CNAME record instead of an alias record. Note that you can't create a \n\t\t\t\t\t\t\tCNAME record for the root domain name. For example, if your domain name is example.com, you can create a record \n\t\t\t\t\t\t\tthat routes traffic for acme.example.com to your Elastic Beanstalk environment, but you can't create a record \n\t\t\t\t\t\t\tthat routes traffic for example.com to your Elastic Beanstalk environment.

\n\t\t\t\t\t
\n\t\t\t\t\t

For Elastic Beanstalk environments that have regionalized subdomains, specify the CNAME attribute for the environment. \n\t\t\t\t\t\tYou can use the following methods to get the value of the CNAME attribute:

\n\t\t\t\t\t \n\t\t\t\t
\n
ELB load balancer
\n
\n

Specify the DNS name that is associated with the load balancer. Get the DNS name by using the Management Console, \n\t\t\t\t\tthe ELB API, or the CLI.

\n\t\t\t\t\t \n\t\t\t\t
\n
Global Accelerator accelerator
\n
\n

Specify the DNS name for your accelerator:

\n\t\t\t\t\t \n\t\t\t\t
\n
Amazon S3 bucket that is configured as a static website
\n
\n

Specify the domain name of the Amazon S3 website endpoint that you created the bucket in, for example, \n\t\t\t\t\ts3-website.us-east-2.amazonaws.com. For more information about valid values, see the table \n\t\t\t\t\tAmazon S3 Website Endpoints \n\t\t\t\t\tin the Amazon Web Services General Reference. For more information about using S3 buckets for websites, \n\t\t\t\t\tsee Getting Started with Amazon Route 53 \n\t\t\t\t\tin the Amazon Route 53 Developer Guide.\n

\n
\n
Another Route 53 resource record set
\n
\n

Specify the value of the Name element for a resource record set in the current hosted zone.

\n\t\t\t\t\t \n

If you're creating an alias record that has the same name as the hosted zone (known as the zone apex), \n\t\t\t\t\t\tyou can't specify the domain name for a record for which the value of Type is CNAME. This is because \n\t\t\t\t\t\tthe alias record must have the same type as the record that you're routing traffic to, and creating a CNAME record for the \n\t\t\t\t\t\tzone apex isn't supported even for an alias record.

\n
\n\t\t\t\t
\n
", "smithy.api#required": {} } }, "EvaluateTargetHealth": { "target": "com.amazonaws.route53#AliasHealthEnabled", "traits": { - "smithy.api#documentation": "

\n Applies only to alias, failover alias, geolocation alias, latency alias, and weighted alias resource record sets: \n\t\t\tWhen EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, \n\t\t\tsuch as an ELB load balancer or another resource record set in the hosted zone.

\n\t\t

Note the following:

\n\n\t\t
\n
CloudFront distributions
\n
\n

You can't set EvaluateTargetHealth to true when the alias target is a \n\t\t\t\t\tCloudFront distribution.

\n
\n
Elastic Beanstalk environments that have regionalized subdomains
\n
\n

If you specify an Elastic Beanstalk environment in DNSName and the environment contains an ELB load balancer, \n\t\t\t\t\tElastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. (An environment automatically \n\t\t\t\t\tcontains an ELB load balancer if it includes more than one Amazon EC2 instance.) If you set EvaluateTargetHealth to \n\t\t\t\t\ttrue and either no Amazon EC2 instances are healthy or the load balancer itself is unhealthy, \n\t\t\t\t\tRoute 53 routes queries to other available resources that are healthy, if any.

\n\t\t\t\t\t

If the environment contains a single Amazon EC2 instance, there are no special requirements.

\n
\n
ELB load balancers
\n
\n

Health checking behavior depends on the type of load balancer:

\n\t\t\t\t\t \n\t\t\t\t\t \n

When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they're not Route 53 health checks, but \n\t\t\t\t\t\tthey perform a similar function. Do not create Route 53 health checks for the EC2 instances that you register with an ELB load balancer.

\n
\n\t\t\t\t
\n
S3 buckets
\n
\n

There are no special requirements for setting EvaluateTargetHealth to true \n\t\t\t\t\twhen the alias target is an S3 bucket.

\n
\n
Other records in the same hosted zone
\n
\n

If the AWS resource that you specify in DNSName is a record or a group of records \n\t\t\t\t\t(for example, a group of weighted records) but is not another alias record, we recommend that you associate a health check \n\t\t\t\t\twith all of the records in the alias target. For more information, see \n\t\t\t\t\tWhat Happens When You Omit Health Checks? \n\t\t\t\t\tin the Amazon Route 53 Developer Guide.

\n
\n
\n\t\t\n\t\t

For more information and examples, see \n\t\t\tAmazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

", + "smithy.api#documentation": "

\n Applies only to alias, failover alias, geolocation alias, latency alias, and weighted alias resource record sets: \n\t\t\tWhen EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced Amazon Web Services resource, \n\t\t\tsuch as an ELB load balancer or another resource record set in the hosted zone.

\n\t\t

Note the following:

\n\n\t\t
\n
CloudFront distributions
\n
\n

You can't set EvaluateTargetHealth to true when the alias target is a \n\t\t\t\t\tCloudFront distribution.

\n
\n
Elastic Beanstalk environments that have regionalized subdomains
\n
\n

If you specify an Elastic Beanstalk environment in DNSName and the environment contains an ELB load balancer, \n\t\t\t\t\tElastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. (An environment automatically \n\t\t\t\t\tcontains an ELB load balancer if it includes more than one Amazon EC2 instance.) If you set EvaluateTargetHealth to \n\t\t\t\t\ttrue and either no Amazon EC2 instances are healthy or the load balancer itself is unhealthy, \n\t\t\t\t\tRoute 53 routes queries to other available resources that are healthy, if any.

\n\t\t\t\t\t

If the environment contains a single Amazon EC2 instance, there are no special requirements.

\n
\n
ELB load balancers
\n
\n

Health checking behavior depends on the type of load balancer:

\n\t\t\t\t\t \n\t\t\t\t\t \n

When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they're not Route 53 health checks, but \n\t\t\t\t\t\tthey perform a similar function. Do not create Route 53 health checks for the EC2 instances that you register with an ELB load balancer.

\n
\n\t\t\t\t
\n
S3 buckets
\n
\n

There are no special requirements for setting EvaluateTargetHealth to true \n\t\t\t\t\twhen the alias target is an S3 bucket.

\n
\n
Other records in the same hosted zone
\n
\n

If the Amazon Web Services resource that you specify in DNSName is a record or a group of records \n\t\t\t\t\t(for example, a group of weighted records) but is not another alias record, we recommend that you associate a health check \n\t\t\t\t\twith all of the records in the alias target. For more information, see \n\t\t\t\t\tWhat Happens When You Omit Health Checks? \n\t\t\t\t\tin the Amazon Route 53 Developer Guide.

\n
\n
\n\t\t\n\t\t

For more information and examples, see \n\t\t\tAmazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

\n Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or \n\t\t\tan Amazon S3 bucket, that you want to route traffic to.

\n\t\t

When creating resource record sets for a private hosted zone, note the following:

\n\t\t " + "smithy.api#documentation": "

\n Alias resource record sets only: Information about the Amazon Web Services resource, such as a CloudFront distribution or \n\t\t\tan Amazon S3 bucket, that you want to route traffic to.

\n\t\t

When creating resource record sets for a private hosted zone, note the following:

\n\t\t " } }, "com.amazonaws.route53#AssociateVPCComment": { @@ -464,7 +467,7 @@ } ], "traits": { - "smithy.api#documentation": "

Associates an Amazon VPC with a private hosted zone.

\n\t\t \n

To perform the association, the VPC and the private hosted zone must already exist. \n\t\t\tYou can't convert a public hosted zone into a private hosted zone.

\n
\n\t\t \n

If you want to associate a VPC that was created by using one AWS account with a private hosted zone that was created \n\t\t\tby using a different account, the AWS account that created the private hosted zone must first submit a \n\t\t\tCreateVPCAssociationAuthorization request. Then the account that created the VPC must submit an \n\t\t\tAssociateVPCWithHostedZone request.

\n
", + "smithy.api#documentation": "

Associates an Amazon VPC with a private hosted zone.

\n\t\t \n

To perform the association, the VPC and the private hosted zone must already exist. \n\t\t\tYou can't convert a public hosted zone into a private hosted zone.

\n
\n\t\t \n

If you want to associate a VPC that was created by using one account with a private hosted zone that was created \n\t\t\tby using a different account, the account that created the private hosted zone must first submit a \n\t\t\tCreateVPCAssociationAuthorization request. Then the account that created the VPC must submit an \n\t\t\tAssociateVPCWithHostedZone request.

\n
", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/associatevpc", @@ -584,7 +587,7 @@ "Id": { "target": "com.amazonaws.route53#ResourceId", "traits": { - "smithy.api#documentation": "

The ID of the request.

", + "smithy.api#documentation": "

This element contains an ID that you use when performing a \n\t\t\tGetChange \n\t\t\taction to get detailed information about the change.

", "smithy.api#required": {} } }, @@ -605,7 +608,7 @@ "Comment": { "target": "com.amazonaws.route53#ResourceDescription", "traits": { - "smithy.api#documentation": "

A complex type that describes change information about changes made to your hosted\n\t\t\tzone.

\n\t\t

This element contains an ID that you use when performing a \n\t\t\tGetChange \n\t\t\taction to get detailed information about the change.

" + "smithy.api#documentation": "

A comment you can provide.

" } } }, @@ -639,7 +642,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates, changes, or deletes a resource record set, which contains authoritative DNS information for a specified \n\t\t\tdomain name or subdomain name. For example, you can use ChangeResourceRecordSets to create a resource record set that \n\t\t\troutes traffic for test.example.com to a web server that has an IP address of 192.0.2.44.

\n\t\t\n\t\t

\n Deleting Resource Record Sets\n

\n\t\t

To delete a resource record set, you must specify all the same values that you specified when you created it.

\n\n\t\t

\n Change Batches and Transactional Changes\n

\n\t\t

The request body must include a document with a ChangeResourceRecordSetsRequest element. \n\t\t\tThe request body contains a list of change items, known as a change batch. Change batches are considered transactional changes.\n\t\t\tRoute 53 validates the changes in the request and then either makes all or none of the changes in the change batch request. \n\t\t\tThis ensures that DNS routing isn't adversely affected by partial changes to the resource record sets in a hosted zone.

\n\t\t

For example, suppose a change batch request contains two changes: it deletes the CNAME resource record set for www.example.com and \n\t\t\tcreates an alias resource record set for www.example.com. If validation for both records succeeds, Route 53 deletes the first resource record set and \n\t\t\tcreates the second resource record set in a single operation. If validation for either the DELETE or the CREATE action fails, \n\t\t\tthen the request is canceled, and the original CNAME record continues to exist.

\n\t\t \n\t\t\t

If you try to delete the same resource record set more than once in a single change batch, Route 53 returns an InvalidChangeBatch error.

\n\t\t
\n\t\t\n\t\t

\n Traffic Flow\n

\n\t\t

To create resource record sets for complex routing configurations, use either the traffic flow visual editor in the \n\t\t\tRoute 53 console or the API actions for traffic policies and traffic policy instances. Save the configuration as a traffic policy, \n\t\t\tthen associate the traffic policy with one or more domain names (such as example.com) or subdomain names (such as www.example.com), \n\t\t\tin the same hosted zone or in multiple hosted zones. You can roll back the updates if the new configuration isn't performing \n\t\t\tas expected. For more information, see Using Traffic Flow to Route DNS Traffic \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t\n\t\t

\n Create, Delete, and Upsert\n

\n\t\t

Use ChangeResourceRecordsSetsRequest to perform the following actions:

\n\t\t\t \n\t\t\n\t\t

\n Syntaxes for Creating, Updating, and Deleting Resource Record Sets\n

\n\t\t

The syntax for a request depends on the type of resource record set that you want to create, delete, or update, such as \n\t\t\tweighted, alias, or failover. The XML elements in your request must appear in the order listed in the syntax.

\n\n\t\t\n\t\t

For an example for each type of resource record set, see \"Examples.\"

\n\t\t\n\t\t\n\t\t

Don't refer to the syntax in the \"Parameter Syntax\" section, which includes all of the elements for every kind of \n\t\t\tresource record set that you can create, delete, or update by using ChangeResourceRecordSets.

\n\t\t\n\t\t

\n Change Propagation to Route 53 DNS Servers\n

\n\t\t

When you submit a ChangeResourceRecordSets request, Route 53 propagates your changes to all of the \n\t\t\tRoute 53 authoritative DNS servers. While your changes are propagating, GetChange returns a status of \n\t\t\tPENDING. When propagation is complete, GetChange returns a status of INSYNC. \n\t\t\tChanges generally propagate to all Route 53 name servers within 60 seconds. For more information, see \n\t\t\tGetChange.

\n\n\t\t

\n Limits on ChangeResourceRecordSets Requests\n

\n\t\t

For information about the limits on a ChangeResourceRecordSets request, see \n\t\t\tLimits in the \n\t\t\tAmazon Route 53 Developer Guide.

", + "smithy.api#documentation": "

Creates, changes, or deletes a resource record set, which contains authoritative DNS information for a specified \n\t\t\tdomain name or subdomain name. For example, you can use ChangeResourceRecordSets to create a resource record set that \n\t\t\troutes traffic for test.example.com to a web server that has an IP address of 192.0.2.44.

\n\t\t\n\t\t

\n Deleting Resource Record Sets\n

\n\t\t

To delete a resource record set, you must specify all the same values that you specified when you created it.

\n\n\t\t

\n Change Batches and Transactional Changes\n

\n\t\t

The request body must include a document with a ChangeResourceRecordSetsRequest element. \n\t\t\tThe request body contains a list of change items, known as a change batch. Change batches are considered transactional changes.\n\t\t\tRoute 53 validates the changes in the request and then either makes all or none of the changes in the change batch request. \n\t\t\tThis ensures that DNS routing isn't adversely affected by partial changes to the resource record sets in a hosted zone.

\n\t\t

For example, suppose a change batch request contains two changes: it deletes the CNAME resource record set for www.example.com and \n\t\t\tcreates an alias resource record set for www.example.com. If validation for both records succeeds, Route 53 deletes the first resource record set and \n\t\t\tcreates the second resource record set in a single operation. If validation for either the DELETE or the CREATE action fails, \n\t\t\tthen the request is canceled, and the original CNAME record continues to exist.

\n\t\t \n\t\t\t

If you try to delete the same resource record set more than once in a single change batch, Route 53 returns an InvalidChangeBatch error.

\n\t\t
\n\t\t\n\t\t

\n Traffic Flow\n

\n\t\t

To create resource record sets for complex routing configurations, use either the traffic flow visual editor in the \n\t\t\tRoute 53 console or the API actions for traffic policies and traffic policy instances. Save the configuration as a traffic policy, \n\t\t\tthen associate the traffic policy with one or more domain names (such as example.com) or subdomain names (such as www.example.com), \n\t\t\tin the same hosted zone or in multiple hosted zones. You can roll back the updates if the new configuration isn't performing \n\t\t\tas expected. For more information, see Using Traffic Flow to Route DNS Traffic \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t\n\t\t

\n Create, Delete, and Upsert\n

\n\t\t

Use ChangeResourceRecordsSetsRequest to perform the following actions:

\n\t\t\t \n\t\t\n\t\t

\n Syntaxes for Creating, Updating, and Deleting Resource Record Sets\n

\n\t\t

The syntax for a request depends on the type of resource record set that you want to create, delete, or update, such as \n\t\t\tweighted, alias, or failover. The XML elements in your request must appear in the order listed in the syntax.

\n\n\t\t\n\t\t

For an example for each type of resource record set, see \"Examples.\"

\n\t\t\n\t\t\n\t\t

Don't refer to the syntax in the \"Parameter Syntax\" section, which includes all of the elements for every kind of \n\t\t\tresource record set that you can create, delete, or update by using ChangeResourceRecordSets.

\n\t\t\n\t\t

\n Change Propagation to Route 53 DNS Servers\n

\n\t\t

When you submit a ChangeResourceRecordSets request, Route 53 propagates your changes to all of the \n\t\t\tRoute 53 authoritative DNS servers. While your changes are propagating, GetChange returns a status of \n\t\t\tPENDING. When propagation is complete, GetChange returns a status of INSYNC. \n\t\t\tChanges generally propagate to all Route 53 name servers within 60 seconds. For more information, see \n\t\t\tGetChange.

\n\n\t\t

\n Limits on ChangeResourceRecordSets Requests\n

\n\t\t

For information about the limits on a ChangeResourceRecordSets request, see \n\t\t\tLimits in the \n\t\t\tAmazon Route 53 Developer Guide.

", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/rrset", @@ -726,7 +729,7 @@ } ], "traits": { - "smithy.api#documentation": "

Adds, edits, or deletes tags for a health check or a hosted zone.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the AWS Billing and Cost Management User Guide.

", + "smithy.api#documentation": "

Adds, edits, or deletes tags for a health check or a hosted zone.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the Billing and Cost Management User Guide.

", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/tags/{ResourceType}/{ResourceId}", @@ -1335,7 +1338,7 @@ "KeyManagementServiceArn": { "target": "com.amazonaws.route53#SigningKeyString", "traits": { - "smithy.api#documentation": "

The Amazon resource name (ARN) for a customer managed customer master key (CMK) in AWS Key Management Service (AWS KMS).\n\t\t\tThe KeyManagementServiceArn must be unique for each key-signing key (KSK) in a single hosted zone. \n\t\t\tTo see an example of KeyManagementServiceArn that grants the correct permissions for DNSSEC, \n\t\t\tscroll down to Example.

\n\t\t

You must configure the customer managed CMK as follows:

\n\t\t
\n
Status
\n
\n

Enabled

\n
\n
Key spec
\n
\n

ECC_NIST_P256

\n
\n
Key usage
\n
\n

Sign and verify

\n
\n
Key policy
\n
\n

The key policy must give permission for the following actions:

\n\t\t\t\t\t \n\t\t\t\t\t

The key policy must also include the Amazon Route 53 service in the principal for your account. \n\t\t\t\t\t\tSpecify the following:

\n\t\t\t\t\t \n\t\t\t\t
\n
\n\t\t

For more information about working with a customer managed CMK in AWS KMS, see \n\t\t\tAWS Key Management Service concepts.

", + "smithy.api#documentation": "

The Amazon resource name (ARN) for a customer managed customer master key (CMK) in Key Management Service (KMS).\n\t\t\tThe KeyManagementServiceArn must be unique for each key-signing key (KSK) in a single hosted zone. \n\t\t\tTo see an example of KeyManagementServiceArn that grants the correct permissions for DNSSEC, \n\t\t\tscroll down to Example.

\n\t\t

You must configure the customer managed CMK as follows:

\n\t\t
\n
Status
\n
\n

Enabled

\n
\n
Key spec
\n
\n

ECC_NIST_P256

\n
\n
Key usage
\n
\n

Sign and verify

\n
\n
Key policy
\n
\n

The key policy must give permission for the following actions:

\n\t\t\t\t\t \n\t\t\t\t\t

The key policy must also include the Amazon Route 53 service in the principal for your account. \n\t\t\t\t\t\tSpecify the following:

\n\t\t\t\t\t \n\t\t\t\t
\n
\n\t\t

For more information about working with a customer managed CMK in KMS, see \n\t\t\tKey Management Service concepts.

", "smithy.api#required": {} } }, @@ -1410,7 +1413,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish \n\t\t\tlog data to an Amazon CloudWatch Logs log group.

\n\t\t

DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:

\n\t\t \n\t\t\n\t\t
\n
Log Group and Resource Policy
\n
\n

Before you create a query logging configuration, perform the following operations.

\n\t\t\t\t\t \n

If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically.

\n
\n\t\t\t\t\t
    \n
  1. \n

    Create a CloudWatch Logs log group, and make note of the ARN, which you specify when you create a \n\t\t\t\t\t\t\tquery logging configuration. Note the following:

    \n\t\t\t\t\t\t\t
      \n
    • \n

      You must create the log group in the us-east-1 region.

      \n
    • \n
    • \n

      You must use the same AWS account to create the log group and the hosted zone that you want to \n\t\t\t\t\t\t\t\t\tconfigure query logging for.

      \n
    • \n
    • \n

      When you create log groups for query logging, we recommend that you use a consistent prefix, for example:

      \n\t\t\t\t\t\t\t\t\t

      \n /aws/route53/hosted zone name\n \n

      \n\t\t\t\t\t\t\t\t\t

      In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated \n\t\t\t\t\t\t\t\t\t\tAWS resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so \n\t\t\t\t\t\t\t\t\t\twe recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create \n\t\t\t\t\t\t\t\t\t\tfor query logging.

      \n\t\t\t\t\t\t\t\t
    • \n
    \n\t\t\t\t\t\t
  2. \n
  3. \n

    Create a CloudWatch Logs resource policy, and give it the permissions that Route 53 needs to create log streams and to \n\t\t\t\t\t\t\tsend query logs to log streams. For the value of Resource, specify the ARN for the log group that you created \n\t\t\t\t\t\t\tin the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, \n\t\t\t\t\t\t\treplace the hosted zone name with *, for example:

    \n\t\t\t\t\t\t\t

    \n arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*\n

    \n\t\t\t\t\t\t\t \n

    You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the AWS SDKs, \n\t\t\t\t\t\t\t\tor the AWS CLI.

    \n
    \n\t\t\t\t\t\t
  4. \n
\n\t\t\t\t
\n
Log Streams and Edge Locations
\n
\n

When Route 53 finishes creating the configuration for DNS query logging, it does the following:

\n\t\t\t\t\t \n\t\t\t\t\t

The name of each log stream is in the following format:

\n\t\t\t\t\t

\n \n hosted zone ID/edge location code\n \n

\n\t\t\t\t\t

The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code \n\t\t\t\t\t\ttypically corresponds with the International Air Transport Association airport code for an airport near the edge location. \n\t\t\t\t\t\t(These abbreviations might change in the future.) For a list of edge locations, see \"The Route 53 Global Network\" on the \n\t\t\t\t\t\tRoute 53 Product Details page.

\n\t\t\t\t
\n
Queries That Are Logged
\n
\n

Query logs contain only the queries that DNS resolvers forward to Route 53. If a DNS resolver has already cached \n\t\t\t\t\tthe response to a query (such as the IP address for a load balancer for example.com), the resolver will continue to return \n\t\t\t\t\tthe cached response. It doesn't forward another query to Route 53 until the TTL for the corresponding resource record set expires. \n\t\t\t\t\tDepending on how many DNS queries are submitted for a resource record set, and depending on the TTL for that resource record set, \n\t\t\t\t\tquery logs might contain information about only one query out of every several thousand queries that are submitted to DNS. \n\t\t\t\t\tFor more information about how DNS works, see \n\t\t\t\t\tRouting Internet Traffic to Your Website or Web Application\n\t\t\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t\t\t
\n
Log File Format
\n
\n

For a list of the values in each query log and the format of each value, see \n\t\t\t\t\tLogging DNS Queries in the \n\t\t\t\t\tAmazon Route 53 Developer Guide.

\n\t\t\t\t
\n
Pricing
\n
\n

For information about charges for query logs, see \n\t\t\t\t\tAmazon CloudWatch Pricing.

\n
\n
How to Stop Logging
\n
\n

If you want Route 53 to stop sending query logs to CloudWatch Logs, delete the query logging configuration. For more information, see \n\t\t\t\t\tDeleteQueryLoggingConfig.

\n\t\t\t\t
\n
", + "smithy.api#documentation": "

Creates a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish \n\t\t\tlog data to an Amazon CloudWatch Logs log group.

\n\t\t

DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:

\n\t\t \n\t\t\n\t\t
\n
Log Group and Resource Policy
\n
\n

Before you create a query logging configuration, perform the following operations.

\n\t\t\t\t\t \n

If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically.

\n
\n\t\t\t\t\t
    \n
  1. \n

    Create a CloudWatch Logs log group, and make note of the ARN, which you specify when you create a \n\t\t\t\t\t\t\tquery logging configuration. Note the following:

    \n\t\t\t\t\t\t\t
      \n
    • \n

      You must create the log group in the us-east-1 region.

      \n
    • \n
    • \n

      You must use the same account to create the log group and the hosted zone that you want to \n\t\t\t\t\t\t\t\t\tconfigure query logging for.

      \n
    • \n
    • \n

      When you create log groups for query logging, we recommend that you use a consistent prefix, for example:

      \n\t\t\t\t\t\t\t\t\t

      \n /aws/route53/hosted zone name\n \n

      \n\t\t\t\t\t\t\t\t\t

      In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated \n\t\t\t\t\t\t\t\t\t\tAmazon Web Services resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so \n\t\t\t\t\t\t\t\t\t\twe recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create \n\t\t\t\t\t\t\t\t\t\tfor query logging.

      \n\t\t\t\t\t\t\t\t
    • \n
    \n\t\t\t\t\t\t
  2. \n
  3. \n

    Create a CloudWatch Logs resource policy, and give it the permissions that Route 53 needs to create log streams and to \n\t\t\t\t\t\t\tsend query logs to log streams. For the value of Resource, specify the ARN for the log group that you created \n\t\t\t\t\t\t\tin the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, \n\t\t\t\t\t\t\treplace the hosted zone name with *, for example:

    \n\t\t\t\t\t\t\t

    \n arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*\n

    \n\t\t\t\t\t\t\t \n

    You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the Amazon Web Services SDKs, \n\t\t\t\t\t\t\t\tor the CLI.

    \n
    \n\t\t\t\t\t\t
  4. \n
\n\t\t\t\t
\n
Log Streams and Edge Locations
\n
\n

When Route 53 finishes creating the configuration for DNS query logging, it does the following:

\n\t\t\t\t\t \n\t\t\t\t\t

The name of each log stream is in the following format:

\n\t\t\t\t\t

\n \n hosted zone ID/edge location code\n \n

\n\t\t\t\t\t

The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code \n\t\t\t\t\t\ttypically corresponds with the International Air Transport Association airport code for an airport near the edge location. \n\t\t\t\t\t\t(These abbreviations might change in the future.) For a list of edge locations, see \"The Route 53 Global Network\" on the \n\t\t\t\t\t\tRoute 53 Product Details page.

\n\t\t\t\t
\n
Queries That Are Logged
\n
\n

Query logs contain only the queries that DNS resolvers forward to Route 53. If a DNS resolver has already cached \n\t\t\t\t\tthe response to a query (such as the IP address for a load balancer for example.com), the resolver will continue to return \n\t\t\t\t\tthe cached response. It doesn't forward another query to Route 53 until the TTL for the corresponding resource record set expires. \n\t\t\t\t\tDepending on how many DNS queries are submitted for a resource record set, and depending on the TTL for that resource record set, \n\t\t\t\t\tquery logs might contain information about only one query out of every several thousand queries that are submitted to DNS. \n\t\t\t\t\tFor more information about how DNS works, see \n\t\t\t\t\tRouting Internet Traffic to Your Website or Web Application\n\t\t\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t\t\t
\n
Log File Format
\n
\n

For a list of the values in each query log and the format of each value, see \n\t\t\t\t\tLogging DNS Queries in the \n\t\t\t\t\tAmazon Route 53 Developer Guide.

\n\t\t\t\t
\n
Pricing
\n
\n

For information about charges for query logs, see \n\t\t\t\t\tAmazon CloudWatch Pricing.

\n
\n
How to Stop Logging
\n
\n

If you want Route 53 to stop sending query logs to CloudWatch Logs, delete the query logging configuration. For more information, see \n\t\t\t\t\tDeleteQueryLoggingConfig.

\n\t\t\t\t
\n
", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/queryloggingconfig", @@ -1431,7 +1434,7 @@ "CloudWatchLogsLogGroupArn": { "target": "com.amazonaws.route53#CloudWatchLogsLogGroupArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the log group that you want to Amazon Route 53 to send query logs to. This is the format \n\t\t\tof the ARN:

\n\t\t\n\t\t

arn:aws:logs:region:account-id:log-group:log_group_name\n

\n\t\t\n\t\t

To get the ARN for a log group, you can use the CloudWatch console, the \n\t\t\tDescribeLogGroups API action, \n\t\t\tthe describe-log-groups command, \n\t\t\tor the applicable command in one of the AWS SDKs.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the log group that you want to Amazon Route 53 to send query logs to. This is the format \n\t\t\tof the ARN:

\n\t\t\n\t\t

arn:aws:logs:region:account-id:log-group:log_group_name\n

\n\t\t\n\t\t

To get the ARN for a log group, you can use the CloudWatch console, the \n\t\t\tDescribeLogGroups API action, \n\t\t\tthe describe-log-groups command, \n\t\t\tor the applicable command in one of the Amazon Web Services SDKs.

", "smithy.api#required": {} } } @@ -1489,7 +1492,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones that were created by \n\t\t\tthe same AWS account.

\n\t\t

You can also create a reusable delegation set that uses the four name servers that are associated \n\t\t\twith an existing hosted zone. Specify the hosted zone ID in the CreateReusableDelegationSet request.

\n\t\t \n\t\t\t

You can't associate a reusable delegation set with a private hosted zone.

\n\t\t
\n\t\t

For information about using a reusable delegation set to configure white label name servers, see \n\t\t\tConfiguring White Label Name Servers.

\n\t\t\n\t\t

The process for migrating existing hosted zones to use a reusable delegation set is comparable to the process for \n\t\t\tconfiguring white label name servers. You need to perform the following steps:

\n\t\t
    \n
  1. \n

    Create a reusable delegation set.

    \n
  2. \n
  3. \n

    Recreate hosted zones, and reduce the TTL to 60 seconds or less.

    \n
  4. \n
  5. \n

    Recreate resource record sets in the new hosted zones.

    \n
  6. \n
  7. \n

    Change the registrar's name servers to use the name servers for the new hosted zones.

    \n
  8. \n
  9. \n

    Monitor traffic for the website or application.

    \n
  10. \n
  11. \n

    Change TTLs back to their original values.

    \n
  12. \n
\n\t\t\n\t\t

If you want to migrate existing hosted zones to use a reusable delegation set, the existing hosted zones can't use \n\t\t\tany of the name servers that are assigned to the reusable delegation set. If one or more hosted zones do use one or more \n\t\t\tname servers that are assigned to the reusable delegation set, you can do one of the following:

\n\t\t ", + "smithy.api#documentation": "

Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones that were created by \n\t\t\tthe same account.

\n\t\t

You can also create a reusable delegation set that uses the four name servers that are associated \n\t\t\twith an existing hosted zone. Specify the hosted zone ID in the CreateReusableDelegationSet request.

\n\t\t \n\t\t\t

You can't associate a reusable delegation set with a private hosted zone.

\n\t\t
\n\t\t

For information about using a reusable delegation set to configure white label name servers, see \n\t\t\tConfiguring White Label Name Servers.

\n\t\t\n\t\t

The process for migrating existing hosted zones to use a reusable delegation set is comparable to the process for \n\t\t\tconfiguring white label name servers. You need to perform the following steps:

\n\t\t
    \n
  1. \n

    Create a reusable delegation set.

    \n
  2. \n
  3. \n

    Recreate hosted zones, and reduce the TTL to 60 seconds or less.

    \n
  4. \n
  5. \n

    Recreate resource record sets in the new hosted zones.

    \n
  6. \n
  7. \n

    Change the registrar's name servers to use the name servers for the new hosted zones.

    \n
  8. \n
  9. \n

    Monitor traffic for the website or application.

    \n
  10. \n
  11. \n

    Change TTLs back to their original values.

    \n
  12. \n
\n\t\t\n\t\t

If you want to migrate existing hosted zones to use a reusable delegation set, the existing hosted zones can't use \n\t\t\tany of the name servers that are assigned to the reusable delegation set. If one or more hosted zones do use one or more \n\t\t\tname servers that are assigned to the reusable delegation set, you can do one of the following:

\n\t\t ", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/delegationset", @@ -1829,7 +1832,7 @@ } ], "traits": { - "smithy.api#documentation": "

Authorizes the AWS account that created a specified VPC to submit an AssociateVPCWithHostedZone \n\t\t\trequest to associate the VPC with a specified hosted zone that was created by a different account. \n\t\t\tTo submit a CreateVPCAssociationAuthorization request, you must use the account that created the \n\t\t\thosted zone. After you authorize the association, use the account that created the VPC to submit an \n\t\t\tAssociateVPCWithHostedZone request.

\n\t\t \n

If you want to associate multiple VPCs that you created by using one account with a hosted zone \n\t\t\tthat you created by using a different account, you must submit one authorization request for each VPC.

\n
", + "smithy.api#documentation": "

Authorizes the account that created a specified VPC to submit an AssociateVPCWithHostedZone \n\t\t\trequest to associate the VPC with a specified hosted zone that was created by a different account. \n\t\t\tTo submit a CreateVPCAssociationAuthorization request, you must use the account that created the \n\t\t\thosted zone. After you authorize the association, use the account that created the VPC to submit an \n\t\t\tAssociateVPCWithHostedZone request.

\n\t\t \n

If you want to associate multiple VPCs that you created by using one account with a hosted zone \n\t\t\tthat you created by using a different account, you must submit one authorization request for each VPC.

\n
", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation", @@ -1939,6 +1942,9 @@ { "target": "com.amazonaws.route53#ConcurrentModification" }, + { + "target": "com.amazonaws.route53#InvalidInput" + }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -2141,7 +2147,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a health check.

\n\t\t \n\t\t\t

Amazon Route 53 does not prevent you from deleting a health check even if the health check is associated with one or more \n\t\t\t\tresource record sets. If you delete a health check and you don't update the associated resource record sets, the future status \n\t\t\t\tof the health check can't be predicted and may change. This will affect the routing of DNS queries for your DNS failover \n\t\t\t\tconfiguration. For more information, see \n\t\t\t\tReplacing and Deleting Health Checks \n\t\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t
\n\t\t\n\t\t

If you're using AWS Cloud Map and you configured Cloud Map to create a Route 53 health check when you register an instance, \n\t\t\tyou can't use the Route 53 DeleteHealthCheck command to delete the health check. The health check is deleted \n\t\t\tautomatically when you deregister the instance; there can be a delay of several hours before the health check is deleted \n\t\t\tfrom Route 53.

", + "smithy.api#documentation": "

Deletes a health check.

\n\t\t \n\t\t\t

Amazon Route 53 does not prevent you from deleting a health check even if the health check is associated with one or more \n\t\t\t\tresource record sets. If you delete a health check and you don't update the associated resource record sets, the future status \n\t\t\t\tof the health check can't be predicted and may change. This will affect the routing of DNS queries for your DNS failover \n\t\t\t\tconfiguration. For more information, see \n\t\t\t\tReplacing and Deleting Health Checks \n\t\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t
\n\t\t\n\t\t

If you're using Cloud Map and you configured Cloud Map to create a Route 53 health check when you register an instance, \n\t\t\tyou can't use the Route 53 DeleteHealthCheck command to delete the health check. The health check is deleted \n\t\t\tautomatically when you deregister the instance; there can be a delay of several hours before the health check is deleted \n\t\t\tfrom Route 53.

", "smithy.api#http": { "method": "DELETE", "uri": "/2013-04-01/healthcheck/{HealthCheckId}", @@ -2198,7 +2204,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a hosted zone.

\n\t\t\n\t\t

If the hosted zone was created by another service, such as AWS Cloud Map, see \n\t\t\tDeleting \n\t\t\tPublic Hosted Zones That Were Created by Another Service in the Amazon Route 53 Developer Guide for information about how to delete it. \n\t\t\t(The process is the same for public and private hosted zones that were created by another service.)

\n\t\t\n\t\t

If you want to keep your domain registration but you want to stop routing internet traffic to your website or web application, \n\t\t\twe recommend that you delete resource record sets in the hosted zone instead of deleting the hosted zone.

\n\t\t\n\t\t \n\t\t\t

If you delete a hosted zone, you can't undelete it. You must create a new hosted zone and update the name servers for your \n\t\t\t\tdomain registration, which can require up to 48 hours to take effect. (If you delegated responsibility for a subdomain to a hosted zone \n\t\t\t\tand you delete the child hosted zone, you must update the name servers in the parent hosted zone.) In addition, if you delete a hosted zone, \n\t\t\t\tsomeone could hijack the domain and route traffic to their own resources using your domain name.

\n\t\t
\n\t\t\n\t\t

If you want to avoid the monthly charge for the hosted zone, you can transfer DNS service for the domain to a free DNS service. \n\t\t\tWhen you transfer DNS service, you have to update the name servers for the domain registration. If the domain is registered with Route 53, \n\t\t\tsee UpdateDomainNameservers\n\t\t\tfor information about how to replace Route 53 name servers with name servers for the new DNS service. If the domain is registered with \n\t\t\tanother registrar, use the method provided by the registrar to update name servers for the domain registration. For more information, \n\t\t\tperform an internet search on \"free DNS service.\"

\n\n\t\t

You can delete a hosted zone only if it contains only the default SOA record and NS resource record sets. \n\t\t\tIf the hosted zone contains other resource record sets, you must delete them before you can delete the hosted zone. \n\t\t\tIf you try to delete a hosted zone that contains other resource record sets, the request fails, and Route 53 returns a \n\t\t\tHostedZoneNotEmpty error. For information about deleting records from your hosted zone, see \n\t\t\tChangeResourceRecordSets.

\n\t\t

To verify that the hosted zone has been deleted, do one of the following:

\n\t\t ", + "smithy.api#documentation": "

Deletes a hosted zone.

\n\t\t\n\t\t

If the hosted zone was created by another service, such as Cloud Map, see \n\t\t\tDeleting \n\t\t\tPublic Hosted Zones That Were Created by Another Service in the Amazon Route 53 Developer Guide for information about how to delete it. \n\t\t\t(The process is the same for public and private hosted zones that were created by another service.)

\n\t\t\n\t\t

If you want to keep your domain registration but you want to stop routing internet traffic to your website or web application, \n\t\t\twe recommend that you delete resource record sets in the hosted zone instead of deleting the hosted zone.

\n\t\t\n\t\t \n\t\t\t

If you delete a hosted zone, you can't undelete it. You must create a new hosted zone and update the name servers for your \n\t\t\t\tdomain registration, which can require up to 48 hours to take effect. (If you delegated responsibility for a subdomain to a hosted zone \n\t\t\t\tand you delete the child hosted zone, you must update the name servers in the parent hosted zone.) In addition, if you delete a hosted zone, \n\t\t\t\tsomeone could hijack the domain and route traffic to their own resources using your domain name.

\n\t\t
\n\t\t\n\t\t

If you want to avoid the monthly charge for the hosted zone, you can transfer DNS service for the domain to a free DNS service. \n\t\t\tWhen you transfer DNS service, you have to update the name servers for the domain registration. If the domain is registered with Route 53, \n\t\t\tsee UpdateDomainNameservers\n\t\t\tfor information about how to replace Route 53 name servers with name servers for the new DNS service. If the domain is registered with \n\t\t\tanother registrar, use the method provided by the registrar to update name servers for the domain registration. For more information, \n\t\t\tperform an internet search on \"free DNS service.\"

\n\n\t\t

You can delete a hosted zone only if it contains only the default SOA record and NS resource record sets. \n\t\t\tIf the hosted zone contains other resource record sets, you must delete them before you can delete the hosted zone. \n\t\t\tIf you try to delete a hosted zone that contains other resource record sets, the request fails, and Route 53 returns a \n\t\t\tHostedZoneNotEmpty error. For information about deleting records from your hosted zone, see \n\t\t\tChangeResourceRecordSets.

\n\t\t

To verify that the hosted zone has been deleted, do one of the following:

\n\t\t ", "smithy.api#http": { "method": "DELETE", "uri": "/2013-04-01/hostedzone/{Id}", @@ -2249,6 +2255,9 @@ { "target": "com.amazonaws.route53#ConcurrentModification" }, + { + "target": "com.amazonaws.route53#InvalidInput" + }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -2541,7 +2550,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes authorization to submit an AssociateVPCWithHostedZone request to associate a specified VPC \n\t\t\twith a hosted zone that was created by a different account. You must use the account that created the hosted zone \n\t\t\tto submit a DeleteVPCAssociationAuthorization request.

\n\t\t \n\t\t\t

Sending this request only prevents the AWS account that created the VPC from associating the VPC \n\t\t\t\twith the Amazon Route 53 hosted zone in the future. If the VPC is already associated with the hosted zone, \n\t\t\t\tDeleteVPCAssociationAuthorization won't disassociate the VPC from the hosted zone. \n\t\t\t\tIf you want to delete an existing association, use DisassociateVPCFromHostedZone.

\n\t\t
", + "smithy.api#documentation": "

Removes authorization to submit an AssociateVPCWithHostedZone request to associate a specified VPC \n\t\t\twith a hosted zone that was created by a different account. You must use the account that created the hosted zone \n\t\t\tto submit a DeleteVPCAssociationAuthorization request.

\n\t\t \n\t\t\t

Sending this request only prevents the account that created the VPC from associating the VPC \n\t\t\t\twith the Amazon Route 53 hosted zone in the future. If the VPC is already associated with the hosted zone, \n\t\t\t\tDeleteVPCAssociationAuthorization won't disassociate the VPC from the hosted zone. \n\t\t\t\tIf you want to delete an existing association, use DisassociateVPCFromHostedZone.

\n\t\t
", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation", @@ -2555,7 +2564,7 @@ "HostedZoneId": { "target": "com.amazonaws.route53#ResourceId", "traits": { - "smithy.api#documentation": "

When removing authorization to associate a VPC that was created by one AWS account with a hosted zone \n\t\t\tthat was created with a different AWS account, the ID of the hosted zone.

", + "smithy.api#documentation": "

When removing authorization to associate a VPC that was created by one account with a hosted zone \n\t\t\tthat was created with a different account, the ID of the hosted zone.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2563,13 +2572,13 @@ "VPC": { "target": "com.amazonaws.route53#VPC", "traits": { - "smithy.api#documentation": "

When removing authorization to associate a VPC that was created by one AWS account with a hosted zone \n\t\t\tthat was created with a different AWS account, a complex type that includes the ID and region of the VPC.

", + "smithy.api#documentation": "

When removing authorization to associate a VPC that was created by one account with a hosted zone \n\t\t\tthat was created with a different account, a complex type that includes the ID and region of the VPC.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

A complex type that contains information about the request to remove authorization to associate a VPC \n\t\t\tthat was created by one AWS account with a hosted zone that was created with a different AWS account.

" + "smithy.api#documentation": "

A complex type that contains information about the request to remove authorization to associate a VPC \n\t\t\tthat was created by one account with a hosted zone that was created with a different account.

" } }, "com.amazonaws.route53#DeleteVPCAssociationAuthorizationResponse": { @@ -2643,6 +2652,9 @@ { "target": "com.amazonaws.route53#InvalidArgument" }, + { + "target": "com.amazonaws.route53#InvalidInput" + }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -2724,7 +2736,7 @@ } ], "traits": { - "smithy.api#documentation": "

Disassociates an Amazon Virtual Private Cloud (Amazon VPC) from an Amazon Route 53 private hosted zone. Note the following:

\n\t\t ", + "smithy.api#documentation": "

Disassociates an Amazon Virtual Private Cloud (Amazon VPC) from an Amazon Route 53 private hosted zone. Note the following:

\n\t\t ", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc", @@ -2797,6 +2809,9 @@ { "target": "com.amazonaws.route53#InvalidArgument" }, + { + "target": "com.amazonaws.route53#InvalidInput" + }, { "target": "com.amazonaws.route53#InvalidKeySigningKeyStatus" }, @@ -3036,7 +3051,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets the specified limit for the current account, for example, the maximum number of health checks that you \n\t\t\tcan create using the account.

\n\t\t

For the default limit, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide. To request a higher limit, \n\t\t\topen a case.

\n\t\t \n

You can also view account limits in AWS Trusted Advisor. Sign in to the AWS Management Console and open the Trusted Advisor console at \n\t\t\thttps://console.aws.amazon.com/trustedadvisor/. Then choose \n\t\t\tService limits in the navigation pane.

\n\t\t
", + "smithy.api#documentation": "

Gets the specified limit for the current account, for example, the maximum number of health checks that you \n\t\t\tcan create using the account.

\n\t\t

For the default limit, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide. To request a higher limit, \n\t\t\topen a case.

\n\t\t \n

You can also view account limits in Amazon Web Services Trusted Advisor. Sign in to the Management Console and open the Trusted Advisor console at \n\t\t\thttps://console.aws.amazon.com/trustedadvisor/. Then choose \n\t\t\tService limits in the navigation pane.

\n\t\t
", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/accountlimit/{Type}", @@ -3164,7 +3179,7 @@ "target": "com.amazonaws.route53#GetCheckerIpRangesResponse" }, "traits": { - "smithy.api#documentation": "

Route 53 does not perform authorization for this API because it retrieves information that is already available to the public.

\n\t \n\t\t\t

\n GetCheckerIpRanges still works, but we recommend that you download \n\t\t\tip-ranges.json, which includes IP address ranges for all AWS services. For more information, see \n\t\t\tIP Address Ranges of Amazon Route 53 Servers \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t
", + "smithy.api#documentation": "

Route 53 does not perform authorization for this API because it retrieves information that is already available to the public.

\n\t \n\t\t\t

\n GetCheckerIpRanges still works, but we recommend that you download \n\t\t\t\tip-ranges.json, which includes IP address ranges for all Amazon Web Services services. For more information, see \n\t\t\tIP Address Ranges of Amazon Route 53 Servers \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t
", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/checkeripranges", @@ -3206,6 +3221,9 @@ { "target": "com.amazonaws.route53#InvalidArgument" }, + { + "target": "com.amazonaws.route53#InvalidInput" + }, { "target": "com.amazonaws.route53#NoSuchHostedZone" } @@ -3357,7 +3375,7 @@ "target": "com.amazonaws.route53#GetHealthCheckCountResponse" }, "traits": { - "smithy.api#documentation": "

Retrieves the number of health checks that are associated with the current AWS account.

", + "smithy.api#documentation": "

Retrieves the number of health checks that are associated with the current account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/healthcheckcount", @@ -3369,7 +3387,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

A request for the number of health checks that are associated with the current AWS account.

" + "smithy.api#documentation": "

A request for the number of health checks that are associated with the current account.

" } }, "com.amazonaws.route53#GetHealthCheckCountResponse": { @@ -3378,7 +3396,7 @@ "HealthCheckCount": { "target": "com.amazonaws.route53#HealthCheckCount", "traits": { - "smithy.api#documentation": "

The number of health checks associated with the current AWS account.

", + "smithy.api#documentation": "

The number of health checks associated with the current account.

", "smithy.api#required": {} } } @@ -3465,7 +3483,7 @@ "HealthCheck": { "target": "com.amazonaws.route53#HealthCheck", "traits": { - "smithy.api#documentation": "

A complex type that contains information about one health check that is associated with\n\t\t\tthe current AWS account.

", + "smithy.api#documentation": "

A complex type that contains information about one health check that is associated with\n\t\t\tthe current account.

", "smithy.api#required": {} } } @@ -3491,7 +3509,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets status of a specified health check.

", + "smithy.api#documentation": "

Gets status of a specified health check.

\n\t\t \n

This API is intended for use during development to diagnose behavior. It doesn’t support production use-cases with high query rates that require immediate and actionable responses.

\n
", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/healthcheck/{HealthCheckId}/status", @@ -3569,7 +3587,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the number of hosted zones that are associated with the current AWS account.

", + "smithy.api#documentation": "

Retrieves the number of hosted zones that are associated with the current account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/hostedzonecount", @@ -3581,7 +3599,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

A request to retrieve a count of all the hosted zones that are associated with the current AWS account.

" + "smithy.api#documentation": "

A request to retrieve a count of all the hosted zones that are associated with the current account.

" } }, "com.amazonaws.route53#GetHostedZoneCountResponse": { @@ -3590,7 +3608,7 @@ "HostedZoneCount": { "target": "com.amazonaws.route53#HostedZoneCount", "traits": { - "smithy.api#documentation": "

The total number of public and private hosted zones that are associated with the current AWS account.

", + "smithy.api#documentation": "

The total number of public and private hosted zones that are associated with the current account.

", "smithy.api#required": {} } } @@ -3955,7 +3973,7 @@ "target": "com.amazonaws.route53#GetTrafficPolicyInstanceCountResponse" }, "traits": { - "smithy.api#documentation": "

Gets the number of traffic policy instances that are associated with the current AWS account.

", + "smithy.api#documentation": "

Gets the number of traffic policy instances that are associated with the current account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/trafficpolicyinstancecount", @@ -3967,7 +3985,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

Request to get the number of traffic policy instances that are associated with the current AWS account.

" + "smithy.api#documentation": "

Request to get the number of traffic policy instances that are associated with the current account.

" } }, "com.amazonaws.route53#GetTrafficPolicyInstanceCountResponse": { @@ -3976,7 +3994,7 @@ "TrafficPolicyInstanceCount": { "target": "com.amazonaws.route53#TrafficPolicyInstanceCount", "traits": { - "smithy.api#documentation": "

The number of traffic policy instances that are associated with the current AWS account.

", + "smithy.api#documentation": "

The number of traffic policy instances that are associated with the current account.

", "smithy.api#required": {} } } @@ -4100,7 +4118,7 @@ } }, "traits": { - "smithy.api#documentation": "

A complex type that contains information about one health check that is associated with the current AWS account.

" + "smithy.api#documentation": "

A complex type that contains information about one health check that is associated with the current Amazon Web Services account.

" } }, "com.amazonaws.route53#HealthCheckAlreadyExists": { @@ -4137,7 +4155,7 @@ "Type": { "target": "com.amazonaws.route53#HealthCheckType", "traits": { - "smithy.api#documentation": "

The type of health check that you want to create, which indicates how Amazon Route 53 determines whether an endpoint is healthy.

\n\t\t \n\t\t\t

You can't change the value of Type after you create a health check.

\n\t\t
\n\t\t

You can create the following types of health checks:

\n\t\t \n\t\t

For more information, see \n\t\t\tHow Route 53 \n\t\t\tDetermines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

", + "smithy.api#documentation": "

The type of health check that you want to create, which indicates how Amazon Route 53 determines whether an endpoint is healthy.

\n\t\t \n\t\t\t

You can't change the value of Type after you create a health check.

\n\t\t
\n\t\t

You can create the following types of health checks:

\n\t\t \n\t\t

For more information, see \n\t\t\tHow Route 53 \n\t\t\tDetermines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

", "smithy.api#required": {} } }, @@ -4174,7 +4192,7 @@ "MeasureLatency": { "target": "com.amazonaws.route53#MeasureLatency", "traits": { - "smithy.api#documentation": "

Specify whether you want Amazon Route 53 to measure the latency between health checkers in multiple AWS regions and your endpoint, and to \n\t\t\tdisplay CloudWatch latency graphs on the Health Checks page in the Route 53 console.

\n\t\t \n\t\t\t

You can't change the value of MeasureLatency after you create a health check.

\n\t\t
" + "smithy.api#documentation": "

Specify whether you want Amazon Route 53 to measure the latency between health checkers in multiple Amazon Web Services regions and your endpoint, and to \n\t\t\tdisplay CloudWatch latency graphs on the Health Checks page in the Route 53 console.

\n\t\t \n\t\t\t

You can't change the value of MeasureLatency after you create a health check.

\n\t\t
" } }, "Inverted": { @@ -4224,6 +4242,12 @@ "traits": { "smithy.api#documentation": "

When CloudWatch has insufficient data about the metric to determine the alarm state, the status that you want Amazon Route 53 to assign to the health check:

\n\t\t " } + }, + "RoutingControlArn": { + "target": "com.amazonaws.route53#RoutingControlArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for Route53 Application Recovery Controller routing control.

" + } } }, "traits": { @@ -4395,6 +4419,10 @@ { "value": "CLOUDWATCH_METRIC", "name": "CLOUDWATCH_METRIC" + }, + { + "value": "RECOVERY_CONTROL", + "name": "RECOVERY_CONTROL" } ] } @@ -4618,13 +4646,13 @@ "OwningAccount": { "target": "com.amazonaws.route53#AWSAccountID", "traits": { - "smithy.api#documentation": "

If the hosted zone was created by an AWS account, or was created by an AWS service that creates hosted zones using the current account, \n\t\t\tOwningAccount contains the account ID of that account. For example, when you use AWS Cloud Map to create a hosted zone, Cloud Map \n\t\t\tcreates the hosted zone using the current AWS account.

" + "smithy.api#documentation": "

If the hosted zone was created by an account, or was created by an Amazon Web Services service that creates hosted zones using the current account, \n\t\t\tOwningAccount contains the account ID of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map \n\t\t\tcreates the hosted zone using the current account.

" } }, "OwningService": { "target": "com.amazonaws.route53#HostedZoneOwningService", "traits": { - "smithy.api#documentation": "

If an AWS service uses its own account to create a hosted zone and associate the specified VPC with that hosted zone, OwningService \n\t\t\tcontains an abbreviation that identifies the service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and \n\t\t\tassociated a VPC with the hosted zone, the value of OwningService is efs.amazonaws.com.

" + "smithy.api#documentation": "

If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified VPC with that hosted zone, OwningService \n\t\t\tcontains an abbreviation that identifies the service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and \n\t\t\tassociated a VPC with the hosted zone, the value of OwningService is efs.amazonaws.com.

" } } }, @@ -4688,7 +4716,7 @@ "Owner": { "target": "com.amazonaws.route53#HostedZoneOwner", "traits": { - "smithy.api#documentation": "

The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an AWS account or \n\t\t\tan AWS service.

", + "smithy.api#documentation": "

The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an account or \n\t\t\tan Amazon Web Services service.

", "smithy.api#required": {} } } @@ -4713,7 +4741,7 @@ "min": 0, "max": 45 }, - "smithy.api#pattern": "(^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$)" + "smithy.api#pattern": "^(^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$)$" } }, "com.amazonaws.route53#IPAddressCidr": { @@ -4740,7 +4768,7 @@ } }, "traits": { - "smithy.api#documentation": "

Amazon Route 53 doesn't have the permissions required to create log streams and send query logs to log streams. Possible causes \n\t\t\tinclude the following:

\n\t\t ", + "smithy.api#documentation": "

Amazon Route 53 doesn't have the permissions required to create log streams and send query logs to log streams. Possible causes \n\t\t\tinclude the following:

\n\t\t ", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -4945,7 +4973,7 @@ "KmsArn": { "target": "com.amazonaws.route53#SigningKeyString", "traits": { - "smithy.api#documentation": "

The Amazon resource name (ARN) used to identify the customer managed customer master key (CMK) in AWS Key Management Service (AWS KMS).\n\t\t\tThe KmsArn must be unique for each key-signing key (KSK) in a single hosted zone.

\n\t\t

You must configure the CMK as follows:

\n\t\t
\n
Status
\n
\n

Enabled

\n
\n
Key spec
\n
\n

ECC_NIST_P256

\n
\n
Key usage
\n
\n

Sign and verify

\n
\n
Key policy
\n
\n

The key policy must give permission for the following actions:

\n\t\t\t\t \n\t\t\t\t\t

The key policy must also include the Amazon Route 53 service in the principal for your account. \n\t\t\t\t\t\tSpecify the following:

\n\t\t\t\t\t \n\t\t\t\t
\n
\n\t\t

For more information about working with the customer managed CMK in AWS KMS, see \n\t\t\tAWS Key Management Service concepts.

" + "smithy.api#documentation": "

The Amazon resource name (ARN) used to identify the customer managed customer master key (CMK) in Key Management Service (KMS).\n\t\t\tThe KmsArn must be unique for each key-signing key (KSK) in a single hosted zone.

\n\t\t

You must configure the CMK as follows:

\n\t\t
\n
Status
\n
\n

Enabled

\n
\n
Key spec
\n
\n

ECC_NIST_P256

\n
\n
Key usage
\n
\n

Sign and verify

\n
\n
Key policy
\n
\n

The key policy must give permission for the following actions:

\n\t\t\t\t \n\t\t\t\t\t

The key policy must also include the Amazon Route 53 service in the principal for your account. \n\t\t\t\t\t\tSpecify the following:

\n\t\t\t\t\t \n\t\t\t\t
\n
\n\t\t

For more information about working with the customer managed CMK in KMS, see \n\t\t\tKey Management Service concepts.

" } }, "Flag": { @@ -5128,7 +5156,7 @@ } }, "traits": { - "smithy.api#documentation": "

This operation can't be completed either because the current account has reached the limit on reusable delegation sets \n\t\t\tthat it can create or because you've reached the limit on the number of Amazon VPCs that you can associate with a private hosted zone. \n\t\t\tTo get the current limit on the number of reusable delegation sets, see \n\t\t\tGetAccountLimit.\n\t\t\tTo get the current limit on the number of Amazon VPCs that you can associate with a private hosted zone, see \n\t\t\tGetHostedZoneLimit.\n\t\t\tTo request a higher limit, create a case with the AWS Support Center.

", + "smithy.api#documentation": "

This operation can't be completed either because the current account has reached the limit on reusable delegation sets \n\t\t\tthat it can create or because you've reached the limit on the number of Amazon VPCs that you can associate with a private hosted zone. \n\t\t\tTo get the current limit on the number of reusable delegation sets, see \n\t\t\tGetAccountLimit.\n\t\t\tTo get the current limit on the number of Amazon VPCs that you can associate with a private hosted zone, see \n\t\t\tGetHostedZoneLimit.\n\t\t\tTo request a higher limit, create a case with the Amazon Web Services Support Center.

", "smithy.api#error": "client" } }, @@ -5274,7 +5302,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieve a list of the health checks that are associated with the current AWS account.

", + "smithy.api#documentation": "

Retrieve a list of the health checks that are associated with the current account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/healthcheck", @@ -5307,7 +5335,7 @@ } }, "traits": { - "smithy.api#documentation": "

A request to retrieve a list of the health checks that are associated with the current AWS account.

" + "smithy.api#documentation": "

A request to retrieve a list of the health checks that are associated with the current account.

" } }, "com.amazonaws.route53#ListHealthChecksResponse": { @@ -5316,7 +5344,7 @@ "HealthChecks": { "target": "com.amazonaws.route53#HealthChecks", "traits": { - "smithy.api#documentation": "

A complex type that contains one HealthCheck element for each health check that is associated with the current \n\t\t\tAWS account.

", + "smithy.api#documentation": "

A complex type that contains one HealthCheck element for each health check that is associated with the current \n\t\t\taccount.

", "smithy.api#required": {} } }, @@ -5372,7 +5400,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of the public and private hosted zones that are associated with the current AWS account. The response \n\t\t\tincludes a HostedZones child element for each hosted zone.

\n\t\t

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of hosted zones, you can use the \n\t\t\tmaxitems parameter to list them in groups of up to 100.

", + "smithy.api#documentation": "

Retrieves a list of the public and private hosted zones that are associated with the current account. The response \n\t\t\tincludes a HostedZones child element for each hosted zone.

\n\t\t

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of hosted zones, you can use the \n\t\t\tmaxitems parameter to list them in groups of up to 100.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/hostedzone", @@ -5403,7 +5431,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of your hosted zones in lexicographic order. The response includes a HostedZones child element \n\t\t\tfor each hosted zone created by the current AWS account.

\n\t\t

\n ListHostedZonesByName sorts hosted zones by name with the labels reversed. For example:

\n\n\t\t

\n com.example.www.\n

\n\n\t\t

Note the trailing dot, which can change the sort order in some circumstances.

\n\t\t

If the domain name includes escape characters or Punycode, ListHostedZonesByName alphabetizes the domain name \n\t\t\tusing the escaped or Punycoded value, which is the format that Amazon Route 53 saves in its database. For example, to create a hosted zone \n\t\t\tfor exämple.com, you specify ex\\344mple.com for the domain name. ListHostedZonesByName alphabetizes it as:

\n\n\t\t

\n com.ex\\344mple.\n

\n\t\t\n\t\t

The labels are reversed and alphabetized using the escaped value. For more information about valid domain name formats, \n\t\t\tincluding internationalized domain names, see DNS Domain Name Format in the \n\t\t\tAmazon Route 53 Developer Guide.

\n\t\t

Route 53 returns up to 100 items in each response. If you have a lot of hosted zones, use the MaxItems parameter to list \n\t\t\tthem in groups of up to 100. The response includes values that help navigate from one group of MaxItems hosted zones to the next:

\n\t\t ", + "smithy.api#documentation": "

Retrieves a list of your hosted zones in lexicographic order. The response includes a HostedZones child element \n\t\t\tfor each hosted zone created by the current account.

\n\t\t

\n ListHostedZonesByName sorts hosted zones by name with the labels reversed. For example:

\n\n\t\t

\n com.example.www.\n

\n\n\t\t

Note the trailing dot, which can change the sort order in some circumstances.

\n\t\t

If the domain name includes escape characters or Punycode, ListHostedZonesByName alphabetizes the domain name \n\t\t\tusing the escaped or Punycoded value, which is the format that Amazon Route 53 saves in its database. For example, to create a hosted zone \n\t\t\tfor exämple.com, you specify ex\\344mple.com for the domain name. ListHostedZonesByName alphabetizes it as:

\n\n\t\t

\n com.ex\\344mple.\n

\n\t\t\n\t\t

The labels are reversed and alphabetized using the escaped value. For more information about valid domain name formats, \n\t\t\tincluding internationalized domain names, see DNS Domain Name Format in the \n\t\t\tAmazon Route 53 Developer Guide.

\n\t\t

Route 53 returns up to 100 items in each response. If you have a lot of hosted zones, use the MaxItems parameter to list \n\t\t\tthem in groups of up to 100. The response includes values that help navigate from one group of MaxItems hosted zones to the next:

\n\t\t ", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/hostedzonesbyname", @@ -5417,7 +5445,7 @@ "DNSName": { "target": "com.amazonaws.route53#DNSName", "traits": { - "smithy.api#documentation": "

(Optional) For your first request to ListHostedZonesByName, include the dnsname parameter only if you want to \n\t\t\tspecify the name of the first hosted zone in the response. If you don't include the dnsname parameter, Amazon Route 53 returns all of \n\t\t\tthe hosted zones that were created by the current AWS account, in ASCII order. For subsequent requests, include both dnsname and \n\t\t\thostedzoneid parameters. For dnsname, specify the value of NextDNSName from the previous response.

", + "smithy.api#documentation": "

(Optional) For your first request to ListHostedZonesByName, include the dnsname parameter only if you want to \n\t\t\tspecify the name of the first hosted zone in the response. If you don't include the dnsname parameter, Amazon Route 53 returns all of \n\t\t\tthe hosted zones that were created by the current account, in ASCII order. For subsequent requests, include both dnsname and \n\t\t\thostedzoneid parameters. For dnsname, specify the value of NextDNSName from the previous response.

", "smithy.api#httpQuery": "dnsname" } }, @@ -5437,7 +5465,7 @@ } }, "traits": { - "smithy.api#documentation": "

Retrieves a list of the public and private hosted zones that are associated with the current AWS account in ASCII order by domain \n\t\t\tname.

" + "smithy.api#documentation": "

Retrieves a list of the public and private hosted zones that are associated with the current account in ASCII order by domain \n\t\t\tname.

" } }, "com.amazonaws.route53#ListHostedZonesByNameResponse": { @@ -5510,7 +5538,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the private hosted zones that a specified VPC is associated with, regardless of which AWS account or AWS service owns the \n\t\t\thosted zones. The HostedZoneOwner structure in the response contains one of the following values:

\n\t\t ", + "smithy.api#documentation": "

Lists all the private hosted zones that a specified VPC is associated with, regardless of which account or Amazon Web Services service owns the \n\t\t\thosted zones. The HostedZoneOwner structure in the response contains one of the following values:

\n\t\t ", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/hostedzonesbyvpc", @@ -5532,7 +5560,7 @@ "VPCRegion": { "target": "com.amazonaws.route53#VPCRegion", "traits": { - "smithy.api#documentation": "

For the Amazon VPC that you specified for VPCId, the AWS Region that you created the VPC in.

", + "smithy.api#documentation": "

For the Amazon VPC that you specified for VPCId, the Amazon Web Services Region that you created the VPC in.

", "smithy.api#httpQuery": "vpcregion", "smithy.api#required": {} } @@ -5553,7 +5581,7 @@ } }, "traits": { - "smithy.api#documentation": "

Lists all the private hosted zones that a specified VPC is associated with, regardless of which AWS account created the hosted zones.

" + "smithy.api#documentation": "

Lists all the private hosted zones that a specified VPC is associated with, regardless of which account created the hosted zones.

" } }, "com.amazonaws.route53#ListHostedZonesByVPCResponse": { @@ -5576,7 +5604,7 @@ "NextToken": { "target": "com.amazonaws.route53#PaginationToken", "traits": { - "smithy.api#documentation": "

The value that you specified for NextToken in the most recent ListHostedZonesByVPC request.

" + "smithy.api#documentation": "

The value that you will use for NextToken in the next ListHostedZonesByVPC request.

" } } } @@ -5607,7 +5635,7 @@ } }, "traits": { - "smithy.api#documentation": "

A request to retrieve a list of the public and private hosted zones that are associated with the current AWS account.

" + "smithy.api#documentation": "

A request to retrieve a list of the public and private hosted zones that are associated with the current account.

" } }, "com.amazonaws.route53#ListHostedZonesResponse": { @@ -5669,7 +5697,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the configurations for DNS query logging that are associated with the current AWS account or the configuration \n\t\t\tthat is associated with a specified hosted zone.

\n\n\t\t

For more information about DNS query logs, see \n\t\t\tCreateQueryLoggingConfig. \n\t\t\tAdditional information, including the format of DNS query logs, appears in \n\t\t\tLogging DNS Queries \n\t\t\tin the Amazon Route 53 Developer Guide.

", + "smithy.api#documentation": "

Lists the configurations for DNS query logging that are associated with the current account or the configuration \n\t\t\tthat is associated with a specified hosted zone.

\n\n\t\t

For more information about DNS query logs, see \n\t\t\tCreateQueryLoggingConfig. \n\t\t\tAdditional information, including the format of DNS query logs, appears in \n\t\t\tLogging DNS Queries \n\t\t\tin the Amazon Route 53 Developer Guide.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/queryloggingconfig", @@ -5689,21 +5717,21 @@ "HostedZoneId": { "target": "com.amazonaws.route53#ResourceId", "traits": { - "smithy.api#documentation": "

(Optional) If you want to list the query logging configuration that is associated with a hosted zone, specify the ID in \n\t\t\tHostedZoneId.

\n\t\t

If you don't specify a hosted zone ID, ListQueryLoggingConfigs returns all of the configurations \n\t\t\tthat are associated with the current AWS account.

", + "smithy.api#documentation": "

(Optional) If you want to list the query logging configuration that is associated with a hosted zone, specify the ID in \n\t\t\tHostedZoneId.

\n\t\t

If you don't specify a hosted zone ID, ListQueryLoggingConfigs returns all of the configurations \n\t\t\tthat are associated with the current account.

", "smithy.api#httpQuery": "hostedzoneid" } }, "NextToken": { "target": "com.amazonaws.route53#PaginationToken", "traits": { - "smithy.api#documentation": "

(Optional) If the current AWS account has more than MaxResults query logging configurations, use NextToken \n\t\t\tto get the second and subsequent pages of results.

\n\t\t

For the first ListQueryLoggingConfigs request, omit this value.

\n\t\t

For the second and subsequent requests, get the value of NextToken from the previous response and specify that value \n\t\t\tfor NextToken in the request.

", + "smithy.api#documentation": "

(Optional) If the current account has more than MaxResults query logging configurations, use NextToken \n\t\t\tto get the second and subsequent pages of results.

\n\t\t

For the first ListQueryLoggingConfigs request, omit this value.

\n\t\t

For the second and subsequent requests, get the value of NextToken from the previous response and specify that value \n\t\t\tfor NextToken in the request.

", "smithy.api#httpQuery": "nexttoken" } }, "MaxResults": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

(Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. \n\t\t\tIf the current AWS account has more than MaxResults configurations, use the value of \n\t\t\tNextToken \n\t\t\tin the response to get the next page of results.

\n\t\t

If you don't specify a value for MaxResults, Route 53 returns up to 100 configurations.

", + "smithy.api#documentation": "

(Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. \n\t\t\tIf the current account has more than MaxResults configurations, use the value of \n\t\t\tNextToken \n\t\t\tin the response to get the next page of results.

\n\t\t

If you don't specify a value for MaxResults, Route 53 returns up to 100 configurations.

", "smithy.api#httpQuery": "maxresults" } } @@ -5715,14 +5743,14 @@ "QueryLoggingConfigs": { "target": "com.amazonaws.route53#QueryLoggingConfigs", "traits": { - "smithy.api#documentation": "

An array that contains one \n\t\t\tQueryLoggingConfig element \n\t\t\tfor each configuration for DNS query logging that is associated with the current AWS account.

", + "smithy.api#documentation": "

An array that contains one \n\t\t\tQueryLoggingConfig element \n\t\t\tfor each configuration for DNS query logging that is associated with the current account.

", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.route53#PaginationToken", "traits": { - "smithy.api#documentation": "

If a response includes the last of the query logging configurations that are associated with the current AWS account, \n\t\t\tNextToken doesn't appear in the response.

\n\t\t

If a response doesn't include the last of the configurations, you can get more configurations by submitting another \n\t\t\tListQueryLoggingConfigs \n\t\t\trequest. Get the value of NextToken that Amazon Route 53 returned in the previous response and include it in \n\t\t\tNextToken in the next request.

" + "smithy.api#documentation": "

If a response includes the last of the query logging configurations that are associated with the current account, \n\t\t\tNextToken doesn't appear in the response.

\n\t\t

If a response doesn't include the last of the configurations, you can get more configurations by submitting another \n\t\t\tListQueryLoggingConfigs \n\t\t\trequest. Get the value of NextToken that Amazon Route 53 returned in the previous response and include it in \n\t\t\tNextToken in the next request.

" } } } @@ -5857,7 +5885,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of the reusable delegation sets that are associated with the current AWS account.

", + "smithy.api#documentation": "

Retrieves a list of the reusable delegation sets that are associated with the current account.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/delegationset", @@ -5884,7 +5912,7 @@ } }, "traits": { - "smithy.api#documentation": "

A request to get a list of the reusable delegation sets that are associated with the current AWS account.

" + "smithy.api#documentation": "

A request to get a list of the reusable delegation sets that are associated with the current account.

" } }, "com.amazonaws.route53#ListReusableDelegationSetsResponse": { @@ -5893,7 +5921,7 @@ "DelegationSets": { "target": "com.amazonaws.route53#DelegationSets", "traits": { - "smithy.api#documentation": "

A complex type that contains one DelegationSet element for each reusable delegation set that was created \n\t\t\tby the current AWS account.

", + "smithy.api#documentation": "

A complex type that contains one DelegationSet element for each reusable delegation set that was created \n\t\t\tby the current account.

", "smithy.api#required": {} } }, @@ -5926,7 +5954,7 @@ } }, "traits": { - "smithy.api#documentation": "

A complex type that contains information about the reusable delegation sets that are associated with the current AWS account.

" + "smithy.api#documentation": "

A complex type that contains information about the reusable delegation sets that are associated with the current account.

" } }, "com.amazonaws.route53#ListTagsForResource": { @@ -5955,7 +5983,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists tags for one health check or hosted zone.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the AWS Billing and Cost Management User Guide.

", + "smithy.api#documentation": "

Lists tags for one health check or hosted zone.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the Billing and Cost Management User Guide.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/tags/{ResourceType}/{ResourceId}", @@ -6028,7 +6056,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists tags for up to 10 health checks or hosted zones.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the AWS Billing and Cost Management User Guide.

", + "smithy.api#documentation": "

Lists tags for up to 10 health checks or hosted zones.

\n\t\t

For information about using tags for cost allocation, see \n\t\t\tUsing Cost Allocation Tags \n\t\t\tin the Billing and Cost Management User Guide.

", "smithy.api#http": { "method": "POST", "uri": "/2013-04-01/tags/{ResourceType}", @@ -6088,7 +6116,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets information about the latest version for every traffic policy that is associated with the current AWS account. \n\t\t\tPolicies are listed in the order that they were created in.

\n\t\t\n\t\t

For information about how of deleting a traffic policy affects the response from ListTrafficPolicies, see \n\t\t\tDeleteTrafficPolicy.\n\n\t\t

", + "smithy.api#documentation": "

Gets information about the latest version for every traffic policy that is associated with the current account. \n\t\t\tPolicies are listed in the order that they were created in.

\n\t\t\n\t\t

For information about how of deleting a traffic policy affects the response from ListTrafficPolicies, see \n\t\t\tDeleteTrafficPolicy.\n\n\t\t

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/trafficpolicies", @@ -6115,7 +6143,7 @@ } }, "traits": { - "smithy.api#documentation": "

A complex type that contains the information about the request to list the traffic policies that are associated \n\t\t\twith the current AWS account.

" + "smithy.api#documentation": "

A complex type that contains the information about the request to list the traffic policies that are associated \n\t\t\twith the current account.

" } }, "com.amazonaws.route53#ListTrafficPoliciesResponse": { @@ -6124,7 +6152,7 @@ "TrafficPolicySummaries": { "target": "com.amazonaws.route53#TrafficPolicySummaries", "traits": { - "smithy.api#documentation": "

A list that contains one TrafficPolicySummary element for each traffic policy that was created by the current AWS account.

", + "smithy.api#documentation": "

A list that contains one TrafficPolicySummary element for each traffic policy that was created by the current account.

", "smithy.api#required": {} } }, @@ -6171,7 +6199,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets information about the traffic policy instances that you created by using the current AWS account.

\n\t\t \n\t\t\t

After you submit an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the \n\t\t\t\tresource record sets that are specified in the traffic policy definition. For more information, see the State response element.

\n\t\t
\n\t\t

Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the \n\t\t\tMaxItems parameter to list them in groups of up to 100.

", + "smithy.api#documentation": "

Gets information about the traffic policy instances that you created by using the current account.

\n\t\t \n\t\t\t

After you submit an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the \n\t\t\t\tresource record sets that are specified in the traffic policy definition. For more information, see the State response element.

\n\t\t
\n\t\t

Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the \n\t\t\tMaxItems parameter to list them in groups of up to 100.

", "smithy.api#http": { "method": "GET", "uri": "/2013-04-01/trafficpolicyinstances", @@ -6445,7 +6473,7 @@ } }, "traits": { - "smithy.api#documentation": "

A request to get information about the traffic policy instances that you created by using the current AWS account.

" + "smithy.api#documentation": "

A request to get information about the traffic policy instances that you created by using the current account.

" } }, "com.amazonaws.route53#ListTrafficPolicyInstancesResponse": { @@ -7095,7 +7123,7 @@ "com.amazonaws.route53#RecordDataEntry": { "type": "string", "traits": { - "smithy.api#documentation": "

A value that Amazon Route 53 returned for this resource record set. A RecordDataEntry element is one of the following:

\n\t\t ", + "smithy.api#documentation": "

A value that Amazon Route 53 returned for this resource record set. A RecordDataEntry element is one of the following:

\n\t\t ", "smithy.api#length": { "min": 0, "max": 512 @@ -7228,7 +7256,7 @@ "Region": { "target": "com.amazonaws.route53#ResourceRecordSetRegion", "traits": { - "smithy.api#documentation": "

\n Latency-based resource record sets only: The Amazon EC2 Region where you created the resource that this \n\t\t\tresource record set refers to. The resource typically is an AWS resource, such as an EC2 instance or an ELB load balancer, and is \n\t\t\treferred to by an IP address or a DNS domain name, depending on the record type.

\n\t\t \n\t\t\t

Although creating latency and latency alias resource record sets in a private hosted zone is allowed, \n\t\t\t\tit's not supported.

\n\t\t
\n\t\t

When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Route 53 \n\t\t\tselects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Route 53 then \n\t\t\treturns the value that is associated with the selected resource record set.

\n\t\t

Note the following:

\n\t\t " + "smithy.api#documentation": "

\n Latency-based resource record sets only: The Amazon EC2 Region where you created the resource that this \n\t\t\tresource record set refers to. The resource typically is an Amazon Web Services resource, such as an EC2 instance or an ELB load balancer, and is \n\t\t\treferred to by an IP address or a DNS domain name, depending on the record type.

\n\t\t \n\t\t\t

Although creating latency and latency alias resource record sets in a private hosted zone is allowed, \n\t\t\t\tit's not supported.

\n\t\t
\n\t\t

When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Route 53 \n\t\t\tselects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Route 53 then \n\t\t\treturns the value that is associated with the selected resource record set.

\n\t\t

Note the following:

\n\t\t " } }, "GeoLocation": { @@ -7264,7 +7292,7 @@ "AliasTarget": { "target": "com.amazonaws.route53#AliasTarget", "traits": { - "smithy.api#documentation": "

\n Alias resource record sets only: Information about the AWS resource, such as a CloudFront distribution or an \n\t\t\tAmazon S3 bucket, that you want to route traffic to.

\n\t\t

If you're creating resource records sets for a private hosted zone, note the following:

\n\t\t " + "smithy.api#documentation": "

\n Alias resource record sets only: Information about the Amazon Web Services resource, such as a CloudFront distribution or an \n\t\t\tAmazon S3 bucket, that you want to route traffic to.

\n\t\t

If you're creating resource records sets for a private hosted zone, note the following:

\n\t\t " } }, "HealthCheckId": { @@ -7527,6 +7555,15 @@ ] } }, + "com.amazonaws.route53#RoutingControlArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + } + } + }, "com.amazonaws.route53#SearchString": { "type": "string", "traits": { @@ -7827,7 +7864,7 @@ "ResolverIP": { "target": "com.amazonaws.route53#IPAddress", "traits": { - "smithy.api#documentation": "

If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. \n\t\t\tIf you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the AWS US East (N. Virginia) Region \n\t\t\t(us-east-1).

", + "smithy.api#documentation": "

If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. \n\t\t\tIf you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the Amazon Web Services US East (N. Virginia) Region \n\t\t\t(us-east-1).

", "smithy.api#httpQuery": "resolverip" } }, @@ -7930,7 +7967,7 @@ } }, "traits": { - "smithy.api#documentation": "

This health check can't be created because the current account has reached the limit on the number of active health checks.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

For information about how to get the current limit for an account, see \n\t\t\tGetAccountLimit. To request a \n\t\t\thigher limit, create a case with the AWS Support Center.

\n\n\t\t

You have reached the maximum number of active health checks for an AWS account. To request a higher limit, \n\t\t\tcreate a case with the AWS Support Center.

", + "smithy.api#documentation": "

This health check can't be created because the current account has reached the limit on the number of active health checks.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

For information about how to get the current limit for an account, see \n\t\t\tGetAccountLimit. To request a \n\t\t\thigher limit, create a case with the Amazon Web Services Support Center.

\n\n\t\t

You have reached the maximum number of active health checks for an account. To request a higher limit, \n\t\t\tcreate a case with the Amazon Web Services Support Center.

", "smithy.api#error": "client" } }, @@ -7945,7 +7982,7 @@ } }, "traits": { - "smithy.api#documentation": "

This operation can't be completed either because the current account has reached the limit on the number of hosted zones \n\t\t\tor because you've reached the limit on the number of hosted zones that can be associated with a reusable delegation set.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

To get the current limit on hosted zones that can be created by an account, see \n\t\t\tGetAccountLimit.

\n\t\t

To get the current limit on hosted zones that can be associated with a reusable delegation set, see \n\t\t\tGetReusableDelegationSetLimit.

\n\t\t

To request a higher limit, create a case with the AWS Support Center.

", + "smithy.api#documentation": "

This operation can't be completed either because the current account has reached the limit on the number of hosted zones \n\t\t\tor because you've reached the limit on the number of hosted zones that can be associated with a reusable delegation set.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

To get the current limit on hosted zones that can be created by an account, see \n\t\t\tGetAccountLimit.

\n\t\t

To get the current limit on hosted zones that can be associated with a reusable delegation set, see \n\t\t\tGetReusableDelegationSetLimit.

\n\t\t

To request a higher limit, create a case with the Amazon Web Services Support Center.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -7973,7 +8010,7 @@ } }, "traits": { - "smithy.api#documentation": "

This traffic policy can't be created because the current account has reached the limit on the number of traffic policies.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

To get the current limit for an account, see \n\t\t\tGetAccountLimit. \n\t\t

\n\t\t

To request a higher limit, create a case with the AWS Support Center.

", + "smithy.api#documentation": "

This traffic policy can't be created because the current account has reached the limit on the number of traffic policies.

\n\t\t

For information about default limits, see Limits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

To get the current limit for an account, see \n\t\t\tGetAccountLimit. \n\t\t

\n\t\t

To request a higher limit, create a case with the Amazon Web Services Support Center.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -7989,7 +8026,7 @@ } }, "traits": { - "smithy.api#documentation": "

This traffic policy instance can't be created because the current account has reached the limit on the number of \n\t\t\ttraffic policy instances.

\n\t\t

For information about default limits, see \n\t\t\tLimits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

For information about how to get the current limit for an account, see \n\t\t\tGetAccountLimit.

\n\t\t

To request a higher limit, create a case with the AWS Support Center.

", + "smithy.api#documentation": "

This traffic policy instance can't be created because the current account has reached the limit on the number of \n\t\t\ttraffic policy instances.

\n\t\t

For information about default limits, see \n\t\t\tLimits \n\t\t\tin the Amazon Route 53 Developer Guide.

\n\t\t

For information about how to get the current limit for an account, see \n\t\t\tGetAccountLimit.

\n\t\t

To request a higher limit, create a case with the Amazon Web Services Support Center.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -8309,13 +8346,13 @@ "TrafficPolicyCount": { "target": "com.amazonaws.route53#TrafficPolicyVersion", "traits": { - "smithy.api#documentation": "

The number of traffic policies that are associated with the current AWS account.

", + "smithy.api#documentation": "

The number of traffic policies that are associated with the current account.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

A complex type that contains information about the latest version of one traffic policy \n\t\t\tthat is associated with the current AWS account.

" + "smithy.api#documentation": "

A complex type that contains information about the latest version of one traffic policy \n\t\t\tthat is associated with the current account.

" } }, "com.amazonaws.route53#TrafficPolicyVersion": { diff --git a/codegen/sdk-codegen/aws-models/route53recoverycluster.2019-12-02.json b/codegen/sdk-codegen/aws-models/route53recoverycluster.2019-12-02.json new file mode 100644 index 00000000000..5f5cf9ccd22 --- /dev/null +++ b/codegen/sdk-codegen/aws-models/route53recoverycluster.2019-12-02.json @@ -0,0 +1,511 @@ +{ + "smithy": "1.0", + "metadata": { + "suppressions": [ + { + "id": "HttpMethodSemantics", + "namespace": "*" + }, + { + "id": "HttpResponseCodeSemantics", + "namespace": "*" + }, + { + "id": "PaginatedTrait", + "namespace": "*" + }, + { + "id": "HttpHeaderTrait", + "namespace": "*" + }, + { + "id": "HttpUriConflict", + "namespace": "*" + }, + { + "id": "Service", + "namespace": "*" + } + ] + }, + "shapes": { + "com.amazonaws.route53recoverycluster#AccessDeniedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

You don't have sufficient permissions to query the routing control state.

", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.route53recoverycluster#Arn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[A-Za-z0-9:\\/_-]*$" + } + }, + "com.amazonaws.route53recoverycluster#ConflictException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#documentation": "Description of the ConflictException error", + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#documentation": "Identifier of the resource in use", + "smithy.api#required": {} + } + }, + "resourceType": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#documentation": "Type of the resource in use", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

There was a conflict with this request. Try again.

", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The cluster endpoint isn't available. Try another cluster endpoint.

", + "smithy.api#error": "server", + "smithy.api#httpError": 503 + } + }, + "com.amazonaws.route53recoverycluster#GetRoutingControlState": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycluster#GetRoutingControlStateRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycluster#GetRoutingControlStateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycluster#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException" + }, + { + "target": "com.amazonaws.route53recoverycluster#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Get the state for a routing control. A routing control is a simple on/off switch\n\t\t\t\tthat you can use to route traffic to cells. When the state is On, traffic flows to a cell. When it's off, traffic does not flow.

\n\t\t\t

Before you can create a routing control, you first must create a cluster to host the control.\n\t\t\t\tFor more information, see \n\t\t\t\tCreateCluster.\n\t\t\t\tAccess one of the endpoints for the cluster to get or update the routing control state to\n\t\t\t\tredirect traffic.

\n\t\t\t

For more information about working with routing controls, see \n\t\t\t\tRouting control\n\t\t\t\tin the Route 53 Application Recovery Controller Developer Guide.

" + } + }, + "com.amazonaws.route53recoverycluster#GetRoutingControlStateRequest": { + "type": "structure", + "members": { + "RoutingControlArn": { + "target": "com.amazonaws.route53recoverycluster#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Number (ARN) for the routing control that you want to get the state for.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycluster#GetRoutingControlStateResponse": { + "type": "structure", + "members": { + "RoutingControlArn": { + "target": "com.amazonaws.route53recoverycluster#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Number (ARN) of the response.

", + "smithy.api#required": {} + } + }, + "RoutingControlState": { + "target": "com.amazonaws.route53recoverycluster#RoutingControlState", + "traits": { + "smithy.api#documentation": "

The state of the routing control.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycluster#InternalServerException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#required": {} + } + }, + "retryAfterSeconds": { + "target": "com.amazonaws.route53recoverycluster#RetryAfterSeconds", + "traits": { + "smithy.api#httpHeader": "Retry-After" + } + } + }, + "traits": { + "smithy.api#documentation": "

There was an unexpected error during processing of the request.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.route53recoverycluster#ResourceNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#documentation": "Hypothetical resource identifier that was not found", + "smithy.api#required": {} + } + }, + "resourceType": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#documentation": "Hypothetical resource type that was not found", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The request references a routing control that was not found.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.route53recoverycluster#RetryAfterSeconds": { + "type": "integer", + "traits": { + "smithy.api#documentation": "Advice to clients on when the call can be safely retried" + } + }, + "com.amazonaws.route53recoverycluster#RoutingControlState": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "On", + "name": "On" + }, + { + "value": "Off", + "name": "Off" + } + ] + } + }, + "com.amazonaws.route53recoverycluster#String": { + "type": "string" + }, + "com.amazonaws.route53recoverycluster#ThrottlingException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#required": {} + } + }, + "retryAfterSeconds": { + "target": "com.amazonaws.route53recoverycluster#RetryAfterSeconds", + "traits": { + "smithy.api#httpHeader": "Retry-After" + } + } + }, + "traits": { + "smithy.api#documentation": "

The request was denied because of request throttling.

", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.route53recoverycluster#ToggleCustomerAPI": { + "type": "service", + "version": "2019-12-02", + "operations": [ + { + "target": "com.amazonaws.route53recoverycluster#GetRoutingControlState" + }, + { + "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlState" + }, + { + "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStates" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Route53 Recovery Cluster", + "arnNamespace": "route53-recovery-cluster", + "cloudFormationName": "Route53RecoveryCluster", + "cloudTrailEventSource": "route53recoverycluster.amazonaws.com", + "endpointPrefix": "route53-recovery-cluster" + }, + "aws.auth#sigv4": { + "name": "route53-recovery-cluster" + }, + "aws.protocols#awsJson1_0": {}, + "smithy.api#documentation": "

Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .

\n\t\t\t

Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications \n\t\t\t\tby rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches \n\t\t\t\thosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or \n\t\t\t\tget the state of routing controls. You use routing controls to failover traffic to recover your application \n\t\t\t\tacross Availability Zones or Regions.

\n\t\t\t

This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.

\n\t\t\t

For more information about Route 53 Application Recovery Controller, see the following:

\n\t\t\t ", + "smithy.api#title": "Route53 Recovery Cluster" + } + }, + "com.amazonaws.route53recoverycluster#UpdateRoutingControlState": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycluster#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException" + }, + { + "target": "com.amazonaws.route53recoverycluster#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Set the state of the routing control to reroute traffic. You can set the value to be On or Off.\n\t\t\t\tWhen the state is On, traffic flows to a cell. When it's off, traffic does not flow.

\n\t\t\t

For more information about working with routing controls, see \n\t\t\t\tRouting control\n\t\t\t\tin the Route 53 Application Recovery Controller Developer Guide.

" + } + }, + "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateEntries": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateEntry" + } + }, + "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateEntry": { + "type": "structure", + "members": { + "RoutingControlArn": { + "target": "com.amazonaws.route53recoverycluster#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Number (ARN) for the routing control state entry.

", + "smithy.api#required": {} + } + }, + "RoutingControlState": { + "target": "com.amazonaws.route53recoverycluster#RoutingControlState", + "traits": { + "smithy.api#documentation": "

The routing control state in a set of routing control state entries.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A routing control state.

" + } + }, + "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateRequest": { + "type": "structure", + "members": { + "RoutingControlArn": { + "target": "com.amazonaws.route53recoverycluster#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Number (ARN) for the routing control that you want to update the state for.

", + "smithy.api#required": {} + } + }, + "RoutingControlState": { + "target": "com.amazonaws.route53recoverycluster#RoutingControlState", + "traits": { + "smithy.api#documentation": "

The state of the routing control. You can set the value to be On or Off.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.route53recoverycluster#UpdateRoutingControlStates": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStatesRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStatesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycluster#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException" + }, + { + "target": "com.amazonaws.route53recoverycluster#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycluster#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Set multiple routing control states. You can set the value for each state to be On or Off.\n\t\t\tWhen the state is On, traffic flows to a cell. When it's off, traffic does not flow.

\n\t\t\t

For more information about working with routing controls, see \n\t\t\t\tRouting control\n\t\t\t\tin the Route 53 Application Recovery Controller Developer Guide.

" + } + }, + "com.amazonaws.route53recoverycluster#UpdateRoutingControlStatesRequest": { + "type": "structure", + "members": { + "UpdateRoutingControlStateEntries": { + "target": "com.amazonaws.route53recoverycluster#UpdateRoutingControlStateEntries", + "traits": { + "smithy.api#documentation": "

A set of routing control entries that you want to update.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycluster#UpdateRoutingControlStatesResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.route53recoverycluster#ValidationException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#required": {} + } + }, + "reason": { + "target": "com.amazonaws.route53recoverycluster#ValidationExceptionReason" + }, + "fields": { + "target": "com.amazonaws.route53recoverycluster#ValidationExceptionFieldList" + } + }, + "traits": { + "smithy.api#documentation": "

There was a validation error on the request.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.route53recoverycluster#ValidationExceptionField": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#documentation": "

The field that had the validation exception.

", + "smithy.api#required": {} + } + }, + "message": { + "target": "com.amazonaws.route53recoverycluster#String", + "traits": { + "smithy.api#documentation": "

Information about the validation exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

There was a validation error on the request.

" + } + }, + "com.amazonaws.route53recoverycluster#ValidationExceptionFieldList": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoverycluster#ValidationExceptionField" + }, + "traits": { + "smithy.api#documentation": "The fields that caused the error, if applicable" + } + }, + "com.amazonaws.route53recoverycluster#ValidationExceptionReason": { + "type": "string", + "traits": { + "smithy.api#documentation": "Reason the request failed validation", + "smithy.api#enum": [ + { + "value": "unknownOperation", + "name": "UNKNOWN_OPERATION" + }, + { + "value": "cannotParse", + "name": "CANNOT_PARSE" + }, + { + "value": "fieldValidationFailed", + "name": "FIELD_VALIDATION_FAILED" + }, + { + "value": "other", + "name": "OTHER" + } + ] + } + } + } +} diff --git a/codegen/sdk-codegen/aws-models/route53recoverycontrolconfig.2020-11-02.json b/codegen/sdk-codegen/aws-models/route53recoverycontrolconfig.2020-11-02.json new file mode 100644 index 00000000000..8f988dcc62c --- /dev/null +++ b/codegen/sdk-codegen/aws-models/route53recoverycontrolconfig.2020-11-02.json @@ -0,0 +1,2333 @@ +{ + "smithy": "1.0", + "metadata": { + "suppressions": [ + { + "id": "HttpMethodSemantics", + "namespace": "*" + }, + { + "id": "HttpResponseCodeSemantics", + "namespace": "*" + }, + { + "id": "PaginatedTrait", + "namespace": "*" + }, + { + "id": "HttpHeaderTrait", + "namespace": "*" + }, + { + "id": "HttpUriConflict", + "namespace": "*" + }, + { + "id": "Service", + "namespace": "*" + } + ] + }, + "shapes": { + "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#jsonName": "message", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

403 response - AccessDeniedException. You do not have sufficient access to perform this action.

", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.route53recoverycontrolconfig#AssertionRule": { + "type": "structure", + "members": { + "AssertedControls": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", + "traits": { + "smithy.api#documentation": "

The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.

", + "smithy.api#required": {} + } + }, + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

Name of the assertion rule. You can use any non-white space character in the name.

", + "smithy.api#required": {} + } + }, + "RuleConfig": { + "target": "com.amazonaws.route53recoverycontrolconfig#RuleConfig", + "traits": { + "smithy.api#documentation": "

The criteria that you set for specific assertion controls (routing controls) that designate how many controls must be enabled as the result of a transaction. For example, if you have three assertion controls, you might specify atleast 2 for your rule configuration. This means that at least two assertion controls must be enabled, so that at least two Amazon Web Services Regions are enabled.

", + "smithy.api#required": {} + } + }, + "SafetyRuleArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the assertion rule.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.route53recoverycontrolconfig#Status", + "traits": { + "smithy.api#documentation": "

The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

", + "smithy.api#required": {} + } + }, + "WaitPeriodMs": { + "target": "com.amazonaws.route53recoverycontrolconfig#__integer", + "traits": { + "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#AssertionRuleUpdate": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the assertion rule. You can use any non-white space character in the name.

", + "smithy.api#required": {} + } + }, + "SafetyRuleArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the assertion rule.

", + "smithy.api#required": {} + } + }, + "WaitPeriodMs": { + "target": "com.amazonaws.route53recoverycontrolconfig#__integer", + "traits": { + "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An update to an assertion rule. You can update the name or the evaluation period (wait period). If you don't specify one of the items to update, the item is unchanged.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#Cluster": { + "type": "structure", + "members": { + "ClusterArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster.

" + } + }, + "ClusterEndpoints": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOfClusterEndpoint", + "traits": { + "smithy.api#documentation": "

Endpoints for a cluster. Specify one of these endpoints when you want to set or retrieve a routing control state in the cluster.

To get or update the routing control state, see the Amazon Route 53 Application Recovery Controller Cluster (Data Plane) Actions.

" + } + }, + "Name": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the cluster.

" + } + }, + "Status": { + "target": "com.amazonaws.route53recoverycontrolconfig#Status", + "traits": { + "smithy.api#documentation": "

Deployment status of a resource. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A cluster is a set of five consensus-forming Regional endpoints that represent the infrastructure that hosts your routing controls. Typically, you host together on one cluster all of the routing controls for your applications.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#ClusterEndpoint": { + "type": "structure", + "members": { + "Endpoint": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max128", + "traits": { + "smithy.api#documentation": "

A cluster endpoint. Specify an endpoint and Amazon Web Services Region when you want to set or retrieve a routing control state in the cluster.

To get or update the routing control state, see the Amazon Route 53 Application Recovery Controller Cluster (Data Plane) Actions.

" + } + }, + "Region": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max32", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Region for a cluster endpoint.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A cluster endpoint. Specify an endpoint when you want to set or retrieve a routing control state in the cluster.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#ConflictException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#jsonName": "message", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

409 response - ConflictException.

", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.route53recoverycontrolconfig#ControlPanel": { + "type": "structure", + "members": { + "ClusterArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that includes the control panel.

" + } + }, + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

" + } + }, + "DefaultControlPanel": { + "target": "com.amazonaws.route53recoverycontrolconfig#__boolean", + "traits": { + "smithy.api#documentation": "

A flag that Amazon Route 53 Application Recovery Controller sets to true to designate the default control panel for a cluster. When you create a cluster, Amazon Route 53 Application Recovery Controller creates a control panel, and sets this flag for that control panel. If you create a control panel yourself, this flag is set to false.

" + } + }, + "Name": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the control panel. You can use any non-white space character in the name.

" + } + }, + "RoutingControlCount": { + "target": "com.amazonaws.route53recoverycontrolconfig#__integer", + "traits": { + "smithy.api#documentation": "

The number of routing controls in the control panel.

" + } + }, + "Status": { + "target": "com.amazonaws.route53recoverycontrolconfig#Status", + "traits": { + "smithy.api#documentation": "

The deployment status of control panel. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A control panel represents a group of routing controls that can be changed together in a single transaction.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateCluster": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateClusterRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateClusterResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Create a new cluster. A cluster is a set of redundant Regional endpoints against which you can run API calls to update or get the state of one or more routing controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an array of the five cluster endpoints (one for each supported Amazon Web Services Region) that you can use with API calls to the Amazon Route 53 Application Recovery Controller cluster data plane.

", + "smithy.api#http": { + "method": "POST", + "uri": "/cluster", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateClusterRequest": { + "type": "structure", + "members": { + "ClientToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax64", + "traits": { + "smithy.api#documentation": "

Unique client idempotency token.

", + "smithy.api#idempotencyToken": {} + } + }, + "ClusterName": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the cluster.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Creates a cluster.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateClusterResponse": { + "type": "structure", + "members": { + "Cluster": { + "target": "com.amazonaws.route53recoverycontrolconfig#Cluster", + "traits": { + "smithy.api#documentation": "

The cluster that was created.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateControlPanel": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateControlPanelRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateControlPanelResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new control panel. A control panel represents a group of routing controls that can be changed together in a single transaction. You can use a control panel to centrally view the operational status of applications across your organization, and trigger multi-app failovers in a single transaction, for example, to fail over an Availability Zone or AWS Region.

", + "smithy.api#http": { + "method": "POST", + "uri": "/controlpanel", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateControlPanelRequest": { + "type": "structure", + "members": { + "ClientToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax64", + "traits": { + "smithy.api#documentation": "

Unique client idempotency token.

", + "smithy.api#idempotencyToken": {} + } + }, + "ClusterArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster for the control panel.

", + "smithy.api#required": {} + } + }, + "ControlPanelName": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the control panel.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The details of the control panel that you're creating.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateControlPanelResponse": { + "type": "structure", + "members": { + "ControlPanel": { + "target": "com.amazonaws.route53recoverycontrolconfig#ControlPanel", + "traits": { + "smithy.api#documentation": "

Information about a control panel.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControl": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControlRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControlResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new routing control.

A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control traffic routing.

To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.

", + "smithy.api#http": { + "method": "POST", + "uri": "/routingcontrol", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControlRequest": { + "type": "structure", + "members": { + "ClientToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax64", + "traits": { + "smithy.api#documentation": "

Unique client idempotency token.

", + "smithy.api#idempotencyToken": {} + } + }, + "ClusterArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that includes the routing control.

", + "smithy.api#required": {} + } + }, + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that includes the routing control.

" + } + }, + "RoutingControlName": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the routing control.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The details of the routing control that you're creating.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControlResponse": { + "type": "structure", + "members": { + "RoutingControl": { + "target": "com.amazonaws.route53recoverycontrolconfig#RoutingControl", + "traits": { + "smithy.api#documentation": "

The routing control that is created.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRule": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRuleRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRuleResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a safety rule in a control panel. Safety rules let you add safeguards around enabling and disabling routing controls, to help prevent unexpected outcomes.

There are two types of safety rules: assertion rules and gating rules.

Assertion rule: An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.

Gating rule: A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.

", + "smithy.api#http": { + "method": "POST", + "uri": "/safetyrule", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRuleRequest": { + "type": "structure", + "members": { + "AssertionRule": { + "target": "com.amazonaws.route53recoverycontrolconfig#NewAssertionRule" + }, + "ClientToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax64", + "traits": { + "smithy.api#documentation": "

Unique client idempotency token.

", + "smithy.api#idempotencyToken": {} + } + }, + "GatingRule": { + "target": "com.amazonaws.route53recoverycontrolconfig#NewGatingRule" + } + }, + "traits": { + "smithy.api#documentation": "

The request body that you include when you create a safety rule.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRuleResponse": { + "type": "structure", + "members": { + "AssertionRule": { + "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRule" + }, + "GatingRule": { + "target": "com.amazonaws.route53recoverycontrolconfig#GatingRule" + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteCluster": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteClusterRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteClusterResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Delete a cluster.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/cluster/{ClusterArn}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteClusterRequest": { + "type": "structure", + "members": { + "ClusterArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that you're deleting.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteClusterResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanel": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanelRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanelResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a control panel.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/controlpanel/{ControlPanelArn}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanelRequest": { + "type": "structure", + "members": { + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that you're deleting.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanelResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControl": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControlRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControlResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a routing control.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/routingcontrol/{RoutingControlArn}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControlRequest": { + "type": "structure", + "members": { + "RoutingControlArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control that you're deleting.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControlResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRule": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRuleRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRuleResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a safety rule.

/>", + "smithy.api#http": { + "method": "DELETE", + "uri": "/safetyrule/{SafetyRuleArn}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRuleRequest": { + "type": "structure", + "members": { + "SafetyRuleArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The request body that you include when you update a safety rule.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRuleResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeCluster": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeClusterRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeClusterResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Display the details about a cluster. The response includes the cluster name, endpoints, status, and Amazon Resource Name (ARN).

", + "smithy.api#http": { + "method": "GET", + "uri": "/cluster/{ClusterArn}", + "code": 200 + }, + "smithy.waiters#waitable": { + "ClusterCreated": { + "documentation": "Wait until a cluster is created", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "Cluster.Status", + "expected": "DEPLOYED", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "Cluster.Status", + "expected": "PENDING", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "errorType": "InternalServerException" + } + } + ], + "minDelay": 5 + }, + "ClusterDeleted": { + "documentation": "Wait for a cluster to be deleted", + "acceptors": [ + { + "state": "success", + "matcher": { + "errorType": "ResourceNotFoundException" + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "Cluster.Status", + "expected": "PENDING_DELETION", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "errorType": "InternalServerException" + } + } + ], + "minDelay": 5 + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeClusterRequest": { + "type": "structure", + "members": { + "ClusterArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that you're getting details for.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeClusterResponse": { + "type": "structure", + "members": { + "Cluster": { + "target": "com.amazonaws.route53recoverycontrolconfig#Cluster", + "traits": { + "smithy.api#documentation": "

The cluster for the DescribeCluster request.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanel": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanelRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanelResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Displays details about a control panel.

", + "smithy.api#http": { + "method": "GET", + "uri": "/controlpanel/{ControlPanelArn}", + "code": 200 + }, + "smithy.waiters#waitable": { + "ControlPanelCreated": { + "documentation": "Wait until a control panel is created", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "ControlPanel.Status", + "expected": "DEPLOYED", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "ControlPanel.Status", + "expected": "PENDING", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "errorType": "InternalServerException" + } + } + ], + "minDelay": 5 + }, + "ControlPanelDeleted": { + "documentation": "Wait until a control panel is deleted", + "acceptors": [ + { + "state": "success", + "matcher": { + "errorType": "ResourceNotFoundException" + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "ControlPanel.Status", + "expected": "PENDING_DELETION", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "errorType": "InternalServerException" + } + } + ], + "minDelay": 5 + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanelRequest": { + "type": "structure", + "members": { + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that you're getting details for.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanelResponse": { + "type": "structure", + "members": { + "ControlPanel": { + "target": "com.amazonaws.route53recoverycontrolconfig#ControlPanel", + "traits": { + "smithy.api#documentation": "

Information about the control panel.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControl": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControlRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControlResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Displays details about a routing control. A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.

To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.

", + "smithy.api#http": { + "method": "GET", + "uri": "/routingcontrol/{RoutingControlArn}", + "code": 200 + }, + "smithy.waiters#waitable": { + "RoutingControlCreated": { + "documentation": "Wait until a routing control is created", + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "RoutingControl.Status", + "expected": "DEPLOYED", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "RoutingControl.Status", + "expected": "PENDING", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "errorType": "InternalServerException" + } + } + ], + "minDelay": 5 + }, + "RoutingControlDeleted": { + "documentation": "Wait for a routing control to be deleted", + "acceptors": [ + { + "state": "success", + "matcher": { + "errorType": "ResourceNotFoundException" + } + }, + { + "state": "retry", + "matcher": { + "output": { + "path": "RoutingControl.Status", + "expected": "PENDING_DELETION", + "comparator": "stringEquals" + } + } + }, + { + "state": "retry", + "matcher": { + "errorType": "InternalServerException" + } + } + ], + "minDelay": 5 + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControlRequest": { + "type": "structure", + "members": { + "RoutingControlArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control that you're getting details for.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControlResponse": { + "type": "structure", + "members": { + "RoutingControl": { + "target": "com.amazonaws.route53recoverycontrolconfig#RoutingControl", + "traits": { + "smithy.api#documentation": "

Information about the routing control.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRule": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRuleRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRuleResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes the safety rules (that is, the assertion rules and gating rules) for the routing controls in a control panel.

", + "smithy.api#http": { + "method": "GET", + "uri": "/safetyrule/{SafetyRuleArn}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRuleRequest": { + "type": "structure", + "members": { + "SafetyRuleArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The request body that you include when you update a safety rule.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRuleResponse": { + "type": "structure", + "members": { + "AssertionRule": { + "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRule" + }, + "GatingRule": { + "target": "com.amazonaws.route53recoverycontrolconfig#GatingRule" + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#GatingRule": { + "type": "structure", + "members": { + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

", + "smithy.api#required": {} + } + }, + "GatingControls": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", + "traits": { + "smithy.api#documentation": "

The gating controls for the gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.

", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name for the gating rule.

", + "smithy.api#required": {} + } + }, + "RuleConfig": { + "target": "com.amazonaws.route53recoverycontrolconfig#RuleConfig", + "traits": { + "smithy.api#documentation": "

The criteria that you set for specific gating controls (routing controls) that designates how many controls must be enabled to allow you to change (set or unset) the target controls.

", + "smithy.api#required": {} + } + }, + "SafetyRuleArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the gating rule.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.route53recoverycontrolconfig#Status", + "traits": { + "smithy.api#documentation": "

The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

", + "smithy.api#required": {} + } + }, + "TargetControls": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", + "traits": { + "smithy.api#documentation": "

Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three Amazon Web Services Regions. Now you specify ATLEAST 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true.

In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.

", + "smithy.api#required": {} + } + }, + "WaitPeriodMs": { + "target": "com.amazonaws.route53recoverycontrolconfig#__integer", + "traits": { + "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#GatingRuleUpdate": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name for the gating rule.

", + "smithy.api#required": {} + } + }, + "SafetyRuleArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the gating rule.

", + "smithy.api#required": {} + } + }, + "WaitPeriodMs": { + "target": "com.amazonaws.route53recoverycontrolconfig#__integer", + "traits": { + "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Update to a gating rule. You can update the name or the evaluation period (wait period). If you don't specify one of the items to update, the item is unchanged.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#InternalServerException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#jsonName": "message", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

500 response - InternalServiceError. Temporary service error. Retry the request.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecks": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecksRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecksResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns an array of all Amazon Route 53 health checks associated with a specific routing control.

", + "smithy.api#http": { + "method": "GET", + "uri": "/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecksRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", + "traits": { + "smithy.api#documentation": "

The number of objects that you want to return with this call.

", + "smithy.api#httpQuery": "MaxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", + "smithy.api#httpQuery": "NextToken" + } + }, + "RoutingControlArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control that you're getting details for.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecksResponse": { + "type": "structure", + "members": { + "HealthCheckIds": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", + "traits": { + "smithy.api#documentation": "

Identifiers for the health checks.

" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListClusters": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListClustersRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListClustersResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns an array of all the clusters in an account.

", + "smithy.api#http": { + "method": "GET", + "uri": "/cluster", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListClustersRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", + "traits": { + "smithy.api#documentation": "

The number of objects that you want to return with this call.

", + "smithy.api#httpQuery": "MaxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", + "smithy.api#httpQuery": "NextToken" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListClustersResponse": { + "type": "structure", + "members": { + "Clusters": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOfCluster", + "traits": { + "smithy.api#documentation": "

An array of the clusters in an account.

" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListControlPanels": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListControlPanelsRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListControlPanelsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns an array of control panels for a cluster.

", + "smithy.api#http": { + "method": "GET", + "uri": "/controlpanels", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListControlPanelsRequest": { + "type": "structure", + "members": { + "ClusterArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of a cluster.

", + "smithy.api#httpQuery": "ClusterArn" + } + }, + "MaxResults": { + "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", + "traits": { + "smithy.api#documentation": "

The number of objects that you want to return with this call.

", + "smithy.api#httpQuery": "MaxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", + "smithy.api#httpQuery": "NextToken" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListControlPanelsResponse": { + "type": "structure", + "members": { + "ControlPanels": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOfControlPanel", + "traits": { + "smithy.api#documentation": "

The result of a successful ListControlPanel request.

" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListRoutingControls": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListRoutingControlsRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListRoutingControlsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns an array of routing controls for a control panel. A routing control is an Amazon Route 53 Application Recovery Controller construct that has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.

", + "smithy.api#http": { + "method": "GET", + "uri": "/controlpanel/{ControlPanelArn}/routingcontrols", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListRoutingControlsRequest": { + "type": "structure", + "members": { + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that you're getting routing control details for.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "MaxResults": { + "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", + "traits": { + "smithy.api#documentation": "

The number of objects that you want to return with this call.

", + "smithy.api#httpQuery": "MaxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", + "smithy.api#httpQuery": "NextToken" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListRoutingControlsResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" + } + }, + "RoutingControls": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOfRoutingControl", + "traits": { + "smithy.api#documentation": "

An array of routing controls.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListSafetyRules": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListSafetyRulesRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#ListSafetyRulesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

List the safety rules (the assertion rules and gating rules) that you've defined for the routing controls in a control panel.

", + "smithy.api#http": { + "method": "GET", + "uri": "/controlpanel/{ControlPanelArn}/safetyrules", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListSafetyRulesRequest": { + "type": "structure", + "members": { + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that you're getting details for.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "MaxResults": { + "target": "com.amazonaws.route53recoverycontrolconfig#MaxResults", + "traits": { + "smithy.api#documentation": "

The number of objects that you want to return with this call.

", + "smithy.api#httpQuery": "MaxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

", + "smithy.api#httpQuery": "NextToken" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ListSafetyRulesResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMax8096", + "traits": { + "smithy.api#documentation": "

The token that identifies which batch of results you want to see.

" + } + }, + "SafetyRules": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOfRule", + "traits": { + "smithy.api#documentation": "

The list of safety rules in a control panel.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#NewAssertionRule": { + "type": "structure", + "members": { + "AssertedControls": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", + "traits": { + "smithy.api#documentation": "

The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.

", + "smithy.api#required": {} + } + }, + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the control panel.

", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the assertion rule. You can use any non-white space character in the name.

", + "smithy.api#required": {} + } + }, + "RuleConfig": { + "target": "com.amazonaws.route53recoverycontrolconfig#RuleConfig", + "traits": { + "smithy.api#documentation": "

The criteria that you set for specific assertion controls (routing controls) that designate how many controls must be enabled as the result of a transaction. For example, if you have three assertion controls, you might specify atleast 2 for your rule configuration. This means that at least two assertion controls must be enabled, so that at least two Amazon Web Services Regions are enabled.

", + "smithy.api#required": {} + } + }, + "WaitPeriodMs": { + "target": "com.amazonaws.route53recoverycontrolconfig#__integer", + "traits": { + "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A new assertion rule for a control panel.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#NewGatingRule": { + "type": "structure", + "members": { + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

", + "smithy.api#required": {} + } + }, + "GatingControls": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", + "traits": { + "smithy.api#documentation": "

The gating controls for the new gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.

", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name for the new gating rule.

", + "smithy.api#required": {} + } + }, + "RuleConfig": { + "target": "com.amazonaws.route53recoverycontrolconfig#RuleConfig", + "traits": { + "smithy.api#documentation": "

The criteria that you set for specific gating controls (routing controls) that designates how many controls must be enabled to allow you to change (set or unset) the target controls.

", + "smithy.api#required": {} + } + }, + "TargetControls": { + "target": "com.amazonaws.route53recoverycontrolconfig#__listOf__string", + "traits": { + "smithy.api#documentation": "

Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three Amazon Web Services Regions. Now you specify AtLeast 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true.

In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.

", + "smithy.api#required": {} + } + }, + "WaitPeriodMs": { + "target": "com.amazonaws.route53recoverycontrolconfig#__integer", + "traits": { + "smithy.api#documentation": "

An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A new gating rule for a control panel.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#jsonName": "message", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

404 response - The query string contains a syntax error or resource not found.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.route53recoverycontrolconfig#Route53RecoveryControlConfig": { + "type": "service", + "version": "2020-11-02", + "operations": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateCluster" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateControlPanel" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateRoutingControl" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#CreateSafetyRule" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteCluster" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteControlPanel" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteRoutingControl" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#DeleteSafetyRule" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeCluster" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeControlPanel" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeRoutingControl" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#DescribeSafetyRule" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ListAssociatedRoute53HealthChecks" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ListClusters" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ListControlPanels" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ListRoutingControls" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ListSafetyRules" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanel" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControl" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRule" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Route53 Recovery Control Config", + "arnNamespace": "route53-recovery-control-config", + "cloudFormationName": "Route53RecoveryControlConfig", + "cloudTrailEventSource": "route53recoverycontrolconfig.amazonaws.com", + "endpointPrefix": "route53-recovery-control-config" + }, + "aws.auth#sigv4": { + "name": "route53-recovery-control-config" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "

Recovery Control Configuration API Reference for Amazon Route 53 Application Recovery Controller

", + "smithy.api#title": "AWS Route53 Recovery Control Config" + } + }, + "com.amazonaws.route53recoverycontrolconfig#RoutingControl": { + "type": "structure", + "members": { + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel that includes the routing control.

" + } + }, + "Name": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the routing control.

" + } + }, + "RoutingControlArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control.

" + } + }, + "Status": { + "target": "com.amazonaws.route53recoverycontrolconfig#Status", + "traits": { + "smithy.api#documentation": "

The deployment status of a routing control. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control traffic routing.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#Rule": { + "type": "structure", + "members": { + "ASSERTION": { + "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRule", + "traits": { + "smithy.api#documentation": "

An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.

" + } + }, + "GATING": { + "target": "com.amazonaws.route53recoverycontrolconfig#GatingRule", + "traits": { + "smithy.api#documentation": "

A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A safety rule. A safety rule can be an assertion rule or a gating rule.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#RuleConfig": { + "type": "structure", + "members": { + "Inverted": { + "target": "com.amazonaws.route53recoverycontrolconfig#__boolean", + "traits": { + "smithy.api#documentation": "

Logical negation of the rule. If the rule would usually evaluate true, it's evaluated as false, and vice versa.

", + "smithy.api#required": {} + } + }, + "Threshold": { + "target": "com.amazonaws.route53recoverycontrolconfig#__integer", + "traits": { + "smithy.api#documentation": "

The value of N, when you specify an ATLEAST rule type. That is, Threshold is the number of controls that must be set when you specify an ATLEAST type.

", + "smithy.api#required": {} + } + }, + "Type": { + "target": "com.amazonaws.route53recoverycontrolconfig#RuleType", + "traits": { + "smithy.api#documentation": "

A rule can be one of the following: ATLEAST, AND, or OR.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The rule configuration for an assertion rule. That is, the criteria that you set for specific assertion controls (routing controls) that specify how many controls must be enabled after a transaction completes.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#RuleType": { + "type": "string", + "traits": { + "smithy.api#documentation": "

An enumerated type that determines how the evaluated rules are processed. RuleType can be one of the following:

ATLEAST - At least N routing controls must be set. You specify N as the Threshold in the rule configuration.

AND - All routing controls must be set. This is a shortcut for \"At least N,\" where N is the total number of controls in the rule.

OR - Any control must be set. This is a shortcut for \"At least N,\" where N is 1.

", + "smithy.api#enum": [ + { + "value": "ATLEAST", + "name": "ATLEAST" + }, + { + "value": "AND", + "name": "AND" + }, + { + "value": "OR", + "name": "OR" + } + ] + } + }, + "com.amazonaws.route53recoverycontrolconfig#ServiceQuotaExceededException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#jsonName": "message", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

402 response

", + "smithy.api#error": "client", + "smithy.api#httpError": 402 + } + }, + "com.amazonaws.route53recoverycontrolconfig#Status": { + "type": "string", + "traits": { + "smithy.api#documentation": "

The deployment status of a resource. Status can be one of the following:

PENDING: Amazon Route 53 Application Recovery Controller is creating the resource.

DEPLOYED: The resource is deployed and ready to use.

PENDING_DELETION: Amazon Route 53 Application Recovery Controller is deleting the resource.

", + "smithy.api#enum": [ + { + "value": "PENDING", + "name": "PENDING" + }, + { + "value": "DEPLOYED", + "name": "DEPLOYED" + }, + { + "value": "PENDING_DELETION", + "name": "PENDING_DELETION" + } + ] + } + }, + "com.amazonaws.route53recoverycontrolconfig#ThrottlingException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#jsonName": "message", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

429 response - ThrottlingException.

", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanel": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanelRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanelResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates a control panel. The only update you can make to a control panel is to change the name of the control panel.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/controlpanel", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanelRequest": { + "type": "structure", + "members": { + "ControlPanelArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the control panel.

", + "smithy.api#required": {} + } + }, + "ControlPanelName": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the control panel.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The details of the control panel that you're updating.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#UpdateControlPanelResponse": { + "type": "structure", + "members": { + "ControlPanel": { + "target": "com.amazonaws.route53recoverycontrolconfig#ControlPanel", + "traits": { + "smithy.api#documentation": "

The control panel to update.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControl": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControlRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControlResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ConflictException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates a routing control. You can only update the name of the routing control. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/routingcontrol", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControlRequest": { + "type": "structure", + "members": { + "RoutingControlArn": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the routing control.

", + "smithy.api#required": {} + } + }, + "RoutingControlName": { + "target": "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS", + "traits": { + "smithy.api#documentation": "

The name of the routing control.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The details of the routing control that you're updating.

" + } + }, + "com.amazonaws.route53recoverycontrolconfig#UpdateRoutingControlResponse": { + "type": "structure", + "members": { + "RoutingControl": { + "target": "com.amazonaws.route53recoverycontrolconfig#RoutingControl", + "traits": { + "smithy.api#documentation": "

The routing control that was updated.

" + } + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRule": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRuleRequest" + }, + "output": { + "target": "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRuleResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoverycontrolconfig#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoverycontrolconfig#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Update a safety rule (an assertion rule or gating rule) for the routing controls in a control panel. You can only update the name and the waiting period for a safety rule. To make other updates, delete the safety rule and create a new safety rule.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/safetyrule", + "code": 200 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRuleRequest": { + "type": "structure", + "members": { + "AssertionRuleUpdate": { + "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRuleUpdate" + }, + "GatingRuleUpdate": { + "target": "com.amazonaws.route53recoverycontrolconfig#GatingRuleUpdate" + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#UpdateSafetyRuleResponse": { + "type": "structure", + "members": { + "AssertionRule": { + "target": "com.amazonaws.route53recoverycontrolconfig#AssertionRule" + }, + "GatingRule": { + "target": "com.amazonaws.route53recoverycontrolconfig#GatingRule" + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#ValidationException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string", + "traits": { + "smithy.api#jsonName": "message", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you used parameters together incorrectly.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.route53recoverycontrolconfig#__boolean": { + "type": "boolean" + }, + "com.amazonaws.route53recoverycontrolconfig#__integer": { + "type": "integer" + }, + "com.amazonaws.route53recoverycontrolconfig#__listOfCluster": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoverycontrolconfig#Cluster" + } + }, + "com.amazonaws.route53recoverycontrolconfig#__listOfClusterEndpoint": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoverycontrolconfig#ClusterEndpoint" + } + }, + "com.amazonaws.route53recoverycontrolconfig#__listOfControlPanel": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoverycontrolconfig#ControlPanel" + } + }, + "com.amazonaws.route53recoverycontrolconfig#__listOfRoutingControl": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoverycontrolconfig#RoutingControl" + } + }, + "com.amazonaws.route53recoverycontrolconfig#__listOfRule": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoverycontrolconfig#Rule" + } + }, + "com.amazonaws.route53recoverycontrolconfig#__listOf__string": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoverycontrolconfig#__string" + } + }, + "com.amazonaws.route53recoverycontrolconfig#__string": { + "type": "string" + }, + "com.amazonaws.route53recoverycontrolconfig#__stringMax64": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 64 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#__stringMax8096": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 8096 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max128": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max32": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 32 + } + } + }, + "com.amazonaws.route53recoverycontrolconfig#__stringMin1Max64PatternS": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^\\S+$" + } + } + } +} diff --git a/codegen/sdk-codegen/aws-models/route53recoveryreadiness.2019-12-02.json b/codegen/sdk-codegen/aws-models/route53recoveryreadiness.2019-12-02.json new file mode 100644 index 00000000000..8cb4c8acee3 --- /dev/null +++ b/codegen/sdk-codegen/aws-models/route53recoveryreadiness.2019-12-02.json @@ -0,0 +1,3373 @@ +{ + "smithy": "1.0", + "metadata": { + "suppressions": [ + { + "id": "HttpMethodSemantics", + "namespace": "*" + }, + { + "id": "HttpResponseCodeSemantics", + "namespace": "*" + }, + { + "id": "PaginatedTrait", + "namespace": "*" + }, + { + "id": "HttpHeaderTrait", + "namespace": "*" + }, + { + "id": "HttpUriConflict", + "namespace": "*" + }, + { + "id": "Service", + "namespace": "*" + } + ] + }, + "shapes": { + "com.amazonaws.route53recoveryreadiness#AccessDeniedException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#jsonName": "message" + } + } + }, + "traits": { + "smithy.api#documentation": "User does not have sufficient access to perform this action.", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.route53recoveryreadiness#CellOutput": { + "type": "structure", + "members": { + "CellArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the Cell", + "smithy.api#jsonName": "cellArn", + "smithy.api#required": {} + } + }, + "CellName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the Cell", + "smithy.api#jsonName": "cellName", + "smithy.api#required": {} + } + }, + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns", + "smithy.api#jsonName": "cells", + "smithy.api#required": {} + } + }, + "ParentReadinessScopes": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell ARNs and/or RecoveryGroup ARNs", + "smithy.api#jsonName": "parentReadinessScopes", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + }, + "traits": { + "smithy.api#documentation": "A Cell and its properties" + } + }, + "com.amazonaws.route53recoveryreadiness#ConflictException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#jsonName": "message" + } + } + }, + "traits": { + "smithy.api#documentation": "Updating or deleting a resource can cause an inconsistent state.", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.route53recoveryreadiness#CreateCell": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#CreateCellRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#CreateCellResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ConflictException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a new Cell.", + "smithy.api#http": { + "method": "POST", + "uri": "/cells", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#CreateCellRequest": { + "type": "structure", + "members": { + "CellName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The name of the Cell to create", + "smithy.api#jsonName": "cellName", + "smithy.api#required": {} + } + }, + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns contained within this Cell (for use in nested Cells, e.g. regions within which AZs)", + "smithy.api#jsonName": "cells" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + }, + "traits": { + "smithy.api#documentation": "The Cell to create" + } + }, + "com.amazonaws.route53recoveryreadiness#CreateCellResponse": { + "type": "structure", + "members": { + "CellArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the Cell", + "smithy.api#jsonName": "cellArn" + } + }, + "CellName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the Cell", + "smithy.api#jsonName": "cellName" + } + }, + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns", + "smithy.api#jsonName": "cells" + } + }, + "ParentReadinessScopes": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell ARNs and/or RecoveryGroup ARNs", + "smithy.api#jsonName": "parentReadinessScopes" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorization": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorizationRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorizationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ConflictException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Create a new cross account readiness authorization.", + "smithy.api#http": { + "method": "POST", + "uri": "/crossaccountauthorizations", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorizationRequest": { + "type": "structure", + "members": { + "CrossAccountAuthorization": { + "target": "com.amazonaws.route53recoveryreadiness#CrossAccountAuthorization", + "traits": { + "smithy.api#documentation": "The cross account authorization", + "smithy.api#jsonName": "crossAccountAuthorization", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The cross account authorization" + } + }, + "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorizationResponse": { + "type": "structure", + "members": { + "CrossAccountAuthorization": { + "target": "com.amazonaws.route53recoveryreadiness#CrossAccountAuthorization", + "traits": { + "smithy.api#documentation": "The cross account authorization", + "smithy.api#jsonName": "crossAccountAuthorization" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#CreateReadinessCheck": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#CreateReadinessCheckRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#CreateReadinessCheckResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ConflictException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a new Readiness Check.", + "smithy.api#http": { + "method": "POST", + "uri": "/readinesschecks", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#CreateReadinessCheckRequest": { + "type": "structure", + "members": { + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The name of the ReadinessCheck to create", + "smithy.api#jsonName": "readinessCheckName", + "smithy.api#required": {} + } + }, + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The name of the ResourceSet to check", + "smithy.api#jsonName": "resourceSetName", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + }, + "traits": { + "smithy.api#documentation": "The ReadinessCheck to create" + } + }, + "com.amazonaws.route53recoveryreadiness#CreateReadinessCheckResponse": { + "type": "structure", + "members": { + "ReadinessCheckArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "Arn associated with ReadinessCheck", + "smithy.api#jsonName": "readinessCheckArn" + } + }, + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "Name for a ReadinessCheck", + "smithy.api#jsonName": "readinessCheckName" + } + }, + "ResourceSet": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "Name of the ResourceSet to be checked", + "smithy.api#jsonName": "resourceSet" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroupRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroupResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ConflictException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a new Recovery Group.", + "smithy.api#http": { + "method": "POST", + "uri": "/recoverygroups", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroupRequest": { + "type": "structure", + "members": { + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns", + "smithy.api#jsonName": "cells" + } + }, + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The name of the RecoveryGroup to create", + "smithy.api#jsonName": "recoveryGroupName", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + }, + "traits": { + "smithy.api#documentation": "The RecoveryGroup to create" + } + }, + "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroupResponse": { + "type": "structure", + "members": { + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns", + "smithy.api#jsonName": "cells" + } + }, + "RecoveryGroupArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the RecoveryGroup", + "smithy.api#jsonName": "recoveryGroupArn" + } + }, + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the RecoveryGroup", + "smithy.api#jsonName": "recoveryGroupName" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#CreateResourceSet": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#CreateResourceSetRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#CreateResourceSetResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ConflictException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a new Resource Set.", + "smithy.api#http": { + "method": "POST", + "uri": "/resourcesets", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#CreateResourceSetRequest": { + "type": "structure", + "members": { + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The name of the ResourceSet to create", + "smithy.api#jsonName": "resourceSetName", + "smithy.api#required": {} + } + }, + "ResourceSetType": { + "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", + "traits": { + "smithy.api#documentation": "AWS Resource type of the resources in the ResourceSet", + "smithy.api#jsonName": "resourceSetType", + "smithy.api#required": {} + } + }, + "Resources": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", + "traits": { + "smithy.api#documentation": "A list of Resource objects", + "smithy.api#jsonName": "resources", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + }, + "traits": { + "smithy.api#documentation": "The ResourceSet to create" + } + }, + "com.amazonaws.route53recoveryreadiness#CreateResourceSetResponse": { + "type": "structure", + "members": { + "ResourceSetArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the ResourceSet", + "smithy.api#jsonName": "resourceSetArn" + } + }, + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the ResourceSet", + "smithy.api#jsonName": "resourceSetName" + } + }, + "ResourceSetType": { + "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", + "traits": { + "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", + "smithy.api#jsonName": "resourceSetType" + } + }, + "Resources": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", + "traits": { + "smithy.api#documentation": "A list of Resource objects", + "smithy.api#jsonName": "resources" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#CrossAccountAuthorization": { + "type": "string", + "traits": { + "smithy.api#documentation": "A cross-account authorization, e.g. arn:aws:iam::123456789012:root" + } + }, + "com.amazonaws.route53recoveryreadiness#DNSTargetResource": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The DNS Name that acts as ingress point to a portion of application", + "smithy.api#jsonName": "domainName" + } + }, + "HostedZoneArn": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The Hosted Zone ARN that contains the DNS record with the provided name of target resource.", + "smithy.api#jsonName": "hostedZoneArn" + } + }, + "RecordSetId": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The R53 Set Id to uniquely identify a record given a Name and a Type", + "smithy.api#jsonName": "recordSetId" + } + }, + "RecordType": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The Type of DNS Record of target resource", + "smithy.api#jsonName": "recordType" + } + }, + "TargetResource": { + "target": "com.amazonaws.route53recoveryreadiness#TargetResource", + "traits": { + "smithy.api#jsonName": "targetResource" + } + } + }, + "traits": { + "smithy.api#documentation": "A component for DNS/Routing Control Readiness Checks" + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteCell": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#DeleteCellRequest" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes an existing Cell.", + "smithy.api#http": { + "method": "DELETE", + "uri": "/cells/{CellName}", + "code": 204 + } + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteCellRequest": { + "type": "structure", + "members": { + "CellName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The Cell to delete", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorization": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorizationRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorizationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Delete cross account readiness authorization", + "smithy.api#http": { + "method": "DELETE", + "uri": "/crossaccountauthorizations/{CrossAccountAuthorization}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorizationRequest": { + "type": "structure", + "members": { + "CrossAccountAuthorization": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The cross account authorization", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorizationResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.route53recoveryreadiness#DeleteReadinessCheck": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#DeleteReadinessCheckRequest" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes an existing Readiness Check.", + "smithy.api#http": { + "method": "DELETE", + "uri": "/readinesschecks/{ReadinessCheckName}", + "code": 204 + } + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteReadinessCheckRequest": { + "type": "structure", + "members": { + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ReadinessCheck to delete", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteRecoveryGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#DeleteRecoveryGroupRequest" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes an existing Recovery Group.", + "smithy.api#http": { + "method": "DELETE", + "uri": "/recoverygroups/{RecoveryGroupName}", + "code": 204 + } + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteRecoveryGroupRequest": { + "type": "structure", + "members": { + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The RecoveryGroup to delete", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteResourceSet": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#DeleteResourceSetRequest" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes an existing Resource Set.", + "smithy.api#http": { + "method": "DELETE", + "uri": "/resourcesets/{ResourceSetName}", + "code": 204 + } + } + }, + "com.amazonaws.route53recoveryreadiness#DeleteResourceSetRequest": { + "type": "structure", + "members": { + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ResourceSet to delete", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendations": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendationsRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendationsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a collection of recommendations to improve resilliance and readiness check quality for a Recovery Group.", + "smithy.api#http": { + "method": "GET", + "uri": "/recoverygroups/{RecoveryGroupName}/architectureRecommendations", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendationsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#httpQuery": "nextToken" + } + }, + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "Name of RecoveryGroup (top level resource) to be analyzed.", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendationsResponse": { + "type": "structure", + "members": { + "LastAuditTimestamp": { + "target": "com.amazonaws.route53recoveryreadiness#LastAuditTimestamp", + "traits": { + "smithy.api#documentation": "The time a Recovery Group was last assessed for recommendations in UTC ISO-8601 format.", + "smithy.api#jsonName": "lastAuditTimestamp" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection", + "smithy.api#jsonName": "nextToken" + } + }, + "Recommendations": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfRecommendation", + "traits": { + "smithy.api#documentation": "A list of recommendations for the customer's application", + "smithy.api#jsonName": "recommendations" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetCell": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#GetCellRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#GetCellResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns information about a Cell.", + "smithy.api#http": { + "method": "GET", + "uri": "/cells/{CellName}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummary": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummaryRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummaryResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns information about readiness of a Cell.", + "smithy.api#http": { + "method": "GET", + "uri": "/cellreadiness/{CellName}", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "ReadinessChecks", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummaryRequest": { + "type": "structure", + "members": { + "CellName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The name of the Cell", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummaryResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + }, + "Readiness": { + "target": "com.amazonaws.route53recoveryreadiness#Readiness", + "traits": { + "smithy.api#documentation": "The readiness at Cell level.", + "smithy.api#jsonName": "readiness" + } + }, + "ReadinessChecks": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckSummary", + "traits": { + "smithy.api#documentation": "Summaries for the ReadinessChecks making up the Cell", + "smithy.api#jsonName": "readinessChecks" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetCellRequest": { + "type": "structure", + "members": { + "CellName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The Cell to get", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetCellResponse": { + "type": "structure", + "members": { + "CellArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the Cell", + "smithy.api#jsonName": "cellArn" + } + }, + "CellName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the Cell", + "smithy.api#jsonName": "cellName" + } + }, + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns", + "smithy.api#jsonName": "cells" + } + }, + "ParentReadinessScopes": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell ARNs and/or RecoveryGroup ARNs", + "smithy.api#jsonName": "parentReadinessScopes" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetReadinessCheck": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns information about a ReadinessCheck.", + "smithy.api#http": { + "method": "GET", + "uri": "/readinesschecks/{ReadinessCheckName}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetReadinessCheckRequest": { + "type": "structure", + "members": { + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ReadinessCheck to get", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatus": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatusRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatusResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns detailed information about the status of an individual resource within a Readiness Check's Resource Set.", + "smithy.api#http": { + "method": "GET", + "uri": "/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Rules", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatusRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + }, + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ReadinessCheck to get", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "ResourceIdentifier": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The resource ARN or component Id to get", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatusResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + }, + "Readiness": { + "target": "com.amazonaws.route53recoveryreadiness#Readiness", + "traits": { + "smithy.api#documentation": "The readiness at rule level.", + "smithy.api#jsonName": "readiness" + } + }, + "Rules": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfRuleResult", + "traits": { + "smithy.api#documentation": "Details of the rules's results", + "smithy.api#jsonName": "rules" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResponse": { + "type": "structure", + "members": { + "ReadinessCheckArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "Arn associated with ReadinessCheck", + "smithy.api#jsonName": "readinessCheckArn" + } + }, + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "Name for a ReadinessCheck", + "smithy.api#jsonName": "readinessCheckName" + } + }, + "ResourceSet": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "Name of the ResourceSet to be checked", + "smithy.api#jsonName": "resourceSet" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatus": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatusRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatusResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns information about the status of a Readiness Check.", + "smithy.api#http": { + "method": "GET", + "uri": "/readinesschecks/{ReadinessCheckName}/status", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Resources", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatusRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + }, + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ReadinessCheck to get", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatusResponse": { + "type": "structure", + "members": { + "Messages": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfMessage", + "traits": { + "smithy.api#documentation": "Top level messages for readiness check status", + "smithy.api#jsonName": "messages" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + }, + "Readiness": { + "target": "com.amazonaws.route53recoveryreadiness#Readiness", + "traits": { + "smithy.api#documentation": "The readiness at rule level.", + "smithy.api#jsonName": "readiness" + } + }, + "Resources": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfResourceResult", + "traits": { + "smithy.api#documentation": "Summary of resources's readiness", + "smithy.api#jsonName": "resources" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetRecoveryGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns information about a Recovery Group.", + "smithy.api#http": { + "method": "GET", + "uri": "/recoverygroups/{RecoveryGroupName}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummary": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummaryRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummaryResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns information about a Recovery Group.", + "smithy.api#http": { + "method": "GET", + "uri": "/recoverygroupreadiness/{RecoveryGroupName}", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "ReadinessChecks", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummaryRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + }, + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The name of the RecoveryGroup", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummaryResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + }, + "Readiness": { + "target": "com.amazonaws.route53recoveryreadiness#Readiness", + "traits": { + "smithy.api#documentation": "The readiness at RecoveryGroup level.", + "smithy.api#jsonName": "readiness" + } + }, + "ReadinessChecks": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckSummary", + "traits": { + "smithy.api#documentation": "Summaries for the ReadinessChecks making up the RecoveryGroup", + "smithy.api#jsonName": "readinessChecks" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupRequest": { + "type": "structure", + "members": { + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The RecoveryGroup to get", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupResponse": { + "type": "structure", + "members": { + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns", + "smithy.api#jsonName": "cells" + } + }, + "RecoveryGroupArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the RecoveryGroup", + "smithy.api#jsonName": "recoveryGroupArn" + } + }, + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the RecoveryGroup", + "smithy.api#jsonName": "recoveryGroupName" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetResourceSet": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#GetResourceSetRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#GetResourceSetResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns information about a Resource Set.", + "smithy.api#http": { + "method": "GET", + "uri": "/resourcesets/{ResourceSetName}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetResourceSetRequest": { + "type": "structure", + "members": { + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ResourceSet to get", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#GetResourceSetResponse": { + "type": "structure", + "members": { + "ResourceSetArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the ResourceSet", + "smithy.api#jsonName": "resourceSetArn" + } + }, + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the ResourceSet", + "smithy.api#jsonName": "resourceSetName" + } + }, + "ResourceSetType": { + "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", + "traits": { + "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", + "smithy.api#jsonName": "resourceSetType" + } + }, + "Resources": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", + "traits": { + "smithy.api#documentation": "A list of Resource objects", + "smithy.api#jsonName": "resources" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#InternalServerException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#jsonName": "message" + } + } + }, + "traits": { + "smithy.api#documentation": "An unexpected error occurred.", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.route53recoveryreadiness#LastAuditTimestamp": { + "type": "timestamp", + "traits": { + "smithy.api#documentation": "The time a Recovery Group was last assessed for recommendations in UTC ISO-8601 format", + "smithy.api#timestampFormat": "date-time" + } + }, + "com.amazonaws.route53recoveryreadiness#ListCells": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#ListCellsRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#ListCellsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a collection of Cells.", + "smithy.api#http": { + "method": "GET", + "uri": "/cells", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Cells", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListCellsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListCellsResponse": { + "type": "structure", + "members": { + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfCellOutput", + "traits": { + "smithy.api#documentation": "A list of Cells", + "smithy.api#jsonName": "cells" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizations": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizationsRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizationsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a collection of cross account readiness authorizations.", + "smithy.api#http": { + "method": "GET", + "uri": "/crossaccountauthorizations", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "CrossAccountAuthorizations", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizationsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizationsResponse": { + "type": "structure", + "members": { + "CrossAccountAuthorizations": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfCrossAccountAuthorization", + "traits": { + "smithy.api#documentation": "A list of CrossAccountAuthorizations", + "smithy.api#jsonName": "crossAccountAuthorizations" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListReadinessChecks": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#ListReadinessChecksRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#ListReadinessChecksResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a collection of Readiness Checks.", + "smithy.api#http": { + "method": "GET", + "uri": "/readinesschecks", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "ReadinessChecks", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListReadinessChecksRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListReadinessChecksResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + }, + "ReadinessChecks": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckOutput", + "traits": { + "smithy.api#documentation": "A list of ReadinessCheck associated with the account", + "smithy.api#jsonName": "readinessChecks" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListRecoveryGroups": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#ListRecoveryGroupsRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#ListRecoveryGroupsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a collection of Recovery Groups.", + "smithy.api#http": { + "method": "GET", + "uri": "/recoverygroups", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "RecoveryGroups", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListRecoveryGroupsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListRecoveryGroupsResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + }, + "RecoveryGroups": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfRecoveryGroupOutput", + "traits": { + "smithy.api#documentation": "A list of RecoveryGroups", + "smithy.api#jsonName": "recoveryGroups" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListResourceSets": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#ListResourceSetsRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#ListResourceSetsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a collection of Resource Sets.", + "smithy.api#http": { + "method": "GET", + "uri": "/resourcesets", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "ResourceSets", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListResourceSetsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListResourceSetsResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + }, + "ResourceSets": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfResourceSetOutput", + "traits": { + "smithy.api#documentation": "A list of ResourceSets associated with the account", + "smithy.api#jsonName": "resourceSets" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListRules": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#ListRulesRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#ListRulesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a collection of rules that are applied as part of Readiness Checks.", + "smithy.api#http": { + "method": "GET", + "uri": "/rules", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Rules", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListRulesOutput": { + "type": "structure", + "members": { + "ResourceType": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64", + "traits": { + "smithy.api#documentation": "The resource type the rule applies to.", + "smithy.api#jsonName": "resourceType", + "smithy.api#required": {} + } + }, + "RuleDescription": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "A description of the rule", + "smithy.api#jsonName": "ruleDescription", + "smithy.api#required": {} + } + }, + "RuleId": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64", + "traits": { + "smithy.api#documentation": "The Rule's ID.", + "smithy.api#jsonName": "ruleId", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A collection of rules used in a readiness check" + } + }, + "com.amazonaws.route53recoveryreadiness#ListRulesRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.route53recoveryreadiness#MaxResults", + "traits": { + "smithy.api#documentation": "Upper bound on number of records to return.", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token used to resume pagination from the end of a previous request.", + "smithy.api#httpQuery": "nextToken" + } + }, + "ResourceType": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "Filter parameter which specifies the rules to return given a resource type.", + "smithy.api#httpQuery": "resourceType" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListRulesResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "A token that can be used to resume pagination from the end of the collection.", + "smithy.api#jsonName": "nextToken" + } + }, + "Rules": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfListRulesOutput", + "traits": { + "smithy.api#documentation": "A list of rules", + "smithy.api#jsonName": "rules" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListTagsForResources": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#ListTagsForResourcesRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#ListTagsForResourcesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a list of the tags assigned to the specified resource.", + "smithy.api#http": { + "method": "GET", + "uri": "/tags/{ResourceArn}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListTagsForResourcesRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ListTagsForResourcesResponse": { + "type": "structure", + "members": { + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.route53recoveryreadiness#Message": { + "type": "structure", + "members": { + "MessageText": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The text of a readiness check message", + "smithy.api#jsonName": "messageText" + } + } + }, + "traits": { + "smithy.api#documentation": "Information relating to readiness check status" + } + }, + "com.amazonaws.route53recoveryreadiness#NLBResource": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "An NLB resource arn", + "smithy.api#jsonName": "arn" + } + } + }, + "traits": { + "smithy.api#documentation": "The NLB resource a DNS Target Resource points to" + } + }, + "com.amazonaws.route53recoveryreadiness#R53ResourceRecord": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The DNS target name", + "smithy.api#jsonName": "domainName" + } + }, + "RecordSetId": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The Resource Record set id", + "smithy.api#jsonName": "recordSetId" + } + } + }, + "traits": { + "smithy.api#documentation": "The Route 53 resource a DNS Target Resource record points to" + } + }, + "com.amazonaws.route53recoveryreadiness#Readiness": { + "type": "string", + "traits": { + "smithy.api#documentation": "The readiness of an entire ReadinessCheck or an individual resource ARN.", + "smithy.api#enum": [ + { + "value": "READY", + "name": "READY" + }, + { + "value": "NOT_READY", + "name": "NOT_READY" + }, + { + "value": "UNKNOWN", + "name": "UNKNOWN" + }, + { + "value": "NOT_AUTHORIZED", + "name": "NOT_AUTHORIZED" + } + ] + } + }, + "com.amazonaws.route53recoveryreadiness#ReadinessCheckOutput": { + "type": "structure", + "members": { + "ReadinessCheckArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "Arn associated with ReadinessCheck", + "smithy.api#jsonName": "readinessCheckArn", + "smithy.api#required": {} + } + }, + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "Name for a ReadinessCheck", + "smithy.api#jsonName": "readinessCheckName" + } + }, + "ResourceSet": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "Name of the ResourceSet to be checked", + "smithy.api#jsonName": "resourceSet", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + }, + "traits": { + "smithy.api#documentation": "A resource used for checking the readiness of a Resource Set" + } + }, + "com.amazonaws.route53recoveryreadiness#ReadinessCheckSummary": { + "type": "structure", + "members": { + "Readiness": { + "target": "com.amazonaws.route53recoveryreadiness#Readiness", + "traits": { + "smithy.api#documentation": "The readiness of this ReadinessCheck", + "smithy.api#jsonName": "readiness" + } + }, + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The name of a ReadinessCheck which is part of the given RecoveryGroup or Cell", + "smithy.api#jsonName": "readinessCheckName" + } + } + }, + "traits": { + "smithy.api#documentation": "Summary of ReadinessCheck status, paginated in GetRecoveryGroupReadinessSummary and GetCellReadinessSummary" + } + }, + "com.amazonaws.route53recoveryreadiness#ReadinessCheckTimestamp": { + "type": "timestamp", + "traits": { + "smithy.api#documentation": "The time the Cell was last checked for readiness, in ISO-8601 format, UTC.", + "smithy.api#timestampFormat": "date-time" + } + }, + "com.amazonaws.route53recoveryreadiness#Recommendation": { + "type": "structure", + "members": { + "RecommendationText": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "Guidance text for recommendation", + "smithy.api#jsonName": "recommendationText", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Guidance for improving Recovery Group resilliancy" + } + }, + "com.amazonaws.route53recoveryreadiness#RecoveryGroupOutput": { + "type": "structure", + "members": { + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns", + "smithy.api#jsonName": "cells", + "smithy.api#required": {} + } + }, + "RecoveryGroupArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the RecoveryGroup", + "smithy.api#jsonName": "recoveryGroupArn", + "smithy.api#required": {} + } + }, + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the RecoveryGroup", + "smithy.api#jsonName": "recoveryGroupName", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + }, + "traits": { + "smithy.api#documentation": "A Recovery Group generally containing multiple Cells" + } + }, + "com.amazonaws.route53recoveryreadiness#Resource": { + "type": "structure", + "members": { + "ComponentId": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The component id of the resource, generated by the service when dnsTargetResource is used", + "smithy.api#jsonName": "componentId" + } + }, + "DnsTargetResource": { + "target": "com.amazonaws.route53recoveryreadiness#DNSTargetResource", + "traits": { + "smithy.api#jsonName": "dnsTargetResource" + } + }, + "ReadinessScopes": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained within.", + "smithy.api#jsonName": "readinessScopes" + } + }, + "ResourceArn": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ARN of the AWS resource, can be skipped if dnsTargetResource is used", + "smithy.api#jsonName": "resourceArn" + } + } + }, + "traits": { + "smithy.api#documentation": "The resource element of a ResourceSet" + } + }, + "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#jsonName": "message" + } + } + }, + "traits": { + "smithy.api#documentation": "The requested resource does not exist.", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.route53recoveryreadiness#ResourceResult": { + "type": "structure", + "members": { + "ComponentId": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The component id of the resource", + "smithy.api#jsonName": "componentId" + } + }, + "LastCheckedTimestamp": { + "target": "com.amazonaws.route53recoveryreadiness#ReadinessCheckTimestamp", + "traits": { + "smithy.api#documentation": "The time the resource was last checked for readiness, in ISO-8601 format, UTC.", + "smithy.api#jsonName": "lastCheckedTimestamp", + "smithy.api#required": {} + } + }, + "Readiness": { + "target": "com.amazonaws.route53recoveryreadiness#Readiness", + "traits": { + "smithy.api#documentation": "The readiness of the resource.", + "smithy.api#jsonName": "readiness", + "smithy.api#required": {} + } + }, + "ResourceArn": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ARN of the resource", + "smithy.api#jsonName": "resourceArn" + } + } + }, + "traits": { + "smithy.api#documentation": "Result with status for an individual resource." + } + }, + "com.amazonaws.route53recoveryreadiness#ResourceSetOutput": { + "type": "structure", + "members": { + "ResourceSetArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the ResourceSet", + "smithy.api#jsonName": "resourceSetArn", + "smithy.api#required": {} + } + }, + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the ResourceSet", + "smithy.api#jsonName": "resourceSetName", + "smithy.api#required": {} + } + }, + "ResourceSetType": { + "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", + "traits": { + "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", + "smithy.api#jsonName": "resourceSetType", + "smithy.api#required": {} + } + }, + "Resources": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", + "traits": { + "smithy.api#documentation": "A list of Resource objects", + "smithy.api#jsonName": "resources", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + }, + "traits": { + "smithy.api#documentation": "A collection of resources of the same type" + } + }, + "com.amazonaws.route53recoveryreadiness#Route53RecoveryReadiness": { + "type": "service", + "version": "2019-12-02", + "operations": [ + { + "target": "com.amazonaws.route53recoveryreadiness#CreateCell" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#CreateCrossAccountAuthorization" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#CreateReadinessCheck" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#CreateRecoveryGroup" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#CreateResourceSet" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#DeleteCell" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#DeleteCrossAccountAuthorization" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#DeleteReadinessCheck" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#DeleteRecoveryGroup" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#DeleteResourceSet" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#GetArchitectureRecommendations" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#GetCell" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#GetCellReadinessSummary" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheck" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckResourceStatus" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#GetReadinessCheckStatus" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroup" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#GetRecoveryGroupReadinessSummary" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#GetResourceSet" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ListCells" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ListCrossAccountAuthorizations" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ListReadinessChecks" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ListRecoveryGroups" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ListResourceSets" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ListRules" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ListTagsForResources" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#TagResource" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#UntagResource" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#UpdateCell" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheck" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroup" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#UpdateResourceSet" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Route53 Recovery Readiness", + "arnNamespace": "route53-recovery-readiness", + "cloudFormationName": "Route53RecoveryReadiness", + "cloudTrailEventSource": "route53recoveryreadiness.amazonaws.com", + "endpointPrefix": "route53-recovery-readiness" + }, + "aws.auth#sigv4": { + "name": "route53-recovery-readiness" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "AWS Route53 Recovery Readiness", + "smithy.api#title": "AWS Route53 Recovery Readiness" + } + }, + "com.amazonaws.route53recoveryreadiness#RuleResult": { + "type": "structure", + "members": { + "LastCheckedTimestamp": { + "target": "com.amazonaws.route53recoveryreadiness#ReadinessCheckTimestamp", + "traits": { + "smithy.api#documentation": "The time the resource was last checked for readiness, in ISO-8601 format, UTC.", + "smithy.api#jsonName": "lastCheckedTimestamp", + "smithy.api#required": {} + } + }, + "Messages": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfMessage", + "traits": { + "smithy.api#documentation": "Details about the resource's readiness", + "smithy.api#jsonName": "messages", + "smithy.api#required": {} + } + }, + "Readiness": { + "target": "com.amazonaws.route53recoveryreadiness#Readiness", + "traits": { + "smithy.api#documentation": "The readiness at rule level.", + "smithy.api#jsonName": "readiness", + "smithy.api#required": {} + } + }, + "RuleId": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The identifier of the rule.", + "smithy.api#jsonName": "ruleId", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Result with status for an individual rule.." + } + }, + "com.amazonaws.route53recoveryreadiness#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#TagResourceRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#TagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Adds tags to the specified resource. You can specify one or more tags to add.", + "smithy.api#http": { + "method": "POST", + "uri": "/tags/{ResourceArn}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#TagResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#TagResourceResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.route53recoveryreadiness#Tags": { + "type": "map", + "key": { + "target": "com.amazonaws.route53recoveryreadiness#__string" + }, + "value": { + "target": "com.amazonaws.route53recoveryreadiness#__string" + }, + "traits": { + "smithy.api#documentation": "A collection of tags associated with a resource" + } + }, + "com.amazonaws.route53recoveryreadiness#TargetResource": { + "type": "structure", + "members": { + "NLBResource": { + "target": "com.amazonaws.route53recoveryreadiness#NLBResource", + "traits": { + "smithy.api#jsonName": "nLBResource" + } + }, + "R53Resource": { + "target": "com.amazonaws.route53recoveryreadiness#R53ResourceRecord", + "traits": { + "smithy.api#jsonName": "r53Resource" + } + } + }, + "traits": { + "smithy.api#documentation": "The target resource the R53 record points to" + } + }, + "com.amazonaws.route53recoveryreadiness#ThrottlingException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#jsonName": "message" + } + } + }, + "traits": { + "smithy.api#documentation": "Request was denied due to request throttling.", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.route53recoveryreadiness#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#UntagResourceRequest" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Removes tags from the specified resource. You can specify one or more tags to remove.", + "smithy.api#http": { + "method": "DELETE", + "uri": "/tags/{ResourceArn}", + "code": 204 + } + } + }, + "com.amazonaws.route53recoveryreadiness#UntagResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "TagKeys": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A comma-separated list of the tag keys to remove from the resource.", + "smithy.api#httpQuery": "tagKeys", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateCell": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#UpdateCellRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#UpdateCellResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates an existing Cell.", + "smithy.api#http": { + "method": "PUT", + "uri": "/cells/{CellName}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateCellRequest": { + "type": "structure", + "members": { + "CellName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The Cell to update", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns, completely replaces previous list", + "smithy.api#jsonName": "cells", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Parameters to update for the Cell" + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateCellResponse": { + "type": "structure", + "members": { + "CellArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the Cell", + "smithy.api#jsonName": "cellArn" + } + }, + "CellName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the Cell", + "smithy.api#jsonName": "cellName" + } + }, + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns", + "smithy.api#jsonName": "cells" + } + }, + "ParentReadinessScopes": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell ARNs and/or RecoveryGroup ARNs", + "smithy.api#jsonName": "parentReadinessScopes" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheck": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheckRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheckResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates an exisiting Readiness Check.", + "smithy.api#http": { + "method": "PUT", + "uri": "/readinesschecks/{ReadinessCheckName}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheckRequest": { + "type": "structure", + "members": { + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ReadinessCheck to update", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The name of the ResourceSet to check", + "smithy.api#jsonName": "resourceSetName", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The new Readiness Check values" + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateReadinessCheckResponse": { + "type": "structure", + "members": { + "ReadinessCheckArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "Arn associated with ReadinessCheck", + "smithy.api#jsonName": "readinessCheckArn" + } + }, + "ReadinessCheckName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "Name for a ReadinessCheck", + "smithy.api#jsonName": "readinessCheckName" + } + }, + "ResourceSet": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "Name of the ResourceSet to be checked", + "smithy.api#jsonName": "resourceSet" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroupRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroupResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates an existing Recovery Group.", + "smithy.api#http": { + "method": "PUT", + "uri": "/recoverygroups/{RecoveryGroupName}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroupRequest": { + "type": "structure", + "members": { + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns, completely replaces previous list", + "smithy.api#jsonName": "cells", + "smithy.api#required": {} + } + }, + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The RecoveryGroup to update", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Parameters to update for the RecoveryGroup" + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateRecoveryGroupResponse": { + "type": "structure", + "members": { + "Cells": { + "target": "com.amazonaws.route53recoveryreadiness#__listOf__string", + "traits": { + "smithy.api#documentation": "A list of Cell arns", + "smithy.api#jsonName": "cells" + } + }, + "RecoveryGroupArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the RecoveryGroup", + "smithy.api#jsonName": "recoveryGroupArn" + } + }, + "RecoveryGroupName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the RecoveryGroup", + "smithy.api#jsonName": "recoveryGroupName" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateResourceSet": { + "type": "operation", + "input": { + "target": "com.amazonaws.route53recoveryreadiness#UpdateResourceSetRequest" + }, + "output": { + "target": "com.amazonaws.route53recoveryreadiness#UpdateResourceSetResponse" + }, + "errors": [ + { + "target": "com.amazonaws.route53recoveryreadiness#AccessDeniedException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#InternalServerException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ThrottlingException" + }, + { + "target": "com.amazonaws.route53recoveryreadiness#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates an existing Resource Set.", + "smithy.api#http": { + "method": "PUT", + "uri": "/resourcesets/{ResourceSetName}", + "code": 200 + } + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateResourceSetRequest": { + "type": "structure", + "members": { + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#documentation": "The ResourceSet to update", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "ResourceSetType": { + "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", + "traits": { + "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", + "smithy.api#jsonName": "resourceSetType", + "smithy.api#required": {} + } + }, + "Resources": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", + "traits": { + "smithy.api#documentation": "A list of Resource objects", + "smithy.api#jsonName": "resources", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "configuration for the desired" + } + }, + "com.amazonaws.route53recoveryreadiness#UpdateResourceSetResponse": { + "type": "structure", + "members": { + "ResourceSetArn": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax256", + "traits": { + "smithy.api#documentation": "The arn for the ResourceSet", + "smithy.api#jsonName": "resourceSetArn" + } + }, + "ResourceSetName": { + "target": "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z", + "traits": { + "smithy.api#documentation": "The name of the ResourceSet", + "smithy.api#jsonName": "resourceSetName" + } + }, + "ResourceSetType": { + "target": "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09", + "traits": { + "smithy.api#documentation": "AWS Resource Type of the resources in the ResourceSet", + "smithy.api#jsonName": "resourceSetType" + } + }, + "Resources": { + "target": "com.amazonaws.route53recoveryreadiness#__listOfResource", + "traits": { + "smithy.api#documentation": "A list of Resource objects", + "smithy.api#jsonName": "resources" + } + }, + "Tags": { + "target": "com.amazonaws.route53recoveryreadiness#Tags", + "traits": { + "smithy.api#jsonName": "tags" + } + } + } + }, + "com.amazonaws.route53recoveryreadiness#ValidationException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.route53recoveryreadiness#__string", + "traits": { + "smithy.api#jsonName": "message" + } + } + }, + "traits": { + "smithy.api#documentation": "The input fails to satisfy the constraints specified by an AWS service.", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfCellOutput": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#CellOutput" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfCrossAccountAuthorization": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#CrossAccountAuthorization" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfListRulesOutput": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#ListRulesOutput" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfMessage": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#Message" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckOutput": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#ReadinessCheckOutput" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfReadinessCheckSummary": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#ReadinessCheckSummary" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfRecommendation": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#Recommendation" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfRecoveryGroupOutput": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#RecoveryGroupOutput" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfResource": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#Resource" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfResourceResult": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#ResourceResult" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfResourceSetOutput": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#ResourceSetOutput" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOfRuleResult": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#RuleResult" + } + }, + "com.amazonaws.route53recoveryreadiness#__listOf__string": { + "type": "list", + "member": { + "target": "com.amazonaws.route53recoveryreadiness#__string" + } + }, + "com.amazonaws.route53recoveryreadiness#__string": { + "type": "string" + }, + "com.amazonaws.route53recoveryreadiness#__stringMax256": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + } + } + }, + "com.amazonaws.route53recoveryreadiness#__stringMax64": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 64 + } + } + }, + "com.amazonaws.route53recoveryreadiness#__stringMax64PatternAAZAZ09Z": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 64 + }, + "smithy.api#pattern": "^\\A[a-zA-Z0-9_]+\\z$" + } + }, + "com.amazonaws.route53recoveryreadiness#__stringPatternAWSAZaZ09AZaZ09": { + "type": "string", + "traits": { + "smithy.api#pattern": "^AWS::[A-Za-z0-9]+::[A-Za-z0-9]+$" + } + } + } +} diff --git a/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json b/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json index 6147f1a0a9b..2e34eb6add2 100644 --- a/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json +++ b/codegen/sdk-codegen/aws-models/s3control.2018-08-20.json @@ -193,7 +193,7 @@ "name": "s3" }, "aws.protocols#restXml": {}, - "smithy.api#documentation": "

\n AWS S3 Control provides access to Amazon S3 control plane actions.\n \n

", + "smithy.api#documentation": "

\n Amazon Web Services S3 Control provides access to Amazon S3 control plane actions.\n \n

", "smithy.api#title": "AWS S3 Control", "smithy.api#xmlNamespace": { "uri": "http://awss3control.amazonaws.com/doc/2018-08-20/" @@ -234,7 +234,7 @@ "VpcConfiguration": { "target": "com.amazonaws.s3control#VpcConfiguration", "traits": { - "smithy.api#documentation": "

The virtual private cloud (VPC) configuration for this access point, if one exists.

\n \n

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other AWS services.

\n
" + "smithy.api#documentation": "

The virtual private cloud (VPC) configuration for this access point, if one exists.

\n \n

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services.

\n
" } }, "Bucket": { @@ -249,6 +249,12 @@ "traits": { "smithy.api#documentation": "

The ARN for the access point.

" } + }, + "Alias": { + "target": "com.amazonaws.s3control#Alias", + "traits": { + "smithy.api#documentation": "

The name or alias of the access point.

" + } } }, "traits": { @@ -269,7 +275,7 @@ "traits": { "smithy.api#length": { "min": 3, - "max": 50 + "max": 63 } } }, @@ -318,13 +324,23 @@ "smithy.api#documentation": "

A container for the activity metrics.

" } }, + "com.amazonaws.s3control#Alias": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 63 + }, + "smithy.api#pattern": "^[0-9a-z\\\\-]{63}$" + } + }, "com.amazonaws.s3control#AwsLambdaTransformation": { "type": "structure", "members": { "FunctionArn": { "target": "com.amazonaws.s3control#FunctionArnString", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the AWS Lambda function.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Lambda function.

", "smithy.api#required": {} } }, @@ -336,7 +352,7 @@ } }, "traits": { - "smithy.api#documentation": "

AWS Lambda function used to transform objects through an Object Lambda Access Point.

" + "smithy.api#documentation": "

Lambda function used to transform objects through an Object Lambda Access Point.

" } }, "com.amazonaws.s3control#AwsLambdaTransformationPayload": { @@ -371,7 +387,7 @@ "type": "structure", "members": {}, "traits": { - "smithy.api#documentation": "

The requested Outposts bucket name is not available. The bucket namespace is shared by\n all users of the AWS Outposts in this Region. Select a different name and try\n again.

", + "smithy.api#documentation": "

The requested Outposts bucket name is not available. The bucket namespace is shared by\n all users of the Outposts in this Region. Select a different name and try\n again.

", "smithy.api#error": "client" } }, @@ -560,7 +576,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID for owner of the specified Object Lambda Access Point.

", + "smithy.api#documentation": "

The account ID for owner of the specified Object Lambda Access Point.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -600,7 +616,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID for the owner of the bucket for which you want to create an access point.

", + "smithy.api#documentation": "

The account ID for the owner of the bucket for which you want to create an access point.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -617,7 +633,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket that you want to associate this access point with.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the bucket that you want to associate this access point with.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#required": {} } }, @@ -643,6 +659,12 @@ "traits": { "smithy.api#documentation": "

The ARN of the access point.

\n \n

This is only supported by Amazon S3 on Outposts.

\n
" } + }, + "Alias": { + "target": "com.amazonaws.s3control#Alias", + "traits": { + "smithy.api#documentation": "

The name or alias of the access point.

" + } } } }, @@ -776,7 +798,7 @@ "BucketArn": { "target": "com.amazonaws.s3control#S3RegionalBucketArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

" } } } @@ -821,7 +843,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID that creates the job.

", + "smithy.api#documentation": "

The account ID that creates the job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -880,7 +902,7 @@ "RoleArn": { "target": "com.amazonaws.s3control#IAMRoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role\n that Batch Operations will use to run this job's action on every object in the\n manifest.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role\n that Batch Operations will use to run this job's action on every object in the\n manifest.

", "smithy.api#required": {} } }, @@ -1042,7 +1064,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point whose policy you want to delete.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point whose policy you want to delete.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1064,7 +1086,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point you want to delete.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point you want to delete.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1120,7 +1142,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1133,7 +1155,7 @@ "target": "com.amazonaws.s3control#DeleteBucketPolicyRequest" }, "traits": { - "smithy.api#documentation": "\n

This action deletes an Amazon S3 on Outposts bucket policy. To delete an \n S3 bucket policy, see DeleteBucketPolicy in the Amazon S3 API Reference.\n

\n
\n

This implementation of the DELETE action uses the policy subresource to delete the\n policy of a specified Amazon S3 on Outposts bucket. If you are using an identity other than the\n root user of the AWS account that owns the bucket, the calling identity must have the\n s3-outposts:DeleteBucketPolicy permissions on the specified Outposts bucket\n and belong to the bucket owner's account to use this action. For more information, see\n Using Amazon S3 on Outposts in\n Amazon S3 User Guide.

\n \n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but you're\n not using an identity that belongs to the bucket owner's account, Amazon S3 returns a\n 405 Method Not Allowed error.

\n \n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this action,\n even if the policy explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to DeleteBucketPolicy:

\n ", + "smithy.api#documentation": "\n

This action deletes an Amazon S3 on Outposts bucket policy. To delete an \n S3 bucket policy, see DeleteBucketPolicy in the Amazon S3 API Reference.\n

\n
\n

This implementation of the DELETE action uses the policy subresource to delete the\n policy of a specified Amazon S3 on Outposts bucket. If you are using an identity other than the\n root user of the account that owns the bucket, the calling identity must have the\n s3-outposts:DeleteBucketPolicy permissions on the specified Outposts bucket\n and belong to the bucket owner's account to use this action. For more information, see\n Using Amazon S3 on Outposts in\n Amazon S3 User Guide.

\n \n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but you're\n not using an identity that belongs to the bucket owner's account, Amazon S3 returns a\n 405 Method Not Allowed error.

\n \n \n \n

As a security precaution, the root user of the account that owns a bucket can always use this action,\n even if the policy explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to DeleteBucketPolicy:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1159,7 +1181,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1181,7 +1203,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket being deleted.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket being deleted.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1211,7 +1233,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Outposts bucket tag set to be removed.

", + "smithy.api#documentation": "

The account ID of the Outposts bucket tag set to be removed.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -1220,7 +1242,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The bucket ARN that has the tag set to be removed.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The bucket ARN that has the tag set to be removed.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1264,7 +1286,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -1290,7 +1312,7 @@ "target": "com.amazonaws.s3control#DeletePublicAccessBlockRequest" }, "traits": { - "smithy.api#documentation": "

Removes the PublicAccessBlock configuration for an AWS account. For more\n information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Removes the PublicAccessBlock configuration for an account. For more\n information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1307,7 +1329,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for the AWS account whose PublicAccessBlock configuration you want\n to remove.

", + "smithy.api#documentation": "

The account ID for the account whose PublicAccessBlock configuration you want\n to remove.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -1440,7 +1462,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -1467,6 +1489,15 @@ } } }, + "com.amazonaws.s3control#Endpoints": { + "type": "map", + "key": { + "target": "com.amazonaws.s3control#NonEmptyMaxLength64String" + }, + "value": { + "target": "com.amazonaws.s3control#NonEmptyMaxLength1024String" + } + }, "com.amazonaws.s3control#ExceptionMessage": { "type": "string", "traits": { @@ -1765,7 +1796,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point whose policy you want to retrieve.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point whose policy you want to retrieve.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1901,7 +1932,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point whose configuration information you want to retrieve.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point whose configuration information you want to retrieve.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1932,7 +1963,7 @@ "VpcConfiguration": { "target": "com.amazonaws.s3control#VpcConfiguration", "traits": { - "smithy.api#documentation": "

Contains the virtual private cloud (VPC) configuration for the specified access point.

\n \n

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other AWS services.

\n
" + "smithy.api#documentation": "

Contains the virtual private cloud (VPC) configuration for the specified access point.

\n \n

This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services.

\n
" } }, "PublicAccessBlockConfiguration": { @@ -1943,6 +1974,24 @@ "traits": { "smithy.api#documentation": "

The date and time when the specified access point was created.

" } + }, + "Alias": { + "target": "com.amazonaws.s3control#Alias", + "traits": { + "smithy.api#documentation": "

The name or alias of the access point.

" + } + }, + "AccessPointArn": { + "target": "com.amazonaws.s3control#S3AccessPointArn", + "traits": { + "smithy.api#documentation": "

The ARN of the access point.

" + } + }, + "Endpoints": { + "target": "com.amazonaws.s3control#Endpoints", + "traits": { + "smithy.api#documentation": "

The VPC endpoint for the access point.

" + } } } }, @@ -1955,7 +2004,7 @@ "target": "com.amazonaws.s3control#GetBucketResult" }, "traits": { - "smithy.api#documentation": "

Gets an Amazon S3 on Outposts bucket. For more information, see \n Using Amazon S3 on Outposts in the Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the AWS account \n that owns the Outposts bucket, the calling identity must have the \n s3-outposts:GetBucket permissions on the specified Outposts bucket and \n belong to the Outposts bucket owner's account in order to use this action. Only \n users from Outposts bucket owner account with the right permissions can perform \n actions on an Outposts bucket. \n

\n

\n If you don't have s3-outposts:GetBucket permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n

The following actions are related to GetBucket for Amazon S3 on Outposts:

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n ", + "smithy.api#documentation": "

Gets an Amazon S3 on Outposts bucket. For more information, see \n Using Amazon S3 on Outposts in the Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the account \n that owns the Outposts bucket, the calling identity must have the \n s3-outposts:GetBucket permissions on the specified Outposts bucket and \n belong to the Outposts bucket owner's account in order to use this action. Only \n users from Outposts bucket owner account with the right permissions can perform \n actions on an Outposts bucket. \n

\n

\n If you don't have s3-outposts:GetBucket permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n

The following actions are related to GetBucket for Amazon S3 on Outposts:

\n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -1992,7 +2041,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2001,7 +2050,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2028,7 +2077,7 @@ "target": "com.amazonaws.s3control#GetBucketPolicyResult" }, "traits": { - "smithy.api#documentation": "\n

This action gets a bucket policy for an Amazon S3 on Outposts bucket. To get a policy for an S3\n bucket, see GetBucketPolicy in the\n Amazon S3 API Reference.

\n
\n

Returns the policy of a specified Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity \n must have the GetBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this action.

\n \n

Only users from Outposts bucket owner account with the right permissions can perform actions on an Outposts bucket. \n If you don't have s3-outposts:GetBucketPolicy permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to GetBucketPolicy:

\n ", + "smithy.api#documentation": "\n

This action gets a bucket policy for an Amazon S3 on Outposts bucket. To get a policy for an S3\n bucket, see GetBucketPolicy in the\n Amazon S3 API Reference.

\n
\n

Returns the policy of a specified Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the account that owns the bucket, the calling identity \n must have the GetBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this action.

\n \n

Only users from Outposts bucket owner account with the right permissions can perform actions on an Outposts bucket. \n If you don't have s3-outposts:GetBucketPolicy permissions or you're not using an identity that belongs to the bucket owner's \n account, Amazon S3 returns a 403 Access Denied error.

\n \n \n

As a security precaution, the root user of the account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.

\n
\n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to GetBucketPolicy:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -2045,7 +2094,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2054,7 +2103,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2078,7 +2127,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2087,7 +2136,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2143,7 +2192,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2152,7 +2201,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -2208,7 +2257,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2249,7 +2298,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the PublicAccessBlock configuration for an AWS account. For more\n information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Retrieves the PublicAccessBlock configuration for an account. For more\n information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -2266,7 +2315,7 @@ "PublicAccessBlockConfiguration": { "target": "com.amazonaws.s3control#PublicAccessBlockConfiguration", "traits": { - "smithy.api#documentation": "

The PublicAccessBlock configuration currently in effect for this AWS\n account.

", + "smithy.api#documentation": "

The PublicAccessBlock configuration currently in effect for this account.

", "smithy.api#httpPayload": {} } } @@ -2278,7 +2327,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for the AWS account whose PublicAccessBlock configuration you want\n to retrieve.

", + "smithy.api#documentation": "

The account ID for the account whose PublicAccessBlock configuration you want\n to retrieve.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -2599,7 +2648,7 @@ "RoleArn": { "target": "com.amazonaws.s3control#IAMRoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role\n assigned to run the tasks for this job.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role\n assigned to run the tasks for this job.

" } }, "SuspendedDate": { @@ -2872,7 +2921,7 @@ "LambdaInvoke": { "target": "com.amazonaws.s3control#LambdaInvokeOperation", "traits": { - "smithy.api#documentation": "

Directs the specified job to invoke an AWS Lambda function on every object in the manifest.

" + "smithy.api#documentation": "

Directs the specified job to invoke an Lambda function on every object in the manifest.

" } }, "S3PutObjectCopy": { @@ -3131,7 +3180,7 @@ "FunctionArn": { "target": "com.amazonaws.s3control#FunctionArnString", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the AWS Lambda function that the specified job will invoke on every object in the manifest.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the Lambda function that the specified job will invoke on every object in the manifest.

" } } }, @@ -3389,7 +3438,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID for owner of the bucket whose access points you want to list.

", + "smithy.api#documentation": "

The account ID for owner of the bucket whose access points you want to list.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -3398,7 +3447,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The name of the bucket whose associated access points you want to list.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the bucket whose associated access points you want to list.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpQuery": "bucket" } }, @@ -3455,7 +3504,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists current S3 Batch Operations jobs and jobs that have ended within the last 30 days for\n the AWS account making the request. For more information, see S3 Batch Operations in the\n Amazon S3 User Guide.

\n

Related actions include:

\n

\n ", + "smithy.api#documentation": "

Lists current S3 Batch Operations jobs and jobs that have ended within the last 30 days for\n the account making the request. For more information, see S3 Batch Operations in the\n Amazon S3 User Guide.

\n

Related actions include:

\n

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -3477,7 +3526,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -3555,7 +3604,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -3578,7 +3627,7 @@ "OutpostId": { "target": "com.amazonaws.s3control#NonEmptyMaxLength64String", "traits": { - "smithy.api#documentation": "

The ID of the AWS Outposts.

\n \n

This is required by Amazon S3 on Outposts buckets.

\n
", + "smithy.api#documentation": "

The ID of the Outposts.

\n \n

This is required by Amazon S3 on Outposts buckets.

\n
", "smithy.api#httpHeader": "x-amz-outpost-id" } } @@ -3869,7 +3918,7 @@ } }, "traits": { - "smithy.api#documentation": "

An access point with an attached AWS Lambda function used to access transformed data from an Amazon S3 bucket.

" + "smithy.api#documentation": "

An access point with an attached Lambda function used to access transformed data from an Amazon S3 bucket.

" } }, "com.amazonaws.s3control#ObjectLambdaAccessPointArn": { @@ -3965,7 +4014,7 @@ "AwsLambda": { "target": "com.amazonaws.s3control#AwsLambdaTransformation", "traits": { - "smithy.api#documentation": "

A container for an AWS Lambda function.

" + "smithy.api#documentation": "

A container for an Lambda function.

" } } }, @@ -4170,7 +4219,7 @@ "RestrictPublicBuckets": { "target": "com.amazonaws.s3control#Setting", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account.\n Setting this element to TRUE restricts access to buckets with public policies\n to only AWS service principals and authorized users within this account.

\n

Enabling this setting doesn't affect previously stored bucket policies, except that public\n and cross-account access within any public bucket policy, including non-public delegation to\n specific accounts, is blocked.

\n

This is not supported for Amazon S3 on Outposts.

", + "smithy.api#documentation": "

Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account.\n Setting this element to TRUE restricts access to buckets with public policies\n to only Amazon Web Service principals and authorized users within this account.

\n

Enabling this setting doesn't affect previously stored bucket policies, except that public\n and cross-account access within any public bucket policy, including non-public delegation to\n specific accounts, is blocked.

\n

This is not supported for Amazon S3 on Outposts.

", "smithy.api#xmlName": "RestrictPublicBuckets" } } @@ -4297,7 +4346,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID for owner of the bucket associated with the specified access point.

", + "smithy.api#documentation": "

The account ID for owner of the bucket associated with the specified access point.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4306,7 +4355,7 @@ "Name": { "target": "com.amazonaws.s3control#AccessPointName", "traits": { - "smithy.api#documentation": "

The name of the access point that you want to associate with the specified policy.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", + "smithy.api#documentation": "

The name of the access point that you want to associate with the specified policy.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access point reports-ap through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4344,7 +4393,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4374,7 +4423,7 @@ "target": "com.amazonaws.s3control#PutBucketPolicyRequest" }, "traits": { - "smithy.api#documentation": "\n

This action puts a bucket policy to an Amazon S3 on Outposts bucket. To put a policy on an S3 bucket, \n see PutBucketPolicy in the Amazon S3 API Reference.\n

\n
\n

Applies an Amazon S3 bucket policy to an Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the AWS account that owns the\n Outposts bucket, the calling identity must have the PutBucketPolicy\n permissions on the specified Outposts bucket and belong to the bucket owner's account in\n order to use this action.

\n \n

If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, \n but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed error.

\n \n \n

As a security precaution, the root user of the AWS account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.\n

\n
\n \n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketPolicy:

\n ", + "smithy.api#documentation": "\n

This action puts a bucket policy to an Amazon S3 on Outposts bucket. To put a policy on an S3 bucket, \n see PutBucketPolicy in the Amazon S3 API Reference.\n

\n
\n

Applies an Amazon S3 bucket policy to an Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

If you are using an identity other than the root user of the account that owns the\n Outposts bucket, the calling identity must have the PutBucketPolicy\n permissions on the specified Outposts bucket and belong to the bucket owner's account in\n order to use this action.

\n \n

If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, \n but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed error.

\n \n \n

As a security precaution, the root user of the account that owns a bucket can always use this action, even if the policy \n explicitly denies the root user the ability to perform this action.\n

\n
\n \n \n

For more information about bucket policies, see Using Bucket Policies and User Policies.

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketPolicy:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -4392,7 +4441,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4401,7 +4450,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

Specifies the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4428,7 +4477,7 @@ "target": "com.amazonaws.s3control#PutBucketTaggingRequest" }, "traits": { - "smithy.api#documentation": "\n

This action puts tags on an Amazon S3 on Outposts bucket. To put tags on an S3 bucket, see\n PutBucketTagging in the Amazon S3 API Reference.

\n
\n

Sets the tags for an S3 on Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

Use tags to organize your AWS bill to reflect your own cost structure. To do this, sign up to get your \n AWS account bill with tag key values included. Then, to see the cost of combined resources, organize your \n billing information according to resources with the same tag key values. For example, you can tag several \n resources with a specific application name, and then organize your billing information to see the total cost \n of that application across several services. For more information, see \n Cost \n allocation and tagging.

\n \n \n

Within a bucket, if you add a tag that has the same key as an existing tag, the new value overwrites \n the old value. For more information, see \n Using cost allocation in Amazon S3 bucket tags.

\n
\n

To use this action, you must have permissions to perform the\n s3-outposts:PutBucketTagging action. The Outposts bucket owner has this\n permission by default and can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing access permissions to your Amazon S3\n resources.

\n \n

\n PutBucketTagging has the following special errors:

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketTagging:

\n ", + "smithy.api#documentation": "\n

This action puts tags on an Amazon S3 on Outposts bucket. To put tags on an S3 bucket, see\n PutBucketTagging in the Amazon S3 API Reference.

\n
\n

Sets the tags for an S3 on Outposts bucket. For more information, see Using Amazon S3 on Outposts in the\n Amazon S3 User Guide.

\n

Use tags to organize your Amazon Web Services bill to reflect your own cost structure. To do this, sign up to get your \n account bill with tag key values included. Then, to see the cost of combined resources, organize your \n billing information according to resources with the same tag key values. For example, you can tag several \n resources with a specific application name, and then organize your billing information to see the total cost \n of that application across several services. For more information, see \n Cost \n allocation and tagging.

\n \n \n

Within a bucket, if you add a tag that has the same key as an existing tag, the new value overwrites \n the old value. For more information, see \n Using cost allocation in Amazon S3 bucket tags.

\n
\n

To use this action, you must have permissions to perform the\n s3-outposts:PutBucketTagging action. The Outposts bucket owner has this\n permission by default and can grant this permission to others. For more information about\n permissions, see Permissions Related to Bucket Subresource Operations and Managing access permissions to your Amazon S3\n resources.

\n \n

\n PutBucketTagging has the following special errors:

\n \n

All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request and an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived using the access point ARN, see the Examples section.

\n \n

The following actions are related to PutBucketTagging:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -4446,7 +4495,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Outposts bucket.

", + "smithy.api#documentation": "

The account ID of the Outposts bucket.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4455,7 +4504,7 @@ "Bucket": { "target": "com.amazonaws.s3control#BucketName", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the bucket.

\n

For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

\n

For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket reports through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4494,7 +4543,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets the supplied tag-set on an S3 Batch Operations job.

\n

A tag is a key-value pair. You can associate S3 Batch Operations tags with any job by sending\n a PUT request against the tagging subresource that is associated with the job. To modify\n the existing tag set, you can either replace the existing tag set entirely, or make changes\n within the existing tag set by retrieving the existing tag set using GetJobTagging, modify that tag set, and use this action to replace the\n tag set with the one you modified. For more information, see Controlling access and\n labeling jobs using tags in the Amazon S3 User Guide.

\n

\n \n \n \n

\n

To use this action, you must have permission to perform the s3:PutJobTagging action.

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Sets the supplied tag-set on an S3 Batch Operations job.

\n

A tag is a key-value pair. You can associate S3 Batch Operations tags with any job by sending\n a PUT request against the tagging subresource that is associated with the job. To modify\n the existing tag set, you can either replace the existing tag set entirely, or make changes\n within the existing tag set by retrieving the existing tag set using GetJobTagging, modify that tag set, and use this action to replace the\n tag set with the one you modified. For more information, see Controlling access and\n labeling jobs using tags in the Amazon S3 User Guide.

\n

\n \n \n \n

\n

To use this action, you must have permission to perform the s3:PutJobTagging action.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -4511,7 +4560,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4544,7 +4593,7 @@ "target": "com.amazonaws.s3control#PutPublicAccessBlockRequest" }, "traits": { - "smithy.api#documentation": "

Creates or modifies the PublicAccessBlock configuration for an AWS account. For\n more information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Creates or modifies the PublicAccessBlock configuration for an account. For\n more information, see Using Amazon S3 block\n public access.

\n

Related actions include:

\n ", "smithy.api#endpoint": { "hostPrefix": "{AccountId}." }, @@ -4561,7 +4610,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The account ID for the AWS account whose PublicAccessBlock configuration you want\n to set.

", + "smithy.api#documentation": "

The account ID for the account whose PublicAccessBlock configuration you want\n to set.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -4570,7 +4619,7 @@ "PublicAccessBlockConfiguration": { "target": "com.amazonaws.s3control#PublicAccessBlockConfiguration", "traits": { - "smithy.api#documentation": "

The PublicAccessBlock configuration that you want to apply to the specified AWS\n account.

", + "smithy.api#documentation": "

The PublicAccessBlock configuration that you want to apply to the specified account.

", "smithy.api#httpPayload": {}, "smithy.api#required": {}, "smithy.api#xmlName": "PublicAccessBlockConfiguration" @@ -4716,7 +4765,7 @@ "OutpostId": { "target": "com.amazonaws.s3control#NonEmptyMaxLength64String", "traits": { - "smithy.api#documentation": "

The AWS Outposts ID of the regional bucket.

" + "smithy.api#documentation": "

The Outposts ID of the regional bucket.

" } } }, @@ -5029,7 +5078,7 @@ "BucketKeyEnabled": { "target": "com.amazonaws.s3control#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with\n server-side encryption using AWS KMS (SSE-KMS). Setting this header to true\n causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with an object action doesn’t affect\n bucket-level settings for S3 Bucket Key.

" + "smithy.api#documentation": "

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with\n server-side encryption using Amazon Web Services KMS (SSE-KMS). Setting this header to true\n causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

\n

Specifying this header with an object action doesn’t affect\n bucket-level settings for S3 Bucket Key.

" } } }, @@ -5630,13 +5679,13 @@ "Arn": { "target": "com.amazonaws.s3control#AwsOrgArn", "traits": { - "smithy.api#documentation": "

A container for the Amazon Resource Name (ARN) of the AWS organization.\n This property is read-only and follows the following format: \n arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck\n \n

", + "smithy.api#documentation": "

A container for the Amazon Resource Name (ARN) of the Amazon Web Services organization.\n This property is read-only and follows the following format: \n arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck\n \n

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The AWS organization for your S3 Storage Lens.

" + "smithy.api#documentation": "

The Amazon Web Services organization for your S3 Storage Lens.

" } }, "com.amazonaws.s3control#StorageLensConfiguration": { @@ -5684,7 +5733,7 @@ "AwsOrg": { "target": "com.amazonaws.s3control#StorageLensAwsOrg", "traits": { - "smithy.api#documentation": "

A container for the AWS organization for this S3 Storage Lens configuration.

" + "smithy.api#documentation": "

A container for the Amazon Web Services organization for this S3 Storage Lens configuration.

" } }, "StorageLensArn": { @@ -5979,7 +6028,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} @@ -6065,7 +6114,7 @@ "AccountId": { "target": "com.amazonaws.s3control#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID associated with the S3 Batch Operations job.

", + "smithy.api#documentation": "

The account ID associated with the S3 Batch Operations job.

", "smithy.api#hostLabel": {}, "smithy.api#httpHeader": "x-amz-account-id", "smithy.api#required": {} diff --git a/codegen/sdk-codegen/aws-models/s3outposts.2017-07-25.json b/codegen/sdk-codegen/aws-models/s3outposts.2017-07-25.json index ddbf8a60e8c..07223a5040e 100644 --- a/codegen/sdk-codegen/aws-models/s3outposts.2017-07-25.json +++ b/codegen/sdk-codegen/aws-models/s3outposts.2017-07-25.json @@ -43,13 +43,7 @@ } }, "com.amazonaws.s3outposts#CidrBlock": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 20 - } - } + "type": "string" }, "com.amazonaws.s3outposts#ConflictException": { "type": "structure", @@ -90,7 +84,7 @@ } ], "traits": { - "smithy.api#documentation": "

S3 on Outposts access points simplify managing data access at scale for shared datasets \n in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform \n actions within your virtual private cloud (VPC).

\n

This action creates an endpoint and associates it with the specified Outpost.

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts. \n S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your \n virtual private cloud (VPC). For more information, see \n Accessing S3 on Outposts using VPC only access points.

\n

This action creates an endpoint and associates it with the specified Outposts.

\n \n

It can take up to 5 minutes for this action to complete.

\n
\n

\n

Related actions include:

\n ", "smithy.api#http": { "method": "POST", "uri": "/S3Outposts/CreateEndpoint", @@ -104,14 +98,14 @@ "OutpostId": { "target": "com.amazonaws.s3outposts#OutpostId", "traits": { - "smithy.api#documentation": "

The ID of the AWS Outpost.

", + "smithy.api#documentation": "

The ID of the AWS Outposts.

", "smithy.api#required": {} } }, "SubnetId": { "target": "com.amazonaws.s3outposts#SubnetId", "traits": { - "smithy.api#documentation": "

The ID of the subnet in the selected VPC.

", + "smithy.api#documentation": "

The ID of the subnet in the selected VPC. The endpoint subnet \n must belong to the Outpost that has the Amazon S3 on Outposts provisioned.

", "smithy.api#required": {} } }, @@ -121,6 +115,18 @@ "smithy.api#documentation": "

The ID of the security group to use with the endpoint.

", "smithy.api#required": {} } + }, + "AccessType": { + "target": "com.amazonaws.s3outposts#EndpointAccessType", + "traits": { + "smithy.api#documentation": "

The type of access for the on-premise network connectivity for the \n Outpost endpoint. To access the endpoint from an on-premises network, you must \n specify the access type and provide the customer owned IPv4 pool.

" + } + }, + "CustomerOwnedIpv4Pool": { + "target": "com.amazonaws.s3outposts#CustomerOwnedIpv4Pool", + "traits": { + "smithy.api#documentation": "

The ID of the customer-owned IPv4 pool for the endpoint. \n IP addresses will be allocated from this pool for the endpoint.

" + } } } }, @@ -138,6 +144,12 @@ "com.amazonaws.s3outposts#CreationTime": { "type": "timestamp" }, + "com.amazonaws.s3outposts#CustomerOwnedIpv4Pool": { + "type": "string", + "traits": { + "smithy.api#pattern": "^ipv4pool-coip-([0-9a-f]{17})$" + } + }, "com.amazonaws.s3outposts#DeleteEndpoint": { "type": "operation", "input": { @@ -158,7 +170,7 @@ } ], "traits": { - "smithy.api#documentation": "

S3 on Outposts access points simplify managing data access at scale for shared datasets \n in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform \n actions within your virtual private cloud (VPC).

\n

This action deletes an endpoint.\n

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts. \n S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your \n virtual private cloud (VPC). For more information, see \n Accessing S3 on Outposts using VPC only access points.

\n

This action deletes an endpoint.

\n \n

It can take up to 5 minutes for this action to complete.

\n
\n

\n

Related actions include:

\n ", "smithy.api#http": { "method": "DELETE", "uri": "/S3Outposts/DeleteEndpoint", @@ -172,7 +184,7 @@ "EndpointId": { "target": "com.amazonaws.s3outposts#EndpointId", "traits": { - "smithy.api#documentation": "

The ID of the end point.

", + "smithy.api#documentation": "

The ID of the endpoint.

", "smithy.api#httpQuery": "endpointId", "smithy.api#required": {} } @@ -180,7 +192,7 @@ "OutpostId": { "target": "com.amazonaws.s3outposts#OutpostId", "traits": { - "smithy.api#documentation": "

The ID of the AWS Outpost.

", + "smithy.api#documentation": "

The ID of the AWS Outposts.

", "smithy.api#httpQuery": "outpostId", "smithy.api#required": {} } @@ -199,7 +211,7 @@ "OutpostsId": { "target": "com.amazonaws.s3outposts#OutpostId", "traits": { - "smithy.api#documentation": "

The ID of the AWS Outpost.

" + "smithy.api#documentation": "

The ID of the AWS Outposts.

" } }, "CidrBlock": { @@ -225,29 +237,66 @@ "traits": { "smithy.api#documentation": "

The network interface of the endpoint.

" } + }, + "VpcId": { + "target": "com.amazonaws.s3outposts#VpcId", + "traits": { + "smithy.api#documentation": "

The ID of the VPC used for the endpoint.

" + } + }, + "SubnetId": { + "target": "com.amazonaws.s3outposts#SubnetId", + "traits": { + "smithy.api#documentation": "

The ID of the subnet used for the endpoint.

" + } + }, + "SecurityGroupId": { + "target": "com.amazonaws.s3outposts#SecurityGroupId", + "traits": { + "smithy.api#documentation": "

The ID of the security group used for the endpoint.

" + } + }, + "AccessType": { + "target": "com.amazonaws.s3outposts#EndpointAccessType", + "traits": { + "smithy.api#documentation": "

" + } + }, + "CustomerOwnedIpv4Pool": { + "target": "com.amazonaws.s3outposts#CustomerOwnedIpv4Pool", + "traits": { + "smithy.api#documentation": "

The ID of the customer-owned IPv4 pool used for the endpoint.

" + } } }, "traits": { - "smithy.api#documentation": "

S3 on Outposts access points simplify managing data access at scale for shared datasets \n in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform \n actions within your virtual private cloud (VPC).

" + "smithy.api#documentation": "

Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts. \n S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your \n virtual private cloud (VPC). For more information, see \n Accessing S3 on Outposts using VPC only access points.

" + } + }, + "com.amazonaws.s3outposts#EndpointAccessType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Private", + "name": "PRIVATE" + }, + { + "value": "CustomerOwnedIp", + "name": "CUSTOMER_OWNED_IP" + } + ] } }, "com.amazonaws.s3outposts#EndpointArn": { "type": "string", "traits": { - "smithy.api#length": { - "min": 5, - "max": 500 - }, "smithy.api#pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):s3-outposts:[a-z\\-0-9]*:[0-9]{12}:outpost/(op-[a-f0-9]{17}|ec2)/endpoint/[a-zA-Z0-9]{19}$" } }, "com.amazonaws.s3outposts#EndpointId": { "type": "string", "traits": { - "smithy.api#length": { - "min": 5, - "max": 500 - }, "smithy.api#pattern": "^[a-zA-Z0-9]{19}$" } }, @@ -256,12 +305,16 @@ "traits": { "smithy.api#enum": [ { - "value": "PENDING", + "value": "Pending", "name": "PENDING" }, { - "value": "AVAILABLE", + "value": "Available", "name": "AVAILABLE" + }, + { + "value": "Deleting", + "name": "DELETING" } ] } @@ -311,7 +364,7 @@ } ], "traits": { - "smithy.api#documentation": "

S3 on Outposts access points simplify managing data access at scale for shared datasets \n in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform \n actions within your virtual private cloud (VPC).

\n

This action lists endpoints associated with the Outpost.\n

\n

\n

Related actions include:

\n ", + "smithy.api#documentation": "

Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts. \n S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your \n virtual private cloud (VPC). For more information, see \n Accessing S3 on Outposts using VPC only access points.

\n

This action lists endpoints associated with the Outposts.\n

\n

\n

Related actions include:

\n ", "smithy.api#http": { "method": "GET", "uri": "/S3Outposts/ListEndpoints", @@ -350,7 +403,7 @@ "Endpoints": { "target": "com.amazonaws.s3outposts#Endpoints", "traits": { - "smithy.api#documentation": "

Returns an array of endpoints associated with AWS Outpost.

" + "smithy.api#documentation": "

Returns an array of endpoints associated with AWS Outposts.

" } }, "NextToken": { @@ -385,13 +438,7 @@ } }, "com.amazonaws.s3outposts#NetworkInterfaceId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - } - } + "type": "string" }, "com.amazonaws.s3outposts#NetworkInterfaces": { "type": "list", @@ -412,10 +459,6 @@ "com.amazonaws.s3outposts#OutpostId": { "type": "string", "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, "smithy.api#pattern": "^(op-[a-f0-9]{17}|\\d{12}|ec2)$" } }, @@ -465,20 +508,12 @@ "com.amazonaws.s3outposts#SecurityGroupId": { "type": "string", "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, "smithy.api#pattern": "^sg-([0-9a-f]{8}|[0-9a-f]{17})$" } }, "com.amazonaws.s3outposts#SubnetId": { "type": "string", "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, "smithy.api#pattern": "^subnet-([0-9a-f]{8}|[0-9a-f]{17})$" } }, @@ -494,6 +529,9 @@ "smithy.api#error": "client", "smithy.api#httpError": 400 } + }, + "com.amazonaws.s3outposts#VpcId": { + "type": "string" } } } diff --git a/codegen/sdk-codegen/aws-models/sagemaker.2017-07-24.json b/codegen/sdk-codegen/aws-models/sagemaker.2017-07-24.json index 5552abc5116..79ddb444446 100644 --- a/codegen/sdk-codegen/aws-models/sagemaker.2017-07-24.json +++ b/codegen/sdk-codegen/aws-models/sagemaker.2017-07-24.json @@ -830,6 +830,38 @@ "value": "ml.m5.24xlarge", "name": "ML_M5_24XLARGE" }, + { + "value": "ml.m5d.large", + "name": "ML_M5D_LARGE" + }, + { + "value": "ml.m5d.xlarge", + "name": "ML_M5D_XLARGE" + }, + { + "value": "ml.m5d.2xlarge", + "name": "ML_M5D_2XLARGE" + }, + { + "value": "ml.m5d.4xlarge", + "name": "ML_M5D_4XLARGE" + }, + { + "value": "ml.m5d.8xlarge", + "name": "ML_M5D_8XLARGE" + }, + { + "value": "ml.m5d.12xlarge", + "name": "ML_M5D_12XLARGE" + }, + { + "value": "ml.m5d.16xlarge", + "name": "ML_M5D_16XLARGE" + }, + { + "value": "ml.m5d.24xlarge", + "name": "ML_M5D_24XLARGE" + }, { "value": "ml.c5.large", "name": "ML_C5_LARGE" @@ -874,6 +906,10 @@ "value": "ml.p3.16xlarge", "name": "ML_P3_16XLARGE" }, + { + "value": "ml.p3dn.24xlarge", + "name": "ML_P3DN_24XLARGE" + }, { "value": "ml.g4dn.xlarge", "name": "ML_G4DN_XLARGE" @@ -897,6 +933,38 @@ { "value": "ml.g4dn.16xlarge", "name": "ML_G4DN_16XLARGE" + }, + { + "value": "ml.r5.large", + "name": "ML_R5_LARGE" + }, + { + "value": "ml.r5.xlarge", + "name": "ML_R5_XLARGE" + }, + { + "value": "ml.r5.2xlarge", + "name": "ML_R5_2XLARGE" + }, + { + "value": "ml.r5.4xlarge", + "name": "ML_R5_4XLARGE" + }, + { + "value": "ml.r5.8xlarge", + "name": "ML_R5_8XLARGE" + }, + { + "value": "ml.r5.12xlarge", + "name": "ML_R5_12XLARGE" + }, + { + "value": "ml.r5.16xlarge", + "name": "ML_R5_16XLARGE" + }, + { + "value": "ml.r5.24xlarge", + "name": "ML_R5_24XLARGE" } ] } @@ -4747,7 +4815,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an endpoint using the endpoint configuration specified in the request. Amazon SageMaker\n uses the endpoint to provision resources and deploy models. You create the endpoint\n configuration with the CreateEndpointConfig API.

\n

Use this API to deploy models using Amazon SageMaker hosting services.

\n

For an example that calls this method when deploying a model to Amazon SageMaker hosting services,\n see Deploy the\n Model to Amazon SageMaker Hosting Services (Amazon Web Services SDK for Python (Boto\n 3)).\n

\n \n

You must not delete an EndpointConfig that is in use by an endpoint\n that is live or while the UpdateEndpoint or CreateEndpoint\n operations are being performed on the endpoint. To update an endpoint, you must\n create a new EndpointConfig.

\n
\n

The endpoint name must be unique within an Amazon Web Services Region in your Amazon Web Services account.

\n

When it receives the request, Amazon SageMaker creates the endpoint, launches the resources (ML\n compute instances), and deploys the model(s) on them.

\n \n \n

When you call CreateEndpoint, a load call is made to DynamoDB to\n verify that your endpoint configuration exists. When you read data from a DynamoDB\n table supporting \n Eventually Consistent Reads\n , the response might not\n reflect the results of a recently completed write operation. The response might\n include some stale data. If the dependent entities are not yet in DynamoDB, this\n causes a validation error. If you repeat your read request after a short time, the\n response should return the latest data. So retry logic is recommended to handle\n these possible issues. We also recommend that customers call DescribeEndpointConfig before calling CreateEndpoint to minimize the potential impact of a DynamoDB eventually consistent read.

\n
\n

When Amazon SageMaker receives the request, it sets the endpoint status to\n Creating. After it creates the endpoint, it sets the status to\n InService. Amazon SageMaker can then process incoming requests for inferences. To\n check the status of an endpoint, use the DescribeEndpoint\n API.

\n

If any of the models hosted at this endpoint get model data from an Amazon S3 location,\n Amazon SageMaker uses Amazon Web Services Security Token Service to download model artifacts from the S3 path you\n provided. Amazon Web Services STS is activated in your IAM user account by default. If you previously\n deactivated Amazon Web Services STS for a region, you need to reactivate Amazon Web Services STS for that region. For\n more information, see Activating and\n Deactivating Amazon Web Services STS in an Amazon Web Services Region in the Amazon Web Services Identity and Access Management User\n Guide.

\n \n

To add the IAM role policies for using this API operation, go to the IAM console, and choose\n Roles in the left navigation pane. Search the IAM role that you want to grant\n access to use the CreateEndpoint and CreateEndpointConfig API operations, add the following policies to\n the role.

\n \n\n
" + "smithy.api#documentation": "

Creates an endpoint using the endpoint configuration specified in the request. Amazon SageMaker\n uses the endpoint to provision resources and deploy models. You create the endpoint\n configuration with the CreateEndpointConfig API.

\n

Use this API to deploy models using Amazon SageMaker hosting services.

\n

For an example that calls this method when deploying a model to Amazon SageMaker hosting services,\n see the Create Endpoint example notebook.\n

\n \n

You must not delete an EndpointConfig that is in use by an endpoint\n that is live or while the UpdateEndpoint or CreateEndpoint\n operations are being performed on the endpoint. To update an endpoint, you must\n create a new EndpointConfig.

\n
\n

The endpoint name must be unique within an Amazon Web Services Region in your Amazon Web Services account.

\n

When it receives the request, Amazon SageMaker creates the endpoint, launches the resources (ML\n compute instances), and deploys the model(s) on them.

\n \n \n

When you call CreateEndpoint, a load call is made to DynamoDB to\n verify that your endpoint configuration exists. When you read data from a DynamoDB\n table supporting \n Eventually Consistent Reads\n , the response might not\n reflect the results of a recently completed write operation. The response might\n include some stale data. If the dependent entities are not yet in DynamoDB, this\n causes a validation error. If you repeat your read request after a short time, the\n response should return the latest data. So retry logic is recommended to handle\n these possible issues. We also recommend that customers call DescribeEndpointConfig before calling CreateEndpoint to minimize the potential impact of a DynamoDB eventually consistent read.

\n
\n

When Amazon SageMaker receives the request, it sets the endpoint status to\n Creating. After it creates the endpoint, it sets the status to\n InService. Amazon SageMaker can then process incoming requests for inferences. To\n check the status of an endpoint, use the DescribeEndpoint\n API.

\n

If any of the models hosted at this endpoint get model data from an Amazon S3 location,\n Amazon SageMaker uses Amazon Web Services Security Token Service to download model artifacts from the S3 path you\n provided. Amazon Web Services STS is activated in your IAM user account by default. If you previously\n deactivated Amazon Web Services STS for a region, you need to reactivate Amazon Web Services STS for that region. For\n more information, see Activating and\n Deactivating Amazon Web Services STS in an Amazon Web Services Region in the Amazon Web Services Identity and Access Management User\n Guide.

\n \n

To add the IAM role policies for using this API operation, go to the IAM console, and choose\n Roles in the left navigation pane. Search the IAM role that you want to grant\n access to use the CreateEndpoint and CreateEndpointConfig API operations, add the following policies to\n the role.

\n \n\n
" } }, "com.amazonaws.sagemaker#CreateEndpointConfig": { @@ -11267,7 +11335,101 @@ } ], "traits": { - "smithy.api#documentation": "

Describes a SageMaker image.

" + "smithy.api#documentation": "

Describes a SageMaker image.

", + "smithy.api#suppress": [ + "WaitableTraitInvalidErrorType" + ], + "smithy.waiters#waitable": { + "ImageCreated": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "ImageStatus", + "expected": "CREATED", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "ImageStatus", + "expected": "CREATE_FAILED", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationException" + } + } + ], + "minDelay": 60 + }, + "ImageDeleted": { + "acceptors": [ + { + "state": "success", + "matcher": { + "errorType": "ResourceNotFoundException" + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "ImageStatus", + "expected": "DELETE_FAILED", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationException" + } + } + ], + "minDelay": 60 + }, + "ImageUpdated": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "ImageStatus", + "expected": "CREATED", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "ImageStatus", + "expected": "UPDATE_FAILED", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationException" + } + } + ], + "minDelay": 60 + } + } } }, "com.amazonaws.sagemaker#DescribeImageRequest": { @@ -11355,7 +11517,70 @@ } ], "traits": { - "smithy.api#documentation": "

Describes a version of a SageMaker image.

" + "smithy.api#documentation": "

Describes a version of a SageMaker image.

", + "smithy.api#suppress": [ + "WaitableTraitInvalidErrorType" + ], + "smithy.waiters#waitable": { + "ImageVersionCreated": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "ImageVersionStatus", + "expected": "CREATED", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "ImageVersionStatus", + "expected": "CREATE_FAILED", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationException" + } + } + ], + "minDelay": 60 + }, + "ImageVersionDeleted": { + "acceptors": [ + { + "state": "success", + "matcher": { + "errorType": "ResourceNotFoundException" + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "ImageVersionStatus", + "expected": "DELETE_FAILED", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "errorType": "ValidationException" + } + } + ], + "minDelay": 60 + } + } } }, "com.amazonaws.sagemaker#DescribeImageVersionRequest": { @@ -19158,6 +19383,26 @@ "smithy.api#pattern": "^arn:aws[a-z\\-]*:lambda:[a-z0-9\\-]*:[0-9]{12}:function:" } }, + "com.amazonaws.sagemaker#LambdaStepMetadata": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.sagemaker#String256", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Lambda function that was run by this step execution.

" + } + }, + "OutputParameters": { + "target": "com.amazonaws.sagemaker#OutputParameterList", + "traits": { + "smithy.api#documentation": "

A list of the output parameters of the Lambda step.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Metadata for a Lambda step.

" + } + }, "com.amazonaws.sagemaker#LastModifiedTime": { "type": "timestamp" }, @@ -27842,23 +28087,32 @@ "Model": { "target": "com.amazonaws.sagemaker#ModelStepMetadata", "traits": { - "smithy.api#documentation": "

Metadata for the Model step.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the model that was created by this step execution.

" } }, "RegisterModel": { "target": "com.amazonaws.sagemaker#RegisterModelStepMetadata", "traits": { - "smithy.api#documentation": "

Metadata for the RegisterModel step.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the model package the model was registered to by this step execution.

" } }, "Condition": { "target": "com.amazonaws.sagemaker#ConditionStepMetadata", "traits": { - "smithy.api#documentation": "

If this is a Condition step metadata object, details on the condition.

" + "smithy.api#documentation": "

The outcome of the condition evaluation that was run by this step execution.

" } }, "Callback": { - "target": "com.amazonaws.sagemaker#CallbackStepMetadata" + "target": "com.amazonaws.sagemaker#CallbackStepMetadata", + "traits": { + "smithy.api#documentation": "

The URL of the Amazon SQS queue used by this step execution, the pipeline generated token,\n and a list of output parameters.

" + } + }, + "Lambda": { + "target": "com.amazonaws.sagemaker#LambdaStepMetadata", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Lambda function that was run by this step execution and a list of\n output parameters.

" + } } }, "traits": { @@ -32870,7 +33124,7 @@ "MaxRuntimeInSeconds": { "target": "com.amazonaws.sagemaker#MaxRuntimeInSeconds", "traits": { - "smithy.api#documentation": "

The maximum length of time, in seconds, that a training or compilation job can run. If\n the job does not complete during this time, Amazon SageMaker ends the job.

\n

When RetryStrategy is specified in the job request,\n MaxRuntimeInSeconds specifies the maximum time for all of the attempts\n in total, not each individual attempt.

\n

The default value is 1 day. The maximum value is 28 days.

" + "smithy.api#documentation": "

The maximum length of time, in seconds, that a training or compilation job can run.

\n

For compilation jobs, if the job does not complete during this time, you will \n receive a TimeOut error. We recommend starting with 900 seconds and increase as \n necessary based on your model.

\n

For all other jobs, if the job does not complete during this time, Amazon SageMaker ends the job. When \n RetryStrategy is specified in the job request,\n MaxRuntimeInSeconds specifies the maximum time for all of the attempts\n in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

" } }, "MaxWaitTimeInSeconds": { @@ -32881,7 +33135,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies a limit to how long a model training job, model compilation job, or\n hyperparameter tuning job can run. It also specifies how long a managed Spot training\n job has to complete. When the job reaches the time limit, Amazon SageMaker ends the training or\n compilation job. Use this API to cap model training costs.

\n

To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays\n job termination for 120 seconds. Algorithms can use this 120-second window to save the\n model artifacts, so the results of training are not lost.

\n

The training algorithms provided by Amazon SageMaker automatically save the intermediate results\n of a model training job when possible. This attempt to save artifacts is only a best\n effort case as model might not be in a state from which it can be saved. For example, if\n training has just started, the model might not be ready to save. When saved, this\n intermediate data is a valid model artifact. You can use it to create a model with\n CreateModel.

\n \n

The Neural Topic Model (NTM) currently does not support saving intermediate model\n artifacts. When training NTMs, make sure that the maximum runtime is sufficient for\n the training job to complete.

\n
" + "smithy.api#documentation": "

Specifies a limit to how long a model training job, model compilation job, or\n hyperparameter tuning job can run. It also specifies how long a managed Spot training\n job has to complete. When the job reaches the time limit, Amazon SageMaker ends the training or\n compilation job. Use this API to cap model training costs.

\n

To stop a training job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays\n job termination for 120 seconds. Algorithms can use this 120-second window to save the\n model artifacts, so the results of training are not lost.

\n

The training algorithms provided by Amazon SageMaker automatically save the intermediate results\n of a model training job when possible. This attempt to save artifacts is only a best\n effort case as model might not be in a state from which it can be saved. For example, if\n training has just started, the model might not be ready to save. When saved, this\n intermediate data is a valid model artifact. You can use it to create a model with\n CreateModel.

\n \n

The Neural Topic Model (NTM) currently does not support saving intermediate model\n artifacts. When training NTMs, make sure that the maximum runtime is sufficient for\n the training job to complete.

\n
" } }, "com.amazonaws.sagemaker#String": { diff --git a/codegen/sdk-codegen/aws-models/savingsplans.2019-06-28.json b/codegen/sdk-codegen/aws-models/savingsplans.2019-06-28.json index 197b6f3dcbf..616add24fd5 100644 --- a/codegen/sdk-codegen/aws-models/savingsplans.2019-06-28.json +++ b/codegen/sdk-codegen/aws-models/savingsplans.2019-06-28.json @@ -659,6 +659,10 @@ } }, "traits": { + "aws.protocols#awsQueryError": { + "code": "InternalServerException", + "httpResponseCode": 500 + }, "smithy.api#documentation": "

An unexpected error occurred.

", "smithy.api#error": "server", "smithy.api#httpError": 500 @@ -814,6 +818,10 @@ } }, "traits": { + "aws.protocols#awsQueryError": { + "code": "ResourceNotFoundException", + "httpResponseCode": 404 + }, "smithy.api#documentation": "

The specified resource was not found.

", "smithy.api#error": "client", "smithy.api#httpError": 404 @@ -938,7 +946,7 @@ "com.amazonaws.savingsplans#SavingsPlanArn": { "type": "string", "traits": { - "smithy.api#pattern": "arn:aws:[a-z]+:([a-z]{2}-[a-z]+-\\d{1}|):(\\d{12}):savingsplan\\/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$" + "smithy.api#pattern": "^arn:aws:[a-z]+:([a-z]{2}-[a-z]+-\\d{1}|):(\\d{12}):savingsplan\\/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})$" } }, "com.amazonaws.savingsplans#SavingsPlanArnList": { @@ -1809,6 +1817,10 @@ } }, "traits": { + "aws.protocols#awsQueryError": { + "code": "ServiceQuotaExceededException", + "httpResponseCode": 402 + }, "smithy.api#documentation": "

A service quota has been exceeded.

", "smithy.api#error": "client", "smithy.api#httpError": 402 @@ -1898,7 +1910,7 @@ "com.amazonaws.savingsplans#UUID": { "type": "string", "traits": { - "smithy.api#pattern": "^(([0-9a-f]+)(-?))+$" + "smithy.api#pattern": "^[a-f0-9]+(-[a-f0-9]+)*$" } }, "com.amazonaws.savingsplans#UUIDs": { @@ -1969,6 +1981,10 @@ } }, "traits": { + "aws.protocols#awsQueryError": { + "code": "ValidationException", + "httpResponseCode": 400 + }, "smithy.api#documentation": "

One of the input parameters is not valid.

", "smithy.api#error": "client", "smithy.api#httpError": 400 diff --git a/codegen/sdk-codegen/aws-models/secretsmanager.2017-10-17.json b/codegen/sdk-codegen/aws-models/secretsmanager.2017-10-17.json index 8a1593c2efc..e86f08b7b53 100644 --- a/codegen/sdk-codegen/aws-models/secretsmanager.2017-10-17.json +++ b/codegen/sdk-codegen/aws-models/secretsmanager.2017-10-17.json @@ -160,7 +160,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new secret. A secret in Secrets Manager consists of both the protected secret data and the\n important information needed to manage the secret.

\n

Secrets Manager stores the encrypted secret data in one of a collection of \"versions\"\n associated with the secret. Each version contains a copy of the encrypted secret data. Each\n version is associated with one or more \"staging labels\" that identify where the version is in\n the rotation cycle. The SecretVersionsToStages field of the secret contains the\n mapping of staging labels to the active versions of the secret. Versions without a staging\n label are considered deprecated and not included in the list.

\n

You provide the secret data to be encrypted by putting text in either the\n SecretString parameter or binary data in the SecretBinary\n parameter, but not both. If you include SecretString or SecretBinary\n then Secrets Manager also creates an initial secret version and automatically attaches the staging\n label AWSCURRENT to the new version.

\n \n \n \n

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " + "smithy.api#documentation": "

Creates a new secret. A secret in Secrets Manager consists of both the protected secret data and the\n important information needed to manage the secret.

\n

Secrets Manager stores the encrypted secret data in one of a collection of \"versions\"\n associated with the secret. Each version contains a copy of the encrypted secret data. Each\n version is associated with one or more \"staging labels\" that identify where the version is in\n the rotation cycle. The SecretVersionsToStages field of the secret contains the\n mapping of staging labels to the active versions of the secret. Versions without a staging\n label are considered deprecated and not included in the list.

\n

You provide the secret data to be encrypted by putting text in either the\n SecretString parameter or binary data in the SecretBinary\n parameter, but not both. If you include SecretString or SecretBinary\n then Secrets Manager also creates an initial secret version and automatically attaches the staging\n label AWSCURRENT to the new version.

\n \n \n \n

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " } }, "com.amazonaws.secretsmanager#CreateSecretRequest": { @@ -176,7 +176,7 @@ "ClientRequestToken": { "target": "com.amazonaws.secretsmanager#ClientRequestTokenType", "traits": { - "smithy.api#documentation": "

(Optional) If you include SecretString or SecretBinary, then an\n initial version is created as part of the secret, and this parameter specifies a unique\n identifier for the new version.

\n \n

If you use the AWS CLI or one of the AWS SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it\n as the value for this parameter in the request. If you don't use the SDK and instead\n generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a\n ClientRequestToken yourself for the new version and include the value in the\n request.

\n
\n

This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental\n creation of duplicate versions if there are failures and retries during a rotation. We\n recommend that you generate a UUID-type value to\n ensure uniqueness of your versions within the specified secret.

\n \n

This value becomes the VersionId of the new version.

", + "smithy.api#documentation": "

(Optional) If you include SecretString or SecretBinary, then an\n initial version is created as part of the secret, and this parameter specifies a unique\n identifier for the new version.

\n \n

If you use the Amazon Web Services CLI or one of the Amazon Web Services SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it\n as the value for this parameter in the request. If you don't use the SDK and instead\n generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a\n ClientRequestToken yourself for the new version and include the value in the\n request.

\n
\n

This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental\n creation of duplicate versions if there are failures and retries during a rotation. We\n recommend that you generate a UUID-type value to\n ensure uniqueness of your versions within the specified secret.

\n \n

This value becomes the VersionId of the new version.

", "smithy.api#idempotencyToken": {} } }, @@ -189,25 +189,25 @@ "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies the ARN, Key ID, or alias of the AWS KMS customer master key (CMK) to\n be used to encrypt the SecretString or SecretBinary values in the\n versions stored in this secret.

\n

You can specify any of the supported ways to identify a AWS KMS key ID. If you need to\n reference a CMK in a different account, you can use only the key ARN or the alias ARN.

\n

If you don't specify this value, then Secrets Manager defaults to using the AWS account's\n default CMK (the one named aws/secretsmanager). If a AWS KMS CMK with that name doesn't yet\n exist, then Secrets Manager creates it for you automatically the first time it needs to encrypt a\n version's SecretString or SecretBinary fields.

\n \n

You can use the account default CMK to encrypt and decrypt only if you call this\n operation using credentials from the same account that owns the secret. If the secret\n resides in a different account, then you must create a custom CMK and specify the ARN in\n this field.

\n
" + "smithy.api#documentation": "

(Optional) Specifies the ARN, Key ID, or alias of the Amazon Web Services KMS customer master key (CMK) to\n be used to encrypt the SecretString or SecretBinary values in the\n versions stored in this secret.

\n

You can specify any of the supported ways to identify a Amazon Web Services KMS key ID. If you need to\n reference a CMK in a different account, you can use only the key ARN or the alias ARN.

\n

If you don't specify this value, then Secrets Manager defaults to using the Amazon Web Services account's\n default CMK (the one named aws/secretsmanager). If a Amazon Web Services KMS CMK with that name doesn't yet\n exist, then Secrets Manager creates it for you automatically the first time it needs to encrypt a\n version's SecretString or SecretBinary fields.

\n \n

You can use the account default CMK to encrypt and decrypt only if you call this\n operation using credentials from the same account that owns the secret. If the secret\n resides in a different account, then you must create a custom CMK and specify the ARN in\n this field.

\n
" } }, "SecretBinary": { "target": "com.amazonaws.secretsmanager#SecretBinaryType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies binary data that you want to encrypt and store in the new version of\n the secret. To use this parameter in the command-line tools, we recommend that you store your\n binary data in a file and then use the appropriate technique for your tool to pass the\n contents of the file as a parameter.

\n

Either SecretString or SecretBinary must have a value, but not\n both. They cannot both be empty.

\n

This parameter is not available using the Secrets Manager console. It can be accessed only by\n using the AWS CLI or one of the AWS SDKs.

" + "smithy.api#documentation": "

(Optional) Specifies binary data that you want to encrypt and store in the new version of\n the secret. To use this parameter in the command-line tools, we recommend that you store your\n binary data in a file and then use the appropriate technique for your tool to pass the\n contents of the file as a parameter.

\n

Either SecretString or SecretBinary must have a value, but not\n both. They cannot both be empty.

\n

This parameter is not available using the Secrets Manager console. It can be accessed only by\n using the Amazon Web Services CLI or one of the Amazon Web Services SDKs.

" } }, "SecretString": { "target": "com.amazonaws.secretsmanager#SecretStringType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies text data that you want to encrypt and store in this new version of\n the secret.

\n

Either SecretString or SecretBinary must have a value, but not\n both. They cannot both be empty.

\n

If you create a secret by using the Secrets Manager console then Secrets Manager puts the protected\n secret text in only the SecretString parameter. The Secrets Manager console stores the\n information as a JSON structure of key/value pairs that the Lambda rotation function knows how\n to parse.

\n

For storing multiple values, we recommend that you use a JSON text string argument and\n specify key/value pairs. For information on how to format a JSON parameter for the various\n command line tool environments, see Using JSON for\n Parameters in the AWS CLI User Guide. For example:

\n

\n {\"username\":\"bob\",\"password\":\"abc123xyz456\"}\n

\n

If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text.

" + "smithy.api#documentation": "

(Optional) Specifies text data that you want to encrypt and store in this new version of\n the secret.

\n

Either SecretString or SecretBinary must have a value, but not\n both. They cannot both be empty.

\n

If you create a secret by using the Secrets Manager console then Secrets Manager puts the protected\n secret text in only the SecretString parameter. The Secrets Manager console stores the\n information as a JSON structure of key/value pairs that the Lambda rotation function knows how\n to parse.

\n

For storing multiple values, we recommend that you use a JSON text string argument and\n specify key/value pairs. For information on how to format a JSON parameter for the various\n command line tool environments, see Using JSON for\n Parameters in the CLI User Guide. For example:

\n

\n {\"username\":\"bob\",\"password\":\"abc123xyz456\"}\n

\n

If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text.

" } }, "Tags": { "target": "com.amazonaws.secretsmanager#TagListType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies a list of user-defined tags that are attached to the secret. Each tag\n is a \"Key\" and \"Value\" pair of strings. This operation only appends tags to the existing list\n of tags. To remove tags, you must use UntagResource.

\n \n \n \n

This parameter requires a JSON text string argument. For information on how to format a\n JSON parameter for the various command line tool environments, see Using JSON for\n Parameters in the AWS CLI User Guide. For example:

\n

\n [{\"Key\":\"CostCenter\",\"Value\":\"12345\"},{\"Key\":\"environment\",\"Value\":\"production\"}]\n

\n

If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

(Optional) Specifies a list of user-defined tags that are attached to the secret. Each tag\n is a \"Key\" and \"Value\" pair of strings. This operation only appends tags to the existing list\n of tags. To remove tags, you must use UntagResource.

\n \n \n \n

This parameter requires a JSON text string argument. For information on how to format a\n JSON parameter for the various command line tool environments, see Using JSON for\n Parameters in the CLI User Guide. For example:

\n

\n [{\"Key\":\"CostCenter\",\"Value\":\"12345\"},{\"Key\":\"environment\",\"Value\":\"production\"}]\n

\n

If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text.

\n

The following basic restrictions apply to tags:

\n " } }, "AddReplicaRegions": { @@ -370,7 +370,7 @@ "target": "com.amazonaws.secretsmanager#BooleanType", "traits": { "smithy.api#box": {}, - "smithy.api#documentation": "

(Optional) Specifies that the secret is to be deleted without any recovery window. You\n can't use both this parameter and the RecoveryWindowInDays parameter in the same\n API call.

\n

An asynchronous background process performs the actual deletion, so there can be a short\n delay before the operation completes. If you write code to delete and then immediately\n recreate a secret with the same name, ensure that your code includes appropriate back off and\n retry logic.

\n \n

Use this parameter with caution. This parameter causes the operation to skip the normal\n waiting period before the permanent deletion that AWS would normally impose with the\n RecoveryWindowInDays parameter. If you delete a secret with the\n ForceDeleteWithouRecovery parameter, then you have no opportunity to recover\n the secret. You lose the secret permanently.

\n
\n \n

If you use this parameter and include a previously deleted or nonexistent secret, the\n operation does not return the error ResourceNotFoundException in order to\n correctly handle retries.

\n
" + "smithy.api#documentation": "

(Optional) Specifies that the secret is to be deleted without any recovery window. You\n can't use both this parameter and the RecoveryWindowInDays parameter in the same\n API call.

\n

An asynchronous background process performs the actual deletion, so there can be a short\n delay before the operation completes. If you write code to delete and then immediately\n recreate a secret with the same name, ensure that your code includes appropriate back off and\n retry logic.

\n \n

Use this parameter with caution. This parameter causes the operation to skip the normal\n waiting period before the permanent deletion that Amazon Web Services would normally impose with the\n RecoveryWindowInDays parameter. If you delete a secret with the\n ForceDeleteWithouRecovery parameter, then you have no opportunity to recover\n the secret. You lose the secret permanently.

\n
\n \n

If you use this parameter and include a previously deleted or nonexistent secret, the\n operation does not return the error ResourceNotFoundException in order to\n correctly handle retries.

\n
" } } } @@ -416,12 +416,15 @@ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, + { + "target": "com.amazonaws.secretsmanager#InvalidParameterException" + }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { - "smithy.api#documentation": "

Retrieves the details of a secret. It does not include the encrypted fields. Secrets\n Manager only returns fields populated with a value in the response.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " + "smithy.api#documentation": "

Retrieves the details of a secret. It does not include the encrypted fields. Secrets\n Manager only returns fields populated with a value in the response.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " } }, "com.amazonaws.secretsmanager#DescribeSecretRequest": { @@ -460,7 +463,7 @@ "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { - "smithy.api#documentation": "

The ARN or alias of the AWS KMS customer master key (CMK) that's used to encrypt the\n SecretString or SecretBinary fields in each version of the secret.\n If you don't provide a key, then Secrets Manager defaults to encrypting the secret fields with the\n default AWS KMS CMK (the one named awssecretsmanager) for this account.

" + "smithy.api#documentation": "

The ARN or alias of the Amazon Web Services KMS customer master key (CMK) that's used to encrypt the\n SecretString or SecretBinary fields in each version of the secret.\n If you don't provide a key, then Secrets Manager defaults to encrypting the secret fields with the\n default Amazon Web Services KMS CMK (the one named awssecretsmanager) for this account.

" } }, "RotationEnabled": { @@ -780,6 +783,9 @@ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, + { + "target": "com.amazonaws.secretsmanager#InvalidParameterException" + }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, @@ -821,7 +827,7 @@ "ResourcePolicy": { "target": "com.amazonaws.secretsmanager#NonEmptyResourcePolicyType", "traits": { - "smithy.api#documentation": "

A JSON-formatted string that describes the permissions that are associated with the\n attached secret. These permissions are combined with any permissions that are associated with\n the user or role that attempts to access this secret. The combined permissions specify who can\n access the secret and what actions they can perform. For more information, see Authentication and Access Control for\n AWS Secrets Manager in the AWS Secrets Manager User Guide.

" + "smithy.api#documentation": "

A JSON-formatted string that describes the permissions that are associated with the\n attached secret. These permissions are combined with any permissions that are associated with\n the user or role that attempts to access this secret. The combined permissions specify who can\n access the secret and what actions they can perform. For more information, see Authentication and Access Control for\n Amazon Web Services Secrets Manager in the Amazon Web Services Secrets Manager User Guide.

" } } } @@ -852,7 +858,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves the contents of the encrypted fields SecretString or\n SecretBinary from the specified version of a secret, whichever contains\n content.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " + "smithy.api#documentation": "

Retrieves the contents of the encrypted fields SecretString or\n SecretBinary from the specified version of a secret, whichever contains\n content.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " } }, "com.amazonaws.secretsmanager#GetSecretValueRequest": { @@ -977,6 +983,12 @@ "smithy.api#error": "client" } }, + "com.amazonaws.secretsmanager#KmsKeyIdListType": { + "type": "list", + "member": { + "target": "com.amazonaws.secretsmanager#KmsKeyIdType" + } + }, "com.amazonaws.secretsmanager#KmsKeyIdType": { "type": "string", "traits": { @@ -1022,6 +1034,9 @@ { "target": "com.amazonaws.secretsmanager#InvalidNextTokenException" }, + { + "target": "com.amazonaws.secretsmanager#InvalidParameterException" + }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } @@ -1116,7 +1131,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all of the secrets that are stored by Secrets Manager in the AWS account. To list the\n versions currently stored for a specific secret, use ListSecretVersionIds.\n The encrypted fields SecretString and SecretBinary are not included\n in the output. To get that information, call the GetSecretValue\n operation.

\n \n

Always check the NextToken response parameter \n when calling any of the List* operations. These operations can occasionally return \n an empty or shorter than expected list of results even when there more results become available. \n When this happens, the NextToken response parameter contains a value to pass to the \n next call to the same API to request the next part of the list.

\n
\n

\n Minimum\n permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n ", + "smithy.api#documentation": "

Lists all of the secrets that are stored by Secrets Manager in the Amazon Web Services account. To list the\n versions currently stored for a specific secret, use ListSecretVersionIds.\n The encrypted fields SecretString and SecretBinary are not included\n in the output. To get that information, call the GetSecretValue\n operation.

\n \n

Always check the NextToken response parameter \n when calling any of the List* operations. These operations can occasionally return \n an empty or shorter than expected list of results even when there more results become available. \n When this happens, the NextToken response parameter contains a value to pass to the \n next call to the same API to request the next part of the list.

\n
\n

\n Minimum\n permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n ", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1290,7 +1305,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches the contents of the specified resource-based permission policy to a secret. A\n resource-based policy is optional. Alternatively, you can use IAM identity-based policies\n that specify the secret's Amazon Resource Name (ARN) in the policy statement's\n Resources element. You can also use a combination of both identity-based and\n resource-based policies. The affected users and roles receive the permissions that are\n permitted by all of the relevant policies. For more information, see Using Resource-Based\n Policies for AWS Secrets Manager. For the complete description of the AWS policy syntax and\n grammar, see IAM JSON\n Policy Reference in the IAM User Guide.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " + "smithy.api#documentation": "

Attaches the contents of the specified resource-based permission policy to a secret. A\n resource-based policy is optional. Alternatively, you can use IAM identity-based policies\n that specify the secret's Amazon Resource Name (ARN) in the policy statement's\n Resources element. You can also use a combination of both identity-based and\n resource-based policies. The affected users and roles receive the permissions that are\n permitted by all of the relevant policies. For more information, see Using Resource-Based\n Policies for Amazon Web Services Secrets Manager. For the complete description of the Amazon Web Services policy syntax and\n grammar, see IAM JSON\n Policy Reference in the IAM User Guide.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " } }, "com.amazonaws.secretsmanager#PutResourcePolicyRequest": { @@ -1306,7 +1321,7 @@ "ResourcePolicy": { "target": "com.amazonaws.secretsmanager#NonEmptyResourcePolicyType", "traits": { - "smithy.api#documentation": "

A JSON-formatted string constructed according to the grammar and syntax for an AWS\n resource-based policy. The policy in the string identifies who can access or manage this\n secret and its versions. For information on how to format a JSON parameter for the various\n command line tool environments, see Using\n JSON for Parameters in the AWS CLI User Guide.

", + "smithy.api#documentation": "

A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services\n resource-based policy. The policy in the string identifies who can access or manage this\n secret and its versions. For information on how to format a JSON parameter for the various\n command line tool environments, see Using\n JSON for Parameters in the CLI User Guide.

", "smithy.api#required": {} } }, @@ -1368,7 +1383,7 @@ } ], "traits": { - "smithy.api#documentation": "

Stores a new encrypted secret value in the specified secret. To do this, the operation\n creates a new version and attaches it to the secret. The version can contain a new\n SecretString value or a new SecretBinary value. You can also\n specify the staging labels that are initially attached to the new version.

\n \n

The Secrets Manager console uses only the SecretString field. To add binary data to a\n secret with the SecretBinary field you must use the AWS CLI or one of the\n AWS SDKs.

\n
\n \n \n \n \n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " + "smithy.api#documentation": "

Stores a new encrypted secret value in the specified secret. To do this, the operation\n creates a new version and attaches it to the secret. The version can contain a new\n SecretString value or a new SecretBinary value. You can also\n specify the staging labels that are initially attached to the new version.

\n \n

The Secrets Manager console uses only the SecretString field. To add binary data to a\n secret with the SecretBinary field you must use the Amazon Web Services CLI or one of the\n Amazon Web Services SDKs.

\n
\n \n \n \n \n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " } }, "com.amazonaws.secretsmanager#PutSecretValueRequest": { @@ -1384,20 +1399,20 @@ "ClientRequestToken": { "target": "com.amazonaws.secretsmanager#ClientRequestTokenType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies a unique identifier for the new version of the secret.

\n \n

If you use the AWS CLI or one of the AWS SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that\n in the request. If you don't use the SDK and instead generate a raw HTTP request to the\n Secrets Manager service endpoint, then you must generate a ClientRequestToken yourself\n for new versions and include that value in the request.

\n
\n

This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental\n creation of duplicate versions if there are failures and retries during the Lambda rotation\n function's processing. We recommend that you generate a UUID-type value to\n ensure uniqueness within the specified secret.

\n \n

This value becomes the VersionId of the new version.

", + "smithy.api#documentation": "

(Optional) Specifies a unique identifier for the new version of the secret.

\n \n

If you use the Amazon Web Services CLI or one of the Amazon Web Services SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that\n in the request. If you don't use the SDK and instead generate a raw HTTP request to the\n Secrets Manager service endpoint, then you must generate a ClientRequestToken yourself\n for new versions and include that value in the request.

\n
\n

This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental\n creation of duplicate versions if there are failures and retries during the Lambda rotation\n function's processing. We recommend that you generate a UUID-type value to\n ensure uniqueness within the specified secret.

\n \n

This value becomes the VersionId of the new version.

", "smithy.api#idempotencyToken": {} } }, "SecretBinary": { "target": "com.amazonaws.secretsmanager#SecretBinaryType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies binary data that you want to encrypt and store in the new version of\n the secret. To use this parameter in the command-line tools, we recommend that you store your\n binary data in a file and then use the appropriate technique for your tool to pass the\n contents of the file as a parameter. Either SecretBinary or\n SecretString must have a value, but not both. They cannot both be empty.

\n \n

This parameter is not accessible if the secret using the Secrets Manager console.

\n

" + "smithy.api#documentation": "

(Optional) Specifies binary data that you want to encrypt and store in the new version of\n the secret. To use this parameter in the command-line tools, we recommend that you store your\n binary data in a file and then use the appropriate technique for your tool to pass the\n contents of the file as a parameter. Either SecretBinary or\n SecretString must have a value, but not both. They cannot both be empty.

\n \n

This parameter is not accessible if the secret using the Secrets Manager console.

\n

" } }, "SecretString": { "target": "com.amazonaws.secretsmanager#SecretStringType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies text data that you want to encrypt and store in this new version of\n the secret. Either SecretString or SecretBinary must have a value,\n but not both. They cannot both be empty.

\n \n

If you create this secret by using the Secrets Manager console then Secrets Manager puts the\n protected secret text in only the SecretString parameter. The Secrets Manager console\n stores the information as a JSON structure of key/value pairs that the default Lambda rotation\n function knows how to parse.

\n

For storing multiple values, we recommend that you use a JSON text string argument and\n specify key/value pairs. For information on how to format a JSON parameter for the various\n command line tool environments, see Using JSON for\n Parameters in the AWS CLI User Guide.

\n

For example:

\n

\n [{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]\n

\n

If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text.

" + "smithy.api#documentation": "

(Optional) Specifies text data that you want to encrypt and store in this new version of\n the secret. Either SecretString or SecretBinary must have a value,\n but not both. They cannot both be empty.

\n \n

If you create this secret by using the Secrets Manager console then Secrets Manager puts the\n protected secret text in only the SecretString parameter. The Secrets Manager console\n stores the information as a JSON structure of key/value pairs that the default Lambda rotation\n function knows how to parse.

\n

For storing multiple values, we recommend that you use a JSON text string argument and\n specify key/value pairs. For information on how to format a JSON parameter for the various\n command line tool environments, see Using JSON for\n Parameters in the CLI User Guide.

\n

For example:

\n

\n [{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]\n

\n

If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text.

" } }, "VersionStages": { @@ -1770,7 +1785,7 @@ } ], "traits": { - "smithy.api#documentation": "

Configures and starts the asynchronous process of rotating this secret. If you include the\n configuration parameters, the operation sets those values for the secret and then immediately\n starts a rotation. If you do not include the configuration parameters, the operation starts a\n rotation with the values already stored in the secret. After the rotation completes, the\n protected service and its clients all use the new version of the secret.

\n

This required configuration information includes the ARN of an AWS Lambda function and\n the time between scheduled rotations. The Lambda rotation function creates a new version of\n the secret and creates or updates the credentials on the protected service to match. After\n testing the new credentials, the function marks the new secret with the staging label\n AWSCURRENT so that your clients all immediately begin to use the new version. For more\n information about rotating secrets and how to configure a Lambda function to rotate the\n secrets for your protected service, see Rotating Secrets in AWS Secrets Manager in the\n AWS Secrets Manager User Guide.

\n

Secrets Manager schedules the next rotation when the previous \n one completes. Secrets Manager schedules the date by adding the rotation interval (number of days) to the \n actual date of the last rotation. The service chooses the hour within that 24-hour date window \n randomly. The minute is also chosen somewhat randomly, but weighted towards the top of the hour \n and influenced by a variety of factors that help distribute load.

\n

The\n rotation function must end with the versions of the secret in one of two states:

\n \n

If the AWSPENDING staging label is present but not attached to the same version as\n AWSCURRENT then any later invocation of RotateSecret assumes that a previous\n rotation request is still in progress and returns an error.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " + "smithy.api#documentation": "

Configures and starts the asynchronous process of rotating this secret. If you include the\n configuration parameters, the operation sets those values for the secret and then immediately\n starts a rotation. If you do not include the configuration parameters, the operation starts a\n rotation with the values already stored in the secret. After the rotation completes, the\n protected service and its clients all use the new version of the secret.

\n

This required configuration information includes the ARN of an Amazon Web Services Lambda function and\n optionally, the time between scheduled rotations. The Lambda rotation function creates a new\n version of the secret and creates or updates the credentials on the protected service to\n match. After testing the new credentials, the function marks the new secret with the staging\n label AWSCURRENT so that your clients all immediately begin to use the new version. For more\n information about rotating secrets and how to configure a Lambda function to rotate the\n secrets for your protected service, see Rotating Secrets in Amazon Web Services Secrets Manager in the\n Amazon Web Services Secrets Manager User Guide.

\n

Secrets Manager schedules the next rotation when the previous \n one completes. Secrets Manager schedules the date by adding the rotation interval (number of days) to the \n actual date of the last rotation. The service chooses the hour within that 24-hour date window \n randomly. The minute is also chosen somewhat randomly, but weighted towards the top of the hour \n and influenced by a variety of factors that help distribute load.

\n

The\n rotation function must end with the versions of the secret in one of two states:

\n \n

If the AWSPENDING staging label is present but not attached to the same version as\n AWSCURRENT then any later invocation of RotateSecret assumes that a previous\n rotation request is still in progress and returns an error.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " } }, "com.amazonaws.secretsmanager#RotateSecretRequest": { @@ -1786,7 +1801,7 @@ "ClientRequestToken": { "target": "com.amazonaws.secretsmanager#ClientRequestTokenType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies a unique identifier for the new version of the secret that helps\n ensure idempotency.

\n

If you use the AWS CLI or one of the AWS SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that\n in the request for this parameter. If you don't use the SDK and instead generate a raw HTTP\n request to the Secrets Manager service endpoint, then you must generate a\n ClientRequestToken yourself for new versions and include that value in the\n request.

\n

You only need to specify your own value if you implement your own retry logic and want to\n ensure that a given secret is not created twice. We recommend that you generate a UUID-type value to\n ensure uniqueness within the specified secret.

\n

Secrets Manager uses this value to prevent the accidental creation of duplicate versions if\n there are failures and retries during the function's processing. This value becomes the\n VersionId of the new version.

", + "smithy.api#documentation": "

(Optional) Specifies a unique identifier for the new version of the secret that helps\n ensure idempotency.

\n

If you use the Amazon Web Services CLI or one of the Amazon Web Services SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that\n in the request for this parameter. If you don't use the SDK and instead generate a raw HTTP\n request to the Secrets Manager service endpoint, then you must generate a\n ClientRequestToken yourself for new versions and include that value in the\n request.

\n

You only need to specify your own value if you implement your own retry logic and want to\n ensure that a given secret is not created twice. We recommend that you generate a UUID-type value to\n ensure uniqueness within the specified secret.

\n

Secrets Manager uses this value to prevent the accidental creation of duplicate versions if\n there are failures and retries during the function's processing. This value becomes the\n VersionId of the new version.

", "smithy.api#idempotencyToken": {} } }, @@ -1888,7 +1903,7 @@ "ARN": { "target": "com.amazonaws.secretsmanager#SecretARNType", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret.

\n

For more information about ARNs in Secrets Manager, see Policy Resources in the\n AWS Secrets Manager User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret.

\n

For more information about ARNs in Secrets Manager, see Policy Resources in the\n Amazon Web Services Secrets Manager User Guide.

" } }, "Name": { @@ -1906,7 +1921,7 @@ "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { - "smithy.api#documentation": "

The ARN or alias of the AWS KMS customer master key (CMK) used to encrypt the\n SecretString and SecretBinary fields in each version of the\n secret. If you don't provide a key, then Secrets Manager defaults to encrypting the secret fields with\n the default KMS CMK, the key named awssecretsmanager, for this account.

" + "smithy.api#documentation": "

The ARN or alias of the Amazon Web Services KMS customer master key (CMK) used to encrypt the\n SecretString and SecretBinary fields in each version of the\n secret. If you don't provide a key, then Secrets Manager defaults to encrypting the secret fields with\n the default KMS CMK, the key named awssecretsmanager, for this account.

" } }, "RotationEnabled": { @@ -1919,7 +1934,7 @@ "RotationLambdaARN": { "target": "com.amazonaws.secretsmanager#RotationLambdaARNType", "traits": { - "smithy.api#documentation": "

The ARN of an AWS Lambda function invoked by Secrets Manager to rotate and expire the\n secret either automatically per the schedule or manually by a call to RotateSecret.

" + "smithy.api#documentation": "

The ARN of an Amazon Web Services Lambda function invoked by Secrets Manager to rotate and expire the\n secret either automatically per the schedule or manually by a call to RotateSecret.

" } }, "RotationRules": { @@ -2068,6 +2083,12 @@ "traits": { "smithy.api#documentation": "

The date and time this version of the secret was created.

" } + }, + "KmsKeyIds": { + "target": "com.amazonaws.secretsmanager#KmsKeyIdListType", + "traits": { + "smithy.api#documentation": "

The KMS keys used to encrypt the secret version.

" + } } }, "traits": { @@ -2242,7 +2263,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches one or more tags, each consisting of a key name and a value, to the specified\n secret. Tags are part of the secret's overall metadata, and are not associated with any\n specific version of the secret. This operation only appends tags to the existing list of tags.\n To remove tags, you must use UntagResource.

\n

The following basic restrictions apply to tags:

\n \n \n

If you use tags as part of your security strategy, then adding or removing a tag can\n change permissions. If successfully completing this operation would result in you losing\n your permissions for this secret, then the operation is blocked and returns an Access Denied\n error.

\n
\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " + "smithy.api#documentation": "

Attaches one or more tags, each consisting of a key name and a value, to the specified\n secret. Tags are part of the secret's overall metadata, and are not associated with any\n specific version of the secret. This operation only appends tags to the existing list of tags.\n To remove tags, you must use UntagResource.

\n

The following basic restrictions apply to tags:

\n \n \n

If you use tags as part of your security strategy, then adding or removing a tag can\n change permissions. If successfully completing this operation would result in you losing\n your permissions for this secret, then the operation is blocked and returns an Access Denied\n error.

\n
\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " } }, "com.amazonaws.secretsmanager#TagResourceRequest": { @@ -2258,7 +2279,7 @@ "Tags": { "target": "com.amazonaws.secretsmanager#TagListType", "traits": { - "smithy.api#documentation": "

The tags to attach to the secret. Each element in the list consists of a Key\n and a Value.

\n

This parameter to the API requires a JSON text string argument. For information on how to\n format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide. For the\n AWS CLI, you can also use the syntax: --Tags Key=\"Key1\",Value=\"Value1\"\n Key=\"Key2\",Value=\"Value2\"[,…]\n

", + "smithy.api#documentation": "

The tags to attach to the secret. Each element in the list consists of a Key\n and a Value.

\n

This parameter to the API requires a JSON text string argument. For information on how to\n format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the CLI User Guide. For the\n CLI, you can also use the syntax: --Tags Key=\"Key1\",Value=\"Value1\"\n Key=\"Key2\",Value=\"Value2\"[,…]\n

", "smithy.api#required": {} } } @@ -2312,7 +2333,7 @@ "TagKeys": { "target": "com.amazonaws.secretsmanager#TagKeyListType", "traits": { - "smithy.api#documentation": "

A list of tag key names to remove from the secret. You don't specify the value. Both the\n key and its associated value are removed.

\n

This parameter to the API requires a JSON text string argument. For information on how to\n format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide.

", + "smithy.api#documentation": "

A list of tag key names to remove from the secret. You don't specify the value. Both the\n key and its associated value are removed.

\n

This parameter to the API requires a JSON text string argument. For information on how to\n format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the CLI User Guide.

", "smithy.api#required": {} } } @@ -2356,7 +2377,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies many of the details of the specified secret. If you include a\n ClientRequestToken and either\n SecretString or SecretBinary then it also creates a new version\n attached to the secret.

\n

To modify the rotation configuration of a secret, use RotateSecret\n instead.

\n \n

The Secrets Manager console uses only the SecretString parameter and therefore limits\n you to encrypting and storing only a text string. To encrypt and store binary data as part\n of the version of a secret, you must use either the AWS CLI or one of the AWS\n SDKs.

\n
\n \n \n \n \n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " + "smithy.api#documentation": "

Modifies many of the details of the specified secret. If you include a\n ClientRequestToken and either\n SecretString or SecretBinary then it also creates a new version\n attached to the secret.

\n

To modify the rotation configuration of a secret, use RotateSecret\n instead.

\n \n

The Secrets Manager console uses only the SecretString parameter and therefore limits\n you to encrypting and storing only a text string. To encrypt and store binary data as part\n of the version of a secret, you must use either the Amazon Web Services CLI or one of the Amazon Web Services\n SDKs.

\n
\n \n \n \n \n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " } }, "com.amazonaws.secretsmanager#UpdateSecretRequest": { @@ -2372,7 +2393,7 @@ "ClientRequestToken": { "target": "com.amazonaws.secretsmanager#ClientRequestTokenType", "traits": { - "smithy.api#documentation": "

(Optional) If you want to add a new version to the secret, this parameter specifies a\n unique identifier for the new version that helps ensure idempotency.

\n

If you use the AWS CLI or one of the AWS SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that\n in the request. If you don't use the SDK and instead generate a raw HTTP request to the Secrets Manager\n service endpoint, then you must generate a ClientRequestToken yourself for new\n versions and include that value in the request.

\n

You typically only need to interact with this value if you implement your own retry logic\n and want to ensure that a given secret is not created twice. We recommend that you generate a\n UUID-type\n value to ensure uniqueness within the specified secret.

\n

Secrets Manager uses this value to prevent the accidental creation of duplicate versions if\n there are failures and retries during the Lambda rotation function's processing.

\n \n

This value becomes the VersionId of the new version.

", + "smithy.api#documentation": "

(Optional) If you want to add a new version to the secret, this parameter specifies a\n unique identifier for the new version that helps ensure idempotency.

\n

If you use the Amazon Web Services CLI or one of the Amazon Web Services SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that\n in the request. If you don't use the SDK and instead generate a raw HTTP request to the Secrets Manager\n service endpoint, then you must generate a ClientRequestToken yourself for new\n versions and include that value in the request.

\n

You typically only need to interact with this value if you implement your own retry logic\n and want to ensure that a given secret is not created twice. We recommend that you generate a\n UUID-type\n value to ensure uniqueness within the specified secret.

\n

Secrets Manager uses this value to prevent the accidental creation of duplicate versions if\n there are failures and retries during the Lambda rotation function's processing.

\n \n

This value becomes the VersionId of the new version.

", "smithy.api#idempotencyToken": {} } }, @@ -2385,7 +2406,7 @@ "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies an updated ARN or alias of the AWS KMS customer master key (CMK) to be\n used to encrypt the protected text in new versions of this secret.

\n \n

You can only use the account's default CMK to encrypt and decrypt if you call this\n operation using credentials from the same account that owns the secret. If the secret is in\n a different account, then you must create a custom CMK and provide the ARN of that CMK in\n this field. The user making the call must have permissions to both the secret and the CMK in\n their respective accounts.

\n
" + "smithy.api#documentation": "

(Optional) Specifies an updated ARN or alias of the Amazon Web Services KMS customer master key (CMK) to be\n used to encrypt the protected text in new versions of this secret.

\n \n

You can only use the account's default CMK to encrypt and decrypt if you call this\n operation using credentials from the same account that owns the secret. If the secret is in\n a different account, then you must create a custom CMK and provide the ARN of that CMK in\n this field. The user making the call must have permissions to both the secret and the CMK in\n their respective accounts.

\n
" } }, "SecretBinary": { @@ -2397,7 +2418,7 @@ "SecretString": { "target": "com.amazonaws.secretsmanager#SecretStringType", "traits": { - "smithy.api#documentation": "

(Optional) Specifies updated text data that you want to encrypt and store in this new\n version of the secret. Either SecretBinary or SecretString must have\n a value, but not both. They cannot both be empty.

\n

If you create this secret by using the Secrets Manager console then Secrets Manager puts the\n protected secret text in only the SecretString parameter. The Secrets Manager console\n stores the information as a JSON structure of key/value pairs that the default Lambda rotation\n function knows how to parse.

\n

For storing multiple values, we recommend that you use a JSON text string argument and\n specify key/value pairs. For information on how to format a JSON parameter for the various\n command line tool environments, see Using JSON for\n Parameters in the AWS CLI User Guide. For example:

\n

\n [{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]\n

\n

If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text. You can\n also 'escape' the double quote character in the embedded JSON text by prefacing each with a\n backslash. For example, the following string is surrounded by double-quotes. All of the\n embedded double quotes are escaped:

\n

\n \"[{\\\"username\\\":\\\"bob\\\"},{\\\"password\\\":\\\"abc123xyz456\\\"}]\"\n

" + "smithy.api#documentation": "

(Optional) Specifies updated text data that you want to encrypt and store in this new\n version of the secret. Either SecretBinary or SecretString must have\n a value, but not both. They cannot both be empty.

\n

If you create this secret by using the Secrets Manager console then Secrets Manager puts the\n protected secret text in only the SecretString parameter. The Secrets Manager console\n stores the information as a JSON structure of key/value pairs that the default Lambda rotation\n function knows how to parse.

\n

For storing multiple values, we recommend that you use a JSON text string argument and\n specify key/value pairs. For information on how to format a JSON parameter for the various\n command line tool environments, see Using JSON for\n Parameters in the CLI User Guide. For example:

\n

\n [{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]\n

\n

If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text. You can\n also 'escape' the double quote character in the embedded JSON text by prefacing each with a\n backslash. For example, the following string is surrounded by double-quotes. All of the\n embedded double quotes are escaped:

\n

\n \"[{\\\"username\\\":\\\"bob\\\"},{\\\"password\\\":\\\"abc123xyz456\\\"}]\"\n

" } } } @@ -2451,7 +2472,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies the staging labels attached to a version of a secret. Staging labels are used to\n track a version as it progresses through the secret rotation process. You can attach a staging\n label to only one version of a secret at a time. If a staging label to be added is already\n attached to another version, then it is moved--removed from the other version first and\n then attached to this one. For more information about staging labels, see Staging\n Labels in the AWS Secrets Manager User Guide.

\n

The staging labels that you specify in the VersionStage parameter are added\n to the existing list of staging labels--they don't replace it.

\n

You can move the AWSCURRENT staging label to this version by including it in this\n call.

\n \n

Whenever you move AWSCURRENT, Secrets Manager automatically moves the label AWSPREVIOUS\n to the version that AWSCURRENT was removed from.

\n
\n

If this action results in the last label being removed from a version, then the version is\n considered to be 'deprecated' and can be deleted by Secrets Manager.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " + "smithy.api#documentation": "

Modifies the staging labels attached to a version of a secret. Staging labels are used to\n track a version as it progresses through the secret rotation process. You can attach a staging\n label to only one version of a secret at a time. If a staging label to be added is already\n attached to another version, then it is moved--removed from the other version first and\n then attached to this one. For more information about staging labels, see Staging\n Labels in the Amazon Web Services Secrets Manager User Guide.

\n

The staging labels that you specify in the VersionStage parameter are added\n to the existing list of staging labels--they don't replace it.

\n

You can move the AWSCURRENT staging label to this version by including it in this\n call.

\n \n

Whenever you move AWSCURRENT, Secrets Manager automatically moves the label AWSPREVIOUS\n to the version that AWSCURRENT was removed from.

\n
\n

If this action results in the last label being removed from a version, then the version is\n considered to be 'deprecated' and can be deleted by Secrets Manager.

\n

\n Minimum permissions\n

\n

To run this command, you must have the following permissions:

\n \n

\n Related operations\n

\n " } }, "com.amazonaws.secretsmanager#UpdateSecretVersionStageRequest": { @@ -2543,7 +2564,7 @@ "ResourcePolicy": { "target": "com.amazonaws.secretsmanager#NonEmptyResourcePolicyType", "traits": { - "smithy.api#documentation": "

A JSON-formatted string constructed according to the grammar and syntax for an AWS\n resource-based policy. The policy in the string identifies who can access or manage this\n secret and its versions. For information on how to format a JSON parameter for the various\n command line tool environments, see Using\n JSON for Parameters in the AWS CLI User Guide.publi

", + "smithy.api#documentation": "

A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services\n resource-based policy. The policy in the string identifies who can access or manage this\n secret and its versions. For information on how to format a JSON parameter for the various\n command line tool environments, see Using\n JSON for Parameters in the CLI User Guide.publi

", "smithy.api#required": {} } } @@ -2675,7 +2696,7 @@ "name": "secretsmanager" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "AWS Secrets Manager API Reference\n

AWS Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.

\n\n

This guide provides descriptions of the Secrets Manager API. For more information about using this\n service, see the AWS Secrets Manager User Guide.

\n\n

\n API Version\n

\n\n

This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.

\n \n

As an alternative to using the API, you can use one of the AWS SDKs, which consist of\n libraries and sample code for various programming languages and platforms such as Java,\n Ruby, .NET, iOS, and Android. The SDKs provide a convenient way to create programmatic\n access to AWS Secrets Manager. For example, the SDKs provide cryptographically signing requests,\n managing errors, and retrying requests automatically. For more information about the AWS\n SDKs, including downloading and installing them, see Tools for Amazon Web Services.

\n
\n

We recommend you use the AWS SDKs to make programmatic API calls to Secrets Manager. However, you\n also can use the Secrets Manager HTTP Query API to make direct calls to the Secrets Manager web service. To learn\n more about the Secrets Manager HTTP Query API, see Making Query Requests in the\n AWS Secrets Manager User Guide.

\n

Secrets Manager API supports GET and POST requests for all actions, and doesn't require you to use\n GET for some actions and POST for others. However, GET requests are subject to the limitation\n size of a URL. Therefore, for operations that require larger sizes, use a POST request.

\n\n \n\n \n \n \n\n

\n Support and Feedback for AWS Secrets Manager\n

\n\n

We welcome your feedback. Send your comments to awssecretsmanager-feedback@amazon.com, or post your feedback and questions in the AWS Secrets Manager Discussion Forum. For more\n information about the AWS Discussion Forums, see Forums\n Help.

\n\n

\n How examples are presented\n

\n\n

The JSON that AWS Secrets Manager expects as your request parameters and the service returns as a\n response to HTTP query requests contain single, long strings without line breaks or white\n space formatting. The JSON shown in the examples displays the code formatted with both line\n breaks and white space to improve readability. When example input parameters can also cause\n long strings extending beyond the screen, you can insert line breaks to enhance readability.\n You should always submit the input as a single JSON text string.

\n\n\n

\n Logging API Requests\n

\n

AWS Secrets Manager supports AWS CloudTrail, a service that records AWS API calls for your AWS\n account and delivers log files to an Amazon S3 bucket. By using information that's collected\n by AWS CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the\n request, when it was made, and so on. For more about AWS Secrets Manager and support for AWS\n CloudTrail, see Logging\n AWS Secrets Manager Events with AWS CloudTrail in the AWS Secrets Manager User Guide.\n To learn more about CloudTrail, including enabling it and find your log files, see the AWS CloudTrail User Guide.

", + "smithy.api#documentation": "Amazon Web Services Secrets Manager\n

Amazon Web Services Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.

\n \n

This guide provides descriptions of the Secrets Manager API. For more information about using this\n service, see the Amazon Web Services Secrets Manager User Guide.

\n \n

\n API Version\n

\n \n

This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.

\n \n

As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of\n libraries and sample code for various programming languages and platforms such as Java,\n Ruby, .NET, iOS, and Android. The SDKs provide a convenient way to create programmatic\n access to Amazon Web Services Secrets Manager. For example, the SDKs provide cryptographically signing requests,\n managing errors, and retrying requests automatically. For more information about the Amazon Web Services\n SDKs, including downloading and installing them, see Tools for Amazon Web Services.

\n
\n

We recommend you use the Amazon Web Services SDKs to make programmatic API calls to Secrets Manager. However, you\n also can use the Secrets Manager HTTP Query API to make direct calls to the Secrets Manager web service. To learn\n more about the Secrets Manager HTTP Query API, see Making Query Requests in the\n Amazon Web Services Secrets Manager User Guide.

\n

Secrets Manager API supports GET and POST requests for all actions, and doesn't require you to use\n GET for some actions and POST for others. However, GET requests are subject to the limitation\n size of a URL. Therefore, for operations that require larger sizes, use a POST request.

\n \n \n \n \n \n \n \n

\n Support and Feedback for Amazon Web Services Secrets Manager\n

\n \n

We welcome your feedback. Send your comments to awssecretsmanager-feedback@amazon.com, or post your feedback and questions in the Amazon Web Services Secrets Manager Discussion Forum. For more\n information about the Amazon Web Services Discussion Forums, see Forums\n Help.

\n \n

\n How examples are presented\n

\n \n

The JSON that Amazon Web Services Secrets Manager expects as your request parameters and the service returns as a\n response to HTTP query requests contain single, long strings without line breaks or white\n space formatting. The JSON shown in the examples displays the code formatted with both line\n breaks and white space to improve readability. When example input parameters can also cause\n long strings extending beyond the screen, you can insert line breaks to enhance readability.\n You should always submit the input as a single JSON text string.

\n \n \n

\n Logging API Requests\n

\n

Amazon Web Services Secrets Manager supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services\n account and delivers log files to an Amazon S3 bucket. By using information that's collected\n by Amazon Web Services CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the\n request, when it was made, and so on. For more about Amazon Web Services Secrets Manager and support for Amazon Web Services\n CloudTrail, see Logging\n Amazon Web Services Secrets Manager Events with Amazon Web Services CloudTrail in the Amazon Web Services Secrets Manager User Guide.\n To learn more about CloudTrail, including enabling it and find your log files, see the Amazon Web Services CloudTrail User Guide.

", "smithy.api#title": "AWS Secrets Manager" } } diff --git a/codegen/sdk-codegen/aws-models/securityhub.2018-10-26.json b/codegen/sdk-codegen/aws-models/securityhub.2018-10-26.json index 7f77eaa0cd9..211d48f9975 100644 --- a/codegen/sdk-codegen/aws-models/securityhub.2018-10-26.json +++ b/codegen/sdk-codegen/aws-models/securityhub.2018-10-26.json @@ -168,19 +168,19 @@ "AccountId": { "target": "com.amazonaws.securityhub#AccountId", "traits": { - "smithy.api#documentation": "

The ID of an AWS account.

", + "smithy.api#documentation": "

The ID of an Amazon Web Services account.

", "smithy.api#required": {} } }, "Email": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The email of an AWS account.

" + "smithy.api#documentation": "

The email of an Amazon Web Services account.

" } } }, "traits": { - "smithy.api#documentation": "

The details of an AWS account.

" + "smithy.api#documentation": "

The details of an Amazon Web Services account.

" } }, "com.amazonaws.securityhub#AccountDetailsList": { @@ -233,7 +233,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides details about one of the following actions that affects or that was taken on a resource:

\n " + "smithy.api#documentation": "

Provides details about one of the following actions that affects or that was taken on a resource:

\n " } }, "com.amazonaws.securityhub#ActionLocalIpDetails": { @@ -369,7 +369,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS account identifier of the Security Hub administrator account.

" + "smithy.api#documentation": "

The Amazon Web Services account identifier of the Security Hub administrator account.

" } }, "Status": { @@ -457,7 +457,7 @@ "ServiceName": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the AWS service that the API method belongs to.

" + "smithy.api#documentation": "

The name of the Amazon Web Services service that the API method belongs to.

" } }, "CallerType": { @@ -807,7 +807,7 @@ "TracingEnabled": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

Indicates whether active tracing with AWS X-Ray is enabled for the stage.

" + "smithy.api#documentation": "

Indicates whether active tracing with X-Ray is enabled for the stage.

" } }, "CreatedDate": { @@ -1111,7 +1111,7 @@ "InUseBy": { "target": "com.amazonaws.securityhub#StringList", "traits": { - "smithy.api#documentation": "

The list of ARNs for the AWS resources that use the certificate.

" + "smithy.api#documentation": "

The list of ARNs for the Amazon Web Services resources that use the certificate.

" } }, "IssuedAt": { @@ -1165,7 +1165,7 @@ "RenewalSummary": { "target": "com.amazonaws.securityhub#AwsCertificateManagerCertificateRenewalSummary", "traits": { - "smithy.api#documentation": "

Information about the status of the AWS Certificate Manager managed renewal for the\n certificate. Provided only when the certificate type is AMAZON_ISSUED.

" + "smithy.api#documentation": "

Information about the status of the Certificate Manager managed renewal for the\n certificate. Provided only when the certificate type is AMAZON_ISSUED.

" } }, "Serial": { @@ -1201,12 +1201,12 @@ "Type": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The source of the certificate. For certificates that AWS Certificate Manager provides,\n Type is AMAZON_ISSUED. For certificates that are imported with\n ImportCertificate, Type is IMPORTED.

\n

Valid values: IMPORTED | AMAZON_ISSUED |\n PRIVATE\n

" + "smithy.api#documentation": "

The source of the certificate. For certificates that Certificate Manager provides,\n Type is AMAZON_ISSUED. For certificates that are imported with\n ImportCertificate, Type is IMPORTED.

\n

Valid values: IMPORTED | AMAZON_ISSUED |\n PRIVATE\n

" } } }, "traits": { - "smithy.api#documentation": "

Provides details about an AWS Certificate Manager certificate.

" + "smithy.api#documentation": "

Provides details about an Certificate Manager certificate.

" } }, "com.amazonaws.securityhub#AwsCertificateManagerCertificateDomainValidationOption": { @@ -1227,13 +1227,13 @@ "ValidationDomain": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The domain name that AWS Certificate Manager uses to send domain validation\n emails.

" + "smithy.api#documentation": "

The domain name that Certificate Manager uses to send domain validation\n emails.

" } }, "ValidationEmails": { "target": "com.amazonaws.securityhub#StringList", "traits": { - "smithy.api#documentation": "

A list of email addresses that AWS Certificate Manager uses to send domain validation\n emails.

" + "smithy.api#documentation": "

A list of email addresses that Certificate Manager uses to send domain validation\n emails.

" } }, "ValidationMethod": { @@ -1250,7 +1250,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about one of the following:

\n " + "smithy.api#documentation": "

Contains information about one of the following:

\n " } }, "com.amazonaws.securityhub#AwsCertificateManagerCertificateDomainValidationOptions": { @@ -1325,13 +1325,13 @@ "DomainValidationOptions": { "target": "com.amazonaws.securityhub#AwsCertificateManagerCertificateDomainValidationOptions", "traits": { - "smithy.api#documentation": "

Information about the validation of each domain name in the certificate, as it pertains\n to AWS Certificate Manager managed renewal. Provided only when the certificate type is\n AMAZON_ISSUED.

" + "smithy.api#documentation": "

Information about the validation of each domain name in the certificate, as it pertains\n to Certificate Manager managed renewal. Provided only when the certificate type is\n AMAZON_ISSUED.

" } }, "RenewalStatus": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The status of the AWS Certificate Manager managed renewal of the certificate.

\n

Valid values: PENDING_AUTO_RENEWAL | PENDING_VALIDATION |\n SUCCESS | FAILED\n

" + "smithy.api#documentation": "

The status of the Certificate Manager managed renewal of the certificate.

\n

Valid values: PENDING_AUTO_RENEWAL | PENDING_VALIDATION |\n SUCCESS | FAILED\n

" } }, "RenewalStatusReason": { @@ -1348,7 +1348,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about the AWS Certificate Manager managed renewal for an\n AMAZON_ISSUED certificate.

" + "smithy.api#documentation": "

Contains information about the Certificate Manager managed renewal for an\n AMAZON_ISSUED certificate.

" } }, "com.amazonaws.securityhub#AwsCertificateManagerCertificateResourceRecord": { @@ -1491,7 +1491,7 @@ "WebAclId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution.

" + "smithy.api#documentation": "

A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution.

" } } }, @@ -1505,7 +1505,7 @@ "Bucket": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon S3 bucket to store the access logs in.

" + "smithy.api#documentation": "

The S3 bucket to store the access logs in.

" } }, "Enabled": { @@ -1611,7 +1611,7 @@ "DomainName": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin.

" + "smithy.api#documentation": "

Amazon S3 origins: The DNS name of the S3 bucket from which you want CloudFront to get objects for this origin.

" } }, "Id": { @@ -1634,7 +1634,7 @@ } }, "traits": { - "smithy.api#documentation": "

A complex type that describes the Amazon S3 bucket, HTTP server (for example, a web\n server), Amazon Elemental MediaStore, or other server from which CloudFront gets your\n files.

" + "smithy.api#documentation": "

A complex type that describes the S3 bucket, HTTP server (for example, a web\n server), AWS Elemental MediaStore, or other server from which CloudFront gets your\n files.

" } }, "com.amazonaws.securityhub#AwsCloudFrontDistributionOriginItemList": { @@ -1683,7 +1683,7 @@ "CloudWatchLogsRoleArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the role that the CloudWatch Logs endpoint assumes when it writes to the log\n group.

" + "smithy.api#documentation": "

The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log\n group.

" } }, "HasCustomEventSelectors": { @@ -1713,13 +1713,13 @@ "IsOrganizationTrail": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

Whether the trail is created for all accounts in an organization in AWS Organizations,\n or only for the current AWS account.

" + "smithy.api#documentation": "

Whether the trail is created for all accounts in an organization in Organizations,\n or only for the current Amazon Web Services account.

" } }, "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS KMS key ID to use to encrypt the logs.

" + "smithy.api#documentation": "

The KMS key ID to use to encrypt the logs.

" } }, "LogFileValidationEnabled": { @@ -1775,7 +1775,7 @@ "EncryptionKey": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) used to encrypt the\n build output artifacts.

\n

You can specify either the ARN of the CMK or, if available, the\n CMK alias (using the format alias/alias-name).

" + "smithy.api#documentation": "

The KMS customer master key (CMK) used to encrypt the\n build output artifacts.

\n

You can specify either the ARN of the CMK or, if available, the\n CMK alias (using the format alias/alias-name).

" } }, "Environment": { @@ -1799,18 +1799,18 @@ "ServiceRole": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the IAM role that enables AWS CodeBuild to interact with dependent AWS\n services on behalf of the AWS account.

" + "smithy.api#documentation": "

The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services\n services on behalf of the Amazon Web Services account.

" } }, "VpcConfig": { "target": "com.amazonaws.securityhub#AwsCodeBuildProjectVpcConfig", "traits": { - "smithy.api#documentation": "

Information about the VPC configuration that AWS CodeBuild accesses.

" + "smithy.api#documentation": "

Information about the VPC configuration that CodeBuild accesses.

" } } }, "traits": { - "smithy.api#documentation": "

Information about an AWS CodeBuild project.

" + "smithy.api#documentation": "

Information about an CodeBuild project.

" } }, "com.amazonaws.securityhub#AwsCodeBuildProjectEnvironment": { @@ -1825,7 +1825,7 @@ "ImagePullCredentialsType": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The type of credentials AWS CodeBuild uses to pull images in your build.

\n

Valid values:

\n \n

When you use a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When you use an AWS CodeBuild curated image, you\n must use CODEBUILD credentials.

" + "smithy.api#documentation": "

The type of credentials CodeBuild uses to pull images in your build.

\n

Valid values:

\n \n

When you use a cross-account or private registry image, you must use\n SERVICE_ROLE credentials. When you use an CodeBuild curated image, you\n must use CODEBUILD credentials.

" } }, "RegistryCredential": { @@ -1851,13 +1851,13 @@ "Credential": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN or name of credentials created using AWS Secrets\n Manager.

\n \n

The credential can use the name of the credentials only if they exist in your current\n AWS Region.

\n
" + "smithy.api#documentation": "

The ARN or name of credentials created using Secrets Manager.

\n \n

The credential can use the name of the credentials only if they exist in your current\n Amazon Web Services Region.

\n
" } }, "CredentialProvider": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The service that created the credentials to access a private Docker registry.

\n

The valid value, SECRETS_MANAGER, is for AWS Secrets Manager.

" + "smithy.api#documentation": "

The service that created the credentials to access a private Docker registry.

\n

The valid value, SECRETS_MANAGER, is for Secrets Manager.

" } } }, @@ -1871,13 +1871,13 @@ "Type": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The type of repository that contains the source code to be built. Valid values\n are:

\n " + "smithy.api#documentation": "

The type of repository that contains the source code to be built. Valid values\n are:

\n " } }, "Location": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Information about the location of the source code to be built.

\n

Valid values include:

\n " + "smithy.api#documentation": "

Information about the location of the source code to be built.

\n

Valid values include:

\n " } }, "GitCloneDepth": { @@ -1909,18 +1909,18 @@ "Subnets": { "target": "com.amazonaws.securityhub#NonEmptyStringList", "traits": { - "smithy.api#documentation": "

A list of one or more subnet IDs in your Amazon VPC.

" + "smithy.api#documentation": "

A list of one or more subnet IDs in your VPC.

" } }, "SecurityGroupIds": { "target": "com.amazonaws.securityhub#NonEmptyStringList", "traits": { - "smithy.api#documentation": "

A list of one or more security group IDs in your Amazon VPC.

" + "smithy.api#documentation": "

A list of one or more security group IDs in your VPC.

" } } }, "traits": { - "smithy.api#documentation": "

Information about the VPC configuration that AWS CodeBuild accesses.

" + "smithy.api#documentation": "

Information about the VPC configuration that CodeBuild accesses.

" } }, "com.amazonaws.securityhub#AwsCorsConfiguration": { @@ -2351,7 +2351,7 @@ "KmsMasterKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the AWS KMS customer master key (CMK) that will be used for AWS KMS\n encryption for the replica.

" + "smithy.api#documentation": "

The identifier of the KMS customer master key (CMK) that will be used for KMS\n encryption for the replica.

" } }, "ProvisionedThroughputOverride": { @@ -2471,7 +2471,7 @@ "KmsMasterKeyArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the AWS KMS customer master key (CMK) that is used for the AWS KMS\n encryption.

" + "smithy.api#documentation": "

The ARN of the KMS customer master key (CMK) that is used for the KMS\n encryption.

" } } }, @@ -2517,7 +2517,7 @@ "AllocationId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier that AWS assigns to represent the allocation of the Elastic IP address\n for use with Amazon VPC.

" + "smithy.api#documentation": "

The identifier that Amazon Web Services assigns to represent the allocation of the Elastic IP address\n for use with Amazon VPC.

" } }, "AssociationId": { @@ -2553,7 +2553,7 @@ "NetworkInterfaceOwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS account ID of the owner of the network interface.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the network interface.

" } }, "PrivateIpAddress": { @@ -2705,7 +2705,7 @@ "OwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the AWS account that owns the network ACL.

" + "smithy.api#documentation": "

The identifier of the Amazon Web Services account that owns the network ACL.

" } }, "VpcId": { @@ -2829,7 +2829,7 @@ "InstanceOwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS account ID of the owner of the instance.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the instance.

" } }, "Status": { @@ -2989,7 +2989,7 @@ "OwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS account ID of the owner of the security group.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the owner of the security group.

" } }, "VpcId": { @@ -3039,7 +3039,7 @@ "UserIdGroupPairs": { "target": "com.amazonaws.securityhub#AwsEc2SecurityGroupUserIdGroupPairList", "traits": { - "smithy.api#documentation": "

The security group and AWS account ID pairs.

" + "smithy.api#documentation": "

The security group and Amazon Web Services account ID pairs.

" } }, "IpRanges": { @@ -3057,7 +3057,7 @@ "PrefixListIds": { "target": "com.amazonaws.securityhub#AwsEc2SecurityGroupPrefixListIdList", "traits": { - "smithy.api#documentation": "

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS\n service to access through a VPC endpoint from instances associated with the security\n group.

" + "smithy.api#documentation": "

[VPC only] The prefix list IDs for an Amazon Web Services service. With outbound rules, this is the Amazon Web Services\n service to access through a VPC endpoint from instances associated with the security\n group.

" } } }, @@ -3155,7 +3155,7 @@ "UserId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ID of an AWS account.

\n

For a referenced security group in another VPC, the account ID of the referenced\n security group is returned in the response. If the referenced security group is deleted,\n this value is not returned.

\n

[EC2-Classic] Required when adding or removing rules that reference a security group in\n another VPC.

" + "smithy.api#documentation": "

The ID of an Amazon Web Services account.

\n

For a referenced security group in another VPC, the account ID of the referenced\n security group is returned in the response. If the referenced security group is deleted,\n this value is not returned.

\n

[EC2-Classic] Required when adding or removing rules that reference a security group in\n another VPC.

" } }, "VpcId": { @@ -3229,7 +3229,7 @@ "OwnerId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the AWS account that owns the subnet.

" + "smithy.api#documentation": "

The identifier of the Amazon Web Services account that owns the subnet.

" } }, "State": { @@ -3264,7 +3264,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about a subnet in EC2.

" + "smithy.api#documentation": "

Contains information about a subnet in Amazon EC2.

" } }, "com.amazonaws.securityhub#AwsEc2VolumeAttachment": { @@ -3296,7 +3296,7 @@ } }, "traits": { - "smithy.api#documentation": "

An attachment to an AWS EC2 volume.

" + "smithy.api#documentation": "

An attachment to an Amazon EC2 volume.

" } }, "com.amazonaws.securityhub#AwsEc2VolumeAttachmentList": { @@ -3341,7 +3341,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was\n used to protect the volume encryption key for the volume.

" + "smithy.api#documentation": "

The ARN of the KMS customer master key (CMK) that was\n used to protect the volume encryption key for the volume.

" } }, "Attachments": { @@ -3555,6 +3555,406 @@ "smithy.api#documentation": "

provides details about an ECS cluster.

" } }, + "com.amazonaws.securityhub#AwsEcsServiceCapacityProviderStrategyDetails": { + "type": "structure", + "members": { + "Base": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for Base.

\n

The value must be between 0 and 100000.

" + } + }, + "CapacityProvider": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The short name of the capacity provider.

" + } + }, + "Weight": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

The relative percentage of the total number of tasks that should use the capacity provider.

\n

If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.

\n

The value can be between 0 and 1000.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Strategy item for the capacity provider strategy that the service uses.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceCapacityProviderStrategyList": { + "type": "list", + "member": { + "target": "com.amazonaws.securityhub#AwsEcsServiceCapacityProviderStrategyDetails" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails": { + "type": "structure", + "members": { + "Enable": { + "target": "com.amazonaws.securityhub#Boolean", + "traits": { + "smithy.api#documentation": "

Whether to enable the deployment circuit breaker logic for the service.

" + } + }, + "Rollback": { + "target": "com.amazonaws.securityhub#Boolean", + "traits": { + "smithy.api#documentation": "

Whether to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Determines whether a service deployment fails if a service cannot reach a steady state.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceDeploymentConfigurationDetails": { + "type": "structure", + "members": { + "DeploymentCircuitBreaker": { + "target": "com.amazonaws.securityhub#AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails", + "traits": { + "smithy.api#documentation": "

Determines whether a service deployment fails if a service cannot reach a steady state.

" + } + }, + "MaximumPercent": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

For a service that uses the rolling update (ECS) deployment type, the maximum number of tasks in a service that are allowed in the RUNNING or PENDING state during a deployment, and for tasks that use the EC2 launch type, when any container instances are in the DRAINING state. Provided as a percentage of the desired number of tasks. The default value is 200%.

\n

For a service that uses the blue/green (CODE_DEPLOY) or EXTERNAL deployment types, and tasks that use the EC2 launch type, the maximum number of tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

\n

For the Fargate launch type, the maximum percent value is not used.

" + } + }, + "MinimumHealthyPercent": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

For a service that uses the rolling update (ECS) deployment type, the minimum number of tasks in a service that must remain in the RUNNING state during a deployment, and while any container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Expressed as a percentage of the desired number of tasks. The default value is 100%.

\n

For a service that uses the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and tasks that use the EC2 launch type, the minimum number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

\n

For the Fargate launch type, the minimum healthy percent value is not used.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Optional deployment parameters for the service.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceDeploymentControllerDetails": { + "type": "structure", + "members": { + "Type": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The rolling update (ECS) deployment type replaces the current running version of the container with the latest version.

\n

The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model that is powered by CodeDeploy. This deployment model a new deployment of a service can be verified before production traffic is sent to it.

\n

The external (EXTERNAL) deployment type allows the use of any third-party deployment controller for full control over the deployment process for an Amazon ECS service.

\n

Valid values: ECS | CODE_DEPLOY | EXTERNAL\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the deployment controller type that the service uses.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceDetails": { + "type": "structure", + "members": { + "CapacityProviderStrategy": { + "target": "com.amazonaws.securityhub#AwsEcsServiceCapacityProviderStrategyList", + "traits": { + "smithy.api#documentation": "

The capacity provider strategy that the service uses.

" + } + }, + "Cluster": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The ARN of the cluster that hosts the service.

" + } + }, + "DeploymentConfiguration": { + "target": "com.amazonaws.securityhub#AwsEcsServiceDeploymentConfigurationDetails", + "traits": { + "smithy.api#documentation": "

Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.

" + } + }, + "DeploymentController": { + "target": "com.amazonaws.securityhub#AwsEcsServiceDeploymentControllerDetails", + "traits": { + "smithy.api#documentation": "

Contains the deployment controller type that the service uses.

" + } + }, + "DesiredCount": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

The number of instantiations of the task definition to run on the service.

" + } + }, + "EnableEcsManagedTags": { + "target": "com.amazonaws.securityhub#Boolean", + "traits": { + "smithy.api#documentation": "

Whether to enable Amazon ECS managed tags for the tasks in the service.

" + } + }, + "EnableExecuteCommand": { + "target": "com.amazonaws.securityhub#Boolean", + "traits": { + "smithy.api#documentation": "

Whether the execute command functionality is enabled for the service.

" + } + }, + "HealthCheckGracePeriodSeconds": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.

" + } + }, + "LaunchType": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The launch type that the service uses.

\n

Valid values: EC2 | FARGATE | EXTERNAL\n

" + } + }, + "LoadBalancers": { + "target": "com.amazonaws.securityhub#AwsEcsServiceLoadBalancersList", + "traits": { + "smithy.api#documentation": "

Information about the load balancers that the service uses.

" + } + }, + "Name": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The name of the service.

" + } + }, + "NetworkConfiguration": { + "target": "com.amazonaws.securityhub#AwsEcsServiceNetworkConfigurationDetails", + "traits": { + "smithy.api#documentation": "

For tasks that use the awsvpc networking mode, the VPC subnet and security group configuration.

" + } + }, + "PlacementConstraints": { + "target": "com.amazonaws.securityhub#AwsEcsServicePlacementConstraintsList", + "traits": { + "smithy.api#documentation": "

The placement constraints for the tasks in the service.

" + } + }, + "PlacementStrategies": { + "target": "com.amazonaws.securityhub#AwsEcsServicePlacementStrategiesList", + "traits": { + "smithy.api#documentation": "

Information about how tasks for the service are placed.

" + } + }, + "PlatformVersion": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, the LATEST platform version is used by default.

" + } + }, + "PropagateTags": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.

\n

Valid values: TASK_DEFINITION | SERVICE\n

" + } + }, + "Role": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.

" + } + }, + "SchedulingStrategy": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The scheduling strategy to use for the service.

\n

The REPLICA scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.

\n

The DAEMON scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that do not meet the placement constraints.

\n

Valid values: REPLICA | DAEMON\n

" + } + }, + "ServiceArn": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The ARN of the service.

" + } + }, + "ServiceName": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The name of the service.

\n

The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.

" + } + }, + "ServiceRegistries": { + "target": "com.amazonaws.securityhub#AwsEcsServiceServiceRegistriesList", + "traits": { + "smithy.api#documentation": "

Information about the service discovery registries to assign to the service.

" + } + }, + "TaskDefinition": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The task definition to use for tasks in the service.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Provides details about a service within an ECS cluster.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceLoadBalancersDetails": { + "type": "structure", + "members": { + "ContainerName": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The name of the container to associate with the load balancer.

" + } + }, + "ContainerPort": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

The port on the container to associate with the load balancer. This port must correspond to a containerPort in the task definition the tasks in the service are using. For tasks that use the EC2 launch type, the container instance they are launched on must allow ingress traffic on the hostPort of the port mapping.

" + } + }, + "LoadBalancerName": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The name of the load balancer to associate with the Amazon ECS service or task set.

\n

Only specified when using a Classic Load Balancer. For an Application Load Balancer or a Network Load Balancer, the load balancer name is omitted.

" + } + }, + "TargetGroupArn": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The ARN of the Elastic Load Balancing target group or groups associated with a service or task set.

\n

Only specified when using an Application Load Balancer or a Network Load Balancer. For a Classic Load Balancer, the target group ARN is omitted.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about a load balancer that the service uses.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceLoadBalancersList": { + "type": "list", + "member": { + "target": "com.amazonaws.securityhub#AwsEcsServiceLoadBalancersDetails" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails": { + "type": "structure", + "members": { + "AssignPublicIp": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.

\n

Valid values: ENABLED | DISABLED\n

" + } + }, + "SecurityGroups": { + "target": "com.amazonaws.securityhub#NonEmptyStringList", + "traits": { + "smithy.api#documentation": "

The IDs of the security groups associated with the task or service.

\n

You can provide up to five security groups.

" + } + }, + "Subnets": { + "target": "com.amazonaws.securityhub#NonEmptyStringList", + "traits": { + "smithy.api#documentation": "

The IDs of the subnets associated with the task or service.

\n

You can provide up to 16 subnets.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

For tasks that use the awsvpc networking mode, the VPC subnet and security group configuration.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceNetworkConfigurationDetails": { + "type": "structure", + "members": { + "AwsVpcConfiguration": { + "target": "com.amazonaws.securityhub#AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails", + "traits": { + "smithy.api#documentation": "

The VPC subnet and security group configuration.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

For tasks that use the awsvpc networking mode, the VPC subnet and security group configuration.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServicePlacementConstraintsDetails": { + "type": "structure", + "members": { + "Expression": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance.

" + } + }, + "Type": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The type of constraint. Use distinctInstance to run each task in a particular group on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

\n

Valid values: distinctInstance | memberOf\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A placement constraint for the tasks in the service.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServicePlacementConstraintsList": { + "type": "list", + "member": { + "target": "com.amazonaws.securityhub#AwsEcsServicePlacementConstraintsDetails" + } + }, + "com.amazonaws.securityhub#AwsEcsServicePlacementStrategiesDetails": { + "type": "structure", + "members": { + "Field": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The field to apply the placement strategy against.

\n

For the spread placement strategy, valid values are instanceId (or host, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as attribute:ecs.availability-zone.

\n

For the binpack placement strategy, valid values are cpu and memory.

\n

For the random placement strategy, this attribute is not used.

" + } + }, + "Type": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The type of placement strategy.

\n

The random placement strategy randomly places tasks on available candidates.

\n

The spread placement strategy spreads placement across available candidates evenly based on the value of Field.

\n

The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified in Field.

\n

Valid values: random | spread | binpack\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A placement strategy that determines how to place the tasks for the service.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServicePlacementStrategiesList": { + "type": "list", + "member": { + "target": "com.amazonaws.securityhub#AwsEcsServicePlacementStrategiesDetails" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceServiceRegistriesDetails": { + "type": "structure", + "members": { + "ContainerName": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The container name value to use for the service discovery service.

\n

If the task definition uses the bridge or host network mode, you must specify ContainerName and ContainerPort.

\n

If the task definition uses the awsvpc network mode and a type SRV DNS record, you must specify either ContainerName and ContainerPort, or Port , but not both.

" + } + }, + "ContainerPort": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

The port value to use for the service discovery service.

\n

If the task definition uses the bridge or host network mode, you must specify ContainerName and ContainerPort.

\n

If the task definition uses the awsvpc network mode and a type SRV DNS record, you must specify either ContainerName and ContainerPort, or Port , but not both.

" + } + }, + "Port": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

The port value to use for a service discovery service that specifies an SRV record. This field can be used if both the awsvpcawsvpc network mode and SRV records are used.

" + } + }, + "RegistryArn": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The ARN of the service registry.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about a service discovery registry to assign to the service.

" + } + }, + "com.amazonaws.securityhub#AwsEcsServiceServiceRegistriesList": { + "type": "list", + "member": { + "target": "com.amazonaws.securityhub#AwsEcsServiceServiceRegistriesDetails" + } + }, "com.amazonaws.securityhub#AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails": { "type": "structure", "members": { @@ -4443,7 +4843,7 @@ "TaskRoleArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The short name or ARN of the IAM role that grants containers in the task permission to call AWS API operations on your behalf.

" + "smithy.api#documentation": "

The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.

" } }, "Volumes": { @@ -4909,7 +5309,7 @@ "AccessPolicies": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

IAM policy document specifying the access policies for the new Amazon ES domain.

" + "smithy.api#documentation": "

IAM policy document specifying the access policies for the new Elasticsearch domain.

" } }, "DomainEndpointOptions": { @@ -4921,25 +5321,25 @@ "DomainId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Unique identifier for an Amazon ES domain.

" + "smithy.api#documentation": "

Unique identifier for an Elasticsearch domain.

" } }, "DomainName": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Name of an Amazon ES domain.

\n

Domain names are unique across all domains owned by the same account within an AWS\n Region.

\n

Domain names must start with a lowercase letter and must be between 3 and 28\n characters.

\n

Valid characters are a-z (lowercase only), 0-9, and – (hyphen).

" + "smithy.api#documentation": "

Name of an Elasticsearch domain.

\n

Domain names are unique across all domains owned by the same account within an Amazon Web Services\n Region.

\n

Domain names must start with a lowercase letter and must be between 3 and 28\n characters.

\n

Valid characters are a-z (lowercase only), 0-9, and – (hyphen).

" } }, "Endpoint": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Domain-specific endpoint used to submit index, search, and data upload requests to an\n Amazon ES domain.

\n

The endpoint is a service URL.

" + "smithy.api#documentation": "

Domain-specific endpoint used to submit index, search, and data upload requests to an\n Elasticsearch domain.

\n

The endpoint is a service URL.

" } }, "Endpoints": { "target": "com.amazonaws.securityhub#FieldMap", "traits": { - "smithy.api#documentation": "

The key-value pair that exists if the Amazon ES domain uses VPC endpoints.

" + "smithy.api#documentation": "

The key-value pair that exists if the Elasticsearch domain uses VPC endpoints.

" } }, "ElasticsearchVersion": { @@ -4948,6 +5348,12 @@ "smithy.api#documentation": "

Elasticsearch version.

" } }, + "ElasticsearchClusterConfig": { + "target": "com.amazonaws.securityhub#AwsElasticsearchDomainElasticsearchClusterConfigDetails", + "traits": { + "smithy.api#documentation": "

Information about an Elasticsearch cluster configuration.

" + } + }, "EncryptionAtRestOptions": { "target": "com.amazonaws.securityhub#AwsElasticsearchDomainEncryptionAtRestOptions", "traits": { @@ -4975,12 +5381,12 @@ "VPCOptions": { "target": "com.amazonaws.securityhub#AwsElasticsearchDomainVPCOptions", "traits": { - "smithy.api#documentation": "

Information that Amazon ES derives based on VPCOptions for the\n domain.

" + "smithy.api#documentation": "

Information that Elasticsearch derives based on VPCOptions for the\n domain.

" } } }, "traits": { - "smithy.api#documentation": "

Information about an Elasticsearch domain.

" + "smithy.api#documentation": "

Information about an Amazon Elasticsearch Service domain.

" } }, "com.amazonaws.securityhub#AwsElasticsearchDomainDomainEndpointOptions": { @@ -5003,6 +5409,70 @@ "smithy.api#documentation": "

Additional options for the domain endpoint, such as whether to require HTTPS for all\n traffic.

" } }, + "com.amazonaws.securityhub#AwsElasticsearchDomainElasticsearchClusterConfigDetails": { + "type": "structure", + "members": { + "DedicatedMasterCount": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

The number of instances to use for the master node. If this attribute is specified, then DedicatedMasterEnabled must be true.

" + } + }, + "DedicatedMasterEnabled": { + "target": "com.amazonaws.securityhub#Boolean", + "traits": { + "smithy.api#documentation": "

Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs cluster management tasks, but doesn't hold data or respond to data upload requests.

" + } + }, + "DedicatedMasterType": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The hardware configuration of the computer that hosts the dedicated master node. For example, m3.medium.elasticsearch. If this attribute is specified, then DedicatedMasterEnabled must be true.

" + } + }, + "InstanceCount": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

The number of data nodes to use in the Elasticsearch domain.

" + } + }, + "InstanceType": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The instance type for your data nodes. For example, m3.medium.elasticsearch.

" + } + }, + "ZoneAwarenessConfig": { + "target": "com.amazonaws.securityhub#AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails", + "traits": { + "smithy.api#documentation": "

Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is true.

" + } + }, + "ZoneAwarenessEnabled": { + "target": "com.amazonaws.securityhub#Boolean", + "traits": { + "smithy.api#documentation": "

Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, Elasticsearch allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This prevents data loss and minimizes downtime if a node or data center fails.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

details about the configuration of an Elasticsearch cluster.

" + } + }, + "com.amazonaws.securityhub#AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails": { + "type": "structure", + "members": { + "AvailabilityZoneCount": { + "target": "com.amazonaws.securityhub#Integer", + "traits": { + "smithy.api#documentation": "

he number of Availability Zones that the domain uses. Valid values are 2 and 3. The default is 2.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration options for zone awareness.

" + } + }, "com.amazonaws.securityhub#AwsElasticsearchDomainEncryptionAtRestOptions": { "type": "structure", "members": { @@ -5037,6 +5507,9 @@ "traits": { "smithy.api#documentation": "

Configures the Elasticsearch search slow log\n publishing.

" } + }, + "AuditLogs": { + "target": "com.amazonaws.securityhub#AwsElasticsearchDomainLogPublishingOptionsLogConfig" } }, "traits": { @@ -5156,7 +5629,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information that Amazon ES derives based on VPCOptions for the\n domain.

" + "smithy.api#documentation": "

Information that Elasticsearch derives based on VPCOptions for the\n domain.

" } }, "com.amazonaws.securityhub#AwsElbAppCookieStickinessPolicies": { @@ -5740,7 +6213,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS account ID of the account for the key.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the account for the key.

" } }, "AccessKeyId": { @@ -5824,7 +6297,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the AWS account that created the session.

" + "smithy.api#documentation": "

The identifier of the Amazon Web Services account that created the session.

" } }, "UserName": { @@ -6346,7 +6819,7 @@ "AWSAccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The twelve-digit account ID of the AWS account that owns the CMK.

" + "smithy.api#documentation": "

The twelve-digit account ID of the Amazon Web Services account that owns the CMK.

" } }, "CreationDate": { @@ -6364,7 +6837,7 @@ "KeyManager": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The manager of the CMK. CMKs in your AWS account are either customer managed or AWS managed.

" + "smithy.api#documentation": "

The manager of the CMK. CMKs in your Amazon Web Services account are either customer managed or Amazon Web Services managed.

" } }, "KeyState": { @@ -6376,7 +6849,7 @@ "Origin": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The source of the CMK's key material.

\n

When this value is AWS_KMS, AWS KMS created the key material.

\n

When this value is EXTERNAL, the key material was imported from your\n existing key management infrastructure or the CMK lacks key material.

\n

When this value is AWS_CLOUDHSM, the key material was created in the AWS\n CloudHSM cluster associated with a custom key store.

" + "smithy.api#documentation": "

The source of the CMK's key material.

\n

When this value is AWS_KMS, KMS created the key material.

\n

When this value is EXTERNAL, the key material was imported from your\n existing key management infrastructure or the CMK lacks key material.

\n

When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster associated with a custom key store.

" } }, "Description": { @@ -6396,7 +6869,7 @@ "S3Bucket": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.

" + "smithy.api#documentation": "

An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account.

" } }, "S3Key": { @@ -6414,7 +6887,7 @@ "ZipFile": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for you.

" + "smithy.api#documentation": "

The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.

" } } }, @@ -6428,7 +6901,7 @@ "TargetArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of an Amazon SQS queue or Amazon SNS topic.

" + "smithy.api#documentation": "

The ARN of an SQS queue or SNS topic.

" } } }, @@ -6478,7 +6951,7 @@ "KmsKeyArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed CMK.

" + "smithy.api#documentation": "

The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed CMK.

" } }, "LastModified": { @@ -6532,7 +7005,7 @@ "TracingConfig": { "target": "com.amazonaws.securityhub#AwsLambdaFunctionTracingConfig", "traits": { - "smithy.api#documentation": "

The function's AWS X-Ray tracing configuration.

" + "smithy.api#documentation": "

The function's X-Ray tracing configuration.

" } }, "VpcConfig": { @@ -6609,7 +7082,7 @@ } }, "traits": { - "smithy.api#documentation": "

An AWS Lambda layer.

" + "smithy.api#documentation": "

An Lambda layer.

" } }, "com.amazonaws.securityhub#AwsLambdaFunctionLayerList": { @@ -6629,7 +7102,7 @@ } }, "traits": { - "smithy.api#documentation": "

The function's AWS X-Ray tracing configuration.

" + "smithy.api#documentation": "

The function's X-Ray tracing configuration.

" } }, "com.amazonaws.securityhub#AwsLambdaFunctionVpcConfig": { @@ -6833,13 +7306,13 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the AWS KMS master key that is used to encrypt the database instances in the\n DB cluster.

" + "smithy.api#documentation": "

The ARN of the KMS master key that is used to encrypt the database instances in the\n DB cluster.

" } }, "DbClusterResourceId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the DB cluster. The identifier must be unique within each AWS Region\n and is immutable.

" + "smithy.api#documentation": "

The identifier of the DB cluster. The identifier must be unique within each Amazon Web Services Region\n and is immutable.

" } }, "AssociatedRoles": { @@ -6893,7 +7366,7 @@ "CrossAccountClone": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

Whether the DB cluster is a clone of a DB cluster owned by a different AWS\n account.

" + "smithy.api#documentation": "

Whether the DB cluster is a clone of a DB cluster owned by a different Amazon Web Services\n account.

" } }, "DomainMemberships": { @@ -7097,7 +7570,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the AWS KMS master key that is used to encrypt the database instances in the\n DB cluster.

" + "smithy.api#documentation": "

The ARN of the KMS master key that is used to encrypt the database instances in the\n DB cluster.

" } }, "DbClusterIdentifier": { @@ -7173,18 +7646,18 @@ "FeatureName": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The name of the feature associated with the IAM)role.

" + "smithy.api#documentation": "

The name of the feature associated with the IAM role.

" } }, "Status": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Describes the state of the association between the IAM role and the DB instance. The\n Status property returns one of the following values:

\n " + "smithy.api#documentation": "

Describes the state of the association between the IAM role and the DB instance. The\n Status property returns one of the following values:

\n " } } }, "traits": { - "smithy.api#documentation": "

An AWS Identity and Access Management (IAM) role associated with the DB instance.

" + "smithy.api#documentation": "

An IAM role associated with the DB instance.

" } }, "com.amazonaws.securityhub#AwsRdsDbInstanceAssociatedRoles": { @@ -7199,7 +7672,7 @@ "AssociatedRoles": { "target": "com.amazonaws.securityhub#AwsRdsDbInstanceAssociatedRoles", "traits": { - "smithy.api#documentation": "

The AWS Identity and Access Management (IAM) roles associated with the DB\n instance.

" + "smithy.api#documentation": "

The IAM roles associated with the DB\n instance.

" } }, "CACertificateIdentifier": { @@ -7235,7 +7708,7 @@ "DbiResourceId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Region-unique, immutable identifier for the DB instance. This identifier is\n found in AWS CloudTrail log entries whenever the AWS KMS key for the DB instance is\n accessed.

" + "smithy.api#documentation": "

The Amazon Web Services Region-unique, immutable identifier for the DB instance. This identifier is\n found in CloudTrail log entries whenever the KMS key for the DB instance is\n accessed.

" } }, "DBName": { @@ -7271,7 +7744,7 @@ "IAMDatabaseAuthenticationEnabled": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

True if mapping of AWS Identity and Access Management (IAM) accounts to database\n accounts is enabled, and otherwise false.

\n

IAM database authentication can be enabled for the following database engines.

\n " + "smithy.api#documentation": "

True if mapping of IAM accounts to database\n accounts is enabled, and otherwise false.

\n

IAM database authentication can be enabled for the following database engines.

\n " } }, "InstanceCreateTime": { @@ -7283,7 +7756,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

If StorageEncrypted is true, the AWS KMS key identifier for the encrypted\n DB instance.

" + "smithy.api#documentation": "

If StorageEncrypted is true, the KMS key identifier for the encrypted\n DB instance.

" } }, "PubliclyAccessible": { @@ -7505,7 +7978,7 @@ "PerformanceInsightsKmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the AWS KMS key used to encrypt the Performance Insights data.

" + "smithy.api#documentation": "

The identifier of the KMS key used to encrypt the Performance Insights data.

" } }, "PerformanceInsightsRetentionPeriod": { @@ -7517,7 +7990,7 @@ "EnabledCloudWatchLogsExports": { "target": "com.amazonaws.securityhub#StringList", "traits": { - "smithy.api#documentation": "

A list of log types that this DB instance is configured to export to CloudWatch\n Logs.

" + "smithy.api#documentation": "

A list of log types that this DB instance is configured to export to CloudWatch Logs.

" } }, "ProcessorFeatures": { @@ -7876,7 +8349,7 @@ "SourceRegion": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS Region that the DB snapshot was created in or copied from.

" + "smithy.api#documentation": "

The Amazon Web Services Region that the DB snapshot was created in or copied from.

" } }, "SourceDbSnapshotIdentifier": { @@ -7906,7 +8379,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.

" + "smithy.api#documentation": "

If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.

" } }, "Timezone": { @@ -8066,6 +8539,74 @@ "target": "com.amazonaws.securityhub#AwsRdsDbSubnetGroupSubnet" } }, + "com.amazonaws.securityhub#AwsRdsEventSubscriptionDetails": { + "type": "structure", + "members": { + "CustSubscriptionId": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The identifier of the account that is associated with the event notification subscription.

" + } + }, + "CustomerAwsId": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The identifier of the event notification subscription.

" + } + }, + "Enabled": { + "target": "com.amazonaws.securityhub#Boolean", + "traits": { + "smithy.api#documentation": "

Whether the event notification subscription is enabled.

" + } + }, + "EventCategoriesList": { + "target": "com.amazonaws.securityhub#NonEmptyStringList", + "traits": { + "smithy.api#documentation": "

The list of event categories for the event notification subscription.

" + } + }, + "EventSubscriptionArn": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The ARN of the event notification subscription.

" + } + }, + "SnsTopicArn": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The ARN of the SNS topic to post the event notifications to.

" + } + }, + "SourceIdsList": { + "target": "com.amazonaws.securityhub#NonEmptyStringList", + "traits": { + "smithy.api#documentation": "

A list of source identifiers for the event notification subscription.

" + } + }, + "SourceType": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The source type for the event notification subscription.

" + } + }, + "Status": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The status of the event notification subscription.

\n

Valid values: creating | modifying | deleting | active | no-permission | topic-not-exist\n

" + } + }, + "SubscriptionCreationTime": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The datetime when the event notification subscription was created.

\n

Uses the date-time format specified in RFC 3339 section 5.6, Internet\n Date/Time Format. The value cannot contain spaces. For example,\n 2020-03-22T13:22:13.933Z.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Details about an Amazon RDS event notification subscription. The subscription allows Amazon RDS to post events to an SNS topic.

" + } + }, "com.amazonaws.securityhub#AwsRdsPendingCloudWatchLogsExports": { "type": "structure", "members": { @@ -8428,13 +8969,13 @@ "IamRoles": { "target": "com.amazonaws.securityhub#AwsRedshiftClusterIamRoles", "traits": { - "smithy.api#documentation": "

A list of IAM roles that the cluster can use to access other AWS services.

" + "smithy.api#documentation": "

A list of IAM roles that the cluster can use to access other Amazon Web Services services.

" } }, "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the AWS KMS encryption key that is used to encrypt data in the\n cluster.

" + "smithy.api#documentation": "

The identifier of the KMS encryption key that is used to encrypt data in the\n cluster.

" } }, "MaintenanceTrackName": { @@ -8621,7 +9162,7 @@ } }, "traits": { - "smithy.api#documentation": "

An IAM role that the cluster can use to access other AWS services.

" + "smithy.api#documentation": "

An IAM role that the cluster can use to access other Amazon Web Services services.

" } }, "com.amazonaws.securityhub#AwsRedshiftClusterIamRoles": { @@ -8818,7 +9359,7 @@ "RestrictPublicBuckets": { "target": "com.amazonaws.securityhub#Boolean", "traits": { - "smithy.api#documentation": "

Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only AWS service principals and authorized users within the S3 bucket owner's account.

" + "smithy.api#documentation": "

Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web Services service principals and authorized users within the S3 bucket owner's account.

" } } }, @@ -9166,7 +9707,7 @@ "KMSMasterKeyID": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

AWS KMS customer master key (CMK) ID to use for the default encryption.

" + "smithy.api#documentation": "

KMS customer master key (CMK) ID to use for the default encryption.

" } } }, @@ -9244,7 +9785,7 @@ "SSEKMSKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the AWS Key Management Service (AWS KMS) symmetric customer managed\n customer master key (CMK) that was used for the object.

" + "smithy.api#documentation": "

The identifier of the KMS symmetric customer managed\n customer master key (CMK) that was used for the object.

" } } }, @@ -9270,7 +9811,7 @@ "KmsKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN, Key ID, or alias of the AWS KMS customer master key (CMK) used to encrypt the\n SecretString or SecretBinary values for versions of this\n secret.

" + "smithy.api#documentation": "

The ARN, Key ID, or alias of the KMS customer master key (CMK) used to encrypt the\n SecretString or SecretBinary values for versions of this\n secret.

" } }, "RotationEnabled": { @@ -9305,7 +9846,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details about an AWS Secrets Manager secret.

" + "smithy.api#documentation": "

Details about an Secrets Manager secret.

" } }, "com.amazonaws.securityhub#AwsSecretsManagerSecretRotationRules": { @@ -9346,6 +9887,24 @@ "smithy.api#required": {} } }, + "ProductName": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The name of the product that generated the finding.

\n

Security Hub populates this attribute automatically for each finding. You cannot update it using BatchImportFindings or BatchUpdateFindings. The exception to this is when you use a custom integration.

\n

When you use the Security Hub console to filter findings by product name, you use this attribute.

\n

When you use the Security Hub API to filter findings by product name, you use the aws/securityhub/ProductyName attribute under ProductFields.

\n

Security Hub does not synchronize those two attributes.

" + } + }, + "CompanyName": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The name of the company for the product that generated the finding.

\n

Security Hub populates this attribute automatically for each finding. You cannot be updated using BatchImportFindings or BatchUpdateFindings. The exception to this is when you use a custom integration.

\n

When you use the Security Hub console to filter findings by company name, you use this attribute.

\n

When you use the Security Hub API to filter findings by company name, you use the aws/securityhub/CompanyName attribute under ProductFields.

\n

Security Hub does not synchronize those two attributes.

" + } + }, + "Region": { + "target": "com.amazonaws.securityhub#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The Region from which the finding was generated.

\n

Security Hub populates this attribute automatically for each finding. You cannot update it using BatchImportFindings or BatchUpdateFindings.

" + } + }, "GeneratorId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { @@ -9356,7 +9915,7 @@ "AwsAccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS account ID that a finding is generated in.

", + "smithy.api#documentation": "

The Amazon Web Services account ID that a finding is generated in.

", "smithy.api#required": {} } }, @@ -9439,7 +9998,7 @@ "ProductFields": { "target": "com.amazonaws.securityhub#FieldMap", "traits": { - "smithy.api#documentation": "

A data type where security-findings providers can include additional solution-specific\n details that aren't part of the defined AwsSecurityFinding format.

" + "smithy.api#documentation": "

A data type where security-findings providers can include additional solution-specific\n details that aren't part of the defined AwsSecurityFinding format.

\n

Can contain up to 50 key-value pairs. For each key-value pair, the key can contain up to 128 characters, and the value can contain up to 2048 characters.

" } }, "UserDefinedFields": { @@ -9488,7 +10047,7 @@ "Compliance": { "target": "com.amazonaws.securityhub#Compliance", "traits": { - "smithy.api#documentation": "

This data type is exclusive to findings that are generated as the result of a check run\n against a specific rule in a supported security standard, such as CIS AWS Foundations.\n Contains security standard-related finding details.

" + "smithy.api#documentation": "

This data type is exclusive to findings that are generated as the result of a check run\n against a specific rule in a supported security standard, such as CIS Amazon Web Services Foundations.\n Contains security standard-related finding details.

" } }, "VerificationState": { @@ -9553,7 +10112,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides consistent format for the contents of the Security Hub-aggregated findings.\n AwsSecurityFinding format enables you to share findings between AWS\n security services and third-party solutions, and security standards checks.

\n \n

A finding is a potential security issue generated either by AWS services (Amazon\n GuardDuty, Amazon Inspector, and Amazon Macie) or by the integrated third-party\n solutions and standards checks.

\n
" + "smithy.api#documentation": "

Provides consistent format for the contents of the Security Hub-aggregated findings.\n AwsSecurityFinding format enables you to share findings between Amazon Web Services\n security services and third-party solutions, and security standards checks.

\n \n

A finding is a potential security issue generated either by Amazon Web Services services or by the integrated third-party\n solutions and standards checks.

\n
" } }, "com.amazonaws.securityhub#AwsSecurityFindingFilters": { @@ -9568,7 +10127,7 @@ "AwsAccountId": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The AWS account ID that a finding is generated in.

" + "smithy.api#documentation": "

The Amazon Web Services account ID that a finding is generated in.

" } }, "Id": { @@ -9583,6 +10142,12 @@ "smithy.api#documentation": "

The identifier for the solution-specific component (a discrete unit of logic) that\n generated a finding. In various security-findings providers' solutions, this generator can\n be called a rule, a check, a detector, a plugin, etc.

" } }, + "Region": { + "target": "com.amazonaws.securityhub#StringFilterList", + "traits": { + "smithy.api#documentation": "

The Region from which the finding was generated.

" + } + }, "Type": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { @@ -9617,7 +10182,7 @@ "target": "com.amazonaws.securityhub#NumberFilterList", "traits": { "smithy.api#deprecated": { - "message": "This filter is deprecated, use FindingProviiltersSeverityOriginal instead." + "message": "This filter is deprecated. Instead, use FindingProviderSeverityOriginal." }, "smithy.api#documentation": "

The native severity as defined by the security-findings provider's solution that\n generated the finding.

" } @@ -9626,7 +10191,7 @@ "target": "com.amazonaws.securityhub#NumberFilterList", "traits": { "smithy.api#deprecated": { - "message": "This filter is deprecated, use SeverityLabel or FindingProviderFieldsSeverityLabel instead." + "message": "This filter is deprecated. Instead, use SeverityLabel or FindingProviderFieldsSeverityLabel." }, "smithy.api#documentation": "

The normalized severity of a finding.

" } @@ -9682,13 +10247,13 @@ "ProductName": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The name of the solution (product) that generates findings.

" + "smithy.api#documentation": "

The name of the solution (product) that generates findings.

\n

Note that this is a filter against the aws/securityhub/ProductName field in ProductFields. It is not a filter for the top-level ProductName field.

" } }, "CompanyName": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The name of the findings provider (company) that owns the solution (product) that\n generates findings.

" + "smithy.api#documentation": "

The name of the findings provider (company) that owns the solution (product) that\n generates findings.

\n

Note that this is a filter against the aws/securityhub/CompanyName field in ProductFields. It is not a filter for the top-level CompanyName field.

" } }, "UserDefinedFields": { @@ -9874,19 +10439,19 @@ "ResourcePartition": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The canonical AWS partition name that the Region is assigned to.

" + "smithy.api#documentation": "

The canonical Amazon Web Services partition name that the Region is assigned to.

" } }, "ResourceRegion": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

The canonical AWS external Region name where this resource is located.

" + "smithy.api#documentation": "

The canonical Amazon Web Services external Region name where this resource is located.

" } }, "ResourceTags": { "target": "com.amazonaws.securityhub#MapFilterList", "traits": { - "smithy.api#documentation": "

A list of AWS tags associated with a resource at the time the finding was\n processed.

" + "smithy.api#documentation": "

A list of Amazon Web Services tags associated with a resource at the time the finding was\n processed.

" } }, "ResourceAwsEc2InstanceType": { @@ -9958,9 +10523,18 @@ "ResourceAwsIamAccessKeyUserName": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { + "smithy.api#deprecated": { + "message": "This filter is deprecated. Instead, use ResourceAwsIamAccessKeyPrincipalName." + }, "smithy.api#documentation": "

The user associated with the IAM access key related to a finding.

" } }, + "ResourceAwsIamAccessKeyPrincipalName": { + "target": "com.amazonaws.securityhub#StringFilterList", + "traits": { + "smithy.api#documentation": "

The name of the principal that is associated with an IAM access key.

" + } + }, "ResourceAwsIamAccessKeyStatus": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { @@ -9973,6 +10547,12 @@ "smithy.api#documentation": "

The creation date/time of the IAM access key related to a finding.

" } }, + "ResourceAwsIamUserUserName": { + "target": "com.amazonaws.securityhub#StringFilterList", + "traits": { + "smithy.api#documentation": "

The name of an IAM user.

" + } + }, "ResourceContainerName": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { @@ -10006,7 +10586,7 @@ "ComplianceStatus": { "target": "com.amazonaws.securityhub#StringFilterList", "traits": { - "smithy.api#documentation": "

Exclusive to findings that are generated as the result of a check run against a specific\n rule in a supported standard, such as CIS AWS Foundations. Contains security\n standard-related finding details.

" + "smithy.api#documentation": "

Exclusive to findings that are generated as the result of a check run against a specific\n rule in a supported standard, such as CIS Amazon Web Services Foundations. Contains security\n standard-related finding details.

" } }, "VerificationState": { @@ -10159,13 +10739,13 @@ "KmsMasterKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom\n CMK.

" + "smithy.api#documentation": "

The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SNS or a custom\n CMK.

" } }, "Subscription": { "target": "com.amazonaws.securityhub#AwsSnsTopicSubscriptionList", "traits": { - "smithy.api#documentation": "

Subscription is an embedded property that describes the subscription endpoints of an Amazon SNS topic.

" + "smithy.api#documentation": "

Subscription is an embedded property that describes the subscription endpoints of an SNS topic.

" } }, "TopicName": { @@ -10217,13 +10797,13 @@ "KmsDataKeyReusePeriodSeconds": { "target": "com.amazonaws.securityhub#Integer", "traits": { - "smithy.api#documentation": "

The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again.

" + "smithy.api#documentation": "

The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling KMS again.

" } }, "KmsMasterKeyId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ID of an AWS managed customer master key (CMK) for Amazon SQS or a custom\n CMK.

" + "smithy.api#documentation": "

The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SQS or a custom\n CMK.

" } }, "QueueName": { @@ -10416,7 +10996,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details about a WAF WebACL.

" + "smithy.api#documentation": "

Details about an WAF WebACL.

" } }, "com.amazonaws.securityhub#AwsWafWebAclRule": { @@ -10425,7 +11005,7 @@ "Action": { "target": "com.amazonaws.securityhub#WafAction", "traits": { - "smithy.api#documentation": "

Specifies the action that CloudFront or AWS WAF takes when a web request matches the\n conditions in the rule.

" + "smithy.api#documentation": "

Specifies the action that CloudFront or WAF takes when a web request matches the\n conditions in the rule.

" } }, "ExcludedRules": { @@ -10460,7 +11040,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details for a rule in a WAF WebACL.

" + "smithy.api#documentation": "

Details for a rule in an WAF WebACL.

" } }, "com.amazonaws.securityhub#AwsWafWebAclRuleList": { @@ -10492,7 +11072,7 @@ } ], "traits": { - "smithy.api#documentation": "

Disables the standards specified by the provided\n StandardsSubscriptionArns.

\n

For more information, see Security Standards section of the AWS Security Hub User\n Guide.

", + "smithy.api#documentation": "

Disables the standards specified by the provided\n StandardsSubscriptionArns.

\n

For more information, see Security Standards section of the Security Hub User\n Guide.

", "smithy.api#http": { "method": "POST", "uri": "/standards/deregister", @@ -10546,7 +11126,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables the standards specified by the provided StandardsArn. To obtain the\n ARN for a standard, use the \n DescribeStandards\n \n operation.

\n

For more information, see the Security Standards\n section of the AWS Security Hub User Guide.

", + "smithy.api#documentation": "

Enables the standards specified by the provided StandardsArn. To obtain the\n ARN for a standard, use the DescribeStandards\n operation.

\n

For more information, see the Security Standards\n section of the Security Hub User Guide.

", "smithy.api#http": { "method": "POST", "uri": "/standards/register", @@ -10614,7 +11194,7 @@ "Findings": { "target": "com.amazonaws.securityhub#BatchImportFindingsRequestFindingList", "traits": { - "smithy.api#documentation": "

A list of findings to import. To successfully import a finding, it must follow the\n AWS Security Finding Format. Maximum of 100 findings per request.

", + "smithy.api#documentation": "

A list of findings to import. To successfully import a finding, it must follow the\n Amazon Web Services Security Finding Format. Maximum of 100 findings per request.

", "smithy.api#required": {} } } @@ -10680,7 +11260,7 @@ } ], "traits": { - "smithy.api#documentation": "

Used by Security Hub customers to update information about their investigation into a finding.\n Requested by administrator accounts or member accounts. Administrator accounts can update findings for\n their account and their member accounts. Member accounts can update findings for their\n account.

\n

Updates from BatchUpdateFindings do not affect the value of\n UpdatedAt for a finding.

\n

Administrator and member accounts can use BatchUpdateFindings to update the\n following finding fields and objects.

\n \n

You can configure IAM policies to restrict access to fields and field values. For\n example, you might not want member accounts to be able to suppress findings or change the\n finding severity. See Configuring access to BatchUpdateFindings in the\n AWS Security Hub User Guide.

", + "smithy.api#documentation": "

Used by Security Hub customers to update information about their investigation into a finding.\n Requested by administrator accounts or member accounts. Administrator accounts can update findings for\n their account and their member accounts. Member accounts can update findings for their\n account.

\n

Updates from BatchUpdateFindings do not affect the value of\n UpdatedAt for a finding.

\n

Administrator and member accounts can use BatchUpdateFindings to update the\n following finding fields and objects.

\n \n

You can configure IAM policies to restrict access to fields and field values. For\n example, you might not want member accounts to be able to suppress findings or change the\n finding severity. See Configuring access to BatchUpdateFindings in the\n Security Hub User Guide.

", "smithy.api#http": { "method": "PATCH", "uri": "/findings/batchupdate", @@ -10968,7 +11548,7 @@ "Status": { "target": "com.amazonaws.securityhub#ComplianceStatus", "traits": { - "smithy.api#documentation": "

The result of a standards check.

\n

The valid values for Status are as follows.

\n " + "smithy.api#documentation": "

The result of a standards check.

\n

The valid values for Status are as follows.

\n " } }, "RelatedRequirements": { @@ -10980,7 +11560,7 @@ "StatusReasons": { "target": "com.amazonaws.securityhub#StatusReasonsList", "traits": { - "smithy.api#documentation": "

For findings generated from controls, a list of reasons behind the value of\n Status. For the list of status reason codes and their meanings, see Standards-related information in the ASFF in the\n AWS Security Hub User Guide.

" + "smithy.api#documentation": "

For findings generated from controls, a list of reasons behind the value of\n Status. For the list of status reason codes and their meanings, see Standards-related information in the ASFF in the\n Security Hub User Guide.

" } } }, @@ -11248,7 +11828,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a member association in Security Hub between the specified accounts and the account\n used to make the request, which is the administrator account. If you are integrated with\n Organizations, then the administrator account is designated by the organization management account.

\n

\n CreateMembers is always used to add accounts that are not organization\n members.

\n

For accounts that are part of an organization, CreateMembers is only used\n in the following cases:

\n \n

This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you\n can use the \n EnableSecurityHub\n operation.

\n

For accounts that are not organization members, you create the account association and\n then send an invitation to the member account. To send the invitation, you use the\n \n InviteMembers\n operation. If the account owner accepts\n the invitation, the account becomes a member account in Security Hub.

\n

Accounts that are part of an organization do not receive an invitation. They\n automatically become a member account in Security Hub.

\n

A permissions policy is added that permits the administrator account to view the findings\n generated in the member account. When Security Hub is enabled in a member account, the member account findings are\n also visible to the administrator account.

\n

To remove the association between the administrator and member accounts, use the \n DisassociateFromMasterAccount\n or \n DisassociateMembers\n operation.

", + "smithy.api#documentation": "

Creates a member association in Security Hub between the specified accounts and the account\n used to make the request, which is the administrator account. If you are integrated with\n Organizations, then the administrator account is designated by the organization management account.

\n

\n CreateMembers is always used to add accounts that are not organization\n members.

\n

For accounts that are managed using Organizations, CreateMembers is only used\n in the following cases:

\n \n

This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you\n can use the EnableSecurityHub operation.

\n

For accounts that are not organization members, you create the account association and\n then send an invitation to the member account. To send the invitation, you use the\n InviteMembers operation. If the account owner accepts\n the invitation, the account becomes a member account in Security Hub.

\n

Accounts that are managed using Organizations do not receive an invitation. They\n automatically become a member account in Security Hub, and Security Hub is automatically enabled for those accounts. Note that Security Hub cannot be enabled automatically for the organization management account. The organization management account must enable Security Hub before the administrator account enables it as a member account.

\n

A permissions policy is added that permits the administrator account to view the findings\n generated in the member account. When Security Hub is enabled in a member account, the member account findings are\n also visible to the administrator account.

\n

To remove the association between the administrator and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.

", "smithy.api#http": { "method": "POST", "uri": "/members", @@ -11274,7 +11854,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of AWS accounts that were not processed. For each account, the list includes\n the account ID and the email address.

" + "smithy.api#documentation": "

The list of Amazon Web Services accounts that were not processed. For each account, the list includes\n the account ID and the email address.

" } } } @@ -11510,7 +12090,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of AWS accounts that were not processed. For each account, the list includes\n the account ID and the email address.

" + "smithy.api#documentation": "

The list of Amazon Web Services accounts that were not processed. For each account, the list includes\n the account ID and the email address.

" } } } @@ -11656,7 +12236,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes invitations received by the AWS account to become a member account.

\n

This operation is only used by accounts that are not part of an organization.\n Organization accounts do not receive invitations.

", + "smithy.api#documentation": "

Deletes invitations received by the Amazon Web Services account to become a member account.

\n

This operation is only used by accounts that are not part of an organization.\n Organization accounts do not receive invitations.

", "smithy.api#http": { "method": "POST", "uri": "/invitations/delete", @@ -11682,7 +12262,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of AWS accounts for which the invitations were not deleted. For each account,\n the list includes the account ID and the email address.

" + "smithy.api#documentation": "

The list of Amazon Web Services accounts for which the invitations were not deleted. For each account,\n the list includes the account ID and the email address.

" } } } @@ -11739,7 +12319,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of AWS accounts that were not deleted. For each account, the list includes the\n account ID and the email address.

" + "smithy.api#documentation": "

The list of Amazon Web Services accounts that were not deleted. For each account, the list includes the\n account ID and the email address.

" } } } @@ -11847,7 +12427,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns details about the Hub resource in your account, including the\n HubArn and the time when you enabled Security Hub.

", + "smithy.api#documentation": "

Returns details about the Hub resource in your account, including the\n HubArn and the time when you enabled Security Hub.

", "smithy.api#http": { "method": "GET", "uri": "/accounts", @@ -12097,7 +12677,7 @@ "StandardsSubscriptionArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of a resource that represents your subscription to a supported standard. To get\n the subscription ARNs of the standards you have enabled, use the \n GetEnabledStandards\n operation.

", + "smithy.api#documentation": "

The ARN of a resource that represents your subscription to a supported standard. To get\n the subscription ARNs of the standards you have enabled, use the GetEnabledStandards operation.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -12259,7 +12839,7 @@ "AdminAccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS account identifier of the Security Hub administrator account.

", + "smithy.api#documentation": "

The Amazon Web Services account identifier of the Security Hub administrator account.

", "smithy.api#required": {} } } @@ -12568,7 +13148,7 @@ "AdminAccountId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS account identifier of the account to designate as the Security Hub administrator\n account.

", + "smithy.api#documentation": "

The Amazon Web Services account identifier of the account to designate as the Security Hub administrator\n account.

", "smithy.api#required": {} } } @@ -12604,7 +13184,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables Security Hub for your account in the current Region or the Region you specify in the\n request.

\n

When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings\n from other services that are integrated with Security Hub.

\n

When you use the EnableSecurityHub operation to enable Security Hub, you also\n automatically enable the following standards.

\n \n

You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.

\n

To not enable the automatically enabled standards, set\n EnableDefaultStandards to false.

\n

After you enable Security Hub, to enable a standard, use the \n BatchEnableStandards\n operation. To disable a standard, use the\n \n BatchDisableStandards\n operation.

\n

To learn more, see Setting Up\n AWS Security Hub in the AWS Security Hub User Guide.

", + "smithy.api#documentation": "

Enables Security Hub for your account in the current Region or the Region you specify in the\n request.

\n

When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings\n from other services that are integrated with Security Hub.

\n

When you use the EnableSecurityHub operation to enable Security Hub, you also\n automatically enable the following standards.

\n \n

You do not enable the Payment Card Industry Data Security Standard (PCI DSS) standard.

\n

To not enable the automatically enabled standards, set\n EnableDefaultStandards to false.

\n

After you enable Security Hub, to enable a standard, use the BatchEnableStandards operation. To disable a standard, use the\n BatchDisableStandards operation.

\n

To learn more, see the setup information in the Security Hub User Guide.

", "smithy.api#http": { "method": "POST", "uri": "/accounts", @@ -13220,7 +13800,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of AWS accounts that could not be processed. For each account, the list\n includes the account ID and the email address.

" + "smithy.api#documentation": "

The list of Amazon Web Services accounts that could not be processed. For each account, the list\n includes the account ID and the email address.

" } } } @@ -13519,7 +14099,7 @@ } ], "traits": { - "smithy.api#documentation": "

Invites other AWS accounts to become member accounts for the Security Hub administrator account that\n the invitation is sent from.

\n

This operation is only used to invite accounts that do not belong to an organization.\n Organization accounts do not receive invitations.

\n

Before you can use this action to invite a member, you must first use the \n CreateMembers\n action to create the member account in Security Hub.

\n

When the account owner enables Security Hub and accepts the invitation to become a member\n account, the administrator account can view the findings generated from the member account.

", + "smithy.api#documentation": "

Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account that\n the invitation is sent from.

\n

This operation is only used to invite accounts that do not belong to an organization.\n Organization accounts do not receive invitations.

\n

Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

\n

When the account owner enables Security Hub and accepts the invitation to become a member\n account, the administrator account can view the findings generated from the member account.

", "smithy.api#http": { "method": "POST", "uri": "/members/invite", @@ -13533,7 +14113,7 @@ "AccountIds": { "target": "com.amazonaws.securityhub#AccountIdList", "traits": { - "smithy.api#documentation": "

The list of account IDs of the AWS accounts to invite to Security Hub as members.

", + "smithy.api#documentation": "

The list of account IDs of the Amazon Web Services accounts to invite to Security Hub as members.

", "smithy.api#required": {} } } @@ -13545,7 +14125,7 @@ "UnprocessedAccounts": { "target": "com.amazonaws.securityhub#ResultList", "traits": { - "smithy.api#documentation": "

The list of AWS accounts that could not be processed. For each account, the list\n includes the account ID and the email address.

" + "smithy.api#documentation": "

The list of Amazon Web Services accounts that could not be processed. For each account, the list\n includes the account ID and the email address.

" } } } @@ -13665,7 +14245,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request was rejected because it attempted to create resources beyond the current AWS\n account or throttling limits. The error code describes the limit exceeded.

", + "smithy.api#documentation": "

The request was rejected because it attempted to create resources beyond the current Amazon Web Services\n account or throttling limits. The error code describes the limit exceeded.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } @@ -13762,7 +14342,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all Security Hub membership invitations that were sent to the current AWS account.

\n

This operation is only used by accounts that are managed by invitation.\n Accounts that are managed using the integration with AWS Organizations do not receive invitations.

", + "smithy.api#documentation": "

Lists all Security Hub membership invitations that were sent to the current Amazon Web Services account.

\n

This operation is only used by accounts that are managed by invitation.\n Accounts that are managed using the integration with Organizations do not receive invitations.

", "smithy.api#http": { "method": "GET", "uri": "/invitations", @@ -14224,7 +14804,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#AccountId", "traits": { - "smithy.api#documentation": "

The AWS account ID of the member account.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the member account.

" } }, "Email": { @@ -14239,19 +14819,19 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use AdministratorId instead." }, - "smithy.api#documentation": "

This is replaced by AdministratorID.

\n

The AWS account ID of the Security Hub administrator account associated with this member account.

" + "smithy.api#documentation": "

This is replaced by AdministratorID.

\n

The Amazon Web Services account ID of the Security Hub administrator account associated with this member account.

" } }, "AdministratorId": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The AWS account ID of the Security Hub administrator account associated with this member account.

" + "smithy.api#documentation": "

The Amazon Web Services account ID of the Security Hub administrator account associated with this member account.

" } }, "MemberStatus": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The status of the relationship between the member account and its administrator account.\n

\n

The status can have one of the following values:

\n " + "smithy.api#documentation": "

The status of the relationship between the member account and its administrator account.\n

\n

The status can have one of the following values:

\n " } }, "InvitedAt": { @@ -14947,7 +15527,7 @@ "MarketplaceUrl": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

For integrations with AWS services, the AWS Console URL from which to activate the service.

\n

For integrations with third-party products, the AWS Marketplace URL from which to subscribe to or purchase the product.

" + "smithy.api#documentation": "

For integrations with Amazon Web Services services, the Amazon Web Services Console URL from which to activate the service.

\n

For integrations with third-party products, the Marketplace URL from which to subscribe to or purchase the product.

" } }, "ActivationUrl": { @@ -15149,13 +15729,13 @@ "Partition": { "target": "com.amazonaws.securityhub#Partition", "traits": { - "smithy.api#documentation": "

The canonical AWS partition name that the Region is assigned to.

" + "smithy.api#documentation": "

The canonical Amazon Web Services partition name that the Region is assigned to.

" } }, "Region": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The canonical AWS external Region name where this resource is located.

" + "smithy.api#documentation": "

The canonical Amazon Web Services external Region name where this resource is located.

" } }, "ResourceRole": { @@ -15167,7 +15747,7 @@ "Tags": { "target": "com.amazonaws.securityhub#FieldMap", "traits": { - "smithy.api#documentation": "

A list of AWS tags associated with a resource at the time the finding was\n processed.

" + "smithy.api#documentation": "

A list of Amazon Web Services tags associated with a resource at the time the finding was\n processed.

" } }, "DataClassification": { @@ -15221,7 +15801,7 @@ "AwsCodeBuildProject": { "target": "com.amazonaws.securityhub#AwsCodeBuildProjectDetails", "traits": { - "smithy.api#documentation": "

Details for an AWS CodeBuild project.

" + "smithy.api#documentation": "

Details for an CodeBuild project.

" } }, "AwsCloudFrontDistribution": { @@ -15239,7 +15819,7 @@ "AwsEc2NetworkInterface": { "target": "com.amazonaws.securityhub#AwsEc2NetworkInterfaceDetails", "traits": { - "smithy.api#documentation": "

Details for an Amazon EC2 network interface.

" + "smithy.api#documentation": "

Details for an EC2 network interface.

" } }, "AwsEc2SecurityGroup": { @@ -15269,7 +15849,7 @@ "AwsEc2Subnet": { "target": "com.amazonaws.securityhub#AwsEc2SubnetDetails", "traits": { - "smithy.api#documentation": "

Details about a subnet in EC2.

" + "smithy.api#documentation": "

Details about a subnet in Amazon EC2.

" } }, "AwsEc2NetworkAcl": { @@ -15299,7 +15879,7 @@ "AwsS3Bucket": { "target": "com.amazonaws.securityhub#AwsS3BucketDetails", "traits": { - "smithy.api#documentation": "

Details about an Amazon S3 bucket related to a finding.

" + "smithy.api#documentation": "

Details about an S3 bucket related to a finding.

" } }, "AwsS3AccountPublicAccessBlock": { @@ -15311,7 +15891,7 @@ "AwsS3Object": { "target": "com.amazonaws.securityhub#AwsS3ObjectDetails", "traits": { - "smithy.api#documentation": "

Details about an Amazon S3 object related to a finding.

" + "smithy.api#documentation": "

Details about an S3 object related to a finding.

" } }, "AwsSecretsManagerSecret": { @@ -15383,7 +15963,7 @@ "AwsCertificateManagerCertificate": { "target": "com.amazonaws.securityhub#AwsCertificateManagerCertificateDetails", "traits": { - "smithy.api#documentation": "

Provides details about an AWS Certificate Manager (ACM) certificate.

" + "smithy.api#documentation": "

Provides details about an Certificate Manager certificate.

" } }, "AwsRedshiftCluster": { @@ -15413,7 +15993,7 @@ "AwsKmsKey": { "target": "com.amazonaws.securityhub#AwsKmsKeyDetails", "traits": { - "smithy.api#documentation": "

Details about a KMS key.

" + "smithy.api#documentation": "

Details about an KMS key.

" } }, "AwsLambdaFunction": { @@ -15449,7 +16029,7 @@ "AwsWafWebAcl": { "target": "com.amazonaws.securityhub#AwsWafWebAclDetails", "traits": { - "smithy.api#documentation": "

Details for a WAF WebACL.

" + "smithy.api#documentation": "

Details for an WAF WebACL.

" } }, "AwsRdsDbSnapshot": { @@ -15493,6 +16073,18 @@ "traits": { "smithy.api#documentation": "

Details about a resource that are not available in a type-specific details object. Use\n the Other object in the following cases.

\n " } + }, + "AwsRdsEventSubscription": { + "target": "com.amazonaws.securityhub#AwsRdsEventSubscriptionDetails", + "traits": { + "smithy.api#documentation": "

Details about an RDS event notification subscription.

" + } + }, + "AwsEcsService": { + "target": "com.amazonaws.securityhub#AwsEcsServiceDetails", + "traits": { + "smithy.api#documentation": "

Details about a service within an ECS cluster.

" + } } }, "traits": { @@ -15527,7 +16119,7 @@ "AccountId": { "target": "com.amazonaws.securityhub#AccountId", "traits": { - "smithy.api#documentation": "

An AWS account ID of the account that was not processed.

" + "smithy.api#documentation": "

An Amazon Web Services account ID of the account that was not processed.

" } }, "ProcessingResult": { @@ -15723,7 +16315,7 @@ "name": "securityhub" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

Security Hub provides you with a comprehensive view of the security state of your AWS\n environment and resources. It also provides you with the readiness status of your\n environment based on controls from supported security standards. Security Hub collects security\n data from AWS accounts, services, and integrated third-party products and helps you analyze\n security trends in your environment to identify the highest priority security issues. For\n more information about Security Hub, see the \n AWS Security Hub User\n Guide\n .

\n

When you use operations in the Security Hub API, the requests are executed only in the AWS\n Region that is currently active or in the specific AWS Region that you specify in your\n request. Any configuration or settings change that results from the operation is applied\n only to that Region. To make the same change in other Regions, execute the same command for\n each Region to apply the change to.

\n

For example, if your Region is set to us-west-2, when you use \n CreateMembers\n to add a member account to Security Hub, the association of\n the member account with the administrator account is created only in the us-west-2\n Region. Security Hub must be enabled for the member account in the same Region that the invitation\n was sent from.

\n

The following throttling limits apply to using Security Hub API operations.

\n ", + "smithy.api#documentation": "

Security Hub provides you with a comprehensive view of the security state of your Amazon Web Services environment and resources. It also provides you with the readiness status\n of your environment based on controls from supported security standards. Security Hub collects\n security data from Amazon Web Services accounts, services, and integrated third-party products and helps\n you analyze security trends in your environment to identify the highest priority security\n issues. For more information about Security Hub, see the Security HubUser\n Guide\n .

\n

When you use operations in the Security Hub API, the requests are executed only in the Amazon Web Services\n Region that is currently active or in the specific Amazon Web Services Region that you specify in your\n request. Any configuration or settings change that results from the operation is applied\n only to that Region. To make the same change in other Regions, execute the same command for\n each Region to apply the change to.

\n

For example, if your Region is set to us-west-2, when you use CreateMembers to add a member account to Security Hub, the association of\n the member account with the administrator account is created only in the us-west-2\n Region. Security Hub must be enabled for the member account in the same Region that the invitation\n was sent from.

\n

The following throttling limits apply to using Security Hub API operations.

\n ", "smithy.api#title": "AWS SecurityHub" } }, @@ -15797,7 +16389,7 @@ "Product": { "target": "com.amazonaws.securityhub#Double", "traits": { - "smithy.api#documentation": "

Deprecated. This attribute is being deprecated. Instead of providing\n Product, provide Original.

\n

The native severity as defined by the AWS service or integrated partner product that\n generated the finding.

" + "smithy.api#documentation": "

Deprecated. This attribute is being deprecated. Instead of providing\n Product, provide Original.

\n

The native severity as defined by the Amazon Web Services service or integrated partner product that\n generated the finding.

" } }, "Label": { @@ -15885,7 +16477,7 @@ "Product": { "target": "com.amazonaws.securityhub#Double", "traits": { - "smithy.api#documentation": "

The native severity as defined by the AWS service or integrated partner product that\n generated the finding.

" + "smithy.api#documentation": "

The native severity as defined by the Amazon Web Services service or integrated partner product that\n generated the finding.

" } }, "Label": { @@ -16079,7 +16671,7 @@ "SeverityRating": { "target": "com.amazonaws.securityhub#SeverityRating", "traits": { - "smithy.api#documentation": "

The severity of findings generated from this security standard control.

\n

The finding severity is based on an assessment of how easy it would be to compromise AWS\n resources if the issue is detected.

" + "smithy.api#documentation": "

The severity of findings generated from this security standard control.

\n

The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services\n resources if the issue is detected.

" } }, "RelatedRequirements": { @@ -16189,7 +16781,7 @@ "StandardsArn": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

The ARN of the standard that you want to enable. To view the list of available standards\n and their ARNs, use the \n DescribeStandards\n operation.

", + "smithy.api#documentation": "

The ARN of the standard that you want to enable. To view the list of available standards\n and their ARNs, use the DescribeStandards operation.

", "smithy.api#required": {} } }, @@ -16228,7 +16820,7 @@ "ReasonCode": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

A code that represents a reason for the control status. For the list of status reason\n codes and their meanings, see Standards-related information in the ASFF in the\n AWS Security Hub User Guide.

", + "smithy.api#documentation": "

A code that represents a reason for the control status. For the list of status reason\n codes and their meanings, see Standards-related information in the ASFF in the\n Security Hub User Guide.

", "smithy.api#required": {} } }, @@ -16261,7 +16853,7 @@ "Comparison": { "target": "com.amazonaws.securityhub#StringFilterComparison", "traits": { - "smithy.api#documentation": "

The condition to apply to a string value when querying for findings. To search for\n values that contain the filter criteria value, use one of the following comparison\n operators:

\n \n

\n EQUALS and PREFIX filters on the same field are joined by\n OR. A finding matches if it matches any one of those filters.

\n

To search for values that do not contain the filter criteria value, use one of the\n following comparison operators:

\n \n

\n NOT_EQUALS and PREFIX_NOT_EQUALS filters on the same field are\n joined by AND. A finding matches only if it matches all of those\n filters.

\n

For filters on the same field, you cannot provide both an EQUALS filter and\n a NOT_EQUALS or PREFIX_NOT_EQUALS filter. Combining filters in\n this way always returns an error, even if the provided filter values would return valid\n results.

\n

You can combine PREFIX filters with NOT_EQUALS or\n PREFIX_NOT_EQUALS filters for the same field. Security Hub first processes the\n PREFIX filters, then the NOT_EQUALS or\n PREFIX_NOT_EQUALS filters.

\n

For example, for the following filter, Security Hub first identifies findings that have\n resource types that start with either AwsIAM or AwsEc2. It then\n excludes findings that have a resource type of AwsIamPolicy and findings that\n have a resource type of AwsEc2NetworkInterface.

\n " + "smithy.api#documentation": "

The condition to apply to a string value when querying for findings. To search for\n values that contain the filter criteria value, use one of the following comparison\n operators:

\n \n

\n EQUALS and PREFIX filters on the same field are joined by\n OR. A finding matches if it matches any one of those filters.

\n

To search for values that do not contain the filter criteria value, use one of the\n following comparison operators:

\n \n

\n NOT_EQUALS and PREFIX_NOT_EQUALS filters on the same field are\n joined by AND. A finding matches only if it matches all of those\n filters.

\n

For filters on the same field, you cannot provide both an EQUALS filter and\n a NOT_EQUALS or PREFIX_NOT_EQUALS filter. Combining filters in\n this way always returns an error, even if the provided filter values would return valid\n results.

\n

You can combine PREFIX filters with NOT_EQUALS or\n PREFIX_NOT_EQUALS filters for the same field. Security Hub first processes the\n PREFIX filters, then the NOT_EQUALS or\n PREFIX_NOT_EQUALS filters.

\n

For example, for the following filter, Security Hub first identifies findings that have\n resource types that start with either AwsIAM or AwsEc2. It then\n excludes findings that have a resource type of AwsIamPolicy and findings that\n have a resource type of AwsEc2NetworkInterface.

\n " } } }, @@ -17065,12 +17657,12 @@ "Type": { "target": "com.amazonaws.securityhub#NonEmptyString", "traits": { - "smithy.api#documentation": "

Specifies how you want AWS WAF to respond to requests that match the settings in a\n rule.

\n

Valid settings include the following:

\n " + "smithy.api#documentation": "

Specifies how you want WAF to respond to requests that match the settings in a\n rule.

\n

Valid settings include the following:

\n " } } }, "traits": { - "smithy.api#documentation": "

Details about the action that CloudFront or AWS WAF takes when a web request matches the\n conditions in the rule.

" + "smithy.api#documentation": "

Details about the action that CloudFront or WAF takes when a web request matches the\n conditions in the rule.

" } }, "com.amazonaws.securityhub#WafExcludedRule": { diff --git a/codegen/sdk-codegen/aws-models/shield.2016-06-02.json b/codegen/sdk-codegen/aws-models/shield.2016-06-02.json index a432abb3707..7baa4bac8bc 100644 --- a/codegen/sdk-codegen/aws-models/shield.2016-06-02.json +++ b/codegen/sdk-codegen/aws-models/shield.2016-06-02.json @@ -145,7 +145,7 @@ "name": "shield" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "AWS Shield Advanced\n

This is the AWS Shield Advanced API Reference. This guide is for developers who need detailed information about the AWS Shield Advanced API actions, \n data types, and errors. For detailed information about AWS WAF and AWS Shield Advanced features and an overview of how to use the AWS WAF and AWS Shield Advanced APIs, see the \n AWS WAF and AWS Shield Developer Guide.

", + "smithy.api#documentation": "Shield Advanced\n

This is the Shield Advanced API Reference. This guide is for developers who need detailed information about the Shield Advanced API actions, \n data types, and errors. For detailed information about WAF and Shield Advanced features and an overview of how to use the WAF and Shield Advanced APIs, see the \n WAF and Shield Developer Guide.

", "smithy.api#title": "AWS Shield", "smithy.api#xmlNamespace": { "uri": "http://ddp.amazonaws.com/doc/2016-06-02/" @@ -172,7 +172,7 @@ } }, "traits": { - "smithy.api#documentation": "

In order to grant the necessary access to the DDoS Response Team (DRT), the user submitting the request must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see Granting a User Permissions to Pass a Role to an AWS Service.

", + "smithy.api#documentation": "

In order to grant the necessary access to the Shield Response Team (SRT) the user submitting the request must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see Granting a User Permissions to Pass a Role to an Amazon Web Services Service.

", "smithy.api#error": "client" } }, @@ -211,7 +211,7 @@ } ], "traits": { - "smithy.api#documentation": "

Authorizes the DDoS Response Team (DRT) to access the specified Amazon S3 bucket containing your AWS WAF logs. You can associate up to 10 Amazon S3 buckets with your subscription.

\n\t

To use the services of the DRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

" + "smithy.api#documentation": "

Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription.

\n\t

To use the services of the SRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

" } }, "com.amazonaws.shield#AssociateDRTLogBucketRequest": { @@ -220,7 +220,7 @@ "LogBucket": { "target": "com.amazonaws.shield#LogBucket", "traits": { - "smithy.api#documentation": "

The Amazon S3 bucket that contains your AWS WAF logs.

", + "smithy.api#documentation": "

The Amazon S3 bucket that contains the logs that you want to share.

", "smithy.api#required": {} } } @@ -259,7 +259,7 @@ } ], "traits": { - "smithy.api#documentation": "

Authorizes the DDoS Response Team (DRT), using the specified role, to access your AWS account to assist with DDoS attack mitigation during potential attacks. This enables the DRT to inspect your AWS WAF configuration and create or update AWS WAF rules and web ACLs.

\n

You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn.

\n

Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal.

\n\n

The DRT will have access only to your AWS WAF and Shield resources. By submitting this request, you authorize the DRT to inspect your AWS WAF and Shield configuration and create and update AWS WAF rules and web ACLs on your behalf. The DRT takes these actions only if explicitly authorized by you.

\n

You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an AWS Service.

\n

To use the services of the DRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

" + "smithy.api#documentation": "

Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your WAF configuration and create or update WAF rules and web ACLs.

\n

You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn.

\n

Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal.

\n\n

The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you.

\n

You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an Amazon Web Services Service.

\n

To use the services of the SRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan.

" } }, "com.amazonaws.shield#AssociateDRTRoleRequest": { @@ -268,7 +268,7 @@ "RoleArn": { "target": "com.amazonaws.shield#RoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role the DRT will use to access your AWS account.

\n\t

Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to this role. For more information see Attaching and Detaching IAM Policies.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role the SRT will use to access your Amazon Web Services account.

\n\t

Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to this role. For more information see Attaching and Detaching IAM Policies.

", "smithy.api#required": {} } } @@ -304,7 +304,7 @@ } ], "traits": { - "smithy.api#documentation": "

Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

\n

You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

" + "smithy.api#documentation": "

Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and mitigation.

\n

You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide.

" } }, "com.amazonaws.shield#AssociateHealthCheckRequest": { @@ -356,7 +356,7 @@ } ], "traits": { - "smithy.api#documentation": "

Initializes proactive engagement and sets the list of contacts for the DDoS Response Team (DRT) to use. You must provide at least one phone number in the emergency contact list.

\n

After you have initialized proactive engagement using this call, to disable or enable proactive engagement, use the calls DisableProactiveEngagement and EnableProactiveEngagement.

\n \n

This call defines the list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you for escalations to the DRT and to initiate proactive customer support.

\n

The contacts that you provide in the request replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it to this call.

\n
" + "smithy.api#documentation": "

Initializes proactive engagement and sets the list of contacts for the Shield Response Team (SRT) to use. You must provide at least one phone number in the emergency contact list.

\n

After you have initialized proactive engagement using this call, to disable or enable proactive engagement, use the calls DisableProactiveEngagement and EnableProactiveEngagement.

\n \n

This call defines the list of email addresses and phone numbers that the SRT can use to contact you for escalations to the SRT and to initiate proactive customer support.

\n

The contacts that you provide in the request replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it to this call.

\n
" } }, "com.amazonaws.shield#AssociateProactiveEngagementDetailsRequest": { @@ -365,7 +365,7 @@ "EmergencyContactList": { "target": "com.amazonaws.shield#EmergencyContactList", "traits": { - "smithy.api#documentation": "

A list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you for escalations to the DRT and to initiate proactive customer support.

\n

To enable proactive engagement, the contact list must include at least one phone number.

\n \n

The contacts that you provide here replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it here.

\n
", + "smithy.api#documentation": "

A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.

\n

To enable proactive engagement, the contact list must include at least one phone number.

\n \n

The contacts that you provide here replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it here.

\n
", "smithy.api#required": {} } } @@ -417,7 +417,7 @@ "AttackProperties": { "target": "com.amazonaws.shield#AttackProperties", "traits": { - "smithy.api#documentation": "

The array of AttackProperty objects.

" + "smithy.api#documentation": "

The array of objects that provide details of the Shield event.

\n

For infrastructure \n layer events (L3 and L4 events) after January 25, 2021, you can view metrics for top contributors in Amazon CloudWatch metrics. \n For more information, see Shield metrics and alarms \n in the WAF Developer Guide.

" } }, "Mitigations": { @@ -438,7 +438,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9\\\\-]*" + "smithy.api#pattern": "^[a-zA-Z0-9\\\\-]*$" } }, "com.amazonaws.shield#AttackLayer": { @@ -468,36 +468,36 @@ "AttackLayer": { "target": "com.amazonaws.shield#AttackLayer", "traits": { - "smithy.api#documentation": "

The type of distributed denial of service (DDoS) event that was observed.\n NETWORK indicates layer 3 and layer 4 events and APPLICATION\n indicates layer 7 events.

" + "smithy.api#documentation": "

The type of Shield event that was observed. NETWORK indicates layer 3 and layer 4 events and APPLICATION\n indicates layer 7 events.

\n

For infrastructure \n layer events (L3 and L4 events) after January 25, 2021, you can view metrics for top contributors in Amazon CloudWatch metrics. \n For more information, see Shield metrics and alarms \n in the WAF Developer Guide.

" } }, "AttackPropertyIdentifier": { "target": "com.amazonaws.shield#AttackPropertyIdentifier", "traits": { - "smithy.api#documentation": "

Defines the DDoS attack property information that is provided. The\n WORDPRESS_PINGBACK_REFLECTOR and WORDPRESS_PINGBACK_SOURCE\n values are valid only for WordPress reflective pingback DDoS attacks.

" + "smithy.api#documentation": "

Defines the Shield event property information that is provided. The\n WORDPRESS_PINGBACK_REFLECTOR and WORDPRESS_PINGBACK_SOURCE\n values are valid only for WordPress reflective pingback events.

" } }, "TopContributors": { "target": "com.amazonaws.shield#TopContributors", "traits": { - "smithy.api#documentation": "

The array of contributor objects that includes the top five contributors to an attack.

" + "smithy.api#documentation": "

Contributor objects for the top five contributors to a Shield event.

" } }, "Unit": { "target": "com.amazonaws.shield#Unit", "traits": { - "smithy.api#documentation": "

The unit of the Value of the contributions.

" + "smithy.api#documentation": "

The unit used for the Contributor \n Value property.

" } }, "Total": { "target": "com.amazonaws.shield#Long", "traits": { - "smithy.api#documentation": "

The total contributions made to this attack by all contributors, not just the five listed in the TopContributors list.

" + "smithy.api#documentation": "

The total contributions made to this Shield event by all contributors.

" } } }, "traits": { - "smithy.api#documentation": "

Details of the described attack.

" + "smithy.api#documentation": "

Details of a Shield event. This is provided as part of an AttackDetail.

" } }, "com.amazonaws.shield#AttackPropertyIdentifier": { @@ -755,7 +755,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon\n CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.

\n

You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console. For more information see Getting Started with AWS Shield Advanced and Add AWS Shield Advanced Protection to more AWS Resources.

" + "smithy.api#documentation": "

Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.

\n

You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the WAF console. For more information see Getting Started with Shield Advanced and Add Shield Advanced Protection to more Amazon Web Services Resources.

" } }, "com.amazonaws.shield#CreateProtectionGroup": { @@ -803,7 +803,7 @@ "Aggregation": { "target": "com.amazonaws.shield#ProtectionGroupAggregation", "traits": { - "smithy.api#documentation": "

Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", + "smithy.api#documentation": "

Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", "smithy.api#required": {} } }, @@ -851,7 +851,7 @@ "ResourceArn": { "target": "com.amazonaws.shield#ResourceArn", "traits": { - "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the resource to be protected.

\n

The ARN should be in one of the following formats:

\n ", + "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the resource to be protected.

\n

The ARN should be in one of the following formats:

\n ", "smithy.api#required": {} } }, @@ -891,7 +891,7 @@ } ], "traits": { - "smithy.api#documentation": "

Activates AWS Shield Advanced for an account.

\n \n

When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.

" + "smithy.api#documentation": "

Activates Shield Advanced for an account.

\n \n

When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.

" } }, "com.amazonaws.shield#CreateSubscriptionRequest": { @@ -922,7 +922,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes an AWS Shield Advanced Protection.

" + "smithy.api#documentation": "

Deletes an Shield Advanced Protection.

" } }, "com.amazonaws.shield#DeleteProtectionGroup": { @@ -1001,7 +1001,7 @@ ], "traits": { "smithy.api#deprecated": {}, - "smithy.api#documentation": "

Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.

" + "smithy.api#documentation": "

Removes Shield Advanced from an account. Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.

" } }, "com.amazonaws.shield#DeleteSubscriptionRequest": { @@ -1075,7 +1075,7 @@ } ], "traits": { - "smithy.api#documentation": "

Provides information about the number and type of attacks AWS Shield has detected in the last year for all resources that belong to your account, regardless of whether you've defined Shield protections for them. This operation is available to Shield customers as well as to Shield Advanced customers.

\n

The operation returns data for the time range of midnight UTC, one year ago, to midnight UTC, today. For example, if the current time is 2020-10-26 15:39:32 PDT, equal to 2020-10-26 22:39:32 UTC, then the time range for the attack data returned is from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC.

\n

The time range indicates the period covered by the attack statistics data items.

" + "smithy.api#documentation": "

Provides information about the number and type of attacks Shield has detected in the last year for all resources that belong to your account, regardless of whether you've defined Shield protections for them. This operation is available to Shield customers as well as to Shield Advanced customers.

\n

The operation returns data for the time range of midnight UTC, one year ago, to midnight UTC, today. For example, if the current time is 2020-10-26 15:39:32 PDT, equal to 2020-10-26 22:39:32 UTC, then the time range for the attack data returned is from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC.

\n

The time range indicates the period covered by the attack statistics data items.

" } }, "com.amazonaws.shield#DescribeAttackStatisticsRequest": { @@ -1117,7 +1117,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the current role and list of Amazon S3 log buckets used by the DDoS Response Team (DRT) to access your AWS account while assisting with attack mitigation.

" + "smithy.api#documentation": "

Returns the current role and list of Amazon S3 log buckets used by the Shield Response Team (SRT) to access your Amazon Web Services account while assisting with attack mitigation.

" } }, "com.amazonaws.shield#DescribeDRTAccessRequest": { @@ -1130,13 +1130,13 @@ "RoleArn": { "target": "com.amazonaws.shield#RoleArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role the DRT used to access your AWS account.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon Web Services account.

" } }, "LogBucketList": { "target": "com.amazonaws.shield#LogBucketList", "traits": { - "smithy.api#documentation": "

The list of Amazon S3 buckets accessed by the DRT.

" + "smithy.api#documentation": "

The list of Amazon S3 buckets accessed by the SRT.

" } } } @@ -1158,7 +1158,7 @@ } ], "traits": { - "smithy.api#documentation": "

A list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#DescribeEmergencyContactSettingsRequest": { @@ -1171,7 +1171,7 @@ "EmergencyContactList": { "target": "com.amazonaws.shield#EmergencyContactList", "traits": { - "smithy.api#documentation": "

A list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

" } } } @@ -1237,7 +1237,7 @@ "ProtectionGroup": { "target": "com.amazonaws.shield#ProtectionGroup", "traits": { - "smithy.api#documentation": "

A grouping of protected resources that you and AWS Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

", + "smithy.api#documentation": "

A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

", "smithy.api#required": {} } } @@ -1255,7 +1255,7 @@ "ResourceArn": { "target": "com.amazonaws.shield#ResourceArn", "traits": { - "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the AWS resource for the Protection object that is\n described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

" + "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the Amazon Web Services resource for the Protection object that is\n described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

" } } } @@ -1288,7 +1288,7 @@ } ], "traits": { - "smithy.api#documentation": "

Provides details about the AWS Shield Advanced subscription for an account.

" + "smithy.api#documentation": "

Provides details about the Shield Advanced subscription for an account.

" } }, "com.amazonaws.shield#DescribeSubscriptionRequest": { @@ -1301,7 +1301,7 @@ "Subscription": { "target": "com.amazonaws.shield#Subscription", "traits": { - "smithy.api#documentation": "

The AWS Shield Advanced subscription details for an account.

" + "smithy.api#documentation": "

The Shield Advanced subscription details for an account.

" } } } @@ -1332,7 +1332,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes authorization from the DDoS Response Team (DRT) to notify contacts about escalations to the DRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

Removes authorization from the Shield Response Team (SRT) to notify contacts about escalations to the SRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#DisableProactiveEngagementRequest": { @@ -1372,7 +1372,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes the DDoS Response Team's (DRT) access to the specified Amazon S3 bucket containing your AWS WAF logs.

\n\t

To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.

" + "smithy.api#documentation": "

Removes the Shield Response Team's (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously.

\n\t

To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the SRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.

" } }, "com.amazonaws.shield#DisassociateDRTLogBucketRequest": { @@ -1381,7 +1381,7 @@ "LogBucket": { "target": "com.amazonaws.shield#LogBucket", "traits": { - "smithy.api#documentation": "

The Amazon S3 bucket that contains your AWS WAF logs.

", + "smithy.api#documentation": "

The Amazon S3 bucket that contains the logs that you want to share.

", "smithy.api#required": {} } } @@ -1414,7 +1414,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes the DDoS Response Team's (DRT) access to your AWS account.

\n\t

To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTRole request to remove this access.

" + "smithy.api#documentation": "

Removes the Shield Response Team's (SRT) access to your Amazon Web Services account.

\n\t

To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the SRT access to your account, you can submit a DisassociateDRTRole request to remove this access.

" } }, "com.amazonaws.shield#DisassociateDRTRoleRequest": { @@ -1448,7 +1448,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.

\n

You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.

" + "smithy.api#documentation": "

Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and mitigation.

\n

You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide.

" } }, "com.amazonaws.shield#DisassociateHealthCheckRequest": { @@ -1519,7 +1519,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contact information that the DRT can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

Contact information that the SRT can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#EmergencyContactList": { @@ -1560,7 +1560,7 @@ } ], "traits": { - "smithy.api#documentation": "

Authorizes the DDoS Response Team (DRT) to use email and phone to notify contacts about escalations to the DRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#EnableProactiveEngagementRequest": { @@ -1893,7 +1893,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "

If you specify a value for MaxResults and you have more protection groups than the value of MaxResults, AWS Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

" + "smithy.api#documentation": "

If you specify a value for MaxResults and you have more protection groups than the value of MaxResults, Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

" } } } @@ -1956,7 +1956,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "

If you specify a value for MaxResults and you have more Protections than the value of MaxResults, AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.

\n

Shield Advanced might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, Shield Advanced will always also return a NextToken.

" + "smithy.api#documentation": "

If you specify a value for MaxResults and you have more Protections than the value of MaxResults, Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.

\n

Shield Advanced might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, Shield Advanced will always also return a NextToken.

" } } } @@ -2026,7 +2026,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "

If you specify a value for MaxResults and you have more resources in the protection group than the value of MaxResults, AWS Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

" + "smithy.api#documentation": "

If you specify a value for MaxResults and you have more resources in the protection group than the value of MaxResults, Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.

" } } } @@ -2051,7 +2051,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS Shield.

" + "smithy.api#documentation": "

Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield.

" } }, "com.amazonaws.shield#ListTagsForResourceRequest": { @@ -2246,7 +2246,7 @@ "ResourceArn": { "target": "com.amazonaws.shield#ResourceArn", "traits": { - "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the AWS resource that is protected.

" + "smithy.api#documentation": "

The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.

" } }, "HealthCheckIds": { @@ -2279,7 +2279,7 @@ "Aggregation": { "target": "com.amazonaws.shield#ProtectionGroupAggregation", "traits": { - "smithy.api#documentation": "

Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", + "smithy.api#documentation": "

Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", "smithy.api#required": {} } }, @@ -2311,7 +2311,7 @@ } }, "traits": { - "smithy.api#documentation": "

A grouping of protected resources that you and AWS Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

" + "smithy.api#documentation": "

A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

" } }, "com.amazonaws.shield#ProtectionGroupAggregation": { @@ -2355,7 +2355,7 @@ "min": 1, "max": 36 }, - "smithy.api#pattern": "[a-zA-Z0-9\\\\-]*" + "smithy.api#pattern": "^[a-zA-Z0-9\\\\-]*$" } }, "com.amazonaws.shield#ProtectionGroupLimits": { @@ -2439,7 +2439,7 @@ "min": 1, "max": 36 }, - "smithy.api#pattern": "[a-zA-Z0-9\\\\-]*" + "smithy.api#pattern": "^[a-zA-Z0-9\\\\-]*$" } }, "com.amazonaws.shield#ProtectionLimits": { @@ -2464,7 +2464,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[ a-zA-Z0-9_\\\\.\\\\-]*" + "smithy.api#pattern": "^[ a-zA-Z0-9_\\\\.\\\\-]*$" } }, "com.amazonaws.shield#Protections": { @@ -2498,7 +2498,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^arn:aws.*" + "smithy.api#pattern": "^arn:aws" } }, "com.amazonaws.shield#ResourceArnFilterList": { @@ -2538,7 +2538,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" + "smithy.api#pattern": "^arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$" } }, "com.amazonaws.shield#String": { @@ -2615,7 +2615,7 @@ "TimeCommitmentInSeconds": { "target": "com.amazonaws.shield#DurationInSeconds", "traits": { - "smithy.api#documentation": "

The length, in seconds, of the AWS Shield Advanced subscription for the account.

" + "smithy.api#documentation": "

The length, in seconds, of the Shield Advanced subscription for the account.

" } }, "AutoRenew": { @@ -2633,7 +2633,7 @@ "ProactiveEngagementStatus": { "target": "com.amazonaws.shield#ProactiveEngagementStatus", "traits": { - "smithy.api#documentation": "

If ENABLED, the DDoS Response Team (DRT) will use email and phone to notify contacts about escalations to the DRT and to initiate proactive customer support.

\n

If PENDING, you have requested proactive engagement and the request is pending. The status changes to ENABLED when your request is fully processed.

\n

If DISABLED, the DRT will not proactively notify contacts about escalations or to initiate proactive customer support.

" + "smithy.api#documentation": "

If ENABLED, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.

\n

If PENDING, you have requested proactive engagement and the request is pending. The status changes to ENABLED when your request is fully processed.

\n

If DISABLED, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.

" } }, "SubscriptionLimits": { @@ -2651,7 +2651,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the AWS Shield Advanced subscription for an account.

" + "smithy.api#documentation": "

Information about the Shield Advanced subscription for an account.

" } }, "com.amazonaws.shield#SubscriptionLimits": { @@ -2785,7 +2785,7 @@ } }, "traits": { - "smithy.api#documentation": "

A tag associated with an AWS resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as \"environment\", and the tag value represents a specific value within that category, such as \"test,\" \"development,\" or \"production\". Or you might set the tag key to \"customer\" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.

" + "smithy.api#documentation": "

A tag associated with an Amazon Web Services resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as \"environment\", and the tag value represents a specific value within that category, such as \"test,\" \"development,\" or \"production\". Or you might set the tag key to \"customer\" and the value to the customer name or ID. You can specify one or more tags to add to each Amazon Web Services resource, up to 50 tags for a resource.

" } }, "com.amazonaws.shield#TagKey": { @@ -2844,7 +2844,7 @@ } ], "traits": { - "smithy.api#documentation": "

Adds or updates tags for a resource in AWS Shield.

" + "smithy.api#documentation": "

Adds or updates tags for a resource in Shield.

" } }, "com.amazonaws.shield#TagResourceRequest": { @@ -2964,7 +2964,7 @@ } ], "traits": { - "smithy.api#documentation": "

Removes tags from a resource in AWS Shield.

" + "smithy.api#documentation": "

Removes tags from a resource in Shield.

" } }, "com.amazonaws.shield#UntagResourceRequest": { @@ -3013,7 +3013,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the details of the list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

" + "smithy.api#documentation": "

Updates the details of the list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

" } }, "com.amazonaws.shield#UpdateEmergencyContactSettingsRequest": { @@ -3022,7 +3022,7 @@ "EmergencyContactList": { "target": "com.amazonaws.shield#EmergencyContactList", "traits": { - "smithy.api#documentation": "

A list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you if you have proactive engagement enabled, for escalations to the DRT and to initiate proactive customer support.

\n

If you have proactive engagement enabled, the contact list must include at least one phone number.

" + "smithy.api#documentation": "

A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

\n

If you have proactive engagement enabled, the contact list must include at least one phone number.

" } } } @@ -3070,7 +3070,7 @@ "Aggregation": { "target": "com.amazonaws.shield#ProtectionGroupAggregation", "traits": { - "smithy.api#documentation": "

Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", + "smithy.api#documentation": "

Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.

\n ", "smithy.api#required": {} } }, diff --git a/codegen/sdk-codegen/aws-models/ssmcontacts.2021-05-03.json b/codegen/sdk-codegen/aws-models/ssmcontacts.2021-05-03.json index b7a9253ded6..d43031c2eab 100644 --- a/codegen/sdk-codegen/aws-models/ssmcontacts.2021-05-03.json +++ b/codegen/sdk-codegen/aws-models/ssmcontacts.2021-05-03.json @@ -39,6 +39,21 @@ "smithy.api#pattern": "^[0-9]*$" } }, + "com.amazonaws.ssmcontacts#AcceptCodeValidation": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "IGNORE", + "name": "IGNORE" + }, + { + "value": "ENFORCE", + "name": "ENFORCE" + } + ] + } + }, "com.amazonaws.ssmcontacts#AcceptPage": { "type": "operation", "input": { @@ -103,6 +118,12 @@ "smithy.api#documentation": "

The accept code is a 6-digit code used to acknowledge the page.

", "smithy.api#required": {} } + }, + "AcceptCodeValidation": { + "target": "com.amazonaws.ssmcontacts#AcceptCodeValidation", + "traits": { + "smithy.api#documentation": "

An\n optional field that Incident Manager uses to ENFORCE\n AcceptCode validation when acknowledging an page.\n Acknowledgement can occur by replying to a page, or when entering the AcceptCode in the\n console. Enforcing AcceptCode validation causes Incident Manager to verify that the code\n entered by the user matches the code sent by Incident Manager with the page.

\n

Incident Manager can also IGNORE\n AcceptCode validation. Ignoring AcceptCode validation causes\n Incident Manager to accept any value entered for the AcceptCode.

" + } } } }, @@ -2322,7 +2343,7 @@ "name": "ssm-contacts" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "

", + "smithy.api#documentation": "

AWS Systems Manager Incident Manager is an incident management console designed to help\n users mitigate and recover from incidents affecting their AWS-hosted applications. An incident\n is any unplanned interruption or reduction in quality of services.

\n

Incident Manager increases incident resolution by notifying responders of impact,\n highlighting relevant troubleshooting data, and providing collaboration tools to get services\n back up and running. To achieve the primary goal of reducing the time-to-resolution of\n critical incidents, Incident Manager automates response plans and enables responder team\n escalation.

", "smithy.api#title": "AWS Systems Manager Incident Manager Contacts" } }, @@ -2454,7 +2475,7 @@ "DurationInMinutes": { "target": "com.amazonaws.ssmcontacts#StageDurationInMins", "traits": { - "smithy.api#documentation": "

The time to wait until beginning the next stage.

", + "smithy.api#documentation": "

The time to wait until beginning the next stage. The duration can only be set to 0 if a\n target is specified.

", "smithy.api#required": {} } }, @@ -2700,7 +2721,7 @@ "traits": { "smithy.api#length": { "min": 0, - "max": 200 + "max": 50 } } }, diff --git a/codegen/sdk-codegen/aws-models/ssoadmin.2020-07-20.json b/codegen/sdk-codegen/aws-models/ssoadmin.2020-07-20.json index cc23fd2dbc6..01cd4f3158a 100644 --- a/codegen/sdk-codegen/aws-models/ssoadmin.2020-07-20.json +++ b/codegen/sdk-codegen/aws-models/ssoadmin.2020-07-20.json @@ -35,7 +35,7 @@ "Key": { "target": "com.amazonaws.ssoadmin#AccessControlAttributeKey", "traits": { - "smithy.api#documentation": "

The name of the attribute associated with your identities in your identity source. This is used to map a specified attribute in your identity source with an attribute in AWS SSO.

", + "smithy.api#documentation": "

The name of the attribute associated with your identities in your identity source. This is\n used to map a specified attribute in your identity source with an attribute in Amazon Web Services\n SSO.

", "smithy.api#required": {} } }, @@ -48,7 +48,7 @@ } }, "traits": { - "smithy.api#documentation": "

These are AWS SSO identity store attributes that you can configure for use in attributes-based access control (ABAC). You can create permission policies that determine who can access your AWS resources based upon the configured attribute value(s). When you enable ABAC and specify AccessControlAttributes, AWS SSO passes the attribute(s) value of the authenticated user into IAM for use in policy evaluation.

" + "smithy.api#documentation": "

These are Amazon Web Services SSO identity store attributes that you can configure for use in\n attributes-based access control (ABAC). You can create permissions policies that determine who\n can access your Amazon Web Services resources based upon the configured attribute values. When you enable\n ABAC and specify AccessControlAttributes, Amazon Web Services SSO passes the attribute values\n of the authenticated user into IAM for use in policy evaluation.

" } }, "com.amazonaws.ssoadmin#AccessControlAttributeKey": { @@ -58,7 +58,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]+" + "smithy.api#pattern": "^[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]+$" } }, "com.amazonaws.ssoadmin#AccessControlAttributeList": { @@ -79,7 +79,7 @@ "Source": { "target": "com.amazonaws.ssoadmin#AccessControlAttributeValueSourceList", "traits": { - "smithy.api#documentation": "

The identity source to use when mapping a specified attribute to AWS SSO.

", + "smithy.api#documentation": "

The identity source to use when mapping a specified attribute to Amazon Web Services SSO.

", "smithy.api#required": {} } } @@ -95,7 +95,7 @@ "min": 0, "max": 256 }, - "smithy.api#pattern": "[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@\\[\\]\\{\\}\\$\\\\\"]*" + "smithy.api#pattern": "^[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@\\[\\]\\{\\}\\$\\\\\"]*$" } }, "com.amazonaws.ssoadmin#AccessControlAttributeValueSourceList": { @@ -132,13 +132,13 @@ "AccountId": { "target": "com.amazonaws.ssoadmin#AccountId", "traits": { - "smithy.api#documentation": "

The identifier of the AWS account.

" + "smithy.api#documentation": "

The identifier of the Amazon Web Services account.

" } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" + "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" } }, "PrincipalType": { @@ -150,12 +150,12 @@ "PrincipalId": { "target": "com.amazonaws.ssoadmin#PrincipalId", "traits": { - "smithy.api#documentation": "

An identifier for an object in AWS SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API Reference.

" + "smithy.api#documentation": "

An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

" } } }, "traits": { - "smithy.api#documentation": "

The assignment that indicates a principal's limited access to a specified AWS account\n with a specified permission set.

\n \n

The term principal here refers to a user or group that is defined in AWS SSO.

\n
" + "smithy.api#documentation": "

The assignment that indicates a principal's limited access to a specified Amazon Web Services account\n with a specified permission set.

\n \n

The term principal here refers to a user or group that is defined\n in Amazon Web Services SSO.

\n
" } }, "com.amazonaws.ssoadmin#AccountAssignmentList": { @@ -188,7 +188,7 @@ "TargetId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).

" + "smithy.api#documentation": "

TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

" } }, "TargetType": { @@ -200,7 +200,7 @@ "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" + "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" } }, "PrincipalType": { @@ -212,7 +212,7 @@ "PrincipalId": { "target": "com.amazonaws.ssoadmin#PrincipalId", "traits": { - "smithy.api#documentation": "

An identifier for an object in AWS SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API Reference.

" + "smithy.api#documentation": "

An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

" } }, "CreatedDate": { @@ -261,7 +261,7 @@ "com.amazonaws.ssoadmin#AccountId": { "type": "string", "traits": { - "smithy.api#pattern": "\\d{12}" + "smithy.api#pattern": "^\\d{12}$" } }, "com.amazonaws.ssoadmin#AccountList": { @@ -302,7 +302,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches an IAM managed policy ARN to a permission set.

\n \n

If the permission set is already referenced by one or more account assignments, you will need to call \n ProvisionPermissionSet\n after this action to apply the corresponding IAM policy updates to all assigned accounts.

\n
" + "smithy.api#documentation": "

Attaches an IAM managed policy ARN to a permission set.

\n \n

If the permission set is already referenced by one or more account assignments, you will\n need to call \n ProvisionPermissionSet\n after this operation.\n Calling ProvisionPermissionSet applies the corresponding IAM policy updates to\n all assigned accounts.

\n
" } }, "com.amazonaws.ssoadmin#AttachManagedPolicyToPermissionSetRequest": { @@ -311,14 +311,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the PermissionSet that the managed policy should be attached\n to.

", + "smithy.api#documentation": "

The ARN of the PermissionSet that the managed policy should be attached\n to.

", "smithy.api#required": {} } }, @@ -347,7 +347,7 @@ "Arn": { "target": "com.amazonaws.ssoadmin#ManagedPolicyArn", "traits": { - "smithy.api#documentation": "

The ARN of the IAM managed policy. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" + "smithy.api#documentation": "

The ARN of the IAM managed policy. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" } } }, @@ -369,7 +369,7 @@ } }, "traits": { - "smithy.api#documentation": "

Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.

", + "smithy.api#documentation": "

Occurs when a conflict with a previous successful write is detected. This generally occurs\n when the previous write did not have time to propagate to the host serving the current\n request. A retry (with appropriate backoff logic) is the recommended response to this\n exception.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } @@ -409,7 +409,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns access to a principal for a specified AWS account using a specified permission\n set.

\n \n

The term principal here refers to a user or group that is defined in AWS SSO.

\n
\n \n

As part of a successful CreateAccountAssignment call, the specified permission set will automatically be provisioned to the account in the form of an IAM policy attached to the SSO-created IAM role. If the permission set is subsequently updated, the corresponding IAM policies attached to roles in your accounts will not be updated automatically. In this case, you will need to call \n ProvisionPermissionSet\n to make these updates.

\n
" + "smithy.api#documentation": "

Assigns access to a principal for a specified Amazon Web Services account using a specified permission\n set.

\n \n

The term principal here refers to a user or group that is defined\n in Amazon Web Services SSO.

\n
\n \n

As part of a successful CreateAccountAssignment call, the specified\n permission set will automatically be provisioned to the account in the form of an IAM\n policy. That policy is attached to the SSO-created IAM role. If the permission set is\n subsequently updated, the corresponding IAM policies attached to roles in your accounts will\n not be updated automatically. In this case, you must call \n ProvisionPermissionSet\n to make these updates.

\n
" } }, "com.amazonaws.ssoadmin#CreateAccountAssignmentRequest": { @@ -418,14 +418,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, "TargetId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).

", + "smithy.api#documentation": "

TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

", "smithy.api#required": {} } }, @@ -439,7 +439,7 @@ "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set that the admin wants to grant the principal access to.

", + "smithy.api#documentation": "

The ARN of the permission set that the admin wants to grant the principal access\n to.

", "smithy.api#required": {} } }, @@ -453,7 +453,7 @@ "PrincipalId": { "target": "com.amazonaws.ssoadmin#PrincipalId", "traits": { - "smithy.api#documentation": "

An identifier for an object in AWS SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API Reference.

", + "smithy.api#documentation": "

An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

", "smithy.api#required": {} } } @@ -499,7 +499,7 @@ } ], "traits": { - "smithy.api#documentation": "

Enables the attributes-based access control (ABAC) feature for the specified AWS SSO instance. You can also specify new attributes to add to your ABAC configuration during the enabling process. For more information about ABAC, see Attribute-Based Access Control in the AWS SSO User Guide.

" + "smithy.api#documentation": "

Enables the attributes-based access control (ABAC) feature for the specified Amazon Web Services SSO\n instance. You can also specify new attributes to add to your ABAC configuration during the\n enabling process. For more information about ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User Guide.

" } }, "com.amazonaws.ssoadmin#CreateInstanceAccessControlAttributeConfigurationRequest": { @@ -515,7 +515,7 @@ "InstanceAccessControlAttributeConfiguration": { "target": "com.amazonaws.ssoadmin#InstanceAccessControlAttributeConfiguration", "traits": { - "smithy.api#documentation": "

Specifies the AWS SSO identity store attributes to add to your ABAC configuration. When using an external identity provider as an identity source, you can pass attributes through the SAML assertion as an alternative to configuring attributes from the AWS SSO identity store. If a SAML assertion passes any of these attributes, AWS SSO will replace the attribute value with the value from the AWS SSO identity store.

", + "smithy.api#documentation": "

Specifies the Amazon Web Services SSO identity store attributes to add to your ABAC configuration.\n When using an external identity provider as an identity source, you can pass attributes\n through the SAML assertion. Doing so provides an alternative to configuring attributes from\n the Amazon Web Services SSO identity store. If a SAML assertion passes any of these attributes, Amazon Web Services\n SSO will replace the attribute value with the value from the Amazon Web Services SSO identity\n store.

", "smithy.api#required": {} } } @@ -557,7 +557,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a permission set within a specified SSO instance.

\n \n

To grant users and groups access to AWS account resources, use \n CreateAccountAssignment\n .

\n
" + "smithy.api#documentation": "

Creates a permission set within a specified SSO instance.

\n \n

To grant users and groups access to Amazon Web Services account resources, use \n CreateAccountAssignment\n .

\n
" } }, "com.amazonaws.ssoadmin#CreatePermissionSetRequest": { @@ -579,7 +579,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -592,7 +592,7 @@ "RelayState": { "target": "com.amazonaws.ssoadmin#RelayState", "traits": { - "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" + "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" } }, "Tags": { @@ -609,7 +609,7 @@ "PermissionSet": { "target": "com.amazonaws.ssoadmin#PermissionSet", "traits": { - "smithy.api#documentation": "

Defines the level of access on an AWS account.

" + "smithy.api#documentation": "

Defines the level of access on an Amazon Web Services account.

" } } } @@ -646,7 +646,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a principal's access from a specified AWS account using a specified permission\n set.

" + "smithy.api#documentation": "

Deletes a principal's access from a specified Amazon Web Services account using a specified permission\n set.

" } }, "com.amazonaws.ssoadmin#DeleteAccountAssignmentRequest": { @@ -655,14 +655,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, "TargetId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).

", + "smithy.api#documentation": "

TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

", "smithy.api#required": {} } }, @@ -690,7 +690,7 @@ "PrincipalId": { "target": "com.amazonaws.ssoadmin#PrincipalId", "traits": { - "smithy.api#documentation": "

An identifier for an object in AWS SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API Reference.

", + "smithy.api#documentation": "

An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

", "smithy.api#required": {} } } @@ -745,7 +745,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -791,7 +791,7 @@ } ], "traits": { - "smithy.api#documentation": "

Disables the attributes-based access control (ABAC) feature for the specified AWS SSO instance and deletes all of the attribute mappings that have been configured. Once deleted, any attributes that are received from an identity source and any custom attributes you have previously configured will not be passed. For more information about ABAC, see Attribute-Based Access Control in the AWS SSO User Guide.

" + "smithy.api#documentation": "

Disables the attributes-based access control (ABAC) feature for the specified Amazon Web Services SSO\n instance and deletes all of the attribute mappings that have been configured. Once deleted,\n any attributes that are received from an identity source and any custom attributes you have\n previously configured will not be passed. For more information about ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User Guide.

" } }, "com.amazonaws.ssoadmin#DeleteInstanceAccessControlAttributeConfigurationRequest": { @@ -848,7 +848,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -900,7 +900,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -959,7 +959,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -1009,7 +1009,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the list of AWS SSO identity store attributes that have been configured to work with attributes-based access control (ABAC) for the specified AWS SSO instance. This will not return attributes configured and sent by an external identity provider. For more information about ABAC, see Attribute-Based Access Control in the AWS SSO User Guide.

" + "smithy.api#documentation": "

Returns the list of Amazon Web Services SSO identity store attributes that have been configured to\n work with attributes-based access control (ABAC) for the specified Amazon Web Services SSO instance. This\n will not return attributes configured and sent by an external identity provider.\n For more information about ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User Guide.

" } }, "com.amazonaws.ssoadmin#DescribeInstanceAccessControlAttributeConfigurationRequest": { @@ -1042,7 +1042,7 @@ "InstanceAccessControlAttributeConfiguration": { "target": "com.amazonaws.ssoadmin#InstanceAccessControlAttributeConfiguration", "traits": { - "smithy.api#documentation": "

Gets the list of AWS SSO identity store attributes added to your ABAC configuration.

" + "smithy.api#documentation": "

Gets the list of Amazon Web Services SSO identity store attributes that have been added to your ABAC\n configuration.

" } } } @@ -1111,14 +1111,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, "ProvisionPermissionSetRequestId": { "target": "com.amazonaws.ssoadmin#UUId", "traits": { - "smithy.api#documentation": "

The identifier that is provided by the ProvisionPermissionSet call to\n retrieve the current status of the provisioning workflow.

", + "smithy.api#documentation": "

The identifier that is provided by the ProvisionPermissionSet call to\n retrieve the current status of the provisioning workflow.

", "smithy.api#required": {} } } @@ -1141,7 +1141,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -1160,7 +1160,7 @@ "PermissionSet": { "target": "com.amazonaws.ssoadmin#PermissionSet", "traits": { - "smithy.api#documentation": "

Describes the level of access on an AWS account.

" + "smithy.api#documentation": "

Describes the level of access on an Amazon Web Services account.

" } } } @@ -1203,14 +1203,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the PermissionSet from which the policy should be detached.

", + "smithy.api#documentation": "

The ARN of the PermissionSet from which the policy should be\n detached.

", "smithy.api#required": {} } }, @@ -1244,7 +1244,7 @@ "min": 10, "max": 2048 }, - "smithy.api#pattern": "arn:aws:sso:([a-zA-Z0-9-]+)?:(\\d{12})?:[a-zA-Z0-9-]+/[a-zA-Z0-9-/.]+" + "smithy.api#pattern": "^arn:aws:sso:([a-zA-Z0-9-]+)?:(\\d{12})?:[a-zA-Z0-9-]+/[a-zA-Z0-9-/.]+$" } }, "com.amazonaws.ssoadmin#GetInlinePolicyForPermissionSet": { @@ -1282,7 +1282,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -1313,7 +1313,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "^[a-zA-Z0-9-]*" + "smithy.api#pattern": "^[a-zA-Z0-9-]*$" } }, "com.amazonaws.ssoadmin#InstanceAccessControlAttributeConfiguration": { @@ -1322,13 +1322,13 @@ "AccessControlAttributes": { "target": "com.amazonaws.ssoadmin#AccessControlAttributeList", "traits": { - "smithy.api#documentation": "

Lists the attributes that are configured for ABAC in the specified AWS SSO instance.

", + "smithy.api#documentation": "

Lists the attributes that are configured for ABAC in the specified Amazon Web Services SSO\n instance.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Specifies the attributes to add to your attribute-based access control (ABAC) configuration.

" + "smithy.api#documentation": "

Specifies the attributes to add to your attribute-based access control (ABAC)\n configuration.

" } }, "com.amazonaws.ssoadmin#InstanceAccessControlAttributeConfigurationStatus": { @@ -1360,7 +1360,7 @@ "min": 10, "max": 1224 }, - "smithy.api#pattern": "arn:aws:sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}" + "smithy.api#pattern": "^arn:aws:sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}$" } }, "com.amazonaws.ssoadmin#InstanceList": { @@ -1375,7 +1375,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" } }, "IdentityStoreId": { @@ -1431,7 +1431,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the status of the AWS account assignment creation requests for a specified SSO\n instance.

", + "smithy.api#documentation": "

Lists the status of the Amazon Web Services account assignment creation requests for a specified SSO\n instance.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1446,7 +1446,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -1513,7 +1513,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the status of the AWS account assignment deletion requests for a specified SSO\n instance.

", + "smithy.api#documentation": "

Lists the status of the Amazon Web Services account assignment deletion requests for a specified SSO\n instance.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1528,7 +1528,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -1595,7 +1595,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the assignee of the specified AWS account with the specified permission\n set.

", + "smithy.api#documentation": "

Lists the assignee of the specified Amazon Web Services account with the specified permission\n set.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1610,14 +1610,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, "AccountId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

The identifier of the AWS account from which to list the assignments.

", + "smithy.api#documentation": "

The identifier of the Amazon Web Services account from which to list the assignments.

", "smithy.api#required": {} } }, @@ -1648,7 +1648,7 @@ "AccountAssignments": { "target": "com.amazonaws.ssoadmin#AccountAssignmentList", "traits": { - "smithy.api#documentation": "

The list of assignments that match the input AWS account and permission set.

" + "smithy.api#documentation": "

The list of assignments that match the input Amazon Web Services account and permission set.

" } }, "NextToken": { @@ -1685,7 +1685,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the AWS accounts where the specified permission set is provisioned.

", + "smithy.api#documentation": "

Lists all the Amazon Web Services accounts where the specified permission set is provisioned.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1700,21 +1700,21 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the PermissionSet from which the associated AWS accounts\n will be listed.

", + "smithy.api#documentation": "

The ARN of the PermissionSet from which the associated Amazon Web Services accounts\n will be listed.

", "smithy.api#required": {} } }, "ProvisioningStatus": { "target": "com.amazonaws.ssoadmin#ProvisioningStatus", "traits": { - "smithy.api#documentation": "

The permission set provisioning status for an AWS account.

" + "smithy.api#documentation": "

The permission set provisioning status for an Amazon Web Services account.

" } }, "MaxResults": { @@ -1737,7 +1737,7 @@ "AccountIds": { "target": "com.amazonaws.ssoadmin#AccountList", "traits": { - "smithy.api#documentation": "

The list of AWS AccountIds.

" + "smithy.api#documentation": "

The list of Amazon Web Services AccountIds.

" } }, "NextToken": { @@ -1855,14 +1855,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the PermissionSet whose managed policies will be listed.

", + "smithy.api#documentation": "

The ARN of the PermissionSet whose managed policies will be\n listed.

", "smithy.api#required": {} } }, @@ -1938,7 +1938,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -2040,7 +2040,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the permission sets that are provisioned to a specified AWS account.

", + "smithy.api#documentation": "

Lists all the permission sets that are provisioned to a specified Amazon Web Services account.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -2055,14 +2055,14 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, "AccountId": { "target": "com.amazonaws.ssoadmin#AccountId", "traits": { - "smithy.api#documentation": "

The identifier of the AWS account from which to list the assignments.

", + "smithy.api#documentation": "

The identifier of the Amazon Web Services account from which to list the assignments.

", "smithy.api#required": {} } }, @@ -2098,7 +2098,7 @@ "PermissionSets": { "target": "com.amazonaws.ssoadmin#PermissionSetList", "traits": { - "smithy.api#documentation": "

Defines the level of access that an AWS account has.

" + "smithy.api#documentation": "

Defines the level of access that an Amazon Web Services account has.

" } } } @@ -2109,7 +2109,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -2133,7 +2133,7 @@ "PermissionSets": { "target": "com.amazonaws.ssoadmin#PermissionSetList", "traits": { - "smithy.api#documentation": "

Defines the level of access on an AWS account.

" + "smithy.api#documentation": "

Defines the level of access on an Amazon Web Services account.

" } }, "NextToken": { @@ -2184,7 +2184,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -2274,7 +2274,7 @@ "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" + "smithy.api#documentation": "

The ARN of the permission set. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" } }, "Description": { @@ -2292,13 +2292,13 @@ "SessionDuration": { "target": "com.amazonaws.ssoadmin#Duration", "traits": { - "smithy.api#documentation": "

The length of time that the application user sessions are valid for in the ISO-8601\n standard.

" + "smithy.api#documentation": "

The length of time that the application user sessions are valid for in the ISO-8601\n standard.

" } }, "RelayState": { "target": "com.amazonaws.ssoadmin#RelayState", "traits": { - "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" + "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" } } }, @@ -2313,7 +2313,7 @@ "min": 10, "max": 1224 }, - "smithy.api#pattern": "arn:aws:sso:::permissionSet/(sso)?ins-[a-zA-Z0-9-.]{16}/ps-[a-zA-Z0-9-./]{16}" + "smithy.api#pattern": "^arn:aws:sso:::permissionSet/(sso)?ins-[a-zA-Z0-9-.]{16}/ps-[a-zA-Z0-9-./]{16}$" } }, "com.amazonaws.ssoadmin#PermissionSetDescription": { @@ -2323,7 +2323,7 @@ "min": 1, "max": 700 }, - "smithy.api#pattern": "[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*" + "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*$" } }, "com.amazonaws.ssoadmin#PermissionSetList": { @@ -2339,7 +2339,7 @@ "min": 1, "max": 32 }, - "smithy.api#pattern": "[\\w+=,.@-]+" + "smithy.api#pattern": "^[\\w+=,.@-]+$" } }, "com.amazonaws.ssoadmin#PermissionSetPolicyDocument": { @@ -2349,7 +2349,7 @@ "min": 1, "max": 10240 }, - "smithy.api#pattern": "[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+", + "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$", "smithy.api#sensitive": {} } }, @@ -2371,13 +2371,13 @@ "AccountId": { "target": "com.amazonaws.ssoadmin#AccountId", "traits": { - "smithy.api#documentation": "

The identifier of the AWS account from which to list the assignments.

" + "smithy.api#documentation": "

The identifier of the Amazon Web Services account from which to list the assignments.

" } }, "PermissionSetArn": { "target": "com.amazonaws.ssoadmin#PermissionSetArn", "traits": { - "smithy.api#documentation": "

The ARN of the permission set that is being provisioned. For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

" + "smithy.api#documentation": "

The ARN of the permission set that is being provisioned. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

" } }, "FailureReason": { @@ -2483,7 +2483,7 @@ } ], "traits": { - "smithy.api#documentation": "

The process by which a specified permission set is provisioned to the specified target.

" + "smithy.api#documentation": "

The process by which a specified permission set is provisioned to the specified\n target.

" } }, "com.amazonaws.ssoadmin#ProvisionPermissionSetRequest": { @@ -2492,7 +2492,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -2506,7 +2506,7 @@ "TargetId": { "target": "com.amazonaws.ssoadmin#TargetId", "traits": { - "smithy.api#documentation": "

TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).

" + "smithy.api#documentation": "

TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

" } }, "TargetType": { @@ -2591,7 +2591,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches an IAM inline policy to a permission set.

\n \n

If the permission set is already referenced by one or more account assignments, you will need to call \n ProvisionPermissionSet\n after this action to apply the corresponding IAM policy updates to all assigned accounts.

\n
" + "smithy.api#documentation": "

Attaches an IAM inline policy to a permission set.

\n \n

If the permission set is already referenced by one or more account assignments, you will\n need to call \n ProvisionPermissionSet\n after this action to\n apply the corresponding IAM policy updates to all assigned accounts.

\n
" } }, "com.amazonaws.ssoadmin#PutInlinePolicyToPermissionSetRequest": { @@ -2600,7 +2600,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -2627,7 +2627,7 @@ "com.amazonaws.ssoadmin#Reason": { "type": "string", "traits": { - "smithy.api#pattern": "[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*" + "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*$" } }, "com.amazonaws.ssoadmin#RelayState": { @@ -2637,7 +2637,7 @@ "min": 1, "max": 240 }, - "smithy.api#pattern": "[a-zA-Z0-9&$@#\\\\\\/%?=~\\-_'\"|!:,.;*+\\[\\]\\ \\(\\)\\{\\}]+" + "smithy.api#pattern": "^[a-zA-Z0-9&$@#\\\\\\/%?=~\\-_'\"|!:,.;*+\\[\\]\\ \\(\\)\\{\\}]+$" } }, "com.amazonaws.ssoadmin#ResourceNotFoundException": { @@ -2766,6 +2766,7 @@ "name": "sso" }, "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "

Amazon Web Services Single Sign On (SSO) is a cloud SSO service that makes it easy to centrally manage SSO\n access to multiple Amazon Web Services accounts and business applications. This guide provides information on\n SSO operations which could be used for access management of Amazon Web Services accounts. For information about\n Amazon Web Services SSO features, see the Amazon Web Services Single Sign-On User Guide.

\n

Many operations in the SSO APIs rely on identifiers for users and groups, known as\n principals. For more information about how to work with principals and principal IDs in Amazon Web Services SSO,\n see the Amazon Web Services SSO Identity Store API\n Reference.

", "smithy.api#title": "AWS Single Sign-On Admin" } }, @@ -2777,7 +2778,7 @@ } }, "traits": { - "smithy.api#documentation": "

Indicates that the principal has crossed the permitted number of resources that can be created.

", + "smithy.api#documentation": "

Indicates that the principal has crossed the permitted number of resources that can be\n created.

", "smithy.api#error": "client", "smithy.api#httpError": 402 } @@ -2821,7 +2822,7 @@ } }, "traits": { - "smithy.api#documentation": "

A set of key-value pairs that are used to manage the resource. Tags can only be applied to permission sets and cannot be applied to corresponding roles\n that AWS SSO creates in AWS accounts.

" + "smithy.api#documentation": "

A set of key-value pairs that are used to manage the resource. Tags can only be applied to\n permission sets and cannot be applied to corresponding roles that Amazon Web Services SSO creates in Amazon Web Services\n accounts.

" } }, "com.amazonaws.ssoadmin#TagKey": { @@ -2899,7 +2900,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -2936,7 +2937,7 @@ "com.amazonaws.ssoadmin#TargetId": { "type": "string", "traits": { - "smithy.api#pattern": "\\d{12}" + "smithy.api#pattern": "^\\d{12}$" } }, "com.amazonaws.ssoadmin#TargetType": { @@ -2958,7 +2959,7 @@ } }, "traits": { - "smithy.api#documentation": "

Indicates that the principal has crossed the throttling limits of the API operations.

", + "smithy.api#documentation": "

Indicates that the principal has crossed the throttling limits of the API\n operations.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } @@ -2973,13 +2974,13 @@ "min": 0, "max": 2048 }, - "smithy.api#pattern": "^[-a-zA-Z0-9+=/_]*" + "smithy.api#pattern": "^[-a-zA-Z0-9+=/_]*$" } }, "com.amazonaws.ssoadmin#UUId": { "type": "string", "traits": { - "smithy.api#pattern": "\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b" + "smithy.api#pattern": "^\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b$" } }, "com.amazonaws.ssoadmin#UntagResource": { @@ -3020,7 +3021,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -3073,7 +3074,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the AWS SSO identity store attributes to use with the AWS SSO instance for attributes-based access control (ABAC). When using an external identity provider as an identity source, you can pass attributes through the SAML assertion as an alternative to configuring attributes from the AWS SSO identity store. If a SAML assertion passes any of these attributes, AWS SSO will replace the attribute value with the value from the AWS SSO identity store. For more information about ABAC, see Attribute-Based Access Control in the AWS SSO User Guide.

" + "smithy.api#documentation": "

Updates the Amazon Web Services SSO identity store attributes that you can use with the Amazon Web Services SSO\n instance for attributes-based access control (ABAC). When using an external identity provider\n as an identity source, you can pass attributes through the SAML assertion as an alternative to\n configuring attributes from the Amazon Web Services SSO identity store. If a SAML assertion passes any of\n these attributes, Amazon Web Services SSO replaces the attribute value with the value from the Amazon Web Services SSO\n identity store. For more information about ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User Guide.

" } }, "com.amazonaws.ssoadmin#UpdateInstanceAccessControlAttributeConfigurationRequest": { @@ -3137,7 +3138,7 @@ "InstanceArn": { "target": "com.amazonaws.ssoadmin#InstanceArn", "traits": { - "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed.\n For more information about ARNs, see Amazon Resource\nNames (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "smithy.api#documentation": "

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource\nNames (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

", "smithy.api#required": {} } }, @@ -3157,13 +3158,13 @@ "SessionDuration": { "target": "com.amazonaws.ssoadmin#Duration", "traits": { - "smithy.api#documentation": "

The length of time that the application user sessions are valid for in the ISO-8601\n standard.

" + "smithy.api#documentation": "

The length of time that the application user sessions are valid for in the ISO-8601\n standard.

" } }, "RelayState": { "target": "com.amazonaws.ssoadmin#RelayState", "traits": { - "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" + "smithy.api#documentation": "

Used to redirect users within the application during the federation authentication\n process.

" } } } diff --git a/codegen/sdk-codegen/aws-models/synthetics.2017-10-11.json b/codegen/sdk-codegen/aws-models/synthetics.2017-10-11.json index 21893bddb2b..71b2a2d8f10 100644 --- a/codegen/sdk-codegen/aws-models/synthetics.2017-10-11.json +++ b/codegen/sdk-codegen/aws-models/synthetics.2017-10-11.json @@ -29,6 +29,44 @@ ] }, "shapes": { + "com.amazonaws.synthetics#BaseScreenshot": { + "type": "structure", + "members": { + "ScreenshotName": { + "target": "com.amazonaws.synthetics#String", + "traits": { + "smithy.api#required": {} + } + }, + "IgnoreCoordinates": { + "target": "com.amazonaws.synthetics#BaseScreenshotIgnoreCoordinates" + } + } + }, + "com.amazonaws.synthetics#BaseScreenshotConfigIgnoreCoordinate": { + "type": "string", + "traits": { + "smithy.api#pattern": "^(-?\\d{1,5}\\.?\\d{0,2},){3}(-?\\d{1,5}\\.?\\d{0,2}){1}$" + } + }, + "com.amazonaws.synthetics#BaseScreenshotIgnoreCoordinates": { + "type": "list", + "member": { + "target": "com.amazonaws.synthetics#BaseScreenshotConfigIgnoreCoordinate" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 20 + } + } + }, + "com.amazonaws.synthetics#BaseScreenshots": { + "type": "list", + "member": { + "target": "com.amazonaws.synthetics#BaseScreenshot" + } + }, "com.amazonaws.synthetics#Blob": { "type": "blob", "traits": { @@ -128,6 +166,9 @@ "VpcConfig": { "target": "com.amazonaws.synthetics#VpcConfigOutput" }, + "VisualReference": { + "target": "com.amazonaws.synthetics#VisualReferenceOutput" + }, "Tags": { "target": "com.amazonaws.synthetics#TagMap", "traits": { @@ -146,7 +187,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:canary:[0-9a-z_\\-]{1,21}" + "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:canary:[0-9a-z_\\-]{1,21}$" } }, "com.amazonaws.synthetics#CanaryCodeInput": { @@ -155,7 +196,7 @@ "S3Bucket": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

If your canary script is located in S3, specify the full bucket name here. The bucket\n must already exist. Specify the full bucket name, including s3:// as the \n start of the bucket name.

" + "smithy.api#documentation": "

If your canary script is located in S3, specify the bucket name here. Do not include s3:// as the \n start of the bucket name.

" } }, "S3Key": { @@ -173,13 +214,13 @@ "ZipFile": { "target": "com.amazonaws.synthetics#Blob", "traits": { - "smithy.api#documentation": "

If you input your canary script directly into the canary instead of referring to an S3\n location, the value of this parameter is the .zip file that contains the script. It can be\n up to 5 MB.

" + "smithy.api#documentation": "

If you input your canary script directly into the canary instead of referring to an S3\n location, the value of this parameter is the base64-encoded contents of the .zip file that \n contains the script. It can be\n up to 5 MB.

" } }, "Handler": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

The entry point to use for the source code when running the canary. This value must end\n with the string .handler.

", + "smithy.api#documentation": "

The entry point to use for the source code when running the canary. This value must end\n with the string .handler. The string is limited to 29 characters or fewer.

", "smithy.api#required": {} } } @@ -294,7 +335,7 @@ "ActiveTracing": { "target": "com.amazonaws.synthetics#NullableBoolean", "traits": { - "smithy.api#documentation": "

Specifies whether this canary is to use active AWS X-Ray tracing when it runs. Active tracing \n enables\n this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does \n not hit an endpoint that has X-ray tracing enabled. Using X-Ray tracing incurs charges.\n For more information, see \n Canaries and X-Ray tracing.

\n

You can enable active tracing only for canaries that use version syn-nodejs-2.0 \n or later for their canary runtime.

" + "smithy.api#documentation": "

Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing \n enables\n this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does \n not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges.\n For more information, see \n Canaries and X-Ray tracing.

\n

You can enable active tracing only for canaries that use version syn-nodejs-2.0 \n or later for their canary runtime.

" } }, "EnvironmentVariables": { @@ -326,7 +367,7 @@ "ActiveTracing": { "target": "com.amazonaws.synthetics#NullableBoolean", "traits": { - "smithy.api#documentation": "

Displays whether this canary run used active AWS X-Ray tracing.

" + "smithy.api#documentation": "

Displays whether this canary run used active X-Ray tracing.

" } } }, @@ -426,7 +467,7 @@ "Expression": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

A rate expression that defines how often the canary is to run. The syntax is\n rate(number unit). unit\n can be minute, minutes, or hour.

\n

For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every \n 10 minutes, and rate(1 hour) runs it once every hour. You can\n specify a frequency between rate(1 minute) and rate(1 hour).

\n

Specifying rate(0 minute) or rate(0 hour) is a special value \n that causes the \n canary to run only once when it is started.

", + "smithy.api#documentation": "

A rate expression or a cron expression that defines how often the canary is to run.

\n

For a rate expression, The syntax is\n rate(number unit). unit\n can be minute, minutes, or hour.

\n

For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every \n 10 minutes, and rate(1 hour) runs it once every hour. You can\n specify a frequency between rate(1 minute) and rate(1 hour).

\n

Specifying rate(0 minute) or rate(0 hour) is a special value \n that causes the \n canary to run only once when it is started.

\n

Use cron(expression) to specify a cron \n expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see \n \n Scheduling canary runs using cron.

", "smithy.api#required": {} } }, @@ -447,7 +488,7 @@ "Expression": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

A rate expression that defines how often the canary is to run. The syntax is\n rate(number unit). unit\n can be minute, minutes, or hour.

\n

For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every \n 10 minutes, and rate(1 hour) runs it once every hour.

\n

Specifying rate(0 minute) or rate(0 hour) is a special value \n that causes the \n canary to run only once when it is started.

" + "smithy.api#documentation": "

A rate expression or a cron expression that defines how often the canary is to run.

\n

For a rate expression, The syntax is\n rate(number unit). unit\n can be minute, minutes, or hour.

\n

For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every \n 10 minutes, and rate(1 hour) runs it once every hour. You can\n specify a frequency between rate(1 minute) and rate(1 hour).

\n

Specifying rate(0 minute) or rate(0 hour) is a special value \n that causes the \n canary to run only once when it is started.

\n

Use cron(expression) to specify a cron \n expression. For information about the syntax for cron expressions, see \n \n Scheduling canary runs using cron.

" } }, "DurationInSeconds": { @@ -631,7 +672,7 @@ "ArtifactS3Location": { "target": "com.amazonaws.synthetics#String", "traits": { - "smithy.api#documentation": "

The location in Amazon S3 where Synthetics stores artifacts from the test runs of this\n canary. Artifacts include the log file, screenshots, and HAR files.

", + "smithy.api#documentation": "

The location in Amazon S3 where Synthetics stores artifacts from the test runs of this\n canary. Artifacts include the log file, screenshots, and HAR files. The name of the \n S3 bucket can't include a period (.).

", "smithy.api#required": {} } }, @@ -942,7 +983,7 @@ "com.amazonaws.synthetics#EnvironmentVariableName": { "type": "string", "traits": { - "smithy.api#pattern": "[a-zA-Z]([a-zA-Z0-9_])+" + "smithy.api#pattern": "^[a-zA-Z]([a-zA-Z0-9_])+$" } }, "com.amazonaws.synthetics#EnvironmentVariableValue": { @@ -967,7 +1008,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" + "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$" } }, "com.amazonaws.synthetics#GetCanary": { @@ -1245,7 +1286,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" + "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$" } }, "com.amazonaws.synthetics#RuntimeVersion": { @@ -1538,7 +1579,7 @@ } ], "traits": { - "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified canary.

\n

Tags can help you organize and categorize your\n resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with\n certain tag values.

\n

Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.

\n

You can use the TagResource action with a canary that already has tags. If you specify a new tag key for the alarm, \n this tag is appended to the list of tags associated\n with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces\n the previous value for that tag.

\n

You can associate as many as 50 tags with a canary.

", + "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified canary.

\n

Tags can help you organize and categorize your\n resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with\n certain tag values.

\n

Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

\n

You can use the TagResource action with a canary that already has tags. If you specify a new tag key for the alarm, \n this tag is appended to the list of tags associated\n with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces\n the previous value for that tag.

\n

You can associate as many as 50 tags with a canary.

", "smithy.api#http": { "method": "POST", "uri": "/tags/{ResourceArn}", @@ -1739,6 +1780,9 @@ "traits": { "smithy.api#documentation": "

If this canary is to test an endpoint in a VPC, this structure contains\n information about the subnet and security groups of the VPC endpoint. \n For more information, see \n Running a Canary in a VPC.

" } + }, + "VisualReference": { + "target": "com.amazonaws.synthetics#VisualReferenceInput" } } }, @@ -1759,6 +1803,31 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.synthetics#VisualReferenceInput": { + "type": "structure", + "members": { + "BaseScreenshots": { + "target": "com.amazonaws.synthetics#BaseScreenshots" + }, + "BaseCanaryRunId": { + "target": "com.amazonaws.synthetics#String", + "traits": { + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.synthetics#VisualReferenceOutput": { + "type": "structure", + "members": { + "BaseScreenshots": { + "target": "com.amazonaws.synthetics#BaseScreenshots" + }, + "BaseCanaryRunId": { + "target": "com.amazonaws.synthetics#String" + } + } + }, "com.amazonaws.synthetics#VpcConfigInput": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/textract.2018-06-27.json b/codegen/sdk-codegen/aws-models/textract.2018-06-27.json index 6ae251cba04..13f62ff80b2 100644 --- a/codegen/sdk-codegen/aws-models/textract.2018-06-27.json +++ b/codegen/sdk-codegen/aws-models/textract.2018-06-27.json @@ -142,6 +142,72 @@ } } }, + "com.amazonaws.textract#AnalyzeExpense": { + "type": "operation", + "input": { + "target": "com.amazonaws.textract#AnalyzeExpenseRequest" + }, + "output": { + "target": "com.amazonaws.textract#AnalyzeExpenseResponse" + }, + "errors": [ + { + "target": "com.amazonaws.textract#AccessDeniedException" + }, + { + "target": "com.amazonaws.textract#BadDocumentException" + }, + { + "target": "com.amazonaws.textract#DocumentTooLargeException" + }, + { + "target": "com.amazonaws.textract#InternalServerError" + }, + { + "target": "com.amazonaws.textract#InvalidParameterException" + }, + { + "target": "com.amazonaws.textract#InvalidS3ObjectException" + }, + { + "target": "com.amazonaws.textract#ProvisionedThroughputExceededException" + }, + { + "target": "com.amazonaws.textract#ThrottlingException" + }, + { + "target": "com.amazonaws.textract#UnsupportedDocumentException" + } + ], + "traits": { + "smithy.api#documentation": "

Analyzes an input document for financially related relationships between text.

\n

Information is returned as ExpenseDocuments and seperated as follows.

\n " + } + }, + "com.amazonaws.textract#AnalyzeExpenseRequest": { + "type": "structure", + "members": { + "Document": { + "target": "com.amazonaws.textract#Document", + "traits": { + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.textract#AnalyzeExpenseResponse": { + "type": "structure", + "members": { + "DocumentMetadata": { + "target": "com.amazonaws.textract#DocumentMetadata" + }, + "ExpenseDocuments": { + "target": "com.amazonaws.textract#ExpenseDocumentList", + "traits": { + "smithy.api#documentation": "

The expenses detected by Amazon Textract.

" + } + } + } + }, "com.amazonaws.textract#BadDocumentException": { "type": "structure", "members": { @@ -181,7 +247,7 @@ "TextType": { "target": "com.amazonaws.textract#TextType", "traits": { - "smithy.api#documentation": "

The kind of text that Amazon Textract has detected. Can check for handwritten text and printed text.

" + "smithy.api#documentation": "

The kind of text that Amazon Textract has detected. Can check for handwritten text and\n printed text.

" } }, "RowIndex": { @@ -199,13 +265,13 @@ "RowSpan": { "target": "com.amazonaws.textract#UInteger", "traits": { - "smithy.api#documentation": "

The number of rows that a table cell spans. Currently this value is always 1, even\n if the number of rows spanned is greater than 1. RowSpan isn't returned by\n DetectDocumentText and GetDocumentTextDetection.

" + "smithy.api#documentation": "

The number of rows that a table cell spans. Currently this value is always 1, even if\n the number of rows spanned is greater than 1. RowSpan isn't returned by\n DetectDocumentText and GetDocumentTextDetection.

" } }, "ColumnSpan": { "target": "com.amazonaws.textract#UInteger", "traits": { - "smithy.api#documentation": "

The number of columns that a table cell spans. Currently this value is always 1, even\n if the number of columns spanned is greater than 1. ColumnSpan isn't returned by\n DetectDocumentText and GetDocumentTextDetection.

" + "smithy.api#documentation": "

The number of columns that a table cell spans. Currently this value is always 1, even if\n the number of columns spanned is greater than 1. ColumnSpan isn't returned by\n DetectDocumentText and GetDocumentTextDetection.

" } }, "Geometry": { @@ -235,7 +301,7 @@ "SelectionStatus": { "target": "com.amazonaws.textract#SelectionStatus", "traits": { - "smithy.api#documentation": "

The selection status of a selection element, such as an option button or check box.

" + "smithy.api#documentation": "

The selection status of a selection element, such as an option button or check box.\n

" } }, "Page": { @@ -319,7 +385,7 @@ } }, "traits": { - "smithy.api#documentation": "

The bounding box around the detected page, text, key-value pair, table, table cell, or selection element on a\n document page. The left (x-coordinate) and top (y-coordinate) are\n coordinates that represent the top and left sides of the bounding box. Note that the\n upper-left corner of the image is the origin (0,0).

\n

The top and left values returned are ratios of the overall\n document page size. For example, if the input image is 700 x 200 pixels, and the top-left\n coordinate of the bounding box is 350 x 50 pixels, the API returns a left\n value of 0.5 (350/700) and a top value of 0.25 (50/200).

\n

The width and height values represent the dimensions of the\n bounding box as a ratio of the overall document page dimension. For example, if the\n document page size is 700 x 200 pixels, and the bounding box width is 70 pixels, the width\n returned is 0.1.

" + "smithy.api#documentation": "

The bounding box around the detected page, text, key-value pair, table, table cell, or\n selection element on a document page. The left (x-coordinate) and\n top (y-coordinate) are coordinates that represent the top and left sides of\n the bounding box. Note that the upper-left corner of the image is the origin (0,0).

\n

The top and left values returned are ratios of the overall\n document page size. For example, if the input image is 700 x 200 pixels, and the top-left\n coordinate of the bounding box is 350 x 50 pixels, the API returns a left\n value of 0.5 (350/700) and a top value of 0.25 (50/200).

\n

The width and height values represent the dimensions of the\n bounding box as a ratio of the overall document page dimension. For example, if the\n document page size is 700 x 200 pixels, and the bounding box width is 70 pixels, the width\n returned is 0.1.

" } }, "com.amazonaws.textract#ClientRequestToken": { @@ -522,6 +588,119 @@ "com.amazonaws.textract#ErrorCode": { "type": "string" }, + "com.amazonaws.textract#ExpenseDetection": { + "type": "structure", + "members": { + "Text": { + "target": "com.amazonaws.textract#String", + "traits": { + "smithy.api#documentation": "

The word or line of text recognized by Amazon Textract

" + } + }, + "Geometry": { + "target": "com.amazonaws.textract#Geometry" + }, + "Confidence": { + "target": "com.amazonaws.textract#Percent", + "traits": { + "smithy.api#documentation": "

The confidence in detection, as a percentage

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An object used to store information about the Value or Label detected by Amazon Textract.

" + } + }, + "com.amazonaws.textract#ExpenseDocument": { + "type": "structure", + "members": { + "ExpenseIndex": { + "target": "com.amazonaws.textract#UInteger", + "traits": { + "smithy.api#documentation": "

Denotes which invoice or receipt in the document the information is coming from. \n First document will be 1, the second 2, and so on.

" + } + }, + "SummaryFields": { + "target": "com.amazonaws.textract#ExpenseFieldList", + "traits": { + "smithy.api#documentation": "

Any information found outside of a table by Amazon Textract.

" + } + }, + "LineItemGroups": { + "target": "com.amazonaws.textract#LineItemGroupList", + "traits": { + "smithy.api#documentation": "

Information detected on each table of a document, seperated into LineItems.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The structure holding all the information returned by AnalyzeExpense

" + } + }, + "com.amazonaws.textract#ExpenseDocumentList": { + "type": "list", + "member": { + "target": "com.amazonaws.textract#ExpenseDocument" + } + }, + "com.amazonaws.textract#ExpenseField": { + "type": "structure", + "members": { + "Type": { + "target": "com.amazonaws.textract#ExpenseType", + "traits": { + "smithy.api#documentation": "

The implied label of a detected element. Present alongside LabelDetection for explicit elements.

" + } + }, + "LabelDetection": { + "target": "com.amazonaws.textract#ExpenseDetection", + "traits": { + "smithy.api#documentation": "

The explicitly stated label of a detected element.

" + } + }, + "ValueDetection": { + "target": "com.amazonaws.textract#ExpenseDetection", + "traits": { + "smithy.api#documentation": "

The value of a detected element. Present in explicit and implicit elements.

" + } + }, + "PageNumber": { + "target": "com.amazonaws.textract#UInteger", + "traits": { + "smithy.api#documentation": "

The page number the value was detected on.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Breakdown of detected information, seperated into \n the catagories Type, LableDetection, and ValueDetection

" + } + }, + "com.amazonaws.textract#ExpenseFieldList": { + "type": "list", + "member": { + "target": "com.amazonaws.textract#ExpenseField" + } + }, + "com.amazonaws.textract#ExpenseType": { + "type": "structure", + "members": { + "Text": { + "target": "com.amazonaws.textract#String", + "traits": { + "smithy.api#documentation": "

The word or line of text detected by Amazon Textract.

" + } + }, + "Confidence": { + "target": "com.amazonaws.textract#Percent", + "traits": { + "smithy.api#documentation": "

The confidence of accuracy, as a percentage.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An object used to store information about the Type detected by Amazon Textract.

" + } + }, "com.amazonaws.textract#FeatureType": { "type": "string", "traits": { @@ -593,6 +772,9 @@ { "target": "com.amazonaws.textract#InvalidJobIdException" }, + { + "target": "com.amazonaws.textract#InvalidKMSKeyException" + }, { "target": "com.amazonaws.textract#InvalidParameterException" }, @@ -699,6 +881,9 @@ { "target": "com.amazonaws.textract#InvalidJobIdException" }, + { + "target": "com.amazonaws.textract#InvalidKMSKeyException" + }, { "target": "com.amazonaws.textract#InvalidParameterException" }, @@ -805,12 +990,12 @@ "HumanLoopActivationConditionsEvaluationResults": { "target": "com.amazonaws.textract#SynthesizedJsonHumanLoopActivationConditionsEvaluationResults", "traits": { - "smithy.api#documentation": "

Shows the result of condition evaluations, including those conditions which activated a human review.

" + "smithy.api#documentation": "

Shows the result of condition evaluations, including those conditions which activated a\n human review.

" } } }, "traits": { - "smithy.api#documentation": "

Shows the results of the human in the loop evaluation. If there is no HumanLoopArn, the input \n did not trigger human review.

" + "smithy.api#documentation": "

Shows the results of the human in the loop evaluation. If there is no HumanLoopArn, the\n input did not trigger human review.

" } }, "com.amazonaws.textract#HumanLoopActivationReason": { @@ -842,7 +1027,7 @@ "HumanLoopName": { "target": "com.amazonaws.textract#HumanLoopName", "traits": { - "smithy.api#documentation": "

The name of the human workflow used for this image. This should be kept unique within a region.

", + "smithy.api#documentation": "

The name of the human workflow used for this image. This should be kept unique within a\n region.

", "smithy.api#required": {} } }, @@ -861,7 +1046,7 @@ } }, "traits": { - "smithy.api#documentation": "

Sets up the human review workflow the document will be sent to if one of the conditions is met. You can also set certain attributes \n of the image before review.

" + "smithy.api#documentation": "

Sets up the human review workflow the document will be sent to if one of the conditions\n is met. You can also set certain attributes of the image before review.

" } }, "com.amazonaws.textract#HumanLoopDataAttributes": { @@ -870,12 +1055,12 @@ "ContentClassifiers": { "target": "com.amazonaws.textract#ContentClassifiers", "traits": { - "smithy.api#documentation": "

Sets whether the input image is free of personally identifiable information or adult content.

" + "smithy.api#documentation": "

Sets whether the input image is free of personally identifiable information or adult\n content.

" } } }, "traits": { - "smithy.api#documentation": "

Allows you to set attributes of the image. Currently, you can declare an image as free of\n personally identifiable information and adult content.

" + "smithy.api#documentation": "

Allows you to set attributes of the image. Currently, you can declare an image as free\n of personally identifiable information and adult content.

" } }, "com.amazonaws.textract#HumanLoopName": { @@ -885,7 +1070,7 @@ "min": 1, "max": 63 }, - "smithy.api#pattern": "^[a-z0-9](-*[a-z0-9])*" + "smithy.api#pattern": "^[a-z0-9](-*[a-z0-9])*$" } }, "com.amazonaws.textract#HumanLoopQuotaExceededException": { @@ -1067,7 +1252,7 @@ "min": 1, "max": 64 }, - "smithy.api#pattern": "[a-zA-Z0-9_.\\-:]+" + "smithy.api#pattern": "^[a-zA-Z0-9_.\\-:]+$" } }, "com.amazonaws.textract#KMSKeyId": { @@ -1095,6 +1280,52 @@ "smithy.api#error": "client" } }, + "com.amazonaws.textract#LineItemFields": { + "type": "structure", + "members": { + "LineItemExpenseFields": { + "target": "com.amazonaws.textract#ExpenseFieldList", + "traits": { + "smithy.api#documentation": "

ExpenseFields used to show information from detected lines on a table.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A structure that holds information about the different lines found in a document's tables.

" + } + }, + "com.amazonaws.textract#LineItemGroup": { + "type": "structure", + "members": { + "LineItemGroupIndex": { + "target": "com.amazonaws.textract#UInteger", + "traits": { + "smithy.api#documentation": "

The number used to identify a specific table in a document. The first table encountered will have a LineItemGroupIndex of 1, the second 2, etc.

" + } + }, + "LineItems": { + "target": "com.amazonaws.textract#LineItemList", + "traits": { + "smithy.api#documentation": "

The breakdown of information on a particular line of a table.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A grouping of tables which contain LineItems, with each table identified by the table's LineItemGroupIndex.

" + } + }, + "com.amazonaws.textract#LineItemGroupList": { + "type": "list", + "member": { + "target": "com.amazonaws.textract#LineItemGroup" + } + }, + "com.amazonaws.textract#LineItemList": { + "type": "list", + "member": { + "target": "com.amazonaws.textract#LineItemFields" + } + }, "com.amazonaws.textract#MaxResults": { "type": "integer", "traits": { @@ -1107,7 +1338,7 @@ "com.amazonaws.textract#NonEmptyString": { "type": "string", "traits": { - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.textract#NotificationChannel": { @@ -1145,12 +1376,12 @@ "S3Prefix": { "target": "com.amazonaws.textract#S3ObjectName", "traits": { - "smithy.api#documentation": "

The prefix of the object key that the output will be saved to. When \n not enabled, the prefix will be “textract_output\".

" + "smithy.api#documentation": "

The prefix of the object key that the output will be saved to. When not enabled, the\n prefix will be “textract_output\".

" } } }, "traits": { - "smithy.api#documentation": "

Sets whether or not your output will go to a user created bucket. \n Used to set the name of the bucket, and the prefix on the output \n file.

" + "smithy.api#documentation": "

Sets whether or not your output will go to a user created bucket. Used to set the name\n of the bucket, and the prefix on the output file.

\n

\n OutputConfig is an optional parameter which lets you adjust where your output will be placed. \n By default, Amazon Textract will store the results internally and can only be accessed by the Get \n API operations. With OutputConfig enabled, you can set the name of the bucket the output will be \n sent to and the file prefix of the results where you can download your results. Additionally, you \n can set the KMSKeyID parameter to a customer master key (CMK) to encrypt your output. Without this\n parameter set Amazon Textract will encrypt server-side using the AWS managed CMK for Amazon S3.

\n

Decryption of Customer Content is necessary for processing of the documents by Amazon Textract. If your account \n is opted out under an AI services opt out policy then all unencrypted Customer Content is immediately and permanently deleted after \n the Customer Content has been processed by the service. No copy of of the output is retained by Amazon Textract. For information about how to opt out, see Managing AI services opt-out policy. \n

\n

For more information on data privacy,\n see the Data Privacy\n FAQ.

" } }, "com.amazonaws.textract#Pages": { @@ -1166,7 +1397,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.textract#Percent": { @@ -1226,7 +1457,7 @@ "Type": { "target": "com.amazonaws.textract#RelationshipType", "traits": { - "smithy.api#documentation": "

The type of relationship that the blocks in the IDs array have with the current block.\n The relationship can be VALUE or CHILD. A relationship of type \n VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. \n A relationship of type CHILD is a list of IDs that identify WORD blocks in the case of lines\n Cell blocks in the case of Tables, and WORD blocks in the case of Selection Elements.

" + "smithy.api#documentation": "

The type of relationship that the blocks in the IDs array have with the current block.\n The relationship can be VALUE or CHILD. A relationship of type\n VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a\n key-value pair. A relationship of type CHILD is a list of IDs that identify WORD blocks in\n the case of lines Cell blocks in the case of Tables, and WORD blocks in the case of\n Selection Elements.

" } }, "Ids": { @@ -1272,7 +1503,7 @@ "min": 20, "max": 2048 }, - "smithy.api#pattern": "arn:([a-z\\d-]+):iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" + "smithy.api#pattern": "^arn:([a-z\\d-]+):iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$" } }, "com.amazonaws.textract#S3Bucket": { @@ -1282,7 +1513,7 @@ "min": 3, "max": 255 }, - "smithy.api#pattern": "[0-9A-Za-z\\.\\-_]*" + "smithy.api#pattern": "^[0-9A-Za-z\\.\\-_]*$" } }, "com.amazonaws.textract#S3Object": { @@ -1291,7 +1522,7 @@ "Bucket": { "target": "com.amazonaws.textract#S3Bucket", "traits": { - "smithy.api#documentation": "

The name of the S3 bucket.

" + "smithy.api#documentation": "

The name of the S3 bucket. Note that the # character is not valid in the file\n name.

" } }, "Name": { @@ -1318,7 +1549,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.textract#S3ObjectVersion": { @@ -1328,7 +1559,7 @@ "min": 1, "max": 1024 }, - "smithy.api#pattern": ".*\\S.*" + "smithy.api#pattern": "\\S" } }, "com.amazonaws.textract#SNSTopicArn": { @@ -1338,7 +1569,7 @@ "min": 20, "max": 1024 }, - "smithy.api#pattern": "(^arn:([a-z\\d-]+):sns:[a-zA-Z\\d-]{1,20}:\\w{12}:.+$)" + "smithy.api#pattern": "^(^arn:([a-z\\d-]+):sns:[a-zA-Z\\d-]{1,20}:\\w{12}:.+$)$" } }, "com.amazonaws.textract#SelectionStatus": { @@ -1607,6 +1838,9 @@ { "target": "com.amazonaws.textract#AnalyzeDocument" }, + { + "target": "com.amazonaws.textract#AnalyzeExpense" + }, { "target": "com.amazonaws.textract#DetectDocumentText" }, diff --git a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json index eac65a57d69..58aab318563 100644 --- a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json +++ b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json @@ -214,6 +214,9 @@ "RoboMaker": "robomaker", "Route 53": "route53", "Route 53 Domains": "route53domains", + "Route53 Recovery Cluster": "route53-recovery-cluster", + "Route53 Recovery Control Config": "route53-recovery-control-config", + "Route53 Recovery Readiness": "route53-recovery-readiness", "Route53Resolver": "route53resolver", "S3": "s3", "S3 Control": "s3-control", From ebcd3c0ca543d8732e0607280f1d379096f2c2e6 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Mon, 2 Aug 2021 14:09:55 -0700 Subject: [PATCH 5/6] Regenerated API Clients --- .../2195532b709e4ad5b6d42f8984a305c1.json | 59 + .../41575353444b40ffbf474f4155544f00.json | 10 + .../api_op_CreateEventIntegration.go | 9 +- .../api_op_DeleteEventIntegration.go | 5 +- .../api_op_GetEventIntegration.go | 5 +- ...api_op_ListEventIntegrationAssociations.go | 4 +- .../api_op_ListEventIntegrations.go | 3 +- .../api_op_ListTagsForResource.go | 3 +- service/appintegrations/api_op_TagResource.go | 3 +- .../appintegrations/api_op_UntagResource.go | 3 +- .../api_op_UpdateEventIntegration.go | 3 +- service/appintegrations/doc.go | 3 +- service/appintegrations/types/types.go | 13 +- service/appsync/api_op_CreateDataSource.go | 6 +- service/appsync/api_op_CreateGraphqlApi.go | 6 +- service/appsync/api_op_UpdateDataSource.go | 2 +- service/appsync/api_op_UpdateGraphqlApi.go | 3 + service/appsync/deserializers.go | 72 + service/appsync/doc.go | 2 +- service/appsync/serializers.go | 43 + service/appsync/types/enums.go | 2 + service/appsync/types/errors.go | 2 +- service/appsync/types/types.go | 120 +- service/appsync/validators.go | 30 + ...AssociateAssessmentReportEvidenceFolder.go | 2 +- ..._BatchAssociateAssessmentReportEvidence.go | 2 +- ...pi_op_BatchCreateDelegationByAssessment.go | 4 +- ...pi_op_BatchDeleteDelegationByAssessment.go | 2 +- ...tchDisassociateAssessmentReportEvidence.go | 4 +- ..._BatchImportEvidenceToAssessmentControl.go | 2 +- .../auditmanager/api_op_CreateAssessment.go | 10 +- .../api_op_CreateAssessmentFramework.go | 2 +- service/auditmanager/api_op_CreateControl.go | 2 +- .../auditmanager/api_op_DeleteAssessment.go | 2 +- .../api_op_DeleteAssessmentFramework.go | 2 +- .../api_op_DeleteAssessmentReport.go | 2 +- service/auditmanager/api_op_DeleteControl.go | 2 +- .../auditmanager/api_op_DeregisterAccount.go | 2 +- ...i_op_DeregisterOrganizationAdminAccount.go | 7 +- ...associateAssessmentReportEvidenceFolder.go | 4 +- .../auditmanager/api_op_GetAccountStatus.go | 4 +- service/auditmanager/api_op_GetAssessment.go | 9 +- .../api_op_GetAssessmentFramework.go | 2 +- .../api_op_GetAssessmentReportUrl.go | 2 +- service/auditmanager/api_op_GetChangeLogs.go | 2 +- service/auditmanager/api_op_GetControl.go | 2 +- service/auditmanager/api_op_GetEvidence.go | 2 +- .../api_op_GetEvidenceByEvidenceFolder.go | 2 +- .../auditmanager/api_op_GetEvidenceFolder.go | 2 +- .../api_op_GetEvidenceFoldersByAssessment.go | 2 +- ...p_GetEvidenceFoldersByAssessmentControl.go | 2 +- .../api_op_GetOrganizationAdminAccount.go | 4 +- .../auditmanager/api_op_GetServicesInScope.go | 5 +- service/auditmanager/api_op_GetSettings.go | 4 +- .../api_op_ListAssessmentFrameworks.go | 2 +- .../api_op_ListAssessmentReports.go | 2 +- .../auditmanager/api_op_ListAssessments.go | 2 +- service/auditmanager/api_op_ListControls.go | 2 +- .../auditmanager/api_op_ListNotifications.go | 2 +- .../api_op_ListTagsForResource.go | 2 +- .../auditmanager/api_op_RegisterAccount.go | 6 +- ...api_op_RegisterOrganizationAdminAccount.go | 6 +- service/auditmanager/api_op_TagResource.go | 2 +- service/auditmanager/api_op_UntagResource.go | 2 +- .../auditmanager/api_op_UpdateAssessment.go | 2 +- .../api_op_UpdateAssessmentControl.go | 2 +- ...api_op_UpdateAssessmentControlSetStatus.go | 2 +- .../api_op_UpdateAssessmentFramework.go | 2 +- .../api_op_UpdateAssessmentStatus.go | 2 +- service/auditmanager/api_op_UpdateControl.go | 2 +- service/auditmanager/api_op_UpdateSettings.go | 8 +- ...pi_op_ValidateAssessmentReportIntegrity.go | 2 +- service/auditmanager/doc.go | 22 +- service/auditmanager/types/errors.go | 4 +- service/auditmanager/types/types.go | 170 +- service/batch/api_op_CancelJob.go | 12 +- .../batch/api_op_CreateComputeEnvironment.go | 93 +- service/batch/api_op_CreateJobQueue.go | 24 +- .../batch/api_op_DeleteComputeEnvironment.go | 4 +- .../batch/api_op_DeregisterJobDefinition.go | 2 +- .../batch/api_op_DescribeJobDefinitions.go | 6 +- service/batch/api_op_DescribeJobs.go | 2 +- service/batch/api_op_ListJobs.go | 37 +- service/batch/api_op_ListTagsForResource.go | 8 +- service/batch/api_op_RegisterJobDefinition.go | 28 +- service/batch/api_op_SubmitJob.go | 24 +- service/batch/api_op_TagResource.go | 12 +- service/batch/api_op_TerminateJob.go | 4 +- service/batch/api_op_UntagResource.go | 10 +- .../batch/api_op_UpdateComputeEnvironment.go | 39 +- service/batch/api_op_UpdateJobQueue.go | 2 +- service/batch/deserializers.go | 9 + service/batch/doc.go | 26 +- service/batch/serializers.go | 39 + service/batch/types/types.go | 611 +- .../chime/api_op_StartMeetingTranscription.go | 123 + .../chime/api_op_StopMeetingTranscription.go | 116 + service/chime/deserializers.go | 220 + service/chime/generated.json | 2 + service/chime/serializers.go | 226 + service/chime/types/enums.go | 200 + service/chime/types/types.go | 72 +- service/chime/validators.go | 143 + .../api_op_CancelUpdateStack.go | 6 +- .../api_op_ContinueUpdateRollback.go | 83 +- .../cloudformation/api_op_CreateChangeSet.go | 133 +- service/cloudformation/api_op_CreateStack.go | 92 +- .../api_op_CreateStackInstances.go | 65 +- .../cloudformation/api_op_CreateStackSet.go | 104 +- .../cloudformation/api_op_DeleteChangeSet.go | 2 +- service/cloudformation/api_op_DeleteStack.go | 22 +- .../api_op_DeleteStackInstances.go | 23 +- .../cloudformation/api_op_DeleteStackSet.go | 8 +- .../api_op_DescribeAccountLimits.go | 12 +- .../api_op_DescribeChangeSet.go | 216 +- ...pi_op_DescribeStackDriftDetectionStatus.go | 24 +- .../api_op_DescribeStackEvents.go | 2 +- .../api_op_DescribeStackInstance.go | 12 +- .../api_op_DescribeStackResourceDrifts.go | 22 +- .../api_op_DescribeStackResources.go | 34 +- .../cloudformation/api_op_DescribeStackSet.go | 8 +- .../api_op_DescribeStackSetOperation.go | 8 +- .../cloudformation/api_op_DescribeStacks.go | 1579 ++++ service/cloudformation/api_op_DescribeType.go | 21 +- .../cloudformation/api_op_DetectStackDrift.go | 8 +- .../api_op_DetectStackResourceDrift.go | 2 +- .../api_op_DetectStackSetDrift.go | 10 +- .../api_op_EstimateTemplateCost.go | 16 +- .../cloudformation/api_op_ExecuteChangeSet.go | 24 +- .../cloudformation/api_op_GetStackPolicy.go | 2 +- service/cloudformation/api_op_GetTemplate.go | 20 +- .../api_op_GetTemplateSummary.go | 23 +- .../api_op_ImportStacksToStackSet.go | 187 + .../cloudformation/api_op_ListChangeSets.go | 2 +- service/cloudformation/api_op_ListExports.go | 3 +- service/cloudformation/api_op_ListImports.go | 4 +- .../api_op_ListStackInstances.go | 12 +- .../api_op_ListStackSetOperationResults.go | 8 +- .../api_op_ListStackSetOperations.go | 8 +- .../cloudformation/api_op_ListStackSets.go | 14 +- service/cloudformation/api_op_ListTypes.go | 2 +- service/cloudformation/api_op_PublishType.go | 4 +- .../api_op_RegisterPublisher.go | 11 +- service/cloudformation/api_op_RegisterType.go | 20 +- .../cloudformation/api_op_SetStackPolicy.go | 4 +- .../api_op_SetTypeConfiguration.go | 2 +- .../cloudformation/api_op_SignalResource.go | 4 +- .../api_op_StopStackSetOperation.go | 8 +- service/cloudformation/api_op_TestType.go | 4 +- service/cloudformation/api_op_UpdateStack.go | 92 +- .../api_op_UpdateStackInstances.go | 55 +- .../cloudformation/api_op_UpdateStackSet.go | 119 +- .../api_op_UpdateTerminationProtection.go | 2 +- .../cloudformation/api_op_ValidateTemplate.go | 14 +- service/cloudformation/deserializers.go | 268 + service/cloudformation/doc.go | 29 +- service/cloudformation/generated.json | 1 + service/cloudformation/serializers.go | 110 + service/cloudformation/types/errors.go | 22 +- service/cloudformation/types/types.go | 439 +- service/cloudformation/validators.go | 42 + .../cloudwatch/api_op_GetMetricStatistics.go | 3 +- .../cloudwatch/api_op_GetMetricWidgetImage.go | 7 +- service/cloudwatch/api_op_PutMetricAlarm.go | 43 +- service/cloudwatch/api_op_PutMetricData.go | 4 +- service/cloudwatch/api_op_PutMetricStream.go | 12 +- service/cloudwatch/api_op_TagResource.go | 14 +- service/cloudwatch/deserializers.go | 13 + service/cloudwatch/doc.go | 25 +- service/cloudwatch/serializers.go | 5 + service/cloudwatch/types/types.go | 17 +- service/codebuild/api_op_BatchGetProjects.go | 4 +- service/codebuild/api_op_CreateProject.go | 67 +- service/codebuild/api_op_CreateReportGroup.go | 4 +- service/codebuild/api_op_CreateWebhook.go | 24 +- service/codebuild/api_op_DeleteWebhook.go | 8 +- .../api_op_ImportSourceCredentials.go | 6 +- .../api_op_InvalidateProjectCache.go | 2 +- .../codebuild/api_op_ListBuildsForProject.go | 2 +- .../api_op_ListCuratedEnvironmentImages.go | 4 +- service/codebuild/api_op_ListReportGroups.go | 6 +- service/codebuild/api_op_ListReports.go | 6 +- .../codebuild/api_op_ListSharedProjects.go | 19 +- .../api_op_ListSharedReportGroups.go | 19 +- service/codebuild/api_op_PutResourcePolicy.go | 2 +- service/codebuild/api_op_RetryBuild.go | 2 +- service/codebuild/api_op_RetryBuildBatch.go | 4 +- service/codebuild/api_op_StartBuild.go | 44 +- service/codebuild/api_op_StartBuildBatch.go | 36 +- service/codebuild/api_op_UpdateProject.go | 66 +- service/codebuild/api_op_UpdateReportGroup.go | 4 +- service/codebuild/api_op_UpdateWebhook.go | 6 +- service/codebuild/deserializers.go | 27 + service/codebuild/doc.go | 18 +- service/codebuild/serializers.go | 10 + service/codebuild/types/enums.go | 20 + service/codebuild/types/errors.go | 9 +- service/codebuild/types/types.go | 662 +- .../api_op_AdminConfirmSignUp.go | 8 +- .../api_op_AdminCreateUser.go | 16 +- .../api_op_AdminInitiateAuth.go | 48 +- .../api_op_AdminResetUserPassword.go | 22 +- .../api_op_AdminRespondToAuthChallenge.go | 12 +- .../api_op_AdminUpdateUserAttributes.go | 10 +- .../api_op_ConfirmForgotPassword.go | 20 +- .../api_op_ConfirmSignUp.go | 10 +- .../api_op_CreateUserPool.go | 6 +- .../api_op_CreateUserPoolClient.go | 2 +- .../api_op_ForgotPassword.go | 10 +- ...api_op_GetUserAttributeVerificationCode.go | 16 +- .../api_op_InitiateAuth.go | 12 +- .../api_op_ListUserPools.go | 2 +- .../api_op_ResendConfirmationCode.go | 24 +- .../api_op_RespondToAuthChallenge.go | 27 +- .../api_op_SetUserPoolMfaConfig.go | 4 +- .../cognitoidentityprovider/api_op_SignUp.go | 8 +- .../api_op_UpdateGroup.go | 3 +- .../api_op_UpdateUserAttributes.go | 24 +- .../api_op_UpdateUserPool.go | 7 +- .../api_op_UpdateUserPoolClient.go | 2 +- .../api_op_UpdateUserPoolDomain.go | 4 +- .../cognitoidentityprovider/types/errors.go | 10 +- .../cognitoidentityprovider/types/types.go | 74 +- service/computeoptimizer/types/types.go | 8 +- service/databrew/api_op_CreateProfileJob.go | 5 + service/databrew/api_op_CreateRecipeJob.go | 8 +- service/databrew/api_op_DescribeJob.go | 13 +- service/databrew/api_op_DescribeJobRun.go | 13 +- service/databrew/api_op_UpdateProfileJob.go | 5 + service/databrew/api_op_UpdateRecipeJob.go | 8 +- service/databrew/deserializers.go | 478 ++ service/databrew/serializers.go | 221 + service/databrew/types/enums.go | 16 + service/databrew/types/types.go | 147 +- service/databrew/validators.go | 169 + ...api_op_AllocateConnectionOnInterconnect.go | 6 +- .../api_op_AllocateHostedConnection.go | 6 +- .../api_op_AllocatePrivateVirtualInterface.go | 6 +- .../api_op_AllocatePublicVirtualInterface.go | 6 +- .../api_op_AssociateConnectionWithLag.go | 6 +- .../api_op_AssociateHostedConnection.go | 6 +- .../api_op_AssociateVirtualInterface.go | 6 +- .../directconnect/api_op_CreateConnection.go | 6 +- .../api_op_CreateInterconnect.go | 6 +- service/directconnect/api_op_CreateLag.go | 4 +- .../api_op_CreatePrivateVirtualInterface.go | 6 +- .../api_op_CreatePublicVirtualInterface.go | 6 +- .../directconnect/api_op_DeleteConnection.go | 6 +- service/directconnect/api_op_DeleteLag.go | 4 +- .../api_op_DisassociateConnectionFromLag.go | 6 +- .../directconnect/api_op_UpdateConnection.go | 6 +- service/directconnect/api_op_UpdateLag.go | 4 +- ...api_op_UpdateVirtualInterfaceAttributes.go | 6 +- service/directconnect/types/types.go | 26 +- service/ec2/api_op_AllocateAddress.go | 31 +- service/ec2/api_op_AssignIpv6Addresses.go | 19 +- .../ec2/api_op_AssignPrivateIpAddresses.go | 19 +- service/ec2/api_op_AssociateDhcpOptions.go | 2 +- .../api_op_AssociateInstanceEventWindow.go | 136 + service/ec2/api_op_AssociateRouteTable.go | 2 +- service/ec2/api_op_AssociateVpcCidrBlock.go | 2 +- service/ec2/api_op_AttachVolume.go | 25 +- service/ec2/api_op_ConfirmProductInstance.go | 4 +- service/ec2/api_op_CopySnapshot.go | 53 +- .../ec2/api_op_CreateCapacityReservation.go | 8 +- service/ec2/api_op_CreateCarrierGateway.go | 4 +- service/ec2/api_op_CreateDefaultSubnet.go | 2 +- service/ec2/api_op_CreateDefaultVpc.go | 2 +- service/ec2/api_op_CreateDhcpOptions.go | 2 +- .../api_op_CreateEgressOnlyInternetGateway.go | 2 +- service/ec2/api_op_CreateFlowLogs.go | 8 +- .../ec2/api_op_CreateInstanceEventWindow.go | 174 + service/ec2/api_op_CreateNatGateway.go | 4 +- .../ec2/api_op_CreateNetworkInsightsPath.go | 12 +- service/ec2/api_op_CreateNetworkInterface.go | 18 + ...api_op_CreateNetworkInterfacePermission.go | 5 +- .../ec2/api_op_CreateReplaceRootVolumeTask.go | 5 +- service/ec2/api_op_CreateRoute.go | 2 +- service/ec2/api_op_CreateRouteTable.go | 2 +- service/ec2/api_op_CreateSnapshot.go | 58 +- service/ec2/api_op_CreateSnapshots.go | 4 +- .../api_op_CreateSpotDatafeedSubscription.go | 4 +- service/ec2/api_op_CreateSubnet.go | 27 +- .../ec2/api_op_CreateSubnetCidrReservation.go | 156 + service/ec2/api_op_CreateVolume.go | 88 +- service/ec2/api_op_CreateVpc.go | 4 +- .../ec2/api_op_CreateVpcPeeringConnection.go | 12 +- .../ec2/api_op_DeleteInstanceEventWindow.go | 134 + service/ec2/api_op_DeleteSnapshot.go | 2 +- .../ec2/api_op_DeleteSubnetCidrReservation.go | 127 + service/ec2/api_op_DeleteTags.go | 3 +- service/ec2/api_op_DeleteVolume.go | 2 +- ...sterInstanceEventNotificationAttributes.go | 4 +- service/ec2/api_op_DescribeAddresses.go | 28 +- .../api_op_DescribeCapacityReservations.go | 124 +- service/ec2/api_op_DescribeCarrierGateways.go | 23 +- service/ec2/api_op_DescribeDhcpOptions.go | 22 +- .../api_op_DescribeFastSnapshotRestores.go | 12 +- .../api_op_DescribeInstanceEventWindows.go | 274 + service/ec2/api_op_DescribeInstances.go | 85 +- .../ec2/api_op_DescribeInternetGateways.go | 18 +- service/ec2/api_op_DescribeNetworkAcls.go | 22 +- ..._op_DescribeNetworkInterfacePermissions.go | 12 +- .../ec2/api_op_DescribeNetworkInterfaces.go | 62 +- .../api_op_DescribeReplaceRootVolumeTasks.go | 5 +- service/ec2/api_op_DescribeRouteTables.go | 22 +- service/ec2/api_op_DescribeSnapshots.go | 115 +- service/ec2/api_op_DescribeSubnets.go | 35 +- service/ec2/api_op_DescribeVolumeStatus.go | 2 +- .../api_op_DescribeVolumesModifications.go | 4 +- .../api_op_DescribeVpcPeeringConnections.go | 55 +- service/ec2/api_op_DescribeVpcs.go | 28 +- service/ec2/api_op_DetachVolume.go | 6 +- .../api_op_DisassociateInstanceEventWindow.go | 135 + service/ec2/api_op_DisassociateRouteTable.go | 2 +- .../api_op_EnableEbsEncryptionByDefault.go | 6 +- .../ec2/api_op_EnableFastSnapshotRestores.go | 3 +- .../ec2/api_op_GetCapacityReservationUsage.go | 5 +- service/ec2/api_op_GetEbsDefaultKmsKeyId.go | 10 +- .../ec2/api_op_GetSubnetCidrReservations.go | 159 + ...api_op_ModifyDefaultCreditSpecification.go | 20 +- .../ec2/api_op_ModifyEbsDefaultKmsKeyId.go | 37 +- .../ec2/api_op_ModifyInstanceEventWindow.go | 166 + service/ec2/api_op_ModifySnapshotAttribute.go | 16 +- service/ec2/api_op_ModifyVolume.go | 55 +- ...pi_op_ModifyVpcPeeringConnectionOptions.go | 19 +- service/ec2/api_op_ReleaseAddress.go | 6 +- service/ec2/api_op_ReplaceRoute.go | 2 +- .../api_op_ReplaceRouteTableAssociation.go | 2 +- service/ec2/api_op_ResetEbsDefaultKmsKeyId.go | 13 +- service/ec2/api_op_ResetSnapshotAttribute.go | 2 +- service/ec2/api_op_RunInstances.go | 4 +- .../api_op_StartNetworkInsightsAnalysis.go | 2 +- service/ec2/api_op_UnassignIpv6Addresses.go | 19 +- .../ec2/api_op_UnassignPrivateIpAddresses.go | 8 +- service/ec2/deserializers.go | 5831 ++++++++++---- service/ec2/generated.json | 9 + service/ec2/serializers.go | 1421 +++- service/ec2/types/enums.go | 74 + service/ec2/types/types.go | 515 +- service/ec2/validators.go | 297 +- service/ecs/api_op_CreateCapacityProvider.go | 12 +- service/ecs/api_op_CreateCluster.go | 19 +- service/ecs/api_op_CreateService.go | 59 +- service/ecs/api_op_CreateTaskSet.go | 16 +- .../ecs/api_op_DeregisterContainerInstance.go | 2 +- service/ecs/api_op_DescribeTaskDefinition.go | 6 +- service/ecs/api_op_DiscoverPollEndpoint.go | 4 +- .../ecs/api_op_PutClusterCapacityProviders.go | 8 +- .../ecs/api_op_RegisterContainerInstance.go | 6 +- service/ecs/api_op_RegisterTaskDefinition.go | 73 +- service/ecs/api_op_RunTask.go | 32 +- service/ecs/api_op_StartTask.go | 6 +- service/ecs/api_op_TagResource.go | 6 +- service/ecs/api_op_UpdateService.go | 12 +- service/ecs/doc.go | 2 +- service/ecs/types/errors.go | 4 +- service/ecs/types/types.go | 290 +- .../api_op_DescribeLoadBalancers.go | 538 ++ .../api_op_DescribeTargetHealth.go | 371 + service/elasticloadbalancingv2/generated.json | 3 +- service/elasticloadbalancingv2/go.mod | 1 + service/elasticloadbalancingv2/go.sum | 6 + service/elasticloadbalancingv2/types/types.go | 48 +- service/emr/api_op_CancelSteps.go | 5 +- service/emr/api_op_CreateStudio.go | 3 +- .../emr/api_op_CreateStudioSessionMapping.go | 18 +- .../emr/api_op_DeleteStudioSessionMapping.go | 8 +- service/emr/api_op_DescribeReleaseLabel.go | 132 + ...pi_op_GetBlockPublicAccessConfiguration.go | 6 +- service/emr/api_op_GetStudioSessionMapping.go | 8 +- service/emr/api_op_ListClusters.go | 10 +- service/emr/api_op_ListReleaseLabels.go | 222 + service/emr/api_op_ListSteps.go | 16 +- service/emr/api_op_ListStudios.go | 4 +- service/emr/api_op_ModifyCluster.go | 4 +- service/emr/api_op_ModifyInstanceFleet.go | 2 +- ...pi_op_PutBlockPublicAccessConfiguration.go | 2 +- service/emr/api_op_RunJobFlow.go | 25 +- service/emr/api_op_SetVisibleToAllUsers.go | 27 +- .../emr/api_op_UpdateStudioSessionMapping.go | 8 +- service/emr/deserializers.go | 410 + service/emr/doc.go | 7 +- service/emr/generated.json | 2 + service/emr/serializers.go | 157 + service/emr/types/types.go | 190 +- service/emrcontainers/deserializers.go | 22 +- service/emrcontainers/types/types.go | 6 + service/greengrassv2/api_client.go | 20 + ...atchAssociateClientDeviceWithCoreDevice.go | 16 +- ...hDisassociateClientDeviceFromCoreDevice.go | 4 +- .../api_op_CreateComponentVersion.go | 91 +- .../greengrassv2/api_op_CreateDeployment.go | 83 +- .../greengrassv2/api_op_DeleteComponent.go | 10 +- .../greengrassv2/api_op_DeleteCoreDevice.go | 12 +- .../greengrassv2/api_op_DescribeComponent.go | 4 +- service/greengrassv2/api_op_GetComponent.go | 2 +- service/greengrassv2/api_op_GetCoreDevice.go | 26 +- service/greengrassv2/api_op_GetDeployment.go | 17 +- ...stClientDevicesAssociatedWithCoreDevice.go | 2 +- .../greengrassv2/api_op_ListCoreDevices.go | 10 +- .../greengrassv2/api_op_ListDeployments.go | 2 +- .../api_op_ListEffectiveDeployments.go | 6 +- .../api_op_ListInstalledComponents.go | 5 +- .../api_op_ListTagsForResource.go | 4 +- .../api_op_ResolveComponentCandidates.go | 26 +- service/greengrassv2/api_op_TagResource.go | 4 +- service/greengrassv2/api_op_UntagResource.go | 2 +- service/greengrassv2/deserializers.go | 165 + service/greengrassv2/doc.go | 22 +- service/greengrassv2/serializers.go | 47 + service/greengrassv2/types/errors.go | 25 +- service/greengrassv2/types/types.go | 211 +- .../iam/api_op_CreateOpenIDConnectProvider.go | 12 +- ...p_UpdateOpenIDConnectProviderThumbprint.go | 16 +- service/identitystore/api_op_DescribeGroup.go | 12 +- service/identitystore/api_op_DescribeUser.go | 8 +- service/identitystore/api_op_ListGroups.go | 30 +- service/identitystore/api_op_ListUsers.go | 30 +- service/identitystore/doc.go | 4 + service/identitystore/types/types.go | 19 +- .../imagebuilder/api_op_CreateComponent.go | 10 +- .../api_op_CreateContainerRecipe.go | 10 +- .../imagebuilder/api_op_CreateImageRecipe.go | 10 +- .../imagebuilder/api_op_ImportComponent.go | 12 +- .../api_op_ListComponentBuildVersions.go | 8 + service/imagebuilder/api_op_ListComponents.go | 13 +- service/imagebuilder/api_op_ListImages.go | 9 +- service/imagebuilder/types/types.go | 149 +- service/iot/api_op_AttachPolicy.go | 3 +- .../iotanalytics/api_op_BatchPutMessage.go | 2 +- service/iotanalytics/api_op_CreateChannel.go | 6 +- service/iotanalytics/api_op_CreateDataset.go | 36 +- .../api_op_CreateDatasetContent.go | 2 +- .../iotanalytics/api_op_CreateDatastore.go | 14 +- service/iotanalytics/api_op_CreatePipeline.go | 2 +- service/iotanalytics/api_op_DeleteDataset.go | 2 +- .../iotanalytics/api_op_DescribeChannel.go | 2 +- .../iotanalytics/api_op_DescribeDataset.go | 4 +- .../iotanalytics/api_op_DescribeDatastore.go | 2 +- .../api_op_DescribeLoggingOptions.go | 4 +- .../iotanalytics/api_op_GetDatasetContent.go | 10 +- .../api_op_ListDatasetContents.go | 10 +- service/iotanalytics/api_op_ListDatasets.go | 2 +- .../iotanalytics/api_op_PutLoggingOptions.go | 6 +- .../api_op_RunPipelineActivity.go | 10 +- service/iotanalytics/api_op_UpdateChannel.go | 6 +- service/iotanalytics/api_op_UpdateDataset.go | 14 +- .../iotanalytics/api_op_UpdateDatastore.go | 13 +- service/iotanalytics/deserializers.go | 185 + service/iotanalytics/doc.go | 12 +- service/iotanalytics/serializers.go | 37 + service/iotanalytics/types/types.go | 382 +- .../iotanalytics/types/types_exported_test.go | 4 + service/iotanalytics/validators.go | 39 + service/iotsitewise/api_op_AssociateAssets.go | 2 +- service/iotsitewise/api_op_CreateAsset.go | 2 +- .../iotsitewise/api_op_CreateAssetModel.go | 2 +- service/iotsitewise/api_op_CreateGateway.go | 2 +- service/iotsitewise/api_op_DeleteAsset.go | 2 +- .../iotsitewise/api_op_DeleteAssetModel.go | 2 +- service/iotsitewise/api_op_DeleteGateway.go | 2 +- service/iotsitewise/api_op_DescribeAsset.go | 2 +- .../iotsitewise/api_op_DescribeAssetModel.go | 2 +- .../api_op_DescribeAssetProperty.go | 2 +- ..._DescribeDefaultEncryptionConfiguration.go | 31 + service/iotsitewise/api_op_DescribeGateway.go | 2 +- ..._DescribeGatewayCapabilityConfiguration.go | 2 +- .../api_op_DescribeLoggingOptions.go | 2 +- .../api_op_DescribeStorageConfiguration.go | 34 + .../iotsitewise/api_op_DisassociateAssets.go | 2 +- service/iotsitewise/api_op_ListAssetModels.go | 2 +- .../api_op_ListAssetRelationships.go | 2 +- service/iotsitewise/api_op_ListAssets.go | 2 +- .../api_op_ListAssociatedAssets.go | 2 +- service/iotsitewise/api_op_ListGateways.go | 2 +- .../iotsitewise/api_op_ListTagsForResource.go | 31 + ...pi_op_PutDefaultEncryptionConfiguration.go | 31 + .../iotsitewise/api_op_PutLoggingOptions.go | 2 +- .../api_op_PutStorageConfiguration.go | 35 +- service/iotsitewise/api_op_TagResource.go | 31 + service/iotsitewise/api_op_UntagResource.go | 31 + service/iotsitewise/api_op_UpdateAsset.go | 2 +- .../iotsitewise/api_op_UpdateAssetModel.go | 2 +- .../iotsitewise/api_op_UpdateAssetProperty.go | 2 +- service/iotsitewise/api_op_UpdateGateway.go | 2 +- ...op_UpdateGatewayCapabilityConfiguration.go | 2 +- service/iotsitewise/deserializers.go | 314 + service/iotsitewise/serializers.go | 97 + service/iotsitewise/types/enums.go | 56 + service/iotsitewise/types/types.go | 114 +- service/iotsitewise/validators.go | 125 +- .../api_op_GetLogLevelsByResourceTypes.go | 5 +- .../iotwireless/api_op_GetResourceLogLevel.go | 8 +- .../iotwireless/api_op_PutResourceLogLevel.go | 9 +- .../api_op_ResetAllResourceLogLevels.go | 4 +- .../api_op_ResetResourceLogLevel.go | 8 +- .../api_op_SendDataToWirelessDevice.go | 2 +- .../api_op_UpdateLogLevelsByResourceTypes.go | 6 +- service/iotwireless/deserializers.go | 9 + service/iotwireless/types/enums.go | 8 +- service/iotwireless/types/types.go | 25 +- service/kendra/api_op_CreateIndex.go | 4 +- service/kendra/api_op_SubmitFeedback.go | 2 +- service/kendra/deserializers.go | 78 + service/kendra/serializers.go | 50 + service/kendra/types/enums.go | 2 + service/kendra/types/types.go | 93 +- service/kendra/validators.go | 25 + .../lambda/api_op_CreateEventSourceMapping.go | 35 +- .../lambda/api_op_DeleteEventSourceMapping.go | 33 +- .../lambda/api_op_GetEventSourceMapping.go | 33 +- .../lambda/api_op_ListEventSourceMappings.go | 8 +- .../lambda/api_op_UpdateEventSourceMapping.go | 35 +- service/lambda/deserializers.go | 9 + service/lambda/types/types.go | 78 +- .../lexmodelbuildingservice/types/enums.go | 2 + service/lexmodelsv2/api_op_DescribeBot.go | 213 + .../lexmodelsv2/api_op_DescribeBotAlias.go | 197 + .../lexmodelsv2/api_op_DescribeBotLocale.go | 657 ++ .../lexmodelsv2/api_op_DescribeBotVersion.go | 206 + service/lexmodelsv2/api_op_DescribeExport.go | 197 + service/lexmodelsv2/api_op_DescribeImport.go | 197 + service/lexmodelsv2/generated.json | 3 +- service/lexmodelsv2/go.mod | 1 + service/lexmodelsv2/go.sum | 6 + .../api_op_AssociateTrackerConsumer.go | 5 +- .../location/api_op_BatchEvaluateGeofences.go | 18 +- .../location/api_op_BatchGetDevicePosition.go | 2 +- service/location/api_op_CalculateRoute.go | 18 +- service/location/api_op_CreateMap.go | 7 +- service/location/api_op_CreatePlaceIndex.go | 30 +- .../location/api_op_CreateRouteCalculator.go | 24 +- service/location/api_op_DescribeMap.go | 7 +- service/location/api_op_DescribePlaceIndex.go | 2 +- service/location/api_op_GetMapGlyphs.go | 28 +- .../location/api_op_ListDevicePositions.go | 2 +- .../location/api_op_ListTagsForResource.go | 16 +- service/location/api_op_TagResource.go | 25 +- service/location/api_op_UntagResource.go | 7 +- .../api_op_UpdateGeofenceCollection.go | 159 + service/location/api_op_UpdateMap.go | 148 + service/location/api_op_UpdatePlaceIndex.go | 151 + .../location/api_op_UpdateRouteCalculator.go | 148 + service/location/api_op_UpdateTracker.go | 159 + service/location/deserializers.go | 1338 +++- service/location/generated.json | 5 + service/location/serializers.go | 447 ++ service/location/types/errors.go | 29 +- service/location/types/types.go | 86 +- service/location/validators.go | 195 + service/medialive/deserializers.go | 63 + service/medialive/serializers.go | 29 + service/medialive/types/enums.go | 19 + service/medialive/types/types.go | 27 + service/medialive/validators.go | 23 + service/personalize/api_op_CreateCampaign.go | 10 +- .../api_op_CreateDatasetExportJob.go | 9 +- .../personalize/api_op_CreateDatasetGroup.go | 16 +- .../api_op_CreateDatasetImportJob.go | 9 +- service/personalize/types/types.go | 21 +- service/personalize/validators.go | 3 - ...i_op_AcceptEnvironmentAccountConnection.go | 4 +- .../api_op_CancelEnvironmentDeployment.go | 2 +- .../api_op_CancelServiceInstanceDeployment.go | 2 +- .../api_op_CancelServicePipelineDeployment.go | 2 +- service/proton/api_op_CreateEnvironment.go | 16 +- ...i_op_CreateEnvironmentAccountConnection.go | 8 +- .../api_op_CreateEnvironmentTemplate.go | 31 +- service/proton/api_op_CreateService.go | 16 +- .../proton/api_op_CreateServiceTemplate.go | 8 +- ...i_op_DeleteEnvironmentAccountConnection.go | 5 +- .../api_op_GetEnvironmentAccountConnection.go | 5 +- ...pi_op_ListEnvironmentAccountConnections.go | 4 +- service/proton/api_op_ListTagsForResource.go | 4 +- ...i_op_RejectEnvironmentAccountConnection.go | 5 +- service/proton/api_op_TagResource.go | 2 +- service/proton/api_op_UntagResource.go | 2 +- service/proton/api_op_UpdateEnvironment.go | 8 +- ...i_op_UpdateEnvironmentAccountConnection.go | 5 +- service/proton/api_op_UpdateService.go | 2 +- service/proton/doc.go | 2 +- service/proton/types/errors.go | 2 +- service/proton/types/types.go | 18 +- service/qldb/api_op_CreateLedger.go | 53 +- service/qldb/api_op_DescribeLedger.go | 8 +- service/qldb/api_op_ExportJournalToS3.go | 4 +- service/qldb/api_op_ListJournalS3Exports.go | 10 +- service/qldb/api_op_ListLedgers.go | 6 +- service/qldb/api_op_UpdateLedger.go | 47 + service/qldb/deserializers.go | 84 + service/qldb/serializers.go | 10 + service/qldb/types/enums.go | 20 + service/qldb/types/types.go | 60 +- service/quicksight/api_op_CancelIngestion.go | 4 +- .../api_op_CreateAccountCustomization.go | 47 +- service/quicksight/api_op_CreateAnalysis.go | 10 +- service/quicksight/api_op_CreateDashboard.go | 19 +- service/quicksight/api_op_CreateDataSet.go | 16 +- service/quicksight/api_op_CreateDataSource.go | 12 +- service/quicksight/api_op_CreateGroup.go | 7 +- .../api_op_CreateGroupMembership.go | 7 +- .../api_op_CreateIAMPolicyAssignment.go | 19 +- service/quicksight/api_op_CreateIngestion.go | 8 +- service/quicksight/api_op_CreateNamespace.go | 14 +- service/quicksight/api_op_CreateTemplate.go | 24 +- .../quicksight/api_op_CreateTemplateAlias.go | 8 +- service/quicksight/api_op_CreateTheme.go | 9 +- service/quicksight/api_op_CreateThemeAlias.go | 5 +- .../api_op_DeleteAccountCustomization.go | 10 +- service/quicksight/api_op_DeleteAnalysis.go | 4 +- service/quicksight/api_op_DeleteDashboard.go | 5 +- service/quicksight/api_op_DeleteDataSet.go | 12 +- service/quicksight/api_op_DeleteDataSource.go | 12 +- service/quicksight/api_op_DeleteGroup.go | 7 +- .../api_op_DeleteGroupMembership.go | 7 +- .../api_op_DeleteIAMPolicyAssignment.go | 5 +- service/quicksight/api_op_DeleteNamespace.go | 6 +- service/quicksight/api_op_DeleteTemplate.go | 5 +- .../quicksight/api_op_DeleteTemplateAlias.go | 4 +- service/quicksight/api_op_DeleteTheme.go | 5 +- service/quicksight/api_op_DeleteThemeAlias.go | 5 +- service/quicksight/api_op_DeleteUser.go | 11 +- .../api_op_DeleteUserByPrincipalId.go | 7 +- .../api_op_DescribeAccountCustomization.go | 67 +- .../api_op_DescribeAccountSettings.go | 22 +- service/quicksight/api_op_DescribeAnalysis.go | 6 +- .../api_op_DescribeAnalysisPermissions.go | 7 +- .../quicksight/api_op_DescribeDashboard.go | 5 +- .../api_op_DescribeDashboardPermissions.go | 6 +- service/quicksight/api_op_DescribeDataSet.go | 8 +- .../api_op_DescribeDataSetPermissions.go | 12 +- .../quicksight/api_op_DescribeDataSource.go | 8 +- .../api_op_DescribeDataSourcePermissions.go | 12 +- service/quicksight/api_op_DescribeGroup.go | 7 +- .../api_op_DescribeIAMPolicyAssignment.go | 6 +- .../quicksight/api_op_DescribeIngestion.go | 4 +- .../quicksight/api_op_DescribeNamespace.go | 14 +- service/quicksight/api_op_DescribeTemplate.go | 5 +- .../api_op_DescribeTemplateAlias.go | 6 +- .../api_op_DescribeTemplatePermissions.go | 5 +- service/quicksight/api_op_DescribeTheme.go | 5 +- .../quicksight/api_op_DescribeThemeAlias.go | 5 +- .../api_op_DescribeThemePermissions.go | 5 +- service/quicksight/api_op_DescribeUser.go | 7 +- ...api_op_GenerateEmbedUrlForAnonymousUser.go | 191 + ...pi_op_GenerateEmbedUrlForRegisteredUser.go | 175 + .../quicksight/api_op_GetDashboardEmbedUrl.go | 18 +- .../quicksight/api_op_GetSessionEmbedUrl.go | 7 +- service/quicksight/api_op_ListAnalyses.go | 7 +- .../api_op_ListDashboardVersions.go | 6 +- service/quicksight/api_op_ListDashboards.go | 11 +- service/quicksight/api_op_ListDataSets.go | 9 +- service/quicksight/api_op_ListDataSources.go | 7 +- .../quicksight/api_op_ListGroupMemberships.go | 7 +- service/quicksight/api_op_ListGroups.go | 7 +- .../api_op_ListIAMPolicyAssignments.go | 5 +- .../api_op_ListIAMPolicyAssignmentsForUser.go | 4 +- service/quicksight/api_op_ListIngestions.go | 4 +- service/quicksight/api_op_ListNamespaces.go | 14 +- .../quicksight/api_op_ListTagsForResource.go | 2 +- .../quicksight/api_op_ListTemplateAliases.go | 6 +- .../quicksight/api_op_ListTemplateVersions.go | 5 +- service/quicksight/api_op_ListTemplates.go | 5 +- service/quicksight/api_op_ListThemeAliases.go | 5 +- .../quicksight/api_op_ListThemeVersions.go | 8 +- service/quicksight/api_op_ListThemes.go | 9 +- service/quicksight/api_op_ListUserGroups.go | 7 +- service/quicksight/api_op_ListUsers.go | 7 +- service/quicksight/api_op_RegisterUser.go | 9 +- service/quicksight/api_op_RestoreAnalysis.go | 4 +- service/quicksight/api_op_SearchAnalyses.go | 9 +- service/quicksight/api_op_SearchDashboards.go | 10 +- service/quicksight/api_op_TagResource.go | 4 +- service/quicksight/api_op_UntagResource.go | 2 +- .../api_op_UpdateAccountCustomization.go | 28 +- .../api_op_UpdateAccountSettings.go | 18 +- service/quicksight/api_op_UpdateAnalysis.go | 5 +- .../api_op_UpdateAnalysisPermissions.go | 7 +- service/quicksight/api_op_UpdateDashboard.go | 22 +- .../api_op_UpdateDashboardPermissions.go | 6 +- .../api_op_UpdateDashboardPublishedVersion.go | 5 +- service/quicksight/api_op_UpdateDataSet.go | 16 +- .../api_op_UpdateDataSetPermissions.go | 8 +- service/quicksight/api_op_UpdateDataSource.go | 12 +- .../api_op_UpdateDataSourcePermissions.go | 12 +- service/quicksight/api_op_UpdateGroup.go | 7 +- .../api_op_UpdateIAMPolicyAssignment.go | 7 +- service/quicksight/api_op_UpdateTemplate.go | 14 +- .../quicksight/api_op_UpdateTemplateAlias.go | 5 +- .../api_op_UpdateTemplatePermissions.go | 4 +- service/quicksight/api_op_UpdateTheme.go | 7 +- service/quicksight/api_op_UpdateThemeAlias.go | 5 +- .../api_op_UpdateThemePermissions.go | 4 +- service/quicksight/api_op_UpdateUser.go | 9 +- service/quicksight/deserializers.go | 562 ++ service/quicksight/doc.go | 8 +- service/quicksight/generated.json | 2 + service/quicksight/serializers.go | 390 + service/quicksight/types/enums.go | 18 + service/quicksight/types/errors.go | 10 +- service/quicksight/types/types.go | 241 +- service/quicksight/validators.go | 269 + service/rds/api_op_DescribeDBClusters.go | 12 + service/rds/api_op_DescribeDBInstances.go | 266 + service/rds/api_op_DescribeDBSnapshots.go | 266 + service/rds/api_op_DescribeGlobalClusters.go | 7 +- service/rds/deserializers.go | 17 + service/rds/types/types.go | 7 +- .../api_op_BatchExecuteStatement.go | 177 + .../redshiftdata/api_op_CancelStatement.go | 2 +- .../redshiftdata/api_op_DescribeStatement.go | 14 +- service/redshiftdata/api_op_DescribeTable.go | 17 +- .../redshiftdata/api_op_ExecuteStatement.go | 30 +- .../redshiftdata/api_op_GetStatementResult.go | 5 +- service/redshiftdata/api_op_ListDatabases.go | 21 +- service/redshiftdata/api_op_ListSchemas.go | 17 +- service/redshiftdata/api_op_ListStatements.go | 12 +- service/redshiftdata/api_op_ListTables.go | 18 +- service/redshiftdata/deserializers.go | 551 +- service/redshiftdata/doc.go | 6 +- service/redshiftdata/generated.json | 1 + service/redshiftdata/serializers.go | 102 + service/redshiftdata/types/enums.go | 26 + service/redshiftdata/types/errors.go | 21 + service/redshiftdata/types/types.go | 58 + service/redshiftdata/validators.go | 51 + service/robomaker/api_op_DescribeWorld.go | 3 + .../robomaker/api_op_DescribeWorldTemplate.go | 3 + service/robomaker/deserializers.go | 27 + service/robomaker/types/types.go | 3 + .../api_op_AssociateVPCWithHostedZone.go | 4 +- .../api_op_ChangeResourceRecordSets.go | 26 +- .../route53/api_op_ChangeTagsForResource.go | 2 +- service/route53/api_op_CreateKeySigningKey.go | 16 +- .../api_op_CreateQueryLoggingConfig.go | 80 +- .../api_op_CreateReusableDelegationSet.go | 6 +- ...pi_op_CreateVPCAssociationAuthorization.go | 2 +- service/route53/api_op_DeleteHealthCheck.go | 2 +- service/route53/api_op_DeleteHostedZone.go | 4 +- ...pi_op_DeleteVPCAssociationAuthorization.go | 24 +- .../api_op_DisassociateVPCFromHostedZone.go | 10 +- service/route53/api_op_GetAccountLimit.go | 4 +- service/route53/api_op_GetCheckerIpRanges.go | 4 +- service/route53/api_op_GetHealthCheck.go | 2 +- service/route53/api_op_GetHealthCheckCount.go | 6 +- .../route53/api_op_GetHealthCheckStatus.go | 4 +- service/route53/api_op_GetHostedZoneCount.go | 6 +- .../api_op_GetTrafficPolicyInstanceCount.go | 6 +- service/route53/api_op_ListHealthChecks.go | 6 +- service/route53/api_op_ListHostedZones.go | 10 +- .../route53/api_op_ListHostedZonesByName.go | 10 +- .../route53/api_op_ListHostedZonesByVPC.go | 26 +- .../route53/api_op_ListQueryLoggingConfigs.go | 21 +- .../api_op_ListReusableDelegationSets.go | 8 +- service/route53/api_op_ListTagsForResource.go | 2 +- .../route53/api_op_ListTagsForResources.go | 2 +- service/route53/api_op_ListTrafficPolicies.go | 10 +- .../api_op_ListTrafficPolicyInstances.go | 10 +- service/route53/api_op_TestDNSAnswer.go | 3 +- service/route53/deserializers.go | 31 + service/route53/serializers.go | 11 + service/route53/types/enums.go | 2 + service/route53/types/errors.go | 20 +- service/route53/types/types.go | 290 +- service/route53recoverycluster/LICENSE.txt | 202 + service/route53recoverycluster/api_client.go | 262 + .../api_op_GetRoutingControlState.go | 139 + .../api_op_UpdateRoutingControlState.go | 128 + .../api_op_UpdateRoutingControlStates.go | 122 + .../route53recoverycluster/deserializers.go | 1198 +++ service/route53recoverycluster/doc.go | 36 + service/route53recoverycluster/endpoints.go | 160 + service/route53recoverycluster/generated.json | 27 + service/route53recoverycluster/go.mod | 10 + service/route53recoverycluster/go.sum | 14 + .../go_module_metadata.go | 6 + .../internal/endpoints/endpoints.go | 106 + .../internal/endpoints/endpoints_test.go | 11 + .../route53recoverycluster/protocol_test.go | 3 + service/route53recoverycluster/serializers.go | 228 + service/route53recoverycluster/types/enums.go | 43 + .../route53recoverycluster/types/errors.go | 158 + service/route53recoverycluster/types/types.go | 41 + service/route53recoverycluster/validators.go | 170 + .../route53recoverycontrolconfig/LICENSE.txt | 202 + .../api_client.go | 282 + .../api_op_CreateCluster.go | 167 + .../api_op_CreateControlPanel.go | 171 + .../api_op_CreateRoutingControl.go | 175 + .../api_op_CreateSafetyRule.go | 180 + .../api_op_DeleteCluster.go | 116 + .../api_op_DeleteControlPanel.go | 116 + .../api_op_DeleteRoutingControl.go | 116 + .../api_op_DeleteSafetyRule.go | 116 + .../api_op_DescribeCluster.go | 476 ++ .../api_op_DescribeControlPanel.go | 478 ++ .../api_op_DescribeRoutingControl.go | 482 ++ .../api_op_DescribeSafetyRule.go | 130 + ...pi_op_ListAssociatedRoute53HealthChecks.go | 217 + .../api_op_ListClusters.go | 204 + .../api_op_ListControlPanels.go | 208 + .../api_op_ListRoutingControls.go | 218 + .../api_op_ListSafetyRules.go | 215 + .../api_op_UpdateControlPanel.go | 128 + .../api_op_UpdateRoutingControl.go | 129 + .../api_op_UpdateSafetyRule.go | 136 + .../deserializers.go | 4303 ++++++++++ service/route53recoverycontrolconfig/doc.go | 8 + .../route53recoverycontrolconfig/endpoints.go | 160 + .../generated.json | 45 + service/route53recoverycontrolconfig/go.mod | 11 + service/route53recoverycontrolconfig/go.sum | 20 + .../go_module_metadata.go | 6 + .../internal/endpoints/endpoints.go | 106 + .../internal/endpoints/endpoints_test.go | 11 + .../protocol_test.go | 3 + .../serializers.go | 1490 ++++ .../types/enums.go | 43 + .../types/errors.go | 144 + .../types/types.go | 399 + .../validators.go | 849 ++ service/route53recoveryreadiness/LICENSE.txt | 202 + .../route53recoveryreadiness/api_client.go | 262 + .../api_op_CreateCell.go | 140 + .../api_op_CreateCrossAccountAuthorization.go | 121 + .../api_op_CreateReadinessCheck.go | 138 + .../api_op_CreateRecoveryGroup.go | 136 + .../api_op_CreateResourceSet.go | 147 + .../api_op_DeleteCell.go | 116 + .../api_op_DeleteCrossAccountAuthorization.go | 116 + .../api_op_DeleteReadinessCheck.go | 116 + .../api_op_DeleteRecoveryGroup.go | 116 + .../api_op_DeleteResourceSet.go | 116 + .../api_op_GetArchitectureRecommendations.go | 136 + .../api_op_GetCell.go | 132 + .../api_op_GetCellReadinessSummary.go | 218 + .../api_op_GetReadinessCheck.go | 129 + .../api_op_GetReadinessCheckResourceStatus.go | 225 + .../api_op_GetReadinessCheckStatus.go | 221 + .../api_op_GetRecoveryGroup.go | 129 + ...api_op_GetRecoveryGroupReadinessSummary.go | 219 + .../api_op_GetResourceSet.go | 133 + .../api_op_ListCells.go | 204 + .../api_op_ListCrossAccountAuthorizations.go | 207 + .../api_op_ListReadinessChecks.go | 206 + .../api_op_ListRecoveryGroups.go | 206 + .../api_op_ListResourceSets.go | 205 + .../api_op_ListRules.go | 207 + .../api_op_ListTagsForResources.go | 121 + .../api_op_TagResource.go | 122 + .../api_op_UntagResource.go | 123 + .../api_op_UpdateCell.go | 138 + .../api_op_UpdateReadinessCheck.go | 135 + .../api_op_UpdateRecoveryGroup.go | 135 + .../api_op_UpdateResourceSet.go | 144 + .../route53recoveryreadiness/deserializers.go | 6917 +++++++++++++++++ service/route53recoveryreadiness/doc.go | 7 + service/route53recoveryreadiness/endpoints.go | 160 + .../route53recoveryreadiness/generated.json | 56 + service/route53recoveryreadiness/go.mod | 10 + service/route53recoveryreadiness/go.sum | 14 + .../go_module_metadata.go | 6 + .../internal/endpoints/endpoints.go | 106 + .../internal/endpoints/endpoints_test.go | 11 + .../route53recoveryreadiness/protocol_test.go | 3 + .../route53recoveryreadiness/serializers.go | 2311 ++++++ .../route53recoveryreadiness/types/enums.go | 25 + .../route53recoveryreadiness/types/errors.go | 122 + .../route53recoveryreadiness/types/types.go | 291 + .../route53recoveryreadiness/validators.go | 1057 +++ service/s3control/api_op_CreateAccessPoint.go | 13 +- ...api_op_CreateAccessPointForObjectLambda.go | 2 +- service/s3control/api_op_CreateBucket.go | 8 +- service/s3control/api_op_CreateJob.go | 8 +- service/s3control/api_op_DeleteAccessPoint.go | 8 +- .../api_op_DeleteAccessPointPolicy.go | 9 +- service/s3control/api_op_DeleteBucket.go | 6 +- ...i_op_DeleteBucketLifecycleConfiguration.go | 4 +- .../s3control/api_op_DeleteBucketPolicy.go | 12 +- .../s3control/api_op_DeleteBucketTagging.go | 10 +- service/s3control/api_op_DeleteJobTagging.go | 2 +- .../api_op_DeletePublicAccessBlock.go | 6 +- service/s3control/api_op_DescribeJob.go | 2 +- service/s3control/api_op_GetAccessPoint.go | 15 +- .../s3control/api_op_GetAccessPointPolicy.go | 9 +- service/s3control/api_op_GetBucket.go | 32 +- .../api_op_GetBucketLifecycleConfiguration.go | 10 +- service/s3control/api_op_GetBucketPolicy.go | 10 +- service/s3control/api_op_GetBucketTagging.go | 6 +- service/s3control/api_op_GetJobTagging.go | 2 +- .../s3control/api_op_GetPublicAccessBlock.go | 8 +- service/s3control/api_op_ListAccessPoints.go | 10 +- service/s3control/api_op_ListJobs.go | 6 +- .../s3control/api_op_ListRegionalBuckets.go | 4 +- .../s3control/api_op_PutAccessPointPolicy.go | 6 +- .../api_op_PutBucketLifecycleConfiguration.go | 2 +- service/s3control/api_op_PutBucketPolicy.go | 14 +- service/s3control/api_op_PutBucketTagging.go | 27 +- service/s3control/api_op_PutJobTagging.go | 4 +- .../s3control/api_op_PutPublicAccessBlock.go | 10 +- service/s3control/api_op_UpdateJobPriority.go | 2 +- service/s3control/api_op_UpdateJobStatus.go | 2 +- service/s3control/deserializers.go | 156 + service/s3control/doc.go | 3 +- service/s3control/types/errors.go | 4 +- service/s3control/types/types.go | 57 +- service/s3outposts/api_op_CreateEndpoint.go | 27 +- service/s3outposts/api_op_DeleteEndpoint.go | 17 +- service/s3outposts/api_op_ListEndpoints.go | 13 +- service/s3outposts/deserializers.go | 45 + service/s3outposts/serializers.go | 10 + service/s3outposts/types/enums.go | 28 +- service/s3outposts/types/types.go | 25 +- service/sagemaker/api_op_CreateEndpoint.go | 5 +- service/sagemaker/api_op_DescribeImage.go | 548 ++ .../sagemaker/api_op_DescribeImageVersion.go | 371 + service/sagemaker/deserializers.go | 50 + service/sagemaker/types/enums.go | 34 + service/sagemaker/types/types.go | 47 +- service/secretsmanager/api_op_CreateSecret.go | 150 +- service/secretsmanager/api_op_DeleteSecret.go | 12 +- .../secretsmanager/api_op_DescribeSecret.go | 14 +- .../api_op_GetResourcePolicy.go | 6 +- .../secretsmanager/api_op_GetSecretValue.go | 14 +- service/secretsmanager/api_op_ListSecrets.go | 8 +- .../api_op_PutResourcePolicy.go | 17 +- .../secretsmanager/api_op_PutSecretValue.go | 145 +- service/secretsmanager/api_op_RotateSecret.go | 63 +- service/secretsmanager/api_op_TagResource.go | 42 +- .../secretsmanager/api_op_UntagResource.go | 2 +- service/secretsmanager/api_op_UpdateSecret.go | 135 +- .../api_op_UpdateSecretVersionStage.go | 30 +- .../api_op_ValidateResourcePolicy.go | 10 +- service/secretsmanager/deserializers.go | 50 + service/secretsmanager/doc.go | 81 +- service/secretsmanager/types/types.go | 20 +- .../api_op_BatchDisableStandards.go | 2 +- .../api_op_BatchEnableStandards.go | 2 +- .../securityhub/api_op_BatchImportFindings.go | 2 +- .../securityhub/api_op_BatchUpdateFindings.go | 2 +- service/securityhub/api_op_CreateMembers.go | 31 +- .../securityhub/api_op_DeclineInvitations.go | 4 +- .../securityhub/api_op_DeleteInvitations.go | 11 +- service/securityhub/api_op_DeleteMembers.go | 4 +- .../api_op_DisableOrganizationAdminAccount.go | 3 +- .../api_op_EnableOrganizationAdminAccount.go | 4 +- .../securityhub/api_op_EnableSecurityHub.go | 18 +- service/securityhub/api_op_GetMembers.go | 4 +- service/securityhub/api_op_InviteMembers.go | 24 +- service/securityhub/api_op_ListInvitations.go | 8 +- service/securityhub/deserializers.go | 1401 +++- service/securityhub/doc.go | 55 +- service/securityhub/serializers.go | 582 ++ service/securityhub/types/errors.go | 4 +- service/securityhub/types/types.go | 924 ++- .../shield/api_op_AssociateDRTLogBucket.go | 16 +- service/shield/api_op_AssociateDRTRole.go | 31 +- service/shield/api_op_AssociateHealthCheck.go | 13 +- ..._op_AssociateProactiveEngagementDetails.go | 19 +- service/shield/api_op_CreateProtection.go | 20 +- .../shield/api_op_CreateProtectionGroup.go | 6 +- service/shield/api_op_CreateSubscription.go | 2 +- service/shield/api_op_DeleteProtection.go | 2 +- service/shield/api_op_DeleteSubscription.go | 4 +- .../shield/api_op_DescribeAttackStatistics.go | 18 +- service/shield/api_op_DescribeDRTAccess.go | 12 +- ...api_op_DescribeEmergencyContactSettings.go | 8 +- service/shield/api_op_DescribeProtection.go | 7 +- .../shield/api_op_DescribeProtectionGroup.go | 4 +- service/shield/api_op_DescribeSubscription.go | 4 +- .../api_op_DisableProactiveEngagement.go | 4 +- .../shield/api_op_DisassociateDRTLogBucket.go | 12 +- service/shield/api_op_DisassociateDRTRole.go | 15 +- .../shield/api_op_DisassociateHealthCheck.go | 9 +- .../api_op_EnableProactiveEngagement.go | 4 +- service/shield/api_op_ListProtectionGroups.go | 4 +- service/shield/api_op_ListProtections.go | 6 +- .../api_op_ListResourcesInProtectionGroup.go | 2 +- service/shield/api_op_ListTagsForResource.go | 4 +- service/shield/api_op_TagResource.go | 2 +- service/shield/api_op_UntagResource.go | 2 +- .../api_op_UpdateEmergencyContactSettings.go | 9 +- .../shield/api_op_UpdateProtectionGroup.go | 4 +- service/shield/doc.go | 10 +- service/shield/types/errors.go | 7 +- service/shield/types/types.go | 71 +- service/ssmcontacts/api_op_AcceptPage.go | 9 + service/ssmcontacts/doc.go | 9 +- service/ssmcontacts/serializers.go | 5 + service/ssmcontacts/types/enums.go | 18 + service/ssmcontacts/types/types.go | 3 +- ...i_op_AttachManagedPolicyToPermissionSet.go | 8 +- .../api_op_CreateAccountAssignment.go | 33 +- ...anceAccessControlAttributeConfiguration.go | 22 +- .../ssoadmin/api_op_CreatePermissionSet.go | 9 +- .../api_op_DeleteAccountAssignment.go | 20 +- ..._op_DeleteInlinePolicyFromPermissionSet.go | 4 +- ...anceAccessControlAttributeConfiguration.go | 10 +- .../ssoadmin/api_op_DeletePermissionSet.go | 4 +- ...DescribeAccountAssignmentCreationStatus.go | 4 +- ...DescribeAccountAssignmentDeletionStatus.go | 4 +- ...anceAccessControlAttributeConfiguration.go | 15 +- .../ssoadmin/api_op_DescribePermissionSet.go | 6 +- ...DescribePermissionSetProvisioningStatus.go | 4 +- ...op_DetachManagedPolicyFromPermissionSet.go | 4 +- .../api_op_GetInlinePolicyForPermissionSet.go | 4 +- ..._op_ListAccountAssignmentCreationStatus.go | 8 +- ..._op_ListAccountAssignmentDeletionStatus.go | 8 +- .../ssoadmin/api_op_ListAccountAssignments.go | 14 +- ...ListAccountsForProvisionedPermissionSet.go | 15 +- ...i_op_ListManagedPoliciesInPermissionSet.go | 4 +- ..._op_ListPermissionSetProvisioningStatus.go | 4 +- service/ssoadmin/api_op_ListPermissionSets.go | 6 +- ..._ListPermissionSetsProvisionedToAccount.go | 12 +- .../ssoadmin/api_op_ListTagsForResource.go | 4 +- .../ssoadmin/api_op_ProvisionPermissionSet.go | 8 +- .../api_op_PutInlinePolicyToPermissionSet.go | 4 +- service/ssoadmin/api_op_TagResource.go | 4 +- service/ssoadmin/api_op_UntagResource.go | 4 +- ...anceAccessControlAttributeConfiguration.go | 17 +- .../ssoadmin/api_op_UpdatePermissionSet.go | 4 +- service/ssoadmin/doc.go | 12 + service/ssoadmin/types/types.go | 76 +- service/synthetics/api_op_CreateCanary.go | 3 +- service/synthetics/api_op_TagResource.go | 14 +- service/synthetics/api_op_UpdateCanary.go | 2 + service/synthetics/deserializers.go | 165 + service/synthetics/serializers.go | 69 + service/synthetics/types/types.go | 82 +- service/synthetics/validators.go | 57 + service/textract/api_op_AnalyzeExpense.go | 146 + service/textract/deserializers.go | 789 +- service/textract/generated.json | 1 + service/textract/serializers.go | 61 + service/textract/types/types.go | 111 +- service/textract/validators.go | 39 + 1037 files changed, 69030 insertions(+), 8348 deletions(-) create mode 100644 .changelog/2195532b709e4ad5b6d42f8984a305c1.json create mode 100644 .changelog/41575353444b40ffbf474f4155544f00.json create mode 100644 service/chime/api_op_StartMeetingTranscription.go create mode 100644 service/chime/api_op_StopMeetingTranscription.go create mode 100644 service/cloudformation/api_op_ImportStacksToStackSet.go create mode 100644 service/ec2/api_op_AssociateInstanceEventWindow.go create mode 100644 service/ec2/api_op_CreateInstanceEventWindow.go create mode 100644 service/ec2/api_op_CreateSubnetCidrReservation.go create mode 100644 service/ec2/api_op_DeleteInstanceEventWindow.go create mode 100644 service/ec2/api_op_DeleteSubnetCidrReservation.go create mode 100644 service/ec2/api_op_DescribeInstanceEventWindows.go create mode 100644 service/ec2/api_op_DisassociateInstanceEventWindow.go create mode 100644 service/ec2/api_op_GetSubnetCidrReservations.go create mode 100644 service/ec2/api_op_ModifyInstanceEventWindow.go create mode 100644 service/emr/api_op_DescribeReleaseLabel.go create mode 100644 service/emr/api_op_ListReleaseLabels.go create mode 100644 service/location/api_op_UpdateGeofenceCollection.go create mode 100644 service/location/api_op_UpdateMap.go create mode 100644 service/location/api_op_UpdatePlaceIndex.go create mode 100644 service/location/api_op_UpdateRouteCalculator.go create mode 100644 service/location/api_op_UpdateTracker.go create mode 100644 service/quicksight/api_op_GenerateEmbedUrlForAnonymousUser.go create mode 100644 service/quicksight/api_op_GenerateEmbedUrlForRegisteredUser.go create mode 100644 service/redshiftdata/api_op_BatchExecuteStatement.go create mode 100644 service/route53recoverycluster/LICENSE.txt create mode 100644 service/route53recoverycluster/api_client.go create mode 100644 service/route53recoverycluster/api_op_GetRoutingControlState.go create mode 100644 service/route53recoverycluster/api_op_UpdateRoutingControlState.go create mode 100644 service/route53recoverycluster/api_op_UpdateRoutingControlStates.go create mode 100644 service/route53recoverycluster/deserializers.go create mode 100644 service/route53recoverycluster/doc.go create mode 100644 service/route53recoverycluster/endpoints.go create mode 100644 service/route53recoverycluster/generated.json create mode 100644 service/route53recoverycluster/go.mod create mode 100644 service/route53recoverycluster/go.sum create mode 100644 service/route53recoverycluster/go_module_metadata.go create mode 100644 service/route53recoverycluster/internal/endpoints/endpoints.go create mode 100644 service/route53recoverycluster/internal/endpoints/endpoints_test.go create mode 100644 service/route53recoverycluster/protocol_test.go create mode 100644 service/route53recoverycluster/serializers.go create mode 100644 service/route53recoverycluster/types/enums.go create mode 100644 service/route53recoverycluster/types/errors.go create mode 100644 service/route53recoverycluster/types/types.go create mode 100644 service/route53recoverycluster/validators.go create mode 100644 service/route53recoverycontrolconfig/LICENSE.txt create mode 100644 service/route53recoverycontrolconfig/api_client.go create mode 100644 service/route53recoverycontrolconfig/api_op_CreateCluster.go create mode 100644 service/route53recoverycontrolconfig/api_op_CreateControlPanel.go create mode 100644 service/route53recoverycontrolconfig/api_op_CreateRoutingControl.go create mode 100644 service/route53recoverycontrolconfig/api_op_CreateSafetyRule.go create mode 100644 service/route53recoverycontrolconfig/api_op_DeleteCluster.go create mode 100644 service/route53recoverycontrolconfig/api_op_DeleteControlPanel.go create mode 100644 service/route53recoverycontrolconfig/api_op_DeleteRoutingControl.go create mode 100644 service/route53recoverycontrolconfig/api_op_DeleteSafetyRule.go create mode 100644 service/route53recoverycontrolconfig/api_op_DescribeCluster.go create mode 100644 service/route53recoverycontrolconfig/api_op_DescribeControlPanel.go create mode 100644 service/route53recoverycontrolconfig/api_op_DescribeRoutingControl.go create mode 100644 service/route53recoverycontrolconfig/api_op_DescribeSafetyRule.go create mode 100644 service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go create mode 100644 service/route53recoverycontrolconfig/api_op_ListClusters.go create mode 100644 service/route53recoverycontrolconfig/api_op_ListControlPanels.go create mode 100644 service/route53recoverycontrolconfig/api_op_ListRoutingControls.go create mode 100644 service/route53recoverycontrolconfig/api_op_ListSafetyRules.go create mode 100644 service/route53recoverycontrolconfig/api_op_UpdateControlPanel.go create mode 100644 service/route53recoverycontrolconfig/api_op_UpdateRoutingControl.go create mode 100644 service/route53recoverycontrolconfig/api_op_UpdateSafetyRule.go create mode 100644 service/route53recoverycontrolconfig/deserializers.go create mode 100644 service/route53recoverycontrolconfig/doc.go create mode 100644 service/route53recoverycontrolconfig/endpoints.go create mode 100644 service/route53recoverycontrolconfig/generated.json create mode 100644 service/route53recoverycontrolconfig/go.mod create mode 100644 service/route53recoverycontrolconfig/go.sum create mode 100644 service/route53recoverycontrolconfig/go_module_metadata.go create mode 100644 service/route53recoverycontrolconfig/internal/endpoints/endpoints.go create mode 100644 service/route53recoverycontrolconfig/internal/endpoints/endpoints_test.go create mode 100644 service/route53recoverycontrolconfig/protocol_test.go create mode 100644 service/route53recoverycontrolconfig/serializers.go create mode 100644 service/route53recoverycontrolconfig/types/enums.go create mode 100644 service/route53recoverycontrolconfig/types/errors.go create mode 100644 service/route53recoverycontrolconfig/types/types.go create mode 100644 service/route53recoverycontrolconfig/validators.go create mode 100644 service/route53recoveryreadiness/LICENSE.txt create mode 100644 service/route53recoveryreadiness/api_client.go create mode 100644 service/route53recoveryreadiness/api_op_CreateCell.go create mode 100644 service/route53recoveryreadiness/api_op_CreateCrossAccountAuthorization.go create mode 100644 service/route53recoveryreadiness/api_op_CreateReadinessCheck.go create mode 100644 service/route53recoveryreadiness/api_op_CreateRecoveryGroup.go create mode 100644 service/route53recoveryreadiness/api_op_CreateResourceSet.go create mode 100644 service/route53recoveryreadiness/api_op_DeleteCell.go create mode 100644 service/route53recoveryreadiness/api_op_DeleteCrossAccountAuthorization.go create mode 100644 service/route53recoveryreadiness/api_op_DeleteReadinessCheck.go create mode 100644 service/route53recoveryreadiness/api_op_DeleteRecoveryGroup.go create mode 100644 service/route53recoveryreadiness/api_op_DeleteResourceSet.go create mode 100644 service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go create mode 100644 service/route53recoveryreadiness/api_op_GetCell.go create mode 100644 service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go create mode 100644 service/route53recoveryreadiness/api_op_GetReadinessCheck.go create mode 100644 service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go create mode 100644 service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go create mode 100644 service/route53recoveryreadiness/api_op_GetRecoveryGroup.go create mode 100644 service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go create mode 100644 service/route53recoveryreadiness/api_op_GetResourceSet.go create mode 100644 service/route53recoveryreadiness/api_op_ListCells.go create mode 100644 service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go create mode 100644 service/route53recoveryreadiness/api_op_ListReadinessChecks.go create mode 100644 service/route53recoveryreadiness/api_op_ListRecoveryGroups.go create mode 100644 service/route53recoveryreadiness/api_op_ListResourceSets.go create mode 100644 service/route53recoveryreadiness/api_op_ListRules.go create mode 100644 service/route53recoveryreadiness/api_op_ListTagsForResources.go create mode 100644 service/route53recoveryreadiness/api_op_TagResource.go create mode 100644 service/route53recoveryreadiness/api_op_UntagResource.go create mode 100644 service/route53recoveryreadiness/api_op_UpdateCell.go create mode 100644 service/route53recoveryreadiness/api_op_UpdateReadinessCheck.go create mode 100644 service/route53recoveryreadiness/api_op_UpdateRecoveryGroup.go create mode 100644 service/route53recoveryreadiness/api_op_UpdateResourceSet.go create mode 100644 service/route53recoveryreadiness/deserializers.go create mode 100644 service/route53recoveryreadiness/doc.go create mode 100644 service/route53recoveryreadiness/endpoints.go create mode 100644 service/route53recoveryreadiness/generated.json create mode 100644 service/route53recoveryreadiness/go.mod create mode 100644 service/route53recoveryreadiness/go.sum create mode 100644 service/route53recoveryreadiness/go_module_metadata.go create mode 100644 service/route53recoveryreadiness/internal/endpoints/endpoints.go create mode 100644 service/route53recoveryreadiness/internal/endpoints/endpoints_test.go create mode 100644 service/route53recoveryreadiness/protocol_test.go create mode 100644 service/route53recoveryreadiness/serializers.go create mode 100644 service/route53recoveryreadiness/types/enums.go create mode 100644 service/route53recoveryreadiness/types/errors.go create mode 100644 service/route53recoveryreadiness/types/types.go create mode 100644 service/route53recoveryreadiness/validators.go create mode 100644 service/textract/api_op_AnalyzeExpense.go diff --git a/.changelog/2195532b709e4ad5b6d42f8984a305c1.json b/.changelog/2195532b709e4ad5b6d42f8984a305c1.json new file mode 100644 index 00000000000..f48f49fc58c --- /dev/null +++ b/.changelog/2195532b709e4ad5b6d42f8984a305c1.json @@ -0,0 +1,59 @@ +{ + "id": "2195532b-709e-4ad5-b6d4-2f8984a305c1", + "type": "feature", + "description": "API client updated", + "modules": [ + "service/appintegrations", + "service/appsync", + "service/auditmanager", + "service/batch", + "service/chime", + "service/cloudformation", + "service/cloudwatch", + "service/codebuild", + "service/cognitoidentityprovider", + "service/computeoptimizer", + "service/databrew", + "service/directconnect", + "service/ec2", + "service/ecs", + "service/elasticloadbalancingv2", + "service/emr", + "service/emrcontainers", + "service/greengrassv2", + "service/iam", + "service/identitystore", + "service/imagebuilder", + "service/iot", + "service/iotanalytics", + "service/iotsitewise", + "service/iotwireless", + "service/kendra", + "service/lambda", + "service/lexmodelbuildingservice", + "service/lexmodelsv2", + "service/location", + "service/medialive", + "service/personalize", + "service/proton", + "service/qldb", + "service/quicksight", + "service/rds", + "service/redshiftdata", + "service/robomaker", + "service/route53", + "service/route53recoverycluster", + "service/route53recoverycontrolconfig", + "service/route53recoveryreadiness", + "service/s3control", + "service/s3outposts", + "service/sagemaker", + "service/secretsmanager", + "service/securityhub", + "service/shield", + "service/ssmcontacts", + "service/ssoadmin", + "service/synthetics", + "service/textract" + ] +} \ No newline at end of file diff --git a/.changelog/41575353444b40ffbf474f4155544f00.json b/.changelog/41575353444b40ffbf474f4155544f00.json new file mode 100644 index 00000000000..e91e0d34b29 --- /dev/null +++ b/.changelog/41575353444b40ffbf474f4155544f00.json @@ -0,0 +1,10 @@ +{ + "id": "41575353-444b-40ff-bf47-4f4155544f00", + "type": "release", + "description": "New AWS service client module", + "modules": [ + "service/route53recoverycluster", + "service/route53recoverycontrolconfig", + "service/route53recoveryreadiness" + ] +} \ No newline at end of file diff --git a/service/appintegrations/api_op_CreateEventIntegration.go b/service/appintegrations/api_op_CreateEventIntegration.go index ad4b3daf0ff..7cdd791ccca 100644 --- a/service/appintegrations/api_op_CreateEventIntegration.go +++ b/service/appintegrations/api_op_CreateEventIntegration.go @@ -12,10 +12,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. Creates an EventIntegration, given a specified name, description, and a -// reference to an Amazon Eventbridge bus in your account and a partner event -// source that will push events to that bus. No objects are created in the your +// Creates an EventIntegration, given a specified name, description, and a +// reference to an Amazon EventBridge bus in your account and a partner event +// source that pushes events to that bus. No objects are created in the your // account, only metadata that is persisted on the EventIntegration control plane. func (c *Client) CreateEventIntegration(ctx context.Context, params *CreateEventIntegrationInput, optFns ...func(*Options)) (*CreateEventIntegrationOutput, error) { if params == nil { @@ -34,7 +33,7 @@ func (c *Client) CreateEventIntegration(ctx context.Context, params *CreateEvent type CreateEventIntegrationInput struct { - // The Eventbridge bus. + // The EventBridge bus. // // This member is required. EventBridgeBus *string diff --git a/service/appintegrations/api_op_DeleteEventIntegration.go b/service/appintegrations/api_op_DeleteEventIntegration.go index 8d51af006b6..7e484221c75 100644 --- a/service/appintegrations/api_op_DeleteEventIntegration.go +++ b/service/appintegrations/api_op_DeleteEventIntegration.go @@ -10,9 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. Deletes the specified existing event integration. If the event -// integration is associated with clients, the request is rejected. +// Deletes the specified existing event integration. If the event integration is +// associated with clients, the request is rejected. func (c *Client) DeleteEventIntegration(ctx context.Context, params *DeleteEventIntegrationInput, optFns ...func(*Options)) (*DeleteEventIntegrationOutput, error) { if params == nil { params = &DeleteEventIntegrationInput{} diff --git a/service/appintegrations/api_op_GetEventIntegration.go b/service/appintegrations/api_op_GetEventIntegration.go index 972f09bfaac..cdb5fe9e35d 100644 --- a/service/appintegrations/api_op_GetEventIntegration.go +++ b/service/appintegrations/api_op_GetEventIntegration.go @@ -11,8 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. Return information about the event integration. +// Return information about the event integration. func (c *Client) GetEventIntegration(ctx context.Context, params *GetEventIntegrationInput, optFns ...func(*Options)) (*GetEventIntegrationOutput, error) { if params == nil { params = &GetEventIntegrationInput{} @@ -43,7 +42,7 @@ type GetEventIntegrationOutput struct { // The description of the event integration. Description *string - // The Eventbridge bus. + // The EventBridge bus. EventBridgeBus *string // The event filter. diff --git a/service/appintegrations/api_op_ListEventIntegrationAssociations.go b/service/appintegrations/api_op_ListEventIntegrationAssociations.go index 5b095005f14..3771585d364 100644 --- a/service/appintegrations/api_op_ListEventIntegrationAssociations.go +++ b/service/appintegrations/api_op_ListEventIntegrationAssociations.go @@ -11,9 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. Returns a paginated list of event integration associations in the -// account. +// Returns a paginated list of event integration associations in the account. func (c *Client) ListEventIntegrationAssociations(ctx context.Context, params *ListEventIntegrationAssociationsInput, optFns ...func(*Options)) (*ListEventIntegrationAssociationsOutput, error) { if params == nil { params = &ListEventIntegrationAssociationsInput{} diff --git a/service/appintegrations/api_op_ListEventIntegrations.go b/service/appintegrations/api_op_ListEventIntegrations.go index ee95555462a..5d797e5abc4 100644 --- a/service/appintegrations/api_op_ListEventIntegrations.go +++ b/service/appintegrations/api_op_ListEventIntegrations.go @@ -11,8 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. Returns a paginated list of event integrations in the account. +// Returns a paginated list of event integrations in the account. func (c *Client) ListEventIntegrations(ctx context.Context, params *ListEventIntegrationsInput, optFns ...func(*Options)) (*ListEventIntegrationsOutput, error) { if params == nil { params = &ListEventIntegrationsInput{} diff --git a/service/appintegrations/api_op_ListTagsForResource.go b/service/appintegrations/api_op_ListTagsForResource.go index acc3748dad9..03f0ae37c90 100644 --- a/service/appintegrations/api_op_ListTagsForResource.go +++ b/service/appintegrations/api_op_ListTagsForResource.go @@ -10,8 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. Lists the tags for the specified resource. +// Lists the tags for the specified resource. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/appintegrations/api_op_TagResource.go b/service/appintegrations/api_op_TagResource.go index 413f1975124..1a8302baa66 100644 --- a/service/appintegrations/api_op_TagResource.go +++ b/service/appintegrations/api_op_TagResource.go @@ -10,8 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. Adds the specified tags to the specified resource. +// Adds the specified tags to the specified resource. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/appintegrations/api_op_UntagResource.go b/service/appintegrations/api_op_UntagResource.go index 15c2716339d..2ef4fb42ff4 100644 --- a/service/appintegrations/api_op_UntagResource.go +++ b/service/appintegrations/api_op_UntagResource.go @@ -10,8 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. Removes the specified tags from the specified resource. +// Removes the specified tags from the specified resource. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/appintegrations/api_op_UpdateEventIntegration.go b/service/appintegrations/api_op_UpdateEventIntegration.go index 217552ce5f4..fca740f5fd6 100644 --- a/service/appintegrations/api_op_UpdateEventIntegration.go +++ b/service/appintegrations/api_op_UpdateEventIntegration.go @@ -10,8 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. Updates the description of an event integration. +// Updates the description of an event integration. func (c *Client) UpdateEventIntegration(ctx context.Context, params *UpdateEventIntegrationInput, optFns ...func(*Options)) (*UpdateEventIntegrationOutput, error) { if params == nil { params = &UpdateEventIntegrationInput{} diff --git a/service/appintegrations/doc.go b/service/appintegrations/doc.go index d79ab188eff..0c739ea5add 100644 --- a/service/appintegrations/doc.go +++ b/service/appintegrations/doc.go @@ -3,8 +3,7 @@ // Package appintegrations provides the API client, operations, and parameter types // for Amazon AppIntegrations Service. // -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. The Amazon AppIntegrations service enables you to configure and reuse +// The Amazon AppIntegrations service enables you to configure and reuse // connections to external applications. For information about how you can use // external applications with Amazon Connect, see Set up pre-built integrations // (https://docs.aws.amazon.com/connect/latest/adminguide/crm.html) in the Amazon diff --git a/service/appintegrations/types/types.go b/service/appintegrations/types/types.go index 599ae781fb6..1c647e5df72 100644 --- a/service/appintegrations/types/types.go +++ b/service/appintegrations/types/types.go @@ -6,8 +6,7 @@ import ( smithydocument "github.com/aws/smithy-go/document" ) -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. The event filter. +// The event filter. type EventFilter struct { // The source of the events. @@ -18,14 +17,13 @@ type EventFilter struct { noSmithyDocumentSerde } -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. The event integration. +// The event integration. type EventIntegration struct { // The event integration description. Description *string - // The Amazon Eventbridge bus for the event integration. + // The Amazon EventBridge bus for the event integration. EventBridgeBus *string // The event integration filter. @@ -43,8 +41,7 @@ type EventIntegration struct { noSmithyDocumentSerde } -// The Amazon AppIntegrations APIs are in preview release and are subject to -// change. The event integration association. +// The event integration association. type EventIntegrationAssociation struct { // The metadata associated with the client. @@ -53,7 +50,7 @@ type EventIntegrationAssociation struct { // The identifier for the client that is associated with the event integration. ClientId *string - // The name of the Eventbridge rule. + // The name of the EventBridge rule. EventBridgeRuleName *string // The Amazon Resource Name (ARN) for the event integration association. diff --git a/service/appsync/api_op_CreateDataSource.go b/service/appsync/api_op_CreateDataSource.go index 8a71f80c3f1..fc157a922ef 100644 --- a/service/appsync/api_op_CreateDataSource.go +++ b/service/appsync/api_op_CreateDataSource.go @@ -56,14 +56,14 @@ type CreateDataSourceInput struct { // HTTP endpoint settings. HttpConfig *types.HttpDataSourceConfig - // AWS Lambda settings. + // Amazon Web Services Lambda settings. LambdaConfig *types.LambdaDataSourceConfig // Relational database settings. RelationalDatabaseConfig *types.RelationalDatabaseDataSourceConfig - // The AWS IAM service role ARN for the data source. The system assumes this role - // when accessing the data source. + // The Identity and Access Management service role ARN for the data source. The + // system assumes this role when accessing the data source. ServiceRoleArn *string noSmithyDocumentSerde diff --git a/service/appsync/api_op_CreateGraphqlApi.go b/service/appsync/api_op_CreateGraphqlApi.go index 6d510d2400b..74237ce29aa 100644 --- a/service/appsync/api_op_CreateGraphqlApi.go +++ b/service/appsync/api_op_CreateGraphqlApi.go @@ -29,7 +29,8 @@ func (c *Client) CreateGraphqlApi(ctx context.Context, params *CreateGraphqlApiI type CreateGraphqlApiInput struct { - // The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user pools. + // The authentication type: API key, Identity and Access Management, OIDC, or + // Amazon Cognito user pools. // // This member is required. AuthenticationType types.AuthenticationType @@ -42,6 +43,9 @@ type CreateGraphqlApiInput struct { // A list of additional authentication providers for the GraphqlApi API. AdditionalAuthenticationProviders []types.AdditionalAuthenticationProvider + // Configuration for AWS Lambda function authorization. + LambdaAuthorizerConfig *types.LambdaAuthorizerConfig + // The Amazon CloudWatch Logs configuration. LogConfig *types.LogConfig diff --git a/service/appsync/api_op_UpdateDataSource.go b/service/appsync/api_op_UpdateDataSource.go index 7249d9cfb2b..114737c60d0 100644 --- a/service/appsync/api_op_UpdateDataSource.go +++ b/service/appsync/api_op_UpdateDataSource.go @@ -56,7 +56,7 @@ type UpdateDataSourceInput struct { // The new HTTP endpoint configuration. HttpConfig *types.HttpDataSourceConfig - // The new AWS Lambda configuration. + // The new Amazon Web Services Lambda configuration. LambdaConfig *types.LambdaDataSourceConfig // The new relational database configuration. diff --git a/service/appsync/api_op_UpdateGraphqlApi.go b/service/appsync/api_op_UpdateGraphqlApi.go index 84f0e69155a..b1644150908 100644 --- a/service/appsync/api_op_UpdateGraphqlApi.go +++ b/service/appsync/api_op_UpdateGraphqlApi.go @@ -45,6 +45,9 @@ type UpdateGraphqlApiInput struct { // The new authentication type for the GraphqlApi object. AuthenticationType types.AuthenticationType + // Configuration for AWS Lambda function authorization. + LambdaAuthorizerConfig *types.LambdaAuthorizerConfig + // The Amazon CloudWatch Logs configuration for the GraphqlApi object. LogConfig *types.LogConfig diff --git a/service/appsync/deserializers.go b/service/appsync/deserializers.go index 7ea41c3e385..315b73d22c5 100644 --- a/service/appsync/deserializers.go +++ b/service/appsync/deserializers.go @@ -6368,6 +6368,11 @@ func awsRestjson1_deserializeDocumentAdditionalAuthenticationProvider(v **types. sv.AuthenticationType = types.AuthenticationType(jtv) } + case "lambdaAuthorizerConfig": + if err := awsRestjson1_deserializeDocumentLambdaAuthorizerConfig(&sv.LambdaAuthorizerConfig, value); err != nil { + return err + } + case "openIDConnectConfig": if err := awsRestjson1_deserializeDocumentOpenIDConnectConfig(&sv.OpenIDConnectConfig, value); err != nil { return err @@ -7610,6 +7615,11 @@ func awsRestjson1_deserializeDocumentGraphqlApi(v **types.GraphqlApi, value inte sv.AuthenticationType = types.AuthenticationType(jtv) } + case "lambdaAuthorizerConfig": + if err := awsRestjson1_deserializeDocumentLambdaAuthorizerConfig(&sv.LambdaAuthorizerConfig, value); err != nil { + return err + } + case "logConfig": if err := awsRestjson1_deserializeDocumentLogConfig(&sv.LogConfig, value); err != nil { return err @@ -7830,6 +7840,68 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal return nil } +func awsRestjson1_deserializeDocumentLambdaAuthorizerConfig(v **types.LambdaAuthorizerConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.LambdaAuthorizerConfig + if *v == nil { + sv = &types.LambdaAuthorizerConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "authorizerResultTtlInSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected TTL to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AuthorizerResultTtlInSeconds = int32(i64) + } + + case "authorizerUri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.AuthorizerUri = ptr.String(jtv) + } + + case "identityValidationExpression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.IdentityValidationExpression = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentLambdaConflictHandlerConfig(v **types.LambdaConflictHandlerConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/appsync/doc.go b/service/appsync/doc.go index 7fcae7418ba..9326f02ccc7 100644 --- a/service/appsync/doc.go +++ b/service/appsync/doc.go @@ -3,6 +3,6 @@ // Package appsync provides the API client, operations, and parameter types for AWS // AppSync. // -// AWS AppSync provides API actions for creating and interacting with data sources +// AppSync provides API actions for creating and interacting with data sources // using GraphQL from your application. package appsync diff --git a/service/appsync/serializers.go b/service/appsync/serializers.go index 96cb94bc9c0..d7840ea03fe 100644 --- a/service/appsync/serializers.go +++ b/service/appsync/serializers.go @@ -517,6 +517,13 @@ func awsRestjson1_serializeOpDocumentCreateGraphqlApiInput(v *CreateGraphqlApiIn ok.String(string(v.AuthenticationType)) } + if v.LambdaAuthorizerConfig != nil { + ok := object.Key("lambdaAuthorizerConfig") + if err := awsRestjson1_serializeDocumentLambdaAuthorizerConfig(v.LambdaAuthorizerConfig, ok); err != nil { + return err + } + } + if v.LogConfig != nil { ok := object.Key("logConfig") if err := awsRestjson1_serializeDocumentLogConfig(v.LogConfig, ok); err != nil { @@ -3103,6 +3110,13 @@ func awsRestjson1_serializeOpDocumentUpdateGraphqlApiInput(v *UpdateGraphqlApiIn ok.String(string(v.AuthenticationType)) } + if v.LambdaAuthorizerConfig != nil { + ok := object.Key("lambdaAuthorizerConfig") + if err := awsRestjson1_serializeDocumentLambdaAuthorizerConfig(v.LambdaAuthorizerConfig, ok); err != nil { + return err + } + } + if v.LogConfig != nil { ok := object.Key("logConfig") if err := awsRestjson1_serializeDocumentLogConfig(v.LogConfig, ok); err != nil { @@ -3376,6 +3390,13 @@ func awsRestjson1_serializeDocumentAdditionalAuthenticationProvider(v *types.Add ok.String(string(v.AuthenticationType)) } + if v.LambdaAuthorizerConfig != nil { + ok := object.Key("lambdaAuthorizerConfig") + if err := awsRestjson1_serializeDocumentLambdaAuthorizerConfig(v.LambdaAuthorizerConfig, ok); err != nil { + return err + } + } + if v.OpenIDConnectConfig != nil { ok := object.Key("openIDConnectConfig") if err := awsRestjson1_serializeDocumentOpenIDConnectConfig(v.OpenIDConnectConfig, ok); err != nil { @@ -3597,6 +3618,28 @@ func awsRestjson1_serializeDocumentHttpDataSourceConfig(v *types.HttpDataSourceC return nil } +func awsRestjson1_serializeDocumentLambdaAuthorizerConfig(v *types.LambdaAuthorizerConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AuthorizerResultTtlInSeconds != 0 { + ok := object.Key("authorizerResultTtlInSeconds") + ok.Integer(v.AuthorizerResultTtlInSeconds) + } + + if v.AuthorizerUri != nil { + ok := object.Key("authorizerUri") + ok.String(*v.AuthorizerUri) + } + + if v.IdentityValidationExpression != nil { + ok := object.Key("identityValidationExpression") + ok.String(*v.IdentityValidationExpression) + } + + return nil +} + func awsRestjson1_serializeDocumentLambdaConflictHandlerConfig(v *types.LambdaConflictHandlerConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/appsync/types/enums.go b/service/appsync/types/enums.go index 0ee879d09a3..46aef5bb972 100644 --- a/service/appsync/types/enums.go +++ b/service/appsync/types/enums.go @@ -96,6 +96,7 @@ const ( AuthenticationTypeAwsIam AuthenticationType = "AWS_IAM" AuthenticationTypeAmazonCognitoUserPools AuthenticationType = "AMAZON_COGNITO_USER_POOLS" AuthenticationTypeOpenidConnect AuthenticationType = "OPENID_CONNECT" + AuthenticationTypeAwsLambda AuthenticationType = "AWS_LAMBDA" ) // Values returns all known values for AuthenticationType. Note that this can be @@ -107,6 +108,7 @@ func (AuthenticationType) Values() []AuthenticationType { "AWS_IAM", "AMAZON_COGNITO_USER_POOLS", "OPENID_CONNECT", + "AWS_LAMBDA", } } diff --git a/service/appsync/types/errors.go b/service/appsync/types/errors.go index d7f70a13a11..dbd0fcb760e 100644 --- a/service/appsync/types/errors.go +++ b/service/appsync/types/errors.go @@ -149,7 +149,7 @@ func (e *GraphQLSchemaException) ErrorMessage() string { func (e *GraphQLSchemaException) ErrorCode() string { return "GraphQLSchemaException" } func (e *GraphQLSchemaException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// An internal AWS AppSync error occurred. Try your request again. +// An internal AppSync error occurred. Try your request again. type InternalFailureException struct { Message *string diff --git a/service/appsync/types/types.go b/service/appsync/types/types.go index 726e34a9059..e1cbb551a1d 100644 --- a/service/appsync/types/types.go +++ b/service/appsync/types/types.go @@ -9,9 +9,13 @@ import ( // Describes an additional authentication provider. type AdditionalAuthenticationProvider struct { - // The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user pools. + // The authentication type: API key, Identity and Access Management, OIDC, or + // Amazon Cognito user pools. AuthenticationType AuthenticationType + // Configuration for AWS Lambda function authorization. + LambdaAuthorizerConfig *LambdaAuthorizerConfig + // The OpenID Connect configuration. OpenIDConnectConfig *OpenIDConnectConfig @@ -105,20 +109,20 @@ type ApiCache struct { noSmithyDocumentSerde } -// Describes an API key. Customers invoke AWS AppSync GraphQL API operations with -// API keys as an identity mechanism. There are two key versions: da1: This version -// was introduced at launch in November 2017. These keys always expire after 7 -// days. Key expiration is managed by Amazon DynamoDB TTL. The keys ceased to be -// valid after February 21, 2018 and should not be used after that date. +// Describes an API key. Customers invoke AppSync GraphQL API operations with API +// keys as an identity mechanism. There are two key versions: da1: This version was +// introduced at launch in November 2017. These keys always expire after 7 days. +// Key expiration is managed by Amazon DynamoDB TTL. The keys ceased to be valid +// after February 21, 2018 and should not be used after that date. // -// * -// ListApiKeys returns the expiration time in milliseconds. +// * ListApiKeys +// returns the expiration time in milliseconds. // -// * CreateApiKey returns -// the expiration time in milliseconds. +// * CreateApiKey returns the +// expiration time in milliseconds. // -// * UpdateApiKey is not available for this -// key version. +// * UpdateApiKey is not available for this key +// version. // // * DeleteApiKey deletes the item from the table. // @@ -182,19 +186,19 @@ type AuthorizationConfig struct { // This member is required. AuthorizationType AuthorizationType - // The AWS IAM settings. + // The Identity and Access Management settings. AwsIamConfig *AwsIamConfig noSmithyDocumentSerde } -// The AWS IAM configuration. +// The Identity and Access Management configuration. type AwsIamConfig struct { - // The signing region for AWS IAM authorization. + // The signing region for Identity and Access Management authorization. SigningRegion *string - // The signing service name for AWS IAM authorization. + // The signing service name for Identity and Access Management authorization. SigningServiceName *string noSmithyDocumentSerde @@ -218,7 +222,7 @@ type CachingConfig struct { // Describes an Amazon Cognito user pool configuration. type CognitoUserPoolConfig struct { - // The AWS Region in which the user pool was created. + // The Amazon Web Services Region in which the user pool was created. // // This member is required. AwsRegion *string @@ -253,7 +257,7 @@ type DataSource struct { // HTTP endpoint settings. HttpConfig *HttpDataSourceConfig - // AWS Lambda settings. + // Amazon Web Services Lambda settings. LambdaConfig *LambdaDataSourceConfig // The name of the data source. @@ -262,8 +266,8 @@ type DataSource struct { // Relational database settings. RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig - // The AWS IAM service role ARN for the data source. The system assumes this role - // when accessing the data source. + // The Identity and Access Management service role ARN for the data source. The + // system assumes this role when accessing the data source. ServiceRoleArn *string // The type of the data source. @@ -274,18 +278,18 @@ type DataSource struct { // * AMAZON_ELASTICSEARCH: The data source is an Amazon // Elasticsearch Service domain. // - // * AWS_LAMBDA: The data source is an AWS Lambda - // function. + // * AWS_LAMBDA: The data source is an Amazon Web + // Services Lambda function. // - // * NONE: There is no data source. This type is used when you wish to - // invoke a GraphQL operation without connecting to a data source, such as - // performing data transformation with resolvers or triggering a subscription to be - // invoked from a mutation. + // * NONE: There is no data source. This type is used + // when you wish to invoke a GraphQL operation without connecting to a data source, + // such as performing data transformation with resolvers or triggering a + // subscription to be invoked from a mutation. // - // * HTTP: The data source is an HTTP endpoint. + // * HTTP: The data source is an HTTP + // endpoint. // - // * - // RELATIONAL_DATABASE: The data source is a relational database. + // * RELATIONAL_DATABASE: The data source is a relational database. Type DataSourceType noSmithyDocumentSerde @@ -309,7 +313,7 @@ type DeltaSyncConfig struct { // Describes an Amazon DynamoDB data source configuration. type DynamodbDataSourceConfig struct { - // The AWS Region. + // The Amazon Web Services Region. // // This member is required. AwsRegion *string @@ -334,7 +338,7 @@ type DynamodbDataSourceConfig struct { // Describes an Elasticsearch data source configuration. type ElasticsearchDataSourceConfig struct { - // The AWS Region. + // The Amazon Web Services Region. // // This member is required. AwsRegion *string @@ -400,6 +404,9 @@ type GraphqlApi struct { // The authentication type. AuthenticationType AuthenticationType + // Configuration for AWS Lambda function authorization. + LambdaAuthorizerConfig *LambdaAuthorizerConfig + // The Amazon CloudWatch Logs configuration. LogConfig *LogConfig @@ -418,8 +425,7 @@ type GraphqlApi struct { // The Amazon Cognito user pool configuration. UserPoolConfig *UserPoolConfig - // The ARN of the AWS Web Application Firewall (WAF) ACL associated with this - // GraphqlApi, if one exists. + // The ARN of the WAF ACL associated with this GraphqlApi, if one exists. WafWebAclArn *string // A flag representing whether X-Ray tracing is enabled for this GraphqlApi. @@ -436,13 +442,41 @@ type HttpDataSourceConfig struct { // The HTTP URL endpoint. You can either specify the domain name or IP, and port // combination, and the URL scheme must be HTTP or HTTPS. If the port is not - // specified, AWS AppSync uses the default port 80 for the HTTP endpoint and port - // 443 for HTTPS endpoints. + // specified, AppSync uses the default port 80 for the HTTP endpoint and port 443 + // for HTTPS endpoints. Endpoint *string noSmithyDocumentSerde } +// A LambdaAuthorizerConfig holds configuration on how to authorize AppSync API +// access when using the AWS_LAMBDA authorizer mode. Be aware that an AppSync API +// may have only one Lambda authorizer configured at a time. +type LambdaAuthorizerConfig struct { + + // The ARN of the lambda function to be called for authorization. This may be a + // standard Lambda ARN, a version ARN (.../v3) or alias ARN. Note: This Lambda + // function must have the following resource-based policy assigned to it. When + // configuring Lambda authorizers in the Console, this is done for you. To do so + // with the AWS CLI, run the following: aws lambda add-permission --function-name + // "arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id + // "appsync" --principal appsync.amazonaws.com --action lambda:InvokeFunction + // + // This member is required. + AuthorizerUri *string + + // The number of seconds a response should be cached for. The default is 5 minutes + // (300 seconds). The Lambda function can override this by returning a ttlOverride + // key in its response. A value of 0 disables caching of responses. + AuthorizerResultTtlInSeconds int32 + + // A regular expression for validation of tokens before the Lambda Function is + // called. + IdentityValidationExpression *string + + noSmithyDocumentSerde +} + // The LambdaConflictHandlerConfig object when configuring LAMBDA as the Conflict // Handler. type LambdaConflictHandlerConfig struct { @@ -453,7 +487,7 @@ type LambdaConflictHandlerConfig struct { noSmithyDocumentSerde } -// Describes an AWS Lambda data source configuration. +// Describes an Amazon Web Services Lambda data source configuration. type LambdaDataSourceConfig struct { // The ARN for the Lambda function. @@ -467,8 +501,8 @@ type LambdaDataSourceConfig struct { // The CloudWatch Logs configuration. type LogConfig struct { - // The service role that AWS AppSync will assume to publish to Amazon CloudWatch - // logs in your account. + // The service role that AppSync will assume to publish to Amazon CloudWatch logs + // in your account. // // This member is required. CloudWatchLogsRoleArn *string @@ -521,8 +555,8 @@ type OpenIDConnectConfig struct { // The client identifier of the Relying party at the OpenID identity provider. This // identifier is typically obtained when the Relying party is registered with the - // OpenID identity provider. You can specify a regular expression so the AWS - // AppSync can validate against multiple client identifiers at a time. + // OpenID identity provider. You can specify a regular expression so the AppSync + // can validate against multiple client identifiers at a time. ClientId *string // The number of milliseconds a token is valid after being issued to a user. @@ -543,10 +577,10 @@ type PipelineConfig struct { // The Amazon RDS HTTP endpoint configuration. type RdsHttpEndpointConfig struct { - // AWS Region for RDS HTTP endpoint. + // Amazon Web Services Region for RDS HTTP endpoint. AwsRegion *string - // AWS secret store ARN for database credentials. + // Amazon Web Services secret store ARN for database credentials. AwsSecretStoreArn *string // Logical database name. @@ -677,7 +711,7 @@ type Type struct { // Describes an Amazon Cognito user pool configuration. type UserPoolConfig struct { - // The AWS Region in which the user pool was created. + // The Amazon Web Services Region in which the user pool was created. // // This member is required. AwsRegion *string diff --git a/service/appsync/validators.go b/service/appsync/validators.go index eb9061ff248..69ce6849550 100644 --- a/service/appsync/validators.go +++ b/service/appsync/validators.go @@ -985,6 +985,11 @@ func validateAdditionalAuthenticationProvider(v *types.AdditionalAuthenticationP invalidParams.AddNested("UserPoolConfig", err.(smithy.InvalidParamsError)) } } + if v.LambdaAuthorizerConfig != nil { + if err := validateLambdaAuthorizerConfig(v.LambdaAuthorizerConfig); err != nil { + invalidParams.AddNested("LambdaAuthorizerConfig", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1095,6 +1100,21 @@ func validateHttpDataSourceConfig(v *types.HttpDataSourceConfig) error { } } +func validateLambdaAuthorizerConfig(v *types.LambdaAuthorizerConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "LambdaAuthorizerConfig"} + if v.AuthorizerUri == nil { + invalidParams.Add(smithy.NewErrParamRequired("AuthorizerUri")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateLambdaDataSourceConfig(v *types.LambdaDataSourceConfig) error { if v == nil { return nil @@ -1296,6 +1316,11 @@ func validateOpCreateGraphqlApiInput(v *CreateGraphqlApiInput) error { invalidParams.AddNested("AdditionalAuthenticationProviders", err.(smithy.InvalidParamsError)) } } + if v.LambdaAuthorizerConfig != nil { + if err := validateLambdaAuthorizerConfig(v.LambdaAuthorizerConfig); err != nil { + invalidParams.AddNested("LambdaAuthorizerConfig", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1930,6 +1955,11 @@ func validateOpUpdateGraphqlApiInput(v *UpdateGraphqlApiInput) error { invalidParams.AddNested("AdditionalAuthenticationProviders", err.(smithy.InvalidParamsError)) } } + if v.LambdaAuthorizerConfig != nil { + if err := validateLambdaAuthorizerConfig(v.LambdaAuthorizerConfig); err != nil { + invalidParams.AddNested("LambdaAuthorizerConfig", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/auditmanager/api_op_AssociateAssessmentReportEvidenceFolder.go b/service/auditmanager/api_op_AssociateAssessmentReportEvidenceFolder.go index b2b77d49536..f3cd1dd0839 100644 --- a/service/auditmanager/api_op_AssociateAssessmentReportEvidenceFolder.go +++ b/service/auditmanager/api_op_AssociateAssessmentReportEvidenceFolder.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Associates an evidence folder to the specified assessment report in AWS Audit +// Associates an evidence folder to the specified assessment report in Audit // Manager. func (c *Client) AssociateAssessmentReportEvidenceFolder(ctx context.Context, params *AssociateAssessmentReportEvidenceFolderInput, optFns ...func(*Options)) (*AssociateAssessmentReportEvidenceFolderOutput, error) { if params == nil { diff --git a/service/auditmanager/api_op_BatchAssociateAssessmentReportEvidence.go b/service/auditmanager/api_op_BatchAssociateAssessmentReportEvidence.go index c56647f52f5..11898431b75 100644 --- a/service/auditmanager/api_op_BatchAssociateAssessmentReportEvidence.go +++ b/service/auditmanager/api_op_BatchAssociateAssessmentReportEvidence.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Associates a list of evidence to an assessment report in an AWS Audit Manager +// Associates a list of evidence to an assessment report in an Audit Manager // assessment. func (c *Client) BatchAssociateAssessmentReportEvidence(ctx context.Context, params *BatchAssociateAssessmentReportEvidenceInput, optFns ...func(*Options)) (*BatchAssociateAssessmentReportEvidenceOutput, error) { if params == nil { diff --git a/service/auditmanager/api_op_BatchCreateDelegationByAssessment.go b/service/auditmanager/api_op_BatchCreateDelegationByAssessment.go index 370a2ab2fff..81eebf711d2 100644 --- a/service/auditmanager/api_op_BatchCreateDelegationByAssessment.go +++ b/service/auditmanager/api_op_BatchCreateDelegationByAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Create a batch of delegations for a specified assessment in AWS Audit Manager. +// Create a batch of delegations for a specified assessment in Audit Manager. func (c *Client) BatchCreateDelegationByAssessment(ctx context.Context, params *BatchCreateDelegationByAssessmentInput, optFns ...func(*Options)) (*BatchCreateDelegationByAssessmentOutput, error) { if params == nil { params = &BatchCreateDelegationByAssessmentInput{} @@ -34,7 +34,7 @@ type BatchCreateDelegationByAssessmentInput struct { // This member is required. AssessmentId *string - // The API request to batch create delegations in AWS Audit Manager. + // The API request to batch create delegations in Audit Manager. // // This member is required. CreateDelegationRequests []types.CreateDelegationRequest diff --git a/service/auditmanager/api_op_BatchDeleteDelegationByAssessment.go b/service/auditmanager/api_op_BatchDeleteDelegationByAssessment.go index ed456aa874a..2368faf7312 100644 --- a/service/auditmanager/api_op_BatchDeleteDelegationByAssessment.go +++ b/service/auditmanager/api_op_BatchDeleteDelegationByAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes the delegations in the specified AWS Audit Manager assessment. +// Deletes the delegations in the specified Audit Manager assessment. func (c *Client) BatchDeleteDelegationByAssessment(ctx context.Context, params *BatchDeleteDelegationByAssessmentInput, optFns ...func(*Options)) (*BatchDeleteDelegationByAssessmentOutput, error) { if params == nil { params = &BatchDeleteDelegationByAssessmentInput{} diff --git a/service/auditmanager/api_op_BatchDisassociateAssessmentReportEvidence.go b/service/auditmanager/api_op_BatchDisassociateAssessmentReportEvidence.go index 3ba364fdac0..55f7aa9b122 100644 --- a/service/auditmanager/api_op_BatchDisassociateAssessmentReportEvidence.go +++ b/service/auditmanager/api_op_BatchDisassociateAssessmentReportEvidence.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Disassociates a list of evidence from the specified assessment report in AWS -// Audit Manager. +// Disassociates a list of evidence from the specified assessment report in Audit +// Manager. func (c *Client) BatchDisassociateAssessmentReportEvidence(ctx context.Context, params *BatchDisassociateAssessmentReportEvidenceInput, optFns ...func(*Options)) (*BatchDisassociateAssessmentReportEvidenceOutput, error) { if params == nil { params = &BatchDisassociateAssessmentReportEvidenceInput{} diff --git a/service/auditmanager/api_op_BatchImportEvidenceToAssessmentControl.go b/service/auditmanager/api_op_BatchImportEvidenceToAssessmentControl.go index a961ddb9d68..6b9f822bb5c 100644 --- a/service/auditmanager/api_op_BatchImportEvidenceToAssessmentControl.go +++ b/service/auditmanager/api_op_BatchImportEvidenceToAssessmentControl.go @@ -12,7 +12,7 @@ import ( ) // Uploads one or more pieces of evidence to the specified control in the -// assessment in AWS Audit Manager. +// assessment in Audit Manager. func (c *Client) BatchImportEvidenceToAssessmentControl(ctx context.Context, params *BatchImportEvidenceToAssessmentControlInput, optFns ...func(*Options)) (*BatchImportEvidenceToAssessmentControlOutput, error) { if params == nil { params = &BatchImportEvidenceToAssessmentControlInput{} diff --git a/service/auditmanager/api_op_CreateAssessment.go b/service/auditmanager/api_op_CreateAssessment.go index dd6994944d9..9f93d67f9e9 100644 --- a/service/auditmanager/api_op_CreateAssessment.go +++ b/service/auditmanager/api_op_CreateAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates an assessment in AWS Audit Manager. +// Creates an assessment in Audit Manager. func (c *Client) CreateAssessment(ctx context.Context, params *CreateAssessmentInput, optFns ...func(*Options)) (*CreateAssessmentOutput, error) { if params == nil { params = &CreateAssessmentInput{} @@ -50,8 +50,7 @@ type CreateAssessmentInput struct { // This member is required. Roles []types.Role - // The wrapper that contains the AWS accounts and AWS services in scope for the - // assessment. + // The wrapper that contains the accounts and services in scope for the assessment. // // This member is required. Scope *types.Scope @@ -67,9 +66,8 @@ type CreateAssessmentInput struct { type CreateAssessmentOutput struct { - // An entity that defines the scope of audit evidence collected by AWS Audit - // Manager. An AWS Audit Manager assessment is an implementation of an AWS Audit - // Manager framework. + // An entity that defines the scope of audit evidence collected by Audit Manager. + // An Audit Manager assessment is an implementation of an Audit Manager framework. Assessment *types.Assessment // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_CreateAssessmentFramework.go b/service/auditmanager/api_op_CreateAssessmentFramework.go index 60892937d31..5d55852ac32 100644 --- a/service/auditmanager/api_op_CreateAssessmentFramework.go +++ b/service/auditmanager/api_op_CreateAssessmentFramework.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a custom framework in AWS Audit Manager. +// Creates a custom framework in Audit Manager. func (c *Client) CreateAssessmentFramework(ctx context.Context, params *CreateAssessmentFrameworkInput, optFns ...func(*Options)) (*CreateAssessmentFrameworkOutput, error) { if params == nil { params = &CreateAssessmentFrameworkInput{} diff --git a/service/auditmanager/api_op_CreateControl.go b/service/auditmanager/api_op_CreateControl.go index 25aa6ff32ac..e3ab8b3f77e 100644 --- a/service/auditmanager/api_op_CreateControl.go +++ b/service/auditmanager/api_op_CreateControl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a new custom control in AWS Audit Manager. +// Creates a new custom control in Audit Manager. func (c *Client) CreateControl(ctx context.Context, params *CreateControlInput, optFns ...func(*Options)) (*CreateControlOutput, error) { if params == nil { params = &CreateControlInput{} diff --git a/service/auditmanager/api_op_DeleteAssessment.go b/service/auditmanager/api_op_DeleteAssessment.go index 9ef44ac8462..ed750a20a3b 100644 --- a/service/auditmanager/api_op_DeleteAssessment.go +++ b/service/auditmanager/api_op_DeleteAssessment.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an assessment in AWS Audit Manager. +// Deletes an assessment in Audit Manager. func (c *Client) DeleteAssessment(ctx context.Context, params *DeleteAssessmentInput, optFns ...func(*Options)) (*DeleteAssessmentOutput, error) { if params == nil { params = &DeleteAssessmentInput{} diff --git a/service/auditmanager/api_op_DeleteAssessmentFramework.go b/service/auditmanager/api_op_DeleteAssessmentFramework.go index 32839cd1408..8f0f6318f78 100644 --- a/service/auditmanager/api_op_DeleteAssessmentFramework.go +++ b/service/auditmanager/api_op_DeleteAssessmentFramework.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a custom framework in AWS Audit Manager. +// Deletes a custom framework in Audit Manager. func (c *Client) DeleteAssessmentFramework(ctx context.Context, params *DeleteAssessmentFrameworkInput, optFns ...func(*Options)) (*DeleteAssessmentFrameworkOutput, error) { if params == nil { params = &DeleteAssessmentFrameworkInput{} diff --git a/service/auditmanager/api_op_DeleteAssessmentReport.go b/service/auditmanager/api_op_DeleteAssessmentReport.go index 21fb55a3662..8f388ceada7 100644 --- a/service/auditmanager/api_op_DeleteAssessmentReport.go +++ b/service/auditmanager/api_op_DeleteAssessmentReport.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an assessment report from an assessment in AWS Audit Manager. +// Deletes an assessment report from an assessment in Audit Manager. func (c *Client) DeleteAssessmentReport(ctx context.Context, params *DeleteAssessmentReportInput, optFns ...func(*Options)) (*DeleteAssessmentReportOutput, error) { if params == nil { params = &DeleteAssessmentReportInput{} diff --git a/service/auditmanager/api_op_DeleteControl.go b/service/auditmanager/api_op_DeleteControl.go index 8edc2323475..6d73dc2aab9 100644 --- a/service/auditmanager/api_op_DeleteControl.go +++ b/service/auditmanager/api_op_DeleteControl.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a custom control in AWS Audit Manager. +// Deletes a custom control in Audit Manager. func (c *Client) DeleteControl(ctx context.Context, params *DeleteControlInput, optFns ...func(*Options)) (*DeleteControlOutput, error) { if params == nil { params = &DeleteControlInput{} diff --git a/service/auditmanager/api_op_DeregisterAccount.go b/service/auditmanager/api_op_DeregisterAccount.go index dfab1bb03e7..0be2caf5e29 100644 --- a/service/auditmanager/api_op_DeregisterAccount.go +++ b/service/auditmanager/api_op_DeregisterAccount.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deregisters an account in AWS Audit Manager. +// Deregisters an account in Audit Manager. func (c *Client) DeregisterAccount(ctx context.Context, params *DeregisterAccountInput, optFns ...func(*Options)) (*DeregisterAccountOutput, error) { if params == nil { params = &DeregisterAccountInput{} diff --git a/service/auditmanager/api_op_DeregisterOrganizationAdminAccount.go b/service/auditmanager/api_op_DeregisterOrganizationAdminAccount.go index 203a8583ca5..4af37fe9b83 100644 --- a/service/auditmanager/api_op_DeregisterOrganizationAdminAccount.go +++ b/service/auditmanager/api_op_DeregisterOrganizationAdminAccount.go @@ -10,7 +10,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deregisters the delegated AWS administrator account from the AWS organization. +// Removes the specified member account as a delegated administrator for Audit +// Manager. When you remove a delegated administrator from your Audit Manager +// settings, or when you deregister a delegated administrator from Organizations, +// you continue to have access to the evidence that you previously collected under +// that account. However, Audit Manager will stop collecting and attaching evidence +// to that delegated administrator account moving forward. func (c *Client) DeregisterOrganizationAdminAccount(ctx context.Context, params *DeregisterOrganizationAdminAccountInput, optFns ...func(*Options)) (*DeregisterOrganizationAdminAccountOutput, error) { if params == nil { params = &DeregisterOrganizationAdminAccountInput{} diff --git a/service/auditmanager/api_op_DisassociateAssessmentReportEvidenceFolder.go b/service/auditmanager/api_op_DisassociateAssessmentReportEvidenceFolder.go index 74998dbcac7..399d66b1e70 100644 --- a/service/auditmanager/api_op_DisassociateAssessmentReportEvidenceFolder.go +++ b/service/auditmanager/api_op_DisassociateAssessmentReportEvidenceFolder.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Disassociates an evidence folder from the specified assessment report in AWS -// Audit Manager. +// Disassociates an evidence folder from the specified assessment report in Audit +// Manager. func (c *Client) DisassociateAssessmentReportEvidenceFolder(ctx context.Context, params *DisassociateAssessmentReportEvidenceFolderInput, optFns ...func(*Options)) (*DisassociateAssessmentReportEvidenceFolderOutput, error) { if params == nil { params = &DisassociateAssessmentReportEvidenceFolderInput{} diff --git a/service/auditmanager/api_op_GetAccountStatus.go b/service/auditmanager/api_op_GetAccountStatus.go index 4f6e11c3ac4..31aeeef4186 100644 --- a/service/auditmanager/api_op_GetAccountStatus.go +++ b/service/auditmanager/api_op_GetAccountStatus.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the registration status of an account in AWS Audit Manager. +// Returns the registration status of an account in Audit Manager. func (c *Client) GetAccountStatus(ctx context.Context, params *GetAccountStatusInput, optFns ...func(*Options)) (*GetAccountStatusOutput, error) { if params == nil { params = &GetAccountStatusInput{} @@ -33,7 +33,7 @@ type GetAccountStatusInput struct { type GetAccountStatusOutput struct { - // The status of the specified AWS account. + // The status of the specified account. Status types.AccountStatus // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_GetAssessment.go b/service/auditmanager/api_op_GetAssessment.go index 795dee92afb..24072cad4b4 100644 --- a/service/auditmanager/api_op_GetAssessment.go +++ b/service/auditmanager/api_op_GetAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns an assessment from AWS Audit Manager. +// Returns an assessment from Audit Manager. func (c *Client) GetAssessment(ctx context.Context, params *GetAssessmentInput, optFns ...func(*Options)) (*GetAssessmentOutput, error) { if params == nil { params = &GetAssessmentInput{} @@ -39,12 +39,11 @@ type GetAssessmentInput struct { type GetAssessmentOutput struct { - // An entity that defines the scope of audit evidence collected by AWS Audit - // Manager. An AWS Audit Manager assessment is an implementation of an AWS Audit - // Manager framework. + // An entity that defines the scope of audit evidence collected by Audit Manager. + // An Audit Manager assessment is an implementation of an Audit Manager framework. Assessment *types.Assessment - // The wrapper that contains the AWS Audit Manager role information of the current + // The wrapper that contains the Audit Manager role information of the current // user, such as the role type and IAM Amazon Resource Name (ARN). UserRole *types.Role diff --git a/service/auditmanager/api_op_GetAssessmentFramework.go b/service/auditmanager/api_op_GetAssessmentFramework.go index 3315428e2a1..9a5b082bd65 100644 --- a/service/auditmanager/api_op_GetAssessmentFramework.go +++ b/service/auditmanager/api_op_GetAssessmentFramework.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a framework from AWS Audit Manager. +// Returns a framework from Audit Manager. func (c *Client) GetAssessmentFramework(ctx context.Context, params *GetAssessmentFrameworkInput, optFns ...func(*Options)) (*GetAssessmentFrameworkOutput, error) { if params == nil { params = &GetAssessmentFrameworkInput{} diff --git a/service/auditmanager/api_op_GetAssessmentReportUrl.go b/service/auditmanager/api_op_GetAssessmentReportUrl.go index 452413c6486..54fffb2cc99 100644 --- a/service/auditmanager/api_op_GetAssessmentReportUrl.go +++ b/service/auditmanager/api_op_GetAssessmentReportUrl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the URL of a specified assessment report in AWS Audit Manager. +// Returns the URL of a specified assessment report in Audit Manager. func (c *Client) GetAssessmentReportUrl(ctx context.Context, params *GetAssessmentReportUrlInput, optFns ...func(*Options)) (*GetAssessmentReportUrlOutput, error) { if params == nil { params = &GetAssessmentReportUrlInput{} diff --git a/service/auditmanager/api_op_GetChangeLogs.go b/service/auditmanager/api_op_GetChangeLogs.go index bb6bab4ec16..9be0f0867d5 100644 --- a/service/auditmanager/api_op_GetChangeLogs.go +++ b/service/auditmanager/api_op_GetChangeLogs.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of changelogs from AWS Audit Manager. +// Returns a list of changelogs from Audit Manager. func (c *Client) GetChangeLogs(ctx context.Context, params *GetChangeLogsInput, optFns ...func(*Options)) (*GetChangeLogsOutput, error) { if params == nil { params = &GetChangeLogsInput{} diff --git a/service/auditmanager/api_op_GetControl.go b/service/auditmanager/api_op_GetControl.go index 969e391a2f0..82ab62654c0 100644 --- a/service/auditmanager/api_op_GetControl.go +++ b/service/auditmanager/api_op_GetControl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a control from AWS Audit Manager. +// Returns a control from Audit Manager. func (c *Client) GetControl(ctx context.Context, params *GetControlInput, optFns ...func(*Options)) (*GetControlOutput, error) { if params == nil { params = &GetControlInput{} diff --git a/service/auditmanager/api_op_GetEvidence.go b/service/auditmanager/api_op_GetEvidence.go index 979c5817ec0..17cd735ef88 100644 --- a/service/auditmanager/api_op_GetEvidence.go +++ b/service/auditmanager/api_op_GetEvidence.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns evidence from AWS Audit Manager. +// Returns evidence from Audit Manager. func (c *Client) GetEvidence(ctx context.Context, params *GetEvidenceInput, optFns ...func(*Options)) (*GetEvidenceOutput, error) { if params == nil { params = &GetEvidenceInput{} diff --git a/service/auditmanager/api_op_GetEvidenceByEvidenceFolder.go b/service/auditmanager/api_op_GetEvidenceByEvidenceFolder.go index 2b524379ee7..485ae14f842 100644 --- a/service/auditmanager/api_op_GetEvidenceByEvidenceFolder.go +++ b/service/auditmanager/api_op_GetEvidenceByEvidenceFolder.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns all evidence from a specified evidence folder in AWS Audit Manager. +// Returns all evidence from a specified evidence folder in Audit Manager. func (c *Client) GetEvidenceByEvidenceFolder(ctx context.Context, params *GetEvidenceByEvidenceFolderInput, optFns ...func(*Options)) (*GetEvidenceByEvidenceFolderOutput, error) { if params == nil { params = &GetEvidenceByEvidenceFolderInput{} diff --git a/service/auditmanager/api_op_GetEvidenceFolder.go b/service/auditmanager/api_op_GetEvidenceFolder.go index b670d799748..b1dbb5eddca 100644 --- a/service/auditmanager/api_op_GetEvidenceFolder.go +++ b/service/auditmanager/api_op_GetEvidenceFolder.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns an evidence folder from the specified assessment in AWS Audit Manager. +// Returns an evidence folder from the specified assessment in Audit Manager. func (c *Client) GetEvidenceFolder(ctx context.Context, params *GetEvidenceFolderInput, optFns ...func(*Options)) (*GetEvidenceFolderOutput, error) { if params == nil { params = &GetEvidenceFolderInput{} diff --git a/service/auditmanager/api_op_GetEvidenceFoldersByAssessment.go b/service/auditmanager/api_op_GetEvidenceFoldersByAssessment.go index eb88fdf6a3f..548d98133a0 100644 --- a/service/auditmanager/api_op_GetEvidenceFoldersByAssessment.go +++ b/service/auditmanager/api_op_GetEvidenceFoldersByAssessment.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the evidence folders from a specified assessment in AWS Audit Manager. +// Returns the evidence folders from a specified assessment in Audit Manager. func (c *Client) GetEvidenceFoldersByAssessment(ctx context.Context, params *GetEvidenceFoldersByAssessmentInput, optFns ...func(*Options)) (*GetEvidenceFoldersByAssessmentOutput, error) { if params == nil { params = &GetEvidenceFoldersByAssessmentInput{} diff --git a/service/auditmanager/api_op_GetEvidenceFoldersByAssessmentControl.go b/service/auditmanager/api_op_GetEvidenceFoldersByAssessmentControl.go index 076f23a70ef..22d0c6e0a85 100644 --- a/service/auditmanager/api_op_GetEvidenceFoldersByAssessmentControl.go +++ b/service/auditmanager/api_op_GetEvidenceFoldersByAssessmentControl.go @@ -13,7 +13,7 @@ import ( ) // Returns a list of evidence folders associated with a specified control of an -// assessment in AWS Audit Manager. +// assessment in Audit Manager. func (c *Client) GetEvidenceFoldersByAssessmentControl(ctx context.Context, params *GetEvidenceFoldersByAssessmentControlInput, optFns ...func(*Options)) (*GetEvidenceFoldersByAssessmentControlOutput, error) { if params == nil { params = &GetEvidenceFoldersByAssessmentControlInput{} diff --git a/service/auditmanager/api_op_GetOrganizationAdminAccount.go b/service/auditmanager/api_op_GetOrganizationAdminAccount.go index bc43216ac31..f4e63b9a566 100644 --- a/service/auditmanager/api_op_GetOrganizationAdminAccount.go +++ b/service/auditmanager/api_op_GetOrganizationAdminAccount.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the name of the delegated AWS administrator account for the AWS -// organization. +// Returns the name of the delegated Amazon Web Services administrator account for +// the organization. func (c *Client) GetOrganizationAdminAccount(ctx context.Context, params *GetOrganizationAdminAccountInput, optFns ...func(*Options)) (*GetOrganizationAdminAccountOutput, error) { if params == nil { params = &GetOrganizationAdminAccountInput{} diff --git a/service/auditmanager/api_op_GetServicesInScope.go b/service/auditmanager/api_op_GetServicesInScope.go index 3a4642383f7..788718502b4 100644 --- a/service/auditmanager/api_op_GetServicesInScope.go +++ b/service/auditmanager/api_op_GetServicesInScope.go @@ -11,7 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of the in-scope AWS services for the specified assessment. +// Returns a list of the in-scope Amazon Web Services services for the specified +// assessment. func (c *Client) GetServicesInScope(ctx context.Context, params *GetServicesInScopeInput, optFns ...func(*Options)) (*GetServicesInScopeOutput, error) { if params == nil { params = &GetServicesInScopeInput{} @@ -33,7 +34,7 @@ type GetServicesInScopeInput struct { type GetServicesInScopeOutput struct { - // The metadata associated with the aAWS service. + // The metadata associated with the Amazon Web Service. ServiceMetadata []types.ServiceMetadata // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_GetSettings.go b/service/auditmanager/api_op_GetSettings.go index 54eff824cfa..fffaa68651f 100644 --- a/service/auditmanager/api_op_GetSettings.go +++ b/service/auditmanager/api_op_GetSettings.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the settings for the specified AWS account. +// Returns the settings for the specified account. func (c *Client) GetSettings(ctx context.Context, params *GetSettingsInput, optFns ...func(*Options)) (*GetSettingsOutput, error) { if params == nil { params = &GetSettingsInput{} @@ -39,7 +39,7 @@ type GetSettingsInput struct { type GetSettingsOutput struct { - // The settings object that holds all supported AWS Audit Manager settings. + // The settings object that holds all supported Audit Manager settings. Settings *types.Settings // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_ListAssessmentFrameworks.go b/service/auditmanager/api_op_ListAssessmentFrameworks.go index f7eb26095bd..1ad85f67403 100644 --- a/service/auditmanager/api_op_ListAssessmentFrameworks.go +++ b/service/auditmanager/api_op_ListAssessmentFrameworks.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of the frameworks available in the AWS Audit Manager framework +// Returns a list of the frameworks available in the Audit Manager framework // library. func (c *Client) ListAssessmentFrameworks(ctx context.Context, params *ListAssessmentFrameworksInput, optFns ...func(*Options)) (*ListAssessmentFrameworksOutput, error) { if params == nil { diff --git a/service/auditmanager/api_op_ListAssessmentReports.go b/service/auditmanager/api_op_ListAssessmentReports.go index 367095d9a7c..becd82c0bce 100644 --- a/service/auditmanager/api_op_ListAssessmentReports.go +++ b/service/auditmanager/api_op_ListAssessmentReports.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of assessment reports created in AWS Audit Manager. +// Returns a list of assessment reports created in Audit Manager. func (c *Client) ListAssessmentReports(ctx context.Context, params *ListAssessmentReportsInput, optFns ...func(*Options)) (*ListAssessmentReportsOutput, error) { if params == nil { params = &ListAssessmentReportsInput{} diff --git a/service/auditmanager/api_op_ListAssessments.go b/service/auditmanager/api_op_ListAssessments.go index e552f98c420..373a7f20ff3 100644 --- a/service/auditmanager/api_op_ListAssessments.go +++ b/service/auditmanager/api_op_ListAssessments.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of current and past assessments from AWS Audit Manager. +// Returns a list of current and past assessments from Audit Manager. func (c *Client) ListAssessments(ctx context.Context, params *ListAssessmentsInput, optFns ...func(*Options)) (*ListAssessmentsOutput, error) { if params == nil { params = &ListAssessmentsInput{} diff --git a/service/auditmanager/api_op_ListControls.go b/service/auditmanager/api_op_ListControls.go index 56463b9e687..3574fb42677 100644 --- a/service/auditmanager/api_op_ListControls.go +++ b/service/auditmanager/api_op_ListControls.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of controls from AWS Audit Manager. +// Returns a list of controls from Audit Manager. func (c *Client) ListControls(ctx context.Context, params *ListControlsInput, optFns ...func(*Options)) (*ListControlsOutput, error) { if params == nil { params = &ListControlsInput{} diff --git a/service/auditmanager/api_op_ListNotifications.go b/service/auditmanager/api_op_ListNotifications.go index 151cea7cec9..a42f811fca7 100644 --- a/service/auditmanager/api_op_ListNotifications.go +++ b/service/auditmanager/api_op_ListNotifications.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of all AWS Audit Manager notifications. +// Returns a list of all Audit Manager notifications. func (c *Client) ListNotifications(ctx context.Context, params *ListNotificationsInput, optFns ...func(*Options)) (*ListNotificationsOutput, error) { if params == nil { params = &ListNotificationsInput{} diff --git a/service/auditmanager/api_op_ListTagsForResource.go b/service/auditmanager/api_op_ListTagsForResource.go index a9e95a13419..f35a9d33484 100644 --- a/service/auditmanager/api_op_ListTagsForResource.go +++ b/service/auditmanager/api_op_ListTagsForResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of tags for the specified resource in AWS Audit Manager. +// Returns a list of tags for the specified resource in Audit Manager. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/auditmanager/api_op_RegisterAccount.go b/service/auditmanager/api_op_RegisterAccount.go index a17fd39df83..d338e461fbd 100644 --- a/service/auditmanager/api_op_RegisterAccount.go +++ b/service/auditmanager/api_op_RegisterAccount.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables AWS Audit Manager for the specified AWS account. +// Enables Audit Manager for the specified account. func (c *Client) RegisterAccount(ctx context.Context, params *RegisterAccountInput, optFns ...func(*Options)) (*RegisterAccountOutput, error) { if params == nil { params = &RegisterAccountInput{} @@ -29,10 +29,10 @@ func (c *Client) RegisterAccount(ctx context.Context, params *RegisterAccountInp type RegisterAccountInput struct { - // The delegated administrator account for AWS Audit Manager. + // The delegated administrator account for Audit Manager. DelegatedAdminAccount *string - // The AWS KMS key details. + // The KMS key details. KmsKey *string noSmithyDocumentSerde diff --git a/service/auditmanager/api_op_RegisterOrganizationAdminAccount.go b/service/auditmanager/api_op_RegisterOrganizationAdminAccount.go index a12eadf9527..e8f5ec7a6de 100644 --- a/service/auditmanager/api_op_RegisterOrganizationAdminAccount.go +++ b/service/auditmanager/api_op_RegisterOrganizationAdminAccount.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables an AWS account within the organization as the delegated administrator -// for AWS Audit Manager. +// Enables an account within the organization as the delegated administrator for +// Audit Manager. func (c *Client) RegisterOrganizationAdminAccount(ctx context.Context, params *RegisterOrganizationAdminAccountInput, optFns ...func(*Options)) (*RegisterOrganizationAdminAccountOutput, error) { if params == nil { params = &RegisterOrganizationAdminAccountInput{} @@ -42,7 +42,7 @@ type RegisterOrganizationAdminAccountOutput struct { // The identifier for the specified delegated administrator account. AdminAccountId *string - // The identifier for the specified AWS organization. + // The identifier for the specified organization. OrganizationId *string // Metadata pertaining to the operation's result. diff --git a/service/auditmanager/api_op_TagResource.go b/service/auditmanager/api_op_TagResource.go index 8e5c940391f..849fb60d1d0 100644 --- a/service/auditmanager/api_op_TagResource.go +++ b/service/auditmanager/api_op_TagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Tags the specified resource in AWS Audit Manager. +// Tags the specified resource in Audit Manager. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/auditmanager/api_op_UntagResource.go b/service/auditmanager/api_op_UntagResource.go index bb76e4b2729..7ac6e22282e 100644 --- a/service/auditmanager/api_op_UntagResource.go +++ b/service/auditmanager/api_op_UntagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes a tag from a resource in AWS Audit Manager. +// Removes a tag from a resource in Audit Manager. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/auditmanager/api_op_UpdateAssessment.go b/service/auditmanager/api_op_UpdateAssessment.go index 9f8e22a4c92..2e21d467cda 100644 --- a/service/auditmanager/api_op_UpdateAssessment.go +++ b/service/auditmanager/api_op_UpdateAssessment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Edits an AWS Audit Manager assessment. +// Edits an Audit Manager assessment. func (c *Client) UpdateAssessment(ctx context.Context, params *UpdateAssessmentInput, optFns ...func(*Options)) (*UpdateAssessmentOutput, error) { if params == nil { params = &UpdateAssessmentInput{} diff --git a/service/auditmanager/api_op_UpdateAssessmentControl.go b/service/auditmanager/api_op_UpdateAssessmentControl.go index c5f0cfbd003..c88430b4c03 100644 --- a/service/auditmanager/api_op_UpdateAssessmentControl.go +++ b/service/auditmanager/api_op_UpdateAssessmentControl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates a control within an assessment in AWS Audit Manager. +// Updates a control within an assessment in Audit Manager. func (c *Client) UpdateAssessmentControl(ctx context.Context, params *UpdateAssessmentControlInput, optFns ...func(*Options)) (*UpdateAssessmentControlOutput, error) { if params == nil { params = &UpdateAssessmentControlInput{} diff --git a/service/auditmanager/api_op_UpdateAssessmentControlSetStatus.go b/service/auditmanager/api_op_UpdateAssessmentControlSetStatus.go index aebe6d31a75..620cc8455ee 100644 --- a/service/auditmanager/api_op_UpdateAssessmentControlSetStatus.go +++ b/service/auditmanager/api_op_UpdateAssessmentControlSetStatus.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the status of a control set in an AWS Audit Manager assessment. +// Updates the status of a control set in an Audit Manager assessment. func (c *Client) UpdateAssessmentControlSetStatus(ctx context.Context, params *UpdateAssessmentControlSetStatusInput, optFns ...func(*Options)) (*UpdateAssessmentControlSetStatusOutput, error) { if params == nil { params = &UpdateAssessmentControlSetStatusInput{} diff --git a/service/auditmanager/api_op_UpdateAssessmentFramework.go b/service/auditmanager/api_op_UpdateAssessmentFramework.go index c2bd59f21b5..6e2844ff6cd 100644 --- a/service/auditmanager/api_op_UpdateAssessmentFramework.go +++ b/service/auditmanager/api_op_UpdateAssessmentFramework.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates a custom framework in AWS Audit Manager. +// Updates a custom framework in Audit Manager. func (c *Client) UpdateAssessmentFramework(ctx context.Context, params *UpdateAssessmentFrameworkInput, optFns ...func(*Options)) (*UpdateAssessmentFrameworkOutput, error) { if params == nil { params = &UpdateAssessmentFrameworkInput{} diff --git a/service/auditmanager/api_op_UpdateAssessmentStatus.go b/service/auditmanager/api_op_UpdateAssessmentStatus.go index 6e84ed52714..93b8874030d 100644 --- a/service/auditmanager/api_op_UpdateAssessmentStatus.go +++ b/service/auditmanager/api_op_UpdateAssessmentStatus.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the status of an assessment in AWS Audit Manager. +// Updates the status of an assessment in Audit Manager. func (c *Client) UpdateAssessmentStatus(ctx context.Context, params *UpdateAssessmentStatusInput, optFns ...func(*Options)) (*UpdateAssessmentStatusOutput, error) { if params == nil { params = &UpdateAssessmentStatusInput{} diff --git a/service/auditmanager/api_op_UpdateControl.go b/service/auditmanager/api_op_UpdateControl.go index 4ed5a43e7bb..b907874dbe9 100644 --- a/service/auditmanager/api_op_UpdateControl.go +++ b/service/auditmanager/api_op_UpdateControl.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates a custom control in AWS Audit Manager. +// Updates a custom control in Audit Manager. func (c *Client) UpdateControl(ctx context.Context, params *UpdateControlInput, optFns ...func(*Options)) (*UpdateControlOutput, error) { if params == nil { params = &UpdateControlInput{} diff --git a/service/auditmanager/api_op_UpdateSettings.go b/service/auditmanager/api_op_UpdateSettings.go index 9fdee362e2f..f3711490a4a 100644 --- a/service/auditmanager/api_op_UpdateSettings.go +++ b/service/auditmanager/api_op_UpdateSettings.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates AWS Audit Manager settings for the current user account. +// Updates Audit Manager settings for the current user account. func (c *Client) UpdateSettings(ctx context.Context, params *UpdateSettingsInput, optFns ...func(*Options)) (*UpdateSettingsOutput, error) { if params == nil { params = &UpdateSettingsInput{} @@ -35,11 +35,11 @@ type UpdateSettingsInput struct { // A list of the default audit owners. DefaultProcessOwners []types.Role - // The AWS KMS key details. + // The KMS key details. KmsKey *string - // The Amazon Simple Notification Service (Amazon SNS) topic to which AWS Audit - // Manager sends notifications. + // The Amazon Simple Notification Service (Amazon SNS) topic to which Audit Manager + // sends notifications. SnsTopic *string noSmithyDocumentSerde diff --git a/service/auditmanager/api_op_ValidateAssessmentReportIntegrity.go b/service/auditmanager/api_op_ValidateAssessmentReportIntegrity.go index e059ec783bc..601acf99ed4 100644 --- a/service/auditmanager/api_op_ValidateAssessmentReportIntegrity.go +++ b/service/auditmanager/api_op_ValidateAssessmentReportIntegrity.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Validates the integrity of an assessment report in AWS Audit Manager. +// Validates the integrity of an assessment report in Audit Manager. func (c *Client) ValidateAssessmentReportIntegrity(ctx context.Context, params *ValidateAssessmentReportIntegrityInput, optFns ...func(*Options)) (*ValidateAssessmentReportIntegrityOutput, error) { if params == nil { params = &ValidateAssessmentReportIntegrityInput{} diff --git a/service/auditmanager/doc.go b/service/auditmanager/doc.go index ca6ad3b6855..96c563232df 100644 --- a/service/auditmanager/doc.go +++ b/service/auditmanager/doc.go @@ -3,26 +3,26 @@ // Package auditmanager provides the API client, operations, and parameter types // for AWS Audit Manager. // -// Welcome to the AWS Audit Manager API reference. This guide is for developers who -// need detailed information about the AWS Audit Manager API operations, data -// types, and errors. AWS Audit Manager is a service that provides automated -// evidence collection so that you can continuously audit your AWS usage, and -// assess the effectiveness of your controls to better manage risk and simplify -// compliance. AWS Audit Manager provides pre-built frameworks that structure and +// Welcome to the Audit Manager API reference. This guide is for developers who +// need detailed information about the Audit Manager API operations, data types, +// and errors. Audit Manager is a service that provides automated evidence +// collection so that you can continuously audit your Amazon Web Services usage, +// and assess the effectiveness of your controls to better manage risk and simplify +// compliance. Audit Manager provides pre-built frameworks that structure and // automate assessments for a given compliance standard. Frameworks include a // pre-built collection of controls with descriptions and testing procedures, which // are grouped according to the requirements of the specified compliance standard // or regulation. You can also customize frameworks and controls to support // internal audits with unique requirements. Use the following links to get started -// with the AWS Audit Manager API: +// with the Audit Manager API: // // * Actions // (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Operations.html): -// An alphabetical list of all AWS Audit Manager API operations. +// An alphabetical list of all Audit Manager API operations. // // * Data types // (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Types.html): -// An alphabetical list of all AWS Audit Manager data types. +// An alphabetical list of all Audit Manager data types. // // * Common parameters // (https://docs.aws.amazon.com/audit-manager/latest/APIReference/CommonParameters.html): @@ -32,7 +32,7 @@ // (https://docs.aws.amazon.com/audit-manager/latest/APIReference/CommonErrors.html): // Client and server errors that all operations can return. // -// If you're new to AWS -// Audit Manager, we recommend that you review the AWS Audit Manager User Guide +// If you're new to Audit +// Manager, we recommend that you review the Audit Manager User Guide // (https://docs.aws.amazon.com/audit-manager/latest/userguide/what-is.html). package auditmanager diff --git a/service/auditmanager/types/errors.go b/service/auditmanager/types/errors.go index 97c5f897cac..84a0c6396b3 100644 --- a/service/auditmanager/types/errors.go +++ b/service/auditmanager/types/errors.go @@ -7,8 +7,8 @@ import ( smithy "github.com/aws/smithy-go" ) -// Your account is not registered with AWS Audit Manager. Check the delegated -// administrator setup on the AWS Audit Manager settings page, and try again. +// Your account is not registered with Audit Manager. Check the delegated +// administrator setup on the Audit Manager settings page, and try again. type AccessDeniedException struct { Message *string diff --git a/service/auditmanager/types/types.go b/service/auditmanager/types/types.go index 8729a7eecef..30d12d1e44c 100644 --- a/service/auditmanager/types/types.go +++ b/service/auditmanager/types/types.go @@ -7,15 +7,14 @@ import ( "time" ) -// An entity that defines the scope of audit evidence collected by AWS Audit -// Manager. An AWS Audit Manager assessment is an implementation of an AWS Audit -// Manager framework. +// An entity that defines the scope of audit evidence collected by Audit Manager. +// An Audit Manager assessment is an implementation of an Audit Manager framework. type Assessment struct { // The Amazon Resource Name (ARN) of the assessment. Arn *string - // The AWS account associated with the assessment. + // The account associated with the assessment. AwsAccount *AWSAccount // The framework from which the assessment was created. @@ -30,8 +29,8 @@ type Assessment struct { noSmithyDocumentSerde } -// The control entity that represents a standard or custom control used in an AWS -// Audit Manager assessment. +// The control entity that represents a standard or custom control used in an Audit +// Manager assessment. type AssessmentControl struct { // The amount of evidence in the assessment report. @@ -64,7 +63,7 @@ type AssessmentControl struct { noSmithyDocumentSerde } -// Represents a set of controls in an AWS Audit Manager assessment. +// Represents a set of controls in an Audit Manager assessment. type AssessmentControlSet struct { // The list of controls contained with the control set. @@ -96,7 +95,7 @@ type AssessmentControlSet struct { noSmithyDocumentSerde } -// The folder in which AWS Audit Manager stores evidence for an assessment. +// The folder in which Audit Manager stores evidence for an assessment. type AssessmentEvidenceFolder struct { // The identifier for the specified assessment. @@ -117,26 +116,27 @@ type AssessmentEvidenceFolder struct { // The identifier for the control set. ControlSetId *string - // The AWS service from which the evidence was collected. + // The Amazon Web Service from which the evidence was collected. DataSource *string // The date when the first evidence was added to the evidence folder. Date *time.Time - // The total number of AWS resources assessed to generate the evidence. + // The total number of Amazon Web Services resources assessed to generate the + // evidence. EvidenceAwsServiceSourceCount int32 // The number of evidence that falls under the compliance check category. This - // evidence is collected from AWS Config or AWS Security Hub. + // evidence is collected from Config or Security Hub. EvidenceByTypeComplianceCheckCount int32 - // The total number of issues that were reported directly from AWS Security Hub, - // AWS Config, or both. + // The total number of issues that were reported directly from Security Hub, + // Config, or both. EvidenceByTypeComplianceCheckIssuesCount int32 // The number of evidence that falls under the configuration data category. This - // evidence is collected from configuration snapshots of other AWS services such as - // Amazon EC2, Amazon S3, or IAM. + // evidence is collected from configuration snapshots of other Amazon Web Services + // services such as Amazon EC2, Amazon S3, or IAM. EvidenceByTypeConfigurationDataCount int32 // The number of evidence that falls under the manual category. This evidence is @@ -144,7 +144,7 @@ type AssessmentEvidenceFolder struct { EvidenceByTypeManualCount int32 // The number of evidence that falls under the user activity category. This - // evidence is collected from AWS CloudTrail logs. + // evidence is collected from CloudTrail logs. EvidenceByTypeUserActivityCount int32 // The amount of evidence included in the evidence folder. @@ -162,8 +162,8 @@ type AssessmentEvidenceFolder struct { noSmithyDocumentSerde } -// The file used to structure and automate AWS Audit Manager assessments for a -// given compliance standard. +// The file used to structure and automate Audit Manager assessments for a given +// compliance standard. type AssessmentFramework struct { // The Amazon Resource Name (ARN) of the specified framework. @@ -252,7 +252,7 @@ type AssessmentMetadata struct { // The roles associated with the assessment. Roles []Role - // The wrapper of AWS accounts and services in scope for the assessment. + // The wrapper of accounts and services in scope for the assessment. Scope *Scope // The overall status of the assessment. @@ -261,7 +261,7 @@ type AssessmentMetadata struct { noSmithyDocumentSerde } -// A metadata object associated with an assessment in AWS Audit Manager. +// A metadata object associated with an assessment in Audit Manager. type AssessmentMetadataItem struct { // The name of the compliance standard related to the assessment, such as PCI-DSS. @@ -291,9 +291,9 @@ type AssessmentMetadataItem struct { noSmithyDocumentSerde } -// A finalized document generated from an AWS Audit Manager assessment. These -// reports summarize the relevant evidence collected for your audit, and link to -// the relevant evidence folders which are named and organized according to the +// A finalized document generated from an Audit Manager assessment. These reports +// summarize the relevant evidence collected for your audit, and link to the +// relevant evidence folders which are named and organized according to the // controls specified in your assessment. type AssessmentReport struct { @@ -306,7 +306,7 @@ type AssessmentReport struct { // The name of the user who created the assessment report. Author *string - // The identifier for the specified AWS account. + // The identifier for the specified account. AwsAccountId *string // Specifies when the assessment report was created. @@ -373,7 +373,7 @@ type AssessmentReportMetadata struct { noSmithyDocumentSerde } -// The location in which AWS Audit Manager saves assessment reports for the given +// The location in which Audit Manager saves assessment reports for the given // assessment. type AssessmentReportsDestination struct { @@ -386,26 +386,25 @@ type AssessmentReportsDestination struct { noSmithyDocumentSerde } -// The wrapper of AWS account details, such as account ID, email address, and so -// on. +// The wrapper of account details, such as account ID, email address, and so on. type AWSAccount struct { - // The email address associated with the specified AWS account. + // The email address associated with the specified account. EmailAddress *string - // The identifier for the specified AWS account. + // The identifier for the specified account. Id *string - // The name of the specified AWS account. + // The name of the specified account. Name *string noSmithyDocumentSerde } -// An AWS service such as Amazon S3, AWS CloudTrail, and so on. +// An Amazon Web Service such as Amazon S3, CloudTrail, and so on. type AWSService struct { - // The name of the AWS service. + // The name of the Amazon Web Service. ServiceName *string noSmithyDocumentSerde @@ -415,7 +414,7 @@ type AWSService struct { // provide more meaningful errors than a simple string message. type BatchCreateDelegationByAssessmentError struct { - // The API request to batch create delegations in AWS Audit Manager. + // The API request to batch create delegations in Audit Manager. CreateDelegationRequest *CreateDelegationRequest // The error code returned by the BatchCreateDelegationByAssessment API. @@ -453,14 +452,14 @@ type BatchImportEvidenceToAssessmentControlError struct { // The error message returned by the BatchImportEvidenceToAssessmentControl API. ErrorMessage *string - // Manual evidence that cannot be collected automatically by AWS Audit Manager. + // Manual evidence that cannot be collected automatically by Audit Manager. ManualEvidence *ManualEvidence noSmithyDocumentSerde } -// The record of a change within AWS Audit Manager, such as a modified assessment, -// a delegated control set, and so on. +// The record of a change within Audit Manager, such as a modified assessment, a +// delegated control set, and so on. type ChangeLog struct { // The action performed. @@ -481,7 +480,7 @@ type ChangeLog struct { noSmithyDocumentSerde } -// A control in AWS Audit Manager. +// A control in Audit Manager. type Control struct { // The recommended actions to carry out if the control is not fulfilled. @@ -496,8 +495,8 @@ type Control struct { // The data mapping sources for the specified control. ControlMappingSources []ControlMappingSource - // The data source that determines from where AWS Audit Manager collects evidence - // for the control. + // The data source that determines from where Audit Manager collects evidence for + // the control. ControlSources *string // Specifies when the control was created. @@ -549,8 +548,8 @@ type ControlComment struct { noSmithyDocumentSerde } -// The data source that determines from where AWS Audit Manager collects evidence -// for the control. +// The data source that determines from where Audit Manager collects evidence for +// the control. type ControlMappingSource struct { // The description of the specified source. @@ -562,8 +561,8 @@ type ControlMappingSource struct { // The unique identifier for the specified source. SourceId *string - // The keyword to search for in AWS CloudTrail logs, AWS Config rules, AWS Security - // Hub checks, and AWS API names. + // The keyword to search for in CloudTrail logs, Config rules, Security Hub checks, + // and Amazon Web Services API names. SourceKeyword *SourceKeyword // The name of the specified source. @@ -588,8 +587,8 @@ type ControlMetadata struct { // The Amazon Resource Name (ARN) of the specified control. Arn *string - // The data source that determines from where AWS Audit Manager collects evidence - // for the control. + // The data source that determines from where Audit Manager collects evidence for + // the control. ControlSources *string // Specifies when the control was created. @@ -607,7 +606,7 @@ type ControlMetadata struct { noSmithyDocumentSerde } -// A set of controls in AWS Audit Manager. +// A set of controls in Audit Manager. type ControlSet struct { // The list of controls within the control set. @@ -624,7 +623,7 @@ type ControlSet struct { } // Control entity attributes that uniquely identify an existing control to be added -// to a framework in AWS Audit Manager. +// to a framework in Audit Manager. type CreateAssessmentFrameworkControl struct { // The unique identifier of the control. @@ -633,8 +632,8 @@ type CreateAssessmentFrameworkControl struct { noSmithyDocumentSerde } -// A controlSet entity that represents a collection of controls in AWS Audit -// Manager. This does not contain the control set ID. +// A controlSet entity that represents a collection of controls in Audit Manager. +// This does not contain the control set ID. type CreateAssessmentFrameworkControlSet struct { // The name of the specified control set. @@ -653,15 +652,15 @@ type CreateAssessmentFrameworkControlSet struct { // with related parameters and metadata. This does not contain mappingID. type CreateControlMappingSource struct { - // The description of the data source that determines from where AWS Audit Manager + // The description of the data source that determines from where Audit Manager // collects evidence for the control. SourceDescription *string // The frequency of evidence collection for the specified control mapping source. SourceFrequency SourceFrequency - // The keyword to search for in AWS CloudTrail logs, AWS Config rules, AWS Security - // Hub checks, and AWS API names. + // The keyword to search for in CloudTrail logs, Config rules, Security Hub checks, + // and Amazon Web Services API names. SourceKeyword *SourceKeyword // The name of the control mapping data source. @@ -680,7 +679,7 @@ type CreateControlMappingSource struct { noSmithyDocumentSerde } -// A collection of attributes used to create a delegation for an assessment in AWS +// A collection of attributes used to create a delegation for an assessment in // Audit Manager. type CreateDelegationRequest struct { @@ -781,17 +780,16 @@ type Evidence struct { // (such as allowUsersToChangePassword) and value (such as true or false). Attributes map[string]string - // The identifier for the specified AWS account. + // The identifier for the specified account. AwsAccountId *string - // The AWS account from which the evidence is collected, and its AWS organization - // path. + // The account from which the evidence is collected, and its organization path. AwsOrganization *string // The evaluation status for evidence that falls under the compliance check - // category. For evidence collected from AWS Security Hub, a Pass or Fail result is - // shown. For evidence collected from AWS Config, a Compliant or Noncompliant - // result is shown. + // category. For evidence collected from Security Hub, a Pass or Fail result is + // shown. For evidence collected from Config, a Compliant or Noncompliant result is + // shown. ComplianceCheck *string // The data source from which the specified evidence was collected. @@ -800,10 +798,10 @@ type Evidence struct { // The name of the specified evidence event. EventName *string - // The AWS service from which the evidence is collected. + // The Amazon Web Service from which the evidence is collected. EventSource *string - // The identifier for the specified AWS account. + // The identifier for the specified account. EvidenceAwsAccountId *string // The type of automated evidence. @@ -827,8 +825,8 @@ type Evidence struct { noSmithyDocumentSerde } -// The file used to structure and automate AWS Audit Manager assessments for a -// given compliance standard. +// The file used to structure and automate Audit Manager assessments for a given +// compliance standard. type Framework struct { // The Amazon Resource Name (ARN) of the specified framework. @@ -841,7 +839,7 @@ type Framework struct { // The control sets associated with the framework. ControlSets []ControlSet - // The sources from which AWS Audit Manager collects evidence for the control. + // The sources from which Audit Manager collects evidence for the control. ControlSources *string // Specifies when the framework was created. @@ -895,7 +893,7 @@ type FrameworkMetadata struct { noSmithyDocumentSerde } -// Evidence that is uploaded to AWS Audit Manager manually. +// Evidence that is uploaded to Audit Manager manually. type ManualEvidence struct { // The Amazon S3 URL that points to a manual evidence object. @@ -904,7 +902,7 @@ type ManualEvidence struct { noSmithyDocumentSerde } -// The notification used to inform a user of an update in AWS Audit Manager. For +// The notification used to inform a user of an update in Audit Manager. For // example, this includes the notification that is sent when a control set is // delegated for review. type Notification struct { @@ -936,7 +934,7 @@ type Notification struct { noSmithyDocumentSerde } -// A system asset that is evaluated in an AWS Audit Manager assessment. +// A system asset that is evaluated in an Audit Manager assessment. type Resource struct { // The Amazon Resource Name (ARN) for the specified resource. @@ -948,7 +946,7 @@ type Resource struct { noSmithyDocumentSerde } -// The wrapper that contains the AWS Audit Manager role information of the current +// The wrapper that contains the Audit Manager role information of the current // user, such as the role type and IAM Amazon Resource Name (ARN). type Role struct { @@ -963,39 +961,38 @@ type Role struct { noSmithyDocumentSerde } -// The wrapper that contains the AWS accounts and AWS services in scope for the -// assessment. +// The wrapper that contains the accounts and services in scope for the assessment. type Scope struct { - // The AWS accounts included in the scope of the assessment. + // The accounts included in the scope of the assessment. AwsAccounts []AWSAccount - // The AWS services included in the scope of the assessment. + // The Amazon Web Services services included in the scope of the assessment. AwsServices []AWSService noSmithyDocumentSerde } -// The metadata associated with the specified AWS service. +// The metadata associated with the specified Amazon Web Service. type ServiceMetadata struct { - // The category in which the AWS service belongs, such as compute, storage, + // The category in which the Amazon Web Service belongs, such as compute, storage, // database, and so on. Category *string - // The description of the specified AWS service. + // The description of the specified Amazon Web Service. Description *string - // The display name of the AWS service. + // The display name of the Amazon Web Service. DisplayName *string - // The name of the AWS service. + // The name of the Amazon Web Service. Name *string noSmithyDocumentSerde } -// The settings object that holds all supported AWS Audit Manager settings. +// The settings object that holds all supported Audit Manager settings. type Settings struct { // The default storage destination for assessment reports. @@ -1004,10 +1001,10 @@ type Settings struct { // The designated default audit owners. DefaultProcessOwners []Role - // Specifies whether AWS Organizations is enabled. + // Specifies whether Organizations is enabled. IsAwsOrgEnabled *bool - // The AWS KMS key details. + // The KMS key details. KmsKey *string // The designated Amazon Simple Notification Service (Amazon SNS) topic. @@ -1016,22 +1013,23 @@ type Settings struct { noSmithyDocumentSerde } -// The keyword to search for in AWS CloudTrail logs, AWS Config rules, AWS Security -// Hub checks, and AWS API names. +// The keyword to search for in CloudTrail logs, Config rules, Security Hub checks, +// and Amazon Web Services API names. type SourceKeyword struct { // The method of input for the specified keyword. KeywordInputType KeywordInputType - // The value of the keyword used to search AWS CloudTrail logs, AWS Config rules, - // AWS Security Hub checks, and AWS API names when mapping a control data source. + // The value of the keyword used to search CloudTrail logs, Config rules, Security + // Hub checks, and Amazon Web Services API names when mapping a control data + // source. KeywordValue *string noSmithyDocumentSerde } -// A controlSet entity that represents a collection of controls in AWS Audit -// Manager. This does not contain the control set ID. +// A controlSet entity that represents a collection of controls in Audit Manager. +// This does not contain the control set ID. type UpdateAssessmentFrameworkControlSet struct { // The name of the control set. diff --git a/service/batch/api_op_CancelJob.go b/service/batch/api_op_CancelJob.go index 2f419b6e0b2..407d40e102e 100644 --- a/service/batch/api_op_CancelJob.go +++ b/service/batch/api_op_CancelJob.go @@ -10,10 +10,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Cancels a job in an AWS Batch job queue. Jobs that are in the SUBMITTED, -// PENDING, or RUNNABLE state are canceled. Jobs that have progressed to STARTING -// or RUNNING aren't canceled, but the API operation still succeeds, even if no job -// is canceled. These jobs must be terminated with the TerminateJob operation. +// Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED, PENDING, or +// RUNNABLE state are canceled. Jobs that have progressed to STARTING or RUNNING +// aren't canceled, but the API operation still succeeds, even if no job is +// canceled. These jobs must be terminated with the TerminateJob operation. func (c *Client) CancelJob(ctx context.Context, params *CancelJobInput, optFns ...func(*Options)) (*CancelJobOutput, error) { if params == nil { params = &CancelJobInput{} @@ -32,14 +32,14 @@ func (c *Client) CancelJob(ctx context.Context, params *CancelJobInput, optFns . // Contains the parameters for CancelJob. type CancelJobInput struct { - // The AWS Batch job ID of the job to cancel. + // The Batch job ID of the job to cancel. // // This member is required. JobId *string // A message to attach to the job that explains the reason for canceling it. This // message is returned by future DescribeJobs operations on the job. This message - // is also recorded in the AWS Batch activity logs. + // is also recorded in the Batch activity logs. // // This member is required. Reason *string diff --git a/service/batch/api_op_CreateComputeEnvironment.go b/service/batch/api_op_CreateComputeEnvironment.go index 11a16ccb94b..9d59c64681a 100644 --- a/service/batch/api_op_CreateComputeEnvironment.go +++ b/service/batch/api_op_CreateComputeEnvironment.go @@ -11,11 +11,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED -// compute environments. MANAGED compute environments can use Amazon EC2 or AWS -// Fargate resources. UNMANAGED compute environments can only use EC2 resources. In -// a managed compute environment, AWS Batch manages the capacity and instance types -// of the compute resources within the environment. This is based on the compute +// Creates an Batch compute environment. You can create MANAGED or UNMANAGED +// compute environments. MANAGED compute environments can use Amazon EC2 or Fargate +// resources. UNMANAGED compute environments can only use EC2 resources. In a +// managed compute environment, Batch manages the capacity and instance types of +// the compute resources within the environment. This is based on the compute // resource specification that you define or the launch template // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) // that you specify when you create the compute environment. Either, you can choose @@ -36,24 +36,24 @@ import ( // your container instances into that Amazon ECS cluster. For more information, see // Launching an Amazon ECS container instance // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html) -// in the Amazon Elastic Container Service Developer Guide. AWS Batch doesn't -// upgrade the AMIs in a compute environment after the environment is created. For -// example, it doesn't update the AMIs when a newer version of the Amazon ECS -// optimized AMI is available. Therefore, you're responsible for managing the guest -// operating system (including its updates and security patches) and any additional +// in the Amazon Elastic Container Service Developer Guide. Batch doesn't upgrade +// the AMIs in a compute environment after the environment is created. For example, +// it doesn't update the AMIs when a newer version of the Amazon ECS optimized AMI +// is available. Therefore, you're responsible for managing the guest operating +// system (including its updates and security patches) and any additional // application software or utilities that you install on the compute resources. To -// use a new AMI for your AWS Batch jobs, complete these steps: +// use a new AMI for your Batch jobs, complete these steps: // -// * Create a new -// compute environment with the new AMI. +// * Create a new compute +// environment with the new AMI. // -// * Add the compute environment to an -// existing job queue. -// -// * Remove the earlier compute environment from your job +// * Add the compute environment to an existing job // queue. // -// * Delete the earlier compute environment. +// * Remove the earlier compute environment from your job queue. +// +// * Delete +// the earlier compute environment. func (c *Client) CreateComputeEnvironment(ctx context.Context, params *CreateComputeEnvironmentInput, optFns ...func(*Options)) (*CreateComputeEnvironmentOutput, error) { if params == nil { params = &CreateComputeEnvironmentInput{} @@ -81,7 +81,7 @@ type CreateComputeEnvironmentInput struct { // The type of the compute environment: MANAGED or UNMANAGED. For more information, // see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the AWS Batch User Guide. + // in the Batch User Guide. // // This member is required. Type types.CEType @@ -90,47 +90,48 @@ type CreateComputeEnvironmentInput struct { // parameter is required for managed compute environments. For more information, // see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the AWS Batch User Guide. + // in the Batch User Guide. ComputeResources *types.ComputeResource - // The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to - // make calls to other AWS services on your behalf. For more information, see AWS - // Batch service IAM role + // The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make + // calls to other Amazon Web Services services on your behalf. For more + // information, see Batch service IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) in - // the AWS Batch User Guide. If your account has already created the AWS Batch - // service-linked role, that role is used by default for your compute environment - // unless you specify a role here. If the AWS Batch service-linked role does not - // exist in your account, and no role is specified here, the service will try to - // create the AWS Batch service-linked role in your account. If your specified role - // has a path other than /, then you must specify either the full role ARN - // (recommended) or prefix the role name with the path. For example, if a role with - // the name bar has a path of /foo/ then you would specify /foo/bar as the role - // name. For more information, see Friendly names and paths + // the Batch User Guide. If your account already created the Batch service-linked + // role, that role is used by default for your compute environment unless you + // specify a different role here. If the Batch service-linked role doesn't exist in + // your account, and no role is specified here, the service attempts to create the + // Batch service-linked role in your account. If your specified role has a path + // other than /, then you must specify either the full role ARN (recommended) or + // prefix the role name with the path. For example, if a role with the name bar has + // a path of /foo/ then you would specify /foo/bar as the role name. For more + // information, see Friendly names and paths // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) - // in the IAM User Guide. Depending on how you created your AWS Batch service role, - // its ARN might contain the service-role path prefix. When you only specify the - // name of the service role, AWS Batch assumes that your ARN doesn't use the - // service-role path prefix. Because of this, we recommend that you specify the - // full ARN of your service role when you create compute environments. + // in the IAM User Guide. Depending on how you created your Batch service role, its + // ARN might contain the service-role path prefix. When you only specify the name + // of the service role, Batch assumes that your ARN doesn't use the service-role + // path prefix. Because of this, we recommend that you specify the full ARN of your + // service role when you create compute environments. ServiceRole *string // The state of the compute environment. If the state is ENABLED, then the compute // environment accepts jobs from a queue and can scale out automatically based on - // queues. If the state is ENABLED, then the AWS Batch scheduler can attempt to - // place jobs from an associated job queue on the compute resources within the + // queues. If the state is ENABLED, then the Batch scheduler can attempt to place + // jobs from an associated job queue on the compute resources within the // environment. If the compute environment is managed, then it can scale its // instances out or in automatically, based on the job queue demand. If the state - // is DISABLED, then the AWS Batch scheduler doesn't attempt to place jobs within - // the environment. Jobs in a STARTING or RUNNING state continue to progress - // normally. Managed compute environments in the DISABLED state don't scale out. - // However, they scale in to minvCpus value after instances become idle. + // is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the + // environment. Jobs in a STARTING or RUNNING state continue to progress normally. + // Managed compute environments in the DISABLED state don't scale out. However, + // they scale in to minvCpus value after instances become idle. State types.CEState // The tags that you apply to the compute environment to help you categorize and // organize your resources. Each tag consists of a key and an optional value. For - // more information, see Tagging AWS Resources - // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in AWS General - // Reference. These tags can be updated or removed using the TagResource + // more information, see Tagging Amazon Web Services Resources + // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in Amazon Web + // Services General Reference. These tags can be updated or removed using the + // TagResource // (https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html) and // UntagResource // (https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html) diff --git a/service/batch/api_op_CreateJobQueue.go b/service/batch/api_op_CreateJobQueue.go index e43da0292c8..f3bfcc89b26 100644 --- a/service/batch/api_op_CreateJobQueue.go +++ b/service/batch/api_op_CreateJobQueue.go @@ -11,13 +11,13 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates an AWS Batch job queue. When you create a job queue, you associate one -// or more compute environments to the queue and assign an order of preference for -// the compute environments. You also set a priority to the job queue that -// determines the order that the AWS Batch scheduler places jobs onto its -// associated compute environments. For example, if a compute environment is -// associated with more than one job queue, the job queue with a higher priority is -// given preference for scheduling jobs to that compute environment. +// Creates an Batch job queue. When you create a job queue, you associate one or +// more compute environments to the queue and assign an order of preference for the +// compute environments. You also set a priority to the job queue that determines +// the order that the Batch scheduler places jobs onto its associated compute +// environments. For example, if a compute environment is associated with more than +// one job queue, the job queue with a higher priority is given preference for +// scheduling jobs to that compute environment. func (c *Client) CreateJobQueue(ctx context.Context, params *CreateJobQueueInput, optFns ...func(*Options)) (*CreateJobQueueOutput, error) { if params == nil { params = &CreateJobQueueInput{} @@ -43,7 +43,7 @@ type CreateJobQueueInput struct { // three compute environments with a job queue. All of the compute environments // must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and // Fargate compute environments can't be mixed. All compute environments that are - // associated with a job queue must share the same architecture. AWS Batch doesn't + // associated with a job queue must share the same architecture. Batch doesn't // support mixing compute environment architecture types in a single job queue. // // This member is required. @@ -61,7 +61,7 @@ type CreateJobQueueInput struct { // For example, a job queue with a priority value of 10 is given scheduling // preference over a job queue with a priority value of 1. All of the compute // environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or - // FARGATE_SPOT); EC2 and Fargate compute environments cannot be mixed. + // FARGATE_SPOT); EC2 and Fargate compute environments can't be mixed. // // This member is required. Priority int32 @@ -73,9 +73,9 @@ type CreateJobQueueInput struct { // The tags that you apply to the job queue to help you categorize and organize // your resources. Each tag consists of a key and an optional value. For more - // information, see Tagging your AWS Batch resources - // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in AWS - // Batch User Guide. + // information, see Tagging your Batch resources + // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in Batch + // User Guide. Tags map[string]string noSmithyDocumentSerde diff --git a/service/batch/api_op_DeleteComputeEnvironment.go b/service/batch/api_op_DeleteComputeEnvironment.go index 79c2d612b85..acf282c9329 100644 --- a/service/batch/api_op_DeleteComputeEnvironment.go +++ b/service/batch/api_op_DeleteComputeEnvironment.go @@ -10,10 +10,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an AWS Batch compute environment. Before you can delete a compute +// Deletes an Batch compute environment. Before you can delete a compute // environment, you must set its state to DISABLED with the // UpdateComputeEnvironment API operation and disassociate it from any job queues -// with the UpdateJobQueue API operation. Compute environments that use AWS Fargate +// with the UpdateJobQueue API operation. Compute environments that use Fargate // resources must terminate all active jobs on that compute environment before // deleting the compute environment. If this isn't done, the compute environment // enters an invalid state. diff --git a/service/batch/api_op_DeregisterJobDefinition.go b/service/batch/api_op_DeregisterJobDefinition.go index 0054046af00..ac0b00491e2 100644 --- a/service/batch/api_op_DeregisterJobDefinition.go +++ b/service/batch/api_op_DeregisterJobDefinition.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deregisters an AWS Batch job definition. Job definitions are permanently deleted +// Deregisters an Batch job definition. Job definitions are permanently deleted // after 180 days. func (c *Client) DeregisterJobDefinition(ctx context.Context, params *DeregisterJobDefinitionInput, optFns ...func(*Options)) (*DeregisterJobDefinitionOutput, error) { if params == nil { diff --git a/service/batch/api_op_DescribeJobDefinitions.go b/service/batch/api_op_DescribeJobDefinitions.go index accb2cd46fd..0c04e78680a 100644 --- a/service/batch/api_op_DescribeJobDefinitions.go +++ b/service/batch/api_op_DescribeJobDefinitions.go @@ -35,8 +35,10 @@ type DescribeJobDefinitionsInput struct { // The name of the job definition to describe. JobDefinitionName *string - // A list of up to 100 job definition names or full Amazon Resource Name (ARN) - // entries. + // A list of up to 100 job definitions. Each entry in the list can either be an ARN + // of the form + // arn:aws:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision} + // or a short version using the form ${JobDefinitionName}:${Revision}. JobDefinitions []string // The maximum number of results returned by DescribeJobDefinitions in paginated diff --git a/service/batch/api_op_DescribeJobs.go b/service/batch/api_op_DescribeJobs.go index e9b0d7c7f59..019fad8d89b 100644 --- a/service/batch/api_op_DescribeJobs.go +++ b/service/batch/api_op_DescribeJobs.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes a list of AWS Batch jobs. +// Describes a list of Batch jobs. func (c *Client) DescribeJobs(ctx context.Context, params *DescribeJobsInput, optFns ...func(*Options)) (*DescribeJobsOutput, error) { if params == nil { params = &DescribeJobsInput{} diff --git a/service/batch/api_op_ListJobs.go b/service/batch/api_op_ListJobs.go index 39891855846..e109095d1b3 100644 --- a/service/batch/api_op_ListJobs.go +++ b/service/batch/api_op_ListJobs.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of AWS Batch jobs. You must specify only one of the following +// Returns a list of Batch jobs. You must specify only one of the following // items: // // * A job queue ID to return a list of jobs in that job queue @@ -48,11 +48,42 @@ type ListJobsInput struct { // lists all child jobs from within the specified array. ArrayJobId *string + // The filter to apply to the query. Only one filter can be used at a time. When + // the filter is used, jobStatus is ignored. The filter doesn't apply to child jobs + // in an array or multi-node parallel (MNP) jobs. The results are sorted by the + // createdAt field, with the most recent jobs being first. JOB_NAME The value of + // the filter is a case-insensitive match for the job name. If the value ends with + // an asterisk (*), the filter will match any job name that begins with the string + // before the '*'. This corresponds to the jobName value. For example, test1 + // matches both Test1 and test1, and test1* matches both test1 and Test10. When the + // JOB_NAME filter is used, the results are grouped by the job name and version. + // JOB_DEFINITION The value for the filter is the name or Amazon Resource Name + // (ARN) of the job definition. This corresponds to the jobDefinition value. The + // value is case sensitive. When the value for the filter is the job definition + // name, the results include all the jobs that used any revision of that job + // definition name. If the value ends with an asterisk (*), the filter will match + // any job definition name that begins with the string before the '*'. For example, + // jd1 matches only jd1, and jd1* matches both jd1 and jd1A. The version of the job + // definition that's used doesn't affect the sort order. When the JOB_DEFINITION + // filter is used and the ARN is used (which is in the form + // arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}), + // the results include jobs that used the specified revision of the job definition. + // Asterisk (*) is not supported when the ARN is used. BEFORE_CREATED_AT The value + // for the filter is the time that's before the job was created. This corresponds + // to the createdAt value. The value is a string representation of the number of + // seconds since 00:00:00 UTC (midnight) on January 1, 1970. AFTER_CREATED_AT The + // value for the filter is the time that's after the job was created. This + // corresponds to the createdAt value. The value is a string representation of the + // number of seconds since 00:00:00 UTC (midnight) on January 1, 1970. + Filters []types.KeyValuesPair + // The name or full Amazon Resource Name (ARN) of the job queue used to list jobs. JobQueue *string - // The job status used to filter jobs in the specified queue. If you don't specify - // a status, only RUNNING jobs are returned. + // The job status used to filter jobs in the specified queue. If the filters + // parameter is specified, the jobStatus parameter is ignored and jobs with any + // status are returned. If you don't specify a status, only RUNNING jobs are + // returned. JobStatus types.JobStatus // The maximum number of results returned by ListJobs in paginated output. When diff --git a/service/batch/api_op_ListTagsForResource.go b/service/batch/api_op_ListTagsForResource.go index def4f363736..0efe4cbd250 100644 --- a/service/batch/api_op_ListTagsForResource.go +++ b/service/batch/api_op_ListTagsForResource.go @@ -10,9 +10,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the tags for an AWS Batch resource. AWS Batch resources that support tags -// are compute environments, jobs, job definitions, and job queues. ARNs for child -// jobs of array and multi-node parallel (MNP) jobs are not supported. +// Lists the tags for an Batch resource. Batch resources that support tags are +// compute environments, jobs, job definitions, and job queues. ARNs for child jobs +// of array and multi-node parallel (MNP) jobs are not supported. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} @@ -31,7 +31,7 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) that identifies the resource that tags are listed - // for. AWS Batch resources that support tags are compute environments, jobs, job + // for. Batch resources that support tags are compute environments, jobs, job // definitions, and job queues. ARNs for child jobs of array and multi-node // parallel (MNP) jobs are not supported. // diff --git a/service/batch/api_op_RegisterJobDefinition.go b/service/batch/api_op_RegisterJobDefinition.go index 5af84c0e3d3..fda30f0602b 100644 --- a/service/batch/api_op_RegisterJobDefinition.go +++ b/service/batch/api_op_RegisterJobDefinition.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Registers an AWS Batch job definition. +// Registers an Batch job definition. func (c *Client) RegisterJobDefinition(ctx context.Context, params *RegisterJobDefinitionInput, optFns ...func(*Options)) (*RegisterJobDefinitionOutput, error) { if params == nil { params = &RegisterJobDefinitionInput{} @@ -39,7 +39,7 @@ type RegisterJobDefinitionInput struct { // The type of job definition. For more information about multi-node parallel jobs, // see Creating a multi-node parallel job definition // (https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html) in - // the AWS Batch User Guide. If the job is run on Fargate resources, then multinode + // the Batch User Guide. If the job is run on Fargate resources, then multinode // isn't supported. // // This member is required. @@ -56,10 +56,10 @@ type RegisterJobDefinitionInput struct { // specify node properties for a job, it becomes a multi-node parallel job. For // more information, see Multi-node Parallel Jobs // (https://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html) - // in the AWS Batch User Guide. If the job definition's type parameter is - // container, then you must specify either containerProperties or nodeProperties. - // If the job runs on Fargate resources, then you must not specify nodeProperties; - // use containerProperties instead. + // in the Batch User Guide. If the job definition's type parameter is container, + // then you must specify either containerProperties or nodeProperties. If the job + // runs on Fargate resources, then you must not specify nodeProperties; use + // containerProperties instead. NodeProperties *types.NodeProperties // Default parameter substitution placeholders to set in the job definition. @@ -88,19 +88,19 @@ type RegisterJobDefinitionInput struct { // The tags that you apply to the job definition to help you categorize and // organize your resources. Each tag consists of a key and an optional value. For - // more information, see Tagging AWS Resources - // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in AWS - // Batch User Guide. + // more information, see Tagging Amazon Web Services Resources + // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in Batch + // User Guide. Tags map[string]string // The timeout configuration for jobs that are submitted with this job definition, - // after which AWS Batch terminates your jobs if they have not finished. If a job - // is terminated due to a timeout, it isn't retried. The minimum value for the - // timeout is 60 seconds. Any timeout configuration that's specified during a - // SubmitJob operation overrides the timeout configuration defined here. For more + // after which Batch terminates your jobs if they have not finished. If a job is + // terminated due to a timeout, it isn't retried. The minimum value for the timeout + // is 60 seconds. Any timeout configuration that's specified during a SubmitJob + // operation overrides the timeout configuration defined here. For more // information, see Job Timeouts // (https://docs.aws.amazon.com/batch/latest/userguide/job_timeouts.html) in the - // AWS Batch User Guide. + // Batch User Guide. Timeout *types.JobTimeout noSmithyDocumentSerde diff --git a/service/batch/api_op_SubmitJob.go b/service/batch/api_op_SubmitJob.go index 29947457b32..6f619136101 100644 --- a/service/batch/api_op_SubmitJob.go +++ b/service/batch/api_op_SubmitJob.go @@ -11,12 +11,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Submits an AWS Batch job from a job definition. Parameters that are specified -// during SubmitJob override parameters defined in the job definition. vCPU and -// memory requirements that are specified in the ResourceRequirements objects in -// the job definition are the exception. They can't be overridden this way using -// the memory and vcpus parameters. Rather, you must specify updates to job -// definition parameters in a ResourceRequirements object that's included in the +// Submits an Batch job from a job definition. Parameters that are specified during +// SubmitJob override parameters defined in the job definition. vCPU and memory +// requirements that are specified in the ResourceRequirements objects in the job +// definition are the exception. They can't be overridden this way using the memory +// and vcpus parameters. Rather, you must specify updates to job definition +// parameters in a ResourceRequirements object that's included in the // containerOverrides parameter. Jobs that run on Fargate resources can't be // guaranteed to run for more than 14 days. This is because, after 14 days, Fargate // resources might become unavailable and job might be terminated. @@ -61,7 +61,7 @@ type SubmitJobInput struct { // The array properties for the submitted job, such as the size of the array. The // array size can be between 2 and 10,000. If you specify array properties for a // job, it becomes an array job. For more information, see Array Jobs - // (https://docs.aws.amazon.com/batch/latest/userguide/array_jobs.html) in the AWS + // (https://docs.aws.amazon.com/batch/latest/userguide/array_jobs.html) in the // Batch User Guide. ArrayProperties *types.ArrayProperties @@ -83,7 +83,7 @@ type SubmitJobInput struct { // A list of node overrides in JSON format that specify the node range to target // and the container overrides for that node range. This parameter isn't applicable - // to jobs running on Fargate resources; use containerOverrides instead. + // to jobs that are running on Fargate resources; use containerOverrides instead. NodeOverrides *types.NodeOverrides // Additional parameters passed to the job that replace parameter substitution @@ -108,13 +108,13 @@ type SubmitJobInput struct { // The tags that you apply to the job request to help you categorize and organize // your resources. Each tag consists of a key and an optional value. For more - // information, see Tagging AWS Resources - // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in AWS General - // Reference. + // information, see Tagging Amazon Web Services Resources + // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in Amazon Web + // Services General Reference. Tags map[string]string // The timeout configuration for this SubmitJob operation. You can specify a - // timeout duration after which AWS Batch terminates your jobs if they haven't + // timeout duration after which Batch terminates your jobs if they haven't // finished. If a job is terminated due to a timeout, it isn't retried. The minimum // value for the timeout is 60 seconds. This configuration overrides any timeout // configuration specified in the job definition. For array jobs, child jobs have diff --git a/service/batch/api_op_TagResource.go b/service/batch/api_op_TagResource.go index 987fbb93c5e..7c75c598039 100644 --- a/service/batch/api_op_TagResource.go +++ b/service/batch/api_op_TagResource.go @@ -12,8 +12,8 @@ import ( // Associates the specified tags to a resource with the specified resourceArn. If // existing tags on a resource aren't specified in the request parameters, they -// aren't changed. When a resource is deleted, the tags associated with that -// resource are deleted as well. AWS Batch resources that support tags are compute +// aren't changed. When a resource is deleted, the tags that are associated with +// that resource are deleted as well. Batch resources that support tags are compute // environments, jobs, job definitions, and job queues. ARNs for child jobs of // array and multi-node parallel (MNP) jobs are not supported. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { @@ -33,7 +33,7 @@ func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optF type TagResourceInput struct { - // The Amazon Resource Name (ARN) of the resource that tags are added to. AWS Batch + // The Amazon Resource Name (ARN) of the resource that tags are added to. Batch // resources that support tags are compute environments, jobs, job definitions, and // job queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are // not supported. @@ -43,9 +43,9 @@ type TagResourceInput struct { // The tags that you apply to the resource to help you categorize and organize your // resources. Each tag consists of a key and an optional value. For more - // information, see Tagging AWS Resources - // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in AWS General - // Reference. + // information, see Tagging Amazon Web Services Resources + // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in Amazon Web + // Services General Reference. // // This member is required. Tags map[string]string diff --git a/service/batch/api_op_TerminateJob.go b/service/batch/api_op_TerminateJob.go index ad204c859e6..1796614fbf6 100644 --- a/service/batch/api_op_TerminateJob.go +++ b/service/batch/api_op_TerminateJob.go @@ -31,14 +31,14 @@ func (c *Client) TerminateJob(ctx context.Context, params *TerminateJobInput, op // Contains the parameters for TerminateJob. type TerminateJobInput struct { - // The AWS Batch job ID of the job to terminate. + // The Batch job ID of the job to terminate. // // This member is required. JobId *string // A message to attach to the job that explains the reason for canceling it. This // message is returned by future DescribeJobs operations on the job. This message - // is also recorded in the AWS Batch activity logs. + // is also recorded in the Batch activity logs. // // This member is required. Reason *string diff --git a/service/batch/api_op_UntagResource.go b/service/batch/api_op_UntagResource.go index 7537bf1ff07..f3211c46869 100644 --- a/service/batch/api_op_UntagResource.go +++ b/service/batch/api_op_UntagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes specified tags from an AWS Batch resource. +// Deletes specified tags from an Batch resource. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} @@ -28,10 +28,10 @@ func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, type UntagResourceInput struct { - // The Amazon Resource Name (ARN) of the resource from which to delete tags. AWS - // Batch resources that support tags are compute environments, jobs, job - // definitions, and job queues. ARNs for child jobs of array and multi-node - // parallel (MNP) jobs are not supported. + // The Amazon Resource Name (ARN) of the resource from which to delete tags. Batch + // resources that support tags are compute environments, jobs, job definitions, and + // job queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are + // not supported. // // This member is required. ResourceArn *string diff --git a/service/batch/api_op_UpdateComputeEnvironment.go b/service/batch/api_op_UpdateComputeEnvironment.go index 77525625007..020ad4a0fca 100644 --- a/service/batch/api_op_UpdateComputeEnvironment.go +++ b/service/batch/api_op_UpdateComputeEnvironment.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates an AWS Batch compute environment. +// Updates an Batch compute environment. func (c *Client) UpdateComputeEnvironment(ctx context.Context, params *UpdateComputeEnvironmentInput, optFns ...func(*Options)) (*UpdateComputeEnvironmentOutput, error) { if params == nil { params = &UpdateComputeEnvironmentInput{} @@ -40,36 +40,35 @@ type UpdateComputeEnvironmentInput struct { // for a managed compute environment. For more information, see Compute // Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the AWS Batch User Guide. + // in the Batch User Guide. ComputeResources *types.ComputeResourceUpdate - // The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to - // make calls to other AWS services on your behalf. For more information, see AWS - // Batch service IAM role + // The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make + // calls to other Amazon Web Services services on your behalf. For more + // information, see Batch service IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) in - // the AWS Batch User Guide. If the compute environment has a service-linked role, - // it cannot be changed to use a regular IAM role. If the compute environment has a - // regular IAM role, it cannot be changed to use a service-linked role. If your - // specified role has a path other than /, then you must either specify the full - // role ARN (this is recommended) or prefix the role name with the path. Depending - // on how you created your AWS Batch service role, its ARN might contain the + // the Batch User Guide. If the compute environment has a service-linked role, it + // can't be changed to use a regular IAM role. Likewise, if the compute environment + // has a regular IAM role, it can't be changed to use a service-linked role. If + // your specified role has a path other than /, then you must either specify the + // full role ARN (this is recommended) or prefix the role name with the path. + // Depending on how you created your Batch service role, its ARN might contain the // service-role path prefix. When you only specify the name of the service role, - // AWS Batch assumes that your ARN doesn't use the service-role path prefix. - // Because of this, we recommend that you specify the full ARN of your service role - // when you create compute environments. + // Batch assumes that your ARN doesn't use the service-role path prefix. Because of + // this, we recommend that you specify the full ARN of your service role when you + // create compute environments. ServiceRole *string // The state of the compute environment. Compute environments in the ENABLED state // can accept jobs from a queue and scale in or out automatically based on the - // workload demand of its associated queues. If the state is ENABLED, then the AWS + // workload demand of its associated queues. If the state is ENABLED, then the // Batch scheduler can attempt to place jobs from an associated job queue on the // compute resources within the environment. If the compute environment is managed, // then it can scale its instances out or in automatically, based on the job queue - // demand. If the state is DISABLED, then the AWS Batch scheduler doesn't attempt - // to place jobs within the environment. Jobs in a STARTING or RUNNING state - // continue to progress normally. Managed compute environments in the DISABLED - // state don't scale out. However, they scale in to minvCpus value after instances - // become idle. + // demand. If the state is DISABLED, then the Batch scheduler doesn't attempt to + // place jobs within the environment. Jobs in a STARTING or RUNNING state continue + // to progress normally. Managed compute environments in the DISABLED state don't + // scale out. However, they scale in to minvCpus value after instances become idle. State types.CEState noSmithyDocumentSerde diff --git a/service/batch/api_op_UpdateJobQueue.go b/service/batch/api_op_UpdateJobQueue.go index d6036a4f4f9..46e510ecb7a 100644 --- a/service/batch/api_op_UpdateJobQueue.go +++ b/service/batch/api_op_UpdateJobQueue.go @@ -42,7 +42,7 @@ type UpdateJobQueueInput struct { // queue. All of the compute environments must be either EC2 (EC2 or SPOT) or // Fargate (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be // mixed. All compute environments that are associated with a job queue must share - // the same architecture. AWS Batch doesn't support mixing compute environment + // the same architecture. Batch doesn't support mixing compute environment // architecture types in a single job queue. ComputeEnvironmentOrder []types.ComputeEnvironmentOrder diff --git a/service/batch/deserializers.go b/service/batch/deserializers.go index e5294894e97..b02bd776986 100644 --- a/service/batch/deserializers.go +++ b/service/batch/deserializers.go @@ -5090,6 +5090,15 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte sv.JobArn = ptr.String(jtv) } + case "jobDefinition": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.JobDefinition = ptr.String(jtv) + } + case "jobId": if value != nil { jtv, ok := value.(string) diff --git a/service/batch/doc.go b/service/batch/doc.go index 7ddfe0c2865..354c4620d35 100644 --- a/service/batch/doc.go +++ b/service/batch/doc.go @@ -3,18 +3,18 @@ // Package batch provides the API client, operations, and parameter types for AWS // Batch. // -// Using AWS Batch, you can run batch computing workloads on the AWS Cloud. Batch +// Batch Using Batch, you can run batch computing workloads on the Cloud. Batch // computing is a common means for developers, scientists, and engineers to access -// large amounts of compute resources. AWS Batch uses the advantages of this -// computing workload to remove the undifferentiated heavy lifting of configuring -// and managing required infrastructure. At the same time, it also adopts a -// familiar batch computing software approach. Given these advantages, AWS Batch -// can help you to efficiently provision resources in response to jobs submitted, -// thus effectively helping you to eliminate capacity constraints, reduce compute -// costs, and deliver your results more quickly. As a fully managed service, AWS -// Batch can run batch computing workloads of any scale. AWS Batch automatically -// provisions compute resources and optimizes workload distribution based on the -// quantity and scale of your specific workloads. With AWS Batch, there's no need -// to install or manage batch computing software. This means that you can focus -// your time and energy on analyzing results and solving your specific problems. +// large amounts of compute resources. Batch uses the advantages of this computing +// workload to remove the undifferentiated heavy lifting of configuring and +// managing required infrastructure. At the same time, it also adopts a familiar +// batch computing software approach. Given these advantages, Batch can help you to +// efficiently provision resources in response to jobs submitted, thus effectively +// helping you to eliminate capacity constraints, reduce compute costs, and deliver +// your results more quickly. As a fully managed service, Batch can run batch +// computing workloads of any scale. Batch automatically provisions compute +// resources and optimizes workload distribution based on the quantity and scale of +// your specific workloads. With Batch, there's no need to install or manage batch +// computing software. This means that you can focus your time and energy on +// analyzing results and solving your specific problems. package batch diff --git a/service/batch/serializers.go b/service/batch/serializers.go index 614ed5b72e0..9dd11acac96 100644 --- a/service/batch/serializers.go +++ b/service/batch/serializers.go @@ -865,6 +865,13 @@ func awsRestjson1_serializeOpDocumentListJobsInput(v *ListJobsInput, value smith ok.String(*v.ArrayJobId) } + if v.Filters != nil { + ok := object.Key("filters") + if err := awsRestjson1_serializeDocumentListJobsFilterList(v.Filters, ok); err != nil { + return err + } + } + if v.JobQueue != nil { ok := object.Key("jobQueue") ok.String(*v.JobQueue) @@ -2226,6 +2233,25 @@ func awsRestjson1_serializeDocumentKeyValuePair(v *types.KeyValuePair, value smi return nil } +func awsRestjson1_serializeDocumentKeyValuesPair(v *types.KeyValuesPair, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.Values != nil { + ok := object.Key("values") + if err := awsRestjson1_serializeDocumentStringList(v.Values, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentLaunchTemplateSpecification(v *types.LaunchTemplateSpecification, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2289,6 +2315,19 @@ func awsRestjson1_serializeDocumentLinuxParameters(v *types.LinuxParameters, val return nil } +func awsRestjson1_serializeDocumentListJobsFilterList(v []types.KeyValuesPair, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentKeyValuesPair(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentLogConfiguration(v *types.LogConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/batch/types/types.go b/service/batch/types/types.go index 37683006df2..b84e2ea3a56 100644 --- a/service/batch/types/types.go +++ b/service/batch/types/types.go @@ -6,7 +6,7 @@ import ( smithydocument "github.com/aws/smithy-go/document" ) -// An object representing an AWS Batch array job. +// An object representing an Batch array job. type ArrayProperties struct { // The size of the array job. @@ -56,8 +56,8 @@ type AttemptContainerDetail struct { ExitCode int32 // The name of the CloudWatch Logs log stream associated with the container. The - // log group for AWS Batch jobs is /aws/batch/job. Each container attempt receives - // a log stream name when they reach the RUNNING status. + // log group for Batch jobs is /aws/batch/job. Each container attempt receives a + // log stream name when they reach the RUNNING status. LogStreamName *string // The network interfaces associated with the job attempt. @@ -97,7 +97,7 @@ type AttemptDetail struct { noSmithyDocumentSerde } -// An object representing an AWS Batch compute environment. +// An object representing an Batch compute environment. type ComputeEnvironmentDetail struct { // The Amazon Resource Name (ARN) of the compute environment. @@ -120,23 +120,23 @@ type ComputeEnvironmentDetail struct { // The compute resources defined for the compute environment. For more information, // see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the AWS Batch User Guide. + // in the Batch User Guide. ComputeResources *ComputeResource - // The service role associated with the compute environment that allows AWS Batch - // to make calls to AWS API operations on your behalf. For more information, see - // AWS Batch service IAM role + // The service role associated with the compute environment that allows Batch to + // make calls to Amazon Web Services API operations on your behalf. For more + // information, see Batch service IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) in - // the AWS Batch User Guide. + // the Batch User Guide. ServiceRole *string // The state of the compute environment. The valid values are ENABLED or DISABLED. - // If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs - // from an associated job queue on the compute resources within the environment. If - // the compute environment is managed, then it can scale its instances out or in + // If the state is ENABLED, then the Batch scheduler can attempt to place jobs from + // an associated job queue on the compute resources within the environment. If the + // compute environment is managed, then it can scale its instances out or in // automatically, based on the job queue demand. If the state is DISABLED, then the - // AWS Batch scheduler doesn't attempt to place jobs within the environment. Jobs - // in a STARTING or RUNNING state continue to progress normally. Managed compute + // Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a + // STARTING or RUNNING state continue to progress normally. Managed compute // environments in the DISABLED state don't scale out. However, they scale in to // minvCpus value after instances become idle. State CEState @@ -154,7 +154,7 @@ type ComputeEnvironmentDetail struct { // The type of the compute environment: MANAGED or UNMANAGED. For more information, // see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the AWS Batch User Guide. + // in the Batch User Guide. Type CEType noSmithyDocumentSerde @@ -168,7 +168,7 @@ type ComputeEnvironmentDetail struct { // queue. All of the compute environments must be either EC2 (EC2 or SPOT) or // Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute environments can't be // mixed. All compute environments that are associated with a job queue must share -// the same architecture. AWS Batch doesn't support mixing compute environment +// the same architecture. Batch doesn't support mixing compute environment // architecture types in a single job queue. type ComputeEnvironmentOrder struct { @@ -188,25 +188,25 @@ type ComputeEnvironmentOrder struct { noSmithyDocumentSerde } -// An object representing an AWS Batch compute resource. For more information, see +// An object representing an Batch compute resource. For more information, see // Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) -// in the AWS Batch User Guide. +// in the Batch User Guide. type ComputeResource struct { // The maximum number of Amazon EC2 vCPUs that a compute environment can reach. // With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation - // strategies, AWS Batch might need to exceed maxvCpus to meet your capacity - // requirements. In this event, AWS Batch never exceeds maxvCpus by more than a - // single instance. For example, no more than a single instance from among those - // specified in your compute environment is allocated. + // strategies, Batch might need to exceed maxvCpus to meet your capacity + // requirements. In this event, Batch never exceeds maxvCpus by more than a single + // instance. For example, no more than a single instance from among those specified + // in your compute environment is allocated. // // This member is required. MaxvCpus int32 - // The VPC subnets into which the compute resources are launched. These subnets - // must be within the same VPC. Fargate compute resources can contain up to 16 - // subnets. For more information, see VPCs and Subnets + // The VPC subnets where the compute resources are launched. These subnets must be + // within the same VPC. Fargate compute resources can contain up to 16 subnets. For + // more information, see VPCs and Subnets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the // Amazon VPC User Guide. // @@ -216,11 +216,11 @@ type ComputeResource struct { // The type of compute environment: EC2, SPOT, FARGATE, or FARGATE_SPOT. For more // information, see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) - // in the AWS Batch User Guide. If you choose SPOT, you must also specify an Amazon - // EC2 Spot Fleet role with the spotIamFleetRole parameter. For more information, - // see Amazon EC2 Spot Fleet role + // in the Batch User Guide. If you choose SPOT, you must also specify an Amazon EC2 + // Spot Fleet role with the spotIamFleetRole parameter. For more information, see + // Amazon EC2 Spot Fleet role // (https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html) in - // the AWS Batch User Guide. + // the Batch User Guide. // // This member is required. Type CRType @@ -231,29 +231,28 @@ type ComputeResource struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html). // For more information, see Allocation Strategies // (https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html) - // in the AWS Batch User Guide. This parameter isn't applicable to jobs running on - // Fargate resources, and shouldn't be specified. BEST_FIT (default) AWS Batch - // selects an instance type that best fits the needs of the jobs with a preference - // for the lowest-cost instance type. If additional instances of the selected - // instance type aren't available, AWS Batch waits for the additional instances to - // be available. If there aren't enough instances available, or if the user is - // hitting Amazon EC2 service limits + // in the Batch User Guide. This parameter isn't applicable to jobs that are + // running on Fargate resources, and shouldn't be specified. BEST_FIT (default) + // Batch selects an instance type that best fits the needs of the jobs with a + // preference for the lowest-cost instance type. If additional instances of the + // selected instance type aren't available, Batch waits for the additional + // instances to be available. If there aren't enough instances available, or if the + // user is reaching Amazon EC2 service limits // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html) // then additional jobs aren't run until the currently running jobs have completed. // This allocation strategy keeps costs lower but can limit scaling. If you are // using Spot Fleets with BEST_FIT then the Spot Fleet IAM Role must be specified. - // BEST_FIT_PROGRESSIVE AWS Batch will select additional instance types that are - // large enough to meet the requirements of the jobs in the queue, with a - // preference for instance types with a lower cost per unit vCPU. If additional - // instances of the previously selected instance types aren't available, AWS Batch - // will select new instance types. SPOT_CAPACITY_OPTIMIZED AWS Batch will select - // one or more instance types that are large enough to meet the requirements of the - // jobs in the queue, with a preference for instance types that are less likely to - // be interrupted. This allocation strategy is only available for Spot Instance - // compute resources. With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED - // strategies, AWS Batch might need to go above maxvCpus to meet your capacity - // requirements. In this event, AWS Batch never exceeds maxvCpus by more than a - // single instance. + // BEST_FIT_PROGRESSIVE Batch will select additional instance types that are large + // enough to meet the requirements of the jobs in the queue, with a preference for + // instance types with a lower cost per unit vCPU. If additional instances of the + // previously selected instance types aren't available, Batch will select new + // instance types. SPOT_CAPACITY_OPTIMIZED Batch will select one or more instance + // types that are large enough to meet the requirements of the jobs in the queue, + // with a preference for instance types that are less likely to be interrupted. + // This allocation strategy is only available for Spot Instance compute resources. + // With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies, Batch + // might need to go above maxvCpus to meet your capacity requirements. In this + // event, Batch never exceeds maxvCpus by more than a single instance. AllocationStrategy CRAllocationStrategy // The maximum percentage that a Spot Instance price can be when compared with the @@ -262,37 +261,37 @@ type ComputeResource struct { // than 20% of the current On-Demand price for that Amazon EC2 instance. You always // pay the lowest (market) price and never more than your maximum percentage. If // you leave this field empty, the default value is 100% of the On-Demand price. - // This parameter isn't applicable to jobs running on Fargate resources, and - // shouldn't be specified. + // This parameter isn't applicable to jobs that are running on Fargate resources, + // and shouldn't be specified. BidPercentage int32 - // The desired number of Amazon EC2 vCPUS in the compute environment. AWS Batch + // The desired number of Amazon EC2 vCPUS in the compute environment. Batch // modifies this value between the minimum and maximum values, based on job queue - // demand. This parameter isn't applicable to jobs running on Fargate resources, - // and shouldn't be specified. + // demand. This parameter isn't applicable to jobs that are running on Fargate + // resources, and shouldn't be specified. DesiredvCpus int32 // Provides information used to select Amazon Machine Images (AMIs) for EC2 // instances in the compute environment. If Ec2Configuration isn't specified, the - // default is ECS_AL1. This parameter isn't applicable to jobs running on Fargate - // resources, and shouldn't be specified. + // default is ECS_AL1. This parameter isn't applicable to jobs that are running on + // Fargate resources, and shouldn't be specified. Ec2Configuration []Ec2Configuration // The Amazon EC2 key pair that's used for instances launched in the compute // environment. You can use this key pair to log in to your instances with SSH. - // This parameter isn't applicable to jobs running on Fargate resources, and - // shouldn't be specified. + // This parameter isn't applicable to jobs that are running on Fargate resources, + // and shouldn't be specified. Ec2KeyPair *string // The Amazon Machine Image (AMI) ID used for instances launched in the compute // environment. This parameter is overridden by the imageIdOverride member of the - // Ec2Configuration structure. This parameter isn't applicable to jobs running on - // Fargate resources, and shouldn't be specified. The AMI that you choose for a - // compute environment must match the architecture of the instance types that you - // intend to use for that compute environment. For example, if your compute - // environment uses A1 instance types, the compute resource AMI that you choose - // must support ARM instances. Amazon ECS vends both x86 and ARM versions of the - // Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see Amazon + // Ec2Configuration structure. This parameter isn't applicable to jobs that are + // running on Fargate resources, and shouldn't be specified. The AMI that you + // choose for a compute environment must match the architecture of the instance + // types that you intend to use for that compute environment. For example, if your + // compute environment uses A1 instance types, the compute resource AMI that you + // choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of + // the Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see Amazon // ECS-optimized Amazon Linux 2 AMI // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html) // in the Amazon Elastic Container Service Developer Guide. @@ -307,8 +306,8 @@ type ComputeResource struct { // arn:aws:iam:::instance-profile/ecsInstanceRole . For more information, see // Amazon ECS Instance Role // (https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html) in - // the AWS Batch User Guide. This parameter isn't applicable to jobs running on - // Fargate resources, and shouldn't be specified. + // the Batch User Guide. This parameter isn't applicable to jobs that are running + // on Fargate resources, and shouldn't be specified. InstanceRole *string // The instances types that can be launched. You can specify instance families to @@ -316,13 +315,13 @@ type ComputeResource struct { // can specify specific sizes within a family (such as c5.8xlarge). You can also // choose optimal to select instance types (from the C4, M4, and R4 instance // families) that match the demand of your job queues. This parameter isn't - // applicable to jobs running on Fargate resources, and shouldn't be specified. - // When you create a compute environment, the instance types that you select for - // the compute environment must share the same architecture. For example, you can't - // mix x86 and ARM instances in the same compute environment. Currently, optimal - // uses instance types from the C4, M4, and R4 instance families. In Regions that - // don't have instance types from those instance families, instance types from the - // C5, M5. and R5 instance families are used. + // applicable to jobs that are running on Fargate resources, and shouldn't be + // specified. When you create a compute environment, the instance types that you + // select for the compute environment must share the same architecture. For + // example, you can't mix x86 and ARM instances in the same compute environment. + // Currently, optimal uses instance types from the C4, M4, and R4 instance + // families. In Regions that don't have instance types from those instance + // families, instance types from the C5, M5. and R5 instance families are used. InstanceTypes []string // The launch template to use for your compute resources. Any other compute @@ -331,13 +330,13 @@ type ComputeResource struct { // launch template ID or launch template name in the request, but not both. For // more information, see Launch Template Support // (https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html) in - // the AWS Batch User Guide. This parameter isn't applicable to jobs running on - // Fargate resources, and shouldn't be specified. + // the Batch User Guide. This parameter isn't applicable to jobs that are running + // on Fargate resources, and shouldn't be specified. LaunchTemplate *LaunchTemplateSpecification // The minimum number of Amazon EC2 vCPUs that an environment should maintain (even // if the compute environment is DISABLED). This parameter isn't applicable to jobs - // running on Fargate resources, and shouldn't be specified. + // that are running on Fargate resources, and shouldn't be specified. MinvCpus int32 // The Amazon EC2 placement group to associate with your compute resources. If you @@ -348,16 +347,16 @@ type ComputeResource struct { // For more information, see Placement Groups // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in // the Amazon EC2 User Guide for Linux Instances. This parameter isn't applicable - // to jobs running on Fargate resources, and shouldn't be specified. + // to jobs that are running on Fargate resources, and shouldn't be specified. PlacementGroup *string // The Amazon EC2 security groups associated with instances launched in the compute // environment. One or more security groups must be specified, either in // securityGroupIds or using a launch template referenced in launchTemplate. This - // parameter is required for jobs running on Fargate resources and must contain at - // least one security group. Fargate doesn't support launch templates. If security - // groups are specified using both securityGroupIds and launchTemplate, the values - // in securityGroupIds is used. + // parameter is required for jobs that are running on Fargate resources and must + // contain at least one security group. Fargate doesn't support launch templates. + // If security groups are specified using both securityGroupIds and launchTemplate, + // the values in securityGroupIds are used. SecurityGroupIds []string // The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to @@ -365,26 +364,26 @@ type ComputeResource struct { // to BEST_FIT or if the allocation strategy isn't specified. For more information, // see Amazon EC2 Spot Fleet Role // (https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html) in - // the AWS Batch User Guide. This parameter isn't applicable to jobs running on - // Fargate resources, and shouldn't be specified. To tag your Spot Instances on + // the Batch User Guide. This parameter isn't applicable to jobs that are running + // on Fargate resources, and shouldn't be specified. To tag your Spot Instances on // creation, the Spot Fleet IAM role specified here must use the newer // AmazonEC2SpotFleetTaggingRole managed policy. The previously recommended // AmazonEC2SpotFleetRole managed policy doesn't have the required permissions to // tag Spot Instances. For more information, see Spot Instances not tagged on // creation // (https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#spot-instance-no-tag) - // in the AWS Batch User Guide. + // in the Batch User Guide. SpotIamFleetRole *string // Key-value pair tags to be applied to EC2 resources that are launched in the - // compute environment. For AWS Batch, these take the form of "String1": "String2", + // compute environment. For Batch, these take the form of "String1": "String2", // where String1 is the tag key and String2 is the tag value−for example, { "Name": - // "AWS Batch Instance - C4OnDemand" }. This is helpful for recognizing your AWS - // Batch instances in the Amazon EC2 console. These tags can't be updated or - // removed after the compute environment has been created; any changes require - // creating a new compute environment and removing the old compute environment. - // These tags aren't seen when using the AWS Batch ListTagsForResource API - // operation. This parameter isn't applicable to jobs running on Fargate resources, + // "Batch Instance - C4OnDemand" }. This is helpful for recognizing your Batch + // instances in the Amazon EC2 console. These tags can't be updated or removed + // after the compute environment is created.Aany changes to these tags require that + // you create a new compute environment and remove the old compute environment. + // These tags aren't seen when using the Batch ListTagsForResource API operation. + // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. Tags map[string]string @@ -394,25 +393,24 @@ type ComputeResource struct { // An object representing the attributes of a compute environment that can be // updated. For more information, see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) -// in the AWS Batch User Guide. +// in the Batch User Guide. type ComputeResourceUpdate struct { // The desired number of Amazon EC2 vCPUS in the compute environment. This - // parameter isn't applicable to jobs running on Fargate resources, and shouldn't - // be specified. + // parameter isn't applicable to jobs that are running on Fargate resources, and + // shouldn't be specified. DesiredvCpus int32 // The maximum number of Amazon EC2 vCPUs that an environment can reach. With both - // BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies, AWS - // Batch might need to exceed maxvCpus to meet your capacity requirements. In this - // event, AWS Batch never exceeds maxvCpus by more than a single instance. That is, - // no more than a single instance from among those specified in your compute - // environment. + // BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies, Batch + // might need to exceed maxvCpus to meet your capacity requirements. In this event, + // Batch never exceeds maxvCpus by more than a single instance. That is, no more + // than a single instance from among those specified in your compute environment. MaxvCpus int32 // The minimum number of Amazon EC2 vCPUs that an environment should maintain. This - // parameter isn't applicable to jobs running on Fargate resources, and shouldn't - // be specified. + // parameter isn't applicable to jobs that are running on Fargate resources, and + // shouldn't be specified. MinvCpus int32 // The Amazon EC2 security groups associated with instances launched in the compute @@ -422,7 +420,7 @@ type ComputeResourceUpdate struct { // specified and no change is made. SecurityGroupIds []string - // The VPC subnets that the compute resources are launched into. Fargate compute + // The VPC subnets where the compute resources are launched. Fargate compute // resources can contain up to 16 subnets. Providing an empty list will be handled // as if this parameter wasn't specified and no change is made. This can't be // specified for EC2 compute resources. For more information, see VPCs and Subnets @@ -445,27 +443,28 @@ type ContainerDetail struct { // The environment variables to pass to a container. Environment variables must not // start with AWS_BATCH; this naming convention is reserved for variables that are - // set by the AWS Batch service. + // set by the Batch service. Environment []KeyValuePair - // The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. - // For more information, see AWS Batch execution IAM role + // The Amazon Resource Name (ARN) of the execution role that Batch can assume. For + // more information, see Batch execution IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) in - // the AWS Batch User Guide. + // the Batch User Guide. ExecutionRoleArn *string // The exit code to return upon completion. ExitCode int32 - // The platform configuration for jobs running on Fargate resources. Jobs running - // on EC2 resources must not specify this parameter. + // The platform configuration for jobs that are running on Fargate resources. Jobs + // that are running on EC2 resources must not specify this parameter. FargatePlatformConfiguration *FargatePlatformConfiguration // The image used to start the container. Image *string // The instance type of the underlying host infrastructure of a multi-node parallel - // job. This parameter isn't applicable to jobs running on Fargate resources. + // job. This parameter isn't applicable to jobs that are running on Fargate + // resources. InstanceType *string // The Amazon Resource Name (ARN) associated with the job upon execution. @@ -489,7 +488,7 @@ type ContainerDetail struct { // server for remote logging options. For more information on the options for // different supported log drivers, see Configure logging drivers // (https://docs.docker.com/engine/admin/logging/overview/) in the Docker - // documentation. AWS Batch currently supports a subset of the logging drivers + // documentation. Batch currently supports a subset of the logging drivers // available to the Docker daemon (shown in the LogConfiguration data type). // Additional log drivers might be available in future releases of the Amazon ECS // container agent. This parameter requires version 1.18 of the Docker Remote API @@ -506,8 +505,8 @@ type ContainerDetail struct { LogConfiguration *LogConfiguration // The name of the CloudWatch Logs log stream associated with the container. The - // log group for AWS Batch jobs is /aws/batch/job. Each container attempt receives - // a log stream name when they reach the RUNNING status. + // log group for Batch jobs is /aws/batch/job. Each container attempt receives a + // log stream name when they reach the RUNNING status. LogStreamName *string // For jobs run on EC2 resources that didn't specify memory requirements using @@ -518,8 +517,8 @@ type ContainerDetail struct { // The mount points for data volumes in your container. MountPoints []MountPoint - // The network configuration for jobs running on Fargate resources. Jobs running on - // EC2 resources must not specify this parameter. + // The network configuration for jobs that are running on Fargate resources. Jobs + // that are running on EC2 resources must not specify this parameter. NetworkConfiguration *NetworkConfiguration // The network interfaces associated with the job. @@ -527,8 +526,8 @@ type ContainerDetail struct { // When this parameter is true, the container is given elevated permissions on the // host container instance (similar to the root user). The default value is false. - // This parameter isn't applicable to jobs running on Fargate resources and - // shouldn't be provided, or specified as false. + // This parameter isn't applicable to jobs that are running on Fargate resources + // and shouldn't be provided, or specified as false. Privileged bool // When this parameter is true, the container is given read-only access to its root @@ -550,7 +549,7 @@ type ContainerDetail struct { // The secrets to pass to the container. For more information, see Specifying // sensitive data // (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) - // in the AWS Batch User Guide. + // in the Batch User Guide. Secrets []Secret // The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the @@ -563,7 +562,7 @@ type ContainerDetail struct { // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --ulimit // option to docker run (https://docs.docker.com/engine/reference/run/). This - // parameter isn't applicable to jobs running on Fargate resources. + // parameter isn't applicable to jobs that are running on Fargate resources. Ulimits []Ulimit // The user name to use inside the container. This parameter maps to User in the @@ -606,20 +605,23 @@ type ContainerOverrides struct { // variables, which are added to the container at launch, or you can override the // existing environment variables from the Docker image or the job definition. // Environment variables must not start with AWS_BATCH; this naming convention is - // reserved for variables that are set by the AWS Batch service. + // reserved for variables that are set by the Batch service. Environment []KeyValuePair // The instance type to use for a multi-node parallel job. This parameter isn't - // applicable to single-node container jobs or for jobs running on Fargate - // resources and shouldn't be provided. + // applicable to single-node container jobs or jobs that run on Fargate resources, + // and shouldn't be provided. InstanceType *string // This parameter indicates the amount of memory (in MiB) that's reserved for the // job. It overrides the memory parameter set in the job definition, but doesn't // override any memory requirement specified in the ResourceRequirement structure - // in the job definition. This parameter is supported for jobs that run on EC2 - // resources, but isn't supported for jobs that run on Fargate resources. For these - // resources, use resourceRequirement instead. + // in the job definition. To override memory requirements that are specified in the + // ResourceRequirement structure in the job definition, ResourceRequirement must be + // specified in the SubmitJob request, with type set to MEMORY and value set to the + // new value. This parameter is supported for jobs that run on EC2 resources, but + // isn't supported for jobs that run on Fargate resources. For these resources, use + // resourceRequirement instead. // // Deprecated: This field is deprecated, use resourceRequirements instead. Memory int32 @@ -632,19 +634,19 @@ type ContainerOverrides struct { // This parameter indicates the number of vCPUs reserved for the container.It // overrides the vcpus parameter that's set in the job definition, but doesn't // override any vCPU requirement specified in the resourceRequirement structure in - // the job definition. This parameter is supported for jobs that run on EC2 - // resources, but isn't supported for jobs that run on Fargate resources. For - // Fargate resources, you can only use resourceRequirement. For EC2 resources, you - // can use either this parameter or resourceRequirement but not both. This - // parameter maps to CpuShares in the Create a container + // the job definition. To override vCPU requirements that are specified in the + // ResourceRequirement structure in the job definition, ResourceRequirement must be + // specified in the SubmitJob request, with type set to VCPU and value set to the + // new value. This parameter maps to CpuShares in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --cpu-shares option to docker run // (https://docs.docker.com/engine/reference/run/). Each vCPU is equivalent to - // 1,024 CPU shares. You must specify at least one vCPU. This parameter isn't - // applicable to jobs that run on Fargate resources and shouldn't be provided. For - // jobs that run on Fargate resources, you must specify the vCPU requirement for - // the job using resourceRequirements. + // 1,024 CPU shares. You must specify at least one vCPU. This parameter is + // supported for jobs that run on EC2 resources, but isn't supported for jobs that + // run on Fargate resources. For Fargate resources, you can only use + // resourceRequirement. For EC2 resources, you can use either this parameter or + // resourceRequirement but not both. // // Deprecated: This field is deprecated, use resourceRequirements instead. Vcpus int32 @@ -672,19 +674,18 @@ type ContainerProperties struct { // option to docker run (https://docs.docker.com/engine/reference/run/). We don't // recommend using plaintext environment variables for sensitive information, such // as credential data. Environment variables must not start with AWS_BATCH; this - // naming convention is reserved for variables that are set by the AWS Batch - // service. + // naming convention is reserved for variables that are set by the Batch service. Environment []KeyValuePair - // The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. - // For jobs that run on Fargate resources, you must provide an execution role. For - // more information, see AWS Batch execution IAM role + // The Amazon Resource Name (ARN) of the execution role that Batch can assume. For + // jobs that run on Fargate resources, you must provide an execution role. For more + // information, see Batch execution IAM role // (https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) in - // the AWS Batch User Guide. + // the Batch User Guide. ExecutionRoleArn *string - // The platform configuration for jobs running on Fargate resources. Jobs running - // on EC2 resources must not specify this parameter. + // The platform configuration for jobs that are running on Fargate resources. Jobs + // that are running on EC2 resources must not specify this parameter. FargatePlatformConfiguration *FargatePlatformConfiguration // The image used to start a container. This string is passed directly to the @@ -717,12 +718,12 @@ type ContainerProperties struct { // The instance type to use for a multi-node parallel job. All node groups in a // multi-node parallel job must use the same instance type. This parameter isn't - // applicable to single-node container jobs or for jobs that run on Fargate - // resources and shouldn't be provided. + // applicable to single-node container jobs or jobs that run on Fargate resources, + // and shouldn't be provided. InstanceType *string // The Amazon Resource Name (ARN) of the IAM role that the container can assume for - // AWS permissions. For more information, see IAM Roles for Tasks + // Amazon Web Services permissions. For more information, see IAM Roles for Tasks // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) // in the Amazon Elastic Container Service Developer Guide. JobRoleArn *string @@ -745,7 +746,7 @@ type ContainerProperties struct { // For more information on the options for different supported log drivers, see // Configure logging drivers // (https://docs.docker.com/engine/admin/logging/overview/) in the Docker - // documentation. AWS Batch currently supports a subset of the logging drivers + // documentation. Batch currently supports a subset of the logging drivers // available to the Docker daemon (shown in the LogConfiguration data type). This // parameter requires version 1.18 of the Docker Remote API or greater on your // container instance. To check the Docker Remote API version on your container @@ -760,7 +761,7 @@ type ContainerProperties struct { LogConfiguration *LogConfiguration // This parameter indicates the memory hard limit (in MiB) for a container. If your - // container attempts to exceed the specified number, it is terminated. You must + // container attempts to exceed the specified number, it's terminated. You must // specify at least 4 MiB of memory for a job using this parameter. The memory hard // limit can be specified in several places. It must be specified for each node at // least once. This parameter maps to Memory in the Create a container @@ -769,11 +770,11 @@ type ContainerProperties struct { // option to docker run (https://docs.docker.com/engine/reference/run/). This // parameter is supported on EC2 resources but isn't supported on Fargate // resources. For Fargate resources, you should specify the memory requirement - // using resourceRequirement. You can do this for EC2 resources. If you're trying - // to maximize your resource utilization by providing your jobs as much memory as - // possible for a particular instance type, see Memory Management + // using resourceRequirement. You can also do this for EC2 resources. If you're + // trying to maximize your resource utilization by providing your jobs as much + // memory as possible for a particular instance type, see Memory Management // (https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html) in - // the AWS Batch User Guide. + // the Batch User Guide. // // Deprecated: This field is deprecated, use resourceRequirements instead. Memory int32 @@ -785,8 +786,8 @@ type ContainerProperties struct { // option to docker run (https://docs.docker.com/engine/reference/run/). MountPoints []MountPoint - // The network configuration for jobs running on Fargate resources. Jobs running on - // EC2 resources must not specify this parameter. + // The network configuration for jobs that are running on Fargate resources. Jobs + // that are running on EC2 resources must not specify this parameter. NetworkConfiguration *NetworkConfiguration // When this parameter is true, the container is given elevated permissions on the @@ -796,8 +797,8 @@ type ContainerProperties struct { // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --privileged option to docker run // (https://docs.docker.com/engine/reference/run/). The default value is false. - // This parameter isn't applicable to jobs running on Fargate resources and - // shouldn't be provided, or specified as false. + // This parameter isn't applicable to jobs that are running on Fargate resources + // and shouldn't be provided, or specified as false. Privileged bool // When this parameter is true, the container is given read-only access to its root @@ -814,7 +815,7 @@ type ContainerProperties struct { // The secrets for the container. For more information, see Specifying sensitive // data // (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) - // in the AWS Batch User Guide. + // in the Batch User Guide. Secrets []Secret // A list of ulimits to set in the container. This parameter maps to Ulimits in the @@ -822,8 +823,8 @@ type ContainerProperties struct { // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --ulimit // option to docker run (https://docs.docker.com/engine/reference/run/). This - // parameter isn't applicable to jobs running on Fargate resources and shouldn't be - // provided. + // parameter isn't applicable to jobs that are running on Fargate resources and + // shouldn't be provided. Ulimits []Ulimit // The user name to use inside the container. This parameter maps to User in the @@ -839,12 +840,12 @@ type ContainerProperties struct { // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --cpu-shares option to docker run // (https://docs.docker.com/engine/reference/run/). The number of vCPUs must be - // specified but can be be specified in several places. You must specify it at - // least once for each node. This parameter is supported on EC2 resources but isn't + // specified but can be specified in several places. You must specify it at least + // once for each node. This parameter is supported on EC2 resources but isn't // supported for jobs that run on Fargate resources. For these resources, use // resourceRequirement instead. You can use this parameter or resourceRequirements - // structure but not both. This parameter isn't applicable to jobs running on - // Fargate resources and shouldn't be provided. For jobs that run on Fargate + // structure but not both. This parameter isn't applicable to jobs that are running + // on Fargate resources and shouldn't be provided. For jobs that run on Fargate // resources, you must specify the vCPU requirement for the job using // resourceRequirements. // @@ -871,7 +872,8 @@ type ContainerSummary struct { } // An object representing a container instance host device. This object isn't -// applicable to jobs running on Fargate resources and shouldn't be provided. +// applicable to jobs that are running on Fargate resources and shouldn't be +// provided. type Device struct { // The path for the device on the host container instance. @@ -879,8 +881,8 @@ type Device struct { // This member is required. HostPath *string - // The path inside the container used to expose the host device. By default, the - // hostPath value is used. + // The path inside the container that's used to expose the host device. By default, + // the hostPath value is used. ContainerPath *string // The explicit permissions to provide to the container for the device. By default, @@ -894,10 +896,10 @@ type Device struct { // in the compute environment. If Ec2Configuration isn't specified, the default is // currently ECS_AL1 (Amazon Linux // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami)) -// for non-GPU, non-Graviton instances. Starting on March 31, 2021, this default +// for non-GPU, non AWSGraviton instances. Starting on March 31, 2021, this default // will be changing to ECS_AL2 (Amazon Linux 2 // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)). -// This object isn't applicable to jobs running on Fargate resources. +// This object isn't applicable to jobs that are running on Fargate resources. type Ec2Configuration struct { // The image type to match with the instance type to select an AMI. If the @@ -909,16 +911,16 @@ type Ec2Configuration struct { // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)). // ECS_AL2 Amazon Linux 2 // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)− - // Default for all AWS Graviton-based instance families (for example, C6g, M6g, - // R6g, and T4g) and can be used for all non-GPU instance types. ECS_AL2_NVIDIA - // Amazon Linux 2 (GPU) + // Default for all Amazon Web Services Graviton-based instance families (for + // example, C6g, M6g, R6g, and T4g) and can be used for all non-GPU instance types. + // ECS_AL2_NVIDIA Amazon Linux 2 (GPU) // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami)−Default // for all GPU instance families (for example P4 and G4) and can be used for all - // non-AWS Graviton-based instance types. ECS_AL1 Amazon Linux + // non Amazon Web Services Graviton-based instance types. ECS_AL1 Amazon Linux // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami)−Default - // for all non-GPU, non-AWS Graviton instance families. Amazon Linux is reaching - // the end-of-life of standard support. For more information, see Amazon Linux AMI - // (http://aws.amazon.com/amazon-linux-ami/). + // for all non-GPU, non Amazon Web Services Graviton instance families. Amazon + // Linux is reaching the end-of-life of standard support. For more information, see + // Amazon Linux AMI (http://aws.amazon.com/amazon-linux-ami/). // // This member is required. ImageType *string @@ -943,23 +945,23 @@ type EFSAuthorizationConfig struct { // Amazon Elastic File System User Guide. AccessPointId *string - // Whether or not to use the AWS Batch execution IAM role defined in a job - // definition when mounting the Amazon EFS file system. If enabled, transit - // encryption must be enabled in the EFSVolumeConfiguration. If this parameter is - // omitted, the default value of DISABLED is used. For more information, see Using - // Amazon EFS Access Points - // (https://docs.aws.amazon.com/batch/latest/ug/efs-volumes.html#efs-volume-accesspoints) - // in the AWS Batch User Guide. EFS IAM authorization requires that - // TransitEncryption be ENABLED and that a JobRoleArn is specified. + // Whether or not to use the Batch job IAM role defined in a job definition when + // mounting the Amazon EFS file system. If enabled, transit encryption must be + // enabled in the EFSVolumeConfiguration. If this parameter is omitted, the default + // value of DISABLED is used. For more information, see Using Amazon EFS Access + // Points + // (https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html#efs-volume-accesspoints) + // in the Batch User Guide. EFS IAM authorization requires that TransitEncryption + // be ENABLED and that a JobRoleArn is specified. Iam EFSAuthorizationConfigIAM noSmithyDocumentSerde } -// This parameter is specified when you are using an Amazon Elastic File System -// file system for task storage. For more information, see Amazon EFS Volumes -// (https://docs.aws.amazon.com/batch/latest/ug/efs-volumes.html) in the AWS Batch -// User Guide. +// This is used when you're using an Amazon Elastic File System file system for job +// storage. For more information, see Amazon EFS Volumes +// (https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html) in the +// Batch User Guide. type EFSVolumeConfiguration struct { // The Amazon EFS file system ID to use. @@ -972,24 +974,25 @@ type EFSVolumeConfiguration struct { // The directory within the Amazon EFS file system to mount as the root directory // inside the host. If this parameter is omitted, the root of the Amazon EFS volume - // will be used. Specifying / will have the same effect as omitting this parameter. - // If an EFS access point is specified in the authorizationConfig, the root - // directory parameter must either be omitted or set to / which will enforce the - // path set on the Amazon EFS access point. + // is used instead. Specifying / has the same effect as omitting this parameter. + // The maximum length is 4,096 characters. If an EFS access point is specified in + // the authorizationConfig, the root directory parameter must either be omitted or + // set to /, which enforces the path set on the Amazon EFS access point. RootDirectory *string - // Whether or not to enable encryption for Amazon EFS data in transit between the - // Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if - // Amazon EFS IAM authorization is used. If this parameter is omitted, the default - // value of DISABLED is used. For more information, see Encrypting data in transit + // Determines whether to enable encryption for Amazon EFS data in transit between + // the Amazon ECS host and the Amazon EFS server. Transit encryption must be + // enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, + // the default value of DISABLED is used. For more information, see Encrypting data + // in transit // (https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html) in the // Amazon Elastic File System User Guide. TransitEncryption EFSTransitEncryption // The port to use when sending encrypted data between the Amazon ECS host and the - // Amazon EFS server. If you do not specify a transit encryption port, it will use - // the port selection strategy that the Amazon EFS mount helper uses. For more - // information, see EFS Mount Helper + // Amazon EFS server. If you don't specify a transit encryption port, it uses the + // port selection strategy that the Amazon EFS mount helper uses. The value must be + // between 0 and 65,535. For more information, see EFS Mount Helper // (https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html) in the Amazon // Elastic File System User Guide. TransitEncryptionPort int32 @@ -1008,37 +1011,37 @@ type EvaluateOnExit struct { Action RetryAction // Contains a glob pattern to match against the decimal representation of the - // ExitCode returned for a job. The pattern can be up to 512 characters long, can - // contain only numbers, and can optionally end with an asterisk (*) so that only - // the start of the string needs to be an exact match. + // ExitCode returned for a job. The pattern can be up to 512 characters in length. + // It can contain only numbers, and can optionally end with an asterisk (*) so that + // only the start of the string needs to be an exact match. OnExitCode *string // Contains a glob pattern to match against the Reason returned for a job. The - // pattern can be up to 512 characters long, and can contain letters, numbers, + // pattern can be up to 512 characters in length. It can contain letters, numbers, // periods (.), colons (:), and white space (including spaces and tabs). It can // optionally end with an asterisk (*) so that only the start of the string needs // to be an exact match. OnReason *string // Contains a glob pattern to match against the StatusReason returned for a job. - // The pattern can be up to 512 characters long, and can contain letters, numbers, - // periods (.), colons (:), and white space (including spaces or tabs). It can - // optionally end with an asterisk (*) so that only the start of the string needs - // to be an exact match. + // The pattern can be up to 512 characters in length. It can contain letters, + // numbers, periods (.), colons (:), and white space (including spaces or tabs). It + // can optionally end with an asterisk (*) so that only the start of the string + // needs to be an exact match. OnStatusReason *string noSmithyDocumentSerde } -// The platform configuration for jobs running on Fargate resources. For jobs that -// run on EC2 resources, you shouldn't specify this parameter. +// The platform configuration for jobs that are running on Fargate resources. Jobs +// that run on EC2 resources must not specify this parameter. type FargatePlatformConfiguration struct { - // The AWS Fargate platform version where the jobs are running. A platform version - // is specified only for jobs running on Fargate resources. If one isn't specified, - // the LATEST platform version is used by default. This uses a recent, approved - // version of the AWS Fargate platform for compute resources. For more information, - // see AWS Fargate platform versions + // The Fargate platform version where the jobs are running. A platform version is + // specified only for jobs that are running on Fargate resources. If one isn't + // specified, the LATEST platform version is used by default. This uses a recent, + // approved version of the Fargate platform for compute resources. For more + // information, see Fargate platform versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -1065,7 +1068,7 @@ type Host struct { noSmithyDocumentSerde } -// An object representing an AWS Batch job definition. +// An object representing an Batch job definition. type JobDefinition struct { // The Amazon Resource Name (ARN) for the job definition. @@ -1087,7 +1090,7 @@ type JobDefinition struct { // multinode isn't supported. For more information about multi-node parallel jobs, // see Creating a multi-node parallel job definition // (https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html) in - // the AWS Batch User Guide. + // the Batch User Guide. // // This member is required. Type *string @@ -1106,7 +1109,7 @@ type JobDefinition struct { // job definition. For more information about specifying parameters, see Job // Definition Parameters // (https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html) - // in the AWS Batch User Guide. + // in the Batch User Guide. Parameters map[string]string // The platform capabilities required by the job definition. If no value is @@ -1132,17 +1135,17 @@ type JobDefinition struct { Tags map[string]string // The timeout configuration for jobs that are submitted with this job definition. - // You can specify a timeout duration after which AWS Batch terminates your jobs if + // You can specify a timeout duration after which Batch terminates your jobs if // they haven't finished. Timeout *JobTimeout noSmithyDocumentSerde } -// An object representing an AWS Batch job dependency. +// An object representing an Batch job dependency. type JobDependency struct { - // The job ID of the AWS Batch job associated with this dependency. + // The job ID of the Batch job associated with this dependency. JobId *string // The type of the job dependency. @@ -1151,7 +1154,7 @@ type JobDependency struct { noSmithyDocumentSerde } -// An object representing an AWS Batch job. +// An object representing an Batch job. type JobDetail struct { // The job definition that's used by this job. @@ -1184,7 +1187,7 @@ type JobDetail struct { // The current status for the job. If your jobs don't progress to STARTING, see // Jobs Stuck in RUNNABLE Status // (https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable) - // in the troubleshooting section of the AWS Batch User Guide. + // in the troubleshooting section of the Batch User Guide. // // This member is required. Status JobStatus @@ -1216,7 +1219,7 @@ type JobDetail struct { NodeDetails *NodeDetails // An object representing the node properties of a multi-node parallel job. This - // isn't applicable to jobs running on Fargate resources. + // isn't applicable to jobs that are running on Fargate resources. NodeProperties *NodeProperties // Additional parameters passed to the job that replace parameter substitution @@ -1257,7 +1260,7 @@ type JobDetail struct { noSmithyDocumentSerde } -// An object representing the details of an AWS Batch job queue. +// An object representing the details of an Batch job queue. type JobQueueDetail struct { // The compute environments that are attached to the job queue and the order that @@ -1302,10 +1305,9 @@ type JobQueueDetail struct { // status of the job queue. StatusReason *string - // The tags applied to the job queue. For more information, see Tagging your AWS - // Batch resources - // (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) in AWS - // Batch User Guide. + // The tags applied to the job queue. For more information, see Tagging your Batch + // resources (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) + // in Batch User Guide. Tags map[string]string noSmithyDocumentSerde @@ -1340,8 +1342,11 @@ type JobSummary struct { // The Amazon Resource Name (ARN) of the job. JobArn *string + // The Amazon Resource Name (ARN) of the job definition. + JobDefinition *string + // The node properties for a single node in a job summary list. This isn't - // applicable to jobs running on Fargate resources. + // applicable to jobs that are running on Fargate resources. NodeProperties *NodePropertiesSummary // The Unix timestamp for when the job was started (when the job transitioned from @@ -1366,8 +1371,8 @@ type JobSummary struct { type JobTimeout struct { // The time duration in seconds (measured from the job attempt's startedAt - // timestamp) after which AWS Batch terminates your jobs if they have not finished. - // The minimum value for the timeout is 60 seconds. + // timestamp) after which Batch terminates your jobs if they have not finished. The + // minimum value for the timeout is 60 seconds. AttemptDurationSeconds int32 noSmithyDocumentSerde @@ -1387,12 +1392,26 @@ type KeyValuePair struct { noSmithyDocumentSerde } +// A filter name and value pair that's used to return a more specific list of +// results from a ListJobs API operation. +type KeyValuesPair struct { + + // The name of the filter. Filter names are case sensitive. + Name *string + + // The filter values. + Values []string + + noSmithyDocumentSerde +} + // An object representing a launch template associated with a compute resource. You // must specify either the launch template ID or launch template name in the // request, but not both. If security groups are specified using both the // securityGroupIds parameter of CreateComputeEnvironment and the launch template, // the values in the securityGroupIds parameter of CreateComputeEnvironment will be -// used. This object isn't applicable to jobs running on Fargate resources. +// used. This object isn't applicable to jobs that are running on Fargate +// resources. type LaunchTemplateSpecification struct { // The ID of the launch template. @@ -1404,7 +1423,7 @@ type LaunchTemplateSpecification struct { // The version number of the launch template, $Latest, or $Default. If the value is // $Latest, the latest version of the launch template is used. If the value is // $Default, the default version of the launch template is used. After the compute - // environment is created, the launch template version used will not be changed, + // environment is created, the launch template version that's used isn't changed, // even if the $Default or $Latest version for the launch template is updated. To // use a new launch template version, create a new compute environment, add the new // compute environment to the existing job queue, remove the old compute @@ -1424,8 +1443,8 @@ type LinuxParameters struct { // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --device // option to docker run (https://docs.docker.com/engine/reference/run/). This - // parameter isn't applicable to jobs running on Fargate resources and shouldn't be - // provided. + // parameter isn't applicable to jobs that are running on Fargate resources and + // shouldn't be provided. Devices []Device // If true, run an init process inside the container that forwards signals and @@ -1447,31 +1466,31 @@ type LinuxParameters struct { // doesn't use swap. Accepted values are 0 or any positive integer. If the maxSwap // parameter is omitted, the container doesn't use the swap configuration for the // container instance it is running on. A maxSwap value must be set for the - // swappiness parameter to be used. This parameter isn't applicable to jobs running - // on Fargate resources and shouldn't be provided. + // swappiness parameter to be used. This parameter isn't applicable to jobs that + // are running on Fargate resources and shouldn't be provided. MaxSwap int32 // The value for the size (in MiB) of the /dev/shm volume. This parameter maps to // the --shm-size option to docker run // (https://docs.docker.com/engine/reference/run/). This parameter isn't applicable - // to jobs running on Fargate resources and shouldn't be provided. + // to jobs that are running on Fargate resources and shouldn't be provided. SharedMemorySize int32 // This allows you to tune a container's memory swappiness behavior. A swappiness // value of 0 causes swapping not to happen unless absolutely necessary. A // swappiness value of 100 causes pages to be swapped very aggressively. Accepted // values are whole numbers between 0 and 100. If the swappiness parameter isn't - // specified, a default value of 60 is used. If a value isn't specified for maxSwap - // then this parameter is ignored. If maxSwap is set to 0, the container doesn't - // use swap. This parameter maps to the --memory-swappiness option to docker run - // (https://docs.docker.com/engine/reference/run/). Consider the following when you - // use a per-container swap configuration. + // specified, a default value of 60 is used. If a value isn't specified for + // maxSwap, then this parameter is ignored. If maxSwap is set to 0, the container + // doesn't use swap. This parameter maps to the --memory-swappiness option to + // docker run (https://docs.docker.com/engine/reference/run/). Consider the + // following when you use a per-container swap configuration. // - // * Swap space must be enabled and - // allocated on the container instance for the containers to use. The Amazon ECS - // optimized AMIs don't have swap enabled by default. You must enable swap on the - // instance to use this feature. For more information, see Instance Store Swap - // Volumes + // * Swap space must be + // enabled and allocated on the container instance for the containers to use. The + // Amazon ECS optimized AMIs don't have swap enabled by default. You must enable + // swap on the instance to use this feature. For more information, see Instance + // Store Swap Volumes // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-store-swap-volumes.html) // in the Amazon EC2 User Guide for Linux Instances or How do I allocate memory to // work as swap space in an Amazon EC2 instance by using a swap file? @@ -1486,14 +1505,14 @@ type LinuxParameters struct { // total swap usage will be limited to two times the memory reservation of the // container. // - // This parameter isn't applicable to jobs running on Fargate resources - // and shouldn't be provided. + // This parameter isn't applicable to jobs that are running on Fargate + // resources and shouldn't be provided. Swappiness int32 // The container path, mount options, and size (in MiB) of the tmpfs mount. This // parameter maps to the --tmpfs option to docker run // (https://docs.docker.com/engine/reference/run/). This parameter isn't applicable - // to jobs running on Fargate resources and shouldn't be provided. + // to jobs that are running on Fargate resources and shouldn't be provided. Tmpfs []Tmpfs noSmithyDocumentSerde @@ -1505,12 +1524,12 @@ type LogConfiguration struct { // The log driver to use for the container. The valid values listed for this // parameter are log drivers that the Amazon ECS container agent can communicate // with by default. The supported log drivers are awslogs, fluentd, gelf, - // json-file, journald, logentries, syslog, and splunk. Jobs running on Fargate - // resources are restricted to the awslogs and splunk log drivers. awslogs + // json-file, journald, logentries, syslog, and splunk. Jobs that are running on + // Fargate resources are restricted to the awslogs and splunk log drivers. awslogs // Specifies the Amazon CloudWatch Logs logging driver. For more information, see // Using the awslogs Log Driver // (https://docs.aws.amazon.com/batch/latest/userguide/using_awslogs.html) in the - // AWS Batch User Guide and Amazon CloudWatch Logs logging driver + // Batch User Guide and Amazon CloudWatch Logs logging driver // (https://docs.docker.com/config/containers/logging/awslogs/) in the Docker // documentation. fluentd Specifies the Fluentd logging driver. For more // information, including usage and options, see Fluentd logging driver @@ -1554,7 +1573,7 @@ type LogConfiguration struct { // The secrets to pass to the log configuration. For more information, see // Specifying Sensitive Data // (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) - // in the AWS Batch User Guide. + // in the Batch User Guide. SecretOptions []Secret noSmithyDocumentSerde @@ -1579,13 +1598,13 @@ type MountPoint struct { noSmithyDocumentSerde } -// The network configuration for jobs running on Fargate resources. Jobs running on -// EC2 resources must not specify this parameter. +// The network configuration for jobs that are running on Fargate resources. Jobs +// that are running on EC2 resources must not specify this parameter. type NetworkConfiguration struct { - // Indicates whether the job should have a public IP address. For a job running on - // Fargate resources in a private subnet to send outbound traffic to the internet - // (for example, in order to pull container images), the private subnet requires a + // Indicates whether the job should have a public IP address. For a job that is + // running on Fargate resources in a private subnet to send outbound traffic to the + // internet (for example, to pull container images), the private subnet requires a // NAT gateway be attached to route requests to the internet. For more information, // see Amazon ECS task networking // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html). @@ -1627,8 +1646,8 @@ type NodeDetails struct { } // Object representing any node overrides to a job definition that's used in a -// SubmitJob API operation. This isn't applicable to jobs running on Fargate -// resources and shouldn't be provided; use containerOverrides instead. +// SubmitJob API operation. This isn't applicable to jobs that are running on +// Fargate resources and shouldn't be provided; use containerOverrides instead. type NodeOverrides struct { // The node property overrides for the job. @@ -1748,11 +1767,11 @@ type ResourceRequirement struct { // vary based on the type specified. type="GPU" The number of physical GPUs to // reserve for the container. The number of GPUs reserved for all containers in a // job shouldn't exceed the number of available GPUs on the compute resource that - // the job is launched on. GPUs are not available for jobs running on Fargate - // resources. type="MEMORY" The memory hard limit (in MiB) present to the - // container. This parameter is supported for jobs running on EC2 resources. If - // your container attempts to exceed the memory specified, the container is - // terminated. This parameter maps to Memory in the Create a container + // the job is launched on. GPUs are not available for jobs that are running on + // Fargate resources. type="MEMORY" The memory hard limit (in MiB) present to the + // container. This parameter is supported for jobs that are running on EC2 + // resources. If your container attempts to exceed the memory specified, the + // container is terminated. This parameter maps to Memory in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --memory // option to docker run (https://docs.docker.com/engine/reference/run/). You must @@ -1766,31 +1785,31 @@ type ResourceRequirement struct { // trying to maximize your resource utilization by providing your jobs as much // memory as possible for a particular instance type, see Memory Management // (https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html) in - // the AWS Batch User Guide. For jobs running on Fargate resources, then value is - // the hard limit (in MiB), and must match one of the supported values and the VCPU - // values must be one of the values supported for that memory value. value = 512 - // VCPU = 0.25 value = 1024 VCPU = 0.25 or 0.5 value = 2048 VCPU = 0.25, 0.5, or 1 - // value = 3072 VCPU = 0.5, or 1 value = 4096 VCPU = 0.5, 1, or 2 value = 5120, - // 6144, or 7168 VCPU = 1 or 2 value = 8192 VCPU = 1, 2, or 4 value = 9216, 10240, - // 11264, 12288, 13312, 14336, 15360, or 16384 VCPU = 2 or 4 value = 17408, 18432, - // 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or - // 30720 VCPU = 4 type="VCPU" The number of vCPUs reserved for the container. This - // parameter maps to CpuShares in the Create a container + // the Batch User Guide. For jobs that are running on Fargate resources, then value + // is the hard limit (in MiB), and must match one of the supported values and the + // VCPU values must be one of the values supported for that memory value. value = + // 512 VCPU = 0.25 value = 1024 VCPU = 0.25 or 0.5 value = 2048 VCPU = 0.25, 0.5, + // or 1 value = 3072 VCPU = 0.5, or 1 value = 4096 VCPU = 0.5, 1, or 2 value = + // 5120, 6144, or 7168 VCPU = 1 or 2 value = 8192 VCPU = 1, 2, or 4 value = 9216, + // 10240, 11264, 12288, 13312, 14336, 15360, or 16384 VCPU = 2 or 4 value = 17408, + // 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, + // 29696, or 30720 VCPU = 4 type="VCPU" The number of vCPUs reserved for the + // container. This parameter maps to CpuShares in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --cpu-shares option to docker run // (https://docs.docker.com/engine/reference/run/). Each vCPU is equivalent to // 1,024 CPU shares. For EC2 resources, you must specify at least one vCPU. This is // required but can be specified in several places; it must be specified for each - // node at least once. For jobs running on Fargate resources, then value must match - // one of the supported values and the MEMORY values must be one of the values - // supported for that VCPU value. The supported values are 0.25, 0.5, 1, 2, and 4 - // value = 0.25 MEMORY = 512, 1024, or 2048 value = 0.5 MEMORY = 1024, 2048, 3072, - // or 4096 value = 1 MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192 value = 2 - // MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, - // 15360, or 16384 value = 4 MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, - // 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, - // 25600, 26624, 27648, 28672, 29696, or 30720 + // node at least once. For jobs that are running on Fargate resources, then value + // must match one of the supported values and the MEMORY values must be one of the + // values supported for that VCPU value. The supported values are 0.25, 0.5, 1, 2, + // and 4 value = 0.25 MEMORY = 512, 1024, or 2048 value = 0.5 MEMORY = 1024, 2048, + // 3072, or 4096 value = 1 MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192 + // value = 2 MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, + // 13312, 14336, 15360, or 16384 value = 4 MEMORY = 8192, 9216, 10240, 11264, + // 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, + // 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720 // // This member is required. Value *string @@ -1800,7 +1819,7 @@ type ResourceRequirement struct { // The retry strategy associated with a job. For more information, see Automated // job retries -// (https://docs.aws.amazon.com/batch/latest/userguide/job_retries.html) in the AWS +// (https://docs.aws.amazon.com/batch/latest/userguide/job_retries.html) in the // Batch User Guide. type RetryStrategy struct { @@ -1830,7 +1849,7 @@ type RetryStrategy struct { // For more // information, see Specifying sensitive data // (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) -// in the AWS Batch User Guide. +// in the Batch User Guide. type Secret struct { // The name of the secret. @@ -1839,11 +1858,11 @@ type Secret struct { Name *string // The secret to expose to the container. The supported values are either the full - // ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the - // AWS Systems Manager Parameter Store. If the AWS Systems Manager Parameter Store - // parameter exists in the same Region as the job you're launching, then you can - // use either the full ARN or name of the parameter. If the parameter exists in a - // different Region, then the full ARN must be specified. + // ARN of the Secrets Manager secret or the full ARN of the parameter in the Amazon + // Web Services Systems Manager Parameter Store. If the Amazon Web Services Systems + // Manager Parameter Store parameter exists in the same Region as the job you're + // launching, then you can use either the full ARN or name of the parameter. If the + // parameter exists in a different Region, then the full ARN must be specified. // // This member is required. ValueFrom *string @@ -1852,7 +1871,7 @@ type Secret struct { } // The container path, mount options, and size of the tmpfs mount. This object -// isn't applicable to jobs running on Fargate resources. +// isn't applicable to jobs that are running on Fargate resources. type Tmpfs struct { // The absolute file path in the container where the tmpfs volume is mounted. @@ -1878,7 +1897,7 @@ type Tmpfs struct { } // The ulimit settings to pass to the container. This object isn't applicable to -// jobs running on Fargate resources. +// jobs that are running on Fargate resources. type Ulimit struct { // The hard limit for the ulimit type. @@ -1903,16 +1922,16 @@ type Ulimit struct { type Volume struct { // This parameter is specified when you are using an Amazon Elastic File System - // file system for job storage. Jobs running on Fargate resources must specify a - // platformVersion of at least 1.4.0. + // file system for job storage. Jobs that are running on Fargate resources must + // specify a platformVersion of at least 1.4.0. EfsVolumeConfiguration *EFSVolumeConfiguration // The contents of the host parameter determine whether your data volume persists // on the host container instance and where it is stored. If the host parameter is // empty, then the Docker daemon assigns a host path for your data volume. However, // the data isn't guaranteed to persist after the containers associated with it - // stop running. This parameter isn't applicable to jobs running on Fargate - // resources and shouldn't be provided. + // stop running. This parameter isn't applicable to jobs that are running on + // Fargate resources and shouldn't be provided. Host *Host // The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, diff --git a/service/chime/api_op_StartMeetingTranscription.go b/service/chime/api_op_StartMeetingTranscription.go new file mode 100644 index 00000000000..f5114639564 --- /dev/null +++ b/service/chime/api_op_StartMeetingTranscription.go @@ -0,0 +1,123 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package chime + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/chime/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Start transcription for the specified meetingId. +func (c *Client) StartMeetingTranscription(ctx context.Context, params *StartMeetingTranscriptionInput, optFns ...func(*Options)) (*StartMeetingTranscriptionOutput, error) { + if params == nil { + params = &StartMeetingTranscriptionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StartMeetingTranscription", params, optFns, c.addOperationStartMeetingTranscriptionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StartMeetingTranscriptionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StartMeetingTranscriptionInput struct { + + // The unique ID of the meeting being transcribed. + // + // This member is required. + MeetingId *string + + // The configuration for the current transcription operation. Must contain + // EngineTranscribeSettings or EngineTranscribeMedicalSettings. + // + // This member is required. + TranscriptionConfiguration *types.TranscriptionConfiguration + + noSmithyDocumentSerde +} + +type StartMeetingTranscriptionOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStartMeetingTranscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpStartMeetingTranscription{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartMeetingTranscription{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpStartMeetingTranscriptionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartMeetingTranscription(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opStartMeetingTranscription(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "chime", + OperationName: "StartMeetingTranscription", + } +} diff --git a/service/chime/api_op_StopMeetingTranscription.go b/service/chime/api_op_StopMeetingTranscription.go new file mode 100644 index 00000000000..be905eadb92 --- /dev/null +++ b/service/chime/api_op_StopMeetingTranscription.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package chime + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Stops transcription for the specified meetingId. +func (c *Client) StopMeetingTranscription(ctx context.Context, params *StopMeetingTranscriptionInput, optFns ...func(*Options)) (*StopMeetingTranscriptionOutput, error) { + if params == nil { + params = &StopMeetingTranscriptionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StopMeetingTranscription", params, optFns, c.addOperationStopMeetingTranscriptionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StopMeetingTranscriptionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StopMeetingTranscriptionInput struct { + + // The unique ID of the meeting for which you stop transcription. + // + // This member is required. + MeetingId *string + + noSmithyDocumentSerde +} + +type StopMeetingTranscriptionOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStopMeetingTranscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpStopMeetingTranscription{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStopMeetingTranscription{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpStopMeetingTranscriptionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopMeetingTranscription(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opStopMeetingTranscription(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "chime", + OperationName: "StopMeetingTranscription", + } +} diff --git a/service/chime/deserializers.go b/service/chime/deserializers.go index 3c2ef2ad720..b253f3d410a 100644 --- a/service/chime/deserializers.go +++ b/service/chime/deserializers.go @@ -24906,6 +24906,217 @@ func awsRestjson1_deserializeOpDocumentSendChannelMessageOutput(v **SendChannelM return nil } +type awsRestjson1_deserializeOpStartMeetingTranscription struct { +} + +func (*awsRestjson1_deserializeOpStartMeetingTranscription) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStartMeetingTranscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorStartMeetingTranscription(response, &metadata) + } + output := &StartMeetingTranscriptionOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorStartMeetingTranscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) + + case strings.EqualFold("ForbiddenException", errorCode): + return awsRestjson1_deserializeErrorForbiddenException(response, errorBody) + + case strings.EqualFold("NotFoundException", errorCode): + return awsRestjson1_deserializeErrorNotFoundException(response, errorBody) + + case strings.EqualFold("ResourceLimitExceededException", errorCode): + return awsRestjson1_deserializeErrorResourceLimitExceededException(response, errorBody) + + case strings.EqualFold("ServiceFailureException", errorCode): + return awsRestjson1_deserializeErrorServiceFailureException(response, errorBody) + + case strings.EqualFold("ServiceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody) + + case strings.EqualFold("ThrottledClientException", errorCode): + return awsRestjson1_deserializeErrorThrottledClientException(response, errorBody) + + case strings.EqualFold("UnauthorizedClientException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedClientException(response, errorBody) + + case strings.EqualFold("UnprocessableEntityException", errorCode): + return awsRestjson1_deserializeErrorUnprocessableEntityException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpStopMeetingTranscription struct { +} + +func (*awsRestjson1_deserializeOpStopMeetingTranscription) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStopMeetingTranscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorStopMeetingTranscription(response, &metadata) + } + output := &StopMeetingTranscriptionOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorStopMeetingTranscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) + + case strings.EqualFold("ForbiddenException", errorCode): + return awsRestjson1_deserializeErrorForbiddenException(response, errorBody) + + case strings.EqualFold("NotFoundException", errorCode): + return awsRestjson1_deserializeErrorNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceFailureException", errorCode): + return awsRestjson1_deserializeErrorServiceFailureException(response, errorBody) + + case strings.EqualFold("ServiceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody) + + case strings.EqualFold("ThrottledClientException", errorCode): + return awsRestjson1_deserializeErrorThrottledClientException(response, errorBody) + + case strings.EqualFold("UnauthorizedClientException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedClientException(response, errorBody) + + case strings.EqualFold("UnprocessableEntityException", errorCode): + return awsRestjson1_deserializeErrorUnprocessableEntityException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsRestjson1_deserializeOpTagAttendee struct { } @@ -29292,6 +29503,15 @@ func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{ sv.AccountId = ptr.String(jtv) } + case "AccountStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountStatus to be of type string, got %T instead", value) + } + sv.AccountStatus = types.AccountStatus(jtv) + } + case "AccountType": if value != nil { jtv, ok := value.(string) diff --git a/service/chime/generated.json b/service/chime/generated.json index 6ae4a1d40a2..1e9eed180ed 100644 --- a/service/chime/generated.json +++ b/service/chime/generated.json @@ -166,6 +166,8 @@ "api_op_RestorePhoneNumber.go", "api_op_SearchAvailablePhoneNumbers.go", "api_op_SendChannelMessage.go", + "api_op_StartMeetingTranscription.go", + "api_op_StopMeetingTranscription.go", "api_op_TagAttendee.go", "api_op_TagMeeting.go", "api_op_TagResource.go", diff --git a/service/chime/serializers.go b/service/chime/serializers.go index a160d46f681..558f25428f3 100644 --- a/service/chime/serializers.go +++ b/service/chime/serializers.go @@ -11446,6 +11446,147 @@ func awsRestjson1_serializeOpDocumentSendChannelMessageInput(v *SendChannelMessa return nil } +type awsRestjson1_serializeOpStartMeetingTranscription struct { +} + +func (*awsRestjson1_serializeOpStartMeetingTranscription) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpStartMeetingTranscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*StartMeetingTranscriptionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/meetings/{MeetingId}/transcription?operation=start") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsStartMeetingTranscriptionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentStartMeetingTranscriptionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsStartMeetingTranscriptionInput(v *StartMeetingTranscriptionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MeetingId == nil || len(*v.MeetingId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} + } + if v.MeetingId != nil { + if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentStartMeetingTranscriptionInput(v *StartMeetingTranscriptionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TranscriptionConfiguration != nil { + ok := object.Key("TranscriptionConfiguration") + if err := awsRestjson1_serializeDocumentTranscriptionConfiguration(v.TranscriptionConfiguration, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpStopMeetingTranscription struct { +} + +func (*awsRestjson1_serializeOpStopMeetingTranscription) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpStopMeetingTranscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*StopMeetingTranscriptionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/meetings/{MeetingId}/transcription?operation=stop") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsStopMeetingTranscriptionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsStopMeetingTranscriptionInput(v *StopMeetingTranscriptionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MeetingId == nil || len(*v.MeetingId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} + } + if v.MeetingId != nil { + if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpTagAttendee struct { } @@ -14100,6 +14241,70 @@ func awsRestjson1_serializeDocumentEmergencyCallingConfiguration(v *types.Emerge return nil } +func awsRestjson1_serializeDocumentEngineTranscribeMedicalSettings(v *types.EngineTranscribeMedicalSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.LanguageCode) > 0 { + ok := object.Key("LanguageCode") + ok.String(string(v.LanguageCode)) + } + + if len(v.Region) > 0 { + ok := object.Key("Region") + ok.String(string(v.Region)) + } + + if len(v.Specialty) > 0 { + ok := object.Key("Specialty") + ok.String(string(v.Specialty)) + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) + } + + if v.VocabularyName != nil { + ok := object.Key("VocabularyName") + ok.String(*v.VocabularyName) + } + + return nil +} + +func awsRestjson1_serializeDocumentEngineTranscribeSettings(v *types.EngineTranscribeSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.LanguageCode) > 0 { + ok := object.Key("LanguageCode") + ok.String(string(v.LanguageCode)) + } + + if len(v.Region) > 0 { + ok := object.Key("Region") + ok.String(string(v.Region)) + } + + if len(v.VocabularyFilterMethod) > 0 { + ok := object.Key("VocabularyFilterMethod") + ok.String(string(v.VocabularyFilterMethod)) + } + + if v.VocabularyFilterName != nil { + ok := object.Key("VocabularyFilterName") + ok.String(*v.VocabularyFilterName) + } + + if v.VocabularyName != nil { + ok := object.Key("VocabularyName") + ok.String(*v.VocabularyName) + } + + return nil +} + func awsRestjson1_serializeDocumentGeoMatchParams(v *types.GeoMatchParams, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -14608,6 +14813,27 @@ func awsRestjson1_serializeDocumentTermination(v *types.Termination, value smith return nil } +func awsRestjson1_serializeDocumentTranscriptionConfiguration(v *types.TranscriptionConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EngineTranscribeMedicalSettings != nil { + ok := object.Key("EngineTranscribeMedicalSettings") + if err := awsRestjson1_serializeDocumentEngineTranscribeMedicalSettings(v.EngineTranscribeMedicalSettings, ok); err != nil { + return err + } + } + + if v.EngineTranscribeSettings != nil { + ok := object.Key("EngineTranscribeSettings") + if err := awsRestjson1_serializeDocumentEngineTranscribeSettings(v.EngineTranscribeSettings, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentUpdatePhoneNumberRequestItem(v *types.UpdatePhoneNumberRequestItem, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/chime/types/enums.go b/service/chime/types/enums.go index 77b13243b8d..5939a4e48ee 100644 --- a/service/chime/types/enums.go +++ b/service/chime/types/enums.go @@ -2,6 +2,24 @@ package types +type AccountStatus string + +// Enum values for AccountStatus +const ( + AccountStatusSuspended AccountStatus = "Suspended" + AccountStatusActive AccountStatus = "Active" +) + +// Values returns all known values for AccountStatus. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (AccountStatus) Values() []AccountStatus { + return []AccountStatus{ + "Suspended", + "Active", + } +} + type AccountType string // Enum values for AccountType @@ -673,6 +691,188 @@ func (SortOrder) Values() []SortOrder { } } +type TranscribeLanguageCode string + +// Enum values for TranscribeLanguageCode +const ( + TranscribeLanguageCodeEnUs TranscribeLanguageCode = "en-US" + TranscribeLanguageCodeEnGb TranscribeLanguageCode = "en-GB" + TranscribeLanguageCodeEsUs TranscribeLanguageCode = "es-US" + TranscribeLanguageCodeFrCa TranscribeLanguageCode = "fr-CA" + TranscribeLanguageCodeFrFr TranscribeLanguageCode = "fr-FR" + TranscribeLanguageCodeEnAu TranscribeLanguageCode = "en-AU" + TranscribeLanguageCodeItIt TranscribeLanguageCode = "it-IT" + TranscribeLanguageCodeDeDe TranscribeLanguageCode = "de-DE" + TranscribeLanguageCodePtBr TranscribeLanguageCode = "pt-BR" + TranscribeLanguageCodeJaJp TranscribeLanguageCode = "ja-JP" + TranscribeLanguageCodeKoKr TranscribeLanguageCode = "ko-KR" + TranscribeLanguageCodeZhCn TranscribeLanguageCode = "zh-CN" +) + +// Values returns all known values for TranscribeLanguageCode. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (TranscribeLanguageCode) Values() []TranscribeLanguageCode { + return []TranscribeLanguageCode{ + "en-US", + "en-GB", + "es-US", + "fr-CA", + "fr-FR", + "en-AU", + "it-IT", + "de-DE", + "pt-BR", + "ja-JP", + "ko-KR", + "zh-CN", + } +} + +type TranscribeMedicalLanguageCode string + +// Enum values for TranscribeMedicalLanguageCode +const ( + TranscribeMedicalLanguageCodeEnUs TranscribeMedicalLanguageCode = "en-US" +) + +// Values returns all known values for TranscribeMedicalLanguageCode. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. The ordering of this slice is not guaranteed to be stable across +// updates. +func (TranscribeMedicalLanguageCode) Values() []TranscribeMedicalLanguageCode { + return []TranscribeMedicalLanguageCode{ + "en-US", + } +} + +type TranscribeMedicalRegion string + +// Enum values for TranscribeMedicalRegion +const ( + TranscribeMedicalRegionUsEast1 TranscribeMedicalRegion = "us-east-1" + TranscribeMedicalRegionUsEast2 TranscribeMedicalRegion = "us-east-2" + TranscribeMedicalRegionUsWest2 TranscribeMedicalRegion = "us-west-2" + TranscribeMedicalRegionApSoutheast2 TranscribeMedicalRegion = "ap-southeast-2" + TranscribeMedicalRegionCaCentral1 TranscribeMedicalRegion = "ca-central-1" + TranscribeMedicalRegionEuWest1 TranscribeMedicalRegion = "eu-west-1" +) + +// Values returns all known values for TranscribeMedicalRegion. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (TranscribeMedicalRegion) Values() []TranscribeMedicalRegion { + return []TranscribeMedicalRegion{ + "us-east-1", + "us-east-2", + "us-west-2", + "ap-southeast-2", + "ca-central-1", + "eu-west-1", + } +} + +type TranscribeMedicalSpecialty string + +// Enum values for TranscribeMedicalSpecialty +const ( + TranscribeMedicalSpecialtyPrimaryCare TranscribeMedicalSpecialty = "PRIMARYCARE" + TranscribeMedicalSpecialtyCardiology TranscribeMedicalSpecialty = "CARDIOLOGY" + TranscribeMedicalSpecialtyNeurology TranscribeMedicalSpecialty = "NEUROLOGY" + TranscribeMedicalSpecialtyOncology TranscribeMedicalSpecialty = "ONCOLOGY" + TranscribeMedicalSpecialtyRadiology TranscribeMedicalSpecialty = "RADIOLOGY" + TranscribeMedicalSpecialtyUrology TranscribeMedicalSpecialty = "UROLOGY" +) + +// Values returns all known values for TranscribeMedicalSpecialty. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (TranscribeMedicalSpecialty) Values() []TranscribeMedicalSpecialty { + return []TranscribeMedicalSpecialty{ + "PRIMARYCARE", + "CARDIOLOGY", + "NEUROLOGY", + "ONCOLOGY", + "RADIOLOGY", + "UROLOGY", + } +} + +type TranscribeMedicalType string + +// Enum values for TranscribeMedicalType +const ( + TranscribeMedicalTypeConversation TranscribeMedicalType = "CONVERSATION" + TranscribeMedicalTypeDictation TranscribeMedicalType = "DICTATION" +) + +// Values returns all known values for TranscribeMedicalType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (TranscribeMedicalType) Values() []TranscribeMedicalType { + return []TranscribeMedicalType{ + "CONVERSATION", + "DICTATION", + } +} + +type TranscribeRegion string + +// Enum values for TranscribeRegion +const ( + TranscribeRegionUsEast2 TranscribeRegion = "us-east-2" + TranscribeRegionUsEast1 TranscribeRegion = "us-east-1" + TranscribeRegionUsWest2 TranscribeRegion = "us-west-2" + TranscribeRegionApNortheast2 TranscribeRegion = "ap-northeast-2" + TranscribeRegionApSoutheast2 TranscribeRegion = "ap-southeast-2" + TranscribeRegionApNortheast1 TranscribeRegion = "ap-northeast-1" + TranscribeRegionCaCentral1 TranscribeRegion = "ca-central-1" + TranscribeRegionEuCentral1 TranscribeRegion = "eu-central-1" + TranscribeRegionEuWest1 TranscribeRegion = "eu-west-1" + TranscribeRegionEuWest2 TranscribeRegion = "eu-west-2" + TranscribeRegionSaEast1 TranscribeRegion = "sa-east-1" +) + +// Values returns all known values for TranscribeRegion. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (TranscribeRegion) Values() []TranscribeRegion { + return []TranscribeRegion{ + "us-east-2", + "us-east-1", + "us-west-2", + "ap-northeast-2", + "ap-southeast-2", + "ap-northeast-1", + "ca-central-1", + "eu-central-1", + "eu-west-1", + "eu-west-2", + "sa-east-1", + } +} + +type TranscribeVocabularyFilterMethod string + +// Enum values for TranscribeVocabularyFilterMethod +const ( + TranscribeVocabularyFilterMethodRemove TranscribeVocabularyFilterMethod = "remove" + TranscribeVocabularyFilterMethodMask TranscribeVocabularyFilterMethod = "mask" + TranscribeVocabularyFilterMethodTag TranscribeVocabularyFilterMethod = "tag" +) + +// Values returns all known values for TranscribeVocabularyFilterMethod. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. The ordering of this slice is not guaranteed to be stable across +// updates. +func (TranscribeVocabularyFilterMethod) Values() []TranscribeVocabularyFilterMethod { + return []TranscribeVocabularyFilterMethod{ + "remove", + "mask", + "tag", + } +} + type UserType string // Enum values for UserType diff --git a/service/chime/types/types.go b/service/chime/types/types.go index 58e46133ce1..1dbdb16f72f 100644 --- a/service/chime/types/types.go +++ b/service/chime/types/types.go @@ -26,6 +26,9 @@ type Account struct { // This member is required. Name *string + // The status of the account. + AccountStatus AccountStatus + // The Amazon Chime account type. For more information about different account // types, see Managing Your Amazon Chime Accounts // (https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) in the @@ -652,6 +655,58 @@ type EmergencyCallingConfiguration struct { noSmithyDocumentSerde } +// Settings specific to the Amazon Transcribe Medical engine. +type EngineTranscribeMedicalSettings struct { + + // The language code specified for the Amazon Transcribe Medical engine. + // + // This member is required. + LanguageCode TranscribeMedicalLanguageCode + + // The specialty specified for the Amazon Transcribe Medical engine. + // + // This member is required. + Specialty TranscribeMedicalSpecialty + + // The type of transcription. + // + // This member is required. + Type TranscribeMedicalType + + // The AWS Region passed to Amazon Transcribe Medical. If you don't specify a + // Region, Amazon Chime uses the Region closest to the meeting's Region. + Region TranscribeMedicalRegion + + // The name of the vocabulary passed to Amazon Transcribe Medical. + VocabularyName *string + + noSmithyDocumentSerde +} + +// Settings specific to the Amazon Transcribe engine. +type EngineTranscribeSettings struct { + + // The language code specified for the Amazon Transcribe engine. + // + // This member is required. + LanguageCode TranscribeLanguageCode + + // The AWS Region passed to Amazon Transcribe. If you don't specify a Region, + // Amazon Chime uses the Region closest to the meeting's Region. + Region TranscribeRegion + + // The filtering method passed to Amazon Transcribe. + VocabularyFilterMethod TranscribeVocabularyFilterMethod + + // The name of the vocabulary filter passed to Amazon Transcribe. + VocabularyFilterName *string + + // The name of the vocabulary passed to Amazon Transcribe. + VocabularyName *string + + noSmithyDocumentSerde +} + // The configuration that allows a bot to receive outgoing events. Can be either an // HTTPS endpoint or a Lambda function ARN. type EventsConfiguration struct { @@ -758,7 +813,7 @@ type MediaCapturePipeline struct { noSmithyDocumentSerde } -// A set of endpoints used by clients to connect to the media service group for a +// A set of endpoints used by clients to connect to the media service group for an // Amazon Chime SDK meeting. type MediaPlacement struct { @@ -768,7 +823,7 @@ type MediaPlacement struct { // The audio host URL. AudioHostUrl *string - // The event ingestion URL. + // The URL of the S3 bucket used to store the captured media. EventIngestionUrl *string // The screen data URL. @@ -1449,6 +1504,19 @@ type TerminationHealth struct { noSmithyDocumentSerde } +// The configuration for the current transcription operation. Must contain +// EngineTranscribeSettings or EngineTranscribeMedicalSettings. +type TranscriptionConfiguration struct { + + // The transcription configuration settings passed to Amazon Transcribe. + EngineTranscribeMedicalSettings *EngineTranscribeMedicalSettings + + // The transcription configuration settings passed to Amazon Transcribe. + EngineTranscribeSettings *EngineTranscribeSettings + + noSmithyDocumentSerde +} + // The phone number ID, product type, or calling name fields to update, used with // the BatchUpdatePhoneNumber and UpdatePhoneNumber actions. type UpdatePhoneNumberRequestItem struct { diff --git a/service/chime/validators.go b/service/chime/validators.go index 19da9401947..41441db7162 100644 --- a/service/chime/validators.go +++ b/service/chime/validators.go @@ -2910,6 +2910,46 @@ func (m *validateOpSendChannelMessage) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpStartMeetingTranscription struct { +} + +func (*validateOpStartMeetingTranscription) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStartMeetingTranscription) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StartMeetingTranscriptionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStartMeetingTranscriptionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpStopMeetingTranscription struct { +} + +func (*validateOpStopMeetingTranscription) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStopMeetingTranscription) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StopMeetingTranscriptionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStopMeetingTranscriptionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpTagAttendee struct { } @@ -4030,6 +4070,14 @@ func addOpSendChannelMessageValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpSendChannelMessage{}, middleware.After) } +func addOpStartMeetingTranscriptionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStartMeetingTranscription{}, middleware.After) +} + +func addOpStopMeetingTranscriptionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStopMeetingTranscription{}, middleware.After) +} + func addOpTagAttendeeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpTagAttendee{}, middleware.After) } @@ -4296,6 +4344,42 @@ func validateEmergencyCallingConfiguration(v *types.EmergencyCallingConfiguratio } } +func validateEngineTranscribeMedicalSettings(v *types.EngineTranscribeMedicalSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EngineTranscribeMedicalSettings"} + if len(v.LanguageCode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("LanguageCode")) + } + if len(v.Specialty) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Specialty")) + } + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateEngineTranscribeSettings(v *types.EngineTranscribeSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EngineTranscribeSettings"} + if len(v.LanguageCode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("LanguageCode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateGeoMatchParams(v *types.GeoMatchParams) error { if v == nil { return nil @@ -4439,6 +4523,28 @@ func validateTelephonySettings(v *types.TelephonySettings) error { } } +func validateTranscriptionConfiguration(v *types.TranscriptionConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TranscriptionConfiguration"} + if v.EngineTranscribeSettings != nil { + if err := validateEngineTranscribeSettings(v.EngineTranscribeSettings); err != nil { + invalidParams.AddNested("EngineTranscribeSettings", err.(smithy.InvalidParamsError)) + } + } + if v.EngineTranscribeMedicalSettings != nil { + if err := validateEngineTranscribeMedicalSettings(v.EngineTranscribeMedicalSettings); err != nil { + invalidParams.AddNested("EngineTranscribeMedicalSettings", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateUpdatePhoneNumberRequestItem(v *types.UpdatePhoneNumberRequestItem) error { if v == nil { return nil @@ -7104,6 +7210,43 @@ func validateOpSendChannelMessageInput(v *SendChannelMessageInput) error { } } +func validateOpStartMeetingTranscriptionInput(v *StartMeetingTranscriptionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StartMeetingTranscriptionInput"} + if v.MeetingId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MeetingId")) + } + if v.TranscriptionConfiguration == nil { + invalidParams.Add(smithy.NewErrParamRequired("TranscriptionConfiguration")) + } else if v.TranscriptionConfiguration != nil { + if err := validateTranscriptionConfiguration(v.TranscriptionConfiguration); err != nil { + invalidParams.AddNested("TranscriptionConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpStopMeetingTranscriptionInput(v *StopMeetingTranscriptionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StopMeetingTranscriptionInput"} + if v.MeetingId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MeetingId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpTagAttendeeInput(v *TagAttendeeInput) error { if v == nil { return nil diff --git a/service/cloudformation/api_op_CancelUpdateStack.go b/service/cloudformation/api_op_CancelUpdateStack.go index 7a9474081d4..67631fcc8de 100644 --- a/service/cloudformation/api_op_CancelUpdateStack.go +++ b/service/cloudformation/api_op_CancelUpdateStack.go @@ -37,10 +37,10 @@ type CancelUpdateStackInput struct { StackName *string // A unique identifier for this CancelUpdateStack request. Specify this token if - // you plan to retry requests so that AWS CloudFormation knows that you're not + // you plan to retry requests so that CloudFormation knows that you're not // attempting to cancel an update on a stack with the same name. You might retry - // CancelUpdateStack requests to ensure that AWS CloudFormation successfully - // received them. + // CancelUpdateStack requests to ensure that CloudFormation successfully received + // them. ClientRequestToken *string noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_ContinueUpdateRollback.go b/service/cloudformation/api_op_ContinueUpdateRollback.go index 42ce3c32033..801cc336596 100644 --- a/service/cloudformation/api_op_ContinueUpdateRollback.go +++ b/service/cloudformation/api_op_ContinueUpdateRollback.go @@ -16,13 +16,12 @@ import ( // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) // and continue the rollback. By continuing the rollback, you can return your stack // to a working state (the UPDATE_ROLLBACK_COMPLETE state), and then try to update -// the stack again. A stack goes into the UPDATE_ROLLBACK_FAILED state when AWS +// the stack again. A stack goes into the UPDATE_ROLLBACK_FAILED state when // CloudFormation cannot roll back all changes after a failed stack update. For // example, you might have a stack that is rolling back to an old database instance -// that was deleted outside of AWS CloudFormation. Because AWS CloudFormation -// doesn't know the database was deleted, it assumes that the database instance -// still exists and attempts to roll back to it, causing the update rollback to -// fail. +// that was deleted outside of CloudFormation. Because CloudFormation doesn't know +// the database was deleted, it assumes that the database instance still exists and +// attempts to roll back to it, causing the update rollback to fail. func (c *Client) ContinueUpdateRollback(ctx context.Context, params *ContinueUpdateRollbackInput, optFns ...func(*Options)) (*ContinueUpdateRollbackOutput, error) { if params == nil { params = &ContinueUpdateRollbackInput{} @@ -50,52 +49,50 @@ type ContinueUpdateRollbackInput struct { StackName *string // A unique identifier for this ContinueUpdateRollback request. Specify this token - // if you plan to retry requests so that AWS CloudFormation knows that you're not + // if you plan to retry requests so that CloudFormationknows that you're not // attempting to continue the rollback to a stack with the same name. You might - // retry ContinueUpdateRollback requests to ensure that AWS CloudFormation - // successfully received them. + // retry ContinueUpdateRollback requests to ensure that CloudFormation successfully + // received them. ClientRequestToken *string - // A list of the logical IDs of the resources that AWS CloudFormation skips during - // the continue update rollback operation. You can specify only resources that are - // in the UPDATE_FAILED state because a rollback failed. You can't specify - // resources that are in the UPDATE_FAILED state for other reasons, for example, - // because an update was cancelled. To check why a resource update failed, use the + // A list of the logical IDs of the resources that CloudFormation skips during the + // continue update rollback operation. You can specify only resources that are in + // the UPDATE_FAILED state because a rollback failed. You can't specify resources + // that are in the UPDATE_FAILED state for other reasons, for example, because an + // update was cancelled. To check why a resource update failed, use the // DescribeStackResources action, and view the resource status reason. Specify this - // property to skip rolling back resources that AWS CloudFormation can't - // successfully roll back. We recommend that you troubleshoot + // property to skip rolling back resources that CloudFormation can't successfully + // roll back. We recommend that you troubleshoot // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) - // resources before skipping them. AWS CloudFormation sets the status of the - // specified resources to UPDATE_COMPLETE and continues to roll back the stack. - // After the rollback is complete, the state of the skipped resources will be - // inconsistent with the state of the resources in the stack template. Before - // performing another stack update, you must update the stack or resources to be - // consistent with each other. If you don't, subsequent stack updates might fail, - // and the stack will become unrecoverable. Specify the minimum number of resources - // required to successfully roll back your stack. For example, a failed resource - // update might cause dependent resources to fail. In this case, it might not be - // necessary to skip the dependent resources. To skip resources that are part of - // nested stacks, use the following format: NestedStackName.ResourceLogicalID. If - // you want to specify the logical ID of a stack resource (Type: - // AWS::CloudFormation::Stack) in the ResourcesToSkip list, then its corresponding - // embedded stack must be in one of the following states: DELETE_IN_PROGRESS, - // DELETE_COMPLETE, or DELETE_FAILED. Don't confuse a child stack's name with its - // corresponding logical ID defined in the parent stack. For an example of a - // continue update rollback operation with nested stacks, see Using ResourcesToSkip - // to recover a nested stacks hierarchy + // resources before skipping them. CloudFormation sets the status of the specified + // resources to UPDATE_COMPLETE and continues to roll back the stack. After the + // rollback is complete, the state of the skipped resources will be inconsistent + // with the state of the resources in the stack template. Before performing another + // stack update, you must update the stack or resources to be consistent with each + // other. If you don't, subsequent stack updates might fail, and the stack will + // become unrecoverable. Specify the minimum number of resources required to + // successfully roll back your stack. For example, a failed resource update might + // cause dependent resources to fail. In this case, it might not be necessary to + // skip the dependent resources. To skip resources that are part of nested stacks, + // use the following format: NestedStackName.ResourceLogicalID. If you want to + // specify the logical ID of a stack resource (Type: AWS::CloudFormation::Stack) in + // the ResourcesToSkip list, then its corresponding embedded stack must be in one + // of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or DELETE_FAILED. + // Don't confuse a child stack's name with its corresponding logical ID defined in + // the parent stack. For an example of a continue update rollback operation with + // nested stacks, see Using ResourcesToSkip to recover a nested stacks hierarchy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html#nested-stacks). ResourcesToSkip []string - // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) - // role that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation - // uses the role's credentials to make calls on your behalf. AWS CloudFormation - // always uses this role for all future operations on the stack. As long as users - // have permission to operate on the stack, AWS CloudFormation uses this role even - // if the users don't have permission to pass it. Ensure that the role grants least - // privilege. If you don't specify a value, AWS CloudFormation uses the role that - // was previously associated with the stack. If no role is available, AWS - // CloudFormation uses a temporary session that is generated from your user - // credentials. + // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role + // that CloudFormation assumes to roll back the stack. CloudFormation uses the + // role's credentials to make calls on your behalf. CloudFormation always uses this + // role for all future operations on the stack. As long as users have permission to + // operate on the stack, CloudFormation uses this role even if the users don't have + // permission to pass it. Ensure that the role grants least privilege. If you don't + // specify a value, CloudFormation uses the role that was previously associated + // with the stack. If no role is available, CloudFormation uses a temporary session + // that is generated from your user credentials. RoleARN *string noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_CreateChangeSet.go b/service/cloudformation/api_op_CreateChangeSet.go index 2c318d621b0..a93e2522c0f 100644 --- a/service/cloudformation/api_op_CreateChangeSet.go +++ b/service/cloudformation/api_op_CreateChangeSet.go @@ -14,22 +14,22 @@ import ( // Creates a list of changes that will be applied to a stack so that you can review // the changes before executing them. You can create a change set for a stack that // doesn't exist or an existing stack. If you create a change set for a stack that -// doesn't exist, the change set shows all of the resources that AWS CloudFormation -// will create. If you create a change set for an existing stack, AWS -// CloudFormation compares the stack's information with the information that you -// submit in the change set and lists the differences. Use change sets to -// understand which resources AWS CloudFormation will create or change, and how it -// will change resources in an existing stack, before you create or update a stack. -// To create a change set for a stack that doesn't exist, for the ChangeSetType -// parameter, specify CREATE. To create a change set for an existing stack, specify -// UPDATE for the ChangeSetType parameter. To create a change set for an import -// operation, specify IMPORT for the ChangeSetType parameter. After the -// CreateChangeSet call successfully completes, AWS CloudFormation starts creating -// the change set. To check the status of the change set or to review it, use the -// DescribeChangeSet action. When you are satisfied with the changes the change set -// will make, execute the change set by using the ExecuteChangeSet action. AWS -// CloudFormation doesn't make changes until you execute the change set. To create -// a change set for the entire stack hierachy, set IncludeNestedStacks to True. +// doesn't exist, the change set shows all of the resources that CloudFormation +// will create. If you create a change set for an existing stack, CloudFormation +// compares the stack's information with the information that you submit in the +// change set and lists the differences. Use change sets to understand which +// resources CloudFormation will create or change, and how it will change resources +// in an existing stack, before you create or update a stack. To create a change +// set for a stack that doesn't exist, for the ChangeSetType parameter, specify +// CREATE. To create a change set for an existing stack, specify UPDATE for the +// ChangeSetType parameter. To create a change set for an import operation, specify +// IMPORT for the ChangeSetType parameter. After the CreateChangeSet call +// successfully completes, CloudFormation starts creating the change set. To check +// the status of the change set or to review it, use the DescribeChangeSet action. +// When you are satisfied with the changes the change set will make, execute the +// change set by using the ExecuteChangeSet action. CloudFormation doesn't make +// changes until you execute the change set. To create a change set for the entire +// stack hierachy, set IncludeNestedStacks to True. func (c *Client) CreateChangeSet(ctx context.Context, params *CreateChangeSetInput, optFns ...func(*Options)) (*CreateChangeSetOutput, error) { if params == nil { params = &CreateChangeSetInput{} @@ -57,22 +57,22 @@ type CreateChangeSetInput struct { ChangeSetName *string // The name or the unique ID of the stack for which you are creating a change set. - // AWS CloudFormation generates the change set by comparing this stack's - // information with the information that you submit, such as a modified template or - // different parameter input values. + // CloudFormation generates the change set by comparing this stack's information + // with the information that you submit, such as a modified template or different + // parameter input values. // // This member is required. StackName *string // In some cases, you must explicitly acknowledge that your stack template contains - // certain capabilities in order for AWS CloudFormation to create the stack. + // certain capabilities in order for CloudFormation to create the stack. // // * // CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include - // resources that can affect permissions in your AWS account; for example, by - // creating new AWS Identity and Access Management (IAM) users. For those stacks, - // you must explicitly acknowledge this by specifying one of these capabilities. - // The following IAM resources require you to specify either the CAPABILITY_IAM or + // resources that can affect permissions in your account; for example, by creating + // new Identity and Access Management (IAM) users. For those stacks, you must + // explicitly acknowledge this by specifying one of these capabilities. The + // following IAM resources require you to specify either the CAPABILITY_IAM or // CAPABILITY_NAMED_IAM capability. // // * If you have IAM resources, you can specify @@ -82,10 +82,10 @@ type CreateChangeSetInput struct { // specify CAPABILITY_NAMED_IAM. // // * If you don't specify either of these - // capabilities, AWS CloudFormation returns an InsufficientCapabilities error. + // capabilities, CloudFormation returns an InsufficientCapabilities error. // - // If - // your stack template contains these resources, we recommend that you review all + // If your + // stack template contains these resources, we recommend that you review all // permissions associated with them and edit their permissions if necessary. // // * @@ -117,8 +117,7 @@ type CreateChangeSetInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates + // more information, see Acknowledging IAM Resources in CloudFormation Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -134,33 +133,31 @@ type CreateChangeSetInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by AWS CloudFormation. This capacity does - // not apply to creating change sets, and specifying it when creating change sets - // has no effect. If you want to create a stack from a stack template that contains + // transforms, which are macros hosted by CloudFormation. This capacity does not + // apply to creating change sets, and specifying it when creating change sets has + // no effect. If you want to create a stack from a stack template that contains // macros and nested stacks, you must create or update the stack directly from the // template using the CreateStack or UpdateStack action, and specifying this - // capability. For more information on macros, see Using AWS CloudFormation Macros - // to Perform Custom Processing on Templates + // capability. For more information on macros, see Using CloudFormation Macros to + // Perform Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). Capabilities []types.Capability // The type of change set operation. To create a change set for a new stack, // specify CREATE. To create a change set for an existing stack, specify UPDATE. To // create a change set for an import operation, specify IMPORT. If you create a - // change set for a new stack, AWS Cloudformation creates a stack with a unique - // stack ID, but no template or resources. The stack will be in the - // REVIEW_IN_PROGRESS + // change set for a new stack, CloudFormation creates a stack with a unique stack + // ID, but no template or resources. The stack will be in the REVIEW_IN_PROGRESS // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995) - // state until you execute the change set. By default, AWS CloudFormation specifies + // state until you execute the change set. By default, CloudFormation specifies // UPDATE. You can't use the UPDATE type to create a change set for a new stack or // the CREATE type to create a change set for an existing stack. ChangeSetType types.ChangeSetType // A unique identifier for this CreateChangeSet request. Specify this token if you - // plan to retry requests so that AWS CloudFormation knows that you're not - // attempting to create another change set with the same name. You might retry - // CreateChangeSet requests to ensure that AWS CloudFormation successfully received - // them. + // plan to retry requests so that CloudFormation knows that you're not attempting + // to create another change set with the same name. You might retry CreateChangeSet + // requests to ensure that CloudFormation successfully received them. ClientToken *string // A description to help you identify this change set. @@ -172,7 +169,7 @@ type CreateChangeSetInput struct { IncludeNestedStacks *bool // The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon - // SNS) topics that AWS CloudFormation associates with the stack. To remove all + // SNS) topics that CloudFormation associates with the stack. To remove all // associated notification topics, specify an empty list. NotificationARNs []string @@ -183,50 +180,48 @@ type CreateChangeSetInput struct { // The template resource types that you have permissions to work with if you // execute this change set, such as AWS::EC2::Instance, AWS::EC2::*, or // Custom::MyCustomInstance. If the list of resource types doesn't include a - // resource type that you're updating, the stack update fails. By default, AWS - // CloudFormation grants permissions to all resource types. AWS Identity and Access - // Management (IAM) uses this parameter for condition keys in IAM policies for AWS - // CloudFormation. For more information, see Controlling Access with AWS Identity - // and Access Management + // resource type that you're updating, the stack update fails. By default, + // CloudFormation grants permissions to all resource types. Identity and Access + // Management (IAM) uses this parameter for condition keys in IAM policies for + // CloudFormation. For more information, see Controlling Access with Identity and + // Access Management // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. ResourceTypes []string // The resources to import into your stack. ResourcesToImport []types.ResourceToImport - // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) - // role that AWS CloudFormation assumes when executing the change set. AWS - // CloudFormation uses the role's credentials to make calls on your behalf. AWS - // CloudFormation uses this role for all future operations on the stack. As long as - // users have permission to operate on the stack, AWS CloudFormation uses this role - // even if the users don't have permission to pass it. Ensure that the role grants - // least privilege. If you don't specify a value, AWS CloudFormation uses the role - // that was previously associated with the stack. If no role is available, AWS - // CloudFormation uses a temporary session that is generated from your user - // credentials. + // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role + // that CloudFormation assumes when executing the change set. CloudFormation uses + // the role's credentials to make calls on your behalf. CloudFormation uses this + // role for all future operations on the stack. As long as users have permission to + // operate on the stack, CloudFormation uses this role even if the users don't have + // permission to pass it. Ensure that the role grants least privilege. If you don't + // specify a value, CloudFormation uses the role that was previously associated + // with the stack. If no role is available, CloudFormation uses a temporary session + // that is generated from your user credentials. RoleARN *string - // The rollback triggers for AWS CloudFormation to monitor during stack creation - // and updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for CloudFormation to monitor during stack creation and + // updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *types.RollbackConfiguration - // Key-value pairs to associate with this stack. AWS CloudFormation also propagates + // Key-value pairs to associate with this stack. CloudFormation also propagates // these tags to resources in the stack. You can specify a maximum of 50 tags. Tags []types.Tag // A structure that contains the body of the revised template, with a minimum - // length of 1 byte and a maximum length of 51,200 bytes. AWS CloudFormation - // generates the change set by comparing this template with the template of the - // stack that you specified. Conditional: You must specify only TemplateBody or - // TemplateURL. + // length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates + // the change set by comparing this template with the template of the stack that + // you specified. Conditional: You must specify only TemplateBody or TemplateURL. TemplateBody *string // The location of the file that contains the revised template. The URL must point // to a template (max size: 460,800 bytes) that is located in an S3 bucket or a - // Systems Manager document. AWS CloudFormation generates the change set by - // comparing this template with the stack that you specified. Conditional: You must - // specify only TemplateBody or TemplateURL. + // Systems Manager document. CloudFormation generates the change set by comparing + // this template with the stack that you specified. Conditional: You must specify + // only TemplateBody or TemplateURL. TemplateURL *string // Whether to reuse the template that is associated with the stack to create the diff --git a/service/cloudformation/api_op_CreateStack.go b/service/cloudformation/api_op_CreateStack.go index 21508f7f826..9348571f038 100644 --- a/service/cloudformation/api_op_CreateStack.go +++ b/service/cloudformation/api_op_CreateStack.go @@ -41,14 +41,14 @@ type CreateStackInput struct { StackName *string // In some cases, you must explicitly acknowledge that your stack template contains - // certain capabilities in order for AWS CloudFormation to create the stack. + // certain capabilities in order for CloudFormation to create the stack. // // * // CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include - // resources that can affect permissions in your AWS account; for example, by - // creating new AWS Identity and Access Management (IAM) users. For those stacks, - // you must explicitly acknowledge this by specifying one of these capabilities. - // The following IAM resources require you to specify either the CAPABILITY_IAM or + // resources that can affect permissions in your account; for example, by creating + // new Identity and Access Management (IAM) users. For those stacks, you must + // explicitly acknowledge this by specifying one of these capabilities. The + // following IAM resources require you to specify either the CAPABILITY_IAM or // CAPABILITY_NAMED_IAM capability. // // * If you have IAM resources, you can specify @@ -58,10 +58,10 @@ type CreateStackInput struct { // specify CAPABILITY_NAMED_IAM. // // * If you don't specify either of these - // capabilities, AWS CloudFormation returns an InsufficientCapabilities error. + // capabilities, CloudFormation returns an InsufficientCapabilities error. // - // If - // your stack template contains these resources, we recommend that you review all + // If your + // stack template contains these resources, we recommend that you review all // permissions associated with them and edit their permissions if necessary. // // * @@ -93,8 +93,7 @@ type CreateStackInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates + // more information, see Acknowledging IAM Resources in CloudFormation Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -110,24 +109,24 @@ type CreateStackInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by AWS CloudFormation. If you want to create - // a stack from a stack template that contains macros and nested stacks, you must + // transforms, which are macros hosted by CloudFormation. If you want to create a + // stack from a stack template that contains macros and nested stacks, you must // create the stack directly from the template using this capability. You should // only create stacks directly from a stack template that contains macros if you // know what processing the macro performs. Each macro relies on an underlying // Lambda service function for processing stack templates. Be aware that the Lambda - // function owner can update the function operation without AWS CloudFormation - // being notified. For more information, see Using AWS CloudFormation Macros to - // Perform Custom Processing on Templates + // function owner can update the function operation without CloudFormation being + // notified. For more information, see Using CloudFormation Macros to Perform + // Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). Capabilities []types.Capability // A unique identifier for this CreateStack request. Specify this token if you plan - // to retry requests so that AWS CloudFormation knows that you're not attempting to + // to retry requests so that CloudFormation knows that you're not attempting to // create a stack with the same name. You might retry CreateStack requests to - // ensure that AWS CloudFormation successfully received them. All events triggered - // by a given stack operation are assigned the same client request token, which you - // can use to track operations. For example, if you execute a CreateStack operation + // ensure that CloudFormation successfully received them. All events triggered by a + // given stack operation are assigned the same client request token, which you can + // use to track operations. For example, if you execute a CreateStack operation // with the token token1, then all the StackEvents generated by that operation will // have ClientRequestToken set as token1. In the console, stack operations display // the client request token on the Events tab. Stack operations that are initiated @@ -146,8 +145,8 @@ type CreateStackInput struct { // fails and the stack remains unchanged. For more information, see Protecting a // Stack From Being Deleted // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html) - // in the AWS CloudFormation User Guide. Termination protection is disabled on - // stacks by default. For nested stacks + // in the CloudFormation User Guide. Termination protection is disabled on stacks + // by default. For nested stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html), // termination protection is set on the root stack and cannot be changed directly // on the nested stack. @@ -172,39 +171,38 @@ type CreateStackInput struct { // The template resource types that you have permissions to work with for this // create stack action, such as AWS::EC2::Instance, AWS::EC2::*, or // Custom::MyCustomInstance. Use the following syntax to describe template resource - // types: AWS::* (for all AWS resource), Custom::* (for all custom resources), - // Custom::logical_ID (for a specific custom resource), AWS::service_name::* (for - // all resources of a particular AWS service), and - // AWS::service_name::resource_logical_ID (for a specific AWS resource). If the - // list of resource types doesn't include a resource that you're creating, the - // stack creation fails. By default, AWS CloudFormation grants permissions to all - // resource types. AWS Identity and Access Management (IAM) uses this parameter for - // AWS CloudFormation-specific condition keys in IAM policies. For more - // information, see Controlling Access with AWS Identity and Access Management + // types: AWS::* (for all Amazon Web Services resources), Custom::* (for all custom + // resources), Custom::logical_ID (for a specific custom resource), + // AWS::service_name::* (for all resources of a particular Amazon Web Services + // service), and AWS::service_name::resource_logical_ID (for a specific Amazon Web + // Services resource). If the list of resource types doesn't include a resource + // that you're creating, the stack creation fails. By default, CloudFormation + // grants permissions to all resource types. Identity and Access Management (IAM) + // uses this parameter for CloudFormation-specific condition keys in IAM policies. + // For more information, see Controlling Access with Identity and Access Management // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html). ResourceTypes []string - // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) - // role that AWS CloudFormation assumes to create the stack. AWS CloudFormation - // uses the role's credentials to make calls on your behalf. AWS CloudFormation - // always uses this role for all future operations on the stack. As long as users - // have permission to operate on the stack, AWS CloudFormation uses this role even - // if the users don't have permission to pass it. Ensure that the role grants least - // privilege. If you don't specify a value, AWS CloudFormation uses the role that - // was previously associated with the stack. If no role is available, AWS - // CloudFormation uses a temporary session that is generated from your user - // credentials. + // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role + // that CloudFormation assumes to create the stack. CloudFormation uses the role's + // credentials to make calls on your behalf. CloudFormation always uses this role + // for all future operations on the stack. As long as users have permission to + // operate on the stack, CloudFormation uses this role even if the users don't have + // permission to pass it. Ensure that the role grants least privilege. If you don't + // specify a value, CloudFormation uses the role that was previously associated + // with the stack. If no role is available, CloudFormation uses a temporary session + // that is generated from your user credentials. RoleARN *string - // The rollback triggers for AWS CloudFormation to monitor during stack creation - // and updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for CloudFormation to monitor during stack creation and + // updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *types.RollbackConfiguration // Structure containing the stack policy body. For more information, go to Prevent // Updates to Stack Resources // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) - // in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody - // or the StackPolicyURL parameter, but not both. + // in the CloudFormation User Guide. You can specify either the StackPolicyBody or + // the StackPolicyURL parameter, but not both. StackPolicyBody *string // Location of a file containing the stack policy. The URL must point to a policy @@ -213,7 +211,7 @@ type CreateStackInput struct { // not both. StackPolicyURL *string - // Key-value pairs to associate with this stack. AWS CloudFormation also propagates + // Key-value pairs to associate with this stack. CloudFormation also propagates // these tags to the resources created in the stack. A maximum number of 50 tags // can be specified. Tags []types.Tag @@ -221,7 +219,7 @@ type CreateStackInput struct { // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must specify either the + // in the CloudFormation User Guide. Conditional: You must specify either the // TemplateBody or the TemplateURL parameter, but not both. TemplateBody *string @@ -229,7 +227,7 @@ type CreateStackInput struct { // (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems // Manager document. For more information, go to the Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must specify either the + // in the CloudFormation User Guide. Conditional: You must specify either the // TemplateBody or the TemplateURL parameter, but not both. TemplateURL *string diff --git a/service/cloudformation/api_op_CreateStackInstances.go b/service/cloudformation/api_op_CreateStackInstances.go index f349f6aefbb..528f4268ddc 100644 --- a/service/cloudformation/api_op_CreateStackInstances.go +++ b/service/cloudformation/api_op_CreateStackInstances.go @@ -34,7 +34,7 @@ func (c *Client) CreateStackInstances(ctx context.Context, params *CreateStackIn type CreateStackInstancesInput struct { // The names of one or more Regions where you want to create stack instances using - // the specified AWS account(s). + // the specified accounts. // // This member is required. Regions []string @@ -45,9 +45,9 @@ type CreateStackInstancesInput struct { // This member is required. StackSetName *string - // [Self-managed permissions] The names of one or more AWS accounts that you want - // to create stack instances in the specified Region(s) for. You can specify - // Accounts or DeploymentTargets, but not both. + // [Self-managed permissions] The names of one or more accounts that you want to + // create stack instances in the specified Region(s) for. You can specify Accounts + // or DeploymentTargets, but not both. Accounts []string // [Service-managed permissions] Specifies whether you are acting as an account @@ -59,60 +59,55 @@ type CreateStackInstancesInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs - // [Service-managed permissions] The AWS Organizations accounts for which to create + // [Service-managed permissions] The Organizations accounts for which to create // stack instances in the specified Regions. You can specify Accounts or // DeploymentTargets, but not both. DeploymentTargets *types.DeploymentTargets // The unique identifier for this stack set operation. The operation ID also - // functions as an idempotency token, to ensure that AWS CloudFormation performs - // the stack set operation only once, even if you retry the request multiple times. - // You might retry stack set operation requests to ensure that AWS CloudFormation + // functions as an idempotency token, to ensure that CloudFormation performs the + // stack set operation only once, even if you retry the request multiple times. You + // might retry stack set operation requests to ensure that CloudFormation // successfully received them. If you don't specify an operation ID, the SDK // generates one automatically. Repeating this stack set operation with a new // operation ID retries all stack instances whose status is OUTDATED. OperationId *string - // Preferences for how AWS CloudFormation performs this stack set operation. + // Preferences for how CloudFormation performs this stack set operation. OperationPreferences *types.StackSetOperationPreferences // A list of stack set parameters whose values you want to override in the selected // stack instances. Any overridden parameter values will be applied to all stack // instances in the specified accounts and Regions. When specifying parameters and - // their values, be aware of how AWS CloudFormation sets parameter values during - // stack instance operations: + // their values, be aware of how CloudFormation sets parameter values during stack + // instance operations: // - // * To override the current value for a parameter, - // include the parameter and specify its value. + // * To override the current value for a parameter, include + // the parameter and specify its value. // - // * To leave a parameter set to its - // present value, you can do one of the following: + // * To leave an overridden parameter set to + // its present value, include the parameter and specify UsePreviousValue as true. + // (You cannot specify both a value and set UsePreviousValue to true.) // - // * Do not include the parameter - // in the list. + // * To set an + // overridden parameter back to the value specified in the stack set, specify a + // parameter list but do not include the parameter in the list. // - // * Include the parameter and specify UsePreviousValue as true. (You - // cannot specify both a value and set UsePreviousValue to true.) + // * To leave all + // parameters set to their present values, do not specify this property at + // all. // - // * To set all - // overridden parameter back to the values specified in the stack set, specify a - // parameter list but do not include any parameters. - // - // * To leave all parameters set - // to their present values, do not specify this property at all. - // - // During stack set - // updates, any parameter values overridden for a stack instance are not updated, - // but retain their overridden value. You can only override the parameter values - // that are specified in the stack set; to add or delete a parameter itself, use - // UpdateStackSet + // During stack set updates, any parameter values overridden for a stack + // instance are not updated, but retain their overridden value. You can only + // override the parameter values that are specified in the stack set; to add or + // delete a parameter itself, use UpdateStackSet // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html) // to update the stack set template. ParameterOverrides []types.Parameter diff --git a/service/cloudformation/api_op_CreateStackSet.go b/service/cloudformation/api_op_CreateStackSet.go index fcaea81121d..d0e611c4c32 100644 --- a/service/cloudformation/api_op_CreateStackSet.go +++ b/service/cloudformation/api_op_CreateStackSet.go @@ -44,12 +44,12 @@ type CreateStackSetInput struct { // administrator account. For more information, see Prerequisites: Granting // Permissions for Stack Set Operations // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. AdministrationRoleARN *string - // Describes whether StackSets automatically deploys to AWS Organizations accounts - // that are added to the target organization or organizational unit (OU). Specify - // only if PermissionModel is SERVICE_MANAGED. + // Describes whether StackSets automatically deploys to Organizations accounts that + // are added to the target organization or organizational unit (OU). Specify only + // if PermissionModel is SERVICE_MANAGED. AutoDeployment *types.AutoDeployment // [Service-managed permissions] Specifies whether you are acting as an account @@ -62,44 +62,43 @@ type CreateStackSetInput struct { // SELF. // // * To create a stack set with service-managed permissions while signed in - // to a delegated administrator account, specify DELEGATED_ADMIN. Your AWS account - // must be registered as a delegated admin in the management account. For more + // to a delegated administrator account, specify DELEGATED_ADMIN. Your account must + // be registered as a delegated admin in the management account. For more // information, see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. // - // Stack sets with service-managed - // permissions are created in the management account, including stack sets that are - // created by delegated administrators. + // Stack sets with service-managed permissions + // are created in the management account, including stack sets that are created by + // delegated administrators. CallAs types.CallAs // In some cases, you must explicitly acknowledge that your stack set template - // contains certain capabilities in order for AWS CloudFormation to create the - // stack set and related stack instances. + // contains certain capabilities in order for CloudFormation to create the stack + // set and related stack instances. // - // * CAPABILITY_IAM and - // CAPABILITY_NAMED_IAM Some stack templates might include resources that can - // affect permissions in your AWS account; for example, by creating new AWS - // Identity and Access Management (IAM) users. For those stack sets, you must - // explicitly acknowledge this by specifying one of these capabilities. The - // following IAM resources require you to specify either the CAPABILITY_IAM or - // CAPABILITY_NAMED_IAM capability. + // * CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some + // stack templates might include resources that can affect permissions in your + // account; for example, by creating new Identity and Access Management (IAM) + // users. For those stack sets, you must explicitly acknowledge this by specifying + // one of these capabilities. The following IAM resources require you to specify + // either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. // - // * If you have IAM resources, you can specify - // either capability. + // * If you have IAM + // resources, you can specify either capability. // - // * If you have IAM resources with custom names, you must - // specify CAPABILITY_NAMED_IAM. + // * If you have IAM resources with + // custom names, you must specify CAPABILITY_NAMED_IAM. // - // * If you don't specify either of these - // capabilities, AWS CloudFormation returns an InsufficientCapabilities error. + // * If you don't specify + // either of these capabilities, CloudFormation returns an InsufficientCapabilities + // error. // - // If - // your stack template contains these resources, we recommend that you review all - // permissions associated with them and edit their permissions if necessary. + // If your stack template contains these resources, we recommend that you + // review all permissions associated with them and edit their permissions if + // necessary. // - // * - // AWS::IAM::AccessKey + // * AWS::IAM::AccessKey // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html) // // * @@ -127,8 +126,7 @@ type CreateStackSetInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates + // more information, see Acknowledging IAM Resources in CloudFormation Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -136,7 +134,7 @@ type CreateStackSetInput struct { // template references one or more macros, you must create the stack set directly // from the processed template, without first reviewing the resulting changes in a // change set. To create the stack set directly, you must acknowledge this - // capability. For more information, see Using AWS CloudFormation Macros to Perform + // capability. For more information, see Using CloudFormation Macros to Perform // Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). // Stack sets with service-managed permissions do not currently support the use of @@ -144,16 +142,16 @@ type CreateStackSetInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by AWS CloudFormation.) Even if you specify - // this capability for a stack set with service-managed permissions, if you - // reference a macro in your template the stack set operation will fail. + // transforms, which are macros hosted by CloudFormation.) Even if you specify this + // capability for a stack set with service-managed permissions, if you reference a + // macro in your template the stack set operation will fail. Capabilities []types.Capability // A unique identifier for this CreateStackSet request. Specify this token if you - // plan to retry requests so that AWS CloudFormation knows that you're not - // attempting to create another stack set with the same name. You might retry - // CreateStackSet requests to ensure that AWS CloudFormation successfully received - // them. If you don't specify an operation ID, the SDK generates one automatically. + // plan to retry requests so that CloudFormation knows that you're not attempting + // to create another stack set with the same name. You might retry CreateStackSet + // requests to ensure that CloudFormation successfully received them. If you don't + // specify an operation ID, the SDK generates one automatically. ClientRequestToken *string // A description of the stack set. You can use the description to identify the @@ -161,7 +159,7 @@ type CreateStackSetInput struct { Description *string // The name of the IAM execution role to use to create the stack set. If you do not - // specify an execution role, AWS CloudFormation uses the + // specify an execution role, CloudFormation uses the // AWSCloudFormationStackSetExecutionRole role for the stack set operation. Specify // an IAM role only if you are using customized execution roles to control which // stack resources users and groups can include in their stack sets. @@ -180,24 +178,28 @@ type CreateStackSetInput struct { // // * // With service-managed permissions, StackSets automatically creates the IAM roles - // required to deploy to accounts managed by AWS Organizations. For more - // information, see Grant Service-Managed Stack Set Permissions + // required to deploy to accounts managed by Organizations. For more information, + // see Grant Service-Managed Stack Set Permissions // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html). PermissionModel types.PermissionModels + // The stack ID you are importing into a new stack set. Specify the Amazon Resource + // Number (ARN) of the stack. + StackId *string + // The key-value pairs to associate with this stack set and the stacks created from - // it. AWS CloudFormation also propagates these tags to supported resources that - // are created in the stacks. A maximum number of 50 tags can be specified. If you - // specify tags as part of a CreateStackSet action, AWS CloudFormation checks to - // see if you have the required IAM permission to tag resources. If you don't, the - // entire CreateStackSet action fails with an access denied error, and the stack - // set is not created. + // it. CloudFormation also propagates these tags to supported resources that are + // created in the stacks. A maximum number of 50 tags can be specified. If you + // specify tags as part of a CreateStackSet action, CloudFormation checks to see if + // you have the required IAM permission to tag resources. If you don't, the entire + // CreateStackSet action fails with an access denied error, and the stack set is + // not created. Tags []types.Tag // The structure that contains the template body, with a minimum length of 1 byte // and a maximum length of 51,200 bytes. For more information, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must specify either the + // in the CloudFormation User Guide. Conditional: You must specify either the // TemplateBody or the TemplateURL parameter, but not both. TemplateBody *string @@ -205,7 +207,7 @@ type CreateStackSetInput struct { // a template (maximum size: 460,800 bytes) that's located in an Amazon S3 bucket // or a Systems Manager document. For more information, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must specify either the + // in the CloudFormation User Guide. Conditional: You must specify either the // TemplateBody or the TemplateURL parameter, but not both. TemplateURL *string diff --git a/service/cloudformation/api_op_DeleteChangeSet.go b/service/cloudformation/api_op_DeleteChangeSet.go index c4b80e501d3..4f929717225 100644 --- a/service/cloudformation/api_op_DeleteChangeSet.go +++ b/service/cloudformation/api_op_DeleteChangeSet.go @@ -11,7 +11,7 @@ import ( ) // Deletes the specified change set. Deleting change sets ensures that no one -// executes the wrong change set. If the call successfully completes, AWS +// executes the wrong change set. If the call successfully completes, // CloudFormation successfully deleted the change set. If IncludeNestedStacks // specifies True during the creation of the nested change set, then // DeleteChangeSet will delete all change sets that belong to the stacks hierarchy diff --git a/service/cloudformation/api_op_DeleteStack.go b/service/cloudformation/api_op_DeleteStack.go index 9b4b06861eb..d31f44b2760 100644 --- a/service/cloudformation/api_op_DeleteStack.go +++ b/service/cloudformation/api_op_DeleteStack.go @@ -37,11 +37,11 @@ type DeleteStackInput struct { StackName *string // A unique identifier for this DeleteStack request. Specify this token if you plan - // to retry requests so that AWS CloudFormation knows that you're not attempting to + // to retry requests so that CloudFormation knows that you're not attempting to // delete a stack with the same name. You might retry DeleteStack requests to - // ensure that AWS CloudFormation successfully received them. All events triggered - // by a given stack operation are assigned the same client request token, which you - // can use to track operations. For example, if you execute a CreateStack operation + // ensure that CloudFormation successfully received them. All events triggered by a + // given stack operation are assigned the same client request token, which you can + // use to track operations. For example, if you execute a CreateStack operation // with the token token1, then all the StackEvents generated by that operation will // have ClientRequestToken set as token1. In the console, stack operations display // the client request token on the Events tab. Stack operations that are initiated @@ -52,18 +52,18 @@ type DeleteStackInput struct { ClientRequestToken *string // For stacks in the DELETE_FAILED state, a list of resource logical IDs that are - // associated with the resources you want to retain. During deletion, AWS + // associated with the resources you want to retain. During deletion, // CloudFormation deletes the stack but does not delete the retained resources. // Retaining resources is useful when you cannot delete a resource, such as a // non-empty S3 bucket, but you want to delete the stack. RetainResources []string - // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) - // role that AWS CloudFormation assumes to delete the stack. AWS CloudFormation - // uses the role's credentials to make calls on your behalf. If you don't specify a - // value, AWS CloudFormation uses the role that was previously associated with the - // stack. If no role is available, AWS CloudFormation uses a temporary session that - // is generated from your user credentials. + // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role + // that CloudFormation assumes to delete the stack. CloudFormation uses the role's + // credentials to make calls on your behalf. If you don't specify a value, + // CloudFormation uses the role that was previously associated with the stack. If + // no role is available, CloudFormation uses a temporary session that is generated + // from your user credentials. RoleARN *string noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DeleteStackInstances.go b/service/cloudformation/api_op_DeleteStackInstances.go index 6836050801c..0984acda4bb 100644 --- a/service/cloudformation/api_op_DeleteStackInstances.go +++ b/service/cloudformation/api_op_DeleteStackInstances.go @@ -49,7 +49,7 @@ type DeleteStackInstancesInput struct { // This member is required. StackSetName *string - // [Self-managed permissions] The names of the AWS accounts that you want to delete + // [Self-managed permissions] The names of the accounts that you want to delete // stack instances for. You can specify Accounts or DeploymentTargets, but not // both. Accounts []string @@ -63,28 +63,27 @@ type DeleteStackInstancesInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs - // [Service-managed permissions] The AWS Organizations accounts from which to - // delete stack instances. You can specify Accounts or DeploymentTargets, but not - // both. + // [Service-managed permissions] The Organizations accounts from which to delete + // stack instances. You can specify Accounts or DeploymentTargets, but not both. DeploymentTargets *types.DeploymentTargets // The unique identifier for this stack set operation. If you don't specify an // operation ID, the SDK generates one automatically. The operation ID also - // functions as an idempotency token, to ensure that AWS CloudFormation performs - // the stack set operation only once, even if you retry the request multiple times. - // You can retry stack set operation requests to ensure that AWS CloudFormation + // functions as an idempotency token, to ensure that CloudFormation performs the + // stack set operation only once, even if you retry the request multiple times. You + // can retry stack set operation requests to ensure that CloudFormation // successfully received them. Repeating this stack set operation with a new // operation ID retries all stack instances whose status is OUTDATED. OperationId *string - // Preferences for how AWS CloudFormation performs this stack set operation. + // Preferences for how CloudFormation performs this stack set operation. OperationPreferences *types.StackSetOperationPreferences noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DeleteStackSet.go b/service/cloudformation/api_op_DeleteStackSet.go index f0d20940486..f038328ed6b 100644 --- a/service/cloudformation/api_op_DeleteStackSet.go +++ b/service/cloudformation/api_op_DeleteStackSet.go @@ -46,11 +46,11 @@ type DeleteStackSetInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DescribeAccountLimits.go b/service/cloudformation/api_op_DescribeAccountLimits.go index 72386ad1f0b..ec05c7ff086 100644 --- a/service/cloudformation/api_op_DescribeAccountLimits.go +++ b/service/cloudformation/api_op_DescribeAccountLimits.go @@ -12,11 +12,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves your account's AWS CloudFormation limits, such as the maximum number -// of stacks that you can create in your account. For more information about -// account limits, see AWS CloudFormation Limits +// Retrieves your account's CloudFormation limits, such as the maximum number of +// stacks that you can create in your account. For more information about account +// limits, see CloudFormation Limits // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) -// in the AWS CloudFormation User Guide. +// in the CloudFormation User Guide. func (c *Client) DescribeAccountLimits(ctx context.Context, params *DescribeAccountLimitsInput, optFns ...func(*Options)) (*DescribeAccountLimitsOutput, error) { if params == nil { params = &DescribeAccountLimitsInput{} @@ -44,8 +44,8 @@ type DescribeAccountLimitsInput struct { // The output for the DescribeAccountLimits action. type DescribeAccountLimitsOutput struct { - // An account limit structure that contain a list of AWS CloudFormation account - // limits and their values. + // An account limit structure that contain a list of CloudFormation account limits + // and their values. AccountLimits []types.AccountLimit // If the output exceeds 1 MB in size, a string that identifies the next page of diff --git a/service/cloudformation/api_op_DescribeChangeSet.go b/service/cloudformation/api_op_DescribeChangeSet.go index d596ec7e893..694374e9fa9 100644 --- a/service/cloudformation/api_op_DescribeChangeSet.go +++ b/service/cloudformation/api_op_DescribeChangeSet.go @@ -4,19 +4,25 @@ package cloudformation import ( "context" + "errors" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/cloudformation/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" "time" ) -// Returns the inputs for the change set and a list of changes that AWS -// CloudFormation will make if you execute the change set. For more information, -// see Updating Stacks Using Change Sets +// Returns the inputs for the change set and a list of changes that CloudFormation +// will make if you execute the change set. For more information, see Updating +// Stacks Using Change Sets // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html) -// in the AWS CloudFormation User Guide. +// in the CloudFormation User Guide. func (c *Client) DescribeChangeSet(ctx context.Context, params *DescribeChangeSetInput, optFns ...func(*Options)) (*DescribeChangeSetOutput, error) { if params == nil { params = &DescribeChangeSetInput{} @@ -65,8 +71,8 @@ type DescribeChangeSetOutput struct { // The name of the change set. ChangeSetName *string - // A list of Change structures that describes the resources AWS CloudFormation - // changes if you execute the change set. + // A list of Change structures that describes the resources CloudFormation changes + // if you execute the change set. Changes []types.Change // The start time when the change set was created, in UTC. @@ -77,7 +83,7 @@ type DescribeChangeSetOutput struct { // If the change set execution status is AVAILABLE, you can execute the change set. // If you can’t execute the change set, the status indicates why. For example, a - // change set might be in an UNAVAILABLE state because AWS CloudFormation is still + // change set might be in an UNAVAILABLE state because CloudFormation is still // creating it or in an OBSOLETE state because the stack was already updated. ExecutionStatus types.ExecutionStatus @@ -102,8 +108,8 @@ type DescribeChangeSetOutput struct { // change set hierarchy. ParentChangeSetId *string - // The rollback triggers for AWS CloudFormation to monitor during stack creation - // and updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for CloudFormation to monitor during stack creation and + // updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *types.RollbackConfiguration // Specifies the change set ID of the root change set in the current nested change @@ -121,7 +127,7 @@ type DescribeChangeSetOutput struct { Status types.ChangeSetStatus // A description of the change set's status. For example, if your attempt to create - // a change set failed, AWS CloudFormation shows the error message. + // a change set failed, CloudFormation shows the error message. StatusReason *string // If you execute the change set, the tags that will be associated with the stack. @@ -196,6 +202,196 @@ func (c *Client) addOperationDescribeChangeSetMiddlewares(stack *middleware.Stac return nil } +// DescribeChangeSetAPIClient is a client that implements the DescribeChangeSet +// operation. +type DescribeChangeSetAPIClient interface { + DescribeChangeSet(context.Context, *DescribeChangeSetInput, ...func(*Options)) (*DescribeChangeSetOutput, error) +} + +var _ DescribeChangeSetAPIClient = (*Client)(nil) + +// ChangeSetCreateCompleteWaiterOptions are waiter options for +// ChangeSetCreateCompleteWaiter +type ChangeSetCreateCompleteWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ChangeSetCreateCompleteWaiter will use default minimum delay of 30 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ChangeSetCreateCompleteWaiter will use default max delay of 120 + // seconds. Note that MaxDelay must resolve to value greater than or equal to the + // MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeChangeSetInput, *DescribeChangeSetOutput, error) (bool, error) +} + +// ChangeSetCreateCompleteWaiter defines the waiters for ChangeSetCreateComplete +type ChangeSetCreateCompleteWaiter struct { + client DescribeChangeSetAPIClient + + options ChangeSetCreateCompleteWaiterOptions +} + +// NewChangeSetCreateCompleteWaiter constructs a ChangeSetCreateCompleteWaiter. +func NewChangeSetCreateCompleteWaiter(client DescribeChangeSetAPIClient, optFns ...func(*ChangeSetCreateCompleteWaiterOptions)) *ChangeSetCreateCompleteWaiter { + options := ChangeSetCreateCompleteWaiterOptions{} + options.MinDelay = 30 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = changeSetCreateCompleteStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ChangeSetCreateCompleteWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ChangeSetCreateComplete waiter. The +// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is +// required and must be greater than zero. +func (w *ChangeSetCreateCompleteWaiter) Wait(ctx context.Context, params *DescribeChangeSetInput, maxWaitDur time.Duration, optFns ...func(*ChangeSetCreateCompleteWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeChangeSet(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ChangeSetCreateComplete waiter") +} + +func changeSetCreateCompleteStateRetryable(ctx context.Context, input *DescribeChangeSetInput, output *DescribeChangeSetOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "CREATE_COMPLETE" + value, ok := pathValue.(types.ChangeSetStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ChangeSetStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "FAILED" + value, ok := pathValue.(types.ChangeSetStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ChangeSetStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationError" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeChangeSet(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go b/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go index f36c3e83687..25fd6b6675e 100644 --- a/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go +++ b/service/cloudformation/api_op_DescribeStackDriftDetectionStatus.go @@ -42,9 +42,9 @@ func (c *Client) DescribeStackDriftDetectionStatus(ctx context.Context, params * type DescribeStackDriftDetectionStatusInput struct { - // The ID of the drift detection results of this operation. AWS CloudFormation + // The ID of the drift detection results of this operation. CloudFormation // generates new results, with a new drift detection ID, each time this operation - // is run. However, the number of drift results AWS CloudFormation retains for any + // is run. However, the number of drift results CloudFormation retains for any // given stack, and for how long, may vary. // // This member is required. @@ -60,13 +60,13 @@ type DescribeStackDriftDetectionStatusOutput struct { // * DETECTION_COMPLETE: The // stack drift detection operation has successfully completed for all resources in // the stack that support drift detection. (Resources that do not currently support - // stack detection remain unchecked.) If you specified logical resource IDs for AWS + // stack detection remain unchecked.) If you specified logical resource IDs for // CloudFormation to use as a filter for the stack drift detection operation, only // the resources with those logical IDs are checked for drift. // // * DETECTION_FAILED: // The stack drift detection operation has failed for at least one resource in the - // stack. Results will be available for resources on which AWS CloudFormation + // stack. Results will be available for resources on which CloudFormation // successfully completed drift detection. // // * DETECTION_IN_PROGRESS: The stack @@ -75,9 +75,9 @@ type DescribeStackDriftDetectionStatusOutput struct { // This member is required. DetectionStatus types.StackDriftDetectionStatus - // The ID of the drift detection results of this operation. AWS CloudFormation + // The ID of the drift detection results of this operation. CloudFormation // generates new results, with a new drift detection ID, each time this operation - // is run. However, the number of reports AWS CloudFormation retains for any given + // is run. However, the number of reports CloudFormation retains for any given // stack, and for how long, may vary. // // This member is required. @@ -108,14 +108,14 @@ type DescribeStackDriftDetectionStatusOutput struct { // configuration. A stack is considered to have drifted if one or more of its // resources have drifted. // - // * NOT_CHECKED: AWS CloudFormation has not checked if - // the stack differs from its expected template configuration. + // * NOT_CHECKED: CloudFormation has not checked if the + // stack differs from its expected template configuration. // - // * IN_SYNC: The - // stack's actual configuration matches its expected template configuration. + // * IN_SYNC: The stack's + // actual configuration matches its expected template configuration. // - // * - // UNKNOWN: This value is reserved for future use. + // * UNKNOWN: + // This value is reserved for future use. StackDriftStatus types.StackDriftStatus // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_DescribeStackEvents.go b/service/cloudformation/api_op_DescribeStackEvents.go index af4776ba446..d3fa87f42f2 100644 --- a/service/cloudformation/api_op_DescribeStackEvents.go +++ b/service/cloudformation/api_op_DescribeStackEvents.go @@ -15,7 +15,7 @@ import ( // Returns all stack related events for a specified stack in reverse chronological // order. For more information about a stack's event history, go to Stacks // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html) -// in the AWS CloudFormation User Guide. You can list events for stacks that have +// in the CloudFormation User Guide. You can list events for stacks that have // failed to create or have been deleted by specifying the unique stack identifier // (stack ID). func (c *Client) DescribeStackEvents(ctx context.Context, params *DescribeStackEventsInput, optFns ...func(*Options)) (*DescribeStackEventsOutput, error) { diff --git a/service/cloudformation/api_op_DescribeStackInstance.go b/service/cloudformation/api_op_DescribeStackInstance.go index d32306653e1..48433c673e9 100644 --- a/service/cloudformation/api_op_DescribeStackInstance.go +++ b/service/cloudformation/api_op_DescribeStackInstance.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the stack instance that's associated with the specified stack set, AWS +// Returns the stack instance that's associated with the specified stack set, // account, and Region. For a list of stack instances that are associated with a // specific stack set, use ListStackInstances. func (c *Client) DescribeStackInstance(ctx context.Context, params *DescribeStackInstanceInput, optFns ...func(*Options)) (*DescribeStackInstanceOutput, error) { @@ -31,7 +31,7 @@ func (c *Client) DescribeStackInstance(ctx context.Context, params *DescribeStac type DescribeStackInstanceInput struct { - // The ID of an AWS account that's associated with this stack instance. + // The ID of an account that's associated with this stack instance. // // This member is required. StackInstanceAccount *string @@ -56,11 +56,11 @@ type DescribeStackInstanceInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DescribeStackResourceDrifts.go b/service/cloudformation/api_op_DescribeStackResourceDrifts.go index 74cddd51ac3..5bc495bf553 100644 --- a/service/cloudformation/api_op_DescribeStackResourceDrifts.go +++ b/service/cloudformation/api_op_DescribeStackResourceDrifts.go @@ -14,10 +14,10 @@ import ( // Returns drift information for the resources that have been checked for drift in // the specified stack. This includes actual and expected configuration values for -// resources where AWS CloudFormation detects configuration drift. For a given -// stack, there will be one StackResourceDrift for each stack resource that has -// been checked for drift. Resources that have not yet been checked for drift are -// not included. Resources that do not currently support drift detection are not +// resources where CloudFormation detects configuration drift. For a given stack, +// there will be one StackResourceDrift for each stack resource that has been +// checked for drift. Resources that have not yet been checked for drift are not +// included. Resources that do not currently support drift detection are not // checked, and so not included. For a list of resources that support drift // detection, see Resources that Support Drift Detection // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). @@ -67,7 +67,7 @@ type DescribeStackResourceDriftsInput struct { // resources's actual configuration matches its expected template configuration. // // * - // NOT_CHECKED: AWS CloudFormation does not currently return this value. + // NOT_CHECKED: CloudFormation does not currently return this value. StackResourceDriftStatusFilters []types.StackResourceDriftStatus noSmithyDocumentSerde @@ -77,12 +77,12 @@ type DescribeStackResourceDriftsOutput struct { // Drift information for the resources that have been checked for drift in the // specified stack. This includes actual and expected configuration values for - // resources where AWS CloudFormation detects drift. For a given stack, there will - // be one StackResourceDrift for each stack resource that has been checked for - // drift. Resources that have not yet been checked for drift are not included. - // Resources that do not currently support drift detection are not checked, and so - // not included. For a list of resources that support drift detection, see - // Resources that Support Drift Detection + // resources where CloudFormation detects drift. For a given stack, there will be + // one StackResourceDrift for each stack resource that has been checked for drift. + // Resources that have not yet been checked for drift are not included. Resources + // that do not currently support drift detection are not checked, and so not + // included. For a list of resources that support drift detection, see Resources + // that Support Drift Detection // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). // // This member is required. diff --git a/service/cloudformation/api_op_DescribeStackResources.go b/service/cloudformation/api_op_DescribeStackResources.go index 8edc7b50489..a27fdf599a3 100644 --- a/service/cloudformation/api_op_DescribeStackResources.go +++ b/service/cloudformation/api_op_DescribeStackResources.go @@ -11,17 +11,17 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns AWS resource descriptions for running and deleted stacks. If StackName -// is specified, all the associated resources that are part of the stack are -// returned. If PhysicalResourceId is specified, the associated resources of the -// stack that the resource belongs to are returned. Only the first 100 resources -// will be returned. If your stack has more resources than this, you should use -// ListStackResources instead. For deleted stacks, DescribeStackResources returns -// resource information for up to 90 days after the stack has been deleted. You -// must specify either StackName or PhysicalResourceId, but not both. In addition, -// you can specify LogicalResourceId to filter the returned result. For more -// information about resources, the LogicalResourceId and PhysicalResourceId, go to -// the AWS CloudFormation User Guide +// Returns Amazon Web Services resource descriptions for running and deleted +// stacks. If StackName is specified, all the associated resources that are part of +// the stack are returned. If PhysicalResourceId is specified, the associated +// resources of the stack that the resource belongs to are returned. Only the first +// 100 resources will be returned. If your stack has more resources than this, you +// should use ListStackResources instead. For deleted stacks, +// DescribeStackResources returns resource information for up to 90 days after the +// stack has been deleted. You must specify either StackName or PhysicalResourceId, +// but not both. In addition, you can specify LogicalResourceId to filter the +// returned result. For more information about resources, the LogicalResourceId and +// PhysicalResourceId, go to the CloudFormation User Guide // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/). A // ValidationError is returned if you specify both StackName and PhysicalResourceId // in the same request. @@ -48,12 +48,12 @@ type DescribeStackResourcesInput struct { LogicalResourceId *string // The name or unique identifier that corresponds to a physical instance ID of a - // resource supported by AWS CloudFormation. For example, for an Amazon Elastic - // Compute Cloud (EC2) instance, PhysicalResourceId corresponds to the InstanceId. - // You can pass the EC2 InstanceId to DescribeStackResources to find which stack - // the instance belongs to and what other resources are part of the stack. - // Required: Conditional. If you do not specify PhysicalResourceId, you must - // specify StackName. Default: There is no default value. + // resource supported by CloudFormation. For example, for an Amazon Elastic Compute + // Cloud (EC2) instance, PhysicalResourceId corresponds to the InstanceId. You can + // pass the EC2 InstanceId to DescribeStackResources to find which stack the + // instance belongs to and what other resources are part of the stack. Required: + // Conditional. If you do not specify PhysicalResourceId, you must specify + // StackName. Default: There is no default value. PhysicalResourceId *string // The name or the unique stack ID that is associated with the stack, which are not diff --git a/service/cloudformation/api_op_DescribeStackSet.go b/service/cloudformation/api_op_DescribeStackSet.go index 49e43b7a258..be30543c6e1 100644 --- a/service/cloudformation/api_op_DescribeStackSet.go +++ b/service/cloudformation/api_op_DescribeStackSet.go @@ -43,11 +43,11 @@ type DescribeStackSetInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DescribeStackSetOperation.go b/service/cloudformation/api_op_DescribeStackSetOperation.go index 30a444f4850..d5ef58b2f1b 100644 --- a/service/cloudformation/api_op_DescribeStackSetOperation.go +++ b/service/cloudformation/api_op_DescribeStackSetOperation.go @@ -48,11 +48,11 @@ type DescribeStackSetOperationInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_DescribeStacks.go b/service/cloudformation/api_op_DescribeStacks.go index 074d12d6767..f37b0ea171b 100644 --- a/service/cloudformation/api_op_DescribeStacks.go +++ b/service/cloudformation/api_op_DescribeStacks.go @@ -4,12 +4,18 @@ package cloudformation import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/cloudformation/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" ) // Returns the description for the specified stack; if no stack name was specified, @@ -201,6 +207,1579 @@ func (p *DescribeStacksPaginator) NextPage(ctx context.Context, optFns ...func(* return result, nil } +// StackCreateCompleteWaiterOptions are waiter options for +// StackCreateCompleteWaiter +type StackCreateCompleteWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // StackCreateCompleteWaiter will use default minimum delay of 30 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, StackCreateCompleteWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) +} + +// StackCreateCompleteWaiter defines the waiters for StackCreateComplete +type StackCreateCompleteWaiter struct { + client DescribeStacksAPIClient + + options StackCreateCompleteWaiterOptions +} + +// NewStackCreateCompleteWaiter constructs a StackCreateCompleteWaiter. +func NewStackCreateCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackCreateCompleteWaiterOptions)) *StackCreateCompleteWaiter { + options := StackCreateCompleteWaiterOptions{} + options.MinDelay = 30 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = stackCreateCompleteStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &StackCreateCompleteWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for StackCreateComplete waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *StackCreateCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackCreateCompleteWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for StackCreateComplete waiter") +} + +func stackCreateCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "CREATE_COMPLETE" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "CREATE_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DELETE_COMPLETE" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DELETE_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "ROLLBACK_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "ROLLBACK_COMPLETE" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationError" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + +// StackDeleteCompleteWaiterOptions are waiter options for +// StackDeleteCompleteWaiter +type StackDeleteCompleteWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // StackDeleteCompleteWaiter will use default minimum delay of 30 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, StackDeleteCompleteWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) +} + +// StackDeleteCompleteWaiter defines the waiters for StackDeleteComplete +type StackDeleteCompleteWaiter struct { + client DescribeStacksAPIClient + + options StackDeleteCompleteWaiterOptions +} + +// NewStackDeleteCompleteWaiter constructs a StackDeleteCompleteWaiter. +func NewStackDeleteCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackDeleteCompleteWaiterOptions)) *StackDeleteCompleteWaiter { + options := StackDeleteCompleteWaiterOptions{} + options.MinDelay = 30 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = stackDeleteCompleteStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &StackDeleteCompleteWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for StackDeleteComplete waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *StackDeleteCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackDeleteCompleteWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for StackDeleteComplete waiter") +} + +func stackDeleteCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DELETE_COMPLETE" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationError" == apiErr.ErrorCode() { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DELETE_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "CREATE_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "ROLLBACK_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_IN_PROGRESS" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_COMPLETE" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + return true, nil +} + +// StackExistsWaiterOptions are waiter options for StackExistsWaiter +type StackExistsWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // StackExistsWaiter will use default minimum delay of 5 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, StackExistsWaiter will use default max delay of 120 seconds. Note that + // MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) +} + +// StackExistsWaiter defines the waiters for StackExists +type StackExistsWaiter struct { + client DescribeStacksAPIClient + + options StackExistsWaiterOptions +} + +// NewStackExistsWaiter constructs a StackExistsWaiter. +func NewStackExistsWaiter(client DescribeStacksAPIClient, optFns ...func(*StackExistsWaiterOptions)) *StackExistsWaiter { + options := StackExistsWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = stackExistsStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &StackExistsWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for StackExists waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *StackExistsWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackExistsWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for StackExists waiter") +} + +func stackExistsStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { + + if err == nil { + return false, nil + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationError" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + +// StackImportCompleteWaiterOptions are waiter options for +// StackImportCompleteWaiter +type StackImportCompleteWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // StackImportCompleteWaiter will use default minimum delay of 30 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, StackImportCompleteWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) +} + +// StackImportCompleteWaiter defines the waiters for StackImportComplete +type StackImportCompleteWaiter struct { + client DescribeStacksAPIClient + + options StackImportCompleteWaiterOptions +} + +// NewStackImportCompleteWaiter constructs a StackImportCompleteWaiter. +func NewStackImportCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackImportCompleteWaiterOptions)) *StackImportCompleteWaiter { + options := StackImportCompleteWaiterOptions{} + options.MinDelay = 30 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = stackImportCompleteStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &StackImportCompleteWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for StackImportComplete waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *StackImportCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackImportCompleteWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for StackImportComplete waiter") +} + +func stackImportCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "IMPORT_COMPLETE" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "ROLLBACK_COMPLETE" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "ROLLBACK_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "IMPORT_ROLLBACK_IN_PROGRESS" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "IMPORT_ROLLBACK_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "IMPORT_ROLLBACK_COMPLETE" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationError" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + +// StackRollbackCompleteWaiterOptions are waiter options for +// StackRollbackCompleteWaiter +type StackRollbackCompleteWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // StackRollbackCompleteWaiter will use default minimum delay of 30 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, StackRollbackCompleteWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) +} + +// StackRollbackCompleteWaiter defines the waiters for StackRollbackComplete +type StackRollbackCompleteWaiter struct { + client DescribeStacksAPIClient + + options StackRollbackCompleteWaiterOptions +} + +// NewStackRollbackCompleteWaiter constructs a StackRollbackCompleteWaiter. +func NewStackRollbackCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackRollbackCompleteWaiterOptions)) *StackRollbackCompleteWaiter { + options := StackRollbackCompleteWaiterOptions{} + options.MinDelay = 30 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = stackRollbackCompleteStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &StackRollbackCompleteWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for StackRollbackComplete waiter. The maxWaitDur +// is the maximum wait duration the waiter will wait. The maxWaitDur is required +// and must be greater than zero. +func (w *StackRollbackCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackRollbackCompleteWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for StackRollbackComplete waiter") +} + +func stackRollbackCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_COMPLETE" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DELETE_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationError" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + +// StackUpdateCompleteWaiterOptions are waiter options for +// StackUpdateCompleteWaiter +type StackUpdateCompleteWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // StackUpdateCompleteWaiter will use default minimum delay of 30 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, StackUpdateCompleteWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeStacksInput, *DescribeStacksOutput, error) (bool, error) +} + +// StackUpdateCompleteWaiter defines the waiters for StackUpdateComplete +type StackUpdateCompleteWaiter struct { + client DescribeStacksAPIClient + + options StackUpdateCompleteWaiterOptions +} + +// NewStackUpdateCompleteWaiter constructs a StackUpdateCompleteWaiter. +func NewStackUpdateCompleteWaiter(client DescribeStacksAPIClient, optFns ...func(*StackUpdateCompleteWaiterOptions)) *StackUpdateCompleteWaiter { + options := StackUpdateCompleteWaiterOptions{} + options.MinDelay = 30 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = stackUpdateCompleteStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &StackUpdateCompleteWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for StackUpdateComplete waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *StackUpdateCompleteWaiter) Wait(ctx context.Context, params *DescribeStacksInput, maxWaitDur time.Duration, optFns ...func(*StackUpdateCompleteWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeStacks(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for StackUpdateComplete waiter") +} + +func stackUpdateCompleteStateRetryable(ctx context.Context, input *DescribeStacksInput, output *DescribeStacksOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_COMPLETE" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_FAILED" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_COMPLETE" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationError" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeStacks(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/cloudformation/api_op_DescribeType.go b/service/cloudformation/api_op_DescribeType.go index f802dc87bfe..5df38018aba 100644 --- a/service/cloudformation/api_op_DescribeType.go +++ b/service/cloudformation/api_op_DescribeType.go @@ -70,7 +70,7 @@ type DescribeTypeOutput struct { // Whether CloudFormation automatically updates the extension in this account and // region when a new minor version is published by the extension publisher. Major // versions released by the publisher must be manually updated. For more - // information, see Activating public extensions for use in your account in the AWS + // information, see Activating public extensions for use in your account in the // CloudFormation User Guide. AutoUpdate *bool @@ -116,11 +116,12 @@ type DescribeTypeOutput struct { // extension. This applies only to private extensions you have registered in your // account. For more information, see RegisterType // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html). - // If the registered extension calls any AWS APIs, you must create an IAM execution - // role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) that - // includes the necessary permissions to call those AWS APIs, and provision that - // execution role in your account. CloudFormation then assumes that execution role - // to provide your extension with the appropriate credentials. + // If the registered extension calls any Amazon Web Services APIs, you must create + // an IAM execution role + // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) that includes + // the necessary permissions to call those Amazon Web Services APIs, and provision + // that execution role in your account. CloudFormation then assumes that execution + // role to provide your extension with the appropriate credentials. ExecutionRoleArn *string // Whether or not the extension is activated in the account and region. This only @@ -174,8 +175,8 @@ type DescribeTypeOutput struct { OriginalTypeName *string // For resource type extensions, the provisioning behavior of the resource type. - // AWS CloudFormation determines the provisioning type during registration, based - // on the types of handlers in the schema handler package submitted. Valid values + // CloudFormation determines the provisioning type during registration, based on + // the types of handlers in the schema handler package submitted. Valid values // include: // // * FULLY_MUTABLE: The resource type includes an update handler to @@ -268,8 +269,8 @@ type DescribeTypeOutput struct { // operations. Valid values include: // // * PRIVATE: The extension is only visible and - // usable within the account in which it is registered. AWS CloudFormation marks - // any extensions you register as PRIVATE. + // usable within the account in which it is registered. CloudFormation marks any + // extensions you register as PRIVATE. // // * PUBLIC: The extension is publically // visible and usable within any Amazon account. diff --git a/service/cloudformation/api_op_DetectStackDrift.go b/service/cloudformation/api_op_DetectStackDrift.go index 5d9f4f572cc..415e086b6cb 100644 --- a/service/cloudformation/api_op_DetectStackDrift.go +++ b/service/cloudformation/api_op_DetectStackDrift.go @@ -13,7 +13,7 @@ import ( // Detects whether a stack's actual configuration differs, or has drifted, from // it's expected configuration, as defined in the stack template and any values // specified as template parameters. For each resource in the stack that supports -// drift detection, AWS CloudFormation compares the actual configuration of the +// drift detection, CloudFormation compares the actual configuration of the // resource with its expected template configuration. Only resource properties // explicitly defined in the stack template are checked for drift. A stack is // considered to have drifted if one or more of its resources differ from their @@ -30,7 +30,7 @@ import ( // monitor the progress of a detect stack drift operation. Once the drift detection // operation has completed, use DescribeStackResourceDrifts to return drift // information about the stack and its resources. When detecting drift on a stack, -// AWS CloudFormation does not detect drift on any nested stacks belonging to that +// CloudFormation does not detect drift on any nested stacks belonging to that // stack. Perform DetectStackDrift directly on the nested stack itself. func (c *Client) DetectStackDrift(ctx context.Context, params *DetectStackDriftInput, optFns ...func(*Options)) (*DetectStackDriftOutput, error) { if params == nil { @@ -62,9 +62,9 @@ type DetectStackDriftInput struct { type DetectStackDriftOutput struct { - // The ID of the drift detection results of this operation. AWS CloudFormation + // The ID of the drift detection results of this operation. CloudFormation // generates new results, with a new drift detection ID, each time this operation - // is run. However, the number of drift results AWS CloudFormation retains for any + // is run. However, the number of drift results CloudFormation retains for any // given stack, and for how long, may vary. // // This member is required. diff --git a/service/cloudformation/api_op_DetectStackResourceDrift.go b/service/cloudformation/api_op_DetectStackResourceDrift.go index cc4598b17dd..f5c91c5ae22 100644 --- a/service/cloudformation/api_op_DetectStackResourceDrift.go +++ b/service/cloudformation/api_op_DetectStackResourceDrift.go @@ -14,7 +14,7 @@ import ( // Returns information about whether a resource's actual configuration differs, or // has drifted, from it's expected configuration, as defined in the stack template // and any values specified as template parameters. This information includes -// actual and expected property values for resources in which AWS CloudFormation +// actual and expected property values for resources in which CloudFormation // detects drift. Only resource properties explicitly defined in the stack template // are checked for drift. For more information about stack and resource drift, see // Detecting Unregulated Configuration Changes to Stacks and Resources diff --git a/service/cloudformation/api_op_DetectStackSetDrift.go b/service/cloudformation/api_op_DetectStackSetDrift.go index 84b0637a54c..e6e366fff16 100644 --- a/service/cloudformation/api_op_DetectStackSetDrift.go +++ b/service/cloudformation/api_op_DetectStackSetDrift.go @@ -75,17 +75,17 @@ type DetectStackSetDriftInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs // The ID of the stack set operation. OperationId *string - // The user-specified preferences for how AWS CloudFormation performs a stack set + // The user-specified preferences for how CloudFormation performs a stack set // operation. For more information on maximum concurrent accounts and failure // tolerance, see Stack set operation options // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). diff --git a/service/cloudformation/api_op_EstimateTemplateCost.go b/service/cloudformation/api_op_EstimateTemplateCost.go index 05ff9f2674e..f4e5839b3ff 100644 --- a/service/cloudformation/api_op_EstimateTemplateCost.go +++ b/service/cloudformation/api_op_EstimateTemplateCost.go @@ -11,9 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the estimated monthly cost of a template. The return value is an AWS -// Simple Monthly Calculator URL with a query string that describes the resources -// required to run the template. +// Returns the estimated monthly cost of a template. The return value is an Amazon +// Web Services Simple Monthly Calculator URL with a query string that describes +// the resources required to run the template. func (c *Client) EstimateTemplateCost(ctx context.Context, params *EstimateTemplateCostInput, optFns ...func(*Options)) (*EstimateTemplateCostOutput, error) { if params == nil { params = &EstimateTemplateCostInput{} @@ -38,15 +38,15 @@ type EstimateTemplateCostInput struct { // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. (For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide.) Conditional: You must pass TemplateBody - // or TemplateURL. If both are passed, only TemplateBody is used. + // in the CloudFormation User Guide.) Conditional: You must pass TemplateBody or + // TemplateURL. If both are passed, only TemplateBody is used. TemplateBody *string // Location of file containing the template body. The URL must point to a template // that is located in an Amazon S3 bucket or a Systems Manager document. For more // information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must pass TemplateURL or + // in the CloudFormation User Guide. Conditional: You must pass TemplateURL or // TemplateBody. If both are passed, only TemplateBody is used. TemplateURL *string @@ -56,8 +56,8 @@ type EstimateTemplateCostInput struct { // The output for a EstimateTemplateCost action. type EstimateTemplateCostOutput struct { - // An AWS Simple Monthly Calculator URL with a query string that describes the - // resources required to run the template. + // An Amazon Web Services Simple Monthly Calculator URL with a query string that + // describes the resources required to run the template. Url *string // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_ExecuteChangeSet.go b/service/cloudformation/api_op_ExecuteChangeSet.go index d1a86cf0e3a..b93b9b72164 100644 --- a/service/cloudformation/api_op_ExecuteChangeSet.go +++ b/service/cloudformation/api_op_ExecuteChangeSet.go @@ -11,14 +11,14 @@ import ( ) // Updates a stack using the input information that was provided when the specified -// change set was created. After the call successfully completes, AWS -// CloudFormation starts updating the stack. Use the DescribeStacks action to view -// the status of the update. When you execute a change set, AWS CloudFormation -// deletes all other change sets associated with the stack because they aren't -// valid for the updated stack. If a stack policy is associated with the stack, AWS -// CloudFormation enforces the policy during the update. You can't specify a -// temporary stack policy that overrides the current policy. To create a change set -// for the entire stack hierachy, IncludeNestedStacks must have been set to True. +// change set was created. After the call successfully completes, CloudFormation +// starts updating the stack. Use the DescribeStacks action to view the status of +// the update. When you execute a change set, CloudFormation deletes all other +// change sets associated with the stack because they aren't valid for the updated +// stack. If a stack policy is associated with the stack, CloudFormation enforces +// the policy during the update. You can't specify a temporary stack policy that +// overrides the current policy. To create a change set for the entire stack +// hierachy, IncludeNestedStacks must have been set to True. func (c *Client) ExecuteChangeSet(ctx context.Context, params *ExecuteChangeSetInput, optFns ...func(*Options)) (*ExecuteChangeSetOutput, error) { if params == nil { params = &ExecuteChangeSetInput{} @@ -44,10 +44,10 @@ type ExecuteChangeSetInput struct { ChangeSetName *string // A unique identifier for this ExecuteChangeSet request. Specify this token if you - // plan to retry requests so that AWS CloudFormation knows that you're not - // attempting to execute a change set to update a stack with the same name. You - // might retry ExecuteChangeSet requests to ensure that AWS CloudFormation - // successfully received them. + // plan to retry requests so that CloudFormation knows that you're not attempting + // to execute a change set to update a stack with the same name. You might retry + // ExecuteChangeSet requests to ensure that CloudFormation successfully received + // them. ClientRequestToken *string // If you specified the name of a change set, specify the stack name or ID (ARN) diff --git a/service/cloudformation/api_op_GetStackPolicy.go b/service/cloudformation/api_op_GetStackPolicy.go index 1a5d007b634..baf6d7b316d 100644 --- a/service/cloudformation/api_op_GetStackPolicy.go +++ b/service/cloudformation/api_op_GetStackPolicy.go @@ -45,7 +45,7 @@ type GetStackPolicyOutput struct { // Structure containing the stack policy body. (For more information, go to // Prevent Updates to Stack Resources // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) - // in the AWS CloudFormation User Guide.) + // in the CloudFormation User Guide.) StackPolicyBody *string // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_GetTemplate.go b/service/cloudformation/api_op_GetTemplate.go index a3c93ffdfa6..390b95c419e 100644 --- a/service/cloudformation/api_op_GetTemplate.go +++ b/service/cloudformation/api_op_GetTemplate.go @@ -33,9 +33,9 @@ func (c *Client) GetTemplate(ctx context.Context, params *GetTemplateInput, optF // The input for a GetTemplate action. type GetTemplateInput struct { - // The name or Amazon Resource Name (ARN) of a change set for which AWS - // CloudFormation returns the associated template. If you specify a name, you must - // also specify the StackName. + // The name or Amazon Resource Name (ARN) of a change set for which CloudFormation + // returns the associated template. If you specify a name, you must also specify + // the StackName. ChangeSetName *string // The name or the unique stack ID that is associated with the stack, which are not @@ -50,11 +50,11 @@ type GetTemplateInput struct { // Default: There is no default value. StackName *string - // For templates that include transforms, the stage of the template that AWS + // For templates that include transforms, the stage of the template that // CloudFormation returns. To get the user-submitted template, specify Original. To - // get the template after AWS CloudFormation has processed all transforms, specify + // get the template after CloudFormation has processed all transforms, specify // Processed. If the template doesn't include transforms, Original and Processed - // return the same template. By default, AWS CloudFormation specifies Processed. + // return the same template. By default, CloudFormation specifies Processed. TemplateStage types.TemplateStage noSmithyDocumentSerde @@ -65,15 +65,15 @@ type GetTemplateOutput struct { // The stage of the template that you can retrieve. For stacks, the Original and // Processed templates are always available. For change sets, the Original template - // is always available. After AWS CloudFormation finishes creating the change set, - // the Processed template becomes available. + // is always available. After CloudFormation finishes creating the change set, the + // Processed template becomes available. StagesAvailable []types.TemplateStage // Structure containing the template body. (For more information, go to Template // Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide.) AWS CloudFormation returns the same - // template that was used when the stack was created. + // in the CloudFormation User Guide.) CloudFormation returns the same template that + // was used when the stack was created. TemplateBody *string // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_GetTemplateSummary.go b/service/cloudformation/api_op_GetTemplateSummary.go index 263acf4a5ea..1a2850f98bd 100644 --- a/service/cloudformation/api_op_GetTemplateSummary.go +++ b/service/cloudformation/api_op_GetTemplateSummary.go @@ -46,11 +46,11 @@ type GetTemplateSummaryInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs // The name or the stack ID that is associated with the stack, which are not always @@ -69,16 +69,16 @@ type GetTemplateSummaryInput struct { // maximum length of 51,200 bytes. For more information about templates, see // Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must specify only one of - // the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL. + // in the CloudFormation User Guide. Conditional: You must specify only one of the + // following parameters: StackName, StackSetName, TemplateBody, or TemplateURL. TemplateBody *string // Location of file containing the template body. The URL must point to a template // (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems // Manager document. For more information about templates, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must specify only one of - // the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL. + // in the CloudFormation User Guide. Conditional: You must specify only one of the + // following parameters: StackName, StackSetName, TemplateBody, or TemplateURL. TemplateURL *string noSmithyDocumentSerde @@ -91,8 +91,7 @@ type GetTemplateSummaryOutput struct { // resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for // this parameter when you use the CreateStack or UpdateStack actions with your // template; otherwise, those actions return an InsufficientCapabilities error. For - // more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates + // more information, see Acknowledging IAM Resources in CloudFormation Templates // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). Capabilities []types.Capability @@ -123,8 +122,8 @@ type GetTemplateSummaryOutput struct { // as AWS::EC2::Instance, AWS::Dynamo::Table, and Custom::MyCustomInstance. ResourceTypes []string - // The AWS template format version, which identifies the capabilities of the - // template. + // The Amazon Web Services template format version, which identifies the + // capabilities of the template. Version *string // Metadata pertaining to the operation's result. diff --git a/service/cloudformation/api_op_ImportStacksToStackSet.go b/service/cloudformation/api_op_ImportStacksToStackSet.go new file mode 100644 index 00000000000..a52b3bec2cc --- /dev/null +++ b/service/cloudformation/api_op_ImportStacksToStackSet.go @@ -0,0 +1,187 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cloudformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Import existing stacks into a new stack sets. Use the stack import operation to +// import up to 10 stacks into a new stack set in the same account as the source +// stack or in a different administrator account and Region, by specifying the +// stack ID of the stack you intend to import. ImportStacksToStackSet is only +// supported by self-managed permissions. +func (c *Client) ImportStacksToStackSet(ctx context.Context, params *ImportStacksToStackSetInput, optFns ...func(*Options)) (*ImportStacksToStackSetOutput, error) { + if params == nil { + params = &ImportStacksToStackSetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ImportStacksToStackSet", params, optFns, c.addOperationImportStacksToStackSetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ImportStacksToStackSetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ImportStacksToStackSetInput struct { + + // The IDs of the stacks you are importing into a stack set. You import up to 10 + // stacks per stack set at a time. + // + // This member is required. + StackIds []string + + // The name of the stack set. The name must be unique in the Region where you + // create your stack set. + // + // This member is required. + StackSetName *string + + // By default, SELF is specified. Use SELF for stack sets with self-managed + // permissions. + // + // * If you are signed in to the management account, specify SELF. + // + // * + // For service managed stack sets, specify DELEGATED_ADMIN. + CallAs types.CallAs + + // A unique, user defined, identifier for the stack set operation. + OperationId *string + + // The user-specified preferences for how CloudFormation performs a stack set + // operation. For more information on maximum concurrent accounts and failure + // tolerance, see Stack set operation options + // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). + OperationPreferences *types.StackSetOperationPreferences + + noSmithyDocumentSerde +} + +type ImportStacksToStackSetOutput struct { + + // The unique identifier for the stack set operation. + OperationId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationImportStacksToStackSetMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsquery_serializeOpImportStacksToStackSet{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpImportStacksToStackSet{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opImportStacksToStackSetMiddleware(stack, options); err != nil { + return err + } + if err = addOpImportStacksToStackSetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportStacksToStackSet(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpImportStacksToStackSet struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpImportStacksToStackSet) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpImportStacksToStackSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*ImportStacksToStackSetInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *ImportStacksToStackSetInput ") + } + + if input.OperationId == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.OperationId = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opImportStacksToStackSetMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpImportStacksToStackSet{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opImportStacksToStackSet(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "cloudformation", + OperationName: "ImportStacksToStackSet", + } +} diff --git a/service/cloudformation/api_op_ListChangeSets.go b/service/cloudformation/api_op_ListChangeSets.go index 828fbed5811..a0abc0324eb 100644 --- a/service/cloudformation/api_op_ListChangeSets.go +++ b/service/cloudformation/api_op_ListChangeSets.go @@ -13,7 +13,7 @@ import ( ) // Returns the ID and status of each active change set for a stack. For example, -// AWS CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or +// CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or // CREATE_PENDING state. func (c *Client) ListChangeSets(ctx context.Context, params *ListChangeSetsInput, optFns ...func(*Options)) (*ListChangeSetsOutput, error) { if params == nil { diff --git a/service/cloudformation/api_op_ListExports.go b/service/cloudformation/api_op_ListExports.go index 398e9544b9a..00e3e4a948c 100644 --- a/service/cloudformation/api_op_ListExports.go +++ b/service/cloudformation/api_op_ListExports.go @@ -16,8 +16,7 @@ import ( // this action. Use this action to see the exported output values that you can // import into other stacks. To import values, use the Fn::ImportValue // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html) -// function. For more information, see AWS CloudFormation Export Stack Output -// Values +// function. For more information, see CloudFormation Export Stack Output Values // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html). func (c *Client) ListExports(ctx context.Context, params *ListExportsInput, optFns ...func(*Options)) (*ListExportsOutput, error) { if params == nil { diff --git a/service/cloudformation/api_op_ListImports.go b/service/cloudformation/api_op_ListImports.go index de0783b0bdc..896cc2b8805 100644 --- a/service/cloudformation/api_op_ListImports.go +++ b/service/cloudformation/api_op_ListImports.go @@ -35,8 +35,8 @@ func (c *Client) ListImports(ctx context.Context, params *ListImportsInput, optF type ListImportsInput struct { - // The name of the exported output value. AWS CloudFormation returns the stack - // names that are importing this value. + // The name of the exported output value. CloudFormation returns the stack names + // that are importing this value. // // This member is required. ExportName *string diff --git a/service/cloudformation/api_op_ListStackInstances.go b/service/cloudformation/api_op_ListStackInstances.go index d62c9bba3bd..23003c5e385 100644 --- a/service/cloudformation/api_op_ListStackInstances.go +++ b/service/cloudformation/api_op_ListStackInstances.go @@ -14,7 +14,7 @@ import ( // Returns summary information about stack instances that are associated with the // specified stack set. You can filter for stack instances that are associated with -// a specific AWS account name or Region, or that have a specific status. +// a specific account name or Region, or that have a specific status. func (c *Client) ListStackInstances(ctx context.Context, params *ListStackInstancesInput, optFns ...func(*Options)) (*ListStackInstancesOutput, error) { if params == nil { params = &ListStackInstancesInput{} @@ -47,11 +47,11 @@ type ListStackInstancesInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs // The status that stack instances are filtered by. @@ -70,7 +70,7 @@ type ListStackInstancesInput struct { // response object's NextToken parameter is set to null. NextToken *string - // The name of the AWS account that you want to list stack instances for. + // The name of the account that you want to list stack instances for. StackInstanceAccount *string // The name of the Region where you want to list stack instances. diff --git a/service/cloudformation/api_op_ListStackSetOperationResults.go b/service/cloudformation/api_op_ListStackSetOperationResults.go index fde06c2af0f..00a3bc3faad 100644 --- a/service/cloudformation/api_op_ListStackSetOperationResults.go +++ b/service/cloudformation/api_op_ListStackSetOperationResults.go @@ -50,11 +50,11 @@ type ListStackSetOperationResultsInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs // The maximum number of results to be returned with a single call. If the number diff --git a/service/cloudformation/api_op_ListStackSetOperations.go b/service/cloudformation/api_op_ListStackSetOperations.go index 7059300d6dc..8196a416c7f 100644 --- a/service/cloudformation/api_op_ListStackSetOperations.go +++ b/service/cloudformation/api_op_ListStackSetOperations.go @@ -45,11 +45,11 @@ type ListStackSetOperationsInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs // The maximum number of results to be returned with a single call. If the number diff --git a/service/cloudformation/api_op_ListStackSets.go b/service/cloudformation/api_op_ListStackSets.go index 0b9934d30f2..ae100ebce1a 100644 --- a/service/cloudformation/api_op_ListStackSets.go +++ b/service/cloudformation/api_op_ListStackSets.go @@ -16,12 +16,12 @@ import ( // user. // // * [Self-managed permissions] If you set the CallAs parameter to SELF -// while signed in to your AWS account, ListStackSets returns all self-managed -// stack sets in your AWS account. +// while signed in to your account, ListStackSets returns all self-managed stack +// sets in your account. // -// * [Service-managed permissions] If you set the -// CallAs parameter to SELF while signed in to the organization's management -// account, ListStackSets returns all stack sets in the management account. +// * [Service-managed permissions] If you set the CallAs +// parameter to SELF while signed in to the organization's management account, +// ListStackSets returns all stack sets in the management account. // // * // [Service-managed permissions] If you set the CallAs parameter to DELEGATED_ADMIN @@ -53,11 +53,11 @@ type ListStackSetsInput struct { // specify SELF. // // * If you are signed in to a delegated administrator account, - // specify DELEGATED_ADMIN. Your AWS account must be registered as a delegated + // specify DELEGATED_ADMIN. Your account must be registered as a delegated // administrator in the management account. For more information, see Register a // delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs // The maximum number of results to be returned with a single call. If the number diff --git a/service/cloudformation/api_op_ListTypes.go b/service/cloudformation/api_op_ListTypes.go index 6e987155441..e81211c4933 100644 --- a/service/cloudformation/api_op_ListTypes.go +++ b/service/cloudformation/api_op_ListTypes.go @@ -59,7 +59,7 @@ type ListTypesInput struct { // previous response object's NextToken parameter is set to null. NextToken *string - // For resource types, the provisioning behavior of the resource type. AWS + // For resource types, the provisioning behavior of the resource type. // CloudFormation determines the provisioning type during registration, based on // the types of handlers in the schema handler package submitted. Valid values // include: diff --git a/service/cloudformation/api_op_PublishType.go b/service/cloudformation/api_op_PublishType.go index 54e5d02bf63..1ab69a2b8ed 100644 --- a/service/cloudformation/api_op_PublishType.go +++ b/service/cloudformation/api_op_PublishType.go @@ -45,7 +45,9 @@ type PublishTypeInput struct { // format, and adhere to semantic versioning when assigning a version number to // your extension: MAJOR.MINOR.PATCH For more information, see Semantic Versioning // 2.0.0 (https://semver.org/). If you do not specify a version number, - // CloudFormation increments the version number by one minor version release. + // CloudFormation increments the version number by one minor version release. The + // first time you publish a type, CloudFormation sets the version number to 1.0.0, + // regardless of the value you specify. PublicVersionNumber *string // The type of the extension. Conditional: You must specify Arn, or TypeName and diff --git a/service/cloudformation/api_op_RegisterPublisher.go b/service/cloudformation/api_op_RegisterPublisher.go index f4ee70cae71..406feced49e 100644 --- a/service/cloudformation/api_op_RegisterPublisher.go +++ b/service/cloudformation/api_op_RegisterPublisher.go @@ -12,7 +12,7 @@ import ( // Registers your account as a publisher of public extensions in the CloudFormation // registry. Public extensions are available for use by all CloudFormation users. -// This publisher ID applies to your account in all AWS regions. For information on +// This publisher ID applies to your account in all Regions. For information on // requirements for registering as a public extension publisher, see Registering // your account to publish CloudFormation extensions // (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) @@ -34,10 +34,11 @@ func (c *Client) RegisterPublisher(ctx context.Context, params *RegisterPublishe type RegisterPublisherInput struct { - // Whether you accept the terms and conditions for publishing extensions in the - // CloudFormation registry. You must accept the terms and conditions in order to - // register to publish public extensions to the CloudFormation registry. The - // default is false. + // Whether you accept the Terms and Conditions + // (https://cloudformation-registry-documents.s3.amazonaws.com/Terms_and_Conditions_for_AWS_CloudFormation_Registry_Publishers.pdf) + // for publishing extensions in the CloudFormation registry. You must accept the + // terms and conditions in order to register to publish public extensions to the + // CloudFormation registry. The default is false. AcceptTermsAndConditions *bool // If you are using a Bitbucket or GitHub account for identity verification, the diff --git a/service/cloudformation/api_op_RegisterType.go b/service/cloudformation/api_op_RegisterType.go index 1db68bd0e79..b467f20e461 100644 --- a/service/cloudformation/api_op_RegisterType.go +++ b/service/cloudformation/api_op_RegisterType.go @@ -12,7 +12,7 @@ import ( ) // Registers an extension with the CloudFormation service. Registering an extension -// makes it available for use in CloudFormation templates in your AWS account, and +// makes it available for use in CloudFormation templates in your account, and // includes: // // * Validating the extension schema @@ -63,7 +63,7 @@ type RegisterTypeInput struct { // GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) // permissions for the schema handler package. For more information, see Actions, // Resources, and Condition Keys for Amazon S3 - // (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html) in the AWS + // (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html) in the // Identity and Access Management User Guide. // // This member is required. @@ -107,15 +107,15 @@ type RegisterTypeInput struct { // invoking the extension. For CloudFormation to assume the specified execution // role, the role must contain a trust relationship with the CloudFormation service // principle (resources.cloudformation.amazonaws.com). For more information on - // adding trust relationships, see Modifying a role trust policy in the AWS - // Identity and Access Management User Guide. If your extension calls AWS APIs in - // any of its handlers, you must create an IAM execution role + // adding trust relationships, see Modifying a role trust policy in the Identity + // and Access Management User Guide. If your extension calls Amazon Web Services + // APIs in any of its handlers, you must create an IAM execution role // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) that includes - // the necessary permissions to call those AWS APIs, and provision that execution - // role in your account. When CloudFormation needs to invoke the resource type - // handler, CloudFormation assumes this execution role to create a temporary - // session token, which it then passes to the resource type handler, thereby - // supplying your resource type with the appropriate credentials. + // the necessary permissions to call those Amazon Web Services APIs, and provision + // that execution role in your account. When CloudFormation needs to invoke the + // resource type handler, CloudFormation assumes this execution role to create a + // temporary session token, which it then passes to the resource type handler, + // thereby supplying your resource type with the appropriate credentials. ExecutionRoleArn *string // Specifies logging configuration information for an extension. diff --git a/service/cloudformation/api_op_SetStackPolicy.go b/service/cloudformation/api_op_SetStackPolicy.go index 0200dba9d02..4e9f3eb039f 100644 --- a/service/cloudformation/api_op_SetStackPolicy.go +++ b/service/cloudformation/api_op_SetStackPolicy.go @@ -37,8 +37,8 @@ type SetStackPolicyInput struct { // Structure containing the stack policy body. For more information, go to Prevent // Updates to Stack Resources // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) - // in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody - // or the StackPolicyURL parameter, but not both. + // in the CloudFormation User Guide. You can specify either the StackPolicyBody or + // the StackPolicyURL parameter, but not both. StackPolicyBody *string // Location of a file containing the stack policy. The URL must point to a policy diff --git a/service/cloudformation/api_op_SetTypeConfiguration.go b/service/cloudformation/api_op_SetTypeConfiguration.go index f8b810fb865..4a82aae576d 100644 --- a/service/cloudformation/api_op_SetTypeConfiguration.go +++ b/service/cloudformation/api_op_SetTypeConfiguration.go @@ -20,7 +20,7 @@ import ( // dynamic references to restrict sensitive configuration definitions, such as // third-party credentials. For more details on dynamic references, see Using // dynamic references to specify template values (https://docs.aws.amazon.com/) in -// the AWS CloudFormation User Guide. +// the CloudFormation User Guide. func (c *Client) SetTypeConfiguration(ctx context.Context, params *SetTypeConfigurationInput, optFns ...func(*Options)) (*SetTypeConfigurationOutput, error) { if params == nil { params = &SetTypeConfigurationInput{} diff --git a/service/cloudformation/api_op_SignalResource.go b/service/cloudformation/api_op_SignalResource.go index efce165b309..6ae03608087 100644 --- a/service/cloudformation/api_op_SignalResource.go +++ b/service/cloudformation/api_op_SignalResource.go @@ -13,7 +13,7 @@ import ( // Sends a signal to the specified resource with a success or failure status. You // can use the SignalResource API in conjunction with a creation policy or update -// policy. AWS CloudFormation doesn't proceed with a stack creation or update until +// policy. CloudFormation doesn't proceed with a stack creation or update until // resources receive the required number of signals or the timeout period is // exceeded. The SignalResource API is useful in cases where you want to send // signals from anywhere other than an Amazon EC2 instance. @@ -48,7 +48,7 @@ type SignalResourceInput struct { StackName *string // The status of the signal, which is either success or failure. A failure signal - // causes AWS CloudFormation to immediately fail the stack creation or update. + // causes CloudFormation to immediately fail the stack creation or update. // // This member is required. Status types.ResourceSignalStatus diff --git a/service/cloudformation/api_op_StopStackSetOperation.go b/service/cloudformation/api_op_StopStackSetOperation.go index f86aa72f107..ca7de1afaf2 100644 --- a/service/cloudformation/api_op_StopStackSetOperation.go +++ b/service/cloudformation/api_op_StopStackSetOperation.go @@ -49,11 +49,11 @@ type StopStackSetOperationInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs noSmithyDocumentSerde diff --git a/service/cloudformation/api_op_TestType.go b/service/cloudformation/api_op_TestType.go index cd8a430e27d..8a1d72dbbc8 100644 --- a/service/cloudformation/api_op_TestType.go +++ b/service/cloudformation/api_op_TestType.go @@ -27,7 +27,7 @@ import ( // in the CloudFormation CLI User Guide. If you do not specify a version, // CloudFormation uses the default version of the extension in your account and // region for testing. To perform testing, CloudFormation assumes the execution -// role specified when the test was registered. For more information, see +// role specified when the type was registered. For more information, see // RegisterType. Once you've initiated testing on an extension using TestType, you // can use DescribeType // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html) @@ -72,7 +72,7 @@ type TestTypeInput struct { // For more information, see Actions, Resources, and Condition Keys for // Amazon S3 // (https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html) - // in the AWS Identity and Access Management User Guide. + // in the Amazon Web Services Identity and Access Management User Guide. LogDeliveryBucket *string // The type of the extension to test. Conditional: You must specify Arn, or diff --git a/service/cloudformation/api_op_UpdateStack.go b/service/cloudformation/api_op_UpdateStack.go index 956f4c4e22d..9a913348536 100644 --- a/service/cloudformation/api_op_UpdateStack.go +++ b/service/cloudformation/api_op_UpdateStack.go @@ -42,14 +42,14 @@ type UpdateStackInput struct { StackName *string // In some cases, you must explicitly acknowledge that your stack template contains - // certain capabilities in order for AWS CloudFormation to update the stack. + // certain capabilities in order for CloudFormation to update the stack. // // * // CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include - // resources that can affect permissions in your AWS account; for example, by - // creating new AWS Identity and Access Management (IAM) users. For those stacks, - // you must explicitly acknowledge this by specifying one of these capabilities. - // The following IAM resources require you to specify either the CAPABILITY_IAM or + // resources that can affect permissions in your account; for example, by creating + // new Identity and Access Management (IAM) users. For those stacks, you must + // explicitly acknowledge this by specifying one of these capabilities. The + // following IAM resources require you to specify either the CAPABILITY_IAM or // CAPABILITY_NAMED_IAM capability. // // * If you have IAM resources, you can specify @@ -59,10 +59,10 @@ type UpdateStackInput struct { // specify CAPABILITY_NAMED_IAM. // // * If you don't specify either of these - // capabilities, AWS CloudFormation returns an InsufficientCapabilities error. + // capabilities, CloudFormation returns an InsufficientCapabilities error. // - // If - // your stack template contains these resources, we recommend that you review all + // If your + // stack template contains these resources, we recommend that you review all // permissions associated with them and edit their permissions if necessary. // // * @@ -94,8 +94,7 @@ type UpdateStackInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates + // more information, see Acknowledging IAM Resources in CloudFormation Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -111,24 +110,24 @@ type UpdateStackInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by AWS CloudFormation. If you want to update - // a stack from a stack template that contains macros and nested stacks, you must + // transforms, which are macros hosted by CloudFormation. If you want to update a + // stack from a stack template that contains macros and nested stacks, you must // update the stack directly from the template using this capability. You should // only update stacks directly from a stack template that contains macros if you // know what processing the macro performs. Each macro relies on an underlying // Lambda service function for processing stack templates. Be aware that the Lambda - // function owner can update the function operation without AWS CloudFormation - // being notified. For more information, see Using AWS CloudFormation Macros to - // Perform Custom Processing on Templates + // function owner can update the function operation without CloudFormation being + // notified. For more information, see Using CloudFormation Macros to Perform + // Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). Capabilities []types.Capability // A unique identifier for this UpdateStack request. Specify this token if you plan - // to retry requests so that AWS CloudFormation knows that you're not attempting to + // to retry requests so that CloudFormation knows that you're not attempting to // update a stack with the same name. You might retry UpdateStack requests to - // ensure that AWS CloudFormation successfully received them. All events triggered - // by a given stack operation are assigned the same client request token, which you - // can use to track operations. For example, if you execute a CreateStack operation + // ensure that CloudFormation successfully received them. All events triggered by a + // given stack operation are assigned the same client request token, which you can + // use to track operations. For example, if you execute a CreateStack operation // with the token token1, then all the StackEvents generated by that operation will // have ClientRequestToken set as token1. In the console, stack operations display // the client request token on the Events tab. Stack operations that are initiated @@ -138,7 +137,7 @@ type UpdateStackInput struct { // format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002. ClientRequestToken *string - // Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that AWS + // Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that // CloudFormation associates with the stack. Specify an empty list to remove all // notification topics. NotificationARNs []string @@ -152,28 +151,27 @@ type UpdateStackInput struct { // The template resource types that you have permissions to work with for this // update stack action, such as AWS::EC2::Instance, AWS::EC2::*, or // Custom::MyCustomInstance. If the list of resource types doesn't include a - // resource that you're updating, the stack update fails. By default, AWS - // CloudFormation grants permissions to all resource types. AWS Identity and Access - // Management (IAM) uses this parameter for AWS CloudFormation-specific condition - // keys in IAM policies. For more information, see Controlling Access with AWS - // Identity and Access Management + // resource that you're updating, the stack update fails. By default, + // CloudFormation grants permissions to all resource types. Identity and Access + // Management (IAM) uses this parameter for CloudFormation-specific condition keys + // in IAM policies. For more information, see Controlling Access with Identity and + // Access Management // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html). ResourceTypes []string - // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) - // role that AWS CloudFormation assumes to update the stack. AWS CloudFormation - // uses the role's credentials to make calls on your behalf. AWS CloudFormation - // always uses this role for all future operations on the stack. As long as users - // have permission to operate on the stack, AWS CloudFormation uses this role even - // if the users don't have permission to pass it. Ensure that the role grants least - // privilege. If you don't specify a value, AWS CloudFormation uses the role that - // was previously associated with the stack. If no role is available, AWS - // CloudFormation uses a temporary session that is generated from your user - // credentials. + // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role + // that CloudFormation assumes to update the stack. CloudFormation uses the role's + // credentials to make calls on your behalf. CloudFormation always uses this role + // for all future operations on the stack. As long as users have permission to + // operate on the stack, CloudFormation uses this role even if the users don't have + // permission to pass it. Ensure that the role grants least privilege. If you don't + // specify a value, CloudFormation uses the role that was previously associated + // with the stack. If no role is available, CloudFormation uses a temporary session + // that is generated from your user credentials. RoleARN *string - // The rollback triggers for AWS CloudFormation to monitor during stack creation - // and updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for CloudFormation to monitor during stack creation and + // updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *types.RollbackConfiguration // Structure containing a new stack policy body. You can specify either the @@ -207,28 +205,28 @@ type UpdateStackInput struct { // stack policy, the current policy that is associated with the stack is unchanged. StackPolicyURL *string - // Key-value pairs to associate with this stack. AWS CloudFormation also propagates + // Key-value pairs to associate with this stack. CloudFormation also propagates // these tags to supported resources in the stack. You can specify a maximum number - // of 50 tags. If you don't specify this parameter, AWS CloudFormation doesn't - // modify the stack's tags. If you specify an empty value, AWS CloudFormation - // removes all associated tags. + // of 50 tags. If you don't specify this parameter, CloudFormation doesn't modify + // the stack's tags. If you specify an empty value, CloudFormation removes all + // associated tags. Tags []types.Tag // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. (For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide.) Conditional: You must specify only one of - // the following parameters: TemplateBody, TemplateURL, or set the - // UsePreviousTemplate to true. + // in the CloudFormation User Guide.) Conditional: You must specify only one of the + // following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate + // to true. TemplateBody *string // Location of file containing the template body. The URL must point to a template // that is located in an Amazon S3 bucket or a Systems Manager document. For more // information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must specify only one of - // the following parameters: TemplateBody, TemplateURL, or set the - // UsePreviousTemplate to true. + // in the CloudFormation User Guide. Conditional: You must specify only one of the + // following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate + // to true. TemplateURL *string // Reuse the existing template that is associated with the stack that you are diff --git a/service/cloudformation/api_op_UpdateStackInstances.go b/service/cloudformation/api_op_UpdateStackInstances.go index 85e15c45751..9c9f8e3c360 100644 --- a/service/cloudformation/api_op_UpdateStackInstances.go +++ b/service/cloudformation/api_op_UpdateStackInstances.go @@ -59,10 +59,10 @@ type UpdateStackInstancesInput struct { // This member is required. StackSetName *string - // [Self-managed permissions] The names of one or more AWS accounts for which you - // want to update parameter values for stack instances. The overridden parameter - // values will be applied to all stack instances in the specified accounts and - // Regions. You can specify Accounts or DeploymentTargets, but not both. + // [Self-managed permissions] The names of one or more accounts for which you want + // to update parameter values for stack instances. The overridden parameter values + // will be applied to all stack instances in the specified accounts and Regions. + // You can specify Accounts or DeploymentTargets, but not both. Accounts []string // [Service-managed permissions] Specifies whether you are acting as an account @@ -74,15 +74,15 @@ type UpdateStackInstancesInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs - // [Service-managed permissions] The AWS Organizations accounts for which you want - // to update parameter values for stack instances. If your update targets OUs, the + // [Service-managed permissions] The Organizations accounts for which you want to + // update parameter values for stack instances. If your update targets OUs, the // overridden parameter values only apply to the accounts that are currently in the // target OUs and their child OUs. Accounts added to the target OUs and their child // OUs in the future won't use the overridden values. You can specify Accounts or @@ -90,41 +90,36 @@ type UpdateStackInstancesInput struct { DeploymentTargets *types.DeploymentTargets // The unique identifier for this stack set operation. The operation ID also - // functions as an idempotency token, to ensure that AWS CloudFormation performs - // the stack set operation only once, even if you retry the request multiple times. - // You might retry stack set operation requests to ensure that AWS CloudFormation + // functions as an idempotency token, to ensure that CloudFormation performs the + // stack set operation only once, even if you retry the request multiple times. You + // might retry stack set operation requests to ensure that CloudFormation // successfully received them. If you don't specify an operation ID, the SDK // generates one automatically. OperationId *string - // Preferences for how AWS CloudFormation performs this stack set operation. + // Preferences for how CloudFormation performs this stack set operation. OperationPreferences *types.StackSetOperationPreferences // A list of input parameters whose values you want to update for the specified // stack instances. Any overridden parameter values will be applied to all stack // instances in the specified accounts and Regions. When specifying parameters and - // their values, be aware of how AWS CloudFormation sets parameter values during - // stack instance update operations: + // their values, be aware of how CloudFormation sets parameter values during stack + // instance update operations: // - // * To override the current value for a - // parameter, include the parameter and specify its value. + // * To override the current value for a parameter, + // include the parameter and specify its value. // - // * To leave a parameter - // set to its present value, you can do one of the following: - // - // * Do not include the - // parameter in the list. - // - // * Include the parameter and specify UsePreviousValue as + // * To leave an overridden parameter + // set to its present value, include the parameter and specify UsePreviousValue as // true. (You cannot specify both a value and set UsePreviousValue to true.) // // * To - // set all overridden parameter back to the values specified in the stack set, - // specify a parameter list but do not include any parameters. + // set an overridden parameter back to the value specified in the stack set, + // specify a parameter list but do not include the parameter in the list. // - // * To leave all - // parameters set to their present values, do not specify this property at - // all. + // * To + // leave all parameters set to their present values, do not specify this property + // at all. // // During stack set updates, any parameter values overridden for a stack // instance are not updated, but retain their overridden value. You can only diff --git a/service/cloudformation/api_op_UpdateStackSet.go b/service/cloudformation/api_op_UpdateStackSet.go index 185cb533a0e..701178625ab 100644 --- a/service/cloudformation/api_op_UpdateStackSet.go +++ b/service/cloudformation/api_op_UpdateStackSet.go @@ -44,10 +44,10 @@ type UpdateStackSetInput struct { // to update stack set instances. To update all the stack instances associated with // this stack set, do not specify the Accounts or Regions properties. If the stack // set update includes changes to the template (that is, if the TemplateBody or - // TemplateURL properties are specified), or the Parameters property, AWS + // TemplateURL properties are specified), or the Parameters property, // CloudFormation marks all stack instances with a status of OUTDATED prior to // updating the stack instances in the specified accounts and Regions. If the stack - // set update does not include changes to the template or parameters, AWS + // set update does not include changes to the template or parameters, // CloudFormation updates the stack instances in the specified accounts and // Regions, while leaving all other stack instances with their existing stack // instance status. @@ -59,14 +59,14 @@ type UpdateStackSetInput struct { // administrator account. For more information, see Granting Permissions for Stack // Set Operations // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html) - // in the AWS CloudFormation User Guide. If you specified a customized - // administrator role when you created the stack set, you must specify a customized - // administrator role, even if it is the same customized administrator role used - // with this stack set previously. + // in the CloudFormation User Guide. If you specified a customized administrator + // role when you created the stack set, you must specify a customized administrator + // role, even if it is the same customized administrator role used with this stack + // set previously. AdministrationRoleARN *string // [Service-managed permissions] Describes whether StackSets automatically deploys - // to AWS Organizations accounts that are added to a target organization or + // to Organizations accounts that are added to a target organization or // organizational unit (OU). If you specify AutoDeployment, do not specify // DeploymentTargets or Regions. AutoDeployment *types.AutoDeployment @@ -80,20 +80,20 @@ type UpdateStackSetInput struct { // management account, specify SELF. // // * If you are signed in to a delegated - // administrator account, specify DELEGATED_ADMIN. Your AWS account must be - // registered as a delegated administrator in the management account. For more - // information, see Register a delegated administrator + // administrator account, specify DELEGATED_ADMIN. Your account must be registered + // as a delegated administrator in the management account. For more information, + // see Register a delegated administrator // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CallAs types.CallAs // In some cases, you must explicitly acknowledge that your stack template contains - // certain capabilities in order for AWS CloudFormation to update the stack set and - // its associated stack instances. + // certain capabilities in order for CloudFormation to update the stack set and its + // associated stack instances. // // * CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some - // stack templates might include resources that can affect permissions in your AWS - // account; for example, by creating new AWS Identity and Access Management (IAM) + // stack templates might include resources that can affect permissions in your + // account; for example, by creating new Identity and Access Management (IAM) // users. For those stacks sets, you must explicitly acknowledge this by specifying // one of these capabilities. The following IAM resources require you to specify // either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. @@ -105,12 +105,12 @@ type UpdateStackSetInput struct { // custom names, you must specify CAPABILITY_NAMED_IAM. // // * If you don't specify - // either of these capabilities, AWS CloudFormation returns an - // InsufficientCapabilities error. + // either of these capabilities, CloudFormation returns an InsufficientCapabilities + // error. // - // If your stack template contains these - // resources, we recommend that you review all permissions associated with them and - // edit their permissions if necessary. + // If your stack template contains these resources, we recommend that you + // review all permissions associated with them and edit their permissions if + // necessary. // // * AWS::IAM::AccessKey // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html) @@ -140,8 +140,7 @@ type UpdateStackSetInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For - // more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates + // more information, see Acknowledging IAM Resources in CloudFormation Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). // // * @@ -149,7 +148,7 @@ type UpdateStackSetInput struct { // template references one or more macros, you must update the stack set directly // from the processed template, without first reviewing the resulting changes in a // change set. To update the stack set directly, you must acknowledge this - // capability. For more information, see Using AWS CloudFormation Macros to Perform + // capability. For more information, see Using CloudFormation Macros to Perform // Custom Processing on Templates // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). // Stack sets with service-managed permissions do not currently support the use of @@ -157,19 +156,19 @@ type UpdateStackSetInput struct { // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) // and AWS::Serverless // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) - // transforms, which are macros hosted by AWS CloudFormation.) Even if you specify - // this capability for a stack set with service-managed permissions, if you - // reference a macro in your template the stack set operation will fail. + // transforms, which are macros hosted by CloudFormation.) Even if you specify this + // capability for a stack set with service-managed permissions, if you reference a + // macro in your template the stack set operation will fail. Capabilities []types.Capability - // [Service-managed permissions] The AWS Organizations accounts in which to update + // [Service-managed permissions] The Organizations accounts in which to update // associated stack instances. To update all the stack instances associated with // this stack set, do not specify DeploymentTargets or Regions. If the stack set // update includes changes to the template (that is, if TemplateBody or TemplateURL - // is specified), or the Parameters, AWS CloudFormation marks all stack instances - // with a status of OUTDATED prior to updating the stack instances in the specified + // is specified), or the Parameters, CloudFormation marks all stack instances with + // a status of OUTDATED prior to updating the stack instances in the specified // accounts and Regions. If the stack set update does not include changes to the - // template or parameters, AWS CloudFormation updates the stack instances in the + // template or parameters, CloudFormation updates the stack instances in the // specified accounts and Regions, while leaving all other stack instances with // their existing stack instance status. DeploymentTargets *types.DeploymentTargets @@ -178,26 +177,26 @@ type UpdateStackSetInput struct { Description *string // The name of the IAM execution role to use to update the stack set. If you do not - // specify an execution role, AWS CloudFormation uses the + // specify an execution role, CloudFormation uses the // AWSCloudFormationStackSetExecutionRole role for the stack set operation. Specify // an IAM role only if you are using customized execution roles to control which // stack resources users and groups can include in their stack sets. If you specify - // a customized execution role, AWS CloudFormation uses that role to update the - // stack. If you do not specify a customized execution role, AWS CloudFormation - // performs the update using the role previously associated with the stack set, so - // long as you have permissions to perform operations on the stack set. + // a customized execution role, CloudFormation uses that role to update the stack. + // If you do not specify a customized execution role, CloudFormation performs the + // update using the role previously associated with the stack set, so long as you + // have permissions to perform operations on the stack set. ExecutionRoleName *string // The unique ID for this stack set operation. The operation ID also functions as - // an idempotency token, to ensure that AWS CloudFormation performs the stack set + // an idempotency token, to ensure that CloudFormation performs the stack set // operation only once, even if you retry the request multiple times. You might - // retry stack set operation requests to ensure that AWS CloudFormation - // successfully received them. If you don't specify an operation ID, AWS - // CloudFormation generates one automatically. Repeating this stack set operation - // with a new operation ID retries all stack instances whose status is OUTDATED. + // retry stack set operation requests to ensure that CloudFormation successfully + // received them. If you don't specify an operation ID, CloudFormation generates + // one automatically. Repeating this stack set operation with a new operation ID + // retries all stack instances whose status is OUTDATED. OperationId *string - // Preferences for how AWS CloudFormation performs this stack set operation. + // Preferences for how CloudFormation performs this stack set operation. OperationPreferences *types.StackSetOperationPreferences // A list of input parameters for the stack set template. @@ -214,8 +213,8 @@ type UpdateStackSetInput struct { // // * // With service-managed permissions, StackSets automatically creates the IAM roles - // required to deploy to accounts managed by AWS Organizations. For more - // information, see Grant Service-Managed Stack Set Permissions + // required to deploy to accounts managed by Organizations. For more information, + // see Grant Service-Managed Stack Set Permissions // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html). PermissionModel types.PermissionModels @@ -224,22 +223,22 @@ type UpdateStackSetInput struct { // To update all the stack instances associated with this stack set, do not specify // the Accounts or Regions properties. If the stack set update includes changes to // the template (that is, if the TemplateBody or TemplateURL properties are - // specified), or the Parameters property, AWS CloudFormation marks all stack - // instances with a status of OUTDATED prior to updating the stack instances in the - // specified accounts and Regions. If the stack set update does not include changes - // to the template or parameters, AWS CloudFormation updates the stack instances in - // the specified accounts and Regions, while leaving all other stack instances with + // specified), or the Parameters property, CloudFormation marks all stack instances + // with a status of OUTDATED prior to updating the stack instances in the specified + // accounts and Regions. If the stack set update does not include changes to the + // template or parameters, CloudFormation updates the stack instances in the + // specified accounts and Regions, while leaving all other stack instances with // their existing stack instance status. Regions []string // The key-value pairs to associate with this stack set and the stacks created from - // it. AWS CloudFormation also propagates these tags to supported resources that - // are created in the stacks. You can specify a maximum number of 50 tags. If you + // it. CloudFormation also propagates these tags to supported resources that are + // created in the stacks. You can specify a maximum number of 50 tags. If you // specify tags for this parameter, those tags replace any list of tags that are // currently associated with this stack set. This means: // // * If you don't specify - // this parameter, AWS CloudFormation doesn't modify the stack's tags. + // this parameter, CloudFormation doesn't modify the stack's tags. // // * If you // specify any tags using this parameter, you must specify all the tags that you @@ -249,13 +248,13 @@ type UpdateStackSetInput struct { // from the stack set, and therefore from the stacks and resources as well. // // * If - // you specify an empty value, AWS CloudFormation removes all currently associated + // you specify an empty value, CloudFormation removes all currently associated // tags. // - // If you specify new tags as part of an UpdateStackSet action, AWS + // If you specify new tags as part of an UpdateStackSet action, // CloudFormation checks to see if you have the required IAM permission to tag // resources. If you omit tags that are currently associated with the stack set - // from the list of tags you specify, AWS CloudFormation assumes that you want to + // from the list of tags you specify, CloudFormation assumes that you want to // remove those tags from the stack set, and checks to see if you have permission // to untag resources. If you don't have the necessary permission(s), the entire // UpdateStackSet action fails with an access denied error, and the stack set is @@ -265,18 +264,18 @@ type UpdateStackSetInput struct { // The structure that contains the template body, with a minimum length of 1 byte // and a maximum length of 51,200 bytes. For more information, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must specify only one of - // the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate - // to true. + // in the CloudFormation User Guide. Conditional: You must specify only one of the + // following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to + // true. TemplateBody *string // The location of the file that contains the template body. The URL must point to // a template (maximum size: 460,800 bytes) that is located in an Amazon S3 bucket // or a Systems Manager document. For more information, see Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must specify only one of - // the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate - // to true. + // in the CloudFormation User Guide. Conditional: You must specify only one of the + // following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to + // true. TemplateURL *string // Use the existing template that's associated with the stack set that you're diff --git a/service/cloudformation/api_op_UpdateTerminationProtection.go b/service/cloudformation/api_op_UpdateTerminationProtection.go index 7ff82f75e40..85d38ed2971 100644 --- a/service/cloudformation/api_op_UpdateTerminationProtection.go +++ b/service/cloudformation/api_op_UpdateTerminationProtection.go @@ -15,7 +15,7 @@ import ( // stack remains unchanged. For more information, see Protecting a Stack From Being // Deleted // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html) -// in the AWS CloudFormation User Guide. For nested stacks +// in the CloudFormation User Guide. For nested stacks // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html), // termination protection is set on the root stack and cannot be changed directly // on the nested stack. diff --git a/service/cloudformation/api_op_ValidateTemplate.go b/service/cloudformation/api_op_ValidateTemplate.go index 56e7592a679..113f7f09cd1 100644 --- a/service/cloudformation/api_op_ValidateTemplate.go +++ b/service/cloudformation/api_op_ValidateTemplate.go @@ -11,10 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Validates a specified template. AWS CloudFormation first checks if the template -// is valid JSON. If it isn't, AWS CloudFormation checks if the template is valid -// YAML. If both these checks fail, AWS CloudFormation returns a template -// validation error. +// Validates a specified template. CloudFormation first checks if the template is +// valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If +// both these checks fail, CloudFormation returns a template validation error. func (c *Client) ValidateTemplate(ctx context.Context, params *ValidateTemplateInput, optFns ...func(*Options)) (*ValidateTemplateOutput, error) { if params == nil { params = &ValidateTemplateInput{} @@ -36,7 +35,7 @@ type ValidateTemplateInput struct { // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must pass TemplateURL or + // in the CloudFormation User Guide. Conditional: You must pass TemplateURL or // TemplateBody. If both are passed, only TemplateBody is used. TemplateBody *string @@ -44,7 +43,7 @@ type ValidateTemplateInput struct { // (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems // Manager document. For more information, go to Template Anatomy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. Conditional: You must pass TemplateURL or + // in the CloudFormation User Guide. Conditional: You must pass TemplateURL or // TemplateBody. If both are passed, only TemplateBody is used. TemplateURL *string @@ -58,8 +57,7 @@ type ValidateTemplateOutput struct { // resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for // this parameter when you use the CreateStack or UpdateStack actions with your // template; otherwise, those actions return an InsufficientCapabilities error. For - // more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates + // more information, see Acknowledging IAM Resources in CloudFormation Templates // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). Capabilities []types.Capability diff --git a/service/cloudformation/deserializers.go b/service/cloudformation/deserializers.go index 6fc2e932022..954b68ad7c4 100644 --- a/service/cloudformation/deserializers.go +++ b/service/cloudformation/deserializers.go @@ -3895,6 +3895,132 @@ func awsAwsquery_deserializeOpErrorGetTemplateSummary(response *smithyhttp.Respo } } +type awsAwsquery_deserializeOpImportStacksToStackSet struct { +} + +func (*awsAwsquery_deserializeOpImportStacksToStackSet) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpImportStacksToStackSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorImportStacksToStackSet(response, &metadata) + } + output := &ImportStacksToStackSetOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("ImportStacksToStackSetResult") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeOpDocumentImportStacksToStackSetOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorImportStacksToStackSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidOperationException", errorCode): + return awsAwsquery_deserializeErrorInvalidOperationException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsAwsquery_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("OperationIdAlreadyExistsException", errorCode): + return awsAwsquery_deserializeErrorOperationIdAlreadyExistsException(response, errorBody) + + case strings.EqualFold("OperationInProgressException", errorCode): + return awsAwsquery_deserializeErrorOperationInProgressException(response, errorBody) + + case strings.EqualFold("StackNotFoundException", errorCode): + return awsAwsquery_deserializeErrorStackNotFoundException(response, errorBody) + + case strings.EqualFold("StackSetNotFoundException", errorCode): + return awsAwsquery_deserializeErrorStackSetNotFoundException(response, errorBody) + + case strings.EqualFold("StaleRequestException", errorCode): + return awsAwsquery_deserializeErrorStaleRequestException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsquery_deserializeOpListChangeSets struct { } @@ -7428,6 +7554,50 @@ func awsAwsquery_deserializeErrorStackInstanceNotFoundException(response *smithy return output } +func awsAwsquery_deserializeErrorStackNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.StackNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentStackNotFoundException(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + func awsAwsquery_deserializeErrorStackSetNotEmptyException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.StackSetNotEmptyException{} var buff [1024]byte @@ -13276,6 +13446,55 @@ func awsAwsquery_deserializeDocumentStackInstanceSummary(v **types.StackInstance return nil } +func awsAwsquery_deserializeDocumentStackNotFoundException(v **types.StackNotFoundException, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.StackNotFoundException + if *v == nil { + sv = &types.StackNotFoundException{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -19854,6 +20073,55 @@ func awsAwsquery_deserializeOpDocumentGetTemplateSummaryOutput(v **GetTemplateSu return nil } +func awsAwsquery_deserializeOpDocumentImportStacksToStackSetOutput(v **ImportStacksToStackSetOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ImportStacksToStackSetOutput + if *v == nil { + sv = &ImportStacksToStackSetOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("OperationId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OperationId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeOpDocumentListChangeSetsOutput(v **ListChangeSetsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/cloudformation/doc.go b/service/cloudformation/doc.go index 1a977c2f83d..c2a2ee047cd 100644 --- a/service/cloudformation/doc.go +++ b/service/cloudformation/doc.go @@ -3,19 +3,20 @@ // Package cloudformation provides the API client, operations, and parameter types // for AWS CloudFormation. // -// AWS CloudFormation AWS CloudFormation allows you to create and manage AWS -// infrastructure deployments predictably and repeatedly. You can use AWS -// CloudFormation to leverage AWS products, such as Amazon Elastic Compute Cloud, -// Amazon Elastic Block Store, Amazon Simple Notification Service, Elastic Load -// Balancing, and Auto Scaling to build highly-reliable, highly scalable, -// cost-effective applications without creating or configuring the underlying AWS -// infrastructure. With AWS CloudFormation, you declare all of your resources and -// dependencies in a template file. The template defines a collection of resources -// as a single unit called a stack. AWS CloudFormation creates and deletes all -// member resources of the stack together and manages all dependencies between the -// resources for you. For more information about AWS CloudFormation, see the AWS -// CloudFormation Product Page (http://aws.amazon.com/cloudformation/). Amazon -// CloudFormation makes use of other AWS products. If you need additional technical -// information about a specific AWS product, you can find the product's technical +// AWS CloudFormation CloudFormation allows you to create and manage Amazon Web +// Services infrastructure deployments predictably and repeatedly. You can use +// CloudFormation to leverage Amazon Web Services products, such as Amazon Elastic +// Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification Service, +// Elastic Load Balancing, and Auto Scaling to build highly-reliable, highly +// scalable, cost-effective applications without creating or configuring the +// underlying Amazon Web Services infrastructure. With CloudFormation, you declare +// all of your resources and dependencies in a template file. The template defines +// a collection of resources as a single unit called a stack. CloudFormation +// creates and deletes all member resources of the stack together and manages all +// dependencies between the resources for you. For more information about +// CloudFormation, see the CloudFormation Product Page +// (http://aws.amazon.com/cloudformation/). CloudFormation makes use of other +// Amazon Web Services products. If you need additional technical information about +// a specific Amazon Web Services product, you can find the product's technical // documentation at docs.aws.amazon.com (https://docs.aws.amazon.com/). package cloudformation diff --git a/service/cloudformation/generated.json b/service/cloudformation/generated.json index 6f4e7a263f3..d1884c3dd73 100644 --- a/service/cloudformation/generated.json +++ b/service/cloudformation/generated.json @@ -42,6 +42,7 @@ "api_op_GetStackPolicy.go", "api_op_GetTemplate.go", "api_op_GetTemplateSummary.go", + "api_op_ImportStacksToStackSet.go", "api_op_ListChangeSets.go", "api_op_ListExports.go", "api_op_ListImports.go", diff --git a/service/cloudformation/serializers.go b/service/cloudformation/serializers.go index b8483664c9c..0f49909349c 100644 --- a/service/cloudformation/serializers.go +++ b/service/cloudformation/serializers.go @@ -2031,6 +2031,62 @@ func (m *awsAwsquery_serializeOpGetTemplateSummary) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpImportStacksToStackSet struct { +} + +func (*awsAwsquery_serializeOpImportStacksToStackSet) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpImportStacksToStackSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ImportStacksToStackSetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ImportStacksToStackSet") + body.Key("Version").String("2010-05-15") + + if err := awsAwsquery_serializeOpDocumentImportStacksToStackSetInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpListChangeSets struct { } @@ -3870,6 +3926,19 @@ func awsAwsquery_serializeDocumentRollbackTriggers(v []types.RollbackTrigger, va return nil } +func awsAwsquery_serializeDocumentStackIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("member") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsAwsquery_serializeDocumentStackInstanceFilter(v *types.StackInstanceFilter, value query.Value) error { object := value.Object() _ = object @@ -4509,6 +4578,11 @@ func awsAwsquery_serializeOpDocumentCreateStackSetInput(v *CreateStackSetInput, objectKey.String(string(v.PermissionModel)) } + if v.StackId != nil { + objectKey := object.Key("StackId") + objectKey.String(*v.StackId) + } + if v.StackSetName != nil { objectKey := object.Key("StackSetName") objectKey.String(*v.StackSetName) @@ -5153,6 +5227,42 @@ func awsAwsquery_serializeOpDocumentGetTemplateSummaryInput(v *GetTemplateSummar return nil } +func awsAwsquery_serializeOpDocumentImportStacksToStackSetInput(v *ImportStacksToStackSetInput, value query.Value) error { + object := value.Object() + _ = object + + if len(v.CallAs) > 0 { + objectKey := object.Key("CallAs") + objectKey.String(string(v.CallAs)) + } + + if v.OperationId != nil { + objectKey := object.Key("OperationId") + objectKey.String(*v.OperationId) + } + + if v.OperationPreferences != nil { + objectKey := object.Key("OperationPreferences") + if err := awsAwsquery_serializeDocumentStackSetOperationPreferences(v.OperationPreferences, objectKey); err != nil { + return err + } + } + + if v.StackIds != nil { + objectKey := object.Key("StackIds") + if err := awsAwsquery_serializeDocumentStackIdList(v.StackIds, objectKey); err != nil { + return err + } + } + + if v.StackSetName != nil { + objectKey := object.Key("StackSetName") + objectKey.String(*v.StackSetName) + } + + return nil +} + func awsAwsquery_serializeOpDocumentListChangeSetsInput(v *ListChangeSetsInput, value query.Value) error { object := value.Object() _ = object diff --git a/service/cloudformation/types/errors.go b/service/cloudformation/types/errors.go index 0bc43515a09..e4dc6c63467 100644 --- a/service/cloudformation/types/errors.go +++ b/service/cloudformation/types/errors.go @@ -170,7 +170,7 @@ func (e *InvalidStateTransitionException) ErrorFault() smithy.ErrorFault { retur // The quota for the resource has already been reached. For information on resource // and stack limitations, see Limits // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) -// in the AWS CloudFormation User Guide. +// in the CloudFormation User Guide. type LimitExceededException struct { Message *string @@ -310,6 +310,26 @@ func (e *StackInstanceNotFoundException) ErrorMessage() string { func (e *StackInstanceNotFoundException) ErrorCode() string { return "StackInstanceNotFoundException" } func (e *StackInstanceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The specified stack ARN doesn’t exist or stack doesn’t exist corresponding to +// the ARN in input. +type StackNotFoundException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *StackNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *StackNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *StackNotFoundException) ErrorCode() string { return "StackNotFoundException" } +func (e *StackNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // You can't yet delete this stack set, because it still contains one or more stack // instances. Delete all stack instances from the stack set before deleting the // stack set. diff --git a/service/cloudformation/types/types.go b/service/cloudformation/types/types.go index 45caa095897..98c7b8500c1 100644 --- a/service/cloudformation/types/types.go +++ b/service/cloudformation/types/types.go @@ -7,13 +7,13 @@ import ( "time" ) -// Structure that contains the results of the account gate function which AWS +// Structure that contains the results of the account gate function which // CloudFormation invokes, if present, before proceeding with a stack set operation -// in an account and Region. For each account and Region, AWS CloudFormation lets -// you specify a Lamdba function that encapsulates any requirements that must be -// met before CloudFormation can proceed with a stack set operation in that account -// and Region. CloudFormation invokes the function each time a stack set operation -// is requested for that account and Region; if the function returns FAILED, +// in an account and Region. For each account and Region, CloudFormation lets you +// specify a Lamdba function that encapsulates any requirements that must be met +// before CloudFormation can proceed with a stack set operation in that account and +// Region. CloudFormation invokes the function each time a stack set operation is +// requested for that account and Region; if the function returns FAILED, // CloudFormation cancels the operation in that account and Region, and sets the // stack set operation result status for that account and Region to FAILED. For // more information, see Configuring a target account gate @@ -24,31 +24,30 @@ type AccountGateResult struct { // // * SUCCEEDED: The account gate function // has determined that the account and Region passes any requirements for a stack - // set operation to occur. AWS CloudFormation proceeds with the stack operation in - // that account and Region. + // set operation to occur. CloudFormation proceeds with the stack operation in that + // account and Region. // - // * FAILED: The account gate function has determined - // that the account and Region does not meet the requirements for a stack set - // operation to occur. AWS CloudFormation cancels the stack set operation in that - // account and Region, and sets the stack set operation result status for that - // account and Region to FAILED. + // * FAILED: The account gate function has determined that the + // account and Region does not meet the requirements for a stack set operation to + // occur. AWS CloudFormation cancels the stack set operation in that account and + // Region, and sets the stack set operation result status for that account and + // Region to FAILED. // - // * SKIPPED: AWS CloudFormation has skipped calling - // the account gate function for this account and Region, for one of the following - // reasons: + // * SKIPPED: CloudFormation has skipped calling the account + // gate function for this account and Region, for one of the following reasons: // - // * An account gate function has not been specified for the account and - // Region. AWS CloudFormation proceeds with the stack set operation in this account - // and Region. - // - // * The AWSCloudFormationStackSetExecutionRole of the stack set - // adminstration account lacks permissions to invoke the function. AWS + // * + // An account gate function has not been specified for the account and Region. // CloudFormation proceeds with the stack set operation in this account and // Region. // - // * Either no action is necessary, or no action is possible, on the - // stack. AWS CloudFormation skips the stack set operation in this account and - // Region. + // * The AWSCloudFormationStackSetExecutionRole of the stack set + // adminstration account lacks permissions to invoke the function. CloudFormation + // proceeds with the stack set operation in this account and Region. + // + // * Either no + // action is necessary, or no action is possible, on the stack. CloudFormation + // skips the stack set operation in this account and Region. Status AccountGateStatus // The reason for the account gate status assigned to this account and Region for @@ -69,9 +68,9 @@ type AccountGateResult struct { // stack outputs // // For more information about these account limits, and other -// CloudFormation limits, see AWS CloudFormation Limits +// CloudFormation limits, see CloudFormation Limits // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html) -// in the AWS CloudFormation User Guide. +// in the CloudFormation User Guide. type AccountLimit struct { // The name of the account limit. Values: ConcurrentResourcesLimit | StackLimit | @@ -85,15 +84,15 @@ type AccountLimit struct { } // [Service-managed permissions] Describes whether StackSets automatically deploys -// to AWS Organizations accounts that are added to a target organization or +// to Organizations accounts that are added to a target organization or // organizational unit (OU). type AutoDeployment struct { // If set to true, StackSets automatically deploys additional stack instances to - // AWS Organizations accounts that are added to a target organization or - // organizational unit (OU) in the specified Regions. If an account is removed from - // a target organization or OU, StackSets deletes stack instances from the account - // in the specified Regions. + // Organizations accounts that are added to a target organization or organizational + // unit (OU) in the specified Regions. If an account is removed from a target + // organization or OU, StackSets deletes stack instances from the account in the + // specified Regions. Enabled *bool // If set to true, stack resources are retained when an account is removed from a @@ -120,16 +119,16 @@ type BatchDescribeTypeConfigurationsError struct { noSmithyDocumentSerde } -// The Change structure describes the changes AWS CloudFormation will perform if -// you execute the change set. +// The Change structure describes the changes CloudFormation will perform if you +// execute the change set. type Change struct { - // A ResourceChange structure that describes the resource and action that AWS + // A ResourceChange structure that describes the resource and action that // CloudFormation will perform. ResourceChange *ResourceChange - // The type of entity that AWS CloudFormation changes. Currently, the only entity - // type is Resource. + // The type of entity that CloudFormation changes. Currently, the only entity type + // is Resource. Type ChangeType noSmithyDocumentSerde @@ -153,7 +152,7 @@ type ChangeSetSummary struct { // If the change set execution status is AVAILABLE, you can execute the change set. // If you can’t execute the change set, the status indicates why. For example, a - // change set might be in an UNAVAILABLE state because AWS CloudFormation is still + // change set might be in an UNAVAILABLE state because CloudFormation is still // creating it or in an OBSOLETE state because the stack was already updated. ExecutionStatus ExecutionStatus @@ -177,13 +176,13 @@ type ChangeSetSummary struct { Status ChangeSetStatus // A description of the change set's status. For example, if your change set is in - // the FAILED state, AWS CloudFormation shows the error message. + // the FAILED state, CloudFormation shows the error message. StatusReason *string noSmithyDocumentSerde } -// [Service-managed permissions] The AWS Organizations accounts to which StackSets +// [Service-managed permissions] The Organizations accounts to which StackSets // deploys. StackSets does not deploy stack instances to the organization // management account, even if the organization management account is in your // organization or in an OU in your organization. For update operations, you can @@ -191,7 +190,7 @@ type ChangeSetSummary struct { // operations, specify OrganizationalUnitIds. type DeploymentTargets struct { - // The names of one or more AWS accounts for which you want to deploy stack set + // The names of one or more accounts for which you want to deploy stack set // updates. Accounts []string @@ -288,8 +287,8 @@ type Output struct { type Parameter struct { // The key associated with the parameter. If you don't specify a key and value for - // a particular parameter, AWS CloudFormation uses the default value that is - // specified in your template. + // a particular parameter, CloudFormation uses the default value that is specified + // in your template. ParameterKey *string // The input value associated with the parameter. @@ -309,8 +308,8 @@ type Parameter struct { noSmithyDocumentSerde } -// A set of criteria that AWS CloudFormation uses to validate parameter values. -// Although other constraints might be defined in the stack template, AWS +// A set of criteria that CloudFormation uses to validate parameter values. +// Although other constraints might be defined in the stack template, // CloudFormation returns only the AllowedValues property. type ParameterConstraints struct { @@ -330,10 +329,10 @@ type ParameterDeclaration struct { Description *string // Flag that indicates whether the parameter value is shown as plain text in logs - // and in the AWS Management Console. + // and in the Management Console. NoEcho *bool - // The criteria that AWS CloudFormation uses to validate parameter values. + // The criteria that CloudFormation uses to validate parameter values. ParameterConstraints *ParameterConstraints // The name that is associated with the parameter. @@ -345,11 +344,10 @@ type ParameterDeclaration struct { noSmithyDocumentSerde } -// Context information that enables AWS CloudFormation to uniquely identify a -// resource. AWS CloudFormation uses context key-value pairs in cases where a -// resource's logical and physical IDs are not enough to uniquely identify that -// resource. Each context key-value pair specifies a resource that contains the -// targeted resource. +// Context information that enables CloudFormation to uniquely identify a resource. +// CloudFormation uses context key-value pairs in cases where a resource's logical +// and physical IDs are not enough to uniquely identify that resource. Each context +// key-value pair specifies a resource that contains the targeted resource. type PhysicalResourceIdContextKeyValuePair struct { // The resource context key. @@ -411,7 +409,7 @@ type PropertyDifference struct { // activated in your account in order for the module itself to be activated. For // more information, see Activating public modules for use in your account // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/modules.html#module-enabling) -// in the AWS CloudFormation User Guide. +// in the CloudFormation User Guide. type RequiredActivatedType struct { // The type name of the public extension. If you specified a TypeNameAlias when @@ -438,12 +436,12 @@ type RequiredActivatedType struct { noSmithyDocumentSerde } -// The ResourceChange structure describes the resource and the action that AWS +// The ResourceChange structure describes the resource and the action that // CloudFormation will perform on it if you execute this change set. type ResourceChange struct { - // The action that AWS CloudFormation takes on the resource, such as Add (adds a - // new resource), Modify (changes a resource), Remove (deletes a resource), Import + // The action that CloudFormation takes on the resource, such as Add (adds a new + // resource), Modify (changes a resource), Remove (deletes a resource), Import // (imports a resource), or Dynamic (exact action for the resource cannot be // determined). Action ChangeAction @@ -452,7 +450,7 @@ type ResourceChange struct { ChangeSetId *string // For the Modify action, a list of ResourceChangeDetail structures that describes - // the changes that AWS CloudFormation will make to the resource. + // the changes that CloudFormation will make to the resource. Details []ResourceChangeDetail // The resource's logical ID, which is defined in the stack's template. @@ -466,7 +464,7 @@ type ResourceChange struct { // have physical IDs because they haven't been created. PhysicalResourceId *string - // For the Modify action, indicates whether AWS CloudFormation will replace the + // For the Modify action, indicates whether CloudFormation will replace the // resource by creating a new one and deleting the old one. This value depends on // the value of the RequiresRecreation property in the ResourceTargetDefinition // structure. For example, if the RequiresRecreation field is Always and the @@ -478,7 +476,7 @@ type ResourceChange struct { // Conditionally, and then Never. Replacement Replacement - // The type of AWS CloudFormation resource, such as AWS::S3::Bucket. + // The type of CloudFormation resource, such as AWS::S3::Bucket. ResourceType *string // For the Modify action, indicates which resource attribute is triggering this @@ -490,7 +488,7 @@ type ResourceChange struct { } // For a resource with Modify as the action, the ResourceChange structure describes -// the changes AWS CloudFormation will make to that resource. +// the changes CloudFormation will make to that resource. type ResourceChangeDetail struct { // The identity of the entity that triggered this change. This entity is a member @@ -520,28 +518,28 @@ type ResourceChangeDetail struct { // // * Automatic entities are AWS::CloudFormation::Stack // resource types, which are also known as nested stacks. If you made no changes to - // the AWS::CloudFormation::Stack resource, AWS CloudFormation sets the - // ChangeSource to Automatic because the nested stack's template might have - // changed. Changes to a nested stack's template aren't visible to AWS - // CloudFormation until you run an update on the parent stack. + // the AWS::CloudFormation::Stack resource, CloudFormation sets the ChangeSource to + // Automatic because the nested stack's template might have changed. Changes to a + // nested stack's template aren't visible to CloudFormation until you run an update + // on the parent stack. ChangeSource ChangeSource - // Indicates whether AWS CloudFormation can determine the target value, and whether - // the target value will change before you execute a change set. For Static - // evaluations, AWS CloudFormation can determine that the target value will change, - // and its value. For example, if you directly modify the InstanceType property of - // an EC2 instance, AWS CloudFormation knows that this property value will change, - // and its value, so this is a Static evaluation. For Dynamic evaluations, cannot - // determine the target value because it depends on the result of an intrinsic - // function, such as a Ref or Fn::GetAtt intrinsic function, when the stack is - // updated. For example, if your template includes a reference to a resource that - // is conditionally recreated, the value of the reference (the physical ID of the + // Indicates whether CloudFormation can determine the target value, and whether the + // target value will change before you execute a change set. For Static + // evaluations, CloudFormation can determine that the target value will change, and + // its value. For example, if you directly modify the InstanceType property of an + // EC2 instance, CloudFormation knows that this property value will change, and its + // value, so this is a Static evaluation. For Dynamic evaluations, cannot determine + // the target value because it depends on the result of an intrinsic function, such + // as a Ref or Fn::GetAtt intrinsic function, when the stack is updated. For + // example, if your template includes a reference to a resource that is + // conditionally recreated, the value of the reference (the physical ID of the // resource) might change, depending on if the resource is recreated. If the // resource is recreated, it will have a new physical ID, so all references to that // resource will also be updated. Evaluation EvaluationType - // A ResourceTargetDefinition structure that describes the field that AWS + // A ResourceTargetDefinition structure that describes the field that // CloudFormation will change and whether the resource will be recreated. Target *ResourceTargetDefinition @@ -568,7 +566,7 @@ type ResourceIdentifierSummary struct { noSmithyDocumentSerde } -// The field that AWS CloudFormation will change, such as the name of a resource's +// The field that CloudFormation will change, such as the name of a resource's // property, and whether the resource will be recreated. type ResourceTargetDefinition struct { @@ -585,7 +583,7 @@ type ResourceTargetDefinition struct { // Conditionally. To determine the conditions for a Conditionally recreation, see // the update behavior for that property // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. RequiresRecreation RequiresRecreation noSmithyDocumentSerde @@ -609,7 +607,7 @@ type ResourceToImport struct { // The type of resource to import into your stack, such as AWS::S3::Bucket. For a // list of supported resource types, see Resources that support import operations // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. // // This member is required. ResourceType *string @@ -617,12 +615,12 @@ type ResourceToImport struct { noSmithyDocumentSerde } -// Structure containing the rollback triggers for AWS CloudFormation to monitor -// during stack creation and updating operations, and for the specified monitoring -// period afterwards. Rollback triggers enable you to have AWS CloudFormation -// monitor the state of your application during stack creation and updating, and to -// roll back that operation if the application breaches the threshold of any of the -// alarms you've specified. For more information, see Monitor and Roll Back Stack +// Structure containing the rollback triggers for CloudFormation to monitor during +// stack creation and updating operations, and for the specified monitoring period +// afterwards. Rollback triggers enable you to have CloudFormation monitor the +// state of your application during stack creation and updating, and to roll back +// that operation if the application breaches the threshold of any of the alarms +// you've specified. For more information, see Monitor and Roll Back Stack // Operations // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-rollback-triggers.html). type RollbackConfiguration struct { @@ -642,7 +640,7 @@ type RollbackConfiguration struct { // immediately once the operation completes. MonitoringTimeInMinutes *int32 - // The triggers to monitor during stack creation or update actions. By default, AWS + // The triggers to monitor during stack creation or update actions. By default, // CloudFormation saves the rollback triggers specified for a stack and applies // them to any subsequent update operations for the stack, unless you specify // otherwise. If you do specify rollback triggers for this parameter, those @@ -669,7 +667,7 @@ type RollbackConfiguration struct { noSmithyDocumentSerde } -// A rollback trigger AWS CloudFormation monitors during creation and updating of +// A rollback trigger CloudFormation monitors during creation and updating of // stacks. If any of the alarms you specify goes to ALARM state during the stack // operation or within the specified monitoring period afterwards, CloudFormation // rolls back the entire stack operation. @@ -742,7 +740,7 @@ type Stack struct { // on the nested stack. For more information, see Protecting a Stack From Being // Deleted // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. EnableTerminationProtection *bool // The time the stack was last updated. This field will only be returned if the @@ -763,23 +761,23 @@ type Stack struct { // root stack is also the parent stack. For more information, see Working with // Nested Stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. ParentId *string - // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) - // role that is associated with the stack. During a stack operation, AWS - // CloudFormation uses this role's credentials to make calls on your behalf. + // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role + // that is associated with the stack. During a stack operation, CloudFormation uses + // this role's credentials to make calls on your behalf. RoleARN *string - // The rollback triggers for AWS CloudFormation to monitor during stack creation - // and updating operations, and for the specified monitoring period afterwards. + // The rollback triggers for CloudFormation to monitor during stack creation and + // updating operations, and for the specified monitoring period afterwards. RollbackConfiguration *RollbackConfiguration // For nested stacks--stacks created as resources for another stack--the stack ID // of the top-level stack to which the nested stack ultimately belongs. For more // information, see Working with Nested Stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. RootId *string // Unique identifier of the stack. @@ -810,14 +808,14 @@ type StackDriftInformation struct { // configuration. A stack is considered to have drifted if one or more of its // resources have drifted. // - // * NOT_CHECKED: AWS CloudFormation has not checked if - // the stack differs from its expected template configuration. + // * NOT_CHECKED: CloudFormation has not checked if the + // stack differs from its expected template configuration. // - // * IN_SYNC: The - // stack's actual configuration matches its expected template configuration. + // * IN_SYNC: The stack's + // actual configuration matches its expected template configuration. // - // * - // UNKNOWN: This value is reserved for future use. + // * UNKNOWN: + // This value is reserved for future use. // // This member is required. StackDriftStatus StackDriftStatus @@ -842,14 +840,14 @@ type StackDriftInformationSummary struct { // configuration. A stack is considered to have drifted if one or more of its // resources have drifted. // - // * NOT_CHECKED: AWS CloudFormation has not checked if - // the stack differs from its expected template configuration. + // * NOT_CHECKED: CloudFormation has not checked if the + // stack differs from its expected template configuration. // - // * IN_SYNC: The - // stack's actual configuration matches its expected template configuration. + // * IN_SYNC: The stack's + // actual configuration matches its expected template configuration. // - // * - // UNKNOWN: This value is reserved for future use. + // * UNKNOWN: + // This value is reserved for future use. // // This member is required. StackDriftStatus StackDriftStatus @@ -913,15 +911,16 @@ type StackEvent struct { // Success/failure message associated with the resource. ResourceStatusReason *string - // Type of resource. (For more information, go to AWS Resource Types Reference + // Type of resource. (For more information, go to Amazon Web Services Resource + // Types Reference // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the AWS CloudFormation User Guide.) + // in the CloudFormation User Guide.) ResourceType *string noSmithyDocumentSerde } -// An AWS CloudFormation stack, in a specific account and Region, that's part of a +// An CloudFormation stack, in a specific account and Region, that's part of a // stack set operation. A stack instance is a reference to an attempted or actual // stack in a given account within a given Region. A stack instance can exist // without a stack—for example, if the stack couldn't be created for some reason. A @@ -930,8 +929,8 @@ type StackEvent struct { // stack and the stack status. type StackInstance struct { - // [Self-managed permissions] The name of the AWS account that the stack instance - // is associated with. + // [Self-managed permissions] The name of the account that the stack instance is + // associated with. Account *string // Status of the stack instance's actual configuration compared to the expected @@ -943,11 +942,11 @@ type StackInstance struct { // considered to have drifted if one or more of the resources in the associated // stack have drifted. // - // * NOT_CHECKED: AWS CloudFormation has not checked if the - // stack instance differs from its expected stack set configuration. + // * NOT_CHECKED: CloudFormation has not checked if the stack + // instance differs from its expected stack set configuration. // - // * IN_SYNC: - // The stack instance's actual configuration matches its expected stack set + // * IN_SYNC: The + // stack instance's actual configuration matches its expected stack set // configuration. // // * UNKNOWN: This value is reserved for future use. @@ -967,7 +966,7 @@ type StackInstance struct { // overridden in this stack instance. ParameterOverrides []Parameter - // The name of the AWS Region that the stack instance is associated with. + // The name of the Region that the stack instance is associated with. Region *string // The ID of the stack instance. @@ -1057,8 +1056,8 @@ type StackInstanceFilter struct { // The structure that contains summary information about a stack instance. type StackInstanceSummary struct { - // [Self-managed permissions] The name of the AWS account that the stack instance - // is associated with. + // [Self-managed permissions] The name of the account that the stack instance is + // associated with. Account *string // Status of the stack instance's actual configuration compared to the expected @@ -1070,11 +1069,11 @@ type StackInstanceSummary struct { // considered to have drifted if one or more of the resources in the associated // stack have drifted. // - // * NOT_CHECKED: AWS CloudFormation has not checked if the - // stack instance differs from its expected stack set configuration. + // * NOT_CHECKED: CloudFormation has not checked if the stack + // instance differs from its expected stack set configuration. // - // * IN_SYNC: - // The stack instance's actual configuration matches its expected stack set + // * IN_SYNC: The + // stack instance's actual configuration matches its expected stack set // configuration. // // * UNKNOWN: This value is reserved for future use. @@ -1090,7 +1089,7 @@ type StackInstanceSummary struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html). OrganizationalUnitId *string - // The name of the AWS Region that the stack instance is associated with. + // The name of the Region that the stack instance is associated with. Region *string // The ID of the stack instance. @@ -1145,9 +1144,10 @@ type StackResource struct { // This member is required. ResourceStatus ResourceStatus - // Type of resource. (For more information, go to AWS Resource Types Reference + // Type of resource. (For more information, go to Amazon Web Services Resource + // Types Reference // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the AWS CloudFormation User Guide.) + // in the CloudFormation User Guide.) // // This member is required. ResourceType *string @@ -1172,7 +1172,7 @@ type StackResource struct { ModuleInfo *ModuleInfo // The name or unique identifier that corresponds to a physical instance ID of a - // resource supported by AWS CloudFormation. + // resource supported by CloudFormation. PhysicalResourceId *string // Success/failure message associated with the resource. @@ -1205,9 +1205,10 @@ type StackResourceDetail struct { // This member is required. ResourceStatus ResourceStatus - // Type of resource. ((For more information, go to AWS Resource Types Reference + // Type of resource. ((For more information, go to Amazon Web Services Resource + // Types Reference // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the AWS CloudFormation User Guide.) + // in the CloudFormation User Guide.) // // This member is required. ResourceType *string @@ -1225,7 +1226,7 @@ type StackResourceDetail struct { // The content of the Metadata attribute declared for the resource. For more // information, see Metadata Attribute // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. Metadata *string // Contains information about the module from which the resource was created, if @@ -1233,7 +1234,7 @@ type StackResourceDetail struct { ModuleInfo *ModuleInfo // The name or unique identifier that corresponds to a physical instance ID of a - // resource supported by AWS CloudFormation. + // resource supported by CloudFormation. PhysicalResourceId *string // Success/failure message associated with the resource. @@ -1249,7 +1250,7 @@ type StackResourceDetail struct { } // Contains the drift information for a resource that has been checked for drift. -// This includes actual and expected property values for resources in which AWS +// This includes actual and expected property values for resources in which // CloudFormation has detected drift. Only resource properties explicitly defined // in the stack template are checked for drift. For more information, see Detecting // Unregulated Configuration Changes to Stacks and Resources @@ -1292,13 +1293,12 @@ type StackResourceDrift struct { // resources's actual configuration matches its expected template configuration. // // * - // NOT_CHECKED: AWS CloudFormation does not currently return this value. + // NOT_CHECKED: CloudFormation does not currently return this value. // // This member is required. StackResourceDriftStatus StackResourceDriftStatus - // Time at which AWS CloudFormation performed drift detection on the stack - // resource. + // Time at which CloudFormation performed drift detection on the stack resource. // // This member is required. Timestamp *time.Time @@ -1319,14 +1319,13 @@ type StackResourceDrift struct { ModuleInfo *ModuleInfo // The name or unique identifier that corresponds to a physical instance ID of a - // resource supported by AWS CloudFormation. + // resource supported by CloudFormation. PhysicalResourceId *string - // Context information that enables AWS CloudFormation to uniquely identify a - // resource. AWS CloudFormation uses context key-value pairs in cases where a - // resource's logical and physical IDs are not enough to uniquely identify that - // resource. Each context key-value pair specifies a unique resource that contains - // the targeted resource. + // Context information that enables CloudFormation to uniquely identify a resource. + // CloudFormation uses context key-value pairs in cases where a resource's logical + // and physical IDs are not enough to uniquely identify that resource. Each context + // key-value pair specifies a unique resource that contains the targeted resource. PhysicalResourceIdContext []PhysicalResourceIdContextKeyValuePair // A collection of the resource properties whose actual values differ from their @@ -1350,10 +1349,10 @@ type StackResourceDriftInformation struct { // * MODIFIED: The resource differs from its expected // configuration. // - // * NOT_CHECKED: AWS CloudFormation has not checked if the - // resource differs from its expected configuration. Any resources that do not - // currently support drift detection have a status of NOT_CHECKED. For more - // information, see Resources that Support Drift Detection + // * NOT_CHECKED: CloudFormation has not checked if the resource + // differs from its expected configuration. Any resources that do not currently + // support drift detection have a status of NOT_CHECKED. For more information, see + // Resources that Support Drift Detection // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). // // * @@ -1363,8 +1362,8 @@ type StackResourceDriftInformation struct { // This member is required. StackResourceDriftStatus StackResourceDriftStatus - // When AWS CloudFormation last checked if the resource had drifted from its - // expected configuration. + // When CloudFormation last checked if the resource had drifted from its expected + // configuration. LastCheckTimestamp *time.Time noSmithyDocumentSerde @@ -1383,17 +1382,17 @@ type StackResourceDriftInformationSummary struct { // * MODIFIED: The resource differs from its expected // configuration. // - // * NOT_CHECKED: AWS CloudFormation has not checked if the - // resource differs from its expected configuration. Any resources that do not - // currently support drift detection have a status of NOT_CHECKED. For more - // information, see Resources that Support Drift Detection + // * NOT_CHECKED: CloudFormation has not checked if the resource + // differs from its expected configuration. Any resources that do not currently + // support drift detection have a status of NOT_CHECKED. For more information, see + // Resources that Support Drift Detection // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). // If you performed an ContinueUpdateRollback operation on a stack, any resources // included in ResourcesToSkip will also have a status of NOT_CHECKED. For more // information on skipping resources during rollback operations, see Continue // Rolling Back an Update // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. // // * IN_SYNC: The resources's actual // configuration matches its expected configuration. @@ -1401,8 +1400,8 @@ type StackResourceDriftInformationSummary struct { // This member is required. StackResourceDriftStatus StackResourceDriftStatus - // When AWS CloudFormation last checked if the resource had drifted from its - // expected configuration. + // When CloudFormation last checked if the resource had drifted from its expected + // configuration. LastCheckTimestamp *time.Time noSmithyDocumentSerde @@ -1426,9 +1425,10 @@ type StackResourceSummary struct { // This member is required. ResourceStatus ResourceStatus - // Type of resource. (For more information, go to AWS Resource Types Reference + // Type of resource. (For more information, go to Amazon Web Services Resource + // Types Reference // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the AWS CloudFormation User Guide.) + // in the CloudFormation User Guide.) // // This member is required. ResourceType *string @@ -1455,7 +1455,7 @@ type StackResourceSummary struct { } // A structure that contains information about a stack set. A stack set enables you -// to provision stacks into AWS accounts and across Regions by using a single +// to provision stacks into accounts and across Regions by using a single // CloudFormation template. In the stack set, you specify the template to use, as // well as any parameters and capabilities that the template requires. type StackSet struct { @@ -1465,19 +1465,18 @@ type StackSet struct { // can manage specific stack sets within the same administrator account. For more // information, see Prerequisites: Granting Permissions for Stack Set Operations // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. AdministrationRoleARN *string // [Service-managed permissions] Describes whether StackSets automatically deploys - // to AWS Organizations accounts that are added to a target organization or + // to Organizations accounts that are added to a target organization or // organizational unit (OU). AutoDeployment *AutoDeployment // The capabilities that are allowed in the stack set. Some stack set templates - // might include resources that can affect permissions in your AWS account—for - // example, by creating new AWS Identity and Access Management (IAM) users. For - // more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates. + // might include resources that can affect permissions in your account—for example, + // by creating new Identity and Access Management (IAM) users. For more + // information, see Acknowledging IAM Resources in CloudFormation Templates. // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities) Capabilities []Capability @@ -1508,8 +1507,8 @@ type StackSet struct { // // * // With service-managed permissions, StackSets automatically creates the IAM roles - // required to deploy to accounts managed by AWS Organizations. For more - // information, see Grant Service-Managed Stack Set Permissions + // required to deploy to accounts managed by Organizations. For more information, + // see Grant Service-Managed Stack Set Permissions // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html). PermissionModel PermissionModels @@ -1549,7 +1548,7 @@ type StackSet struct { // being performed on the stack set. For more information, see Detecting Unmanaged // Changes in Stack Sets // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html) -// in the AWS CloudFormation User Guide. +// in the CloudFormation User Guide. type StackSetDriftDetectionDetails struct { // The status of the stack set drift detection operation. @@ -1582,10 +1581,10 @@ type StackSetDriftDetectionDetails struct { // or more of the resources in the associated stack have drifted. // // * NOT_CHECKED: - // AWS CloudFormation has not checked the stack set for drift. + // CloudFormation has not checked the stack set for drift. // - // * IN_SYNC: All of - // the stack instances belonging to the stack set stack match from the expected + // * IN_SYNC: All of the + // stack instances belonging to the stack set stack match from the expected // template and parameter configuration. DriftStatus StackSetDriftStatus @@ -1642,18 +1641,18 @@ type StackSetOperation struct { // can manage specific stack sets within the same administrator account. For more // information, see Define Permissions for Multiple Administrators // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. AdministrationRoleARN *string // The time at which the operation was initiated. Note that the creation times for // the stack set operation might differ from the creation time of the individual - // stacks themselves. This is because AWS CloudFormation needs to perform - // preparatory work for the operation, such as dispatching the work to the - // requested Regions, before actually creating the first stacks. + // stacks themselves. This is because CloudFormation needs to perform preparatory + // work for the operation, such as dispatching the work to the requested Regions, + // before actually creating the first stacks. CreationTimestamp *time.Time - // [Service-managed permissions] The AWS Organizations accounts affected by the - // stack operation. + // [Service-managed permissions] The Organizations accounts affected by the stack + // operation. DeploymentTargets *DeploymentTargets // The time at which the stack set operation ended, across all accounts and Regions @@ -1669,7 +1668,7 @@ type StackSetOperation struct { // The unique ID of a stack set operation. OperationId *string - // The preferences for how AWS CloudFormation performs this stack set operation. + // The preferences for how CloudFormation performs this stack set operation. OperationPreferences *StackSetOperationPreferences // For stack set operations of action type DELETE, specifies whether to remove the @@ -1684,7 +1683,7 @@ type StackSetOperation struct { // is DETECT_DRIFT. For more information, see Detecting Unmanaged Changes in Stack // Sets // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. StackSetDriftDetectionDetails *StackSetDriftDetectionDetails // The ID of the stack set. @@ -1697,7 +1696,7 @@ type StackSetOperation struct { // is applied for each Region during stack create and update operations. If the // number of failed stacks within a Region exceeds the failure tolerance, the // status of the operation in the Region is set to FAILED. This in turn sets the - // status of the operation as a whole to FAILED, and AWS CloudFormation cancels the + // status of the operation as a whole to FAILED, and CloudFormation cancels the // operation in any remaining Regions. // // * QUEUED: [Service-managed permissions] For @@ -1705,15 +1704,15 @@ type StackSetOperation struct { // queued to be performed. For more information, see the stack set operation status // codes // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. // - // * RUNNING: The operation is currently - // being performed. + // * RUNNING: The operation is currently being + // performed. // // * STOPPED: The user has cancelled the operation. // - // * STOPPING: - // The operation is in the process of stopping, at user request. + // * STOPPING: The + // operation is in the process of stopping, at user request. // // * SUCCEEDED: The // operation completed creating or updating all the specified stacks without @@ -1723,24 +1722,24 @@ type StackSetOperation struct { noSmithyDocumentSerde } -// The user-specified preferences for how AWS CloudFormation performs a stack set +// The user-specified preferences for how CloudFormation performs a stack set // operation. For more information on maximum concurrent accounts and failure // tolerance, see Stack set operation options // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). type StackSetOperationPreferences struct { - // The number of accounts, per Region, for which this operation can fail before AWS + // The number of accounts, per Region, for which this operation can fail before // CloudFormation stops the operation in that Region. If the operation is stopped - // in a Region, AWS CloudFormation doesn't attempt the operation in any subsequent + // in a Region, CloudFormation doesn't attempt the operation in any subsequent // Regions. Conditional: You must specify either FailureToleranceCount or // FailureTolerancePercentage (but not both). By default, 0 is specified. FailureToleranceCount *int32 // The percentage of accounts, per Region, for which this stack operation can fail - // before AWS CloudFormation stops the operation in that Region. If the operation - // is stopped in a Region, AWS CloudFormation doesn't attempt the operation in any + // before CloudFormation stops the operation in that Region. If the operation is + // stopped in a Region, CloudFormation doesn't attempt the operation in any // subsequent Regions. When calculating the number of accounts based on the - // specified percentage, AWS CloudFormation rounds down to the next whole number. + // specified percentage, CloudFormation rounds down to the next whole number. // Conditional: You must specify either FailureToleranceCount or // FailureTolerancePercentage, but not both. By default, 0 is specified. FailureTolerancePercentage *int32 @@ -1757,7 +1756,7 @@ type StackSetOperationPreferences struct { // The maximum percentage of accounts in which to perform this operation at one // time. When calculating the number of accounts based on the specified percentage, - // AWS CloudFormation rounds down to the next whole number. This is true except in + // CloudFormation rounds down to the next whole number. This is true except in // cases where rounding down would result is zero. In this case, CloudFormation // sets the number as one instead. Note that this setting lets you specify the // maximum for operations. For large deployments, under certain circumstances the @@ -1766,8 +1765,8 @@ type StackSetOperationPreferences struct { // MaxConcurrentPercentage, but not both. By default, 1 is specified. MaxConcurrentPercentage *int32 - // The concurrency type of deploying StackSets operations in regions, could be in - // parallel or one region at a time. + // The concurrency type of deploying StackSets operations in Regions, could be in + // parallel or one Region at a time. RegionConcurrencyType RegionConcurrencyType // The order of the Regions in where you want to perform the stack operation. @@ -1780,11 +1779,10 @@ type StackSetOperationPreferences struct { // for a given account in a given Region. type StackSetOperationResultSummary struct { - // [Self-managed permissions] The name of the AWS account for this operation - // result. + // [Self-managed permissions] The name of the account for this operation result. Account *string - // The results of the account gate function AWS CloudFormation invokes, if present, + // The results of the account gate function CloudFormation invokes, if present, // before proceeding with stack set operations in an account AccountGateResult *AccountGateResult @@ -1793,7 +1791,7 @@ type StackSetOperationResultSummary struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html). OrganizationalUnitId *string - // The name of the AWS Region for this operation result. + // The name of the Region for this operation result. Region *string // The result status of the stack set operation for the given account in the given @@ -1836,9 +1834,9 @@ type StackSetOperationSummary struct { // The time at which the operation was initiated. Note that the creation times for // the stack set operation might differ from the creation time of the individual - // stacks themselves. This is because AWS CloudFormation needs to perform - // preparatory work for the operation, such as dispatching the work to the - // requested Regions, before actually creating the first stacks. + // stacks themselves. This is because CloudFormation needs to perform preparatory + // work for the operation, such as dispatching the work to the requested Regions, + // before actually creating the first stacks. CreationTimestamp *time.Time // The time at which the stack set operation ended, across all accounts and Regions @@ -1856,23 +1854,23 @@ type StackSetOperationSummary struct { // operation is applied for each Region during stack create and update operations. // If the number of failed stacks within a Region exceeds the failure tolerance, // the status of the operation in the Region is set to FAILED. This in turn sets - // the status of the operation as a whole to FAILED, and AWS CloudFormation cancels - // the operation in any remaining Regions. + // the status of the operation as a whole to FAILED, and CloudFormation cancels the + // operation in any remaining Regions. // - // * QUEUED: [Service-managed permissions] - // For automatic deployments that require a sequence of operations, the operation - // is queued to be performed. For more information, see the stack set operation - // status codes + // * QUEUED: [Service-managed permissions] For + // automatic deployments that require a sequence of operations, the operation is + // queued to be performed. For more information, see the stack set operation status + // codes // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-status-codes) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. // - // * RUNNING: The operation is currently - // being performed. + // * RUNNING: The operation is currently being + // performed. // // * STOPPED: The user has cancelled the operation. // - // * STOPPING: - // The operation is in the process of stopping, at user request. + // * STOPPING: The + // operation is in the process of stopping, at user request. // // * SUCCEEDED: The // operation completed creating or updating all the specified stacks without @@ -1886,8 +1884,7 @@ type StackSetOperationSummary struct { type StackSetSummary struct { // [Service-managed permissions] Describes whether StackSets automatically deploys - // to AWS Organizations accounts that are added to a target organizational unit - // (OU). + // to Organizations accounts that are added to a target organizational unit (OU). AutoDeployment *AutoDeployment // A description of the stack set that you specify when the stack set is created or @@ -1905,10 +1902,10 @@ type StackSetSummary struct { // or more of the resources in the associated stack have drifted. // // * NOT_CHECKED: - // AWS CloudFormation has not checked the stack set for drift. + // CloudFormation has not checked the stack set for drift. // - // * IN_SYNC: All of - // the stack instances belonging to the stack set stack match from the expected + // * IN_SYNC: All of the + // stack instances belonging to the stack set stack match from the expected // template and parameter configuration. // // * UNKNOWN: This value is reserved for @@ -1930,8 +1927,8 @@ type StackSetSummary struct { // // * // With service-managed permissions, StackSets automatically creates the IAM roles - // required to deploy to accounts managed by AWS Organizations. For more - // information, see Grant Service-Managed Stack Set Permissions + // required to deploy to accounts managed by Organizations. For more information, + // see Grant Service-Managed Stack Set Permissions // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html). PermissionModel PermissionModels @@ -1984,14 +1981,14 @@ type StackSummary struct { // root stack is also the parent stack. For more information, see Working with // Nested Stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. ParentId *string // For nested stacks--stacks created as resources for another stack--the stack ID // of the top-level stack to which the nested stack ultimately belongs. For more // information, see Working with Nested Stacks // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. RootId *string // Unique stack identifier. @@ -2007,12 +2004,12 @@ type StackSummary struct { } // The Tag type enables you to specify a key-value pair that can be used to store -// information about an AWS CloudFormation stack. +// information about an CloudFormation stack. type Tag struct { // Required. A string used to identify this tag. You can specify a maximum of 128 - // characters for a tag key. Tags owned by Amazon Web Services (AWS) have the - // reserved prefix: aws:. + // characters for a tag key. Tags owned by Amazon Web Services (Amazon Web + // Services) have the reserved prefix: aws:. // // This member is required. Key *string diff --git a/service/cloudformation/validators.go b/service/cloudformation/validators.go index b6ccfcff709..2c9654abef2 100644 --- a/service/cloudformation/validators.go +++ b/service/cloudformation/validators.go @@ -510,6 +510,26 @@ func (m *validateOpGetStackPolicy) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpImportStacksToStackSet struct { +} + +func (*validateOpImportStacksToStackSet) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpImportStacksToStackSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ImportStacksToStackSetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpImportStacksToStackSetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListChangeSets struct { } @@ -930,6 +950,10 @@ func addOpGetStackPolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetStackPolicy{}, middleware.After) } +func addOpImportStacksToStackSetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpImportStacksToStackSet{}, middleware.After) +} + func addOpListChangeSetsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListChangeSets{}, middleware.After) } @@ -1568,6 +1592,24 @@ func validateOpGetStackPolicyInput(v *GetStackPolicyInput) error { } } +func validateOpImportStacksToStackSetInput(v *ImportStacksToStackSetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ImportStacksToStackSetInput"} + if v.StackSetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("StackSetName")) + } + if v.StackIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("StackIds")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListChangeSetsInput(v *ListChangeSetsInput) error { if v == nil { return nil diff --git a/service/cloudwatch/api_op_GetMetricStatistics.go b/service/cloudwatch/api_op_GetMetricStatistics.go index c0bf73b4afa..4aa58cc521c 100644 --- a/service/cloudwatch/api_op_GetMetricStatistics.go +++ b/service/cloudwatch/api_op_GetMetricStatistics.go @@ -60,7 +60,8 @@ import ( // 5 minutes. After 63 days, the data is further aggregated and is available with a // resolution of 1 hour. CloudWatch started retaining 5-minute and 1-hour metric // data as of July 9, 2016. For information about metrics and dimensions supported -// by AWS services, see the Amazon CloudWatch Metrics and Dimensions Reference +// by Amazon Web Services services, see the Amazon CloudWatch Metrics and +// Dimensions Reference // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html) // in the Amazon CloudWatch User Guide. func (c *Client) GetMetricStatistics(ctx context.Context, params *GetMetricStatisticsInput, optFns ...func(*Options)) (*GetMetricStatisticsOutput, error) { diff --git a/service/cloudwatch/api_op_GetMetricWidgetImage.go b/service/cloudwatch/api_op_GetMetricWidgetImage.go index e9f8308ad3b..3331987d370 100644 --- a/service/cloudwatch/api_op_GetMetricWidgetImage.go +++ b/service/cloudwatch/api_op_GetMetricWidgetImage.go @@ -64,9 +64,10 @@ type GetMetricWidgetImageInput struct { // 6f0d4192-4d42-11e8-82c1-f539a07e0e3b // // The image/png setting is intended only for - // custom HTTP requests. For most use cases, and all actions using an AWS SDK, you - // should use png. If you specify image/png, the HTTP response has a content-type - // set to image/png, and the body of the response is a PNG image. + // custom HTTP requests. For most use cases, and all actions using an Amazon Web + // Services SDK, you should use png. If you specify image/png, the HTTP response + // has a content-type set to image/png, and the body of the response is a PNG + // image. OutputFormat *string noSmithyDocumentSerde diff --git a/service/cloudwatch/api_op_PutMetricAlarm.go b/service/cloudwatch/api_op_PutMetricAlarm.go index e9ee534a57d..9f372581a7c 100644 --- a/service/cloudwatch/api_op_PutMetricAlarm.go +++ b/service/cloudwatch/api_op_PutMetricAlarm.go @@ -27,13 +27,33 @@ import ( // * The iam:CreateServiceLinkedRole to create an alarm with Systems // Manager OpsItem actions. // -// The first time you create an alarm in the AWS -// Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch -// creates the necessary service-linked role for you. The service-linked roles are -// called AWSServiceRoleForCloudWatchEvents and -// AWSServiceRoleForCloudWatchAlarms_ActionSSM. For more information, see AWS -// service-linked role +// The first time you create an alarm in the Management +// Console, the CLI, or by using the PutMetricAlarm API, CloudWatch creates the +// necessary service-linked role for you. The service-linked roles are called +// AWSServiceRoleForCloudWatchEvents and +// AWSServiceRoleForCloudWatchAlarms_ActionSSM. For more information, see Amazon +// Web Services service-linked role // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role). +// Cross-account alarms You can set an alarm on metrics in the current account, or +// in another account. To create a cross-account alarm that watches a metric in a +// different account, you must have completed the following pre-requisites: +// +// * The +// account where the metrics are located (the sharing account) must already have a +// sharing role named CloudWatch-CrossAccountSharingRole. If it does not already +// have this role, you must create it using the instructions in Set up a sharing +// account in Cross-account cross-Region CloudWatch console +// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region). +// The policy for that role must grant access to the ID of the account where you +// are creating the alarm. +// +// * The account where you are creating the alarm (the +// monitoring account) must already have a service-linked role named +// AWSServiceRoleForCloudWatchCrossAccount to allow CloudWatch to assume the +// sharing role in the sharing account. If it does not, you must create it +// following the directions in Set up a monitoring account in Cross-account +// cross-Region CloudWatch console +// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region). func (c *Client) PutMetricAlarm(ctx context.Context, params *PutMetricAlarmInput, optFns ...func(*Options)) (*PutMetricAlarmOutput, error) { if params == nil { params = &PutMetricAlarmInput{} @@ -85,10 +105,13 @@ type PutMetricAlarmInput struct { // | arn:aws:automate:region:ec2:recover | arn:aws:automate:region:ec2:reboot | // arn:aws:sns:region:account-id:sns-topic-name | // arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name - // | arn:aws:ssm:region:account-id:opsitem:severity Valid Values (for use with IAM - // roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 - // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 - // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 + // | arn:aws:ssm:region:account-id:opsitem:severity | + // arn:aws:ssm-incidents::account-id:response-plan:response-plan-name Valid Values + // (for use with IAM roles): + // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | + // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | + // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 | + // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0 AlarmActions []string // The description for the alarm. diff --git a/service/cloudwatch/api_op_PutMetricData.go b/service/cloudwatch/api_op_PutMetricData.go index dcce98dc560..5a6826c97f3 100644 --- a/service/cloudwatch/api_op_PutMetricData.go +++ b/service/cloudwatch/api_op_PutMetricData.go @@ -76,8 +76,8 @@ type PutMetricDataInput struct { // This member is required. MetricData []types.MetricDatum - // The namespace for the metric data. To avoid conflicts with AWS service - // namespaces, you should not specify a namespace that begins with AWS/ + // The namespace for the metric data. To avoid conflicts with Amazon Web Services + // service namespaces, you should not specify a namespace that begins with AWS/ // // This member is required. Namespace *string diff --git a/service/cloudwatch/api_op_PutMetricStream.go b/service/cloudwatch/api_op_PutMetricStream.go index 5d82f67966d..75d167bf74c 100644 --- a/service/cloudwatch/api_op_PutMetricStream.go +++ b/service/cloudwatch/api_op_PutMetricStream.go @@ -12,8 +12,8 @@ import ( ) // Creates or updates a metric stream. Metric streams can automatically stream -// CloudWatch metrics to AWS destinations including Amazon S3 and to many -// third-party solutions. For more information, see Using Metric Streams +// CloudWatch metrics to Amazon Web Services destinations including Amazon S3 and +// to many third-party solutions. For more information, see Using Metric Streams // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html). // To create a metric stream, you must be logged on to an account that has the // iam:PassRole permission and either the CloudWatchFullAccess policy or the @@ -99,7 +99,13 @@ type PutMetricStreamInput struct { // as many as 50 tags with a metric stream. Tags can help you organize and // categorize your resources. You can also use them to scope user permissions by // granting a user permission to access or change only resources with certain tag - // values. + // values. You can use this parameter only when you are creating a new metric + // stream. If you are using this operation to update an existing metric stream, any + // tags you specify in this parameter are ignored. To change the tags of an + // existing metric stream, use TagResource + // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html) + // or UntagResource + // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html). Tags []types.Tag noSmithyDocumentSerde diff --git a/service/cloudwatch/api_op_TagResource.go b/service/cloudwatch/api_op_TagResource.go index dc9d34fe67a..ef0bc34498e 100644 --- a/service/cloudwatch/api_op_TagResource.go +++ b/service/cloudwatch/api_op_TagResource.go @@ -16,13 +16,13 @@ import ( // Contributor Insights rules. Tags can help you organize and categorize your // resources. You can also use them to scope user permissions by granting a user // permission to access or change only resources with certain tag values. Tags -// don't have any semantic meaning to AWS and are interpreted strictly as strings -// of characters. You can use the TagResource action with an alarm that already has -// tags. If you specify a new tag key for the alarm, this tag is appended to the -// list of tags associated with the alarm. If you specify a tag key that is already -// associated with the alarm, the new tag value that you specify replaces the -// previous value for that tag. You can associate as many as 50 tags with a -// CloudWatch resource. +// don't have any semantic meaning to Amazon Web Services and are interpreted +// strictly as strings of characters. You can use the TagResource action with an +// alarm that already has tags. If you specify a new tag key for the alarm, this +// tag is appended to the list of tags associated with the alarm. If you specify a +// tag key that is already associated with the alarm, the new tag value that you +// specify replaces the previous value for that tag. You can associate as many as +// 50 tags with a CloudWatch resource. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/cloudwatch/deserializers.go b/service/cloudwatch/deserializers.go index fe1f7790bd2..14d7ebf3b1c 100644 --- a/service/cloudwatch/deserializers.go +++ b/service/cloudwatch/deserializers.go @@ -8030,6 +8030,19 @@ func awsAwsquery_deserializeDocumentMetricDataQuery(v **types.MetricDataQuery, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("AccountId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AccountId = ptr.String(xtv) + } + case strings.EqualFold("Expression", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/cloudwatch/doc.go b/service/cloudwatch/doc.go index c59d6569ff6..7c7a039e6f2 100644 --- a/service/cloudwatch/doc.go +++ b/service/cloudwatch/doc.go @@ -3,16 +3,17 @@ // Package cloudwatch provides the API client, operations, and parameter types for // Amazon CloudWatch. // -// Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the -// applications you run on AWS in real time. You can use CloudWatch to collect and -// track metrics, which are the variables you want to measure for your resources -// and applications. CloudWatch alarms send notifications or automatically change -// the resources you are monitoring based on rules that you define. For example, -// you can monitor the CPU usage and disk reads and writes of your Amazon EC2 -// instances. Then, use this data to determine whether you should launch additional -// instances to handle increased load. You can also use this data to stop -// under-used instances to save money. In addition to monitoring the built-in -// metrics that come with AWS, you can monitor your own custom metrics. With -// CloudWatch, you gain system-wide visibility into resource utilization, -// application performance, and operational health. +// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) +// resources and the applications you run on Amazon Web Services in real time. You +// can use CloudWatch to collect and track metrics, which are the variables you +// want to measure for your resources and applications. CloudWatch alarms send +// notifications or automatically change the resources you are monitoring based on +// rules that you define. For example, you can monitor the CPU usage and disk reads +// and writes of your Amazon EC2 instances. Then, use this data to determine +// whether you should launch additional instances to handle increased load. You can +// also use this data to stop under-used instances to save money. In addition to +// monitoring the built-in metrics that come with Amazon Web Services, you can +// monitor your own custom metrics. With CloudWatch, you gain system-wide +// visibility into resource utilization, application performance, and operational +// health. package cloudwatch diff --git a/service/cloudwatch/serializers.go b/service/cloudwatch/serializers.go index 5ff6b8409c7..0dce7f740c3 100644 --- a/service/cloudwatch/serializers.go +++ b/service/cloudwatch/serializers.go @@ -2303,6 +2303,11 @@ func awsAwsquery_serializeDocumentMetricDataQuery(v *types.MetricDataQuery, valu object := value.Object() _ = object + if v.AccountId != nil { + objectKey := object.Key("AccountId") + objectKey.String(*v.AccountId) + } + if v.Expression != nil { objectKey := object.Key("Expression") objectKey.String(*v.Expression) diff --git a/service/cloudwatch/types/types.go b/service/cloudwatch/types/types.go index e654115f750..a68cc724bf7 100644 --- a/service/cloudwatch/types/types.go +++ b/service/cloudwatch/types/types.go @@ -199,14 +199,14 @@ type Datapoint struct { // of your metrics, you are creating a new variation of that metric. type Dimension struct { - // The name of the dimension. Dimension names cannot contain blank spaces or - // non-ASCII characters. + // The name of the dimension. Dimension names must contain only ASCII characters + // and must include at least one non-whitespace character. // // This member is required. Name *string - // The value of the dimension. Dimension values cannot contain blank spaces or - // non-ASCII characters. + // The value of the dimension. Dimension values must contain only ASCII characters + // and must include at least one non-whitespace character. // // This member is required. Value *string @@ -376,6 +376,10 @@ type LabelOptions struct { } // A message returned by the GetMetricDataAPI, including a code and a description. +// If a cross-Region GetMetricData operation fails with a code of Forbidden and a +// value of Authentication too complex to retrieve cross region data, you can +// correct the problem by running the GetMetricData operation in the same Region +// where the metric data is. type MessageData struct { // The error code or status code associated with the message. @@ -538,6 +542,11 @@ type MetricDataQuery struct { // This member is required. Id *string + // The ID of the account where the metrics are located, if this is a cross-account + // alarm. Use this field only for PutMetricAlarm operations. It is not used in + // GetMetricData operations. + AccountId *string + // The math expression to be performed on the returned data, if this object is // performing a math expression. This expression can use the Id of the other // metrics to refer to those metrics, and can also use the Id of other expressions diff --git a/service/codebuild/api_op_BatchGetProjects.go b/service/codebuild/api_op_BatchGetProjects.go index b4960210798..a0342d2451c 100644 --- a/service/codebuild/api_op_BatchGetProjects.go +++ b/service/codebuild/api_op_BatchGetProjects.go @@ -30,8 +30,8 @@ func (c *Client) BatchGetProjects(ctx context.Context, params *BatchGetProjectsI type BatchGetProjectsInput struct { // The names or ARNs of the build projects. To get information about a project - // shared with your Amazon Web Services account, its ARN must be specified. You - // cannot specify a shared project using its name. + // shared with your AWS account, its ARN must be specified. You cannot specify a + // shared project using its name. // // This member is required. Names []string diff --git a/service/codebuild/api_op_CreateProject.go b/service/codebuild/api_op_CreateProject.go index 1b6b39fa3d4..334ba4f6466 100644 --- a/service/codebuild/api_op_CreateProject.go +++ b/service/codebuild/api_op_CreateProject.go @@ -44,9 +44,8 @@ type CreateProjectInput struct { // This member is required. Name *string - // The ARN of the Identity and Access Management role that enables CodeBuild to - // interact with dependent Amazon Web Services services on behalf of the Amazon Web - // Services account. + // The ARN of the AWS Identity and Access Management (IAM) role that enables AWS + // CodeBuild to interact with dependent AWS services on behalf of the AWS account. // // This member is required. ServiceRole *string @@ -77,11 +76,11 @@ type CreateProjectInput struct { // A description that makes the build project easy to identify. Description *string - // The Key Management Service customer master key (CMK) to be used for encrypting - // the build output artifacts. You can use a cross-account KMS key to encrypt the - // build output artifacts if your service role has permission to that key. You can - // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the - // CMK's alias (using the format alias/). + // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used + // for encrypting the build output artifacts. You can use a cross-account KMS key + // to encrypt the build output artifacts if your service role has permission to + // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, + // if available, the CMK's alias (using the format alias/). EncryptionKey *string // An array of ProjectFileSystemLocation objects for a CodeBuild build project. A @@ -90,8 +89,8 @@ type CreateProjectInput struct { // File System. FileSystemLocations []types.ProjectFileSystemLocation - // Information about logs for the build project. These can be logs in CloudWatch - // Logs, logs uploaded to a specified S3 bucket, or both. + // Information about logs for the build project. These can be logs in Amazon + // CloudWatch Logs, logs uploaded to a specified S3 bucket, or both. LogsConfig *types.LogsConfig // The number of minutes a build is allowed to be queued before it times out. @@ -111,43 +110,43 @@ type CreateProjectInput struct { // A version of the build input to be built for this project. If not specified, the // latest version is used. If specified, it must be one of: // - // * For CodeCommit: the - // commit ID, branch, or Git tag to use. + // * For AWS CodeCommit: + // the commit ID, branch, or Git tag to use. // - // * For GitHub: the commit ID, pull request - // ID, branch name, or tag name that corresponds to the version of the source code - // you want to build. If a pull request ID is specified, it must use the format - // pr/pull-request-ID (for example pr/25). If a branch name is specified, the - // branch's HEAD commit ID is used. If not specified, the default branch's HEAD - // commit ID is used. + // * For GitHub: the commit ID, pull + // request ID, branch name, or tag name that corresponds to the version of the + // source code you want to build. If a pull request ID is specified, it must use + // the format pr/pull-request-ID (for example pr/25). If a branch name is + // specified, the branch's HEAD commit ID is used. If not specified, the default + // branch's HEAD commit ID is used. // - // * For Bitbucket: the commit ID, branch name, or tag name - // that corresponds to the version of the source code you want to build. If a - // branch name is specified, the branch's HEAD commit ID is used. If not specified, - // the default branch's HEAD commit ID is used. + // * For Bitbucket: the commit ID, branch name, + // or tag name that corresponds to the version of the source code you want to + // build. If a branch name is specified, the branch's HEAD commit ID is used. If + // not specified, the default branch's HEAD commit ID is used. // - // * For Amazon S3: the version ID of - // the object that represents the build input ZIP file to use. + // * For Amazon S3: + // the version ID of the object that represents the build input ZIP file to + // use. // - // If sourceVersion is - // specified at the build level, then that version takes precedence over this - // sourceVersion (at the project level). For more information, see Source Version - // Sample with CodeBuild + // If sourceVersion is specified at the build level, then that version takes + // precedence over this sourceVersion (at the project level). For more information, + // see Source Version Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. SourceVersion *string // A list of tag key and value pairs associated with this build project. These tags - // are available for use by Amazon Web Services services that support CodeBuild - // build project tags. + // are available for use by AWS services that support AWS CodeBuild build project + // tags. Tags []types.Tag - // How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before it - // times out any build that has not been marked as completed. The default is 60 + // How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before + // it times out any build that has not been marked as completed. The default is 60 // minutes. TimeoutInMinutes *int32 - // VpcConfig enables CodeBuild to access resources in an Amazon VPC. + // VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC. VpcConfig *types.VpcConfig noSmithyDocumentSerde diff --git a/service/codebuild/api_op_CreateReportGroup.go b/service/codebuild/api_op_CreateReportGroup.go index b03c35e23e2..304e6a0c5d6 100644 --- a/service/codebuild/api_op_CreateReportGroup.go +++ b/service/codebuild/api_op_CreateReportGroup.go @@ -46,8 +46,8 @@ type CreateReportGroupInput struct { Type types.ReportType // A list of tag key and value pairs associated with this report group. These tags - // are available for use by Amazon Web Services services that support CodeBuild - // report group tags. + // are available for use by AWS services that support AWS CodeBuild report group + // tags. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/codebuild/api_op_CreateWebhook.go b/service/codebuild/api_op_CreateWebhook.go index af039845dad..e23a85b6edb 100644 --- a/service/codebuild/api_op_CreateWebhook.go +++ b/service/codebuild/api_op_CreateWebhook.go @@ -11,16 +11,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// For an existing CodeBuild build project that has its source code stored in a -// GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source -// code every time a code change is pushed to the repository. If you enable -// webhooks for an CodeBuild project, and the project is used as a build step in -// CodePipeline, then two identical builds are created for each commit. One build -// is triggered through webhooks, and one through CodePipeline. Because billing is -// on a per-build basis, you are billed for both builds. Therefore, if you are -// using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the -// CodeBuild console, clear the Webhook box. For more information, see step 5 in -// Change a Build Project's Settings +// For an existing AWS CodeBuild build project that has its source code stored in a +// GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding the +// source code every time a code change is pushed to the repository. If you enable +// webhooks for an AWS CodeBuild project, and the project is used as a build step +// in AWS CodePipeline, then two identical builds are created for each commit. One +// build is triggered through webhooks, and one through AWS CodePipeline. Because +// billing is on a per-build basis, you are billed for both builds. Therefore, if +// you are using AWS CodePipeline, we recommend that you disable webhooks in AWS +// CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more +// information, see step 5 in Change a Build Project's Settings // (https://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console). func (c *Client) CreateWebhook(ctx context.Context, params *CreateWebhookInput, optFns ...func(*Options)) (*CreateWebhookOutput, error) { if params == nil { @@ -39,7 +39,7 @@ func (c *Client) CreateWebhook(ctx context.Context, params *CreateWebhookInput, type CreateWebhookInput struct { - // The name of the CodeBuild project. + // The name of the AWS CodeBuild project. // // This member is required. ProjectName *string @@ -65,7 +65,7 @@ type CreateWebhookInput struct { type CreateWebhookOutput struct { // Information about a webhook that connects repository events to a build project - // in CodeBuild. + // in AWS CodeBuild. Webhook *types.Webhook // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_DeleteWebhook.go b/service/codebuild/api_op_DeleteWebhook.go index 3ce25502894..63a90f1eb8e 100644 --- a/service/codebuild/api_op_DeleteWebhook.go +++ b/service/codebuild/api_op_DeleteWebhook.go @@ -10,9 +10,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// For an existing CodeBuild build project that has its source code stored in a -// GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code -// every time a code change is pushed to the repository. +// For an existing AWS CodeBuild build project that has its source code stored in a +// GitHub or Bitbucket repository, stops AWS CodeBuild from rebuilding the source +// code every time a code change is pushed to the repository. func (c *Client) DeleteWebhook(ctx context.Context, params *DeleteWebhookInput, optFns ...func(*Options)) (*DeleteWebhookOutput, error) { if params == nil { params = &DeleteWebhookInput{} @@ -30,7 +30,7 @@ func (c *Client) DeleteWebhook(ctx context.Context, params *DeleteWebhookInput, type DeleteWebhookInput struct { - // The name of the CodeBuild project. + // The name of the AWS CodeBuild project. // // This member is required. ProjectName *string diff --git a/service/codebuild/api_op_ImportSourceCredentials.go b/service/codebuild/api_op_ImportSourceCredentials.go index 93d990bfb93..4fa2da59b1e 100644 --- a/service/codebuild/api_op_ImportSourceCredentials.go +++ b/service/codebuild/api_op_ImportSourceCredentials.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Imports the source repository credentials for an CodeBuild project that has its -// source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. +// Imports the source repository credentials for an AWS CodeBuild project that has +// its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. func (c *Client) ImportSourceCredentials(ctx context.Context, params *ImportSourceCredentialsInput, optFns ...func(*Options)) (*ImportSourceCredentialsOutput, error) { if params == nil { params = &ImportSourceCredentialsInput{} @@ -32,7 +32,7 @@ type ImportSourceCredentialsInput struct { // The type of authentication used to connect to a GitHub, GitHub Enterprise, or // Bitbucket repository. An OAUTH connection is not supported by the API and must - // be created using the CodeBuild console. + // be created using the AWS CodeBuild console. // // This member is required. AuthType types.AuthType diff --git a/service/codebuild/api_op_InvalidateProjectCache.go b/service/codebuild/api_op_InvalidateProjectCache.go index 429220b3d6f..def0a121d06 100644 --- a/service/codebuild/api_op_InvalidateProjectCache.go +++ b/service/codebuild/api_op_InvalidateProjectCache.go @@ -28,7 +28,7 @@ func (c *Client) InvalidateProjectCache(ctx context.Context, params *InvalidateP type InvalidateProjectCacheInput struct { - // The name of the CodeBuild build project that the cache is reset for. + // The name of the AWS CodeBuild build project that the cache is reset for. // // This member is required. ProjectName *string diff --git a/service/codebuild/api_op_ListBuildsForProject.go b/service/codebuild/api_op_ListBuildsForProject.go index 2dfe79b204b..19a86d2c88d 100644 --- a/service/codebuild/api_op_ListBuildsForProject.go +++ b/service/codebuild/api_op_ListBuildsForProject.go @@ -31,7 +31,7 @@ func (c *Client) ListBuildsForProject(ctx context.Context, params *ListBuildsFor type ListBuildsForProjectInput struct { - // The name of the CodeBuild project. + // The name of the AWS CodeBuild project. // // This member is required. ProjectName *string diff --git a/service/codebuild/api_op_ListCuratedEnvironmentImages.go b/service/codebuild/api_op_ListCuratedEnvironmentImages.go index 3e26c75234e..4bf82282810 100644 --- a/service/codebuild/api_op_ListCuratedEnvironmentImages.go +++ b/service/codebuild/api_op_ListCuratedEnvironmentImages.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets information about Docker images that are managed by CodeBuild. +// Gets information about Docker images that are managed by AWS CodeBuild. func (c *Client) ListCuratedEnvironmentImages(ctx context.Context, params *ListCuratedEnvironmentImagesInput, optFns ...func(*Options)) (*ListCuratedEnvironmentImagesOutput, error) { if params == nil { params = &ListCuratedEnvironmentImagesInput{} @@ -33,7 +33,7 @@ type ListCuratedEnvironmentImagesInput struct { type ListCuratedEnvironmentImagesOutput struct { - // Information about supported platforms for Docker images that are managed by + // Information about supported platforms for Docker images that are managed by AWS // CodeBuild. Platforms []types.EnvironmentPlatform diff --git a/service/codebuild/api_op_ListReportGroups.go b/service/codebuild/api_op_ListReportGroups.go index 5777b757716..c8cee96e63e 100644 --- a/service/codebuild/api_op_ListReportGroups.go +++ b/service/codebuild/api_op_ListReportGroups.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets a list ARNs for the report groups in the current Amazon Web Services -// account. +// Gets a list ARNs for the report groups in the current AWS account. func (c *Client) ListReportGroups(ctx context.Context, params *ListReportGroupsInput, optFns ...func(*Options)) (*ListReportGroupsOutput, error) { if params == nil { params = &ListReportGroupsInput{} @@ -73,8 +72,7 @@ type ListReportGroupsOutput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The list of ARNs for the report groups in the current Amazon Web Services - // account. + // The list of ARNs for the report groups in the current AWS account. ReportGroups []string // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_ListReports.go b/service/codebuild/api_op_ListReports.go index 73e3eabf89e..bea59d8ecba 100644 --- a/service/codebuild/api_op_ListReports.go +++ b/service/codebuild/api_op_ListReports.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of ARNs for the reports in the current Amazon Web Services -// account. +// Returns a list of ARNs for the reports in the current AWS account. func (c *Client) ListReports(ctx context.Context, params *ListReportsInput, optFns ...func(*Options)) (*ListReportsOutput, error) { if params == nil { params = &ListReportsInput{} @@ -69,8 +68,7 @@ type ListReportsOutput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The list of returned ARNs for the reports in the current Amazon Web Services - // account. + // The list of returned ARNs for the reports in the current AWS account. Reports []string // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_ListSharedProjects.go b/service/codebuild/api_op_ListSharedProjects.go index 67da01f8f4c..1015ed1afab 100644 --- a/service/codebuild/api_op_ListSharedProjects.go +++ b/service/codebuild/api_op_ListSharedProjects.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets a list of projects that are shared with other Amazon Web Services accounts -// or users. +// Gets a list of projects that are shared with other AWS accounts or users. func (c *Client) ListSharedProjects(ctx context.Context, params *ListSharedProjectsInput, optFns ...func(*Options)) (*ListSharedProjectsOutput, error) { if params == nil { params = &ListSharedProjectsInput{} @@ -44,14 +43,14 @@ type ListSharedProjectsInput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The criterion to be used to list build projects shared with the current Amazon - // Web Services account or user. Valid values include: + // The criterion to be used to list build projects shared with the current AWS + // account or user. Valid values include: // - // * ARN: List based on the - // ARN. + // * ARN: List based on the ARN. // - // * MODIFIED_TIME: List based on when information about the shared project - // was last changed. + // * + // MODIFIED_TIME: List based on when information about the shared project was last + // changed. SortBy types.SharedResourceSortByType // The order in which to list shared build projects. Valid values include: @@ -75,8 +74,8 @@ type ListSharedProjectsOutput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The list of ARNs for the build projects shared with the current Amazon Web - // Services account or user. + // The list of ARNs for the build projects shared with the current AWS account or + // user. Projects []string // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_ListSharedReportGroups.go b/service/codebuild/api_op_ListSharedReportGroups.go index cfda106d3db..269e558491b 100644 --- a/service/codebuild/api_op_ListSharedReportGroups.go +++ b/service/codebuild/api_op_ListSharedReportGroups.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets a list of report groups that are shared with other Amazon Web Services -// accounts or users. +// Gets a list of report groups that are shared with other AWS accounts or users. func (c *Client) ListSharedReportGroups(ctx context.Context, params *ListSharedReportGroupsInput, optFns ...func(*Options)) (*ListSharedReportGroupsOutput, error) { if params == nil { params = &ListSharedReportGroupsInput{} @@ -44,14 +43,14 @@ type ListSharedReportGroupsInput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The criterion to be used to list report groups shared with the current Amazon - // Web Services account or user. Valid values include: + // The criterion to be used to list report groups shared with the current AWS + // account or user. Valid values include: // - // * ARN: List based on the - // ARN. + // * ARN: List based on the ARN. // - // * MODIFIED_TIME: List based on when information about the shared report - // group was last changed. + // * + // MODIFIED_TIME: List based on when information about the shared report group was + // last changed. SortBy types.SharedResourceSortByType // The order in which to list shared report groups. Valid values include: @@ -75,8 +74,8 @@ type ListSharedReportGroupsOutput struct { // token that is returned, until no more next tokens are returned. NextToken *string - // The list of ARNs for the report groups shared with the current Amazon Web - // Services account or user. + // The list of ARNs for the report groups shared with the current AWS account or + // user. ReportGroups []string // Metadata pertaining to the operation's result. diff --git a/service/codebuild/api_op_PutResourcePolicy.go b/service/codebuild/api_op_PutResourcePolicy.go index 076cb21b8ea..eae33a56061 100644 --- a/service/codebuild/api_op_PutResourcePolicy.go +++ b/service/codebuild/api_op_PutResourcePolicy.go @@ -32,7 +32,7 @@ type PutResourcePolicyInput struct { // (https://docs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share) // and Sharing a Report Group // (https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html#report-groups-sharing-share) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. // // This member is required. Policy *string diff --git a/service/codebuild/api_op_RetryBuild.go b/service/codebuild/api_op_RetryBuild.go index 364f8ccdd43..a7adc0cf976 100644 --- a/service/codebuild/api_op_RetryBuild.go +++ b/service/codebuild/api_op_RetryBuild.go @@ -35,7 +35,7 @@ type RetryBuildInput struct { // A unique, case sensitive identifier you provide to ensure the idempotency of the // RetryBuild request. The token is included in the RetryBuild request and is valid // for five minutes. If you repeat the RetryBuild request with the same token, but - // change a parameter, CodeBuild returns a parameter mismatch error. + // change a parameter, AWS CodeBuild returns a parameter mismatch error. IdempotencyToken *string noSmithyDocumentSerde diff --git a/service/codebuild/api_op_RetryBuildBatch.go b/service/codebuild/api_op_RetryBuildBatch.go index f1d77ef4091..47a638340e1 100644 --- a/service/codebuild/api_op_RetryBuildBatch.go +++ b/service/codebuild/api_op_RetryBuildBatch.go @@ -36,8 +36,8 @@ type RetryBuildBatchInput struct { // A unique, case sensitive identifier you provide to ensure the idempotency of the // RetryBuildBatch request. The token is included in the RetryBuildBatch request // and is valid for five minutes. If you repeat the RetryBuildBatch request with - // the same token, but change a parameter, CodeBuild returns a parameter mismatch - // error. + // the same token, but change a parameter, AWS CodeBuild returns a parameter + // mismatch error. IdempotencyToken *string // Specifies the type of retry to perform. diff --git a/service/codebuild/api_op_StartBuild.go b/service/codebuild/api_op_StartBuild.go index 3b44b805677..955a1a6e208 100644 --- a/service/codebuild/api_op_StartBuild.go +++ b/service/codebuild/api_op_StartBuild.go @@ -29,7 +29,7 @@ func (c *Client) StartBuild(ctx context.Context, params *StartBuildInput, optFns type StartBuildInput struct { - // The name of the CodeBuild build project to start running a build. + // The name of the AWS CodeBuild build project to start running a build. // // This member is required. ProjectName *string @@ -47,7 +47,7 @@ type StartBuildInput struct { // already defined in the build project. If this value is set, it can be either an // inline buildspec definition, the path to an alternate buildspec file relative to // the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to - // an S3 bucket. The bucket must be in the same Region as the build project. + // an S3 bucket. The bucket must be in the same AWS Region as the build project. // Specify the buildspec file using its ARN (for example, // arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided // or is set to an empty string, the source code must contain a buildspec file in @@ -73,12 +73,12 @@ type StartBuildInput struct { // (https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html). DebugSessionEnabled *bool - // The Key Management Service customer master key (CMK) that overrides the one - // specified in the build project. The CMK key encrypts the build output artifacts. - // You can use a cross-account KMS key to encrypt the build output artifacts if - // your service role has permission to that key. You can specify either the Amazon - // Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the - // format alias/). + // The AWS Key Management Service (AWS KMS) customer master key (CMK) that + // overrides the one specified in the build project. The CMK key encrypts the build + // output artifacts. You can use a cross-account KMS key to encrypt the build + // output artifacts if your service role has permission to that key. You can + // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the + // CMK's alias (using the format alias/). EncryptionKeyOverride *string // A container type for this build that overrides the one specified in the build @@ -93,27 +93,27 @@ type StartBuildInput struct { // for this build only, any previous depth of history defined in the build project. GitCloneDepthOverride *int32 - // Information about the Git submodules configuration for this build of an + // Information about the Git submodules configuration for this build of an AWS // CodeBuild build project. GitSubmodulesConfigOverride *types.GitSubmodulesConfig // A unique, case sensitive identifier you provide to ensure the idempotency of the // StartBuild request. The token is included in the StartBuild request and is valid // for 5 minutes. If you repeat the StartBuild request with the same token, but - // change a parameter, CodeBuild returns a parameter mismatch error. + // change a parameter, AWS CodeBuild returns a parameter mismatch error. IdempotencyToken *string // The name of an image for this build that overrides the one specified in the // build project. ImageOverride *string - // The type of credentials CodeBuild uses to pull images in your build. There are - // two valid values: CODEBUILD Specifies that CodeBuild uses its own credentials. - // This requires that you modify your ECR repository policy to trust CodeBuild's - // service principal. SERVICE_ROLE Specifies that CodeBuild uses your build - // project's service role. When using a cross-account or private registry image, - // you must use SERVICE_ROLE credentials. When using an CodeBuild curated image, - // you must use CODEBUILD credentials. + // The type of credentials AWS CodeBuild uses to pull images in your build. There + // are two valid values: CODEBUILD Specifies that AWS CodeBuild uses its own + // credentials. This requires that you modify your ECR repository policy to trust + // AWS CodeBuild's service principal. SERVICE_ROLE Specifies that AWS CodeBuild + // uses your build project's service role. When using a cross-account or private + // registry image, you must use SERVICE_ROLE credentials. When using an AWS + // CodeBuild curated image, you must use CODEBUILD credentials. ImagePullCredentialsTypeOverride types.ImagePullCredentialsType // Enable this flag to override the insecure SSL setting that is specified in the @@ -143,8 +143,8 @@ type StartBuildInput struct { // write access, the build status cannot be updated. For more information, see // Source provider access // (https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html) in - // the CodeBuild User Guide. The status of a build triggered by a webhook is always - // reported to your source provider. + // the AWS CodeBuild User Guide. The status of a build triggered by a webhook is + // always reported to your source provider. ReportBuildStatusOverride *bool // An array of ProjectArtifacts objects. @@ -176,8 +176,8 @@ type StartBuildInput struct { // The version of the build input to be built, for this build only. If not // specified, the latest version is used. If specified, the contents depends on the - // source provider: CodeCommit The commit ID, branch, or Git tag to use. GitHub The - // commit ID, pull request ID, branch name, or tag name that corresponds to the + // source provider: AWS CodeCommit The commit ID, branch, or Git tag to use. GitHub + // The commit ID, pull request ID, branch name, or tag name that corresponds to the // version of the source code you want to build. If a pull request ID is specified, // it must use the format pr/pull-request-ID (for example pr/25). If a branch name // is specified, the branch's HEAD commit ID is used. If not specified, the default @@ -189,7 +189,7 @@ type StartBuildInput struct { // specified at the project level, then this sourceVersion (at the build level) // takes precedence. For more information, see Source Version Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. SourceVersion *string // The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, diff --git a/service/codebuild/api_op_StartBuildBatch.go b/service/codebuild/api_op_StartBuildBatch.go index 3ab28769745..4f6afc1b77a 100644 --- a/service/codebuild/api_op_StartBuildBatch.go +++ b/service/codebuild/api_op_StartBuildBatch.go @@ -49,7 +49,7 @@ type StartBuildBatchInput struct { // already defined in the build project. If this value is set, it can be either an // inline buildspec definition, the path to an alternate buildspec file relative to // the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to - // an S3 bucket. The bucket must be in the same Region as the build project. + // an S3 bucket. The bucket must be in the same AWS Region as the build project. // Specify the buildspec file using its ARN (for example, // arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided // or is set to an empty string, the source code must contain a buildspec file in @@ -75,12 +75,12 @@ type StartBuildBatchInput struct { // Batch session debugging is not supported for matrix batch builds. DebugSessionEnabled *bool - // The Key Management Service customer master key (CMK) that overrides the one - // specified in the batch build project. The CMK key encrypts the build output - // artifacts. You can use a cross-account KMS key to encrypt the build output - // artifacts if your service role has permission to that key. You can specify - // either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's - // alias (using the format alias/). + // The AWS Key Management Service (AWS KMS) customer master key (CMK) that + // overrides the one specified in the batch build project. The CMK key encrypts the + // build output artifacts. You can use a cross-account KMS key to encrypt the build + // output artifacts if your service role has permission to that key. You can + // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the + // CMK's alias (using the format alias/). EncryptionKeyOverride *string // A container type for this batch build that overrides the one specified in the @@ -103,21 +103,21 @@ type StartBuildBatchInput struct { // A unique, case sensitive identifier you provide to ensure the idempotency of the // StartBuildBatch request. The token is included in the StartBuildBatch request // and is valid for five minutes. If you repeat the StartBuildBatch request with - // the same token, but change a parameter, CodeBuild returns a parameter mismatch - // error. + // the same token, but change a parameter, AWS CodeBuild returns a parameter + // mismatch error. IdempotencyToken *string // The name of an image for this batch build that overrides the one specified in // the batch build project. ImageOverride *string - // The type of credentials CodeBuild uses to pull images in your batch build. There - // are two valid values: CODEBUILD Specifies that CodeBuild uses its own + // The type of credentials AWS CodeBuild uses to pull images in your batch build. + // There are two valid values: CODEBUILD Specifies that AWS CodeBuild uses its own // credentials. This requires that you modify your ECR repository policy to trust - // CodeBuild's service principal. SERVICE_ROLE Specifies that CodeBuild uses your - // build project's service role. When using a cross-account or private registry - // image, you must use SERVICE_ROLE credentials. When using an CodeBuild curated - // image, you must use CODEBUILD credentials. + // AWS CodeBuild's service principal. SERVICE_ROLE Specifies that AWS CodeBuild + // uses your build project's service role. When using a cross-account or private + // registry image, you must use SERVICE_ROLE credentials. When using an AWS + // CodeBuild curated image, you must use CODEBUILD credentials. ImagePullCredentialsTypeOverride types.ImagePullCredentialsType // Enable this flag to override the insecure SSL setting that is specified in the @@ -177,8 +177,8 @@ type StartBuildBatchInput struct { // The version of the batch build input to be built, for this build only. If not // specified, the latest version is used. If specified, the contents depends on the - // source provider: CodeCommit The commit ID, branch, or Git tag to use. GitHub The - // commit ID, pull request ID, branch name, or tag name that corresponds to the + // source provider: AWS CodeCommit The commit ID, branch, or Git tag to use. GitHub + // The commit ID, pull request ID, branch name, or tag name that corresponds to the // version of the source code you want to build. If a pull request ID is specified, // it must use the format pr/pull-request-ID (for example pr/25). If a branch name // is specified, the branch's HEAD commit ID is used. If not specified, the default @@ -190,7 +190,7 @@ type StartBuildBatchInput struct { // specified at the project level, then this sourceVersion (at the build level) // takes precedence. For more information, see Source Version Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. SourceVersion *string noSmithyDocumentSerde diff --git a/service/codebuild/api_op_UpdateProject.go b/service/codebuild/api_op_UpdateProject.go index 59007e7e5af..206eaa608ed 100644 --- a/service/codebuild/api_op_UpdateProject.go +++ b/service/codebuild/api_op_UpdateProject.go @@ -58,11 +58,11 @@ type UpdateProjectInput struct { // A new or replacement description of the build project. Description *string - // The Key Management Service customer master key (CMK) to be used for encrypting - // the build output artifacts. You can use a cross-account KMS key to encrypt the - // build output artifacts if your service role has permission to that key. You can - // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the - // CMK's alias (using the format alias/). + // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used + // for encrypting the build output artifacts. You can use a cross-account KMS key + // to encrypt the build output artifacts if your service role has permission to + // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, + // if available, the CMK's alias (using the format alias/). EncryptionKey *string // Information to be changed about the build environment for the build project. @@ -75,7 +75,7 @@ type UpdateProjectInput struct { FileSystemLocations []types.ProjectFileSystemLocation // Information about logs for the build project. A project can create logs in - // CloudWatch Logs, logs in an S3 bucket, or both. + // Amazon CloudWatch Logs, logs in an S3 bucket, or both. LogsConfig *types.LogsConfig // The number of minutes a build is allowed to be queued before it times out. @@ -92,9 +92,9 @@ type UpdateProjectInput struct { // An array of ProjectSource objects. SecondarySources []types.ProjectSource - // The replacement ARN of the Identity and Access Management role that enables - // CodeBuild to interact with dependent Amazon Web Services services on behalf of - // the Amazon Web Services account. + // The replacement ARN of the AWS Identity and Access Management (IAM) role that + // enables AWS CodeBuild to interact with dependent AWS services on behalf of the + // AWS account. ServiceRole *string // Information to be changed about the build input source code for the build @@ -104,42 +104,42 @@ type UpdateProjectInput struct { // A version of the build input to be built for this project. If not specified, the // latest version is used. If specified, it must be one of: // - // * For CodeCommit: the - // commit ID, branch, or Git tag to use. + // * For AWS CodeCommit: + // the commit ID, branch, or Git tag to use. // - // * For GitHub: the commit ID, pull request - // ID, branch name, or tag name that corresponds to the version of the source code - // you want to build. If a pull request ID is specified, it must use the format - // pr/pull-request-ID (for example pr/25). If a branch name is specified, the - // branch's HEAD commit ID is used. If not specified, the default branch's HEAD - // commit ID is used. + // * For GitHub: the commit ID, pull + // request ID, branch name, or tag name that corresponds to the version of the + // source code you want to build. If a pull request ID is specified, it must use + // the format pr/pull-request-ID (for example pr/25). If a branch name is + // specified, the branch's HEAD commit ID is used. If not specified, the default + // branch's HEAD commit ID is used. // - // * For Bitbucket: the commit ID, branch name, or tag name - // that corresponds to the version of the source code you want to build. If a - // branch name is specified, the branch's HEAD commit ID is used. If not specified, - // the default branch's HEAD commit ID is used. + // * For Bitbucket: the commit ID, branch name, + // or tag name that corresponds to the version of the source code you want to + // build. If a branch name is specified, the branch's HEAD commit ID is used. If + // not specified, the default branch's HEAD commit ID is used. // - // * For Amazon S3: the version ID of - // the object that represents the build input ZIP file to use. + // * For Amazon S3: + // the version ID of the object that represents the build input ZIP file to + // use. // - // If sourceVersion is - // specified at the build level, then that version takes precedence over this - // sourceVersion (at the project level). For more information, see Source Version - // Sample with CodeBuild + // If sourceVersion is specified at the build level, then that version takes + // precedence over this sourceVersion (at the project level). For more information, + // see Source Version Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. SourceVersion *string // An updated list of tag key and value pairs associated with this build project. - // These tags are available for use by Amazon Web Services services that support - // CodeBuild build project tags. + // These tags are available for use by AWS services that support AWS CodeBuild + // build project tags. Tags []types.Tag - // The replacement value in minutes, from 5 to 480 (8 hours), for CodeBuild to wait - // before timing out any related build that did not get marked as completed. + // The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to + // wait before timing out any related build that did not get marked as completed. TimeoutInMinutes *int32 - // VpcConfig enables CodeBuild to access resources in an Amazon VPC. + // VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC. VpcConfig *types.VpcConfig noSmithyDocumentSerde diff --git a/service/codebuild/api_op_UpdateReportGroup.go b/service/codebuild/api_op_UpdateReportGroup.go index c775189657e..b9cfe6b15db 100644 --- a/service/codebuild/api_op_UpdateReportGroup.go +++ b/service/codebuild/api_op_UpdateReportGroup.go @@ -44,8 +44,8 @@ type UpdateReportGroupInput struct { ExportConfig *types.ReportExportConfig // An updated list of tag key and value pairs associated with this report group. - // These tags are available for use by Amazon Web Services services that support - // CodeBuild report group tags. + // These tags are available for use by AWS services that support AWS CodeBuild + // report group tags. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/codebuild/api_op_UpdateWebhook.go b/service/codebuild/api_op_UpdateWebhook.go index 96e15a201c8..bbe46072729 100644 --- a/service/codebuild/api_op_UpdateWebhook.go +++ b/service/codebuild/api_op_UpdateWebhook.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the webhook associated with an CodeBuild build project. If you use +// Updates the webhook associated with an AWS CodeBuild build project. If you use // Bitbucket for your repository, rotateSecret is ignored. func (c *Client) UpdateWebhook(ctx context.Context, params *UpdateWebhookInput, optFns ...func(*Options)) (*UpdateWebhookOutput, error) { if params == nil { @@ -30,7 +30,7 @@ func (c *Client) UpdateWebhook(ctx context.Context, params *UpdateWebhookInput, type UpdateWebhookInput struct { - // The name of the CodeBuild project. + // The name of the AWS CodeBuild project. // // This member is required. ProjectName *string @@ -60,7 +60,7 @@ type UpdateWebhookInput struct { type UpdateWebhookOutput struct { // Information about a repository's webhook that is associated with a project in - // CodeBuild. + // AWS CodeBuild. Webhook *types.Webhook // Metadata pertaining to the operation's result. diff --git a/service/codebuild/deserializers.go b/service/codebuild/deserializers.go index 6902de76bf7..deee75ff9a4 100644 --- a/service/codebuild/deserializers.go +++ b/service/codebuild/deserializers.go @@ -5577,6 +5577,15 @@ func awsAwsjson11_deserializeDocumentBuildArtifacts(v **types.BuildArtifacts, va sv.ArtifactIdentifier = ptr.String(jtv) } + case "bucketOwnerAccess": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BucketOwnerAccess to be of type string, got %T instead", value) + } + sv.BucketOwnerAccess = types.BucketOwnerAccess(jtv) + } + case "encryptionDisabled": if value != nil { jtv, ok := value.(bool) @@ -8483,6 +8492,15 @@ func awsAwsjson11_deserializeDocumentProjectArtifacts(v **types.ProjectArtifacts sv.ArtifactIdentifier = ptr.String(jtv) } + case "bucketOwnerAccess": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BucketOwnerAccess to be of type string, got %T instead", value) + } + sv.BucketOwnerAccess = types.BucketOwnerAccess(jtv) + } + case "encryptionDisabled": if value != nil { jtv, ok := value.(bool) @@ -10168,6 +10186,15 @@ func awsAwsjson11_deserializeDocumentS3LogsConfig(v **types.S3LogsConfig, value for key, value := range shape { switch key { + case "bucketOwnerAccess": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BucketOwnerAccess to be of type string, got %T instead", value) + } + sv.BucketOwnerAccess = types.BucketOwnerAccess(jtv) + } + case "encryptionDisabled": if value != nil { jtv, ok := value.(bool) diff --git a/service/codebuild/doc.go b/service/codebuild/doc.go index 7f75d1e4de2..d7be2975260 100644 --- a/service/codebuild/doc.go +++ b/service/codebuild/doc.go @@ -3,14 +3,14 @@ // Package codebuild provides the API client, operations, and parameter types for // AWS CodeBuild. // -// CodeBuild is a fully managed build service in the cloud. CodeBuild compiles your -// source code, runs unit tests, and produces artifacts that are ready to deploy. -// CodeBuild eliminates the need to provision, manage, and scale your own build -// servers. It provides prepackaged build environments for the most popular -// programming languages and build tools, such as Apache Maven, Gradle, and more. -// You can also fully customize build environments in CodeBuild to use your own -// build tools. CodeBuild scales automatically to meet peak build requests. You pay -// only for the build time you consume. For more information about CodeBuild, see -// the CodeBuild User Guide +// AWS CodeBuild AWS CodeBuild is a fully managed build service in the cloud. AWS +// CodeBuild compiles your source code, runs unit tests, and produces artifacts +// that are ready to deploy. AWS CodeBuild eliminates the need to provision, +// manage, and scale your own build servers. It provides prepackaged build +// environments for the most popular programming languages and build tools, such as +// Apache Maven, Gradle, and more. You can also fully customize build environments +// in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically +// to meet peak build requests. You pay only for the build time you consume. For +// more information about AWS CodeBuild, see the AWS CodeBuild User Guide // (https://docs.aws.amazon.com/codebuild/latest/userguide/welcome.html). package codebuild diff --git a/service/codebuild/serializers.go b/service/codebuild/serializers.go index b01f9e66779..1b2f4d776c6 100644 --- a/service/codebuild/serializers.go +++ b/service/codebuild/serializers.go @@ -2291,6 +2291,11 @@ func awsAwsjson11_serializeDocumentProjectArtifacts(v *types.ProjectArtifacts, v ok.String(*v.ArtifactIdentifier) } + if len(v.BucketOwnerAccess) > 0 { + ok := object.Key("bucketOwnerAccess") + ok.String(string(v.BucketOwnerAccess)) + } + if v.EncryptionDisabled != nil { ok := object.Key("encryptionDisabled") ok.Boolean(*v.EncryptionDisabled) @@ -2698,6 +2703,11 @@ func awsAwsjson11_serializeDocumentS3LogsConfig(v *types.S3LogsConfig, value smi object := value.Object() defer object.Close() + if len(v.BucketOwnerAccess) > 0 { + ok := object.Key("bucketOwnerAccess") + ok.String(string(v.BucketOwnerAccess)) + } + if v.EncryptionDisabled != nil { ok := object.Key("encryptionDisabled") ok.Boolean(*v.EncryptionDisabled) diff --git a/service/codebuild/types/enums.go b/service/codebuild/types/enums.go index 16926bc1a19..0c7901e0202 100644 --- a/service/codebuild/types/enums.go +++ b/service/codebuild/types/enums.go @@ -78,6 +78,26 @@ func (AuthType) Values() []AuthType { } } +type BucketOwnerAccess string + +// Enum values for BucketOwnerAccess +const ( + BucketOwnerAccessNone BucketOwnerAccess = "NONE" + BucketOwnerAccessReadOnly BucketOwnerAccess = "READ_ONLY" + BucketOwnerAccessFull BucketOwnerAccess = "FULL" +) + +// Values returns all known values for BucketOwnerAccess. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (BucketOwnerAccess) Values() []BucketOwnerAccess { + return []BucketOwnerAccess{ + "NONE", + "READ_ONLY", + "FULL", + } +} + type BuildBatchPhaseType string // Enum values for BuildBatchPhaseType diff --git a/service/codebuild/types/errors.go b/service/codebuild/types/errors.go index 906da671c36..d9f62b1774c 100644 --- a/service/codebuild/types/errors.go +++ b/service/codebuild/types/errors.go @@ -7,8 +7,7 @@ import ( smithy "github.com/aws/smithy-go" ) -// An Amazon Web Services service limit was exceeded for the calling Amazon Web -// Services account. +// An AWS service limit was exceeded for the calling AWS account. type AccountLimitExceededException struct { Message *string @@ -65,8 +64,8 @@ func (e *OAuthProviderException) ErrorMessage() string { func (e *OAuthProviderException) ErrorCode() string { return "OAuthProviderException" } func (e *OAuthProviderException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The specified Amazon Web Services resource cannot be created, because an Amazon -// Web Services resource with the same settings already exists. +// The specified AWS resource cannot be created, because an AWS resource with the +// same settings already exists. type ResourceAlreadyExistsException struct { Message *string @@ -85,7 +84,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The specified Amazon Web Services resource cannot be found. +// The specified AWS resource cannot be found. type ResourceNotFoundException struct { Message *string diff --git a/service/codebuild/types/types.go b/service/codebuild/types/types.go index 38d9985d445..b85cd3faadc 100644 --- a/service/codebuild/types/types.go +++ b/service/codebuild/types/types.go @@ -13,7 +13,7 @@ type BatchRestrictions struct { // An array of strings that specify the compute types that are allowed for the // batch build. See Build environment compute types // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) - // in the CodeBuild User Guide for these values. + // in the AWS CodeBuild User Guide for these values. ComputeTypesAllowed []string // Specifies the maximum number of builds allowed. @@ -69,11 +69,11 @@ type Build struct { // Contains information about the debug session for this build. DebugSession *DebugSession - // The Key Management Service customer master key (CMK) to be used for encrypting - // the build output artifacts. You can use a cross-account KMS key to encrypt the - // build output artifacts if your service role has permission to that key. You can - // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the - // CMK's alias (using the format alias/). + // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used + // for encrypting the build output artifacts. You can use a cross-account KMS key + // to encrypt the build output artifacts if your service role has permission to + // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, + // if available, the CMK's alias (using the format alias/). EncryptionKey *string // When the build process ended, expressed in Unix time format. @@ -83,11 +83,11 @@ type Build struct { Environment *ProjectEnvironment // A list of exported environment variables for this build. Exported environment - // variables are used in conjunction with CodePipeline to export environment + // variables are used in conjunction with AWS CodePipeline to export environment // variables from the current build stage to subsequent stages in the pipeline. For // more information, see Working with variables // (https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html) - // in the CodePipeline User Guide. + // in the AWS CodePipeline User Guide. ExportedEnvironmentVariables []ExportedEnvironmentVariable // An array of ProjectFileSystemLocation objects for a CodeBuild build project. A @@ -101,18 +101,19 @@ type Build struct { // The entity that started the build. Valid values include: // - // * If CodePipeline + // * If AWS CodePipeline // started the build, the pipeline's name (for example, // codepipeline/my-demo-pipeline). // - // * If an Identity and Access Management user - // started the build, the user's name (for example, MyUserName). + // * If an AWS Identity and Access Management + // (IAM) user started the build, the user's name (for example, MyUserName). // - // * If the Jenkins - // plugin for CodeBuild started the build, the string CodeBuild-Jenkins-Plugin. + // * If + // the Jenkins plugin for AWS CodeBuild started the build, the string + // CodeBuild-Jenkins-Plugin. Initiator *string - // Information about the build's logs in CloudWatch Logs. + // Information about the build's logs in Amazon CloudWatch Logs. Logs *LogsLocation // Describes a network interface. @@ -122,7 +123,7 @@ type Build struct { // about any current build phase that is not yet complete. Phases []BuildPhase - // The name of the CodeBuild project. + // The name of the AWS CodeBuild project. ProjectName *string // The number of minutes a build is allowed to be queued before it times out. @@ -133,14 +134,14 @@ type Build struct { // An identifier for the version of this build's source code. // - // * For CodeCommit, - // GitHub, GitHub Enterprise, and BitBucket, the commit ID. + // * For AWS + // CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. // - // * For CodePipeline, - // the source revision provided by CodePipeline. + // * For AWS + // CodePipeline, the source revision provided by AWS CodePipeline. // - // * For Amazon S3, this does not - // apply. + // * For Amazon + // S3, this does not apply. ResolvedSourceVersion *string // An array of ProjectArtifacts objects. @@ -149,22 +150,23 @@ type Build struct { // An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one // of: // - // * For CodeCommit: the commit ID, branch, or Git tag to use. - // - // * For GitHub: - // the commit ID, pull request ID, branch name, or tag name that corresponds to the - // version of the source code you want to build. If a pull request ID is specified, - // it must use the format pr/pull-request-ID (for example, pr/25). If a branch name - // is specified, the branch's HEAD commit ID is used. If not specified, the default - // branch's HEAD commit ID is used. + // * For AWS CodeCommit: the commit ID, branch, or Git tag to use. // - // * For Bitbucket: the commit ID, branch name, - // or tag name that corresponds to the version of the source code you want to - // build. If a branch name is specified, the branch's HEAD commit ID is used. If + // * For + // GitHub: the commit ID, pull request ID, branch name, or tag name that + // corresponds to the version of the source code you want to build. If a pull + // request ID is specified, it must use the format pr/pull-request-ID (for example, + // pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If // not specified, the default branch's HEAD commit ID is used. // - // * For Amazon S3: - // the version ID of the object that represents the build input ZIP file to use. + // * For Bitbucket: + // the commit ID, branch name, or tag name that corresponds to the version of the + // source code you want to build. If a branch name is specified, the branch's HEAD + // commit ID is used. If not specified, the default branch's HEAD commit ID is + // used. + // + // * For Amazon S3: the version ID of the object that represents the build + // input ZIP file to use. SecondarySourceVersions []ProjectSourceVersion // An array of ProjectSource objects. @@ -181,18 +183,18 @@ type Build struct { // build level) takes precedence. For more information, see Source Version Sample // with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. SourceVersion *string // When the build process started, expressed in Unix time format. StartTime *time.Time - // How long, in minutes, for CodeBuild to wait before timing out this build if it - // does not get marked as completed. + // How long, in minutes, for AWS CodeBuild to wait before timing out this build if + // it does not get marked as completed. TimeoutInMinutes *int32 - // If your CodeBuild project accesses resources in an Amazon VPC, you provide this - // parameter that identifies the VPC ID and the list of security group IDs and + // If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide + // this parameter that identifies the VPC ID and the list of security group IDs and // subnet IDs. The security groups and subnets must belong to the same VPC. You // must provide at least one security group and one subnet ID. VpcConfig *VpcConfig @@ -206,6 +208,29 @@ type BuildArtifacts struct { // An identifier for this artifact definition. ArtifactIdentifier *string + // Specifies the access for objects that are uploaded to an Amazon S3 bucket that + // is owned by another account. By default, only the account that uploads the + // objects to the bucket has access to these objects. This property allows you to + // give the bucket owner access to these objects. NONE The bucket owner does not + // have access to the objects. This is the default. READ_ONLY The bucket owner has + // read only access to the objects. The uploading account retains ownership of the + // objects. FULL The bucket owner has full access to the objects. Object ownership + // is determined by the following criteria: + // + // * If the bucket is configured with the + // Bucket owner preferred setting, the bucket owner owns the objects. The uploading + // account will have object access as specified by the bucket's policy. + // + // * + // Otherwise, the uploading account retains ownership of the objects. + // + // For more + // information about Amazon S3 object ownership, see Controlling ownership of + // uploaded objects using S3 Object Ownership + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) + // in the Amazon Simple Storage Service User Guide. + BucketOwnerAccess BucketOwnerAccess + // Information that tells you if encryption for build artifacts is disabled. EncryptionDisabled *bool @@ -274,11 +299,11 @@ type BuildBatch struct { // Batch session debugging is not supported for matrix batch builds. DebugSessionEnabled *bool - // The Key Management Service customer master key (CMK) to be used for encrypting - // the batch build output artifacts. You can use a cross-account KMS key to encrypt - // the build output artifacts if your service role has permission to that key. You - // can specify either the Amazon Resource Name (ARN) of the CMK or, if available, - // the CMK's alias (using the format alias/). + // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used + // for encrypting the batch build output artifacts. You can use a cross-account KMS + // key to encrypt the build output artifacts if your service role has permission to + // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, + // if available, the CMK's alias (using the format alias/). EncryptionKey *string // The date and time that the batch build ended. @@ -298,19 +323,19 @@ type BuildBatch struct { // The entity that started the batch build. Valid values include: // - // * If + // * If AWS // CodePipeline started the build, the pipeline's name (for example, // codepipeline/my-demo-pipeline). // - // * If an Identity and Access Management user - // started the build, the user's name. + // * If an AWS Identity and Access Management + // (IAM) user started the build, the user's name. // - // * If the Jenkins plugin for CodeBuild - // started the build, the string CodeBuild-Jenkins-Plugin. + // * If the Jenkins plugin for AWS + // CodeBuild started the build, the string CodeBuild-Jenkins-Plugin. Initiator *string - // Information about logs for a build project. These can be logs in CloudWatch - // Logs, built in a specified S3 bucket, or both. + // Information about logs for a build project. These can be logs in Amazon + // CloudWatch Logs, built in a specified S3 bucket, or both. LogConfig *LogsConfig // An array of BuildBatchPhase objects the specify the phases of the batch build. @@ -326,13 +351,13 @@ type BuildBatch struct { // The identifier of the resolved version of this batch build's source code. // // * For - // CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. + // AWS CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. // // * For - // CodePipeline, the source revision provided by CodePipeline. + // AWS CodePipeline, the source revision provided by AWS CodePipeline. // - // * For Amazon S3, - // this does not apply. + // * For + // Amazon S3, this does not apply. ResolvedSourceVersion *string // An array of BuildArtifacts objects the define the build artifacts for this batch @@ -342,22 +367,23 @@ type BuildBatch struct { // An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one // of: // - // * For CodeCommit: the commit ID, branch, or Git tag to use. - // - // * For GitHub: - // the commit ID, pull request ID, branch name, or tag name that corresponds to the - // version of the source code you want to build. If a pull request ID is specified, - // it must use the format pr/pull-request-ID (for example, pr/25). If a branch name - // is specified, the branch's HEAD commit ID is used. If not specified, the default - // branch's HEAD commit ID is used. + // * For AWS CodeCommit: the commit ID, branch, or Git tag to use. // - // * For Bitbucket: the commit ID, branch name, - // or tag name that corresponds to the version of the source code you want to - // build. If a branch name is specified, the branch's HEAD commit ID is used. If + // * For + // GitHub: the commit ID, pull request ID, branch name, or tag name that + // corresponds to the version of the source code you want to build. If a pull + // request ID is specified, it must use the format pr/pull-request-ID (for example, + // pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If // not specified, the default branch's HEAD commit ID is used. // - // * For Amazon S3: - // the version ID of the object that represents the build input ZIP file to use. + // * For Bitbucket: + // the commit ID, branch name, or tag name that corresponds to the version of the + // source code you want to build. If a branch name is specified, the branch's HEAD + // commit ID is used. If not specified, the default branch's HEAD commit ID is + // used. + // + // * For Amazon S3: the version ID of the object that represents the build + // input ZIP file to use. SecondarySourceVersions []ProjectSourceVersion // An array of ProjectSource objects that define the sources for the batch build. @@ -375,7 +401,7 @@ type BuildBatch struct { // The date and time that the batch build started. StartTime *time.Time - // Information about the VPC configuration that CodeBuild accesses. + // Information about the VPC configuration that AWS CodeBuild accesses. VpcConfig *VpcConfig noSmithyDocumentSerde @@ -525,8 +551,8 @@ type BuildPhase struct { noSmithyDocumentSerde } -// Contains information that defines how the CodeBuild build project reports the -// build status to the source provider. +// Contains information that defines how the AWS CodeBuild build project reports +// the build status to the source provider. type BuildStatusConfig struct { // Specifies the context of the build status CodeBuild sends to the source @@ -582,27 +608,28 @@ type BuildSummary struct { noSmithyDocumentSerde } -// Information about CloudWatch Logs for a build project. +// Information about Amazon CloudWatch Logs for a build project. type CloudWatchLogsConfig struct { - // The current status of the logs in CloudWatch Logs for a build project. Valid - // values are: + // The current status of the logs in Amazon CloudWatch Logs for a build project. + // Valid values are: // - // * ENABLED: CloudWatch Logs are enabled for this build project. + // * ENABLED: Amazon CloudWatch Logs are enabled for this build + // project. // - // * - // DISABLED: CloudWatch Logs are not enabled for this build project. + // * DISABLED: Amazon CloudWatch Logs are not enabled for this build + // project. // // This member is required. Status LogsConfigStatusType - // The group name of the logs in CloudWatch Logs. For more information, see Working - // with Log Groups and Log Streams + // The group name of the logs in Amazon CloudWatch Logs. For more information, see + // Working with Log Groups and Log Streams // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html). GroupName *string - // The prefix of the stream name of the CloudWatch Logs. For more information, see - // Working with Log Groups and Log Streams + // The prefix of the stream name of the Amazon CloudWatch Logs. For more + // information, see Working with Log Groups and Log Streams // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html). StreamName *string @@ -691,7 +718,7 @@ type DebugSession struct { noSmithyDocumentSerde } -// Information about a Docker image that is managed by CodeBuild. +// Information about a Docker image that is managed by AWS CodeBuild. type EnvironmentImage struct { // The description of the Docker image. @@ -707,7 +734,7 @@ type EnvironmentImage struct { } // A set of Docker images that are related by programming language and are managed -// by CodeBuild. +// by AWS CodeBuild. type EnvironmentLanguage struct { // The list of Docker images that are related by the specified programming @@ -720,7 +747,7 @@ type EnvironmentLanguage struct { noSmithyDocumentSerde } -// A set of Docker images that are related by platform and are managed by +// A set of Docker images that are related by platform and are managed by AWS // CodeBuild. type EnvironmentPlatform struct { @@ -742,11 +769,11 @@ type EnvironmentVariable struct { Name *string // The value of the environment variable. We strongly discourage the use of - // PLAINTEXT environment variables to store sensitive values, especially Amazon Web - // Services secret key IDs and secret access keys. PLAINTEXT environment variables - // can be displayed in plain text using the CodeBuild console and the AWS Command - // Line Interface (AWS CLI). For sensitive values, we recommend you use an - // environment variable of type PARAMETER_STORE or SECRETS_MANAGER. + // PLAINTEXT environment variables to store sensitive values, especially AWS secret + // key IDs and secret access keys. PLAINTEXT environment variables can be displayed + // in plain text using the AWS CodeBuild console and the AWS Command Line Interface + // (AWS CLI). For sensitive values, we recommend you use an environment variable of + // type PARAMETER_STORE or SECRETS_MANAGER. // // This member is required. Value *string @@ -754,30 +781,31 @@ type EnvironmentVariable struct { // The type of environment variable. Valid values include: // // * PARAMETER_STORE: An - // environment variable stored in Systems Manager Parameter Store. To learn how to - // specify a parameter store environment variable, see env/parameter-store + // environment variable stored in Amazon EC2 Systems Manager Parameter Store. To + // learn how to specify a parameter store environment variable, see + // env/parameter-store // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.parameter-store) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. // - // * PLAINTEXT: An environment variable in plain text - // format. This is the default value. + // * PLAINTEXT: An environment variable in plain + // text format. This is the default value. // - // * SECRETS_MANAGER: An environment variable - // stored in Secrets Manager. To learn how to specify a secrets manager environment - // variable, see env/secrets-manager + // * SECRETS_MANAGER: An environment + // variable stored in AWS Secrets Manager. To learn how to specify a secrets + // manager environment variable, see env/secrets-manager // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. Type EnvironmentVariableType noSmithyDocumentSerde } // Contains information about an exported environment variable. Exported -// environment variables are used in conjunction with CodePipeline to export +// environment variables are used in conjunction with AWS CodePipeline to export // environment variables from the current build stage to subsequent stages in the // pipeline. For more information, see Working with variables // (https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html) -// in the CodePipeline User Guide. During a build, the value of a variable is +// in the AWS CodePipeline User Guide. During a build, the value of a variable is // available starting with the install phase. It can be updated between the start // of the install phase and the end of the post_build phase. After the post_build // phase ends, the value of exported variables cannot change. @@ -792,11 +820,11 @@ type ExportedEnvironmentVariable struct { noSmithyDocumentSerde } -// Information about the Git submodules configuration for an CodeBuild build +// Information about the Git submodules configuration for an AWS CodeBuild build // project. type GitSubmodulesConfig struct { - // Set to true to fetch Git submodules for your CodeBuild build project. + // Set to true to fetch Git submodules for your AWS CodeBuild build project. // // This member is required. FetchSubmodules *bool @@ -804,12 +832,12 @@ type GitSubmodulesConfig struct { noSmithyDocumentSerde } -// Information about logs for a build project. These can be logs in CloudWatch -// Logs, built in a specified S3 bucket, or both. +// Information about logs for a build project. These can be logs in Amazon +// CloudWatch Logs, built in a specified S3 bucket, or both. type LogsConfig struct { - // Information about CloudWatch Logs for a build project. CloudWatch Logs are - // enabled by default. + // Information about Amazon CloudWatch Logs for a build project. Amazon CloudWatch + // Logs are enabled by default. CloudWatchLogs *CloudWatchLogsConfig // Information about logs built to an S3 bucket for a build project. S3 logs are @@ -819,22 +847,22 @@ type LogsConfig struct { noSmithyDocumentSerde } -// Information about build logs in CloudWatch Logs. +// Information about build logs in Amazon CloudWatch Logs. type LogsLocation struct { - // Information about CloudWatch Logs for a build project. + // Information about Amazon CloudWatch Logs for a build project. CloudWatchLogs *CloudWatchLogsConfig - // The ARN of CloudWatch Logs for a build project. Its format is + // The ARN of Amazon CloudWatch Logs for a build project. Its format is // arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}. - // For more information, see Resources Defined by CloudWatch Logs + // For more information, see Resources Defined by Amazon CloudWatch Logs // (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies). CloudWatchLogsArn *string - // The URL to an individual build log in CloudWatch Logs. + // The URL to an individual build log in Amazon CloudWatch Logs. DeepLink *string - // The name of the CloudWatch Logs group for the build logs. + // The name of the Amazon CloudWatch Logs group for the build logs. GroupName *string // The URL to a build log in an S3 bucket. @@ -849,7 +877,7 @@ type LogsLocation struct { // (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies). S3LogsArn *string - // The name of the CloudWatch Logs stream for the build logs. + // The name of the Amazon CloudWatch Logs stream for the build logs. StreamName *string noSmithyDocumentSerde @@ -912,12 +940,11 @@ type Project struct { // A description that makes the build project easy to identify. Description *string - // The Key Management Service customer master key (CMK) to be used for encrypting - // the build output artifacts. You can use a cross-account KMS key to encrypt the - // build output artifacts if your service role has permission to that key. You can - // specify either the Amazon Resource Name (ARN) of the CMK or, if available, the - // CMK's alias (using the format alias/). If you don't specify a value, CodeBuild - // uses the managed CMK for Amazon Simple Storage Service (Amazon S3). + // The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used + // for encrypting the build output artifacts. You can use a cross-account KMS key + // to encrypt the build output artifacts if your service role has permission to + // that key. You can specify either the Amazon Resource Name (ARN) of the CMK or, + // if available, the CMK's alias (using the format alias/). EncryptionKey *string // Information about the build environment for this build project. @@ -934,7 +961,7 @@ type Project struct { LastModified *time.Time // Information about logs for the build project. A project can create logs in - // CloudWatch Logs, an S3 bucket, or both. + // Amazon CloudWatch Logs, an S3 bucket, or both. LogsConfig *LogsConfig // The name of the build project. @@ -954,9 +981,8 @@ type Project struct { // An array of ProjectSource objects. SecondarySources []ProjectSource - // The ARN of the Identity and Access Management role that enables CodeBuild to - // interact with dependent Amazon Web Services services on behalf of the Amazon Web - // Services account. + // The ARN of the AWS Identity and Access Management (IAM) role that enables AWS + // CodeBuild to interact with dependent AWS services on behalf of the AWS account. ServiceRole *string // Information about the build input source code for this build project. @@ -965,47 +991,47 @@ type Project struct { // A version of the build input to be built for this project. If not specified, the // latest version is used. If specified, it must be one of: // - // * For CodeCommit: the - // commit ID, branch, or Git tag to use. + // * For AWS CodeCommit: + // the commit ID, branch, or Git tag to use. // - // * For GitHub: the commit ID, pull request - // ID, branch name, or tag name that corresponds to the version of the source code - // you want to build. If a pull request ID is specified, it must use the format - // pr/pull-request-ID (for example pr/25). If a branch name is specified, the - // branch's HEAD commit ID is used. If not specified, the default branch's HEAD - // commit ID is used. + // * For GitHub: the commit ID, pull + // request ID, branch name, or tag name that corresponds to the version of the + // source code you want to build. If a pull request ID is specified, it must use + // the format pr/pull-request-ID (for example pr/25). If a branch name is + // specified, the branch's HEAD commit ID is used. If not specified, the default + // branch's HEAD commit ID is used. // - // * For Bitbucket: the commit ID, branch name, or tag name - // that corresponds to the version of the source code you want to build. If a - // branch name is specified, the branch's HEAD commit ID is used. If not specified, - // the default branch's HEAD commit ID is used. + // * For Bitbucket: the commit ID, branch name, + // or tag name that corresponds to the version of the source code you want to + // build. If a branch name is specified, the branch's HEAD commit ID is used. If + // not specified, the default branch's HEAD commit ID is used. // - // * For Amazon S3: the version ID of - // the object that represents the build input ZIP file to use. + // * For Amazon S3: + // the version ID of the object that represents the build input ZIP file to + // use. // - // If sourceVersion is - // specified at the build level, then that version takes precedence over this - // sourceVersion (at the project level). For more information, see Source Version - // Sample with CodeBuild + // If sourceVersion is specified at the build level, then that version takes + // precedence over this sourceVersion (at the project level). For more information, + // see Source Version Sample with CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. SourceVersion *string // A list of tag key and value pairs associated with this build project. These tags - // are available for use by Amazon Web Services services that support CodeBuild - // build project tags. + // are available for use by AWS services that support AWS CodeBuild build project + // tags. Tags []Tag - // How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before + // How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before // timing out any related build that did not get marked as completed. The default // is 60 minutes. TimeoutInMinutes *int32 - // Information about the VPC configuration that CodeBuild accesses. + // Information about the VPC configuration that AWS CodeBuild accesses. VpcConfig *VpcConfig // Information about a webhook that connects repository events to a build project - // in CodeBuild. + // in AWS CodeBuild. Webhook *Webhook noSmithyDocumentSerde @@ -1017,14 +1043,14 @@ type ProjectArtifacts struct { // The type of build output artifact. Valid values include: // // * CODEPIPELINE: The - // build project has build output generated through CodePipeline. The CODEPIPELINE - // type is not supported for secondaryArtifacts. + // build project has build output generated through AWS CodePipeline. The + // CODEPIPELINE type is not supported for secondaryArtifacts. // - // * NO_ARTIFACTS: The build project - // does not produce any build output. + // * NO_ARTIFACTS: The + // build project does not produce any build output. // - // * S3: The build project stores build output - // in Amazon S3. + // * S3: The build project stores + // build output in Amazon S3. // // This member is required. Type ArtifactsType @@ -1032,6 +1058,29 @@ type ProjectArtifacts struct { // An identifier for this artifact definition. ArtifactIdentifier *string + // Specifies the access for objects that are uploaded to an Amazon S3 bucket that + // is owned by another account. By default, only the account that uploads the + // objects to the bucket has access to these objects. This property allows you to + // give the bucket owner access to these objects. NONE The bucket owner does not + // have access to the objects. This is the default. READ_ONLY The bucket owner has + // read only access to the objects. The uploading account retains ownership of the + // objects. FULL The bucket owner has full access to the objects. Object ownership + // is determined by the following criteria: + // + // * If the bucket is configured with the + // Bucket owner preferred setting, the bucket owner owns the objects. The uploading + // account will have object access as specified by the bucket's policy. + // + // * + // Otherwise, the uploading account retains ownership of the objects. + // + // For more + // information about Amazon S3 object ownership, see Controlling ownership of + // uploaded objects using S3 Object Ownership + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) + // in the Amazon Simple Storage Service User Guide. + BucketOwnerAccess BucketOwnerAccess + // Set to true if you do not want your output artifacts encrypted. This option is // valid only if your artifacts type is Amazon S3. If this is set with another // artifacts type, an invalidInputException is thrown. @@ -1040,64 +1089,65 @@ type ProjectArtifacts struct { // Information about the build output artifact location: // // * If type is set to - // CODEPIPELINE, CodePipeline ignores this value if specified. This is because - // CodePipeline manages its build output locations instead of CodeBuild. + // CODEPIPELINE, AWS CodePipeline ignores this value if specified. This is because + // AWS CodePipeline manages its build output locations instead of AWS CodeBuild. // - // * If type - // is set to NO_ARTIFACTS, this value is ignored if specified, because no build - // output is produced. + // * + // If type is set to NO_ARTIFACTS, this value is ignored if specified, because no + // build output is produced. // - // * If type is set to S3, this is the name of the output - // bucket. + // * If type is set to S3, this is the name of the + // output bucket. Location *string - // Along with path and namespaceType, the pattern that CodeBuild uses to name and - // store the output artifact: + // Along with path and namespaceType, the pattern that AWS CodeBuild uses to name + // and store the output artifact: // - // * If type is set to CODEPIPELINE, CodePipeline - // ignores this value if specified. This is because CodePipeline manages its build - // output names instead of CodeBuild. + // * If type is set to CODEPIPELINE, AWS + // CodePipeline ignores this value if specified. This is because AWS CodePipeline + // manages its build output names instead of AWS CodeBuild. // - // * If type is set to NO_ARTIFACTS, this value - // is ignored if specified, because no build output is produced. + // * If type is set to + // NO_ARTIFACTS, this value is ignored if specified, because no build output is + // produced. // - // * If type is set - // to S3, this is the name of the output artifact object. If you set the name to be - // a forward slash ("/"), the artifact is stored in the root of the output - // bucket. + // * If type is set to S3, this is the name of the output artifact + // object. If you set the name to be a forward slash ("/"), the artifact is stored + // in the root of the output bucket. // // For example: // - // * If path is set to MyArtifacts, namespaceType is set to - // BUILD_ID, and name is set to MyArtifact.zip, then the output artifact is stored - // in MyArtifacts//MyArtifact.zip. + // * If path is set to + // MyArtifacts, namespaceType is set to BUILD_ID, and name is set to + // MyArtifact.zip, then the output artifact is stored in + // MyArtifacts//MyArtifact.zip. // - // * If path is empty, namespaceType is set to - // NONE, and name is set to "/", the output artifact is stored in the root of the - // output bucket. + // * If path is empty, namespaceType is set to NONE, + // and name is set to "/", the output artifact is stored in the root of the output + // bucket. // - // * If path is set to MyArtifacts, namespaceType is set to - // BUILD_ID, and name is set to "/", the output artifact is stored in MyArtifacts/. + // * If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and + // name is set to "/", the output artifact is stored in MyArtifacts/. Name *string - // Along with path and name, the pattern that CodeBuild uses to determine the name - // and location to store the output artifact: - // - // * If type is set to CODEPIPELINE, - // CodePipeline ignores this value if specified. This is because CodePipeline - // manages its build output names instead of CodeBuild. + // Along with path and name, the pattern that AWS CodeBuild uses to determine the + // name and location to store the output artifact: // // * If type is set to - // NO_ARTIFACTS, this value is ignored if specified, because no build output is - // produced. + // CODEPIPELINE, AWS CodePipeline ignores this value if specified. This is because + // AWS CodePipeline manages its build output names instead of AWS CodeBuild. + // + // * If + // type is set to NO_ARTIFACTS, this value is ignored if specified, because no + // build output is produced. // // * If type is set to S3, valid values include: // - // * BUILD_ID: Include - // the build ID in the location of the build output artifact. + // * + // BUILD_ID: Include the build ID in the location of the build output artifact. // - // * NONE: Do not - // include the build ID. This is the default if namespaceType is not + // * + // NONE: Do not include the build ID. This is the default if namespaceType is not // specified. // // For example, if path is set to MyArtifacts, namespaceType is set to @@ -1114,40 +1164,42 @@ type ProjectArtifacts struct { // The type of build output artifact to create: // // * If type is set to CODEPIPELINE, - // CodePipeline ignores this value if specified. This is because CodePipeline - // manages its build output artifacts instead of CodeBuild. + // AWS CodePipeline ignores this value if specified. This is because AWS + // CodePipeline manages its build output artifacts instead of AWS CodeBuild. // - // * If type is set to - // NO_ARTIFACTS, this value is ignored if specified, because no build output is - // produced. + // * If + // type is set to NO_ARTIFACTS, this value is ignored if specified, because no + // build output is produced. // // * If type is set to S3, valid values include: // - // * NONE: CodeBuild - // creates in the output bucket a folder that contains the build output. This is - // the default if packaging is not specified. + // * + // NONE: AWS CodeBuild creates in the output bucket a folder that contains the + // build output. This is the default if packaging is not specified. // - // * ZIP: CodeBuild creates in the - // output bucket a ZIP file that contains the build output. + // * ZIP: AWS + // CodeBuild creates in the output bucket a ZIP file that contains the build + // output. Packaging ArtifactPackaging - // Along with namespaceType and name, the pattern that CodeBuild uses to name and - // store the output artifact: + // Along with namespaceType and name, the pattern that AWS CodeBuild uses to name + // and store the output artifact: // - // * If type is set to CODEPIPELINE, CodePipeline - // ignores this value if specified. This is because CodePipeline manages its build - // output names instead of CodeBuild. + // * If type is set to CODEPIPELINE, AWS + // CodePipeline ignores this value if specified. This is because AWS CodePipeline + // manages its build output names instead of AWS CodeBuild. // - // * If type is set to NO_ARTIFACTS, this value - // is ignored if specified, because no build output is produced. + // * If type is set to + // NO_ARTIFACTS, this value is ignored if specified, because no build output is + // produced. // - // * If type is set - // to S3, this is the path to the output artifact. If path is not specified, path - // is not used. + // * If type is set to S3, this is the path to the output artifact. If + // path is not specified, path is not used. // - // For example, if path is set to MyArtifacts, namespaceType is set - // to NONE, and name is set to MyArtifact.zip, the output artifact is stored in the - // output bucket at MyArtifacts/MyArtifact.zip. + // For example, if path is set to + // MyArtifacts, namespaceType is set to NONE, and name is set to MyArtifact.zip, + // the output artifact is stored in the output bucket at + // MyArtifacts/MyArtifact.zip. Path *string noSmithyDocumentSerde @@ -1288,7 +1340,7 @@ type ProjectEnvironment struct { // For more // information, see Build Environment Compute Types // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. // // This member is required. ComputeType ComputeType @@ -1305,11 +1357,6 @@ type ProjectEnvironment struct { // "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf," use // /@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf. // - // For - // more information, see Docker images provided by CodeBuild - // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html) - // in the CodeBuild user guide. - // // This member is required. Image *string @@ -1333,15 +1380,6 @@ type ProjectEnvironment struct { // Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific // (Sydney) , China (Beijing), and China (Ningxia). // - // * The environment types - // WINDOWS_CONTAINER and WINDOWS_SERVER_2019_CONTAINER are available only in - // regions US East (N. Virginia), US East (Ohio), US West (Oregon), and EU - // (Ireland). - // - // For more information, see Build environment compute types - // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) - // in the CodeBuild user guide. - // // This member is required. Type EnvironmentType @@ -1349,26 +1387,26 @@ type ProjectEnvironment struct { // PEM-encoded certificate for the build project. For more information, see // certificate // (https://docs.aws.amazon.com/codebuild/latest/userguide/create-project-cli.html#cli.environment.certificate) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. Certificate *string // A set of environment variables to make available to builds for this build // project. EnvironmentVariables []EnvironmentVariable - // The type of credentials CodeBuild uses to pull images in your build. There are - // two valid values: + // The type of credentials AWS CodeBuild uses to pull images in your build. There + // are two valid values: // - // * CODEBUILD specifies that CodeBuild uses its own + // * CODEBUILD specifies that AWS CodeBuild uses its own // credentials. This requires that you modify your ECR repository policy to trust - // CodeBuild service principal. + // AWS CodeBuild's service principal. // - // * SERVICE_ROLE specifies that CodeBuild uses your - // build project's service role. + // * SERVICE_ROLE specifies that AWS CodeBuild + // uses your build project's service role. // - // When you use a cross-account or private registry - // image, you must use SERVICE_ROLE credentials. When you use an CodeBuild curated - // image, you must use CODEBUILD credentials. + // When you use a cross-account or private + // registry image, you must use SERVICE_ROLE credentials. When you use an AWS + // CodeBuild curated image, you must use CODEBUILD credentials. ImagePullCredentialsType ImagePullCredentialsType // Enables running the Docker daemon inside a Docker container. Set to true only if @@ -1407,8 +1445,8 @@ type ProjectFileSystemLocation struct { // A string that specifies the location of the file system created by Amazon EFS. // Its format is efs-dns-name:/directory-path. You can find the DNS name of file - // system when you view it in the Amazon EFS console. The directory path is a path - // to a directory in the file system that CodeBuild mounts. For example, if the DNS + // system when you view it in the AWS EFS console. The directory path is a path to + // a directory in the file system that CodeBuild mounts. For example, if the DNS // name of a file system is fs-abcd1234.efs.us-west-2.amazonaws.com, and its mount // directory is my-efs-mount-directory, then the location is // fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory. The directory @@ -1417,7 +1455,7 @@ type ProjectFileSystemLocation struct { // the entire file system. Location *string - // The mount options for a file system created by Amazon EFS. The default mount + // The mount options for a file system created by AWS EFS. The default mount // options used by CodeBuild are // nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2. For more // information, see Recommended NFS Mount Options @@ -1442,10 +1480,10 @@ type ProjectSource struct { // * BITBUCKET: The source code is in a Bitbucket repository. // // * - // CODECOMMIT: The source code is in an CodeCommit repository. + // CODECOMMIT: The source code is in an AWS CodeCommit repository. // - // * CODEPIPELINE: The - // source code settings are specified in the source action of a pipeline in + // * CODEPIPELINE: + // The source code settings are specified in the source action of a pipeline in AWS // CodePipeline. // // * GITHUB: The source code is in a GitHub or GitHub Enterprise @@ -1462,9 +1500,9 @@ type ProjectSource struct { // This member is required. Type SourceType - // Information about the authorization settings for CodeBuild to access the source - // code to be built. This information is for the CodeBuild console's use only. Your - // code should not get or set this information directly. + // Information about the authorization settings for AWS CodeBuild to access the + // source code to be built. This information is for the AWS CodeBuild console's use + // only. Your code should not get or set this information directly. Auth *SourceAuth // Contains information that defines how the build project reports the build status @@ -1476,7 +1514,7 @@ type ProjectSource struct { // this value is set, it can be either an inline buildspec definition, the path to // an alternate buildspec file relative to the value of the built-in // CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket. The bucket - // must be in the same Region as the build project. Specify the buildspec file + // must be in the same AWS Region as the build project. Specify the buildspec file // using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If // this value is not provided or is set to an empty string, the source code must // contain a buildspec file in its root directory. For more information, see @@ -1498,13 +1536,13 @@ type ProjectSource struct { // include: // // * For source code settings that are specified in the source action of - // a pipeline in CodePipeline, location should not be specified. If it is - // specified, CodePipeline ignores it. This is because CodePipeline uses the - // settings in a pipeline's source action instead of this value. + // a pipeline in AWS CodePipeline, location should not be specified. If it is + // specified, AWS CodePipeline ignores it. This is because AWS CodePipeline uses + // the settings in a pipeline's source action instead of this value. // - // * For source code - // in an CodeCommit repository, the HTTPS clone URL to the repository that contains - // the source code and the buildspec file (for example, + // * For source + // code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that + // contains the source code and the buildspec file (for example, // https://git-codecommit..amazonaws.com/v1/repos/). // // * For source code in an @@ -1518,29 +1556,26 @@ type ProjectSource struct { // // * For source code in a GitHub // repository, the HTTPS clone URL to the repository that contains the source and - // the buildspec file. You must connect your account to your GitHub account. Use - // the CodeBuild console to start creating a build project. When you use the - // console to connect (or reconnect) with GitHub, on the GitHub Authorize + // the buildspec file. You must connect your AWS account to your GitHub account. + // Use the AWS CodeBuild console to start creating a build project. When you use + // the console to connect (or reconnect) with GitHub, on the GitHub Authorize // application page, for Organization access, choose Request access next to each - // repository you want to allow CodeBuild to have access to, and then choose + // repository you want to allow AWS CodeBuild to have access to, and then choose // Authorize application. (After you have connected to your GitHub account, you do - // not need to finish creating the build project. You can leave the CodeBuild - // console.) To instruct CodeBuild to use this connection, in the source object, - // set the auth object's type value to OAUTH. - // - // * For source code in a Bitbucket - // repository, the HTTPS clone URL to the repository that contains the source and - // the buildspec file. You must connect your Amazon Web Services account to your - // Bitbucket account. Use the CodeBuild console to start creating a build project. - // When you use the console to connect (or reconnect) with Bitbucket, on the - // Bitbucket Confirm access to your account page, choose Grant access. (After you - // have connected to your Bitbucket account, you do not need to finish creating the - // build project. You can leave the CodeBuild console.) To instruct CodeBuild to - // use this connection, in the source object, set the auth object's type value to - // OAUTH. - // - // If you specify CODEPIPELINE for the Type property, don't specify this - // property. For all of the other types, you must specify Location. + // not need to finish creating the build project. You can leave the AWS CodeBuild + // console.) To instruct AWS CodeBuild to use this connection, in the source + // object, set the auth object's type value to OAUTH. + // + // * For source code in a + // Bitbucket repository, the HTTPS clone URL to the repository that contains the + // source and the buildspec file. You must connect your AWS account to your + // Bitbucket account. Use the AWS CodeBuild console to start creating a build + // project. When you use the console to connect (or reconnect) with Bitbucket, on + // the Bitbucket Confirm access to your account page, choose Grant access. (After + // you have connected to your Bitbucket account, you do not need to finish creating + // the build project. You can leave the AWS CodeBuild console.) To instruct AWS + // CodeBuild to use this connection, in the source object, set the auth object's + // type value to OAUTH. Location *string // Set to true to report the status of a build's start and finish to your source @@ -1551,8 +1586,8 @@ type ProjectSource struct { // have write access to the repo. If the user does not have write access, the build // status cannot be updated. For more information, see Source provider access // (https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html) in - // the CodeBuild User Guide. The status of a build triggered by a webhook is always - // reported to your source provider. + // the AWS CodeBuild User Guide. The status of a build triggered by a webhook is + // always reported to your source provider. ReportBuildStatus *bool // An identifier for this project source. The identifier can only contain @@ -1576,10 +1611,10 @@ type ProjectSourceVersion struct { // The source version for the corresponding source identifier. If specified, must // be one of: // - // * For CodeCommit: the commit ID, branch, or Git tag to use. + // * For AWS CodeCommit: the commit ID, branch, or Git tag to use. // - // * For - // GitHub: the commit ID, pull request ID, branch name, or tag name that + // * + // For GitHub: the commit ID, pull request ID, branch name, or tag name that // corresponds to the version of the source code you want to build. If a pull // request ID is specified, it must use the format pr/pull-request-ID (for example, // pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If @@ -1597,7 +1632,7 @@ type ProjectSourceVersion struct { // For more information, see Source Version Sample with // CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) - // in the CodeBuild User Guide. + // in the AWS CodeBuild User Guide. // // This member is required. SourceVersion *string @@ -1614,19 +1649,19 @@ type ProjectSourceVersion struct { // images cannot be curated or an Amazon ECR image. // // For more information, see -// Private Registry with Secrets Manager Sample for CodeBuild +// Private Registry with AWS Secrets Manager Sample for AWS CodeBuild // (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-private-registry.html). type RegistryCredential struct { - // The Amazon Resource Name (ARN) or name of credentials created using Secrets + // The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets // Manager. The credential can use the name of the credentials only if they exist - // in your current Region. + // in your current AWS Region. // // This member is required. Credential *string // The service that created the credentials to access a private Docker registry. - // The valid value, SECRETS_MANAGER, is for Secrets Manager. + // The valid value, SECRETS_MANAGER, is for AWS Secrets Manager. // // This member is required. CredentialProvider CredentialProviderType @@ -1739,8 +1774,8 @@ type ReportGroup struct { Status ReportGroupStatusType // A list of tag key and value pairs associated with this report group. These tags - // are available for use by Amazon Web Services services that support CodeBuild - // report group tags. + // are available for use by AWS services that support AWS CodeBuild report group + // tags. Tags []Tag // The type of the ReportGroup. This can be one of the following values: @@ -1809,6 +1844,29 @@ type S3LogsConfig struct { // This member is required. Status LogsConfigStatusType + // Specifies the access for objects that are uploaded to an Amazon S3 bucket that + // is owned by another account. By default, only the account that uploads the + // objects to the bucket has access to these objects. This property allows you to + // give the bucket owner access to these objects. NONE The bucket owner does not + // have access to the objects. This is the default. READ_ONLY The bucket owner has + // read only access to the objects. The uploading account retains ownership of the + // objects. FULL The bucket owner has full access to the objects. Object ownership + // is determined by the following criteria: + // + // * If the bucket is configured with the + // Bucket owner preferred setting, the bucket owner owns the objects. The uploading + // account will have object access as specified by the bucket's policy. + // + // * + // Otherwise, the uploading account retains ownership of the objects. + // + // For more + // information about Amazon S3 object ownership, see Controlling ownership of + // uploaded objects using S3 Object Ownership + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) + // in the Amazon Simple Storage Service User Guide. + BucketOwnerAccess BucketOwnerAccess + // Set to true if you do not want your S3 build log output encrypted. By default S3 // build logs are encrypted. EncryptionDisabled *bool @@ -1827,9 +1885,9 @@ type S3ReportExportConfig struct { // The name of the S3 bucket where the raw data of a report are exported. Bucket *string - // The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. - // This allows report data to be exported to an Amazon S3 bucket that is owned by - // an account other than the account running the build. + // The AWS account identifier of the owner of the Amazon S3 bucket. This allows + // report data to be exported to an Amazon S3 bucket that is owned by an account + // other than the account running the build. BucketOwner *string // A boolean value that specifies if the results of a report are encrypted. @@ -1840,12 +1898,12 @@ type S3ReportExportConfig struct { // The type of build output artifact to create. Valid values include: // - // * NONE: + // * NONE: AWS // CodeBuild creates the raw data in the output bucket. This is the default if // packaging is not specified. // - // * ZIP: CodeBuild creates a ZIP file with the raw - // data in the output bucket. + // * ZIP: AWS CodeBuild creates a ZIP file with the + // raw data in the output bucket. Packaging ReportPackagingType // The path to the exported report's raw data results. @@ -1854,9 +1912,9 @@ type S3ReportExportConfig struct { noSmithyDocumentSerde } -// Information about the authorization settings for CodeBuild to access the source -// code to be built. This information is for the CodeBuild console's use only. Your -// code should not get or set this information directly. +// Information about the authorization settings for AWS CodeBuild to access the +// source code to be built. This information is for the AWS CodeBuild console's use +// only. Your code should not get or set this information directly. type SourceAuth struct { // This data type is deprecated and is no longer accurate or used. The @@ -1890,8 +1948,8 @@ type SourceCredentialsInfo struct { noSmithyDocumentSerde } -// A tag, consisting of a key and a value. This tag is available for use by Amazon -// Web Services services that support tags in CodeBuild. +// A tag, consisting of a key and a value. This tag is available for use by AWS +// services that support tags in AWS CodeBuild. type Tag struct { // The tag's key. @@ -1987,7 +2045,7 @@ type TestReportSummary struct { noSmithyDocumentSerde } -// Information about the VPC configuration that CodeBuild accesses. +// Information about the VPC configuration that AWS CodeBuild accesses. type VpcConfig struct { // A list of one or more security groups IDs in your Amazon VPC. @@ -2003,7 +2061,7 @@ type VpcConfig struct { } // Information about a webhook that connects repository events to a build project -// in CodeBuild. +// in AWS CodeBuild. type Webhook struct { // A regular expression used to determine which repository branches are built when @@ -2025,7 +2083,7 @@ type Webhook struct { // modified. LastModifiedSecret *time.Time - // The CodeBuild endpoint where webhook events are sent. + // The AWS CodeBuild endpoint where webhook events are sent. PayloadUrl *string // The secret token of the associated repository. A Bitbucket webhook does not diff --git a/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go b/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go index c18c7c1438f..4267df2a11f 100644 --- a/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go +++ b/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go @@ -42,12 +42,12 @@ type AdminConfirmSignUpInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. If your user pool configuration includes - // triggers, the AdminConfirmSignUp API action invokes the AWS Lambda function that - // is specified for the post confirmation trigger. When Amazon Cognito invokes this + // triggers, the AdminConfirmSignUp API action invokes the Lambda function that is + // specified for the post confirmation trigger. When Amazon Cognito invokes this // function, it passes a JSON payload, which the function receives as input. In // this payload, the clientMetadata attribute provides the data that you assigned // to the ClientMetadata parameter in your AdminConfirmSignUp request. In your - // function code in AWS Lambda, you can process the ClientMetadata value to enhance + // function code in Lambda, you can process the ClientMetadata value to enhance // your workflow for your specific needs. For more information, see Customizing // User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -55,7 +55,7 @@ type AdminConfirmSignUpInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminCreateUser.go b/service/cognitoidentityprovider/api_op_AdminCreateUser.go index 828bd05c3c7..767d4da3a5f 100644 --- a/service/cognitoidentityprovider/api_op_AdminCreateUser.go +++ b/service/cognitoidentityprovider/api_op_AdminCreateUser.go @@ -20,8 +20,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -67,21 +67,21 @@ type AdminCreateUserInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the AdminCreateUser API + // Lambda functions to user pool triggers. When you use the AdminCreateUser API // action, Amazon Cognito invokes the function that is assigned to the pre sign-up // trigger. When Amazon Cognito invokes this function, it passes a JSON payload, // which the function receives as input. This payload contains a clientMetadata // attribute, which provides the data that you assigned to the ClientMetadata - // parameter in your AdminCreateUser request. In your function code in AWS Lambda, - // you can process the clientMetadata value to enhance your workflow for your - // specific needs. For more information, see Customizing User Pool Workflows with - // Lambda Triggers + // parameter in your AdminCreateUser request. In your function code in Lambda, you + // can process the clientMetadata value to enhance your workflow for your specific + // needs. For more information, see Customizing User Pool Workflows with Lambda + // Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go b/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go index ec835d91ccb..c3c6c49f10d 100644 --- a/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go +++ b/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go @@ -19,8 +19,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -126,49 +126,49 @@ type AdminInitiateAuthInput struct { // A map of custom key-value pairs that you can provide as input for certain custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the AdminInitiateAuth - // API action, Amazon Cognito invokes the AWS Lambda functions that are specified - // for various triggers. The ClientMetadata value is passed as input to the - // functions for only the following triggers: + // Lambda functions to user pool triggers. When you use the AdminInitiateAuth API + // action, Amazon Cognito invokes the Lambda functions that are specified for + // various triggers. The ClientMetadata value is passed as input to the functions + // for only the following triggers: // // * Pre signup // - // * Pre - // authentication + // * Pre authentication // - // * User migration + // * User + // migration // - // When Amazon Cognito invokes the functions for - // these triggers, it passes a JSON payload, which the function receives as input. - // This payload contains a validationData attribute, which provides the data that - // you assigned to the ClientMetadata parameter in your AdminInitiateAuth request. - // In your function code in AWS Lambda, you can process the validationData value to - // enhance your workflow for your specific needs. When you use the - // AdminInitiateAuth API action, Amazon Cognito also invokes the functions for the - // following triggers, but it does not provide the ClientMetadata value as - // input: + // When Amazon Cognito invokes the functions for these triggers, it + // passes a JSON payload, which the function receives as input. This payload + // contains a validationData attribute, which provides the data that you assigned + // to the ClientMetadata parameter in your AdminInitiateAuth request. In your + // function code in Lambda, you can process the validationData value to enhance + // your workflow for your specific needs. When you use the AdminInitiateAuth API + // action, Amazon Cognito also invokes the functions for the following triggers, + // but it does not provide the ClientMetadata value as input: // - // * Post authentication + // * Post + // authentication // // * Custom message // // * Pre token generation // - // * - // Create auth challenge + // * Create auth + // challenge // // * Define auth challenge // // * Verify auth challenge // - // For - // more information, see Customizing User Pool Workflows with Lambda Triggers + // For more + // information, see Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go b/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go index db80095796e..605aa658f46 100644 --- a/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go +++ b/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go @@ -27,7 +27,7 @@ import ( // use the the registered number automatically. Otherwise, Cognito users that must // receive SMS messages might be unable to sign up, activate their accounts, or // sign in. If you have never used SMS text messages with Amazon Cognito or any -// other AWS service, Amazon SNS might place your account in SMS sandbox. In +// other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In // sandbox mode (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , // you’ll have limitations, such as sending messages to only verified phone // numbers. After testing in the sandbox environment, you can move out of the SMS @@ -66,21 +66,21 @@ type AdminResetUserPasswordInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the - // AdminResetUserPassword API action, Amazon Cognito invokes the function that is - // assigned to the custom message trigger. When Amazon Cognito invokes this - // function, it passes a JSON payload, which the function receives as input. This - // payload contains a clientMetadata attribute, which provides the data that you - // assigned to the ClientMetadata parameter in your AdminResetUserPassword request. - // In your function code in AWS Lambda, you can process the clientMetadata value to - // enhance your workflow for your specific needs. For more information, see - // Customizing User Pool Workflows with Lambda Triggers + // Lambda functions to user pool triggers. When you use the AdminResetUserPassword + // API action, Amazon Cognito invokes the function that is assigned to the custom + // message trigger. When Amazon Cognito invokes this function, it passes a JSON + // payload, which the function receives as input. This payload contains a + // clientMetadata attribute, which provides the data that you assigned to the + // ClientMetadata parameter in your AdminResetUserPassword request. In your + // function code in Lambda, you can process the clientMetadata value to enhance + // your workflow for your specific needs. For more information, see Customizing + // User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go b/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go index 97602d75503..6f659a39654 100644 --- a/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go +++ b/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go @@ -19,8 +19,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -97,7 +97,7 @@ type AdminRespondToAuthChallengeInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the + // Lambda functions to user pool triggers. When you use the // AdminRespondToAuthChallenge API action, Amazon Cognito invokes any functions // that are assigned to the following triggers: pre sign-up, custom message, post // authentication, user migration, pre token generation, define auth challenge, @@ -105,8 +105,8 @@ type AdminRespondToAuthChallengeInput struct { // invokes any of these functions, it passes a JSON payload, which the function // receives as input. This payload contains a clientMetadata attribute, which // provides the data that you assigned to the ClientMetadata parameter in your - // AdminRespondToAuthChallenge request. In your function code in AWS Lambda, you - // can process the clientMetadata value to enhance your workflow for your specific + // AdminRespondToAuthChallenge request. In your function code in Lambda, you can + // process the clientMetadata value to enhance your workflow for your specific // needs. For more information, see Customizing User Pool Workflows with Lambda // Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -114,7 +114,7 @@ type AdminRespondToAuthChallengeInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go b/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go index 4b5d392824e..355cfc3aa89 100644 --- a/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go +++ b/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go @@ -22,8 +22,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -68,13 +68,13 @@ type AdminUpdateUserAttributesInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the + // Lambda functions to user pool triggers. When you use the // AdminUpdateUserAttributes API action, Amazon Cognito invokes the function that // is assigned to the custom message trigger. When Amazon Cognito invokes this // function, it passes a JSON payload, which the function receives as input. This // payload contains a clientMetadata attribute, which provides the data that you // assigned to the ClientMetadata parameter in your AdminUpdateUserAttributes - // request. In your function code in AWS Lambda, you can process the clientMetadata + // request. In your function code in Lambda, you can process the clientMetadata // value to enhance your workflow for your specific needs. For more information, // see Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -82,7 +82,7 @@ type AdminUpdateUserAttributesInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go b/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go index 889a6d68583..92b7c78c093 100644 --- a/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go +++ b/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go @@ -58,21 +58,21 @@ type ConfirmForgotPasswordInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the - // ConfirmForgotPassword API action, Amazon Cognito invokes the function that is - // assigned to the post confirmation trigger. When Amazon Cognito invokes this - // function, it passes a JSON payload, which the function receives as input. This - // payload contains a clientMetadata attribute, which provides the data that you - // assigned to the ClientMetadata parameter in your ConfirmForgotPassword request. - // In your function code in AWS Lambda, you can process the clientMetadata value to - // enhance your workflow for your specific needs. For more information, see - // Customizing User Pool Workflows with Lambda Triggers + // Lambda functions to user pool triggers. When you use the ConfirmForgotPassword + // API action, Amazon Cognito invokes the function that is assigned to the post + // confirmation trigger. When Amazon Cognito invokes this function, it passes a + // JSON payload, which the function receives as input. This payload contains a + // clientMetadata attribute, which provides the data that you assigned to the + // ClientMetadata parameter in your ConfirmForgotPassword request. In your function + // code in Lambda, you can process the clientMetadata value to enhance your + // workflow for your specific needs. For more information, see Customizing User + // Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_ConfirmSignUp.go b/service/cognitoidentityprovider/api_op_ConfirmSignUp.go index 533eb7def3c..9f0f2f4d4bb 100644 --- a/service/cognitoidentityprovider/api_op_ConfirmSignUp.go +++ b/service/cognitoidentityprovider/api_op_ConfirmSignUp.go @@ -51,21 +51,21 @@ type ConfirmSignUpInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the ConfirmSignUp API + // Lambda functions to user pool triggers. When you use the ConfirmSignUp API // action, Amazon Cognito invokes the function that is assigned to the post // confirmation trigger. When Amazon Cognito invokes this function, it passes a // JSON payload, which the function receives as input. This payload contains a // clientMetadata attribute, which provides the data that you assigned to the // ClientMetadata parameter in your ConfirmSignUp request. In your function code in - // AWS Lambda, you can process the clientMetadata value to enhance your workflow - // for your specific needs. For more information, see Customizing User Pool - // Workflows with Lambda Triggers + // Lambda, you can process the clientMetadata value to enhance your workflow for + // your specific needs. For more information, see Customizing User Pool Workflows + // with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_CreateUserPool.go b/service/cognitoidentityprovider/api_op_CreateUserPool.go index 68daf5dcde5..d4a952dac7c 100644 --- a/service/cognitoidentityprovider/api_op_CreateUserPool.go +++ b/service/cognitoidentityprovider/api_op_CreateUserPool.go @@ -19,8 +19,8 @@ import ( // Pinpoint (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the // the registered number automatically. Otherwise, Cognito users that must receive // SMS messages might be unable to sign up, activate their accounts, or sign in. If -// you have never used SMS text messages with Amazon Cognito or any other AWS -// service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// you have never used SMS text messages with Amazon Cognito or any other Amazon +// Web Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -94,7 +94,7 @@ type CreateUserPoolInput struct { // for these event sources to invoke your Lambda function. For more information on // using the Lambda API to add permission, see AddPermission // (https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html). For - // adding permission using the AWS CLI, see add-permission + // adding permission using the CLI, see add-permission // (https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html). LambdaConfig *types.LambdaConfigType diff --git a/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go b/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go index 039bcd45d30..b7e8372ece7 100644 --- a/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go +++ b/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go @@ -62,7 +62,7 @@ type CreateUserPoolClientInput struct { AllowedOAuthFlowsUserPoolClient bool // The allowed OAuth scopes. Possible values provided by OAuth are: phone, email, - // openid, and profile. Possible values provided by AWS are: + // openid, and profile. Possible values provided by Amazon Web Services are: // aws.cognito.signin.user.admin. Custom scopes created in Resource Servers are // also supported. AllowedOAuthScopes []string diff --git a/service/cognitoidentityprovider/api_op_ForgotPassword.go b/service/cognitoidentityprovider/api_op_ForgotPassword.go index 72175125dfd..de5ea0ab3eb 100644 --- a/service/cognitoidentityprovider/api_op_ForgotPassword.go +++ b/service/cognitoidentityprovider/api_op_ForgotPassword.go @@ -27,8 +27,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -71,13 +71,13 @@ type ForgotPasswordInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the ForgotPassword API + // Lambda functions to user pool triggers. When you use the ForgotPassword API // action, Amazon Cognito invokes any functions that are assigned to the following // triggers: pre sign-up, custom message, and user migration. When Amazon Cognito // invokes any of these functions, it passes a JSON payload, which the function // receives as input. This payload contains a clientMetadata attribute, which // provides the data that you assigned to the ClientMetadata parameter in your - // ForgotPassword request. In your function code in AWS Lambda, you can process the + // ForgotPassword request. In your function code in Lambda, you can process the // clientMetadata value to enhance your workflow for your specific needs. For more // information, see Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -85,7 +85,7 @@ type ForgotPasswordInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go b/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go index 9071951c8b8..5f444ad0037 100644 --- a/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go +++ b/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go @@ -18,8 +18,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -59,22 +59,22 @@ type GetUserAttributeVerificationCodeInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the + // Lambda functions to user pool triggers. When you use the // GetUserAttributeVerificationCode API action, Amazon Cognito invokes the function // that is assigned to the custom message trigger. When Amazon Cognito invokes this // function, it passes a JSON payload, which the function receives as input. This // payload contains a clientMetadata attribute, which provides the data that you // assigned to the ClientMetadata parameter in your - // GetUserAttributeVerificationCode request. In your function code in AWS Lambda, - // you can process the clientMetadata value to enhance your workflow for your - // specific needs. For more information, see Customizing User Pool Workflows with - // Lambda Triggers + // GetUserAttributeVerificationCode request. In your function code in Lambda, you + // can process the clientMetadata value to enhance your workflow for your specific + // needs. For more information, see Customizing User Pool Workflows with Lambda + // Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_InitiateAuth.go b/service/cognitoidentityprovider/api_op_InitiateAuth.go index 783eb50f146..79492c327dd 100644 --- a/service/cognitoidentityprovider/api_op_InitiateAuth.go +++ b/service/cognitoidentityprovider/api_op_InitiateAuth.go @@ -18,8 +18,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -113,8 +113,8 @@ type InitiateAuthInput struct { // A map of custom key-value pairs that you can provide as input for certain custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the InitiateAuth API - // action, Amazon Cognito invokes the AWS Lambda functions that are specified for + // Lambda functions to user pool triggers. When you use the InitiateAuth API + // action, Amazon Cognito invokes the Lambda functions that are specified for // various triggers. The ClientMetadata value is passed as input to the functions // for only the following triggers: // @@ -129,7 +129,7 @@ type InitiateAuthInput struct { // passes a JSON payload, which the function receives as input. This payload // contains a validationData attribute, which provides the data that you assigned // to the ClientMetadata parameter in your InitiateAuth request. In your function - // code in AWS Lambda, you can process the validationData value to enhance your + // code in Lambda, you can process the validationData value to enhance your // workflow for your specific needs. When you use the InitiateAuth API action, // Amazon Cognito also invokes the functions for the following triggers, but it // does not provide the ClientMetadata value as input: @@ -155,7 +155,7 @@ type InitiateAuthInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_ListUserPools.go b/service/cognitoidentityprovider/api_op_ListUserPools.go index a4fa781641d..2898747eec1 100644 --- a/service/cognitoidentityprovider/api_op_ListUserPools.go +++ b/service/cognitoidentityprovider/api_op_ListUserPools.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the user pools associated with an AWS account. +// Lists the user pools associated with an account. func (c *Client) ListUserPools(ctx context.Context, params *ListUserPoolsInput, optFns ...func(*Options)) (*ListUserPoolsOutput, error) { if params == nil { params = &ListUserPoolsInput{} diff --git a/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go b/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go index 6c6041cba93..41d1cafcbb1 100644 --- a/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go +++ b/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go @@ -18,8 +18,8 @@ import ( // Pinpoint (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the // the registered number automatically. Otherwise, Cognito users that must receive // SMS messages might be unable to sign up, activate their accounts, or sign in. If -// you have never used SMS text messages with Amazon Cognito or any other AWS -// service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// you have never used SMS text messages with Amazon Cognito or any other Amazon +// Web Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -61,21 +61,21 @@ type ResendConfirmationCodeInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the - // ResendConfirmationCode API action, Amazon Cognito invokes the function that is - // assigned to the custom message trigger. When Amazon Cognito invokes this - // function, it passes a JSON payload, which the function receives as input. This - // payload contains a clientMetadata attribute, which provides the data that you - // assigned to the ClientMetadata parameter in your ResendConfirmationCode request. - // In your function code in AWS Lambda, you can process the clientMetadata value to - // enhance your workflow for your specific needs. For more information, see - // Customizing User Pool Workflows with Lambda Triggers + // Lambda functions to user pool triggers. When you use the ResendConfirmationCode + // API action, Amazon Cognito invokes the function that is assigned to the custom + // message trigger. When Amazon Cognito invokes this function, it passes a JSON + // payload, which the function receives as input. This payload contains a + // clientMetadata attribute, which provides the data that you assigned to the + // ClientMetadata parameter in your ResendConfirmationCode request. In your + // function code in Lambda, you can process the clientMetadata value to enhance + // your workflow for your specific needs. For more information, see Customizing + // User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go b/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go index bbeb63d3772..40a75bbdba9 100644 --- a/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go +++ b/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go @@ -18,8 +18,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -90,23 +90,22 @@ type RespondToAuthChallengeInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the - // RespondToAuthChallenge API action, Amazon Cognito invokes any functions that are - // assigned to the following triggers: post authentication, pre token generation, - // define auth challenge, create auth challenge, and verify auth challenge. When - // Amazon Cognito invokes any of these functions, it passes a JSON payload, which - // the function receives as input. This payload contains a clientMetadata - // attribute, which provides the data that you assigned to the ClientMetadata - // parameter in your RespondToAuthChallenge request. In your function code in AWS - // Lambda, you can process the clientMetadata value to enhance your workflow for - // your specific needs. For more information, see Customizing User Pool Workflows - // with Lambda Triggers + // Lambda functions to user pool triggers. When you use the RespondToAuthChallenge + // API action, Amazon Cognito invokes any functions that are assigned to the + // following triggers: post authentication, pre token generation, define auth + // challenge, create auth challenge, and verify auth challenge. When Amazon Cognito + // invokes any of these functions, it passes a JSON payload, which the function + // receives as input. This payload contains a clientMetadata attribute, which + // provides the data that you assigned to the ClientMetadata parameter in your + // RespondToAuthChallenge request. In your function code in Lambda, you can process + // the clientMetadata value to enhance your workflow for your specific needs. For + // more information, see Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_SetUserPoolMfaConfig.go b/service/cognitoidentityprovider/api_op_SetUserPoolMfaConfig.go index e941767044b..2c71e2722ca 100644 --- a/service/cognitoidentityprovider/api_op_SetUserPoolMfaConfig.go +++ b/service/cognitoidentityprovider/api_op_SetUserPoolMfaConfig.go @@ -19,8 +19,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into diff --git a/service/cognitoidentityprovider/api_op_SignUp.go b/service/cognitoidentityprovider/api_op_SignUp.go index 85dc72c7558..c57c826a31b 100644 --- a/service/cognitoidentityprovider/api_op_SignUp.go +++ b/service/cognitoidentityprovider/api_op_SignUp.go @@ -19,7 +19,7 @@ import ( // use the the registered number automatically. Otherwise, Cognito users that must // receive SMS messages might be unable to sign up, activate their accounts, or // sign in. If you have never used SMS text messages with Amazon Cognito or any -// other AWS service, Amazon SNS might place your account in SMS sandbox. In +// other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In // sandbox mode (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , // you’ll have limitations, such as sending messages to only verified phone // numbers. After testing in the sandbox environment, you can move out of the SMS @@ -65,13 +65,13 @@ type SignUpInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the SignUp API action, + // Lambda functions to user pool triggers. When you use the SignUp API action, // Amazon Cognito invokes any functions that are assigned to the following // triggers: pre sign-up, custom message, and post confirmation. When Amazon // Cognito invokes any of these functions, it passes a JSON payload, which the // function receives as input. This payload contains a clientMetadata attribute, // which provides the data that you assigned to the ClientMetadata parameter in - // your SignUp request. In your function code in AWS Lambda, you can process the + // your SignUp request. In your function code in Lambda, you can process the // clientMetadata value to enhance your workflow for your specific needs. For more // information, see Customizing User Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) @@ -79,7 +79,7 @@ type SignUpInput struct { // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_UpdateGroup.go b/service/cognitoidentityprovider/api_op_UpdateGroup.go index fec5585e539..3bb448870b7 100644 --- a/service/cognitoidentityprovider/api_op_UpdateGroup.go +++ b/service/cognitoidentityprovider/api_op_UpdateGroup.go @@ -12,8 +12,7 @@ import ( ) // Updates the specified group with the specified attributes. Calling this action -// requires developer credentials. If you don't provide a value for an attribute, -// it will be set to the default value. +// requires developer credentials. func (c *Client) UpdateGroup(ctx context.Context, params *UpdateGroupInput, optFns ...func(*Options)) (*UpdateGroupOutput, error) { if params == nil { params = &UpdateGroupInput{} diff --git a/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go b/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go index 456e49140d7..eef69c22dcb 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go @@ -18,8 +18,8 @@ import ( // (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the the // registered number automatically. Otherwise, Cognito users that must receive SMS // messages might be unable to sign up, activate their accounts, or sign in. If you -// have never used SMS text messages with Amazon Cognito or any other AWS service, -// Amazon SNS might place your account in SMS sandbox. In sandbox mode +// have never used SMS text messages with Amazon Cognito or any other Amazon Web +// Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -58,21 +58,21 @@ type UpdateUserAttributesInput struct { // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning - // AWS Lambda functions to user pool triggers. When you use the - // UpdateUserAttributes API action, Amazon Cognito invokes the function that is - // assigned to the custom message trigger. When Amazon Cognito invokes this - // function, it passes a JSON payload, which the function receives as input. This - // payload contains a clientMetadata attribute, which provides the data that you - // assigned to the ClientMetadata parameter in your UpdateUserAttributes request. - // In your function code in AWS Lambda, you can process the clientMetadata value to - // enhance your workflow for your specific needs. For more information, see - // Customizing User Pool Workflows with Lambda Triggers + // Lambda functions to user pool triggers. When you use the UpdateUserAttributes + // API action, Amazon Cognito invokes the function that is assigned to the custom + // message trigger. When Amazon Cognito invokes this function, it passes a JSON + // payload, which the function receives as input. This payload contains a + // clientMetadata attribute, which provides the data that you assigned to the + // ClientMetadata parameter in your UpdateUserAttributes request. In your function + // code in Lambda, you can process the clientMetadata value to enhance your + // workflow for your specific needs. For more information, see Customizing User + // Pool Workflows with Lambda Triggers // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) // in the Amazon Cognito Developer Guide. Take the following limitations into // consideration when you use the ClientMetadata parameter: // // * Amazon Cognito does - // not store the ClientMetadata value. This data is available only to AWS Lambda + // not store the ClientMetadata value. This data is available only to Lambda // triggers that are assigned to a user pool to support custom workflows. If your // user pool configuration does not include triggers, the ClientMetadata parameter // serves no purpose. diff --git a/service/cognitoidentityprovider/api_op_UpdateUserPool.go b/service/cognitoidentityprovider/api_op_UpdateUserPool.go index be09d827015..69755b94dca 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserPool.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserPool.go @@ -22,8 +22,8 @@ import ( // Pinpoint (https://console.aws.amazon.com/pinpoint/home/). Cognito will use the // the registered number automatically. Otherwise, Cognito users that must receive // SMS messages might be unable to sign up, activate their accounts, or sign in. If -// you have never used SMS text messages with Amazon Cognito or any other AWS -// service, Amazon SNS might place your account in SMS sandbox. In sandbox mode +// you have never used SMS text messages with Amazon Cognito or any other Amazon +// Web Service, Amazon SNS might place your account in SMS sandbox. In sandbox mode // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html) , you’ll have // limitations, such as sending messages to only verified phone numbers. After // testing in the sandbox environment, you can move out of the SMS sandbox and into @@ -82,8 +82,7 @@ type UpdateUserPoolInput struct { // The subject of the email verification message. EmailVerificationSubject *string - // The AWS Lambda configuration information from the request to update the user - // pool. + // The Lambda configuration information from the request to update the user pool. LambdaConfig *types.LambdaConfigType // Can be one of the following values: diff --git a/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go b/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go index ee15c405824..a5482d2ac96 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go @@ -66,7 +66,7 @@ type UpdateUserPoolClientInput struct { AllowedOAuthFlowsUserPoolClient bool // The allowed OAuth scopes. Possible values provided by OAuth are: phone, email, - // openid, and profile. Possible values provided by AWS are: + // openid, and profile. Possible values provided by Amazon Web Services are: // aws.cognito.signin.user.admin. Custom scopes created in Resource Servers are // also supported. AllowedOAuthScopes []string diff --git a/service/cognitoidentityprovider/api_op_UpdateUserPoolDomain.go b/service/cognitoidentityprovider/api_op_UpdateUserPoolDomain.go index 5509bc88e26..e86fad42cd1 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserPoolDomain.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserPoolDomain.go @@ -16,7 +16,7 @@ import ( // (ARN) of a new certificate to Amazon Cognito. You cannot use it to change the // domain for a user pool. A custom domain is used to host the Amazon Cognito // hosted UI, which provides sign-up and sign-in pages for your application. When -// you set up a custom domain, you provide a certificate that you manage with AWS +// you set up a custom domain, you provide a certificate that you manage with // Certificate Manager (ACM). When necessary, you can use this operation to change // the certificate that you applied to your custom domain. Usually, this is // unnecessary following routine certificate renewal with ACM. When you renew your @@ -25,7 +25,7 @@ import ( // replace your existing certificate with a new one, ACM gives the new certificate // a new ARN. To apply the new certificate to your custom domain, you must provide // this ARN to Amazon Cognito. When you add your new certificate in ACM, you must -// choose US East (N. Virginia) as the AWS Region. After you submit your request, +// choose US East (N. Virginia) as the Region. After you submit your request, // Amazon Cognito requires up to 1 hour to distribute your new certificate to your // custom domain. For more information about adding a custom domain to your user // pool, see Using Your Own Domain for the Hosted UI diff --git a/service/cognitoidentityprovider/types/errors.go b/service/cognitoidentityprovider/types/errors.go index ca3b2019ebc..010759fdbf2 100644 --- a/service/cognitoidentityprovider/types/errors.go +++ b/service/cognitoidentityprovider/types/errors.go @@ -215,7 +215,7 @@ func (e *InvalidEmailRoleAccessPolicyException) ErrorFault() smithy.ErrorFault { } // This exception is thrown when the Amazon Cognito service encounters an invalid -// AWS Lambda response. +// Lambda response. type InvalidLambdaResponseException struct { Message *string @@ -366,8 +366,8 @@ func (e *InvalidUserPoolConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// This exception is thrown when a user exceeds the limit for a requested AWS -// resource. +// This exception is thrown when a user exceeds the limit for a requested Amazon +// Web Services resource. type LimitExceededException struct { Message *string @@ -585,7 +585,7 @@ func (e *UnauthorizedException) ErrorCode() string { return "Unautho func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the Amazon Cognito service encounters an -// unexpected exception with the AWS Lambda service. +// unexpected exception with the Lambda service. type UnexpectedLambdaException struct { Message *string @@ -706,7 +706,7 @@ func (e *UserImportInProgressException) ErrorCode() string { return func (e *UserImportInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This exception is thrown when the Amazon Cognito service encounters a user -// validation exception with the AWS Lambda service. +// validation exception with the Lambda service. type UserLambdaValidationException struct { Message *string diff --git a/service/cognitoidentityprovider/types/types.go b/service/cognitoidentityprovider/types/types.go index 08061bc7783..aa21e39b61a 100644 --- a/service/cognitoidentityprovider/types/types.go +++ b/service/cognitoidentityprovider/types/types.go @@ -298,8 +298,8 @@ type ContextDataType struct { // webpages for your application. type CustomDomainConfigType struct { - // The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. - // You use this certificate for the subdomain of your custom domain. + // The Amazon Resource Name (ARN) of an Certificate Manager SSL certificate. You + // use this certificate for the subdomain of your custom domain. // // This member is required. CertificateArn *string @@ -394,7 +394,7 @@ type DeviceType struct { // A container for information about a domain. type DomainDescriptionType struct { - // The AWS account ID for the user pool owner. + // The account ID for the user pool owner. AWSAccountId *string // The ARN of the CloudFront distribution. @@ -437,12 +437,12 @@ type EmailConfigurationType struct { // * Event publishing – Amazon // SES can track the number of send, delivery, open, click, bounce, and complaint // events for each email sent. Use event publishing to send information about these - // events to other AWS services such as SNS and CloudWatch. + // events to other Amazon Web Services services such as SNS and CloudWatch. // - // * IP pool management – - // When leasing dedicated IP addresses with Amazon SES, you can create groups of IP - // addresses, called dedicated IP pools. You can then associate the dedicated IP - // pools with configuration sets. + // * IP + // pool management – When leasing dedicated IP addresses with Amazon SES, you can + // create groups of IP addresses, called dedicated IP pools. You can then associate + // the dedicated IP pools with configuration sets. ConfigurationSet *string // Specifies whether Amazon Cognito emails your users by using its built-in email @@ -487,15 +487,15 @@ type EmailConfigurationType struct { // SES configuration. Amazon Cognito calls Amazon SES on your behalf to send email // from your verified email address. When you use this option, the email delivery // limits are the same limits that apply to your Amazon SES verified email address - // in your AWS account. If you use this option, you must provide the ARN of an - // Amazon SES verified email address for the SourceArn parameter. Before Amazon - // Cognito can email your users, it requires additional permissions to call Amazon - // SES on your behalf. When you update your user pool with this option, Amazon - // Cognito creates a service-linked role, which is a type of IAM role, in your AWS - // account. This role contains the permissions that allow Amazon Cognito to access - // Amazon SES and send email messages with your address. For more information about - // the service-linked role that Amazon Cognito creates, see Using Service-Linked - // Roles for Amazon Cognito + // in your account. If you use this option, you must provide the ARN of an Amazon + // SES verified email address for the SourceArn parameter. Before Amazon Cognito + // can email your users, it requires additional permissions to call Amazon SES on + // your behalf. When you update your user pool with this option, Amazon Cognito + // creates a service-linked role, which is a type of IAM role, in your account. + // This role contains the permissions that allow Amazon Cognito to access Amazon + // SES and send email messages with your address. For more information about the + // service-linked role that Amazon Cognito creates, see Using Service-Linked Roles + // for Amazon Cognito // (https://docs.aws.amazon.com/cognito/latest/developerguide/using-service-linked-roles.html) // in the Amazon Cognito Developer Guide. EmailSendingAccount EmailSendingAccountType @@ -728,19 +728,19 @@ type IdentityProviderType struct { noSmithyDocumentSerde } -// Specifies the configuration for AWS Lambda triggers. +// Specifies the configuration for Lambda triggers. type LambdaConfigType struct { // Creates an authentication challenge. CreateAuthChallenge *string - // A custom email sender AWS Lambda trigger. + // A custom email sender Lambda trigger. CustomEmailSender *CustomEmailLambdaVersionConfigType - // A custom Message AWS Lambda trigger. + // A custom Message Lambda trigger. CustomMessage *string - // A custom SMS sender AWS Lambda trigger. + // A custom SMS sender Lambda trigger. CustomSMSSender *CustomSMSLambdaVersionConfigType // Defines the authentication challenge. @@ -751,16 +751,16 @@ type LambdaConfigType struct { // CustomEmailSender and CustomSMSSender. KMSKeyID *string - // A post-authentication AWS Lambda trigger. + // A post-authentication Lambda trigger. PostAuthentication *string - // A post-confirmation AWS Lambda trigger. + // A post-confirmation Lambda trigger. PostConfirmation *string - // A pre-authentication AWS Lambda trigger. + // A pre-authentication Lambda trigger. PreAuthentication *string - // A pre-registration AWS Lambda trigger. + // A pre-registration Lambda trigger. PreSignUp *string // A Lambda trigger that is invoked before token generation. @@ -1083,14 +1083,14 @@ type SchemaAttributeType struct { } // The SMS configuration type that includes the settings the Cognito User Pool -// needs to call for the Amazon SNS service to send an SMS message from your AWS +// needs to call for the Amazon SNS service to send an SMS message from your // account. The Cognito User Pool makes the request to the Amazon SNS Service by -// using an AWS IAM role that you provide for your AWS account. +// using an IAM role that you provide for your account. type SmsConfigurationType struct { // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) - // caller. This is the ARN of the IAM role in your AWS account which Cognito will - // use to send SMS messages. SMS messages are subject to a spending limit + // caller. This is the ARN of the IAM role in your account which Cognito will use + // to send SMS messages. SMS messages are subject to a spending limit // (https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html). // // This member is required. @@ -1104,7 +1104,7 @@ type SmsConfigurationType struct { // role for SMS MFA, Cognito will create a role with the required permissions and a // trust policy that demonstrates use of the ExternalId. For more information about // the ExternalId of a role, see How to use an external ID when granting access to - // your AWS resources to a third party + // your Amazon Web Services resources to a third party // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) ExternalId *string @@ -1387,7 +1387,7 @@ type UserPoolClientType struct { AllowedOAuthFlowsUserPoolClient bool // The allowed OAuth scopes. Possible values provided by OAuth are: phone, email, - // openid, and profile. Possible values provided by AWS are: + // openid, and profile. Possible values provided by Amazon Web Services are: // aws.cognito.signin.user.admin. Custom scopes created in Resource Servers are // also supported. AllowedOAuthScopes []string @@ -1537,7 +1537,7 @@ type UserPoolDescriptionType struct { // The ID in a user pool description. Id *string - // The AWS Lambda configuration information in a user pool description. + // The Lambda configuration information in a user pool description. LambdaConfig *LambdaConfigType // The date the user pool description was last modified. @@ -1619,7 +1619,7 @@ type UserPoolType struct { // The ID of the user pool. Id *string - // The AWS Lambda triggers associated with the user pool. + // The Lambda triggers associated with the user pool. LambdaConfig *LambdaConfigType // The date the user pool was last modified. @@ -1664,10 +1664,10 @@ type UserPoolType struct { // (https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SmsConfigurationType.html). // // * - // SNSSandbox - The AWS account is in SNS Sandbox and messages won’t reach - // unverified end users. This parameter won’t get populated with SNSSandbox if the - // IAM user creating the user pool doesn’t have SNS permissions. To learn how to - // move your AWS account out of the sandbox, see Moving out of the SMS sandbox + // SNSSandbox - The account is in SNS Sandbox and messages won’t reach unverified + // end users. This parameter won’t get populated with SNSSandbox if the IAM user + // creating the user pool doesn’t have SNS permissions. To learn how to move your + // account out of the sandbox, see Moving out of the SMS sandbox // (https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox-moving-to-production.html). SmsConfigurationFailure *string diff --git a/service/computeoptimizer/types/types.go b/service/computeoptimizer/types/types.go index 304dc928ed6..e5e0cf3f17e 100644 --- a/service/computeoptimizer/types/types.go +++ b/service/computeoptimizer/types/types.go @@ -86,10 +86,10 @@ type AutoScalingGroupRecommendationOption struct { // instance, including CPU, memory, EBS throughput, EBS IOPS, disk throughput, disk // IOPS, network throughput, and network PPS. The performance risk of the // recommended instance is calculated as the maximum performance risk score across - // the analyzed resource specifications. The value ranges from 0 to 5, with 0 + // the analyzed resource specifications. The value ranges from 0 - 4, with 0 // meaning that the recommended resource is predicted to always provide enough // hardware capability. The higher the performance risk is, the more likely you - // should validate whether the recommended resource meets the performance + // should validate whether the recommendation will meet the performance // requirements of your workload before migrating your resource. PerformanceRisk float64 @@ -500,7 +500,7 @@ type InstanceRecommendationOption struct { // including CPU, memory, EBS throughput, EBS IOPS, disk throughput, disk IOPS, // network throughput, and network PPS. The performance risk of the recommended // instance is calculated as the maximum performance risk score across the analyzed - // resource specifications. The value ranges from 0 to 5, with 0 meaning that the + // resource specifications. The value ranges from 0 - 4, with 0 meaning that the // recommended resource is predicted to always provide enough hardware capability. // The higher the performance risk is, the more likely you should validate whether // the recommendation will meet the performance requirements of your workload @@ -1187,7 +1187,7 @@ type VolumeRecommendationOption struct { // The performance risk of the volume recommendation option. Performance risk is // the likelihood of the recommended volume type meeting the performance - // requirement of your workload. The value ranges from 0 to 5, with 0 meaning that + // requirement of your workload. The value ranges from 0 - 4, with 0 meaning that // the recommended resource is predicted to always provide enough hardware // capability. The higher the performance risk is, the more likely you should // validate whether the recommendation will meet the performance requirements of diff --git a/service/databrew/api_op_CreateProfileJob.go b/service/databrew/api_op_CreateProfileJob.go index f8ceef9af12..b64a3b1b990 100644 --- a/service/databrew/api_op_CreateProfileJob.go +++ b/service/databrew/api_op_CreateProfileJob.go @@ -52,6 +52,11 @@ type CreateProfileJobInput struct { // This member is required. RoleArn *string + // Configuration for profile jobs. Used to select columns, do evaluations, and + // override default parameters of evaluations. When configuration is null, the + // profile job will run with default settings. + Configuration *types.ProfileConfiguration + // The Amazon Resource Name (ARN) of an encryption key that is used to protect the // job. EncryptionKeyArn *string diff --git a/service/databrew/api_op_CreateRecipeJob.go b/service/databrew/api_op_CreateRecipeJob.go index a5e75b526f9..a2146b4ced7 100644 --- a/service/databrew/api_op_CreateRecipeJob.go +++ b/service/databrew/api_op_CreateRecipeJob.go @@ -42,10 +42,14 @@ type CreateRecipeJobInput struct { // This member is required. RoleArn *string - // One or more artifacts that represent the AWS Glue Data Catalog output from - // running the job. + // One or more artifacts that represent the Glue Data Catalog output from running + // the job. DataCatalogOutputs []types.DataCatalogOutput + // Represents a list of JDBC database output objects which defines the output + // destination for a DataBrew recipe job to write to. + DatabaseOutputs []types.DatabaseOutput + // The name of the dataset that this job processes. DatasetName *string diff --git a/service/databrew/api_op_DescribeJob.go b/service/databrew/api_op_DescribeJob.go index 27beb918097..9d5fbbdaa59 100644 --- a/service/databrew/api_op_DescribeJob.go +++ b/service/databrew/api_op_DescribeJob.go @@ -51,10 +51,14 @@ type DescribeJobOutput struct { // The identifier (user name) of the user associated with the creation of the job. CreatedBy *string - // One or more artifacts that represent the AWS Glue Data Catalog output from - // running the job. + // One or more artifacts that represent the Glue Data Catalog output from running + // the job. DataCatalogOutputs []types.DataCatalogOutput + // Represents a list of JDBC database output objects which defines the output + // destination for a DataBrew recipe job to write into. + DatabaseOutputs []types.DatabaseOutput + // The dataset that the job acts upon. DatasetName *string @@ -94,6 +98,11 @@ type DescribeJobOutput struct { // One or more artifacts that represent the output from running the job. Outputs []types.Output + // Configuration for profile jobs. Used to select columns, do evaluations, and + // override default parameters of evaluations. When configuration is null, the + // profile job will run with default settings. + ProfileConfiguration *types.ProfileConfiguration + // The DataBrew project associated with this job. ProjectName *string diff --git a/service/databrew/api_op_DescribeJobRun.go b/service/databrew/api_op_DescribeJobRun.go index 703f0c6093b..638d48aadbb 100644 --- a/service/databrew/api_op_DescribeJobRun.go +++ b/service/databrew/api_op_DescribeJobRun.go @@ -56,10 +56,14 @@ type DescribeJobRunOutput struct { // The date and time when the job completed processing. CompletedOn *time.Time - // One or more artifacts that represent the AWS Glue Data Catalog output from - // running the job. + // One or more artifacts that represent the Glue Data Catalog output from running + // the job. DataCatalogOutputs []types.DataCatalogOutput + // Represents a list of JDBC database output objects which defines the output + // destination for a DataBrew recipe job to write into. + DatabaseOutputs []types.DatabaseOutput + // The name of the dataset for the job to process. DatasetName *string @@ -85,6 +89,11 @@ type DescribeJobRunOutput struct { // One or more output artifacts from a job run. Outputs []types.Output + // Configuration for profile jobs. Used to select columns, do evaluations, and + // override default parameters of evaluations. When configuration is null, the + // profile job will run with default settings. + ProfileConfiguration *types.ProfileConfiguration + // Represents the name and version of a DataBrew recipe. RecipeReference *types.RecipeReference diff --git a/service/databrew/api_op_UpdateProfileJob.go b/service/databrew/api_op_UpdateProfileJob.go index c14cbafe356..ef478854aa9 100644 --- a/service/databrew/api_op_UpdateProfileJob.go +++ b/service/databrew/api_op_UpdateProfileJob.go @@ -46,6 +46,11 @@ type UpdateProfileJobInput struct { // This member is required. RoleArn *string + // Configuration for profile jobs. Used to select columns, do evaluations, and + // override default parameters of evaluations. When configuration is null, the + // profile job will run with default settings. + Configuration *types.ProfileConfiguration + // The Amazon Resource Name (ARN) of an encryption key that is used to protect the // job. EncryptionKeyArn *string diff --git a/service/databrew/api_op_UpdateRecipeJob.go b/service/databrew/api_op_UpdateRecipeJob.go index 047d29c0e8f..55d03f548c8 100644 --- a/service/databrew/api_op_UpdateRecipeJob.go +++ b/service/databrew/api_op_UpdateRecipeJob.go @@ -40,10 +40,14 @@ type UpdateRecipeJobInput struct { // This member is required. RoleArn *string - // One or more artifacts that represent the AWS Glue Data Catalog output from - // running the job. + // One or more artifacts that represent the Glue Data Catalog output from running + // the job. DataCatalogOutputs []types.DataCatalogOutput + // Represents a list of JDBC database output objects which defines the output + // destination for a DataBrew recipe job to write into. + DatabaseOutputs []types.DatabaseOutput + // The Amazon Resource Name (ARN) of an encryption key that is used to protect the // job. EncryptionKeyArn *string diff --git a/service/databrew/deserializers.go b/service/databrew/deserializers.go index dd843e9b536..5117a930a5c 100644 --- a/service/databrew/deserializers.go +++ b/service/databrew/deserializers.go @@ -2344,6 +2344,11 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, sv.CreatedBy = ptr.String(jtv) } + case "DatabaseOutputs": + if err := awsRestjson1_deserializeDocumentDatabaseOutputList(&sv.DatabaseOutputs, value); err != nil { + return err + } + case "DataCatalogOutputs": if err := awsRestjson1_deserializeDocumentDataCatalogOutputList(&sv.DataCatalogOutputs, value); err != nil { return err @@ -2455,6 +2460,11 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, return err } + case "ProfileConfiguration": + if err := awsRestjson1_deserializeDocumentProfileConfiguration(&sv.ProfileConfiguration, value); err != nil { + return err + } + case "ProjectName": if value != nil { jtv, ok := value.(string) @@ -2688,6 +2698,11 @@ func awsRestjson1_deserializeOpDocumentDescribeJobRunOutput(v **DescribeJobRunOu } } + case "DatabaseOutputs": + if err := awsRestjson1_deserializeDocumentDatabaseOutputList(&sv.DatabaseOutputs, value); err != nil { + return err + } + case "DataCatalogOutputs": if err := awsRestjson1_deserializeDocumentDataCatalogOutputList(&sv.DataCatalogOutputs, value); err != nil { return err @@ -2761,6 +2776,11 @@ func awsRestjson1_deserializeOpDocumentDescribeJobRunOutput(v **DescribeJobRunOu return err } + case "ProfileConfiguration": + if err := awsRestjson1_deserializeDocumentProfileConfiguration(&sv.ProfileConfiguration, value); err != nil { + return err + } + case "RecipeReference": if err := awsRestjson1_deserializeDocumentRecipeReference(&sv.RecipeReference, value); err != nil { return err @@ -7098,6 +7118,164 @@ func awsRestjson1_deserializeDocumentColumnNameList(v *[]string, value interface return nil } +func awsRestjson1_deserializeDocumentColumnSelector(v **types.ColumnSelector, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ColumnSelector + if *v == nil { + sv = &types.ColumnSelector{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Regex": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.Regex = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentColumnSelectorList(v *[]types.ColumnSelector, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ColumnSelector + if *v == nil { + cv = []types.ColumnSelector{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ColumnSelector + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnSelector(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentColumnStatisticsConfiguration(v **types.ColumnStatisticsConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ColumnStatisticsConfiguration + if *v == nil { + sv = &types.ColumnStatisticsConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Selectors": + if err := awsRestjson1_deserializeDocumentColumnSelectorList(&sv.Selectors, value); err != nil { + return err + } + + case "Statistics": + if err := awsRestjson1_deserializeDocumentStatisticsConfiguration(&sv.Statistics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentColumnStatisticsConfigurationList(v *[]types.ColumnStatisticsConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ColumnStatisticsConfiguration + if *v == nil { + cv = []types.ColumnStatisticsConfiguration{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ColumnStatisticsConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnStatisticsConfiguration(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentConditionExpression(v **types.ConditionExpression, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7373,6 +7551,94 @@ func awsRestjson1_deserializeDocumentDatabaseInputDefinition(v **types.DatabaseI return nil } +func awsRestjson1_deserializeDocumentDatabaseOutput(v **types.DatabaseOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DatabaseOutput + if *v == nil { + sv = &types.DatabaseOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DatabaseOptions": + if err := awsRestjson1_deserializeDocumentDatabaseTableOutputOptions(&sv.DatabaseOptions, value); err != nil { + return err + } + + case "DatabaseOutputMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatabaseOutputMode to be of type string, got %T instead", value) + } + sv.DatabaseOutputMode = types.DatabaseOutputMode(jtv) + } + + case "GlueConnectionName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GlueConnectionName to be of type string, got %T instead", value) + } + sv.GlueConnectionName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDatabaseOutputList(v *[]types.DatabaseOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DatabaseOutput + if *v == nil { + cv = []types.DatabaseOutput{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DatabaseOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatabaseOutput(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentDatabaseTableOutputOptions(v **types.DatabaseTableOutputOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8243,6 +8509,11 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error sv.CreatedBy = ptr.String(jtv) } + case "DatabaseOutputs": + if err := awsRestjson1_deserializeDocumentDatabaseOutputList(&sv.DatabaseOutputs, value); err != nil { + return err + } + case "DataCatalogOutputs": if err := awsRestjson1_deserializeDocumentDataCatalogOutputList(&sv.DataCatalogOutputs, value); err != nil { return err @@ -8543,6 +8814,11 @@ func awsRestjson1_deserializeDocumentJobRun(v **types.JobRun, value interface{}) } } + case "DatabaseOutputs": + if err := awsRestjson1_deserializeDocumentDatabaseOutputList(&sv.DatabaseOutputs, value); err != nil { + return err + } + case "DataCatalogOutputs": if err := awsRestjson1_deserializeDocumentDataCatalogOutputList(&sv.DataCatalogOutputs, value); err != nil { return err @@ -9060,6 +9336,52 @@ func awsRestjson1_deserializeDocumentPathParametersMap(v *map[string]types.Datas return nil } +func awsRestjson1_deserializeDocumentProfileConfiguration(v **types.ProfileConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ProfileConfiguration + if *v == nil { + sv = &types.ProfileConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ColumnStatisticsConfigurations": + if err := awsRestjson1_deserializeDocumentColumnStatisticsConfigurationList(&sv.ColumnStatisticsConfigurations, value); err != nil { + return err + } + + case "DatasetStatisticsConfiguration": + if err := awsRestjson1_deserializeDocumentStatisticsConfiguration(&sv.DatasetStatisticsConfiguration, value); err != nil { + return err + } + + case "ProfileColumns": + if err := awsRestjson1_deserializeDocumentColumnSelectorList(&sv.ProfileColumns, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentProject(v **types.Project, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -10175,6 +10497,162 @@ func awsRestjson1_deserializeDocumentSheetNameList(v *[]string, value interface{ return nil } +func awsRestjson1_deserializeDocumentStatisticList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentStatisticOverride(v **types.StatisticOverride, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.StatisticOverride + if *v == nil { + sv = &types.StatisticOverride{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Parameters": + if err := awsRestjson1_deserializeDocumentParameterMap(&sv.Parameters, value); err != nil { + return err + } + + case "Statistic": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) + } + sv.Statistic = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentStatisticOverrideList(v *[]types.StatisticOverride, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.StatisticOverride + if *v == nil { + cv = []types.StatisticOverride{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.StatisticOverride + destAddr := &col + if err := awsRestjson1_deserializeDocumentStatisticOverride(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentStatisticsConfiguration(v **types.StatisticsConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.StatisticsConfiguration + if *v == nil { + sv = &types.StatisticsConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "IncludedStatistics": + if err := awsRestjson1_deserializeDocumentStatisticList(&sv.IncludedStatistics, value); err != nil { + return err + } + + case "Overrides": + if err := awsRestjson1_deserializeDocumentStatisticOverrideList(&sv.Overrides, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/databrew/serializers.go b/service/databrew/serializers.go index b7249510f8a..02242334afc 100644 --- a/service/databrew/serializers.go +++ b/service/databrew/serializers.go @@ -258,6 +258,13 @@ func awsRestjson1_serializeOpDocumentCreateProfileJobInput(v *CreateProfileJobIn object := value.Object() defer object.Close() + if v.Configuration != nil { + ok := object.Key("Configuration") + if err := awsRestjson1_serializeDocumentProfileConfiguration(v.Configuration, ok); err != nil { + return err + } + } + if v.DatasetName != nil { ok := object.Key("DatasetName") ok.String(*v.DatasetName) @@ -571,6 +578,13 @@ func awsRestjson1_serializeOpDocumentCreateRecipeJobInput(v *CreateRecipeJobInpu object := value.Object() defer object.Close() + if v.DatabaseOutputs != nil { + ok := object.Key("DatabaseOutputs") + if err := awsRestjson1_serializeDocumentDatabaseOutputList(v.DatabaseOutputs, ok); err != nil { + return err + } + } + if v.DataCatalogOutputs != nil { ok := object.Key("DataCatalogOutputs") if err := awsRestjson1_serializeDocumentDataCatalogOutputList(v.DataCatalogOutputs, ok); err != nil { @@ -2599,6 +2613,13 @@ func awsRestjson1_serializeOpDocumentUpdateProfileJobInput(v *UpdateProfileJobIn object := value.Object() defer object.Close() + if v.Configuration != nil { + ok := object.Key("Configuration") + if err := awsRestjson1_serializeDocumentProfileConfiguration(v.Configuration, ok); err != nil { + return err + } + } + if v.EncryptionKeyArn != nil { ok := object.Key("EncryptionKeyArn") ok.String(*v.EncryptionKeyArn) @@ -2900,6 +2921,13 @@ func awsRestjson1_serializeOpDocumentUpdateRecipeJobInput(v *UpdateRecipeJobInpu object := value.Object() defer object.Close() + if v.DatabaseOutputs != nil { + ok := object.Key("DatabaseOutputs") + if err := awsRestjson1_serializeDocumentDatabaseOutputList(v.DatabaseOutputs, ok); err != nil { + return err + } + } + if v.DataCatalogOutputs != nil { ok := object.Key("DataCatalogOutputs") if err := awsRestjson1_serializeDocumentDataCatalogOutputList(v.DataCatalogOutputs, ok); err != nil { @@ -3051,6 +3079,70 @@ func awsRestjson1_serializeDocumentColumnNameList(v []string, value smithyjson.V return nil } +func awsRestjson1_serializeDocumentColumnSelector(v *types.ColumnSelector, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Regex != nil { + ok := object.Key("Regex") + ok.String(*v.Regex) + } + + return nil +} + +func awsRestjson1_serializeDocumentColumnSelectorList(v []types.ColumnSelector, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColumnSelector(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentColumnStatisticsConfiguration(v *types.ColumnStatisticsConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Selectors != nil { + ok := object.Key("Selectors") + if err := awsRestjson1_serializeDocumentColumnSelectorList(v.Selectors, ok); err != nil { + return err + } + } + + if v.Statistics != nil { + ok := object.Key("Statistics") + if err := awsRestjson1_serializeDocumentStatisticsConfiguration(v.Statistics, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentColumnStatisticsConfigurationList(v []types.ColumnStatisticsConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColumnStatisticsConfiguration(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentConditionExpression(v *types.ConditionExpression, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3139,6 +3231,43 @@ func awsRestjson1_serializeDocumentDatabaseInputDefinition(v *types.DatabaseInpu return nil } +func awsRestjson1_serializeDocumentDatabaseOutput(v *types.DatabaseOutput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DatabaseOptions != nil { + ok := object.Key("DatabaseOptions") + if err := awsRestjson1_serializeDocumentDatabaseTableOutputOptions(v.DatabaseOptions, ok); err != nil { + return err + } + } + + if len(v.DatabaseOutputMode) > 0 { + ok := object.Key("DatabaseOutputMode") + ok.String(string(v.DatabaseOutputMode)) + } + + if v.GlueConnectionName != nil { + ok := object.Key("GlueConnectionName") + ok.String(*v.GlueConnectionName) + } + + return nil +} + +func awsRestjson1_serializeDocumentDatabaseOutputList(v []types.DatabaseOutput, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDatabaseOutput(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentDatabaseTableOutputOptions(v *types.DatabaseTableOutputOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3596,6 +3725,34 @@ func awsRestjson1_serializeDocumentPathParametersMap(v map[string]types.DatasetP return nil } +func awsRestjson1_serializeDocumentProfileConfiguration(v *types.ProfileConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ColumnStatisticsConfigurations != nil { + ok := object.Key("ColumnStatisticsConfigurations") + if err := awsRestjson1_serializeDocumentColumnStatisticsConfigurationList(v.ColumnStatisticsConfigurations, ok); err != nil { + return err + } + } + + if v.DatasetStatisticsConfiguration != nil { + ok := object.Key("DatasetStatisticsConfiguration") + if err := awsRestjson1_serializeDocumentStatisticsConfiguration(v.DatasetStatisticsConfiguration, ok); err != nil { + return err + } + } + + if v.ProfileColumns != nil { + ok := object.Key("ProfileColumns") + if err := awsRestjson1_serializeDocumentColumnSelectorList(v.ProfileColumns, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentRecipeAction(v *types.RecipeAction, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3747,6 +3904,70 @@ func awsRestjson1_serializeDocumentSheetNameList(v []string, value smithyjson.Va return nil } +func awsRestjson1_serializeDocumentStatisticList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentStatisticOverride(v *types.StatisticOverride, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Parameters != nil { + ok := object.Key("Parameters") + if err := awsRestjson1_serializeDocumentParameterMap(v.Parameters, ok); err != nil { + return err + } + } + + if v.Statistic != nil { + ok := object.Key("Statistic") + ok.String(*v.Statistic) + } + + return nil +} + +func awsRestjson1_serializeDocumentStatisticOverrideList(v []types.StatisticOverride, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentStatisticOverride(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentStatisticsConfiguration(v *types.StatisticsConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.IncludedStatistics != nil { + ok := object.Key("IncludedStatistics") + if err := awsRestjson1_serializeDocumentStatisticList(v.IncludedStatistics, ok); err != nil { + return err + } + } + + if v.Overrides != nil { + ok := object.Key("Overrides") + if err := awsRestjson1_serializeDocumentStatisticOverrideList(v.Overrides, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/databrew/types/enums.go b/service/databrew/types/enums.go index 5519bbe0119..c4dc3f0107d 100644 --- a/service/databrew/types/enums.go +++ b/service/databrew/types/enums.go @@ -34,6 +34,22 @@ func (CompressionFormat) Values() []CompressionFormat { } } +type DatabaseOutputMode string + +// Enum values for DatabaseOutputMode +const ( + DatabaseOutputModeNewTable DatabaseOutputMode = "NEW_TABLE" +) + +// Values returns all known values for DatabaseOutputMode. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (DatabaseOutputMode) Values() []DatabaseOutputMode { + return []DatabaseOutputMode{ + "NEW_TABLE", + } +} + type EncryptionMode string // Enum values for EncryptionMode diff --git a/service/databrew/types/types.go b/service/databrew/types/types.go index 7b3454503fd..a20c0d34039 100644 --- a/service/databrew/types/types.go +++ b/service/databrew/types/types.go @@ -7,6 +7,38 @@ import ( "time" ) +// Selector of a column from a dataset for profile job configuration. One selector +// includes either a column name or a regular expression. +type ColumnSelector struct { + + // The name of a column from a dataset. + Name *string + + // A regular expression for selecting a column from a dataset. + Regex *string + + noSmithyDocumentSerde +} + +// Configuration for column evaluations for a profile job. +// ColumnStatisticsConfiguration can be used to select evaluations and override +// parameters of evaluations for particular columns. +type ColumnStatisticsConfiguration struct { + + // Configuration for evaluations. Statistics can be used to select evaluations and + // override parameters of evaluations. + // + // This member is required. + Statistics *StatisticsConfiguration + + // List of column selectors. Selectors can be used to select columns from the + // dataset. When selectors are undefined, configuration will be applied to all + // supported columns. + Selectors []ColumnSelector + + noSmithyDocumentSerde +} + // Represents an individual condition that evaluates to true or false. Conditions // are used with recipe actions. The action is only performed for column values // where the condition evaluates to true. If a recipe requires more than one @@ -79,6 +111,29 @@ type DatabaseInputDefinition struct { noSmithyDocumentSerde } +// Represents a JDBC database output object which defines the output destination +// for a DataBrew recipe job to write into. +type DatabaseOutput struct { + + // Represents options that specify how and where DataBrew writes the database + // output generated by recipe jobs. + // + // This member is required. + DatabaseOptions *DatabaseTableOutputOptions + + // The Glue connection that stores the connection information for the target + // database. + // + // This member is required. + GlueConnectionName *string + + // The output mode to write into the database. Currently supported option: + // NEW_TABLE. + DatabaseOutputMode DatabaseOutputMode + + noSmithyDocumentSerde +} + // Represents options that specify how and where DataBrew writes the database // output generated by recipe jobs. type DatabaseTableOutputOptions struct { @@ -120,8 +175,8 @@ type DataCatalogInputDefinition struct { noSmithyDocumentSerde } -// Represents options that specify how and where DataBrew writes the output -// generated by recipe jobs. +// Represents options that specify how and where in the Glue Data Catalog DataBrew +// writes the output generated by recipe jobs. type DataCatalogOutput struct { // The name of a database in the Data Catalog. @@ -134,8 +189,8 @@ type DataCatalogOutput struct { // This member is required. TableName *string - // The unique identifier of the AWS account that holds the Data Catalog that stores - // the data. + // The unique identifier of the Amazon Web Services account that holds the Data + // Catalog that stores the data. CatalogId *string // Represents options that specify how and where DataBrew writes the database @@ -146,8 +201,8 @@ type DataCatalogOutput struct { // is overwritten with new output. Not supported with DatabaseOptions. Overwrite bool - // Represents options that specify how and where DataBrew writes the S3 output - // generated by recipe jobs. + // Represents options that specify how and where DataBrew writes the Amazon S3 + // output generated by recipe jobs. S3Options *S3TableOutputOptions noSmithyDocumentSerde @@ -371,10 +426,14 @@ type Job struct { // The Amazon Resource Name (ARN) of the user who created the job. CreatedBy *string - // One or more artifacts that represent the AWS Glue Data Catalog output from - // running the job. + // One or more artifacts that represent the Glue Data Catalog output from running + // the job. DataCatalogOutputs []DataCatalogOutput + // Represents a list of JDBC database output objects which defines the output + // destination for a DataBrew recipe job to write into. + DatabaseOutputs []DatabaseOutput + // A dataset that the job is to process. DatasetName *string @@ -456,10 +515,14 @@ type JobRun struct { // The date and time when the job completed processing. CompletedOn *time.Time - // One or more artifacts that represent the AWS Glue Data Catalog output from - // running the job. + // One or more artifacts that represent the Glue Data Catalog output from running + // the job. DataCatalogOutputs []DataCatalogOutput + // Represents a list of JDBC database output objects which defines the output + // destination for a DataBrew recipe job to write into. + DatabaseOutputs []DatabaseOutput + // The name of the dataset for the job to process. DatasetName *string @@ -540,8 +603,8 @@ type JsonOptions struct { noSmithyDocumentSerde } -// Represents options that specify how and where DataBrew writes the output -// generated by recipe jobs or profile jobs. +// Represents options that specify how and where in Amazon S3 DataBrew writes the +// output generated by recipe jobs or profile jobs. type Output struct { // The location in Amazon S3 where the job writes its output. @@ -598,6 +661,32 @@ type PathOptions struct { noSmithyDocumentSerde } +// Configuration for profile jobs. Configuration can be used to select columns, do +// evaluations, and override default parameters of evaluations. When configuration +// is undefined, the profile job will apply default settings to all supported +// columns. +type ProfileConfiguration struct { + + // List of configurations for column evaluations. ColumnStatisticsConfigurations + // are used to select evaluations and override parameters of evaluations for + // particular columns. When ColumnStatisticsConfigurations is undefined, the + // profile job will profile all supported columns and run all supported + // evaluations. + ColumnStatisticsConfigurations []ColumnStatisticsConfiguration + + // Configuration for inter-column evaluations. Configuration can be used to select + // evaluations and override parameters of evaluations. When configuration is + // undefined, the profile job will run all supported inter-column evaluations. + DatasetStatisticsConfiguration *StatisticsConfiguration + + // List of column selectors. ProfileColumns can be used to select columns from the + // dataset. When ProfileColumns is undefined, the profile job will profile all + // supported columns. + ProfileColumns []ColumnSelector + + noSmithyDocumentSerde +} + // Represents all of the attributes of a DataBrew project. type Project struct { @@ -787,8 +876,8 @@ type S3Location struct { noSmithyDocumentSerde } -// Represents options that specify how and where DataBrew writes the S3 output -// generated by recipe jobs. +// Represents options that specify how and where DataBrew writes the Amazon S3 +// output generated by recipe jobs. type S3TableOutputOptions struct { // Represents an Amazon S3 location (bucket name and object key) where DataBrew can @@ -855,6 +944,36 @@ type Schedule struct { noSmithyDocumentSerde } +// Override of a particular evaluation for a profile job. +type StatisticOverride struct { + + // A map that includes overrides of an evaluation’s parameters. + // + // This member is required. + Parameters map[string]string + + // The name of an evaluation + // + // This member is required. + Statistic *string + + noSmithyDocumentSerde +} + +// Configuration of evaluations for a profile job. This configuration can be used +// to select evaluations and override the parameters of selected evaluations. +type StatisticsConfiguration struct { + + // List of included evaluations. When the list is undefined, all supported + // evaluations will be included. + IncludedStatistics []string + + // List of overrides for evaluations. + Overrides []StatisticOverride + + noSmithyDocumentSerde +} + // Represents the data being transformed during an action. type ViewFrame struct { diff --git a/service/databrew/validators.go b/service/databrew/validators.go index 87e15db9b64..469a7ee0935 100644 --- a/service/databrew/validators.go +++ b/service/databrew/validators.go @@ -826,6 +826,42 @@ func addOpUpdateScheduleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateSchedule{}, middleware.After) } +func validateColumnStatisticsConfiguration(v *types.ColumnStatisticsConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ColumnStatisticsConfiguration"} + if v.Statistics == nil { + invalidParams.Add(smithy.NewErrParamRequired("Statistics")) + } else if v.Statistics != nil { + if err := validateStatisticsConfiguration(v.Statistics); err != nil { + invalidParams.AddNested("Statistics", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateColumnStatisticsConfigurationList(v []types.ColumnStatisticsConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ColumnStatisticsConfigurationList"} + for i := range v { + if err := validateColumnStatisticsConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateConditionExpression(v *types.ConditionExpression) error { if v == nil { return nil @@ -884,6 +920,45 @@ func validateDatabaseInputDefinition(v *types.DatabaseInputDefinition) error { } } +func validateDatabaseOutput(v *types.DatabaseOutput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatabaseOutput"} + if v.GlueConnectionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("GlueConnectionName")) + } + if v.DatabaseOptions == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatabaseOptions")) + } else if v.DatabaseOptions != nil { + if err := validateDatabaseTableOutputOptions(v.DatabaseOptions); err != nil { + invalidParams.AddNested("DatabaseOptions", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDatabaseOutputList(v []types.DatabaseOutput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatabaseOutputList"} + for i := range v { + if err := validateDatabaseOutput(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDatabaseTableOutputOptions(v *types.DatabaseTableOutputOptions) error { if v == nil { return nil @@ -1153,6 +1228,28 @@ func validatePathParametersMap(v map[string]types.DatasetParameter) error { } } +func validateProfileConfiguration(v *types.ProfileConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ProfileConfiguration"} + if v.DatasetStatisticsConfiguration != nil { + if err := validateStatisticsConfiguration(v.DatasetStatisticsConfiguration); err != nil { + invalidParams.AddNested("DatasetStatisticsConfiguration", err.(smithy.InvalidParamsError)) + } + } + if v.ColumnStatisticsConfigurations != nil { + if err := validateColumnStatisticsConfigurationList(v.ColumnStatisticsConfigurations); err != nil { + invalidParams.AddNested("ColumnStatisticsConfigurations", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateRecipeAction(v *types.RecipeAction) error { if v == nil { return nil @@ -1273,6 +1370,58 @@ func validateSample(v *types.Sample) error { } } +func validateStatisticOverride(v *types.StatisticOverride) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StatisticOverride"} + if v.Statistic == nil { + invalidParams.Add(smithy.NewErrParamRequired("Statistic")) + } + if v.Parameters == nil { + invalidParams.Add(smithy.NewErrParamRequired("Parameters")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateStatisticOverrideList(v []types.StatisticOverride) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StatisticOverrideList"} + for i := range v { + if err := validateStatisticOverride(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateStatisticsConfiguration(v *types.StatisticsConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StatisticsConfiguration"} + if v.Overrides != nil { + if err := validateStatisticOverrideList(v.Overrides); err != nil { + invalidParams.AddNested("Overrides", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateViewFrame(v *types.ViewFrame) error { if v == nil { return nil @@ -1351,6 +1500,11 @@ func validateOpCreateProfileJobInput(v *CreateProfileJobInput) error { invalidParams.AddNested("OutputLocation", err.(smithy.InvalidParamsError)) } } + if v.Configuration != nil { + if err := validateProfileConfiguration(v.Configuration); err != nil { + invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError)) + } + } if v.RoleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) } @@ -1430,6 +1584,11 @@ func validateOpCreateRecipeJobInput(v *CreateRecipeJobInput) error { invalidParams.AddNested("DataCatalogOutputs", err.(smithy.InvalidParamsError)) } } + if v.DatabaseOutputs != nil { + if err := validateDatabaseOutputList(v.DatabaseOutputs); err != nil { + invalidParams.AddNested("DatabaseOutputs", err.(smithy.InvalidParamsError)) + } + } if v.RecipeReference != nil { if err := validateRecipeReference(v.RecipeReference); err != nil { invalidParams.AddNested("RecipeReference", err.(smithy.InvalidParamsError)) @@ -1835,6 +1994,11 @@ func validateOpUpdateProfileJobInput(v *UpdateProfileJobInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateProfileJobInput"} + if v.Configuration != nil { + if err := validateProfileConfiguration(v.Configuration); err != nil { + invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError)) + } + } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } @@ -1916,6 +2080,11 @@ func validateOpUpdateRecipeJobInput(v *UpdateRecipeJobInput) error { invalidParams.AddNested("DataCatalogOutputs", err.(smithy.InvalidParamsError)) } } + if v.DatabaseOutputs != nil { + if err := validateDatabaseOutputList(v.DatabaseOutputs); err != nil { + invalidParams.AddNested("DatabaseOutputs", err.(smithy.InvalidParamsError)) + } + } if v.RoleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) } diff --git a/service/directconnect/api_op_AllocateConnectionOnInterconnect.go b/service/directconnect/api_op_AllocateConnectionOnInterconnect.go index 4453c9fb637..c6c4e8d198a 100644 --- a/service/directconnect/api_op_AllocateConnectionOnInterconnect.go +++ b/service/directconnect/api_op_AllocateConnectionOnInterconnect.go @@ -75,11 +75,11 @@ type AllocateConnectionOnInterconnectOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_AllocateHostedConnection.go b/service/directconnect/api_op_AllocateHostedConnection.go index 7d2c1cb011c..d5d75cb3c29 100644 --- a/service/directconnect/api_op_AllocateHostedConnection.go +++ b/service/directconnect/api_op_AllocateHostedConnection.go @@ -78,11 +78,11 @@ type AllocateHostedConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_AllocatePrivateVirtualInterface.go b/service/directconnect/api_op_AllocatePrivateVirtualInterface.go index fc762914229..241c5e11db9 100644 --- a/service/directconnect/api_op_AllocatePrivateVirtualInterface.go +++ b/service/directconnect/api_op_AllocatePrivateVirtualInterface.go @@ -70,11 +70,11 @@ type AllocatePrivateVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint on which the virtual interface terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_AllocatePublicVirtualInterface.go b/service/directconnect/api_op_AllocatePublicVirtualInterface.go index b76f6711205..e36ae6e86db 100644 --- a/service/directconnect/api_op_AllocatePublicVirtualInterface.go +++ b/service/directconnect/api_op_AllocatePublicVirtualInterface.go @@ -75,11 +75,11 @@ type AllocatePublicVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint on which the virtual interface terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_AssociateConnectionWithLag.go b/service/directconnect/api_op_AssociateConnectionWithLag.go index b67d187b309..5c5a48fd5f8 100644 --- a/service/directconnect/api_op_AssociateConnectionWithLag.go +++ b/service/directconnect/api_op_AssociateConnectionWithLag.go @@ -64,11 +64,11 @@ type AssociateConnectionWithLagOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_AssociateHostedConnection.go b/service/directconnect/api_op_AssociateHostedConnection.go index 2a7f29d9ca2..9c8e0b85ef3 100644 --- a/service/directconnect/api_op_AssociateHostedConnection.go +++ b/service/directconnect/api_op_AssociateHostedConnection.go @@ -56,11 +56,11 @@ type AssociateHostedConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_AssociateVirtualInterface.go b/service/directconnect/api_op_AssociateVirtualInterface.go index 138c622f82b..5d818876844 100644 --- a/service/directconnect/api_op_AssociateVirtualInterface.go +++ b/service/directconnect/api_op_AssociateVirtualInterface.go @@ -72,11 +72,11 @@ type AssociateVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint on which the virtual interface terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_CreateConnection.go b/service/directconnect/api_op_CreateConnection.go index 3781ade30ae..87d845570f2 100644 --- a/service/directconnect/api_op_CreateConnection.go +++ b/service/directconnect/api_op_CreateConnection.go @@ -80,11 +80,11 @@ type CreateConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_CreateInterconnect.go b/service/directconnect/api_op_CreateInterconnect.go index 1bf4c032abb..6618f9c7a46 100644 --- a/service/directconnect/api_op_CreateInterconnect.go +++ b/service/directconnect/api_op_CreateInterconnect.go @@ -81,11 +81,11 @@ type CreateInterconnectOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_CreateLag.go b/service/directconnect/api_op_CreateLag.go index 64ba569b964..3db3ccd65ba 100644 --- a/service/directconnect/api_op_CreateLag.go +++ b/service/directconnect/api_op_CreateLag.go @@ -105,8 +105,8 @@ type CreateLagOutput struct { // The Direct Connect endpoint that hosts the LAG. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The connections bundled by the LAG. diff --git a/service/directconnect/api_op_CreatePrivateVirtualInterface.go b/service/directconnect/api_op_CreatePrivateVirtualInterface.go index 25209e06d2b..6bbe03ff79c 100644 --- a/service/directconnect/api_op_CreatePrivateVirtualInterface.go +++ b/service/directconnect/api_op_CreatePrivateVirtualInterface.go @@ -74,11 +74,11 @@ type CreatePrivateVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint on which the virtual interface terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_CreatePublicVirtualInterface.go b/service/directconnect/api_op_CreatePublicVirtualInterface.go index 8f4de75c4c5..ef49e4024f0 100644 --- a/service/directconnect/api_op_CreatePublicVirtualInterface.go +++ b/service/directconnect/api_op_CreatePublicVirtualInterface.go @@ -67,11 +67,11 @@ type CreatePublicVirtualInterfaceOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint on which the virtual interface terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/api_op_DeleteConnection.go b/service/directconnect/api_op_DeleteConnection.go index 84a426f474a..ebc408bab7a 100644 --- a/service/directconnect/api_op_DeleteConnection.go +++ b/service/directconnect/api_op_DeleteConnection.go @@ -49,11 +49,11 @@ type DeleteConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_DeleteLag.go b/service/directconnect/api_op_DeleteLag.go index 307e8e9a072..3f4b50511a9 100644 --- a/service/directconnect/api_op_DeleteLag.go +++ b/service/directconnect/api_op_DeleteLag.go @@ -52,8 +52,8 @@ type DeleteLagOutput struct { // The Direct Connect endpoint that hosts the LAG. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The connections bundled by the LAG. diff --git a/service/directconnect/api_op_DisassociateConnectionFromLag.go b/service/directconnect/api_op_DisassociateConnectionFromLag.go index d50bdfd5c21..f2f7565f76d 100644 --- a/service/directconnect/api_op_DisassociateConnectionFromLag.go +++ b/service/directconnect/api_op_DisassociateConnectionFromLag.go @@ -60,11 +60,11 @@ type DisassociateConnectionFromLagOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_UpdateConnection.go b/service/directconnect/api_op_UpdateConnection.go index f2503d31c1a..88227a74067 100644 --- a/service/directconnect/api_op_UpdateConnection.go +++ b/service/directconnect/api_op_UpdateConnection.go @@ -60,11 +60,11 @@ type UpdateConnectionOutput struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. diff --git a/service/directconnect/api_op_UpdateLag.go b/service/directconnect/api_op_UpdateLag.go index bdde9fdeac4..0dfa11fc85c 100644 --- a/service/directconnect/api_op_UpdateLag.go +++ b/service/directconnect/api_op_UpdateLag.go @@ -79,8 +79,8 @@ type UpdateLagOutput struct { // The Direct Connect endpoint that hosts the LAG. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The connections bundled by the LAG. diff --git a/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go b/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go index fcd763e9366..0862d52259a 100644 --- a/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go +++ b/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go @@ -68,11 +68,11 @@ type UpdateVirtualInterfaceAttributesOutput struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint on which the virtual interface terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/directconnect/types/types.go b/service/directconnect/types/types.go index e4378f0d8f3..0494ee18f31 100644 --- a/service/directconnect/types/types.go +++ b/service/directconnect/types/types.go @@ -43,9 +43,11 @@ type BGPPeer struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint on which the BGP peer terminates. + // The Direct Connect endpoint that terminates the BGP peer. AwsDeviceV2 *string + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The ID of the BGP peer. @@ -96,11 +98,11 @@ type Connection struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. @@ -379,11 +381,11 @@ type Interconnect struct { // Deprecated: This member has been deprecated. AwsDevice *string - // The Direct Connect endpoint on which the physical connection terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The bandwidth of the connection. @@ -461,8 +463,8 @@ type Lag struct { // The Direct Connect endpoint that hosts the LAG. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The connections bundled by the LAG. @@ -982,11 +984,11 @@ type VirtualInterface struct { // of 6 characters and and a maximun lenth of 80 characters. AuthKey *string - // The Direct Connect endpoint on which the virtual interface terminates. + // The Direct Connect endpoint that terminates the physical connection. AwsDeviceV2 *string - // The Direct Connect endpoint that terminates a physical connection's BGP - // sessions. + // The Direct Connect endpoint that terminates the logical connection. This device + // might be different than the device that terminates the physical connection. AwsLogicalDeviceId *string // The BGP peers configured on this virtual interface. diff --git a/service/ec2/api_op_AllocateAddress.go b/service/ec2/api_op_AllocateAddress.go index ef3960e49dd..f973238b9ec 100644 --- a/service/ec2/api_op_AllocateAddress.go +++ b/service/ec2/api_op_AllocateAddress.go @@ -11,24 +11,25 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Allocates an Elastic IP address to your account. After you allocate the Elastic -// IP address you can associate it with an instance or network interface. After you -// release an Elastic IP address, it is released to the IP address pool and can be -// allocated to a different account. You can allocate an Elastic IP address from an -// address pool owned by Amazon Web Services or from an address pool created from a -// public IPv4 address range that you have brought to Amazon Web Services for use -// with your Amazon Web Services resources using bring your own IP addresses -// (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) +// Allocates an Elastic IP address to your Amazon Web Services account. After you +// allocate the Elastic IP address you can associate it with an instance or network +// interface. After you release an Elastic IP address, it is released to the IP +// address pool and can be allocated to a different Amazon Web Services account. +// You can allocate an Elastic IP address from an address pool owned by Amazon Web +// Services or from an address pool created from a public IPv4 address range that +// you have brought to Amazon Web Services for use with your Amazon Web Services +// resources using bring your own IP addresses (BYOIP). For more information, see +// Bring Your Own IP Addresses (BYOIP) // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the // Amazon Elastic Compute Cloud User Guide. [EC2-VPC] If you release an Elastic IP // address, you might be able to recover it. You cannot recover an Elastic IP -// address that you released after it is allocated to another account. You cannot -// recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic -// IP address that you released, specify it in this operation. An Elastic IP -// address is for use either in the EC2-Classic platform or in a VPC. By default, -// you can allocate 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic -// IP addresses for EC2-VPC per Region. For more information, see Elastic IP -// Addresses +// address that you released after it is allocated to another Amazon Web Services +// account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to +// recover an Elastic IP address that you released, specify it in this operation. +// An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. +// By default, you can allocate 5 Elastic IP addresses for EC2-Classic per Region +// and 5 Elastic IP addresses for EC2-VPC per Region. For more information, see +// Elastic IP Addresses // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. You can allocate a carrier IP // address which is a public IP address from a telecommunication carrier, to a diff --git a/service/ec2/api_op_AssignIpv6Addresses.go b/service/ec2/api_op_AssignIpv6Addresses.go index 2a79e5579d1..bcf0849f4d8 100644 --- a/service/ec2/api_op_AssignIpv6Addresses.go +++ b/service/ec2/api_op_AssignIpv6Addresses.go @@ -18,7 +18,12 @@ import ( // information, see IP Addresses Per Network Interface Per Instance Type // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) // in the Amazon Elastic Compute Cloud User Guide. You must specify either the IPv6 -// addresses or the IPv6 address count in the request. +// addresses or the IPv6 address count in the request. You can optionally use +// Prefix Delegation on the network interface. You must specify either the IPV6 +// Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For +// information, see Prefix Delegation +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation) in +// the Amazon Elastic Compute Cloud User Guide. func (c *Client) AssignIpv6Addresses(ctx context.Context, params *AssignIpv6AddressesInput, optFns ...func(*Options)) (*AssignIpv6AddressesOutput, error) { if params == nil { params = &AssignIpv6AddressesInput{} @@ -52,6 +57,15 @@ type AssignIpv6AddressesInput struct { // can't use this option if you're specifying a number of IPv6 addresses. Ipv6Addresses []string + // The number of IPv6 Prefix Delegation prefixes that AWS automatically assigns to + // the network interface. You cannot use this option if you use the Ipv6Prefixes + // option. + Ipv6PrefixCount *int32 + + // One or more IPv6 Prefix Delegation prefixes assigned to the network interface. + // You cannot use this option if you use the Ipv6PrefixCount option. + Ipv6Prefixes []string + noSmithyDocumentSerde } @@ -62,6 +76,9 @@ type AssignIpv6AddressesOutput struct { // included. AssignedIpv6Addresses []string + // The IPv6 Prefix Delegation prefixes that are assigned to the network interface. + AssignedIpv6Prefixes []string + // The ID of the network interface. NetworkInterfaceId *string diff --git a/service/ec2/api_op_AssignPrivateIpAddresses.go b/service/ec2/api_op_AssignPrivateIpAddresses.go index 841b068a4c5..051d3d1a433 100644 --- a/service/ec2/api_op_AssignPrivateIpAddresses.go +++ b/service/ec2/api_op_AssignPrivateIpAddresses.go @@ -27,7 +27,12 @@ import ( // asynchronous operation. When you move an IP address from one network interface // to another, check network/interfaces/macs/mac/local-ipv4s in the instance // metadata to confirm that the remapping is complete. You must specify either the -// IP addresses or the IP address count in the request. +// IP addresses or the IP address count in the request. You can optionally use +// Prefix Delegation on the network interface. You must specify either the IPv4 +// Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For +// information, see Prefix Delegation +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation) in +// the Amazon Elastic Compute Cloud User Guide. func (c *Client) AssignPrivateIpAddresses(ctx context.Context, params *AssignPrivateIpAddressesInput, optFns ...func(*Options)) (*AssignPrivateIpAddressesOutput, error) { if params == nil { params = &AssignPrivateIpAddressesInput{} @@ -56,6 +61,15 @@ type AssignPrivateIpAddressesInput struct { // interface. AllowReassignment *bool + // The number of IPv4 Prefix Delegation prefixes that AWS automatically assigns to + // the network interface. You cannot use this option if you use the Ipv4 Prefixes + // option. + Ipv4PrefixCount *int32 + + // One or more IPv4 Prefix Delegation prefixes assigned to the network interface. + // You cannot use this option if you use the Ipv4PrefixCount option. + Ipv4Prefixes []string + // One or more IP addresses to be assigned as a secondary private IP address to the // network interface. You can't specify this parameter when also specifying a // number of secondary IP addresses. If you don't specify an IP address, Amazon EC2 @@ -71,6 +85,9 @@ type AssignPrivateIpAddressesInput struct { type AssignPrivateIpAddressesOutput struct { + // The IPv4 Prefix Delegation prefixes that are assigned to the network interface. + AssignedIpv4Prefixes []types.Ipv4PrefixSpecification + // The private IP addresses assigned to the network interface. AssignedPrivateIpAddresses []types.AssignedPrivateIpAddress diff --git a/service/ec2/api_op_AssociateDhcpOptions.go b/service/ec2/api_op_AssociateDhcpOptions.go index 3709a854c09..59bfc13880d 100644 --- a/service/ec2/api_op_AssociateDhcpOptions.go +++ b/service/ec2/api_op_AssociateDhcpOptions.go @@ -17,7 +17,7 @@ import ( // instances. They automatically pick up the changes within a few hours, depending // on how frequently the instance renews its DHCP lease. You can explicitly renew // the lease using the operating system on the instance. For more information, see -// DHCP Options Sets +// DHCP options sets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) AssociateDhcpOptions(ctx context.Context, params *AssociateDhcpOptionsInput, optFns ...func(*Options)) (*AssociateDhcpOptionsOutput, error) { diff --git a/service/ec2/api_op_AssociateInstanceEventWindow.go b/service/ec2/api_op_AssociateInstanceEventWindow.go new file mode 100644 index 00000000000..105c9b9e6eb --- /dev/null +++ b/service/ec2/api_op_AssociateInstanceEventWindow.go @@ -0,0 +1,136 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Associates one or more targets with an event window. Only one type of target +// (instance IDs, Dedicated Host IDs, or tags) can be specified with an event +// window. For more information, see Define event windows for scheduled events +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the +// Amazon EC2 User Guide. +func (c *Client) AssociateInstanceEventWindow(ctx context.Context, params *AssociateInstanceEventWindowInput, optFns ...func(*Options)) (*AssociateInstanceEventWindowOutput, error) { + if params == nil { + params = &AssociateInstanceEventWindowInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateInstanceEventWindow", params, optFns, c.addOperationAssociateInstanceEventWindowMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateInstanceEventWindowOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateInstanceEventWindowInput struct { + + // One or more targets associated with the specified event window. + // + // This member is required. + AssociationTarget *types.InstanceEventWindowAssociationRequest + + // The ID of the event window. + // + // This member is required. + InstanceEventWindowId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type AssociateInstanceEventWindowOutput struct { + + // Information about the event window. + InstanceEventWindow *types.InstanceEventWindow + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssociateInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpAssociateInstanceEventWindowValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateInstanceEventWindow(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opAssociateInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "AssociateInstanceEventWindow", + } +} diff --git a/service/ec2/api_op_AssociateRouteTable.go b/service/ec2/api_op_AssociateRouteTable.go index 8ade9439631..5a9edbe4f48 100644 --- a/service/ec2/api_op_AssociateRouteTable.go +++ b/service/ec2/api_op_AssociateRouteTable.go @@ -16,7 +16,7 @@ import ( // causes traffic from the subnet or gateway to be routed according to the routes // in the route table. The action returns an association ID, which you need in // order to disassociate the route table later. A route table can be associated -// with multiple subnets. For more information, see Route Tables +// with multiple subnets. For more information, see Route tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) AssociateRouteTable(ctx context.Context, params *AssociateRouteTableInput, optFns ...func(*Options)) (*AssociateRouteTableOutput, error) { diff --git a/service/ec2/api_op_AssociateVpcCidrBlock.go b/service/ec2/api_op_AssociateVpcCidrBlock.go index 0081df34bf7..919b3c5c8f7 100644 --- a/service/ec2/api_op_AssociateVpcCidrBlock.go +++ b/service/ec2/api_op_AssociateVpcCidrBlock.go @@ -18,7 +18,7 @@ import ( // CIDR block size is fixed at /56. You must specify one of the following in the // request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR // block. For more information about associating CIDR blocks with your VPC and -// applicable restrictions, see VPC and Subnet Sizing +// applicable restrictions, see VPC and subnet sizing // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html#VPC_Sizing) // in the Amazon Virtual Private Cloud User Guide. func (c *Client) AssociateVpcCidrBlock(ctx context.Context, params *AssociateVpcCidrBlockInput, optFns ...func(*Options)) (*AssociateVpcCidrBlockOutput, error) { diff --git a/service/ec2/api_op_AttachVolume.go b/service/ec2/api_op_AttachVolume.go index 765f8b62c39..949d3b6d005 100644 --- a/service/ec2/api_op_AttachVolume.go +++ b/service/ec2/api_op_AttachVolume.go @@ -18,25 +18,26 @@ import ( // Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. After you attach an EBS volume, you -// must make it available. For more information, see Making an EBS volume available +// must make it available. For more information, see Make an EBS volume available // for use // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html). If -// a volume has an AWS Marketplace product code: +// a volume has an Amazon Web Services Marketplace product code: // -// * The volume can be attached only -// to a stopped instance. +// * The volume can +// be attached only to a stopped instance. // -// * AWS Marketplace product codes are copied from the -// volume to the instance. +// * Amazon Web Services Marketplace +// product codes are copied from the volume to the instance. // -// * You must be subscribed to the product. +// * You must be +// subscribed to the product. // -// * The -// instance type and operating system of the instance must support the product. For -// example, you can't detach a volume from a Windows instance and attach it to a -// Linux instance. +// * The instance type and operating system of the +// instance must support the product. For example, you can't detach a volume from a +// Windows instance and attach it to a Linux instance. // -// For more information, see Attaching Amazon EBS volumes +// For more information, see +// Attach an Amazon EBS volume to an instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) AttachVolume(ctx context.Context, params *AttachVolumeInput, optFns ...func(*Options)) (*AttachVolumeOutput, error) { diff --git a/service/ec2/api_op_ConfirmProductInstance.go b/service/ec2/api_op_ConfirmProductInstance.go index 5f7d3fb2490..bfad4916266 100644 --- a/service/ec2/api_op_ConfirmProductInstance.go +++ b/service/ec2/api_op_ConfirmProductInstance.go @@ -51,8 +51,8 @@ type ConfirmProductInstanceInput struct { type ConfirmProductInstanceOutput struct { - // The account ID of the instance owner. This is only present if the product code - // is attached to the instance. + // The Amazon Web Services account ID of the instance owner. This is only present + // if the product code is attached to the instance. OwnerId *string // The return value of the request. Returns true if the specified product code is diff --git a/service/ec2/api_op_CopySnapshot.go b/service/ec2/api_op_CopySnapshot.go index 4414b9dc278..a4648c5e05f 100644 --- a/service/ec2/api_op_CopySnapshot.go +++ b/service/ec2/api_op_CopySnapshot.go @@ -21,17 +21,17 @@ import ( // snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. // Copies of unencrypted snapshots remain unencrypted, unless you enable encryption // for the snapshot copy operation. By default, encrypted snapshot copies use the -// default AWS Key Management Service (AWS KMS) customer master key (CMK); however, -// you can specify a different CMK. To copy an encrypted snapshot that has been -// shared from another account, you must have permissions for the CMK used to -// encrypt the snapshot. Snapshots copied to an Outpost are encrypted by default -// using the default encryption key for the Region, or a different key that you -// specify in the request using KmsKeyId. Outposts do not support unencrypted -// snapshots. For more information, Amazon EBS local snapshots on Outposts +// default Key Management Service (KMS) KMS key; however, you can specify a +// different KMS key. To copy an encrypted snapshot that has been shared from +// another account, you must have permissions for the KMS key used to encrypt the +// snapshot. Snapshots copied to an Outpost are encrypted by default using the +// default encryption key for the Region, or a different key that you specify in +// the request using KmsKeyId. Outposts do not support unencrypted snapshots. For +// more information, Amazon EBS local snapshots on Outposts // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami) // in the Amazon Elastic Compute Cloud User Guide. Snapshots created by copying // another snapshot have an arbitrary volume ID that should not be used for any -// purpose. For more information, see Copying an Amazon EBS snapshot +// purpose. For more information, see Copy an Amazon EBS snapshot // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) in // the Amazon Elastic Compute Cloud User Guide. func (c *Client) CopySnapshot(ctx context.Context, params *CopySnapshotInput, optFns ...func(*Options)) (*CopySnapshotOutput, error) { @@ -65,11 +65,11 @@ type CopySnapshotInput struct { Description *string // The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot. - // Only specify this parameter when copying a snapshot from an AWS Region to an - // Outpost. The snapshot must be in the Region for the destination Outpost. You - // cannot copy a snapshot from an Outpost to a Region, from one Outpost to another, - // or within the same Outpost. For more information, see Copying snapshots from an - // AWS Region to an Outpost + // Only specify this parameter when copying a snapshot from an Amazon Web Services + // Region to an Outpost. The snapshot must be in the Region for the destination + // Outpost. You cannot copy a snapshot from an Outpost to a Region, from one + // Outpost to another, or within the same Outpost. For more information, see Copy + // snapshots from an Amazon Web Services Region to an Outpost // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#copy-snapshots) // in the Amazon Elastic Compute Cloud User Guide. DestinationOutpostArn *string @@ -89,13 +89,13 @@ type CopySnapshotInput struct { // Amazon Elastic Compute Cloud User Guide. Encrypted *bool - // The identifier of the AWS Key Management Service (AWS KMS) customer master key - // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your - // AWS managed CMK for EBS is used. If KmsKeyId is specified, the encrypted state - // must be true. You can specify the CMK using any of the following: + // The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS + // encryption. If this parameter is not specified, your KMS key for Amazon EBS is + // used. If KmsKeyId is specified, the encrypted state must be true. You can + // specify the KMS key using any of the following: // - // * Key ID. For - // example, 1234abcd-12ab-34cd-56ef-1234567890ab. + // * Key ID. For example, + // 1234abcd-12ab-34cd-56ef-1234567890ab. // // * Key alias. For example, // alias/ExampleAlias. @@ -107,9 +107,10 @@ type CopySnapshotInput struct { // Alias ARN. For example, // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // - // AWS authenticates the - // CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not - // valid, the action can appear to complete, but eventually fails. + // Amazon Web Services + // authenticates the KMS key asynchronously. Therefore, if you specify an ID, + // alias, or ARN that is not valid, the action can appear to complete, but + // eventually fails. KmsKeyId *string // When you copy an encrypted source snapshot using the Amazon EC2 Query API, you @@ -118,10 +119,10 @@ type CopySnapshotInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html). // The PresignedUrl should use the snapshot source endpoint, the CopySnapshot // action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion - // parameters. The PresignedUrl must be signed using AWS Signature Version 4. - // Because EBS snapshots are stored in Amazon S3, the signing algorithm for this - // parameter uses the same logic that is described in Authenticating Requests: - // Using Query Parameters (AWS Signature Version 4) + // parameters. The PresignedUrl must be signed using Amazon Web Services Signature + // Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm + // for this parameter uses the same logic that is described in Authenticating + // Requests: Using Query Parameters (Amazon Web Services Signature Version 4) // (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) // in the Amazon Simple Storage Service API Reference. An invalid or improperly // signed PresignedUrl will cause the copy operation to fail asynchronously, and diff --git a/service/ec2/api_op_CreateCapacityReservation.go b/service/ec2/api_op_CreateCapacityReservation.go index abbdca36fc5..d46d64ac6fa 100644 --- a/service/ec2/api_op_CreateCapacityReservation.go +++ b/service/ec2/api_op_CreateCapacityReservation.go @@ -147,11 +147,11 @@ type CreateCapacityReservationInput struct { // have one of the following tenancy settings: // // * default - The Capacity - // Reservation is created on hardware that is shared with other accounts. + // Reservation is created on hardware that is shared with other Amazon Web Services + // accounts. // - // * - // dedicated - The Capacity Reservation is created on single-tenant hardware that - // is dedicated to a single account. + // * dedicated - The Capacity Reservation is created on single-tenant + // hardware that is dedicated to a single Amazon Web Services account. Tenancy types.CapacityReservationTenancy noSmithyDocumentSerde diff --git a/service/ec2/api_op_CreateCarrierGateway.go b/service/ec2/api_op_CreateCarrierGateway.go index 471990f6cc6..d8e4045fbc4 100644 --- a/service/ec2/api_op_CreateCarrierGateway.go +++ b/service/ec2/api_op_CreateCarrierGateway.go @@ -15,7 +15,7 @@ import ( // Creates a carrier gateway. For more information about carrier gateways, see // Carrier gateways // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#wavelength-carrier-gateway) -// in the AWS Wavelength Developer Guide. +// in the Amazon Web Services Wavelength Developer Guide. func (c *Client) CreateCarrierGateway(ctx context.Context, params *CreateCarrierGatewayInput, optFns ...func(*Options)) (*CreateCarrierGatewayOutput, error) { if params == nil { params = &CreateCarrierGatewayInput{} @@ -39,7 +39,7 @@ type CreateCarrierGatewayInput struct { VpcId *string // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see How to ensure idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). ClientToken *string diff --git a/service/ec2/api_op_CreateDefaultSubnet.go b/service/ec2/api_op_CreateDefaultSubnet.go index df4e8bc230a..86b347a1386 100644 --- a/service/ec2/api_op_CreateDefaultSubnet.go +++ b/service/ec2/api_op_CreateDefaultSubnet.go @@ -13,7 +13,7 @@ import ( // Creates a default subnet with a size /20 IPv4 CIDR block in the specified // Availability Zone in your default VPC. You can have only one default subnet per -// Availability Zone. For more information, see Creating a Default Subnet +// Availability Zone. For more information, see Creating a default subnet // (https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html#create-default-subnet) // in the Amazon Virtual Private Cloud User Guide. func (c *Client) CreateDefaultSubnet(ctx context.Context, params *CreateDefaultSubnetInput, optFns ...func(*Options)) (*CreateDefaultSubnetOutput, error) { diff --git a/service/ec2/api_op_CreateDefaultVpc.go b/service/ec2/api_op_CreateDefaultVpc.go index be209e33655..f73b31d19d9 100644 --- a/service/ec2/api_op_CreateDefaultVpc.go +++ b/service/ec2/api_op_CreateDefaultVpc.go @@ -13,7 +13,7 @@ import ( // Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in // each Availability Zone. For more information about the components of a default -// VPC, see Default VPC and Default Subnets +// VPC, see Default VPC and default subnets // (https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html) in the // Amazon Virtual Private Cloud User Guide. You cannot specify the components of // the default VPC yourself. If you deleted your previous default VPC, you can diff --git a/service/ec2/api_op_CreateDhcpOptions.go b/service/ec2/api_op_CreateDhcpOptions.go index 3caa8a75cec..d9bfb9bb855 100644 --- a/service/ec2/api_op_CreateDhcpOptions.go +++ b/service/ec2/api_op_CreateDhcpOptions.go @@ -52,7 +52,7 @@ import ( // (AmazonProvidedDNS). If you create a set of options, and if your VPC has an // internet gateway, make sure to set the domain-name-servers option either to // AmazonProvidedDNS or to a domain name server of your choice. For more -// information, see DHCP Options Sets +// information, see DHCP options sets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) CreateDhcpOptions(ctx context.Context, params *CreateDhcpOptionsInput, optFns ...func(*Options)) (*CreateDhcpOptionsOutput, error) { diff --git a/service/ec2/api_op_CreateEgressOnlyInternetGateway.go b/service/ec2/api_op_CreateEgressOnlyInternetGateway.go index 38b1085c712..9c494b7266f 100644 --- a/service/ec2/api_op_CreateEgressOnlyInternetGateway.go +++ b/service/ec2/api_op_CreateEgressOnlyInternetGateway.go @@ -38,7 +38,7 @@ type CreateEgressOnlyInternetGatewayInput struct { VpcId *string // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see How to ensure idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). ClientToken *string diff --git a/service/ec2/api_op_CreateFlowLogs.go b/service/ec2/api_op_CreateFlowLogs.go index d4bff30df23..b564c2eb573 100644 --- a/service/ec2/api_op_CreateFlowLogs.go +++ b/service/ec2/api_op_CreateFlowLogs.go @@ -15,7 +15,7 @@ import ( // specific network interface, subnet, or VPC. Flow log data for a monitored // network interface is recorded as flow log records, which are log events // consisting of fields that describe the traffic flow. For more information, see -// Flow Log Records +// Flow log records // (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records) // in the Amazon Virtual Private Cloud User Guide. When publishing to CloudWatch // Logs, flow log records are published to a log group, and each network interface @@ -61,7 +61,7 @@ type CreateFlowLogsInput struct { TrafficType types.TrafficType // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see How to ensure idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). ClientToken *string @@ -100,11 +100,11 @@ type CreateFlowLogsInput struct { LogDestinationType types.LogDestinationType // The fields to include in the flow log record, in the order in which they should - // appear. For a list of available fields, see Flow Log Records + // appear. For a list of available fields, see Flow log records // (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records). // If you omit this parameter, the flow log is created using the default format. If // you specify this parameter, you must specify at least one field. Specify the - // fields using the ${field-id} format, separated by spaces. For the AWS CLI, use + // fields using the ${field-id} format, separated by spaces. For the CLI, use // single quotation marks (' ') to surround the parameter value. LogFormat *string diff --git a/service/ec2/api_op_CreateInstanceEventWindow.go b/service/ec2/api_op_CreateInstanceEventWindow.go new file mode 100644 index 00000000000..9d0e1d63aac --- /dev/null +++ b/service/ec2/api_op_CreateInstanceEventWindow.go @@ -0,0 +1,174 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates an event window in which scheduled events for the associated Amazon EC2 +// instances can run. You can define either a set of time ranges or a cron +// expression when creating the event window, but not both. All event window times +// are in UTC. You can create up to 200 event windows per Amazon Web Services +// Region. When you create the event window, targets (instance IDs, Dedicated Host +// IDs, or tags) are not yet associated with it. To ensure that the event window +// can be used, you must associate one or more targets with it by using the +// AssociateInstanceEventWindow API. Event windows are applicable only for +// scheduled events that stop, reboot, or terminate instances. Event windows are +// not applicable for: +// +// * Expedited scheduled events and network maintenance +// events. +// +// * Unscheduled maintenance such as AutoRecovery and unplanned +// reboots. +// +// For more information, see Define event windows for scheduled events +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the +// Amazon EC2 User Guide. +func (c *Client) CreateInstanceEventWindow(ctx context.Context, params *CreateInstanceEventWindowInput, optFns ...func(*Options)) (*CreateInstanceEventWindowOutput, error) { + if params == nil { + params = &CreateInstanceEventWindowInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateInstanceEventWindow", params, optFns, c.addOperationCreateInstanceEventWindowMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateInstanceEventWindowOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateInstanceEventWindowInput struct { + + // The cron expression for the event window, for example, * 0-4,20-23 * * 1,5. If + // you specify a cron expression, you can't specify a time range. Constraints: + // + // * + // Only hour and day of the week values are supported. + // + // * For day of the week + // values, you can specify either integers 0 through 6, or alternative single + // values SUN through SAT. + // + // * The minute, month, and year must be specified by + // *. + // + // * The hour value must be one or a multiple range, for example, 0-4 or + // 0-4,20-23. + // + // * Each hour range must be >= 2 hours, for example, 0-2 or 20-23. + // + // * + // The event window must be >= 4 hours. The combined total time ranges in the event + // window must be >= 4 hours. + // + // For more information about cron expressions, see + // cron (https://en.wikipedia.org/wiki/Cron) on the Wikipedia website. + CronExpression *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The name of the event window. + Name *string + + // The tags to apply to the event window. + TagSpecifications []types.TagSpecification + + // The time range for the event window. If you specify a time range, you can't + // specify a cron expression. + TimeRanges []types.InstanceEventWindowTimeRangeRequest + + noSmithyDocumentSerde +} + +type CreateInstanceEventWindowOutput struct { + + // Information about the event window. + InstanceEventWindow *types.InstanceEventWindow + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInstanceEventWindow(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreateInstanceEventWindow", + } +} diff --git a/service/ec2/api_op_CreateNatGateway.go b/service/ec2/api_op_CreateNatGateway.go index 09fcd1d4d60..339bec2d501 100644 --- a/service/ec2/api_op_CreateNatGateway.go +++ b/service/ec2/api_op_CreateNatGateway.go @@ -22,7 +22,7 @@ import ( // private gateway. Common use cases include running large workloads behind a small // pool of allowlisted IPv4 addresses, preserving private IPv4 addresses, and // communicating between overlapping networks. For more information, see NAT -// Gateways (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html) +// gateways (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html) // in the Amazon Virtual Private Cloud User Guide. func (c *Client) CreateNatGateway(ctx context.Context, params *CreateNatGatewayInput, optFns ...func(*Options)) (*CreateNatGatewayOutput, error) { if params == nil { @@ -53,7 +53,7 @@ type CreateNatGatewayInput struct { AllocationId *string // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see How to ensure idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). // Constraint: Maximum 64 ASCII characters. ClientToken *string diff --git a/service/ec2/api_op_CreateNetworkInsightsPath.go b/service/ec2/api_op_CreateNetworkInsightsPath.go index 5fbc191ce08..82402c4c4e5 100644 --- a/service/ec2/api_op_CreateNetworkInsightsPath.go +++ b/service/ec2/api_op_CreateNetworkInsightsPath.go @@ -34,13 +34,13 @@ func (c *Client) CreateNetworkInsightsPath(ctx context.Context, params *CreateNe type CreateNetworkInsightsPathInput struct { // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see How to ensure idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). // // This member is required. ClientToken *string - // The AWS resource that is the destination of the path. + // The Amazon Web Services resource that is the destination of the path. // // This member is required. Destination *string @@ -50,12 +50,13 @@ type CreateNetworkInsightsPathInput struct { // This member is required. Protocol types.Protocol - // The AWS resource that is the source of the path. + // The Amazon Web Services resource that is the source of the path. // // This member is required. Source *string - // The IP address of the AWS resource that is the destination of the path. + // The IP address of the Amazon Web Services resource that is the destination of + // the path. DestinationIp *string // The destination port. @@ -67,7 +68,8 @@ type CreateNetworkInsightsPathInput struct { // UnauthorizedOperation. DryRun *bool - // The IP address of the AWS resource that is the source of the path. + // The IP address of the Amazon Web Services resource that is the source of the + // path. SourceIp *string // The tags to add to the path. diff --git a/service/ec2/api_op_CreateNetworkInterface.go b/service/ec2/api_op_CreateNetworkInterface.go index 828646a3be4..0474d93482a 100644 --- a/service/ec2/api_op_CreateNetworkInterface.go +++ b/service/ec2/api_op_CreateNetworkInterface.go @@ -65,6 +65,15 @@ type CreateNetworkInterfaceInput struct { // Amazon Elastic Compute Cloud User Guide. InterfaceType types.NetworkInterfaceCreationType + // The number of IPv4 Prefix Delegation prefixes that AWS automatically assigns to + // the network interface. You cannot use this option if you use the Ipv4 Prefixes + // option. + Ipv4PrefixCount *int32 + + // One or moreIPv4 Prefix Delegation prefixes assigned to the network interface. + // You cannot use this option if you use the Ipv4PrefixCount option. + Ipv4Prefixes []types.Ipv4PrefixSpecificationRequest + // The number of IPv6 addresses to assign to a network interface. Amazon EC2 // automatically selects the IPv6 addresses from the subnet range. You can't use // this option if specifying specific IPv6 addresses. If your subnet has the @@ -77,6 +86,15 @@ type CreateNetworkInterfaceInput struct { // addresses. Ipv6Addresses []types.InstanceIpv6Address + // The number of IPv6 Prefix Delegation prefixes that AWS automatically assigns to + // the network interface. You cannot use this option if you use the Ipv6Prefixes + // option. + Ipv6PrefixCount *int32 + + // One or moreIPv6 Prefix Delegation prefixes assigned to the network interface. + // You cannot use this option if you use the Ipv6PrefixCount option. + Ipv6Prefixes []types.Ipv6PrefixSpecificationRequest + // The primary private IPv4 address of the network interface. If you don't specify // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR // range. If you specify an IP address, you cannot indicate any IP addresses diff --git a/service/ec2/api_op_CreateNetworkInterfacePermission.go b/service/ec2/api_op_CreateNetworkInterfacePermission.go index a3e6337d23f..0b3fb26bb6e 100644 --- a/service/ec2/api_op_CreateNetworkInterfacePermission.go +++ b/service/ec2/api_op_CreateNetworkInterfacePermission.go @@ -13,7 +13,8 @@ import ( // Grants an Amazon Web Services-authorized account permission to attach the // specified network interface to an instance in their account. You can grant -// permission to a single account only, and only one account at a time. +// permission to a single Amazon Web Services account only, and only one account at +// a time. func (c *Client) CreateNetworkInterfacePermission(ctx context.Context, params *CreateNetworkInterfacePermissionInput, optFns ...func(*Options)) (*CreateNetworkInterfacePermissionOutput, error) { if params == nil { params = &CreateNetworkInterfacePermissionInput{} @@ -42,7 +43,7 @@ type CreateNetworkInterfacePermissionInput struct { // This member is required. Permission types.InterfacePermissionType - // The account ID. + // The Amazon Web Services account ID. AwsAccountId *string // The Amazon Web Service. Currently not supported. diff --git a/service/ec2/api_op_CreateReplaceRootVolumeTask.go b/service/ec2/api_op_CreateReplaceRootVolumeTask.go index 5d856b040ad..f706c6a85fd 100644 --- a/service/ec2/api_op_CreateReplaceRootVolumeTask.go +++ b/service/ec2/api_op_CreateReplaceRootVolumeTask.go @@ -15,7 +15,8 @@ import ( // Creates a root volume replacement task for an Amazon EC2 instance. The root // volume can either be restored to its initial launch state, or it can be restored // using a specific snapshot. For more information, see Replace a root volume -// (https://docs.aws.amazon.com/) in the Amazon Elastic Compute Cloud User Guide. +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-restoring-volume.html#replace-root) +// in the Amazon Elastic Compute Cloud User Guide. func (c *Client) CreateReplaceRootVolumeTask(ctx context.Context, params *CreateReplaceRootVolumeTaskInput, optFns ...func(*Options)) (*CreateReplaceRootVolumeTaskOutput, error) { if params == nil { params = &CreateReplaceRootVolumeTaskInput{} @@ -41,7 +42,7 @@ type CreateReplaceRootVolumeTaskInput struct { // Unique, case-sensitive identifier you provide to ensure the idempotency of the // request. If you do not specify a client token, a randomly generated token is // used for the request to ensure idempotency. For more information, see Ensuring - // Idempotency + // idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string diff --git a/service/ec2/api_op_CreateRoute.go b/service/ec2/api_op_CreateRoute.go index f152e60e4f3..9ade8de0418 100644 --- a/service/ec2/api_op_CreateRoute.go +++ b/service/ec2/api_op_CreateRoute.go @@ -26,7 +26,7 @@ import ( // Both routes apply to the traffic destined for 192.0.2.3. However, the // second route in the list covers a smaller number of IP addresses and is // therefore more specific, so we use that route to determine where to target the -// traffic. For more information about route tables, see Route Tables +// traffic. For more information about route tables, see Route tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) CreateRoute(ctx context.Context, params *CreateRouteInput, optFns ...func(*Options)) (*CreateRouteOutput, error) { diff --git a/service/ec2/api_op_CreateRouteTable.go b/service/ec2/api_op_CreateRouteTable.go index dd15350985f..b5439145427 100644 --- a/service/ec2/api_op_CreateRouteTable.go +++ b/service/ec2/api_op_CreateRouteTable.go @@ -13,7 +13,7 @@ import ( // Creates a route table for the specified VPC. After you create a route table, you // can add routes and associate the table with a subnet. For more information, see -// Route Tables +// Route tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) CreateRouteTable(ctx context.Context, params *CreateRouteTableInput, optFns ...func(*Options)) (*CreateRouteTableOutput, error) { diff --git a/service/ec2/api_op_CreateSnapshot.go b/service/ec2/api_op_CreateSnapshot.go index 02601937661..06b478988ac 100644 --- a/service/ec2/api_op_CreateSnapshot.go +++ b/service/ec2/api_op_CreateSnapshot.go @@ -19,23 +19,23 @@ import ( // snapshot must be stored in the same Region as the volume. If you create a // snapshot of a volume on an Outpost, the snapshot can be stored on the same // Outpost as the volume, or in the Region for that Outpost. When a snapshot is -// created, any AWS Marketplace product codes that are associated with the source -// volume are propagated to the snapshot. You can take a snapshot of an attached -// volume that is in use. However, snapshots only capture data that has been -// written to your EBS volume at the time the snapshot command is issued; this -// might exclude any data that has been cached by any applications or the operating -// system. If you can pause any file systems on the volume long enough to take a -// snapshot, your snapshot should be complete. However, if you cannot pause all -// file writes to the volume, you should unmount the volume from within the -// instance, issue the snapshot command, and then remount the volume to ensure a -// consistent and complete snapshot. You may remount and use your volume while the -// snapshot status is pending. To create a snapshot for EBS volumes that serve as -// root devices, you should stop the instance before taking the snapshot. Snapshots -// that are taken from encrypted volumes are automatically encrypted. Volumes that -// are created from encrypted snapshots are also automatically encrypted. Your -// encrypted volumes and any associated snapshots always remain protected. You can -// tag your snapshots during creation. For more information, see Tagging your -// Amazon EC2 resources +// created, any Amazon Web Services Marketplace product codes that are associated +// with the source volume are propagated to the snapshot. You can take a snapshot +// of an attached volume that is in use. However, snapshots only capture data that +// has been written to your Amazon EBS volume at the time the snapshot command is +// issued; this might exclude any data that has been cached by any applications or +// the operating system. If you can pause any file systems on the volume long +// enough to take a snapshot, your snapshot should be complete. However, if you +// cannot pause all file writes to the volume, you should unmount the volume from +// within the instance, issue the snapshot command, and then remount the volume to +// ensure a consistent and complete snapshot. You may remount and use your volume +// while the snapshot status is pending. To create a snapshot for Amazon EBS +// volumes that serve as root devices, you should stop the instance before taking +// the snapshot. Snapshots that are taken from encrypted volumes are automatically +// encrypted. Volumes that are created from encrypted snapshots are also +// automatically encrypted. Your encrypted volumes and any associated snapshots +// always remain protected. You can tag your snapshots during creation. For more +// information, see Tag your Amazon EC2 resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the // Amazon Elastic Compute Cloud User Guide. For more information, see Amazon // Elastic Block Store @@ -60,7 +60,7 @@ func (c *Client) CreateSnapshot(ctx context.Context, params *CreateSnapshotInput type CreateSnapshotInput struct { - // The ID of the EBS volume. + // The ID of the Amazon EBS volume. // // This member is required. VolumeId *string @@ -74,7 +74,7 @@ type CreateSnapshotInput struct { // UnauthorizedOperation. DryRun *bool - // The Amazon Resource Name (ARN) of the AWS Outpost on which to create a local + // The Amazon Resource Name (ARN) of the Outpost on which to create a local // snapshot. // // * To create a snapshot of a volume in a Region, omit this parameter. @@ -89,7 +89,7 @@ type CreateSnapshotInput struct { // Outpost, specify the ARN of the destination Outpost. The snapshot must be // created on the same Outpost as the volume. // - // For more information, see Creating + // For more information, see Create // local snapshots from volumes on an Outpost // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#create-snapshot) // in the Amazon Elastic Compute Cloud User Guide. @@ -118,22 +118,22 @@ type CreateSnapshotOutput struct { // Indicates whether the snapshot is encrypted. Encrypted *bool - // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) - // customer master key (CMK) that was used to protect the volume encryption key for - // the parent volume. + // The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that + // was used to protect the volume encryption key for the parent volume. KmsKeyId *string - // The ARN of the AWS Outpost on which the snapshot is stored. For more - // information, see EBS Local Snapshot on Outposts + // The ARN of the Outpost on which the snapshot is stored. For more information, + // see Amazon EBS local snapshots on Outposts // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html) in // the Amazon Elastic Compute Cloud User Guide. OutpostArn *string - // The AWS owner alias, from an Amazon-maintained list (amazon). This is not the - // user-configured AWS account alias set using the IAM console. + // The Amazon Web Services owner alias, from an Amazon-maintained list (amazon). + // This is not the user-configured Amazon Web Services account alias set using the + // IAM console. OwnerAlias *string - // The AWS account ID of the EBS snapshot owner. + // The ID of the Amazon Web Services account that owns the EBS snapshot. OwnerId *string // The progress of the snapshot, as a percentage. @@ -150,7 +150,7 @@ type CreateSnapshotOutput struct { State types.SnapshotState // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy - // operation fails (for example, if the proper AWS Key Management Service (AWS KMS) + // operation fails (for example, if the proper Key Management Service (KMS) // permissions are not obtained) this field displays error state details to help // you diagnose why the error occurred. This parameter is only returned by // DescribeSnapshots. diff --git a/service/ec2/api_op_CreateSnapshots.go b/service/ec2/api_op_CreateSnapshots.go index 49f83686b9e..0f349502617 100644 --- a/service/ec2/api_op_CreateSnapshots.go +++ b/service/ec2/api_op_CreateSnapshots.go @@ -54,7 +54,7 @@ type CreateSnapshotsInput struct { // UnauthorizedOperation. DryRun *bool - // The Amazon Resource Name (ARN) of the AWS Outpost on which to create the local + // The Amazon Resource Name (ARN) of the Outpost on which to create the local // snapshots. // // * To create snapshots from an instance in a Region, omit this @@ -70,7 +70,7 @@ type CreateSnapshotsInput struct { // snapshots must be created on the same Outpost as the instance. // // For more - // information, see Creating multi-volume local snapshots from instances on an + // information, see Create multi-volume local snapshots from instances on an // Outpost // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#create-multivol-snapshot) // in the Amazon Elastic Compute Cloud User Guide. diff --git a/service/ec2/api_op_CreateSpotDatafeedSubscription.go b/service/ec2/api_op_CreateSpotDatafeedSubscription.go index 33c393d9182..343a6eabb7c 100644 --- a/service/ec2/api_op_CreateSpotDatafeedSubscription.go +++ b/service/ec2/api_op_CreateSpotDatafeedSubscription.go @@ -12,8 +12,8 @@ import ( ) // Creates a data feed for Spot Instances, enabling you to view Spot Instance usage -// logs. You can create one data feed per account. For more information, see Spot -// Instance data feed +// logs. You can create one data feed per Amazon Web Services account. For more +// information, see Spot Instance data feed // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) in // the Amazon EC2 User Guide for Linux Instances. func (c *Client) CreateSpotDatafeedSubscription(ctx context.Context, params *CreateSpotDatafeedSubscriptionInput, optFns ...func(*Options)) (*CreateSpotDatafeedSubscriptionOutput, error) { diff --git a/service/ec2/api_op_CreateSubnet.go b/service/ec2/api_op_CreateSubnet.go index 64cbfc3f594..6829fdd3ca0 100644 --- a/service/ec2/api_op_CreateSubnet.go +++ b/service/ec2/api_op_CreateSubnet.go @@ -16,14 +16,14 @@ import ( // block size is between a /16 netmask (65,536 IP addresses) and /28 netmask (16 IP // addresses). The CIDR block must not overlap with the CIDR block of an existing // subnet in the VPC. If you've associated an IPv6 CIDR block with your VPC, you -// can create a subnet with an IPv6 CIDR block that uses a /64 prefix length. AWS -// reserves both the first four and the last IPv4 address in each subnet's CIDR -// block. They're not available for use. If you add more than one subnet to a VPC, -// they're set up in a star topology with a logical router in the middle. When you -// stop an instance in a subnet, it retains its private IPv4 address. It's -// therefore possible to have a subnet with no running instances (they're all -// stopped), but no remaining IP addresses available. For more information about -// subnets, see Your VPC and Subnets +// can create a subnet with an IPv6 CIDR block that uses a /64 prefix length. +// Amazon Web Services reserves both the first four and the last IPv4 address in +// each subnet's CIDR block. They're not available for use. If you add more than +// one subnet to a VPC, they're set up in a star topology with a logical router in +// the middle. When you stop an instance in a subnet, it retains its private IPv4 +// address. It's therefore possible to have a subnet with no running instances +// (they're all stopped), but no remaining IP addresses available. For more +// information about subnets, see Your VPC and subnets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) CreateSubnet(ctx context.Context, params *CreateSubnetInput, optFns ...func(*Options)) (*CreateSubnetOutput, error) { @@ -55,11 +55,12 @@ type CreateSubnetInput struct { // This member is required. VpcId *string - // The Availability Zone or Local Zone for the subnet. Default: AWS selects one for - // you. If you create more than one subnet in your VPC, we do not necessarily - // select a different zone for each subnet. To create a subnet in a Local Zone, set - // this value to the Local Zone ID, for example us-west-2-lax-1a. For information - // about the Regions that support Local Zones, see Available Regions + // The Availability Zone or Local Zone for the subnet. Default: Amazon Web Services + // selects one for you. If you create more than one subnet in your VPC, we do not + // necessarily select a different zone for each subnet. To create a subnet in a + // Local Zone, set this value to the Local Zone ID, for example us-west-2-lax-1a. + // For information about the Regions that support Local Zones, see Available + // Regions // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions) // in the Amazon Elastic Compute Cloud User Guide. To create a subnet in an // Outpost, set this value to the Availability Zone for the Outpost and specify the diff --git a/service/ec2/api_op_CreateSubnetCidrReservation.go b/service/ec2/api_op_CreateSubnetCidrReservation.go new file mode 100644 index 00000000000..6f44675010c --- /dev/null +++ b/service/ec2/api_op_CreateSubnetCidrReservation.go @@ -0,0 +1,156 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a subnet CIDR reservation. For information about subnet CIDR +// reservations, see Subnet CIDR reservations +// (https://docs.aws.amazon.com/vpc/latest/userguide/subnet-cidr-reservation.html) +// in the Amazon Virtual Private Cloud User Guide. +func (c *Client) CreateSubnetCidrReservation(ctx context.Context, params *CreateSubnetCidrReservationInput, optFns ...func(*Options)) (*CreateSubnetCidrReservationOutput, error) { + if params == nil { + params = &CreateSubnetCidrReservationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateSubnetCidrReservation", params, optFns, c.addOperationCreateSubnetCidrReservationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateSubnetCidrReservationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateSubnetCidrReservationInput struct { + + // The IPv4 or IPV6 CIDR range to reserve. + // + // This member is required. + Cidr *string + + // The type of reservation. The following are valid values: + // + // * prefix: The Amazon + // EC2 Prefix Delegation feature assigns the IP addresses to network interfaces + // that are associated with an instance. For information about Prefix Delegation, + // see Prefix Delegation for Amazon EC2 network interfaces + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation.html) + // in the Amazon Elastic Compute Cloud User Guide. + // + // * explicit: You manually assign + // the IP addresses to resources that reside in your subnet. + // + // This member is required. + ReservationType types.SubnetCidrReservationType + + // The ID of the subnet. + // + // This member is required. + SubnetId *string + + // The description to assign to the subnet CIDR reservation. + Description *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The tags to assign to the subnet CIDR reservation. + TagSpecifications []types.TagSpecification + + noSmithyDocumentSerde +} + +type CreateSubnetCidrReservationOutput struct { + + // Information about the created subnet CIDR reservation. + SubnetCidrReservation *types.SubnetCidrReservation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateSubnetCidrReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSubnetCidrReservation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateSubnetCidrReservation{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateSubnetCidrReservationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSubnetCidrReservation(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateSubnetCidrReservation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreateSubnetCidrReservation", + } +} diff --git a/service/ec2/api_op_CreateVolume.go b/service/ec2/api_op_CreateVolume.go index 3bd3290a01f..4fc5110beb6 100644 --- a/service/ec2/api_op_CreateVolume.go +++ b/service/ec2/api_op_CreateVolume.go @@ -4,6 +4,7 @@ package ec2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" @@ -14,16 +15,16 @@ import ( // Creates an EBS volume that can be attached to an instance in the same // Availability Zone. You can create a new empty volume or restore a volume from an -// EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated -// to the volume. You can create encrypted volumes. Encrypted volumes must be -// attached to instances that support Amazon EBS encryption. Volumes that are -// created from encrypted snapshots are also automatically encrypted. For more -// information, see Amazon EBS encryption +// EBS snapshot. Any Amazon Web Services Marketplace product codes from the +// snapshot are propagated to the volume. You can create encrypted volumes. +// Encrypted volumes must be attached to instances that support Amazon EBS +// encryption. Volumes that are created from encrypted snapshots are also +// automatically encrypted. For more information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. You can tag your volumes during -// creation. For more information, see Tagging your Amazon EC2 resources +// creation. For more information, see Tag your Amazon EC2 resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the -// Amazon Elastic Compute Cloud User Guide. For more information, see Creating an +// Amazon Elastic Compute Cloud User Guide. For more information, see Create an // Amazon EBS volume // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -49,6 +50,11 @@ type CreateVolumeInput struct { // This member is required. AvailabilityZone *string + // Unique, case-sensitive identifier that you provide to ensure the idempotency of + // the request. For more information, see Ensure Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string + // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is @@ -79,21 +85,21 @@ type CreateVolumeInput struct { // // * io2: 100-64,000 IOPS // - // For io1 and io2 volumes, we guarantee - // 64,000 IOPS only for Instances built on the Nitro System + // io1 and io2 volumes support up to + // 64,000 IOPS only on Instances built on the Nitro System // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). - // Other instance families guarantee performance up to 32,000 IOPS. This parameter - // is required for io1 and io2 volumes. The default for gp3 volumes is 3,000 IOPS. + // Other instance families support performance up to 32,000 IOPS. This parameter is + // required for io1 and io2 volumes. The default for gp3 volumes is 3,000 IOPS. // This parameter is not supported for gp2, st1, sc1, or standard volumes. Iops *int32 - // The identifier of the AWS Key Management Service (AWS KMS) customer master key - // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your - // AWS managed CMK for EBS is used. If KmsKeyId is specified, the encrypted state - // must be true. You can specify the CMK using any of the following: + // The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS + // encryption. If this parameter is not specified, your KMS key for Amazon EBS is + // used. If KmsKeyId is specified, the encrypted state must be true. You can + // specify the KMS key using any of the following: // - // * Key ID. For - // example, 1234abcd-12ab-34cd-56ef-1234567890ab. + // * Key ID. For example, + // 1234abcd-12ab-34cd-56ef-1234567890ab. // // * Key alias. For example, // alias/ExampleAlias. @@ -105,9 +111,10 @@ type CreateVolumeInput struct { // Alias ARN. For example, // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // - // AWS authenticates the - // CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not - // valid, the action can appear to complete, but eventually fails. + // Amazon Web Services + // authenticates the KMS key asynchronously. Therefore, if you specify an ID, + // alias, or ARN that is not valid, the action can appear to complete, but + // eventually fails. KmsKeyId *string // Indicates whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, @@ -197,9 +204,8 @@ type CreateVolumeOutput struct { // which the volume accumulates I/O credits for bursting. Iops *int32 - // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) - // customer master key (CMK) that was used to protect the volume encryption key for - // the volume. + // The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that + // was used to protect the volume encryption key for the volume. KmsKeyId *string // Indicates whether Amazon EBS Multi-Attach is enabled. @@ -280,6 +286,9 @@ func (c *Client) addOperationCreateVolumeMiddlewares(stack *middleware.Stack, op if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addIdempotencyToken_opCreateVolumeMiddleware(stack, options); err != nil { + return err + } if err = addOpCreateVolumeValidationMiddleware(stack); err != nil { return err } @@ -298,6 +307,39 @@ func (c *Client) addOperationCreateVolumeMiddlewares(stack *middleware.Stack, op return nil } +type idempotencyToken_initializeOpCreateVolume struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateVolume) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateVolume) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateVolumeInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateVolumeInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateVolumeMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateVolume{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + func newServiceMetadataMiddleware_opCreateVolume(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/ec2/api_op_CreateVpc.go b/service/ec2/api_op_CreateVpc.go index 639abf0350f..9335754fba4 100644 --- a/service/ec2/api_op_CreateVpc.go +++ b/service/ec2/api_op_CreateVpc.go @@ -14,7 +14,7 @@ import ( // Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can // create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 // netmask (65,536 IPv4 addresses). For more information about how large to make -// your VPC, see Your VPC and Subnets +// your VPC, see Your VPC and subnets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the // Amazon Virtual Private Cloud User Guide. You can optionally request an IPv6 CIDR // block for the VPC. You can request an Amazon-provided IPv6 CIDR block from @@ -23,7 +23,7 @@ import ( // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html)). By // default, each instance you launch in the VPC has the default DHCP options, which // include only a default DNS server that we provide (AmazonProvidedDNS). For more -// information, see DHCP Options Sets +// information, see DHCP options sets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the // Amazon Virtual Private Cloud User Guide. You can specify the instance tenancy // value for the VPC when you create it. You can't change this value for the VPC diff --git a/service/ec2/api_op_CreateVpcPeeringConnection.go b/service/ec2/api_op_CreateVpcPeeringConnection.go index c8155967f32..fb38cdf7e82 100644 --- a/service/ec2/api_op_CreateVpcPeeringConnection.go +++ b/service/ec2/api_op_CreateVpcPeeringConnection.go @@ -13,10 +13,10 @@ import ( // Requests a VPC peering connection between two VPCs: a requester VPC that you own // and an accepter VPC with which to create the connection. The accepter VPC can -// belong to another AWS account and can be in a different Region to the requester -// VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks. -// Limitations and rules apply to a VPC peering connection. For more information, -// see the limitations +// belong to another Amazon Web Services account and can be in a different Region +// to the requester VPC. The requester VPC and accepter VPC cannot have overlapping +// CIDR blocks. Limitations and rules apply to a VPC peering connection. For more +// information, see the limitations // (https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-basics.html#vpc-peering-limitations) // section in the VPC Peering Guide. The owner of the accepter VPC must accept the // peering request to activate the peering connection. The VPC peering connection @@ -46,8 +46,8 @@ type CreateVpcPeeringConnectionInput struct { // UnauthorizedOperation. DryRun *bool - // The AWS account ID of the owner of the accepter VPC. Default: Your AWS account - // ID + // The Amazon Web Services account ID of the owner of the accepter VPC. Default: + // Your Amazon Web Services account ID PeerOwnerId *string // The Region code for the accepter VPC, if the accepter VPC is located in a Region diff --git a/service/ec2/api_op_DeleteInstanceEventWindow.go b/service/ec2/api_op_DeleteInstanceEventWindow.go new file mode 100644 index 00000000000..a4fc2aa9782 --- /dev/null +++ b/service/ec2/api_op_DeleteInstanceEventWindow.go @@ -0,0 +1,134 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the specified event window. For more information, see Define event +// windows for scheduled events +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the +// Amazon EC2 User Guide. +func (c *Client) DeleteInstanceEventWindow(ctx context.Context, params *DeleteInstanceEventWindowInput, optFns ...func(*Options)) (*DeleteInstanceEventWindowOutput, error) { + if params == nil { + params = &DeleteInstanceEventWindowInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteInstanceEventWindow", params, optFns, c.addOperationDeleteInstanceEventWindowMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteInstanceEventWindowOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteInstanceEventWindowInput struct { + + // The ID of the event window. + // + // This member is required. + InstanceEventWindowId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // Specify true to force delete the event window. Use the force delete parameter if + // the event window is currently associated with targets. + ForceDelete *bool + + noSmithyDocumentSerde +} + +type DeleteInstanceEventWindowOutput struct { + + // The state of the event window. + InstanceEventWindowState *types.InstanceEventWindowStateChange + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteInstanceEventWindowValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteInstanceEventWindow(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeleteInstanceEventWindow", + } +} diff --git a/service/ec2/api_op_DeleteSnapshot.go b/service/ec2/api_op_DeleteSnapshot.go index 1939ec89fef..111ce40b217 100644 --- a/service/ec2/api_op_DeleteSnapshot.go +++ b/service/ec2/api_op_DeleteSnapshot.go @@ -18,7 +18,7 @@ import ( // have access to all the information needed to restore the volume. You cannot // delete a snapshot of the root device of an EBS volume used by a registered AMI. // You must first de-register the AMI before you can delete the snapshot. For more -// information, see Deleting an Amazon EBS snapshot +// information, see Delete an Amazon EBS snapshot // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) DeleteSnapshot(ctx context.Context, params *DeleteSnapshotInput, optFns ...func(*Options)) (*DeleteSnapshotOutput, error) { diff --git a/service/ec2/api_op_DeleteSubnetCidrReservation.go b/service/ec2/api_op_DeleteSubnetCidrReservation.go new file mode 100644 index 00000000000..4b964f2b0a3 --- /dev/null +++ b/service/ec2/api_op_DeleteSubnetCidrReservation.go @@ -0,0 +1,127 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a subnet CIDR reservation. +func (c *Client) DeleteSubnetCidrReservation(ctx context.Context, params *DeleteSubnetCidrReservationInput, optFns ...func(*Options)) (*DeleteSubnetCidrReservationOutput, error) { + if params == nil { + params = &DeleteSubnetCidrReservationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteSubnetCidrReservation", params, optFns, c.addOperationDeleteSubnetCidrReservationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteSubnetCidrReservationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteSubnetCidrReservationInput struct { + + // The ID of the subnet CIDR reservation. + // + // This member is required. + SubnetCidrReservationId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DeleteSubnetCidrReservationOutput struct { + + // Information about the deleted subnet CIDR reservation. + DeletedSubnetCidrReservation *types.SubnetCidrReservation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteSubnetCidrReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSubnetCidrReservation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteSubnetCidrReservation{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteSubnetCidrReservationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSubnetCidrReservation(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteSubnetCidrReservation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeleteSubnetCidrReservation", + } +} diff --git a/service/ec2/api_op_DeleteTags.go b/service/ec2/api_op_DeleteTags.go index 0d7a96264fa..e087038e6a2 100644 --- a/service/ec2/api_op_DeleteTags.go +++ b/service/ec2/api_op_DeleteTags.go @@ -50,7 +50,8 @@ type DeleteTagsInput struct { // with this key regardless of its value. If you specify a tag key with an empty // string as the tag value, we delete the tag only if its value is an empty string. // If you omit this parameter, we delete all user-defined tags for the specified - // resources. We do not delete AWS-generated tags (tags that have the aws: prefix). + // resources. We do not delete Amazon Web Services-generated tags (tags that have + // the aws: prefix). Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ec2/api_op_DeleteVolume.go b/service/ec2/api_op_DeleteVolume.go index a66dbb4be7f..9c132308aae 100644 --- a/service/ec2/api_op_DeleteVolume.go +++ b/service/ec2/api_op_DeleteVolume.go @@ -12,7 +12,7 @@ import ( // Deletes the specified EBS volume. The volume must be in the available state (not // attached to an instance). The volume can remain in the deleting state for -// several minutes. For more information, see Deleting an Amazon EBS volume +// several minutes. For more information, see Delete an Amazon EBS volume // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) DeleteVolume(ctx context.Context, params *DeleteVolumeInput, optFns ...func(*Options)) (*DeleteVolumeOutput, error) { diff --git a/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go b/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go index 94b4a0fef49..7eb386691ec 100644 --- a/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go +++ b/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deregisters tag keys to prevent tags that have the specified tag keys from being -// included in scheduled event notifications for resources in the Region. +// c Deregisters tag keys to prevent tags that have the specified tag keys from +// being included in scheduled event notifications for resources in the Region. func (c *Client) DeregisterInstanceEventNotificationAttributes(ctx context.Context, params *DeregisterInstanceEventNotificationAttributesInput, optFns ...func(*Options)) (*DeregisterInstanceEventNotificationAttributesOutput, error) { if params == nil { params = &DeregisterInstanceEventNotificationAttributesInput{} diff --git a/service/ec2/api_op_DescribeAddresses.go b/service/ec2/api_op_DescribeAddresses.go index a273a323e6f..9b39fe99b51 100644 --- a/service/ec2/api_op_DescribeAddresses.go +++ b/service/ec2/api_op_DescribeAddresses.go @@ -64,24 +64,24 @@ type DescribeAddressesInput struct { // network-interface-id - [EC2-VPC] The ID of the network interface that the // address is associated with, if any. // - // * network-interface-owner-id - The account - // ID of the owner. + // * network-interface-owner-id - The Amazon + // Web Services account ID of the owner. // - // * private-ip-address - [EC2-VPC] The private IP address - // associated with the Elastic IP address. + // * private-ip-address - [EC2-VPC] The + // private IP address associated with the Elastic IP address. // - // * public-ip - The Elastic IP address, - // or the carrier IP address. + // * public-ip - The + // Elastic IP address, or the carrier IP address. // - // * tag: - The key/value combination of a tag assigned - // to the resource. Use the tag key in the filter name and the tag value as the - // filter value. For example, to find all resources that have a tag with the key - // Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for - // the filter value. + // * tag: - The key/value + // combination of a tag assigned to the resource. Use the tag key in the filter + // name and the tag value as the filter value. For example, to find all resources + // that have a tag with the key Owner and the value TeamA, specify tag:Owner for + // the filter name and TeamA for the filter value. // - // * tag-key - The key of a tag assigned to the resource. Use - // this filter to find all resources assigned a tag with a specific key, regardless - // of the tag value. + // * tag-key - The key of a tag + // assigned to the resource. Use this filter to find all resources assigned a tag + // with a specific key, regardless of the tag value. Filters []types.Filter // One or more Elastic IP addresses. Default: Describes all your Elastic IP diff --git a/service/ec2/api_op_DescribeCapacityReservations.go b/service/ec2/api_op_DescribeCapacityReservations.go index 0b0a07903ab..8dd2b494cc7 100644 --- a/service/ec2/api_op_DescribeCapacityReservations.go +++ b/service/ec2/api_op_DescribeCapacityReservations.go @@ -13,7 +13,8 @@ import ( ) // Describes one or more of your Capacity Reservations. The results describe only -// the Capacity Reservations in the Region that you're currently using. +// the Capacity Reservations in the Amazon Web Services Region that you're +// currently using. func (c *Client) DescribeCapacityReservations(ctx context.Context, params *DescribeCapacityReservationsInput, optFns ...func(*Options)) (*DescribeCapacityReservationsOutput, error) { if params == nil { params = &DescribeCapacityReservationsInput{} @@ -45,87 +46,88 @@ type DescribeCapacityReservationsInput struct { // * instance-type - The type of instance for which the // Capacity Reservation reserves capacity. // - // * owner-id - The ID of the account that - // owns the Capacity Reservation. + // * owner-id - The ID of the Amazon Web + // Services account that owns the Capacity Reservation. // - // * availability-zone-id - The Availability Zone - // ID of the Capacity Reservation. + // * availability-zone-id - + // The Availability Zone ID of the Capacity Reservation. // - // * instance-platform - The type of operating - // system for which the Capacity Reservation reserves capacity. + // * instance-platform - The + // type of operating system for which the Capacity Reservation reserves + // capacity. // - // * - // availability-zone - The Availability Zone ID of the Capacity Reservation. - // - // * - // tenancy - Indicates the tenancy of the Capacity Reservation. A Capacity - // Reservation can have one of the following tenancy settings: + // * availability-zone - The Availability Zone ID of the Capacity + // Reservation. // - // * default - The - // Capacity Reservation is created on hardware that is shared with other - // accounts. + // * tenancy - Indicates the tenancy of the Capacity Reservation. A + // Capacity Reservation can have one of the following tenancy settings: // - // * dedicated - The Capacity Reservation is created on single-tenant - // hardware that is dedicated to a single account. + // * default + // - The Capacity Reservation is created on hardware that is shared with other + // Amazon Web Services accounts. // - // * outpost-arn - The Amazon - // Resource Name (ARN) of the Outpost on which the Capacity Reservation was - // created. + // * dedicated - The Capacity Reservation is created + // on single-tenant hardware that is dedicated to a single Amazon Web Services + // account. // - // * state - The current state of the Capacity Reservation. A Capacity - // Reservation can be in one of the following states: + // * outpost-arn - The Amazon Resource Name (ARN) of the Outpost on which + // the Capacity Reservation was created. // - // * active- The Capacity - // Reservation is active and the capacity is available for your use. + // * state - The current state of the + // Capacity Reservation. A Capacity Reservation can be in one of the following + // states: // - // * expired - - // The Capacity Reservation expired automatically at the date and time specified in - // your request. The reserved capacity is no longer available for your use. + // * active- The Capacity Reservation is active and the capacity is + // available for your use. // - // * - // cancelled - The Capacity Reservation was cancelled. The reserved capacity is no - // longer available for your use. + // * expired - The Capacity Reservation expired + // automatically at the date and time specified in your request. The reserved + // capacity is no longer available for your use. // - // * pending - The Capacity Reservation request was - // successful but the capacity provisioning is still pending. + // * cancelled - The Capacity + // Reservation was cancelled. The reserved capacity is no longer available for your + // use. // - // * failed - The - // Capacity Reservation request has failed. A request might fail due to invalid - // request parameters, capacity constraints, or instance limit constraints. Failed - // requests are retained for 60 minutes. + // * pending - The Capacity Reservation request was successful but the + // capacity provisioning is still pending. // - // * start-date - The date and time at which - // the Capacity Reservation was started. + // * failed - The Capacity Reservation + // request has failed. A request might fail due to invalid request parameters, + // capacity constraints, or instance limit constraints. Failed requests are + // retained for 60 minutes. // - // * end-date - The date and time at which - // the Capacity Reservation expires. When a Capacity Reservation expires, the - // reserved capacity is released and you can no longer launch instances into it. - // The Capacity Reservation's state changes to expired when it reaches its end date - // and time. + // * start-date - The date and time at which the Capacity + // Reservation was started. // - // * end-date-type - Indicates the way in which the Capacity Reservation - // ends. A Capacity Reservation can have one of the following end types: + // * end-date - The date and time at which the Capacity + // Reservation expires. When a Capacity Reservation expires, the reserved capacity + // is released and you can no longer launch instances into it. The Capacity + // Reservation's state changes to expired when it reaches its end date and time. // // * - // unlimited - The Capacity Reservation remains active until you explicitly cancel - // it. + // end-date-type - Indicates the way in which the Capacity Reservation ends. A + // Capacity Reservation can have one of the following end types: + // + // * unlimited - The + // Capacity Reservation remains active until you explicitly cancel it. // - // * limited - The Capacity Reservation expires automatically at a specified - // date and time. + // * limited - + // The Capacity Reservation expires automatically at a specified date and time. // - // * instance-match-criteria - Indicates the type of instance - // launches that the Capacity Reservation accepts. The options include: + // * + // instance-match-criteria - Indicates the type of instance launches that the + // Capacity Reservation accepts. The options include: // - // * open - - // The Capacity Reservation accepts all instances that have matching attributes - // (instance type, platform, and Availability Zone). Instances that have matching - // attributes launch into the Capacity Reservation automatically without specifying - // any additional parameters. + // * open - The Capacity + // Reservation accepts all instances that have matching attributes (instance type, + // platform, and Availability Zone). Instances that have matching attributes launch + // into the Capacity Reservation automatically without specifying any additional + // parameters. // - // * targeted - The Capacity Reservation only accepts - // instances that have matching attributes (instance type, platform, and - // Availability Zone), and explicitly target the Capacity Reservation. This ensures - // that only permitted instances can use the reserved capacity. + // * targeted - The Capacity Reservation only accepts instances that + // have matching attributes (instance type, platform, and Availability Zone), and + // explicitly target the Capacity Reservation. This ensures that only permitted + // instances can use the reserved capacity. Filters []types.Filter // The maximum number of results to return for the request in a single page. The diff --git a/service/ec2/api_op_DescribeCarrierGateways.go b/service/ec2/api_op_DescribeCarrierGateways.go index a934ee7848d..f59dba19c98 100644 --- a/service/ec2/api_op_DescribeCarrierGateways.go +++ b/service/ec2/api_op_DescribeCarrierGateways.go @@ -47,20 +47,21 @@ type DescribeCarrierGatewaysInput struct { // state - The state of the carrier gateway (pending | failed | available | // deleting | deleted). // - // * owner-id - The AWS account ID of the owner of the - // carrier gateway. + // * owner-id - The Amazon Web Services account ID of the + // owner of the carrier gateway. // - // * tag: - The key/value combination of a tag assigned to the - // resource. Use the tag key in the filter name and the tag value as the filter - // value. For example, to find all resources that have a tag with the key Owner and - // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter - // value. + // * tag: - The key/value combination of a tag + // assigned to the resource. Use the tag key in the filter name and the tag value + // as the filter value. For example, to find all resources that have a tag with the + // key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA + // for the filter value. // - // * tag-key - The key of a tag assigned to the resource. Use this filter - // to find all resources assigned a tag with a specific key, regardless of the tag - // value. + // * tag-key - The key of a tag assigned to the resource. + // Use this filter to find all resources assigned a tag with a specific key, + // regardless of the tag value. // - // * vpc-id - The ID of the VPC associated with the carrier gateway. + // * vpc-id - The ID of the VPC associated with the + // carrier gateway. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeDhcpOptions.go b/service/ec2/api_op_DescribeDhcpOptions.go index 544323a1670..76414644524 100644 --- a/service/ec2/api_op_DescribeDhcpOptions.go +++ b/service/ec2/api_op_DescribeDhcpOptions.go @@ -13,7 +13,7 @@ import ( ) // Describes one or more of your DHCP options sets. For more information, see DHCP -// Options Sets +// options sets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) DescribeDhcpOptions(ctx context.Context, params *DescribeDhcpOptionsInput, optFns ...func(*Options)) (*DescribeDhcpOptionsOutput, error) { @@ -53,18 +53,18 @@ type DescribeDhcpOptionsInput struct { // * value - The value // for one of the options. // - // * owner-id - The ID of the AWS account that owns the - // DHCP options set. + // * owner-id - The ID of the Amazon Web Services account + // that owns the DHCP options set. // - // * tag: - The key/value combination of a tag assigned to the - // resource. Use the tag key in the filter name and the tag value as the filter - // value. For example, to find all resources that have a tag with the key Owner and - // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter - // value. + // * tag: - The key/value combination of a tag + // assigned to the resource. Use the tag key in the filter name and the tag value + // as the filter value. For example, to find all resources that have a tag with the + // key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA + // for the filter value. // - // * tag-key - The key of a tag assigned to the resource. Use this filter - // to find all resources assigned a tag with a specific key, regardless of the tag - // value. + // * tag-key - The key of a tag assigned to the resource. + // Use this filter to find all resources assigned a tag with a specific key, + // regardless of the tag value. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeFastSnapshotRestores.go b/service/ec2/api_op_DescribeFastSnapshotRestores.go index 8bac217f900..1355444a565 100644 --- a/service/ec2/api_op_DescribeFastSnapshotRestores.go +++ b/service/ec2/api_op_DescribeFastSnapshotRestores.go @@ -41,14 +41,14 @@ type DescribeFastSnapshotRestoresInput struct { // * availability-zone: The Availability // Zone of the snapshot. // - // * owner-id: The ID of the AWS account that enabled fast - // snapshot restore on the snapshot. + // * owner-id: The ID of the Amazon Web Services account + // that enabled fast snapshot restore on the snapshot. // - // * snapshot-id: The ID of the snapshot. + // * snapshot-id: The ID of + // the snapshot. // - // * - // state: The state of fast snapshot restores for the snapshot (enabling | - // optimizing | enabled | disabling | disabled). + // * state: The state of fast snapshot restores for the snapshot + // (enabling | optimizing | enabled | disabling | disabled). Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeInstanceEventWindows.go b/service/ec2/api_op_DescribeInstanceEventWindows.go new file mode 100644 index 00000000000..47b1318932f --- /dev/null +++ b/service/ec2/api_op_DescribeInstanceEventWindows.go @@ -0,0 +1,274 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the specified event windows or all event windows. If you specify event +// window IDs, the output includes information for only the specified event +// windows. If you specify filters, the output includes information for only those +// event windows that meet the filter criteria. If you do not specify event windows +// IDs or filters, the output includes information for all event windows, which can +// affect performance. We recommend that you use pagination to ensure that the +// operation returns quickly and successfully. For more information, see Define +// event windows for scheduled events +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the +// Amazon EC2 User Guide. +func (c *Client) DescribeInstanceEventWindows(ctx context.Context, params *DescribeInstanceEventWindowsInput, optFns ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error) { + if params == nil { + params = &DescribeInstanceEventWindowsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceEventWindows", params, optFns, c.addOperationDescribeInstanceEventWindowsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeInstanceEventWindowsOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Describe instance event windows by InstanceEventWindow. +type DescribeInstanceEventWindowsInput struct { + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // One or more filters. + // + // * dedicated-host-id - The event windows associated with + // the specified Dedicated Host ID. + // + // * event-window-name - The event windows + // associated with the specified names. + // + // * instance-id - The event windows + // associated with the specified instance ID. + // + // * instance-tag - The event windows + // associated with the specified tag and value. + // + // * instance-tag-key - The event + // windows associated with the specified tag key, regardless of the value. + // + // * + // instance-tag-value - The event windows associated with the specified tag value, + // regardless of the key. + // + // * tag: - The key/value combination of a tag assigned to + // the event window. Use the tag key in the filter name and the tag value as the + // filter value. For example, to find all resources that have a tag with the key + // Owner and the value CMX, specify tag:Owner for the filter name and CMX for the + // filter value. + // + // * tag-key - The key of a tag assigned to the event window. Use + // this filter to find all event windows that have a tag with a specific key, + // regardless of the tag value. + // + // * tag-value - The value of a tag assigned to the + // event window. Use this filter to find all event windows that have a tag with a + // specific value, regardless of the tag key. + Filters []types.Filter + + // The IDs of the event windows. + InstanceEventWindowIds []string + + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned NextToken value. This + // value can be between 20 and 500. You cannot specify this parameter and the event + // window IDs parameter in the same call. + MaxResults *int32 + + // The token to request the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeInstanceEventWindowsOutput struct { + + // Information about the event windows. + InstanceEventWindows []types.InstanceEventWindow + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeInstanceEventWindowsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceEventWindows{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceEventWindows{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceEventWindows(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// DescribeInstanceEventWindowsAPIClient is a client that implements the +// DescribeInstanceEventWindows operation. +type DescribeInstanceEventWindowsAPIClient interface { + DescribeInstanceEventWindows(context.Context, *DescribeInstanceEventWindowsInput, ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error) +} + +var _ DescribeInstanceEventWindowsAPIClient = (*Client)(nil) + +// DescribeInstanceEventWindowsPaginatorOptions is the paginator options for +// DescribeInstanceEventWindows +type DescribeInstanceEventWindowsPaginatorOptions struct { + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned NextToken value. This + // value can be between 20 and 500. You cannot specify this parameter and the event + // window IDs parameter in the same call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// DescribeInstanceEventWindowsPaginator is a paginator for +// DescribeInstanceEventWindows +type DescribeInstanceEventWindowsPaginator struct { + options DescribeInstanceEventWindowsPaginatorOptions + client DescribeInstanceEventWindowsAPIClient + params *DescribeInstanceEventWindowsInput + nextToken *string + firstPage bool +} + +// NewDescribeInstanceEventWindowsPaginator returns a new +// DescribeInstanceEventWindowsPaginator +func NewDescribeInstanceEventWindowsPaginator(client DescribeInstanceEventWindowsAPIClient, params *DescribeInstanceEventWindowsInput, optFns ...func(*DescribeInstanceEventWindowsPaginatorOptions)) *DescribeInstanceEventWindowsPaginator { + if params == nil { + params = &DescribeInstanceEventWindowsInput{} + } + + options := DescribeInstanceEventWindowsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeInstanceEventWindowsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeInstanceEventWindowsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeInstanceEventWindows page. +func (p *DescribeInstanceEventWindowsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.DescribeInstanceEventWindows(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opDescribeInstanceEventWindows(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DescribeInstanceEventWindows", + } +} diff --git a/service/ec2/api_op_DescribeInstances.go b/service/ec2/api_op_DescribeInstances.go index a1610832618..0f629f83ddc 100644 --- a/service/ec2/api_op_DescribeInstances.go +++ b/service/ec2/api_op_DescribeInstances.go @@ -278,61 +278,62 @@ type DescribeInstancesInput struct { // * outpost-arn - The Amazon Resource Name (ARN) of the Outpost. // // * - // owner-id - The account ID of the instance owner. + // owner-id - The Amazon Web Services account ID of the instance owner. // - // * placement-group-name - The - // name of the placement group for the instance. - // - // * placement-partition-number - - // The partition in which the instance is located. - // - // * platform - The platform. To - // list only Windows instances, use windows. - // - // * private-dns-name - The private IPv4 - // DNS name of the instance. - // - // * private-ip-address - The private IPv4 address of - // the instance. - // - // * product-code - The product code associated with the AMI used to - // launch the instance. + // * + // placement-group-name - The name of the placement group for the instance. // - // * product-code.type - The type of product code (devpay | - // marketplace). + // * + // placement-partition-number - The partition in which the instance is located. // - // * ramdisk-id - The RAM disk ID. + // * + // platform - The platform. To list only Windows instances, use windows. // - // * reason - The reason for the - // current state of the instance (for example, shows "User Initiated [date]" when - // you stop or terminate the instance). Similar to the state-reason-code filter. + // * + // private-dns-name - The private IPv4 DNS name of the instance. // // * - // requester-id - The ID of the entity that launched the instance on your behalf - // (for example, Management Console, Auto Scaling, and so on). + // private-ip-address - The private IPv4 address of the instance. // - // * reservation-id - - // The ID of the instance's reservation. A reservation ID is created any time you - // launch an instance. A reservation ID has a one-to-one relationship with an - // instance launch request, but can be associated with more than one instance if - // you launch multiple instances using the same launch request. For example, if you - // launch one instance, you get one reservation ID. If you launch ten instances - // using the same launch request, you also get one reservation ID. + // * product-code - + // The product code associated with the AMI used to launch the instance. // // * - // root-device-name - The device name of the root device volume (for example, - // /dev/sda1). + // product-code.type - The type of product code (devpay | marketplace). // - // * root-device-type - The type of the root device volume (ebs | - // instance-store). + // * + // ramdisk-id - The RAM disk ID. // - // * source-dest-check - Indicates whether the instance performs - // source/destination checking. A value of true means that checking is enabled, and - // false means that checking is disabled. The value must be false for the instance - // to perform network address translation (NAT) in your VPC. + // * reason - The reason for the current state of + // the instance (for example, shows "User Initiated [date]" when you stop or + // terminate the instance). Similar to the state-reason-code filter. // // * - // spot-instance-request-id - The ID of the Spot Instance request. + // requester-id - The ID of the entity that launched the instance on your behalf + // (for example, Amazon Web Services Management Console, Auto Scaling, and so + // on). + // + // * reservation-id - The ID of the instance's reservation. A reservation ID + // is created any time you launch an instance. A reservation ID has a one-to-one + // relationship with an instance launch request, but can be associated with more + // than one instance if you launch multiple instances using the same launch + // request. For example, if you launch one instance, you get one reservation ID. If + // you launch ten instances using the same launch request, you also get one + // reservation ID. + // + // * root-device-name - The device name of the root device volume + // (for example, /dev/sda1). + // + // * root-device-type - The type of the root device + // volume (ebs | instance-store). + // + // * source-dest-check - Indicates whether the + // instance performs source/destination checking. A value of true means that + // checking is enabled, and false means that checking is disabled. The value must + // be false for the instance to perform network address translation (NAT) in your + // VPC. + // + // * spot-instance-request-id - The ID of the Spot Instance request. // // * // state-reason-code - The reason code for the state change. diff --git a/service/ec2/api_op_DescribeInternetGateways.go b/service/ec2/api_op_DescribeInternetGateways.go index c59eb895257..5309e65a3c3 100644 --- a/service/ec2/api_op_DescribeInternetGateways.go +++ b/service/ec2/api_op_DescribeInternetGateways.go @@ -48,17 +48,17 @@ type DescribeInternetGatewaysInput struct { // internet-gateway-id - The ID of the Internet gateway. // // * owner-id - The ID of - // the AWS account that owns the internet gateway. + // the Amazon Web Services account that owns the internet gateway. // - // * tag: - The key/value - // combination of a tag assigned to the resource. Use the tag key in the filter - // name and the tag value as the filter value. For example, to find all resources - // that have a tag with the key Owner and the value TeamA, specify tag:Owner for - // the filter name and TeamA for the filter value. + // * tag: - The + // key/value combination of a tag assigned to the resource. Use the tag key in the + // filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. // - // * tag-key - The key of a tag - // assigned to the resource. Use this filter to find all resources assigned a tag - // with a specific key, regardless of the tag value. + // * tag-key - The + // key of a tag assigned to the resource. Use this filter to find all resources + // assigned a tag with a specific key, regardless of the tag value. Filters []types.Filter // One or more internet gateway IDs. Default: Describes all your internet gateways. diff --git a/service/ec2/api_op_DescribeNetworkAcls.go b/service/ec2/api_op_DescribeNetworkAcls.go index a4d7d362e53..b825cc5beeb 100644 --- a/service/ec2/api_op_DescribeNetworkAcls.go +++ b/service/ec2/api_op_DescribeNetworkAcls.go @@ -82,20 +82,20 @@ type DescribeNetworkAclsInput struct { // * network-acl-id - The ID of the network // ACL. // - // * owner-id - The ID of the AWS account that owns the network ACL. + // * owner-id - The ID of the Amazon Web Services account that owns the + // network ACL. // - // * tag: - // - The key/value combination of a tag assigned to the resource. Use the tag key - // in the filter name and the tag value as the filter value. For example, to find - // all resources that have a tag with the key Owner and the value TeamA, specify - // tag:Owner for the filter name and TeamA for the filter value. + // * tag: - The key/value combination of a tag assigned to the + // resource. Use the tag key in the filter name and the tag value as the filter + // value. For example, to find all resources that have a tag with the key Owner and + // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter + // value. // - // * tag-key - The - // key of a tag assigned to the resource. Use this filter to find all resources - // assigned a tag with a specific key, regardless of the tag value. + // * tag-key - The key of a tag assigned to the resource. Use this filter + // to find all resources assigned a tag with a specific key, regardless of the tag + // value. // - // * vpc-id - The - // ID of the VPC for the network ACL. + // * vpc-id - The ID of the VPC for the network ACL. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeNetworkInterfacePermissions.go b/service/ec2/api_op_DescribeNetworkInterfacePermissions.go index 5bc6781ad43..da06300b346 100644 --- a/service/ec2/api_op_DescribeNetworkInterfacePermissions.go +++ b/service/ec2/api_op_DescribeNetworkInterfacePermissions.go @@ -40,14 +40,14 @@ type DescribeNetworkInterfacePermissionsInput struct { // * network-interface-permission.network-interface-id - The ID of the // network interface. // - // * network-interface-permission.aws-account-id - The account - // ID. + // * network-interface-permission.aws-account-id - The Amazon + // Web Services account ID. // - // * network-interface-permission.aws-service - The Amazon Web Service. + // * network-interface-permission.aws-service - The + // Amazon Web Service. // - // * - // network-interface-permission.permission - The type of permission - // (INSTANCE-ATTACH | EIP-ASSOCIATE). + // * network-interface-permission.permission - The type of + // permission (INSTANCE-ATTACH | EIP-ASSOCIATE). Filters []types.Filter // The maximum number of results to return in a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeNetworkInterfaces.go b/service/ec2/api_op_DescribeNetworkInterfaces.go index 189560e0ce8..59fc1ac9399 100644 --- a/service/ec2/api_op_DescribeNetworkInterfaces.go +++ b/service/ec2/api_op_DescribeNetworkInterfaces.go @@ -120,47 +120,47 @@ type DescribeNetworkInterfacesInput struct { // * network-interface-id - The ID of the network interface. // // * - // owner-id - The account ID of the network interface owner. - // - // * private-ip-address - // - The private IPv4 address or addresses of the network interface. + // owner-id - The Amazon Web Services account ID of the network interface owner. // // * - // private-dns-name - The private DNS name of the network interface (IPv4). + // private-ip-address - The private IPv4 address or addresses of the network + // interface. // - // * - // requester-id - The alias or account ID of the principal or service that created - // the network interface. + // * private-dns-name - The private DNS name of the network interface + // (IPv4). // - // * requester-managed - Indicates whether the network - // interface is being managed by an Amazon Web Service (for example, Management - // Console, Auto Scaling, and so on). + // * requester-id - The alias or Amazon Web Services account ID of the + // principal or service that created the network interface. // - // * source-dest-check - Indicates whether the - // network interface performs source/destination checking. A value of true means - // checking is enabled, and false means checking is disabled. The value must be - // false for the network interface to perform network address translation (NAT) in - // your VPC. + // * requester-managed - + // Indicates whether the network interface is being managed by an Amazon Web + // Service (for example, Amazon Web Services Management Console, Auto Scaling, and + // so on). // - // * status - The status of the network interface. If the network - // interface is not attached to an instance, the status is available; if a network - // interface is attached to an instance the status is in-use. + // * source-dest-check - Indicates whether the network interface performs + // source/destination checking. A value of true means checking is enabled, and + // false means checking is disabled. The value must be false for the network + // interface to perform network address translation (NAT) in your VPC. // - // * subnet-id - The ID - // of the subnet for the network interface. + // * status - + // The status of the network interface. If the network interface is not attached to + // an instance, the status is available; if a network interface is attached to an + // instance the status is in-use. // - // * tag: - The key/value combination of - // a tag assigned to the resource. Use the tag key in the filter name and the tag - // value as the filter value. For example, to find all resources that have a tag - // with the key Owner and the value TeamA, specify tag:Owner for the filter name - // and TeamA for the filter value. + // * subnet-id - The ID of the subnet for the + // network interface. // - // * tag-key - The key of a tag assigned to the - // resource. Use this filter to find all resources assigned a tag with a specific - // key, regardless of the tag value. + // * tag: - The key/value combination of a tag assigned to the + // resource. Use the tag key in the filter name and the tag value as the filter + // value. For example, to find all resources that have a tag with the key Owner and + // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter + // value. // - // * vpc-id - The ID of the VPC for the network - // interface. + // * tag-key - The key of a tag assigned to the resource. Use this filter + // to find all resources assigned a tag with a specific key, regardless of the tag + // value. + // + // * vpc-id - The ID of the VPC for the network interface. Filters []types.Filter // The maximum number of items to return for this request. The request returns a diff --git a/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go b/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go index fe3d85179f4..a966c86e4be 100644 --- a/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go +++ b/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go @@ -13,8 +13,9 @@ import ( ) // Describes a root volume replacement task. For more information, see Replace a -// root volume (https://docs.aws.amazon.com/) in the Amazon Elastic Compute Cloud -// User Guide. +// root volume +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-restoring-volume.html#replace-root) +// in the Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeReplaceRootVolumeTasks(ctx context.Context, params *DescribeReplaceRootVolumeTasksInput, optFns ...func(*Options)) (*DescribeReplaceRootVolumeTasksOutput, error) { if params == nil { params = &DescribeReplaceRootVolumeTasksInput{} diff --git a/service/ec2/api_op_DescribeRouteTables.go b/service/ec2/api_op_DescribeRouteTables.go index a4ce3536210..dff2a4300c0 100644 --- a/service/ec2/api_op_DescribeRouteTables.go +++ b/service/ec2/api_op_DescribeRouteTables.go @@ -16,7 +16,7 @@ import ( // associated with a route table. If a subnet is not explicitly associated with any // route table, it is implicitly associated with the main route table. This command // does not return the subnet ID for implicit associations. For more information, -// see Route Tables +// see Route tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) DescribeRouteTables(ctx context.Context, params *DescribeRouteTablesInput, optFns ...func(*Options)) (*DescribeRouteTablesOutput, error) { @@ -58,20 +58,20 @@ type DescribeRouteTablesInput struct { // Route tables that do not have an association ID are not returned in the // response. // - // * owner-id - The ID of the AWS account that owns the route table. + // * owner-id - The ID of the Amazon Web Services account that owns the + // route table. // - // * - // route-table-id - The ID of the route table. - // - // * route.destination-cidr-block - - // The IPv4 CIDR range specified in a route in the table. + // * route-table-id - The ID of the route table. // // * - // route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in a route in - // the route table. + // route.destination-cidr-block - The IPv4 CIDR range specified in a route in the + // table. + // + // * route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in a + // route in the route table. // - // * route.destination-prefix-list-id - The ID (prefix) of the - // AWS service specified in a route in the table. + // * route.destination-prefix-list-id - The ID (prefix) + // of the Amazon Web Service specified in a route in the table. // // * // route.egress-only-internet-gateway-id - The ID of an egress-only Internet diff --git a/service/ec2/api_op_DescribeSnapshots.go b/service/ec2/api_op_DescribeSnapshots.go index b475e7d778c..ed3fa4916b7 100644 --- a/service/ec2/api_op_DescribeSnapshots.go +++ b/service/ec2/api_op_DescribeSnapshots.go @@ -19,43 +19,44 @@ import ( // Describes the specified EBS snapshots available to you or all of the EBS // snapshots available to you. The snapshots available to you include public // snapshots, private snapshots that you own, and private snapshots owned by other -// AWS accounts for which you have explicit create volume permissions. The create -// volume permissions fall into the following categories: +// Amazon Web Services accounts for which you have explicit create volume +// permissions. The create volume permissions fall into the following +// categories: // -// * public: The owner of -// the snapshot granted create volume permissions for the snapshot to the all -// group. All AWS accounts have create volume permissions for these snapshots. +// * public: The owner of the snapshot granted create volume +// permissions for the snapshot to the all group. All Amazon Web Services accounts +// have create volume permissions for these snapshots. // -// * -// explicit: The owner of the snapshot granted create volume permissions to a -// specific AWS account. +// * explicit: The owner of +// the snapshot granted create volume permissions to a specific Amazon Web Services +// account. // -// * implicit: An AWS account has implicit create volume +// * implicit: An Amazon Web Services account has implicit create volume // permissions for all snapshots it owns. // // The list of snapshots returned can be -// filtered by specifying snapshot IDs, snapshot owners, or AWS accounts with -// create volume permissions. If no options are specified, Amazon EC2 returns all -// snapshots for which you have create volume permissions. If you specify one or -// more snapshot IDs, only snapshots that have the specified IDs are returned. If -// you specify an invalid snapshot ID, an error is returned. If you specify a -// snapshot ID for which you do not have access, it is not included in the returned -// results. If you specify one or more snapshot owners using the OwnerIds option, -// only snapshots from the specified owners and for which you have access are -// returned. The results can include the AWS account IDs of the specified owners, -// amazon for snapshots owned by Amazon, or self for snapshots that you own. If you -// specify a list of restorable users, only snapshots with create snapshot -// permissions for those users are returned. You can specify AWS account IDs (if -// you own the snapshots), self for snapshots for which you own or have explicit -// permissions, or all for public snapshots. If you are describing a long list of -// snapshots, we recommend that you paginate the output to make the list more -// manageable. The MaxResults parameter sets the maximum number of results returned -// in a single page. If the list of results exceeds your MaxResults value, then -// that number of results is returned along with a NextToken value that can be -// passed to a subsequent DescribeSnapshots request to retrieve the remaining -// results. To get the state of fast snapshot restores for a snapshot, use -// DescribeFastSnapshotRestores. For more information about EBS snapshots, see -// Amazon EBS snapshots +// filtered by specifying snapshot IDs, snapshot owners, or Amazon Web Services +// accounts with create volume permissions. If no options are specified, Amazon EC2 +// returns all snapshots for which you have create volume permissions. If you +// specify one or more snapshot IDs, only snapshots that have the specified IDs are +// returned. If you specify an invalid snapshot ID, an error is returned. If you +// specify a snapshot ID for which you do not have access, it is not included in +// the returned results. If you specify one or more snapshot owners using the +// OwnerIds option, only snapshots from the specified owners and for which you have +// access are returned. The results can include the Amazon Web Services account IDs +// of the specified owners, amazon for snapshots owned by Amazon, or self for +// snapshots that you own. If you specify a list of restorable users, only +// snapshots with create snapshot permissions for those users are returned. You can +// specify Amazon Web Services account IDs (if you own the snapshots), self for +// snapshots for which you own or have explicit permissions, or all for public +// snapshots. If you are describing a long list of snapshots, we recommend that you +// paginate the output to make the list more manageable. The MaxResults parameter +// sets the maximum number of results returned in a single page. If the list of +// results exceeds your MaxResults value, then that number of results is returned +// along with a NextToken value that can be passed to a subsequent +// DescribeSnapshots request to retrieve the remaining results. To get the state of +// fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores. For +// more information about EBS snapshots, see Amazon EBS snapshots // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) in the // Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeSnapshots(ctx context.Context, params *DescribeSnapshotsInput, optFns ...func(*Options)) (*DescribeSnapshotsOutput, error) { @@ -90,38 +91,39 @@ type DescribeSnapshotsInput struct { // // * owner-alias - The // owner alias, from an Amazon-maintained list (amazon). This is not the - // user-configured AWS account alias set using the IAM console. We recommend that - // you use the related parameter instead of this filter. + // user-configured Amazon Web Services account alias set using the IAM console. We + // recommend that you use the related parameter instead of this filter. // - // * owner-id - The AWS - // account ID of the owner. We recommend that you use the related parameter instead - // of this filter. + // * owner-id + // - The Amazon Web Services account ID of the owner. We recommend that you use the + // related parameter instead of this filter. // - // * progress - The progress of the snapshot, as a percentage (for - // example, 80%). + // * progress - The progress of the + // snapshot, as a percentage (for example, 80%). // - // * snapshot-id - The snapshot ID. + // * snapshot-id - The snapshot + // ID. // - // * start-time - The time stamp - // when the snapshot was initiated. + // * start-time - The time stamp when the snapshot was initiated. // - // * status - The status of the snapshot (pending - // | completed | error). + // * status - + // The status of the snapshot (pending | completed | error). // - // * tag: - The key/value combination of a tag assigned to - // the resource. Use the tag key in the filter name and the tag value as the filter - // value. For example, to find all resources that have a tag with the key Owner and - // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter - // value. + // * tag: - The + // key/value combination of a tag assigned to the resource. Use the tag key in the + // filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. // - // * tag-key - The key of a tag assigned to the resource. Use this filter - // to find all resources assigned a tag with a specific key, regardless of the tag - // value. + // * tag-key - The + // key of a tag assigned to the resource. Use this filter to find all resources + // assigned a tag with a specific key, regardless of the tag value. // - // * volume-id - The ID of the volume the snapshot is for. + // * volume-id - + // The ID of the volume the snapshot is for. // - // * volume-size - - // The size of the volume, in GiB. + // * volume-size - The size of the + // volume, in GiB. Filters []types.Filter // The maximum number of snapshot results returned by DescribeSnapshots in @@ -142,10 +144,11 @@ type DescribeSnapshotsInput struct { NextToken *string // Scopes the results to snapshots with the specified owners. You can specify a - // combination of AWS account IDs, self, and amazon. + // combination of Amazon Web Services account IDs, self, and amazon. OwnerIds []string - // The IDs of the AWS accounts that can create volumes from the snapshot. + // The IDs of the Amazon Web Services accounts that can create volumes from the + // snapshot. RestorableByUserIds []string // The snapshot IDs. Default: Describes the snapshots for which you have create diff --git a/service/ec2/api_op_DescribeSubnets.go b/service/ec2/api_op_DescribeSubnets.go index 14f5398e56a..70ad461001b 100644 --- a/service/ec2/api_op_DescribeSubnets.go +++ b/service/ec2/api_op_DescribeSubnets.go @@ -17,7 +17,7 @@ import ( ) // Describes one or more of your subnets. For more information, see Your VPC and -// Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in +// subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in // the Amazon Virtual Private Cloud User Guide. func (c *Client) DescribeSubnets(ctx context.Context, params *DescribeSubnetsInput, optFns ...func(*Options)) (*DescribeSubnetsOutput, error) { if params == nil { @@ -76,28 +76,29 @@ type DescribeSubnetsInput struct { // * outpost-arn - The // Amazon Resource Name (ARN) of the Outpost. // - // * owner-id - The ID of the AWS - // account that owns the subnet. + // * owner-id - The ID of the Amazon + // Web Services account that owns the subnet. // - // * state - The state of the subnet (pending | - // available). + // * state - The state of the subnet + // (pending | available). // - // * subnet-arn - The Amazon Resource Name (ARN) of the subnet. + // * subnet-arn - The Amazon Resource Name (ARN) of the + // subnet. // - // * - // subnet-id - The ID of the subnet. + // * subnet-id - The ID of the subnet. // - // * tag: - The key/value combination of a tag - // assigned to the resource. Use the tag key in the filter name and the tag value - // as the filter value. For example, to find all resources that have a tag with the - // key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA - // for the filter value. + // * tag: - The key/value combination + // of a tag assigned to the resource. Use the tag key in the filter name and the + // tag value as the filter value. For example, to find all resources that have a + // tag with the key Owner and the value TeamA, specify tag:Owner for the filter + // name and TeamA for the filter value. // - // * tag-key - The key of a tag assigned to the resource. - // Use this filter to find all resources assigned a tag with a specific key, - // regardless of the tag value. + // * tag-key - The key of a tag assigned to + // the resource. Use this filter to find all resources assigned a tag with a + // specific key, regardless of the tag value. // - // * vpc-id - The ID of the VPC for the subnet. + // * vpc-id - The ID of the VPC for the + // subnet. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeVolumeStatus.go b/service/ec2/api_op_DescribeVolumeStatus.go index 1f4fd395608..5e4ee0f61d7 100644 --- a/service/ec2/api_op_DescribeVolumeStatus.go +++ b/service/ec2/api_op_DescribeVolumeStatus.go @@ -25,7 +25,7 @@ import ( // checks pass, the overall status of the volume is ok. If the check fails, the // overall status is impaired. If the status is insufficient-data, then the checks // might still be taking place on your volume at the time. We recommend that you -// retry the request. For more information about volume status, see Monitoring the +// retry the request. For more information about volume status, see Monitor the // status of your volumes // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html) // in the Amazon Elastic Compute Cloud User Guide. Events: Reflect the cause of a diff --git a/service/ec2/api_op_DescribeVolumesModifications.go b/service/ec2/api_op_DescribeVolumesModifications.go index e560869c10d..afc77da948a 100644 --- a/service/ec2/api_op_DescribeVolumesModifications.go +++ b/service/ec2/api_op_DescribeVolumesModifications.go @@ -19,8 +19,8 @@ import ( // check the status of a modification to an EBS volume. For information about // CloudWatch Events, see the Amazon CloudWatch Events User Guide // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). For more -// information, see Monitoring volume modifications -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods) +// information, see Monitor the progress of volume modifications +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-modifications.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeVolumesModifications(ctx context.Context, params *DescribeVolumesModificationsInput, optFns ...func(*Options)) (*DescribeVolumesModificationsOutput, error) { if params == nil { diff --git a/service/ec2/api_op_DescribeVpcPeeringConnections.go b/service/ec2/api_op_DescribeVpcPeeringConnections.go index 2dd8ccfbd06..1b436e83092 100644 --- a/service/ec2/api_op_DescribeVpcPeeringConnections.go +++ b/service/ec2/api_op_DescribeVpcPeeringConnections.go @@ -47,43 +47,44 @@ type DescribeVpcPeeringConnectionsInput struct { // * accepter-vpc-info.cidr-block - The IPv4 CIDR block of // the accepter VPC. // - // * accepter-vpc-info.owner-id - The AWS account ID of the - // owner of the accepter VPC. + // * accepter-vpc-info.owner-id - The ID of the Amazon Web + // Services account that owns the accepter VPC. // - // * accepter-vpc-info.vpc-id - The ID of the accepter - // VPC. + // * accepter-vpc-info.vpc-id - The + // ID of the accepter VPC. // - // * expiration-time - The expiration date and time for the VPC peering - // connection. + // * expiration-time - The expiration date and time for + // the VPC peering connection. // - // * requester-vpc-info.cidr-block - The IPv4 CIDR block of the - // requester's VPC. + // * requester-vpc-info.cidr-block - The IPv4 CIDR + // block of the requester's VPC. // - // * requester-vpc-info.owner-id - The AWS account ID of the - // owner of the requester VPC. + // * requester-vpc-info.owner-id - The ID of the + // Amazon Web Services account that owns the requester VPC. // - // * requester-vpc-info.vpc-id - The ID of the - // requester VPC. + // * + // requester-vpc-info.vpc-id - The ID of the requester VPC. // - // * status-code - The status of the VPC peering connection - // (pending-acceptance | failed | expired | provisioning | active | deleting | - // deleted | rejected). + // * status-code - The + // status of the VPC peering connection (pending-acceptance | failed | expired | + // provisioning | active | deleting | deleted | rejected). // - // * status-message - A message that provides more - // information about the status of the VPC peering connection, if applicable. + // * status-message - A + // message that provides more information about the status of the VPC peering + // connection, if applicable. // - // * - // tag: - The key/value combination of a tag assigned to the resource. Use the tag - // key in the filter name and the tag value as the filter value. For example, to - // find all resources that have a tag with the key Owner and the value TeamA, - // specify tag:Owner for the filter name and TeamA for the filter value. + // * tag: - The key/value combination of a tag assigned + // to the resource. Use the tag key in the filter name and the tag value as the + // filter value. For example, to find all resources that have a tag with the key + // Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for + // the filter value. // - // * tag-key - // - The key of a tag assigned to the resource. Use this filter to find all - // resources assigned a tag with a specific key, regardless of the tag value. + // * tag-key - The key of a tag assigned to the resource. Use + // this filter to find all resources assigned a tag with a specific key, regardless + // of the tag value. // - // * - // vpc-peering-connection-id - The ID of the VPC peering connection. + // * vpc-peering-connection-id - The ID of the VPC peering + // connection. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DescribeVpcs.go b/service/ec2/api_op_DescribeVpcs.go index 5f8fc2704d9..9f177fd106e 100644 --- a/service/ec2/api_op_DescribeVpcs.go +++ b/service/ec2/api_op_DescribeVpcs.go @@ -75,26 +75,26 @@ type DescribeVpcsInput struct { // * ipv6-cidr-block-association.state - The state // of an IPv6 CIDR block associated with the VPC. // - // * isDefault - Indicates whether + // * is-default - Indicates whether // the VPC is the default VPC. // - // * owner-id - The ID of the AWS account that owns - // the VPC. + // * owner-id - The ID of the Amazon Web Services + // account that owns the VPC. // - // * state - The state of the VPC (pending | available). + // * state - The state of the VPC (pending | + // available). // - // * tag: - The - // key/value combination of a tag assigned to the resource. Use the tag key in the - // filter name and the tag value as the filter value. For example, to find all - // resources that have a tag with the key Owner and the value TeamA, specify - // tag:Owner for the filter name and TeamA for the filter value. + // * tag: - The key/value combination of a tag assigned to the + // resource. Use the tag key in the filter name and the tag value as the filter + // value. For example, to find all resources that have a tag with the key Owner and + // the value TeamA, specify tag:Owner for the filter name and TeamA for the filter + // value. // - // * tag-key - The - // key of a tag assigned to the resource. Use this filter to find all resources - // assigned a tag with a specific key, regardless of the tag value. + // * tag-key - The key of a tag assigned to the resource. Use this filter + // to find all resources assigned a tag with a specific key, regardless of the tag + // value. // - // * vpc-id - The - // ID of the VPC. + // * vpc-id - The ID of the VPC. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the diff --git a/service/ec2/api_op_DetachVolume.go b/service/ec2/api_op_DetachVolume.go index a222644663d..997a20e80c9 100644 --- a/service/ec2/api_op_DetachVolume.go +++ b/service/ec2/api_op_DetachVolume.go @@ -19,9 +19,9 @@ import ( // unmount the volume, force detachment, reboot the instance, or all three. If an // EBS volume is the root device of an instance, it can't be detached while the // instance is running. To detach the root volume, stop the instance first. When a -// volume with an AWS Marketplace product code is detached from an instance, the -// product code is no longer associated with the instance. For more information, -// see Detaching an Amazon EBS volume +// volume with an Amazon Web Services Marketplace product code is detached from an +// instance, the product code is no longer associated with the instance. For more +// information, see Detach an Amazon EBS volume // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) DetachVolume(ctx context.Context, params *DetachVolumeInput, optFns ...func(*Options)) (*DetachVolumeOutput, error) { diff --git a/service/ec2/api_op_DisassociateInstanceEventWindow.go b/service/ec2/api_op_DisassociateInstanceEventWindow.go new file mode 100644 index 00000000000..6399d7fbb58 --- /dev/null +++ b/service/ec2/api_op_DisassociateInstanceEventWindow.go @@ -0,0 +1,135 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disassociates one or more targets from an event window. For more information, +// see Define event windows for scheduled events +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the +// Amazon EC2 User Guide. +func (c *Client) DisassociateInstanceEventWindow(ctx context.Context, params *DisassociateInstanceEventWindowInput, optFns ...func(*Options)) (*DisassociateInstanceEventWindowOutput, error) { + if params == nil { + params = &DisassociateInstanceEventWindowInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateInstanceEventWindow", params, optFns, c.addOperationDisassociateInstanceEventWindowMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateInstanceEventWindowOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateInstanceEventWindowInput struct { + + // One or more targets to disassociate from the specified event window. + // + // This member is required. + AssociationTarget *types.InstanceEventWindowDisassociationRequest + + // The ID of the event window. + // + // This member is required. + InstanceEventWindowId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DisassociateInstanceEventWindowOutput struct { + + // Information about the event window. + InstanceEventWindow *types.InstanceEventWindow + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociateInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisassociateInstanceEventWindowValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateInstanceEventWindow(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociateInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DisassociateInstanceEventWindow", + } +} diff --git a/service/ec2/api_op_DisassociateRouteTable.go b/service/ec2/api_op_DisassociateRouteTable.go index 16cd8e751bd..06739ce34e4 100644 --- a/service/ec2/api_op_DisassociateRouteTable.go +++ b/service/ec2/api_op_DisassociateRouteTable.go @@ -13,7 +13,7 @@ import ( // Disassociates a subnet or gateway from a route table. After you perform this // action, the subnet no longer uses the routes in the route table. Instead, it // uses the routes in the VPC's main route table. For more information about route -// tables, see Route Tables +// tables, see Route tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) DisassociateRouteTable(ctx context.Context, params *DisassociateRouteTableInput, optFns ...func(*Options)) (*DisassociateRouteTableOutput, error) { diff --git a/service/ec2/api_op_EnableEbsEncryptionByDefault.go b/service/ec2/api_op_EnableEbsEncryptionByDefault.go index 4ecbbac2d6e..0edf76bf52b 100644 --- a/service/ec2/api_op_EnableEbsEncryptionByDefault.go +++ b/service/ec2/api_op_EnableEbsEncryptionByDefault.go @@ -12,10 +12,10 @@ import ( // Enables EBS encryption by default for your account in the current Region. After // you enable encryption by default, the EBS volumes that you create are always -// encrypted, either using the default CMK or the CMK that you specified when you -// created each volume. For more information, see Amazon EBS encryption +// encrypted, either using the default KMS key or the KMS key that you specified +// when you created each volume. For more information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the -// Amazon Elastic Compute Cloud User Guide. You can specify the default CMK for +// Amazon Elastic Compute Cloud User Guide. You can specify the default KMS key for // encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId. // Enabling encryption by default has no effect on the encryption status of your // existing volumes. After you enable encryption by default, you can no longer diff --git a/service/ec2/api_op_EnableFastSnapshotRestores.go b/service/ec2/api_op_EnableFastSnapshotRestores.go index 77c8310c527..b1bd03a7e61 100644 --- a/service/ec2/api_op_EnableFastSnapshotRestores.go +++ b/service/ec2/api_op_EnableFastSnapshotRestores.go @@ -42,7 +42,8 @@ type EnableFastSnapshotRestoresInput struct { AvailabilityZones []string // The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can - // specify a snapshot that was shared with you from another AWS account. + // specify a snapshot that was shared with you from another Amazon Web Services + // account. // // This member is required. SourceSnapshotIds []string diff --git a/service/ec2/api_op_GetCapacityReservationUsage.go b/service/ec2/api_op_GetCapacityReservationUsage.go index 6ae1cb111ad..0b2105abd64 100644 --- a/service/ec2/api_op_GetCapacityReservationUsage.go +++ b/service/ec2/api_op_GetCapacityReservationUsage.go @@ -13,8 +13,9 @@ import ( // Gets usage information about a Capacity Reservation. If the Capacity Reservation // is shared, it shows usage information for the Capacity Reservation owner and -// each account that is currently using the shared capacity. If the Capacity -// Reservation is not shared, it shows only the Capacity Reservation owner's usage. +// each Amazon Web Services account that is currently using the shared capacity. If +// the Capacity Reservation is not shared, it shows only the Capacity Reservation +// owner's usage. func (c *Client) GetCapacityReservationUsage(ctx context.Context, params *GetCapacityReservationUsageInput, optFns ...func(*Options)) (*GetCapacityReservationUsageOutput, error) { if params == nil { params = &GetCapacityReservationUsageInput{} diff --git a/service/ec2/api_op_GetEbsDefaultKmsKeyId.go b/service/ec2/api_op_GetEbsDefaultKmsKeyId.go index 774dae70245..775ea24ab63 100644 --- a/service/ec2/api_op_GetEbsDefaultKmsKeyId.go +++ b/service/ec2/api_op_GetEbsDefaultKmsKeyId.go @@ -10,10 +10,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the default customer master key (CMK) for EBS encryption by default -// for your account in this Region. You can change the default CMK for encryption -// by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId. For more -// information, see Amazon EBS encryption +// Describes the default KMS key for EBS encryption by default for your account in +// this Region. You can change the default KMS key for encryption by default using +// ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId. For more information, see +// Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. func (c *Client) GetEbsDefaultKmsKeyId(ctx context.Context, params *GetEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*GetEbsDefaultKmsKeyIdOutput, error) { @@ -44,7 +44,7 @@ type GetEbsDefaultKmsKeyIdInput struct { type GetEbsDefaultKmsKeyIdOutput struct { - // The Amazon Resource Name (ARN) of the default CMK for encryption by default. + // The Amazon Resource Name (ARN) of the default KMS key for encryption by default. KmsKeyId *string // Metadata pertaining to the operation's result. diff --git a/service/ec2/api_op_GetSubnetCidrReservations.go b/service/ec2/api_op_GetSubnetCidrReservations.go new file mode 100644 index 00000000000..f1da5b1bc32 --- /dev/null +++ b/service/ec2/api_op_GetSubnetCidrReservations.go @@ -0,0 +1,159 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets information about the subnet CIDR reservations. +func (c *Client) GetSubnetCidrReservations(ctx context.Context, params *GetSubnetCidrReservationsInput, optFns ...func(*Options)) (*GetSubnetCidrReservationsOutput, error) { + if params == nil { + params = &GetSubnetCidrReservationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetSubnetCidrReservations", params, optFns, c.addOperationGetSubnetCidrReservationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetSubnetCidrReservationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetSubnetCidrReservationsInput struct { + + // The ID of the subnet. + // + // This member is required. + SubnetId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // One or more filters. + // + // * reservationType - The type of reservation (prefix | + // explicit). + // + // * subnet-id - The ID of the subnet. + // + // * tag: - The key/value + // combination of a tag assigned to the resource. Use the tag key in the filter + // name and the tag value as the filter value. For example, to find all resources + // that have a tag with the key Owner and the value TeamA, specify tag:Owner for + // the filter name and TeamA for the filter value. + // + // * tag-key - The key of a tag + // assigned to the resource. Use this filter to find all resources assigned a tag + // with a specific key, regardless of the tag value. + Filters []types.Filter + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type GetSubnetCidrReservationsOutput struct { + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Information about the IPv4 subnet CIDR reservations. + SubnetIpv4CidrReservations []types.SubnetCidrReservation + + // Information about the IPv6 subnet CIDR reservations. + SubnetIpv6CidrReservations []types.SubnetCidrReservation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetSubnetCidrReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpGetSubnetCidrReservations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetSubnetCidrReservations{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetSubnetCidrReservationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSubnetCidrReservations(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetSubnetCidrReservations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "GetSubnetCidrReservations", + } +} diff --git a/service/ec2/api_op_ModifyDefaultCreditSpecification.go b/service/ec2/api_op_ModifyDefaultCreditSpecification.go index b44eae51efa..aafc7d5ef83 100644 --- a/service/ec2/api_op_ModifyDefaultCreditSpecification.go +++ b/service/ec2/api_op_ModifyDefaultCreditSpecification.go @@ -12,16 +12,16 @@ import ( ) // Modifies the default credit option for CPU usage of burstable performance -// instances. The default credit option is set at the account level per Region, and -// is specified per instance family. All new burstable performance instances in the -// account launch using the default credit option. ModifyDefaultCreditSpecification -// is an asynchronous operation, which works at an Region level and modifies the -// credit option for each Availability Zone. All zones in a Region are updated -// within five minutes. But if instances are launched during this operation, they -// might not get the new credit option until the zone is updated. To verify whether -// the update has occurred, you can call GetDefaultCreditSpecification and check -// DefaultCreditSpecification for updates. For more information, see Burstable -// performance instances +// instances. The default credit option is set at the account level per Amazon Web +// Services Region, and is specified per instance family. All new burstable +// performance instances in the account launch using the default credit option. +// ModifyDefaultCreditSpecification is an asynchronous operation, which works at an +// Amazon Web Services Region level and modifies the credit option for each +// Availability Zone. All zones in a Region are updated within five minutes. But if +// instances are launched during this operation, they might not get the new credit +// option until the zone is updated. To verify whether the update has occurred, you +// can call GetDefaultCreditSpecification and check DefaultCreditSpecification for +// updates. For more information, see Burstable performance instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) // in the Amazon EC2 User Guide. func (c *Client) ModifyDefaultCreditSpecification(ctx context.Context, params *ModifyDefaultCreditSpecificationInput, optFns ...func(*Options)) (*ModifyDefaultCreditSpecificationOutput, error) { diff --git a/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go b/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go index 557e17b666a..c740a110d53 100644 --- a/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go +++ b/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go @@ -10,13 +10,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Changes the default customer master key (CMK) for EBS encryption by default for -// your account in this Region. AWS creates a unique AWS managed CMK in each Region -// for use with encryption by default. If you change the default CMK to a symmetric -// customer managed CMK, it is used instead of the AWS managed CMK. To reset the -// default CMK to the AWS managed CMK for EBS, use ResetEbsDefaultKmsKeyId. Amazon -// EBS does not support asymmetric CMKs. If you delete or disable the customer -// managed CMK that you specified for use with encryption by default, your +// Changes the default KMS key for EBS encryption by default for your account in +// this Region. Amazon Web Services creates a unique Amazon Web Services managed +// KMS key in each Region for use with encryption by default. If you change the +// default KMS key to a symmetric customer managed KMS key, it is used instead of +// the Amazon Web Services managed KMS key. To reset the default KMS key to the +// Amazon Web Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon +// EBS does not support asymmetric KMS keys. If you delete or disable the customer +// managed KMS key that you specified for use with encryption by default, your // instances will fail to launch. For more information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. @@ -37,13 +38,13 @@ func (c *Client) ModifyEbsDefaultKmsKeyId(ctx context.Context, params *ModifyEbs type ModifyEbsDefaultKmsKeyIdInput struct { - // The identifier of the AWS Key Management Service (AWS KMS) customer master key - // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your - // AWS managed CMK for EBS is used. If KmsKeyId is specified, the encrypted state - // must be true. You can specify the CMK using any of the following: + // The identifier of the Key Management Service (KMS) KMS key to use for Amazon EBS + // encryption. If this parameter is not specified, your KMS key for Amazon EBS is + // used. If KmsKeyId is specified, the encrypted state must be true. You can + // specify the KMS key using any of the following: // - // * Key ID. For - // example, 1234abcd-12ab-34cd-56ef-1234567890ab. + // * Key ID. For example, + // 1234abcd-12ab-34cd-56ef-1234567890ab. // // * Key alias. For example, // alias/ExampleAlias. @@ -55,10 +56,10 @@ type ModifyEbsDefaultKmsKeyIdInput struct { // Alias ARN. For example, // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // - // AWS authenticates the - // CMK asynchronously. Therefore, if you specify an ID, alias, or ARN that is not - // valid, the action can appear to complete, but eventually fails. Amazon EBS does - // not support asymmetric CMKs. + // Amazon Web Services + // authenticates the KMS key asynchronously. Therefore, if you specify an ID, + // alias, or ARN that is not valid, the action can appear to complete, but + // eventually fails. Amazon EBS does not support asymmetric KMS keys. // // This member is required. KmsKeyId *string @@ -74,7 +75,7 @@ type ModifyEbsDefaultKmsKeyIdInput struct { type ModifyEbsDefaultKmsKeyIdOutput struct { - // The Amazon Resource Name (ARN) of the default CMK for encryption by default. + // The Amazon Resource Name (ARN) of the default KMS key for encryption by default. KmsKeyId *string // Metadata pertaining to the operation's result. diff --git a/service/ec2/api_op_ModifyInstanceEventWindow.go b/service/ec2/api_op_ModifyInstanceEventWindow.go new file mode 100644 index 00000000000..9e55ec8aa61 --- /dev/null +++ b/service/ec2/api_op_ModifyInstanceEventWindow.go @@ -0,0 +1,166 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Modifies the specified event window. You can define either a set of time ranges +// or a cron expression when modifying the event window, but not both. To modify +// the targets associated with the event window, use the +// AssociateInstanceEventWindow and DisassociateInstanceEventWindow API. If Amazon +// Web Services has already scheduled an event, modifying an event window won't +// change the time of the scheduled event. For more information, see Define event +// windows for scheduled events +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the +// Amazon EC2 User Guide. +func (c *Client) ModifyInstanceEventWindow(ctx context.Context, params *ModifyInstanceEventWindowInput, optFns ...func(*Options)) (*ModifyInstanceEventWindowOutput, error) { + if params == nil { + params = &ModifyInstanceEventWindowInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceEventWindow", params, optFns, c.addOperationModifyInstanceEventWindowMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyInstanceEventWindowOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyInstanceEventWindowInput struct { + + // The ID of the event window. + // + // This member is required. + InstanceEventWindowId *string + + // The cron expression of the event window, for example, * 0-4,20-23 * * 1,5. + // Constraints: + // + // * Only hour and day of the week values are supported. + // + // * For day + // of the week values, you can specify either integers 0 through 6, or alternative + // single values SUN through SAT. + // + // * The minute, month, and year must be specified + // by *. + // + // * The hour value must be one or a multiple range, for example, 0-4 or + // 0-4,20-23. + // + // * Each hour range must be >= 2 hours, for example, 0-2 or 20-23. + // + // * + // The event window must be >= 4 hours. The combined total time ranges in the event + // window must be >= 4 hours. + // + // For more information about cron expressions, see + // cron (https://en.wikipedia.org/wiki/Cron) on the Wikipedia website. + CronExpression *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The name of the event window. + Name *string + + // The time ranges of the event window. + TimeRanges []types.InstanceEventWindowTimeRangeRequest + + noSmithyDocumentSerde +} + +type ModifyInstanceEventWindowOutput struct { + + // Information about the event window. + InstanceEventWindow *types.InstanceEventWindow + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceEventWindow{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpModifyInstanceEventWindowValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceEventWindow(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opModifyInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "ModifyInstanceEventWindow", + } +} diff --git a/service/ec2/api_op_ModifySnapshotAttribute.go b/service/ec2/api_op_ModifySnapshotAttribute.go index 67ca60d5877..990a359d061 100644 --- a/service/ec2/api_op_ModifySnapshotAttribute.go +++ b/service/ec2/api_op_ModifySnapshotAttribute.go @@ -12,14 +12,14 @@ import ( ) // Adds or removes permission settings for the specified snapshot. You may add or -// remove specified AWS account IDs from a snapshot's list of create volume -// permissions, but you cannot do both in a single operation. If you need to both -// add and remove account IDs for a snapshot, you must use multiple operations. You -// can make up to 500 modifications to a snapshot in a single operation. Encrypted -// snapshots and snapshots with AWS Marketplace product codes cannot be made -// public. Snapshots encrypted with your default CMK cannot be shared with other -// accounts. For more information about modifying snapshot permissions, see Sharing -// snapshots +// remove specified Amazon Web Services account IDs from a snapshot's list of +// create volume permissions, but you cannot do both in a single operation. If you +// need to both add and remove account IDs for a snapshot, you must use multiple +// operations. You can make up to 500 modifications to a snapshot in a single +// operation. Encrypted snapshots and snapshots with Amazon Web Services +// Marketplace product codes cannot be made public. Snapshots encrypted with your +// default KMS key cannot be shared with other accounts. For more information about +// modifying snapshot permissions, see Share a snapshot // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) ModifySnapshotAttribute(ctx context.Context, params *ModifySnapshotAttributeInput, optFns ...func(*Options)) (*ModifySnapshotAttributeOutput, error) { diff --git a/service/ec2/api_op_ModifyVolume.go b/service/ec2/api_op_ModifyVolume.go index a1d570cdb7c..6dc54ef270b 100644 --- a/service/ec2/api_op_ModifyVolume.go +++ b/service/ec2/api_op_ModifyVolume.go @@ -15,36 +15,28 @@ import ( // size, volume type, and IOPS capacity. If your EBS volume is attached to a // current-generation EC2 instance type, you might be able to apply these changes // without stopping the instance or detaching the volume from it. For more -// information about modifying an EBS volume running Linux, see Modifying the size, -// IOPS, or type of an EBS volume on Linux -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). -// For more information about modifying an EBS volume running Windows, see -// Modifying the size, IOPS, or type of an EBS volume on Windows -// (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html). -// When you complete a resize operation on your volume, you need to extend the -// volume's file-system size to take advantage of the new storage capacity. For -// information about extending a Linux file system, see Extending a Linux file -// system -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux). -// For information about extending a Windows file system, see Extending a Windows -// file system +// information about modifying EBS volumes, see Amazon EBS Elastic Volumes +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modify-volume.html) +// (Linux instances) or Amazon EBS Elastic Volumes +// (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-modify-volume.html) +// (Windows instances). When you complete a resize operation on your volume, you +// need to extend the volume's file-system size to take advantage of the new +// storage capacity. For more information, see Extend a Linux file system +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux) +// or Extend a Windows file system // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows). // You can use CloudWatch Events to check the status of a modification to an EBS // volume. For information about CloudWatch Events, see the Amazon CloudWatch // Events User Guide (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). // You can also track the status of a modification using // DescribeVolumesModifications. For information about tracking status changes -// using either method, see Monitoring volume modifications -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods). +// using either method, see Monitor the progress of volume modifications +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-modifications.html). // With previous-generation instance types, resizing an EBS volume might require -// detaching and reattaching the volume or stopping and restarting the instance. -// For more information, see Amazon EBS Elastic Volumes -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modify-volume.html) -// (Linux) or Amazon EBS Elastic Volumes -// (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-modify-volume.html) -// (Windows). If you reach the maximum volume modification rate per volume limit, -// you will need to wait at least six hours before applying further modifications -// to the affected EBS volume. +// detaching and reattaching the volume or stopping and restarting the instance. If +// you reach the maximum volume modification rate per volume limit, you must wait +// at least six hours before applying further modifications to the affected EBS +// volume. func (c *Client) ModifyVolume(ctx context.Context, params *ModifyVolumeInput, optFns ...func(*Options)) (*ModifyVolumeOutput, error) { if params == nil { params = &ModifyVolumeInput{} @@ -84,8 +76,8 @@ type ModifyVolumeInput struct { // * io2: 100-64,000 IOPS // // Default: - // If no IOPS value is specified, the existing value is retained, unless a volume - // type is modified that supports different values. + // The existing value is retained if you keep the same volume type. If you change + // the volume type to io1, io2, or gp3, the default is 3,000. Iops *int32 // Specifies whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, @@ -110,21 +102,20 @@ type ModifyVolumeInput struct { // // * standard: 1-1,024 // - // Default: If - // no size is specified, the existing size is retained. + // Default: The + // existing size is retained. Size *int32 // The target throughput of the volume, in MiB/s. This parameter is valid only for - // gp3 volumes. The maximum value is 1,000. Default: If no throughput value is - // specified, the existing value is retained. Valid Range: Minimum value of 125. - // Maximum value of 1000. + // gp3 volumes. The maximum value is 1,000. Default: The existing value is retained + // if the source and target volume type is gp3. Otherwise, the default value is + // 125. Valid Range: Minimum value of 125. Maximum value of 1000. Throughput *int32 // The target EBS volume type of the volume. For more information, see Amazon EBS // volume types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the - // Amazon Elastic Compute Cloud User Guide. Default: If no type is specified, the - // existing type is retained. + // Amazon Elastic Compute Cloud User Guide. Default: The existing type is retained. VolumeType types.VolumeType noSmithyDocumentSerde diff --git a/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go b/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go index eef8ed39765..65977efb6a6 100644 --- a/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go +++ b/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go @@ -26,15 +26,16 @@ import ( // ability to resolve public DNS hostnames to private IP addresses when queried // from instances in the peer VPC. // -// If the peered VPCs are in the same AWS account, -// you can enable DNS resolution for queries from the local VPC. This ensures that -// queries from the local VPC resolve to private IP addresses in the peer VPC. This -// option is not available if the peered VPCs are in different AWS accounts or -// different Regions. For peered VPCs in different AWS accounts, each AWS account -// owner must initiate a separate request to modify the peering connection options. -// For inter-region peering connections, you must use the Region for the requester -// VPC to modify the requester VPC peering options and the Region for the accepter -// VPC to modify the accepter VPC peering options. To verify which VPCs are the +// If the peered VPCs are in the same Amazon Web +// Services account, you can enable DNS resolution for queries from the local VPC. +// This ensures that queries from the local VPC resolve to private IP addresses in +// the peer VPC. This option is not available if the peered VPCs are in different +// different Amazon Web Services accounts or different Regions. For peered VPCs in +// different Amazon Web Services accounts, each Amazon Web Services account owner +// must initiate a separate request to modify the peering connection options. For +// inter-region peering connections, you must use the Region for the requester VPC +// to modify the requester VPC peering options and the Region for the accepter VPC +// to modify the accepter VPC peering options. To verify which VPCs are the // accepter and the requester for a VPC peering connection, use the // DescribeVpcPeeringConnections command. func (c *Client) ModifyVpcPeeringConnectionOptions(ctx context.Context, params *ModifyVpcPeeringConnectionOptionsInput, optFns ...func(*Options)) (*ModifyVpcPeeringConnectionOptionsOutput, error) { diff --git a/service/ec2/api_op_ReleaseAddress.go b/service/ec2/api_op_ReleaseAddress.go index bd1b1e60b28..4dab4c416e2 100644 --- a/service/ec2/api_op_ReleaseAddress.go +++ b/service/ec2/api_op_ReleaseAddress.go @@ -19,9 +19,9 @@ import ( // address, it is released to the IP address pool. Be sure to update your DNS // records and any servers or devices that communicate with the address. If you // attempt to release an Elastic IP address that you already released, you'll get -// an AuthFailure error if the address is already allocated to another account. -// [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be -// able to recover it. For more information, see AllocateAddress. +// an AuthFailure error if the address is already allocated to another Amazon Web +// Services account. [EC2-VPC] After you release an Elastic IP address for use in a +// VPC, you might be able to recover it. For more information, see AllocateAddress. func (c *Client) ReleaseAddress(ctx context.Context, params *ReleaseAddressInput, optFns ...func(*Options)) (*ReleaseAddressOutput, error) { if params == nil { params = &ReleaseAddressInput{} diff --git a/service/ec2/api_op_ReplaceRoute.go b/service/ec2/api_op_ReplaceRoute.go index 6e80292beef..b79dba3eed3 100644 --- a/service/ec2/api_op_ReplaceRoute.go +++ b/service/ec2/api_op_ReplaceRoute.go @@ -13,7 +13,7 @@ import ( // Replaces an existing route within a route table in a VPC. You must provide only // one of the following: internet gateway, virtual private gateway, NAT instance, // NAT gateway, VPC peering connection, network interface, egress-only internet -// gateway, or transit gateway. For more information, see Route Tables +// gateway, or transit gateway. For more information, see Route tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. func (c *Client) ReplaceRoute(ctx context.Context, params *ReplaceRouteInput, optFns ...func(*Options)) (*ReplaceRouteOutput, error) { diff --git a/service/ec2/api_op_ReplaceRouteTableAssociation.go b/service/ec2/api_op_ReplaceRouteTableAssociation.go index 1c43622a356..6cd30dc454f 100644 --- a/service/ec2/api_op_ReplaceRouteTableAssociation.go +++ b/service/ec2/api_op_ReplaceRouteTableAssociation.go @@ -14,7 +14,7 @@ import ( // Changes the route table associated with a given subnet, internet gateway, or // virtual private gateway in a VPC. After the operation completes, the subnet or // gateway uses the routes in the new route table. For more information about route -// tables, see Route Tables +// tables, see Route tables // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the // Amazon Virtual Private Cloud User Guide. You can also use this operation to // change which table is the main route table in the VPC. Specify the main route diff --git a/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go b/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go index 0f1665d8ce2..7880617b03e 100644 --- a/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go +++ b/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go @@ -10,11 +10,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Resets the default customer master key (CMK) for EBS encryption for your account -// in this Region to the AWS managed CMK for EBS. After resetting the default CMK -// to the AWS managed CMK, you can continue to encrypt by a customer managed CMK by -// specifying it when you create the volume. For more information, see Amazon EBS -// encryption +// Resets the default KMS key for EBS encryption for your account in this Region to +// the Amazon Web Services managed KMS key for EBS. After resetting the default KMS +// key to the Amazon Web Services managed KMS key, you can continue to encrypt by a +// customer managed KMS key by specifying it when you create the volume. For more +// information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. func (c *Client) ResetEbsDefaultKmsKeyId(ctx context.Context, params *ResetEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*ResetEbsDefaultKmsKeyIdOutput, error) { @@ -45,7 +45,8 @@ type ResetEbsDefaultKmsKeyIdInput struct { type ResetEbsDefaultKmsKeyIdOutput struct { - // The Amazon Resource Name (ARN) of the default CMK for EBS encryption by default. + // The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by + // default. KmsKeyId *string // Metadata pertaining to the operation's result. diff --git a/service/ec2/api_op_ResetSnapshotAttribute.go b/service/ec2/api_op_ResetSnapshotAttribute.go index 5b9592e2b4f..f5fd73e08b0 100644 --- a/service/ec2/api_op_ResetSnapshotAttribute.go +++ b/service/ec2/api_op_ResetSnapshotAttribute.go @@ -12,7 +12,7 @@ import ( ) // Resets permission settings for the specified snapshot. For more information -// about modifying snapshot permissions, see Sharing snapshots +// about modifying snapshot permissions, see Share a snapshot // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) ResetSnapshotAttribute(ctx context.Context, params *ResetSnapshotAttributeInput, optFns ...func(*Options)) (*ResetSnapshotAttributeOutput, error) { diff --git a/service/ec2/api_op_RunInstances.go b/service/ec2/api_op_RunInstances.go index 9fb9d58585e..a254d8bcaee 100644 --- a/service/ec2/api_op_RunInstances.go +++ b/service/ec2/api_op_RunInstances.go @@ -337,11 +337,11 @@ type RunInstancesOutput struct { // The instances. Instances []types.Instance - // The ID of the account that owns the reservation. + // The ID of the Amazon Web Services account that owns the reservation. OwnerId *string // The ID of the requester that launched the instances on your behalf (for example, - // Management Console or Auto Scaling). + // Amazon Web Services Management Console or Auto Scaling). RequesterId *string // The ID of the reservation. diff --git a/service/ec2/api_op_StartNetworkInsightsAnalysis.go b/service/ec2/api_op_StartNetworkInsightsAnalysis.go index 3e2ca719262..0c5e2466044 100644 --- a/service/ec2/api_op_StartNetworkInsightsAnalysis.go +++ b/service/ec2/api_op_StartNetworkInsightsAnalysis.go @@ -32,7 +32,7 @@ func (c *Client) StartNetworkInsightsAnalysis(ctx context.Context, params *Start type StartNetworkInsightsAnalysisInput struct { // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see How to ensure idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). // // This member is required. diff --git a/service/ec2/api_op_UnassignIpv6Addresses.go b/service/ec2/api_op_UnassignIpv6Addresses.go index d13f1400007..cf881109c3c 100644 --- a/service/ec2/api_op_UnassignIpv6Addresses.go +++ b/service/ec2/api_op_UnassignIpv6Addresses.go @@ -10,7 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Unassigns one or more IPv6 addresses from a network interface. +// Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a +// network interface. func (c *Client) UnassignIpv6Addresses(ctx context.Context, params *UnassignIpv6AddressesInput, optFns ...func(*Options)) (*UnassignIpv6AddressesOutput, error) { if params == nil { params = &UnassignIpv6AddressesInput{} @@ -28,16 +29,18 @@ func (c *Client) UnassignIpv6Addresses(ctx context.Context, params *UnassignIpv6 type UnassignIpv6AddressesInput struct { - // The IPv6 addresses to unassign from the network interface. - // - // This member is required. - Ipv6Addresses []string - // The ID of the network interface. // // This member is required. NetworkInterfaceId *string + // The IPv6 addresses to unassign from the network interface. + Ipv6Addresses []string + + // One or moreIPv6 Prefix Delegation prefixes to unassign from the network + // interface. + Ipv6Prefixes []string + noSmithyDocumentSerde } @@ -49,6 +52,10 @@ type UnassignIpv6AddressesOutput struct { // The IPv6 addresses that have been unassigned from the network interface. UnassignedIpv6Addresses []string + // The IPv4 Prefix Delegation prefixes that have been unassigned from the network + // interface. + UnassignedIpv6Prefixes []string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_UnassignPrivateIpAddresses.go b/service/ec2/api_op_UnassignPrivateIpAddresses.go index 76af4cb8a22..7d77ed6e596 100644 --- a/service/ec2/api_op_UnassignPrivateIpAddresses.go +++ b/service/ec2/api_op_UnassignPrivateIpAddresses.go @@ -10,7 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Unassigns one or more secondary private IP addresses from a network interface. +// Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation +// prefixes from a network interface. func (c *Client) UnassignPrivateIpAddresses(ctx context.Context, params *UnassignPrivateIpAddressesInput, optFns ...func(*Options)) (*UnassignPrivateIpAddressesOutput, error) { if params == nil { params = &UnassignPrivateIpAddressesInput{} @@ -34,10 +35,11 @@ type UnassignPrivateIpAddressesInput struct { // This member is required. NetworkInterfaceId *string + // The IPv4 Prefix Delegation prefixes to unassign from the network interface. + Ipv4Prefixes []string + // The secondary private IP addresses to unassign from the network interface. You // can specify this option multiple times to unassign more than one IP address. - // - // This member is required. PrivateIpAddresses []string noSmithyDocumentSerde diff --git a/service/ec2/deserializers.go b/service/ec2/deserializers.go index ff6696e17ed..00ba9893783 100644 --- a/service/ec2/deserializers.go +++ b/service/ec2/deserializers.go @@ -1548,6 +1548,97 @@ func awsEc2query_deserializeOpErrorAssociateIamInstanceProfile(response *smithyh } } +type awsEc2query_deserializeOpAssociateInstanceEventWindow struct { +} + +func (*awsEc2query_deserializeOpAssociateInstanceEventWindow) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpAssociateInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorAssociateInstanceEventWindow(response, &metadata) + } + output := &AssociateInstanceEventWindowOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentAssociateInstanceEventWindowOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorAssociateInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpAssociateRouteTable struct { } @@ -5119,6 +5210,97 @@ func awsEc2query_deserializeOpErrorCreateImage(response *smithyhttp.Response, me } } +type awsEc2query_deserializeOpCreateInstanceEventWindow struct { +} + +func (*awsEc2query_deserializeOpCreateInstanceEventWindow) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpCreateInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorCreateInstanceEventWindow(response, &metadata) + } + output := &CreateInstanceEventWindowOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentCreateInstanceEventWindowOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorCreateInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpCreateInstanceExportTask struct { } @@ -7462,14 +7644,14 @@ func awsEc2query_deserializeOpErrorCreateSubnet(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpCreateTags struct { +type awsEc2query_deserializeOpCreateSubnetCidrReservation struct { } -func (*awsEc2query_deserializeOpCreateTags) ID() string { +func (*awsEc2query_deserializeOpCreateSubnetCidrReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSubnetCidrReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7483,21 +7665,44 @@ func (m *awsEc2query_deserializeOpCreateTags) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTags(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response, &metadata) } - output := &CreateTagsOutput{} + output := &CreateSubnetCidrReservationOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentCreateSubnetCidrReservationOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7530,14 +7735,14 @@ func awsEc2query_deserializeOpErrorCreateTags(response *smithyhttp.Response, met } } -type awsEc2query_deserializeOpCreateTrafficMirrorFilter struct { +type awsEc2query_deserializeOpCreateTags struct { } -func (*awsEc2query_deserializeOpCreateTrafficMirrorFilter) ID() string { +func (*awsEc2query_deserializeOpCreateTags) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7551,44 +7756,21 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTags(response, &metadata) } - output := &CreateTrafficMirrorFilterOutput{} + output := &CreateTagsOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7621,14 +7803,14 @@ func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response *smithyhtt } } -type awsEc2query_deserializeOpCreateTrafficMirrorFilterRule struct { +type awsEc2query_deserializeOpCreateTrafficMirrorFilter struct { } -func (*awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_deserializeOpCreateTrafficMirrorFilter) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7642,9 +7824,9 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response, &metadata) } - output := &CreateTrafficMirrorFilterRuleOutput{} + output := &CreateTrafficMirrorFilterOutput{} out.Result = output var buff [1024]byte @@ -7665,7 +7847,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterRuleOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7679,7 +7861,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7712,14 +7894,14 @@ func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response *smith } } -type awsEc2query_deserializeOpCreateTrafficMirrorSession struct { +type awsEc2query_deserializeOpCreateTrafficMirrorFilterRule struct { } -func (*awsEc2query_deserializeOpCreateTrafficMirrorSession) ID() string { +func (*awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7733,9 +7915,9 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response, &metadata) } - output := &CreateTrafficMirrorSessionOutput{} + output := &CreateTrafficMirrorFilterRuleOutput{} out.Result = output var buff [1024]byte @@ -7756,7 +7938,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorSessionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterRuleOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7770,7 +7952,98 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpCreateTrafficMirrorSession struct { +} + +func (*awsEc2query_deserializeOpCreateTrafficMirrorSession) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response, &metadata) + } + output := &CreateTrafficMirrorSessionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorSessionOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10282,6 +10555,97 @@ func awsEc2query_deserializeOpErrorDeleteFpgaImage(response *smithyhttp.Response } } +type awsEc2query_deserializeOpDeleteInstanceEventWindow struct { +} + +func (*awsEc2query_deserializeOpDeleteInstanceEventWindow) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDeleteInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(response, &metadata) + } + output := &DeleteInstanceEventWindowOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteInstanceEventWindowOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpDeleteInternetGateway struct { } @@ -12008,6 +12372,97 @@ func awsEc2query_deserializeOpErrorDeleteSubnet(response *smithyhttp.Response, m } } +type awsEc2query_deserializeOpDeleteSubnetCidrReservation struct { +} + +func (*awsEc2query_deserializeOpDeleteSubnetCidrReservation) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDeleteSubnetCidrReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(response, &metadata) + } + output := &DeleteSubnetCidrReservationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteSubnetCidrReservationOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpDeleteTags struct { } @@ -18308,6 +18763,97 @@ func awsEc2query_deserializeOpErrorDescribeInstanceEventNotificationAttributes(r } } +type awsEc2query_deserializeOpDescribeInstanceEventWindows struct { +} + +func (*awsEc2query_deserializeOpDescribeInstanceEventWindows) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDescribeInstanceEventWindows) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(response, &metadata) + } + output := &DescribeInstanceEventWindowsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeInstanceEventWindowsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpDescribeInstances struct { } @@ -27111,6 +27657,97 @@ func awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response *smit } } +type awsEc2query_deserializeOpDisassociateInstanceEventWindow struct { +} + +func (*awsEc2query_deserializeOpDisassociateInstanceEventWindow) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDisassociateInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(response, &metadata) + } + output := &DisassociateInstanceEventWindowOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDisassociateInstanceEventWindowOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpDisassociateRouteTable struct { } @@ -30409,6 +31046,97 @@ func awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(response *smithy } } +type awsEc2query_deserializeOpGetSubnetCidrReservations struct { +} + +func (*awsEc2query_deserializeOpGetSubnetCidrReservations) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpGetSubnetCidrReservations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorGetSubnetCidrReservations(response, &metadata) + } + output := &GetSubnetCidrReservationsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentGetSubnetCidrReservationsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorGetSubnetCidrReservations(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations struct { } @@ -32774,14 +33502,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response *smithy } } -type awsEc2query_deserializeOpModifyInstanceMetadataOptions struct { +type awsEc2query_deserializeOpModifyInstanceEventWindow struct { } -func (*awsEc2query_deserializeOpModifyInstanceMetadataOptions) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceEventWindow) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32795,9 +33523,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response, &metadata) } - output := &ModifyInstanceMetadataOptionsOutput{} + output := &ModifyInstanceEventWindowOutput{} out.Result = output var buff [1024]byte @@ -32818,7 +33546,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32832,7 +33560,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -32865,105 +33593,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smith } } -type awsEc2query_deserializeOpModifyInstancePlacement struct { -} - -func (*awsEc2query_deserializeOpModifyInstancePlacement) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstancePlacement(response, &metadata) - } - output := &ModifyInstancePlacementOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorModifyInstancePlacement(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpModifyLaunchTemplate struct { +type awsEc2query_deserializeOpModifyInstanceMetadataOptions struct { } -func (*awsEc2query_deserializeOpModifyLaunchTemplate) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceMetadataOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32977,9 +33614,9 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyLaunchTemplate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response, &metadata) } - output := &ModifyLaunchTemplateOutput{} + output := &ModifyInstanceMetadataOptionsOutput{} out.Result = output var buff [1024]byte @@ -33000,7 +33637,7 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyLaunchTemplateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33014,7 +33651,7 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33047,14 +33684,14 @@ func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Res } } -type awsEc2query_deserializeOpModifyManagedPrefixList struct { +type awsEc2query_deserializeOpModifyInstancePlacement struct { } -func (*awsEc2query_deserializeOpModifyManagedPrefixList) ID() string { +func (*awsEc2query_deserializeOpModifyInstancePlacement) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33068,9 +33705,9 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyManagedPrefixList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstancePlacement(response, &metadata) } - output := &ModifyManagedPrefixListOutput{} + output := &ModifyInstancePlacementOutput{} out.Result = output var buff [1024]byte @@ -33091,7 +33728,7 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyManagedPrefixListOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33105,75 +33742,7 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyManagedPrefixList(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpModifyNetworkInterfaceAttribute struct { -} - -func (*awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response, &metadata) - } - output := &ModifyNetworkInterfaceAttributeOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstancePlacement(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33206,14 +33775,14 @@ func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smi } } -type awsEc2query_deserializeOpModifyReservedInstances struct { +type awsEc2query_deserializeOpModifyLaunchTemplate struct { } -func (*awsEc2query_deserializeOpModifyReservedInstances) ID() string { +func (*awsEc2query_deserializeOpModifyLaunchTemplate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33227,9 +33796,9 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyReservedInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyLaunchTemplate(response, &metadata) } - output := &ModifyReservedInstancesOutput{} + output := &ModifyLaunchTemplateOutput{} out.Result = output var buff [1024]byte @@ -33250,7 +33819,7 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyLaunchTemplateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33264,7 +33833,7 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33297,14 +33866,14 @@ func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp. } } -type awsEc2query_deserializeOpModifySecurityGroupRules struct { +type awsEc2query_deserializeOpModifyManagedPrefixList struct { } -func (*awsEc2query_deserializeOpModifySecurityGroupRules) ID() string { +func (*awsEc2query_deserializeOpModifyManagedPrefixList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33318,9 +33887,9 @@ func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySecurityGroupRules(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyManagedPrefixList(response, &metadata) } - output := &ModifySecurityGroupRulesOutput{} + output := &ModifyManagedPrefixListOutput{} out.Result = output var buff [1024]byte @@ -33341,7 +33910,7 @@ func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifySecurityGroupRulesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyManagedPrefixListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33355,7 +33924,7 @@ func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySecurityGroupRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyManagedPrefixList(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33388,14 +33957,14 @@ func awsEc2query_deserializeOpErrorModifySecurityGroupRules(response *smithyhttp } } -type awsEc2query_deserializeOpModifySnapshotAttribute struct { +type awsEc2query_deserializeOpModifyNetworkInterfaceAttribute struct { } -func (*awsEc2query_deserializeOpModifySnapshotAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33409,9 +33978,9 @@ func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response, &metadata) } - output := &ModifySnapshotAttributeOutput{} + output := &ModifyNetworkInterfaceAttributeOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -33423,7 +33992,7 @@ func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33456,14 +34025,14 @@ func awsEc2query_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpModifySpotFleetRequest struct { +type awsEc2query_deserializeOpModifyReservedInstances struct { } -func (*awsEc2query_deserializeOpModifySpotFleetRequest) ID() string { +func (*awsEc2query_deserializeOpModifyReservedInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33477,9 +34046,9 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySpotFleetRequest(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyReservedInstances(response, &metadata) } - output := &ModifySpotFleetRequestOutput{} + output := &ModifyReservedInstancesOutput{} out.Result = output var buff [1024]byte @@ -33500,7 +34069,7 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33514,7 +34083,7 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33547,14 +34116,14 @@ func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.R } } -type awsEc2query_deserializeOpModifySubnetAttribute struct { +type awsEc2query_deserializeOpModifySecurityGroupRules struct { } -func (*awsEc2query_deserializeOpModifySubnetAttribute) ID() string { +func (*awsEc2query_deserializeOpModifySecurityGroupRules) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySubnetAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33568,21 +34137,44 @@ func (m *awsEc2query_deserializeOpModifySubnetAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySubnetAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySecurityGroupRules(response, &metadata) } - output := &ModifySubnetAttributeOutput{} + output := &ModifySecurityGroupRulesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifySecurityGroupRulesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySubnetAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySecurityGroupRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33615,14 +34207,14 @@ func awsEc2query_deserializeOpErrorModifySubnetAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices struct { +type awsEc2query_deserializeOpModifySnapshotAttribute struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { +func (*awsEc2query_deserializeOpModifySnapshotAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33636,44 +34228,21 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotAttribute(response, &metadata) } - output := &ModifyTrafficMirrorFilterNetworkServicesOutput{} + output := &ModifySnapshotAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterNetworkServicesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33706,14 +34275,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(resp } } -type awsEc2query_deserializeOpModifyTrafficMirrorFilterRule struct { +type awsEc2query_deserializeOpModifySpotFleetRequest struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_deserializeOpModifySpotFleetRequest) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33727,9 +34296,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySpotFleetRequest(response, &metadata) } - output := &ModifyTrafficMirrorFilterRuleOutput{} + output := &ModifySpotFleetRequestOutput{} out.Result = output var buff [1024]byte @@ -33750,7 +34319,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterRuleOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33764,7 +34333,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33797,14 +34366,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smith } } -type awsEc2query_deserializeOpModifyTrafficMirrorSession struct { +type awsEc2query_deserializeOpModifySubnetAttribute struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorSession) ID() string { +func (*awsEc2query_deserializeOpModifySubnetAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySubnetAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33818,44 +34387,21 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySubnetAttribute(response, &metadata) } - output := &ModifyTrafficMirrorSessionOutput{} + output := &ModifySubnetAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorSessionOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySubnetAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33888,14 +34434,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyht } } -type awsEc2query_deserializeOpModifyTransitGateway struct { +type awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices struct { } -func (*awsEc2query_deserializeOpModifyTransitGateway) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -33909,9 +34455,9 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response, &metadata) } - output := &ModifyTransitGatewayOutput{} + output := &ModifyTrafficMirrorFilterNetworkServicesOutput{} out.Result = output var buff [1024]byte @@ -33932,7 +34478,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterNetworkServicesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33946,7 +34492,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -33979,14 +34525,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Res } } -type awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference struct { +type awsEc2query_deserializeOpModifyTrafficMirrorFilterRule struct { } -func (*awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34000,9 +34546,9 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response, &metadata) } - output := &ModifyTransitGatewayPrefixListReferenceOutput{} + output := &ModifyTrafficMirrorFilterRuleOutput{} out.Result = output var buff [1024]byte @@ -34023,7 +34569,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayPrefixListReferenceOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterRuleOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34037,7 +34583,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34070,14 +34616,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(respo } } -type awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpModifyTrafficMirrorSession struct { } -func (*awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorSession) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34091,9 +34637,9 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response, &metadata) } - output := &ModifyTransitGatewayVpcAttachmentOutput{} + output := &ModifyTrafficMirrorSessionOutput{} out.Result = output var buff [1024]byte @@ -34114,7 +34660,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayVpcAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorSessionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34128,7 +34674,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34161,14 +34707,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpModifyVolume struct { +type awsEc2query_deserializeOpModifyTransitGateway struct { } -func (*awsEc2query_deserializeOpModifyVolume) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34182,9 +34728,9 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVolume(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGateway(response, &metadata) } - output := &ModifyVolumeOutput{} + output := &ModifyTransitGatewayOutput{} out.Result = output var buff [1024]byte @@ -34205,7 +34751,7 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVolumeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34219,7 +34765,7 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34252,14 +34798,14 @@ func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpModifyVolumeAttribute struct { +type awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference struct { } -func (*awsEc2query_deserializeOpModifyVolumeAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34273,89 +34819,44 @@ func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVolumeAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response, &metadata) } - output := &ModifyVolumeAttributeOutput{} + output := &ModifyTransitGatewayPrefixListReferenceOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorModifyVolumeAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - return genericError - } -} - -type awsEc2query_deserializeOpModifyVpcAttribute struct { -} - -func (*awsEc2query_deserializeOpModifyVpcAttribute) ID() string { - return "OperationDeserializer" -} -func (m *awsEc2query_deserializeOpModifyVpcAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayPrefixListReferenceOutput(&output, decoder) if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcAttribute(response, &metadata) - } - output := &ModifyVpcAttributeOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34388,14 +34889,14 @@ func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpModifyVpcEndpoint struct { +type awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34409,9 +34910,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response, &metadata) } - output := &ModifyVpcEndpointOutput{} + output := &ModifyTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -34432,7 +34933,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34446,7 +34947,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34479,14 +34980,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { +type awsEc2query_deserializeOpModifyVolume struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_deserializeOpModifyVolume) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34500,9 +35001,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVolume(response, &metadata) } - output := &ModifyVpcEndpointConnectionNotificationOutput{} + output := &ModifyVolumeOutput{} out.Result = output var buff [1024]byte @@ -34523,7 +35024,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVolumeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34537,7 +35038,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34570,14 +35071,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(respo } } -type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { +type awsEc2query_deserializeOpModifyVolumeAttribute struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_deserializeOpModifyVolumeAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34591,44 +35092,21 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVolumeAttribute(response, &metadata) } - output := &ModifyVpcEndpointServiceConfigurationOutput{} + output := &ModifyVolumeAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVolumeAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34661,14 +35139,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(respons } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { +type awsEc2query_deserializeOpModifyVpcAttribute struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34682,44 +35160,21 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcAttribute(response, &metadata) } - output := &ModifyVpcEndpointServicePermissionsOutput{} + output := &ModifyVpcAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34752,14 +35207,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response } } -type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { +type awsEc2query_deserializeOpModifyVpcEndpoint struct { } -func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34773,9 +35228,9 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) } - output := &ModifyVpcPeeringConnectionOptionsOutput{} + output := &ModifyVpcEndpointOutput{} out.Result = output var buff [1024]byte @@ -34796,7 +35251,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34810,7 +35265,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34843,14 +35298,14 @@ func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *s } } -type awsEc2query_deserializeOpModifyVpcTenancy struct { +type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { } -func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34864,9 +35319,9 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcTenancy(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) } - output := &ModifyVpcTenancyOutput{} + output := &ModifyVpcEndpointConnectionNotificationOutput{} out.Result = output var buff [1024]byte @@ -34887,7 +35342,7 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34901,7 +35356,7 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34934,14 +35389,14 @@ func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpModifyVpnConnection struct { +type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34955,9 +35410,9 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) } - output := &ModifyVpnConnectionOutput{} + output := &ModifyVpcEndpointServiceConfigurationOutput{} out.Result = output var buff [1024]byte @@ -34978,7 +35433,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34992,7 +35447,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35025,14 +35480,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { +type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { } -func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35046,9 +35501,9 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) } - output := &ModifyVpnConnectionOptionsOutput{} + output := &ModifyVpcEndpointServicePermissionsOutput{} out.Result = output var buff [1024]byte @@ -35069,7 +35524,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35083,7 +35538,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35116,14 +35571,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { +type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { +func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35137,9 +35592,9 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) } - output := &ModifyVpnTunnelCertificateOutput{} + output := &ModifyVpcPeeringConnectionOptionsOutput{} out.Result = output var buff [1024]byte @@ -35160,7 +35615,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35174,7 +35629,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35207,14 +35662,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { +type awsEc2query_deserializeOpModifyVpcTenancy struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35228,9 +35683,9 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcTenancy(response, &metadata) } - output := &ModifyVpnTunnelOptionsOutput{} + output := &ModifyVpcTenancyOutput{} out.Result = output var buff [1024]byte @@ -35251,7 +35706,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35265,7 +35720,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35298,14 +35753,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.R } } -type awsEc2query_deserializeOpMonitorInstances struct { +type awsEc2query_deserializeOpModifyVpnConnection struct { } -func (*awsEc2query_deserializeOpMonitorInstances) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35319,9 +35774,9 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnection(response, &metadata) } - output := &MonitorInstancesOutput{} + output := &ModifyVpnConnectionOutput{} out.Result = output var buff [1024]byte @@ -35342,7 +35797,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35356,7 +35811,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35389,14 +35844,14 @@ func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpMoveAddressToVpc struct { +type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { } -func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35410,9 +35865,9 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMoveAddressToVpc(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) } - output := &MoveAddressToVpcOutput{} + output := &ModifyVpnConnectionOptionsOutput{} out.Result = output var buff [1024]byte @@ -35433,7 +35888,7 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35447,7 +35902,7 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35480,14 +35935,14 @@ func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpProvisionByoipCidr struct { +type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { } -func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { +func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35501,9 +35956,9 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) } - output := &ProvisionByoipCidrOutput{} + output := &ModifyVpnTunnelCertificateOutput{} out.Result = output var buff [1024]byte @@ -35524,7 +35979,7 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35538,7 +35993,7 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35571,14 +36026,14 @@ func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpPurchaseHostReservation struct { +type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { } -func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { +func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35592,9 +36047,9 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata) } - output := &PurchaseHostReservationOutput{} + output := &ModifyVpnTunnelOptionsOutput{} out.Result = output var buff [1024]byte @@ -35615,7 +36070,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35629,7 +36084,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35662,14 +36117,14 @@ func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp. } } -type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { +type awsEc2query_deserializeOpMonitorInstances struct { } -func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { +func (*awsEc2query_deserializeOpMonitorInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35683,9 +36138,9 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata) } - output := &PurchaseReservedInstancesOfferingOutput{} + output := &MonitorInstancesOutput{} out.Result = output var buff [1024]byte @@ -35706,7 +36161,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35720,7 +36175,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35753,14 +36208,14 @@ func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *s } } -type awsEc2query_deserializeOpPurchaseScheduledInstances struct { +type awsEc2query_deserializeOpMoveAddressToVpc struct { } -func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35774,9 +36229,9 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMoveAddressToVpc(response, &metadata) } - output := &PurchaseScheduledInstancesOutput{} + output := &MoveAddressToVpcOutput{} out.Result = output var buff [1024]byte @@ -35797,7 +36252,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35811,7 +36266,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35844,14 +36299,14 @@ func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyht } } -type awsEc2query_deserializeOpRebootInstances struct { +type awsEc2query_deserializeOpProvisionByoipCidr struct { } -func (*awsEc2query_deserializeOpRebootInstances) ID() string { +func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35865,21 +36320,44 @@ func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata) } - output := &RebootInstancesOutput{} + output := &ProvisionByoipCidrOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -35912,14 +36390,14 @@ func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response } } -type awsEc2query_deserializeOpRegisterImage struct { +type awsEc2query_deserializeOpPurchaseHostReservation struct { } -func (*awsEc2query_deserializeOpRegisterImage) ID() string { +func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -35933,9 +36411,9 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) } - output := &RegisterImageOutput{} + output := &PurchaseHostReservationOutput{} out.Result = output var buff [1024]byte @@ -35956,7 +36434,7 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35970,7 +36448,7 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36003,14 +36481,14 @@ func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { +type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { } -func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36024,9 +36502,9 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) } - output := &RegisterInstanceEventNotificationAttributesOutput{} + output := &PurchaseReservedInstancesOfferingOutput{} out.Result = output var buff [1024]byte @@ -36047,7 +36525,7 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36061,7 +36539,7 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36094,14 +36572,14 @@ func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { +type awsEc2query_deserializeOpPurchaseScheduledInstances struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { +func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36115,9 +36593,9 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupMembersOutput{} + output := &PurchaseScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -36138,7 +36616,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36152,7 +36630,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36185,14 +36663,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { +type awsEc2query_deserializeOpRebootInstances struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { +func (*awsEc2query_deserializeOpRebootInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36206,44 +36684,21 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} + output := &RebootInstancesOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36276,14 +36731,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(r } } -type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { +type awsEc2query_deserializeOpRegisterImage struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { +func (*awsEc2query_deserializeOpRegisterImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36297,9 +36752,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata) } - output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} + output := &RegisterImageOutput{} out.Result = output var buff [1024]byte @@ -36320,7 +36775,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36334,7 +36789,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36367,14 +36822,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociatio } } -type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { +type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { +func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36388,9 +36843,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) } - output := &RejectTransitGatewayPeeringAttachmentOutput{} + output := &RegisterInstanceEventNotificationAttributesOutput{} out.Result = output var buff [1024]byte @@ -36411,7 +36866,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36425,7 +36880,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36458,14 +36913,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(respons } } -type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36479,9 +36934,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) } - output := &RejectTransitGatewayVpcAttachmentOutput{} + output := &RegisterTransitGatewayMulticastGroupMembersOutput{} out.Result = output var buff [1024]byte @@ -36502,7 +36957,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36516,7 +36971,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36549,14 +37004,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { } -func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36570,9 +37025,9 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) } - output := &RejectVpcEndpointConnectionsOutput{} + output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} out.Result = output var buff [1024]byte @@ -36593,7 +37048,7 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36607,7 +37062,7 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36640,14 +37095,14 @@ func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithy } } -type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { +type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { } -func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36661,9 +37116,9 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) } - output := &RejectVpcPeeringConnectionOutput{} + output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} out.Result = output var buff [1024]byte @@ -36684,7 +37139,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36698,7 +37153,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36731,14 +37186,14 @@ func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyht } } -type awsEc2query_deserializeOpReleaseAddress struct { +type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { } -func (*awsEc2query_deserializeOpReleaseAddress) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36752,21 +37207,44 @@ func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) } - output := &ReleaseAddressOutput{} + output := &RejectTransitGatewayPeeringAttachmentOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36799,14 +37277,14 @@ func awsEc2query_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpReleaseHosts struct { +type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpReleaseHosts) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36820,9 +37298,9 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReleaseHosts(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) } - output := &ReleaseHostsOutput{} + output := &RejectTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -36843,7 +37321,7 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36857,7 +37335,7 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36890,14 +37368,14 @@ func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { +type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { } -func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { +func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -36911,9 +37389,9 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) } - output := &ReplaceIamInstanceProfileAssociationOutput{} + output := &RejectVpcEndpointConnectionsOutput{} out.Result = output var buff [1024]byte @@ -36934,7 +37412,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36948,7 +37426,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -36981,14 +37459,14 @@ func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response } } -type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { +type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { +func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37002,9 +37480,9 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) } - output := &ReplaceNetworkAclAssociationOutput{} + output := &RejectVpcPeeringConnectionOutput{} out.Result = output var buff [1024]byte @@ -37025,7 +37503,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37039,7 +37517,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37072,14 +37550,14 @@ func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { +type awsEc2query_deserializeOpReleaseAddress struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { +func (*awsEc2query_deserializeOpReleaseAddress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37093,9 +37571,9 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata) } - output := &ReplaceNetworkAclEntryOutput{} + output := &ReleaseAddressOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -37107,7 +37585,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37140,14 +37618,14 @@ func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response *smithyhttp.R } } -type awsEc2query_deserializeOpReplaceRoute struct { +type awsEc2query_deserializeOpReleaseHosts struct { } -func (*awsEc2query_deserializeOpReplaceRoute) ID() string { +func (*awsEc2query_deserializeOpReleaseHosts) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37161,21 +37639,44 @@ func (m *awsEc2query_deserializeOpReplaceRoute) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseHosts(response, &metadata) } - output := &ReplaceRouteOutput{} + output := &ReleaseHostsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37208,14 +37709,14 @@ func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { +type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { } -func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { +func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37229,9 +37730,9 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) } - output := &ReplaceRouteTableAssociationOutput{} + output := &ReplaceIamInstanceProfileAssociationOutput{} out.Result = output var buff [1024]byte @@ -37252,7 +37753,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37266,7 +37767,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37299,14 +37800,14 @@ func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { +type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { } -func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37320,9 +37821,9 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) } - output := &ReplaceTransitGatewayRouteOutput{} + output := &ReplaceNetworkAclAssociationOutput{} out.Result = output var buff [1024]byte @@ -37343,7 +37844,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37357,7 +37858,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37390,14 +37891,14 @@ func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyht } } -type awsEc2query_deserializeOpReportInstanceStatus struct { +type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { } -func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37411,9 +37912,9 @@ func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata) } - output := &ReportInstanceStatusOutput{} + output := &ReplaceNetworkAclEntryOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -37425,7 +37926,7 @@ func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37458,14 +37959,14 @@ func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Res } } -type awsEc2query_deserializeOpRequestSpotFleet struct { +type awsEc2query_deserializeOpReplaceRoute struct { } -func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { +func (*awsEc2query_deserializeOpReplaceRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37479,44 +37980,21 @@ func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRequestSpotFleet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceRoute(response, &metadata) } - output := &RequestSpotFleetOutput{} + output := &ReplaceRouteOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRequestSpotFleetOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37549,14 +38027,14 @@ func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpRequestSpotInstances struct { +type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { } -func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { +func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37570,9 +38048,9 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) } - output := &RequestSpotInstancesOutput{} + output := &ReplaceRouteTableAssociationOutput{} out.Result = output var buff [1024]byte @@ -37593,7 +38071,7 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37607,7 +38085,7 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37640,14 +38118,14 @@ func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Res } } -type awsEc2query_deserializeOpResetAddressAttribute struct { +type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { } -func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { +func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37661,9 +38139,9 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetAddressAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) } - output := &ResetAddressAttributeOutput{} + output := &ReplaceTransitGatewayRouteOutput{} out.Result = output var buff [1024]byte @@ -37684,7 +38162,7 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37698,7 +38176,7 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37731,14 +38209,14 @@ func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { +type awsEc2query_deserializeOpReportInstanceStatus struct { } -func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37752,44 +38230,21 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata) } - output := &ResetEbsDefaultKmsKeyIdOutput{} + output := &ReportInstanceStatusOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37822,14 +38277,14 @@ func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp. } } -type awsEc2query_deserializeOpResetFpgaImageAttribute struct { +type awsEc2query_deserializeOpRequestSpotFleet struct { } -func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { +func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37843,9 +38298,9 @@ func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRequestSpotFleet(response, &metadata) } - output := &ResetFpgaImageAttributeOutput{} + output := &RequestSpotFleetOutput{} out.Result = output var buff [1024]byte @@ -37866,7 +38321,7 @@ func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRequestSpotFleetOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37880,7 +38335,7 @@ func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37913,14 +38368,14 @@ func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpResetImageAttribute struct { +type awsEc2query_deserializeOpRequestSpotInstances struct { } -func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { +func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -37934,21 +38389,44 @@ func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata) } - output := &ResetImageAttributeOutput{} + output := &RequestSpotInstancesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37981,14 +38459,14 @@ func awsEc2query_deserializeOpErrorResetImageAttribute(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpResetInstanceAttribute struct { +type awsEc2query_deserializeOpResetAddressAttribute struct { } -func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string { +func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetInstanceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38002,21 +38480,44 @@ func (m *awsEc2query_deserializeOpResetInstanceAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetInstanceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetAddressAttribute(response, &metadata) } - output := &ResetInstanceAttributeOutput{} + output := &ResetAddressAttributeOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38049,14 +38550,14 @@ func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { +type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { } -func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38070,21 +38571,44 @@ func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata) } - output := &ResetNetworkInterfaceAttributeOutput{} + output := &ResetEbsDefaultKmsKeyIdOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38117,14 +38641,14 @@ func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response *smit } } -type awsEc2query_deserializeOpResetSnapshotAttribute struct { +type awsEc2query_deserializeOpResetFpgaImageAttribute struct { } -func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string { +func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetSnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38138,21 +38662,44 @@ func (m *awsEc2query_deserializeOpResetSnapshotAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetSnapshotAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) } - output := &ResetSnapshotAttributeOutput{} + output := &ResetFpgaImageAttributeOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38185,14 +38732,14 @@ func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpRestoreAddressToClassic struct { +type awsEc2query_deserializeOpResetImageAttribute struct { } -func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { +func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38206,44 +38753,21 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata) } - output := &RestoreAddressToClassicOutput{} + output := &ResetImageAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38276,14 +38800,14 @@ func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp. } } -type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { +type awsEc2query_deserializeOpResetInstanceAttribute struct { } -func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { +func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetInstanceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38297,44 +38821,21 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetInstanceAttribute(response, &metadata) } - output := &RestoreManagedPrefixListVersionOutput{} + output := &ResetInstanceAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38367,14 +38868,14 @@ func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smi } } -type awsEc2query_deserializeOpRevokeClientVpnIngress struct { +type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { } -func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { +func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38388,44 +38889,21 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) } - output := &RevokeClientVpnIngressOutput{} + output := &ResetNetworkInterfaceAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeClientVpnIngressOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38458,14 +38936,14 @@ func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.R } } -type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { +type awsEc2query_deserializeOpResetSnapshotAttribute struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { +func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetSnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38479,44 +38957,21 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetSnapshotAttribute(response, &metadata) } - output := &RevokeSecurityGroupEgressOutput{} + output := &ResetSnapshotAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38549,14 +39004,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhtt } } -type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { +type awsEc2query_deserializeOpRestoreAddressToClassic struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { +func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38570,9 +39025,9 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata) } - output := &RevokeSecurityGroupIngressOutput{} + output := &RestoreAddressToClassicOutput{} out.Result = output var buff [1024]byte @@ -38593,7 +39048,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38607,7 +39062,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38640,14 +39095,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyht } } -type awsEc2query_deserializeOpRunInstances struct { +type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { } -func (*awsEc2query_deserializeOpRunInstances) ID() string { +func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38661,9 +39116,9 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRunInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) } - output := &RunInstancesOutput{} + output := &RestoreManagedPrefixListVersionOutput{} out.Result = output var buff [1024]byte @@ -38684,7 +39139,7 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38698,7 +39153,7 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38731,14 +39186,14 @@ func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpRunScheduledInstances struct { +type awsEc2query_deserializeOpRevokeClientVpnIngress struct { } -func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38752,9 +39207,9 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) } - output := &RunScheduledInstancesOutput{} + output := &RevokeClientVpnIngressOutput{} out.Result = output var buff [1024]byte @@ -38775,7 +39230,7 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRevokeClientVpnIngressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38789,7 +39244,7 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38822,14 +39277,14 @@ func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Re } } -type awsEc2query_deserializeOpSearchLocalGatewayRoutes struct { +type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { } -func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38843,9 +39298,9 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) } - output := &SearchLocalGatewayRoutesOutput{} + output := &RevokeSecurityGroupEgressOutput{} out.Result = output var buff [1024]byte @@ -38866,7 +39321,7 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38880,7 +39335,7 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -38913,14 +39368,14 @@ func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp } } -type awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups struct { +type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string { +func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -38934,9 +39389,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) } - output := &SearchTransitGatewayMulticastGroupsOutput{} + output := &RevokeSecurityGroupIngressOutput{} out.Result = output var buff [1024]byte @@ -38957,7 +39412,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38971,7 +39426,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39004,14 +39459,14 @@ func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response } } -type awsEc2query_deserializeOpSearchTransitGatewayRoutes struct { +type awsEc2query_deserializeOpRunInstances struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpRunInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39025,9 +39480,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRunInstances(response, &metadata) } - output := &SearchTransitGatewayRoutesOutput{} + output := &RunInstancesOutput{} out.Result = output var buff [1024]byte @@ -39048,7 +39503,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39062,75 +39517,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpSendDiagnosticInterrupt struct { -} - -func (*awsEc2query_deserializeOpSendDiagnosticInterrupt) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response, &metadata) - } - output := &SendDiagnosticInterruptOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39163,14 +39550,14 @@ func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp. } } -type awsEc2query_deserializeOpStartInstances struct { +type awsEc2query_deserializeOpRunScheduledInstances struct { } -func (*awsEc2query_deserializeOpStartInstances) ID() string { +func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39184,9 +39571,9 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata) } - output := &StartInstancesOutput{} + output := &RunScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -39207,7 +39594,7 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39221,7 +39608,7 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39254,14 +39641,14 @@ func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpStartNetworkInsightsAnalysis struct { +type awsEc2query_deserializeOpSearchLocalGatewayRoutes struct { } -func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string { +func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39275,9 +39662,9 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata) } - output := &StartNetworkInsightsAnalysisOutput{} + output := &SearchLocalGatewayRoutesOutput{} out.Result = output var buff [1024]byte @@ -39298,7 +39685,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39312,7 +39699,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39345,14 +39732,14 @@ func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithy } } -type awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct { +type awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups struct { } -func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { +func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39366,9 +39753,9 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata) } - output := &StartVpcEndpointServicePrivateDnsVerificationOutput{} + output := &SearchTransitGatewayMulticastGroupsOutput{} out.Result = output var buff [1024]byte @@ -39389,7 +39776,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39403,7 +39790,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) return out, metadata, err } -func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39436,14 +39823,14 @@ func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification } } -type awsEc2query_deserializeOpStopInstances struct { +type awsEc2query_deserializeOpSearchTransitGatewayRoutes struct { } -func (*awsEc2query_deserializeOpStopInstances) ID() string { +func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39457,9 +39844,9 @@ func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStopInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata) } - output := &StopInstancesOutput{} + output := &SearchTransitGatewayRoutesOutput{} out.Result = output var buff [1024]byte @@ -39480,7 +39867,7 @@ func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStopInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39494,7 +39881,7 @@ func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorStopInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39527,14 +39914,14 @@ func awsEc2query_deserializeOpErrorStopInstances(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpTerminateClientVpnConnections struct { +type awsEc2query_deserializeOpSendDiagnosticInterrupt struct { } -func (*awsEc2query_deserializeOpTerminateClientVpnConnections) ID() string { +func (*awsEc2query_deserializeOpSendDiagnosticInterrupt) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39548,44 +39935,21 @@ func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response, &metadata) } - output := &TerminateClientVpnConnectionsOutput{} + output := &SendDiagnosticInterruptOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentTerminateClientVpnConnectionsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39618,14 +39982,14 @@ func awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response *smith } } -type awsEc2query_deserializeOpTerminateInstances struct { +type awsEc2query_deserializeOpStartInstances struct { } -func (*awsEc2query_deserializeOpTerminateInstances) ID() string { +func (*awsEc2query_deserializeOpStartInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39639,9 +40003,9 @@ func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorTerminateInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorStartInstances(response, &metadata) } - output := &TerminateInstancesOutput{} + output := &StartInstancesOutput{} out.Result = output var buff [1024]byte @@ -39662,7 +40026,7 @@ func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentTerminateInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentStartInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39676,7 +40040,7 @@ func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorTerminateInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39709,14 +40073,14 @@ func awsEc2query_deserializeOpErrorTerminateInstances(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpUnassignIpv6Addresses struct { +type awsEc2query_deserializeOpStartNetworkInsightsAnalysis struct { } -func (*awsEc2query_deserializeOpUnassignIpv6Addresses) ID() string { +func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpUnassignIpv6Addresses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -39730,9 +40094,9 @@ func (m *awsEc2query_deserializeOpUnassignIpv6Addresses) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata) } - output := &UnassignIpv6AddressesOutput{} + output := &StartNetworkInsightsAnalysisOutput{} out.Result = output var buff [1024]byte @@ -39753,7 +40117,7 @@ func (m *awsEc2query_deserializeOpUnassignIpv6Addresses) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentUnassignIpv6AddressesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39767,7 +40131,462 @@ func (m *awsEc2query_deserializeOpUnassignIpv6Addresses) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct { +} + +func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata) + } + output := &StartVpcEndpointServicePrivateDnsVerificationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpStopInstances struct { +} + +func (*awsEc2query_deserializeOpStopInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorStopInstances(response, &metadata) + } + output := &StopInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentStopInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorStopInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpTerminateClientVpnConnections struct { +} + +func (*awsEc2query_deserializeOpTerminateClientVpnConnections) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response, &metadata) + } + output := &TerminateClientVpnConnectionsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentTerminateClientVpnConnectionsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpTerminateInstances struct { +} + +func (*awsEc2query_deserializeOpTerminateInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorTerminateInstances(response, &metadata) + } + output := &TerminateInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentTerminateInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorTerminateInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpUnassignIpv6Addresses struct { +} + +func (*awsEc2query_deserializeOpUnassignIpv6Addresses) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpUnassignIpv6Addresses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response, &metadata) + } + output := &UnassignIpv6AddressesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentUnassignIpv6AddressesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -48900,6 +49719,86 @@ func awsEc2query_deserializeDocumentCustomerGatewayListUnwrapped(v *[]types.Cust *v = sv return nil } +func awsEc2query_deserializeDocumentDedicatedHostIdList(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentDedicatedHostIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentDeleteFleetError(v **types.DeleteFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -61969,6 +62868,460 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecificationListUnwrapped(v * *v = sv return nil } +func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceEventWindow + if *v == nil { + sv = &types.InstanceEventWindow{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("associationTarget", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(&sv.AssociationTarget, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("cronExpression", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CronExpression = ptr.String(xtv) + } + + case strings.EqualFold("instanceEventWindowId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceEventWindowId = ptr.String(xtv) + } + + case strings.EqualFold("name", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Name = ptr.String(xtv) + } + + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.InstanceEventWindowState(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("timeRangeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(&sv.TimeRanges, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(v **types.InstanceEventWindowAssociationTarget, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceEventWindowAssociationTarget + if *v == nil { + sv = &types.InstanceEventWindowAssociationTarget{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("dedicatedHostIdSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDedicatedHostIdList(&sv.DedicatedHostIds, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceIdSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceIdList(&sv.InstanceIds, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowSet(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceEventWindow + if *v == nil { + sv = make([]types.InstanceEventWindow, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceEventWindow + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceEventWindow(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowSetUnwrapped(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceEventWindow + if *v == nil { + sv = make([]types.InstanceEventWindow, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceEventWindow + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceEventWindow(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceEventWindowStateChange(v **types.InstanceEventWindowStateChange, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceEventWindowStateChange + if *v == nil { + sv = &types.InstanceEventWindowStateChange{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceEventWindowId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceEventWindowId = ptr.String(xtv) + } + + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.InstanceEventWindowState(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceEventWindowTimeRange + if *v == nil { + sv = &types.InstanceEventWindowTimeRange{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("endHour", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.EndHour = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("endWeekDay", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.EndWeekDay = types.WeekDay(xtv) + } + + case strings.EqualFold("startHour", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.StartHour = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("startWeekDay", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.StartWeekDay = types.WeekDay(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceEventWindowTimeRange + if *v == nil { + sv = make([]types.InstanceEventWindowTimeRange, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceEventWindowTimeRange + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeListUnwrapped(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceEventWindowTimeRange + if *v == nil { + sv = make([]types.InstanceEventWindowTimeRange, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceEventWindowTimeRange + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentInstanceExportDetails(v **types.InstanceExportDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -62093,6 +63446,86 @@ func awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types. return nil } +func awsEc2query_deserializeDocumentInstanceIdList(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentInstanceIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -62253,6 +63686,123 @@ func awsEc2query_deserializeDocumentInstanceIdsSetUnwrapped(v *[]string, decoder *v = sv return nil } +func awsEc2query_deserializeDocumentInstanceIpv4Prefix(v **types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceIpv4Prefix + if *v == nil { + sv = &types.InstanceIpv4Prefix{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipv4Prefix", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv4Prefix = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceIpv4PrefixList(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceIpv4Prefix + if *v == nil { + sv = make([]types.InstanceIpv4Prefix, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceIpv4Prefix + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceIpv4PrefixListUnwrapped(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceIpv4Prefix + if *v == nil { + sv = make([]types.InstanceIpv4Prefix, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceIpv4Prefix + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentInstanceIpv6Address(v **types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -62370,6 +63920,123 @@ func awsEc2query_deserializeDocumentInstanceIpv6AddressListUnwrapped(v *[]types. *v = sv return nil } +func awsEc2query_deserializeDocumentInstanceIpv6Prefix(v **types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceIpv6Prefix + if *v == nil { + sv = &types.InstanceIpv6Prefix{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipv6Prefix", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv6Prefix = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceIpv6PrefixList(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceIpv6Prefix + if *v == nil { + sv = make([]types.InstanceIpv6Prefix, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceIpv6Prefix + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceIpv6PrefixListUnwrapped(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceIpv6Prefix + if *v == nil { + sv = make([]types.InstanceIpv6Prefix, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceIpv6Prefix + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentInstanceList(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -62719,12 +64386,24 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN sv.InterfaceType = ptr.String(xtv) } + case strings.EqualFold("ipv4PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("ipv6AddressesSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentInstanceIpv6AddressList(&sv.Ipv6Addresses, nodeDecoder); err != nil { return err } + case strings.EqualFold("ipv6PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("macAddress", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -63269,6 +64948,29 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty sv.InterfaceType = ptr.String(xtv) } + case strings.EqualFold("Ipv4PrefixCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Ipv4PrefixCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("Ipv4Prefix", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("ipv6AddressCount", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -63292,6 +64994,29 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty return err } + case strings.EqualFold("Ipv6PrefixCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Ipv6PrefixCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("Ipv6Prefix", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("NetworkCardIndex", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -65719,6 +67444,86 @@ func awsEc2query_deserializeDocumentIpPermissionListUnwrapped(v *[]types.IpPermi *v = sv return nil } +func awsEc2query_deserializeDocumentIpPrefixList(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpPrefixListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentIpRange(v **types.IpRange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -65929,6 +67734,357 @@ func awsEc2query_deserializeDocumentIpRangesUnwrapped(v *[]string, decoder smith *v = sv return nil } +func awsEc2query_deserializeDocumentIpv4PrefixesList(v *[]types.Ipv4PrefixSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.Ipv4PrefixSpecification + if *v == nil { + sv = make([]types.Ipv4PrefixSpecification, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.Ipv4PrefixSpecification + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv4PrefixSpecification(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv4PrefixesListUnwrapped(v *[]types.Ipv4PrefixSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv4PrefixSpecification + if *v == nil { + sv = make([]types.Ipv4PrefixSpecification, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.Ipv4PrefixSpecification + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv4PrefixSpecification(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentIpv4PrefixList(v *[]types.Ipv4PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.Ipv4PrefixSpecificationRequest + if *v == nil { + sv = make([]types.Ipv4PrefixSpecificationRequest, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.Ipv4PrefixSpecificationRequest + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv4PrefixListUnwrapped(v *[]types.Ipv4PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv4PrefixSpecificationRequest + if *v == nil { + sv = make([]types.Ipv4PrefixSpecificationRequest, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.Ipv4PrefixSpecificationRequest + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentIpv4PrefixListResponse(v *[]types.Ipv4PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.Ipv4PrefixSpecificationResponse + if *v == nil { + sv = make([]types.Ipv4PrefixSpecificationResponse, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.Ipv4PrefixSpecificationResponse + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv4PrefixListResponseUnwrapped(v *[]types.Ipv4PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv4PrefixSpecificationResponse + if *v == nil { + sv = make([]types.Ipv4PrefixSpecificationResponse, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.Ipv4PrefixSpecificationResponse + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentIpv4PrefixSpecification(v **types.Ipv4PrefixSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Ipv4PrefixSpecification + if *v == nil { + sv = &types.Ipv4PrefixSpecification{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipv4Prefix", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv4Prefix = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv4PrefixSpecificationRequest(v **types.Ipv4PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Ipv4PrefixSpecificationRequest + if *v == nil { + sv = &types.Ipv4PrefixSpecificationRequest{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Ipv4Prefix", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv4Prefix = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv4PrefixSpecificationResponse(v **types.Ipv4PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Ipv4PrefixSpecificationResponse + if *v == nil { + sv = &types.Ipv4PrefixSpecificationResponse{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipv4Prefix", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv4Prefix = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentIpv6AddressList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -66398,6 +68554,357 @@ func awsEc2query_deserializeDocumentIpv6PoolSetUnwrapped(v *[]types.Ipv6Pool, de *v = sv return nil } +func awsEc2query_deserializeDocumentIpv6PrefixesList(v *[]types.Ipv6PrefixSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.Ipv6PrefixSpecification + if *v == nil { + sv = make([]types.Ipv6PrefixSpecification, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.Ipv6PrefixSpecification + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv6PrefixSpecification(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv6PrefixesListUnwrapped(v *[]types.Ipv6PrefixSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv6PrefixSpecification + if *v == nil { + sv = make([]types.Ipv6PrefixSpecification, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.Ipv6PrefixSpecification + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv6PrefixSpecification(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentIpv6PrefixList(v *[]types.Ipv6PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.Ipv6PrefixSpecificationRequest + if *v == nil { + sv = make([]types.Ipv6PrefixSpecificationRequest, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.Ipv6PrefixSpecificationRequest + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv6PrefixListUnwrapped(v *[]types.Ipv6PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv6PrefixSpecificationRequest + if *v == nil { + sv = make([]types.Ipv6PrefixSpecificationRequest, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.Ipv6PrefixSpecificationRequest + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentIpv6PrefixListResponse(v *[]types.Ipv6PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.Ipv6PrefixSpecificationResponse + if *v == nil { + sv = make([]types.Ipv6PrefixSpecificationResponse, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.Ipv6PrefixSpecificationResponse + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv6PrefixListResponseUnwrapped(v *[]types.Ipv6PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv6PrefixSpecificationResponse + if *v == nil { + sv = make([]types.Ipv6PrefixSpecificationResponse, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.Ipv6PrefixSpecificationResponse + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentIpv6PrefixSpecification(v **types.Ipv6PrefixSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Ipv6PrefixSpecification + if *v == nil { + sv = &types.Ipv6PrefixSpecification{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipv6Prefix", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv6Prefix = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv6PrefixSpecificationRequest(v **types.Ipv6PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Ipv6PrefixSpecificationRequest + if *v == nil { + sv = &types.Ipv6PrefixSpecificationRequest{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Ipv6Prefix", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv6Prefix = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpv6PrefixSpecificationResponse(v **types.Ipv6PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Ipv6PrefixSpecificationResponse + if *v == nil { + sv = &types.Ipv6PrefixSpecificationResponse{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipv6Prefix", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv6Prefix = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentIpv6Range(v **types.Ipv6Range, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -68423,6 +70930,29 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif sv.InterfaceType = ptr.String(xtv) } + case strings.EqualFold("ipv4PrefixCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Ipv4PrefixCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("ipv4PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpv4PrefixListResponse(&sv.Ipv4Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("ipv6AddressCount", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -68446,6 +70976,29 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif return err } + case strings.EqualFold("ipv6PrefixCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Ipv6PrefixCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("ipv6PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpv6PrefixListResponse(&sv.Ipv6Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("networkCardIndex", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -73610,12 +76163,24 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, sv.InterfaceType = types.NetworkInterfaceType(xtv) } + case strings.EqualFold("ipv4PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpv4PrefixesList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("ipv6AddressesSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesList(&sv.Ipv6Addresses, nodeDecoder); err != nil { return err } + case strings.EqualFold("ipv6PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpv6PrefixesList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("macAddress", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -89259,6 +91824,194 @@ func awsEc2query_deserializeDocumentSubnetCidrBlockState(v **types.SubnetCidrBlo return nil } +func awsEc2query_deserializeDocumentSubnetCidrReservation(v **types.SubnetCidrReservation, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.SubnetCidrReservation + if *v == nil { + sv = &types.SubnetCidrReservation{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("cidr", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Cidr = ptr.String(xtv) + } + + case strings.EqualFold("description", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Description = ptr.String(xtv) + } + + case strings.EqualFold("ownerId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OwnerId = ptr.String(xtv) + } + + case strings.EqualFold("reservationType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ReservationType = types.SubnetCidrReservationType(xtv) + } + + case strings.EqualFold("subnetCidrReservationId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SubnetCidrReservationId = ptr.String(xtv) + } + + case strings.EqualFold("subnetId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SubnetId = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentSubnetCidrReservationList(v *[]types.SubnetCidrReservation, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.SubnetCidrReservation + if *v == nil { + sv = make([]types.SubnetCidrReservation, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.SubnetCidrReservation + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentSubnetCidrReservationListUnwrapped(v *[]types.SubnetCidrReservation, decoder smithyxml.NodeDecoder) error { + var sv []types.SubnetCidrReservation + if *v == nil { + sv = make([]types.SubnetCidrReservation, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.SubnetCidrReservation + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(v **types.SubnetIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -102734,6 +105487,12 @@ func awsEc2query_deserializeOpDocumentAssignIpv6AddressesOutput(v **AssignIpv6Ad return err } + case strings.EqualFold("assignedIpv6PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpPrefixList(&sv.AssignedIpv6Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("networkInterfaceId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -102783,6 +105542,12 @@ func awsEc2query_deserializeOpDocumentAssignPrivateIpAddressesOutput(v **AssignP originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("assignedIpv4PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpv4PrefixesList(&sv.AssignedIpv4Prefixes, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("assignedPrivateIpAddressesSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(&sv.AssignedPrivateIpAddresses, nodeDecoder); err != nil { @@ -103037,6 +105802,48 @@ func awsEc2query_deserializeOpDocumentAssociateIamInstanceProfileOutput(v **Asso return nil } +func awsEc2query_deserializeOpDocumentAssociateInstanceEventWindowOutput(v **AssociateInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *AssociateInstanceEventWindowOutput + if *v == nil { + sv = &AssociateInstanceEventWindowOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceEventWindow", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentAssociateRouteTableOutput(v **AssociateRouteTableOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -104997,6 +107804,48 @@ func awsEc2query_deserializeOpDocumentCreateImageOutput(v **CreateImageOutput, d return nil } +func awsEc2query_deserializeOpDocumentCreateInstanceEventWindowOutput(v **CreateInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateInstanceEventWindowOutput + if *v == nil { + sv = &CreateInstanceEventWindowOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceEventWindow", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentCreateInstanceExportTaskOutput(v **CreateInstanceExportTaskOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -106325,6 +109174,48 @@ func awsEc2query_deserializeOpDocumentCreateStoreImageTaskOutput(v **CreateStore return nil } +func awsEc2query_deserializeOpDocumentCreateSubnetCidrReservationOutput(v **CreateSubnetCidrReservationOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateSubnetCidrReservationOutput + if *v == nil { + sv = &CreateSubnetCidrReservationOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("subnetCidrReservation", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&sv.SubnetCidrReservation, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentCreateSubnetOutput(v **CreateSubnetOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -107873,6 +110764,48 @@ func awsEc2query_deserializeOpDocumentDeleteFpgaImageOutput(v **DeleteFpgaImageO return nil } +func awsEc2query_deserializeOpDocumentDeleteInstanceEventWindowOutput(v **DeleteInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteInstanceEventWindowOutput + if *v == nil { + sv = &DeleteInstanceEventWindowOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceEventWindowState", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceEventWindowStateChange(&sv.InstanceEventWindowState, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDeleteLaunchTemplateOutput(v **DeleteLaunchTemplateOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -108336,6 +111269,48 @@ func awsEc2query_deserializeOpDocumentDeleteQueuedReservedInstancesOutput(v **De return nil } +func awsEc2query_deserializeOpDocumentDeleteSubnetCidrReservationOutput(v **DeleteSubnetCidrReservationOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteSubnetCidrReservationOutput + if *v == nil { + sv = &DeleteSubnetCidrReservationOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("deletedSubnetCidrReservation", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&sv.DeletedSubnetCidrReservation, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterOutput(v **DeleteTrafficMirrorFilterOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -111435,13 +114410,207 @@ func awsEc2query_deserializeOpDocumentDescribeImportSnapshotTasksOutput(v **Desc return nil } -func awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(v **DescribeInstanceAttributeOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(v **DescribeInstanceAttributeOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeInstanceAttributeOutput + if *v == nil { + sv = &DescribeInstanceAttributeOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("blockDeviceMapping", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("disableApiTermination", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.DisableApiTermination, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ebsOptimized", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EbsOptimized, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("enaSupport", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnaSupport, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("enclaveOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEnclaveOptions(&sv.EnclaveOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("groupSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceId = ptr.String(xtv) + } + + case strings.EqualFold("instanceInitiatedShutdownBehavior", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.InstanceInitiatedShutdownBehavior, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceType", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.InstanceType, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("kernel", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.KernelId, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("productCodes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ramdisk", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.RamdiskId, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("rootDeviceName", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.RootDeviceName, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sourceDestCheck", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.SourceDestCheck, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sriovNetSupport", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.SriovNetSupport, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("userData", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeValue(&sv.UserData, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput(v **DescribeInstanceCreditSpecificationsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeInstanceCreditSpecificationsOutput + if *v == nil { + sv = &DescribeInstanceCreditSpecificationsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceCreditSpecificationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceCreditSpecificationList(&sv.InstanceCreditSpecifications, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeInstanceEventNotificationAttributesOutput(v **DescribeInstanceEventNotificationAttributesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeInstanceAttributeOutput + var sv *DescribeInstanceEventNotificationAttributesOutput if *v == nil { - sv = &DescribeInstanceAttributeOutput{} + sv = &DescribeInstanceEventNotificationAttributesOutput{} } else { sv = *v } @@ -111457,106 +114626,9 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(v **Descri originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("blockDeviceMapping", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("disableApiTermination", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.DisableApiTermination, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ebsOptimized", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EbsOptimized, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("enaSupport", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnaSupport, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("enclaveOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnclaveOptions(&sv.EnclaveOptions, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("groupSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceId = ptr.String(xtv) - } - - case strings.EqualFold("instanceInitiatedShutdownBehavior", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.InstanceInitiatedShutdownBehavior, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceType", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.InstanceType, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("kernel", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.KernelId, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("productCodes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ramdisk", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.RamdiskId, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("rootDeviceName", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.RootDeviceName, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("sourceDestCheck", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.SourceDestCheck, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("sriovNetSupport", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.SriovNetSupport, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("userData", t.Name.Local): + case strings.EqualFold("instanceTagAttribute", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&sv.UserData, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(&sv.InstanceTagAttribute, nodeDecoder); err != nil { return err } @@ -111574,13 +114646,13 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(v **Descri return nil } -func awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput(v **DescribeInstanceCreditSpecificationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeInstanceEventWindowsOutput(v **DescribeInstanceEventWindowsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeInstanceCreditSpecificationsOutput + var sv *DescribeInstanceEventWindowsOutput if *v == nil { - sv = &DescribeInstanceCreditSpecificationsOutput{} + sv = &DescribeInstanceEventWindowsOutput{} } else { sv = *v } @@ -111596,9 +114668,9 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceCreditSpecificationSet", t.Name.Local): + case strings.EqualFold("instanceEventWindowSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceCreditSpecificationList(&sv.InstanceCreditSpecifications, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceEventWindowSet(&sv.InstanceEventWindows, nodeDecoder); err != nil { return err } @@ -111629,48 +114701,6 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput return nil } -func awsEc2query_deserializeOpDocumentDescribeInstanceEventNotificationAttributesOutput(v **DescribeInstanceEventNotificationAttributesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeInstanceEventNotificationAttributesOutput - if *v == nil { - sv = &DescribeInstanceEventNotificationAttributesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceTagAttribute", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(&sv.InstanceTagAttribute, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsEc2query_deserializeOpDocumentDescribeInstancesOutput(v **DescribeInstancesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -116770,6 +119800,48 @@ func awsEc2query_deserializeOpDocumentDisassociateIamInstanceProfileOutput(v **D return nil } +func awsEc2query_deserializeOpDocumentDisassociateInstanceEventWindowOutput(v **DisassociateInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DisassociateInstanceEventWindowOutput + if *v == nil { + sv = &DisassociateInstanceEventWindowOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceEventWindow", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDisassociateSubnetCidrBlockOutput(v **DisassociateSubnetCidrBlockOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -118867,6 +121939,67 @@ func awsEc2query_deserializeOpDocumentGetSerialConsoleAccessStatusOutput(v **Get return nil } +func awsEc2query_deserializeOpDocumentGetSubnetCidrReservationsOutput(v **GetSubnetCidrReservationsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetSubnetCidrReservationsOutput + if *v == nil { + sv = &GetSubnetCidrReservationsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("subnetIpv4CidrReservationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSubnetCidrReservationList(&sv.SubnetIpv4CidrReservations, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("subnetIpv6CidrReservationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSubnetCidrReservationList(&sv.SubnetIpv6CidrReservations, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentGetTransitGatewayAttachmentPropagationsOutput(v **GetTransitGatewayAttachmentPropagationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -120219,6 +123352,48 @@ func awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(v **Mod return nil } +func awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(v **ModifyInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyInstanceEventWindowOutput + if *v == nil { + sv = &ModifyInstanceEventWindowOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceEventWindow", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(v **ModifyInstanceMetadataOptionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -123417,6 +126592,12 @@ func awsEc2query_deserializeOpDocumentUnassignIpv6AddressesOutput(v **UnassignIp return err } + case strings.EqualFold("unassignedIpv6PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpPrefixList(&sv.UnassignedIpv6Prefixes, nodeDecoder); err != nil { + return err + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() diff --git a/service/ec2/generated.json b/service/ec2/generated.json index 9ff8891f867..c767112a2f8 100644 --- a/service/ec2/generated.json +++ b/service/ec2/generated.json @@ -24,6 +24,7 @@ "api_op_AssociateDhcpOptions.go", "api_op_AssociateEnclaveCertificateIamRole.go", "api_op_AssociateIamInstanceProfile.go", + "api_op_AssociateInstanceEventWindow.go", "api_op_AssociateRouteTable.go", "api_op_AssociateSubnetCidrBlock.go", "api_op_AssociateTransitGatewayMulticastDomain.go", @@ -65,6 +66,7 @@ "api_op_CreateFlowLogs.go", "api_op_CreateFpgaImage.go", "api_op_CreateImage.go", + "api_op_CreateInstanceEventWindow.go", "api_op_CreateInstanceExportTask.go", "api_op_CreateInternetGateway.go", "api_op_CreateKeyPair.go", @@ -91,6 +93,7 @@ "api_op_CreateSpotDatafeedSubscription.go", "api_op_CreateStoreImageTask.go", "api_op_CreateSubnet.go", + "api_op_CreateSubnetCidrReservation.go", "api_op_CreateTags.go", "api_op_CreateTrafficMirrorFilter.go", "api_op_CreateTrafficMirrorFilterRule.go", @@ -123,6 +126,7 @@ "api_op_DeleteFleets.go", "api_op_DeleteFlowLogs.go", "api_op_DeleteFpgaImage.go", + "api_op_DeleteInstanceEventWindow.go", "api_op_DeleteInternetGateway.go", "api_op_DeleteKeyPair.go", "api_op_DeleteLaunchTemplate.go", @@ -145,6 +149,7 @@ "api_op_DeleteSnapshot.go", "api_op_DeleteSpotDatafeedSubscription.go", "api_op_DeleteSubnet.go", + "api_op_DeleteSubnetCidrReservation.go", "api_op_DeleteTags.go", "api_op_DeleteTrafficMirrorFilter.go", "api_op_DeleteTrafficMirrorFilterRule.go", @@ -216,6 +221,7 @@ "api_op_DescribeInstanceAttribute.go", "api_op_DescribeInstanceCreditSpecifications.go", "api_op_DescribeInstanceEventNotificationAttributes.go", + "api_op_DescribeInstanceEventWindows.go", "api_op_DescribeInstanceStatus.go", "api_op_DescribeInstanceTypeOfferings.go", "api_op_DescribeInstanceTypes.go", @@ -314,6 +320,7 @@ "api_op_DisassociateClientVpnTargetNetwork.go", "api_op_DisassociateEnclaveCertificateIamRole.go", "api_op_DisassociateIamInstanceProfile.go", + "api_op_DisassociateInstanceEventWindow.go", "api_op_DisassociateRouteTable.go", "api_op_DisassociateSubnetCidrBlock.go", "api_op_DisassociateTransitGatewayMulticastDomain.go", @@ -351,6 +358,7 @@ "api_op_GetPasswordData.go", "api_op_GetReservedInstancesExchangeQuote.go", "api_op_GetSerialConsoleAccessStatus.go", + "api_op_GetSubnetCidrReservations.go", "api_op_GetTransitGatewayAttachmentPropagations.go", "api_op_GetTransitGatewayMulticastDomainAssociations.go", "api_op_GetTransitGatewayPrefixListReferences.go", @@ -378,6 +386,7 @@ "api_op_ModifyInstanceCapacityReservationAttributes.go", "api_op_ModifyInstanceCreditSpecification.go", "api_op_ModifyInstanceEventStartTime.go", + "api_op_ModifyInstanceEventWindow.go", "api_op_ModifyInstanceMetadataOptions.go", "api_op_ModifyInstancePlacement.go", "api_op_ModifyLaunchTemplate.go", diff --git a/service/ec2/serializers.go b/service/ec2/serializers.go index 4ddc3b4e4c0..bbe7207c961 100644 --- a/service/ec2/serializers.go +++ b/service/ec2/serializers.go @@ -968,6 +968,62 @@ func (m *awsEc2query_serializeOpAssociateIamInstanceProfile) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpAssociateInstanceEventWindow struct { +} + +func (*awsEc2query_serializeOpAssociateInstanceEventWindow) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpAssociateInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*AssociateInstanceEventWindowInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("AssociateInstanceEventWindow") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentAssociateInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpAssociateRouteTable struct { } @@ -3208,126 +3264,14 @@ func (m *awsEc2query_serializeOpCreateImage) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateInstanceExportTask struct { -} - -func (*awsEc2query_serializeOpCreateInstanceExportTask) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpCreateInstanceExportTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateInstanceExportTaskInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateInstanceExportTask") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentCreateInstanceExportTaskInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsEc2query_serializeOpCreateInternetGateway struct { -} - -func (*awsEc2query_serializeOpCreateInternetGateway) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpCreateInternetGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateInternetGatewayInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - request.Request.URL.Path = "/" - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateInternetGateway") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentCreateInternetGatewayInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsEc2query_serializeOpCreateKeyPair struct { +type awsEc2query_serializeOpCreateInstanceEventWindow struct { } -func (*awsEc2query_serializeOpCreateKeyPair) ID() string { +func (*awsEc2query_serializeOpCreateInstanceEventWindow) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3335,7 +3279,7 @@ func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateKeyPairInput) + input, ok := in.Parameters.(*CreateInstanceEventWindowInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3352,10 +3296,10 @@ func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateKeyPair") + body.Key("Action").String("CreateInstanceEventWindow") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateKeyPairInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3376,14 +3320,14 @@ func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateLaunchTemplate struct { +type awsEc2query_serializeOpCreateInstanceExportTask struct { } -func (*awsEc2query_serializeOpCreateLaunchTemplate) ID() string { +func (*awsEc2query_serializeOpCreateInstanceExportTask) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateInstanceExportTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3391,7 +3335,7 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateLaunchTemplateInput) + input, ok := in.Parameters.(*CreateInstanceExportTaskInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3408,10 +3352,10 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateLaunchTemplate") + body.Key("Action").String("CreateInstanceExportTask") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateLaunchTemplateInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateInstanceExportTaskInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3432,14 +3376,14 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateLaunchTemplateVersion struct { +type awsEc2query_serializeOpCreateInternetGateway struct { } -func (*awsEc2query_serializeOpCreateLaunchTemplateVersion) ID() string { +func (*awsEc2query_serializeOpCreateInternetGateway) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateInternetGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3447,7 +3391,7 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateLaunchTemplateVersionInput) + input, ok := in.Parameters.(*CreateInternetGatewayInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3464,10 +3408,10 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateLaunchTemplateVersion") + body.Key("Action").String("CreateInternetGateway") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateLaunchTemplateVersionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateInternetGatewayInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3488,14 +3432,14 @@ func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateLocalGatewayRoute struct { +type awsEc2query_serializeOpCreateKeyPair struct { } -func (*awsEc2query_serializeOpCreateLocalGatewayRoute) ID() string { +func (*awsEc2query_serializeOpCreateKeyPair) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateKeyPair) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3503,7 +3447,7 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateLocalGatewayRouteInput) + input, ok := in.Parameters.(*CreateKeyPairInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3520,10 +3464,10 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateLocalGatewayRoute") + body.Key("Action").String("CreateKeyPair") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateLocalGatewayRouteInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateKeyPairInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3544,14 +3488,14 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation struct { +type awsEc2query_serializeOpCreateLaunchTemplate struct { } -func (*awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) ID() string { +func (*awsEc2query_serializeOpCreateLaunchTemplate) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateLaunchTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3559,7 +3503,7 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) Hand return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateLocalGatewayRouteTableVpcAssociationInput) + input, ok := in.Parameters.(*CreateLaunchTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3576,10 +3520,10 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) Hand bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateLocalGatewayRouteTableVpcAssociation") + body.Key("Action").String("CreateLaunchTemplate") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateLocalGatewayRouteTableVpcAssociationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateLaunchTemplateInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3600,14 +3544,14 @@ func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) Hand return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateManagedPrefixList struct { +type awsEc2query_serializeOpCreateLaunchTemplateVersion struct { } -func (*awsEc2query_serializeOpCreateManagedPrefixList) ID() string { +func (*awsEc2query_serializeOpCreateLaunchTemplateVersion) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateManagedPrefixList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateLaunchTemplateVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3615,7 +3559,7 @@ func (m *awsEc2query_serializeOpCreateManagedPrefixList) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateManagedPrefixListInput) + input, ok := in.Parameters.(*CreateLaunchTemplateVersionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3632,10 +3576,10 @@ func (m *awsEc2query_serializeOpCreateManagedPrefixList) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateManagedPrefixList") + body.Key("Action").String("CreateLaunchTemplateVersion") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateManagedPrefixListInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateLaunchTemplateVersionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3656,14 +3600,14 @@ func (m *awsEc2query_serializeOpCreateManagedPrefixList) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateNatGateway struct { +type awsEc2query_serializeOpCreateLocalGatewayRoute struct { } -func (*awsEc2query_serializeOpCreateNatGateway) ID() string { +func (*awsEc2query_serializeOpCreateLocalGatewayRoute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateNatGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateLocalGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3671,7 +3615,7 @@ func (m *awsEc2query_serializeOpCreateNatGateway) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateNatGatewayInput) + input, ok := in.Parameters.(*CreateLocalGatewayRouteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3688,10 +3632,10 @@ func (m *awsEc2query_serializeOpCreateNatGateway) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateNatGateway") + body.Key("Action").String("CreateLocalGatewayRoute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateNatGatewayInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateLocalGatewayRouteInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3712,14 +3656,14 @@ func (m *awsEc2query_serializeOpCreateNatGateway) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateNetworkAcl struct { +type awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation struct { } -func (*awsEc2query_serializeOpCreateNetworkAcl) ID() string { +func (*awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateNetworkAcl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3727,7 +3671,7 @@ func (m *awsEc2query_serializeOpCreateNetworkAcl) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateNetworkAclInput) + input, ok := in.Parameters.(*CreateLocalGatewayRouteTableVpcAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3744,10 +3688,10 @@ func (m *awsEc2query_serializeOpCreateNetworkAcl) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateNetworkAcl") + body.Key("Action").String("CreateLocalGatewayRouteTableVpcAssociation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateNetworkAclInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateLocalGatewayRouteTableVpcAssociationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3768,14 +3712,14 @@ func (m *awsEc2query_serializeOpCreateNetworkAcl) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateNetworkAclEntry struct { +type awsEc2query_serializeOpCreateManagedPrefixList struct { } -func (*awsEc2query_serializeOpCreateNetworkAclEntry) ID() string { +func (*awsEc2query_serializeOpCreateManagedPrefixList) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateNetworkAclEntry) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateManagedPrefixList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3783,7 +3727,7 @@ func (m *awsEc2query_serializeOpCreateNetworkAclEntry) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateNetworkAclEntryInput) + input, ok := in.Parameters.(*CreateManagedPrefixListInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3800,10 +3744,178 @@ func (m *awsEc2query_serializeOpCreateNetworkAclEntry) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateNetworkAclEntry") + body.Key("Action").String("CreateManagedPrefixList") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateNetworkAclEntryInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateManagedPrefixListInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpCreateNatGateway struct { +} + +func (*awsEc2query_serializeOpCreateNatGateway) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateNatGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateNatGatewayInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateNatGateway") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateNatGatewayInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpCreateNetworkAcl struct { +} + +func (*awsEc2query_serializeOpCreateNetworkAcl) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateNetworkAcl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateNetworkAclInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateNetworkAcl") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateNetworkAclInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpCreateNetworkAclEntry struct { +} + +func (*awsEc2query_serializeOpCreateNetworkAclEntry) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateNetworkAclEntry) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateNetworkAclEntryInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateNetworkAclEntry") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateNetworkAclEntryInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -4664,6 +4776,62 @@ func (m *awsEc2query_serializeOpCreateSubnet) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpCreateSubnetCidrReservation struct { +} + +func (*awsEc2query_serializeOpCreateSubnetCidrReservation) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateSubnetCidrReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateSubnetCidrReservationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateSubnetCidrReservation") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateSubnetCidrReservationInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpCreateTags struct { } @@ -6456,6 +6624,62 @@ func (m *awsEc2query_serializeOpDeleteFpgaImage) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDeleteInstanceEventWindow struct { +} + +func (*awsEc2query_serializeOpDeleteInstanceEventWindow) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDeleteInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteInstanceEventWindowInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DeleteInstanceEventWindow") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDeleteInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDeleteInternetGateway struct { } @@ -7688,6 +7912,62 @@ func (m *awsEc2query_serializeOpDeleteSubnet) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDeleteSubnetCidrReservation struct { +} + +func (*awsEc2query_serializeOpDeleteSubnetCidrReservation) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDeleteSubnetCidrReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteSubnetCidrReservationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DeleteSubnetCidrReservation") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDeleteSubnetCidrReservationInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDeleteTags struct { } @@ -11664,6 +11944,62 @@ func (m *awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes) Han return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDescribeInstanceEventWindows struct { +} + +func (*awsEc2query_serializeOpDescribeInstanceEventWindows) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeInstanceEventWindows) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeInstanceEventWindowsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeInstanceEventWindows") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeInstanceEventWindowsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDescribeInstances struct { } @@ -17152,6 +17488,62 @@ func (m *awsEc2query_serializeOpDisassociateIamInstanceProfile) HandleSerialize( return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDisassociateInstanceEventWindow struct { +} + +func (*awsEc2query_serializeOpDisassociateInstanceEventWindow) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDisassociateInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DisassociateInstanceEventWindowInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DisassociateInstanceEventWindow") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDisassociateInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDisassociateRouteTable struct { } @@ -19224,6 +19616,62 @@ func (m *awsEc2query_serializeOpGetSerialConsoleAccessStatus) HandleSerialize(ct return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpGetSubnetCidrReservations struct { +} + +func (*awsEc2query_serializeOpGetSubnetCidrReservations) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpGetSubnetCidrReservations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetSubnetCidrReservationsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("GetSubnetCidrReservations") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentGetSubnetCidrReservationsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations struct { } @@ -20736,6 +21184,62 @@ func (m *awsEc2query_serializeOpModifyInstanceEventStartTime) HandleSerialize(ct return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpModifyInstanceEventWindow struct { +} + +func (*awsEc2query_serializeOpModifyInstanceEventWindow) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpModifyInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ModifyInstanceEventWindowInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ModifyInstanceEventWindow") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentModifyInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpModifyInstanceMetadataOptions struct { } @@ -26311,6 +26815,19 @@ func awsEc2query_serializeDocumentCustomerGatewayIdStringList(v []string, value return nil } +func awsEc2query_serializeDocumentDedicatedHostIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsEc2query_serializeDocumentDeleteQueuedReservedInstancesIdList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -27457,6 +27974,130 @@ func awsEc2query_serializeDocumentInstanceCreditSpecificationRequest(v *types.In return nil } +func awsEc2query_serializeDocumentInstanceEventWindowAssociationRequest(v *types.InstanceEventWindowAssociationRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.DedicatedHostIds != nil { + objectKey := object.FlatKey("DedicatedHostId") + if err := awsEc2query_serializeDocumentDedicatedHostIdList(v.DedicatedHostIds, objectKey); err != nil { + return err + } + } + + if v.InstanceIds != nil { + objectKey := object.FlatKey("InstanceId") + if err := awsEc2query_serializeDocumentInstanceIdList(v.InstanceIds, objectKey); err != nil { + return err + } + } + + if v.InstanceTags != nil { + objectKey := object.FlatKey("InstanceTag") + if err := awsEc2query_serializeDocumentTagList(v.InstanceTags, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentInstanceEventWindowDisassociationRequest(v *types.InstanceEventWindowDisassociationRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.DedicatedHostIds != nil { + objectKey := object.FlatKey("DedicatedHostId") + if err := awsEc2query_serializeDocumentDedicatedHostIdList(v.DedicatedHostIds, objectKey); err != nil { + return err + } + } + + if v.InstanceIds != nil { + objectKey := object.FlatKey("InstanceId") + if err := awsEc2query_serializeDocumentInstanceIdList(v.InstanceIds, objectKey); err != nil { + return err + } + } + + if v.InstanceTags != nil { + objectKey := object.FlatKey("InstanceTag") + if err := awsEc2query_serializeDocumentTagList(v.InstanceTags, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentInstanceEventWindowIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("InstanceEventWindowId") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequest(v *types.InstanceEventWindowTimeRangeRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.EndHour != nil { + objectKey := object.Key("EndHour") + objectKey.Integer(*v.EndHour) + } + + if len(v.EndWeekDay) > 0 { + objectKey := object.Key("EndWeekDay") + objectKey.String(string(v.EndWeekDay)) + } + + if v.StartHour != nil { + objectKey := object.Key("StartHour") + objectKey.Integer(*v.StartHour) + } + + if len(v.StartWeekDay) > 0 { + objectKey := object.Key("StartWeekDay") + objectKey.String(string(v.StartWeekDay)) + } + + return nil +} + +func awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequestSet(v []types.InstanceEventWindowTimeRangeRequest, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Member") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequest(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsEc2query_serializeDocumentInstanceIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsEc2query_serializeDocumentInstanceIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -27606,6 +28247,18 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types objectKey.String(*v.InterfaceType) } + if v.Ipv4PrefixCount != nil { + objectKey := object.Key("Ipv4PrefixCount") + objectKey.Integer(*v.Ipv4PrefixCount) + } + + if v.Ipv4Prefixes != nil { + objectKey := object.FlatKey("Ipv4Prefix") + if err := awsEc2query_serializeDocumentIpv4PrefixList(v.Ipv4Prefixes, objectKey); err != nil { + return err + } + } + if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") objectKey.Integer(*v.Ipv6AddressCount) @@ -27618,6 +28271,18 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types } } + if v.Ipv6PrefixCount != nil { + objectKey := object.Key("Ipv6PrefixCount") + objectKey.Integer(*v.Ipv6PrefixCount) + } + + if v.Ipv6Prefixes != nil { + objectKey := object.FlatKey("Ipv6Prefix") + if err := awsEc2query_serializeDocumentIpv6PrefixList(v.Ipv6Prefixes, objectKey); err != nil { + return err + } + } + if v.NetworkCardIndex != nil { objectKey := object.Key("NetworkCardIndex") objectKey.Integer(*v.NetworkCardIndex) @@ -27803,6 +28468,19 @@ func awsEc2query_serializeDocumentIpPermissionList(v []types.IpPermission, value return nil } +func awsEc2query_serializeDocumentIpPrefixList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsEc2query_serializeDocumentIpRange(v *types.IpRange, value query.Value) error { object := value.Object() _ = object @@ -27835,6 +28513,33 @@ func awsEc2query_serializeDocumentIpRangeList(v []types.IpRange, value query.Val return nil } +func awsEc2query_serializeDocumentIpv4PrefixList(v []types.Ipv4PrefixSpecificationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentIpv4PrefixSpecificationRequest(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsEc2query_serializeDocumentIpv4PrefixSpecificationRequest(v *types.Ipv4PrefixSpecificationRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Ipv4Prefix != nil { + objectKey := object.Key("Ipv4Prefix") + objectKey.String(*v.Ipv4Prefix) + } + + return nil +} + func awsEc2query_serializeDocumentIpv6AddressList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -27861,6 +28566,33 @@ func awsEc2query_serializeDocumentIpv6PoolIdList(v []string, value query.Value) return nil } +func awsEc2query_serializeDocumentIpv6PrefixList(v []types.Ipv6PrefixSpecificationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentIpv6PrefixSpecificationRequest(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsEc2query_serializeDocumentIpv6PrefixSpecificationRequest(v *types.Ipv6PrefixSpecificationRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Ipv6Prefix != nil { + objectKey := object.Key("Ipv6Prefix") + objectKey.String(*v.Ipv6Prefix) + } + + return nil +} + func awsEc2query_serializeDocumentIpv6Range(v *types.Ipv6Range, value query.Value) error { object := value.Object() _ = object @@ -28318,6 +29050,18 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific objectKey.String(*v.InterfaceType) } + if v.Ipv4PrefixCount != nil { + objectKey := object.Key("Ipv4PrefixCount") + objectKey.Integer(*v.Ipv4PrefixCount) + } + + if v.Ipv4Prefixes != nil { + objectKey := object.FlatKey("Ipv4Prefix") + if err := awsEc2query_serializeDocumentIpv4PrefixList(v.Ipv4Prefixes, objectKey); err != nil { + return err + } + } + if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") objectKey.Integer(*v.Ipv6AddressCount) @@ -28330,6 +29074,18 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific } } + if v.Ipv6PrefixCount != nil { + objectKey := object.Key("Ipv6PrefixCount") + objectKey.Integer(*v.Ipv6PrefixCount) + } + + if v.Ipv6Prefixes != nil { + objectKey := object.FlatKey("Ipv6Prefix") + if err := awsEc2query_serializeDocumentIpv6PrefixList(v.Ipv6Prefixes, objectKey); err != nil { + return err + } + } + if v.NetworkCardIndex != nil { objectKey := object.Key("NetworkCardIndex") objectKey.Integer(*v.NetworkCardIndex) @@ -32797,6 +33553,18 @@ func awsEc2query_serializeOpDocumentAssignIpv6AddressesInput(v *AssignIpv6Addres } } + if v.Ipv6PrefixCount != nil { + objectKey := object.Key("Ipv6PrefixCount") + objectKey.Integer(*v.Ipv6PrefixCount) + } + + if v.Ipv6Prefixes != nil { + objectKey := object.FlatKey("Ipv6Prefix") + if err := awsEc2query_serializeDocumentIpPrefixList(v.Ipv6Prefixes, objectKey); err != nil { + return err + } + } + if v.NetworkInterfaceId != nil { objectKey := object.Key("NetworkInterfaceId") objectKey.String(*v.NetworkInterfaceId) @@ -32814,6 +33582,18 @@ func awsEc2query_serializeOpDocumentAssignPrivateIpAddressesInput(v *AssignPriva objectKey.Boolean(*v.AllowReassignment) } + if v.Ipv4PrefixCount != nil { + objectKey := object.Key("Ipv4PrefixCount") + objectKey.Integer(*v.Ipv4PrefixCount) + } + + if v.Ipv4Prefixes != nil { + objectKey := object.FlatKey("Ipv4Prefix") + if err := awsEc2query_serializeDocumentIpPrefixList(v.Ipv4Prefixes, objectKey); err != nil { + return err + } + } + if v.NetworkInterfaceId != nil { objectKey := object.Key("NetworkInterfaceId") objectKey.String(*v.NetworkInterfaceId) @@ -32966,6 +33746,30 @@ func awsEc2query_serializeOpDocumentAssociateIamInstanceProfileInput(v *Associat return nil } +func awsEc2query_serializeOpDocumentAssociateInstanceEventWindowInput(v *AssociateInstanceEventWindowInput, value query.Value) error { + object := value.Object() + _ = object + + if v.AssociationTarget != nil { + objectKey := object.Key("AssociationTarget") + if err := awsEc2query_serializeDocumentInstanceEventWindowAssociationRequest(v.AssociationTarget, objectKey); err != nil { + return err + } + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.InstanceEventWindowId != nil { + objectKey := object.Key("InstanceEventWindowId") + objectKey.String(*v.InstanceEventWindowId) + } + + return nil +} + func awsEc2query_serializeOpDocumentAssociateRouteTableInput(v *AssociateRouteTableInput, value query.Value) error { object := value.Object() _ = object @@ -34404,6 +35208,42 @@ func awsEc2query_serializeOpDocumentCreateImageInput(v *CreateImageInput, value return nil } +func awsEc2query_serializeOpDocumentCreateInstanceEventWindowInput(v *CreateInstanceEventWindowInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CronExpression != nil { + objectKey := object.Key("CronExpression") + objectKey.String(*v.CronExpression) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Name != nil { + objectKey := object.Key("Name") + objectKey.String(*v.Name) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + if v.TimeRanges != nil { + objectKey := object.FlatKey("TimeRange") + if err := awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequestSet(v.TimeRanges, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateInstanceExportTaskInput(v *CreateInstanceExportTaskInput, value query.Value) error { object := value.Object() _ = object @@ -34879,6 +35719,18 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork objectKey.String(string(v.InterfaceType)) } + if v.Ipv4PrefixCount != nil { + objectKey := object.Key("Ipv4PrefixCount") + objectKey.Integer(*v.Ipv4PrefixCount) + } + + if v.Ipv4Prefixes != nil { + objectKey := object.FlatKey("Ipv4Prefix") + if err := awsEc2query_serializeDocumentIpv4PrefixList(v.Ipv4Prefixes, objectKey); err != nil { + return err + } + } + if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") objectKey.Integer(*v.Ipv6AddressCount) @@ -34891,6 +35743,18 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork } } + if v.Ipv6PrefixCount != nil { + objectKey := object.Key("Ipv6PrefixCount") + objectKey.Integer(*v.Ipv6PrefixCount) + } + + if v.Ipv6Prefixes != nil { + objectKey := object.FlatKey("Ipv6Prefix") + if err := awsEc2query_serializeDocumentIpv6PrefixList(v.Ipv6Prefixes, objectKey); err != nil { + return err + } + } + if v.PrivateIpAddress != nil { objectKey := object.Key("PrivateIpAddress") objectKey.String(*v.PrivateIpAddress) @@ -35352,6 +36216,45 @@ func awsEc2query_serializeOpDocumentCreateStoreImageTaskInput(v *CreateStoreImag return nil } +func awsEc2query_serializeOpDocumentCreateSubnetCidrReservationInput(v *CreateSubnetCidrReservationInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Cidr != nil { + objectKey := object.Key("Cidr") + objectKey.String(*v.Cidr) + } + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if len(v.ReservationType) > 0 { + objectKey := object.Key("ReservationType") + objectKey.String(string(v.ReservationType)) + } + + if v.SubnetId != nil { + objectKey := object.Key("SubnetId") + objectKey.String(*v.SubnetId) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateSubnetInput(v *CreateSubnetInput, value query.Value) error { object := value.Object() _ = object @@ -35945,6 +36848,11 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.String(*v.AvailabilityZone) } + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + if v.DryRun != nil { objectKey := object.Key("DryRun") objectKey.Boolean(*v.DryRun) @@ -36519,6 +37427,28 @@ func awsEc2query_serializeOpDocumentDeleteFpgaImageInput(v *DeleteFpgaImageInput return nil } +func awsEc2query_serializeOpDocumentDeleteInstanceEventWindowInput(v *DeleteInstanceEventWindowInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ForceDelete != nil { + objectKey := object.Key("ForceDelete") + objectKey.Boolean(*v.ForceDelete) + } + + if v.InstanceEventWindowId != nil { + objectKey := object.Key("InstanceEventWindowId") + objectKey.String(*v.InstanceEventWindowId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDeleteInternetGatewayInput(v *DeleteInternetGatewayInput, value query.Value) error { object := value.Object() _ = object @@ -36935,6 +37865,23 @@ func awsEc2query_serializeOpDocumentDeleteSpotDatafeedSubscriptionInput(v *Delet return nil } +func awsEc2query_serializeOpDocumentDeleteSubnetCidrReservationInput(v *DeleteSubnetCidrReservationInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.SubnetCidrReservationId != nil { + objectKey := object.Key("SubnetCidrReservationId") + objectKey.String(*v.SubnetCidrReservationId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDeleteSubnetInput(v *DeleteSubnetInput, value query.Value) error { object := value.Object() _ = object @@ -38803,6 +39750,42 @@ func awsEc2query_serializeOpDocumentDescribeInstanceEventNotificationAttributesI return nil } +func awsEc2query_serializeOpDocumentDescribeInstanceEventWindowsInput(v *DescribeInstanceEventWindowsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.InstanceEventWindowIds != nil { + objectKey := object.FlatKey("InstanceEventWindowId") + if err := awsEc2query_serializeDocumentInstanceEventWindowIdSet(v.InstanceEventWindowIds, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + func awsEc2query_serializeOpDocumentDescribeInstancesInput(v *DescribeInstancesInput, value query.Value) error { object := value.Object() _ = object @@ -41988,6 +42971,30 @@ func awsEc2query_serializeOpDocumentDisassociateIamInstanceProfileInput(v *Disas return nil } +func awsEc2query_serializeOpDocumentDisassociateInstanceEventWindowInput(v *DisassociateInstanceEventWindowInput, value query.Value) error { + object := value.Object() + _ = object + + if v.AssociationTarget != nil { + objectKey := object.Key("AssociationTarget") + if err := awsEc2query_serializeDocumentInstanceEventWindowDisassociationRequest(v.AssociationTarget, objectKey); err != nil { + return err + } + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.InstanceEventWindowId != nil { + objectKey := object.Key("InstanceEventWindowId") + objectKey.String(*v.InstanceEventWindowId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDisassociateRouteTableInput(v *DisassociateRouteTableInput, value query.Value) error { object := value.Object() _ = object @@ -42774,6 +43781,40 @@ func awsEc2query_serializeOpDocumentGetSerialConsoleAccessStatusInput(v *GetSeri return nil } +func awsEc2query_serializeOpDocumentGetSubnetCidrReservationsInput(v *GetSubnetCidrReservationsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + if v.SubnetId != nil { + objectKey := object.Key("SubnetId") + objectKey.String(*v.SubnetId) + } + + return nil +} + func awsEc2query_serializeOpDocumentGetTransitGatewayAttachmentPropagationsInput(v *GetTransitGatewayAttachmentPropagationsInput, value query.Value) error { object := value.Object() _ = object @@ -43837,6 +44878,40 @@ func awsEc2query_serializeOpDocumentModifyInstanceEventStartTimeInput(v *ModifyI return nil } +func awsEc2query_serializeOpDocumentModifyInstanceEventWindowInput(v *ModifyInstanceEventWindowInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CronExpression != nil { + objectKey := object.Key("CronExpression") + objectKey.String(*v.CronExpression) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.InstanceEventWindowId != nil { + objectKey := object.Key("InstanceEventWindowId") + objectKey.String(*v.InstanceEventWindowId) + } + + if v.Name != nil { + objectKey := object.Key("Name") + objectKey.String(*v.Name) + } + + if v.TimeRanges != nil { + objectKey := object.FlatKey("TimeRange") + if err := awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequestSet(v.TimeRanges, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentModifyInstanceMetadataOptionsInput(v *ModifyInstanceMetadataOptionsInput, value query.Value) error { object := value.Object() _ = object @@ -46697,6 +47772,13 @@ func awsEc2query_serializeOpDocumentUnassignIpv6AddressesInput(v *UnassignIpv6Ad } } + if v.Ipv6Prefixes != nil { + objectKey := object.FlatKey("Ipv6Prefix") + if err := awsEc2query_serializeDocumentIpPrefixList(v.Ipv6Prefixes, objectKey); err != nil { + return err + } + } + if v.NetworkInterfaceId != nil { objectKey := object.Key("NetworkInterfaceId") objectKey.String(*v.NetworkInterfaceId) @@ -46709,6 +47791,13 @@ func awsEc2query_serializeOpDocumentUnassignPrivateIpAddressesInput(v *UnassignP object := value.Object() _ = object + if v.Ipv4Prefixes != nil { + objectKey := object.FlatKey("Ipv4Prefix") + if err := awsEc2query_serializeDocumentIpPrefixList(v.Ipv4Prefixes, objectKey); err != nil { + return err + } + } + if v.NetworkInterfaceId != nil { objectKey := object.Key("NetworkInterfaceId") objectKey.String(*v.NetworkInterfaceId) diff --git a/service/ec2/types/enums.go b/service/ec2/types/enums.go index 381215fe4a5..a4d8fba6e48 100644 --- a/service/ec2/types/enums.go +++ b/service/ec2/types/enums.go @@ -1943,6 +1943,28 @@ func (InstanceAttributeName) Values() []InstanceAttributeName { } } +type InstanceEventWindowState string + +// Enum values for InstanceEventWindowState +const ( + InstanceEventWindowStateCreating InstanceEventWindowState = "creating" + InstanceEventWindowStateDeleting InstanceEventWindowState = "deleting" + InstanceEventWindowStateActive InstanceEventWindowState = "active" + InstanceEventWindowStateDeleted InstanceEventWindowState = "deleted" +) + +// Values returns all known values for InstanceEventWindowState. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (InstanceEventWindowState) Values() []InstanceEventWindowState { + return []InstanceEventWindowState{ + "creating", + "deleting", + "active", + "deleted", + } +} + type InstanceHealthStatus string // Enum values for InstanceHealthStatus @@ -2337,6 +2359,8 @@ const ( InstanceTypeG38xlarge InstanceType = "g3.8xlarge" InstanceTypeG316xlarge InstanceType = "g3.16xlarge" InstanceTypeG3sXlarge InstanceType = "g3s.xlarge" + InstanceTypeG4adXlarge InstanceType = "g4ad.xlarge" + InstanceTypeG4ad2xlarge InstanceType = "g4ad.2xlarge" InstanceTypeG4ad4xlarge InstanceType = "g4ad.4xlarge" InstanceTypeG4ad8xlarge InstanceType = "g4ad.8xlarge" InstanceTypeG4ad16xlarge InstanceType = "g4ad.16xlarge" @@ -2750,6 +2774,8 @@ func (InstanceType) Values() []InstanceType { "g3.8xlarge", "g3.16xlarge", "g3s.xlarge", + "g4ad.xlarge", + "g4ad.2xlarge", "g4ad.4xlarge", "g4ad.8xlarge", "g4ad.16xlarge", @@ -3989,6 +4015,7 @@ const ( ResourceTypeImportImageTask ResourceType = "import-image-task" ResourceTypeImportSnapshotTask ResourceType = "import-snapshot-task" ResourceTypeInstance ResourceType = "instance" + ResourceTypeInstanceEventWindow ResourceType = "instance-event-window" ResourceTypeInternetGateway ResourceType = "internet-gateway" ResourceTypeKeyPair ResourceType = "key-pair" ResourceTypeLaunchTemplate ResourceType = "launch-template" @@ -4044,6 +4071,7 @@ func (ResourceType) Values() []ResourceType { "import-image-task", "import-snapshot-task", "instance", + "instance-event-window", "internet-gateway", "key-pair", "launch-template", @@ -4545,6 +4573,24 @@ func (SubnetCidrBlockStateCode) Values() []SubnetCidrBlockStateCode { } } +type SubnetCidrReservationType string + +// Enum values for SubnetCidrReservationType +const ( + SubnetCidrReservationTypePrefix SubnetCidrReservationType = "prefix" + SubnetCidrReservationTypeExplicit SubnetCidrReservationType = "explicit" +) + +// Values returns all known values for SubnetCidrReservationType. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (SubnetCidrReservationType) Values() []SubnetCidrReservationType { + return []SubnetCidrReservationType{ + "prefix", + "explicit", + } +} + type SubnetState string // Enum values for SubnetState @@ -5534,3 +5580,31 @@ func (VpnStaticRouteSource) Values() []VpnStaticRouteSource { "Static", } } + +type WeekDay string + +// Enum values for WeekDay +const ( + WeekDaySunday WeekDay = "sunday" + WeekDayMonday WeekDay = "monday" + WeekDayTuesday WeekDay = "tuesday" + WeekDayWednesday WeekDay = "wednesday" + WeekDayThursday WeekDay = "thursday" + WeekDayFriday WeekDay = "friday" + WeekDaySaturday WeekDay = "saturday" +) + +// Values returns all known values for WeekDay. Note that this can be expanded in +// the future, and so it is only as up to date as the client. The ordering of this +// slice is not guaranteed to be stable across updates. +func (WeekDay) Values() []WeekDay { + return []WeekDay{ + "sunday", + "monday", + "tuesday", + "wednesday", + "thursday", + "friday", + "saturday", + } +} diff --git a/service/ec2/types/types.go b/service/ec2/types/types.go index 2171f0f3ed4..90b045736d2 100644 --- a/service/ec2/types/types.go +++ b/service/ec2/types/types.go @@ -96,7 +96,7 @@ type Address struct { // The ID of the network interface. NetworkInterfaceId *string - // The ID of the account that owns the network interface. + // The ID of the Amazon Web Services account that owns the network interface. NetworkInterfaceOwnerId *string // The private IP address associated with the Elastic IP address. @@ -251,7 +251,7 @@ type AnalysisRouteTableRoute struct { // The destination IPv4 address, in CIDR notation. DestinationCidr *string - // The prefix of the AWS service. + // The prefix of the Amazon Web Service. DestinationPrefixListId *string // The ID of an egress-only internet gateway. @@ -733,7 +733,7 @@ type CapacityReservation struct { // was created. OutpostArn *string - // The ID of the account that owns the Capacity Reservation. + // The ID of the Amazon Web Services account that owns the Capacity Reservation. OwnerId *string // The date and time at which the Capacity Reservation was started. @@ -769,11 +769,11 @@ type CapacityReservation struct { // have one of the following tenancy settings: // // * default - The Capacity - // Reservation is created on hardware that is shared with other accounts. + // Reservation is created on hardware that is shared with other Amazon Web Services + // accounts. // - // * - // dedicated - The Capacity Reservation is created on single-tenant hardware that - // is dedicated to a single account. + // * dedicated - The Capacity Reservation is created on single-tenant + // hardware that is dedicated to a single Amazon Web Services account. Tenancy CapacityReservationTenancy // The total number of instances for which the Capacity Reservation reserves @@ -789,7 +789,7 @@ type CapacityReservationGroup struct { // The ARN of the resource group. GroupArn *string - // The ID of the account that owns the resource group. + // The ID of the Amazon Web Services account that owns the resource group. OwnerId *string noSmithyDocumentSerde @@ -931,7 +931,7 @@ type CarrierGateway struct { // The ID of the carrier gateway. CarrierGatewayId *string - // The AWS account ID of the owner of the carrier gateway. + // The Amazon Web Services account ID of the owner of the carrier gateway. OwnerId *string // The state of the carrier gateway. @@ -967,8 +967,8 @@ type CertificateAuthenticationRequest struct { } // Provides authorization for Amazon to bring a specific IP address range to a -// specific account using bring your own IP addresses (BYOIP). For more -// information, see Configuring your BYOIP address range +// specific Amazon Web Services account using bring your own IP addresses (BYOIP). +// For more information, see Configuring your BYOIP address range // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#prepare-for-byoip) // in the Amazon Elastic Compute Cloud User Guide. type CidrAuthorizationContext struct { @@ -1647,7 +1647,7 @@ type CreateVolumePermission struct { // The group to be added or removed. The possible value is all. Group PermissionGroup - // The AWS account ID to be added or removed. + // The ID of the Amazon Web Services account to be added or removed. UserId *string noSmithyDocumentSerde @@ -1656,10 +1656,10 @@ type CreateVolumePermission struct { // Describes modifications to the list of create volume permissions for a volume. type CreateVolumePermissionModifications struct { - // Adds the specified AWS account ID or group to the list. + // Adds the specified Amazon Web Services account ID or group to the list. Add []CreateVolumePermission - // Removes the specified AWS account ID or group from the list. + // Removes the specified Amazon Web Services account ID or group from the list. Remove []CreateVolumePermission noSmithyDocumentSerde @@ -1841,11 +1841,12 @@ type DescribeFastSnapshotRestoreSuccessItem struct { // The time at which fast snapshot restores entered the optimizing state. OptimizingTime *time.Time - // The AWS owner alias that enabled fast snapshot restores on the snapshot. This is - // intended for future use. + // The Amazon Web Services owner alias that enabled fast snapshot restores on the + // snapshot. This is intended for future use. OwnerAlias *string - // The ID of the AWS account that enabled fast snapshot restores on the snapshot. + // The ID of the Amazon Web Services account that enabled fast snapshot restores on + // the snapshot. OwnerId *string // The ID of the snapshot. @@ -1937,7 +1938,7 @@ type DhcpOptions struct { // The ID of the set of DHCP options. DhcpOptionsId *string - // The ID of the AWS account that owns the DHCP options set. + // The ID of the Amazon Web Services account that owns the DHCP options set. OwnerId *string // Any tags assigned to the DHCP options set. @@ -2023,11 +2024,12 @@ type DisableFastSnapshotRestoreSuccessItem struct { // The time at which fast snapshot restores entered the optimizing state. OptimizingTime *time.Time - // The AWS owner alias that enabled fast snapshot restores on the snapshot. This is - // intended for future use. + // The Amazon Web Services owner alias that enabled fast snapshot restores on the + // snapshot. This is intended for future use. OwnerAlias *string - // The ID of the AWS account that enabled fast snapshot restores on the snapshot. + // The ID of the Amazon Web Services account that enabled fast snapshot restores on + // the snapshot. OwnerId *string // The ID of the snapshot. @@ -2536,11 +2538,12 @@ type EnableFastSnapshotRestoreSuccessItem struct { // The time at which fast snapshot restores entered the optimizing state. OptimizingTime *time.Time - // The AWS owner alias that enabled fast snapshot restores on the snapshot. This is - // intended for future use. + // The Amazon Web Services owner alias that enabled fast snapshot restores on the + // snapshot. This is intended for future use. OwnerAlias *string - // The ID of the AWS account that enabled fast snapshot restores on the snapshot. + // The ID of the Amazon Web Services account that enabled fast snapshot restores on + // the snapshot. OwnerId *string // The ID of the snapshot. @@ -3685,7 +3688,7 @@ type Host struct { // group; otherwise, it is not. MemberOfServiceLinkedResourceGroup *bool - // The ID of the account that owns the Dedicated Host. + // The ID of the Amazon Web Services account that owns the Dedicated Host. OwnerId *string // The time that the Dedicated Host was released. @@ -3709,7 +3712,7 @@ type HostInstance struct { // The instance type (for example, m3.medium) of the running instance. InstanceType *string - // The ID of the account that owns the instance. + // The ID of the Amazon Web Services account that owns the instance. OwnerId *string noSmithyDocumentSerde @@ -4534,6 +4537,133 @@ type InstanceCreditSpecificationRequest struct { noSmithyDocumentSerde } +// The event window. +type InstanceEventWindow struct { + + // One or more targets associated with the event window. + AssociationTarget *InstanceEventWindowAssociationTarget + + // The cron expression defined for the event window. + CronExpression *string + + // The ID of the event window. + InstanceEventWindowId *string + + // The name of the event window. + Name *string + + // The current state of the event window. + State InstanceEventWindowState + + // The instance tags associated with the event window. + Tags []Tag + + // One or more time ranges defined for the event window. + TimeRanges []InstanceEventWindowTimeRange + + noSmithyDocumentSerde +} + +// One or more targets associated with the specified event window. Only one type of +// target (instance ID, instance tag, or Dedicated Host ID) can be associated with +// an event window. +type InstanceEventWindowAssociationRequest struct { + + // The IDs of the Dedicated Hosts to associate with the event window. + DedicatedHostIds []string + + // The IDs of the instances to associate with the event window. If the instance is + // on a Dedicated Host, you can't specify the Instance ID parameter; you must use + // the Dedicated Host ID parameter. + InstanceIds []string + + // The instance tags to associate with the event window. Any instances associated + // with the tags will be associated with the event window. + InstanceTags []Tag + + noSmithyDocumentSerde +} + +// One or more targets associated with the event window. +type InstanceEventWindowAssociationTarget struct { + + // The IDs of the Dedicated Hosts associated with the event window. + DedicatedHostIds []string + + // The IDs of the instances associated with the event window. + InstanceIds []string + + // The instance tags associated with the event window. Any instances associated + // with the tags will be associated with the event window. + Tags []Tag + + noSmithyDocumentSerde +} + +// The targets to disassociate from the specified event window. +type InstanceEventWindowDisassociationRequest struct { + + // The IDs of the Dedicated Hosts to disassociate from the event window. + DedicatedHostIds []string + + // The IDs of the instances to disassociate from the event window. + InstanceIds []string + + // The instance tags to disassociate from the event window. Any instances + // associated with the tags will be disassociated from the event window. + InstanceTags []Tag + + noSmithyDocumentSerde +} + +// The state of the event window. +type InstanceEventWindowStateChange struct { + + // The ID of the event window. + InstanceEventWindowId *string + + // The current state of the event window. + State InstanceEventWindowState + + noSmithyDocumentSerde +} + +// The start day and time and the end day and time of the time range, in UTC. +type InstanceEventWindowTimeRange struct { + + // The hour when the time range ends. + EndHour *int32 + + // The day on which the time range ends. + EndWeekDay WeekDay + + // The hour when the time range begins. + StartHour *int32 + + // The day on which the time range begins. + StartWeekDay WeekDay + + noSmithyDocumentSerde +} + +// The start day and time and the end day and time of the time range, in UTC. +type InstanceEventWindowTimeRangeRequest struct { + + // The hour when the time range ends. + EndHour *int32 + + // The day on which the time range ends. + EndWeekDay WeekDay + + // The hour when the time range begins. + StartHour *int32 + + // The day on which the time range begins. + StartWeekDay WeekDay + + noSmithyDocumentSerde +} + // Describes an instance to export. type InstanceExportDetails struct { @@ -4560,6 +4690,15 @@ type InstanceFamilyCreditSpecification struct { noSmithyDocumentSerde } +// Information about an IPv4 delegated prefix. +type InstanceIpv4Prefix struct { + + // One or more IPv4 delegated prefixes assigned to the network interface. + Ipv4Prefix *string + + noSmithyDocumentSerde +} + // Describes an IPv6 address. type InstanceIpv6Address struct { @@ -4578,6 +4717,15 @@ type InstanceIpv6AddressRequest struct { noSmithyDocumentSerde } +// Information about an IPv6 delegated prefix. +type InstanceIpv6Prefix struct { + + // One or more IPv6 delegated prefixes assigned to the network interface. + Ipv6Prefix *string + + noSmithyDocumentSerde +} + // Describes the market (purchasing) option for the instances. type InstanceMarketOptionsRequest struct { @@ -4683,16 +4831,22 @@ type InstanceNetworkInterface struct { // Describes the type of network interface. Valid values: interface | efa | trunk InterfaceType *string + // The IPv4 delegated prefixes that are assigned to the network interface. + Ipv4Prefixes []InstanceIpv4Prefix + // One or more IPv6 addresses associated with the network interface. Ipv6Addresses []InstanceIpv6Address + // The IPv6 delegated prefixes that are assigned to the network interface. + Ipv6Prefixes []InstanceIpv6Prefix + // The MAC address. MacAddress *string // The ID of the network interface. NetworkInterfaceId *string - // The ID of the account that created the network interface. + // The ID of the Amazon Web Services account that created the network interface. OwnerId *string // The private DNS name. @@ -4802,6 +4956,14 @@ type InstanceNetworkInterfaceSpecification struct { // Elastic Compute Cloud User Guide. Valid values: interface | efa InterfaceType *string + // The number of IPv4 delegated prefixes to be automatically assigned to the + // network interface. You cannot use this option if you use the Ipv4Prefix option. + Ipv4PrefixCount *int32 + + // One or more IPv4 delegated prefixes to be assigned to the network interface. You + // cannot use this option if you use the Ipv4PrefixCount option. + Ipv4Prefixes []Ipv4PrefixSpecificationRequest + // A number of IPv6 addresses to assign to the network interface. Amazon EC2 // chooses the IPv6 addresses from the range of the subnet. You cannot specify this // option and the option to assign specific IPv6 addresses in the same request. You @@ -4815,6 +4977,14 @@ type InstanceNetworkInterfaceSpecification struct { // number of instances to launch. Ipv6Addresses []InstanceIpv6Address + // The number of IPv6 delegated prefixes to be automatically assigned to the + // network interface. You cannot use this option if you use the Ipv6Prefix option. + Ipv6PrefixCount *int32 + + // One or more IPv6 delegated prefixes to be assigned to the network interface. You + // cannot use this option if you use the Ipv6PrefixCount option. + Ipv6Prefixes []Ipv6PrefixSpecificationRequest + // The index of the network card. Some instance types support multiple network // cards. The primary network interface must be assigned to network card index 0. // The default is network card index 0. @@ -5153,10 +5323,12 @@ type InstanceTypeOffering struct { // Information about the Capacity Reservation usage. type InstanceUsage struct { - // The ID of the account that is making use of the Capacity Reservation. + // The ID of the Amazon Web Services account that is making use of the Capacity + // Reservation. AccountId *string - // The number of instances the account currently has in the Capacity Reservation. + // The number of instances the Amazon Web Services account currently has in the + // Capacity Reservation. UsedInstanceCount *int32 noSmithyDocumentSerde @@ -5180,7 +5352,7 @@ type InternetGateway struct { // The ID of the internet gateway. InternetGatewayId *string - // The ID of the AWS account that owns the internet gateway. + // The ID of the Amazon Web Services account that owns the internet gateway. OwnerId *string // Any tags assigned to the internet gateway. @@ -5255,6 +5427,37 @@ type IpRange struct { noSmithyDocumentSerde } +// Describes an IPv4 Prefix Delegation. +type Ipv4PrefixSpecification struct { + + // The IPv4 Prefix Delegation prefix. For information, see Prefix Delegation + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation) in + // the Amazon Elastic Compute Cloud User Guide. + Ipv4Prefix *string + + noSmithyDocumentSerde +} + +// Describes the IPv4 Prefix Delegation option for a network interface. +type Ipv4PrefixSpecificationRequest struct { + + // The IPv4 Prefix Delegation prefix. For information, see Prefix Delegation + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-delegation) in + // the Amazon Elastic Compute Cloud User Guide. + Ipv4Prefix *string + + noSmithyDocumentSerde +} + +// Information about the IPv4 delegated prefixes assigned to a network interface. +type Ipv4PrefixSpecificationResponse struct { + + // One or more IPv4 delegated prefixes assigned to the network interface. + Ipv4Prefix *string + + noSmithyDocumentSerde +} + // Describes an IPv6 CIDR block association. type Ipv6CidrAssociation struct { @@ -5294,6 +5497,33 @@ type Ipv6Pool struct { noSmithyDocumentSerde } +// Describes the IPv6 Prefix Delegation. +type Ipv6PrefixSpecification struct { + + // The IPv6 Prefix Delegation prefix. + Ipv6Prefix *string + + noSmithyDocumentSerde +} + +// Describes the IPv4 Prefix Delegation option for a network interface. +type Ipv6PrefixSpecificationRequest struct { + + // The IPv6 Prefix Delegation prefix. + Ipv6Prefix *string + + noSmithyDocumentSerde +} + +// Information about the IPv6 delegated prefixes assigned to a network interface. +type Ipv6PrefixSpecificationResponse struct { + + // One or more IPv6 delegated prefixes assigned to the network interface. + Ipv6Prefix *string + + noSmithyDocumentSerde +} + // [EC2-VPC only] Describes an IPv6 range. type Ipv6Range struct { @@ -5602,7 +5832,7 @@ type LaunchTemplateEbsBlockDevice struct { // The number of I/O operations per second (IOPS) that the volume supports. Iops *int32 - // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption. + // The ARN of the Key Management Service (KMS) CMK used for encryption. KmsKeyId *string // The ID of the snapshot. @@ -5652,8 +5882,7 @@ type LaunchTemplateEbsBlockDeviceRequest struct { // for gp2, st1, sc1, or standard volumes. Iops *int32 - // The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for - // encryption. + // The ARN of the symmetric Key Management Service (KMS) CMK used for encryption. KmsKeyId *string // The ID of the snapshot. @@ -5715,23 +5944,26 @@ type LaunchTemplateElasticInferenceAcceleratorResponse struct { noSmithyDocumentSerde } -// Indicates whether the instance is enabled for AWS Nitro Enclaves. +// Indicates whether the instance is enabled for Amazon Web Services Nitro +// Enclaves. type LaunchTemplateEnclaveOptions struct { - // If this parameter is set to true, the instance is enabled for AWS Nitro - // Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves. + // If this parameter is set to true, the instance is enabled for Amazon Web + // Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web Services + // Nitro Enclaves. Enabled *bool noSmithyDocumentSerde } -// Indicates whether the instance is enabled for AWS Nitro Enclaves. For more -// information, see What is AWS Nitro Enclaves? -// (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the AWS -// Nitro Enclaves User Guide. +// Indicates whether the instance is enabled for Amazon Web Services Nitro +// Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? +// (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the +// Amazon Web Services Nitro Enclaves User Guide. type LaunchTemplateEnclaveOptionsRequest struct { - // To enable the instance for AWS Nitro Enclaves, set this parameter to true. + // To enable the instance for Amazon Web Services Nitro Enclaves, set this + // parameter to true. Enabled *bool noSmithyDocumentSerde @@ -5883,7 +6115,7 @@ type LaunchTemplateInstanceNetworkInterfaceSpecification struct { // want to associate a Carrier IP address with the network interface. For more // information about Carrier IP addresses, see Carrier IP addresses // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) - // in the AWS Wavelength Developer Guide. + // in the Wavelength Developer Guide. AssociateCarrierIpAddress *bool // Indicates whether to associate a public IPv4 address with eth0 for a new network @@ -5906,12 +6138,26 @@ type LaunchTemplateInstanceNetworkInterfaceSpecification struct { // The type of network interface. InterfaceType *string + // The number of IPv4 delegated prefixes that AWS automatically assigned to the + // network interface. + Ipv4PrefixCount *int32 + + // One or more IPv4 delegated prefixes assigned to the network interface. + Ipv4Prefixes []Ipv4PrefixSpecificationResponse + // The number of IPv6 addresses for the network interface. Ipv6AddressCount *int32 // The IPv6 addresses for the network interface. Ipv6Addresses []InstanceIpv6Address + // The number of IPv6 delegated prefixes that AWS automatically assigned to the + // network interface. + Ipv6PrefixCount *int32 + + // One or more IPv6 delegated prefixes assigned to the network interface. + Ipv6Prefixes []Ipv6PrefixSpecificationResponse + // The index of the network card. NetworkCardIndex *int32 @@ -5941,7 +6187,7 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // Carrier IP address with the network interface. For more information about // Carrier IP addresses, see Carrier IP addresses // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) - // in the AWS Wavelength Developer Guide. + // in the Wavelength Developer Guide. AssociateCarrierIpAddress *bool // Associates a public IPv4 address with eth0 for a new network interface. @@ -5967,6 +6213,14 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // interface or omit this parameter. Valid values: interface | efa InterfaceType *string + // The number of IPv4 delegated prefixes to be automatically assigned to the + // network interface. You cannot use this option if you use the Ipv4Prefix option. + Ipv4PrefixCount *int32 + + // One or more IPv4 delegated prefixes to be assigned to the network interface. You + // cannot use this option if you use the Ipv4PrefixCount option. + Ipv4Prefixes []Ipv4PrefixSpecificationRequest + // The number of IPv6 addresses to assign to a network interface. Amazon EC2 // automatically selects the IPv6 addresses from the subnet range. You can't use // this option if specifying specific IPv6 addresses. @@ -5977,6 +6231,14 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // addresses. Ipv6Addresses []InstanceIpv6AddressRequest + // The number of IPv6 delegated prefixes to be automatically assigned to the + // network interface. You cannot use this option if you use the Ipv6Prefix option. + Ipv6PrefixCount *int32 + + // One or more IPv6 delegated prefixes to be assigned to the network interface. You + // cannot use this option if you use the Ipv6PrefixCount option. + Ipv6Prefixes []Ipv6PrefixSpecificationRequest + // The index of the network card. Some instance types support multiple network // cards. The primary network interface must be assigned to network card index 0. // The default is network card index 0. @@ -6874,7 +7136,7 @@ type NetworkAcl struct { // The ID of the network ACL. NetworkAclId *string - // The ID of the AWS account that owns the network ACL. + // The ID of the Amazon Web Services account that owns the network ACL. OwnerId *string // Any tags assigned to the network ACL. @@ -6999,8 +7261,8 @@ type NetworkInsightsAnalysis struct { // (https://docs.aws.amazon.com/vpc/latest/reachability/explanation-codes.html). Explanations []Explanation - // The Amazon Resource Names (ARN) of the AWS resources that the path must - // traverse. + // The Amazon Resource Names (ARN) of the Amazon Web Services resources that the + // path must traverse. FilterInArns []string // The components in the path from source to destination. @@ -7042,10 +7304,11 @@ type NetworkInsightsPath struct { // The time stamp when the path was created. CreatedDate *time.Time - // The AWS resource that is the destination of the path. + // The Amazon Web Services resource that is the destination of the path. Destination *string - // The IP address of the AWS resource that is the destination of the path. + // The IP address of the Amazon Web Services resource that is the destination of + // the path. DestinationIp *string // The destination port. @@ -7060,10 +7323,11 @@ type NetworkInsightsPath struct { // The protocol. Protocol Protocol - // The AWS resource that is the source of the path. + // The Amazon Web Services resource that is the source of the path. Source *string - // The IP address of the AWS resource that is the source of the path. + // The IP address of the Amazon Web Services resource that is the source of the + // path. SourceIp *string // The tags associated with the path. @@ -7094,9 +7358,15 @@ type NetworkInterface struct { // The type of network interface. InterfaceType NetworkInterfaceType + // The IPv4 Prefix Delegation prefixes that are assigned to the network interface. + Ipv4Prefixes []Ipv4PrefixSpecification + // The IPv6 addresses associated with the network interface. Ipv6Addresses []NetworkInterfaceIpv6Address + // The IPv6 Prefix Delegation prefixes that are assigned to the network interface. + Ipv6Prefixes []Ipv6PrefixSpecification + // The MAC address. MacAddress *string @@ -7106,7 +7376,7 @@ type NetworkInterface struct { // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string - // The account ID of the owner of the network interface. + // The Amazon Web Services account ID of the owner of the network interface. OwnerId *string // The private DNS name. @@ -7118,8 +7388,8 @@ type NetworkInterface struct { // The private IPv4 addresses associated with the network interface. PrivateIpAddresses []NetworkInterfacePrivateIpAddress - // The alias or account ID of the principal or service that created the network - // interface. + // The alias or Amazon Web Services account ID of the principal or service that + // created the network interface. RequesterId *string // Indicates whether the network interface is being managed by Amazon Web Services. @@ -7193,7 +7463,7 @@ type NetworkInterfaceAttachment struct { // The ID of the instance. InstanceId *string - // The account ID of the owner of the instance. + // The Amazon Web Services account ID of the owner of the instance. InstanceOwnerId *string // The index of the network card. @@ -7230,7 +7500,7 @@ type NetworkInterfaceIpv6Address struct { // Describes a permission for a network interface. type NetworkInterfacePermission struct { - // The account ID. + // The Amazon Web Services account ID. AwsAccountId *string // The Amazon Web Service. @@ -8076,7 +8346,7 @@ type ReferencedSecurityGroup struct { // The status of a VPC peering connection, if applicable. PeeringStatus *string - // The account ID. + // The Amazon Web Services account ID. UserId *string // The ID of the VPC. @@ -8221,17 +8491,17 @@ type RequestLaunchTemplateData struct { // The elastic inference accelerator for the instance. ElasticInferenceAccelerators []LaunchTemplateElasticInferenceAccelerator - // Indicates whether the instance is enabled for AWS Nitro Enclaves. For more - // information, see What is AWS Nitro Enclaves? - // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the AWS - // Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation - // on the same instance. + // Indicates whether the instance is enabled for Amazon Web Services Nitro + // Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? + // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the + // Amazon Web Services Nitro Enclaves User Guide. You can't enable Amazon Web + // Services Nitro Enclaves and hibernation on the same instance. EnclaveOptions *LaunchTemplateEnclaveOptionsRequest // Indicates whether an instance is enabled for hibernation. This parameter is // valid only if the instance meets the hibernation prerequisites // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). - // For more information, see Hibernate Your Instance + // For more information, see Hibernate your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the // Amazon Elastic Compute Cloud User Guide. HibernationOptions *LaunchTemplateHibernationOptionsRequest @@ -8273,7 +8543,7 @@ type RequestLaunchTemplateData struct { LicenseSpecifications []LaunchTemplateLicenseConfigurationRequest // The metadata options for the instance. For more information, see Instance - // Metadata and User Data + // metadata and user data // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) // in the Amazon Elastic Compute Cloud User Guide. MetadataOptions *LaunchTemplateInstanceMetadataOptionsRequest @@ -8400,11 +8670,11 @@ type Reservation struct { // The instances. Instances []Instance - // The ID of the account that owns the reservation. + // The ID of the Amazon Web Services account that owns the reservation. OwnerId *string // The ID of the requester that launched the instances on your behalf (for example, - // Management Console or Auto Scaling). + // Amazon Web Services Management Console or Auto Scaling). RequesterId *string // The ID of the reservation. @@ -8720,7 +8990,7 @@ type ResponseLaunchTemplateData struct { CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationResponse // The CPU options for the instance. For more information, see Optimizing CPU - // Options + // options // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) // in the Amazon Elastic Compute Cloud User Guide. CpuOptions *LaunchTemplateCpuOptions @@ -8741,11 +9011,12 @@ type ResponseLaunchTemplateData struct { // The elastic inference accelerator for the instance. ElasticInferenceAccelerators []LaunchTemplateElasticInferenceAcceleratorResponse - // Indicates whether the instance is enabled for AWS Nitro Enclaves. + // Indicates whether the instance is enabled for Amazon Web Services Nitro + // Enclaves. EnclaveOptions *LaunchTemplateEnclaveOptions // Indicates whether an instance is configured for hibernation. For more - // information, see Hibernate Your Instance + // information, see Hibernate your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the // Amazon Elastic Compute Cloud User Guide. HibernationOptions *LaunchTemplateHibernationOptions @@ -8776,7 +9047,7 @@ type ResponseLaunchTemplateData struct { LicenseSpecifications []LaunchTemplateLicenseConfiguration // The metadata options for the instance. For more information, see Instance - // Metadata and User Data + // metadata and user data // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) // in the Amazon Elastic Compute Cloud User Guide. MetadataOptions *LaunchTemplateInstanceMetadataOptions @@ -8820,7 +9091,7 @@ type Route struct { // The IPv6 CIDR block used for the destination match. DestinationIpv6CidrBlock *string - // The prefix of the AWS service. + // The prefix of the Amazon Web Service. DestinationPrefixListId *string // The ID of the egress-only internet gateway. @@ -8832,7 +9103,7 @@ type Route struct { // The ID of a NAT instance in your VPC. InstanceId *string - // The AWS account ID of the owner of the instance. + // The ID of Amazon Web Services account that owns the instance. InstanceOwnerId *string // The ID of the local gateway. @@ -8876,7 +9147,7 @@ type RouteTable struct { // The associations between the route table and one or more subnets or a gateway. Associations []RouteTableAssociation - // The ID of the AWS account that owns the route table. + // The ID of the Amazon Web Services account that owns the route table. OwnerId *string // Any virtual private gateway (VGW) propagating routes. @@ -9438,7 +9709,7 @@ type SecurityGroupRule struct { // The ID of the security group. GroupId *string - // The ID of the account that owns the security group. + // The ID of the Amazon Web Services account that owns the security group. GroupOwnerId *string // The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers @@ -9699,22 +9970,22 @@ type Snapshot struct { // Indicates whether the snapshot is encrypted. Encrypted *bool - // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) - // customer master key (CMK) that was used to protect the volume encryption key for - // the parent volume. + // The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that + // was used to protect the volume encryption key for the parent volume. KmsKeyId *string - // The ARN of the AWS Outpost on which the snapshot is stored. For more - // information, see EBS Local Snapshot on Outposts + // The ARN of the Outpost on which the snapshot is stored. For more information, + // see Amazon EBS local snapshots on Outposts // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html) in // the Amazon Elastic Compute Cloud User Guide. OutpostArn *string - // The AWS owner alias, from an Amazon-maintained list (amazon). This is not the - // user-configured AWS account alias set using the IAM console. + // The Amazon Web Services owner alias, from an Amazon-maintained list (amazon). + // This is not the user-configured Amazon Web Services account alias set using the + // IAM console. OwnerAlias *string - // The AWS account ID of the EBS snapshot owner. + // The ID of the Amazon Web Services account that owns the EBS snapshot. OwnerId *string // The progress of the snapshot, as a percentage. @@ -9731,7 +10002,7 @@ type Snapshot struct { State SnapshotState // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy - // operation fails (for example, if the proper AWS Key Management Service (AWS KMS) + // operation fails (for example, if the proper Key Management Service (KMS) // permissions are not obtained) this field displays error state details to help // you diagnose why the error occurred. This parameter is only returned by // DescribeSnapshots. @@ -9816,8 +10087,8 @@ type SnapshotInfo struct { // Indicates whether the snapshot is encrypted. Encrypted *bool - // The ARN of the AWS Outpost on which the snapshot is stored. For more - // information, see EBS Local Snapshot on Outposts + // The ARN of the Outpost on which the snapshot is stored. For more information, + // see Amazon EBS local snapshots on Outposts // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html) in // the Amazon Elastic Compute Cloud User Guide. OutpostArn *string @@ -9918,7 +10189,7 @@ type SpotDatafeedSubscription struct { // The fault codes for the Spot Instance request, if any. Fault *SpotInstanceStateFault - // The account ID of the account. + // The Amazon Web Services account ID of the account. OwnerId *string // The prefix for the data feed files. @@ -10381,16 +10652,7 @@ type SpotMaintenanceStrategies struct { // The options for Spot Instances. type SpotMarketOptions struct { - // The required duration for the Spot Instances (also known as Spot blocks), in - // minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). - // The duration period starts as soon as your Spot Instance receives its instance - // ID. At the end of the duration period, Amazon EC2 marks the Spot Instance for - // termination and provides a Spot Instance termination notice, which gives the - // instance a two-minute warning before it terminates. You can't specify an - // Availability Zone group or a launch group if you specify a duration. New - // accounts or accounts with no previous billing history with Amazon Web Services - // are not eligible for Spot Instances with a defined duration (also known as Spot - // blocks). + // Deprecated. BlockDurationMinutes *int32 // The behavior when a Spot Instance is interrupted. The default is terminate. @@ -10777,7 +11039,7 @@ type Subnet struct { // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string - // The ID of the AWS account that owns the subnet. + // The ID of the Amazon Web Services account that owns the subnet. OwnerId *string // The current state of the subnet. @@ -10822,6 +11084,33 @@ type SubnetCidrBlockState struct { noSmithyDocumentSerde } +// Describes a subnet CIDR reservation. +type SubnetCidrReservation struct { + + // The CIDR that has been reserved. + Cidr *string + + // The description assigned to the subnet CIDR reservation. + Description *string + + // The ID of the account that owns the subnet CIDR reservation. + OwnerId *string + + // The type of reservation. + ReservationType SubnetCidrReservationType + + // The ID of the subnet CIDR reservation. + SubnetCidrReservationId *string + + // The ID of the subnet. + SubnetId *string + + // The tags assigned to the subnet CIDR reservation. + Tags []Tag + + noSmithyDocumentSerde +} + // Describes an IPv6 CIDR block associated with a subnet. type SubnetIpv6CidrBlockAssociation struct { @@ -10896,17 +11185,18 @@ type TagSpecification struct { // customer-gateway | dedicated-host | dhcp-options | egress-only-internet-gateway // | elastic-ip | elastic-gpu | export-image-task | export-instance-task | fleet | // fpga-image | host-reservation | image| import-image-task | import-snapshot-task - // | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | - // launch-template | local-gateway-route-table-vpc-association | placement-group | - // prefix-list | natgateway | network-acl | network-interface | reserved-instances - // |route-table | security-group| snapshot | spot-fleet-request | - // spot-instances-request | snapshot | subnet | traffic-mirror-filter | - // traffic-mirror-session | traffic-mirror-target | transit-gateway | - // transit-gateway-attachment | transit-gateway-multicast-domain | - // transit-gateway-route-table | volume |vpc | vpc-peering-connection | - // vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for - // AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway. To tag a - // resource after it has been created, see CreateTags + // | instance | instance-event-window | internet-gateway | ipv4pool-ec2 | + // ipv6pool-ec2 | key-pair | launch-template | + // local-gateway-route-table-vpc-association | placement-group | prefix-list | + // natgateway | network-acl | network-interface | reserved-instances |route-table | + // security-group| snapshot | spot-fleet-request | spot-instances-request | + // snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | + // traffic-mirror-target | transit-gateway | transit-gateway-attachment | + // transit-gateway-multicast-domain | transit-gateway-route-table | volume |vpc | + // vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | + // vpc-endpoint-service (for Amazon Web Services PrivateLink) | vpc-flow-log | + // vpn-connection | vpn-gateway. To tag a resource after it has been created, see + // CreateTags // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). ResourceType ResourceType @@ -12120,7 +12410,7 @@ type UnsuccessfulItem struct { } // Information about the error that occurred. For more information about errors, -// see Error Codes +// see Error codes // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html). type UnsuccessfulItemError struct { @@ -12304,9 +12594,8 @@ type Volume struct { // which the volume accumulates I/O credits for bursting. Iops *int32 - // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) - // customer master key (CMK) that was used to protect the volume encryption key for - // the volume. + // The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that + // was used to protect the volume encryption key for the volume. KmsKeyId *string // Indicates whether Amazon EBS Multi-Attach is enabled. @@ -12556,7 +12845,7 @@ type Vpc struct { // Indicates whether the VPC is the default VPC. IsDefault *bool - // The ID of the AWS account that owns the VPC. + // The ID of the Amazon Web Services account that owns the VPC. OwnerId *string // The current state of the VPC. @@ -12805,7 +13094,7 @@ type VpcPeeringConnectionVpcInfo struct { // The IPv6 CIDR block for the VPC. Ipv6CidrBlockSet []Ipv6CidrBlock - // The AWS account ID of the VPC owner. + // The ID of the Amazon Web Services account that owns the VPC. OwnerId *string // Information about the VPC peering connection options for the accepter or diff --git a/service/ec2/validators.go b/service/ec2/validators.go index b310b2cb6ed..59c0ef78178 100644 --- a/service/ec2/validators.go +++ b/service/ec2/validators.go @@ -250,6 +250,26 @@ func (m *validateOpAssociateIamInstanceProfile) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } +type validateOpAssociateInstanceEventWindow struct { +} + +func (*validateOpAssociateInstanceEventWindow) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateInstanceEventWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateInstanceEventWindowInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateInstanceEventWindowInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpAssociateRouteTable struct { } @@ -1430,6 +1450,26 @@ func (m *validateOpCreateStoreImageTask) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpCreateSubnetCidrReservation struct { +} + +func (*validateOpCreateSubnetCidrReservation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateSubnetCidrReservation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateSubnetCidrReservationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateSubnetCidrReservationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateSubnet struct { } @@ -1990,6 +2030,26 @@ func (m *validateOpDeleteFpgaImage) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpDeleteInstanceEventWindow struct { +} + +func (*validateOpDeleteInstanceEventWindow) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteInstanceEventWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteInstanceEventWindowInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteInstanceEventWindowInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteInternetGateway struct { } @@ -2330,6 +2390,26 @@ func (m *validateOpDeleteSnapshot) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpDeleteSubnetCidrReservation struct { +} + +func (*validateOpDeleteSubnetCidrReservation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteSubnetCidrReservation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteSubnetCidrReservationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteSubnetCidrReservationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteSubnet struct { } @@ -3510,6 +3590,26 @@ func (m *validateOpDisassociateIamInstanceProfile) HandleInitialize(ctx context. return next.HandleInitialize(ctx, in) } +type validateOpDisassociateInstanceEventWindow struct { +} + +func (*validateOpDisassociateInstanceEventWindow) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateInstanceEventWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateInstanceEventWindowInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateInstanceEventWindowInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDisassociateRouteTable struct { } @@ -4090,6 +4190,26 @@ func (m *validateOpGetReservedInstancesExchangeQuote) HandleInitialize(ctx conte return next.HandleInitialize(ctx, in) } +type validateOpGetSubnetCidrReservations struct { +} + +func (*validateOpGetSubnetCidrReservations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetSubnetCidrReservations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetSubnetCidrReservationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetSubnetCidrReservationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetTransitGatewayAttachmentPropagations struct { } @@ -4570,6 +4690,26 @@ func (m *validateOpModifyInstanceEventStartTime) HandleInitialize(ctx context.Co return next.HandleInitialize(ctx, in) } +type validateOpModifyInstanceEventWindow struct { +} + +func (*validateOpModifyInstanceEventWindow) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyInstanceEventWindow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyInstanceEventWindowInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyInstanceEventWindowInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpModifyInstanceMetadataOptions struct { } @@ -6118,6 +6258,10 @@ func addOpAssociateIamInstanceProfileValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpAssociateIamInstanceProfile{}, middleware.After) } +func addOpAssociateInstanceEventWindowValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateInstanceEventWindow{}, middleware.After) +} + func addOpAssociateRouteTableValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateRouteTable{}, middleware.After) } @@ -6354,6 +6498,10 @@ func addOpCreateStoreImageTaskValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpCreateStoreImageTask{}, middleware.After) } +func addOpCreateSubnetCidrReservationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateSubnetCidrReservation{}, middleware.After) +} + func addOpCreateSubnetValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateSubnet{}, middleware.After) } @@ -6466,6 +6614,10 @@ func addOpDeleteFpgaImageValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteFpgaImage{}, middleware.After) } +func addOpDeleteInstanceEventWindowValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteInstanceEventWindow{}, middleware.After) +} + func addOpDeleteInternetGatewayValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteInternetGateway{}, middleware.After) } @@ -6534,6 +6686,10 @@ func addOpDeleteSnapshotValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteSnapshot{}, middleware.After) } +func addOpDeleteSubnetCidrReservationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteSubnetCidrReservation{}, middleware.After) +} + func addOpDeleteSubnetValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteSubnet{}, middleware.After) } @@ -6770,6 +6926,10 @@ func addOpDisassociateIamInstanceProfileValidationMiddleware(stack *middleware.S return stack.Initialize.Add(&validateOpDisassociateIamInstanceProfile{}, middleware.After) } +func addOpDisassociateInstanceEventWindowValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateInstanceEventWindow{}, middleware.After) +} + func addOpDisassociateRouteTableValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateRouteTable{}, middleware.After) } @@ -6886,6 +7046,10 @@ func addOpGetReservedInstancesExchangeQuoteValidationMiddleware(stack *middlewar return stack.Initialize.Add(&validateOpGetReservedInstancesExchangeQuote{}, middleware.After) } +func addOpGetSubnetCidrReservationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetSubnetCidrReservations{}, middleware.After) +} + func addOpGetTransitGatewayAttachmentPropagationsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetTransitGatewayAttachmentPropagations{}, middleware.After) } @@ -6982,6 +7146,10 @@ func addOpModifyInstanceEventStartTimeValidationMiddleware(stack *middleware.Sta return stack.Initialize.Add(&validateOpModifyInstanceEventStartTime{}, middleware.After) } +func addOpModifyInstanceEventWindowValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyInstanceEventWindow{}, middleware.After) +} + func addOpModifyInstanceMetadataOptionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpModifyInstanceMetadataOptions{}, middleware.After) } @@ -8047,6 +8215,24 @@ func validateOpAssociateIamInstanceProfileInput(v *AssociateIamInstanceProfileIn } } +func validateOpAssociateInstanceEventWindowInput(v *AssociateInstanceEventWindowInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateInstanceEventWindowInput"} + if v.InstanceEventWindowId == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceEventWindowId")) + } + if v.AssociationTarget == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssociationTarget")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAssociateRouteTableInput(v *AssociateRouteTableInput) error { if v == nil { return nil @@ -9108,17 +9294,38 @@ func validateOpCreateStoreImageTaskInput(v *CreateStoreImageTaskInput) error { } } +func validateOpCreateSubnetCidrReservationInput(v *CreateSubnetCidrReservationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateSubnetCidrReservationInput"} + if v.SubnetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SubnetId")) + } + if v.Cidr == nil { + invalidParams.Add(smithy.NewErrParamRequired("Cidr")) + } + if len(v.ReservationType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ReservationType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateSubnetInput(v *CreateSubnetInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateSubnetInput"} - if v.CidrBlock == nil { - invalidParams.Add(smithy.NewErrParamRequired("CidrBlock")) - } if v.VpcId == nil { invalidParams.Add(smithy.NewErrParamRequired("VpcId")) } + if v.CidrBlock == nil { + invalidParams.Add(smithy.NewErrParamRequired("CidrBlock")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -9610,6 +9817,21 @@ func validateOpDeleteFpgaImageInput(v *DeleteFpgaImageInput) error { } } +func validateOpDeleteInstanceEventWindowInput(v *DeleteInstanceEventWindowInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteInstanceEventWindowInput"} + if v.InstanceEventWindowId == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceEventWindowId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteInternetGatewayInput(v *DeleteInternetGatewayInput) error { if v == nil { return nil @@ -9874,6 +10096,21 @@ func validateOpDeleteSnapshotInput(v *DeleteSnapshotInput) error { } } +func validateOpDeleteSubnetCidrReservationInput(v *DeleteSubnetCidrReservationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteSubnetCidrReservationInput"} + if v.SubnetCidrReservationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SubnetCidrReservationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteSubnetInput(v *DeleteSubnetInput) error { if v == nil { return nil @@ -10820,6 +11057,24 @@ func validateOpDisassociateIamInstanceProfileInput(v *DisassociateIamInstancePro } } +func validateOpDisassociateInstanceEventWindowInput(v *DisassociateInstanceEventWindowInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateInstanceEventWindowInput"} + if v.InstanceEventWindowId == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceEventWindowId")) + } + if v.AssociationTarget == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssociationTarget")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDisassociateRouteTableInput(v *DisassociateRouteTableInput) error { if v == nil { return nil @@ -11301,6 +11556,21 @@ func validateOpGetReservedInstancesExchangeQuoteInput(v *GetReservedInstancesExc } } +func validateOpGetSubnetCidrReservationsInput(v *GetSubnetCidrReservationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetSubnetCidrReservationsInput"} + if v.SubnetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SubnetId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetTransitGatewayAttachmentPropagationsInput(v *GetTransitGatewayAttachmentPropagationsInput) error { if v == nil { return nil @@ -11715,6 +11985,21 @@ func validateOpModifyInstanceEventStartTimeInput(v *ModifyInstanceEventStartTime } } +func validateOpModifyInstanceEventWindowInput(v *ModifyInstanceEventWindowInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyInstanceEventWindowInput"} + if v.InstanceEventWindowId == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceEventWindowId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpModifyInstanceMetadataOptionsInput(v *ModifyInstanceMetadataOptionsInput) error { if v == nil { return nil @@ -12933,9 +13218,6 @@ func validateOpUnassignIpv6AddressesInput(v *UnassignIpv6AddressesInput) error { if v.NetworkInterfaceId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkInterfaceId")) } - if v.Ipv6Addresses == nil { - invalidParams.Add(smithy.NewErrParamRequired("Ipv6Addresses")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -12951,9 +13233,6 @@ func validateOpUnassignPrivateIpAddressesInput(v *UnassignPrivateIpAddressesInpu if v.NetworkInterfaceId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkInterfaceId")) } - if v.PrivateIpAddresses == nil { - invalidParams.Add(smithy.NewErrParamRequired("PrivateIpAddresses")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/ecs/api_op_CreateCapacityProvider.go b/service/ecs/api_op_CreateCapacityProvider.go index c2610647c54..6082d045211 100644 --- a/service/ecs/api_op_CreateCapacityProvider.go +++ b/service/ecs/api_op_CreateCapacityProvider.go @@ -14,9 +14,9 @@ import ( // Creates a new capacity provider. Capacity providers are associated with an // Amazon ECS cluster and are used in capacity provider strategies to facilitate // cluster auto scaling. Only capacity providers using an Auto Scaling group can be -// created. Amazon ECS tasks on AWS Fargate use the FARGATE and FARGATE_SPOT -// capacity providers which are already created and available to all accounts in -// Regions supported by AWS Fargate. +// created. Amazon ECS tasks on Fargate use the FARGATE and FARGATE_SPOT capacity +// providers which are already created and available to all accounts in Regions +// supported by Fargate. func (c *Client) CreateCapacityProvider(ctx context.Context, params *CreateCapacityProviderInput, optFns ...func(*Options)) (*CreateCapacityProviderOutput, error) { if params == nil { params = &CreateCapacityProviderInput{} @@ -71,9 +71,9 @@ type CreateCapacityProviderInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ecs/api_op_CreateCluster.go b/service/ecs/api_op_CreateCluster.go index 8a8e44ee049..d7ad82a589b 100644 --- a/service/ecs/api_op_CreateCluster.go +++ b/service/ecs/api_op_CreateCluster.go @@ -15,10 +15,11 @@ import ( // cluster when you launch your first container instance. However, you can create // your own cluster with a unique name with the CreateCluster action. When you call // the CreateCluster API operation, Amazon ECS attempts to create the Amazon ECS -// service-linked role for your account so that required resources in other AWS -// services can be managed on your behalf. However, if the IAM user that makes the -// call does not have permissions to create the service-linked role, it is not -// created. For more information, see Using Service-Linked Roles for Amazon ECS +// service-linked role for your account so that required resources in other Amazon +// Web Services services can be managed on your behalf. However, if the IAM user +// that makes the call does not have permissions to create the service-linked role, +// it is not created. For more information, see Using Service-Linked Roles for +// Amazon ECS // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html) // in the Amazon Elastic Container Service Developer Guide. func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error) { @@ -45,8 +46,8 @@ type CreateClusterInput struct { // specifying a capacity provider that uses an Auto Scaling group, the capacity // provider must already be created and not already associated with another // cluster. New Auto Scaling group capacity providers can be created with the - // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate + // CreateCapacityProvider API operation. To use a Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the @@ -100,9 +101,9 @@ type CreateClusterInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ecs/api_op_CreateService.go b/service/ecs/api_op_CreateService.go index e746e77b579..001643b4281 100644 --- a/service/ecs/api_op_CreateService.go +++ b/service/ecs/api_op_CreateService.go @@ -190,16 +190,16 @@ type CreateServiceInput struct { // Amazon ECS launch types // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) // in the Amazon Elastic Container Service Developer Guide. The FARGATE launch type - // runs your tasks on AWS Fargate On-Demand infrastructure. Fargate Spot - // infrastructure is available for use but a capacity provider strategy must be - // used. For more information, see AWS Fargate capacity providers + // runs your tasks on Fargate On-Demand infrastructure. Fargate Spot infrastructure + // is available for use but a capacity provider strategy must be used. For more + // information, see Fargate capacity providers // (https://docs.aws.amazon.com/AmazonECS/latest/userguide/fargate-capacity-providers.html) - // in the Amazon ECS User Guide for AWS Fargate. The EC2 launch type runs your - // tasks on Amazon EC2 instances registered to your cluster. The EXTERNAL launch - // type runs your tasks on your on-premise server or virtual machine (VM) capacity - // registered to your cluster. A service can use either a launch type or a capacity - // provider strategy. If a launchType is specified, the capacityProviderStrategy - // parameter must be omitted. + // in the Amazon ECS User Guide for Fargate. The EC2 launch type runs your tasks on + // Amazon EC2 instances registered to your cluster. The EXTERNAL launch type runs + // your tasks on your on-premise server or virtual machine (VM) capacity registered + // to your cluster. A service can use either a launch type or a capacity provider + // strategy. If a launchType is specified, the capacityProviderStrategy parameter + // must be omitted. LaunchType types.LaunchType // A load balancer object representing the load balancers to use with your service. @@ -214,16 +214,16 @@ type CreateServiceInput struct { // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html) // in the Amazon Elastic Container Service Developer Guide. If the service is using // the CODE_DEPLOY deployment controller, the service is required to use either an - // Application Load Balancer or Network Load Balancer. When creating an AWS - // CodeDeploy deployment group, you specify two target groups (referred to as a - // targetGroupPair). During a deployment, AWS CodeDeploy determines which task set - // in your service has the status PRIMARY and associates one target group with it, - // and then associates the other target group with the replacement task set. The - // load balancer can also have up to two listeners: a required listener for - // production traffic and an optional listener that allows you perform validation - // tests with Lambda functions before routing production traffic to it. After you - // create a service using the ECS deployment controller, the load balancer name or - // target group ARN, container name, and container port specified in the service + // Application Load Balancer or Network Load Balancer. When creating an CodeDeploy + // deployment group, you specify two target groups (referred to as a + // targetGroupPair). During a deployment, CodeDeploy determines which task set in + // your service has the status PRIMARY and associates one target group with it, and + // then associates the other target group with the replacement task set. The load + // balancer can also have up to two listeners: a required listener for production + // traffic and an optional listener that allows you perform validation tests with + // Lambda functions before routing production traffic to it. After you create a + // service using the ECS deployment controller, the load balancer name or target + // group ARN, container name, and container port specified in the service // definition are immutable. If you are using the CODE_DEPLOY deployment // controller, these values can be changed when updating the service. For // Application Load Balancers and Network Load Balancers, this object must contain @@ -265,7 +265,7 @@ type CreateServiceInput struct { // The platform version that your tasks in the service are running on. A platform // version is specified only for tasks using the Fargate launch type. If one isn't // specified, the LATEST platform version is used by default. For more information, - // see AWS Fargate platform versions + // see Fargate platform versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -355,9 +355,9 @@ type CreateServiceInput struct { // // * Do not use aws:, AWS:, // or any upper or lowercase combination of such as a prefix for either keys or - // values as it is reserved for AWS use. You cannot edit or delete tag keys or - // values with this prefix. Tags with this prefix do not count against your tags - // per resource limit. + // values as it is reserved for Amazon Web Services use. You cannot edit or delete + // tag keys or values with this prefix. Tags with this prefix do not count against + // your tags per resource limit. Tags []types.Tag // The family and revision (family:revision) or full ARN of the task definition to @@ -371,12 +371,13 @@ type CreateServiceInput struct { type CreateServiceOutput struct { - // The full description of your service following the create call. If a service is - // using the ECS deployment controller, the deploymentController and taskSets - // parameters will not be returned. If the service is using the CODE_DEPLOY - // deployment controller, the deploymentController, taskSets and deployments - // parameters will be returned, however the deployments parameter will be an empty - // list. + // The full description of your service following the create call. A service will + // return either a capacityProviderStrategy or launchType parameter, but not both, + // depending on which one was specified during creation. If a service is using the + // ECS deployment controller, the deploymentController and taskSets parameters will + // not be returned. If the service is using the CODE_DEPLOY deployment controller, + // the deploymentController, taskSets and deployments parameters will be returned, + // however the deployments parameter will be an empty list. Service *types.Service // Metadata pertaining to the operation's result. diff --git a/service/ecs/api_op_CreateTaskSet.go b/service/ecs/api_op_CreateTaskSet.go index b5228c9b3cd..4862b8ce589 100644 --- a/service/ecs/api_op_CreateTaskSet.go +++ b/service/ecs/api_op_CreateTaskSet.go @@ -61,8 +61,8 @@ type CreateTaskSetInput struct { // defaultCapacityProviderStrategy for the cluster is used. If specifying a // capacity provider that uses an Auto Scaling group, the capacity provider must // already be created. New capacity providers can be created with the - // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate + // CreateCapacityProvider API operation. To use a Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the @@ -75,8 +75,8 @@ type CreateTaskSetInput struct { // An optional non-unique tag that identifies this task set in external systems. If // the task set is associated with a service discovery registry, the tasks in this - // task set will have the ECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute set to - // the provided value. + // task set will have the ECS_TASK_SET_EXTERNAL_ID Cloud Map attribute set to the + // provided value. ExternalId *string // The launch type that new tasks in the task set will use. For more information, @@ -134,9 +134,9 @@ type CreateTaskSetInput struct { // // * Do not use aws:, AWS:, // or any upper or lowercase combination of such as a prefix for either keys or - // values as it is reserved for AWS use. You cannot edit or delete tag keys or - // values with this prefix. Tags with this prefix do not count against your tags - // per resource limit. + // values as it is reserved for Amazon Web Services use. You cannot edit or delete + // tag keys or values with this prefix. Tags with this prefix do not count against + // your tags per resource limit. Tags []types.Tag noSmithyDocumentSerde @@ -144,7 +144,7 @@ type CreateTaskSetInput struct { type CreateTaskSetOutput struct { - // Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an + // Information about a set of Amazon ECS tasks in either an CodeDeploy or an // EXTERNAL deployment. A task set includes details such as the desired number of // tasks, how many tasks are running, and whether the task set serves production // traffic. diff --git a/service/ecs/api_op_DeregisterContainerInstance.go b/service/ecs/api_op_DeregisterContainerInstance.go index 208f1ae45a7..2e045e57505 100644 --- a/service/ecs/api_op_DeregisterContainerInstance.go +++ b/service/ecs/api_op_DeregisterContainerInstance.go @@ -41,7 +41,7 @@ type DeregisterContainerInstanceInput struct { // The container instance ID or full ARN of the container instance to deregister. // The ARN contains the arn:aws:ecs namespace, followed by the Region of the - // container instance, the AWS account ID of the container instance owner, the + // container instance, the account ID of the container instance owner, the // container-instance namespace, and then the container instance ID. For example, // arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. // diff --git a/service/ecs/api_op_DescribeTaskDefinition.go b/service/ecs/api_op_DescribeTaskDefinition.go index 3ef212ddab2..31496f13787 100644 --- a/service/ecs/api_op_DescribeTaskDefinition.go +++ b/service/ecs/api_op_DescribeTaskDefinition.go @@ -74,9 +74,9 @@ type DescribeTaskDefinitionOutput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []types.Tag // The full task definition description. diff --git a/service/ecs/api_op_DiscoverPollEndpoint.go b/service/ecs/api_op_DiscoverPollEndpoint.go index 5242e920401..c51e75b4dcf 100644 --- a/service/ecs/api_op_DiscoverPollEndpoint.go +++ b/service/ecs/api_op_DiscoverPollEndpoint.go @@ -36,8 +36,8 @@ type DiscoverPollEndpointInput struct { // The container instance ID or full ARN of the container instance. The ARN // contains the arn:aws:ecs namespace, followed by the Region of the container - // instance, the AWS account ID of the container instance owner, the - // container-instance namespace, and then the container instance ID. For example, + // instance, the account ID of the container instance owner, the container-instance + // namespace, and then the container instance ID. For example, // arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. ContainerInstance *string diff --git a/service/ecs/api_op_PutClusterCapacityProviders.go b/service/ecs/api_op_PutClusterCapacityProviders.go index 813e6588372..1c1300c682d 100644 --- a/service/ecs/api_op_PutClusterCapacityProviders.go +++ b/service/ecs/api_op_PutClusterCapacityProviders.go @@ -44,8 +44,8 @@ type PutClusterCapacityProvidersInput struct { // The name of one or more capacity providers to associate with the cluster. If // specifying a capacity provider that uses an Auto Scaling group, the capacity // provider must already be created. New capacity providers can be created with the - // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate + // CreateCapacityProvider API operation. To use a Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. // @@ -69,8 +69,8 @@ type PutClusterCapacityProvidersInput struct { // cluster. Only capacity providers with an ACTIVE or UPDATING status can be used. // If specifying a capacity provider that uses an Auto Scaling group, the capacity // provider must already be created. New capacity providers can be created with the - // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate + // CreateCapacityProvider API operation. To use a Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. // diff --git a/service/ecs/api_op_RegisterContainerInstance.go b/service/ecs/api_op_RegisterContainerInstance.go index bdedabd0f1f..704f050fa75 100644 --- a/service/ecs/api_op_RegisterContainerInstance.go +++ b/service/ecs/api_op_RegisterContainerInstance.go @@ -81,9 +81,9 @@ type RegisterContainerInstanceInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []types.Tag // The resources available on the instance. diff --git a/service/ecs/api_op_RegisterTaskDefinition.go b/service/ecs/api_op_RegisterTaskDefinition.go index 1d8c4981f40..c26ea5facef 100644 --- a/service/ecs/api_op_RegisterTaskDefinition.go +++ b/service/ecs/api_op_RegisterTaskDefinition.go @@ -18,9 +18,10 @@ import ( // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) // in the Amazon Elastic Container Service Developer Guide. You can specify an IAM // role for your task with the taskRoleArn parameter. When you specify an IAM role -// for a task, its containers can then use the latest versions of the AWS CLI or -// SDKs to make API requests to the AWS services that are specified in the IAM -// policy associated with the role. For more information, see IAM Roles for Tasks +// for a task, its containers can then use the latest versions of the CLI or SDKs +// to make API requests to the Amazon Web Services services that are specified in +// the IAM policy associated with the role. For more information, see IAM Roles for +// Tasks // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) // in the Amazon Elastic Container Service Developer Guide. You can specify a // Docker networking mode for the containers in your task definition with the @@ -95,17 +96,17 @@ type RegisterTaskDefinitionInput struct { // The amount of ephemeral storage to allocate for the task. This parameter is used // to expand the total amount of ephemeral storage available, beyond the default - // amount, for tasks hosted on AWS Fargate. For more information, see Fargate task + // amount, for tasks hosted on Fargate. For more information, see Fargate task // storage // (https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_data_volumes.html) - // in the Amazon ECS User Guide for AWS Fargate. This parameter is only supported - // for tasks hosted on AWS Fargate using platform version 1.4.0 or later. + // in the Amazon ECS User Guide for Fargate. This parameter is only supported for + // tasks hosted on Fargate using platform version 1.4.0 or later. EphemeralStorage *types.EphemeralStorage // The Amazon Resource Name (ARN) of the task execution role that grants the Amazon - // ECS container agent permission to make AWS API calls on your behalf. The task - // execution IAM role is required depending on the requirements of your task. For - // more information, see Amazon ECS task execution IAM role + // ECS container agent permission to make Amazon Web Services API calls on your + // behalf. The task execution IAM role is required depending on the requirements of + // your task. For more information, see Amazon ECS task execution IAM role // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) // in the Amazon Elastic Container Service Developer Guide. ExecutionRoleArn *string @@ -140,7 +141,7 @@ type RegisterTaskDefinitionInput struct { // apply to all containers within a task. // // This parameter is not supported for - // Windows containers or tasks run on AWS Fargate. + // Windows containers or tasks run on Fargate. IpcMode types.IpcMode // The amount of memory (in MiB) used by the task. It can be expressed as an @@ -173,31 +174,27 @@ type RegisterTaskDefinitionInput struct { // The Docker networking mode to use for the containers in the task. The valid // values are none, bridge, awsvpc, and host. If no network mode is specified, the // default is bridge. For Amazon ECS tasks on Fargate, the awsvpc network mode is - // required. For Amazon ECS tasks on Amazon EC2 instances, any network mode can be - // used. If the network mode is set to none, you cannot specify port mappings in - // your container definitions, and the tasks containers do not have external - // connectivity. The host and awsvpc network modes offer the highest networking - // performance for containers because they use the EC2 network stack instead of the - // virtualized network stack provided by the bridge mode. With the host and awsvpc - // network modes, exposed container ports are mapped directly to the corresponding - // host port (for the host network mode) or the attached elastic network interface - // port (for the awsvpc network mode), so you cannot take advantage of dynamic host - // port mappings. When using the host network mode, you should not run containers - // using the root user (UID 0). It is considered best practice to use a non-root - // user. If the network mode is awsvpc, the task is allocated an elastic network - // interface, and you must specify a NetworkConfiguration value when you create a - // service or run a task with the task definition. For more information, see Task - // Networking + // required. For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode + // can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc + // can be used. If the network mode is set to none, you cannot specify port + // mappings in your container definitions, and the tasks containers do not have + // external connectivity. The host and awsvpc network modes offer the highest + // networking performance for containers because they use the EC2 network stack + // instead of the virtualized network stack provided by the bridge mode. With the + // host and awsvpc network modes, exposed container ports are mapped directly to + // the corresponding host port (for the host network mode) or the attached elastic + // network interface port (for the awsvpc network mode), so you cannot take + // advantage of dynamic host port mappings. When using the host network mode, you + // should not run containers using the root user (UID 0). It is considered best + // practice to use a non-root user. If the network mode is awsvpc, the task is + // allocated an elastic network interface, and you must specify a + // NetworkConfiguration value when you create a service or run a task with the task + // definition. For more information, see Task Networking // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) - // in the Amazon Elastic Container Service Developer Guide. Currently, only Amazon - // ECS-optimized AMIs, other Amazon Linux variants with the ecs-init package, or - // AWS Fargate infrastructure support the awsvpc network mode. If the network mode - // is host, you cannot run multiple instantiations of the same task on a single - // container instance when port mappings are used. Docker for Windows uses - // different network modes than Docker for Linux. When you register a task - // definition with Windows containers, you must not specify a network mode. If you - // use the console to register a task definition with Windows containers, you must - // choose the network mode object. For more information, see Network settings + // in the Amazon Elastic Container Service Developer Guide. If the network mode is + // host, you cannot run multiple instantiations of the same task on a single + // container instance when port mappings are used. For more information, see + // Network settings // (https://docs.docker.com/engine/reference/run/#network-settings) in the Docker // run reference. NetworkMode types.NetworkMode @@ -213,7 +210,7 @@ type RegisterTaskDefinitionInput struct { // run reference. If the host PID mode is used, be aware that there is a heightened // risk of undesired process namespace expose. For more information, see Docker // security (https://docs.docker.com/engine/security/security/). This parameter is - // not supported for Windows containers or tasks run on AWS Fargate. + // not supported for Windows containers or tasks run on Fargate. PidMode types.PidMode // An array of placement constraint objects to use for the task. You can specify a @@ -263,9 +260,9 @@ type RegisterTaskDefinitionInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []types.Tag // The short name or full Amazon Resource Name (ARN) of the IAM role that diff --git a/service/ecs/api_op_RunTask.go b/service/ecs/api_op_RunTask.go index 04414a89eb9..6abb2f988d0 100644 --- a/service/ecs/api_op_RunTask.go +++ b/service/ecs/api_op_RunTask.go @@ -63,7 +63,8 @@ type RunTaskInput struct { // The capacity provider strategy to use for the task. If a // capacityProviderStrategy is specified, the launchType parameter must be omitted. // If no capacityProviderStrategy or launchType is specified, the - // defaultCapacityProviderStrategy for the cluster is used. + // defaultCapacityProviderStrategy for the cluster is used. When you use cluster + // auto scaling, you must specify capacityProviderStrategy and not launchType. CapacityProviderStrategy []types.CapacityProviderStrategyItem // The short name or full Amazon Resource Name (ARN) of the cluster on which to run @@ -93,16 +94,17 @@ type RunTaskInput struct { // see Amazon ECS launch types // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) // in the Amazon Elastic Container Service Developer Guide. The FARGATE launch type - // runs your tasks on AWS Fargate On-Demand infrastructure. Fargate Spot - // infrastructure is available for use but a capacity provider strategy must be - // used. For more information, see AWS Fargate capacity providers + // runs your tasks on Fargate On-Demand infrastructure. Fargate Spot infrastructure + // is available for use but a capacity provider strategy must be used. For more + // information, see Fargate capacity providers // (https://docs.aws.amazon.com/AmazonECS/latest/userguide/fargate-capacity-providers.html) - // in the Amazon ECS User Guide for AWS Fargate. The EC2 launch type runs your - // tasks on Amazon EC2 instances registered to your cluster. The EXTERNAL launch - // type runs your tasks on your on-premise server or virtual machine (VM) capacity - // registered to your cluster. A task can use either a launch type or a capacity - // provider strategy. If a launchType is specified, the capacityProviderStrategy - // parameter must be omitted. + // in the Amazon ECS User Guide for Fargate. The EC2 launch type runs your tasks on + // Amazon EC2 instances registered to your cluster. The EXTERNAL launch type runs + // your tasks on your on-premise server or virtual machine (VM) capacity registered + // to your cluster. A task can use either a launch type or a capacity provider + // strategy. If a launchType is specified, the capacityProviderStrategy parameter + // must be omitted. When you use cluster auto scaling, you must specify + // capacityProviderStrategy and not launchType. LaunchType types.LaunchType // The network configuration for the task. This parameter is required for task @@ -134,8 +136,8 @@ type RunTaskInput struct { // The platform version the task should run. A platform version is only specified // for tasks using the Fargate launch type. If one is not specified, the LATEST - // platform version is used by default. For more information, see AWS Fargate - // Platform Versions + // platform version is used by default. For more information, see Fargate Platform + // Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -185,9 +187,9 @@ type RunTaskInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ecs/api_op_StartTask.go b/service/ecs/api_op_StartTask.go index a8acd2bb1b7..85a50746316 100644 --- a/service/ecs/api_op_StartTask.go +++ b/service/ecs/api_op_StartTask.go @@ -121,9 +121,9 @@ type StartTaskInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/ecs/api_op_TagResource.go b/service/ecs/api_op_TagResource.go index bc08230215a..4cd55010f39 100644 --- a/service/ecs/api_op_TagResource.go +++ b/service/ecs/api_op_TagResource.go @@ -63,9 +63,9 @@ type TagResourceInput struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. // // This member is required. Tags []types.Tag diff --git a/service/ecs/api_op_UpdateService.go b/service/ecs/api_op_UpdateService.go index 55a2ab8ebdf..7e24e04d3f7 100644 --- a/service/ecs/api_op_UpdateService.go +++ b/service/ecs/api_op_UpdateService.go @@ -23,10 +23,10 @@ import ( // deployment controller, only the desired count, deployment configuration, task // placement constraints and strategies, and health check grace period can be // updated using this API. If the network configuration, platform version, or task -// definition need to be updated, a new AWS CodeDeploy deployment should be -// created. For more information, see CreateDeployment +// definition need to be updated, a new CodeDeploy deployment should be created. +// For more information, see CreateDeployment // (https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html) -// in the AWS CodeDeploy API Reference. For services using an external deployment +// in the CodeDeploy API Reference. For services using an external deployment // controller, you can update only the desired count, task placement constraints // and strategies, and health check grace period using this API. If the launch // type, load balancer, network configuration, platform version, or task definition @@ -140,8 +140,8 @@ type UpdateServiceInput struct { // cluster. Only capacity providers with an ACTIVE or UPDATING status can be used. // If specifying a capacity provider that uses an Auto Scaling group, the capacity // provider must already be created. New capacity providers can be created with the - // CreateCapacityProvider API operation. To use a AWS Fargate capacity provider, - // specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate + // CreateCapacityProvider API operation. To use a Fargate capacity provider, + // specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate // capacity providers are available to all accounts and only need to be associated // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the @@ -207,7 +207,7 @@ type UpdateServiceInput struct { // The platform version on which your tasks in the service are running. A platform // version is only specified for tasks using the Fargate launch type. If a platform // version is not specified, the LATEST platform version is used by default. For - // more information, see AWS Fargate Platform Versions + // more information, see Fargate Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string diff --git a/service/ecs/doc.go b/service/ecs/doc.go index 894ebd00436..4a6b65ec293 100644 --- a/service/ecs/doc.go +++ b/service/ecs/doc.go @@ -7,7 +7,7 @@ // is a highly scalable, fast, container management service that makes it easy to // run, stop, and manage Docker containers on a cluster. You can host your cluster // on a serverless infrastructure that is managed by Amazon ECS by launching your -// services or tasks on AWS Fargate. For more control, you can host your tasks on a +// services or tasks on Fargate. For more control, you can host your tasks on a // cluster of Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage. // Amazon ECS makes it easy to launch and stop container-based applications with // simple API calls, allows you to get the state of your cluster from a centralized diff --git a/service/ecs/types/errors.go b/service/ecs/types/errors.go index 98e9cece459..11f22c5c87e 100644 --- a/service/ecs/types/errors.go +++ b/service/ecs/types/errors.go @@ -49,8 +49,8 @@ func (e *AttributeLimitExceededException) ErrorCode() string { } func (e *AttributeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// Your AWS account has been blocked. For more information, contact AWS Support -// (http://aws.amazon.com/contact-us/). +// Your Amazon Web Services account has been blocked. For more information, contact +// Amazon Web Services Support (http://aws.amazon.com/contact-us/). type BlockedException struct { Message *string diff --git a/service/ecs/types/types.go b/service/ecs/types/types.go index eae2c99fc5a..30c8aeaa224 100644 --- a/service/ecs/types/types.go +++ b/service/ecs/types/types.go @@ -96,9 +96,9 @@ type AutoScalingGroupProvider struct { // the Auto Scaling group must have instance protection from scale-in actions // enabled as well. For more information, see Instance Protection // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) - // in the AWS Auto Scaling User Guide. When managed termination protection is - // disabled, your Amazon EC2 instances are not protected from termination when the - // Auto Scaling group scales in. + // in the Auto Scaling User Guide. When managed termination protection is disabled, + // your Amazon EC2 instances are not protected from termination when the Auto + // Scaling group scales in. ManagedTerminationProtection ManagedTerminationProtection noSmithyDocumentSerde @@ -120,9 +120,9 @@ type AutoScalingGroupProviderUpdate struct { // the Auto Scaling group must have instance protection from scale-in actions // enabled as well. For more information, see Instance Protection // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) - // in the AWS Auto Scaling User Guide. When managed termination protection is - // disabled, your Amazon EC2 instances are not protected from termination when the - // Auto Scaling group scales in. + // in the Auto Scaling User Guide. When managed termination protection is disabled, + // your Amazon EC2 instances are not protected from termination when the Auto + // Scaling group scales in. ManagedTerminationProtection ManagedTerminationProtection noSmithyDocumentSerde @@ -193,9 +193,9 @@ type CapacityProvider struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []Tag // The update status of the capacity provider. The following are the possible @@ -222,10 +222,9 @@ type CapacityProvider struct { // cluster. If specifying a capacity provider that uses an Auto Scaling group, the // capacity provider must already be created. New Auto Scaling group capacity // providers can be created with the CreateCapacityProvider API operation. To use a -// AWS Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT -// capacity providers. The AWS Fargate capacity providers are available to all -// accounts and only need to be associated with a cluster to be used in a capacity -// provider strategy. +// Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT capacity +// providers. The Fargate capacity providers are available to all accounts and only +// need to be associated with a cluster to be used in a capacity provider strategy. type CapacityProviderStrategyItem struct { // The short name of the capacity provider. @@ -285,8 +284,8 @@ type Cluster struct { CapacityProviders []string // The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the - // arn:aws:ecs namespace, followed by the Region of the cluster, the AWS account ID - // of the cluster owner, the cluster namespace, and then the cluster name. For + // arn:aws:ecs namespace, followed by the Region of the cluster, the account ID of + // the cluster owner, the cluster namespace, and then the cluster name. For // example, arn:aws:ecs:region:012345678910:cluster/test. ClusterArn *string @@ -377,9 +376,9 @@ type Cluster struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []Tag noSmithyDocumentSerde @@ -896,7 +895,7 @@ type ContainerDefinition struct { // the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the // --privileged option to docker run // (https://docs.docker.com/engine/reference/run/#security-configuration). This - // parameter is not supported for Windows containers or tasks run on AWS Fargate. + // parameter is not supported for Windows containers or tasks run on Fargate. Privileged *bool // When this parameter is true, a TTY is allocated. This parameter maps to Tty in @@ -1135,15 +1134,15 @@ type ContainerInstance struct { CapacityProviderName *string // The Amazon Resource Name (ARN) of the container instance. The ARN contains the - // arn:aws:ecs namespace, followed by the Region of the container instance, the AWS + // arn:aws:ecs namespace, followed by the Region of the container instance, the // account ID of the container instance owner, the container-instance namespace, // and then the container instance ID. For example, // arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID. ContainerInstanceArn *string // The ID of the container instance. For Amazon EC2 instances, this value is the - // Amazon EC2 instance ID. For external instances, this value is the AWS Systems - // Manager managed instance ID. + // Amazon EC2 instance ID. For external instances, this value is the Amazon Web + // Services Systems Manager managed instance ID. Ec2InstanceId *string // The number of tasks on the container instance that are in the PENDING status. @@ -1219,9 +1218,9 @@ type ContainerInstance struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []Tag // The version counter for the container instance. Every time a container instance @@ -1353,7 +1352,7 @@ type Deployment struct { // The platform version on which your tasks in the service are running. A platform // version is only specified for tasks using the Fargate launch type. If one is not // specified, the LATEST platform version is used by default. For more information, - // see AWS Fargate Platform Versions + // see Fargate Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -1486,11 +1485,11 @@ type DeploymentController struct { // update is controlled by adjusting the minimum and maximum number of healthy // tasks allowed during a service deployment, as specified in the // DeploymentConfiguration. CODE_DEPLOY The blue/green (CODE_DEPLOY) deployment - // type uses the blue/green deployment model powered by AWS CodeDeploy, which - // allows you to verify a new deployment of a service before sending production - // traffic to it. EXTERNAL The external (EXTERNAL) deployment type enables you to - // use any third-party deployment controller for full control over the deployment - // process for an Amazon ECS service. + // type uses the blue/green deployment model powered by CodeDeploy, which allows + // you to verify a new deployment of a service before sending production traffic to + // it. EXTERNAL The external (EXTERNAL) deployment type enables you to use any + // third-party deployment controller for full control over the deployment process + // for an Amazon ECS service. // // This member is required. Type DeploymentControllerType @@ -1663,11 +1662,11 @@ type EnvironmentFile struct { // The amount of ephemeral storage to allocate for the task. This parameter is used // to expand the total amount of ephemeral storage available, beyond the default -// amount, for tasks hosted on AWS Fargate. For more information, see Fargate task +// amount, for tasks hosted on Fargate. For more information, see Fargate task // storage // (https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_data_volumes.html) -// in the Amazon ECS User Guide for AWS Fargate. This parameter is only supported -// for tasks hosted on AWS Fargate using platform version 1.4.0 or later. +// in the Amazon ECS User Guide for Fargate. This parameter is only supported for +// tasks hosted on Fargate using platform version 1.4.0 or later. type EphemeralStorage struct { // The total amount, in GiB, of ephemeral storage to set for the task. The minimum @@ -1682,8 +1681,8 @@ type EphemeralStorage struct { // The details of the execute command configuration. type ExecuteCommandConfiguration struct { - // Specify an AWS Key Management Service key ID to encrypt the data between the - // local client and the container. + // Specify an Key Management Service key ID to encrypt the data between the local + // client and the container. KmsKeyId *string // The log configuration for the results of the execute command actions. The logs @@ -1772,8 +1771,8 @@ type FirelensConfiguration struct { // For more information, see Creating a Task Definition that Uses a FireLens // Configuration // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef) - // in the Amazon Elastic Container Service Developer Guide. Tasks hosted on AWS - // Fargate only support the file configuration file type. + // in the Amazon Elastic Container Service Developer Guide. Tasks hosted on Fargate + // only support the file configuration file type. Options map[string]string noSmithyDocumentSerde @@ -1789,14 +1788,14 @@ type FirelensConfiguration struct { type FSxWindowsFileServerAuthorizationConfig struct { // The authorization credential option to use. The authorization credential options - // can be provided using either the Amazon Resource Name (ARN) of an AWS Secrets - // Manager secret or AWS Systems Manager Parameter Store parameter. The ARNs refer - // to the stored credentials. + // can be provided using either the Amazon Resource Name (ARN) of an Secrets + // Manager secret or SSM Parameter Store parameter. The ARNs refer to the stored + // credentials. // // This member is required. CredentialsParameter *string - // A fully qualified domain name hosted by an AWS Directory Service + // A fully qualified domain name hosted by an Directory Service // (https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) // Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. // @@ -1878,8 +1877,8 @@ type FSxWindowsFileServerVolumeConfiguration struct { // // * // Container health checks are supported for Fargate tasks if you are using -// platform version 1.1.0 or greater. For more information, see AWS Fargate -// Platform Versions +// platform version 1.1.0 or greater. For more information, see Fargate Platform +// Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html). // // * @@ -2011,10 +2010,10 @@ type KernelCapabilities struct { // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and // the --cap-add option to docker run // (https://docs.docker.com/engine/reference/run/#security-configuration). Tasks - // launched on AWS Fargate only support adding the SYS_PTRACE kernel capability. - // Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | - // "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" - // | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | + // launched on Fargate only support adding the SYS_PTRACE kernel capability. Valid + // values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | + // "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | + // "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | // "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | // "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | // "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | @@ -2199,15 +2198,15 @@ type LoadBalancer struct { // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) // in the Amazon Elastic Container Service Developer Guide. // -// * For tasks on AWS +// * For tasks on // Fargate, because you do not have access to the underlying infrastructure your // tasks are hosted on, any additional software needed will have to be installed // outside of the task. For example, the Fluentd output aggregators or a remote // host running Logstash to send Gelf logs to. type LogConfiguration struct { - // The log driver to use for the container. For tasks on AWS Fargate, the supported - // log drivers are awslogs, splunk, and awsfirelens. For tasks hosted on Amazon EC2 + // The log driver to use for the container. For tasks on Fargate, the supported log + // drivers are awslogs, splunk, and awsfirelens. For tasks hosted on Amazon EC2 // instances, the supported log drivers are awslogs, fluentd, gelf, json-file, // journald, logentries,syslog, splunk, and awsfirelens. For more information about // using the awslogs log driver, see Using the awslogs log driver @@ -2563,10 +2562,11 @@ type ProxyConfiguration struct { type RepositoryCredentials struct { // The Amazon Resource Name (ARN) of the secret containing the private repository - // credentials. When you are using the Amazon ECS API, AWS CLI, or AWS SDK, if the - // secret exists in the same Region as the task that you are launching then you can - // use either the full ARN or the name of the secret. When you are using the AWS - // Management Console, you must specify the full ARN of the secret. + // credentials. When you are using the Amazon ECS API, CLI, or Amazon Web Services + // SDK, if the secret exists in the same Region as the task that you are launching + // then you can use either the full ARN or the name of the secret. When you are + // using the Amazon Web Services Management Console, you must specify the full ARN + // of the secret. // // This member is required. CredentialsParameter *string @@ -2666,11 +2666,11 @@ type Secret struct { Name *string // The secret to expose to the container. The supported values are either the full - // ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the - // AWS Systems Manager Parameter Store. If the AWS Systems Manager Parameter Store - // parameter exists in the same Region as the task you are launching, then you can - // use either the full ARN or name of the parameter. If the parameter exists in a - // different Region, then the full ARN must be specified. + // ARN of the Secrets Manager secret or the full ARN of the parameter in the SSM + // Parameter Store. If the SSM Parameter Store parameter exists in the same Region + // as the task you are launching, then you can use either the full ARN or name of + // the parameter. If the parameter exists in a different Region, then the full ARN + // must be specified. // // This member is required. ValueFrom *string @@ -2681,7 +2681,9 @@ type Secret struct { // Details on a service within a cluster type Service struct { - // The capacity provider strategy associated with the service. + // The capacity provider strategy the service is using. When using the + // DescribeServices API, this field is omitted if the service was created using a + // launch type. CapacityProviderStrategy []CapacityProviderStrategyItem // The Amazon Resource Name (ARN) of the cluster that hosts the service. @@ -2730,10 +2732,8 @@ type Service struct { // started. HealthCheckGracePeriodSeconds *int32 - // The infrastructure on which your service is running. For more information, see - // Amazon ECS launch types - // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) - // in the Amazon Elastic Container Service Developer Guide. + // The launch type the service is using. When using the DescribeServices API, this + // field is omitted if the service was created using a capacity provider strategy. LaunchType LaunchType // A list of Elastic Load Balancing load balancer objects, containing the load @@ -2755,9 +2755,9 @@ type Service struct { PlacementStrategy []PlacementStrategy // The platform version on which to run your service. A platform version is only - // specified for tasks using the Fargate launch type. If one is not specified, the - // LATEST platform version is used by default. For more information, see AWS - // Fargate Platform Versions + // specified for tasks hosted on Fargate. If one is not specified, the LATEST + // platform version is used by default. For more information, see Fargate Platform + // Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -2794,8 +2794,8 @@ type Service struct { SchedulingStrategy SchedulingStrategy // The ARN that identifies the service. The ARN contains the arn:aws:ecs namespace, - // followed by the Region of the service, the AWS account ID of the service owner, - // the service namespace, and then the service name. For example, + // followed by the Region of the service, the account ID of the service owner, the + // service namespace, and then the service name. For example, // arn:aws:ecs:region:012345678910:service/my-service. ServiceArn *string @@ -2838,9 +2838,9 @@ type Service struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []Tag // The task definition to use for tasks in the service. This value is specified @@ -2848,7 +2848,7 @@ type Service struct { // UpdateService. TaskDefinition *string - // Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an + // Information about a set of Amazon ECS tasks in either an CodeDeploy or an // EXTERNAL deployment. An Amazon ECS task set includes details such as the desired // number of tasks, how many tasks are running, and whether the task set serves // production traffic. @@ -2898,7 +2898,7 @@ type ServiceRegistry struct { Port *int32 // The Amazon Resource Name (ARN) of the service registry. The currently supported - // service registry is AWS Cloud Map. For more information, see CreateService + // service registry is Cloud Map. For more information, see CreateService // (https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html). RegistryArn *string @@ -2993,9 +2993,9 @@ type SystemControl struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination -// of such as a prefix for either keys or values as it is reserved for AWS use. You -// cannot edit or delete tag keys or values with this prefix. Tags with this prefix -// do not count against your tags per resource limit. +// of such as a prefix for either keys or values as it is reserved for Amazon Web +// Services use. You cannot edit or delete tag keys or values with this prefix. +// Tags with this prefix do not count against your tags per resource limit. type Tag struct { // One part of a key-value pair that make up a tag. A key is a general label that @@ -3145,8 +3145,8 @@ type Task struct { // The platform version on which your task is running. A platform version is only // specified for tasks using the Fargate launch type. If one is not specified, the - // LATEST platform version is used by default. For more information, see AWS - // Fargate Platform Versions + // LATEST platform version is used by default. For more information, see Fargate + // Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -3206,9 +3206,9 @@ type Task struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []Tag // The Amazon Resource Name (ARN) of the task. @@ -3277,9 +3277,9 @@ type TaskDefinition struct { EphemeralStorage *EphemeralStorage // The Amazon Resource Name (ARN) of the task execution role that grants the Amazon - // ECS container agent permission to make AWS API calls on your behalf. The task - // execution IAM role is required depending on the requirements of your task. For - // more information, see Amazon ECS task execution IAM role + // ECS container agent permission to make Amazon Web Services API calls on your + // behalf. The task execution IAM role is required depending on the requirements of + // your task. For more information, see Amazon ECS task execution IAM role // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) // in the Amazon Elastic Container Service Developer Guide. ExecutionRoleArn *string @@ -3322,7 +3322,7 @@ type TaskDefinition struct { // apply to all containers within a task. // // This parameter is not supported for - // Windows containers or tasks run on AWS Fargate. + // Windows containers or tasks run on Fargate. IpcMode IpcMode // The amount (in MiB) of memory used by the task. If your tasks will be run on @@ -3332,55 +3332,51 @@ type TaskDefinition struct { // is optional. For more information regarding container-level memory and memory // reservation, see ContainerDefinition // (https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html). - // If your tasks will be run on AWS Fargate, this field is required and you must - // use one of the following values, which determines your range of valid values for - // the cpu parameter: + // If your tasks will be run on Fargate, this field is required and you must use + // one of the following values, which determines your range of valid values for the + // cpu parameter: // - // * 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu - // values: 256 (.25 vCPU) + // * 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: + // 256 (.25 vCPU) // - // * 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - - // Available cpu values: 512 (.5 vCPU) + // * 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available + // cpu values: 512 (.5 vCPU) // - // * 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), - // 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 - // (1 vCPU) + // * 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), + // 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU) // - // * Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - - // Available cpu values: 2048 (2 vCPU) + // * + // Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available + // cpu values: 2048 (2 vCPU) // - // * Between 8192 (8 GB) and 30720 (30 GB) in - // increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) + // * Between 8192 (8 GB) and 30720 (30 GB) in increments + // of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) Memory *string // The Docker networking mode to use for the containers in the task. The valid // values are none, bridge, awsvpc, and host. If no network mode is specified, the // default is bridge. For Amazon ECS tasks on Fargate, the awsvpc network mode is - // required. For Amazon ECS tasks on Amazon EC2 instances, any network mode can be - // used. If the network mode is set to none, you cannot specify port mappings in - // your container definitions, and the tasks containers do not have external - // connectivity. The host and awsvpc network modes offer the highest networking - // performance for containers because they use the EC2 network stack instead of the - // virtualized network stack provided by the bridge mode. With the host and awsvpc - // network modes, exposed container ports are mapped directly to the corresponding - // host port (for the host network mode) or the attached elastic network interface - // port (for the awsvpc network mode), so you cannot take advantage of dynamic host - // port mappings. When using the host network mode, you should not run containers - // using the root user (UID 0). It is considered best practice to use a non-root - // user. If the network mode is awsvpc, the task is allocated an elastic network - // interface, and you must specify a NetworkConfiguration value when you create a - // service or run a task with the task definition. For more information, see Task - // Networking + // required. For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode + // can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc + // can be used. If the network mode is set to none, you cannot specify port + // mappings in your container definitions, and the tasks containers do not have + // external connectivity. The host and awsvpc network modes offer the highest + // networking performance for containers because they use the EC2 network stack + // instead of the virtualized network stack provided by the bridge mode. With the + // host and awsvpc network modes, exposed container ports are mapped directly to + // the corresponding host port (for the host network mode) or the attached elastic + // network interface port (for the awsvpc network mode), so you cannot take + // advantage of dynamic host port mappings. When using the host network mode, you + // should not run containers using the root user (UID 0). It is considered best + // practice to use a non-root user. If the network mode is awsvpc, the task is + // allocated an elastic network interface, and you must specify a + // NetworkConfiguration value when you create a service or run a task with the task + // definition. For more information, see Task Networking // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) - // in the Amazon Elastic Container Service Developer Guide. Currently, only Amazon - // ECS-optimized AMIs, other Amazon Linux variants with the ecs-init package, or - // AWS Fargate infrastructure support the awsvpc network mode. If the network mode - // is host, you cannot run multiple instantiations of the same task on a single - // container instance when port mappings are used. Docker for Windows uses - // different network modes than Docker for Linux. When you register a task - // definition with Windows containers, you must not specify a network mode. If you - // use the console to register a task definition with Windows containers, you must - // choose the network mode object. For more information, see Network settings + // in the Amazon Elastic Container Service Developer Guide. If the network mode is + // host, you cannot run multiple instantiations of the same task on a single + // container instance when port mappings are used. For more information, see + // Network settings // (https://docs.docker.com/engine/reference/run/#network-settings) in the Docker // run reference. NetworkMode NetworkMode @@ -3396,11 +3392,11 @@ type TaskDefinition struct { // run reference. If the host PID mode is used, be aware that there is a heightened // risk of undesired process namespace expose. For more information, see Docker // security (https://docs.docker.com/engine/security/security/). This parameter is - // not supported for Windows containers or tasks run on AWS Fargate. + // not supported for Windows containers or tasks run on Fargate. PidMode PidMode // An array of placement constraint objects to use for tasks. This parameter is not - // supported for tasks run on AWS Fargate. + // supported for tasks run on Fargate. PlacementConstraints []TaskDefinitionPlacementConstraint // The configuration details for the App Mesh proxy. Your Amazon ECS container @@ -3427,7 +3423,7 @@ type TaskDefinition struct { // on Amazon EC2 instances. For more information, see Attributes // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes) // in the Amazon Elastic Container Service Developer Guide. This parameter is not - // supported for tasks run on AWS Fargate. + // supported for tasks run on Fargate. RequiresAttributes []Attribute // The task launch types the task definition was validated against. To determine @@ -3448,9 +3444,9 @@ type TaskDefinition struct { // The full Amazon Resource Name (ARN) of the task definition. TaskDefinitionArn *string - // The short name or full Amazon Resource Name (ARN) of the AWS Identity and Access - // Management (IAM) role that grants containers in the task permission to call AWS - // APIs on your behalf. For more information, see Amazon ECS Task Role + // The short name or full Amazon Resource Name (ARN) of the Identity and Access + // Management role that grants containers in the task permission to call Amazon Web + // Services APIs on your behalf. For more information, see Amazon ECS Task Role // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) // in the Amazon Elastic Container Service Developer Guide. IAM roles for tasks on // Windows require that the -EnableTaskIAMRole option is set when you launch the @@ -3465,7 +3461,7 @@ type TaskDefinition struct { // Using data volumes in tasks // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html) // in the Amazon Elastic Container Service Developer Guide. The host and sourcePath - // parameters are not supported for tasks run on AWS Fargate. + // parameters are not supported for tasks run on Fargate. Volumes []Volume noSmithyDocumentSerde @@ -3475,7 +3471,7 @@ type TaskDefinition struct { // For more information, see Task placement constraints // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html) // in the Amazon Elastic Container Service Developer Guide. Task placement -// constraints are not supported for tasks run on AWS Fargate. +// constraints are not supported for tasks run on Fargate. type TaskDefinitionPlacementConstraint struct { // A cluster query language expression to apply to the constraint. For more @@ -3501,7 +3497,7 @@ type TaskOverride struct { Cpu *string // The ephemeral storage setting override for the task. This parameter is only - // supported for tasks hosted on AWS Fargate using platform version 1.4.0 or later. + // supported for tasks hosted on Fargate using platform version 1.4.0 or later. EphemeralStorage *EphemeralStorage // The Amazon Resource Name (ARN) of the task execution IAM role override for the @@ -3522,7 +3518,7 @@ type TaskOverride struct { noSmithyDocumentSerde } -// Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an +// Information about a set of Amazon ECS tasks in either an CodeDeploy or an // EXTERNAL deployment. An Amazon ECS task set includes details such as the desired // number of tasks, how many tasks are running, and whether the task set serves // production traffic. @@ -3544,11 +3540,11 @@ type TaskSet struct { // The Unix timestamp for when the task set was created. CreatedAt *time.Time - // The external ID associated with the task set. If a task set is created by an AWS - // CodeDeploy deployment, the externalId parameter contains the AWS CodeDeploy + // The external ID associated with the task set. If a task set is created by an + // CodeDeploy deployment, the externalId parameter contains the CodeDeploy // deployment ID. If a task set is created for an external deployment and is // associated with a service discovery registry, the externalId parameter contains - // the ECS_TASK_SET_EXTERNAL_ID AWS Cloud Map attribute. + // the ECS_TASK_SET_EXTERNAL_ID Cloud Map attribute. ExternalId *string // The ID of the task set. @@ -3572,9 +3568,9 @@ type TaskSet struct { // it is restarted after being in the STOPPED state. PendingCount int32 - // The AWS Fargate platform version on which the tasks in the task set are running. - // A platform version is only specified for tasks run on AWS Fargate. For more - // information, see AWS Fargate platform versions + // The Fargate platform version on which the tasks in the task set are running. A + // platform version is only specified for tasks run on Fargate. For more + // information, see Fargate platform versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string @@ -3618,8 +3614,8 @@ type TaskSet struct { StabilityStatusAt *time.Time // The tag specified when a task set is started. If the task set is created by an - // AWS CodeDeploy deployment, the startedBy parameter is CODE_DEPLOY. For a task - // set created for an external deployment, the startedBy field isn't used. + // CodeDeploy deployment, the startedBy parameter is CODE_DEPLOY. For a task set + // created for an external deployment, the startedBy field isn't used. StartedBy *string // The status of the task set. The following describes each state: PRIMARY The task @@ -3653,9 +3649,9 @@ type TaskSet struct { // case-sensitive. // // * Do not use aws:, AWS:, or any upper or lowercase combination - // of such as a prefix for either keys or values as it is reserved for AWS use. You - // cannot edit or delete tag keys or values with this prefix. Tags with this prefix - // do not count against your tags per resource limit. + // of such as a prefix for either keys or values as it is reserved for Amazon Web + // Services use. You cannot edit or delete tag keys or values with this prefix. + // Tags with this prefix do not count against your tags per resource limit. Tags []Tag // The task definition the task set is using. @@ -3750,7 +3746,7 @@ type Volume struct { // This parameter is specified when you are using Docker volumes. Windows // containers only support the use of the local driver. To use bind mounts, specify - // the host parameter instead. Docker volumes are not supported by tasks run on AWS + // the host parameter instead. Docker volumes are not supported by tasks run on // Fargate. DockerVolumeConfiguration *DockerVolumeConfiguration diff --git a/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go b/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go index 977075b3e61..02eabb92246 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go +++ b/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go @@ -4,12 +4,18 @@ package elasticloadbalancingv2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" ) // Describes the specified load balancers or all of your load balancers. @@ -197,6 +203,538 @@ func (p *DescribeLoadBalancersPaginator) NextPage(ctx context.Context, optFns .. return result, nil } +// LoadBalancerAvailableWaiterOptions are waiter options for +// LoadBalancerAvailableWaiter +type LoadBalancerAvailableWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // LoadBalancerAvailableWaiter will use default minimum delay of 15 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, LoadBalancerAvailableWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeLoadBalancersInput, *DescribeLoadBalancersOutput, error) (bool, error) +} + +// LoadBalancerAvailableWaiter defines the waiters for LoadBalancerAvailable +type LoadBalancerAvailableWaiter struct { + client DescribeLoadBalancersAPIClient + + options LoadBalancerAvailableWaiterOptions +} + +// NewLoadBalancerAvailableWaiter constructs a LoadBalancerAvailableWaiter. +func NewLoadBalancerAvailableWaiter(client DescribeLoadBalancersAPIClient, optFns ...func(*LoadBalancerAvailableWaiterOptions)) *LoadBalancerAvailableWaiter { + options := LoadBalancerAvailableWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = loadBalancerAvailableStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &LoadBalancerAvailableWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for LoadBalancerAvailable waiter. The maxWaitDur +// is the maximum wait duration the waiter will wait. The maxWaitDur is required +// and must be greater than zero. +func (w *LoadBalancerAvailableWaiter) Wait(ctx context.Context, params *DescribeLoadBalancersInput, maxWaitDur time.Duration, optFns ...func(*LoadBalancerAvailableWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeLoadBalancers(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for LoadBalancerAvailable waiter") +} + +func loadBalancerAvailableStateRetryable(ctx context.Context, input *DescribeLoadBalancersInput, output *DescribeLoadBalancersOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("LoadBalancers[].State.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "active" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.LoadBalancerStateEnum) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.LoadBalancerStateEnum value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("LoadBalancers[].State.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "provisioning" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.LoadBalancerStateEnum) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.LoadBalancerStateEnum value, got %T", pathValue) + } + + if string(value) == expectedValue { + return true, nil + } + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "LoadBalancerNotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + +// LoadBalancerExistsWaiterOptions are waiter options for LoadBalancerExistsWaiter +type LoadBalancerExistsWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // LoadBalancerExistsWaiter will use default minimum delay of 15 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, LoadBalancerExistsWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeLoadBalancersInput, *DescribeLoadBalancersOutput, error) (bool, error) +} + +// LoadBalancerExistsWaiter defines the waiters for LoadBalancerExists +type LoadBalancerExistsWaiter struct { + client DescribeLoadBalancersAPIClient + + options LoadBalancerExistsWaiterOptions +} + +// NewLoadBalancerExistsWaiter constructs a LoadBalancerExistsWaiter. +func NewLoadBalancerExistsWaiter(client DescribeLoadBalancersAPIClient, optFns ...func(*LoadBalancerExistsWaiterOptions)) *LoadBalancerExistsWaiter { + options := LoadBalancerExistsWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = loadBalancerExistsStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &LoadBalancerExistsWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for LoadBalancerExists waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *LoadBalancerExistsWaiter) Wait(ctx context.Context, params *DescribeLoadBalancersInput, maxWaitDur time.Duration, optFns ...func(*LoadBalancerExistsWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeLoadBalancers(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for LoadBalancerExists waiter") +} + +func loadBalancerExistsStateRetryable(ctx context.Context, input *DescribeLoadBalancersInput, output *DescribeLoadBalancersOutput, err error) (bool, error) { + + if err == nil { + return false, nil + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "LoadBalancerNotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + +// LoadBalancersDeletedWaiterOptions are waiter options for +// LoadBalancersDeletedWaiter +type LoadBalancersDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // LoadBalancersDeletedWaiter will use default minimum delay of 15 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, LoadBalancersDeletedWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeLoadBalancersInput, *DescribeLoadBalancersOutput, error) (bool, error) +} + +// LoadBalancersDeletedWaiter defines the waiters for LoadBalancersDeleted +type LoadBalancersDeletedWaiter struct { + client DescribeLoadBalancersAPIClient + + options LoadBalancersDeletedWaiterOptions +} + +// NewLoadBalancersDeletedWaiter constructs a LoadBalancersDeletedWaiter. +func NewLoadBalancersDeletedWaiter(client DescribeLoadBalancersAPIClient, optFns ...func(*LoadBalancersDeletedWaiterOptions)) *LoadBalancersDeletedWaiter { + options := LoadBalancersDeletedWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = loadBalancersDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &LoadBalancersDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for LoadBalancersDeleted waiter. The maxWaitDur +// is the maximum wait duration the waiter will wait. The maxWaitDur is required +// and must be greater than zero. +func (w *LoadBalancersDeletedWaiter) Wait(ctx context.Context, params *DescribeLoadBalancersInput, maxWaitDur time.Duration, optFns ...func(*LoadBalancersDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeLoadBalancers(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for LoadBalancersDeleted waiter") +} + +func loadBalancersDeletedStateRetryable(ctx context.Context, input *DescribeLoadBalancersInput, output *DescribeLoadBalancersOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("LoadBalancers[].State.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "active" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.LoadBalancerStateEnum) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.LoadBalancerStateEnum value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return true, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "LoadBalancerNotFound" == apiErr.ErrorCode() { + return false, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeLoadBalancers(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go b/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go index 502d79e8c51..fd73529d0e8 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go +++ b/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go @@ -4,11 +4,18 @@ package elasticloadbalancingv2 import ( "context" + "errors" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" ) // Describes the health of the specified targets or all of your targets. @@ -114,6 +121,370 @@ func (c *Client) addOperationDescribeTargetHealthMiddlewares(stack *middleware.S return nil } +// DescribeTargetHealthAPIClient is a client that implements the +// DescribeTargetHealth operation. +type DescribeTargetHealthAPIClient interface { + DescribeTargetHealth(context.Context, *DescribeTargetHealthInput, ...func(*Options)) (*DescribeTargetHealthOutput, error) +} + +var _ DescribeTargetHealthAPIClient = (*Client)(nil) + +// TargetDeregisteredWaiterOptions are waiter options for TargetDeregisteredWaiter +type TargetDeregisteredWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // TargetDeregisteredWaiter will use default minimum delay of 15 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, TargetDeregisteredWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeTargetHealthInput, *DescribeTargetHealthOutput, error) (bool, error) +} + +// TargetDeregisteredWaiter defines the waiters for TargetDeregistered +type TargetDeregisteredWaiter struct { + client DescribeTargetHealthAPIClient + + options TargetDeregisteredWaiterOptions +} + +// NewTargetDeregisteredWaiter constructs a TargetDeregisteredWaiter. +func NewTargetDeregisteredWaiter(client DescribeTargetHealthAPIClient, optFns ...func(*TargetDeregisteredWaiterOptions)) *TargetDeregisteredWaiter { + options := TargetDeregisteredWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = targetDeregisteredStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &TargetDeregisteredWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for TargetDeregistered waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *TargetDeregisteredWaiter) Wait(ctx context.Context, params *DescribeTargetHealthInput, maxWaitDur time.Duration, optFns ...func(*TargetDeregisteredWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeTargetHealth(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for TargetDeregistered waiter") +} + +func targetDeregisteredStateRetryable(ctx context.Context, input *DescribeTargetHealthInput, output *DescribeTargetHealthOutput, err error) (bool, error) { + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidTarget" == apiErr.ErrorCode() { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("TargetHealthDescriptions[].TargetHealth.State", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "unused" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.TargetHealthStateEnum) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.TargetHealthStateEnum value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + return true, nil +} + +// TargetInServiceWaiterOptions are waiter options for TargetInServiceWaiter +type TargetInServiceWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // TargetInServiceWaiter will use default minimum delay of 15 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, TargetInServiceWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeTargetHealthInput, *DescribeTargetHealthOutput, error) (bool, error) +} + +// TargetInServiceWaiter defines the waiters for TargetInService +type TargetInServiceWaiter struct { + client DescribeTargetHealthAPIClient + + options TargetInServiceWaiterOptions +} + +// NewTargetInServiceWaiter constructs a TargetInServiceWaiter. +func NewTargetInServiceWaiter(client DescribeTargetHealthAPIClient, optFns ...func(*TargetInServiceWaiterOptions)) *TargetInServiceWaiter { + options := TargetInServiceWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = targetInServiceStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &TargetInServiceWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for TargetInService waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *TargetInServiceWaiter) Wait(ctx context.Context, params *DescribeTargetHealthInput, maxWaitDur time.Duration, optFns ...func(*TargetInServiceWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeTargetHealth(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for TargetInService waiter") +} + +func targetInServiceStateRetryable(ctx context.Context, input *DescribeTargetHealthInput, output *DescribeTargetHealthOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("TargetHealthDescriptions[].TargetHealth.State", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "healthy" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.TargetHealthStateEnum) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.TargetHealthStateEnum value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidInstance" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeTargetHealth(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/elasticloadbalancingv2/generated.json b/service/elasticloadbalancingv2/generated.json index 411ceb1c549..2de5f06c666 100644 --- a/service/elasticloadbalancingv2/generated.json +++ b/service/elasticloadbalancingv2/generated.json @@ -1,7 +1,8 @@ { "dependencies": { "github.com/aws/aws-sdk-go-v2": "v1.4.0", - "github.com/aws/smithy-go": "v1.4.0" + "github.com/aws/smithy-go": "v1.4.0", + "github.com/jmespath/go-jmespath": "v0.4.0" }, "files": [ "api_client.go", diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod index 2a6db4bd9e2..8a43662cbfa 100644 --- a/service/elasticloadbalancingv2/go.mod +++ b/service/elasticloadbalancingv2/go.mod @@ -5,6 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 + github.com/jmespath/go-jmespath v0.4.0 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum index 256f90b195c..6e425b89066 100644 --- a/service/elasticloadbalancingv2/go.sum +++ b/service/elasticloadbalancingv2/go.sum @@ -1,14 +1,20 @@ github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/elasticloadbalancingv2/types/types.go b/service/elasticloadbalancingv2/types/types.go index dc340df30c1..595f1874f2e 100644 --- a/service/elasticloadbalancingv2/types/types.go +++ b/service/elasticloadbalancingv2/types/types.go @@ -522,22 +522,38 @@ type LoadBalancerAttribute struct { // with invalid header fields are removed by the load balancer (true) or routed to // targets (false). The default is false. // - // * routing.http2.enabled - Indicates - // whether HTTP/2 is enabled. The value is true or false. The default is true. - // Elastic Load Balancing requires that message header names contain only - // alphanumeric characters and hyphens. - // - // * waf.fail_open.enabled - Indicates - // whether to allow a WAF-enabled load balancer to route requests to targets if it - // is unable to forward the request to Amazon Web Services WAF. The value is true - // or false. The default is false. - // - // The following attribute is supported by Network - // Load Balancers and Gateway Load Balancers: - // - // * load_balancing.cross_zone.enabled - // - Indicates whether cross-zone load balancing is enabled. The value is true or - // false. The default is false. + // * + // routing.http.x_amzn_tls_version_and_cipher_suite.enabled - Indicates whether the + // two headers (x-amzn-tls-version and x-amzn-tls-cipher-suite), which contain + // information about the negotiated TLS version and cipher suite, are added to the + // client request before sending it to the target. The x-amzn-tls-version header + // has information about the TLS protocol version negotiated with the client, and + // the x-amzn-tls-cipher-suite header has information about the cipher suite + // negotiated with the client. Both headers are in OpenSSL format. The possible + // values for the attribute are true and false. The default is false. + // + // * + // routing.http.xff_client_port.enabled - Indicates whether the X-Forwarded-For + // header should preserve the source port that the client used to connect to the + // load balancer. The possible values are true and false. The default is false. + // + // * + // routing.http2.enabled - Indicates whether HTTP/2 is enabled. The possible values + // are true and false. The default is true. Elastic Load Balancing requires that + // message header names contain only alphanumeric characters and hyphens. + // + // * + // waf.fail_open.enabled - Indicates whether to allow a WAF-enabled load balancer + // to route requests to targets if it is unable to forward the request to Amazon + // Web Services WAF. The possible values are true and false. The default is + // false. + // + // The following attribute is supported by Network Load Balancers and + // Gateway Load Balancers: + // + // * load_balancing.cross_zone.enabled - Indicates whether + // cross-zone load balancing is enabled. The possible values are true and false. + // The default is false. Key *string // The value of the attribute. diff --git a/service/emr/api_op_CancelSteps.go b/service/emr/api_op_CancelSteps.go index 99a41099344..41005b602f4 100644 --- a/service/emr/api_op_CancelSteps.go +++ b/service/emr/api_op_CancelSteps.go @@ -15,8 +15,9 @@ import ( // EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps // are allowed in each CancelSteps request. CancelSteps is idempotent but // asynchronous; it does not guarantee that a step will be canceled, even if the -// request is successfully submitted. You can only cancel steps that are in a -// PENDING state. +// request is successfully submitted. When you use Amazon EMR versions 5.28.0 and +// later, you can cancel steps that are in a PENDING or RUNNING state. In earlier +// versions of Amazon EMR, you can only cancel steps that are in a PENDING state. func (c *Client) CancelSteps(ctx context.Context, params *CancelStepsInput, optFns ...func(*Options)) (*CancelStepsOutput, error) { if params == nil { params = &CancelStepsInput{} diff --git a/service/emr/api_op_CreateStudio.go b/service/emr/api_op_CreateStudio.go index 927a3e1c2cf..a20ffd45c42 100644 --- a/service/emr/api_op_CreateStudio.go +++ b/service/emr/api_op_CreateStudio.go @@ -54,7 +54,8 @@ type CreateStudioInput struct { Name *string // The IAM role that will be assumed by the Amazon EMR Studio. The service role - // provides a way for Amazon EMR Studio to interoperate with other AWS services. + // provides a way for Amazon EMR Studio to interoperate with other Amazon Web + // Services services. // // This member is required. ServiceRole *string diff --git a/service/emr/api_op_CreateStudioSessionMapping.go b/service/emr/api_op_CreateStudioSessionMapping.go index 066b3eb8412..1207fe2ece0 100644 --- a/service/emr/api_op_CreateStudioSessionMapping.go +++ b/service/emr/api_op_CreateStudioSessionMapping.go @@ -37,8 +37,10 @@ type CreateStudioSessionMappingInput struct { IdentityType types.IdentityType // The Amazon Resource Name (ARN) for the session policy that will be applied to - // the user or group. Session policies refine Studio user permissions without the - // need to use multiple IAM user roles. + // the user or group. You should specify the ARN for the session policy that you + // want to apply, not the ARN of your user role. For more information, see Create + // an EMR Studio User Role with Session Policies + // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-studio-user-role.html). // // This member is required. SessionPolicyArn *string @@ -48,21 +50,21 @@ type CreateStudioSessionMappingInput struct { // This member is required. StudioId *string - // The globally unique identifier (GUID) of the user or group from the AWS SSO - // Identity Store. For more information, see UserId + // The globally unique identifier (GUID) of the user or group from the Amazon Web + // Services SSO Identity Store. For more information, see UserId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) // and GroupId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) - // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId - // must be specified. + // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName + // or IdentityId must be specified. IdentityId *string // The name of the user or group. For more information, see UserName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId - // must be specified. + // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName + // or IdentityId must be specified. IdentityName *string noSmithyDocumentSerde diff --git a/service/emr/api_op_DeleteStudioSessionMapping.go b/service/emr/api_op_DeleteStudioSessionMapping.go index 955bababda0..fcda722aa36 100644 --- a/service/emr/api_op_DeleteStudioSessionMapping.go +++ b/service/emr/api_op_DeleteStudioSessionMapping.go @@ -45,8 +45,8 @@ type DeleteStudioSessionMappingInput struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) // and GroupId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) - // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId - // must be specified. + // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName + // or IdentityId must be specified. IdentityId *string // The name of the user name or group to remove from the Amazon EMR Studio. For @@ -54,8 +54,8 @@ type DeleteStudioSessionMappingInput struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId - // must be specified. + // in the Amazon Web Services SSO Store API Reference. Either IdentityName or + // IdentityId must be specified. IdentityName *string noSmithyDocumentSerde diff --git a/service/emr/api_op_DescribeReleaseLabel.go b/service/emr/api_op_DescribeReleaseLabel.go new file mode 100644 index 00000000000..d372b29354d --- /dev/null +++ b/service/emr/api_op_DescribeReleaseLabel.go @@ -0,0 +1,132 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package emr + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/emr/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Provides EMR release label details, such as releases available the region where +// the API request is run, and the available applications for a specific EMR +// release label. Can also list EMR release versions that support a specified +// version of Spark. +func (c *Client) DescribeReleaseLabel(ctx context.Context, params *DescribeReleaseLabelInput, optFns ...func(*Options)) (*DescribeReleaseLabelOutput, error) { + if params == nil { + params = &DescribeReleaseLabelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeReleaseLabel", params, optFns, c.addOperationDescribeReleaseLabelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeReleaseLabelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeReleaseLabelInput struct { + + // Reserved for future use. Currently set to null. + MaxResults *int32 + + // The pagination token. Reserved for future use. Currently set to null. + NextToken *string + + // The target release label to be described. + ReleaseLabel *string + + noSmithyDocumentSerde +} + +type DescribeReleaseLabelOutput struct { + + // The list of applications available for the target release label. Name is the + // name of the application. Version is the concise version of the application. + Applications []types.SimplifiedApplication + + // The pagination token. Reserved for future use. Currently set to null. + NextToken *string + + // The target release label described in the response. + ReleaseLabel *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeReleaseLabelMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeReleaseLabel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeReleaseLabel{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReleaseLabel(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeReleaseLabel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "elasticmapreduce", + OperationName: "DescribeReleaseLabel", + } +} diff --git a/service/emr/api_op_GetBlockPublicAccessConfiguration.go b/service/emr/api_op_GetBlockPublicAccessConfiguration.go index 4e4f4e50acc..ff35bba090d 100644 --- a/service/emr/api_op_GetBlockPublicAccessConfiguration.go +++ b/service/emr/api_op_GetBlockPublicAccessConfiguration.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the Amazon EMR block public access configuration for your AWS account in -// the current Region. For more information see Configure Block Public Access for +// Returns the Amazon EMR block public access configuration for your account in the +// current Region. For more information see Configure Block Public Access for // Amazon EMR // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/configure-block-public-access.html) // in the Amazon EMR Management Guide. @@ -54,7 +54,7 @@ type GetBlockPublicAccessConfigurationOutput struct { // This member is required. BlockPublicAccessConfiguration *types.BlockPublicAccessConfiguration - // Properties that describe the AWS principal that created the + // Properties that describe the Amazon Web Services principal that created the // BlockPublicAccessConfiguration using the PutBlockPublicAccessConfiguration // action as well as the date and time that the configuration was created. Each // time a configuration for block public access is updated, Amazon EMR updates this diff --git a/service/emr/api_op_GetStudioSessionMapping.go b/service/emr/api_op_GetStudioSessionMapping.go index 1c6639e2efe..60af901041c 100644 --- a/service/emr/api_op_GetStudioSessionMapping.go +++ b/service/emr/api_op_GetStudioSessionMapping.go @@ -45,16 +45,16 @@ type GetStudioSessionMappingInput struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) // and GroupId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) - // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId - // must be specified. + // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName + // or IdentityId must be specified. IdentityId *string // The name of the user or group to fetch. For more information, see UserName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId - // must be specified. + // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName + // or IdentityId must be specified. IdentityName *string noSmithyDocumentSerde diff --git a/service/emr/api_op_ListClusters.go b/service/emr/api_op_ListClusters.go index bc37accae00..85e2fc61572 100644 --- a/service/emr/api_op_ListClusters.go +++ b/service/emr/api_op_ListClusters.go @@ -13,11 +13,11 @@ import ( "time" ) -// Provides the status of all clusters visible to this AWS account. Allows you to +// Provides the status of all clusters visible to this account. Allows you to // filter the list of clusters based on certain criteria; for example, filtering by // cluster creation date and time or by status. This call returns a maximum of 50 -// clusters per call, but returns a marker to track the paging of the cluster list -// across multiple ListClusters calls. +// clusters in unsorted order per call, but returns a marker to track the paging of +// the cluster list across multiple ListClusters calls. func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, optFns ...func(*Options)) (*ListClustersOutput, error) { if params == nil { params = &ListClustersInput{} @@ -37,7 +37,9 @@ func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, op // that it returns. type ListClustersInput struct { - // The cluster state filters to apply when listing clusters. + // The cluster state filters to apply when listing clusters. Clusters that change + // state while this action runs may be not be returned as expected in the list of + // clusters. ClusterStates []types.ClusterState // The creation date and time beginning value filter for listing clusters. diff --git a/service/emr/api_op_ListReleaseLabels.go b/service/emr/api_op_ListReleaseLabels.go new file mode 100644 index 00000000000..6646049a4d5 --- /dev/null +++ b/service/emr/api_op_ListReleaseLabels.go @@ -0,0 +1,222 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package emr + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/emr/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves release labels of EMR services in the region where the API is called. +func (c *Client) ListReleaseLabels(ctx context.Context, params *ListReleaseLabelsInput, optFns ...func(*Options)) (*ListReleaseLabelsOutput, error) { + if params == nil { + params = &ListReleaseLabelsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListReleaseLabels", params, optFns, c.addOperationListReleaseLabelsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListReleaseLabelsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListReleaseLabelsInput struct { + + // Filters the results of the request. Prefix specifies the prefix of release + // labels to return. Application specifies the application (with/without version) + // of release labels to return. + Filters *types.ReleaseLabelFilter + + // Defines the maximum number of release labels to return in a single response. The + // default is 100. + MaxResults *int32 + + // Specifies the next page of results. If NextToken is not specified, which is + // usually the case for the first request of ListReleaseLabels, the first page of + // results are determined by other filtering parameters or by the latest version. + // The ListReleaseLabels request fails if the identity (AWS AccountID) and all + // filtering parameters are different from the original request, or if the + // NextToken is expired or tampered with. + NextToken *string + + noSmithyDocumentSerde +} + +type ListReleaseLabelsOutput struct { + + // Used to paginate the next page of results if specified in the next + // ListReleaseLabels request. + NextToken *string + + // The returned release labels. + ReleaseLabels []string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListReleaseLabelsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListReleaseLabels{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListReleaseLabels{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListReleaseLabels(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListReleaseLabelsAPIClient is a client that implements the ListReleaseLabels +// operation. +type ListReleaseLabelsAPIClient interface { + ListReleaseLabels(context.Context, *ListReleaseLabelsInput, ...func(*Options)) (*ListReleaseLabelsOutput, error) +} + +var _ ListReleaseLabelsAPIClient = (*Client)(nil) + +// ListReleaseLabelsPaginatorOptions is the paginator options for ListReleaseLabels +type ListReleaseLabelsPaginatorOptions struct { + // Defines the maximum number of release labels to return in a single response. The + // default is 100. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListReleaseLabelsPaginator is a paginator for ListReleaseLabels +type ListReleaseLabelsPaginator struct { + options ListReleaseLabelsPaginatorOptions + client ListReleaseLabelsAPIClient + params *ListReleaseLabelsInput + nextToken *string + firstPage bool +} + +// NewListReleaseLabelsPaginator returns a new ListReleaseLabelsPaginator +func NewListReleaseLabelsPaginator(client ListReleaseLabelsAPIClient, params *ListReleaseLabelsInput, optFns ...func(*ListReleaseLabelsPaginatorOptions)) *ListReleaseLabelsPaginator { + if params == nil { + params = &ListReleaseLabelsInput{} + } + + options := ListReleaseLabelsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListReleaseLabelsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListReleaseLabelsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListReleaseLabels page. +func (p *ListReleaseLabelsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListReleaseLabelsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListReleaseLabels(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListReleaseLabels(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "elasticmapreduce", + OperationName: "ListReleaseLabels", + } +} diff --git a/service/emr/api_op_ListSteps.go b/service/emr/api_op_ListSteps.go index e4853d3a192..c87a8377a2b 100644 --- a/service/emr/api_op_ListSteps.go +++ b/service/emr/api_op_ListSteps.go @@ -13,8 +13,10 @@ import ( ) // Provides a list of steps for the cluster in reverse order unless you specify -// stepIds with the request of filter by StepStates. You can specify a maximum of -// 10 stepIDs. +// stepIds with the request or filter by StepStates. You can specify a maximum of +// 10 stepIDs. The CLI automatically paginates results to return a list greater +// than 50 steps. To return more than 50 steps using the CLI, specify a Marker, +// which is a pagination token that indicates the next set of steps to retrieve. func (c *Client) ListSteps(ctx context.Context, params *ListStepsInput, optFns ...func(*Options)) (*ListStepsOutput, error) { if params == nil { params = &ListStepsInput{} @@ -38,7 +40,10 @@ type ListStepsInput struct { // This member is required. ClusterId *string - // The pagination token that indicates the next set of results to retrieve. + // The maximum number of steps that a single ListSteps action returns is 50. To + // return a longer list of steps, use multiple ListSteps actions along with the + // Marker parameter, which is a pagination token that indicates the next set of + // results to retrieve. Marker *string // The filter to limit the step list based on the identifier of the steps. You can @@ -56,7 +61,10 @@ type ListStepsInput struct { // that the last step is the first element in the list. type ListStepsOutput struct { - // The pagination token that indicates the next set of results to retrieve. + // The maximum number of steps that a single ListSteps action returns is 50. To + // return a longer list of steps, use multiple ListSteps actions along with the + // Marker parameter, which is a pagination token that indicates the next set of + // results to retrieve. Marker *string // The filtered list of steps for the cluster. diff --git a/service/emr/api_op_ListStudios.go b/service/emr/api_op_ListStudios.go index 50d4393ebde..2e3f6ebe928 100644 --- a/service/emr/api_op_ListStudios.go +++ b/service/emr/api_op_ListStudios.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of all Amazon EMR Studios associated with the AWS account. The -// list includes details such as ID, Studio Access URL, and creation time for each +// Returns a list of all Amazon EMR Studios associated with the account. The list +// includes details such as ID, Studio Access URL, and creation time for each // Studio. func (c *Client) ListStudios(ctx context.Context, params *ListStudiosInput, optFns ...func(*Options)) (*ListStudiosOutput, error) { if params == nil { diff --git a/service/emr/api_op_ModifyCluster.go b/service/emr/api_op_ModifyCluster.go index fbae2eb0ab5..3f5d6d5da7f 100644 --- a/service/emr/api_op_ModifyCluster.go +++ b/service/emr/api_op_ModifyCluster.go @@ -35,7 +35,9 @@ type ModifyClusterInput struct { ClusterId *string // The number of steps that can be executed concurrently. You can specify a minimum - // of 1 step and a maximum of 256 steps. + // of 1 step and a maximum of 256 steps. We recommend that you do not change this + // parameter while steps are running or the ActionOnFailure setting may not behave + // as expected. For more information see Step$ActionOnFailure. StepConcurrencyLevel *int32 noSmithyDocumentSerde diff --git a/service/emr/api_op_ModifyInstanceFleet.go b/service/emr/api_op_ModifyInstanceFleet.go index 2c8947c75ff..ef4e205319a 100644 --- a/service/emr/api_op_ModifyInstanceFleet.go +++ b/service/emr/api_op_ModifyInstanceFleet.go @@ -38,7 +38,7 @@ type ModifyInstanceFleetInput struct { // This member is required. ClusterId *string - // The unique identifier of the instance fleet. + // The configuration parameters of the instance fleet. // // This member is required. InstanceFleet *types.InstanceFleetModifyConfig diff --git a/service/emr/api_op_PutBlockPublicAccessConfiguration.go b/service/emr/api_op_PutBlockPublicAccessConfiguration.go index 6a649cb695a..89069cab83c 100644 --- a/service/emr/api_op_PutBlockPublicAccessConfiguration.go +++ b/service/emr/api_op_PutBlockPublicAccessConfiguration.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates or updates an Amazon EMR block public access configuration for your AWS +// Creates or updates an Amazon EMR block public access configuration for your // account in the current Region. For more information see Configure Block Public // Access for Amazon EMR // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/configure-block-public-access.html) diff --git a/service/emr/api_op_RunJobFlow.go b/service/emr/api_op_RunJobFlow.go index 3a3d568cc59..5a040113924 100644 --- a/service/emr/api_op_RunJobFlow.go +++ b/service/emr/api_op_RunJobFlow.go @@ -120,9 +120,9 @@ type RunJobFlowInput struct { // the Amazon EMR Management Guide. KerberosAttributes *types.KerberosAttributes - // The AWS KMS customer master key (CMK) used for encrypting log files. If a value - // is not provided, the logs remain encrypted by AES-256. This attribute is only - // available with Amazon EMR version 5.30.0 and later, excluding Amazon EMR 6.0.0. + // The KMS key used for encrypting log files. If a value is not provided, the logs + // remain encrypted by AES-256. This attribute is only available with Amazon EMR + // version 5.30.0 and later, excluding Amazon EMR 6.0.0. LogEncryptionKmsKeyId *string // The location in Amazon S3 to write the log files of the job flow. If a value is @@ -203,8 +203,8 @@ type RunJobFlowInput struct { // The name of a security configuration to apply to the cluster. SecurityConfiguration *string - // The IAM role that will be assumed by the Amazon EMR service to access AWS - // resources on your behalf. + // The IAM role that will be assumed by the Amazon EMR service to access Amazon Web + // Services resources on your behalf. ServiceRole *string // Specifies the number of steps that can be executed concurrently. The default @@ -230,10 +230,17 @@ type RunJobFlowInput struct { // instances. Tags []types.Tag - // A value of true indicates that all IAM users in the AWS account can perform - // cluster actions if they have the proper IAM policy permissions. This is the - // default. A value of false indicates that only the IAM user who created the - // cluster can perform actions. + // Set this value to true so that IAM principals in the account associated with the + // cluster can perform EMR actions on the cluster that their IAM policies allow. + // This value defaults to false for clusters created using the EMR API or the CLI + // create-cluster + // (https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html) + // command. When set to false, only the IAM principal that created the cluster and + // the account root user can perform EMR actions for the cluster, regardless of the + // IAM permissions policies attached to other IAM principals. For more information, + // see Understanding the EMR Cluster VisibleToAllUsers Setting + // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users) + // in the Amazon EMR Management Guide. VisibleToAllUsers bool noSmithyDocumentSerde diff --git a/service/emr/api_op_SetVisibleToAllUsers.go b/service/emr/api_op_SetVisibleToAllUsers.go index 9d574736e4b..587f94d3af1 100644 --- a/service/emr/api_op_SetVisibleToAllUsers.go +++ b/service/emr/api_op_SetVisibleToAllUsers.go @@ -10,15 +10,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Sets the Cluster$VisibleToAllUsers value, which determines whether the cluster -// is visible to all IAM users of the AWS account associated with the cluster. Only -// the IAM user who created the cluster or the AWS account root user can call this -// action. The default value, true, indicates that all IAM users in the AWS account -// can perform cluster actions if they have the proper IAM policy permissions. If -// set to false, only the IAM user that created the cluster can perform actions. -// This action works on running clusters. You can override the default true setting -// when you create a cluster by using the VisibleToAllUsers parameter with -// RunJobFlow. +// Sets the Cluster$VisibleToAllUsers value for an EMR cluster. When true, IAM +// principals in the account can perform EMR cluster actions that their IAM +// policies allow. When false, only the IAM principal that created the cluster and +// the account root user can perform EMR actions on the cluster, regardless of IAM +// permissions policies attached to other IAM principals. This action works on +// running clusters. When you create a cluster, use the +// RunJobFlowInput$VisibleToAllUsers parameter. For more information, see +// Understanding the EMR Cluster VisibleToAllUsers Setting +// (https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users) +// in the Amazon EMR Management Guide. func (c *Client) SetVisibleToAllUsers(ctx context.Context, params *SetVisibleToAllUsersInput, optFns ...func(*Options)) (*SetVisibleToAllUsersOutput, error) { if params == nil { params = &SetVisibleToAllUsersInput{} @@ -42,10 +43,10 @@ type SetVisibleToAllUsersInput struct { // This member is required. JobFlowIds []string - // A value of true indicates that all IAM users in the AWS account can perform - // cluster actions if they have the proper IAM policy permissions. This is the - // default. A value of false indicates that only the IAM user who created the - // cluster can perform actions. + // A value of true indicates that an IAM principal in the account can perform EMR + // actions on the cluster that the IAM policies attached to the principal allow. A + // value of false indicates that only the IAM principal that created the cluster + // and the Amazon Web Services root user can perform EMR actions on the cluster. // // This member is required. VisibleToAllUsers bool diff --git a/service/emr/api_op_UpdateStudioSessionMapping.go b/service/emr/api_op_UpdateStudioSessionMapping.go index 8bc415a4b21..9d3d9e2b972 100644 --- a/service/emr/api_op_UpdateStudioSessionMapping.go +++ b/service/emr/api_op_UpdateStudioSessionMapping.go @@ -51,16 +51,16 @@ type UpdateStudioSessionMappingInput struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId) // and GroupId // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId) - // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId - // must be specified. + // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName + // or IdentityId must be specified. IdentityId *string // The name of the user or group to update. For more information, see UserName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId - // must be specified. + // in the Amazon Web Services SSO Identity Store API Reference. Either IdentityName + // or IdentityId must be specified. IdentityName *string noSmithyDocumentSerde diff --git a/service/emr/deserializers.go b/service/emr/deserializers.go index e774cdfafb3..6b21bfe8da3 100644 --- a/service/emr/deserializers.go +++ b/service/emr/deserializers.go @@ -1542,6 +1542,120 @@ func awsAwsjson11_deserializeOpErrorDescribeNotebookExecution(response *smithyht } } +type awsAwsjson11_deserializeOpDescribeReleaseLabel struct { +} + +func (*awsAwsjson11_deserializeOpDescribeReleaseLabel) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpDescribeReleaseLabel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeReleaseLabel(response, &metadata) + } + output := &DescribeReleaseLabelOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentDescribeReleaseLabelOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorDescribeReleaseLabel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsAwsjson11_deserializeErrorInvalidRequestException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpDescribeSecurityConfiguration struct { } @@ -2904,6 +3018,120 @@ func awsAwsjson11_deserializeOpErrorListNotebookExecutions(response *smithyhttp. } } +type awsAwsjson11_deserializeOpListReleaseLabels struct { +} + +func (*awsAwsjson11_deserializeOpListReleaseLabels) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpListReleaseLabels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorListReleaseLabels(response, &metadata) + } + output := &ListReleaseLabelsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentListReleaseLabelsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorListReleaseLabels(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsAwsjson11_deserializeErrorInvalidRequestException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpListSecurityConfigurations struct { } @@ -11019,6 +11247,89 @@ func awsAwsjson11_deserializeDocumentSimpleScalingPolicyConfiguration(v **types. return nil } +func awsAwsjson11_deserializeDocumentSimplifiedApplication(v **types.SimplifiedApplication, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SimplifiedApplication + if *v == nil { + sv = &types.SimplifiedApplication{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Version": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Version = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSimplifiedApplicationList(v *[]types.SimplifiedApplication, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.SimplifiedApplication + if *v == nil { + cv = []types.SimplifiedApplication{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.SimplifiedApplication + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSimplifiedApplication(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentSpotProvisioningSpecification(v **types.SpotProvisioningSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12824,6 +13135,60 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookExecutionOutput(v **Descr return nil } +func awsAwsjson11_deserializeOpDocumentDescribeReleaseLabelOutput(v **DescribeReleaseLabelOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeReleaseLabelOutput + if *v == nil { + sv = &DescribeReleaseLabelOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Applications": + if err := awsAwsjson11_deserializeDocumentSimplifiedApplicationList(&sv.Applications, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "ReleaseLabel": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ReleaseLabel = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeSecurityConfigurationOutput(v **DescribeSecurityConfigurationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13344,6 +13709,51 @@ func awsAwsjson11_deserializeOpDocumentListNotebookExecutionsOutput(v **ListNote return nil } +func awsAwsjson11_deserializeOpDocumentListReleaseLabelsOutput(v **ListReleaseLabelsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListReleaseLabelsOutput + if *v == nil { + sv = &ListReleaseLabelsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "ReleaseLabels": + if err := awsAwsjson11_deserializeDocumentStringList(&sv.ReleaseLabels, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentListSecurityConfigurationsOutput(v **ListSecurityConfigurationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/emr/doc.go b/service/emr/doc.go index e4af4e03fff..34b7e50162e 100644 --- a/service/emr/doc.go +++ b/service/emr/doc.go @@ -4,7 +4,8 @@ // Elastic MapReduce. // // Amazon EMR is a web service that makes it easier to process large amounts of -// data efficiently. Amazon EMR uses Hadoop processing combined with several AWS -// services to do tasks such as web indexing, data mining, log file analysis, -// machine learning, scientific simulation, and data warehouse management. +// data efficiently. Amazon EMR uses Hadoop processing combined with several Amazon +// Web Services services to do tasks such as web indexing, data mining, log file +// analysis, machine learning, scientific simulation, and data warehouse +// management. package emr diff --git a/service/emr/generated.json b/service/emr/generated.json index 0bbc313259f..eaf05776f35 100644 --- a/service/emr/generated.json +++ b/service/emr/generated.json @@ -20,6 +20,7 @@ "api_op_DescribeCluster.go", "api_op_DescribeJobFlows.go", "api_op_DescribeNotebookExecution.go", + "api_op_DescribeReleaseLabel.go", "api_op_DescribeSecurityConfiguration.go", "api_op_DescribeStep.go", "api_op_DescribeStudio.go", @@ -32,6 +33,7 @@ "api_op_ListInstanceGroups.go", "api_op_ListInstances.go", "api_op_ListNotebookExecutions.go", + "api_op_ListReleaseLabels.go", "api_op_ListSecurityConfigurations.go", "api_op_ListSteps.go", "api_op_ListStudioSessionMappings.go", diff --git a/service/emr/serializers.go b/service/emr/serializers.go index aa19b0819d1..f446287176a 100644 --- a/service/emr/serializers.go +++ b/service/emr/serializers.go @@ -674,6 +674,53 @@ func (m *awsAwsjson11_serializeOpDescribeNotebookExecution) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeReleaseLabel struct { +} + +func (*awsAwsjson11_serializeOpDescribeReleaseLabel) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeReleaseLabel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeReleaseLabelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("ElasticMapReduce.DescribeReleaseLabel") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeReleaseLabelInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpDescribeSecurityConfiguration struct { } @@ -1238,6 +1285,53 @@ func (m *awsAwsjson11_serializeOpListNotebookExecutions) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpListReleaseLabels struct { +} + +func (*awsAwsjson11_serializeOpListReleaseLabels) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListReleaseLabels) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListReleaseLabelsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("ElasticMapReduce.ListReleaseLabels") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListReleaseLabelsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpListSecurityConfigurations struct { } @@ -3322,6 +3416,23 @@ func awsAwsjson11_serializeDocumentPortRanges(v []types.PortRange, value smithyj return nil } +func awsAwsjson11_serializeDocumentReleaseLabelFilter(v *types.ReleaseLabelFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Application != nil { + ok := object.Key("Application") + ok.String(*v.Application) + } + + if v.Prefix != nil { + ok := object.Key("Prefix") + ok.String(*v.Prefix) + } + + return nil +} + func awsAwsjson11_serializeDocumentScalingAction(v *types.ScalingAction, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4031,6 +4142,28 @@ func awsAwsjson11_serializeOpDocumentDescribeNotebookExecutionInput(v *DescribeN return nil } +func awsAwsjson11_serializeOpDocumentDescribeReleaseLabelInput(v *DescribeReleaseLabelInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if v.ReleaseLabel != nil { + ok := object.Key("ReleaseLabel") + ok.String(*v.ReleaseLabel) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeSecurityConfigurationInput(v *DescribeSecurityConfigurationInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4276,6 +4409,30 @@ func awsAwsjson11_serializeOpDocumentListNotebookExecutionsInput(v *ListNotebook return nil } +func awsAwsjson11_serializeOpDocumentListReleaseLabelsInput(v *ListReleaseLabelsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsAwsjson11_serializeDocumentReleaseLabelFilter(v.Filters, ok); err != nil { + return err + } + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentListSecurityConfigurationsInput(v *ListSecurityConfigurationsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/emr/types/types.go b/service/emr/types/types.go index 5220b019c5c..bce2b773d30 100644 --- a/service/emr/types/types.go +++ b/service/emr/types/types.go @@ -139,7 +139,7 @@ type BlockPublicAccessConfiguration struct { noSmithyDocumentSerde } -// Properties that describe the AWS principal that created the +// Properties that describe the Amazon Web Services principal that created the // BlockPublicAccessConfiguration using the PutBlockPublicAccessConfiguration // action as well as the date and time that the configuration was created. Each // time a configuration for block public access is updated, Amazon EMR updates this @@ -303,9 +303,8 @@ type Cluster struct { // the Amazon EMR Management Guide. KerberosAttributes *KerberosAttributes - // The AWS KMS customer master key (CMK) used for encrypting log files. This - // attribute is only available with EMR version 5.30.0 and later, excluding EMR - // 6.0.0. + // The KMS key used for encrypting log files. This attribute is only available with + // EMR version 5.30.0 and later, excluding EMR 6.0.0. LogEncryptionKmsKeyId *string // The path to the Amazon S3 location where logs for this cluster are stored. @@ -371,8 +370,8 @@ type Cluster struct { // The name of the security configuration applied to the cluster. SecurityConfiguration *string - // The IAM role that will be assumed by the Amazon EMR service to access AWS - // resources on your behalf. + // The IAM role that will be assumed by the Amazon EMR service to access Amazon Web + // Services resources on your behalf. ServiceRole *string // The current status details about the cluster. @@ -389,14 +388,22 @@ type Cluster struct { // cluster error. TerminationProtected bool - // Indicates whether the cluster is visible to all IAM users of the AWS account - // associated with the cluster. The default value, true, indicates that all IAM - // users in the AWS account can perform cluster actions if they have the proper IAM - // policy permissions. If this value is false, only the IAM user that created the - // cluster can perform actions. This value can be changed on a running cluster by - // using the SetVisibleToAllUsers action. You can override the default value of - // true when you create a cluster by using the VisibleToAllUsers parameter of the - // RunJobFlow action. + // Indicates whether the cluster is visible to IAM principals in the account + // associated with the cluster. When true, IAM principals in the account can + // perform EMR cluster actions on the cluster that their IAM policies allow. When + // false, only the IAM principal that created the cluster and the account root user + // can perform EMR actions, regardless of IAM permissions policies attached to + // other IAM principals. The default value is false if a value is not provided when + // creating a cluster using the EMR API RunJobFlow command or the CLI + // create-cluster + // (https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html) + // command. The default value is true when a cluster is created using the + // Management Console. IAM principals that are allowed to perform actions on the + // cluster can use the SetVisibleToAllUsers action to change the value on a running + // cluster. For more information, see Understanding the EMR Cluster + // VisibleToAllUsers Setting + // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users) + // in the Amazon EMR Management Guide. VisibleToAllUsers bool noSmithyDocumentSerde @@ -767,7 +774,7 @@ type HadoopStepConfig struct { // Represents an EC2 instance provisioned as part of cluster. type Instance struct { - // The list of EBS volumes that are attached to this instance. + // The list of Amazon EBS volumes that are attached to this instance. EbsVolumes []EbsVolume // The unique identifier of the instance in Amazon EC2. @@ -821,8 +828,8 @@ type InstanceFleet struct { // TASK. InstanceFleetType InstanceFleetType - // The specification for the instance types that comprise an instance fleet. Up to - // five unique instance specifications may be defined for each instance fleet. + // An array of specifications for the instance types that comprise an instance + // fleet. InstanceTypeSpecifications []InstanceTypeSpecification // Describes the launch specification for an instance fleet. @@ -1071,9 +1078,9 @@ type InstanceGroup struct { // to set the amount equal to the On-Demand price, or specify an amount in USD. BidPrice *string - // Amazon EMR releases 4.x or later. The list of configurations supplied for an EMR - // cluster instance group. You can specify a separate configuration for each - // instance group (master, core, and task). + // Amazon EMR releases 4.x or later. The list of configurations supplied for an + // Amazon EMR cluster instance group. You can specify a separate configuration for + // each instance group (master, core, and task). Configurations []Configuration // The version number of the requested configuration specification for this @@ -1366,9 +1373,14 @@ type InstanceTimeline struct { // An instance type configuration for each instance type in an instance fleet, // which determines the EC2 instances Amazon EMR attempts to provision to fulfill -// On-Demand and Spot target capacities. There can be a maximum of five instance -// type configurations in a fleet. The instance fleet configuration is available -// only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. +// On-Demand and Spot target capacities. When you use an allocation strategy, you +// can include a maximum of 30 instance type configurations for a fleet. For more +// information about how to use an allocation strategy, see Configure Instance +// Fleets +// (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-instance-fleet.html). +// Without an allocation strategy, you may specify a maximum of five instance type +// configurations for a fleet. The instance fleet configuration is available only +// in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. type InstanceTypeConfig struct { // An EC2 instance type, such as m3.xlarge. @@ -1392,7 +1404,7 @@ type InstanceTypeConfig struct { // cluster. Configurations []Configuration - // The configuration of Amazon Elastic Block Storage (Amazon EBS) attached to each + // The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each // instance as defined by InstanceType. EbsConfiguration *EbsConfiguration @@ -1423,7 +1435,7 @@ type InstanceTypeSpecification struct { // Amazon EMR. Configurations []Configuration - // The configuration of Amazon Elastic Block Storage (Amazon EBS) attached to each + // The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each // instance as defined by InstanceType. EbsBlockDevices []EbsBlockDevice @@ -1482,9 +1494,8 @@ type JobFlowDetail struct { // instances of the job flow assume this role. JobFlowRole *string - // The AWS KMS customer master key (CMK) used for encrypting log files. This - // attribute is only available with EMR version 5.30.0 and later, excluding EMR - // 6.0.0. + // The KMS key used for encrypting log files. This attribute is only available with + // EMR version 5.30.0 and later, excluding EMR 6.0.0. LogEncryptionKmsKeyId *string // The location in Amazon S3 where log files for the job are stored. @@ -1505,8 +1516,8 @@ type JobFlowDetail struct { // earlier than 5.1.0. ScaleDownBehavior ScaleDownBehavior - // The IAM role that is assumed by the Amazon EMR service to access AWS resources - // on your behalf. + // The IAM role that is assumed by the Amazon EMR service to access Amazon Web + // Services resources on your behalf. ServiceRole *string // A list of steps run by the job flow. @@ -1517,14 +1528,21 @@ type JobFlowDetail struct { // empty. SupportedProducts []string - // Indicates whether the cluster is visible to all IAM users of the AWS account - // associated with the cluster. The default value, true, indicates that all IAM - // users in the AWS account can perform cluster actions if they have the proper IAM - // policy permissions. If this value is false, only the IAM user that created the - // cluster can perform actions. This value can be changed on a running cluster by - // using the SetVisibleToAllUsers action. You can override the default value of - // true when you create a cluster by using the VisibleToAllUsers parameter of the - // RunJobFlow action. + // Indicates whether the cluster is visible to IAM principals in the account + // associated with the cluster. When true, IAM principals in the account can + // perform EMR cluster actions that their IAM policies allow. When false, only the + // IAM principal that created the cluster and the account root user can perform EMR + // actions, regardless of IAM permissions policies attached to other IAM + // principals. The default value is false if a value is not provided when creating + // a cluster using the EMR API RunJobFlow command or the CLI create-cluster + // (https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html) + // command. The default value is true when a cluster is created using the + // Management Console. IAM principals that are authorized to perform actions on the + // cluster can use the SetVisibleToAllUsers action to change the value on a running + // cluster. For more information, see Understanding the EMR Cluster + // VisibleToAllUsers Setting + // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users) + // in the Amazon EMR Management Guide. VisibleToAllUsers bool noSmithyDocumentSerde @@ -1589,10 +1607,14 @@ type JobFlowInstancesConfig struct { // EMR versions 4.8.0 and later, excluding 5.0.x versions. Ec2SubnetIds []string - // The identifier of the Amazon EC2 security group for the master node. + // The identifier of the Amazon EC2 security group for the master node. If you + // specify EmrManagedMasterSecurityGroup, you must also specify + // EmrManagedSlaveSecurityGroup. EmrManagedMasterSecurityGroup *string - // The identifier of the Amazon EC2 security group for the core and task nodes. + // The identifier of the Amazon EC2 security group for the core and task nodes. If + // you specify EmrManagedSlaveSecurityGroup, you must also specify + // EmrManagedMasterSecurityGroup. EmrManagedSlaveSecurityGroup *string // Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version @@ -1615,7 +1637,10 @@ type JobFlowInstancesConfig struct { InstanceGroups []InstanceGroupConfig // Specifies whether the cluster should remain available after completing all - // steps. + // steps. Defaults to true. For more information about configuring cluster + // termination, see Control Cluster Termination + // (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + // in the EMR Management Guide. KeepJobFlowAliveWhenNoSteps bool // The EC2 instance type of the master node. @@ -1868,7 +1893,8 @@ type NotebookExecution struct { noSmithyDocumentSerde } -// +// Details for a notebook execution. The details include information such as the +// unique ID and status of the notebook execution. type NotebookExecutionSummary struct { // The unique identifier of the editor associated with the notebook execution. @@ -1948,7 +1974,7 @@ type OnDemandCapacityReservationOptions struct { // On-Demand allocation strategy (lowest-price) is applied. If the number of unused // Capacity Reservations is less than the On-Demand target capacity, the remaining // On-Demand target capacity is launched according to the On-Demand allocation - // strategy (lowest-price). If you do not specify a value, the fleet fulfils the + // strategy (lowest-price). If you do not specify a value, the fleet fulfills the // On-Demand capacity according to the chosen On-Demand allocation strategy. UsageStrategy OnDemandCapacityReservationUsageStrategy @@ -2030,6 +2056,18 @@ type PortRange struct { noSmithyDocumentSerde } +// The release label filters by application or version prefix. +type ReleaseLabelFilter struct { + + // Optional release label application filter. For example, spark@2.1.0. + Application *string + + // Optional release label version prefix filter. For example, emr-5. + Prefix *string + + noSmithyDocumentSerde +} + // The type of adjustment the automatic scaling activity makes when triggered, and // the periodicity of the adjustment. type ScalingAction struct { @@ -2113,8 +2151,7 @@ type ScalingTrigger struct { // Configuration of the script to run during a bootstrap action. type ScriptBootstrapActionConfig struct { - // Location of the script to run during a bootstrap action. Can be either a - // location in Amazon S3 or on a local file system. + // Location in Amazon S3 of the script to run during a bootstrap action. // // This member is required. Path *string @@ -2151,7 +2188,7 @@ type SessionMappingDetail struct { // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the AWS SSO Identity Store API Reference. + // in the Amazon Web Services SSO Identity Store API Reference. IdentityName *string // Specifies whether the identity mapped to the Amazon EMR Studio is a user or a @@ -2178,15 +2215,15 @@ type SessionMappingSummary struct { // The time the session mapping was created. CreationTime *time.Time - // The globally unique identifier (GUID) of the user or group from the AWS SSO - // Identity Store. + // The globally unique identifier (GUID) of the user or group from the Amazon Web + // Services SSO Identity Store. IdentityId *string // The name of the user or group. For more information, see UserName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) // and DisplayName // (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) - // in the AWS SSO Identity Store API Reference. + // in the Amazon Web Services SSO Identity Store API Reference. IdentityName *string // Specifies whether the identity mapped to the Amazon EMR Studio is a user or a @@ -2254,6 +2291,18 @@ type SimpleScalingPolicyConfiguration struct { noSmithyDocumentSerde } +// The returned release label application names or versions. +type SimplifiedApplication struct { + + // The returned release label application name. For example, hadoop. + Name *string + + // The returned release label application version. For example, 3.2.1. + Version *string + + noSmithyDocumentSerde +} + // The launch specification for Spot Instances in the instance fleet, which // determines the defined duration, provisioning timeout behavior, and allocation // strategy. The instance fleet configuration is available only in Amazon EMR @@ -2302,7 +2351,16 @@ type Step struct { // The action to take when the cluster step fails. Possible values are // TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided - // for backward compatibility. We recommend using TERMINATE_CLUSTER instead. + // for backward compatibility. We recommend using TERMINATE_CLUSTER instead. If a + // cluster's StepConcurrencyLevel is greater than 1, do not use AddJobFlowSteps to + // submit a step with this parameter set to CANCEL_AND_WAIT or TERMINATE_CLUSTER. + // The step is not submitted and the action fails with a message that the + // ActionOnFailure setting is not valid. If you change a cluster's + // StepConcurrencyLevel to be greater than 1 while a step is running, the + // ActionOnFailure parameter may not behave as you expect. In this case, for a step + // that fails with this parameter set to CANCEL_AND_WAIT, pending steps and the + // running step are not canceled; for a step that fails with this parameter set to + // TERMINATE_CLUSTER, the cluster does not terminate. ActionOnFailure ActionOnFailure // The Hadoop job configuration of the cluster step. @@ -2320,7 +2378,7 @@ type Step struct { noSmithyDocumentSerde } -// Specification of a cluster (job flow) step. +// Specification for a cluster (job flow) step. type StepConfig struct { // The JAR file used for the step. @@ -2333,9 +2391,30 @@ type StepConfig struct { // This member is required. Name *string - // The action to take when the cluster step fails. Possible values are - // TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided - // for backward compatibility. We recommend using TERMINATE_CLUSTER instead. + // The action to take when the step fails. Use one of the following values: + // + // * + // TERMINATE_CLUSTER - Shuts down the cluster. + // + // * CANCEL_AND_WAIT - Cancels any + // pending steps and returns the cluster to the WAITING state. + // + // * CONTINUE - + // Continues to the next step in the queue. + // + // * TERMINATE_JOB_FLOW - Shuts down the + // cluster. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend + // using TERMINATE_CLUSTER instead. + // + // If a cluster's StepConcurrencyLevel is greater + // than 1, do not use AddJobFlowSteps to submit a step with this parameter set to + // CANCEL_AND_WAIT or TERMINATE_CLUSTER. The step is not submitted and the action + // fails with a message that the ActionOnFailure setting is not valid. If you + // change a cluster's StepConcurrencyLevel to be greater than 1 while a step is + // running, the ActionOnFailure parameter may not behave as you expect. In this + // case, for a step that fails with this parameter set to CANCEL_AND_WAIT, pending + // steps and the running step are not canceled; for a step that fails with this + // parameter set to TERMINATE_CLUSTER, the cluster does not terminate. ActionOnFailure ActionOnFailure noSmithyDocumentSerde @@ -2419,8 +2498,7 @@ type StepSummary struct { // The action to take when the cluster step fails. Possible values are // TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is - // available for backward compatibility. We recommend using TERMINATE_CLUSTER - // instead. + // available for backward compatibility. ActionOnFailure ActionOnFailure // The Hadoop job configuration of the cluster step. diff --git a/service/emrcontainers/deserializers.go b/service/emrcontainers/deserializers.go index 5144fba1a55..23dd88fa0c2 100644 --- a/service/emrcontainers/deserializers.go +++ b/service/emrcontainers/deserializers.go @@ -2657,7 +2657,7 @@ func awsRestjson1_deserializeDocumentContainerProvider(v **types.ContainerProvid if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } @@ -2711,7 +2711,7 @@ func awsRestjson1_deserializeDocumentEksInfo(v **types.EksInfo, value interface{ if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + return fmt.Errorf("expected KubernetesNamespace to be of type string, got %T instead", value) } sv.Namespace = ptr.String(jtv) } @@ -2795,6 +2795,15 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac sv.ExecutionRoleArn = ptr.String(jtv) } + case "failureReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) + } + sv.FailureReason = types.FailureReason(jtv) + } + case "id": if value != nil { jtv, ok := value.(string) @@ -2849,6 +2858,15 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac sv.State = types.EndpointState(jtv) } + case "stateDetails": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.StateDetails = ptr.String(jtv) + } + case "subnetIds": if err := awsRestjson1_deserializeDocumentSubnetIds(&sv.SubnetIds, value); err != nil { return err diff --git a/service/emrcontainers/types/types.go b/service/emrcontainers/types/types.go index 8001a97fccc..e656f2d09a5 100644 --- a/service/emrcontainers/types/types.go +++ b/service/emrcontainers/types/types.go @@ -120,6 +120,9 @@ type Endpoint struct { // The execution role ARN of the endpoint. ExecutionRoleArn *string + // The reasons why the endpoint has failed. + FailureReason FailureReason + // The ID of the endpoint. Id *string @@ -138,6 +141,9 @@ type Endpoint struct { // The state of the endpoint. State EndpointState + // Additional details of the endpoint state. + StateDetails *string + // The subnet IDs of the endpoint. SubnetIds []string diff --git a/service/greengrassv2/api_client.go b/service/greengrassv2/api_client.go index 04177e0e247..eb80d3048ff 100644 --- a/service/greengrassv2/api_client.go +++ b/service/greengrassv2/api_client.go @@ -4,6 +4,7 @@ package greengrassv2 import ( "context" + cryptorand "crypto/rand" "github.com/aws/aws-sdk-go-v2/aws" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/retry" @@ -13,6 +14,7 @@ import ( smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/logging" "github.com/aws/smithy-go/middleware" + smithyrand "github.com/aws/smithy-go/rand" smithyhttp "github.com/aws/smithy-go/transport/http" "net/http" "time" @@ -43,6 +45,8 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveDefaultEndpointConfiguration(&options) + resolveIdempotencyTokenProvider(&options) + for _, fn := range optFns { fn(&options) } @@ -75,6 +79,10 @@ type Options struct { // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 + // Provides idempotency tokens values that will be automatically populated into + // idempotent API operations. + IdempotencyTokenProvider IdempotencyTokenProvider + // The logger writer interface to write logging messages to. Logger logging.Logger @@ -236,6 +244,13 @@ func newDefaultV4Signer(o Options) *v4.Signer { }) } +func resolveIdempotencyTokenProvider(o *Options) { + if o.IdempotencyTokenProvider != nil { + return + } + o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader) +} + func addRetryMiddlewares(stack *middleware.Stack, o Options) error { mo := retry.AddRetryMiddlewaresOptions{ Retryer: o.Retryer, @@ -244,6 +259,11 @@ func addRetryMiddlewares(stack *middleware.Stack, o Options) error { return retry.AddRetryMiddlewares(stack, mo) } +// IdempotencyTokenProvider interface for providing idempotency token +type IdempotencyTokenProvider interface { + GetIdempotencyToken() (string, error) +} + func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) } diff --git a/service/greengrassv2/api_op_BatchAssociateClientDeviceWithCoreDevice.go b/service/greengrassv2/api_op_BatchAssociateClientDeviceWithCoreDevice.go index e5f1cb2349e..cf11d14cb72 100644 --- a/service/greengrassv2/api_op_BatchAssociateClientDeviceWithCoreDevice.go +++ b/service/greengrassv2/api_op_BatchAssociateClientDeviceWithCoreDevice.go @@ -13,17 +13,17 @@ import ( // Associate a list of client devices with a core device. Use this API operation to // specify which client devices can discover a core device through cloud discovery. -// With cloud discovery, client devices connect to AWS IoT Greengrass to retrieve +// With cloud discovery, client devices connect to IoT Greengrass to retrieve // associated core devices' connectivity information and certificates. For more // information, see Configure cloud discovery // (https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-cloud-discovery.html) -// in the AWS IoT Greengrass V2 Developer Guide. Client devices are local IoT -// devices that connect to and communicate with an AWS IoT Greengrass core device -// over MQTT. You can connect client devices to a core device to sync MQTT messages -// and data to AWS IoT Core and interact with client devices in AWS IoT Greengrass +// in the IoT Greengrass V2 Developer Guide. Client devices are local IoT devices +// that connect to and communicate with an IoT Greengrass core device over MQTT. +// You can connect client devices to a core device to sync MQTT messages and data +// to Amazon Web Services IoT Core and interact with client devices in Greengrass // components. For more information, see Interact with local IoT devices // (https://docs.aws.amazon.com/greengrass/v2/developerguide/interact-with-local-iot-devices.html) -// in the AWS IoT Greengrass V2 Developer Guide. +// in the IoT Greengrass V2 Developer Guide. func (c *Client) BatchAssociateClientDeviceWithCoreDevice(ctx context.Context, params *BatchAssociateClientDeviceWithCoreDeviceInput, optFns ...func(*Options)) (*BatchAssociateClientDeviceWithCoreDeviceOutput, error) { if params == nil { params = &BatchAssociateClientDeviceWithCoreDeviceInput{} @@ -41,7 +41,7 @@ func (c *Client) BatchAssociateClientDeviceWithCoreDevice(ctx context.Context, p type BatchAssociateClientDeviceWithCoreDeviceInput struct { - // The name of the core device. This is also the name of the AWS IoT thing. + // The name of the core device. This is also the name of the IoT thing. // // This member is required. CoreDeviceThingName *string @@ -55,7 +55,7 @@ type BatchAssociateClientDeviceWithCoreDeviceInput struct { type BatchAssociateClientDeviceWithCoreDeviceOutput struct { // The list of any errors for the entries in the request. Each error entry contains - // the name of the AWS IoT thing that failed to associate. + // the name of the IoT thing that failed to associate. ErrorEntries []types.AssociateClientDeviceWithCoreDeviceErrorEntry // Metadata pertaining to the operation's result. diff --git a/service/greengrassv2/api_op_BatchDisassociateClientDeviceFromCoreDevice.go b/service/greengrassv2/api_op_BatchDisassociateClientDeviceFromCoreDevice.go index 872d5ca1168..b5014188b43 100644 --- a/service/greengrassv2/api_op_BatchDisassociateClientDeviceFromCoreDevice.go +++ b/service/greengrassv2/api_op_BatchDisassociateClientDeviceFromCoreDevice.go @@ -32,7 +32,7 @@ func (c *Client) BatchDisassociateClientDeviceFromCoreDevice(ctx context.Context type BatchDisassociateClientDeviceFromCoreDeviceInput struct { - // The name of the core device. This is also the name of the AWS IoT thing. + // The name of the core device. This is also the name of the IoT thing. // // This member is required. CoreDeviceThingName *string @@ -46,7 +46,7 @@ type BatchDisassociateClientDeviceFromCoreDeviceInput struct { type BatchDisassociateClientDeviceFromCoreDeviceOutput struct { // The list of errors (if any) for the entries in the request. Each error entry - // contains the name of the AWS IoT thing that failed to disassociate. + // contains the name of the IoT thing that failed to disassociate. ErrorEntries []types.DisassociateClientDeviceFromCoreDeviceErrorEntry // Metadata pertaining to the operation's result. diff --git a/service/greengrassv2/api_op_CreateComponentVersion.go b/service/greengrassv2/api_op_CreateComponentVersion.go index 07239d8098a..6f59670940d 100644 --- a/service/greengrassv2/api_op_CreateComponentVersion.go +++ b/service/greengrassv2/api_op_CreateComponentVersion.go @@ -4,6 +4,7 @@ package greengrassv2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/greengrassv2/types" @@ -12,44 +13,43 @@ import ( "time" ) -// Creates a component. Components are software that run on AWS IoT Greengrass core +// Creates a component. Components are software that run on Greengrass core // devices. After you develop and test a component on your core device, you can use -// this operation to upload your component to AWS IoT Greengrass. Then, you can -// deploy the component to other core devices. You can use this operation to do the +// this operation to upload your component to IoT Greengrass. Then, you can deploy +// the component to other core devices. You can use this operation to do the // following: // // * Create components from recipes Create a component from a recipe, // which is a file that defines the component's metadata, parameters, dependencies, -// lifecycle, artifacts, and platform capability. For more information, see AWS IoT +// lifecycle, artifacts, and platform capability. For more information, see IoT // Greengrass component recipe reference // (https://docs.aws.amazon.com/greengrass/v2/developerguide/component-recipe-reference.html) -// in the AWS IoT Greengrass V2 Developer Guide. To create a component from a -// recipe, specify inlineRecipe when you call this operation. +// in the IoT Greengrass V2 Developer Guide. To create a component from a recipe, +// specify inlineRecipe when you call this operation. // -// * Create components -// from Lambda functions Create a component from an AWS Lambda function that runs -// on AWS IoT Greengrass. This creates a recipe and artifacts from the Lambda -// function's deployment package. You can use this operation to migrate Lambda -// functions from AWS IoT Greengrass V1 to AWS IoT Greengrass V2. This function -// only accepts Lambda functions that use the following runtimes: +// * Create components from +// Lambda functions Create a component from an Lambda function that runs on IoT +// Greengrass. This creates a recipe and artifacts from the Lambda function's +// deployment package. You can use this operation to migrate Lambda functions from +// IoT Greengrass V1 to IoT Greengrass V2. This function only accepts Lambda +// functions that use the following runtimes: // -// * Python 2.7 – -// python2.7 +// * Python 2.7 – python2.7 // -// * Python 3.7 – python3.7 +// * Python +// 3.7 – python3.7 // // * Python 3.8 – python3.8 // -// * Java 8 – -// java8 +// * Java 8 – java8 // -// * Node.js 10 – nodejs10.x +// * Node.js 10 – +// nodejs10.x // // * Node.js 12 – nodejs12.x // -// To create a -// component from a Lambda function, specify lambdaFunction when you call this -// operation. +// To create a component from a Lambda +// function, specify lambdaFunction when you call this operation. func (c *Client) CreateComponentVersion(ctx context.Context, params *CreateComponentVersionInput, optFns ...func(*Options)) (*CreateComponentVersionOutput, error) { if params == nil { params = &CreateComponentVersionInput{} @@ -67,6 +67,15 @@ func (c *Client) CreateComponentVersion(ctx context.Context, params *CreateCompo type CreateComponentVersionInput struct { + // A unique, case-sensitive identifier that you can provide to ensure that the + // request is idempotent. Idempotency means that the request is successfully + // processed only once, even if you send the request multiple times. When a request + // succeeds, and you specify the same client token for subsequent successful + // requests, the IoT Greengrass V2 service returns the successful response that it + // caches from the previous request. IoT Greengrass V2 caches successful responses + // for idempotent requests for up to 8 hours. + ClientToken *string + // The recipe to use to create the component. The recipe defines the component's // metadata, parameters, dependencies, lifecycle, artifacts, and platform // compatibility. You must specify either inlineRecipe or lambdaFunction. @@ -79,7 +88,7 @@ type CreateComponentVersionInput struct { // A list of key-value pairs that contain metadata for the resource. For more // information, see Tag your resources // (https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html) in - // the AWS IoT Greengrass V2 Developer Guide. + // the IoT Greengrass V2 Developer Guide. Tags map[string]string noSmithyDocumentSerde @@ -102,7 +111,7 @@ type CreateComponentVersionOutput struct { // This member is required. CreationTimestamp *time.Time - // The status of the component version in AWS IoT Greengrass V2. This status is + // The status of the component version in IoT Greengrass V2. This status is // different from the status of the component on a core device. // // This member is required. @@ -164,6 +173,9 @@ func (c *Client) addOperationCreateComponentVersionMiddlewares(stack *middleware if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addIdempotencyToken_opCreateComponentVersionMiddleware(stack, options); err != nil { + return err + } if err = addOpCreateComponentVersionValidationMiddleware(stack); err != nil { return err } @@ -182,6 +194,39 @@ func (c *Client) addOperationCreateComponentVersionMiddlewares(stack *middleware return nil } +type idempotencyToken_initializeOpCreateComponentVersion struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateComponentVersion) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateComponentVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateComponentVersionInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateComponentVersionInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateComponentVersionMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateComponentVersion{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + func newServiceMetadataMiddleware_opCreateComponentVersion(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/greengrassv2/api_op_CreateDeployment.go b/service/greengrassv2/api_op_CreateDeployment.go index 430343d8c71..c60d7309b59 100644 --- a/service/greengrassv2/api_op_CreateDeployment.go +++ b/service/greengrassv2/api_op_CreateDeployment.go @@ -4,6 +4,7 @@ package greengrassv2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/greengrassv2/types" @@ -11,19 +12,19 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a continuous deployment for a target, which is a AWS IoT Greengrass core -// device or group of core devices. When you add a new core device to a group of -// core devices that has a deployment, AWS IoT Greengrass deploys that group's -// deployment to the new device. You can define one deployment for each target. -// When you create a new deployment for a target that has an existing deployment, -// you replace the previous deployment. AWS IoT Greengrass applies the new -// deployment to the target devices. Every deployment has a revision number that -// indicates how many deployment revisions you define for a target. Use this -// operation to create a new revision of an existing deployment. This operation -// returns the revision number of the new deployment when you create it. For more -// information, see the Create deployments +// Creates a continuous deployment for a target, which is a Greengrass core device +// or group of core devices. When you add a new core device to a group of core +// devices that has a deployment, IoT Greengrass deploys that group's deployment to +// the new device. You can define one deployment for each target. When you create a +// new deployment for a target that has an existing deployment, you replace the +// previous deployment. IoT Greengrass applies the new deployment to the target +// devices. Every deployment has a revision number that indicates how many +// deployment revisions you define for a target. Use this operation to create a new +// revision of an existing deployment. This operation returns the revision number +// of the new deployment when you create it. For more information, see the Create +// deployments // (https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html) -// in the AWS IoT Greengrass V2 Developer Guide. +// in the IoT Greengrass V2 Developer Guide. func (c *Client) CreateDeployment(ctx context.Context, params *CreateDeploymentInput, optFns ...func(*Options)) (*CreateDeploymentOutput, error) { if params == nil { params = &CreateDeploymentInput{} @@ -43,20 +44,26 @@ type CreateDeploymentInput struct { // The ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of - // the target AWS IoT thing or thing group. + // the target IoT thing or thing group. // // This member is required. TargetArn *string + // A unique, case-sensitive identifier that you can provide to ensure that the + // request is idempotent. Idempotency means that the request is successfully + // processed only once, even if you send the request multiple times. When a request + // succeeds, and you specify the same client token for subsequent successful + // requests, the IoT Greengrass V2 service returns the successful response that it + // caches from the previous request. IoT Greengrass V2 caches successful responses + // for idempotent requests for up to 8 hours. + ClientToken *string + // The components to deploy. This is a dictionary, where each key is the name of a // component, and each key's value is the version and configuration to deploy for // that component. Components map[string]types.ComponentDeploymentSpecification - // The name of the deployment. You can create deployments without names. If you - // create a deployment without a name, the AWS IoT Greengrass V2 console shows the - // deployment name as :, where targetType and targetName are the type and name of - // the deployment target. + // The name of the deployment. DeploymentName *string // The deployment policies for the deployment. These policies define how the @@ -71,7 +78,7 @@ type CreateDeploymentInput struct { // A list of key-value pairs that contain metadata for the resource. For more // information, see Tag your resources // (https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html) in - // the AWS IoT Greengrass V2 Developer Guide. + // the IoT Greengrass V2 Developer Guide. Tags map[string]string noSmithyDocumentSerde @@ -84,10 +91,10 @@ type CreateDeploymentOutput struct { // The ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of - // the AWS IoT job that applies the deployment to target devices. + // the IoT job that applies the deployment to target devices. IotJobArn *string - // The ID of the AWS IoT job that applies the deployment to target devices. + // The ID of the IoT job that applies the deployment to target devices. IotJobId *string // Metadata pertaining to the operation's result. @@ -141,6 +148,9 @@ func (c *Client) addOperationCreateDeploymentMiddlewares(stack *middleware.Stack if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addIdempotencyToken_opCreateDeploymentMiddleware(stack, options); err != nil { + return err + } if err = addOpCreateDeploymentValidationMiddleware(stack); err != nil { return err } @@ -159,6 +169,39 @@ func (c *Client) addOperationCreateDeploymentMiddlewares(stack *middleware.Stack return nil } +type idempotencyToken_initializeOpCreateDeployment struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateDeployment) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateDeployment) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateDeploymentInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateDeploymentInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateDeploymentMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateDeployment{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + func newServiceMetadataMiddleware_opCreateDeployment(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/greengrassv2/api_op_DeleteComponent.go b/service/greengrassv2/api_op_DeleteComponent.go index 0079e0fd32a..510773c8ae6 100644 --- a/service/greengrassv2/api_op_DeleteComponent.go +++ b/service/greengrassv2/api_op_DeleteComponent.go @@ -10,11 +10,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a version of a component from AWS IoT Greengrass. This operation deletes -// the component's recipe and artifacts. As a result, deployments that refer to -// this component version will fail. If you have deployments that use this -// component version, you can remove the component from the deployment or update -// the deployment to use a valid version. +// Deletes a version of a component from IoT Greengrass. This operation deletes the +// component's recipe and artifacts. As a result, deployments that refer to this +// component version will fail. If you have deployments that use this component +// version, you can remove the component from the deployment or update the +// deployment to use a valid version. func (c *Client) DeleteComponent(ctx context.Context, params *DeleteComponentInput, optFns ...func(*Options)) (*DeleteComponentOutput, error) { if params == nil { params = &DeleteComponentInput{} diff --git a/service/greengrassv2/api_op_DeleteCoreDevice.go b/service/greengrassv2/api_op_DeleteCoreDevice.go index 76c757feb37..ca1d90b36e8 100644 --- a/service/greengrassv2/api_op_DeleteCoreDevice.go +++ b/service/greengrassv2/api_op_DeleteCoreDevice.go @@ -10,12 +10,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a AWS IoT Greengrass core device, which is an AWS IoT thing. This -// operation removes the core device from the list of core devices. This operation -// doesn't delete the AWS IoT thing. For more information about how to delete the -// AWS IoT thing, see DeleteThing +// Deletes a Greengrass core device, which is an IoT thing. This operation removes +// the core device from the list of core devices. This operation doesn't delete the +// IoT thing. For more information about how to delete the IoT thing, see +// DeleteThing // (https://docs.aws.amazon.com/iot/latest/apireference/API_DeleteThing.html) in -// the AWS IoT API Reference. +// the IoT API Reference. func (c *Client) DeleteCoreDevice(ctx context.Context, params *DeleteCoreDeviceInput, optFns ...func(*Options)) (*DeleteCoreDeviceOutput, error) { if params == nil { params = &DeleteCoreDeviceInput{} @@ -33,7 +33,7 @@ func (c *Client) DeleteCoreDevice(ctx context.Context, params *DeleteCoreDeviceI type DeleteCoreDeviceInput struct { - // The name of the core device. This is also the name of the AWS IoT thing. + // The name of the core device. This is also the name of the IoT thing. // // This member is required. CoreDeviceThingName *string diff --git a/service/greengrassv2/api_op_DescribeComponent.go b/service/greengrassv2/api_op_DescribeComponent.go index 2bfbd68414e..32e51d33d41 100644 --- a/service/greengrassv2/api_op_DescribeComponent.go +++ b/service/greengrassv2/api_op_DescribeComponent.go @@ -65,14 +65,14 @@ type DescribeComponentOutput struct { // The publisher of the component version. Publisher *string - // The status of the component version in AWS IoT Greengrass V2. This status is + // The status of the component version in IoT Greengrass V2. This status is // different from the status of the component on a core device. Status *types.CloudComponentStatus // A list of key-value pairs that contain metadata for the resource. For more // information, see Tag your resources // (https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html) in - // the AWS IoT Greengrass V2 Developer Guide. + // the IoT Greengrass V2 Developer Guide. Tags map[string]string // Metadata pertaining to the operation's result. diff --git a/service/greengrassv2/api_op_GetComponent.go b/service/greengrassv2/api_op_GetComponent.go index 608ff06ce8a..301b9d1eb8a 100644 --- a/service/greengrassv2/api_op_GetComponent.go +++ b/service/greengrassv2/api_op_GetComponent.go @@ -58,7 +58,7 @@ type GetComponentOutput struct { // A list of key-value pairs that contain metadata for the resource. For more // information, see Tag your resources // (https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html) in - // the AWS IoT Greengrass V2 Developer Guide. + // the IoT Greengrass V2 Developer Guide. Tags map[string]string // Metadata pertaining to the operation's result. diff --git a/service/greengrassv2/api_op_GetCoreDevice.go b/service/greengrassv2/api_op_GetCoreDevice.go index f0c9c38e0ae..8db5fbe148c 100644 --- a/service/greengrassv2/api_op_GetCoreDevice.go +++ b/service/greengrassv2/api_op_GetCoreDevice.go @@ -12,7 +12,7 @@ import ( "time" ) -// Retrieves metadata for a AWS IoT Greengrass core device. +// Retrieves metadata for a Greengrass core device. func (c *Client) GetCoreDevice(ctx context.Context, params *GetCoreDeviceInput, optFns ...func(*Options)) (*GetCoreDeviceOutput, error) { if params == nil { params = &GetCoreDeviceInput{} @@ -30,7 +30,7 @@ func (c *Client) GetCoreDevice(ctx context.Context, params *GetCoreDeviceInput, type GetCoreDeviceInput struct { - // The name of the core device. This is also the name of the AWS IoT thing. + // The name of the core device. This is also the name of the IoT thing. // // This member is required. CoreDeviceThingName *string @@ -43,15 +43,15 @@ type GetCoreDeviceOutput struct { // The computer architecture of the core device. Architecture *string - // The name of the core device. This is also the name of the AWS IoT thing. + // The name of the core device. This is also the name of the IoT thing. CoreDeviceThingName *string - // The version of the AWS IoT Greengrass Core software that the core device runs. - // This version is equivalent to the version of the AWS IoT Greengrass nucleus - // component that runs on the core device. For more information, see the AWS IoT - // Greengrass nucleus component + // The version of the IoT Greengrass Core software that the core device runs. This + // version is equivalent to the version of the Greengrass nucleus component that + // runs on the core device. For more information, see the Greengrass nucleus + // component // (https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html) - // in the AWS IoT Greengrass V2 Developer Guide. + // in the IoT Greengrass V2 Developer Guide. CoreVersion *string // The time at which the core device's status last updated, expressed in ISO 8601 @@ -64,17 +64,17 @@ type GetCoreDeviceOutput struct { // The status of the core device. The core device status can be: // // * HEALTHY – The - // AWS IoT Greengrass Core software and all components run on the core device - // without issue. + // IoT Greengrass Core software and all components run on the core device without + // issue. // - // * UNHEALTHY – The AWS IoT Greengrass Core software or a - // component is in a failed state on the core device. + // * UNHEALTHY – The IoT Greengrass Core software or a component is in a + // failed state on the core device. Status types.CoreDeviceStatus // A list of key-value pairs that contain metadata for the resource. For more // information, see Tag your resources // (https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html) in - // the AWS IoT Greengrass V2 Developer Guide. + // the IoT Greengrass V2 Developer Guide. Tags map[string]string // Metadata pertaining to the operation's result. diff --git a/service/greengrassv2/api_op_GetDeployment.go b/service/greengrassv2/api_op_GetDeployment.go index d483e0d77cd..6afc4ab5c5d 100644 --- a/service/greengrassv2/api_op_GetDeployment.go +++ b/service/greengrassv2/api_op_GetDeployment.go @@ -12,8 +12,8 @@ import ( "time" ) -// Gets a deployment. Deployments define the components that run on AWS IoT -// Greengrass core devices. +// Gets a deployment. Deployments define the components that run on Greengrass core +// devices. func (c *Client) GetDeployment(ctx context.Context, params *GetDeploymentInput, optFns ...func(*Options)) (*GetDeploymentOutput, error) { if params == nil { params = &GetDeploymentInput{} @@ -52,10 +52,7 @@ type GetDeploymentOutput struct { // The ID of the deployment. DeploymentId *string - // The name of the deployment. You can create deployments without names. If you - // create a deployment without a name, the AWS IoT Greengrass V2 console shows the - // deployment name as :, where targetType and targetName are the type and name of - // the deployment target. + // The name of the deployment. DeploymentName *string // The deployment policies for the deployment. These policies define how the @@ -67,7 +64,7 @@ type GetDeploymentOutput struct { // The ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of - // the AWS IoT job that applies the deployment to target devices. + // the IoT job that applies the deployment to target devices. IotJobArn *string // The job configuration for the deployment configuration. The job configuration @@ -75,7 +72,7 @@ type GetDeploymentOutput struct { // configuration. IotJobConfiguration *types.DeploymentIoTJobConfiguration - // The ID of the AWS IoT job that applies the deployment to target devices. + // The ID of the IoT job that applies the deployment to target devices. IotJobId *string // Whether or not the deployment is the latest revision for its target. @@ -87,12 +84,12 @@ type GetDeploymentOutput struct { // A list of key-value pairs that contain metadata for the resource. For more // information, see Tag your resources // (https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html) in - // the AWS IoT Greengrass V2 Developer Guide. + // the IoT Greengrass V2 Developer Guide. Tags map[string]string // The ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of - // the target AWS IoT thing or thing group. + // the target IoT thing or thing group. TargetArn *string // Metadata pertaining to the operation's result. diff --git a/service/greengrassv2/api_op_ListClientDevicesAssociatedWithCoreDevice.go b/service/greengrassv2/api_op_ListClientDevicesAssociatedWithCoreDevice.go index d89d715d991..06d63cfb8b3 100644 --- a/service/greengrassv2/api_op_ListClientDevicesAssociatedWithCoreDevice.go +++ b/service/greengrassv2/api_op_ListClientDevicesAssociatedWithCoreDevice.go @@ -31,7 +31,7 @@ func (c *Client) ListClientDevicesAssociatedWithCoreDevice(ctx context.Context, type ListClientDevicesAssociatedWithCoreDeviceInput struct { - // The name of the core device. This is also the name of the AWS IoT thing. + // The name of the core device. This is also the name of the IoT thing. // // This member is required. CoreDeviceThingName *string diff --git a/service/greengrassv2/api_op_ListCoreDevices.go b/service/greengrassv2/api_op_ListCoreDevices.go index 8f8386c39fb..bc76d8bb0af 100644 --- a/service/greengrassv2/api_op_ListCoreDevices.go +++ b/service/greengrassv2/api_op_ListCoreDevices.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves a paginated list of AWS IoT Greengrass core devices. +// Retrieves a paginated list of Greengrass core devices. func (c *Client) ListCoreDevices(ctx context.Context, params *ListCoreDevicesInput, optFns ...func(*Options)) (*ListCoreDevicesOutput, error) { if params == nil { params = &ListCoreDevicesInput{} @@ -40,17 +40,17 @@ type ListCoreDevicesInput struct { // list includes only core devices that have this status. Choose one of the // following options: // - // * HEALTHY – The AWS IoT Greengrass Core software and all + // * HEALTHY – The IoT Greengrass Core software and all // components run on the core device without issue. // - // * UNHEALTHY – The AWS IoT + // * UNHEALTHY – The IoT // Greengrass Core software or a component is in a failed state on the core device. Status types.CoreDeviceStatus // The ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of - // the AWS IoT thing group by which to filter. If you specify this parameter, the - // list includes only core devices that are members of this thing group. + // the IoT thing group by which to filter. If you specify this parameter, the list + // includes only core devices that are members of this thing group. ThingGroupArn *string noSmithyDocumentSerde diff --git a/service/greengrassv2/api_op_ListDeployments.go b/service/greengrassv2/api_op_ListDeployments.go index dd4d5ee80b4..6e6629d2f25 100644 --- a/service/greengrassv2/api_op_ListDeployments.go +++ b/service/greengrassv2/api_op_ListDeployments.go @@ -49,7 +49,7 @@ type ListDeploymentsInput struct { // The ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of - // the target AWS IoT thing or thing group. + // the target IoT thing or thing group. TargetArn *string noSmithyDocumentSerde diff --git a/service/greengrassv2/api_op_ListEffectiveDeployments.go b/service/greengrassv2/api_op_ListEffectiveDeployments.go index 8e6d0198b2a..d535ae6a545 100644 --- a/service/greengrassv2/api_op_ListEffectiveDeployments.go +++ b/service/greengrassv2/api_op_ListEffectiveDeployments.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves a paginated list of deployment jobs that AWS IoT Greengrass sends to -// AWS IoT Greengrass core devices. +// Retrieves a paginated list of deployment jobs that IoT Greengrass sends to +// Greengrass core devices. func (c *Client) ListEffectiveDeployments(ctx context.Context, params *ListEffectiveDeploymentsInput, optFns ...func(*Options)) (*ListEffectiveDeploymentsOutput, error) { if params == nil { params = &ListEffectiveDeploymentsInput{} @@ -31,7 +31,7 @@ func (c *Client) ListEffectiveDeployments(ctx context.Context, params *ListEffec type ListEffectiveDeploymentsInput struct { - // The name of the core device. This is also the name of the AWS IoT thing. + // The name of the core device. This is also the name of the IoT thing. // // This member is required. CoreDeviceThingName *string diff --git a/service/greengrassv2/api_op_ListInstalledComponents.go b/service/greengrassv2/api_op_ListInstalledComponents.go index 7c0262543a8..c7ac58672b9 100644 --- a/service/greengrassv2/api_op_ListInstalledComponents.go +++ b/service/greengrassv2/api_op_ListInstalledComponents.go @@ -12,8 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves a paginated list of the components that a AWS IoT Greengrass core -// device runs. +// Retrieves a paginated list of the components that a Greengrass core device runs. func (c *Client) ListInstalledComponents(ctx context.Context, params *ListInstalledComponentsInput, optFns ...func(*Options)) (*ListInstalledComponentsOutput, error) { if params == nil { params = &ListInstalledComponentsInput{} @@ -31,7 +30,7 @@ func (c *Client) ListInstalledComponents(ctx context.Context, params *ListInstal type ListInstalledComponentsInput struct { - // The name of the core device. This is also the name of the AWS IoT thing. + // The name of the core device. This is also the name of the IoT thing. // // This member is required. CoreDeviceThingName *string diff --git a/service/greengrassv2/api_op_ListTagsForResource.go b/service/greengrassv2/api_op_ListTagsForResource.go index 169e49bfcbd..ca5b1e98403 100644 --- a/service/greengrassv2/api_op_ListTagsForResource.go +++ b/service/greengrassv2/api_op_ListTagsForResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves the list of tags for an AWS IoT Greengrass resource. +// Retrieves the list of tags for an IoT Greengrass resource. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} @@ -43,7 +43,7 @@ type ListTagsForResourceOutput struct { // A list of key-value pairs that contain metadata for the resource. For more // information, see Tag your resources // (https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html) in - // the AWS IoT Greengrass V2 Developer Guide. + // the IoT Greengrass V2 Developer Guide. Tags map[string]string // Metadata pertaining to the operation's result. diff --git a/service/greengrassv2/api_op_ResolveComponentCandidates.go b/service/greengrassv2/api_op_ResolveComponentCandidates.go index 034a3c6bd33..9aa44125de8 100644 --- a/service/greengrassv2/api_op_ResolveComponentCandidates.go +++ b/service/greengrassv2/api_op_ResolveComponentCandidates.go @@ -12,19 +12,19 @@ import ( ) // Retrieves a list of components that meet the component, version, and platform -// requirements of a deployment. AWS IoT Greengrass core devices call this -// operation when they receive a deployment to identify the components to install. -// This operation identifies components that meet all dependency requirements for a -// deployment. If the requirements conflict, then this operation returns an error -// and the deployment fails. For example, this occurs if component A requires -// version >2.0.0 and component B requires version <2.0.0 of a component -// dependency. When you specify the component candidates to resolve, AWS IoT -// Greengrass compares each component's digest from the core device with the -// component's digest in the AWS Cloud. If the digests don't match, then AWS IoT -// Greengrass specifies to use the version from the AWS Cloud. To use this -// operation, you must use the data plane API endpoint and authenticate with an AWS -// IoT device certificate. For more information, see AWS IoT Greengrass endpoints -// and quotas (https://docs.aws.amazon.com/general/latest/gr/greengrass.html). +// requirements of a deployment. Greengrass core devices call this operation when +// they receive a deployment to identify the components to install. This operation +// identifies components that meet all dependency requirements for a deployment. If +// the requirements conflict, then this operation returns an error and the +// deployment fails. For example, this occurs if component A requires version +// >2.0.0 and component B requires version <2.0.0 of a component dependency. When +// you specify the component candidates to resolve, IoT Greengrass compares each +// component's digest from the core device with the component's digest in the +// Amazon Web Services Cloud. If the digests don't match, then IoT Greengrass +// specifies to use the version from the Amazon Web Services Cloud. To use this +// operation, you must use the data plane API endpoint and authenticate with an IoT +// device certificate. For more information, see IoT Greengrass endpoints and +// quotas (https://docs.aws.amazon.com/general/latest/gr/greengrass.html). func (c *Client) ResolveComponentCandidates(ctx context.Context, params *ResolveComponentCandidatesInput, optFns ...func(*Options)) (*ResolveComponentCandidatesOutput, error) { if params == nil { params = &ResolveComponentCandidatesInput{} diff --git a/service/greengrassv2/api_op_TagResource.go b/service/greengrassv2/api_op_TagResource.go index 15257503cba..005dc2a7ee8 100644 --- a/service/greengrassv2/api_op_TagResource.go +++ b/service/greengrassv2/api_op_TagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Adds tags to an AWS IoT Greengrass resource. If a tag already exists for the +// Adds tags to an IoT Greengrass resource. If a tag already exists for the // resource, this operation updates the tag's value. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { @@ -39,7 +39,7 @@ type TagResourceInput struct { // A list of key-value pairs that contain metadata for the resource. For more // information, see Tag your resources // (https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html) in - // the AWS IoT Greengrass V2 Developer Guide. + // the IoT Greengrass V2 Developer Guide. // // This member is required. Tags map[string]string diff --git a/service/greengrassv2/api_op_UntagResource.go b/service/greengrassv2/api_op_UntagResource.go index fc472809af1..6d0299dbf61 100644 --- a/service/greengrassv2/api_op_UntagResource.go +++ b/service/greengrassv2/api_op_UntagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes a tag from an AWS IoT Greengrass resource. +// Removes a tag from an IoT Greengrass resource. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/greengrassv2/deserializers.go b/service/greengrassv2/deserializers.go index 52cbb5cc14a..e8e744b6fdc 100644 --- a/service/greengrassv2/deserializers.go +++ b/service/greengrassv2/deserializers.go @@ -614,6 +614,9 @@ func awsRestjson1_deserializeOpErrorCreateComponentVersion(response *smithyhttp. case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("RequestAlreadyInProgressException", errorCode): + return awsRestjson1_deserializeErrorRequestAlreadyInProgressException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) @@ -816,6 +819,9 @@ func awsRestjson1_deserializeOpErrorCreateDeployment(response *smithyhttp.Respon case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("RequestAlreadyInProgressException", errorCode): + return awsRestjson1_deserializeErrorRequestAlreadyInProgressException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -3961,6 +3967,42 @@ func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.R return output } +func awsRestjson1_deserializeErrorRequestAlreadyInProgressException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.RequestAlreadyInProgressException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentRequestAlreadyInProgressException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.ResourceNotFoundException{} var buff [1024]byte @@ -4837,6 +4879,11 @@ func awsRestjson1_deserializeDocumentComponentRunWith(v **types.ComponentRunWith sv.PosixUser = ptr.String(jtv) } + case "systemResourceLimits": + if err := awsRestjson1_deserializeDocumentSystemResourceLimits(&sv.SystemResourceLimits, value); err != nil { + return err + } + default: _, _ = key, value @@ -6282,6 +6329,46 @@ func awsRestjson1_deserializeDocumentPlatformAttributesMap(v *map[string]string, return nil } +func awsRestjson1_deserializeDocumentRequestAlreadyInProgressException(v **types.RequestAlreadyInProgressException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RequestAlreadyInProgressException + if *v == nil { + sv = &types.RequestAlreadyInProgressException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentResolvedComponentVersion(v **types.ResolvedComponentVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -6557,6 +6644,84 @@ func awsRestjson1_deserializeDocumentStringMap(v *map[string]string, value inter return nil } +func awsRestjson1_deserializeDocumentSystemResourceLimits(v **types.SystemResourceLimits, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SystemResourceLimits + if *v == nil { + sv = &types.SystemResourceLimits{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cpus": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Cpus = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Cpus = f64 + + default: + return fmt.Errorf("expected CPU to be a JSON Number, got %T instead", value) + + } + } + + case "memory": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Memory to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Memory = i64 + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/greengrassv2/doc.go b/service/greengrassv2/doc.go index 7715b02cc97..4095d4fe7c1 100644 --- a/service/greengrassv2/doc.go +++ b/service/greengrassv2/doc.go @@ -3,18 +3,18 @@ // Package greengrassv2 provides the API client, operations, and parameter types // for AWS IoT Greengrass V2. // -// AWS IoT Greengrass brings local compute, messaging, data management, sync, and -// ML inference capabilities to edge devices. This enables devices to collect and +// IoT Greengrass brings local compute, messaging, data management, sync, and ML +// inference capabilities to edge devices. This enables devices to collect and // analyze data closer to the source of information, react autonomously to local // events, and communicate securely with each other on local networks. Local -// devices can also communicate securely with AWS IoT Core and export IoT data to -// the AWS Cloud. AWS IoT Greengrass developers can use AWS Lambda functions and -// components to create and deploy applications to fleets of edge devices for local -// operation. AWS IoT Greengrass Version 2 provides a new major version of the AWS -// IoT Greengrass Core software, new APIs, and a new console. Use this API -// reference to learn how to use the AWS IoT Greengrass V2 API operations to manage -// components, manage deployments, and core devices. For more information, see What -// is AWS IoT Greengrass? +// devices can also communicate securely with Amazon Web Services IoT Core and +// export IoT data to the Amazon Web Services Cloud. IoT Greengrass developers can +// use Lambda functions and components to create and deploy applications to fleets +// of edge devices for local operation. IoT Greengrass Version 2 provides a new +// major version of the IoT Greengrass Core software, new APIs, and a new console. +// Use this API reference to learn how to use the IoT Greengrass V2 API operations +// to manage components, manage deployments, and core devices. For more +// information, see What is IoT Greengrass? // (https://docs.aws.amazon.com/greengrass/v2/developerguide/what-is-iot-greengrass.html) -// in the AWS IoT Greengrass V2 Developer Guide. +// in the IoT Greengrass V2 Developer Guide. package greengrassv2 diff --git a/service/greengrassv2/serializers.go b/service/greengrassv2/serializers.go index 20ec5a8c9a6..e4d3bbf0fe4 100644 --- a/service/greengrassv2/serializers.go +++ b/service/greengrassv2/serializers.go @@ -299,6 +299,11 @@ func awsRestjson1_serializeOpDocumentCreateComponentVersionInput(v *CreateCompon object := value.Object() defer object.Close() + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + if v.InlineRecipe != nil { ok := object.Key("inlineRecipe") ok.Base64EncodeBytes(v.InlineRecipe) @@ -381,6 +386,11 @@ func awsRestjson1_serializeOpDocumentCreateDeploymentInput(v *CreateDeploymentIn object := value.Object() defer object.Close() + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + if v.Components != nil { ok := object.Key("components") if err := awsRestjson1_serializeDocumentComponentDeploymentSpecifications(v.Components, ok); err != nil { @@ -1782,6 +1792,13 @@ func awsRestjson1_serializeDocumentComponentRunWith(v *types.ComponentRunWith, v ok.String(*v.PosixUser) } + if v.SystemResourceLimits != nil { + ok := object.Key("systemResourceLimits") + if err := awsRestjson1_serializeDocumentSystemResourceLimits(v.SystemResourceLimits, ok); err != nil { + return err + } + } + return nil } @@ -2357,6 +2374,36 @@ func awsRestjson1_serializeDocumentPlatformAttributesMap(v map[string]string, va return nil } +func awsRestjson1_serializeDocumentSystemResourceLimits(v *types.SystemResourceLimits, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Cpus != 0 { + ok := object.Key("cpus") + switch { + case math.IsNaN(v.Cpus): + ok.String("NaN") + + case math.IsInf(v.Cpus, 1): + ok.String("Infinity") + + case math.IsInf(v.Cpus, -1): + ok.String("-Infinity") + + default: + ok.Double(v.Cpus) + + } + } + + if v.Memory != 0 { + ok := object.Key("memory") + ok.Long(v.Memory) + } + + return nil +} + func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/greengrassv2/types/errors.go b/service/greengrassv2/types/errors.go index 3a748e068ed..2a27239cbbd 100644 --- a/service/greengrassv2/types/errors.go +++ b/service/greengrassv2/types/errors.go @@ -49,7 +49,7 @@ func (e *ConflictException) ErrorMessage() string { func (e *ConflictException) ErrorCode() string { return "ConflictException" } func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// AWS IoT Greengrass can't process your request right now. Try again later. +// IoT Greengrass can't process your request right now. Try again later. type InternalServerException struct { Message *string @@ -70,6 +70,29 @@ func (e *InternalServerException) ErrorMessage() string { func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// The request is already in progress. This exception occurs when you use a client +// token for multiple requests while IoT Greengrass is still processing an earlier +// request that uses the same client token. +type RequestAlreadyInProgressException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *RequestAlreadyInProgressException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *RequestAlreadyInProgressException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *RequestAlreadyInProgressException) ErrorCode() string { + return "RequestAlreadyInProgressException" +} +func (e *RequestAlreadyInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The requested resource can't be found. type ResourceNotFoundException struct { Message *string diff --git a/service/greengrassv2/types/types.go b/service/greengrassv2/types/types.go index 842d70c35f7..8d67c6be872 100644 --- a/service/greengrassv2/types/types.go +++ b/service/greengrassv2/types/types.go @@ -13,7 +13,7 @@ import ( // operation consumes a list of these requests. type AssociateClientDeviceWithCoreDeviceEntry struct { - // The name of the AWS IoT thing that represents the client device to associate. + // The name of the IoT thing that represents the client device to associate. // // This member is required. ThingName *string @@ -33,7 +33,7 @@ type AssociateClientDeviceWithCoreDeviceErrorEntry struct { // A message that provides additional information about the error. Message *string - // The name of the AWS IoT thing whose associate request failed. + // The name of the IoT thing whose associate request failed. ThingName *string noSmithyDocumentSerde @@ -46,22 +46,22 @@ type AssociatedClientDevice struct { // The time that the client device was associated, expressed in ISO 8601 format. AssociationTimestamp *time.Time - // The name of the AWS IoT thing that represents the associated client device. + // The name of the IoT thing that represents the associated client device. ThingName *string noSmithyDocumentSerde } -// Contains the status of a component in the AWS IoT Greengrass service. +// Contains the status of a component in the IoT Greengrass service. type CloudComponentStatus struct { // The state of the component. ComponentState CloudComponentState // A dictionary of errors that communicate why the component is in an error state. - // For example, if AWS IoT Greengrass can't access an artifact for the component, - // then errors contains the artifact's URI as a key, and the error message as the - // value for that key. + // For example, if IoT Greengrass can't access an artifact for the component, then + // errors contains the artifact's URI as a key, and the error message as the value + // for that key. Errors map[string]string // A message that communicates details, such as errors, about the status of the @@ -88,8 +88,8 @@ type Component struct { noSmithyDocumentSerde } -// Contains information about a component that is a candidate to deploy to a AWS -// IoT Greengrass core device. +// Contains information about a component that is a candidate to deploy to a +// Greengrass core device. type ComponentCandidate struct { // The name of the component. @@ -98,10 +98,10 @@ type ComponentCandidate struct { // The version of the component. ComponentVersion *string - // The version requirements for the component's dependencies. AWS IoT Greengrass - // core devices get the version requirements from component recipes. AWS IoT - // Greengrass V2 uses semantic version constraints. For more information, see - // Semantic Versioning (https://semver.org/). + // The version requirements for the component's dependencies. Greengrass core + // devices get the version requirements from component recipes. IoT Greengrass V2 + // uses semantic version constraints. For more information, see Semantic Versioning + // (https://semver.org/). VersionRequirements map[string]string noSmithyDocumentSerde @@ -111,7 +111,7 @@ type ComponentCandidate struct { // on Greengrass core devices. For more information, see Update component // configurations // (https://docs.aws.amazon.com/greengrass/v2/developerguide/update-component-configurations.html) -// in the AWS IoT Greengrass V2 Developer Guide. +// in the IoT Greengrass V2 Developer Guide. type ComponentConfigurationUpdate struct { // A serialized JSON string that contains the configuration object to merge to @@ -122,7 +122,7 @@ type ComponentConfigurationUpdate struct { // for keys and values that you don't specify in this object. For more information, // see Merge configuration updates // (https://docs.aws.amazon.com/greengrass/v2/developerguide/update-component-configurations.html#merge-configuration-update) - // in the AWS IoT Greengrass V2 Developer Guide. + // in the IoT Greengrass V2 Developer Guide. Merge *string // The list of configuration nodes to reset to default values on target devices. @@ -131,7 +131,7 @@ type ComponentConfigurationUpdate struct { // the object. For more information, see the JSON pointer specification // (https://tools.ietf.org/html/rfc6901) and Reset configuration updates // (https://docs.aws.amazon.com/greengrass/v2/developerguide/update-component-configurations.html#reset-configuration-update) - // in the AWS IoT Greengrass V2 Developer Guide. + // in the IoT Greengrass V2 Developer Guide. Reset []string noSmithyDocumentSerde @@ -152,9 +152,9 @@ type ComponentDependencyRequirement struct { // Default: HARD DependencyType ComponentDependencyType - // The component version requirement for the component dependency. AWS IoT - // Greengrass V2 uses semantic version constraints. For more information, see - // Semantic Versioning (https://semver.org/). + // The component version requirement for the component dependency. IoT Greengrass + // V2 uses semantic version constraints. For more information, see Semantic + // Versioning (https://semver.org/). VersionRequirement *string noSmithyDocumentSerde @@ -169,20 +169,20 @@ type ComponentDeploymentSpecification struct { // The configuration updates to deploy for the component. You can define reset // updates and merge updates. A reset updates the keys that you specify to the // default configuration for the component. A merge updates the core device's - // component configuration with the keys and values that you specify. The AWS IoT + // component configuration with the keys and values that you specify. The IoT // Greengrass Core software applies reset updates before it applies merge updates. // For more information, see Update component configurations // (https://docs.aws.amazon.com/greengrass/v2/developerguide/update-component-configurations.html) - // in the AWS IoT Greengrass V2 Developer Guide. + // in the IoT Greengrass V2 Developer Guide. ConfigurationUpdate *ComponentConfigurationUpdate - // The system user and group that the AWS IoT Greengrass Core software uses to run - // component processes on the core device. If you omit this parameter, the AWS IoT + // The system user and group that the IoT Greengrass Core software uses to run + // component processes on the core device. If you omit this parameter, the IoT // Greengrass Core software uses the system user and group that you configure for // the core device. For more information, see Configure the user and group that run // components // (https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#configure-component-user) - // in the AWS IoT Greengrass V2 Developer Guide. + // in the IoT Greengrass V2 Developer Guide. RunWith *ComponentRunWith noSmithyDocumentSerde @@ -217,36 +217,47 @@ type ComponentLatestVersion struct { // Contains information about a platform that a component supports. type ComponentPlatform struct { - // A dictionary of attributes for the platform. The AWS IoT Greengrass Core - // software defines the os and platform by default. You can specify additional - // platform attributes for a core device when you deploy the AWS IoT Greengrass - // nucleus component. For more information, see the AWS IoT Greengrass nucleus - // component + // A dictionary of attributes for the platform. The IoT Greengrass Core software + // defines the os and platform by default. You can specify additional platform + // attributes for a core device when you deploy the Greengrass nucleus component. + // For more information, see the Greengrass nucleus component // (https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html) - // in the AWS IoT Greengrass V2 Developer Guide. + // in the IoT Greengrass V2 Developer Guide. Attributes map[string]string // The friendly name of the platform. This name helps you identify the platform. If - // you omit this parameter, AWS IoT Greengrass creates a friendly name from the os - // and architecture of the platform. + // you omit this parameter, IoT Greengrass creates a friendly name from the os and + // architecture of the platform. Name *string noSmithyDocumentSerde } -// Contains information system user and group that the AWS IoT Greengrass Core -// software uses to run component processes on the core device. For more -// information, see Configure the user and group that run components +// Contains information system user and group that the IoT Greengrass Core software +// uses to run component processes on the core device. For more information, see +// Configure the user and group that run components // (https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#configure-component-user) -// in the AWS IoT Greengrass V2 Developer Guide. +// in the IoT Greengrass V2 Developer Guide. type ComponentRunWith struct { // The POSIX system user and (optional) group to use to run this component. Specify // the user and group separated by a colon (:) in the following format: user:group. - // The group is optional. If you don't specify a group, the AWS IoT Greengrass Core - // software uses the primary user for the group. + // The group is optional. If you don't specify a group, the IoT Greengrass Core + // software uses the primary user for the group. If you omit this parameter, the + // IoT Greengrass Core software uses the default system user and group that you + // configure on the Greengrass nucleus component. For more information, see + // Configure the user and group that run components + // (https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#configure-component-user). PosixUser *string + // The system resource limits to apply to this component's process on the core + // device. If you omit this parameter, the IoT Greengrass Core software uses the + // default system resource limits that you configure on the Greengrass nucleus + // component. For more information, see Configure system resource limits for + // components + // (https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#configure-component-system-resource-limits). + SystemResourceLimits *SystemResourceLimits + noSmithyDocumentSerde } @@ -267,11 +278,11 @@ type ComponentVersionListItem struct { noSmithyDocumentSerde } -// Contains information about a AWS IoT Greengrass core device, which is an AWS IoT -// thing that runs the AWS IoT Greengrass Core software. +// Contains information about a Greengrass core device, which is an IoT thing that +// runs the IoT Greengrass Core software. type CoreDevice struct { - // The name of the core device. This is also the name of the AWS IoT thing. + // The name of the core device. This is also the name of the IoT thing. CoreDeviceThingName *string // The time at which the core device's status last updated, expressed in ISO 8601 @@ -281,11 +292,11 @@ type CoreDevice struct { // The status of the core device. Core devices can have the following statuses: // // * - // HEALTHY – The AWS IoT Greengrass Core software and all components run on the - // core device without issue. + // HEALTHY – The IoT Greengrass Core software and all components run on the core + // device without issue. // - // * UNHEALTHY – The AWS IoT Greengrass Core software - // or a component is in a failed state on the core device. + // * UNHEALTHY – The IoT Greengrass Core software or a + // component is in a failed state on the core device. Status CoreDeviceStatus noSmithyDocumentSerde @@ -300,10 +311,7 @@ type Deployment struct { // The ID of the deployment. DeploymentId *string - // The name of the deployment. You can create deployments without names. If you - // create a deployment without a name, the AWS IoT Greengrass V2 console shows the - // deployment name as :, where targetType and targetName are the type and name of - // the deployment target. + // The name of the deployment. DeploymentName *string // The status of the deployment. @@ -317,7 +325,7 @@ type Deployment struct { // The ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of - // the target AWS IoT thing or thing group. + // the target IoT thing or thing group. TargetArn *string noSmithyDocumentSerde @@ -344,7 +352,7 @@ type DeploymentComponentUpdatePolicy struct { // (https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-operation-defercomponentupdate) // IPC operation. For more information, see Create deployments // (https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html) - // in the AWS IoT Greengrass V2 Developer Guide. + // in the IoT Greengrass V2 Developer Guide. // // * SKIP_NOTIFY_COMPONENTS – The // deployment doesn't notify components or wait for them to be safe to @@ -371,7 +379,7 @@ type DeploymentComponentUpdatePolicy struct { // (https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-operation-sendconfigurationvalidityreport) // IPC operation. For more information, see Create deployments // (https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html) -// in the AWS IoT Greengrass V2 Developer Guide. +// in the IoT Greengrass V2 Developer Guide. type DeploymentConfigurationValidationPolicy struct { // The amount of time in seconds that a component can validate its configuration @@ -382,7 +390,7 @@ type DeploymentConfigurationValidationPolicy struct { noSmithyDocumentSerde } -// Contains information about an AWS IoT job configuration. +// Contains information about an IoT job configuration. type DeploymentIoTJobConfiguration struct { // The stop configuration for the job. This configuration defines when and how to @@ -425,7 +433,7 @@ type DeploymentPolicies struct { // operation consumes a list of these requests. type DisassociateClientDeviceFromCoreDeviceEntry struct { - // The name of the AWS IoT thing that represents the client device to disassociate. + // The name of the IoT thing that represents the client device to disassociate. // // This member is required. ThingName *string @@ -445,17 +453,17 @@ type DisassociateClientDeviceFromCoreDeviceErrorEntry struct { // A message that provides additional information about the error. Message *string - // The name of the AWS IoT thing whose disassociate request failed. + // The name of the IoT thing whose disassociate request failed. ThingName *string noSmithyDocumentSerde } -// Contains information about a deployment job that AWS IoT Greengrass sends to a -// AWS IoT Greengrass core device. +// Contains information about a deployment job that IoT Greengrass sends to a +// Greengrass core device. type EffectiveDeployment struct { - // The status of the deployment job on the AWS IoT Greengrass core device. + // The status of the deployment job on the Greengrass core device. // // This member is required. CoreDeviceExecutionStatus EffectiveDeploymentExecutionStatus @@ -470,10 +478,7 @@ type EffectiveDeployment struct { // This member is required. DeploymentId *string - // The name of the deployment. You can create deployments without names. If you - // create a deployment without a name, the AWS IoT Greengrass V2 console shows the - // deployment name as :, where targetType and targetName are the type and name of - // the deployment target. + // The name of the deployment. // // This member is required. DeploymentName *string @@ -486,7 +491,7 @@ type EffectiveDeployment struct { // The ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of - // the target AWS IoT thing or thing group. + // the target IoT thing or thing group. // // This member is required. TargetArn *string @@ -496,10 +501,10 @@ type EffectiveDeployment struct { // The ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of - // the AWS IoT job that applies the deployment to target devices. + // the IoT job that applies the deployment to target devices. IotJobArn *string - // The ID of the AWS IoT job that applies the deployment to target devices. + // The ID of the IoT job that applies the deployment to target devices. IotJobId *string // The reason code for the update, if the job was updated. @@ -508,7 +513,7 @@ type EffectiveDeployment struct { noSmithyDocumentSerde } -// Contains information about a component on a AWS IoT Greengrass core device. +// Contains information about a component on a Greengrass core device. type InstalledComponent struct { // The name of the component. @@ -647,8 +652,8 @@ type IoTJobTimeoutConfig struct { noSmithyDocumentSerde } -// Contains information about a container in which AWS Lambda functions run on AWS -// IoT Greengrass core devices. +// Contains information about a container in which Lambda functions run on +// Greengrass core devices. type LambdaContainerParams struct { // The list of system devices that the container can access. @@ -687,7 +692,7 @@ type LambdaDeviceMount struct { noSmithyDocumentSerde } -// Contains information about an event source for an AWS Lambda function. The event +// Contains information about an event source for an Lambda function. The event // source defines the topics on which this Lambda function subscribes to receive // messages that run the function. type LambdaEventSource struct { @@ -704,8 +709,8 @@ type LambdaEventSource struct { // support MQTT wildcards (+ and #) in the event source topic. // // * IOT_CORE – - // Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT - // wildcards (+ and #) in the event source topic. + // Subscribe to Amazon Web Services IoT Core MQTT messages. This event source type + // supports MQTT wildcards (+ and #) in the event source topic. // // This member is required. Type LambdaEventSourceType @@ -713,7 +718,7 @@ type LambdaEventSource struct { noSmithyDocumentSerde } -// Contains parameters for a Lambda function that runs on AWS IoT Greengrass. +// Contains parameters for a Lambda function that runs on IoT Greengrass. type LambdaExecutionParameters struct { // The map of environment variables that are available to the Lambda function when @@ -722,8 +727,8 @@ type LambdaExecutionParameters struct { // The list of event sources to which to subscribe to receive work messages. The // Lambda function runs when it receives a message from an event source. You can - // subscribe this function to local publish/subscribe messages and AWS IoT Core - // MQTT messages. + // subscribe this function to local publish/subscribe messages and Amazon Web + // Services IoT Core MQTT messages. EventSources []LambdaEventSource // The list of arguments to pass to the Lambda function when it runs. @@ -736,28 +741,28 @@ type LambdaExecutionParameters struct { LinuxProcessParams *LambdaLinuxProcessParams // The maximum amount of time in seconds that a non-pinned Lambda function can idle - // before the AWS IoT Greengrass Core software stops its process. + // before the IoT Greengrass Core software stops its process. MaxIdleTimeInSeconds int32 // The maximum number of instances that a non-pinned Lambda function can run at the // same time. MaxInstancesCount int32 - // The maximum size of the message queue for the Lambda function component. The AWS - // IoT Greengrass core stores messages in a FIFO (first-in-first-out) queue until - // it can run the Lambda function to consume each message. + // 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 // Whether or not the Lambda function is pinned, or long-lived. // // * A pinned Lambda - // function starts when AWS IoT Greengrass starts and keeps running in its own + // function starts when IoT Greengrass starts and keeps running in its own // container. // // * A non-pinned Lambda function starts only when it receives a work // item and exists after it idles for maxIdleTimeInSeconds. If the function has - // multiple work items, the AWS IoT Greengrass Core software creates multiple - // instances of the function. + // multiple work items, the IoT Greengrass Core software creates multiple instances + // of the function. // // Default: true Pinned bool @@ -773,8 +778,7 @@ type LambdaExecutionParameters struct { noSmithyDocumentSerde } -// Contains information about an AWS Lambda function to import to create a -// component. +// Contains information about an Lambda function to import to create a component. type LambdaFunctionRecipeSource struct { // The ARN @@ -788,8 +792,8 @@ type LambdaFunctionRecipeSource struct { // The component versions on which this Lambda function component depends. ComponentDependencies map[string]ComponentDependencyRequirement - // The system and runtime parameters for the Lambda function as it runs on the AWS - // IoT Greengrass core device. + // The system and runtime parameters for the Lambda function as it runs on the + // Greengrass core device. ComponentLambdaParameters *LambdaExecutionParameters // The name of the component. Defaults to the name of the Lambda function. @@ -806,14 +810,14 @@ type LambdaFunctionRecipeSource struct { noSmithyDocumentSerde } -// Contains parameters for a Linux process that contains an AWS Lambda function. +// Contains parameters for a Linux process that contains an Lambda function. type LambdaLinuxProcessParams struct { // The parameters for the container in which the Lambda function runs. ContainerParams *LambdaContainerParams // The isolation mode for the process that contains the Lambda function. The - // process can run in an isolated runtime environment inside the AWS IoT Greengrass + // process can run in an isolated runtime environment inside the IoT Greengrass // container, or as a regular process outside any container. Default: // GreengrassContainer IsolationMode LambdaIsolationMode @@ -822,8 +826,8 @@ type LambdaLinuxProcessParams struct { } // Contains information about a volume that Linux processes in a container can -// access. When you define a volume, the AWS IoT Greengrass Core software mounts -// the source files to the destination inside the container. +// access. When you define a volume, the IoT Greengrass Core software mounts the +// source files to the destination inside the container. type LambdaVolumeMount struct { // The path to the logical volume in the file system. @@ -836,8 +840,8 @@ type LambdaVolumeMount struct { // This member is required. SourcePath *string - // Whether or not to add the AWS IoT Greengrass user group as an owner of the - // volume. Default: false + // Whether or not to add the IoT Greengrass user group as an owner of the volume. + // Default: false AddGroupOwner bool // The permission to access the volume: read/only (ro) or read/write (rw). Default: @@ -848,7 +852,7 @@ type LambdaVolumeMount struct { } // Contains information about a component version that is compatible to run on a -// AWS IoT Greengrass core device. +// Greengrass core device. type ResolvedComponentVersion struct { // The ARN @@ -868,6 +872,29 @@ type ResolvedComponentVersion struct { noSmithyDocumentSerde } +// Contains information about system resource limits that the IoT Greengrass Core +// software applies to a component's processes. For more information, see Configure +// system resource limits for components +// (https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#configure-component-system-resource-limits). +type SystemResourceLimits struct { + + // The maximum amount of CPU time that a component's processes can use on the core + // device. A core device's total CPU time is equivalent to the device's number of + // CPU cores. For example, on a core device with 4 CPU cores, you can set this + // value to 2 to limit the component's processes to 50 percent usage of each CPU + // core. On a device with 1 CPU core, you can set this value to 0.25 to limit the + // component's processes to 25 percent usage of the CPU. If you set this value to a + // number greater than the number of CPU cores, the IoT Greengrass Core software + // doesn't limit the component's CPU usage. + Cpus float64 + + // The maximum amount of RAM, expressed in kilobytes, that a component's processes + // can use on the core device. + Memory int64 + + noSmithyDocumentSerde +} + // Contains information about a validation exception field. type ValidationExceptionField struct { diff --git a/service/iam/api_op_CreateOpenIDConnectProvider.go b/service/iam/api_op_CreateOpenIDConnectProvider.go index cc995332e7f..f842f988c29 100644 --- a/service/iam/api_op_CreateOpenIDConnectProvider.go +++ b/service/iam/api_op_CreateOpenIDConnectProvider.go @@ -36,9 +36,15 @@ import ( // // You get all of // this information from the OIDC IdP that you want to use to access Amazon Web -// Services. The trust for the OIDC provider is derived from the IAM provider that -// this operation creates. Therefore, it is best to limit access to the -// CreateOpenIDConnectProvider operation to highly privileged users. +// Services. Amazon Web Services secures communication with some OIDC identity +// providers (IdPs) through our library of trusted certificate authorities (CAs) +// instead of using a certificate thumbprint to verify your IdP server certificate. +// These OIDC IdPs include Google, and those that use an Amazon S3 bucket to host a +// JSON Web Key Set (JWKS) endpoint. In these cases, your legacy thumbprint remains +// in your configuration, but is no longer used for validation. The trust for the +// OIDC provider is derived from the IAM provider that this operation creates. +// Therefore, it is best to limit access to the CreateOpenIDConnectProvider +// operation to highly privileged users. func (c *Client) CreateOpenIDConnectProvider(ctx context.Context, params *CreateOpenIDConnectProviderInput, optFns ...func(*Options)) (*CreateOpenIDConnectProviderOutput, error) { if params == nil { params = &CreateOpenIDConnectProviderInput{} diff --git a/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go b/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go index 126afed68c1..d6b3bca7452 100644 --- a/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go +++ b/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go @@ -14,13 +14,19 @@ import ( // OpenID Connect (OIDC) provider resource object with a new list of thumbprints. // The list that you pass with this operation completely replaces the existing list // of thumbprints. (The lists are not merged.) Typically, you need to update a -// thumbprint only when the identity provider's certificate changes, which occurs +// thumbprint only when the identity provider certificate changes, which occurs // rarely. However, if the provider's certificate does change, any attempt to // assume an IAM role that specifies the OIDC provider as a principal fails until -// the certificate thumbprint is updated. Trust for the OIDC provider is derived -// from the provider's certificate and is validated by the thumbprint. Therefore, -// it is best to limit access to the UpdateOpenIDConnectProviderThumbprint -// operation to highly privileged users. +// the certificate thumbprint is updated. Amazon Web Services secures communication +// with some OIDC identity providers (IdPs) through our library of trusted +// certificate authorities (CAs) instead of using a certificate thumbprint to +// verify your IdP server certificate. These OIDC IdPs include Google, and those +// that use an Amazon S3 bucket to host a JSON Web Key Set (JWKS) endpoint. In +// these cases, your legacy thumbprint remains in your configuration, but is no +// longer used for validation. Trust for the OIDC provider is derived from the +// provider certificate and is validated by the thumbprint. Therefore, it is best +// to limit access to the UpdateOpenIDConnectProviderThumbprint operation to highly +// privileged users. func (c *Client) UpdateOpenIDConnectProviderThumbprint(ctx context.Context, params *UpdateOpenIDConnectProviderThumbprintInput, optFns ...func(*Options)) (*UpdateOpenIDConnectProviderThumbprintOutput, error) { if params == nil { params = &UpdateOpenIDConnectProviderThumbprintInput{} diff --git a/service/identitystore/api_op_DescribeGroup.go b/service/identitystore/api_op_DescribeGroup.go index 617b2194e6d..e2b199b06a8 100644 --- a/service/identitystore/api_op_DescribeGroup.go +++ b/service/identitystore/api_op_DescribeGroup.go @@ -35,7 +35,7 @@ type DescribeGroupInput struct { // The globally unique identifier for the identity store, such as d-1234567890. In // this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string which contains number and lower case letters. This value is generated at + // string that contains number and lower case letters. This value is generated at // the time that a new identity store is created. // // This member is required. @@ -46,12 +46,12 @@ type DescribeGroupInput struct { type DescribeGroupOutput struct { - // Contains the group’s display name value. The length limit is 1024 characters. + // Contains the group’s display name value. The length limit is 1,024 characters. // This value can consist of letters, accented characters, symbols, numbers, - // punctuation, tab, new line, carriage return, space and non breaking space in - // this attribute. The characters “<>;:%” are excluded. This value is specified at - // the time the group is created and stored as an attribute of the group object in - // the identity store. + // punctuation, tab, new line, carriage return, space, and nonbreaking space in + // this attribute. The characters <>;:% are excluded. This value is specified at + // the time that the group is created and stored as an attribute of the group + // object in the identity store. // // This member is required. DisplayName *string diff --git a/service/identitystore/api_op_DescribeUser.go b/service/identitystore/api_op_DescribeUser.go index 54a55e77259..9065fceb99f 100644 --- a/service/identitystore/api_op_DescribeUser.go +++ b/service/identitystore/api_op_DescribeUser.go @@ -30,7 +30,7 @@ type DescribeUserInput struct { // The globally unique identifier for the identity store, such as d-1234567890. In // this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string which contains number and lower case letters. This value is generated at + // string that contains number and lower case letters. This value is generated at // the time that a new identity store is created. // // This member is required. @@ -51,9 +51,9 @@ type DescribeUserOutput struct { // This member is required. UserId *string - // Contains the user’s username value. The length limit is 128 characters. This - // value can consist of letters, accented characters, symbols, numbers and - // punctuation. The characters “<>;:%” are excluded. This value is specified at the + // Contains the user’s user name value. The length limit is 128 characters. This + // value can consist of letters, accented characters, symbols, numbers, and + // punctuation. The characters <>;:% are excluded. This value is specified at the // time the user is created and stored as an attribute of the user object in the // identity store. // diff --git a/service/identitystore/api_op_ListGroups.go b/service/identitystore/api_op_ListGroups.go index b276be079b2..bf36d59d9ef 100644 --- a/service/identitystore/api_op_ListGroups.go +++ b/service/identitystore/api_op_ListGroups.go @@ -35,7 +35,7 @@ type ListGroupsInput struct { // The globally unique identifier for the identity store, such as d-1234567890. In // this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string which contains number and lower case letters. This value is generated at + // string that contains number and lower case letters. This value is generated at // the time that a new identity store is created. // // This member is required. @@ -44,15 +44,15 @@ type ListGroupsInput struct { // A list of Filter objects, which is used in the ListUsers and ListGroups request. Filters []types.Filter - // The maximum number of results to be returned per request, which is used in the - // ListUsers and ListGroups request to specify how many results to return in one - // page. The length limit is 50 characters. + // The maximum number of results to be returned per request. This parameter is used + // in the ListUsers and ListGroups request to specify how many results to return in + // one page. The length limit is 50 characters. MaxResults *int32 - // The pagination token used for the ListUsers and ListGroups APIs. This value is - // generated by the identity store service and is returned in the API response if - // the total results are more than the size of one page, and when this token is - // used in the API request to search for the next page. + // The pagination token used for the ListUsers and ListGroups API operations. This + // value is generated by the identity store service. It is returned in the API + // response if the total results are more than the size of one page. This token is + // also returned when it is used in the API request to search for the next page. NextToken *string noSmithyDocumentSerde @@ -65,10 +65,10 @@ type ListGroupsOutput struct { // This member is required. Groups []types.Group - // The pagination token used for the ListUsers and ListGroups APIs. This value is - // generated by the identity store service and is returned in the API response if - // the total results are more than the size of one page, and when this token is - // used in the API request to search for the next page. + // The pagination token used for the ListUsers and ListGroups API operations. This + // value is generated by the identity store service. It is returned in the API + // response if the total results are more than the size of one page. This token is + // also returned when it1 is used in the API request to search for the next page. NextToken *string // Metadata pertaining to the operation's result. @@ -149,9 +149,9 @@ var _ ListGroupsAPIClient = (*Client)(nil) // ListGroupsPaginatorOptions is the paginator options for ListGroups type ListGroupsPaginatorOptions struct { - // The maximum number of results to be returned per request, which is used in the - // ListUsers and ListGroups request to specify how many results to return in one - // page. The length limit is 50 characters. + // The maximum number of results to be returned per request. This parameter is used + // in the ListUsers and ListGroups request to specify how many results to return in + // one page. The length limit is 50 characters. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/identitystore/api_op_ListUsers.go b/service/identitystore/api_op_ListUsers.go index 34acab1a5b2..5679ddb86cf 100644 --- a/service/identitystore/api_op_ListUsers.go +++ b/service/identitystore/api_op_ListUsers.go @@ -35,7 +35,7 @@ type ListUsersInput struct { // The globally unique identifier for the identity store, such as d-1234567890. In // this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string which contains number and lower case letters. This value is generated at + // string that contains number and lower case letters. This value is generated at // the time that a new identity store is created. // // This member is required. @@ -44,15 +44,15 @@ type ListUsersInput struct { // A list of Filter objects, which is used in the ListUsers and ListGroups request. Filters []types.Filter - // The maximum number of results to be returned per request, which is used in the - // ListUsers and ListGroups request to specify how many results to return in one - // page. The length limit is 50 characters. + // The maximum number of results to be returned per request. This parameter is used + // in the ListUsers and ListGroups request to specify how many results to return in + // one page. The length limit is 50 characters. MaxResults *int32 - // The pagination token used for the ListUsers and ListGroups APIs. This value is - // generated by the identity store service and is returned in the API response if - // the total results are more than the size of one page, and when this token is - // used in the API request to search for the next page. + // The pagination token used for the ListUsers and ListGroups API operations. This + // value is generated by the identity store service. It is returned in the API + // response if the total results are more than the size of one page. This token is + // also returned when it is used in the API request to search for the next page. NextToken *string noSmithyDocumentSerde @@ -65,10 +65,10 @@ type ListUsersOutput struct { // This member is required. Users []types.User - // The pagination token used for the ListUsers and ListGroups APIs. This value is - // generated by the identity store service and is returned in the API response if - // the total results are more than the size of one page, and when this token is - // used in the API request to search for the next page. + // The pagination token used for the ListUsers and ListGroups API operations. This + // value is generated by the identity store service. It is returned in the API + // response if the total results are more than the size of one page. This token is + // also returned when it is used in the API request to search for the next page. NextToken *string // Metadata pertaining to the operation's result. @@ -149,9 +149,9 @@ var _ ListUsersAPIClient = (*Client)(nil) // ListUsersPaginatorOptions is the paginator options for ListUsers type ListUsersPaginatorOptions struct { - // The maximum number of results to be returned per request, which is used in the - // ListUsers and ListGroups request to specify how many results to return in one - // page. The length limit is 50 characters. + // The maximum number of results to be returned per request. This parameter is used + // in the ListUsers and ListGroups request to specify how many results to return in + // one page. The length limit is 50 characters. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/identitystore/doc.go b/service/identitystore/doc.go index 264f8d6851b..f2c218eeda7 100644 --- a/service/identitystore/doc.go +++ b/service/identitystore/doc.go @@ -3,4 +3,8 @@ // Package identitystore provides the API client, operations, and parameter types // for AWS SSO Identity Store. // +// The AWS Single Sign-On (SSO) Identity Store service provides a single place to +// retrieve all of your identities (users and groups). For more information about +// AWS, see the AWS Single Sign-On User Guide +// (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html). package identitystore diff --git a/service/identitystore/types/types.go b/service/identitystore/types/types.go index f9bcfbb0cf0..ea1f3e0cff1 100644 --- a/service/identitystore/types/types.go +++ b/service/identitystore/types/types.go @@ -10,9 +10,10 @@ import ( // attribute name and attribute value to search users or groups. type Filter struct { - // The attribute path used to specify which attribute name to search. Length limit - // is 255 characters. For example, UserName is a valid attribute path for the - // ListUsers API, and DisplayName is a valid attribute path for the ListGroups API. + // The attribute path that is used to specify which attribute name to search. + // Length limit is 255 characters. For example, UserName is a valid attribute path + // for the ListUsers API, and DisplayName is a valid attribute path for the + // ListGroups API. // // This member is required. AttributePath *string @@ -29,10 +30,10 @@ type Filter struct { // A group object, which contains a specified group’s metadata and attributes. type Group struct { - // Contains the group’s display name value. The length limit is 1024 characters. + // Contains the group’s display name value. The length limit is 1,024 characters. // This value can consist of letters, accented characters, symbols, numbers, - // punctuation, tab, new line, carriage return, space and non breaking space in - // this attribute. The characters “<>;:%” are excluded. This value is specified at + // punctuation, tab, new line, carriage return, space, and nonbreaking space in + // this attribute. The characters <>;:% are excluded. This value is specified at // the time the group is created and stored as an attribute of the group object in // the identity store. // @@ -55,9 +56,9 @@ type User struct { // This member is required. UserId *string - // Contains the user’s username value. The length limit is 128 characters. This - // value can consist of letters, accented characters, symbols, numbers and - // punctuation. The characters “<>;:%” are excluded. This value is specified at the + // Contains the user’s user name value. The length limit is 128 characters. This + // value can consist of letters, accented characters, symbols, numbers, and + // punctuation. The characters <>;:% are excluded. This value is specified at the // time the user is created and stored as an attribute of the user object in the // identity store. // diff --git a/service/imagebuilder/api_op_CreateComponent.go b/service/imagebuilder/api_op_CreateComponent.go index 70a84994cab..8cd31a503f8 100644 --- a/service/imagebuilder/api_op_CreateComponent.go +++ b/service/imagebuilder/api_op_CreateComponent.go @@ -47,8 +47,14 @@ type CreateComponentInput struct { Platform types.Platform // The semantic version of the component. This version follows the semantic version - // syntax. For example, major.minor.patch. This could be versioned like software - // (2.0.1) or like a date (2019.12.01). + // syntax. The semantic version has four nodes: ../. You can assign values for the + // first three, and can filter on all of them. Assignment: For the first three + // nodes you can assign any positive integer value, including zero, with an upper + // limit of 2^30-1, or 1073741823 for each node. Image Builder automatically + // assigns the build number, and that is not open for updates. Patterns: You can + // use any numeric pattern that adheres to the assignment requirements for the + // nodes that you can assign. For example, you might choose a software version + // pattern, such as 1.0.0, or a date, such as 2021.01.01. // // This member is required. SemanticVersion *string diff --git a/service/imagebuilder/api_op_CreateContainerRecipe.go b/service/imagebuilder/api_op_CreateContainerRecipe.go index 1aa84227478..14ba6576369 100644 --- a/service/imagebuilder/api_op_CreateContainerRecipe.go +++ b/service/imagebuilder/api_op_CreateContainerRecipe.go @@ -56,7 +56,15 @@ type CreateContainerRecipeInput struct { // This member is required. ParentImage *string - // The semantic version of the container recipe (..). + // The semantic version of the container recipe. This version follows the semantic + // version syntax. The semantic version has four nodes: ../. You can assign values + // for the first three, and can filter on all of them. Assignment: For the first + // three nodes you can assign any positive integer value, including zero, with an + // upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically + // assigns the build number, and that is not open for updates. Patterns: You can + // use any numeric pattern that adheres to the assignment requirements for the + // nodes that you can assign. For example, you might choose a software version + // pattern, such as 1.0.0, or a date, such as 2021.01.01. // // This member is required. SemanticVersion *string diff --git a/service/imagebuilder/api_op_CreateImageRecipe.go b/service/imagebuilder/api_op_CreateImageRecipe.go index c56ec16e439..15e3ae79680 100644 --- a/service/imagebuilder/api_op_CreateImageRecipe.go +++ b/service/imagebuilder/api_op_CreateImageRecipe.go @@ -57,7 +57,15 @@ type CreateImageRecipeInput struct { // This member is required. ParentImage *string - // The semantic version of the image recipe. + // The semantic version of the image recipe. This version follows the semantic + // version syntax. The semantic version has four nodes: ../. You can assign values + // for the first three, and can filter on all of them. Assignment: For the first + // three nodes you can assign any positive integer value, including zero, with an + // upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically + // assigns the build number, and that is not open for updates. Patterns: You can + // use any numeric pattern that adheres to the assignment requirements for the + // nodes that you can assign. For example, you might choose a software version + // pattern, such as 1.0.0, or a date, such as 2021.01.01. // // This member is required. SemanticVersion *string diff --git a/service/imagebuilder/api_op_ImportComponent.go b/service/imagebuilder/api_op_ImportComponent.go index 07c06c15b45..e768c2a4759 100644 --- a/service/imagebuilder/api_op_ImportComponent.go +++ b/service/imagebuilder/api_op_ImportComponent.go @@ -51,14 +51,20 @@ type ImportComponentInput struct { Platform types.Platform // The semantic version of the component. This version follows the semantic version - // syntax. For example, major.minor.patch. This could be versioned like software - // (2.0.1) or like a date (2019.12.01). + // syntax. The semantic version has four nodes: ../. You can assign values for the + // first three, and can filter on all of them. Filtering: When you retrieve or + // reference a resource with a semantic version, you can use wildcards (x) to + // filter your results. When you use a wildcard in any node, all nodes to the right + // of the first wildcard must also be wildcards. For example, specifying "1.2.x", + // or "1.x.x" works to filter list results, but neither "1.x.2", nor "x.2.x" will + // work. You do not have to specify the build - Image Builder automatically uses a + // wildcard for that, if applicable. // // This member is required. SemanticVersion *string // The type of the component denotes whether the component is used to build the - // image or only to test it. + // image, or only to test it. // // This member is required. Type types.ComponentType diff --git a/service/imagebuilder/api_op_ListComponentBuildVersions.go b/service/imagebuilder/api_op_ListComponentBuildVersions.go index af5309719c6..4d6f03e5c8a 100644 --- a/service/imagebuilder/api_op_ListComponentBuildVersions.go +++ b/service/imagebuilder/api_op_ListComponentBuildVersions.go @@ -13,6 +13,14 @@ import ( ) // Returns the list of component build versions for the specified semantic version. +// The semantic version has four nodes: ../. You can assign values for the first +// three, and can filter on all of them. Filtering: When you retrieve or reference +// a resource with a semantic version, you can use wildcards (x) to filter your +// results. When you use a wildcard in any node, all nodes to the right of the +// first wildcard must also be wildcards. For example, specifying "1.2.x", or +// "1.x.x" works to filter list results, but neither "1.x.2", nor "x.2.x" will +// work. You do not have to specify the build - Image Builder automatically uses a +// wildcard for that, if applicable. func (c *Client) ListComponentBuildVersions(ctx context.Context, params *ListComponentBuildVersionsInput, optFns ...func(*Options)) (*ListComponentBuildVersionsOutput, error) { if params == nil { params = &ListComponentBuildVersionsInput{} diff --git a/service/imagebuilder/api_op_ListComponents.go b/service/imagebuilder/api_op_ListComponents.go index ea4a6acbc68..727c322af62 100644 --- a/service/imagebuilder/api_op_ListComponents.go +++ b/service/imagebuilder/api_op_ListComponents.go @@ -13,6 +13,14 @@ import ( ) // Returns the list of component build versions for the specified semantic version. +// The semantic version has four nodes: ../. You can assign values for the first +// three, and can filter on all of them. Filtering: When you retrieve or reference +// a resource with a semantic version, you can use wildcards (x) to filter your +// results. When you use a wildcard in any node, all nodes to the right of the +// first wildcard must also be wildcards. For example, specifying "1.2.x", or +// "1.x.x" works to filter list results, but neither "1.x.2", nor "x.2.x" will +// work. You do not have to specify the build - Image Builder automatically uses a +// wildcard for that, if applicable. func (c *Client) ListComponents(ctx context.Context, params *ListComponentsInput, optFns ...func(*Options)) (*ListComponentsOutput, error) { if params == nil { params = &ListComponentsInput{} @@ -30,7 +38,7 @@ func (c *Client) ListComponents(ctx context.Context, params *ListComponentsInput type ListComponentsInput struct { - // Returns the list of component build versions for the specified semantic version. + // Returns the list of component build versions for the specified name. ByName bool // The filters. @@ -54,7 +62,8 @@ type ListComponentsInput struct { type ListComponentsOutput struct { - // The list of component semantic versions. + // The list of component semantic versions. The semantic version has four nodes: + // ../. You can assign values for the first three, and can filter on all of them. ComponentVersionList []types.ComponentVersion // The next token used for paginated responses. When this is not empty, there are diff --git a/service/imagebuilder/api_op_ListImages.go b/service/imagebuilder/api_op_ListImages.go index f4f79fea732..38a4a60d0b3 100644 --- a/service/imagebuilder/api_op_ListImages.go +++ b/service/imagebuilder/api_op_ListImages.go @@ -57,7 +57,14 @@ type ListImagesInput struct { type ListImagesOutput struct { - // The list of image semantic versions. + // The list of image semantic versions. The semantic version has four nodes: ../. + // You can assign values for the first three, and can filter on all of them. + // Filtering: When you retrieve or reference a resource with a semantic version, + // you can use wildcards (x) to filter your results. When you use a wildcard in any + // node, all nodes to the right of the first wildcard must also be wildcards. For + // example, specifying "1.2.x", or "1.x.x" works to filter list results, but + // neither "1.x.2", nor "x.2.x" will work. You do not have to specify the build - + // Image Builder automatically uses a wildcard for that, if applicable. ImageVersionList []types.ImageVersion // The next token used for paginated responses. When this is not empty, there are diff --git a/service/imagebuilder/types/types.go b/service/imagebuilder/types/types.go index 5f11cb6a29c..eb0acc1b62c 100644 --- a/service/imagebuilder/types/types.go +++ b/service/imagebuilder/types/types.go @@ -229,10 +229,22 @@ type ComponentSummary struct { noSmithyDocumentSerde } -// A high-level overview of a component semantic version. +// The defining characteristics of a specific version of an TOE component. type ComponentVersion struct { - // The Amazon Resource Name (ARN) of the component. + // The Amazon Resource Name (ARN) of the component. Semantic versioning is included + // in each object's Amazon Resource Name (ARN), at the level that applies to that + // object as follows: + // + // * Versionless ARNs and Name ARNs do not include specific + // values in any of the nodes. The nodes are either left off entirely, or they are + // specified as wildcards, for example: x.x.x. + // + // * Version ARNs have only the first + // three nodes: .. + // + // * Build version ARNs have all four nodes, and point to a + // specific build for a specific version of an object. Arn *string // The date that the component was created. @@ -259,7 +271,20 @@ type ComponentVersion struct { // image or only to test it. Type ComponentType - // The semantic version of the component. + // The semantic version of the component. The semantic version has four nodes: ../. + // You can assign values for the first three, and can filter on all of them. + // Assignment: For the first three nodes you can assign any positive integer value, + // including zero, with an upper limit of 2^30-1, or 1073741823 for each node. + // Image Builder automatically assigns the build number, and that is not open for + // updates. Patterns: You can use any numeric pattern that adheres to the + // assignment requirements for the nodes that you can assign. For example, you + // might choose a software version pattern, such as 1.0.0, or a date, such as + // 2021.01.01. Filtering: When you retrieve or reference a resource with a semantic + // version, you can use wildcards (x) to filter your results. When you use a + // wildcard in any node, all nodes to the right of the first wildcard must also be + // wildcards. For example, specifying "1.2.x", or "1.x.x" works to filter list + // results, but neither "1.x.2", nor "x.2.x" will work. You do not have to specify + // the build - Image Builder automatically uses a wildcard for that, if applicable. Version *string noSmithyDocumentSerde @@ -299,7 +324,19 @@ type ContainerDistributionConfiguration struct { // A container recipe. type ContainerRecipe struct { - // The Amazon Resource Name (ARN) of the container recipe. + // The Amazon Resource Name (ARN) of the container recipe. Semantic versioning is + // included in each object's Amazon Resource Name (ARN), at the level that applies + // to that object as follows: + // + // * Versionless ARNs and Name ARNs do not include + // specific values in any of the nodes. The nodes are either left off entirely, or + // they are specified as wildcards, for example: x.x.x. + // + // * Version ARNs have only + // the first three nodes: .. + // + // * Build version ARNs have all four nodes, and point + // to a specific build for a specific version of an object. Arn *string // Components for build and test that are included in the container recipe. @@ -349,7 +386,20 @@ type ContainerRecipe struct { // The destination repository for the container image. TargetRepository *TargetContainerRepository - // The semantic version of the container recipe (..). + // The semantic version of the container recipe. The semantic version has four + // nodes: ../. You can assign values for the first three, and can filter on all of + // them. Assignment: For the first three nodes you can assign any positive integer + // value, including zero, with an upper limit of 2^30-1, or 1073741823 for each + // node. Image Builder automatically assigns the build number, and that is not open + // for updates. Patterns: You can use any numeric pattern that adheres to the + // assignment requirements for the nodes that you can assign. For example, you + // might choose a software version pattern, such as 1.0.0, or a date, such as + // 2021.01.01. Filtering: When you retrieve or reference a resource with a semantic + // version, you can use wildcards (x) to filter your results. When you use a + // wildcard in any node, all nodes to the right of the first wildcard must also be + // wildcards. For example, specifying "1.2.x", or "1.x.x" works to filter list + // results, but neither "1.x.2", nor "x.2.x" will work. You do not have to specify + // the build - Image Builder automatically uses a wildcard for that, if applicable. Version *string // The working directory for use during build and test workflows. @@ -515,13 +565,27 @@ type Filter struct { noSmithyDocumentSerde } -// An image build version. +// An Image Builder image. You must specify exactly one recipe for the image – +// either a container recipe (containerRecipe), which creates a container image, or +// an image recipe (imageRecipe), which creates an AMI. type Image struct { - // The Amazon Resource Name (ARN) of the image. + // The Amazon Resource Name (ARN) of the image. Semantic versioning is included in + // each object's Amazon Resource Name (ARN), at the level that applies to that + // object as follows: + // + // * Versionless ARNs and Name ARNs do not include specific + // values in any of the nodes. The nodes are either left off entirely, or they are + // specified as wildcards, for example: x.x.x. + // + // * Version ARNs have only the first + // three nodes: .. + // + // * Build version ARNs have all four nodes, and point to a + // specific build for a specific version of an object. Arn *string - // The container recipe used to create the container image type. + // The recipe that is used to create an Image Builder container image. ContainerRecipe *ContainerRecipe // The date on which this image was created. @@ -572,7 +636,20 @@ type Image struct { // Specifies whether this is an AMI or container image. Type ImageType - // The semantic version of the image. + // The semantic version of the image. The semantic version has four nodes: ../. You + // can assign values for the first three, and can filter on all of them. + // Assignment: For the first three nodes you can assign any positive integer value, + // including zero, with an upper limit of 2^30-1, or 1073741823 for each node. + // Image Builder automatically assigns the build number, and that is not open for + // updates. Patterns: You can use any numeric pattern that adheres to the + // assignment requirements for the nodes that you can assign. For example, you + // might choose a software version pattern, such as 1.0.0, or a date, such as + // 2021.01.01. Filtering: When you retrieve or reference a resource with a semantic + // version, you can use wildcards (x) to filter your results. When you use a + // wildcard in any node, all nodes to the right of the first wildcard must also be + // wildcards. For example, specifying "1.2.x", or "1.x.x" works to filter list + // results, but neither "1.x.2", nor "x.2.x" will work. You do not have to specify + // the build - Image Builder automatically uses a wildcard for that, if applicable. Version *string noSmithyDocumentSerde @@ -796,32 +873,58 @@ type ImageTestsConfiguration struct { noSmithyDocumentSerde } -// An image semantic version. +// The defining characteristics of a specific version of an Image Builder image. type ImageVersion struct { - // The Amazon Resource Name (ARN) of the image semantic version. + // The Amazon Resource Name (ARN) of a specific version of an Image Builder image. + // Semantic versioning is included in each object's Amazon Resource Name (ARN), at + // the level that applies to that object as follows: + // + // * Versionless ARNs and Name + // ARNs do not include specific values in any of the nodes. The nodes are either + // left off entirely, or they are specified as wildcards, for example: x.x.x. + // + // * + // Version ARNs have only the first three nodes: .. + // + // * Build version ARNs have all + // four nodes, and point to a specific build for a specific version of an object. Arn *string - // The date at which this image semantic version was created. + // The date on which this specific version of the Image Builder image was created. DateCreated *string - // The name of the image semantic version. + // The name of this specific version of an Image Builder image. Name *string - // The operating system version of the instance. For example, Amazon Linux 2, - // Ubuntu 18, or Microsoft Windows Server 2019. + // The operating system version of the Amazon EC2 build instance. For example, + // Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019. OsVersion *string - // The owner of the image semantic version. + // The owner of the image version. Owner *string - // The platform of the image semantic version. + // The platform of the image version, for example "Windows" or "Linux". Platform Platform - // Specifies whether this is an AMI or container image. + // Specifies whether this image is an AMI or a container image. Type ImageType - // The semantic version of the image semantic version. + // Details for a specific version of an Image Builder image. This version follows + // the semantic version syntax. The semantic version has four nodes: ../. You can + // assign values for the first three, and can filter on all of them. Assignment: + // For the first three nodes you can assign any positive integer value, including + // zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder + // automatically assigns the build number, and that is not open for updates. + // Patterns: You can use any numeric pattern that adheres to the assignment + // requirements for the nodes that you can assign. For example, you might choose a + // software version pattern, such as 1.0.0, or a date, such as 2021.01.01. + // Filtering: When you retrieve or reference a resource with a semantic version, + // you can use wildcards (x) to filter your results. When you use a wildcard in any + // node, all nodes to the right of the first wildcard must also be wildcards. For + // example, specifying "1.2.x", or "1.x.x" works to filter list results, but + // neither "1.x.2", nor "x.2.x" will work. You do not have to specify the build - + // Image Builder automatically uses a wildcard for that, if applicable. Version *string noSmithyDocumentSerde @@ -1052,10 +1155,10 @@ type Schedule struct { // Contains settings for the SSM agent on your build instance. type SystemsManagerAgent struct { - // This property defaults to true. If Image Builder installs the SSM agent on a - // build instance, it removes the agent before creating a snapshot for the AMI. To - // ensure that the AMI you create includes the SSM agent, set this property to - // false. + // Controls whether the SSM agent is removed from your final build image, prior to + // creating the new AMI. If this is set to true, then the agent is removed from the + // final image. If it's set to false, then the agent is left in, so that it is + // included in the new AMI. The default value is false. UninstallAfterBuild *bool noSmithyDocumentSerde diff --git a/service/iot/api_op_AttachPolicy.go b/service/iot/api_op_AttachPolicy.go index d27d5614b4e..7924cc1a935 100644 --- a/service/iot/api_op_AttachPolicy.go +++ b/service/iot/api_op_AttachPolicy.go @@ -10,7 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Attaches a policy to the specified target. +// Attaches the specified policy to the specified principal (certificate or other +// credential). func (c *Client) AttachPolicy(ctx context.Context, params *AttachPolicyInput, optFns ...func(*Options)) (*AttachPolicyOutput, error) { if params == nil { params = &AttachPolicyInput{} diff --git a/service/iotanalytics/api_op_BatchPutMessage.go b/service/iotanalytics/api_op_BatchPutMessage.go index 6010b89a883..b215ea545ff 100644 --- a/service/iotanalytics/api_op_BatchPutMessage.go +++ b/service/iotanalytics/api_op_BatchPutMessage.go @@ -36,7 +36,7 @@ type BatchPutMessageInput struct { // The list of messages to be sent. Each message has the format: { "messageId": // "string", "payload": "string"}. The field names of message payloads (data) that - // you send to AWS IoT Analytics: + // you send to IoT Analytics: // // * Must contain only alphanumeric characters and // undescores (_). No other special characters are allowed. diff --git a/service/iotanalytics/api_op_CreateChannel.go b/service/iotanalytics/api_op_CreateChannel.go index 0b0508b3ba8..d05cc77196f 100644 --- a/service/iotanalytics/api_op_CreateChannel.go +++ b/service/iotanalytics/api_op_CreateChannel.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a channel. A channel collects data from an MQTT topic and archives the -// raw, unprocessed messages before publishing the data to a pipeline. +// Used to create a channel. A channel collects data from an MQTT topic and +// archives the raw, unprocessed messages before publishing the data to a pipeline. func (c *Client) CreateChannel(ctx context.Context, params *CreateChannelInput, optFns ...func(*Options)) (*CreateChannelOutput, error) { if params == nil { params = &CreateChannelInput{} @@ -37,7 +37,7 @@ type CreateChannelInput struct { // Where channel data is stored. You can choose one of serviceManagedS3 or // customerManagedS3 storage. If not specified, the default is serviceManagedS3. - // You cannot change this storage option after the channel is created. + // You can't change this storage option after the channel is created. ChannelStorage *types.ChannelStorage // How long, in days, message data is kept for the channel. When customerManagedS3 diff --git a/service/iotanalytics/api_op_CreateDataset.go b/service/iotanalytics/api_op_CreateDataset.go index 2c9bc146d35..40d21481b9e 100644 --- a/service/iotanalytics/api_op_CreateDataset.go +++ b/service/iotanalytics/api_op_CreateDataset.go @@ -11,11 +11,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a dataset. A dataset stores data retrieved from a data store by applying -// a queryAction (a SQL query) or a containerAction (executing a containerized -// application). This operation creates the skeleton of a dataset. The dataset can -// be populated manually by calling CreateDatasetContent or automatically according -// to a trigger you specify. +// Used to create a dataset. A dataset stores data retrieved from a data store by +// applying a queryAction (a SQL query) or a containerAction (executing a +// containerized application). This operation creates the skeleton of a dataset. +// The dataset can be populated manually by calling CreateDatasetContent or +// automatically according to a trigger you specify. func (c *Client) CreateDataset(ctx context.Context, params *CreateDatasetInput, optFns ...func(*Options)) (*CreateDatasetOutput, error) { if params == nil { params = &CreateDatasetInput{} @@ -33,12 +33,12 @@ func (c *Client) CreateDataset(ctx context.Context, params *CreateDatasetInput, type CreateDatasetInput struct { - // A list of actions that create the data set contents. + // A list of actions that create the dataset contents. // // This member is required. Actions []types.DatasetAction - // The name of the data set. + // The name of the dataset. // // This member is required. DatasetName *string @@ -47,8 +47,8 @@ type CreateDatasetInput struct { // here. ContentDeliveryRules []types.DatasetContentDeliveryRule - // A list of data rules that send notifications to Amazon CloudWatch, when data - // arrives late. To specify lateDataRules, the dataset must use a DeltaTimer + // A list of data rules that send notifications to CloudWatch, when data arrives + // late. To specify lateDataRules, the dataset must use a DeltaTimer // (https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeltaTime.html) // filter. LateDataRules []types.LateDataRule @@ -57,26 +57,26 @@ type CreateDatasetInput struct { // dataset. If not specified or set to null, versions of dataset contents are // retained for at most 90 days. The number of versions of dataset contents // retained is determined by the versioningConfiguration parameter. For more - // information, see Keeping Multiple Versions of AWS IoT Analytics Data Sets + // information, see Keeping Multiple Versions of IoT Analytics datasets // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) - // in the AWS IoT Analytics User Guide. + // in the IoT Analytics User Guide. RetentionPeriod *types.RetentionPeriod - // Metadata which can be used to manage the data set. + // Metadata which can be used to manage the dataset. Tags []types.Tag - // A list of triggers. A trigger causes data set contents to be populated at a - // specified time interval or when another data set's contents are created. The - // list of triggers can be empty or contain up to five DataSetTrigger objects. + // A list of triggers. A trigger causes dataset contents to be populated at a + // specified time interval or when another dataset's contents are created. The list + // of triggers can be empty or contain up to five DataSetTrigger objects. Triggers []types.DatasetTrigger // Optional. How many versions of dataset contents are kept. If not specified or // set to null, only the latest version plus the latest succeeded version (if they // are different) are kept for the time period specified by the retentionPeriod - // parameter. For more information, see Keeping Multiple Versions of AWS IoT - // Analytics Data Sets + // parameter. For more information, see Keeping Multiple Versions of IoT Analytics + // datasets // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) - // in the AWS IoT Analytics User Guide. + // in the IoT Analytics User Guide. VersioningConfiguration *types.VersioningConfiguration noSmithyDocumentSerde diff --git a/service/iotanalytics/api_op_CreateDatasetContent.go b/service/iotanalytics/api_op_CreateDatasetContent.go index dcd56108041..f5903187761 100644 --- a/service/iotanalytics/api_op_CreateDatasetContent.go +++ b/service/iotanalytics/api_op_CreateDatasetContent.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates the content of a data set by applying a queryAction (a SQL query) or a +// Creates the content of a dataset by applying a queryAction (a SQL query) or a // containerAction (executing a containerized application). func (c *Client) CreateDatasetContent(ctx context.Context, params *CreateDatasetContentInput, optFns ...func(*Options)) (*CreateDatasetContentOutput, error) { if params == nil { diff --git a/service/iotanalytics/api_op_CreateDatastore.go b/service/iotanalytics/api_op_CreateDatastore.go index a57f68866d9..7e1a36568f5 100644 --- a/service/iotanalytics/api_op_CreateDatastore.go +++ b/service/iotanalytics/api_op_CreateDatastore.go @@ -11,8 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a data store, which is a repository for messages. Only data stores that -// are used to save pipeline data can be configured with ParquetConfiguration. +// Creates a data store, which is a repository for messages. func (c *Client) CreateDatastore(ctx context.Context, params *CreateDatastoreInput, optFns ...func(*Options)) (*CreateDatastoreOutput, error) { if params == nil { params = &CreateDatastoreInput{} @@ -35,15 +34,16 @@ type CreateDatastoreInput struct { // This member is required. DatastoreName *string - // Contains information about the partitions in a data store. + // Contains information about the partition dimensions in a data store. DatastorePartitions *types.DatastorePartitions - // Where data store data is stored. You can choose one of serviceManagedS3 or - // customerManagedS3 storage. If not specified, the default is serviceManagedS3. - // You cannot change this storage option after the data store is created. + // Where data in a data store is stored.. You can choose serviceManagedS3 storage, + // customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default + // is serviceManagedS3. You can't change the choice of Amazon S3 storage after your + // data store is created. DatastoreStorage types.DatastoreStorage - // Contains the configuration information of file formats. AWS IoT Analytics data + // Contains the configuration information of file formats. IoT Analytics data // stores support JSON and Parquet (https://parquet.apache.org/). The default file // format is JSON. You can specify only one format. You can't change the file // format after you create the data store. diff --git a/service/iotanalytics/api_op_CreatePipeline.go b/service/iotanalytics/api_op_CreatePipeline.go index 0c10767798f..2f7d5b465f8 100644 --- a/service/iotanalytics/api_op_CreatePipeline.go +++ b/service/iotanalytics/api_op_CreatePipeline.go @@ -34,7 +34,7 @@ type CreatePipelineInput struct { // A list of PipelineActivity objects. Activities perform transformations on your // messages, such as removing, renaming or adding message attributes; filtering - // messages based on attribute values; invoking your Lambda functions on messages + // messages based on attribute values; invoking your Lambda unctions on messages // for advanced processing; or performing mathematical transformations to normalize // device data. The list can be 2-25 PipelineActivity objects and must contain both // a channel and a datastore activity. Each entry in the list must contain only one diff --git a/service/iotanalytics/api_op_DeleteDataset.go b/service/iotanalytics/api_op_DeleteDataset.go index cfea1b1f821..06ca1665418 100644 --- a/service/iotanalytics/api_op_DeleteDataset.go +++ b/service/iotanalytics/api_op_DeleteDataset.go @@ -29,7 +29,7 @@ func (c *Client) DeleteDataset(ctx context.Context, params *DeleteDatasetInput, type DeleteDatasetInput struct { - // The name of the data set to delete. + // The name of the dataset to delete. // // This member is required. DatasetName *string diff --git a/service/iotanalytics/api_op_DescribeChannel.go b/service/iotanalytics/api_op_DescribeChannel.go index d77508bdedc..98ed58b1be0 100644 --- a/service/iotanalytics/api_op_DescribeChannel.go +++ b/service/iotanalytics/api_op_DescribeChannel.go @@ -35,7 +35,7 @@ type DescribeChannelInput struct { ChannelName *string // If true, additional statistical information about the channel is included in the - // response. This feature cannot be used with a channel whose S3 storage is + // response. This feature can't be used with a channel whose S3 storage is // customer-managed. IncludeStatistics bool diff --git a/service/iotanalytics/api_op_DescribeDataset.go b/service/iotanalytics/api_op_DescribeDataset.go index a5f52900322..7be6c497687 100644 --- a/service/iotanalytics/api_op_DescribeDataset.go +++ b/service/iotanalytics/api_op_DescribeDataset.go @@ -29,7 +29,7 @@ func (c *Client) DescribeDataset(ctx context.Context, params *DescribeDatasetInp type DescribeDatasetInput struct { - // The name of the data set whose information is retrieved. + // The name of the dataset whose information is retrieved. // // This member is required. DatasetName *string @@ -39,7 +39,7 @@ type DescribeDatasetInput struct { type DescribeDatasetOutput struct { - // An object that contains information about the data set. + // An object that contains information about the dataset. Dataset *types.Dataset // Metadata pertaining to the operation's result. diff --git a/service/iotanalytics/api_op_DescribeDatastore.go b/service/iotanalytics/api_op_DescribeDatastore.go index 382645d8534..70cda3716bc 100644 --- a/service/iotanalytics/api_op_DescribeDatastore.go +++ b/service/iotanalytics/api_op_DescribeDatastore.go @@ -35,7 +35,7 @@ type DescribeDatastoreInput struct { DatastoreName *string // If true, additional statistical information about the data store is included in - // the response. This feature cannot be used with a data store whose S3 storage is + // the response. This feature can't be used with a data store whose S3 storage is // customer-managed. IncludeStatistics bool diff --git a/service/iotanalytics/api_op_DescribeLoggingOptions.go b/service/iotanalytics/api_op_DescribeLoggingOptions.go index d89ec38dbf5..8c8f1f8ac76 100644 --- a/service/iotanalytics/api_op_DescribeLoggingOptions.go +++ b/service/iotanalytics/api_op_DescribeLoggingOptions.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves the current settings of the AWS IoT Analytics logging options. +// Retrieves the current settings of the IoT Analytics logging options. func (c *Client) DescribeLoggingOptions(ctx context.Context, params *DescribeLoggingOptionsInput, optFns ...func(*Options)) (*DescribeLoggingOptionsOutput, error) { if params == nil { params = &DescribeLoggingOptionsInput{} @@ -33,7 +33,7 @@ type DescribeLoggingOptionsInput struct { type DescribeLoggingOptionsOutput struct { - // The current settings of the AWS IoT Analytics logging options. + // The current settings of the IoT Analytics logging options. LoggingOptions *types.LoggingOptions // Metadata pertaining to the operation's result. diff --git a/service/iotanalytics/api_op_GetDatasetContent.go b/service/iotanalytics/api_op_GetDatasetContent.go index eee4be855c7..c9fbf8fdc9f 100644 --- a/service/iotanalytics/api_op_GetDatasetContent.go +++ b/service/iotanalytics/api_op_GetDatasetContent.go @@ -12,7 +12,7 @@ import ( "time" ) -// Retrieves the contents of a data set as presigned URIs. +// Retrieves the contents of a dataset as presigned URIs. func (c *Client) GetDatasetContent(ctx context.Context, params *GetDatasetContentInput, optFns ...func(*Options)) (*GetDatasetContentOutput, error) { if params == nil { params = &GetDatasetContentInput{} @@ -30,14 +30,14 @@ func (c *Client) GetDatasetContent(ctx context.Context, params *GetDatasetConten type GetDatasetContentInput struct { - // The name of the data set whose contents are retrieved. + // The name of the dataset whose contents are retrieved. // // This member is required. DatasetName *string - // The version of the data set whose contents are retrieved. You can also use the + // The version of the dataset whose contents are retrieved. You can also use the // strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest - // or latest successfully completed data set. If not specified, "$LATEST_SUCCEEDED" + // or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED" // is the default. VersionId *string @@ -49,7 +49,7 @@ type GetDatasetContentOutput struct { // A list of DatasetEntry objects. Entries []types.DatasetEntry - // The status of the data set content. + // The status of the dataset content. Status *types.DatasetContentStatus // The time when the request was made. diff --git a/service/iotanalytics/api_op_ListDatasetContents.go b/service/iotanalytics/api_op_ListDatasetContents.go index 96ef1b059a7..81dc1269ac7 100644 --- a/service/iotanalytics/api_op_ListDatasetContents.go +++ b/service/iotanalytics/api_op_ListDatasetContents.go @@ -13,7 +13,7 @@ import ( "time" ) -// Lists information about data set contents that have been created. +// Lists information about dataset contents that have been created. func (c *Client) ListDatasetContents(ctx context.Context, params *ListDatasetContentsInput, optFns ...func(*Options)) (*ListDatasetContentsOutput, error) { if params == nil { params = &ListDatasetContentsInput{} @@ -31,7 +31,7 @@ func (c *Client) ListDatasetContents(ctx context.Context, params *ListDatasetCon type ListDatasetContentsInput struct { - // The name of the data set whose contents information you want to list. + // The name of the dataset whose contents information you want to list. // // This member is required. DatasetName *string @@ -42,12 +42,12 @@ type ListDatasetContentsInput struct { // The token for the next set of results. NextToken *string - // A filter to limit results to those data set contents whose creation is scheduled + // A filter to limit results to those dataset contents whose creation is scheduled // before the given time. See the field triggers.schedule in the CreateDataset // request. (timestamp) ScheduledBefore *time.Time - // A filter to limit results to those data set contents whose creation is scheduled + // A filter to limit results to those dataset contents whose creation is scheduled // on or after the given time. See the field triggers.schedule in the CreateDataset // request. (timestamp) ScheduledOnOrAfter *time.Time @@ -57,7 +57,7 @@ type ListDatasetContentsInput struct { type ListDatasetContentsOutput struct { - // Summary information about data set contents that have been created. + // Summary information about dataset contents that have been created. DatasetContentSummaries []types.DatasetContentSummary // The token to retrieve the next set of results, or null if there are no more diff --git a/service/iotanalytics/api_op_ListDatasets.go b/service/iotanalytics/api_op_ListDatasets.go index e6228e8a20f..95019038c25 100644 --- a/service/iotanalytics/api_op_ListDatasets.go +++ b/service/iotanalytics/api_op_ListDatasets.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves information about data sets. +// Retrieves information about datasets. func (c *Client) ListDatasets(ctx context.Context, params *ListDatasetsInput, optFns ...func(*Options)) (*ListDatasetsOutput, error) { if params == nil { params = &ListDatasetsInput{} diff --git a/service/iotanalytics/api_op_PutLoggingOptions.go b/service/iotanalytics/api_op_PutLoggingOptions.go index 4c1634fb328..285a647b446 100644 --- a/service/iotanalytics/api_op_PutLoggingOptions.go +++ b/service/iotanalytics/api_op_PutLoggingOptions.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Sets or updates the AWS IoT Analytics logging options. If you update the value -// of any loggingOptions field, it takes up to one minute for the change to take +// Sets or updates the IoT Analytics logging options. If you update the value of +// any loggingOptions field, it takes up to one minute for the change to take // effect. Also, if you change the policy attached to the role you specified in the // roleArn field (for example, to correct an invalid policy), it takes up to five // minutes for that change to take effect. @@ -33,7 +33,7 @@ func (c *Client) PutLoggingOptions(ctx context.Context, params *PutLoggingOption type PutLoggingOptionsInput struct { - // The new values of the AWS IoT Analytics logging options. + // The new values of the IoT Analytics logging options. // // This member is required. LoggingOptions *types.LoggingOptions diff --git a/service/iotanalytics/api_op_RunPipelineActivity.go b/service/iotanalytics/api_op_RunPipelineActivity.go index 83a30ee5e3b..3496f55f2a2 100644 --- a/service/iotanalytics/api_op_RunPipelineActivity.go +++ b/service/iotanalytics/api_op_RunPipelineActivity.go @@ -34,11 +34,11 @@ type RunPipelineActivityInput struct { // This member is required. Payloads [][]byte - // The pipeline activity that is run. This must not be a channel activity or a - // datastore activity because these activities are used in a pipeline only to load - // the original message and to store the (possibly) transformed message. If a - // lambda activity is specified, only short-running Lambda functions (those with a - // timeout of less than 30 seconds or less) can be used. + // The pipeline activity that is run. This must not be a channel activity or a data + // store activity because these activities are used in a pipeline only to load the + // original message and to store the (possibly) transformed message. If a Lambda + // activity is specified, only short-running Lambda functions (those with a timeout + // of less than 30 seconds or less) can be used. // // This member is required. PipelineActivity *types.PipelineActivity diff --git a/service/iotanalytics/api_op_UpdateChannel.go b/service/iotanalytics/api_op_UpdateChannel.go index ebd5ece6a4b..093e576cc06 100644 --- a/service/iotanalytics/api_op_UpdateChannel.go +++ b/service/iotanalytics/api_op_UpdateChannel.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the settings of a channel. +// Used to update the settings of a channel. func (c *Client) UpdateChannel(ctx context.Context, params *UpdateChannelInput, optFns ...func(*Options)) (*UpdateChannelOutput, error) { if params == nil { params = &UpdateChannelInput{} @@ -36,11 +36,11 @@ type UpdateChannelInput struct { // Where channel data is stored. You can choose one of serviceManagedS3 or // customerManagedS3 storage. If not specified, the default is serviceManagedS3. - // You cannot change this storage option after the channel is created. + // You can't change this storage option after the channel is created. ChannelStorage *types.ChannelStorage // How long, in days, message data is kept for the channel. The retention period - // cannot be updated if the channel's S3 storage is customer-managed. + // can't be updated if the channel's Amazon S3 storage is customer-managed. RetentionPeriod *types.RetentionPeriod noSmithyDocumentSerde diff --git a/service/iotanalytics/api_op_UpdateDataset.go b/service/iotanalytics/api_op_UpdateDataset.go index d5c5af6f352..ccc2edce176 100644 --- a/service/iotanalytics/api_op_UpdateDataset.go +++ b/service/iotanalytics/api_op_UpdateDataset.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the settings of a data set. +// Updates the settings of a dataset. func (c *Client) UpdateDataset(ctx context.Context, params *UpdateDatasetInput, optFns ...func(*Options)) (*UpdateDatasetOutput, error) { if params == nil { params = &UpdateDatasetInput{} @@ -34,7 +34,7 @@ type UpdateDatasetInput struct { // This member is required. Actions []types.DatasetAction - // The name of the data set to update. + // The name of the dataset to update. // // This member is required. DatasetName *string @@ -43,8 +43,8 @@ type UpdateDatasetInput struct { // here. ContentDeliveryRules []types.DatasetContentDeliveryRule - // A list of data rules that send notifications to Amazon CloudWatch, when data - // arrives late. To specify lateDataRules, the dataset must use a DeltaTimer + // A list of data rules that send notifications to CloudWatch, when data arrives + // late. To specify lateDataRules, the dataset must use a DeltaTimer // (https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeltaTime.html) // filter. LateDataRules []types.LateDataRule @@ -59,10 +59,10 @@ type UpdateDatasetInput struct { // Optional. How many versions of dataset contents are kept. If not specified or // set to null, only the latest version plus the latest succeeded version (if they // are different) are kept for the time period specified by the retentionPeriod - // parameter. For more information, see Keeping Multiple Versions of AWS IoT - // Analytics Data Sets + // parameter. For more information, see Keeping Multiple Versions of IoT Analytics + // datasets // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) - // in the AWS IoT Analytics User Guide. + // in the IoT Analytics User Guide. VersioningConfiguration *types.VersioningConfiguration noSmithyDocumentSerde diff --git a/service/iotanalytics/api_op_UpdateDatastore.go b/service/iotanalytics/api_op_UpdateDatastore.go index 6301939bebe..de89476db9c 100644 --- a/service/iotanalytics/api_op_UpdateDatastore.go +++ b/service/iotanalytics/api_op_UpdateDatastore.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the settings of a data store. +// Used to update the settings of a data store. func (c *Client) UpdateDatastore(ctx context.Context, params *UpdateDatastoreInput, optFns ...func(*Options)) (*UpdateDatastoreOutput, error) { if params == nil { params = &UpdateDatastoreInput{} @@ -34,19 +34,20 @@ type UpdateDatastoreInput struct { // This member is required. DatastoreName *string - // Where data store data is stored. You can choose one of serviceManagedS3 or - // customerManagedS3 storage. If not specified, the default isserviceManagedS3. You - // cannot change this storage option after the data store is created. + // Where data in a data store is stored.. You can choose serviceManagedS3 storage, + // customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default + // is serviceManagedS3. You can't change the choice of Amazon S3 storage after your + // data store is created. DatastoreStorage types.DatastoreStorage - // Contains the configuration information of file formats. AWS IoT Analytics data + // Contains the configuration information of file formats. IoT Analytics data // stores support JSON and Parquet (https://parquet.apache.org/). The default file // format is JSON. You can specify only one format. You can't change the file // format after you create the data store. FileFormatConfiguration *types.FileFormatConfiguration // How long, in days, message data is kept for the data store. The retention period - // cannot be updated if the data store's S3 storage is customer-managed. + // can't be updated if the data store's Amazon S3 storage is customer-managed. RetentionPeriod *types.RetentionPeriod noSmithyDocumentSerde diff --git a/service/iotanalytics/deserializers.go b/service/iotanalytics/deserializers.go index 0998e568d38..82c2401c0c7 100644 --- a/service/iotanalytics/deserializers.go +++ b/service/iotanalytics/deserializers.go @@ -7178,6 +7178,78 @@ func awsRestjson1_deserializeDocumentDatastoreActivity(v **types.DatastoreActivi return nil } +func awsRestjson1_deserializeDocumentDatastoreIotSiteWiseMultiLayerStorage(v **types.DatastoreIotSiteWiseMultiLayerStorage, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DatastoreIotSiteWiseMultiLayerStorage + if *v == nil { + sv = &types.DatastoreIotSiteWiseMultiLayerStorage{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "customerManagedS3Storage": + if err := awsRestjson1_deserializeDocumentIotSiteWiseCustomerManagedDatastoreS3Storage(&sv.CustomerManagedS3Storage, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDatastoreIotSiteWiseMultiLayerStorageSummary(v **types.DatastoreIotSiteWiseMultiLayerStorageSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DatastoreIotSiteWiseMultiLayerStorageSummary + if *v == nil { + sv = &types.DatastoreIotSiteWiseMultiLayerStorageSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "customerManagedS3Storage": + if err := awsRestjson1_deserializeDocumentIotSiteWiseCustomerManagedDatastoreS3StorageSummary(&sv.CustomerManagedS3Storage, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentDatastorePartition(v **types.DatastorePartition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7321,6 +7393,16 @@ loop: uv = &types.DatastoreStorageMemberCustomerManagedS3{Value: mv} break loop + case "iotSiteWiseMultiLayerStorage": + var mv types.DatastoreIotSiteWiseMultiLayerStorage + destAddr := &mv + if err := awsRestjson1_deserializeDocumentDatastoreIotSiteWiseMultiLayerStorage(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DatastoreStorageMemberIotSiteWiseMultiLayerStorage{Value: mv} + break loop + case "serviceManagedS3": var mv types.ServiceManagedDatastoreS3Storage destAddr := &mv @@ -7368,6 +7450,11 @@ func awsRestjson1_deserializeDocumentDatastoreStorageSummary(v **types.Datastore return err } + case "iotSiteWiseMultiLayerStorage": + if err := awsRestjson1_deserializeDocumentDatastoreIotSiteWiseMultiLayerStorageSummary(&sv.IotSiteWiseMultiLayerStorage, value); err != nil { + return err + } + case "serviceManagedS3": if err := awsRestjson1_deserializeDocumentServiceManagedDatastoreS3StorageSummary(&sv.ServiceManagedS3, value); err != nil { return err @@ -8139,6 +8226,104 @@ func awsRestjson1_deserializeDocumentIotEventsDestinationConfiguration(v **types return nil } +func awsRestjson1_deserializeDocumentIotSiteWiseCustomerManagedDatastoreS3Storage(v **types.IotSiteWiseCustomerManagedDatastoreS3Storage, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.IotSiteWiseCustomerManagedDatastoreS3Storage + if *v == nil { + sv = &types.IotSiteWiseCustomerManagedDatastoreS3Storage{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "bucket": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) + } + sv.Bucket = ptr.String(jtv) + } + + case "keyPrefix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) + } + sv.KeyPrefix = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentIotSiteWiseCustomerManagedDatastoreS3StorageSummary(v **types.IotSiteWiseCustomerManagedDatastoreS3StorageSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.IotSiteWiseCustomerManagedDatastoreS3StorageSummary + if *v == nil { + sv = &types.IotSiteWiseCustomerManagedDatastoreS3StorageSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "bucket": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) + } + sv.Bucket = ptr.String(jtv) + } + + case "keyPrefix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) + } + sv.KeyPrefix = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentJsonConfiguration(v **types.JsonConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/iotanalytics/doc.go b/service/iotanalytics/doc.go index 626c831c2a7..27de38102fb 100644 --- a/service/iotanalytics/doc.go +++ b/service/iotanalytics/doc.go @@ -3,24 +3,24 @@ // Package iotanalytics provides the API client, operations, and parameter types // for AWS IoT Analytics. // -// AWS IoT Analytics allows you to collect large amounts of device data, process +// IoT Analytics allows you to collect large amounts of device data, process // messages, and store them. You can then query the data and run sophisticated -// analytics on it. AWS IoT Analytics enables advanced data exploration through +// analytics on it. IoT Analytics enables advanced data exploration through // integration with Jupyter Notebooks and data visualization through integration // with Amazon QuickSight. Traditional analytics and business intelligence tools // are designed to process structured data. IoT data often comes from devices that // record noisy processes (such as temperature, motion, or sound). As a result the // data from these devices can have significant gaps, corrupted messages, and false // readings that must be cleaned up before analysis can occur. Also, IoT data is -// often only meaningful in the context of other data from external sources. AWS -// IoT Analytics automates the steps required to analyze data from IoT devices. AWS -// IoT Analytics filters, transforms, and enriches IoT data before storing it in a +// often only meaningful in the context of other data from external sources. IoT +// Analytics automates the steps required to analyze data from IoT devices. IoT +// Analytics filters, transforms, and enriches IoT data before storing it in a // time-series data store for analysis. You can set up the service to collect only // the data you need from your devices, apply mathematical transforms to process // the data, and enrich the data with device-specific metadata such as device type // and location before storing it. Then, you can analyze your data by running // queries using the built-in SQL query engine, or perform more complex analytics -// and machine learning inference. AWS IoT Analytics includes pre-built models for +// and machine learning inference. IoT Analytics includes pre-built models for // common IoT use cases so you can answer questions like which devices are about to // fail or which customers are at risk of abandoning their wearable devices. package iotanalytics diff --git a/service/iotanalytics/serializers.go b/service/iotanalytics/serializers.go index 457fd814926..4cbf48e9683 100644 --- a/service/iotanalytics/serializers.go +++ b/service/iotanalytics/serializers.go @@ -2824,6 +2824,20 @@ func awsRestjson1_serializeDocumentDatastoreActivity(v *types.DatastoreActivity, return nil } +func awsRestjson1_serializeDocumentDatastoreIotSiteWiseMultiLayerStorage(v *types.DatastoreIotSiteWiseMultiLayerStorage, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CustomerManagedS3Storage != nil { + ok := object.Key("customerManagedS3Storage") + if err := awsRestjson1_serializeDocumentIotSiteWiseCustomerManagedDatastoreS3Storage(v.CustomerManagedS3Storage, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentDatastorePartition(v *types.DatastorePartition, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2870,6 +2884,12 @@ func awsRestjson1_serializeDocumentDatastoreStorage(v types.DatastoreStorage, va return err } + case *types.DatastoreStorageMemberIotSiteWiseMultiLayerStorage: + av := object.Key("iotSiteWiseMultiLayerStorage") + if err := awsRestjson1_serializeDocumentDatastoreIotSiteWiseMultiLayerStorage(&uv.Value, av); err != nil { + return err + } + case *types.DatastoreStorageMemberServiceManagedS3: av := object.Key("serviceManagedS3") if err := awsRestjson1_serializeDocumentServiceManagedDatastoreS3Storage(&uv.Value, av); err != nil { @@ -3053,6 +3073,23 @@ func awsRestjson1_serializeDocumentIotEventsDestinationConfiguration(v *types.Io return nil } +func awsRestjson1_serializeDocumentIotSiteWiseCustomerManagedDatastoreS3Storage(v *types.IotSiteWiseCustomerManagedDatastoreS3Storage, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Bucket != nil { + ok := object.Key("bucket") + ok.String(*v.Bucket) + } + + if v.KeyPrefix != nil { + ok := object.Key("keyPrefix") + ok.String(*v.KeyPrefix) + } + + return nil +} + func awsRestjson1_serializeDocumentJsonConfiguration(v *types.JsonConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/iotanalytics/types/types.go b/service/iotanalytics/types/types.go index c5d53752009..4e1820fadb9 100644 --- a/service/iotanalytics/types/types.go +++ b/service/iotanalytics/types/types.go @@ -55,8 +55,8 @@ type Channel struct { // When the channel was created. CreationTime *time.Time - // The last time when a new message arrived in the channel. AWS IoT Analytics - // updates this value at most once per minute for one channel. Hence, the + // The last time when a new message arrived in the channel. IoT Analytics updates + // this value at most once per minute for one channel. Hence, the // lastMessageArrivalTime value is an approximation. This feature only applies to // messages that arrived in the data store after October 23, 2020. LastMessageArrivalTime *time.Time @@ -75,7 +75,7 @@ type Channel struct { // Where channel data is stored. You can choose one of serviceManagedS3 or // customerManagedS3 storage. If not specified, the default is serviceManagedS3. - // You cannot change this storage option after the channel is created. + // You can't change this storage option after the channel is created. Storage *ChannelStorage noSmithyDocumentSerde @@ -121,20 +121,18 @@ type ChannelStatistics struct { noSmithyDocumentSerde } -// Where channel data is stored. You may choose one of serviceManagedS3 or +// Where channel data is stored. You may choose one of serviceManagedS3, // customerManagedS3 storage. If not specified, the default is serviceManagedS3. -// This cannot be changed after creation of the channel. +// This can't be changed after creation of the channel. type ChannelStorage struct { - // Use this to store channel data in an S3 bucket that you manage. If customer - // managed storage is selected, the retentionPeriod parameter is ignored. You - // cannot change the choice of service-managed or customer-managed S3 storage after - // the channel is created. + // Used to store channel data in an S3 bucket that you manage. If customer managed + // storage is selected, the retentionPeriod parameter is ignored. You can't change + // the choice of S3 storage after the data store is created. CustomerManagedS3 *CustomerManagedChannelS3Storage - // Use this to store channel data in an S3 bucket managed by AWS IoT Analytics. You - // cannot change the choice of service-managed or customer-managed S3 storage after - // the channel is created. + // Used to store channel data in an S3 bucket managed by IoT Analytics. You can't + // change the choice of S3 storage after the data store is created. ServiceManagedS3 *ServiceManagedChannelS3Storage noSmithyDocumentSerde @@ -146,7 +144,7 @@ type ChannelStorageSummary struct { // Used to store channel data in an S3 bucket that you manage. CustomerManagedS3 *CustomerManagedChannelS3StorageSummary - // Used to store channel data in an S3 bucket managed by AWS IoT Analytics. + // Used to store channel data in an S3 bucket managed by IoT Analytics. ServiceManagedS3 *ServiceManagedChannelS3StorageSummary noSmithyDocumentSerde @@ -164,8 +162,8 @@ type ChannelSummary struct { // When the channel was created. CreationTime *time.Time - // The last time when a new message arrived in the channel. AWS IoT Analytics - // updates this value at most once per minute for one channel. Hence, the + // The last time when a new message arrived in the channel. IoT Analytics updates + // this value at most once per minute for one channel. Hence, the // lastMessageArrivalTime value is an approximation. This feature only applies to // messages that arrived in the data store after October 23, 2020. LastMessageArrivalTime *time.Time @@ -189,7 +187,7 @@ type Column struct { // The type of data. For more information about the supported data types, see // Common data types - // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html) in the AWS + // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html) in the // Glue Developer Guide. // // This member is required. @@ -230,10 +228,9 @@ type ContainerDatasetAction struct { noSmithyDocumentSerde } -// Use this to store channel data in an S3 bucket that you manage. If customer -// managed storage is selected, the retentionPeriod parameter is ignored. You -// cannot change the choice of service-managed or customer-managed S3 storage after -// the channel is created. +// Used to store channel data in an S3 bucket that you manage. If customer-managed +// storage is selected, the retentionPeriod parameter is ignored. You can't change +// the choice of S3 storage after the data store is created. type CustomerManagedChannelS3Storage struct { // The name of the S3 bucket in which channel data is stored. @@ -241,13 +238,13 @@ type CustomerManagedChannelS3Storage struct { // This member is required. Bucket *string - // The ARN of the role that grants AWS IoT Analytics permission to interact with - // your Amazon S3 resources. + // The ARN of the role that grants IoT Analytics permission to interact with your + // Amazon S3 resources. // // This member is required. RoleArn *string - // Optional. The prefix used to create the keys of the channel data objects. Each + // (Optional) The prefix used to create the keys of the channel data objects. Each // object in an S3 bucket has a key that is its unique identifier in the bucket. // Each object in a bucket has exactly one key. The prefix must end with a forward // slash (/). @@ -262,119 +259,118 @@ type CustomerManagedChannelS3StorageSummary struct { // The name of the S3 bucket in which channel data is stored. Bucket *string - // Optional. The prefix used to create the keys of the channel data objects. Each + // (Optional) The prefix used to create the keys of the channel data objects. Each // object in an S3 bucket has a key that is its unique identifier within the bucket // (each object in a bucket has exactly one key). The prefix must end with a // forward slash (/). KeyPrefix *string - // The ARN of the role that grants AWS IoT Analytics permission to interact with - // your Amazon S3 resources. + // The ARN of the role that grants IoT Analytics permission to interact with your + // Amazon S3 resources. RoleArn *string noSmithyDocumentSerde } -// Use this to store data store data in an S3 bucket that you manage. When -// customer-managed storage is selected, the retentionPeriod parameter is ignored. -// You cannot change the choice of service-managed or customer-managed S3 storage -// after the data store is created. +// S3-customer-managed; When you choose customer-managed storage, the +// retentionPeriod parameter is ignored. You can't change the choice of Amazon S3 +// storage after your data store is created. type CustomerManagedDatastoreS3Storage struct { - // The name of the S3 bucket in which data store data is stored. + // The name of the Amazon S3 bucket where your data is stored. // // This member is required. Bucket *string - // The ARN of the role that grants AWS IoT Analytics permission to interact with - // your Amazon S3 resources. + // The ARN of the role that grants IoT Analytics permission to interact with your + // Amazon S3 resources. // // This member is required. RoleArn *string - // Optional. The prefix used to create the keys of the data store data objects. - // Each object in an S3 bucket has a key that is its unique identifier in the - // bucket. Each object in a bucket has exactly one key. The prefix must end with a - // forward slash (/). + // (Optional) The prefix used to create the keys of the data store data objects. + // Each object in an Amazon S3 bucket has a key that is its unique identifier in + // the bucket. Each object in a bucket has exactly one key. The prefix must end + // with a forward slash (/). KeyPrefix *string noSmithyDocumentSerde } -// Used to store data store data in an S3 bucket that you manage. +// Contains information about the data store that you manage. type CustomerManagedDatastoreS3StorageSummary struct { - // The name of the S3 bucket in which data store data is stored. + // The name of the Amazon S3 bucket where your data is stored. Bucket *string - // Optional. The prefix used to create the keys of the data store data objects. - // Each object in an S3 bucket has a key that is its unique identifier in the - // bucket. Each object in a bucket has exactly one key. The prefix must end with a - // forward slash (/). + // (Optional) The prefix used to create the keys of the data store data objects. + // Each object in an Amazon S3 bucket has a key that is its unique identifier in + // the bucket. Each object in a bucket has exactly one key. The prefix must end + // with a forward slash (/). KeyPrefix *string - // The ARN of the role that grants AWS IoT Analytics permission to interact with - // your Amazon S3 resources. + // The ARN of the role that grants IoT Analytics permission to interact with your + // Amazon S3 resources. RoleArn *string noSmithyDocumentSerde } -// Information about a data set. +// Information about a dataset. type Dataset struct { - // The DatasetAction objects that automatically create the data set contents. + // The DatasetAction objects that automatically create the dataset contents. Actions []DatasetAction - // The ARN of the data set. + // The ARN of the dataset. Arn *string // When dataset contents are created they are delivered to destinations specified // here. ContentDeliveryRules []DatasetContentDeliveryRule - // When the data set was created. + // When the dataset was created. CreationTime *time.Time - // The last time the data set was updated. + // The last time the dataset was updated. LastUpdateTime *time.Time - // A list of data rules that send notifications to Amazon CloudWatch, when data - // arrives late. To specify lateDataRules, the dataset must use a DeltaTimer + // A list of data rules that send notifications to CloudWatch, when data arrives + // late. To specify lateDataRules, the dataset must use a DeltaTimer // (https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeltaTime.html) // filter. LateDataRules []LateDataRule - // The name of the data set. + // The name of the dataset. Name *string - // Optional. How long, in days, message data is kept for the data set. + // Optional. How long, in days, message data is kept for the dataset. RetentionPeriod *RetentionPeriod - // The status of the data set. + // The status of the dataset. Status DatasetStatus - // The DatasetTrigger objects that specify when the data set is automatically + // The DatasetTrigger objects that specify when the dataset is automatically // updated. Triggers []DatasetTrigger // Optional. How many versions of dataset contents are kept. If not specified or // set to null, only the latest version plus the latest succeeded version (if they // are different) are kept for the time period specified by the retentionPeriod - // parameter. For more information, see Keeping Multiple Versions of AWS IoT - // Analytics Data Sets + // parameter. For more information, see Keeping Multiple Versions of IoT Analytics + // datasets // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) - // in the AWS IoT Analytics User Guide. + // in the IoT Analytics User Guide. VersioningConfiguration *VersioningConfiguration noSmithyDocumentSerde } -// A DatasetAction object that specifies how data set contents are automatically +// A DatasetAction object that specifies how dataset contents are automatically // created. type DatasetAction struct { - // The name of the data set action by which data set contents are automatically + // The name of the dataset action by which dataset contents are automatically // created. ActionName *string @@ -384,7 +380,7 @@ type DatasetAction struct { ContainerAction *ContainerDatasetAction // An SqlQueryDatasetAction object that uses an SQL query to automatically create - // data set contents. + // dataset contents. QueryAction *SqlQueryDatasetAction noSmithyDocumentSerde @@ -405,7 +401,7 @@ type DatasetActionSummary struct { // The destination to which dataset contents are delivered. type DatasetContentDeliveryDestination struct { - // Configuration information for delivery of dataset contents to AWS IoT Events. + // Configuration information for delivery of dataset contents to IoT Events. IotEventsDestinationConfiguration *IotEventsDestinationConfiguration // Configuration information for delivery of dataset contents to Amazon S3. @@ -429,13 +425,13 @@ type DatasetContentDeliveryRule struct { noSmithyDocumentSerde } -// The state of the data set contents and the reason they are in this state. +// The state of the dataset contents and the reason they are in this state. type DatasetContentStatus struct { - // The reason the data set contents are in this state. + // The reason the dataset contents are in this state. Reason *string - // The state of the data set contents. Can be one of READY, CREATING, SUCCEEDED, or + // The state of the dataset contents. Can be one of READY, CREATING, SUCCEEDED, or // FAILED. State DatasetContentState @@ -454,7 +450,7 @@ type DatasetContentSummary struct { // The time the creation of the dataset contents was scheduled to start. ScheduleTime *time.Time - // The status of the data set contents. + // The status of the dataset contents. Status *DatasetContentStatus // The version of the dataset contents. @@ -476,48 +472,48 @@ type DatasetContentVersionValue struct { noSmithyDocumentSerde } -// The reference to a data set entry. +// The reference to a dataset entry. type DatasetEntry struct { - // The presigned URI of the data set item. + // The presigned URI of the dataset item. DataURI *string - // The name of the data set item. + // The name of the dataset item. EntryName *string noSmithyDocumentSerde } -// A summary of information about a data set. +// A summary of information about a dataset. type DatasetSummary struct { // A list of DataActionSummary objects. Actions []DatasetActionSummary - // The time the data set was created. + // The time the dataset was created. CreationTime *time.Time - // The name of the data set. + // The name of the dataset. DatasetName *string - // The last time the data set was updated. + // The last time the dataset was updated. LastUpdateTime *time.Time - // The status of the data set. + // The status of the dataset. Status DatasetStatus - // A list of triggers. A trigger causes data set content to be populated at a - // specified time interval or when another data set is populated. The list of + // A list of triggers. A trigger causes dataset content to be populated at a + // specified time interval or when another dataset is populated. The list of // triggers can be empty or contain up to five DataSetTrigger objects Triggers []DatasetTrigger noSmithyDocumentSerde } -// The DatasetTrigger that specifies when the data set is automatically updated. +// The DatasetTrigger that specifies when the dataset is automatically updated. type DatasetTrigger struct { - // The data set whose content creation triggers the creation of this data set's + // The dataset whose content creation triggers the creation of this dataset's // contents. Dataset *TriggeringDataset @@ -536,19 +532,20 @@ type Datastore struct { // When the data store was created. CreationTime *time.Time - // Contains information about the partitions in a data store. + // Contains information about the partition dimensions in a data store. DatastorePartitions *DatastorePartitions - // Contains the configuration information of file formats. AWS IoT Analytics data + // Contains the configuration information of file formats. IoT Analytics data // stores support JSON and Parquet (https://parquet.apache.org/). The default file // format is JSON. You can specify only one format. You can't change the file // format after you create the data store. FileFormatConfiguration *FileFormatConfiguration - // The last time when a new message arrived in the data store. AWS IoT Analytics - // updates this value at most once per minute for one data store. Hence, the - // lastMessageArrivalTime value is an approximation. This feature only applies to - // messages that arrived in the data store after October 23, 2020. + // The last time when a new message arrived in the data store. IoT Analytics + // updates this value at most once per minute for Amazon Simple Storage Service one + // data store. Hence, the lastMessageArrivalTime value is an approximation. This + // feature only applies to messages that arrived in the data store after October + // 23, 2020. LastMessageArrivalTime *time.Time // The last time the data store was updated. @@ -566,9 +563,10 @@ type Datastore struct { // deleted. Status DatastoreStatus - // Where data store data is stored. You can choose one of serviceManagedS3 or - // customerManagedS3 storage. If not specified, the default is serviceManagedS3. - // You cannot change this storage option after the data store is created. + // Where data in a data store is stored.. You can choose serviceManagedS3 storage, + // customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default + // is serviceManagedS3. You can't change the choice of Amazon S3 storage after your + // data store is created. Storage DatastoreStorage noSmithyDocumentSerde @@ -590,22 +588,46 @@ type DatastoreActivity struct { noSmithyDocumentSerde } -// A single partition in a data store. +// Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. +// You can't change the choice of Amazon S3 storage after your data store is +// created. +type DatastoreIotSiteWiseMultiLayerStorage struct { + + // Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. + // + // This member is required. + CustomerManagedS3Storage *IotSiteWiseCustomerManagedDatastoreS3Storage + + noSmithyDocumentSerde +} + +// Contains information about the data store that you manage, which stores data +// used by IoT SiteWise. +type DatastoreIotSiteWiseMultiLayerStorageSummary struct { + + // Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. + CustomerManagedS3Storage *IotSiteWiseCustomerManagedDatastoreS3StorageSummary + + noSmithyDocumentSerde +} + +// A single dimension to partition a data store. The dimension must be an +// AttributePartition or a TimestampPartition. type DatastorePartition struct { - // A partition defined by an attributeName. + // A partition dimension defined by an attributeName. AttributePartition *Partition - // A partition defined by an attributeName and a timestamp format. + // A partition dimension defined by a timestamp attribute. TimestampPartition *TimestampPartition noSmithyDocumentSerde } -// Contains information about partitions in a data store. +// Contains information about the partition dimensions in a data store. type DatastorePartitions struct { - // A list of partitions in a data store. + // A list of partition dimensions in a data store. Partitions []DatastorePartition noSmithyDocumentSerde @@ -620,20 +642,21 @@ type DatastoreStatistics struct { noSmithyDocumentSerde } -// Where data store data is stored. You can choose one of serviceManagedS3 or -// customerManagedS3 storage. If not specified, the default is serviceManagedS3. -// You cannot change this storage option after the data store is created. +// Where data in a data store is stored.. You can choose serviceManagedS3 storage, +// customerManagedS3 storage, or iotSiteWiseMultiLayerStorage storage. The default +// is serviceManagedS3. You can't change the choice of Amazon S3 storage after your +// data store is created. // // The following types satisfy this interface: // DatastoreStorageMemberServiceManagedS3 // DatastoreStorageMemberCustomerManagedS3 +// DatastoreStorageMemberIotSiteWiseMultiLayerStorage type DatastoreStorage interface { isDatastoreStorage() } -// Use this to store data store data in an S3 bucket managed by AWS IoT Analytics. -// You cannot change the choice of service-managed or customer-managed S3 storage -// after the data store is created. +// Used to store data in an Amazon S3 bucket managed by IoT Analytics. You can't +// change the choice of Amazon S3 storage after your data store is created. type DatastoreStorageMemberServiceManagedS3 struct { Value ServiceManagedDatastoreS3Storage @@ -642,10 +665,9 @@ type DatastoreStorageMemberServiceManagedS3 struct { func (*DatastoreStorageMemberServiceManagedS3) isDatastoreStorage() {} -// Use this to store data store data in an S3 bucket that you manage. When customer -// managed storage is selected, the retentionPeriod parameter is ignored. The -// choice of service-managed or customer-managed S3 storage cannot be changed after -// creation of the data store. +// S3-customer-managed; When you choose customer-managed storage, the +// retentionPeriod parameter is ignored. You can't change the choice of Amazon S3 +// storage after your data store is created. type DatastoreStorageMemberCustomerManagedS3 struct { Value CustomerManagedDatastoreS3Storage @@ -654,13 +676,27 @@ type DatastoreStorageMemberCustomerManagedS3 struct { func (*DatastoreStorageMemberCustomerManagedS3) isDatastoreStorage() {} -// Where data store data is stored. +// Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. +// You can't change the choice of Amazon S3 storage after your data store is +// created. +type DatastoreStorageMemberIotSiteWiseMultiLayerStorage struct { + Value DatastoreIotSiteWiseMultiLayerStorage + + noSmithyDocumentSerde +} + +func (*DatastoreStorageMemberIotSiteWiseMultiLayerStorage) isDatastoreStorage() {} + +// Contains information about your data store. type DatastoreStorageSummary struct { - // Used to store data store data in an S3 bucket that you manage. + // Used to store data in an Amazon S3 bucket managed by IoT Analytics. CustomerManagedS3 *CustomerManagedDatastoreS3StorageSummary - // Used to store data store data in an S3 bucket managed by AWS IoT Analytics. + // Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. + IotSiteWiseMultiLayerStorage *DatastoreIotSiteWiseMultiLayerStorageSummary + + // Used to store data in an Amazon S3 bucket managed by IoT Analytics. ServiceManagedS3 *ServiceManagedDatastoreS3StorageSummary noSmithyDocumentSerde @@ -675,19 +711,20 @@ type DatastoreSummary struct { // The name of the data store. DatastoreName *string - // Contains information about the partitions in a data store. + // Contains information about the partition dimensions in a data store. DatastorePartitions *DatastorePartitions - // Where data store data is stored. + // Where data in a data store is stored. DatastoreStorage *DatastoreStorageSummary // The file format of the data in the data store. FileFormatType FileFormatType - // The last time when a new message arrived in the data store. AWS IoT Analytics - // updates this value at most once per minute for one data store. Hence, the - // lastMessageArrivalTime value is an approximation. This feature only applies to - // messages that arrived in the data store after October 23, 2020. + // The last time when a new message arrived in the data store. IoT Analytics + // updates this value at most once per minute for Amazon Simple Storage Service one + // data store. Hence, the lastMessageArrivalTime value is an approximation. This + // feature only applies to messages that arrived in the data store after October + // 23, 2020. LastMessageArrivalTime *time.Time // The last time the data store was updated. @@ -732,14 +769,14 @@ type DeltaTime struct { // data that has arrived in the data store since the last execution. For an example // of DeltaTime, see Creating a SQL dataset with a delta window (CLI) // (https://docs.aws.amazon.com/iotanalytics/latest/userguide/automate-create-dataset.html#automate-example6) -// in the AWS IoT Analytics User Guide. +// in the IoT Analytics User Guide. type DeltaTimeSessionWindowConfiguration struct { - // A time interval. You can use timeoutInMinutes so that AWS IoT Analytics can - // batch up late data notifications that have been generated since the last - // execution. AWS IoT Analytics sends one batch of notifications to Amazon - // CloudWatch Events at one time. For more information about how to write a - // timestamp expression, see Date and Time Functions and Operators + // A time interval. You can use timeoutInMinutes so that IoT Analytics can batch up + // late data notifications that have been generated since the last execution. IoT + // Analytics sends one batch of notifications to Amazon CloudWatch Events at one + // time. For more information about how to write a timestamp expression, see Date + // and Time Functions and Operators // (https://prestodb.io/docs/0.172/functions/datetime.html), in the Presto 0.172 // Documentation. // @@ -749,7 +786,7 @@ type DeltaTimeSessionWindowConfiguration struct { noSmithyDocumentSerde } -// An activity that adds data from the AWS IoT device registry to your message. +// An activity that adds data from the IoT device registry to your message. type DeviceRegistryEnrichActivity struct { // The name of the attribute that is added to the message. @@ -778,7 +815,7 @@ type DeviceRegistryEnrichActivity struct { noSmithyDocumentSerde } -// An activity that adds information from the AWS IoT Device Shadow service to a +// An activity that adds information from the IoT Device Shadow service to a // message. type DeviceShadowEnrichActivity struct { @@ -820,7 +857,7 @@ type EstimatedResourceSize struct { noSmithyDocumentSerde } -// Contains the configuration information of file formats. AWS IoT Analytics data +// Contains the configuration information of file formats. IoT Analytics data // stores support JSON and Parquet (https://parquet.apache.org/). The default file // format is JSON. You can specify only one format. You can't change the file // format after you create the data store. @@ -855,18 +892,18 @@ type FilterActivity struct { noSmithyDocumentSerde } -// Configuration information for coordination with AWS Glue, a fully managed -// extract, transform and load (ETL) service. +// Configuration information for coordination with Glue, a fully managed extract, +// transform and load (ETL) service. type GlueConfiguration struct { - // The name of the database in your AWS Glue Data Catalog in which the table is - // located. An AWS Glue Data Catalog database contains metadata tables. + // The name of the database in your Glue Data Catalog in which the table is + // located. An Glue Data Catalog database contains metadata tables. // // This member is required. DatabaseName *string - // The name of the table in your AWS Glue Data Catalog that is used to perform the - // ETL operations. An AWS Glue Data Catalog table contains partitioned data and + // The name of the table in your Glue Data Catalog that is used to perform the ETL + // operations. An Glue Data Catalog table contains partitioned data and // descriptions of data sources and targets. // // This member is required. @@ -875,16 +912,16 @@ type GlueConfiguration struct { noSmithyDocumentSerde } -// Configuration information for delivery of dataset contents to AWS IoT Events. +// Configuration information for delivery of dataset contents to IoT Events. type IotEventsDestinationConfiguration struct { - // The name of the AWS IoT Events input to which dataset contents are delivered. + // The name of the IoT Events input to which dataset contents are delivered. // // This member is required. InputName *string - // The ARN of the role that grants AWS IoT Analytics permission to deliver dataset - // contents to an AWS IoT Events input. + // The ARN of the role that grants IoT Analytics permission to deliver dataset + // contents to an IoT Events input. // // This member is required. RoleArn *string @@ -892,6 +929,41 @@ type IotEventsDestinationConfiguration struct { noSmithyDocumentSerde } +// Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage. +// You can't change the choice of Amazon S3 storage after your data store is +// created. +type IotSiteWiseCustomerManagedDatastoreS3Storage struct { + + // The name of the Amazon S3 bucket where your data is stored. + // + // This member is required. + Bucket *string + + // (Optional) The prefix used to create the keys of the data store data objects. + // Each object in an Amazon S3 bucket has a key that is its unique identifier in + // the bucket. Each object in a bucket has exactly one key. The prefix must end + // with a forward slash (/). + KeyPrefix *string + + noSmithyDocumentSerde +} + +// Contains information about the data store that you manage, which stores data +// used by IoT SiteWise. +type IotSiteWiseCustomerManagedDatastoreS3StorageSummary struct { + + // The name of the Amazon S3 bucket where your data is stored. + Bucket *string + + // (Optional) The prefix used to create the keys of the data store data objects. + // Each object in an Amazon S3 bucket has a key that is its unique identifier in + // the bucket. Each object in a bucket has exactly one key. The prefix must end + // with a forward slash (/). + KeyPrefix *string + + noSmithyDocumentSerde +} + // Contains the configuration information of the JSON format. type JsonConfiguration struct { noSmithyDocumentSerde @@ -950,7 +1022,7 @@ type LateDataRuleConfiguration struct { // Information about logging options. type LoggingOptions struct { - // If true, logging is enabled for AWS IoT Analytics. + // If true, logging is enabled for IoT Analytics. // // This member is required. Enabled bool @@ -960,8 +1032,7 @@ type LoggingOptions struct { // This member is required. Level LoggingLevel - // The ARN of the role that grants permission to AWS IoT Analytics to perform - // logging. + // The ARN of the role that grants permission to IoT Analytics to perform logging. // // This member is required. RoleArn *string @@ -1035,10 +1106,10 @@ type ParquetConfiguration struct { noSmithyDocumentSerde } -// A single partition. +// A partition dimension defined by an attribute. type Partition struct { - // The attribute name of the partition. + // The name of the attribute that defines a partition dimension. // // This member is required. AttributeName *string @@ -1082,10 +1153,10 @@ type PipelineActivity struct { // Specifies where to store the processed message data. Datastore *DatastoreActivity - // Adds data from the AWS IoT device registry to your message. + // Adds data from the IoT device registry to your message. DeviceRegistryEnrich *DeviceRegistryEnrichActivity - // Adds information from the AWS IoT Device Shadow service to a message. + // Adds information from the IoT Device Shadow service to a message. DeviceShadowEnrich *DeviceShadowEnrichActivity // Filters a message based on its attributes. @@ -1101,8 +1172,8 @@ type PipelineActivity struct { // Removes attributes from a message. RemoveAttributes *RemoveAttributesActivity - // Creates a new message using only the specified attributes from the original - // message. + // Used to create a new message using only the specified attributes from the + // original message. SelectAttributes *SelectAttributesActivity noSmithyDocumentSerde @@ -1235,14 +1306,14 @@ type S3DestinationConfiguration struct { // This member is required. Key *string - // The ARN of the role that grants AWS IoT Analytics permission to interact with - // your Amazon S3 and AWS Glue resources. + // The ARN of the role that grants IoT Analytics permission to interact with your + // Amazon S3 and Glue resources. // // This member is required. RoleArn *string - // Configuration information for coordination with AWS Glue, a fully managed - // extract, transform and load (ETL) service. + // Configuration information for coordination with Glue, a fully managed extract, + // transform and load (ETL) service. GlueConfiguration *GlueConfiguration noSmithyDocumentSerde @@ -1270,8 +1341,8 @@ type SchemaDefinition struct { noSmithyDocumentSerde } -// Creates a new message using only the specified attributes from the original -// message. +// Used to create a new message using only the specified attributes from the +// original message. type SelectAttributesActivity struct { // A list of the attributes to select from the message. @@ -1290,26 +1361,24 @@ type SelectAttributesActivity struct { noSmithyDocumentSerde } -// Use this to store channel data in an S3 bucket managed by AWS IoT Analytics. You -// cannot change the choice of service-managed or customer-managed S3 storage after -// the channel is created. +// Used to store channel data in an S3 bucket managed by IoT Analytics. You can't +// change the choice of S3 storage after the data store is created. type ServiceManagedChannelS3Storage struct { noSmithyDocumentSerde } -// Used to store channel data in an S3 bucket managed by AWS IoT Analytics. +// Used to store channel data in an S3 bucket managed by IoT Analytics. type ServiceManagedChannelS3StorageSummary struct { noSmithyDocumentSerde } -// Use this to store data store data in an S3 bucket managed by AWS IoT Analytics. -// You cannot change the choice of service-managed or customer-managed S3 storage -// after the data store is created. +// Used to store data in an Amazon S3 bucket managed by IoT Analytics. You can't +// change the choice of Amazon S3 storage after your data store is created. type ServiceManagedDatastoreS3Storage struct { noSmithyDocumentSerde } -// Used to store data store data in an S3 bucket managed by AWS IoT Analytics. +// Contains information about the data store that is managed by IoT Analytics. type ServiceManagedDatastoreS3StorageSummary struct { noSmithyDocumentSerde } @@ -1344,7 +1413,7 @@ type Tag struct { noSmithyDocumentSerde } -// A partition defined by a timestamp. +// A partition dimension defined by a timestamp attribute. type TimestampPartition struct { // The attribute name of the partition defined by a timestamp. @@ -1352,7 +1421,8 @@ type TimestampPartition struct { // This member is required. AttributeName *string - // The timestamp format of a partition defined by a timestamp. + // The timestamp format of a partition defined by a timestamp. The default format + // is seconds since epoch (January 1, 1970 at midnight UTC time). TimestampFormat *string noSmithyDocumentSerde diff --git a/service/iotanalytics/types/types_exported_test.go b/service/iotanalytics/types/types_exported_test.go index 2ac20341fb7..e508272787f 100644 --- a/service/iotanalytics/types/types_exported_test.go +++ b/service/iotanalytics/types/types_exported_test.go @@ -14,6 +14,9 @@ func ExampleDatastoreStorage_outputUsage() { case *types.DatastoreStorageMemberCustomerManagedS3: _ = v.Value // Value is types.CustomerManagedDatastoreS3Storage + case *types.DatastoreStorageMemberIotSiteWiseMultiLayerStorage: + _ = v.Value // Value is types.DatastoreIotSiteWiseMultiLayerStorage + case *types.DatastoreStorageMemberServiceManagedS3: _ = v.Value // Value is types.ServiceManagedDatastoreS3Storage @@ -28,3 +31,4 @@ func ExampleDatastoreStorage_outputUsage() { var _ *types.ServiceManagedDatastoreS3Storage var _ *types.CustomerManagedDatastoreS3Storage +var _ *types.DatastoreIotSiteWiseMultiLayerStorage diff --git a/service/iotanalytics/validators.go b/service/iotanalytics/validators.go index d46dd972431..e6b292995ec 100644 --- a/service/iotanalytics/validators.go +++ b/service/iotanalytics/validators.go @@ -1024,6 +1024,25 @@ func validateDatastoreActivity(v *types.DatastoreActivity) error { } } +func validateDatastoreIotSiteWiseMultiLayerStorage(v *types.DatastoreIotSiteWiseMultiLayerStorage) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatastoreIotSiteWiseMultiLayerStorage"} + if v.CustomerManagedS3Storage == nil { + invalidParams.Add(smithy.NewErrParamRequired("CustomerManagedS3Storage")) + } else if v.CustomerManagedS3Storage != nil { + if err := validateIotSiteWiseCustomerManagedDatastoreS3Storage(v.CustomerManagedS3Storage); err != nil { + invalidParams.AddNested("CustomerManagedS3Storage", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDatastorePartition(v *types.DatastorePartition) error { if v == nil { return nil @@ -1074,6 +1093,11 @@ func validateDatastoreStorage(v types.DatastoreStorage) error { invalidParams.AddNested("[customerManagedS3]", err.(smithy.InvalidParamsError)) } + case *types.DatastoreStorageMemberIotSiteWiseMultiLayerStorage: + if err := validateDatastoreIotSiteWiseMultiLayerStorage(&uv.Value); err != nil { + invalidParams.AddNested("[iotSiteWiseMultiLayerStorage]", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -1234,6 +1258,21 @@ func validateIotEventsDestinationConfiguration(v *types.IotEventsDestinationConf } } +func validateIotSiteWiseCustomerManagedDatastoreS3Storage(v *types.IotSiteWiseCustomerManagedDatastoreS3Storage) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "IotSiteWiseCustomerManagedDatastoreS3Storage"} + if v.Bucket == nil { + invalidParams.Add(smithy.NewErrParamRequired("Bucket")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateLambdaActivity(v *types.LambdaActivity) error { if v == nil { return nil diff --git a/service/iotsitewise/api_op_AssociateAssets.go b/service/iotsitewise/api_op_AssociateAssets.go index 4326c0d2359..214c1ac2638 100644 --- a/service/iotsitewise/api_op_AssociateAssets.go +++ b/service/iotsitewise/api_op_AssociateAssets.go @@ -154,7 +154,7 @@ func (m *endpointPrefix_opAssociateAssetsMiddleware) HandleSerialize(ctx context return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_CreateAsset.go b/service/iotsitewise/api_op_CreateAsset.go index 9c596b1a184..59c3ef5613b 100644 --- a/service/iotsitewise/api_op_CreateAsset.go +++ b/service/iotsitewise/api_op_CreateAsset.go @@ -173,7 +173,7 @@ func (m *endpointPrefix_opCreateAssetMiddleware) HandleSerialize(ctx context.Con return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_CreateAssetModel.go b/service/iotsitewise/api_op_CreateAssetModel.go index 67094bed258..d093098c2dc 100644 --- a/service/iotsitewise/api_op_CreateAssetModel.go +++ b/service/iotsitewise/api_op_CreateAssetModel.go @@ -199,7 +199,7 @@ func (m *endpointPrefix_opCreateAssetModelMiddleware) HandleSerialize(ctx contex return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_CreateGateway.go b/service/iotsitewise/api_op_CreateGateway.go index b7b2f0f31f1..86b3e761897 100644 --- a/service/iotsitewise/api_op_CreateGateway.go +++ b/service/iotsitewise/api_op_CreateGateway.go @@ -160,7 +160,7 @@ func (m *endpointPrefix_opCreateGatewayMiddleware) HandleSerialize(ctx context.C return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "edge." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DeleteAsset.go b/service/iotsitewise/api_op_DeleteAsset.go index 5e8a7a0fb72..6fa49d58378 100644 --- a/service/iotsitewise/api_op_DeleteAsset.go +++ b/service/iotsitewise/api_op_DeleteAsset.go @@ -150,7 +150,7 @@ func (m *endpointPrefix_opDeleteAssetMiddleware) HandleSerialize(ctx context.Con return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DeleteAssetModel.go b/service/iotsitewise/api_op_DeleteAssetModel.go index f4c48df9aac..020a3ba1eff 100644 --- a/service/iotsitewise/api_op_DeleteAssetModel.go +++ b/service/iotsitewise/api_op_DeleteAssetModel.go @@ -151,7 +151,7 @@ func (m *endpointPrefix_opDeleteAssetModelMiddleware) HandleSerialize(ctx contex return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DeleteGateway.go b/service/iotsitewise/api_op_DeleteGateway.go index 7560d02f334..a73774029ef 100644 --- a/service/iotsitewise/api_op_DeleteGateway.go +++ b/service/iotsitewise/api_op_DeleteGateway.go @@ -130,7 +130,7 @@ func (m *endpointPrefix_opDeleteGatewayMiddleware) HandleSerialize(ctx context.C return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "edge." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeAsset.go b/service/iotsitewise/api_op_DescribeAsset.go index d294b20ee61..0df04221f17 100644 --- a/service/iotsitewise/api_op_DescribeAsset.go +++ b/service/iotsitewise/api_op_DescribeAsset.go @@ -190,7 +190,7 @@ func (m *endpointPrefix_opDescribeAssetMiddleware) HandleSerialize(ctx context.C return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeAssetModel.go b/service/iotsitewise/api_op_DescribeAssetModel.go index 00687f4b8a0..114cc7e27cb 100644 --- a/service/iotsitewise/api_op_DescribeAssetModel.go +++ b/service/iotsitewise/api_op_DescribeAssetModel.go @@ -192,7 +192,7 @@ func (m *endpointPrefix_opDescribeAssetModelMiddleware) HandleSerialize(ctx cont return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeAssetProperty.go b/service/iotsitewise/api_op_DescribeAssetProperty.go index 3d192a29778..c1ae57b9f01 100644 --- a/service/iotsitewise/api_op_DescribeAssetProperty.go +++ b/service/iotsitewise/api_op_DescribeAssetProperty.go @@ -167,7 +167,7 @@ func (m *endpointPrefix_opDescribeAssetPropertyMiddleware) HandleSerialize(ctx c return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeDefaultEncryptionConfiguration.go b/service/iotsitewise/api_op_DescribeDefaultEncryptionConfiguration.go index 3cdcd44220c..8e62cd9a500 100644 --- a/service/iotsitewise/api_op_DescribeDefaultEncryptionConfiguration.go +++ b/service/iotsitewise/api_op_DescribeDefaultEncryptionConfiguration.go @@ -4,6 +4,7 @@ package iotsitewise import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" @@ -103,6 +104,9 @@ func (c *Client) addOperationDescribeDefaultEncryptionConfigurationMiddlewares(s if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addEndpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware(stack); err != nil { + return err + } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeDefaultEncryptionConfiguration(options.Region), middleware.Before); err != nil { return err } @@ -118,6 +122,33 @@ func (c *Client) addOperationDescribeDefaultEncryptionConfigurationMiddlewares(s return nil } +type endpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware struct { +} + +func (*endpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opDescribeDefaultEncryptionConfigurationMiddleware{}, `OperationSerializer`, middleware.After) +} + func newServiceMetadataMiddleware_opDescribeDefaultEncryptionConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_DescribeGateway.go b/service/iotsitewise/api_op_DescribeGateway.go index 54149ffe03f..8a621209fff 100644 --- a/service/iotsitewise/api_op_DescribeGateway.go +++ b/service/iotsitewise/api_op_DescribeGateway.go @@ -172,7 +172,7 @@ func (m *endpointPrefix_opDescribeGatewayMiddleware) HandleSerialize(ctx context return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "edge." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go b/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go index 927d86e28d9..6de0bc9a267 100644 --- a/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go +++ b/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go @@ -178,7 +178,7 @@ func (m *endpointPrefix_opDescribeGatewayCapabilityConfigurationMiddleware) Hand return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "edge." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeLoggingOptions.go b/service/iotsitewise/api_op_DescribeLoggingOptions.go index c72676bab88..5a910109acf 100644 --- a/service/iotsitewise/api_op_DescribeLoggingOptions.go +++ b/service/iotsitewise/api_op_DescribeLoggingOptions.go @@ -127,7 +127,7 @@ func (m *endpointPrefix_opDescribeLoggingOptionsMiddleware) HandleSerialize(ctx return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_DescribeStorageConfiguration.go b/service/iotsitewise/api_op_DescribeStorageConfiguration.go index 372a4825912..d491a8a1a34 100644 --- a/service/iotsitewise/api_op_DescribeStorageConfiguration.go +++ b/service/iotsitewise/api_op_DescribeStorageConfiguration.go @@ -4,6 +4,7 @@ package iotsitewise import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" @@ -13,6 +14,9 @@ import ( ) // Retrieves information about the storage configuration for IoT SiteWise. +// Exporting data to Amazon S3 is currently in preview release and is subject to +// change. We recommend that you use this feature only with test data, and not in +// production environments. func (c *Client) DescribeStorageConfiguration(ctx context.Context, params *DescribeStorageConfigurationInput, optFns ...func(*Options)) (*DescribeStorageConfigurationOutput, error) { if params == nil { params = &DescribeStorageConfigurationInput{} @@ -109,6 +113,9 @@ func (c *Client) addOperationDescribeStorageConfigurationMiddlewares(stack *midd if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addEndpointPrefix_opDescribeStorageConfigurationMiddleware(stack); err != nil { + return err + } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeStorageConfiguration(options.Region), middleware.Before); err != nil { return err } @@ -124,6 +131,33 @@ func (c *Client) addOperationDescribeStorageConfigurationMiddlewares(stack *midd return nil } +type endpointPrefix_opDescribeStorageConfigurationMiddleware struct { +} + +func (*endpointPrefix_opDescribeStorageConfigurationMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDescribeStorageConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opDescribeStorageConfigurationMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opDescribeStorageConfigurationMiddleware{}, `OperationSerializer`, middleware.After) +} + func newServiceMetadataMiddleware_opDescribeStorageConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_DisassociateAssets.go b/service/iotsitewise/api_op_DisassociateAssets.go index d8423ed1ccf..b740604e7f5 100644 --- a/service/iotsitewise/api_op_DisassociateAssets.go +++ b/service/iotsitewise/api_op_DisassociateAssets.go @@ -153,7 +153,7 @@ func (m *endpointPrefix_opDisassociateAssetsMiddleware) HandleSerialize(ctx cont return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListAssetModels.go b/service/iotsitewise/api_op_ListAssetModels.go index 9bed9bffff4..299a846bee5 100644 --- a/service/iotsitewise/api_op_ListAssetModels.go +++ b/service/iotsitewise/api_op_ListAssetModels.go @@ -138,7 +138,7 @@ func (m *endpointPrefix_opListAssetModelsMiddleware) HandleSerialize(ctx context return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListAssetRelationships.go b/service/iotsitewise/api_op_ListAssetRelationships.go index ceddd93caac..532128e616d 100644 --- a/service/iotsitewise/api_op_ListAssetRelationships.go +++ b/service/iotsitewise/api_op_ListAssetRelationships.go @@ -158,7 +158,7 @@ func (m *endpointPrefix_opListAssetRelationshipsMiddleware) HandleSerialize(ctx return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListAssets.go b/service/iotsitewise/api_op_ListAssets.go index f147c3f88da..b8b4a8a93ca 100644 --- a/service/iotsitewise/api_op_ListAssets.go +++ b/service/iotsitewise/api_op_ListAssets.go @@ -166,7 +166,7 @@ func (m *endpointPrefix_opListAssetsMiddleware) HandleSerialize(ctx context.Cont return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListAssociatedAssets.go b/service/iotsitewise/api_op_ListAssociatedAssets.go index 17fb9d63705..0eb045ef322 100644 --- a/service/iotsitewise/api_op_ListAssociatedAssets.go +++ b/service/iotsitewise/api_op_ListAssociatedAssets.go @@ -175,7 +175,7 @@ func (m *endpointPrefix_opListAssociatedAssetsMiddleware) HandleSerialize(ctx co return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListGateways.go b/service/iotsitewise/api_op_ListGateways.go index ea539838ae8..34a8b6407d7 100644 --- a/service/iotsitewise/api_op_ListGateways.go +++ b/service/iotsitewise/api_op_ListGateways.go @@ -138,7 +138,7 @@ func (m *endpointPrefix_opListGatewaysMiddleware) HandleSerialize(ctx context.Co return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "edge." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_ListTagsForResource.go b/service/iotsitewise/api_op_ListTagsForResource.go index 053a85dc3ec..73b0350cb28 100644 --- a/service/iotsitewise/api_op_ListTagsForResource.go +++ b/service/iotsitewise/api_op_ListTagsForResource.go @@ -4,6 +4,7 @@ package iotsitewise import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" @@ -97,6 +98,9 @@ func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.St if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addEndpointPrefix_opListTagsForResourceMiddleware(stack); err != nil { + return err + } if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil { return err } @@ -115,6 +119,33 @@ func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.St return nil } +type endpointPrefix_opListTagsForResourceMiddleware struct { +} + +func (*endpointPrefix_opListTagsForResourceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opListTagsForResourceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opListTagsForResourceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opListTagsForResourceMiddleware{}, `OperationSerializer`, middleware.After) +} + func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_PutDefaultEncryptionConfiguration.go b/service/iotsitewise/api_op_PutDefaultEncryptionConfiguration.go index 5715721ae6a..e2bf60b6e79 100644 --- a/service/iotsitewise/api_op_PutDefaultEncryptionConfiguration.go +++ b/service/iotsitewise/api_op_PutDefaultEncryptionConfiguration.go @@ -4,6 +4,7 @@ package iotsitewise import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" @@ -112,6 +113,9 @@ func (c *Client) addOperationPutDefaultEncryptionConfigurationMiddlewares(stack if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addEndpointPrefix_opPutDefaultEncryptionConfigurationMiddleware(stack); err != nil { + return err + } if err = addOpPutDefaultEncryptionConfigurationValidationMiddleware(stack); err != nil { return err } @@ -130,6 +134,33 @@ func (c *Client) addOperationPutDefaultEncryptionConfigurationMiddlewares(stack return nil } +type endpointPrefix_opPutDefaultEncryptionConfigurationMiddleware struct { +} + +func (*endpointPrefix_opPutDefaultEncryptionConfigurationMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opPutDefaultEncryptionConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opPutDefaultEncryptionConfigurationMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opPutDefaultEncryptionConfigurationMiddleware{}, `OperationSerializer`, middleware.After) +} + func newServiceMetadataMiddleware_opPutDefaultEncryptionConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_PutLoggingOptions.go b/service/iotsitewise/api_op_PutLoggingOptions.go index ea29d37ccdc..7487613f421 100644 --- a/service/iotsitewise/api_op_PutLoggingOptions.go +++ b/service/iotsitewise/api_op_PutLoggingOptions.go @@ -130,7 +130,7 @@ func (m *endpointPrefix_opPutLoggingOptionsMiddleware) HandleSerialize(ctx conte return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_PutStorageConfiguration.go b/service/iotsitewise/api_op_PutStorageConfiguration.go index c288af2e115..109db091985 100644 --- a/service/iotsitewise/api_op_PutStorageConfiguration.go +++ b/service/iotsitewise/api_op_PutStorageConfiguration.go @@ -4,6 +4,7 @@ package iotsitewise import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" @@ -11,7 +12,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Configures storage settings for IoT SiteWise. +// Configures storage settings for IoT SiteWise. Exporting data to Amazon S3 is +// currently in preview release and is subject to change. We recommend that you use +// this feature only with test data, and not in production environments. func (c *Client) PutStorageConfiguration(ctx context.Context, params *PutStorageConfigurationInput, optFns ...func(*Options)) (*PutStorageConfigurationOutput, error) { if params == nil { params = &PutStorageConfigurationInput{} @@ -123,6 +126,9 @@ func (c *Client) addOperationPutStorageConfigurationMiddlewares(stack *middlewar if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addEndpointPrefix_opPutStorageConfigurationMiddleware(stack); err != nil { + return err + } if err = addOpPutStorageConfigurationValidationMiddleware(stack); err != nil { return err } @@ -141,6 +147,33 @@ func (c *Client) addOperationPutStorageConfigurationMiddlewares(stack *middlewar return nil } +type endpointPrefix_opPutStorageConfigurationMiddleware struct { +} + +func (*endpointPrefix_opPutStorageConfigurationMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opPutStorageConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opPutStorageConfigurationMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opPutStorageConfigurationMiddleware{}, `OperationSerializer`, middleware.After) +} + func newServiceMetadataMiddleware_opPutStorageConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_TagResource.go b/service/iotsitewise/api_op_TagResource.go index f59abe05398..4b2b3c484cb 100644 --- a/service/iotsitewise/api_op_TagResource.go +++ b/service/iotsitewise/api_op_TagResource.go @@ -4,6 +4,7 @@ package iotsitewise import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" @@ -99,6 +100,9 @@ func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, opt if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addEndpointPrefix_opTagResourceMiddleware(stack); err != nil { + return err + } if err = addOpTagResourceValidationMiddleware(stack); err != nil { return err } @@ -117,6 +121,33 @@ func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, opt return nil } +type endpointPrefix_opTagResourceMiddleware struct { +} + +func (*endpointPrefix_opTagResourceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opTagResourceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opTagResourceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opTagResourceMiddleware{}, `OperationSerializer`, middleware.After) +} + func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_UntagResource.go b/service/iotsitewise/api_op_UntagResource.go index 146649c1a4e..8cb27725e46 100644 --- a/service/iotsitewise/api_op_UntagResource.go +++ b/service/iotsitewise/api_op_UntagResource.go @@ -4,6 +4,7 @@ package iotsitewise import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" @@ -95,6 +96,9 @@ func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, o if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addEndpointPrefix_opUntagResourceMiddleware(stack); err != nil { + return err + } if err = addOpUntagResourceValidationMiddleware(stack); err != nil { return err } @@ -113,6 +117,33 @@ func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, o return nil } +type endpointPrefix_opUntagResourceMiddleware struct { +} + +func (*endpointPrefix_opUntagResourceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opUntagResourceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opUntagResourceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opUntagResourceMiddleware{}, `OperationSerializer`, middleware.After) +} + func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_UpdateAsset.go b/service/iotsitewise/api_op_UpdateAsset.go index 960710a8e55..8aa0f77c229 100644 --- a/service/iotsitewise/api_op_UpdateAsset.go +++ b/service/iotsitewise/api_op_UpdateAsset.go @@ -152,7 +152,7 @@ func (m *endpointPrefix_opUpdateAssetMiddleware) HandleSerialize(ctx context.Con return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_UpdateAssetModel.go b/service/iotsitewise/api_op_UpdateAssetModel.go index cd18f43d561..a7c8f118c4a 100644 --- a/service/iotsitewise/api_op_UpdateAssetModel.go +++ b/service/iotsitewise/api_op_UpdateAssetModel.go @@ -190,7 +190,7 @@ func (m *endpointPrefix_opUpdateAssetModelMiddleware) HandleSerialize(ctx contex return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_UpdateAssetProperty.go b/service/iotsitewise/api_op_UpdateAssetProperty.go index 47018bd51f3..3c48249a8d9 100644 --- a/service/iotsitewise/api_op_UpdateAssetProperty.go +++ b/service/iotsitewise/api_op_UpdateAssetProperty.go @@ -165,7 +165,7 @@ func (m *endpointPrefix_opUpdateAssetPropertyMiddleware) HandleSerialize(ctx con return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "model." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_UpdateGateway.go b/service/iotsitewise/api_op_UpdateGateway.go index cd26c2d64ce..0387415376d 100644 --- a/service/iotsitewise/api_op_UpdateGateway.go +++ b/service/iotsitewise/api_op_UpdateGateway.go @@ -134,7 +134,7 @@ func (m *endpointPrefix_opUpdateGatewayMiddleware) HandleSerialize(ctx context.C return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "edge." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go b/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go index 93d44c27aa1..a10c0d46669 100644 --- a/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go +++ b/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go @@ -177,7 +177,7 @@ func (m *endpointPrefix_opUpdateGatewayCapabilityConfigurationMiddleware) Handle return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } - req.URL.Host = "edge." + req.URL.Host + req.URL.Host = "api." + req.URL.Host return next.HandleSerialize(ctx, in) } diff --git a/service/iotsitewise/deserializers.go b/service/iotsitewise/deserializers.go index 118230d66a7..99c095ffca4 100644 --- a/service/iotsitewise/deserializers.go +++ b/service/iotsitewise/deserializers.go @@ -12569,6 +12569,89 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary return nil } +func awsRestjson1_deserializeDocumentDetailedError(v **types.DetailedError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DetailedError + if *v == nil { + sv = &types.DetailedError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "code": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DetailedErrorCode to be of type string, got %T instead", value) + } + sv.Code = types.DetailedErrorCode(jtv) + } + + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DetailedErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDetailedErrors(v *[]types.DetailedError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DetailedError + if *v == nil { + cv = []types.DetailedError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DetailedError + destAddr := &col + if err := awsRestjson1_deserializeDocumentDetailedError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentErrorDetails(v **types.ErrorDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12600,6 +12683,11 @@ func awsRestjson1_deserializeDocumentErrorDetails(v **types.ErrorDetails, value sv.Code = types.ErrorCode(jtv) } + case "details": + if err := awsRestjson1_deserializeDocumentDetailedErrors(&sv.Details, value); err != nil { + return err + } + case "message": if value != nil { jtv, ok := value.(string) @@ -12697,6 +12785,46 @@ func awsRestjson1_deserializeDocumentExpressionVariables(v *[]types.ExpressionVa return nil } +func awsRestjson1_deserializeDocumentForwardingConfig(v **types.ForwardingConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ForwardingConfig + if *v == nil { + sv = &types.ForwardingConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "state": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ForwardingConfigState to be of type string, got %T instead", value) + } + sv.State = types.ForwardingConfigState(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentGatewayCapabilitySummaries(v *[]types.GatewayCapabilitySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12807,6 +12935,11 @@ func awsRestjson1_deserializeDocumentGatewayPlatform(v **types.GatewayPlatform, return err } + case "greengrassV2": + if err := awsRestjson1_deserializeDocumentGreengrassV2(&sv.GreengrassV2, value); err != nil { + return err + } + default: _, _ = key, value @@ -12911,6 +13044,11 @@ func awsRestjson1_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va sv.GatewayName = ptr.String(jtv) } + case "gatewayPlatform": + if err := awsRestjson1_deserializeDocumentGatewayPlatform(&sv.GatewayPlatform, value); err != nil { + return err + } + case "lastUpdateDate": if value != nil { switch jtv := value.(type) { @@ -12976,6 +13114,46 @@ func awsRestjson1_deserializeDocumentGreengrass(v **types.Greengrass, value inte return nil } +func awsRestjson1_deserializeDocumentGreengrassV2(v **types.GreengrassV2, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GreengrassV2 + if *v == nil { + sv = &types.GreengrassV2{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "coreDeviceThingName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CoreDeviceThingName to be of type string, got %T instead", value) + } + sv.CoreDeviceThingName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentGroupIdentity(v **types.GroupIdentity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13453,6 +13631,47 @@ func awsRestjson1_deserializeDocumentMeasurement(v **types.Measurement, value in for key, value := range shape { switch key { + case "processingConfig": + if err := awsRestjson1_deserializeDocumentMeasurementProcessingConfig(&sv.ProcessingConfig, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentMeasurementProcessingConfig(v **types.MeasurementProcessingConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.MeasurementProcessingConfig + if *v == nil { + sv = &types.MeasurementProcessingConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "forwardingConfig": + if err := awsRestjson1_deserializeDocumentForwardingConfig(&sv.ForwardingConfig, value); err != nil { + return err + } + default: _, _ = key, value @@ -13493,6 +13712,11 @@ func awsRestjson1_deserializeDocumentMetric(v **types.Metric, value interface{}) sv.Expression = ptr.String(jtv) } + case "processingConfig": + if err := awsRestjson1_deserializeDocumentMetricProcessingConfig(&sv.ProcessingConfig, value); err != nil { + return err + } + case "variables": if err := awsRestjson1_deserializeDocumentExpressionVariables(&sv.Variables, value); err != nil { return err @@ -13512,6 +13736,46 @@ func awsRestjson1_deserializeDocumentMetric(v **types.Metric, value interface{}) return nil } +func awsRestjson1_deserializeDocumentMetricProcessingConfig(v **types.MetricProcessingConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.MetricProcessingConfig + if *v == nil { + sv = &types.MetricProcessingConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "computeLocation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ComputeLocation to be of type string, got %T instead", value) + } + sv.ComputeLocation = types.ComputeLocation(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentMetricWindow(v **types.MetricWindow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -14641,6 +14905,11 @@ func awsRestjson1_deserializeDocumentTransform(v **types.Transform, value interf sv.Expression = ptr.String(jtv) } + case "processingConfig": + if err := awsRestjson1_deserializeDocumentTransformProcessingConfig(&sv.ProcessingConfig, value); err != nil { + return err + } + case "variables": if err := awsRestjson1_deserializeDocumentExpressionVariables(&sv.Variables, value); err != nil { return err @@ -14655,6 +14924,51 @@ func awsRestjson1_deserializeDocumentTransform(v **types.Transform, value interf return nil } +func awsRestjson1_deserializeDocumentTransformProcessingConfig(v **types.TransformProcessingConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TransformProcessingConfig + if *v == nil { + sv = &types.TransformProcessingConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "computeLocation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ComputeLocation to be of type string, got %T instead", value) + } + sv.ComputeLocation = types.ComputeLocation(jtv) + } + + case "forwardingConfig": + if err := awsRestjson1_deserializeDocumentForwardingConfig(&sv.ForwardingConfig, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentTumblingWindow(v **types.TumblingWindow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/iotsitewise/serializers.go b/service/iotsitewise/serializers.go index d8bcd7da3e2..8525246141f 100644 --- a/service/iotsitewise/serializers.go +++ b/service/iotsitewise/serializers.go @@ -4852,6 +4852,18 @@ func awsRestjson1_serializeDocumentExpressionVariables(v []types.ExpressionVaria return nil } +func awsRestjson1_serializeDocumentForwardingConfig(v *types.ForwardingConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.State) > 0 { + ok := object.Key("state") + ok.String(string(v.State)) + } + + return nil +} + func awsRestjson1_serializeDocumentGatewayPlatform(v *types.GatewayPlatform, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4863,6 +4875,13 @@ func awsRestjson1_serializeDocumentGatewayPlatform(v *types.GatewayPlatform, val } } + if v.GreengrassV2 != nil { + ok := object.Key("greengrassV2") + if err := awsRestjson1_serializeDocumentGreengrassV2(v.GreengrassV2, ok); err != nil { + return err + } + } + return nil } @@ -4878,6 +4897,18 @@ func awsRestjson1_serializeDocumentGreengrass(v *types.Greengrass, value smithyj return nil } +func awsRestjson1_serializeDocumentGreengrassV2(v *types.GreengrassV2, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CoreDeviceThingName != nil { + ok := object.Key("coreDeviceThingName") + ok.String(*v.CoreDeviceThingName) + } + + return nil +} + func awsRestjson1_serializeDocumentGroupIdentity(v *types.GroupIdentity, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5012,6 +5043,27 @@ func awsRestjson1_serializeDocumentMeasurement(v *types.Measurement, value smith object := value.Object() defer object.Close() + if v.ProcessingConfig != nil { + ok := object.Key("processingConfig") + if err := awsRestjson1_serializeDocumentMeasurementProcessingConfig(v.ProcessingConfig, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentMeasurementProcessingConfig(v *types.MeasurementProcessingConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ForwardingConfig != nil { + ok := object.Key("forwardingConfig") + if err := awsRestjson1_serializeDocumentForwardingConfig(v.ForwardingConfig, ok); err != nil { + return err + } + } + return nil } @@ -5024,6 +5076,13 @@ func awsRestjson1_serializeDocumentMetric(v *types.Metric, value smithyjson.Valu ok.String(*v.Expression) } + if v.ProcessingConfig != nil { + ok := object.Key("processingConfig") + if err := awsRestjson1_serializeDocumentMetricProcessingConfig(v.ProcessingConfig, ok); err != nil { + return err + } + } + if v.Variables != nil { ok := object.Key("variables") if err := awsRestjson1_serializeDocumentExpressionVariables(v.Variables, ok); err != nil { @@ -5041,6 +5100,18 @@ func awsRestjson1_serializeDocumentMetric(v *types.Metric, value smithyjson.Valu return nil } +func awsRestjson1_serializeDocumentMetricProcessingConfig(v *types.MetricProcessingConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.ComputeLocation) > 0 { + ok := object.Key("computeLocation") + ok.String(string(v.ComputeLocation)) + } + + return nil +} + func awsRestjson1_serializeDocumentMetricWindow(v *types.MetricWindow, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5233,6 +5304,13 @@ func awsRestjson1_serializeDocumentTransform(v *types.Transform, value smithyjso ok.String(*v.Expression) } + if v.ProcessingConfig != nil { + ok := object.Key("processingConfig") + if err := awsRestjson1_serializeDocumentTransformProcessingConfig(v.ProcessingConfig, ok); err != nil { + return err + } + } + if v.Variables != nil { ok := object.Key("variables") if err := awsRestjson1_serializeDocumentExpressionVariables(v.Variables, ok); err != nil { @@ -5243,6 +5321,25 @@ func awsRestjson1_serializeDocumentTransform(v *types.Transform, value smithyjso return nil } +func awsRestjson1_serializeDocumentTransformProcessingConfig(v *types.TransformProcessingConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.ComputeLocation) > 0 { + ok := object.Key("computeLocation") + ok.String(string(v.ComputeLocation)) + } + + if v.ForwardingConfig != nil { + ok := object.Key("forwardingConfig") + if err := awsRestjson1_serializeDocumentForwardingConfig(v.ForwardingConfig, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentTumblingWindow(v *types.TumblingWindow, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/iotsitewise/types/enums.go b/service/iotsitewise/types/enums.go index 09c5f1b8a1c..e42c2410f42 100644 --- a/service/iotsitewise/types/enums.go +++ b/service/iotsitewise/types/enums.go @@ -168,6 +168,7 @@ const ( CapabilitySyncStatusInSync CapabilitySyncStatus = "IN_SYNC" CapabilitySyncStatusOutOfSync CapabilitySyncStatus = "OUT_OF_SYNC" CapabilitySyncStatusSyncFailed CapabilitySyncStatus = "SYNC_FAILED" + CapabilitySyncStatusUnknown CapabilitySyncStatus = "UNKNOWN" ) // Values returns all known values for CapabilitySyncStatus. Note that this can be @@ -178,6 +179,25 @@ func (CapabilitySyncStatus) Values() []CapabilitySyncStatus { "IN_SYNC", "OUT_OF_SYNC", "SYNC_FAILED", + "UNKNOWN", + } +} + +type ComputeLocation string + +// Enum values for ComputeLocation +const ( + ComputeLocationEdge ComputeLocation = "EDGE" + ComputeLocationCloud ComputeLocation = "CLOUD" +) + +// Values returns all known values for ComputeLocation. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ComputeLocation) Values() []ComputeLocation { + return []ComputeLocation{ + "EDGE", + "CLOUD", } } @@ -201,6 +221,24 @@ func (ConfigurationState) Values() []ConfigurationState { } } +type DetailedErrorCode string + +// Enum values for DetailedErrorCode +const ( + DetailedErrorCodeIncompatibleComputeLocation DetailedErrorCode = "INCOMPATIBLE_COMPUTE_LOCATION" + DetailedErrorCodeIncompatibleForwardingConfiguration DetailedErrorCode = "INCOMPATIBLE_FORWARDING_CONFIGURATION" +) + +// Values returns all known values for DetailedErrorCode. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (DetailedErrorCode) Values() []DetailedErrorCode { + return []DetailedErrorCode{ + "INCOMPATIBLE_COMPUTE_LOCATION", + "INCOMPATIBLE_FORWARDING_CONFIGURATION", + } +} + type EncryptionType string // Enum values for EncryptionType @@ -237,6 +275,24 @@ func (ErrorCode) Values() []ErrorCode { } } +type ForwardingConfigState string + +// Enum values for ForwardingConfigState +const ( + ForwardingConfigStateDisabled ForwardingConfigState = "DISABLED" + ForwardingConfigStateEnabled ForwardingConfigState = "ENABLED" +) + +// Values returns all known values for ForwardingConfigState. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ForwardingConfigState) Values() []ForwardingConfigState { + return []ForwardingConfigState{ + "DISABLED", + "ENABLED", + } +} + type IdentityType string // Enum values for IdentityType diff --git a/service/iotsitewise/types/types.go b/service/iotsitewise/types/types.go index 482ea01485e..dc679698310 100644 --- a/service/iotsitewise/types/types.go +++ b/service/iotsitewise/types/types.go @@ -764,6 +764,22 @@ type DashboardSummary struct { noSmithyDocumentSerde } +// Contains detailed error information. +type DetailedError struct { + + // The error code. + // + // This member is required. + Code DetailedErrorCode + + // The error message. + // + // This member is required. + Message *string + + noSmithyDocumentSerde +} + // Contains the details of an IoT SiteWise error. type ErrorDetails struct { @@ -777,6 +793,9 @@ type ErrorDetails struct { // This member is required. Message *string + // A list of detailed errors. + Details []DetailedError + noSmithyDocumentSerde } @@ -796,6 +815,17 @@ type ExpressionVariable struct { noSmithyDocumentSerde } +// The forwarding configuration for a given property. +type ForwardingConfig struct { + + // The forwarding state for the given property. + // + // This member is required. + State ForwardingConfigState + + noSmithyDocumentSerde +} + // Contains a summary of a gateway capability configuration. type GatewayCapabilitySummary struct { @@ -829,10 +859,11 @@ type GatewayCapabilitySummary struct { type GatewayPlatform struct { // A gateway that runs on IoT Greengrass. - // - // This member is required. Greengrass *Greengrass + // A gateway that runs on IoT Greengrass V2. + GreengrassV2 *GreengrassV2 + noSmithyDocumentSerde } @@ -866,6 +897,9 @@ type GatewaySummary struct { // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGatewayCapabilityConfiguration.html). GatewayCapabilitySummaries []GatewayCapabilitySummary + // Contains a gateway's platform information. + GatewayPlatform *GatewayPlatform + noSmithyDocumentSerde } @@ -893,6 +927,24 @@ type Greengrass struct { noSmithyDocumentSerde } +// Contains details for a gateway that runs on IoT Greengrass V2. To create a +// gateway that runs on IoT Greengrass V2, you must deploy the IoT SiteWise Edge +// component to your gateway device. Your Greengrass device role +// (https://docs.aws.amazon.com/greengrass/v2/developerguide/device-service-role.html) +// must use the AWSIoTSiteWiseEdgeAccess policy. For more information, see Using +// IoT SiteWise at the edge +// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/sw-gateways.html) in +// the IoT SiteWise User Guide. +type GreengrassV2 struct { + + // The name of the IoT thing for your IoT Greengrass V2 core device. + // + // This member is required. + CoreDeviceThingName *string + + noSmithyDocumentSerde +} + // Contains information for a group identity in an access policy. type GroupIdentity struct { @@ -1040,6 +1092,25 @@ type LoggingOptions struct { // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html#measurements) // in the IoT SiteWise User Guide. type Measurement struct { + + // The processing configuration for the given measurement property. You can + // configure measurements to be kept at the edge or forwarded to the Amazon Web + // Services Cloud. By default, measurements are forwarded to the cloud. + ProcessingConfig *MeasurementProcessingConfig + + noSmithyDocumentSerde +} + +// The processing configuration for the given measurement property. You can +// configure measurements to be kept at the edge or forwarded to the Amazon Web +// Services Cloud. By default, measurements are forwarded to the cloud. +type MeasurementProcessingConfig struct { + + // The forwarding configuration for the given measurement property. + // + // This member is required. + ForwardingConfig *ForwardingConfig + noSmithyDocumentSerde } @@ -1075,6 +1146,24 @@ type Metric struct { // This member is required. Window *MetricWindow + // The processing configuration for the given metric property. You can configure + // metrics to be computed at the edge or in the Amazon Web Services Cloud. By + // default, metrics are forwarded to the cloud. + ProcessingConfig *MetricProcessingConfig + + noSmithyDocumentSerde +} + +// The processing configuration for the given metric property. You can configure +// metrics to be computed at the edge or in the Amazon Web Services Cloud. By +// default, metrics are forwarded to the cloud. +type MetricProcessingConfig struct { + + // The compute location for the given metric property. + // + // This member is required. + ComputeLocation ComputeLocation + noSmithyDocumentSerde } @@ -1393,6 +1482,27 @@ type Transform struct { // This member is required. Variables []ExpressionVariable + // The processing configuration for the given transform property. You can configure + // transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. + // You can also configure transforms to be computed at the edge or in the cloud. + ProcessingConfig *TransformProcessingConfig + + noSmithyDocumentSerde +} + +// The processing configuration for the given transform property. You can configure +// transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. +// You can also configure transforms to be computed at the edge or in the cloud. +type TransformProcessingConfig struct { + + // The compute location for the given transform property. + // + // This member is required. + ComputeLocation ComputeLocation + + // The forwarding configuration for a given property. + ForwardingConfig *ForwardingConfig + noSmithyDocumentSerde } diff --git a/service/iotsitewise/validators.go b/service/iotsitewise/validators.go index 80c0a83ad83..4f4e3c9cd98 100644 --- a/service/iotsitewise/validators.go +++ b/service/iotsitewise/validators.go @@ -1555,18 +1555,36 @@ func validateExpressionVariables(v []types.ExpressionVariable) error { } } +func validateForwardingConfig(v *types.ForwardingConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ForwardingConfig"} + if len(v.State) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("State")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateGatewayPlatform(v *types.GatewayPlatform) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GatewayPlatform"} - if v.Greengrass == nil { - invalidParams.Add(smithy.NewErrParamRequired("Greengrass")) - } else if v.Greengrass != nil { + if v.Greengrass != nil { if err := validateGreengrass(v.Greengrass); err != nil { invalidParams.AddNested("Greengrass", err.(smithy.InvalidParamsError)) } } + if v.GreengrassV2 != nil { + if err := validateGreengrassV2(v.GreengrassV2); err != nil { + invalidParams.AddNested("GreengrassV2", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1589,6 +1607,21 @@ func validateGreengrass(v *types.Greengrass) error { } } +func validateGreengrassV2(v *types.GreengrassV2) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GreengrassV2"} + if v.CoreDeviceThingName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CoreDeviceThingName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateGroupIdentity(v *types.GroupIdentity) error { if v == nil { return nil @@ -1716,6 +1749,42 @@ func validateLoggingOptions(v *types.LoggingOptions) error { } } +func validateMeasurement(v *types.Measurement) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Measurement"} + if v.ProcessingConfig != nil { + if err := validateMeasurementProcessingConfig(v.ProcessingConfig); err != nil { + invalidParams.AddNested("ProcessingConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMeasurementProcessingConfig(v *types.MeasurementProcessingConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MeasurementProcessingConfig"} + if v.ForwardingConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("ForwardingConfig")) + } else if v.ForwardingConfig != nil { + if err := validateForwardingConfig(v.ForwardingConfig); err != nil { + invalidParams.AddNested("ForwardingConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateMetric(v *types.Metric) error { if v == nil { return nil @@ -1738,6 +1807,26 @@ func validateMetric(v *types.Metric) error { invalidParams.AddNested("Window", err.(smithy.InvalidParamsError)) } } + if v.ProcessingConfig != nil { + if err := validateMetricProcessingConfig(v.ProcessingConfig); err != nil { + invalidParams.AddNested("ProcessingConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMetricProcessingConfig(v *types.MetricProcessingConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MetricProcessingConfig"} + if len(v.ComputeLocation) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ComputeLocation")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1816,6 +1905,11 @@ func validatePropertyType(v *types.PropertyType) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "PropertyType"} + if v.Measurement != nil { + if err := validateMeasurement(v.Measurement); err != nil { + invalidParams.AddNested("Measurement", err.(smithy.InvalidParamsError)) + } + } if v.Transform != nil { if err := validateTransform(v.Transform); err != nil { invalidParams.AddNested("Transform", err.(smithy.InvalidParamsError)) @@ -1924,6 +2018,31 @@ func validateTransform(v *types.Transform) error { invalidParams.AddNested("Variables", err.(smithy.InvalidParamsError)) } } + if v.ProcessingConfig != nil { + if err := validateTransformProcessingConfig(v.ProcessingConfig); err != nil { + invalidParams.AddNested("ProcessingConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTransformProcessingConfig(v *types.TransformProcessingConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TransformProcessingConfig"} + if len(v.ComputeLocation) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ComputeLocation")) + } + if v.ForwardingConfig != nil { + if err := validateForwardingConfig(v.ForwardingConfig); err != nil { + invalidParams.AddNested("ForwardingConfig", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/iotwireless/api_op_GetLogLevelsByResourceTypes.go b/service/iotwireless/api_op_GetLogLevelsByResourceTypes.go index 1ecf7d491aa..e89185f88f6 100644 --- a/service/iotwireless/api_op_GetLogLevelsByResourceTypes.go +++ b/service/iotwireless/api_op_GetLogLevelsByResourceTypes.go @@ -11,8 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns current default log-levels, or log levels by resource types, could be -// for wireless device log options or wireless gateway log options. +// Returns current default log levels or log levels by resource types. Based on +// resource types, log levels can be for wireless device log options or wireless +// gateway log options. func (c *Client) GetLogLevelsByResourceTypes(ctx context.Context, params *GetLogLevelsByResourceTypesInput, optFns ...func(*Options)) (*GetLogLevelsByResourceTypesOutput, error) { if params == nil { params = &GetLogLevelsByResourceTypesInput{} diff --git a/service/iotwireless/api_op_GetResourceLogLevel.go b/service/iotwireless/api_op_GetResourceLogLevel.go index 12be2883f22..98afd5c778a 100644 --- a/service/iotwireless/api_op_GetResourceLogLevel.go +++ b/service/iotwireless/api_op_GetResourceLogLevel.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Fetches the log-level override if any for a given resource-ID and resource-type, -// coulde be a wireless device or a wireless gateway. +// Fetches the log-level override, if any, for a given resource-ID and +// resource-type. It can be used for a wireless device or a wireless gateway. func (c *Client) GetResourceLogLevel(ctx context.Context, params *GetResourceLogLevelInput, optFns ...func(*Options)) (*GetResourceLogLevelOutput, error) { if params == nil { params = &GetResourceLogLevelInput{} @@ -31,12 +31,12 @@ func (c *Client) GetResourceLogLevel(ctx context.Context, params *GetResourceLog type GetResourceLogLevelInput struct { // The identifier of the resource. For a Wireless Device, it is the wireless device - // id. For a wireless gateway, it is the wireless gateway id. + // ID. For a wireless gateway, it is the wireless gateway ID. // // This member is required. ResourceIdentifier *string - // The type of the resource, currently support WirelessDevice and WirelessGateway. + // The type of the resource, which can be WirelessDevice or WirelessGateway. // // This member is required. ResourceType *string diff --git a/service/iotwireless/api_op_PutResourceLogLevel.go b/service/iotwireless/api_op_PutResourceLogLevel.go index fb6690be016..7404f59eeb2 100644 --- a/service/iotwireless/api_op_PutResourceLogLevel.go +++ b/service/iotwireless/api_op_PutResourceLogLevel.go @@ -11,8 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Sets the log-level override for a resource-ID and resource-type, could be a -// wireless gateway or a wireless device. +// Sets the log-level override for a resource-ID and resource-type. This option can +// be specified for a wireless gateway or a wireless device. A limit of 200 log +// level override can be set per account. func (c *Client) PutResourceLogLevel(ctx context.Context, params *PutResourceLogLevelInput, optFns ...func(*Options)) (*PutResourceLogLevelOutput, error) { if params == nil { params = &PutResourceLogLevelInput{} @@ -36,12 +37,12 @@ type PutResourceLogLevelInput struct { LogLevel types.LogLevel // The identifier of the resource. For a Wireless Device, it is the wireless device - // id. For a wireless gateway, it is the wireless gateway id. + // ID. For a wireless gateway, it is the wireless gateway ID. // // This member is required. ResourceIdentifier *string - // The type of the resource, currently support WirelessDevice and WirelessGateway. + // The type of the resource, which can be WirelessDevice or WirelessGateway. // // This member is required. ResourceType *string diff --git a/service/iotwireless/api_op_ResetAllResourceLogLevels.go b/service/iotwireless/api_op_ResetAllResourceLogLevels.go index 50d1ca1c45e..aac8c777fbf 100644 --- a/service/iotwireless/api_op_ResetAllResourceLogLevels.go +++ b/service/iotwireless/api_op_ResetAllResourceLogLevels.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Remove log-level overrides if any for all resources (both wireless devices and -// wireless gateways). +// Removes the log-level overrides for all resources; both wireless devices and +// wireless gateways. func (c *Client) ResetAllResourceLogLevels(ctx context.Context, params *ResetAllResourceLogLevelsInput, optFns ...func(*Options)) (*ResetAllResourceLogLevelsOutput, error) { if params == nil { params = &ResetAllResourceLogLevelsInput{} diff --git a/service/iotwireless/api_op_ResetResourceLogLevel.go b/service/iotwireless/api_op_ResetResourceLogLevel.go index dabc6364a4b..efab8529cfb 100644 --- a/service/iotwireless/api_op_ResetResourceLogLevel.go +++ b/service/iotwireless/api_op_ResetResourceLogLevel.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Remove log-level override if any for a specific resource-ID and resource-type, -// could be a wireless device or a wireless gateway. +// Removes the log-level override, if any, for a specific resource-ID and +// resource-type. It can be used for a wireless device or a wireless gateway. func (c *Client) ResetResourceLogLevel(ctx context.Context, params *ResetResourceLogLevelInput, optFns ...func(*Options)) (*ResetResourceLogLevelOutput, error) { if params == nil { params = &ResetResourceLogLevelInput{} @@ -30,12 +30,12 @@ func (c *Client) ResetResourceLogLevel(ctx context.Context, params *ResetResourc type ResetResourceLogLevelInput struct { // The identifier of the resource. For a Wireless Device, it is the wireless device - // id. For a wireless gateway, it is the wireless gateway id. + // ID. For a wireless gateway, it is the wireless gateway ID. // // This member is required. ResourceIdentifier *string - // The type of the resource, currently support WirelessDevice and WirelessGateway. + // The type of the resource, which can be WirelessDevice or WirelessGateway. // // This member is required. ResourceType *string diff --git a/service/iotwireless/api_op_SendDataToWirelessDevice.go b/service/iotwireless/api_op_SendDataToWirelessDevice.go index d913438dd04..dec0db915ff 100644 --- a/service/iotwireless/api_op_SendDataToWirelessDevice.go +++ b/service/iotwireless/api_op_SendDataToWirelessDevice.go @@ -34,7 +34,7 @@ type SendDataToWirelessDeviceInput struct { // This member is required. Id *string - // The message payload to send. + // The binary to be sent to the end device, encoded in base64. // // This member is required. PayloadData *string diff --git a/service/iotwireless/api_op_UpdateLogLevelsByResourceTypes.go b/service/iotwireless/api_op_UpdateLogLevelsByResourceTypes.go index 85c6721951a..2501c9a1148 100644 --- a/service/iotwireless/api_op_UpdateLogLevelsByResourceTypes.go +++ b/service/iotwireless/api_op_UpdateLogLevelsByResourceTypes.go @@ -11,9 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Set default log level, or log levels by resource types, could be for wireless -// device log options or wireless gateways log options. This is to control the log -// messages that will be displayed in CloudWatch. +// Set default log level, or log levels by resource types. This can be for wireless +// device log options or wireless gateways log options and is used to control the +// log messages that'll be displayed in CloudWatch. func (c *Client) UpdateLogLevelsByResourceTypes(ctx context.Context, params *UpdateLogLevelsByResourceTypesInput, optFns ...func(*Options)) (*UpdateLogLevelsByResourceTypesOutput, error) { if params == nil { params = &UpdateLogLevelsByResourceTypesInput{} diff --git a/service/iotwireless/deserializers.go b/service/iotwireless/deserializers.go index ab21148d44e..cd6e3b28825 100644 --- a/service/iotwireless/deserializers.go +++ b/service/iotwireless/deserializers.go @@ -10748,6 +10748,15 @@ func awsRestjson1_deserializeDocumentSidewalkDevice(v **types.SidewalkDevice, va for key, value := range shape { switch key { + case "AmazonId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AmazonId to be of type string, got %T instead", value) + } + sv.AmazonId = ptr.String(jtv) + } + case "DeviceCertificates": if err := awsRestjson1_deserializeDocumentDeviceCertificateList(&sv.DeviceCertificates, value); err != nil { return err diff --git a/service/iotwireless/types/enums.go b/service/iotwireless/types/enums.go index 11612b54627..09636a67f16 100644 --- a/service/iotwireless/types/enums.go +++ b/service/iotwireless/types/enums.go @@ -208,9 +208,10 @@ type WirelessDeviceIdType string // Enum values for WirelessDeviceIdType const ( - WirelessDeviceIdTypeWirelessDeviceId WirelessDeviceIdType = "WirelessDeviceId" - WirelessDeviceIdTypeDevEui WirelessDeviceIdType = "DevEui" - WirelessDeviceIdTypeThingName WirelessDeviceIdType = "ThingName" + WirelessDeviceIdTypeWirelessDeviceId WirelessDeviceIdType = "WirelessDeviceId" + WirelessDeviceIdTypeDevEui WirelessDeviceIdType = "DevEui" + WirelessDeviceIdTypeThingName WirelessDeviceIdType = "ThingName" + WirelessDeviceIdTypeSidewalkManufacturingSn WirelessDeviceIdType = "SidewalkManufacturingSn" ) // Values returns all known values for WirelessDeviceIdType. Note that this can be @@ -221,6 +222,7 @@ func (WirelessDeviceIdType) Values() []WirelessDeviceIdType { "WirelessDeviceId", "DevEui", "ThingName", + "SidewalkManufacturingSn", } } diff --git a/service/iotwireless/types/types.go b/service/iotwireless/types/types.go index 4dceb4703b8..34ce5cd58da 100644 --- a/service/iotwireless/types/types.go +++ b/service/iotwireless/types/types.go @@ -495,6 +495,9 @@ type SidewalkAccountInfoWithFingerprint struct { // Sidewalk device object. type SidewalkDevice struct { + // The Sidewalk Amazon ID. + AmazonId *string + // The sidewalk device certificates for Ed25519 and P256r1. DeviceCertificates []CertificateList @@ -546,7 +549,7 @@ type SidewalkListDevice struct { // Information about a Sidewalk router. type SidewalkSendDataToDevice struct { - // Sidewalk device message type. + // Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY. MessageType MessageType // The sequence number. @@ -610,10 +613,10 @@ type UpdateWirelessGatewayTaskEntry struct { noSmithyDocumentSerde } -// The log option for a wireless device event. Can be used to set log level for a -// specific wireless device event. For a LoRaWAN device, the possible events for a -// log messsage are: Join, Rejoin, Downlink_Data, Uplink_Data. For a Sidewalk -// device, the possible events for a log message are: Registration, Downlink_Data, +// The log options for a wireless device event and can be used to set log levels +// for a specific wireless device event. For a LoRaWAN device, possible events for +// a log messsage are: Join, Rejoin, Downlink_Data, and Uplink_Data. For a Sidewalk +// device, possible events for a log message are Registration, Downlink_Data, and // Uplink_Data. type WirelessDeviceEventLogOption struct { @@ -630,8 +633,8 @@ type WirelessDeviceEventLogOption struct { noSmithyDocumentSerde } -// The log option for wireless devices. Can be used to set log level for a specific -// type of wireless device. +// The log options for wireless devices and can be used to set log levels for a +// specific type of wireless device. type WirelessDeviceLogOption struct { // The log level for a log message. @@ -680,9 +683,9 @@ type WirelessDeviceStatistics struct { noSmithyDocumentSerde } -// The log option for a wireless gateway event. Can be used to set log level for a -// specific wireless gateway event. For a LoRaWAN gateway, the possible events for -// a log message are: CUPS_Request, Certificate. +// The log options for a wireless gateway event and can be used to set log levels +// for a specific wireless gateway event. For a LoRaWAN gateway, possible events +// for a log message are CUPS_Request and Certificate. type WirelessGatewayEventLogOption struct { // The event for a log message, if the log message is tied to a wireless gateway. @@ -698,7 +701,7 @@ type WirelessGatewayEventLogOption struct { noSmithyDocumentSerde } -// The log option for wireless gateways. Can be used to set log level for a +// The log options for wireless gateways and can be used to set log levels for a // specific type of wireless gateway. type WirelessGatewayLogOption struct { diff --git a/service/kendra/api_op_CreateIndex.go b/service/kendra/api_op_CreateIndex.go index bc891781601..3fced63c8be 100644 --- a/service/kendra/api_op_CreateIndex.go +++ b/service/kendra/api_op_CreateIndex.go @@ -59,7 +59,9 @@ type CreateIndexInput struct { // indexes intended for development, testing, or proof of concept. Use // ENTERPRISE_EDITION for your production databases. Once you set the edition for // an index, it can't be changed. The Edition parameter is optional. If you don't - // supply a value, the default is ENTERPRISE_EDITION. + // supply a value, the default is ENTERPRISE_EDITION. For more information on quota + // limits for enterprise and developer editions, see Quotas + // (https://docs.aws.amazon.com/kendra/latest/dg/quotas.html). Edition types.IndexEdition // The identifier of the KMScustomer managed key (CMK) to use to encrypt data diff --git a/service/kendra/api_op_SubmitFeedback.go b/service/kendra/api_op_SubmitFeedback.go index a78bef8a230..7857713e2db 100644 --- a/service/kendra/api_op_SubmitFeedback.go +++ b/service/kendra/api_op_SubmitFeedback.go @@ -12,7 +12,7 @@ import ( ) // Enables you to provide feedback to Amazon Kendra to improve the performance of -// the service. +// your index. func (c *Client) SubmitFeedback(ctx context.Context, params *SubmitFeedbackInput, optFns ...func(*Options)) (*SubmitFeedbackOutput, error) { if params == nil { params = &SubmitFeedbackInput{} diff --git a/service/kendra/deserializers.go b/service/kendra/deserializers.go index e0cc8dad6e0..c11e85d637f 100644 --- a/service/kendra/deserializers.go +++ b/service/kendra/deserializers.go @@ -7188,6 +7188,11 @@ func awsAwsjson11_deserializeDocumentDataSourceConfiguration(v **types.DataSourc return err } + case "WorkDocsConfiguration": + if err := awsAwsjson11_deserializeDocumentWorkDocsConfiguration(&sv.WorkDocsConfiguration, value); err != nil { + return err + } + default: _, _ = key, value @@ -12520,6 +12525,79 @@ func awsAwsjson11_deserializeDocumentWebCrawlerConfiguration(v **types.WebCrawle return nil } +func awsAwsjson11_deserializeDocumentWorkDocsConfiguration(v **types.WorkDocsConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.WorkDocsConfiguration + if *v == nil { + sv = &types.WorkDocsConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CrawlComments": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.CrawlComments = jtv + } + + case "ExclusionPatterns": + if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.ExclusionPatterns, value); err != nil { + return err + } + + case "FieldMappings": + if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(&sv.FieldMappings, value); err != nil { + return err + } + + case "InclusionPatterns": + if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.InclusionPatterns, value); err != nil { + return err + } + + case "OrganizationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OrganizationId to be of type string, got %T instead", value) + } + sv.OrganizationId = ptr.String(jtv) + } + + case "UseChangeLog": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.UseChangeLog = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentBatchDeleteDocumentOutput(v **BatchDeleteDocumentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/kendra/serializers.go b/service/kendra/serializers.go index 918ec5b23de..7e778673b0b 100644 --- a/service/kendra/serializers.go +++ b/service/kendra/serializers.go @@ -2746,6 +2746,13 @@ func awsAwsjson11_serializeDocumentDataSourceConfiguration(v *types.DataSourceCo } } + if v.WorkDocsConfiguration != nil { + ok := object.Key("WorkDocsConfiguration") + if err := awsAwsjson11_serializeDocumentWorkDocsConfiguration(v.WorkDocsConfiguration, ok); err != nil { + return err + } + } + return nil } @@ -4579,6 +4586,49 @@ func awsAwsjson11_serializeDocumentWebCrawlerConfiguration(v *types.WebCrawlerCo return nil } +func awsAwsjson11_serializeDocumentWorkDocsConfiguration(v *types.WorkDocsConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CrawlComments { + ok := object.Key("CrawlComments") + ok.Boolean(v.CrawlComments) + } + + if v.ExclusionPatterns != nil { + ok := object.Key("ExclusionPatterns") + if err := awsAwsjson11_serializeDocumentDataSourceInclusionsExclusionsStrings(v.ExclusionPatterns, ok); err != nil { + return err + } + } + + if v.FieldMappings != nil { + ok := object.Key("FieldMappings") + if err := awsAwsjson11_serializeDocumentDataSourceToIndexFieldMappingList(v.FieldMappings, ok); err != nil { + return err + } + } + + if v.InclusionPatterns != nil { + ok := object.Key("InclusionPatterns") + if err := awsAwsjson11_serializeDocumentDataSourceInclusionsExclusionsStrings(v.InclusionPatterns, ok); err != nil { + return err + } + } + + if v.OrganizationId != nil { + ok := object.Key("OrganizationId") + ok.String(*v.OrganizationId) + } + + if v.UseChangeLog { + ok := object.Key("UseChangeLog") + ok.Boolean(v.UseChangeLog) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentBatchDeleteDocumentInput(v *BatchDeleteDocumentInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/kendra/types/enums.go b/service/kendra/types/enums.go index 7dcb60243e3..e086d54c57a 100644 --- a/service/kendra/types/enums.go +++ b/service/kendra/types/enums.go @@ -278,6 +278,7 @@ const ( DataSourceTypeConfluence DataSourceType = "CONFLUENCE" DataSourceTypeGoogledrive DataSourceType = "GOOGLEDRIVE" DataSourceTypeWebcrawler DataSourceType = "WEBCRAWLER" + DataSourceTypeWorkdocs DataSourceType = "WORKDOCS" ) // Values returns all known values for DataSourceType. Note that this can be @@ -295,6 +296,7 @@ func (DataSourceType) Values() []DataSourceType { "CONFLUENCE", "GOOGLEDRIVE", "WEBCRAWLER", + "WORKDOCS", } } diff --git a/service/kendra/types/types.go b/service/kendra/types/types.go index ac19f4ea37b..582772d90fa 100644 --- a/service/kendra/types/types.go +++ b/service/kendra/types/types.go @@ -69,7 +69,9 @@ type AdditionalResultAttributeValue struct { // // If you use more than 2 layers, you // receive a ValidationException exception with the message "AttributeFilter cannot -// have a depth of more than 2." +// have a depth of more than 2." If you use more than 10 attribute filters, you +// receive a ValidationException exception with the message "AttributeFilter cannot +// have a length of more than 10". type AttributeFilter struct { // Performs a logical AND operation on all supplied filters. @@ -205,20 +207,21 @@ type CapacityUnitsConfiguration struct { // The amount of extra query capacity for an index and GetQuerySuggestions // (https://docs.aws.amazon.com/kendra/latest/dg/API_GetQuerySuggestions.html) - // capacity. A single extra capacity unit for an index provides 0.5 queries per - // second or approximately 40,000 queries per day. GetQuerySuggestions capacity is - // 5 times the provisioned query capacity for an index. For example, the base - // capacity for an index is 0.5 queries per second, so GetQuerySuggestions capacity - // is 2.5 calls per second. If adding another 0.5 queries per second to total 1 - // queries per second for an index, the GetQuerySuggestions capacity is 5 calls per - // second. + // capacity. A single extra capacity unit for an index provides 0.1 queries per + // second or approximately 8,000 queries per day. GetQuerySuggestions capacity is + // five times the provisioned query capacity for an index, or the base capacity of + // 2.5 calls per second, whichever is higher. For example, the base capacity for an + // index is 0.1 queries per second, and GetQuerySuggestions capacity has a base of + // 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 + // queries per second for an index, the GetQuerySuggestions capacity is 2.5 calls + // per second (higher than five times 0.2 queries per second). // // This member is required. QueryCapacityUnits *int32 - // The amount of extra storage capacity for an index. A single capacity unit for an - // index provides 150 GB of storage space or 500,000 documents, whichever is - // reached first. + // The amount of extra storage capacity for an index. A single capacity unit + // provides 30 GB of storage space or 100,000 documents, whichever is reached + // first. // // This member is required. StorageCapacityUnits *int32 @@ -515,11 +518,11 @@ type ConnectionConfiguration struct { // This member is required. DatabasePort *int32 - // The Amazon Resource Name (ARN) of credentials stored in AWS Secrets Manager. The + // The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The // credentials should be a user/password pair. For more information, see Using a // Database Data Source // (https://docs.aws.amazon.com/kendra/latest/dg/data-source-database.html). For - // more information about AWS Secrets Manager, see What Is AWS Secrets Manager + // more information about Secrets Manager, see What Is Secrets Manager // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) in the // Secrets Manager user guide. // @@ -600,6 +603,10 @@ type DataSourceConfiguration struct { // Provides the configuration information required for Amazon Kendra web crawler. WebCrawlerConfiguration *WebCrawlerConfiguration + // Provides the configuration information to connect to WorkDocs as your data + // source. + WorkDocsConfiguration *WorkDocsConfiguration + noSmithyDocumentSerde } @@ -2058,12 +2065,12 @@ type ServiceNowServiceCatalogConfiguration struct { // source. type SharePointConfiguration struct { - // The Amazon Resource Name (ARN) of credentials stored in AWS Secrets Manager. The - // credentials should be a user/password pair. If you use SharePoint Sever, you + // The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The + // credentials should be a user/password pair. If you use SharePoint Server, you // also need to provide the sever domain name as part of the credentials. For more // information, see Using a Microsoft SharePoint Data Source // (https://docs.aws.amazon.com/kendra/latest/dg/data-source-sharepoint.html). For - // more information about AWS Secrets Manager, see What Is AWS Secrets Manager + // more information about Secrets Manager, see What Is Secrets Manager // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) in the // Secrets Manager user guide. // @@ -2494,6 +2501,60 @@ type WebCrawlerConfiguration struct { noSmithyDocumentSerde } +// Provides the configuration information to connect to Amazon WorkDocs as your +// data source. Amazon WorkDocs connector is available in Oregon, North Virginia, +// Sydney, Singapore and Ireland regions. +type WorkDocsConfiguration struct { + + // The identifier of the directory corresponding to your Amazon WorkDocs site + // repository. You can find the organization ID in the AWS Directory Service + // (https://console.aws.amazon.com/directoryservicev2/) by going to Active + // Directory, then Directories. Your Amazon WorkDocs site directory has an ID, + // which is the organization ID. You can also set up a new Amazon WorkDocs + // directory in the AWS Directory Service console and enable a Amazon WorkDocs site + // for the directory in the Amazon WorkDocs console. + // + // This member is required. + OrganizationId *string + + // TRUE to include comments on documents in your index. Including comments in your + // index means each comment is a document that can be searched on. The default is + // set to FALSE. + CrawlComments bool + + // A list of regular expression patterns to exclude certain files in your Amazon + // WorkDocs site repository. Files that match the patterns are excluded from the + // index. Files that don’t match the patterns are included in the index. If a file + // matches both an inclusion pattern and an exclusion pattern, the exclusion + // pattern takes precedence and the file isn’t included in the index. + ExclusionPatterns []string + + // A list of DataSourceToIndexFieldMapping objects that map Amazon WorkDocs field + // names to custom index field names in Amazon Kendra. You must first create the + // custom index fields using the UpdateIndex operation before you map to Amazon + // WorkDocs fields. For more information, see Mapping Data Source Fields + // (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). The Amazon + // WorkDocs data source field names need to exist in your Amazon WorkDocs custom + // metadata. + FieldMappings []DataSourceToIndexFieldMapping + + // A list of regular expression patterns to include certain files in your Amazon + // WorkDocs site repository. Files that match the patterns are included in the + // index. Files that don't match the patterns are excluded from the index. If a + // file matches both an inclusion pattern and an exclusion pattern, the exclusion + // pattern takes precedence and the file isn’t included in the index. + InclusionPatterns []string + + // TRUE to use the change logs to update documents in your index instead of + // scanning all documents. If you are syncing your Amazon WorkDocs data source with + // your index for the first time, all documents are scanned. After your first sync, + // you can use the change logs to update your documents in your index for future + // syncs. The default is set to FALSE. + UseChangeLog bool + + noSmithyDocumentSerde +} + type noSmithyDocumentSerde = smithydocument.NoSerde // UnknownUnionMember is returned when a union member is returned over the wire, diff --git a/service/kendra/validators.go b/service/kendra/validators.go index edd28d1120c..1f7538bd125 100644 --- a/service/kendra/validators.go +++ b/service/kendra/validators.go @@ -1388,6 +1388,11 @@ func validateDataSourceConfiguration(v *types.DataSourceConfiguration) error { invalidParams.AddNested("WebCrawlerConfiguration", err.(smithy.InvalidParamsError)) } } + if v.WorkDocsConfiguration != nil { + if err := validateWorkDocsConfiguration(v.WorkDocsConfiguration); err != nil { + invalidParams.AddNested("WorkDocsConfiguration", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2540,6 +2545,26 @@ func validateWebCrawlerConfiguration(v *types.WebCrawlerConfiguration) error { } } +func validateWorkDocsConfiguration(v *types.WorkDocsConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "WorkDocsConfiguration"} + if v.OrganizationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) + } + if v.FieldMappings != nil { + if err := validateDataSourceToIndexFieldMappingList(v.FieldMappings); err != nil { + invalidParams.AddNested("FieldMappings", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpBatchDeleteDocumentInput(v *BatchDeleteDocumentInput) error { if v == nil { return nil diff --git a/service/lambda/api_op_CreateEventSourceMapping.go b/service/lambda/api_op_CreateEventSourceMapping.go index 1545ed9ef82..f515f5de69a 100644 --- a/service/lambda/api_op_CreateEventSourceMapping.go +++ b/service/lambda/api_op_CreateEventSourceMapping.go @@ -169,7 +169,7 @@ type CreateEventSourceMappingInput struct { // The Self-Managed Apache Kafka cluster to send records. SelfManagedEventSource *types.SelfManagedEventSource - // An array of the authentication protocol, or the VPC components to secure your + // An array of authentication protocols or VPC components required to secure your // event source. SourceAccessConfigurations []types.SourceAccessConfiguration @@ -191,8 +191,8 @@ type CreateEventSourceMappingInput struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and an Lambda function. See -// CreateEventSourceMapping for details. +// A mapping between an Amazon Web Services resource and a Lambda function. For +// details, see CreateEventSourceMapping. type CreateEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. @@ -216,14 +216,15 @@ type CreateEventSourceMappingOutput struct { // mapping. FunctionResponseTypes []types.FunctionResponseType - // The date that the event source mapping was last updated, or its state changed. + // The date that the event source mapping was last updated or that its state + // changed. LastModified *time.Time - // The result of the last Lambda invocation of your Lambda function. + // The result of the last Lambda invocation of your function. LastProcessingResult *string - // (Streams and SQS standard queues) The maximum amount of time to gather records - // before invoking the function, in seconds. The default value is zero. + // (Streams and Amazon SQS standard queues) The maximum amount of time to gather + // records before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -237,23 +238,23 @@ type CreateEventSourceMappingOutput struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process from each shard concurrently. + // (Streams only) The number of batches to process concurrently from each shard. // The default value is 1. ParallelizationFactor *int32 - // (MQ) The name of the Amazon MQ broker destination queue to consume. + // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The Self-Managed Apache Kafka cluster for your event source. + // The self-managed Apache Kafka cluster for your event source. SelfManagedEventSource *types.SelfManagedEventSource - // An array of the authentication protocol, or the VPC components to secure your - // event source. + // An array of the authentication protocol, VPC components, or virtual host to + // secure and define your event source. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only - // supported for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is + // supported only for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -263,15 +264,15 @@ type CreateEventSourceMappingOutput struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether the last change to the event source mapping was made by a - // user, or by the Lambda service. + // Indicates whether a user or Lambda made the last change to the event source + // mapping. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // between 1 second up to 900 seconds. + // 1–900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. diff --git a/service/lambda/api_op_DeleteEventSourceMapping.go b/service/lambda/api_op_DeleteEventSourceMapping.go index 1f615ea82c7..5dbedb77753 100644 --- a/service/lambda/api_op_DeleteEventSourceMapping.go +++ b/service/lambda/api_op_DeleteEventSourceMapping.go @@ -42,8 +42,8 @@ type DeleteEventSourceMappingInput struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and an Lambda function. See -// CreateEventSourceMapping for details. +// A mapping between an Amazon Web Services resource and a Lambda function. For +// details, see CreateEventSourceMapping. type DeleteEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. @@ -67,14 +67,15 @@ type DeleteEventSourceMappingOutput struct { // mapping. FunctionResponseTypes []types.FunctionResponseType - // The date that the event source mapping was last updated, or its state changed. + // The date that the event source mapping was last updated or that its state + // changed. LastModified *time.Time - // The result of the last Lambda invocation of your Lambda function. + // The result of the last Lambda invocation of your function. LastProcessingResult *string - // (Streams and SQS standard queues) The maximum amount of time to gather records - // before invoking the function, in seconds. The default value is zero. + // (Streams and Amazon SQS standard queues) The maximum amount of time to gather + // records before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -88,23 +89,23 @@ type DeleteEventSourceMappingOutput struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process from each shard concurrently. + // (Streams only) The number of batches to process concurrently from each shard. // The default value is 1. ParallelizationFactor *int32 - // (MQ) The name of the Amazon MQ broker destination queue to consume. + // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The Self-Managed Apache Kafka cluster for your event source. + // The self-managed Apache Kafka cluster for your event source. SelfManagedEventSource *types.SelfManagedEventSource - // An array of the authentication protocol, or the VPC components to secure your - // event source. + // An array of the authentication protocol, VPC components, or virtual host to + // secure and define your event source. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only - // supported for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is + // supported only for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -114,15 +115,15 @@ type DeleteEventSourceMappingOutput struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether the last change to the event source mapping was made by a - // user, or by the Lambda service. + // Indicates whether a user or Lambda made the last change to the event source + // mapping. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // between 1 second up to 900 seconds. + // 1–900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. diff --git a/service/lambda/api_op_GetEventSourceMapping.go b/service/lambda/api_op_GetEventSourceMapping.go index a1b5b640f02..0f771aa2ba7 100644 --- a/service/lambda/api_op_GetEventSourceMapping.go +++ b/service/lambda/api_op_GetEventSourceMapping.go @@ -39,8 +39,8 @@ type GetEventSourceMappingInput struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and an Lambda function. See -// CreateEventSourceMapping for details. +// A mapping between an Amazon Web Services resource and a Lambda function. For +// details, see CreateEventSourceMapping. type GetEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. @@ -64,14 +64,15 @@ type GetEventSourceMappingOutput struct { // mapping. FunctionResponseTypes []types.FunctionResponseType - // The date that the event source mapping was last updated, or its state changed. + // The date that the event source mapping was last updated or that its state + // changed. LastModified *time.Time - // The result of the last Lambda invocation of your Lambda function. + // The result of the last Lambda invocation of your function. LastProcessingResult *string - // (Streams and SQS standard queues) The maximum amount of time to gather records - // before invoking the function, in seconds. The default value is zero. + // (Streams and Amazon SQS standard queues) The maximum amount of time to gather + // records before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -85,23 +86,23 @@ type GetEventSourceMappingOutput struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process from each shard concurrently. + // (Streams only) The number of batches to process concurrently from each shard. // The default value is 1. ParallelizationFactor *int32 - // (MQ) The name of the Amazon MQ broker destination queue to consume. + // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The Self-Managed Apache Kafka cluster for your event source. + // The self-managed Apache Kafka cluster for your event source. SelfManagedEventSource *types.SelfManagedEventSource - // An array of the authentication protocol, or the VPC components to secure your - // event source. + // An array of the authentication protocol, VPC components, or virtual host to + // secure and define your event source. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only - // supported for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is + // supported only for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -111,15 +112,15 @@ type GetEventSourceMappingOutput struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether the last change to the event source mapping was made by a - // user, or by the Lambda service. + // Indicates whether a user or Lambda made the last change to the event source + // mapping. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // between 1 second up to 900 seconds. + // 1–900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. diff --git a/service/lambda/api_op_ListEventSourceMappings.go b/service/lambda/api_op_ListEventSourceMappings.go index f31bad5aa2c..3ba1bcd7646 100644 --- a/service/lambda/api_op_ListEventSourceMappings.go +++ b/service/lambda/api_op_ListEventSourceMappings.go @@ -67,7 +67,9 @@ type ListEventSourceMappingsInput struct { // A pagination token returned by a previous call. Marker *string - // The maximum number of event source mappings to return. + // The maximum number of event source mappings to return. Note that + // ListEventSourceMappings returns a maximum of 100 items in each response, even if + // you set the number higher. MaxItems *int32 noSmithyDocumentSerde @@ -159,7 +161,9 @@ var _ ListEventSourceMappingsAPIClient = (*Client)(nil) // ListEventSourceMappingsPaginatorOptions is the paginator options for // ListEventSourceMappings type ListEventSourceMappingsPaginatorOptions struct { - // The maximum number of event source mappings to return. + // The maximum number of event source mappings to return. Note that + // ListEventSourceMappings returns a maximum of 100 items in each response, even if + // you set the number higher. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/lambda/api_op_UpdateEventSourceMapping.go b/service/lambda/api_op_UpdateEventSourceMapping.go index ef403f20b55..778c51d96a3 100644 --- a/service/lambda/api_op_UpdateEventSourceMapping.go +++ b/service/lambda/api_op_UpdateEventSourceMapping.go @@ -124,7 +124,7 @@ type UpdateEventSourceMappingInput struct { // (Streams only) The number of batches to process from each shard concurrently. ParallelizationFactor *int32 - // An array of the authentication protocol, or the VPC components to secure your + // An array of authentication protocols or VPC components required to secure your // event source. SourceAccessConfigurations []types.SourceAccessConfiguration @@ -135,8 +135,8 @@ type UpdateEventSourceMappingInput struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and an Lambda function. See -// CreateEventSourceMapping for details. +// A mapping between an Amazon Web Services resource and a Lambda function. For +// details, see CreateEventSourceMapping. type UpdateEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. @@ -160,14 +160,15 @@ type UpdateEventSourceMappingOutput struct { // mapping. FunctionResponseTypes []types.FunctionResponseType - // The date that the event source mapping was last updated, or its state changed. + // The date that the event source mapping was last updated or that its state + // changed. LastModified *time.Time - // The result of the last Lambda invocation of your Lambda function. + // The result of the last Lambda invocation of your function. LastProcessingResult *string - // (Streams and SQS standard queues) The maximum amount of time to gather records - // before invoking the function, in seconds. The default value is zero. + // (Streams and Amazon SQS standard queues) The maximum amount of time to gather + // records before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -181,23 +182,23 @@ type UpdateEventSourceMappingOutput struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process from each shard concurrently. + // (Streams only) The number of batches to process concurrently from each shard. // The default value is 1. ParallelizationFactor *int32 - // (MQ) The name of the Amazon MQ broker destination queue to consume. + // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The Self-Managed Apache Kafka cluster for your event source. + // The self-managed Apache Kafka cluster for your event source. SelfManagedEventSource *types.SelfManagedEventSource - // An array of the authentication protocol, or the VPC components to secure your - // event source. + // An array of the authentication protocol, VPC components, or virtual host to + // secure and define your event source. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only - // supported for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is + // supported only for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -207,15 +208,15 @@ type UpdateEventSourceMappingOutput struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether the last change to the event source mapping was made by a - // user, or by the Lambda service. + // Indicates whether a user or Lambda made the last change to the event source + // mapping. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // between 1 second up to 900 seconds. + // 1–900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. diff --git a/service/lambda/deserializers.go b/service/lambda/deserializers.go index 53127d42ae4..42ba87684e2 100644 --- a/service/lambda/deserializers.go +++ b/service/lambda/deserializers.go @@ -2458,6 +2458,9 @@ func awsRestjson1_deserializeOpErrorDeleteFunctionEventInvokeConfig(response *sm case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ResourceConflictException", errorCode): + return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -8859,6 +8862,9 @@ func awsRestjson1_deserializeOpErrorPutFunctionEventInvokeConfig(response *smith case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ResourceConflictException", errorCode): + return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -11280,6 +11286,9 @@ func awsRestjson1_deserializeOpErrorUpdateFunctionEventInvokeConfig(response *sm case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ResourceConflictException", errorCode): + return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) diff --git a/service/lambda/types/types.go b/service/lambda/types/types.go index c20acd38278..227dbd38da2 100644 --- a/service/lambda/types/types.go +++ b/service/lambda/types/types.go @@ -221,8 +221,8 @@ type EnvironmentResponse struct { noSmithyDocumentSerde } -// A mapping between an Amazon Web Services resource and an Lambda function. See -// CreateEventSourceMapping for details. +// A mapping between an Amazon Web Services resource and a Lambda function. For +// details, see CreateEventSourceMapping. type EventSourceMappingConfiguration struct { // The maximum number of items to retrieve in a single batch. @@ -246,14 +246,15 @@ type EventSourceMappingConfiguration struct { // mapping. FunctionResponseTypes []FunctionResponseType - // The date that the event source mapping was last updated, or its state changed. + // The date that the event source mapping was last updated or that its state + // changed. LastModified *time.Time - // The result of the last Lambda invocation of your Lambda function. + // The result of the last Lambda invocation of your function. LastProcessingResult *string - // (Streams and SQS standard queues) The maximum amount of time to gather records - // before invoking the function, in seconds. The default value is zero. + // (Streams and Amazon SQS standard queues) The maximum amount of time to gather + // records before invoking the function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams only) Discard records older than the specified age. The default value @@ -267,23 +268,23 @@ type EventSourceMappingConfiguration struct { // expires in the event source. MaximumRetryAttempts *int32 - // (Streams only) The number of batches to process from each shard concurrently. + // (Streams only) The number of batches to process concurrently from each shard. // The default value is 1. ParallelizationFactor *int32 - // (MQ) The name of the Amazon MQ broker destination queue to consume. + // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string - // The Self-Managed Apache Kafka cluster for your event source. + // The self-managed Apache Kafka cluster for your event source. SelfManagedEventSource *SelfManagedEventSource - // An array of the authentication protocol, or the VPC components to secure your - // event source. + // An array of the authentication protocol, VPC components, or virtual host to + // secure and define your event source. SourceAccessConfigurations []SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon - // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only - // supported for Amazon Kinesis streams. + // Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is + // supported only for Amazon Kinesis streams. StartingPosition EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. @@ -293,15 +294,15 @@ type EventSourceMappingConfiguration struct { // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string - // Indicates whether the last change to the event source mapping was made by a - // user, or by the Lambda service. + // Indicates whether a user or Lambda made the last change to the event source + // mapping. StateTransitionReason *string // The name of the Kafka topic. Topics []string // (Streams only) The duration in seconds of a processing window. The range is - // between 1 second up to 900 seconds. + // 1–900 seconds. TumblingWindowInSeconds *int32 // The identifier of the event source mapping. @@ -708,7 +709,7 @@ type ProvisionedConcurrencyConfigListItem struct { noSmithyDocumentSerde } -// The Self-Managed Apache Kafka cluster for your event source. +// The self-managed Apache Kafka cluster for your event source. type SelfManagedEventSource struct { // The list of bootstrap servers for your Kafka brokers in the following format: @@ -718,34 +719,39 @@ type SelfManagedEventSource struct { noSmithyDocumentSerde } -// You can specify the authentication protocol, or the VPC components to secure -// access to your event source. +// To secure and define access to your event source, you can specify the +// authentication protocol, VPC components, or virtual host. type SourceAccessConfiguration struct { - // The type of authentication protocol or the VPC components for your event source. - // For example: "Type":"SASL_SCRAM_512_AUTH". - // - // * BASIC_AUTH - (MQ) The Secrets - // Manager secret that stores your broker credentials. - // - // * VPC_SUBNET - The subnets - // associated with your VPC. Lambda connects to these subnets to fetch data from - // your Self-Managed Apache Kafka cluster. + // The type of authentication protocol, VPC components, or virtual host for your + // event source. For example: "Type":"SASL_SCRAM_512_AUTH". // - // * VPC_SECURITY_GROUP - The VPC security - // group used to manage access to your Self-Managed Apache Kafka brokers. + // * BASIC_AUTH - (Amazon + // MQ) The Secrets Manager secret that stores your broker credentials. // // * - // SASL_SCRAM_256_AUTH - The Secrets Manager ARN of your secret key used for SASL - // SCRAM-256 authentication of your Self-Managed Apache Kafka brokers. + // BASIC_AUTH - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret + // key used for SASL/PLAIN authentication of your Apache Kafka brokers. // // * - // SASL_SCRAM_512_AUTH - The Secrets Manager ARN of your secret key used for SASL - // SCRAM-512 authentication of your Self-Managed Apache Kafka brokers. + // VPC_SUBNET - The subnets associated with your VPC. Lambda connects to these + // subnets to fetch data from your self-managed Apache Kafka cluster. // // * - // VIRTUAL_HOST - The name of the virtual host in your RabbitMQ broker. Lambda will - // use this host as the event source. + // VPC_SECURITY_GROUP - The VPC security group used to manage access to your + // self-managed Apache Kafka brokers. + // + // * SASL_SCRAM_256_AUTH - The Secrets Manager + // ARN of your secret key used for SASL SCRAM-256 authentication of your + // self-managed Apache Kafka brokers. + // + // * SASL_SCRAM_512_AUTH - The Secrets Manager + // ARN of your secret key used for SASL SCRAM-512 authentication of your + // self-managed Apache Kafka brokers. + // + // * VIRTUAL_HOST - (Amazon MQ) The name of the + // virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the + // event source. Type SourceAccessType // The value for your chosen configuration in Type. For example: "URI": diff --git a/service/lexmodelbuildingservice/types/enums.go b/service/lexmodelbuildingservice/types/enums.go index dc244876560..ac4b992e035 100644 --- a/service/lexmodelbuildingservice/types/enums.go +++ b/service/lexmodelbuildingservice/types/enums.go @@ -165,6 +165,7 @@ const ( LocaleDeDe Locale = "de-DE" LocaleEnAu Locale = "en-AU" LocaleEnGb Locale = "en-GB" + LocaleEnIn Locale = "en-IN" LocaleEnUs Locale = "en-US" LocaleEs419 Locale = "es-419" LocaleEsEs Locale = "es-ES" @@ -183,6 +184,7 @@ func (Locale) Values() []Locale { "de-DE", "en-AU", "en-GB", + "en-IN", "en-US", "es-419", "es-ES", diff --git a/service/lexmodelsv2/api_op_DescribeBot.go b/service/lexmodelsv2/api_op_DescribeBot.go index 13055d9d9cd..1fc3f8522b3 100644 --- a/service/lexmodelsv2/api_op_DescribeBot.go +++ b/service/lexmodelsv2/api_op_DescribeBot.go @@ -4,11 +4,15 @@ package lexmodelsv2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" "time" ) @@ -139,6 +143,215 @@ func (c *Client) addOperationDescribeBotMiddlewares(stack *middleware.Stack, opt return nil } +// DescribeBotAPIClient is a client that implements the DescribeBot operation. +type DescribeBotAPIClient interface { + DescribeBot(context.Context, *DescribeBotInput, ...func(*Options)) (*DescribeBotOutput, error) +} + +var _ DescribeBotAPIClient = (*Client)(nil) + +// BotAvailableWaiterOptions are waiter options for BotAvailableWaiter +type BotAvailableWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // BotAvailableWaiter will use default minimum delay of 10 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, BotAvailableWaiter will use default max delay of 120 seconds. Note that + // MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeBotInput, *DescribeBotOutput, error) (bool, error) +} + +// BotAvailableWaiter defines the waiters for BotAvailable +type BotAvailableWaiter struct { + client DescribeBotAPIClient + + options BotAvailableWaiterOptions +} + +// NewBotAvailableWaiter constructs a BotAvailableWaiter. +func NewBotAvailableWaiter(client DescribeBotAPIClient, optFns ...func(*BotAvailableWaiterOptions)) *BotAvailableWaiter { + options := BotAvailableWaiterOptions{} + options.MinDelay = 10 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = botAvailableStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &BotAvailableWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for BotAvailable waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *BotAvailableWaiter) Wait(ctx context.Context, params *DescribeBotInput, maxWaitDur time.Duration, optFns ...func(*BotAvailableWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeBot(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for BotAvailable waiter") +} + +func botAvailableStateRetryable(ctx context.Context, input *DescribeBotInput, output *DescribeBotOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("botStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Available" + value, ok := pathValue.(types.BotStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("botStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Deleting" + value, ok := pathValue.(types.BotStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("botStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Failed" + value, ok := pathValue.(types.BotStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("botStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Inactive" + value, ok := pathValue.(types.BotStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeBot(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeBotAlias.go b/service/lexmodelsv2/api_op_DescribeBotAlias.go index cc642145967..cc39d071074 100644 --- a/service/lexmodelsv2/api_op_DescribeBotAlias.go +++ b/service/lexmodelsv2/api_op_DescribeBotAlias.go @@ -4,11 +4,15 @@ package lexmodelsv2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" "time" ) @@ -154,6 +158,199 @@ func (c *Client) addOperationDescribeBotAliasMiddlewares(stack *middleware.Stack return nil } +// DescribeBotAliasAPIClient is a client that implements the DescribeBotAlias +// operation. +type DescribeBotAliasAPIClient interface { + DescribeBotAlias(context.Context, *DescribeBotAliasInput, ...func(*Options)) (*DescribeBotAliasOutput, error) +} + +var _ DescribeBotAliasAPIClient = (*Client)(nil) + +// BotAliasAvailableWaiterOptions are waiter options for BotAliasAvailableWaiter +type BotAliasAvailableWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // BotAliasAvailableWaiter will use default minimum delay of 10 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, BotAliasAvailableWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeBotAliasInput, *DescribeBotAliasOutput, error) (bool, error) +} + +// BotAliasAvailableWaiter defines the waiters for BotAliasAvailable +type BotAliasAvailableWaiter struct { + client DescribeBotAliasAPIClient + + options BotAliasAvailableWaiterOptions +} + +// NewBotAliasAvailableWaiter constructs a BotAliasAvailableWaiter. +func NewBotAliasAvailableWaiter(client DescribeBotAliasAPIClient, optFns ...func(*BotAliasAvailableWaiterOptions)) *BotAliasAvailableWaiter { + options := BotAliasAvailableWaiterOptions{} + options.MinDelay = 10 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = botAliasAvailableStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &BotAliasAvailableWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for BotAliasAvailable waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *BotAliasAvailableWaiter) Wait(ctx context.Context, params *DescribeBotAliasInput, maxWaitDur time.Duration, optFns ...func(*BotAliasAvailableWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeBotAlias(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for BotAliasAvailable waiter") +} + +func botAliasAvailableStateRetryable(ctx context.Context, input *DescribeBotAliasInput, output *DescribeBotAliasOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("botAliasStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Available" + value, ok := pathValue.(types.BotAliasStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotAliasStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("botAliasStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Failed" + value, ok := pathValue.(types.BotAliasStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotAliasStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("botAliasStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Deleting" + value, ok := pathValue.(types.BotAliasStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotAliasStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeBotAlias(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeBotLocale.go b/service/lexmodelsv2/api_op_DescribeBotLocale.go index bf34b3b606f..39f56ad5f81 100644 --- a/service/lexmodelsv2/api_op_DescribeBotLocale.go +++ b/service/lexmodelsv2/api_op_DescribeBotLocale.go @@ -4,11 +4,15 @@ package lexmodelsv2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" "time" ) @@ -171,6 +175,659 @@ func (c *Client) addOperationDescribeBotLocaleMiddlewares(stack *middleware.Stac return nil } +// DescribeBotLocaleAPIClient is a client that implements the DescribeBotLocale +// operation. +type DescribeBotLocaleAPIClient interface { + DescribeBotLocale(context.Context, *DescribeBotLocaleInput, ...func(*Options)) (*DescribeBotLocaleOutput, error) +} + +var _ DescribeBotLocaleAPIClient = (*Client)(nil) + +// BotLocaleBuiltWaiterOptions are waiter options for BotLocaleBuiltWaiter +type BotLocaleBuiltWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // BotLocaleBuiltWaiter will use default minimum delay of 10 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, BotLocaleBuiltWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeBotLocaleInput, *DescribeBotLocaleOutput, error) (bool, error) +} + +// BotLocaleBuiltWaiter defines the waiters for BotLocaleBuilt +type BotLocaleBuiltWaiter struct { + client DescribeBotLocaleAPIClient + + options BotLocaleBuiltWaiterOptions +} + +// NewBotLocaleBuiltWaiter constructs a BotLocaleBuiltWaiter. +func NewBotLocaleBuiltWaiter(client DescribeBotLocaleAPIClient, optFns ...func(*BotLocaleBuiltWaiterOptions)) *BotLocaleBuiltWaiter { + options := BotLocaleBuiltWaiterOptions{} + options.MinDelay = 10 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = botLocaleBuiltStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &BotLocaleBuiltWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for BotLocaleBuilt waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *BotLocaleBuiltWaiter) Wait(ctx context.Context, params *DescribeBotLocaleInput, maxWaitDur time.Duration, optFns ...func(*BotLocaleBuiltWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeBotLocale(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for BotLocaleBuilt waiter") +} + +func botLocaleBuiltStateRetryable(ctx context.Context, input *DescribeBotLocaleInput, output *DescribeBotLocaleOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Built" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Deleting" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Failed" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "NotBuilt" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + +// BotLocaleCreatedWaiterOptions are waiter options for BotLocaleCreatedWaiter +type BotLocaleCreatedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // BotLocaleCreatedWaiter will use default minimum delay of 10 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, BotLocaleCreatedWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeBotLocaleInput, *DescribeBotLocaleOutput, error) (bool, error) +} + +// BotLocaleCreatedWaiter defines the waiters for BotLocaleCreated +type BotLocaleCreatedWaiter struct { + client DescribeBotLocaleAPIClient + + options BotLocaleCreatedWaiterOptions +} + +// NewBotLocaleCreatedWaiter constructs a BotLocaleCreatedWaiter. +func NewBotLocaleCreatedWaiter(client DescribeBotLocaleAPIClient, optFns ...func(*BotLocaleCreatedWaiterOptions)) *BotLocaleCreatedWaiter { + options := BotLocaleCreatedWaiterOptions{} + options.MinDelay = 10 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = botLocaleCreatedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &BotLocaleCreatedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for BotLocaleCreated waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *BotLocaleCreatedWaiter) Wait(ctx context.Context, params *DescribeBotLocaleInput, maxWaitDur time.Duration, optFns ...func(*BotLocaleCreatedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeBotLocale(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for BotLocaleCreated waiter") +} + +func botLocaleCreatedStateRetryable(ctx context.Context, input *DescribeBotLocaleInput, output *DescribeBotLocaleOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Built" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "ReadyExpressTesting" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "NotBuilt" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Deleting" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Failed" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + +// BotLocaleExpressTestingAvailableWaiterOptions are waiter options for +// BotLocaleExpressTestingAvailableWaiter +type BotLocaleExpressTestingAvailableWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // BotLocaleExpressTestingAvailableWaiter will use default minimum delay of 10 + // seconds. Note that MinDelay must resolve to a value lesser than or equal to the + // MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, BotLocaleExpressTestingAvailableWaiter will use default max delay of + // 120 seconds. Note that MaxDelay must resolve to value greater than or equal to + // the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeBotLocaleInput, *DescribeBotLocaleOutput, error) (bool, error) +} + +// BotLocaleExpressTestingAvailableWaiter defines the waiters for +// BotLocaleExpressTestingAvailable +type BotLocaleExpressTestingAvailableWaiter struct { + client DescribeBotLocaleAPIClient + + options BotLocaleExpressTestingAvailableWaiterOptions +} + +// NewBotLocaleExpressTestingAvailableWaiter constructs a +// BotLocaleExpressTestingAvailableWaiter. +func NewBotLocaleExpressTestingAvailableWaiter(client DescribeBotLocaleAPIClient, optFns ...func(*BotLocaleExpressTestingAvailableWaiterOptions)) *BotLocaleExpressTestingAvailableWaiter { + options := BotLocaleExpressTestingAvailableWaiterOptions{} + options.MinDelay = 10 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = botLocaleExpressTestingAvailableStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &BotLocaleExpressTestingAvailableWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for BotLocaleExpressTestingAvailable waiter. The +// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is +// required and must be greater than zero. +func (w *BotLocaleExpressTestingAvailableWaiter) Wait(ctx context.Context, params *DescribeBotLocaleInput, maxWaitDur time.Duration, optFns ...func(*BotLocaleExpressTestingAvailableWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeBotLocale(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for BotLocaleExpressTestingAvailable waiter") +} + +func botLocaleExpressTestingAvailableStateRetryable(ctx context.Context, input *DescribeBotLocaleInput, output *DescribeBotLocaleOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Built" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "ReadyExpressTesting" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Deleting" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Failed" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("botLocaleStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "NotBuilt" + value, ok := pathValue.(types.BotLocaleStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotLocaleStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeBotLocale(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeBotVersion.go b/service/lexmodelsv2/api_op_DescribeBotVersion.go index 2c8c3a39a4f..c97cc57a242 100644 --- a/service/lexmodelsv2/api_op_DescribeBotVersion.go +++ b/service/lexmodelsv2/api_op_DescribeBotVersion.go @@ -4,11 +4,16 @@ package lexmodelsv2 import ( "context" + "errors" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" "time" ) @@ -148,6 +153,207 @@ func (c *Client) addOperationDescribeBotVersionMiddlewares(stack *middleware.Sta return nil } +// DescribeBotVersionAPIClient is a client that implements the DescribeBotVersion +// operation. +type DescribeBotVersionAPIClient interface { + DescribeBotVersion(context.Context, *DescribeBotVersionInput, ...func(*Options)) (*DescribeBotVersionOutput, error) +} + +var _ DescribeBotVersionAPIClient = (*Client)(nil) + +// BotVersionAvailableWaiterOptions are waiter options for +// BotVersionAvailableWaiter +type BotVersionAvailableWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // BotVersionAvailableWaiter will use default minimum delay of 10 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, BotVersionAvailableWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeBotVersionInput, *DescribeBotVersionOutput, error) (bool, error) +} + +// BotVersionAvailableWaiter defines the waiters for BotVersionAvailable +type BotVersionAvailableWaiter struct { + client DescribeBotVersionAPIClient + + options BotVersionAvailableWaiterOptions +} + +// NewBotVersionAvailableWaiter constructs a BotVersionAvailableWaiter. +func NewBotVersionAvailableWaiter(client DescribeBotVersionAPIClient, optFns ...func(*BotVersionAvailableWaiterOptions)) *BotVersionAvailableWaiter { + options := BotVersionAvailableWaiterOptions{} + options.MinDelay = 10 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = botVersionAvailableStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &BotVersionAvailableWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for BotVersionAvailable waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *BotVersionAvailableWaiter) Wait(ctx context.Context, params *DescribeBotVersionInput, maxWaitDur time.Duration, optFns ...func(*BotVersionAvailableWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeBotVersion(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for BotVersionAvailable waiter") +} + +func botVersionAvailableStateRetryable(ctx context.Context, input *DescribeBotVersionInput, output *DescribeBotVersionOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("botStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Available" + value, ok := pathValue.(types.BotStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("botStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Deleting" + value, ok := pathValue.(types.BotStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("botStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Failed" + value, ok := pathValue.(types.BotStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BotStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err != nil { + var errorType *types.ResourceNotFoundException + if errors.As(err, &errorType) { + return true, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeBotVersion(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeExport.go b/service/lexmodelsv2/api_op_DescribeExport.go index 1eafed561ae..733e552c81e 100644 --- a/service/lexmodelsv2/api_op_DescribeExport.go +++ b/service/lexmodelsv2/api_op_DescribeExport.go @@ -4,11 +4,15 @@ package lexmodelsv2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" "time" ) @@ -136,6 +140,199 @@ func (c *Client) addOperationDescribeExportMiddlewares(stack *middleware.Stack, return nil } +// DescribeExportAPIClient is a client that implements the DescribeExport +// operation. +type DescribeExportAPIClient interface { + DescribeExport(context.Context, *DescribeExportInput, ...func(*Options)) (*DescribeExportOutput, error) +} + +var _ DescribeExportAPIClient = (*Client)(nil) + +// BotExportCompletedWaiterOptions are waiter options for BotExportCompletedWaiter +type BotExportCompletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // BotExportCompletedWaiter will use default minimum delay of 10 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, BotExportCompletedWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeExportInput, *DescribeExportOutput, error) (bool, error) +} + +// BotExportCompletedWaiter defines the waiters for BotExportCompleted +type BotExportCompletedWaiter struct { + client DescribeExportAPIClient + + options BotExportCompletedWaiterOptions +} + +// NewBotExportCompletedWaiter constructs a BotExportCompletedWaiter. +func NewBotExportCompletedWaiter(client DescribeExportAPIClient, optFns ...func(*BotExportCompletedWaiterOptions)) *BotExportCompletedWaiter { + options := BotExportCompletedWaiterOptions{} + options.MinDelay = 10 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = botExportCompletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &BotExportCompletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for BotExportCompleted waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *BotExportCompletedWaiter) Wait(ctx context.Context, params *DescribeExportInput, maxWaitDur time.Duration, optFns ...func(*BotExportCompletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeExport(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for BotExportCompleted waiter") +} + +func botExportCompletedStateRetryable(ctx context.Context, input *DescribeExportInput, output *DescribeExportOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("exportStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Completed" + value, ok := pathValue.(types.ExportStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ExportStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("exportStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Deleting" + value, ok := pathValue.(types.ExportStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ExportStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("exportStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Failed" + value, ok := pathValue.(types.ExportStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ExportStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeExport(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/api_op_DescribeImport.go b/service/lexmodelsv2/api_op_DescribeImport.go index 3dccfa7a224..23f3704faa8 100644 --- a/service/lexmodelsv2/api_op_DescribeImport.go +++ b/service/lexmodelsv2/api_op_DescribeImport.go @@ -4,11 +4,15 @@ package lexmodelsv2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" "time" ) @@ -141,6 +145,199 @@ func (c *Client) addOperationDescribeImportMiddlewares(stack *middleware.Stack, return nil } +// DescribeImportAPIClient is a client that implements the DescribeImport +// operation. +type DescribeImportAPIClient interface { + DescribeImport(context.Context, *DescribeImportInput, ...func(*Options)) (*DescribeImportOutput, error) +} + +var _ DescribeImportAPIClient = (*Client)(nil) + +// BotImportCompletedWaiterOptions are waiter options for BotImportCompletedWaiter +type BotImportCompletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // BotImportCompletedWaiter will use default minimum delay of 10 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, BotImportCompletedWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeImportInput, *DescribeImportOutput, error) (bool, error) +} + +// BotImportCompletedWaiter defines the waiters for BotImportCompleted +type BotImportCompletedWaiter struct { + client DescribeImportAPIClient + + options BotImportCompletedWaiterOptions +} + +// NewBotImportCompletedWaiter constructs a BotImportCompletedWaiter. +func NewBotImportCompletedWaiter(client DescribeImportAPIClient, optFns ...func(*BotImportCompletedWaiterOptions)) *BotImportCompletedWaiter { + options := BotImportCompletedWaiterOptions{} + options.MinDelay = 10 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = botImportCompletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &BotImportCompletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for BotImportCompleted waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *BotImportCompletedWaiter) Wait(ctx context.Context, params *DescribeImportInput, maxWaitDur time.Duration, optFns ...func(*BotImportCompletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeImport(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for BotImportCompleted waiter") +} + +func botImportCompletedStateRetryable(ctx context.Context, input *DescribeImportInput, output *DescribeImportOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("importStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Completed" + value, ok := pathValue.(types.ImportStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImportStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("importStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Deleting" + value, ok := pathValue.(types.ImportStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImportStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err == nil { + pathValue, err := jmespath.Search("importStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "Failed" + value, ok := pathValue.(types.ImportStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImportStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeImport(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lexmodelsv2/generated.json b/service/lexmodelsv2/generated.json index 65dbf90d6a7..3049b83dc8a 100644 --- a/service/lexmodelsv2/generated.json +++ b/service/lexmodelsv2/generated.json @@ -1,7 +1,8 @@ { "dependencies": { "github.com/aws/aws-sdk-go-v2": "v1.4.0", - "github.com/aws/smithy-go": "v1.4.0" + "github.com/aws/smithy-go": "v1.4.0", + "github.com/jmespath/go-jmespath": "v0.4.0" }, "files": [ "api_client.go", diff --git a/service/lexmodelsv2/go.mod b/service/lexmodelsv2/go.mod index f199d7c95eb..1a88f903a3b 100644 --- a/service/lexmodelsv2/go.mod +++ b/service/lexmodelsv2/go.mod @@ -5,6 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v1.7.1 github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 + github.com/jmespath/go-jmespath v0.4.0 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexmodelsv2/go.sum b/service/lexmodelsv2/go.sum index 256f90b195c..6e425b89066 100644 --- a/service/lexmodelsv2/go.sum +++ b/service/lexmodelsv2/go.sum @@ -1,14 +1,20 @@ github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/location/api_op_AssociateTrackerConsumer.go b/service/location/api_op_AssociateTrackerConsumer.go index 356aef5d9d8..57061982dcb 100644 --- a/service/location/api_op_AssociateTrackerConsumer.go +++ b/service/location/api_op_AssociateTrackerConsumer.go @@ -12,8 +12,9 @@ import ( // Creates an association between a geofence collection and a tracker resource. // This allows the tracker resource to communicate location data to the linked -// geofence collection. Currently not supported — Cross-account configurations, -// such as creating associations between a tracker resource in one account and a +// geofence collection. You can associate up to five geofence collections to each +// tracker resource. Currently not supported — Cross-account configurations, such +// as creating associations between a tracker resource in one account and a // geofence collection in another account. func (c *Client) AssociateTrackerConsumer(ctx context.Context, params *AssociateTrackerConsumerInput, optFns ...func(*Options)) (*AssociateTrackerConsumerOutput, error) { if params == nil { diff --git a/service/location/api_op_BatchEvaluateGeofences.go b/service/location/api_op_BatchEvaluateGeofences.go index 0c1f69cc6f9..8623d8e8d21 100644 --- a/service/location/api_op_BatchEvaluateGeofences.go +++ b/service/location/api_op_BatchEvaluateGeofences.go @@ -11,10 +11,20 @@ import ( ) // Evaluates device positions against the geofence geometries from a given geofence -// collection. The evaluation determines if the device has entered or exited a -// geofenced area, which publishes ENTER or EXIT geofence events to Amazon -// EventBridge. The last geofence that a device was observed within, if any, is -// tracked for 30 days after the most recent device position update +// collection. This operation always returns an empty response because geofences +// are asynchronously evaluated. The evaluation determines if the device has +// entered or exited a geofenced area, and then publishes one of the following +// events to Amazon EventBridge: +// +// * ENTER if Amazon Location determines that the +// tracked device has entered a geofenced area. +// +// * EXIT if Amazon Location +// determines that the tracked device has exited a geofenced area. +// +// The last +// geofence that a device was observed within is tracked for 30 days after the most +// recent device position update. func (c *Client) BatchEvaluateGeofences(ctx context.Context, params *BatchEvaluateGeofencesInput, optFns ...func(*Options)) (*BatchEvaluateGeofencesOutput, error) { if params == nil { params = &BatchEvaluateGeofencesInput{} diff --git a/service/location/api_op_BatchGetDevicePosition.go b/service/location/api_op_BatchGetDevicePosition.go index cf8830abafb..897f912e212 100644 --- a/service/location/api_op_BatchGetDevicePosition.go +++ b/service/location/api_op_BatchGetDevicePosition.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// A batch request to retrieve all device positions. +// Lists the latest device positions for requested devices. func (c *Client) BatchGetDevicePosition(ctx context.Context, params *BatchGetDevicePositionInput, optFns ...func(*Options)) (*BatchGetDevicePositionOutput, error) { if params == nil { params = &BatchGetDevicePositionInput{} diff --git a/service/location/api_op_CalculateRoute.go b/service/location/api_op_CalculateRoute.go index 670da3becf9..5f2bb4e6cbe 100644 --- a/service/location/api_op_CalculateRoute.go +++ b/service/location/api_op_CalculateRoute.go @@ -15,7 +15,7 @@ import ( // Calculates a route // (https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html) // given the following required parameters: DeparturePostiton and -// DestinationPosition. Requires that you first create aroute calculator resource +// DestinationPosition. Requires that you first create a route calculator resource // (https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html) // By default, a request that doesn't specify a departure time uses the best time // of day to travel with the best traffic conditions when calculating the route. @@ -30,7 +30,7 @@ import ( // // * Specifying a travel mode // (https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#travel-mode) -// using TravelMode. This lets you specify additional route preference such as +// using TravelMode. This lets you specify an additional route preference such as // CarModeOptions if traveling by Car, or TruckModeOptions if traveling by Truck. func (c *Client) CalculateRoute(ctx context.Context, params *CalculateRouteInput, optFns ...func(*Options)) (*CalculateRouteOutput, error) { if params == nil { @@ -153,7 +153,7 @@ type CalculateRouteOutput struct { // Contains details about each path between a pair of positions included along a // route such as: StartPosition, EndPosition, Distance, DurationSeconds, Geometry, - // and Steps. The number of legs returned corresponds to one less than the total + // and Steps. The number of legs returned corresponds to one fewer than the total // number of positions in the request. For example, a route with a departure // position and destination position returns one leg with the positions snapped to // a nearby road @@ -167,19 +167,19 @@ type CalculateRouteOutput struct { // // A route with a waypoint between the departure and // destination position returns two legs with the positions snapped to a nearby - // road.: + // road: // - // * Leg 1: The StartPosition is the departure position . The EndPosition - // is the waypoint positon. + // * Leg 1: The StartPosition is the departure position . The EndPosition is + // the waypoint positon. // - // * Leg 2: The StartPosition is the waypoint position. - // The EndPosition is the destination position. + // * Leg 2: The StartPosition is the waypoint position. The + // EndPosition is the destination position. // // This member is required. Legs []types.Leg // Contains information about the whole route, such as: RouteBBox, DataSource, - // Distance, DistanceUnit, and DurationSeconds + // Distance, DistanceUnit, and DurationSeconds. // // This member is required. Summary *types.CalculateRouteSummary diff --git a/service/location/api_op_CreateMap.go b/service/location/api_op_CreateMap.go index be94a2c0f78..8693f85bd94 100644 --- a/service/location/api_op_CreateMap.go +++ b/service/location/api_op_CreateMap.go @@ -91,11 +91,10 @@ type CreateMapOutput struct { // This member is required. CreateTime *time.Time - // The Amazon Resource Name (ARN) for the map resource. Used when you need to - // specify a resource across all AWS. + // The Amazon Resource Name (ARN) for the map resource. Used to specify a resource + // across all AWS. // - // * Format example: - // arn:aws:geo:region:account-id:maps/ExampleMap + // * Format example: arn:aws:geo:region:account-id:maps/ExampleMap // // This member is required. MapArn *string diff --git a/service/location/api_op_CreatePlaceIndex.go b/service/location/api_op_CreatePlaceIndex.go index 464f5dc7ccc..433d4001aa7 100644 --- a/service/location/api_op_CreatePlaceIndex.go +++ b/service/location/api_op_CreatePlaceIndex.go @@ -32,21 +32,29 @@ func (c *Client) CreatePlaceIndex(ctx context.Context, params *CreatePlaceIndexI type CreatePlaceIndexInput struct { // Specifies the data provider of geospatial data. This field is case-sensitive. - // Enter the valid values as shown. For example, entering HERE will return an - // error. Valid values include: + // Enter the valid values as shown. For example, entering HERE returns an error. + // Valid values include: // - // * Esri + // * Esri – For additional information about Esri + // (https://docs.aws.amazon.com/location/latest/developerguide/esri.html)'s + // coverage in your region of interest, see Esri details on geocoding coverage + // (https://developers.arcgis.com/rest/geocode/api-reference/geocode-coverage.htm). // - // * Here Place index resources using HERE as - // a data provider can't be used to store + // * + // Here – For additional information about HERE Technologies + // (https://docs.aws.amazon.com/location/latest/developerguide/HERE.html)'s + // coverage in your region of interest, see HERE details on goecoding coverage + // (https://developer.here.com/documentation/geocoder/dev_guide/topics/coverage-geocoder.html). + // Place index resources using HERE Technologies as a data provider can't store + // results // (https://docs.aws.amazon.com/location-places/latest/APIReference/API_DataSourceConfiguration.html) - // results for locations in Japan. For more information, see the AWS Service Terms + // for locations in Japan. For more information, see the AWS Service Terms // (https://aws.amazon.com/service-terms/) for Amazon Location Service. // // For - // additional details on data providers, see the Amazon Location Service data - // providers page - // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html). + // additional information , see Data providers + // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html) + // on the Amazon Location Service Developer Guide. // // This member is required. DataSource *string @@ -72,7 +80,7 @@ type CreatePlaceIndexInput struct { // This member is required. PricingPlan types.PricingPlan - // Specifies the data storage option for requesting Places. + // Specifies the data storage option requesting Places. DataSourceConfiguration *types.DataSourceConfiguration // The optional description for the place index resource. @@ -110,7 +118,7 @@ type CreatePlaceIndexOutput struct { CreateTime *time.Time // The Amazon Resource Name (ARN) for the place index resource. Used to specify a - // resource across all AWS. + // resource across AWS. // // * Format example: // arn:aws:geo:region:account-id:place-index/ExamplePlaceIndex diff --git a/service/location/api_op_CreateRouteCalculator.go b/service/location/api_op_CreateRouteCalculator.go index 8f6f128c286..61b465b759c 100644 --- a/service/location/api_op_CreateRouteCalculator.go +++ b/service/location/api_op_CreateRouteCalculator.go @@ -49,9 +49,27 @@ type CreateRouteCalculatorInput struct { // Specifies the data provider of traffic and road network data. This field is // case-sensitive. Enter the valid values as shown. For example, entering HERE - // returns an error. Valid Values: Esri | Here For more information about data - // providers, see Amazon Location Service data providers - // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html). + // returns an error. Valid values include: + // + // * Esri – For additional information + // about Esri + // (https://docs.aws.amazon.com/location/latest/developerguide/esri.html)'s + // coverage in your region of interest, see Esri details on street networks and + // traffic coverage + // (https://doc.arcgis.com/en/arcgis-online/reference/network-coverage.htm). + // + // * + // Here – For additional information about HERE Technologies + // (https://docs.aws.amazon.com/location/latest/developerguide/HERE.html)'s + // coverage in your region of interest, see HERE car routing coverage + // (https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/car-routing.html) + // and HERE truck routing coverage + // (https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/truck-routing.html). + // + // For + // additional information , see Data providers + // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html) + // on the Amazon Location Service Developer Guide. // // This member is required. DataSource *string diff --git a/service/location/api_op_DescribeMap.go b/service/location/api_op_DescribeMap.go index 1a3ca7dd50a..87d34c79060 100644 --- a/service/location/api_op_DescribeMap.go +++ b/service/location/api_op_DescribeMap.go @@ -61,11 +61,10 @@ type DescribeMapOutput struct { // This member is required. Description *string - // The Amazon Resource Name (ARN) for the map resource. Used when you need to - // specify a resource across all AWS. + // The Amazon Resource Name (ARN) for the map resource. Used to specify a resource + // across all AWS. // - // * Format example: - // arn:aws:geo:region:account-id:maps/ExampleMap + // * Format example: arn:aws:geo:region:account-id:maps/ExampleMap // // This member is required. MapArn *string diff --git a/service/location/api_op_DescribePlaceIndex.go b/service/location/api_op_DescribePlaceIndex.go index 633116502ac..b7e60781ef7 100644 --- a/service/location/api_op_DescribePlaceIndex.go +++ b/service/location/api_op_DescribePlaceIndex.go @@ -71,7 +71,7 @@ type DescribePlaceIndexOutput struct { Description *string // The Amazon Resource Name (ARN) for the place index resource. Used to specify a - // resource across all AWS. + // resource across AWS. // // * Format example: // arn:aws:geo:region:account-id:place-index/ExamplePlaceIndex diff --git a/service/location/api_op_GetMapGlyphs.go b/service/location/api_op_GetMapGlyphs.go index c7d581d1ced..7f698fe6fb1 100644 --- a/service/location/api_op_GetMapGlyphs.go +++ b/service/location/api_op_GetMapGlyphs.go @@ -28,8 +28,32 @@ func (c *Client) GetMapGlyphs(ctx context.Context, params *GetMapGlyphsInput, op type GetMapGlyphsInput struct { - // A comma-separated list of fonts to load glyphs from in order of preference.. For - // example, Noto Sans, Arial Unicode. + // A comma-separated list of fonts to load glyphs from in order of preference. For + // example, Noto Sans Regular, Arial Unicode. Valid fonts for Esri + // (https://docs.aws.amazon.com/location/latest/developerguide/esri.html) + // styles: + // + // * VectorEsriDarkGrayCanvas – Ubuntu Medium Italic | Ubuntu Medium | + // Ubuntu Italic | Ubuntu Regular | Ubuntu Bold + // + // * VectorEsriLightGrayCanvas – + // Ubuntu Italic | Ubuntu Regular | Ubuntu Light | Ubuntu Bold + // + // * + // VectorEsriTopographic – Noto Sans Italic | Noto Sans Regular | Noto Sans Bold | + // Noto Serif Regular | Roboto Condensed Light Italic + // + // * VectorEsriStreets – Arial + // Regular | Arial Italic | Arial Bold + // + // * VectorEsriNavigation – Arial Regular | + // Arial Italic | Arial Bold + // + // Valid fonts for HERE Technologies + // (https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) + // styles: + // + // * VectorHereBerlin – Fira GO Regular | Fira GO Bold // // This member is required. FontStack *string diff --git a/service/location/api_op_ListDevicePositions.go b/service/location/api_op_ListDevicePositions.go index 82f48cecb36..74fadc59392 100644 --- a/service/location/api_op_ListDevicePositions.go +++ b/service/location/api_op_ListDevicePositions.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the latest device positions for requested devices. +// A batch request to retrieve all device positions. func (c *Client) ListDevicePositions(ctx context.Context, params *ListDevicePositionsInput, optFns ...func(*Options)) (*ListDevicePositionsOutput, error) { if params == nil { params = &ListDevicePositionsInput{} diff --git a/service/location/api_op_ListTagsForResource.go b/service/location/api_op_ListTagsForResource.go index 2f66c5e4cc4..ef06fb47327 100644 --- a/service/location/api_op_ListTagsForResource.go +++ b/service/location/api_op_ListTagsForResource.go @@ -10,7 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the tags for the specified Amazon Location Service resource. +// Returns a list of tags that are applied to the specified Amazon Location +// resource. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} @@ -28,7 +29,11 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes type ListTagsForResourceInput struct { - // The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve. + // The Amazon Resource Name (ARN) of the resource whose tags you want to + // retrieve. + // + // * Format example: + // arn:aws:geo:region:account-id:resourcetype/ExampleResource // // This member is required. ResourceArn *string @@ -38,8 +43,11 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { - // The mapping from tag key to tag value for each tag associated with the specified - // resource. + // Tags that have been applied to the specified resource. Tags are mapped from the + // tag key to the tag value: "TagKey" : "TagValue". + // + // * Format example: {"tag1" : + // "value1", "tag2" : "value2"} Tags map[string]string // Metadata pertaining to the operation's result. diff --git a/service/location/api_op_TagResource.go b/service/location/api_op_TagResource.go index 551eb963c85..38f3de9c16a 100644 --- a/service/location/api_op_TagResource.go +++ b/service/location/api_op_TagResource.go @@ -13,14 +13,13 @@ import ( // Assigns one or more tags (key-value pairs) to the specified Amazon Location // Service resource. Tags can help you organize and categorize your resources. You // can also use them to scope user permissions, by granting a user permission to -// access or change only resources with certain tag values. Tags don't have any -// semantic meaning to AWS and are interpreted strictly as strings of characters. -// You can use the TagResource action with an Amazon Location Service resource that -// already has tags. If you specify a new tag key for the resource, this tag is -// appended to the tags already associated with the resource. If you specify a tag -// key that is already associated with the resource, the new tag value that you -// specify replaces the previous value for that tag. You can associate as many as -// 50 tags with a resource. +// access or change only resources with certain tag values. You can use the +// TagResource operation with an Amazon Location Service resource that already has +// tags. If you specify a new tag key for the resource, this tag is appended to the +// tags already associated with the resource. If you specify a tag key that's +// already associated with the resource, the new tag value that you specify +// replaces the previous value for that tag. You can associate up to 50 tags with a +// resource. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} @@ -40,11 +39,17 @@ type TagResourceInput struct { // The Amazon Resource Name (ARN) of the resource whose tags you want to update. // + // * + // Format example: arn:aws:geo:region:account-id:resourcetype/ExampleResource + // // This member is required. ResourceArn *string - // The mapping from tag key to tag value for each tag associated with the specified - // resource. + // Tags that have been applied to the specified resource. Tags are mapped from the + // tag key to the tag value: "TagKey" : "TagValue". + // + // * Format example: {"tag1" : + // "value1", "tag2" : "value2"} // // This member is required. Tags map[string]string diff --git a/service/location/api_op_UntagResource.go b/service/location/api_op_UntagResource.go index ab822e3cee3..29af7a87d77 100644 --- a/service/location/api_op_UntagResource.go +++ b/service/location/api_op_UntagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes one or more tags from the specified Amazon Location Service resource. +// Removes one or more tags from the specified Amazon Location resource. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} @@ -31,10 +31,13 @@ type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the resource from which you want to remove // tags. // + // * Format example: + // arn:aws:geo:region:account-id:resourcetype/ExampleResource + // // This member is required. ResourceArn *string - // The list of tag keys to remove from the resource. + // The list of tag keys to remove from the specified resource. // // This member is required. TagKeys []string diff --git a/service/location/api_op_UpdateGeofenceCollection.go b/service/location/api_op_UpdateGeofenceCollection.go new file mode 100644 index 00000000000..6300b8de36a --- /dev/null +++ b/service/location/api_op_UpdateGeofenceCollection.go @@ -0,0 +1,159 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package location + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/location/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates the specified properties of a given geofence collection. +func (c *Client) UpdateGeofenceCollection(ctx context.Context, params *UpdateGeofenceCollectionInput, optFns ...func(*Options)) (*UpdateGeofenceCollectionOutput, error) { + if params == nil { + params = &UpdateGeofenceCollectionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateGeofenceCollection", params, optFns, c.addOperationUpdateGeofenceCollectionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateGeofenceCollectionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateGeofenceCollectionInput struct { + + // The name of the geofence collection to update. + // + // This member is required. + CollectionName *string + + // Updates the description for the geofence collection. + Description *string + + // Updates the pricing plan for the geofence collection. For more information about + // each pricing plan option restrictions, see Amazon Location Service pricing + // (https://aws.amazon.com/location/pricing/). + PricingPlan types.PricingPlan + + // Updates the data provider for the geofence collection. A required value for the + // following pricing plans: MobileAssetTracking| MobileAssetManagement For more + // information about data providers + // (https://aws.amazon.com/location/data-providers/) and pricing plans + // (https://aws.amazon.com/location/pricing/), see the Amazon Location Service + // product page. This can only be updated when updating the PricingPlan in the same + // request. Amazon Location Service uses PricingPlanDataSource to calculate billing + // for your geofence collection. Your data won't be shared with the data provider, + // and will remain in your AWS account and Region unless you move it. + PricingPlanDataSource *string + + noSmithyDocumentSerde +} + +type UpdateGeofenceCollectionOutput struct { + + // The Amazon Resource Name (ARN) of the updated geofence collection. Used to + // specify a resource across AWS. + // + // * Format example: + // arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection + // + // This member is required. + CollectionArn *string + + // The name of the updated geofence collection. + // + // This member is required. + CollectionName *string + + // The time when the geofence collection was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: + // YYYY-MM-DDThh:mm:ss.sssZ + // + // This member is required. + UpdateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateGeofenceCollectionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateGeofenceCollection{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateGeofenceCollection{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateGeofenceCollectionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateGeofenceCollection(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateGeofenceCollection(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "geo", + OperationName: "UpdateGeofenceCollection", + } +} diff --git a/service/location/api_op_UpdateMap.go b/service/location/api_op_UpdateMap.go new file mode 100644 index 00000000000..8e80558f5af --- /dev/null +++ b/service/location/api_op_UpdateMap.go @@ -0,0 +1,148 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package location + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/location/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates the specified properties of a given map resource. +func (c *Client) UpdateMap(ctx context.Context, params *UpdateMapInput, optFns ...func(*Options)) (*UpdateMapOutput, error) { + if params == nil { + params = &UpdateMapInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateMap", params, optFns, c.addOperationUpdateMapMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateMapOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateMapInput struct { + + // The name of the map resource to update. + // + // This member is required. + MapName *string + + // Updates the description for the map resource. + Description *string + + // Updates the pricing plan for the map resource. For more information about each + // pricing plan option restrictions, see Amazon Location Service pricing + // (https://aws.amazon.com/location/pricing/). + PricingPlan types.PricingPlan + + noSmithyDocumentSerde +} + +type UpdateMapOutput struct { + + // The Amazon Resource Name (ARN) of the updated map resource. Used to specify a + // resource across AWS. + // + // * Format example: + // arn:aws:geo:region:account-id:maps/ExampleMap + // + // This member is required. + MapArn *string + + // The name of the updated map resource. + // + // This member is required. + MapName *string + + // The timestamp for when the map resource was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: + // YYYY-MM-DDThh:mm:ss.sssZ. + // + // This member is required. + UpdateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateMapMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateMap{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateMap{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateMapValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMap(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateMap(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "geo", + OperationName: "UpdateMap", + } +} diff --git a/service/location/api_op_UpdatePlaceIndex.go b/service/location/api_op_UpdatePlaceIndex.go new file mode 100644 index 00000000000..81b8c704425 --- /dev/null +++ b/service/location/api_op_UpdatePlaceIndex.go @@ -0,0 +1,151 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package location + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/location/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates the specified properties of a given place index resource. +func (c *Client) UpdatePlaceIndex(ctx context.Context, params *UpdatePlaceIndexInput, optFns ...func(*Options)) (*UpdatePlaceIndexOutput, error) { + if params == nil { + params = &UpdatePlaceIndexInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdatePlaceIndex", params, optFns, c.addOperationUpdatePlaceIndexMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdatePlaceIndexOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdatePlaceIndexInput struct { + + // The name of the place index resource to update. + // + // This member is required. + IndexName *string + + // Updates the data storage option for the place index resource. + DataSourceConfiguration *types.DataSourceConfiguration + + // Updates the description for the place index resource. + Description *string + + // Updates the pricing plan for the place index resource. For more information + // about each pricing plan option restrictions, see Amazon Location Service pricing + // (https://aws.amazon.com/location/pricing/). + PricingPlan types.PricingPlan + + noSmithyDocumentSerde +} + +type UpdatePlaceIndexOutput struct { + + // The Amazon Resource Name (ARN) of the upated place index resource. Used to + // specify a resource across AWS. + // + // * Format example: + // arn:aws:geo:region:account-id:place- index/ExamplePlaceIndex + // + // This member is required. + IndexArn *string + + // The name of the updated place index resource. + // + // This member is required. + IndexName *string + + // The timestamp for when the place index resource was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: + // YYYY-MM-DDThh:mm:ss.sssZ. + // + // This member is required. + UpdateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdatePlaceIndexMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdatePlaceIndex{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdatePlaceIndex{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdatePlaceIndexValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePlaceIndex(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdatePlaceIndex(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "geo", + OperationName: "UpdatePlaceIndex", + } +} diff --git a/service/location/api_op_UpdateRouteCalculator.go b/service/location/api_op_UpdateRouteCalculator.go new file mode 100644 index 00000000000..eaf941ee0f9 --- /dev/null +++ b/service/location/api_op_UpdateRouteCalculator.go @@ -0,0 +1,148 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package location + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/location/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates the specified properties for a given route calculator resource. +func (c *Client) UpdateRouteCalculator(ctx context.Context, params *UpdateRouteCalculatorInput, optFns ...func(*Options)) (*UpdateRouteCalculatorOutput, error) { + if params == nil { + params = &UpdateRouteCalculatorInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateRouteCalculator", params, optFns, c.addOperationUpdateRouteCalculatorMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateRouteCalculatorOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateRouteCalculatorInput struct { + + // The name of the route calculator resource to update. + // + // This member is required. + CalculatorName *string + + // Updates the description for the route calculator resource. + Description *string + + // Updates the pricing plan for the route calculator resource. For more information + // about each pricing plan option restrictions, see Amazon Location Service pricing + // (https://aws.amazon.com/location/pricing/). + PricingPlan types.PricingPlan + + noSmithyDocumentSerde +} + +type UpdateRouteCalculatorOutput struct { + + // The Amazon Resource Name (ARN) of the updated route calculator resource. Used to + // specify a resource across AWS. + // + // * Format example: + // arn:aws:geo:region:account-id:route- calculator/ExampleCalculator + // + // This member is required. + CalculatorArn *string + + // The name of the updated route calculator resource. + // + // This member is required. + CalculatorName *string + + // The timestamp for when the route calculator was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: + // YYYY-MM-DDThh:mm:ss.sssZ. + // + // This member is required. + UpdateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateRouteCalculatorMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateRouteCalculator{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateRouteCalculator{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateRouteCalculatorValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRouteCalculator(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateRouteCalculator(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "geo", + OperationName: "UpdateRouteCalculator", + } +} diff --git a/service/location/api_op_UpdateTracker.go b/service/location/api_op_UpdateTracker.go new file mode 100644 index 00000000000..d39174d58f0 --- /dev/null +++ b/service/location/api_op_UpdateTracker.go @@ -0,0 +1,159 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package location + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/location/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates the specified properties of a given tracker resource. +func (c *Client) UpdateTracker(ctx context.Context, params *UpdateTrackerInput, optFns ...func(*Options)) (*UpdateTrackerOutput, error) { + if params == nil { + params = &UpdateTrackerInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateTracker", params, optFns, c.addOperationUpdateTrackerMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateTrackerOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateTrackerInput struct { + + // The name of the tracker resource to update. + // + // This member is required. + TrackerName *string + + // Updates the description for the tracker resource. + Description *string + + // Updates the pricing plan for the tracker resource. For more information about + // each pricing plan option restrictions, see Amazon Location Service pricing + // (https://aws.amazon.com/location/pricing/). + PricingPlan types.PricingPlan + + // Updates the data provider for the tracker resource. A required value for the + // following pricing plans: MobileAssetTracking| MobileAssetManagement For more + // information about data providers + // (https://aws.amazon.com/location/data-providers/) and pricing plans + // (https://aws.amazon.com/location/pricing/), see the Amazon Location Service + // product page This can only be updated when updating the PricingPlan in the same + // request. Amazon Location Service uses PricingPlanDataSource to calculate billing + // for your tracker resource. Your data won't be shared with the data provider, and + // will remain in your AWS account and Region unless you move it. + PricingPlanDataSource *string + + noSmithyDocumentSerde +} + +type UpdateTrackerOutput struct { + + // The Amazon Resource Name (ARN) of the updated tracker resource. Used to specify + // a resource across AWS. + // + // * Format example: + // arn:aws:geo:region:account-id:tracker/ExampleTracker + // + // This member is required. + TrackerArn *string + + // The name of the updated tracker resource. + // + // This member is required. + TrackerName *string + + // The timestamp for when the tracker resource was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: + // YYYY-MM-DDThh:mm:ss.sssZ. + // + // This member is required. + UpdateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateTrackerMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateTracker{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateTracker{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateTrackerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTracker(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateTracker(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "geo", + OperationName: "UpdateTracker", + } +} diff --git a/service/location/deserializers.go b/service/location/deserializers.go index d4a48ad0156..f655ed62bb9 100644 --- a/service/location/deserializers.go +++ b/service/location/deserializers.go @@ -103,6 +103,9 @@ func awsRestjson1_deserializeOpErrorAssociateTrackerConsumer(response *smithyhtt case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -7208,48 +7211,37 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDeniedException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } +type awsRestjson1_deserializeOpUpdateGeofenceCollection struct { +} - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) +func (*awsRestjson1_deserializeOpUpdateGeofenceCollection) ID() string { + return "OperationDeserializer" +} +func (m *awsRestjson1_deserializeOpUpdateGeofenceCollection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } - return output -} + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateGeofenceCollection(response, &metadata) + } + output := &UpdateGeofenceCollectionOutput{} + out.Result = output -func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ConflictException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -7260,83 +7252,44 @@ func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Respons Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentConflictException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentUpdateGeofenceCollectionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return err } - errorBody.Seek(0, io.SeekStart) - - return output + return out, metadata, err } -func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InternalServerException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err +func awsRestjson1_deserializeOpErrorUpdateGeofenceCollection(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } + errorBody := bytes.NewReader(errorBuffer.Bytes()) - err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) + errorCode := "UnknownError" + errorMessage := errorCode - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) } - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceNotFoundException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) - + code, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7348,83 +7301,40 @@ func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp } errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ThrottlingException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) } - - err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - return output -} + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) -func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ValidationException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err - } - - errorBody.Seek(0, io.SeekStart) + return genericError - return output + } } -func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateGeofenceCollectionOutput(v **UpdateGeofenceCollectionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7437,22 +7347,44 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccessDeniedException + var sv *UpdateGeofenceCollectionOutput if *v == nil { - sv = &types.AccessDeniedException{} + sv = &UpdateGeofenceCollectionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "message": + case "CollectionArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.CollectionArn = ptr.String(jtv) + } + + case "CollectionName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.CollectionName = ptr.String(jtv) + } + + case "UpdateTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(t) } default: @@ -7464,21 +7396,1053 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsRestjson1_deserializeDocumentArnList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil +type awsRestjson1_deserializeOpUpdateMap struct { +} + +func (*awsRestjson1_deserializeOpUpdateMap) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateMap) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err } - shape, ok := value.([]interface{}) + response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - var cv []string - if *v == nil { + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateMap(response, &metadata) + } + output := &UpdateMapOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateMapOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateMap(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateMapOutput(v **UpdateMapOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateMapOutput + if *v == nil { + sv = &UpdateMapOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MapArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.MapArn = ptr.String(jtv) + } + + case "MapName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.MapName = ptr.String(jtv) + } + + case "UpdateTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdatePlaceIndex struct { +} + +func (*awsRestjson1_deserializeOpUpdatePlaceIndex) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdatePlaceIndex) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdatePlaceIndex(response, &metadata) + } + output := &UpdatePlaceIndexOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdatePlaceIndexOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdatePlaceIndex(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdatePlaceIndexOutput(v **UpdatePlaceIndexOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdatePlaceIndexOutput + if *v == nil { + sv = &UpdatePlaceIndexOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "IndexArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.IndexArn = ptr.String(jtv) + } + + case "IndexName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.IndexName = ptr.String(jtv) + } + + case "UpdateTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateRouteCalculator struct { +} + +func (*awsRestjson1_deserializeOpUpdateRouteCalculator) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateRouteCalculator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateRouteCalculator(response, &metadata) + } + output := &UpdateRouteCalculatorOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateRouteCalculatorOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateRouteCalculator(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateRouteCalculatorOutput(v **UpdateRouteCalculatorOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateRouteCalculatorOutput + if *v == nil { + sv = &UpdateRouteCalculatorOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CalculatorArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.CalculatorArn = ptr.String(jtv) + } + + case "CalculatorName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.CalculatorName = ptr.String(jtv) + } + + case "UpdateTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateTracker struct { +} + +func (*awsRestjson1_deserializeOpUpdateTracker) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTracker) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateTracker(response, &metadata) + } + output := &UpdateTrackerOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateTrackerOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTracker(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateTrackerOutput(v **UpdateTrackerOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateTrackerOutput + if *v == nil { + sv = &UpdateTrackerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TrackerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.TrackerArn = ptr.String(jtv) + } + + case "TrackerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.TrackerName = ptr.String(jtv) + } + + case "UpdateTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServiceQuotaExceededException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentArnList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { cv = []string{} } else { cv = *v @@ -10329,6 +11293,46 @@ func awsRestjson1_deserializeDocumentSearchPlaceIndexForTextSummary(v **types.Se return nil } +func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ServiceQuotaExceededException + if *v == nil { + sv = &types.ServiceQuotaExceededException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/location/generated.json b/service/location/generated.json index b79d2b60ef1..c879b11ea97 100644 --- a/service/location/generated.json +++ b/service/location/generated.json @@ -50,6 +50,11 @@ "api_op_SearchPlaceIndexForText.go", "api_op_TagResource.go", "api_op_UntagResource.go", + "api_op_UpdateGeofenceCollection.go", + "api_op_UpdateMap.go", + "api_op_UpdatePlaceIndex.go", + "api_op_UpdateRouteCalculator.go", + "api_op_UpdateTracker.go", "deserializers.go", "doc.go", "endpoints.go", diff --git a/service/location/serializers.go b/service/location/serializers.go index 32cda47d097..2a7da70b773 100644 --- a/service/location/serializers.go +++ b/service/location/serializers.go @@ -3477,6 +3477,453 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return nil } +type awsRestjson1_serializeOpUpdateGeofenceCollection struct { +} + +func (*awsRestjson1_serializeOpUpdateGeofenceCollection) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateGeofenceCollection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateGeofenceCollectionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/geofencing/v0/collections/{CollectionName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateGeofenceCollectionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateGeofenceCollectionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateGeofenceCollectionInput(v *UpdateGeofenceCollectionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollectionName == nil || len(*v.CollectionName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CollectionName must not be empty")} + } + if v.CollectionName != nil { + if err := encoder.SetURI("CollectionName").String(*v.CollectionName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateGeofenceCollectionInput(v *UpdateGeofenceCollectionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if len(v.PricingPlan) > 0 { + ok := object.Key("PricingPlan") + ok.String(string(v.PricingPlan)) + } + + if v.PricingPlanDataSource != nil { + ok := object.Key("PricingPlanDataSource") + ok.String(*v.PricingPlanDataSource) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateMap struct { +} + +func (*awsRestjson1_serializeOpUpdateMap) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateMap) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateMapInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/maps/v0/maps/{MapName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateMapInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateMapInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateMapInput(v *UpdateMapInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MapName == nil || len(*v.MapName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member MapName must not be empty")} + } + if v.MapName != nil { + if err := encoder.SetURI("MapName").String(*v.MapName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateMapInput(v *UpdateMapInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if len(v.PricingPlan) > 0 { + ok := object.Key("PricingPlan") + ok.String(string(v.PricingPlan)) + } + + return nil +} + +type awsRestjson1_serializeOpUpdatePlaceIndex struct { +} + +func (*awsRestjson1_serializeOpUpdatePlaceIndex) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdatePlaceIndex) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdatePlaceIndexInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/places/v0/indexes/{IndexName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdatePlaceIndexInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdatePlaceIndexInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdatePlaceIndexInput(v *UpdatePlaceIndexInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.IndexName == nil || len(*v.IndexName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member IndexName must not be empty")} + } + if v.IndexName != nil { + if err := encoder.SetURI("IndexName").String(*v.IndexName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdatePlaceIndexInput(v *UpdatePlaceIndexInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataSourceConfiguration != nil { + ok := object.Key("DataSourceConfiguration") + if err := awsRestjson1_serializeDocumentDataSourceConfiguration(v.DataSourceConfiguration, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if len(v.PricingPlan) > 0 { + ok := object.Key("PricingPlan") + ok.String(string(v.PricingPlan)) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateRouteCalculator struct { +} + +func (*awsRestjson1_serializeOpUpdateRouteCalculator) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateRouteCalculator) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateRouteCalculatorInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/routes/v0/calculators/{CalculatorName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateRouteCalculatorInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateRouteCalculatorInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateRouteCalculatorInput(v *UpdateRouteCalculatorInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CalculatorName == nil || len(*v.CalculatorName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CalculatorName must not be empty")} + } + if v.CalculatorName != nil { + if err := encoder.SetURI("CalculatorName").String(*v.CalculatorName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateRouteCalculatorInput(v *UpdateRouteCalculatorInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if len(v.PricingPlan) > 0 { + ok := object.Key("PricingPlan") + ok.String(string(v.PricingPlan)) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateTracker struct { +} + +func (*awsRestjson1_serializeOpUpdateTracker) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateTracker) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateTrackerInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tracking/v0/trackers/{TrackerName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateTrackerInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTrackerInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateTrackerInput(v *UpdateTrackerInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.TrackerName == nil || len(*v.TrackerName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TrackerName must not be empty")} + } + if v.TrackerName != nil { + if err := encoder.SetURI("TrackerName").String(*v.TrackerName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateTrackerInput(v *UpdateTrackerInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if len(v.PricingPlan) > 0 { + ok := object.Key("PricingPlan") + ok.String(string(v.PricingPlan)) + } + + if v.PricingPlanDataSource != nil { + ok := object.Key("PricingPlanDataSource") + ok.String(*v.PricingPlanDataSource) + } + + return nil +} + func awsRestjson1_serializeDocumentBatchPutGeofenceRequestEntry(v *types.BatchPutGeofenceRequestEntry, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/location/types/errors.go b/service/location/types/errors.go index 7038cfde062..c797d704410 100644 --- a/service/location/types/errors.go +++ b/service/location/types/errors.go @@ -7,8 +7,8 @@ import ( smithy "github.com/aws/smithy-go" ) -// The request was denied due to insufficient access or permission. Check with an -// administrator to verify your permissions. +// The request was denied because of insufficient access or permissions. Check with +// an administrator to verify your permissions. type AccessDeniedException struct { Message *string @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The request was unsuccessful due to a conflict. +// The request was unsuccessful because of a conflict. type ConflictException struct { Message *string @@ -85,7 +85,28 @@ func (e *ResourceNotFoundException) ErrorMessage() string { func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The request was denied due to request throttling. +// The operation was denied because the request would exceed the maximum quota +// (https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html) +// set for Amazon Location Service. +type ServiceQuotaExceededException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServiceQuotaExceededException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request was denied because of request throttling. type ThrottlingException struct { Message *string diff --git a/service/location/types/types.go b/service/location/types/types.go index dc544a70c94..3b977b9fb96 100644 --- a/service/location/types/types.go +++ b/service/location/types/types.go @@ -230,7 +230,7 @@ type CalculateRouteSummary struct { DurationSeconds *float64 // Specifies a geographical box surrounding a route. Used to zoom into a route when - // displaying it in a map. For example, [min x, min y, max x, max y] The first 2 + // displaying it in a map. For example, [min x, min y, max x, max y]. The first 2 // bbox parameters describe the lower southwest corner: // // * The first bbox position @@ -279,7 +279,20 @@ type CalculateRouteTruckModeOptions struct { noSmithyDocumentSerde } -// Specifies the data storage option chosen for requesting Places. +// Specifies the data storage option chosen for requesting Places. When using +// Amazon Location Places: +// +// * If using HERE Technologies as a data provider, you +// can't store results for locations in Japan by setting IntendedUse to Storage. +// parameter. +// +// * Under the MobileAssetTracking or MobilAssetManagement pricing +// plan, you can't store results from your place index resources by setting +// IntendedUse to Storage. This returns a validation exception error. +// +// For more +// information, see the AWS Service Terms (https://aws.amazon.com/service-terms/) +// for Amazon Location Service. type DataSourceConfiguration struct { // Specifies how the results of an operation will be stored by the caller. Valid @@ -288,10 +301,8 @@ type DataSourceConfiguration struct { // * SingleUse specifies that the results won't be stored. // // * - // Storage specifies that the result can be cached or stored in a database. Place - // index resources using HERE as a data provider can't be configured to store - // results for locations in Japan when choosing Storage for the IntendedUse - // parameter. + // Storage specifies that the result can be cached or stored in a + // database. // // Default value: SingleUse IntendedUse IntendedUse @@ -372,7 +383,7 @@ type GeofenceGeometry struct { } // Contains the calculated route's details for each path between a pair of -// positions. The number of legs returned corresponds to one less than the total +// positions. The number of legs returned corresponds to one fewer than the total // number of positions in the request. For example, a route with a departure // position and destination position returns one leg with the positions snapped to // a nearby road @@ -386,13 +397,13 @@ type GeofenceGeometry struct { // // A route with a waypoint between the departure and // destination position returns two legs with the positions snapped to a nearby -// road.: +// road: // -// * Leg 1: The StartPosition is the departure position . The EndPosition -// is the waypoint positon. +// * Leg 1: The StartPosition is the departure position . The EndPosition is +// the waypoint positon. // -// * Leg 2: The StartPosition is the waypoint position. -// The EndPosition is the destination position. +// * Leg 2: The StartPosition is the waypoint position. The +// EndPosition is the destination position. type Leg struct { // The distance between the leg's StartPosition and EndPosition along a calculated @@ -757,13 +768,50 @@ type ListTrackersResponseEntry struct { // Specifies the map tile style selected from an available provider. type MapConfiguration struct { - // Specifies the map style selected from an available data provider. Valid styles: - // RasterEsriImagery, VectorEsriStreets, VectorEsriTopographic, - // VectorEsriNavigation, VectorEsriDarkGrayCanvas, VectorEsriLightGrayCanvas, - // VectorHereBerlin. When using HERE as your data provider, and selecting the Style - // VectorHereBerlin, you may not use HERE Maps for Asset Management. See the AWS - // Service Terms (https://aws.amazon.com/service-terms/) for Amazon Location - // Service. + // Specifies the map style selected from an available data provider. For additional + // information on each map style and to preview each map style, see Esri map styles + // and HERE map styles. Valid Esri + // (https://docs.aws.amazon.com/location/latest/developerguide/esri.html) + // styles: + // + // * VectorEsriDarkGrayCanvas – The Esri Dark Gray Canvas map style. A + // vector basemap with a dark gray, neutral background with minimal colors, labels, + // and features that's designed to draw attention to your thematic content. + // + // * + // RasterEsriImagery – The Esri Imagery map style. A raster basemap that provides + // one meter or better satellite and aerial imagery in many parts of the world and + // lower resolution satellite imagery worldwide. + // + // * VectorEsriLightGrayCanvas – The + // Esri Light Gray Canvas map style, which provides a detailed vector basemap with + // a light gray, neutral background style with minimal colors, labels, and features + // that's designed to draw attention to your thematic content. + // + // * + // VectorEsriTopographic – The Esri Light map style, which provides a detailed + // vector basemap with a classic Esri map style. + // + // * VectorEsriStreets – The Esri + // World Streets map style, which provides a detailed vector basemap for the world + // symbolized with a classic Esri street map style. The vector tile layer is + // similar in content and style to the World Street Map raster map. + // + // * + // VectorEsriNavigation – The Esri World Navigation map style, which provides a + // detailed basemap for the world symbolized with a custom navigation map style + // that's designed for use during the day in mobile devices. + // + // Valid HERE + // Technologies + // (https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) + // styles: + // + // * VectorHereBerlin – The HERE Berlin map style is a high contrast + // detailed base map of the world that blends 3D and 2D rendering. When using HERE + // as your data provider, and selecting the Style VectorHereBerlin, you may not use + // HERE Technologies maps for Asset Management. See the AWS Service Terms + // (https://aws.amazon.com/service-terms/) for Amazon Location Service. // // This member is required. Style *string diff --git a/service/location/validators.go b/service/location/validators.go index 8088edc21ac..d10f2c2d348 100644 --- a/service/location/validators.go +++ b/service/location/validators.go @@ -810,6 +810,106 @@ func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpUpdateGeofenceCollection struct { +} + +func (*validateOpUpdateGeofenceCollection) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateGeofenceCollection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateGeofenceCollectionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateGeofenceCollectionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateMap struct { +} + +func (*validateOpUpdateMap) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateMap) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateMapInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateMapInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdatePlaceIndex struct { +} + +func (*validateOpUpdatePlaceIndex) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdatePlaceIndex) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdatePlaceIndexInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdatePlaceIndexInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateRouteCalculator struct { +} + +func (*validateOpUpdateRouteCalculator) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateRouteCalculator) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateRouteCalculatorInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateRouteCalculatorInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateTracker struct { +} + +func (*validateOpUpdateTracker) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateTracker) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateTrackerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateTrackerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + func addOpAssociateTrackerConsumerValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateTrackerConsumer{}, middleware.After) } @@ -970,6 +1070,26 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } +func addOpUpdateGeofenceCollectionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateGeofenceCollection{}, middleware.After) +} + +func addOpUpdateMapValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateMap{}, middleware.After) +} + +func addOpUpdatePlaceIndexValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdatePlaceIndex{}, middleware.After) +} + +func addOpUpdateRouteCalculatorValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateRouteCalculator{}, middleware.After) +} + +func addOpUpdateTrackerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateTracker{}, middleware.After) +} + func validateBatchPutGeofenceRequestEntry(v *types.BatchPutGeofenceRequestEntry) error { if v == nil { return nil @@ -1772,3 +1892,78 @@ func validateOpUntagResourceInput(v *UntagResourceInput) error { return nil } } + +func validateOpUpdateGeofenceCollectionInput(v *UpdateGeofenceCollectionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateGeofenceCollectionInput"} + if v.CollectionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CollectionName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateMapInput(v *UpdateMapInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateMapInput"} + if v.MapName == nil { + invalidParams.Add(smithy.NewErrParamRequired("MapName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdatePlaceIndexInput(v *UpdatePlaceIndexInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdatePlaceIndexInput"} + if v.IndexName == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateRouteCalculatorInput(v *UpdateRouteCalculatorInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateRouteCalculatorInput"} + if v.CalculatorName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CalculatorName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateTrackerInput(v *UpdateTrackerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateTrackerInput"} + if v.TrackerName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrackerName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/medialive/deserializers.go b/service/medialive/deserializers.go index 2587d7fc424..22becc0790c 100644 --- a/service/medialive/deserializers.go +++ b/service/medialive/deserializers.go @@ -13213,6 +13213,55 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription return nil } +func awsRestjson1_deserializeDocumentAudioHlsRenditionSelection(v **types.AudioHlsRenditionSelection, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudioHlsRenditionSelection + if *v == nil { + sv = &types.AudioHlsRenditionSelection{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "groupId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) + } + sv.GroupId = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentAudioLanguageSelection(v **types.AudioLanguageSelection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13519,6 +13568,11 @@ func awsRestjson1_deserializeDocumentAudioSelectorSettings(v **types.AudioSelect for key, value := range shape { switch key { + case "audioHlsRenditionSelection": + if err := awsRestjson1_deserializeDocumentAudioHlsRenditionSelection(&sv.AudioHlsRenditionSelection, value); err != nil { + return err + } + case "audioLanguageSelection": if err := awsRestjson1_deserializeDocumentAudioLanguageSelection(&sv.AudioLanguageSelection, value); err != nil { return err @@ -28160,6 +28214,15 @@ func awsRestjson1_deserializeDocumentWebvttDestinationSettings(v **types.WebvttD for key, value := range shape { switch key { + case "styleControl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WebvttDestinationStyleControl to be of type string, got %T instead", value) + } + sv.StyleControl = types.WebvttDestinationStyleControl(jtv) + } + default: _, _ = key, value diff --git a/service/medialive/serializers.go b/service/medialive/serializers.go index 9ff7104b079..fd072ac7809 100644 --- a/service/medialive/serializers.go +++ b/service/medialive/serializers.go @@ -4922,6 +4922,23 @@ func awsRestjson1_serializeDocumentAudioDescription(v *types.AudioDescription, v return nil } +func awsRestjson1_serializeDocumentAudioHlsRenditionSelection(v *types.AudioHlsRenditionSelection, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GroupId != nil { + ok := object.Key("groupId") + ok.String(*v.GroupId) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + return nil +} + func awsRestjson1_serializeDocumentAudioLanguageSelection(v *types.AudioLanguageSelection, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5038,6 +5055,13 @@ func awsRestjson1_serializeDocumentAudioSelectorSettings(v *types.AudioSelectorS object := value.Object() defer object.Close() + if v.AudioHlsRenditionSelection != nil { + ok := object.Key("audioHlsRenditionSelection") + if err := awsRestjson1_serializeDocumentAudioHlsRenditionSelection(v.AudioHlsRenditionSelection, ok); err != nil { + return err + } + } + if v.AudioLanguageSelection != nil { ok := object.Key("audioLanguageSelection") if err := awsRestjson1_serializeDocumentAudioLanguageSelection(v.AudioLanguageSelection, ok); err != nil { @@ -10253,5 +10277,10 @@ func awsRestjson1_serializeDocumentWebvttDestinationSettings(v *types.WebvttDest object := value.Object() defer object.Close() + if len(v.StyleControl) > 0 { + ok := object.Key("styleControl") + ok.String(string(v.StyleControl)) + } + return nil } diff --git a/service/medialive/types/enums.go b/service/medialive/types/enums.go index 5f254648ec4..71d5642300e 100644 --- a/service/medialive/types/enums.go +++ b/service/medialive/types/enums.go @@ -4929,3 +4929,22 @@ func (WavCodingMode) Values() []WavCodingMode { "CODING_MODE_8_0", } } + +type WebvttDestinationStyleControl string + +// Enum values for WebvttDestinationStyleControl +const ( + WebvttDestinationStyleControlNoStyleData WebvttDestinationStyleControl = "NO_STYLE_DATA" + WebvttDestinationStyleControlPassthrough WebvttDestinationStyleControl = "PASSTHROUGH" +) + +// Values returns all known values for WebvttDestinationStyleControl. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. The ordering of this slice is not guaranteed to be stable across +// updates. +func (WebvttDestinationStyleControl) Values() []WebvttDestinationStyleControl { + return []WebvttDestinationStyleControl{ + "NO_STYLE_DATA", + "PASSTHROUGH", + } +} diff --git a/service/medialive/types/types.go b/service/medialive/types/types.go index 712f0d85b40..70b850a26c9 100644 --- a/service/medialive/types/types.go +++ b/service/medialive/types/types.go @@ -269,6 +269,23 @@ type AudioDescription struct { noSmithyDocumentSerde } +// Audio Hls Rendition Selection +type AudioHlsRenditionSelection struct { + + // Specifies the GROUP-ID in the #EXT-X-MEDIA tag of the target HLS audio + // rendition. + // + // This member is required. + GroupId *string + + // Specifies the NAME in the #EXT-X-MEDIA tag of the target HLS audio rendition. + // + // This member is required. + Name *string + + noSmithyDocumentSerde +} + // Audio Language Selection type AudioLanguageSelection struct { @@ -369,6 +386,9 @@ type AudioSelector struct { // Audio Selector Settings type AudioSelectorSettings struct { + // Audio Hls Rendition Selection + AudioHlsRenditionSelection *AudioHlsRenditionSelection + // Audio Language Selection AudioLanguageSelection *AudioLanguageSelection @@ -5427,6 +5447,13 @@ type WavSettings struct { // Webvtt Destination Settings type WebvttDestinationSettings struct { + + // Controls whether the color and position of the source captions is passed through + // to the WebVTT output captions. PASSTHROUGH - Valid only if the source captions + // are EMBEDDED or TELETEXT. NO_STYLE_DATA - Don't pass through the style. The + // output captions will not contain any font styling information. + StyleControl WebvttDestinationStyleControl + noSmithyDocumentSerde } diff --git a/service/medialive/validators.go b/service/medialive/validators.go index 46ae0954545..518732da498 100644 --- a/service/medialive/validators.go +++ b/service/medialive/validators.go @@ -1455,6 +1455,24 @@ func validateAudioDescription(v *types.AudioDescription) error { } } +func validateAudioHlsRenditionSelection(v *types.AudioHlsRenditionSelection) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AudioHlsRenditionSelection"} + if v.GroupId == nil { + invalidParams.Add(smithy.NewErrParamRequired("GroupId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateAudioLanguageSelection(v *types.AudioLanguageSelection) error { if v == nil { return nil @@ -1524,6 +1542,11 @@ func validateAudioSelectorSettings(v *types.AudioSelectorSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AudioSelectorSettings"} + if v.AudioHlsRenditionSelection != nil { + if err := validateAudioHlsRenditionSelection(v.AudioHlsRenditionSelection); err != nil { + invalidParams.AddNested("AudioHlsRenditionSelection", err.(smithy.InvalidParamsError)) + } + } if v.AudioLanguageSelection != nil { if err := validateAudioLanguageSelection(v.AudioLanguageSelection); err != nil { invalidParams.AddNested("AudioLanguageSelection", err.(smithy.InvalidParamsError)) diff --git a/service/personalize/api_op_CreateCampaign.go b/service/personalize/api_op_CreateCampaign.go index 00c05ada210..3275ecc976f 100644 --- a/service/personalize/api_op_CreateCampaign.go +++ b/service/personalize/api_op_CreateCampaign.go @@ -66,12 +66,6 @@ func (c *Client) CreateCampaign(ctx context.Context, params *CreateCampaignInput type CreateCampaignInput struct { - // Specifies the requested minimum provisioned transactions (recommendations) per - // second that Amazon Personalize will support. - // - // This member is required. - MinProvisionedTPS *int32 - // A name for the new campaign. The campaign name must be unique within your // account. // @@ -86,6 +80,10 @@ type CreateCampaignInput struct { // The configuration details of a campaign. CampaignConfig *types.CampaignConfig + // Specifies the requested minimum provisioned transactions (recommendations) per + // second that Amazon Personalize will support. + MinProvisionedTPS *int32 + noSmithyDocumentSerde } diff --git a/service/personalize/api_op_CreateDatasetExportJob.go b/service/personalize/api_op_CreateDatasetExportJob.go index c77d3634292..c0e5eda3539 100644 --- a/service/personalize/api_op_CreateDatasetExportJob.go +++ b/service/personalize/api_op_CreateDatasetExportJob.go @@ -13,9 +13,8 @@ import ( // Creates a job that exports data from your dataset to an Amazon S3 bucket. To // allow Amazon Personalize to export the training data, you must specify an -// service-linked AWS Identity and Access Management (IAM) role that gives Amazon -// Personalize PutObject permissions for your Amazon S3 bucket. For information, -// see Exporting a dataset +// service-linked IAM role that gives Amazon Personalize PutObject permissions for +// your Amazon S3 bucket. For information, see Exporting a dataset // (https://docs.aws.amazon.com/personalize/latest/dg/export-data.html) in the // Amazon Personalize developer guide. Status A dataset export job can be in one of // the following states: @@ -60,8 +59,8 @@ type CreateDatasetExportJobInput struct { // This member is required. JobOutput *types.DatasetExportJobOutput - // The Amazon Resource Name (ARN) of the AWS Identity and Access Management service - // role that has permissions to add data to your output Amazon S3 bucket. + // The Amazon Resource Name (ARN) of the IAM service role that has permissions to + // add data to your output Amazon S3 bucket. // // This member is required. RoleArn *string diff --git a/service/personalize/api_op_CreateDatasetGroup.go b/service/personalize/api_op_CreateDatasetGroup.go index 3903920a0a2..b48fd63f62d 100644 --- a/service/personalize/api_op_CreateDatasetGroup.go +++ b/service/personalize/api_op_CreateDatasetGroup.go @@ -34,10 +34,10 @@ import ( // the dataset group, call DescribeDatasetGroup. If the status shows as CREATE // FAILED, the response includes a failureReason key, which describes why the // creation failed. You must wait until the status of the dataset group is ACTIVE -// before adding a dataset to the group. You can specify an AWS Key Management -// Service (KMS) key to encrypt the datasets in the group. If you specify a KMS -// key, you must also include an AWS Identity and Access Management (IAM) role that -// has permission to access the key. APIs that require a dataset group ARN in the +// before adding a dataset to the group. You can specify an Key Management Service +// (KMS) key to encrypt the datasets in the group. If you specify a KMS key, you +// must also include an Identity and Access Management (IAM) role that has +// permission to access the key. APIs that require a dataset group ARN in the // request // // * CreateDataset @@ -76,11 +76,13 @@ type CreateDatasetGroupInput struct { // This member is required. Name *string - // The Amazon Resource Name (ARN) of a KMS key used to encrypt the datasets. + // The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to + // encrypt the datasets. KmsKeyArn *string - // The ARN of the IAM role that has permissions to access the KMS key. Supplying an - // IAM role is only valid when also specifying a KMS key. + // The ARN of the Identity and Access Management (IAM) role that has permissions to + // access the Key Management Service (KMS) key. Supplying an IAM role is only valid + // when also specifying a KMS key. RoleArn *string noSmithyDocumentSerde diff --git a/service/personalize/api_op_CreateDatasetImportJob.go b/service/personalize/api_op_CreateDatasetImportJob.go index b89f691dff8..10cc9d630c8 100644 --- a/service/personalize/api_op_CreateDatasetImportJob.go +++ b/service/personalize/api_op_CreateDatasetImportJob.go @@ -13,11 +13,10 @@ import ( // Creates a job that imports training data from your data source (an Amazon S3 // bucket) to an Amazon Personalize dataset. To allow Amazon Personalize to import -// the training data, you must specify an AWS Identity and Access Management (IAM) -// service role that has permission to read from the data source, as Amazon -// Personalize makes a copy of your data and processes it in an internal AWS -// system. For information on granting access to your Amazon S3 bucket, see Giving -// Amazon Personalize Access to Amazon S3 Resources +// the training data, you must specify an IAM service role that has permission to +// read from the data source, as Amazon Personalize makes a copy of your data and +// processes it internally. For information on granting access to your Amazon S3 +// bucket, see Giving Amazon Personalize Access to Amazon S3 Resources // (https://docs.aws.amazon.com/personalize/latest/dg/granting-personalize-s3-access.html). // The dataset import job replaces any existing data in the dataset that you // imported in bulk. Status A dataset import job can be in one of the following diff --git a/service/personalize/types/types.go b/service/personalize/types/types.go index 63103710def..d901efe94d7 100644 --- a/service/personalize/types/types.go +++ b/service/personalize/types/types.go @@ -450,8 +450,8 @@ type DatasetExportJob struct { // updated. LastUpdatedDateTime *time.Time - // The Amazon Resource Name (ARN) of the AWS Identity and Access Management service - // role that has permissions to add data to your output Amazon S3 bucket. + // The Amazon Resource Name (ARN) of the IAM service role that has permissions to + // add data to your output Amazon S3 bucket. RoleArn *string // The status of the dataset export job. A dataset export job can be in one of the @@ -510,7 +510,7 @@ type DatasetExportJobSummary struct { // a dataset and add it to a dataset group by calling CreateDataset. The dataset // group is used to create and train a solution by calling CreateSolution. A // dataset group can contain only one of each type of dataset. You can specify an -// AWS Key Management Service (KMS) key to encrypt the datasets in the group. +// Key Management Service (KMS) key to encrypt the datasets in the group. type DatasetGroup struct { // The creation date and time (in Unix time) of the dataset group. @@ -522,7 +522,8 @@ type DatasetGroup struct { // If creating a dataset group fails, provides the reason why. FailureReason *string - // The Amazon Resource Name (ARN) of the KMS key used to encrypt the datasets. + // The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to + // encrypt the datasets. KmsKeyArn *string // The last update date and time (in Unix time) of the dataset group. @@ -606,8 +607,8 @@ type DatasetImportJob struct { // The date and time (in Unix time) the dataset was last updated. LastUpdatedDateTime *time.Time - // The ARN of the AWS Identity and Access Management (IAM) role that has - // permissions to read from the Amazon S3 data source. + // The ARN of the IAM role that has permissions to read from the Amazon S3 data + // source. RoleArn *string // The status of the dataset import job. A dataset import job can be in one of the @@ -817,7 +818,7 @@ type DefaultIntegerHyperParameterRange struct { // Provides information about an event tracker. type EventTracker struct { - // The Amazon AWS account that owns the event tracker. + // The Amazon Web Services account that owns the event tracker. AccountId *string // The date and time (in Unix format) that the event tracker was created. @@ -1138,9 +1139,9 @@ type S3DataConfig struct { // This member is required. Path *string - // The Amazon Resource Name (ARN) of the Amazon Key Management Service (KMS) key - // that Amazon Personalize uses to encrypt or decrypt the input and output files of - // a batch inference job. + // The Amazon Resource Name (ARN) of the Key Management Service (KMS) key that + // Amazon Personalize uses to encrypt or decrypt the input and output files of a + // batch inference job. KmsKeyArn *string noSmithyDocumentSerde diff --git a/service/personalize/validators.go b/service/personalize/validators.go index 824850d8218..a978fbf2632 100644 --- a/service/personalize/validators.go +++ b/service/personalize/validators.go @@ -968,9 +968,6 @@ func validateOpCreateCampaignInput(v *CreateCampaignInput) error { if v.SolutionVersionArn == nil { invalidParams.Add(smithy.NewErrParamRequired("SolutionVersionArn")) } - if v.MinProvisionedTPS == nil { - invalidParams.Add(smithy.NewErrParamRequired("MinProvisionedTPS")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/proton/api_op_AcceptEnvironmentAccountConnection.go b/service/proton/api_op_AcceptEnvironmentAccountConnection.go index 9887b79d0f1..53f61ec9822 100644 --- a/service/proton/api_op_AcceptEnvironmentAccountConnection.go +++ b/service/proton/api_op_AcceptEnvironmentAccountConnection.go @@ -15,7 +15,9 @@ import ( // When the environment account connection request is accepted, AWS Proton can use // the associated IAM role to provision environment infrastructure resources in the // associated environment account. For more information, see Environment account -// connections in the AWS Proton Administration guide. +// connections +// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the AWS Proton Administrator guide. func (c *Client) AcceptEnvironmentAccountConnection(ctx context.Context, params *AcceptEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*AcceptEnvironmentAccountConnectionOutput, error) { if params == nil { params = &AcceptEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_CancelEnvironmentDeployment.go b/service/proton/api_op_CancelEnvironmentDeployment.go index 51ac771b93d..00ad49cc33f 100644 --- a/service/proton/api_op_CancelEnvironmentDeployment.go +++ b/service/proton/api_op_CancelEnvironmentDeployment.go @@ -14,7 +14,7 @@ import ( // Attempts to cancel an environment deployment on an UpdateEnvironment action, if // the deployment is IN_PROGRESS. For more information, see Update an environment // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-update.html) in the -// AWS Proton Administration guide. The following list includes potential +// AWS Proton Administrator guide. The following list includes potential // cancellation scenarios. // // * If the cancellation attempt succeeds, the resulting diff --git a/service/proton/api_op_CancelServiceInstanceDeployment.go b/service/proton/api_op_CancelServiceInstanceDeployment.go index a5d910ca80e..c96fb2325f6 100644 --- a/service/proton/api_op_CancelServiceInstanceDeployment.go +++ b/service/proton/api_op_CancelServiceInstanceDeployment.go @@ -13,7 +13,7 @@ import ( // Attempts to cancel a service instance deployment on an UpdateServiceInstance // action, if the deployment is IN_PROGRESS. For more information, see Update a -// service instance in the AWS Proton Administration guide +// service instance in the AWS Proton Administrator guide // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-instance-update.html) // or the AWS Proton User guide // (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-instance-update.html). diff --git a/service/proton/api_op_CancelServicePipelineDeployment.go b/service/proton/api_op_CancelServicePipelineDeployment.go index f94ed96c40b..cb7f9fd9fed 100644 --- a/service/proton/api_op_CancelServicePipelineDeployment.go +++ b/service/proton/api_op_CancelServicePipelineDeployment.go @@ -13,7 +13,7 @@ import ( // Attempts to cancel a service pipeline deployment on an UpdateServicePipeline // action, if the deployment is IN_PROGRESS. For more information, see Update a -// service pipeline in the AWS Proton Administration guide +// service pipeline in the AWS Proton Administrator guide // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-pipeline-update.html) // or the AWS Proton User guide // (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-pipeline-update.html). diff --git a/service/proton/api_op_CreateEnvironment.go b/service/proton/api_op_CreateEnvironment.go index 936df5858cd..20e8e31048b 100644 --- a/service/proton/api_op_CreateEnvironment.go +++ b/service/proton/api_op_CreateEnvironment.go @@ -15,7 +15,7 @@ import ( // environment template that defines infrastructure and resources that can be // shared across services. For more information, see the Environments // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-environments.html) in -// the AWS Proton Administration Guide. +// the AWS Proton Administrator Guide. func (c *Client) CreateEnvironment(ctx context.Context, params *CreateEnvironmentInput, optFns ...func(*Options)) (*CreateEnvironmentOutput, error) { if params == nil { params = &CreateEnvironmentInput{} @@ -40,8 +40,8 @@ type CreateEnvironmentInput struct { // A link to a YAML formatted spec file that provides inputs as defined in the // environment template bundle schema file. For more information, see Environments - // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-managing-environments.html) - // in the AWS Proton Administration Guide. + // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-environments.html) in + // the AWS Proton Administrator Guide. // // This value conforms to the media type: application/yaml // @@ -55,8 +55,8 @@ type CreateEnvironmentInput struct { // The name of the environment template. For more information, see Environment // Templates - // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-templates.html) in - // the AWS Proton Administration Guide. + // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-templates.html) in the + // AWS Proton Administrator Guide. // // This member is required. TemplateName *string @@ -68,7 +68,9 @@ type CreateEnvironmentInput struct { // provisioning your environment infrastructure resources to an environment // account. You must include either the environmentAccountConnectionId or // protonServiceRoleArn parameter and value. For more information, see Environment - // account connections in the AWS Proton Administration guide. + // account connections + // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) + // in the AWS Proton Administrator guide. EnvironmentAccountConnectionId *string // The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS @@ -77,7 +79,7 @@ type CreateEnvironmentInput struct { ProtonServiceRoleArn *string // Create tags for your environment. For more information, see AWS Proton resources - // and tagging in the AWS Proton Administration Guide + // and tagging in the AWS Proton Administrator Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_CreateEnvironmentAccountConnection.go b/service/proton/api_op_CreateEnvironmentAccountConnection.go index b7cf7f5fe14..3591f96bb6f 100644 --- a/service/proton/api_op_CreateEnvironmentAccountConnection.go +++ b/service/proton/api_op_CreateEnvironmentAccountConnection.go @@ -13,10 +13,12 @@ import ( // Create an environment account connection in an environment account so that // environment infrastructure resources can be provisioned in the environment -// account from the management account. An environment account connection is a -// secure bi-directional connection between a management account and an environment +// account from a management account. An environment account connection is a secure +// bi-directional connection between a management account and an environment // account that maintains authorization and permissions. For more information, see -// Environment account connections in the AWS Proton Administration guide. +// Environment account connections +// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the AWS Proton Administrator guide. func (c *Client) CreateEnvironmentAccountConnection(ctx context.Context, params *CreateEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*CreateEnvironmentAccountConnectionOutput, error) { if params == nil { params = &CreateEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_CreateEnvironmentTemplate.go b/service/proton/api_op_CreateEnvironmentTemplate.go index 4f634391cea..ddf8232cd8f 100644 --- a/service/proton/api_op_CreateEnvironmentTemplate.go +++ b/service/proton/api_op_CreateEnvironmentTemplate.go @@ -13,23 +13,22 @@ import ( // Create an environment template for AWS Proton. For more information, see // Environment Templates -// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-templates.html) in -// the AWS Proton Administration Guide. You can create an environment template in -// one of the two following ways: +// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-templates.html) in the +// AWS Proton Administrator Guide. You can create an environment template in one of +// the two following ways: // -// * Register and publish a standard environment -// template that instructs AWS Proton to deploy and manage environment -// infrastructure. +// * Register and publish a standard environment template +// that instructs AWS Proton to deploy and manage environment infrastructure. // -// * Register and publish a customer managed environment template -// that connects AWS Proton to your existing provisioned infrastructure that you -// manage. AWS Proton doesn't manage your existing provisioned infrastructure. To -// create an environment template for customer provisioned and managed -// infrastructure, include the provisioning parameter and set the value to -// CUSTOMER_MANAGED. For more information, see Register and publish an environment -// template -// (https://docs.aws.amazon.com/proton/latest/adminguide/env-template-v1.html) in -// the AWS Proton Administration Guide. +// * +// Register and publish a customer managed environment template that connects AWS +// Proton to your existing provisioned infrastructure that you manage. AWS Proton +// doesn't manage your existing provisioned infrastructure. To create an +// environment template for customer provisioned and managed infrastructure, +// include the provisioning parameter and set the value to CUSTOMER_MANAGED. For +// more information, see Register and publish an environment template +// (https://docs.aws.amazon.com/proton/latest/adminguide/template-create.html) in +// the AWS Proton Administrator Guide. func (c *Client) CreateEnvironmentTemplate(ctx context.Context, params *CreateEnvironmentTemplateInput, optFns ...func(*Options)) (*CreateEnvironmentTemplateOutput, error) { if params == nil { params = &CreateEnvironmentTemplateInput{} @@ -66,7 +65,7 @@ type CreateEnvironmentTemplateInput struct { Provisioning types.Provisioning // Create tags for your environment template. For more information, see AWS Proton - // resources and tagging in the AWS Proton Administration Guide + // resources and tagging in the AWS Proton Administrator Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_CreateService.go b/service/proton/api_op_CreateService.go index 083dac56628..fc7ab23b498 100644 --- a/service/proton/api_op_CreateService.go +++ b/service/proton/api_op_CreateService.go @@ -15,7 +15,7 @@ import ( // service template and often includes several service instances and pipeline. For // more information, see Services // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-services.html) in the -// AWS Proton Administration Guide and Services +// AWS Proton Administrator Guide and Services // (https://docs.aws.amazon.com/proton/latest/userguide/ug-service.html) in the AWS // Proton User Guide. func (c *Client) CreateService(ctx context.Context, params *CreateServiceInput, optFns ...func(*Options)) (*CreateServiceOutput, error) { @@ -45,7 +45,7 @@ type CreateServiceInput struct { // inputs in the spec if your service template doesn’t include a service pipeline. // For more information, see Create a service // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-create-svc.html.html) - // in the AWS Proton Administration Guide and Create a service + // in the AWS Proton Administrator Guide and Create a service // (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-create.html) in the // AWS Proton User Guide. // @@ -73,11 +73,11 @@ type CreateServiceInput struct { // A description of the AWS Proton service. Description *string - // The ARN of the repository connection. For more information, see Set up - // repository connection - // (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#settingSS-up-vcontrol) - // in the AWS Proton Administration Guide and Getting started - // (https://docs.aws.amazon.com/proton/latest/userguide/ug-getting-started.html#getting-started-step1) + // The Amazon Resource Name (ARN) of the repository connection. For more + // information, see Set up repository connection + // (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#setting-up-vcontrol) + // in the AWS Proton Administrator Guide and Setting up with AWS Proton + // (https://docs.aws.amazon.com/proton/latest/userguide/proton-setup.html#setup-repo-connection) // in the AWS Proton User Guide. Don't include this parameter if your service // template doesn't include a service pipeline. RepositoryConnectionArn *string @@ -87,7 +87,7 @@ type CreateServiceInput struct { RepositoryId *string // Create tags for your service. For more information, see AWS Proton resources and - // tagging in the AWS Proton Administration Guide + // tagging in the AWS Proton Administrator Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_CreateServiceTemplate.go b/service/proton/api_op_CreateServiceTemplate.go index c8306da1d8e..ab6d5af1f79 100644 --- a/service/proton/api_op_CreateServiceTemplate.go +++ b/service/proton/api_op_CreateServiceTemplate.go @@ -19,7 +19,7 @@ import ( // infrastructure defined by the selected service template. For more information, // see Service Templates // (https://docs.aws.amazon.com/proton/latest/adminguide/managing-svc-templates.html) -// in the AWS Proton Administration Guide. +// in the AWS Proton Administrator Guide. func (c *Client) CreateServiceTemplate(ctx context.Context, params *CreateServiceTemplateInput, optFns ...func(*Options)) (*CreateServiceTemplateOutput, error) { if params == nil { params = &CreateServiceTemplateInput{} @@ -55,12 +55,12 @@ type CreateServiceTemplateInput struct { // included, this parameter indicates that an AWS Proton service pipeline won't be // included for your service. Once specified, this parameter can't be changed. For // more information, see Service template bundles - // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-template-bundles.html) - // in the AWS Proton Administration Guide. + // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-template-bundles.html) + // in the AWS Proton Administrator Guide. PipelineProvisioning types.Provisioning // Create tags for your service template. For more information, see AWS Proton - // resources and tagging in the AWS Proton Administration Guide + // resources and tagging in the AWS Proton Administrator Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_DeleteEnvironmentAccountConnection.go b/service/proton/api_op_DeleteEnvironmentAccountConnection.go index ec9d891159a..bcfa1ef3fd8 100644 --- a/service/proton/api_op_DeleteEnvironmentAccountConnection.go +++ b/service/proton/api_op_DeleteEnvironmentAccountConnection.go @@ -17,8 +17,9 @@ import ( // until a new environment account connection is accepted for the environment // account and associated environment. You're responsible for cleaning up // provisioned resources that remain without an environment connection. For more -// information, see Environment account connections in the AWS Proton -// Administration guide. +// information, see Environment account connections +// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the AWS Proton Administrator guide. func (c *Client) DeleteEnvironmentAccountConnection(ctx context.Context, params *DeleteEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*DeleteEnvironmentAccountConnectionOutput, error) { if params == nil { params = &DeleteEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_GetEnvironmentAccountConnection.go b/service/proton/api_op_GetEnvironmentAccountConnection.go index ae9741c9839..28687aa2787 100644 --- a/service/proton/api_op_GetEnvironmentAccountConnection.go +++ b/service/proton/api_op_GetEnvironmentAccountConnection.go @@ -12,8 +12,9 @@ import ( ) // In an environment account, view the detail data for an environment account -// connection. For more information, see Environment account connections in the AWS -// Proton Administration guide. +// connection. For more information, see Environment account connections +// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the AWS Proton Administrator guide. func (c *Client) GetEnvironmentAccountConnection(ctx context.Context, params *GetEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*GetEnvironmentAccountConnectionOutput, error) { if params == nil { params = &GetEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_ListEnvironmentAccountConnections.go b/service/proton/api_op_ListEnvironmentAccountConnections.go index e280811c2ec..86cc0f77b29 100644 --- a/service/proton/api_op_ListEnvironmentAccountConnections.go +++ b/service/proton/api_op_ListEnvironmentAccountConnections.go @@ -13,7 +13,9 @@ import ( ) // View a list of environment account connections. For more information, see -// Environment account connections in the AWS Proton Administration guide. +// Environment account connections +// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the AWS Proton Administrator guide. func (c *Client) ListEnvironmentAccountConnections(ctx context.Context, params *ListEnvironmentAccountConnectionsInput, optFns ...func(*Options)) (*ListEnvironmentAccountConnectionsOutput, error) { if params == nil { params = &ListEnvironmentAccountConnectionsInput{} diff --git a/service/proton/api_op_ListTagsForResource.go b/service/proton/api_op_ListTagsForResource.go index 90105bd163d..bbc75b16e08 100644 --- a/service/proton/api_op_ListTagsForResource.go +++ b/service/proton/api_op_ListTagsForResource.go @@ -13,7 +13,7 @@ import ( ) // List tags for a resource. For more information, see AWS Proton resources and -// tagging in the AWS Proton Administration Guide +// tagging in the AWS Proton Administrator Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). @@ -34,7 +34,7 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes type ListTagsForResourceInput struct { - // The ARN of the resource for the listed tags. + // The Amazon Resource Name (ARN) of the resource for the listed tags. // // This member is required. ResourceArn *string diff --git a/service/proton/api_op_RejectEnvironmentAccountConnection.go b/service/proton/api_op_RejectEnvironmentAccountConnection.go index e70cfecd423..1cfe4f4b08e 100644 --- a/service/proton/api_op_RejectEnvironmentAccountConnection.go +++ b/service/proton/api_op_RejectEnvironmentAccountConnection.go @@ -15,8 +15,9 @@ import ( // environment account. After you reject an environment account connection request, // you won’t be able to accept or use the rejected environment account connection. // You can’t reject an environment account connection that is connected to an -// environment. For more information, see Environment account connections in the -// AWS Proton Administration guide. +// environment. For more information, see Environment account connections +// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the AWS Proton Administrator guide. func (c *Client) RejectEnvironmentAccountConnection(ctx context.Context, params *RejectEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*RejectEnvironmentAccountConnectionOutput, error) { if params == nil { params = &RejectEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_TagResource.go b/service/proton/api_op_TagResource.go index 8403b66e3b0..2670f0b4f8e 100644 --- a/service/proton/api_op_TagResource.go +++ b/service/proton/api_op_TagResource.go @@ -12,7 +12,7 @@ import ( ) // Tag a resource. For more information, see AWS Proton resources and tagging in -// the AWS Proton Administration Guide +// the AWS Proton Administrator Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_UntagResource.go b/service/proton/api_op_UntagResource.go index 7f17588b726..731b83829db 100644 --- a/service/proton/api_op_UntagResource.go +++ b/service/proton/api_op_UntagResource.go @@ -11,7 +11,7 @@ import ( ) // Remove a tag from a resource. For more information, see AWS Proton resources and -// tagging in the AWS Proton Administration Guide +// tagging in the AWS Proton Administrator Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) or AWS // Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). diff --git a/service/proton/api_op_UpdateEnvironment.go b/service/proton/api_op_UpdateEnvironment.go index 70e9f37600f..9796f97667c 100644 --- a/service/proton/api_op_UpdateEnvironment.go +++ b/service/proton/api_op_UpdateEnvironment.go @@ -16,7 +16,7 @@ import ( // to update or connect to an environment account connection. You can only update // to a new environment account connection if it was created in the same // environment account that the current environment account connection was created -// in and associated with the current environment. If the environment isn't +// in and is associated with the current environment. If the environment isn't // associated with an environment account connection, don't update or include the // environmentAccountConnectionId parameter to update or connect to an environment // account connection. You can update either the environmentAccountConnectionId or @@ -78,12 +78,12 @@ type UpdateEnvironmentInput struct { // The ID of the environment account connection. You can only update to a new // environment account connection if it was created in the same environment account - // that the current environment account connection was created in and associated + // that the current environment account connection was created in and is associated // with the current environment. EnvironmentAccountConnectionId *string - // The ARN of the AWS Proton service role that allows AWS Proton to make API calls - // to other services your behalf. + // The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS + // Proton to make API calls to other services your behalf. ProtonServiceRoleArn *string // The formatted specification that defines the update. diff --git a/service/proton/api_op_UpdateEnvironmentAccountConnection.go b/service/proton/api_op_UpdateEnvironmentAccountConnection.go index 7e38efb4b61..3b64392a83f 100644 --- a/service/proton/api_op_UpdateEnvironmentAccountConnection.go +++ b/service/proton/api_op_UpdateEnvironmentAccountConnection.go @@ -12,8 +12,9 @@ import ( ) // In an environment account, update an environment account connection to use a new -// IAM role. For more information, see Environment account connections in the AWS -// Proton Administration guide. +// IAM role. For more information, see Environment account connections +// (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the AWS Proton Administrator guide. func (c *Client) UpdateEnvironmentAccountConnection(ctx context.Context, params *UpdateEnvironmentAccountConnectionInput, optFns ...func(*Options)) (*UpdateEnvironmentAccountConnectionOutput, error) { if params == nil { params = &UpdateEnvironmentAccountConnectionInput{} diff --git a/service/proton/api_op_UpdateService.go b/service/proton/api_op_UpdateService.go index 3a24e7084aa..f877ddf3f0e 100644 --- a/service/proton/api_op_UpdateService.go +++ b/service/proton/api_op_UpdateService.go @@ -43,7 +43,7 @@ type UpdateServiceInput struct { // Lists the service instances to add and the existing service instances to remain. // Omit the existing service instances to delete from the list. Don't include edits // to the existing service instances or pipeline. For more information, see Edit a - // service in the AWS Proton Administration Guide + // service in the AWS Proton Administrator Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-update.html) or the // AWS Proton User Guide // (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-update.html). diff --git a/service/proton/doc.go b/service/proton/doc.go index cc5e9732f2a..65c8e86d671 100644 --- a/service/proton/doc.go +++ b/service/proton/doc.go @@ -23,7 +23,7 @@ // applications that are running on AWS Proton, developers need permissions to the // service create, list, update and delete API operations and the service instance // list and update API operations. To learn more about AWS Proton administration, -// see the AWS Proton Administration Guide +// see the AWS Proton Administrator Guide // (https://docs.aws.amazon.com/proton/latest/adminguide/Welcome.html). To learn // more about deploying serverless and containerized applications on AWS Proton, // see the AWS Proton User Guide diff --git a/service/proton/types/errors.go b/service/proton/types/errors.go index 04ca2b918bb..8681cbdd717 100644 --- a/service/proton/types/errors.go +++ b/service/proton/types/errors.go @@ -85,7 +85,7 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit // A quota was exceeded. For more information, see AWS Proton Quotas // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) in the AWS -// Proton Administration Guide. +// Proton Administrator Guide. type ServiceQuotaExceededException struct { Message *string diff --git a/service/proton/types/types.go b/service/proton/types/types.go index 96fa77726fa..661ad251a28 100644 --- a/service/proton/types/types.go +++ b/service/proton/types/types.go @@ -92,7 +92,7 @@ type Environment struct { // This member is required. TemplateMinorVersion *string - // The ARN of the environment template. + // The Amazon Resource Name (ARN) of the environment template. // // This member is required. TemplateName *string @@ -111,8 +111,8 @@ type Environment struct { // are provisioned in. EnvironmentAccountId *string - // The ARN of the AWS Proton service role that allows AWS Proton to make calls to - // other services on your behalf. + // The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS + // Proton to make calls to other services on your behalf. ProtonServiceRoleArn *string // When included, indicates that the environment template is for customer @@ -296,8 +296,8 @@ type EnvironmentSummary struct { // are provisioned in. EnvironmentAccountId *string - // The ARN of the AWS Proton service role that allows AWS Proton to make calls to - // other services on your behalf. + // The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS + // Proton to make calls to other services on your behalf. ProtonServiceRoleArn *string // When included, indicates that the environment template is for customer @@ -577,11 +577,11 @@ type Service struct { // The service pipeline detail data. Pipeline *ServicePipeline - // The ARN of the repository connection. For more information, see Set up a - // repository connection + // The Amazon Resource Name (ARN) of the repository connection. For more + // information, see Set up a repository connection // (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#setting-up-vcontrol) - // in the AWS Proton Administration Guide and Getting started - // (https://docs.aws.amazon.com/proton/latest/userguide/ug-getting-started.html#getting-started-step1) + // in the AWS Proton Administrator Guide and Setting up with AWS Proton + // (https://docs.aws.amazon.com/proton/latest/userguide/proton-setup.html#setup-repo-connection) // in the AWS Proton User Guide. RepositoryConnectionArn *string diff --git a/service/qldb/api_op_CreateLedger.go b/service/qldb/api_op_CreateLedger.go index 97d2204e447..992ee578955 100644 --- a/service/qldb/api_op_CreateLedger.go +++ b/service/qldb/api_op_CreateLedger.go @@ -12,7 +12,7 @@ import ( "time" ) -// Creates a new ledger in your AWS account in the current Region. +// Creates a new ledger in your account in the current Region. func (c *Client) CreateLedger(ctx context.Context, params *CreateLedgerInput, optFns ...func(*Options)) (*CreateLedgerOutput, error) { if params == nil { params = &CreateLedgerInput{} @@ -31,8 +31,8 @@ func (c *Client) CreateLedger(ctx context.Context, params *CreateLedgerInput, op type CreateLedgerInput struct { // The name of the ledger that you want to create. The name must be unique among - // all of your ledgers in the current AWS Region. Naming constraints for ledger - // names are defined in Quotas in Amazon QLDB + // all of the ledgers in your account in the current Region. Naming constraints for + // ledger names are defined in Quotas in Amazon QLDB // (https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming) // in the Amazon QLDB Developer Guide. // @@ -73,6 +73,48 @@ type CreateLedgerInput struct { // to false. DeletionProtection *bool + // The key in Key Management Service (KMS) to use for encryption of data at rest in + // the ledger. For more information, see Encryption at rest + // (https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html) + // in the Amazon QLDB Developer Guide. Use one of the following options to specify + // this parameter: + // + // * AWS_OWNED_KMS_KEY: Use an KMS key that is owned and managed + // by Amazon Web Services on your behalf. + // + // * Undefined: By default, use an Amazon + // Web Services owned KMS key. + // + // * A valid symmetric customer managed KMS key: Use + // the specified KMS key in your account that you create, own, and manage. Amazon + // QLDB does not support asymmetric keys. For more information, see Using symmetric + // and asymmetric keys + // (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + // in the Key Management Service Developer Guide. + // + // To specify a customer managed + // KMS key, you can use its key ID, Amazon Resource Name (ARN), alias name, or + // alias ARN. When using an alias name, prefix it with "alias/". To specify a key + // in a different account, you must use the key ARN or alias ARN. For example: + // + // * + // Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // + // * Key ARN: + // arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // + // * + // Alias name: alias/ExampleAlias + // + // * Alias ARN: + // arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias + // + // For more information, see + // Key identifiers (KeyId) + // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id) in + // the Key Management Service Developer Guide. + KmsKey *string + // The key-value pairs to add as tags to the ledger that you want to create. Tag // keys are case sensitive. Tag values are case sensitive and can be null. Tags map[string]*string @@ -97,6 +139,11 @@ type CreateLedgerOutput struct { // to false. DeletionProtection *bool + // The ARN of the customer managed KMS key that the ledger uses for encryption at + // rest. If this parameter is undefined, the ledger uses an Amazon Web Services + // owned KMS key for encryption. + KmsKeyArn *string + // The name of the ledger. Name *string diff --git a/service/qldb/api_op_DescribeLedger.go b/service/qldb/api_op_DescribeLedger.go index f541c24e077..a8e3c5e8421 100644 --- a/service/qldb/api_op_DescribeLedger.go +++ b/service/qldb/api_op_DescribeLedger.go @@ -12,7 +12,8 @@ import ( "time" ) -// Returns information about a ledger, including its state and when it was created. +// Returns information about a ledger, including its state, permissions mode, +// encryption at rest settings, and when it was created. func (c *Client) DescribeLedger(ctx context.Context, params *DescribeLedgerInput, optFns ...func(*Options)) (*DescribeLedgerOutput, error) { if params == nil { params = &DescribeLedgerInput{} @@ -55,6 +56,11 @@ type DescribeLedgerOutput struct { // to false. DeletionProtection *bool + // Information about the encryption of data at rest in the ledger. This includes + // the current status, the KMS key, and when the key became inaccessible (in the + // case of an error). + EncryptionDescription *types.LedgerEncryptionDescription + // The name of the ledger. Name *string diff --git a/service/qldb/api_op_ExportJournalToS3.go b/service/qldb/api_op_ExportJournalToS3.go index 39cd1dec376..023888f7c92 100644 --- a/service/qldb/api_op_ExportJournalToS3.go +++ b/service/qldb/api_op_ExportJournalToS3.go @@ -66,8 +66,8 @@ type ExportJournalToS3Input struct { // Simple Storage Service (Amazon S3) bucket. // // * (Optional) Use your customer - // master key (CMK) in AWS Key Management Service (AWS KMS) for server-side - // encryption of your exported data. + // master key (CMK) in Key Management Service (KMS) for server-side encryption of + // your exported data. // // This member is required. RoleArn *string diff --git a/service/qldb/api_op_ListJournalS3Exports.go b/service/qldb/api_op_ListJournalS3Exports.go index d7635d81f05..8f9cd5378c2 100644 --- a/service/qldb/api_op_ListJournalS3Exports.go +++ b/service/qldb/api_op_ListJournalS3Exports.go @@ -13,10 +13,10 @@ import ( ) // Returns an array of journal export job descriptions for all ledgers that are -// associated with the current AWS account and Region. This action returns a -// maximum of MaxResults items, and is paginated so that you can retrieve all the -// items by calling ListJournalS3Exports multiple times. This action does not -// return any expired export jobs. For more information, see Export job expiration +// associated with the current account and Region. This action returns a maximum of +// MaxResults items, and is paginated so that you can retrieve all the items by +// calling ListJournalS3Exports multiple times. This action does not return any +// expired export jobs. For more information, see Export job expiration // (https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration) // in the Amazon QLDB Developer Guide. func (c *Client) ListJournalS3Exports(ctx context.Context, params *ListJournalS3ExportsInput, optFns ...func(*Options)) (*ListJournalS3ExportsOutput, error) { @@ -51,7 +51,7 @@ type ListJournalS3ExportsInput struct { type ListJournalS3ExportsOutput struct { // The array of journal export job descriptions for all ledgers that are associated - // with the current AWS account and Region. + // with the current account and Region. JournalS3Exports []types.JournalS3ExportDescription // * If NextToken is empty, then the last page of results has been processed and diff --git a/service/qldb/api_op_ListLedgers.go b/service/qldb/api_op_ListLedgers.go index 75ad40adbcd..4458db5d4c2 100644 --- a/service/qldb/api_op_ListLedgers.go +++ b/service/qldb/api_op_ListLedgers.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns an array of ledger summaries that are associated with the current AWS +// Returns an array of ledger summaries that are associated with the current // account and Region. This action returns a maximum of 100 items and is paginated // so that you can retrieve all the items by calling ListLedgers multiple times. func (c *Client) ListLedgers(ctx context.Context, params *ListLedgersInput, optFns ...func(*Options)) (*ListLedgersOutput, error) { @@ -46,8 +46,8 @@ type ListLedgersInput struct { type ListLedgersOutput struct { - // The array of ledger summaries that are associated with the current AWS account - // and Region. + // The array of ledger summaries that are associated with the current account and + // Region. Ledgers []types.LedgerSummary // A pagination token, indicating whether there are more results available: diff --git a/service/qldb/api_op_UpdateLedger.go b/service/qldb/api_op_UpdateLedger.go index 822e03161a4..62a9984395f 100644 --- a/service/qldb/api_op_UpdateLedger.go +++ b/service/qldb/api_op_UpdateLedger.go @@ -42,6 +42,48 @@ type UpdateLedgerInput struct { // to false. DeletionProtection *bool + // The key in Key Management Service (KMS) to use for encryption of data at rest in + // the ledger. For more information, see Encryption at rest + // (https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html) + // in the Amazon QLDB Developer Guide. Use one of the following options to specify + // this parameter: + // + // * AWS_OWNED_KMS_KEY: Use an KMS key that is owned and managed + // by Amazon Web Services on your behalf. + // + // * Undefined: Make no changes to the KMS + // key of the ledger. + // + // * A valid symmetric customer managed KMS key: Use the + // specified KMS key in your account that you create, own, and manage. Amazon QLDB + // does not support asymmetric keys. For more information, see Using symmetric and + // asymmetric keys + // (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + // in the Key Management Service Developer Guide. + // + // To specify a customer managed + // KMS key, you can use its key ID, Amazon Resource Name (ARN), alias name, or + // alias ARN. When using an alias name, prefix it with "alias/". To specify a key + // in a different account, you must use the key ARN or alias ARN. For example: + // + // * + // Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + // + // * Key ARN: + // arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + // + // * + // Alias name: alias/ExampleAlias + // + // * Alias ARN: + // arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias + // + // For more information, see + // Key identifiers (KeyId) + // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id) in + // the Key Management Service Developer Guide. + KmsKey *string + noSmithyDocumentSerde } @@ -62,6 +104,11 @@ type UpdateLedgerOutput struct { // to false. DeletionProtection *bool + // Information about the encryption of data at rest in the ledger. This includes + // the current status, the KMS key, and when the key became inaccessible (in the + // case of an error). + EncryptionDescription *types.LedgerEncryptionDescription + // The name of the ledger. Name *string diff --git a/service/qldb/deserializers.go b/service/qldb/deserializers.go index 33a243dc310..4016d3779cc 100644 --- a/service/qldb/deserializers.go +++ b/service/qldb/deserializers.go @@ -354,6 +354,15 @@ func awsRestjson1_deserializeOpDocumentCreateLedgerOutput(v **CreateLedgerOutput sv.DeletionProtection = ptr.Bool(jtv) } + case "KmsKeyArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.KmsKeyArn = ptr.String(jtv) + } + case "Name": if value != nil { jtv, ok := value.(string) @@ -958,6 +967,11 @@ func awsRestjson1_deserializeOpDocumentDescribeLedgerOutput(v **DescribeLedgerOu sv.DeletionProtection = ptr.Bool(jtv) } + case "EncryptionDescription": + if err := awsRestjson1_deserializeDocumentLedgerEncryptionDescription(&sv.EncryptionDescription, value); err != nil { + return err + } + case "Name": if value != nil { jtv, ok := value.(string) @@ -2900,6 +2914,11 @@ func awsRestjson1_deserializeOpDocumentUpdateLedgerOutput(v **UpdateLedgerOutput sv.DeletionProtection = ptr.Bool(jtv) } + case "EncryptionDescription": + if err := awsRestjson1_deserializeDocumentLedgerEncryptionDescription(&sv.EncryptionDescription, value); err != nil { + return err + } + case "Name": if value != nil { jtv, ok := value.(string) @@ -3748,6 +3767,71 @@ func awsRestjson1_deserializeDocumentKinesisConfiguration(v **types.KinesisConfi return nil } +func awsRestjson1_deserializeDocumentLedgerEncryptionDescription(v **types.LedgerEncryptionDescription, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.LedgerEncryptionDescription + if *v == nil { + sv = &types.LedgerEncryptionDescription{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EncryptionStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EncryptionStatus to be of type string, got %T instead", value) + } + sv.EncryptionStatus = types.EncryptionStatus(jtv) + } + + case "InaccessibleKmsKeyDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.InaccessibleKmsKeyDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "KmsKeyArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.KmsKeyArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentLedgerList(v *[]types.LedgerSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/qldb/serializers.go b/service/qldb/serializers.go index ca711411474..8d98600be10 100644 --- a/service/qldb/serializers.go +++ b/service/qldb/serializers.go @@ -147,6 +147,11 @@ func awsRestjson1_serializeOpDocumentCreateLedgerInput(v *CreateLedgerInput, val ok.Boolean(*v.DeletionProtection) } + if v.KmsKey != nil { + ok := object.Key("KmsKey") + ok.String(*v.KmsKey) + } + if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) @@ -1397,6 +1402,11 @@ func awsRestjson1_serializeOpDocumentUpdateLedgerInput(v *UpdateLedgerInput, val ok.Boolean(*v.DeletionProtection) } + if v.KmsKey != nil { + ok := object.Key("KmsKey") + ok.String(*v.KmsKey) + } + return nil } diff --git a/service/qldb/types/enums.go b/service/qldb/types/enums.go index 9a02641129d..9cfaf3ff8f1 100644 --- a/service/qldb/types/enums.go +++ b/service/qldb/types/enums.go @@ -2,6 +2,26 @@ package types +type EncryptionStatus string + +// Enum values for EncryptionStatus +const ( + EncryptionStatusEnabled EncryptionStatus = "ENABLED" + EncryptionStatusUpdating EncryptionStatus = "UPDATING" + EncryptionStatusKmsKeyInaccessible EncryptionStatus = "KMS_KEY_INACCESSIBLE" +) + +// Values returns all known values for EncryptionStatus. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (EncryptionStatus) Values() []EncryptionStatus { + return []EncryptionStatus{ + "ENABLED", + "UPDATING", + "KMS_KEY_INACCESSIBLE", + } +} + type ErrorCause string // Enum values for ErrorCause diff --git a/service/qldb/types/types.go b/service/qldb/types/types.go index a41c33d6359..27ded9dd483 100644 --- a/service/qldb/types/types.go +++ b/service/qldb/types/types.go @@ -58,7 +58,7 @@ type JournalKinesisStreamDescription struct { ErrorCause ErrorCause // The exclusive date and time that specifies when the stream ends. If this - // parameter is blank, the stream runs indefinitely until you cancel it. + // parameter is undefined, the stream runs indefinitely until you cancel it. ExclusiveEndTime *time.Time // The inclusive start date and time from which to start streaming journal data. @@ -108,8 +108,8 @@ type JournalS3ExportDescription struct { // Simple Storage Service (Amazon S3) bucket. // // * (Optional) Use your customer - // master key (CMK) in AWS Key Management Service (AWS KMS) for server-side - // encryption of your exported data. + // master key (CMK) in Key Management Service (KMS) for server-side encryption of + // your exported data. // // This member is required. RoleArn *string @@ -151,6 +151,54 @@ type KinesisConfiguration struct { noSmithyDocumentSerde } +// Information about the encryption of data at rest in an Amazon QLDB ledger. This +// includes the current status, the key in Key Management Service (KMS), and when +// the key became inaccessible (in the case of an error). For more information, see +// Encryption at rest +// (https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html) +// in the Amazon QLDB Developer Guide. +type LedgerEncryptionDescription struct { + + // The current state of encryption at rest for the ledger. This can be one of the + // following values: + // + // * ENABLED: Encryption is fully enabled using the specified + // key. + // + // * UPDATING: The ledger is actively processing the specified key change. + // Key changes in QLDB are asynchronous. The ledger is fully accessible without any + // performance impact while the key change is being processed. The amount of time + // it takes to update a key varies depending on the ledger size. + // + // * + // KMS_KEY_INACCESSIBLE: The specified customer managed KMS key is not accessible, + // and the ledger is impaired. Either the key was disabled or deleted, or the + // grants on the key were revoked. When a ledger is impaired, it is not accessible + // and does not accept any read or write requests. An impaired ledger automatically + // returns to an active state after you restore the grants on the key, or re-enable + // the key that was disabled. However, deleting a customer managed KMS key is + // irreversible. After a key is deleted, you can no longer access the ledgers that + // are protected with that key, and the data becomes unrecoverable permanently. + // + // This member is required. + EncryptionStatus EncryptionStatus + + // The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger + // uses for encryption at rest. If this parameter is undefined, the ledger uses an + // Amazon Web Services owned KMS key for encryption. + // + // This member is required. + KmsKeyArn *string + + // The date and time, in epoch time format, when the KMS key first became + // inaccessible, in the case of an error. (Epoch time format is the number of + // seconds that have elapsed since 12:00:00 AM January 1, 1970 UTC.) This parameter + // is undefined if the KMS key is accessible. + InaccessibleKmsKeyDateTime *time.Time + + noSmithyDocumentSerde +} + // Information about a ledger, including its name, state, and when it was created. type LedgerSummary struct { @@ -180,9 +228,9 @@ type S3EncryptionConfiguration struct { // This member is required. ObjectEncryptionType S3ObjectEncryptionType - // The Amazon Resource Name (ARN) for a symmetric customer master key (CMK) in AWS - // Key Management Service (AWS KMS). Amazon S3 does not support asymmetric CMKs. - // You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType. + // The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) in Key + // Management Service (KMS). Amazon S3 does not support asymmetric CMKs. You must + // provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType. // KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType. KmsKeyArn *string diff --git a/service/quicksight/api_op_CancelIngestion.go b/service/quicksight/api_op_CancelIngestion.go index 3a048357160..a09d36b7755 100644 --- a/service/quicksight/api_op_CancelIngestion.go +++ b/service/quicksight/api_op_CancelIngestion.go @@ -28,7 +28,7 @@ func (c *Client) CancelIngestion(ctx context.Context, params *CancelIngestionInp type CancelIngestionInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string @@ -54,7 +54,7 @@ type CancelIngestionOutput struct { // An ID for the ingestion. IngestionId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateAccountCustomization.go b/service/quicksight/api_op_CreateAccountCustomization.go index 12f7a8a3375..670f72d0ac5 100644 --- a/service/quicksight/api_op_CreateAccountCustomization.go +++ b/service/quicksight/api_op_CreateAccountCustomization.go @@ -11,23 +11,24 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates Amazon QuickSight customizations the current AWS Region. Currently, you -// can add a custom default theme by using the CreateAccountCustomization or +// Creates Amazon QuickSight customizations the current Region;. Currently, you can +// add a custom default theme by using the CreateAccountCustomization or // UpdateAccountCustomization API operation. To further customize QuickSight by // removing QuickSight sample assets and videos for all new users, see Customizing // QuickSight // (https://docs.aws.amazon.com/quicksight/latest/user/customizing-quicksight.html) -// in the Amazon QuickSight User Guide. You can create customizations for your AWS -// account or, if you specify a namespace, for a QuickSight namespace instead. -// Customizations that apply to a namespace always override customizations that -// apply to an AWS account. To find out which customizations apply, use the -// DescribeAccountCustomization API operation. Before you use the -// CreateAccountCustomization API operation to add a theme as the namespace -// default, make sure that you first share the theme with the namespace. If you -// don't share it with the namespace, the theme isn't visible to your users even if -// you make it the default theme. To check if the theme is shared, view the current -// permissions by using the DescribeThemePermissions API operation. To share the -// theme, grant permissions by using the UpdateThemePermissions API operation. +// in the Amazon QuickSight User Guide. You can create customizations for your +// Amazon Web Services account; or, if you specify a namespace, for a QuickSight +// namespace instead. Customizations that apply to a namespace always override +// customizations that apply to an Amazon Web Services account;. To find out which +// customizations apply, use the DescribeAccountCustomization API operation. Before +// you use the CreateAccountCustomization API operation to add a theme as the +// namespace default, make sure that you first share the theme with the namespace. +// If you don't share it with the namespace, the theme isn't visible to your users +// even if you make it the default theme. To check if the theme is shared, view the +// current permissions by using the DescribeThemePermissions API operation. To +// share the theme, grant permissions by using the UpdateThemePermissions API +// operation. func (c *Client) CreateAccountCustomization(ctx context.Context, params *CreateAccountCustomizationInput, optFns ...func(*Options)) (*CreateAccountCustomizationOutput, error) { if params == nil { params = &CreateAccountCustomizationInput{} @@ -45,10 +46,10 @@ func (c *Client) CreateAccountCustomization(ctx context.Context, params *CreateA type CreateAccountCustomizationInput struct { - // The QuickSight customizations you're adding in the current AWS Region. You can - // add these to an AWS account and a QuickSight namespace. For example, you can add - // a default theme by setting AccountCustomization to the midnight theme: - // "AccountCustomization": { "DefaultTheme": + // The QuickSight customizations you're adding in the current Region;. You can add + // these to an Amazon Web Services account; and a QuickSight namespace. For + // example, you can add a default theme by setting AccountCustomization to the + // midnight theme: "AccountCustomization": { "DefaultTheme": // "arn:aws:quicksight::aws:theme/MIDNIGHT" }. Or, you can add a custom theme by // specifying "AccountCustomization": { "DefaultTheme": // "arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639" @@ -57,7 +58,8 @@ type CreateAccountCustomizationInput struct { // This member is required. AccountCustomization *types.AccountCustomization - // The ID for the AWS account that you want to customize QuickSight for. + // The ID for the Amazon Web Services account; that you want to customize + // QuickSight for. // // This member is required. AwsAccountId *string @@ -73,20 +75,21 @@ type CreateAccountCustomizationInput struct { type CreateAccountCustomizationOutput struct { - // The QuickSight customizations you're adding in the current AWS Region. + // The QuickSight customizations you're adding in the current Region;. AccountCustomization *types.AccountCustomization // The Amazon Resource Name (ARN) for the customization that you created for this - // AWS account. + // Amazon Web Services account;. Arn *string - // The ID for the AWS account that you want to customize QuickSight for. + // The ID for the Amazon Web Services account; that you want to customize + // QuickSight for. AwsAccountId *string // The namespace associated with the customization you're creating. Namespace *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateAnalysis.go b/service/quicksight/api_op_CreateAnalysis.go index 5ccc5ba1141..53b6b518c67 100644 --- a/service/quicksight/api_op_CreateAnalysis.go +++ b/service/quicksight/api_op_CreateAnalysis.go @@ -35,7 +35,7 @@ type CreateAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the AWS account where you are creating an analysis. + // The ID of the Amazon Web Services account; where you are creating an analysis. // // This member is required. AwsAccountId *string @@ -59,9 +59,9 @@ type CreateAnalysisInput struct { // A structure that describes the principals and the resource-level permissions on // an analysis. You can use the Permissions structure to grant permissions by - // providing a list of AWS Identity and Access Management (IAM) action information - // for each principal listed by Amazon Resource Name (ARN). To specify no - // permissions, omit Permissions. + // providing a list of Identity and Access Management (IAM) action information for + // each principal listed by Amazon Resource Name (ARN). To specify no permissions, + // omit Permissions. Permissions []types.ResourcePermission // Contains a map of the key-value pairs for the resource tag or tags assigned to @@ -86,7 +86,7 @@ type CreateAnalysisOutput struct { // The status of the creation of the analysis. CreationStatus types.ResourceStatus - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateDashboard.go b/service/quicksight/api_op_CreateDashboard.go index 5cfbf006351..97ff8ca49cc 100644 --- a/service/quicksight/api_op_CreateDashboard.go +++ b/service/quicksight/api_op_CreateDashboard.go @@ -16,7 +16,7 @@ import ( // identifies QuickSight reports, created from analyses. You can share QuickSight // dashboards. With the right permissions, you can create scheduled email reports // from them. If you have the correct permissions, you can create a dashboard from -// a template that exists in a different AWS account. +// a template that exists in a different Amazon Web Services account;. func (c *Client) CreateDashboard(ctx context.Context, params *CreateDashboardInput, optFns ...func(*Options)) (*CreateDashboardOutput, error) { if params == nil { params = &CreateDashboardInput{} @@ -34,7 +34,8 @@ func (c *Client) CreateDashboard(ctx context.Context, params *CreateDashboardInp type CreateDashboardInput struct { - // The ID of the AWS account where you want to create the dashboard. + // The ID of the Amazon Web Services account; where you want to create the + // dashboard. // // This member is required. AwsAccountId *string @@ -55,10 +56,10 @@ type CreateDashboardInput struct { // you need to create a dashboard from an analysis, first convert the analysis to a // template by using the CreateTemplate API operation. For SourceTemplate, specify // the Amazon Resource Name (ARN) of the source template. The SourceTemplateARN can - // contain any AWS Account and any QuickSight-supported AWS Region. Use the - // DataSetReferences entity within SourceTemplate to list the replacement datasets - // for the placeholders listed in the original. The schema in each dataset must - // match its placeholder. + // contain any Amazon Web Services account; and any QuickSight-supported Region;. + // Use the DataSetReferences entity within SourceTemplate to list the replacement + // datasets for the placeholders listed in the original. The schema in each dataset + // must match its placeholder. // // This member is required. SourceEntity *types.DashboardSourceEntity @@ -96,8 +97,8 @@ type CreateDashboardInput struct { // The Amazon Resource Name (ARN) of the theme that is being used for this // dashboard. If you add a value for this field, it overrides the value that is - // used in the source entity. The theme ARN must exist in the same AWS account - // where you create the dashboard. + // used in the source entity. The theme ARN must exist in the same Amazon Web + // Services account; where you create the dashboard. ThemeArn *string // A description for the first version of the dashboard being created. @@ -117,7 +118,7 @@ type CreateDashboardOutput struct { // The ID for the dashboard. DashboardId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateDataSet.go b/service/quicksight/api_op_CreateDataSet.go index 30d01b518b0..2fac4c0b21f 100644 --- a/service/quicksight/api_op_CreateDataSet.go +++ b/service/quicksight/api_op_CreateDataSet.go @@ -29,13 +29,13 @@ func (c *Client) CreateDataSet(ctx context.Context, params *CreateDataSetInput, type CreateDataSetInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // An ID for the dataset that you want to create. This ID is unique per AWS Region - // for each AWS account. + // An ID for the dataset that you want to create. This ID is unique per Region; for + // each Amazon Web Services account;. // // This member is required. DataSetId *string @@ -75,6 +75,10 @@ type CreateDataSetInput struct { // The row-level security configuration for the data that you want to create. RowLevelPermissionDataSet *types.RowLevelPermissionDataSet + // The configuration of tags on a dataset to set row-level security. Row-level + // security tags are currently supported for anonymous embedding only. + RowLevelPermissionTagConfiguration *types.RowLevelPermissionTagConfiguration + // Contains a map of the key-value pairs for the resource tag or tags assigned to // the dataset. Tags []types.Tag @@ -87,8 +91,8 @@ type CreateDataSetOutput struct { // The Amazon Resource Name (ARN) of the dataset. Arn *string - // The ID for the dataset that you want to create. This ID is unique per AWS Region - // for each AWS account. + // The ID for the dataset that you want to create. This ID is unique per Region; + // for each Amazon Web Services account;. DataSetId *string // The ARN for the ingestion, which is triggered as a result of dataset creation if @@ -99,7 +103,7 @@ type CreateDataSetOutput struct { // the import mode is SPICE. IngestionId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateDataSource.go b/service/quicksight/api_op_CreateDataSource.go index c9e0912b0bb..b7f6e276d5f 100644 --- a/service/quicksight/api_op_CreateDataSource.go +++ b/service/quicksight/api_op_CreateDataSource.go @@ -29,13 +29,13 @@ func (c *Client) CreateDataSource(ctx context.Context, params *CreateDataSourceI type CreateDataSourceInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // An ID for the data source. This ID is unique per AWS Region for each AWS - // account. + // An ID for the data source. This ID is unique per Region; for each Amazon Web + // Services account;. // // This member is required. DataSourceId *string @@ -87,11 +87,11 @@ type CreateDataSourceOutput struct { // The status of creating the data source. CreationStatus types.ResourceStatus - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. DataSourceId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateGroup.go b/service/quicksight/api_op_CreateGroup.go index e3848e529ad..332f1a9bc29 100644 --- a/service/quicksight/api_op_CreateGroup.go +++ b/service/quicksight/api_op_CreateGroup.go @@ -31,8 +31,9 @@ func (c *Client) CreateGroup(ctx context.Context, params *CreateGroupInput, optF // The request object for this operation. type CreateGroupInput struct { - // The ID for the AWS account that the group is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the group is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -59,7 +60,7 @@ type CreateGroupOutput struct { // The name of the group. Group *types.Group - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateGroupMembership.go b/service/quicksight/api_op_CreateGroupMembership.go index a0004c2d86f..a6be85be4e3 100644 --- a/service/quicksight/api_op_CreateGroupMembership.go +++ b/service/quicksight/api_op_CreateGroupMembership.go @@ -29,8 +29,9 @@ func (c *Client) CreateGroupMembership(ctx context.Context, params *CreateGroupM type CreateGroupMembershipInput struct { - // The ID for the AWS account that the group is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the group is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -58,7 +59,7 @@ type CreateGroupMembershipOutput struct { // The group member. GroupMember *types.GroupMember - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateIAMPolicyAssignment.go b/service/quicksight/api_op_CreateIAMPolicyAssignment.go index a0731fc0e75..a963e0a00a9 100644 --- a/service/quicksight/api_op_CreateIAMPolicyAssignment.go +++ b/service/quicksight/api_op_CreateIAMPolicyAssignment.go @@ -13,9 +13,9 @@ import ( // Creates an assignment with one specified IAM policy, identified by its Amazon // Resource Name (ARN). This policy assignment is attached to the specified groups -// or users of Amazon QuickSight. Assignment names are unique per AWS account. To -// avoid overwriting rules in other namespaces, use assignment names that are -// unique. +// or users of Amazon QuickSight. Assignment names are unique per Amazon Web +// Services account;. To avoid overwriting rules in other namespaces, use +// assignment names that are unique. func (c *Client) CreateIAMPolicyAssignment(ctx context.Context, params *CreateIAMPolicyAssignmentInput, optFns ...func(*Options)) (*CreateIAMPolicyAssignmentOutput, error) { if params == nil { params = &CreateIAMPolicyAssignmentInput{} @@ -33,8 +33,8 @@ func (c *Client) CreateIAMPolicyAssignment(ctx context.Context, params *CreateIA type CreateIAMPolicyAssignmentInput struct { - // The name of the assignment, also called a rule. It must be unique within an AWS - // account. + // The name of the assignment, also called a rule. It must be unique within an + // Amazon Web Services account;. // // This member is required. AssignmentName *string @@ -54,8 +54,8 @@ type CreateIAMPolicyAssignmentInput struct { // This member is required. AssignmentStatus types.AssignmentStatus - // The ID of the AWS account where you want to assign an IAM policy to QuickSight - // users or groups. + // The ID of the Amazon Web Services account; where you want to assign an IAM + // policy to QuickSight users or groups. // // This member is required. AwsAccountId *string @@ -80,7 +80,8 @@ type CreateIAMPolicyAssignmentOutput struct { // The ID for the assignment. AssignmentId *string - // The name of the assignment. This name must be unique within the AWS account. + // The name of the assignment. This name must be unique within the Amazon Web + // Services account;. AssignmentName *string // The status of the assignment. Possible values are as follows: @@ -103,7 +104,7 @@ type CreateIAMPolicyAssignmentOutput struct { // specified in this assignment. PolicyArn *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateIngestion.go b/service/quicksight/api_op_CreateIngestion.go index c1850e4287e..61b063adcdd 100644 --- a/service/quicksight/api_op_CreateIngestion.go +++ b/service/quicksight/api_op_CreateIngestion.go @@ -16,8 +16,8 @@ import ( // control. For an example, see How do I create an IAM policy to control access to // Amazon EC2 resources using tags? // (http://aws.amazon.com/premiumsupport/knowledge-center/iam-ec2-resource-tags/) -// in the AWS Knowledge Center. Tags are visible on the tagged dataset, but not on -// the ingestion resource. +// in the Amazon Web Services Knowledge Center. Tags are visible on the tagged +// dataset, but not on the ingestion resource. func (c *Client) CreateIngestion(ctx context.Context, params *CreateIngestionInput, optFns ...func(*Options)) (*CreateIngestionOutput, error) { if params == nil { params = &CreateIngestionInput{} @@ -35,7 +35,7 @@ func (c *Client) CreateIngestion(ctx context.Context, params *CreateIngestionInp type CreateIngestionInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string @@ -64,7 +64,7 @@ type CreateIngestionOutput struct { // The ingestion status. IngestionStatus types.IngestionStatus - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateNamespace.go b/service/quicksight/api_op_CreateNamespace.go index 2b3cda5ffa4..cf60809fd95 100644 --- a/service/quicksight/api_op_CreateNamespace.go +++ b/service/quicksight/api_op_CreateNamespace.go @@ -16,9 +16,10 @@ import ( // that are registered for that namespace. Users that access the namespace can // share assets only with other users or groups in the same namespace. They can't // see users and groups in other namespaces. You can create a namespace after your -// AWS account is subscribed to QuickSight. The namespace must be unique within the -// AWS account. By default, there is a limit of 100 namespaces per AWS account. To -// increase your limit, create a ticket with AWS Support. +// Amazon Web Services account; is subscribed to QuickSight. The namespace must be +// unique within the Amazon Web Services account;. By default, there is a limit of +// 100 namespaces per Amazon Web Services account;. To increase your limit, create +// a ticket with Amazon Web Services Support. func (c *Client) CreateNamespace(ctx context.Context, params *CreateNamespaceInput, optFns ...func(*Options)) (*CreateNamespaceOutput, error) { if params == nil { params = &CreateNamespaceInput{} @@ -36,7 +37,8 @@ func (c *Client) CreateNamespace(ctx context.Context, params *CreateNamespaceInp type CreateNamespaceInput struct { - // The ID for the AWS account that you want to create the QuickSight namespace in. + // The ID for the Amazon Web Services account; that you want to create the + // QuickSight namespace in. // // This member is required. AwsAccountId *string @@ -63,7 +65,7 @@ type CreateNamespaceOutput struct { // The ARN of the QuickSight namespace you created. Arn *string - // The AWS Region that you want to use for the free SPICE capacity for the new + // The Region; that you want to use for the free SPICE capacity for the new // namespace. This is set to the region that you run CreateNamespace in. CapacityRegion *string @@ -80,7 +82,7 @@ type CreateNamespaceOutput struct { // The name of the new namespace that you created. Name *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateTemplate.go b/service/quicksight/api_op_CreateTemplate.go index fe5f6b15e38..9cd1e93778d 100644 --- a/service/quicksight/api_op_CreateTemplate.go +++ b/service/quicksight/api_op_CreateTemplate.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a template from an existing QuickSight analysis or template. You can use -// the resulting template to create a dashboard. A template is an entity in +// Creates a template from an existing Amazon QuickSight analysis or template. You +// can use the resulting template to create a dashboard. A template is an entity in // QuickSight that encapsulates the metadata required to create an analysis and // that you can use to create s dashboard. A template adds a layer of abstraction // by using placeholders to replace the dataset associated with the analysis. You @@ -36,8 +36,9 @@ func (c *Client) CreateTemplate(ctx context.Context, params *CreateTemplateInput type CreateTemplateInput struct { - // The ID for the AWS account that the group is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the group is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -47,16 +48,17 @@ type CreateTemplateInput struct { // SourceTemplate for a template or SourceAnalysis for an analysis. Both of these // require an Amazon Resource Name (ARN). For SourceTemplate, specify the ARN of // the source template. For SourceAnalysis, specify the ARN of the source analysis. - // The SourceTemplate ARN can contain any AWS Account and any QuickSight-supported - // AWS Region. Use the DataSetReferences entity within SourceTemplate or - // SourceAnalysis to list the replacement datasets for the placeholders listed in - // the original. The schema in each dataset must match its placeholder. + // The SourceTemplate ARN can contain any Amazon Web Services account; and any + // QuickSight-supported Region;. Use the DataSetReferences entity within + // SourceTemplate or SourceAnalysis to list the replacement datasets for the + // placeholders listed in the original. The schema in each dataset must match its + // placeholder. // // This member is required. SourceEntity *types.TemplateSourceEntity - // An ID for the template that you want to create. This template is unique per AWS - // Region in each AWS account. + // An ID for the template that you want to create. This template is unique per + // Region; in each Amazon Web Services account;. // // This member is required. TemplateId *string @@ -88,7 +90,7 @@ type CreateTemplateOutput struct { // The template creation status. CreationStatus types.ResourceStatus - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateTemplateAlias.go b/service/quicksight/api_op_CreateTemplateAlias.go index 443e4d8def1..347aa240229 100644 --- a/service/quicksight/api_op_CreateTemplateAlias.go +++ b/service/quicksight/api_op_CreateTemplateAlias.go @@ -31,13 +31,13 @@ type CreateTemplateAliasInput struct { // The name that you want to give to the template alias that you're creating. Don't // start the alias name with the $ character. Alias names that start with $ are - // reserved by QuickSight. + // reserved by Amazon QuickSight. // // This member is required. AliasName *string - // The ID of the AWS account that contains the template that you creating an alias - // for. + // The ID of the Amazon Web Services account; that contains the template that you + // creating an alias for. // // This member is required. AwsAccountId *string @@ -57,7 +57,7 @@ type CreateTemplateAliasInput struct { type CreateTemplateAliasOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateTheme.go b/service/quicksight/api_op_CreateTheme.go index b746c0e983f..b33920d45c9 100644 --- a/service/quicksight/api_op_CreateTheme.go +++ b/service/quicksight/api_op_CreateTheme.go @@ -33,7 +33,8 @@ func (c *Client) CreateTheme(ctx context.Context, params *CreateThemeInput, optF type CreateThemeInput struct { - // The ID of the AWS account where you want to store the new theme. + // The ID of the Amazon Web Services account; where you want to store the new + // theme. // // This member is required. AwsAccountId *string @@ -56,8 +57,8 @@ type CreateThemeInput struct { // This member is required. Name *string - // An ID for the theme that you want to create. The theme ID is unique per AWS - // Region in each AWS account. + // An ID for the theme that you want to create. The theme ID is unique per Region; + // in each Amazon Web Services account;. // // This member is required. ThemeId *string @@ -85,7 +86,7 @@ type CreateThemeOutput struct { // The theme creation status. CreationStatus types.ResourceStatus - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_CreateThemeAlias.go b/service/quicksight/api_op_CreateThemeAlias.go index d05cada754a..899693f7f1e 100644 --- a/service/quicksight/api_op_CreateThemeAlias.go +++ b/service/quicksight/api_op_CreateThemeAlias.go @@ -36,7 +36,8 @@ type CreateThemeAliasInput struct { // This member is required. AliasName *string - // The ID of the AWS account that contains the theme for the new theme alias. + // The ID of the Amazon Web Services account; that contains the theme for the new + // theme alias. // // This member is required. AwsAccountId *string @@ -56,7 +57,7 @@ type CreateThemeAliasInput struct { type CreateThemeAliasOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteAccountCustomization.go b/service/quicksight/api_op_DeleteAccountCustomization.go index 7566d911690..3210a792da4 100644 --- a/service/quicksight/api_op_DeleteAccountCustomization.go +++ b/service/quicksight/api_op_DeleteAccountCustomization.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes all Amazon QuickSight customizations in this AWS Region for the -// specified AWS account and QuickSight namespace. +// Deletes all Amazon QuickSight customizations in this Region; for the specified +// Amazon Web Services account; and QuickSight namespace. func (c *Client) DeleteAccountCustomization(ctx context.Context, params *DeleteAccountCustomizationInput, optFns ...func(*Options)) (*DeleteAccountCustomizationOutput, error) { if params == nil { params = &DeleteAccountCustomizationInput{} @@ -29,8 +29,8 @@ func (c *Client) DeleteAccountCustomization(ctx context.Context, params *DeleteA type DeleteAccountCustomizationInput struct { - // The ID for the AWS account that you want to delete QuickSight customizations - // from in this AWS Region. + // The ID for the Amazon Web Services account; that you want to delete QuickSight + // customizations from in this Region;. // // This member is required. AwsAccountId *string @@ -43,7 +43,7 @@ type DeleteAccountCustomizationInput struct { type DeleteAccountCustomizationOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteAnalysis.go b/service/quicksight/api_op_DeleteAnalysis.go index ddad9d3e083..1ee02e0ba51 100644 --- a/service/quicksight/api_op_DeleteAnalysis.go +++ b/service/quicksight/api_op_DeleteAnalysis.go @@ -45,7 +45,7 @@ type DeleteAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the AWS account where you want to delete an analysis. + // The ID of the Amazon Web Services account; where you want to delete an analysis. // // This member is required. AwsAccountId *string @@ -74,7 +74,7 @@ type DeleteAnalysisOutput struct { // The date and time that the analysis is scheduled to be deleted. DeletionTime *time.Time - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteDashboard.go b/service/quicksight/api_op_DeleteDashboard.go index eeaf7c2cd64..721e7a568e3 100644 --- a/service/quicksight/api_op_DeleteDashboard.go +++ b/service/quicksight/api_op_DeleteDashboard.go @@ -28,7 +28,8 @@ func (c *Client) DeleteDashboard(ctx context.Context, params *DeleteDashboardInp type DeleteDashboardInput struct { - // The ID of the AWS account that contains the dashboard that you're deleting. + // The ID of the Amazon Web Services account; that contains the dashboard that + // you're deleting. // // This member is required. AwsAccountId *string @@ -53,7 +54,7 @@ type DeleteDashboardOutput struct { // The ID of the dashboard. DashboardId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteDataSet.go b/service/quicksight/api_op_DeleteDataSet.go index 65fd61ce290..d60bab7bdbd 100644 --- a/service/quicksight/api_op_DeleteDataSet.go +++ b/service/quicksight/api_op_DeleteDataSet.go @@ -28,13 +28,13 @@ func (c *Client) DeleteDataSet(ctx context.Context, params *DeleteDataSetInput, type DeleteDataSetInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // The ID for the dataset that you want to create. This ID is unique per AWS Region - // for each AWS account. + // The ID for the dataset that you want to create. This ID is unique per Region; + // for each Amazon Web Services account;. // // This member is required. DataSetId *string @@ -47,11 +47,11 @@ type DeleteDataSetOutput struct { // The Amazon Resource Name (ARN) of the dataset. Arn *string - // The ID for the dataset that you want to create. This ID is unique per AWS Region - // for each AWS account. + // The ID for the dataset that you want to create. This ID is unique per Region; + // for each Amazon Web Services account;. DataSetId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteDataSource.go b/service/quicksight/api_op_DeleteDataSource.go index 427c6d24c37..88a4e17722e 100644 --- a/service/quicksight/api_op_DeleteDataSource.go +++ b/service/quicksight/api_op_DeleteDataSource.go @@ -29,13 +29,13 @@ func (c *Client) DeleteDataSource(ctx context.Context, params *DeleteDataSourceI type DeleteDataSourceInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. // // This member is required. DataSourceId *string @@ -48,11 +48,11 @@ type DeleteDataSourceOutput struct { // The Amazon Resource Name (ARN) of the data source that you deleted. Arn *string - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. DataSourceId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteGroup.go b/service/quicksight/api_op_DeleteGroup.go index 2bc827c263e..05bc131558c 100644 --- a/service/quicksight/api_op_DeleteGroup.go +++ b/service/quicksight/api_op_DeleteGroup.go @@ -28,8 +28,9 @@ func (c *Client) DeleteGroup(ctx context.Context, params *DeleteGroupInput, optF type DeleteGroupInput struct { - // The ID for the AWS account that the group is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the group is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -49,7 +50,7 @@ type DeleteGroupInput struct { type DeleteGroupOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteGroupMembership.go b/service/quicksight/api_op_DeleteGroupMembership.go index f09563d6d4a..8c8380444bd 100644 --- a/service/quicksight/api_op_DeleteGroupMembership.go +++ b/service/quicksight/api_op_DeleteGroupMembership.go @@ -28,8 +28,9 @@ func (c *Client) DeleteGroupMembership(ctx context.Context, params *DeleteGroupM type DeleteGroupMembershipInput struct { - // The ID for the AWS account that the group is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the group is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -54,7 +55,7 @@ type DeleteGroupMembershipInput struct { type DeleteGroupMembershipOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteIAMPolicyAssignment.go b/service/quicksight/api_op_DeleteIAMPolicyAssignment.go index 424dee7a9d5..77aede59616 100644 --- a/service/quicksight/api_op_DeleteIAMPolicyAssignment.go +++ b/service/quicksight/api_op_DeleteIAMPolicyAssignment.go @@ -33,7 +33,8 @@ type DeleteIAMPolicyAssignmentInput struct { // This member is required. AssignmentName *string - // The AWS account ID where you want to delete the IAM policy assignment. + // The Amazon Web Services account; ID where you want to delete the IAM policy + // assignment. // // This member is required. AwsAccountId *string @@ -51,7 +52,7 @@ type DeleteIAMPolicyAssignmentOutput struct { // The name of the assignment. AssignmentName *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteNamespace.go b/service/quicksight/api_op_DeleteNamespace.go index 7addcef632b..896f76df5d6 100644 --- a/service/quicksight/api_op_DeleteNamespace.go +++ b/service/quicksight/api_op_DeleteNamespace.go @@ -31,8 +31,8 @@ func (c *Client) DeleteNamespace(ctx context.Context, params *DeleteNamespaceInp type DeleteNamespaceInput struct { - // The ID for the AWS account that you want to delete the QuickSight namespace - // from. + // The ID for the Amazon Web Services account; that you want to delete the + // QuickSight namespace from. // // This member is required. AwsAccountId *string @@ -47,7 +47,7 @@ type DeleteNamespaceInput struct { type DeleteNamespaceOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteTemplate.go b/service/quicksight/api_op_DeleteTemplate.go index 40d91438e9b..1fbc18bb455 100644 --- a/service/quicksight/api_op_DeleteTemplate.go +++ b/service/quicksight/api_op_DeleteTemplate.go @@ -28,7 +28,8 @@ func (c *Client) DeleteTemplate(ctx context.Context, params *DeleteTemplateInput type DeleteTemplateInput struct { - // The ID of the AWS account that contains the template that you're deleting. + // The ID of the Amazon Web Services account; that contains the template that + // you're deleting. // // This member is required. AwsAccountId *string @@ -50,7 +51,7 @@ type DeleteTemplateOutput struct { // The Amazon Resource Name (ARN) of the resource. Arn *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteTemplateAlias.go b/service/quicksight/api_op_DeleteTemplateAlias.go index 961c0db3e13..39924bc5688 100644 --- a/service/quicksight/api_op_DeleteTemplateAlias.go +++ b/service/quicksight/api_op_DeleteTemplateAlias.go @@ -37,7 +37,7 @@ type DeleteTemplateAliasInput struct { // This member is required. AliasName *string - // The ID of the AWS account that contains the item to delete. + // The ID of the Amazon Web Services account; that contains the item to delete. // // This member is required. AwsAccountId *string @@ -58,7 +58,7 @@ type DeleteTemplateAliasOutput struct { // The Amazon Resource Name (ARN) of the template you want to delete. Arn *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteTheme.go b/service/quicksight/api_op_DeleteTheme.go index e3539a2f2dc..2d14db82594 100644 --- a/service/quicksight/api_op_DeleteTheme.go +++ b/service/quicksight/api_op_DeleteTheme.go @@ -28,7 +28,8 @@ func (c *Client) DeleteTheme(ctx context.Context, params *DeleteThemeInput, optF type DeleteThemeInput struct { - // The ID of the AWS account that contains the theme that you're deleting. + // The ID of the Amazon Web Services account; that contains the theme that you're + // deleting. // // This member is required. AwsAccountId *string @@ -51,7 +52,7 @@ type DeleteThemeOutput struct { // The Amazon Resource Name (ARN) of the resource. Arn *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteThemeAlias.go b/service/quicksight/api_op_DeleteThemeAlias.go index d60be32f5f4..ae30e85a85a 100644 --- a/service/quicksight/api_op_DeleteThemeAlias.go +++ b/service/quicksight/api_op_DeleteThemeAlias.go @@ -35,7 +35,8 @@ type DeleteThemeAliasInput struct { // This member is required. AliasName *string - // The ID of the AWS account that contains the theme alias to delete. + // The ID of the Amazon Web Services account; that contains the theme alias to + // delete. // // This member is required. AwsAccountId *string @@ -56,7 +57,7 @@ type DeleteThemeAliasOutput struct { // The Amazon Resource Name (ARN) of the theme resource using the deleted alias. Arn *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteUser.go b/service/quicksight/api_op_DeleteUser.go index cdfaa65c942..e2a2beb76bc 100644 --- a/service/quicksight/api_op_DeleteUser.go +++ b/service/quicksight/api_op_DeleteUser.go @@ -11,8 +11,8 @@ import ( ) // Deletes the Amazon QuickSight user that is associated with the identity of the -// AWS Identity and Access Management (IAM) user or role that's making the call. -// The IAM user isn't deleted as a result of this call. +// Identity and Access Management (IAM) user or role that's making the call. The +// IAM user isn't deleted as a result of this call. func (c *Client) DeleteUser(ctx context.Context, params *DeleteUserInput, optFns ...func(*Options)) (*DeleteUserOutput, error) { if params == nil { params = &DeleteUserInput{} @@ -30,8 +30,9 @@ func (c *Client) DeleteUser(ctx context.Context, params *DeleteUserInput, optFns type DeleteUserInput struct { - // The ID for the AWS account that the user is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the user is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -51,7 +52,7 @@ type DeleteUserInput struct { type DeleteUserOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DeleteUserByPrincipalId.go b/service/quicksight/api_op_DeleteUserByPrincipalId.go index 0040fa17fc1..5e061865b23 100644 --- a/service/quicksight/api_op_DeleteUserByPrincipalId.go +++ b/service/quicksight/api_op_DeleteUserByPrincipalId.go @@ -29,8 +29,9 @@ func (c *Client) DeleteUserByPrincipalId(ctx context.Context, params *DeleteUser // type DeleteUserByPrincipalIdInput struct { - // The ID for the AWS account that the user is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the user is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -50,7 +51,7 @@ type DeleteUserByPrincipalIdInput struct { type DeleteUserByPrincipalIdOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeAccountCustomization.go b/service/quicksight/api_op_DescribeAccountCustomization.go index 41234fc2df0..2819f2221b1 100644 --- a/service/quicksight/api_op_DescribeAccountCustomization.go +++ b/service/quicksight/api_op_DescribeAccountCustomization.go @@ -11,26 +11,27 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the customizations associated with the provided AWS account and Amazon -// QuickSight namespace in an AWS Region. The QuickSight console evaluates which -// customizations to apply by running this API operation with the Resolved flag -// included. To determine what customizations display when you run this command, it -// can help to visualize the relationship of the entities involved. +// Describes the customizations associated with the provided Amazon Web Services +// account; and Amazon QuickSight namespace in an Region;. The QuickSight console +// evaluates which customizations to apply by running this API operation with the +// Resolved flag included. To determine what customizations display when you run +// this command, it can help to visualize the relationship of the entities +// involved. // -// * AWS Account -// - The AWS account exists at the top of the hierarchy. It has the potential to -// use all of the AWS Regions and AWS Services. When you subscribe to QuickSight, -// you choose one AWS Region to use as your home Region. That's where your free -// SPICE capacity is located. You can use QuickSight in any supported AWS -// Region. +// * Amazon Web Services account; - The Amazon Web Services account; +// exists at the top of the hierarchy. It has the potential to use all of the +// Regions; and AWS Services. When you subscribe to QuickSight, you choose one +// Region; to use as your home Region. That's where your free SPICE capacity is +// located. You can use QuickSight in any supported Region;. // -// * AWS Region - In each AWS Region where you sign in to QuickSight at -// least once, QuickSight acts as a separate instance of the same service. If you -// have a user directory, it resides in us-east-1, which is the US East (N. -// Virginia). Generally speaking, these users have access to QuickSight in any AWS -// Region, unless they are constrained to a namespace. To run the command in a -// different AWS Region, you change your Region settings. If you're using the AWS -// CLI, you can use one of the following options: +// * Region; - In each +// Region; where you sign in to QuickSight at least once, QuickSight acts as a +// separate instance of the same service. If you have a user directory, it resides +// in us-east-1, which is the US East (N. Virginia). Generally speaking, these +// users have access to QuickSight in any Region;, unless they are constrained to a +// namespace. To run the command in a different Region;, you change your Region +// settings. If you're using the AWS CLI, you can use one of the following +// options: // // * Use command line options // (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-options.html). @@ -40,7 +41,7 @@ import ( // (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html). // // * -// Run aws configure to change your default AWS Region. Use Enter to key the same +// Run aws configure to change your default Region;. Use Enter to key the same // settings for your keys. For more information, see Configuring the AWS CLI // (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html). // @@ -49,15 +50,15 @@ import ( // (data sources, datasets, dashboards, and so on). To access assets that are in a // specific namespace, users and groups must also be part of the same namespace. // People who share a namespace are completely isolated from users and assets in -// other namespaces, even if they are in the same AWS account and AWS Region. +// other namespaces, even if they are in the same Amazon Web Services account; and +// Region;. // -// * -// Applied customizations - Within an AWS Region, a set of QuickSight -// customizations can apply to an AWS account or to a namespace. Settings that you -// apply to a namespace override settings that you apply to an AWS account. All -// settings are isolated to a single AWS Region. To apply them in other AWS -// Regions, run the CreateAccountCustomization command in each AWS Region where you -// want to apply the same customizations. +// * Applied customizations - Within an Region;, a set of QuickSight +// customizations can apply to an Amazon Web Services account; or to a namespace. +// Settings that you apply to a namespace override settings that you apply to an +// Amazon Web Services account;. All settings are isolated to a single Region;. To +// apply them in other Regions;, run the CreateAccountCustomization command in each +// Region; where you want to apply the same customizations. func (c *Client) DescribeAccountCustomization(ctx context.Context, params *DescribeAccountCustomizationInput, optFns ...func(*Options)) (*DescribeAccountCustomizationOutput, error) { if params == nil { params = &DescribeAccountCustomizationInput{} @@ -75,8 +76,8 @@ func (c *Client) DescribeAccountCustomization(ctx context.Context, params *Descr type DescribeAccountCustomizationInput struct { - // The ID for the AWS account that you want to describe QuickSight customizations - // for. + // The ID for the Amazon Web Services account; that you want to describe QuickSight + // customizations for. // // This member is required. AwsAccountId *string @@ -97,20 +98,20 @@ type DescribeAccountCustomizationInput struct { type DescribeAccountCustomizationOutput struct { - // The QuickSight customizations that exist in the current AWS Region. + // The QuickSight customizations that exist in the current Region;. AccountCustomization *types.AccountCustomization // The Amazon Resource Name (ARN) of the customization that's associated with this - // AWS account. + // Amazon Web Services account;. Arn *string - // The ID for the AWS account that you're describing. + // The ID for the Amazon Web Services account; that you're describing. AwsAccountId *string // The QuickSight namespace that you're describing. Namespace *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeAccountSettings.go b/service/quicksight/api_op_DescribeAccountSettings.go index 132ba0eeb0f..3e585a9c23b 100644 --- a/service/quicksight/api_op_DescribeAccountSettings.go +++ b/service/quicksight/api_op_DescribeAccountSettings.go @@ -12,7 +12,7 @@ import ( ) // Describes the settings that were used when your QuickSight subscription was -// first created in this AWS account. +// first created in this Amazon Web Services account;. func (c *Client) DescribeAccountSettings(ctx context.Context, params *DescribeAccountSettingsInput, optFns ...func(*Options)) (*DescribeAccountSettingsOutput, error) { if params == nil { params = &DescribeAccountSettingsInput{} @@ -30,7 +30,8 @@ func (c *Client) DescribeAccountSettings(ctx context.Context, params *DescribeAc type DescribeAccountSettingsInput struct { - // The ID for the AWS account that contains the settings that you want to list. + // The ID for the Amazon Web Services account; that contains the settings that you + // want to list. // // This member is required. AwsAccountId *string @@ -40,16 +41,17 @@ type DescribeAccountSettingsInput struct { type DescribeAccountSettingsOutput struct { - // The QuickSight settings for this AWS account. This information includes the - // edition of Amazon QuickSight that you subscribed to (Standard or Enterprise) and - // the notification email for the QuickSight subscription. In the QuickSight - // console, the QuickSight subscription is sometimes referred to as a QuickSight - // "account" even though it's technically not an account by itself. Instead, it's a - // subscription to the QuickSight service for your AWS account. The edition that - // you subscribe to applies to QuickSight in every AWS Region where you use it. + // The QuickSight settings for this Amazon Web Services account;. This information + // includes the edition of Amazon QuickSight that you subscribed to (Standard or + // Enterprise) and the notification email for the QuickSight subscription. In the + // QuickSight console, the QuickSight subscription is sometimes referred to as a + // QuickSight "account" even though it's technically not an account by itself. + // Instead, it's a subscription to the QuickSight service for your Amazon Web + // Services account;. The edition that you subscribe to applies to QuickSight in + // every Region; where you use it. AccountSettings *types.AccountSettings - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeAnalysis.go b/service/quicksight/api_op_DescribeAnalysis.go index 75109d13068..d63d1e1cc15 100644 --- a/service/quicksight/api_op_DescribeAnalysis.go +++ b/service/quicksight/api_op_DescribeAnalysis.go @@ -35,8 +35,8 @@ type DescribeAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the AWS account that contains the analysis. You must be using the AWS - // account that the analysis is in. + // The ID of the Amazon Web Services account; that contains the analysis. You must + // be using the Amazon Web Services account; that the analysis is in. // // This member is required. AwsAccountId *string @@ -50,7 +50,7 @@ type DescribeAnalysisOutput struct { // you're describing. Analysis *types.Analysis - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeAnalysisPermissions.go b/service/quicksight/api_op_DescribeAnalysisPermissions.go index 5fd4399ddf1..55bed7a873c 100644 --- a/service/quicksight/api_op_DescribeAnalysisPermissions.go +++ b/service/quicksight/api_op_DescribeAnalysisPermissions.go @@ -35,8 +35,9 @@ type DescribeAnalysisPermissionsInput struct { // This member is required. AnalysisId *string - // The ID of the AWS account that contains the analysis whose permissions you're - // describing. You must be using the AWS account that the analysis is in. + // The ID of the Amazon Web Services account; that contains the analysis whose + // permissions you're describing. You must be using the Amazon Web Services + // account; that the analysis is in. // // This member is required. AwsAccountId *string @@ -57,7 +58,7 @@ type DescribeAnalysisPermissionsOutput struct { // an analysis. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDashboard.go b/service/quicksight/api_op_DescribeDashboard.go index 6b2dc802c04..fa1d53eea8d 100644 --- a/service/quicksight/api_op_DescribeDashboard.go +++ b/service/quicksight/api_op_DescribeDashboard.go @@ -29,7 +29,8 @@ func (c *Client) DescribeDashboard(ctx context.Context, params *DescribeDashboar type DescribeDashboardInput struct { - // The ID of the AWS account that contains the dashboard that you're describing. + // The ID of the Amazon Web Services account; that contains the dashboard that + // you're describing. // // This member is required. AwsAccountId *string @@ -54,7 +55,7 @@ type DescribeDashboardOutput struct { // Information about the dashboard. Dashboard *types.Dashboard - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of this request. diff --git a/service/quicksight/api_op_DescribeDashboardPermissions.go b/service/quicksight/api_op_DescribeDashboardPermissions.go index 7c6ca08ad70..9f46d41baef 100644 --- a/service/quicksight/api_op_DescribeDashboardPermissions.go +++ b/service/quicksight/api_op_DescribeDashboardPermissions.go @@ -29,8 +29,8 @@ func (c *Client) DescribeDashboardPermissions(ctx context.Context, params *Descr type DescribeDashboardPermissionsInput struct { - // The ID of the AWS account that contains the dashboard that you're describing - // permissions for. + // The ID of the Amazon Web Services account; that contains the dashboard that + // you're describing permissions for. // // This member is required. AwsAccountId *string @@ -54,7 +54,7 @@ type DescribeDashboardPermissionsOutput struct { // A structure that contains the permissions for the dashboard. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDataSet.go b/service/quicksight/api_op_DescribeDataSet.go index 6764f64a78e..013cc00da42 100644 --- a/service/quicksight/api_op_DescribeDataSet.go +++ b/service/quicksight/api_op_DescribeDataSet.go @@ -29,13 +29,13 @@ func (c *Client) DescribeDataSet(ctx context.Context, params *DescribeDataSetInp type DescribeDataSetInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // The ID for the dataset that you want to create. This ID is unique per AWS Region - // for each AWS account. + // The ID for the dataset that you want to create. This ID is unique per Region; + // for each Amazon Web Services account;. // // This member is required. DataSetId *string @@ -48,7 +48,7 @@ type DescribeDataSetOutput struct { // Information on the dataset. DataSet *types.DataSet - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDataSetPermissions.go b/service/quicksight/api_op_DescribeDataSetPermissions.go index 22ad7782b81..e347748cd40 100644 --- a/service/quicksight/api_op_DescribeDataSetPermissions.go +++ b/service/quicksight/api_op_DescribeDataSetPermissions.go @@ -30,13 +30,13 @@ func (c *Client) DescribeDataSetPermissions(ctx context.Context, params *Describ type DescribeDataSetPermissionsInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // The ID for the dataset that you want to create. This ID is unique per AWS Region - // for each AWS account. + // The ID for the dataset that you want to create. This ID is unique per Region; + // for each Amazon Web Services account;. // // This member is required. DataSetId *string @@ -49,14 +49,14 @@ type DescribeDataSetPermissionsOutput struct { // The Amazon Resource Name (ARN) of the dataset. DataSetArn *string - // The ID for the dataset that you want to create. This ID is unique per AWS Region - // for each AWS account. + // The ID for the dataset that you want to create. This ID is unique per Region; + // for each Amazon Web Services account;. DataSetId *string // A list of resource permissions on the dataset. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDataSource.go b/service/quicksight/api_op_DescribeDataSource.go index 7b79eefdbbe..1e077883a45 100644 --- a/service/quicksight/api_op_DescribeDataSource.go +++ b/service/quicksight/api_op_DescribeDataSource.go @@ -29,13 +29,13 @@ func (c *Client) DescribeDataSource(ctx context.Context, params *DescribeDataSou type DescribeDataSourceInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. // // This member is required. DataSourceId *string @@ -48,7 +48,7 @@ type DescribeDataSourceOutput struct { // The information on the data source. DataSource *types.DataSource - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeDataSourcePermissions.go b/service/quicksight/api_op_DescribeDataSourcePermissions.go index d61abcb651a..f9d3ee8ceb2 100644 --- a/service/quicksight/api_op_DescribeDataSourcePermissions.go +++ b/service/quicksight/api_op_DescribeDataSourcePermissions.go @@ -29,13 +29,13 @@ func (c *Client) DescribeDataSourcePermissions(ctx context.Context, params *Desc type DescribeDataSourcePermissionsInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. // // This member is required. DataSourceId *string @@ -48,14 +48,14 @@ type DescribeDataSourcePermissionsOutput struct { // The Amazon Resource Name (ARN) of the data source. DataSourceArn *string - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. DataSourceId *string // A list of resource permissions on the data source. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeGroup.go b/service/quicksight/api_op_DescribeGroup.go index 492bc3149de..f6855aca276 100644 --- a/service/quicksight/api_op_DescribeGroup.go +++ b/service/quicksight/api_op_DescribeGroup.go @@ -29,8 +29,9 @@ func (c *Client) DescribeGroup(ctx context.Context, params *DescribeGroupInput, type DescribeGroupInput struct { - // The ID for the AWS account that the group is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the group is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -53,7 +54,7 @@ type DescribeGroupOutput struct { // The name of the group. Group *types.Group - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeIAMPolicyAssignment.go b/service/quicksight/api_op_DescribeIAMPolicyAssignment.go index 7060540d4a1..3dd99745c09 100644 --- a/service/quicksight/api_op_DescribeIAMPolicyAssignment.go +++ b/service/quicksight/api_op_DescribeIAMPolicyAssignment.go @@ -35,8 +35,8 @@ type DescribeIAMPolicyAssignmentInput struct { // This member is required. AssignmentName *string - // The ID of the AWS account that contains the assignment that you want to - // describe. + // The ID of the Amazon Web Services account; that contains the assignment that you + // want to describe. // // This member is required. AwsAccountId *string @@ -54,7 +54,7 @@ type DescribeIAMPolicyAssignmentOutput struct { // Information describing the IAM policy assignment. IAMPolicyAssignment *types.IAMPolicyAssignment - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeIngestion.go b/service/quicksight/api_op_DescribeIngestion.go index 1cdc04b9cd8..50669f75f98 100644 --- a/service/quicksight/api_op_DescribeIngestion.go +++ b/service/quicksight/api_op_DescribeIngestion.go @@ -29,7 +29,7 @@ func (c *Client) DescribeIngestion(ctx context.Context, params *DescribeIngestio type DescribeIngestionInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string @@ -52,7 +52,7 @@ type DescribeIngestionOutput struct { // Information about the ingestion. Ingestion *types.Ingestion - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeNamespace.go b/service/quicksight/api_op_DescribeNamespace.go index 92fa605eeb4..71085e42bff 100644 --- a/service/quicksight/api_op_DescribeNamespace.go +++ b/service/quicksight/api_op_DescribeNamespace.go @@ -29,8 +29,8 @@ func (c *Client) DescribeNamespace(ctx context.Context, params *DescribeNamespac type DescribeNamespaceInput struct { - // The ID for the AWS account that contains the QuickSight namespace that you want - // to describe. + // The ID for the Amazon Web Services account; that contains the QuickSight + // namespace that you want to describe. // // This member is required. AwsAccountId *string @@ -46,13 +46,13 @@ type DescribeNamespaceInput struct { type DescribeNamespaceOutput struct { // The information about the namespace that you're describing. The response - // includes the namespace ARN, name, AWS Region, creation status, and identity - // store. DescribeNamespace also works for namespaces that are in the process of - // being created. For incomplete namespaces, this API operation lists the namespace - // error types and messages associated with the creation process. + // includes the namespace ARN, name, Region;, creation status, and identity store. + // DescribeNamespace also works for namespaces that are in the process of being + // created. For incomplete namespaces, this API operation lists the namespace error + // types and messages associated with the creation process. Namespace *types.NamespaceInfoV2 - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeTemplate.go b/service/quicksight/api_op_DescribeTemplate.go index 426acfb49c9..4e09bab6ad6 100644 --- a/service/quicksight/api_op_DescribeTemplate.go +++ b/service/quicksight/api_op_DescribeTemplate.go @@ -29,7 +29,8 @@ func (c *Client) DescribeTemplate(ctx context.Context, params *DescribeTemplateI type DescribeTemplateInput struct { - // The ID of the AWS account that contains the template that you're describing. + // The ID of the Amazon Web Services account; that contains the template that + // you're describing. // // This member is required. AwsAccountId *string @@ -54,7 +55,7 @@ type DescribeTemplateInput struct { type DescribeTemplateOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeTemplateAlias.go b/service/quicksight/api_op_DescribeTemplateAlias.go index d13f742b092..7e29a49ec28 100644 --- a/service/quicksight/api_op_DescribeTemplateAlias.go +++ b/service/quicksight/api_op_DescribeTemplateAlias.go @@ -37,8 +37,8 @@ type DescribeTemplateAliasInput struct { // This member is required. AliasName *string - // The ID of the AWS account that contains the template alias that you're - // describing. + // The ID of the Amazon Web Services account; that contains the template alias that + // you're describing. // // This member is required. AwsAccountId *string @@ -53,7 +53,7 @@ type DescribeTemplateAliasInput struct { type DescribeTemplateAliasOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeTemplatePermissions.go b/service/quicksight/api_op_DescribeTemplatePermissions.go index e05cc7c742d..5cfc1cd9ea5 100644 --- a/service/quicksight/api_op_DescribeTemplatePermissions.go +++ b/service/quicksight/api_op_DescribeTemplatePermissions.go @@ -29,7 +29,8 @@ func (c *Client) DescribeTemplatePermissions(ctx context.Context, params *Descri type DescribeTemplatePermissionsInput struct { - // The ID of the AWS account that contains the template that you're describing. + // The ID of the Amazon Web Services account; that contains the template that + // you're describing. // // This member is required. AwsAccountId *string @@ -47,7 +48,7 @@ type DescribeTemplatePermissionsOutput struct { // A list of resource permissions to be set on the template. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeTheme.go b/service/quicksight/api_op_DescribeTheme.go index 2b056321f16..497373eb178 100644 --- a/service/quicksight/api_op_DescribeTheme.go +++ b/service/quicksight/api_op_DescribeTheme.go @@ -29,7 +29,8 @@ func (c *Client) DescribeTheme(ctx context.Context, params *DescribeThemeInput, type DescribeThemeInput struct { - // The ID of the AWS account that contains the theme that you're describing. + // The ID of the Amazon Web Services account; that contains the theme that you're + // describing. // // This member is required. AwsAccountId *string @@ -54,7 +55,7 @@ type DescribeThemeInput struct { type DescribeThemeOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeThemeAlias.go b/service/quicksight/api_op_DescribeThemeAlias.go index 5b6852455f6..99c24c9ed85 100644 --- a/service/quicksight/api_op_DescribeThemeAlias.go +++ b/service/quicksight/api_op_DescribeThemeAlias.go @@ -34,7 +34,8 @@ type DescribeThemeAliasInput struct { // This member is required. AliasName *string - // The ID of the AWS account that contains the theme alias that you're describing. + // The ID of the Amazon Web Services account; that contains the theme alias that + // you're describing. // // This member is required. AwsAccountId *string @@ -49,7 +50,7 @@ type DescribeThemeAliasInput struct { type DescribeThemeAliasOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeThemePermissions.go b/service/quicksight/api_op_DescribeThemePermissions.go index e3ea87d2def..9f9f48a7a06 100644 --- a/service/quicksight/api_op_DescribeThemePermissions.go +++ b/service/quicksight/api_op_DescribeThemePermissions.go @@ -29,7 +29,8 @@ func (c *Client) DescribeThemePermissions(ctx context.Context, params *DescribeT type DescribeThemePermissionsInput struct { - // The ID of the AWS account that contains the theme that you're describing. + // The ID of the Amazon Web Services account; that contains the theme that you're + // describing. // // This member is required. AwsAccountId *string @@ -47,7 +48,7 @@ type DescribeThemePermissionsOutput struct { // A list of resource permissions set on the theme. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_DescribeUser.go b/service/quicksight/api_op_DescribeUser.go index 23536e58ca3..2bac5d636ee 100644 --- a/service/quicksight/api_op_DescribeUser.go +++ b/service/quicksight/api_op_DescribeUser.go @@ -29,8 +29,9 @@ func (c *Client) DescribeUser(ctx context.Context, params *DescribeUserInput, op type DescribeUserInput struct { - // The ID for the AWS account that the user is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the user is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -50,7 +51,7 @@ type DescribeUserInput struct { type DescribeUserOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_GenerateEmbedUrlForAnonymousUser.go b/service/quicksight/api_op_GenerateEmbedUrlForAnonymousUser.go new file mode 100644 index 00000000000..89c78f7634b --- /dev/null +++ b/service/quicksight/api_op_GenerateEmbedUrlForAnonymousUser.go @@ -0,0 +1,191 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Generates an embed URL that you can use to embed an Amazon QuickSight dashboard +// in your website, without having to register any reader users. Before you use +// this action, make sure that you have configured the dashboards and permissions. +// The following rules apply to the generated URL: +// +// * It contains a temporary +// bearer token. It is valid for 5 minutes after it is generated. Once redeemed +// within this period, it cannot be re-used again. +// +// * The URL validity period +// should not be confused with the actual session lifetime that can be customized +// using the SessionLifetimeInMinutes +// (https://docs.aws.amazon.com/quicksight/latest/APIReference/API_GenerateEmbedUrlForAnonymousUser.html#QS-GenerateEmbedUrlForAnonymousUser-request-SessionLifetimeInMinutes) +// parameter. The resulting user session is valid for 15 minutes (default) to 10 +// hours (maximum). +// +// * You are charged only when the URL is used or there is +// interaction with Amazon QuickSight. +// +// For more information, see Embedded +// Analytics +// (https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics.html) in +// the Amazon QuickSight User Guide. For more information about the high-level +// steps for embedding and for an interactive demo of the ways you can customize +// embedding, visit the Amazon QuickSight Developer Portal +// (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-portal.html). +func (c *Client) GenerateEmbedUrlForAnonymousUser(ctx context.Context, params *GenerateEmbedUrlForAnonymousUserInput, optFns ...func(*Options)) (*GenerateEmbedUrlForAnonymousUserOutput, error) { + if params == nil { + params = &GenerateEmbedUrlForAnonymousUserInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GenerateEmbedUrlForAnonymousUser", params, optFns, c.addOperationGenerateEmbedUrlForAnonymousUserMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GenerateEmbedUrlForAnonymousUserOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GenerateEmbedUrlForAnonymousUserInput struct { + + // The Amazon Resource Names for the Amazon QuickSight resources that the user is + // authorized to access during the lifetime of the session. If you choose Dashboard + // embedding experience, pass the list of dashboard ARNs in the account that you + // want the user to be able to view. + // + // This member is required. + AuthorizedResourceArns []string + + // The ID for the Amazon Web Services account that contains the dashboard that + // you're embedding. + // + // This member is required. + AwsAccountId *string + + // The configuration of the experience you are embedding. + // + // This member is required. + ExperienceConfiguration *types.AnonymousUserEmbeddingExperienceConfiguration + + // The Amazon QuickSight namespace that the anonymous user virtually belongs to. If + // you are not using an Amazon QuickSight custom namespace, set this to default. + // + // This member is required. + Namespace *string + + // How many minutes the session is valid. The session lifetime must be in [15-600] + // minutes range. + SessionLifetimeInMinutes *int64 + + // The session tags used for row-level security. Before you use this parameter, + // make sure that you have configured the relevant datasets using the + // DataSet$RowLevelPermissionTagConfiguration parameter so that session tags can be + // used to provide row-level security. These are not the tags used for the Amazon + // Web Services resource tagging feature. For more information, see Using Row-Level + // Security (RLS) with Tags + // (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-rls-tags.html). + SessionTags []types.SessionTag + + noSmithyDocumentSerde +} + +type GenerateEmbedUrlForAnonymousUserOutput struct { + + // The embed URL for the dashboard. + // + // This member is required. + EmbedUrl *string + + // The Amazon Web Services request ID for this operation. + // + // This member is required. + RequestId *string + + // The HTTP status of the request. + // + // This member is required. + Status int32 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGenerateEmbedUrlForAnonymousUserMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGenerateEmbedUrlForAnonymousUserValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGenerateEmbedUrlForAnonymousUser(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGenerateEmbedUrlForAnonymousUser(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "GenerateEmbedUrlForAnonymousUser", + } +} diff --git a/service/quicksight/api_op_GenerateEmbedUrlForRegisteredUser.go b/service/quicksight/api_op_GenerateEmbedUrlForRegisteredUser.go new file mode 100644 index 00000000000..1fe0331f24c --- /dev/null +++ b/service/quicksight/api_op_GenerateEmbedUrlForRegisteredUser.go @@ -0,0 +1,175 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Generates an embed URL that you can use to embed an Amazon QuickSight experience +// in your website. This action can be used for any type of user registered in an +// Amazon QuickSight account. Before you use this action, make sure that you have +// configured the relevant Amazon QuickSight resource and permissions. The +// following rules apply to the generated URL: +// +// * It contains a temporary bearer +// token. It is valid for 5 minutes after it is generated. Once redeemed within +// this period, it cannot be re-used again. +// +// * The URL validity period should not +// be confused with the actual session lifetime that can be customized using the +// SessionLifetimeInMinutes +// (https://docs.aws.amazon.com/quicksight/latest/APIReference/API_GenerateEmbedUrlForRegisteredUser.html#QS-GenerateEmbedUrlForRegisteredUser-request-SessionLifetimeInMinutes) +// parameter. The resulting user session is valid for 15 minutes (default) to 10 +// hours (maximum). +// +// * You are charged only when the URL is used or there is +// interaction with Amazon QuickSight. +// +// For more information, see Embedded +// Analytics +// (https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics.html) in +// the Amazon QuickSight User Guide. For more information about the high-level +// steps for embedding and for an interactive demo of the ways you can customize +// embedding, visit the Amazon QuickSight Developer Portal +// (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-portal.html). +func (c *Client) GenerateEmbedUrlForRegisteredUser(ctx context.Context, params *GenerateEmbedUrlForRegisteredUserInput, optFns ...func(*Options)) (*GenerateEmbedUrlForRegisteredUserOutput, error) { + if params == nil { + params = &GenerateEmbedUrlForRegisteredUserInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GenerateEmbedUrlForRegisteredUser", params, optFns, c.addOperationGenerateEmbedUrlForRegisteredUserMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GenerateEmbedUrlForRegisteredUserOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GenerateEmbedUrlForRegisteredUserInput struct { + + // The ID for the Amazon Web Services account that contains the dashboard that + // you're embedding. + // + // This member is required. + AwsAccountId *string + + // The experience you are embedding. For registered users, you can embed Amazon + // QuickSight dashboards or the entire Amazon QuickSight console. + // + // This member is required. + ExperienceConfiguration *types.RegisteredUserEmbeddingExperienceConfiguration + + // The Amazon Resource Name for the registered user. + // + // This member is required. + UserArn *string + + // How many minutes the session is valid. The session lifetime must be in [15-600] + // minutes range. + SessionLifetimeInMinutes *int64 + + noSmithyDocumentSerde +} + +type GenerateEmbedUrlForRegisteredUserOutput struct { + + // The embed URL for the Amazon QuickSight dashboard or console. + // + // This member is required. + EmbedUrl *string + + // The Amazon Web Services request ID for this operation. + // + // This member is required. + RequestId *string + + // The HTTP status of the request. + // + // This member is required. + Status int32 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGenerateEmbedUrlForRegisteredUserMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGenerateEmbedUrlForRegisteredUserValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGenerateEmbedUrlForRegisteredUser(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGenerateEmbedUrlForRegisteredUser(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "GenerateEmbedUrlForRegisteredUser", + } +} diff --git a/service/quicksight/api_op_GetDashboardEmbedUrl.go b/service/quicksight/api_op_GetDashboardEmbedUrl.go index 6ac6e32ef2c..13d46058d65 100644 --- a/service/quicksight/api_op_GetDashboardEmbedUrl.go +++ b/service/quicksight/api_op_GetDashboardEmbedUrl.go @@ -31,7 +31,10 @@ import ( // For more information, see // Embedded Analytics // (https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics.html) in -// the Amazon QuickSight User Guide. +// the Amazon QuickSight User Guide. For more information about the high-level +// steps for embedding and for an interactive demo of the ways you can customize +// embedding, visit the Amazon QuickSight Developer Portal +// (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-portal.html). func (c *Client) GetDashboardEmbedUrl(ctx context.Context, params *GetDashboardEmbedUrlInput, optFns ...func(*Options)) (*GetDashboardEmbedUrlOutput, error) { if params == nil { params = &GetDashboardEmbedUrlInput{} @@ -49,13 +52,14 @@ func (c *Client) GetDashboardEmbedUrl(ctx context.Context, params *GetDashboardE type GetDashboardEmbedUrlInput struct { - // The ID for the AWS account that contains the dashboard that you're embedding. + // The ID for the Amazon Web Services account; that contains the dashboard that + // you're embedding. // // This member is required. AwsAccountId *string - // The ID for the dashboard, also added to the AWS Identity and Access Management - // (IAM) policy. + // The ID for the dashboard, also added to the Identity and Access Management (IAM) + // policy. // // This member is required. DashboardId *string @@ -72,8 +76,8 @@ type GetDashboardEmbedUrlInput struct { // dash_id3 identity-type ANONYMOUS", the session can access all three dashboards. AdditionalDashboardIds []string - // The QuickSight namespace that contains the dashboard IDs in this request. If - // you're not using a custom namespace, set this to "default". + // The Amazon QuickSight namespace that the user virtually belongs to. If you are + // not using an Amazon QuickSight custom namespace, set this to default. Namespace *string // Remove the reset button on the embedded dashboard. The default is FALSE, which @@ -126,7 +130,7 @@ type GetDashboardEmbedUrlOutput struct { // session that is valid for 10 hours. EmbedUrl *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_GetSessionEmbedUrl.go b/service/quicksight/api_op_GetSessionEmbedUrl.go index 26fffa4aa1f..d47d0a7485a 100644 --- a/service/quicksight/api_op_GetSessionEmbedUrl.go +++ b/service/quicksight/api_op_GetSessionEmbedUrl.go @@ -44,7 +44,8 @@ func (c *Client) GetSessionEmbedUrl(ctx context.Context, params *GetSessionEmbed type GetSessionEmbedUrlInput struct { - // The ID for the AWS account associated with your QuickSight subscription. + // The ID for the Amazon Web Services account; associated with your QuickSight + // subscription. // // This member is required. AwsAccountId *string @@ -83,7 +84,7 @@ type GetSessionEmbedUrlInput struct { // * Invited // nonfederated users // - // * AWS Identity and Access Management (IAM) users and IAM + // * Identity and Access Management (IAM) users and IAM // role-based sessions authenticated through Federated Single Sign-On using SAML, // OpenID Connect, or IAM federation // @@ -102,7 +103,7 @@ type GetSessionEmbedUrlOutput struct { // user session that is valid for 10 hours. EmbedUrl *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListAnalyses.go b/service/quicksight/api_op_ListAnalyses.go index d40852d7db2..58bd5321e57 100644 --- a/service/quicksight/api_op_ListAnalyses.go +++ b/service/quicksight/api_op_ListAnalyses.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists Amazon QuickSight analyses that exist in the specified AWS account. +// Lists Amazon QuickSight analyses that exist in the specified Amazon Web Services +// account;. func (c *Client) ListAnalyses(ctx context.Context, params *ListAnalysesInput, optFns ...func(*Options)) (*ListAnalysesOutput, error) { if params == nil { params = &ListAnalysesInput{} @@ -30,7 +31,7 @@ func (c *Client) ListAnalyses(ctx context.Context, params *ListAnalysesInput, op type ListAnalysesInput struct { - // The ID of the AWS account that contains the analyses. + // The ID of the Amazon Web Services account; that contains the analyses. // // This member is required. AwsAccountId *string @@ -52,7 +53,7 @@ type ListAnalysesOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListDashboardVersions.go b/service/quicksight/api_op_ListDashboardVersions.go index 6a2ee6c1401..9ac3166de34 100644 --- a/service/quicksight/api_op_ListDashboardVersions.go +++ b/service/quicksight/api_op_ListDashboardVersions.go @@ -30,8 +30,8 @@ func (c *Client) ListDashboardVersions(ctx context.Context, params *ListDashboar type ListDashboardVersionsInput struct { - // The ID of the AWS account that contains the dashboard that you're listing - // versions for. + // The ID of the Amazon Web Services account; that contains the dashboard that + // you're listing versions for. // // This member is required. AwsAccountId *string @@ -58,7 +58,7 @@ type ListDashboardVersionsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListDashboards.go b/service/quicksight/api_op_ListDashboards.go index 84389890d29..f0bef83b9cd 100644 --- a/service/quicksight/api_op_ListDashboards.go +++ b/service/quicksight/api_op_ListDashboards.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists dashboards in an AWS account. +// Lists dashboards in an Amazon Web Services account;. func (c *Client) ListDashboards(ctx context.Context, params *ListDashboardsInput, optFns ...func(*Options)) (*ListDashboardsOutput, error) { if params == nil { params = &ListDashboardsInput{} @@ -30,7 +30,8 @@ func (c *Client) ListDashboards(ctx context.Context, params *ListDashboardsInput type ListDashboardsInput struct { - // The ID of the AWS account that contains the dashboards that you're listing. + // The ID of the Amazon Web Services account; that contains the dashboards that + // you're listing. // // This member is required. AwsAccountId *string @@ -46,14 +47,14 @@ type ListDashboardsInput struct { type ListDashboardsOutput struct { - // A structure that contains all of the dashboards in your AWS account. This - // structure provides basic information about the dashboards. + // A structure that contains all of the dashboards in your Amazon Web Services + // account;. This structure provides basic information about the dashboards. DashboardSummaryList []types.DashboardSummary // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListDataSets.go b/service/quicksight/api_op_ListDataSets.go index ed423c52cf8..ba5cfce07c9 100644 --- a/service/quicksight/api_op_ListDataSets.go +++ b/service/quicksight/api_op_ListDataSets.go @@ -12,8 +12,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all of the datasets belonging to the current AWS account in an AWS Region. -// The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*. +// Lists all of the datasets belonging to the current Amazon Web Services account; +// in an Region;. The permissions resource is +// arn:aws:quicksight:region:aws-account-id:dataset/*. func (c *Client) ListDataSets(ctx context.Context, params *ListDataSetsInput, optFns ...func(*Options)) (*ListDataSetsOutput, error) { if params == nil { params = &ListDataSetsInput{} @@ -31,7 +32,7 @@ func (c *Client) ListDataSets(ctx context.Context, params *ListDataSetsInput, op type ListDataSetsInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string @@ -53,7 +54,7 @@ type ListDataSetsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListDataSources.go b/service/quicksight/api_op_ListDataSources.go index 05bb9d08dd8..fdf72d1b318 100644 --- a/service/quicksight/api_op_ListDataSources.go +++ b/service/quicksight/api_op_ListDataSources.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists data sources in current AWS Region that belong to this AWS account. +// Lists data sources in current Region; that belong to this Amazon Web Services +// account;. func (c *Client) ListDataSources(ctx context.Context, params *ListDataSourcesInput, optFns ...func(*Options)) (*ListDataSourcesOutput, error) { if params == nil { params = &ListDataSourcesInput{} @@ -30,7 +31,7 @@ func (c *Client) ListDataSources(ctx context.Context, params *ListDataSourcesInp type ListDataSourcesInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string @@ -52,7 +53,7 @@ type ListDataSourcesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListGroupMemberships.go b/service/quicksight/api_op_ListGroupMemberships.go index 2720d551b35..d219ae1c54a 100644 --- a/service/quicksight/api_op_ListGroupMemberships.go +++ b/service/quicksight/api_op_ListGroupMemberships.go @@ -29,8 +29,9 @@ func (c *Client) ListGroupMemberships(ctx context.Context, params *ListGroupMemb type ListGroupMembershipsInput struct { - // The ID for the AWS account that the group is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the group is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -62,7 +63,7 @@ type ListGroupMembershipsOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListGroups.go b/service/quicksight/api_op_ListGroups.go index 88d212bd0c3..03ca7adb8d1 100644 --- a/service/quicksight/api_op_ListGroups.go +++ b/service/quicksight/api_op_ListGroups.go @@ -29,8 +29,9 @@ func (c *Client) ListGroups(ctx context.Context, params *ListGroupsInput, optFns type ListGroupsInput struct { - // The ID for the AWS account that the group is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the group is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -57,7 +58,7 @@ type ListGroupsOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListIAMPolicyAssignments.go b/service/quicksight/api_op_ListIAMPolicyAssignments.go index 1987fbfb7a8..1942115fb3c 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignments.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignments.go @@ -29,7 +29,8 @@ func (c *Client) ListIAMPolicyAssignments(ctx context.Context, params *ListIAMPo type ListIAMPolicyAssignmentsInput struct { - // The ID of the AWS account that contains these IAM policy assignments. + // The ID of the Amazon Web Services account; that contains these IAM policy + // assignments. // // This member is required. AwsAccountId *string @@ -59,7 +60,7 @@ type ListIAMPolicyAssignmentsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go index 3ba069d19a6..e61cdf94987 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go @@ -31,7 +31,7 @@ func (c *Client) ListIAMPolicyAssignmentsForUser(ctx context.Context, params *Li type ListIAMPolicyAssignmentsForUserInput struct { - // The ID of the AWS account that contains the assignments. + // The ID of the Amazon Web Services account; that contains the assignments. // // This member is required. AwsAccountId *string @@ -63,7 +63,7 @@ type ListIAMPolicyAssignmentsForUserOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListIngestions.go b/service/quicksight/api_op_ListIngestions.go index 3a1bdd00b6e..ddbe58d2351 100644 --- a/service/quicksight/api_op_ListIngestions.go +++ b/service/quicksight/api_op_ListIngestions.go @@ -30,7 +30,7 @@ func (c *Client) ListIngestions(ctx context.Context, params *ListIngestionsInput type ListIngestionsInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string @@ -57,7 +57,7 @@ type ListIngestionsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListNamespaces.go b/service/quicksight/api_op_ListNamespaces.go index cfd68ede9df..de1fc204b14 100644 --- a/service/quicksight/api_op_ListNamespaces.go +++ b/service/quicksight/api_op_ListNamespaces.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the namespaces for the specified AWS account. +// Lists the namespaces for the specified Amazon Web Services account;. func (c *Client) ListNamespaces(ctx context.Context, params *ListNamespacesInput, optFns ...func(*Options)) (*ListNamespacesOutput, error) { if params == nil { params = &ListNamespacesInput{} @@ -30,8 +30,8 @@ func (c *Client) ListNamespaces(ctx context.Context, params *ListNamespacesInput type ListNamespacesInput struct { - // The ID for the AWS account that contains the QuickSight namespaces that you want - // to list. + // The ID for the Amazon Web Services account; that contains the QuickSight + // namespaces that you want to list. // // This member is required. AwsAccountId *string @@ -47,15 +47,15 @@ type ListNamespacesInput struct { type ListNamespacesOutput struct { - // The information about the namespaces in this AWS account. The response includes - // the namespace ARN, name, AWS Region, notification email address, creation - // status, and identity store. + // The information about the namespaces in this Amazon Web Services account;. The + // response includes the namespace ARN, name, Region;, notification email address, + // creation status, and identity store. Namespaces []types.NamespaceInfoV2 // A pagination token that can be used in a subsequent request. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListTagsForResource.go b/service/quicksight/api_op_ListTagsForResource.go index 45a41e39c9e..5db12061f90 100644 --- a/service/quicksight/api_op_ListTagsForResource.go +++ b/service/quicksight/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListTemplateAliases.go b/service/quicksight/api_op_ListTemplateAliases.go index d2993422fa6..634c989494e 100644 --- a/service/quicksight/api_op_ListTemplateAliases.go +++ b/service/quicksight/api_op_ListTemplateAliases.go @@ -30,8 +30,8 @@ func (c *Client) ListTemplateAliases(ctx context.Context, params *ListTemplateAl type ListTemplateAliasesInput struct { - // The ID of the AWS account that contains the template aliases that you're - // listing. + // The ID of the Amazon Web Services account; that contains the template aliases + // that you're listing. // // This member is required. AwsAccountId *string @@ -55,7 +55,7 @@ type ListTemplateAliasesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListTemplateVersions.go b/service/quicksight/api_op_ListTemplateVersions.go index 21a7ce2b210..76f026be93b 100644 --- a/service/quicksight/api_op_ListTemplateVersions.go +++ b/service/quicksight/api_op_ListTemplateVersions.go @@ -31,7 +31,8 @@ func (c *Client) ListTemplateVersions(ctx context.Context, params *ListTemplateV type ListTemplateVersionsInput struct { - // The ID of the AWS account that contains the templates that you're listing. + // The ID of the Amazon Web Services account; that contains the templates that + // you're listing. // // This member is required. AwsAccountId *string @@ -55,7 +56,7 @@ type ListTemplateVersionsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListTemplates.go b/service/quicksight/api_op_ListTemplates.go index 509e664cc88..609832cdb9c 100644 --- a/service/quicksight/api_op_ListTemplates.go +++ b/service/quicksight/api_op_ListTemplates.go @@ -30,7 +30,8 @@ func (c *Client) ListTemplates(ctx context.Context, params *ListTemplatesInput, type ListTemplatesInput struct { - // The ID of the AWS account that contains the templates that you're listing. + // The ID of the Amazon Web Services account; that contains the templates that + // you're listing. // // This member is required. AwsAccountId *string @@ -49,7 +50,7 @@ type ListTemplatesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListThemeAliases.go b/service/quicksight/api_op_ListThemeAliases.go index df4dec0485d..5c175aae213 100644 --- a/service/quicksight/api_op_ListThemeAliases.go +++ b/service/quicksight/api_op_ListThemeAliases.go @@ -29,7 +29,8 @@ func (c *Client) ListThemeAliases(ctx context.Context, params *ListThemeAliasesI type ListThemeAliasesInput struct { - // The ID of the AWS account that contains the theme aliases that you're listing. + // The ID of the Amazon Web Services account; that contains the theme aliases that + // you're listing. // // This member is required. AwsAccountId *string @@ -53,7 +54,7 @@ type ListThemeAliasesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListThemeVersions.go b/service/quicksight/api_op_ListThemeVersions.go index 39981da1e81..ffcf50868aa 100644 --- a/service/quicksight/api_op_ListThemeVersions.go +++ b/service/quicksight/api_op_ListThemeVersions.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the versions of the themes in the current AWS account. +// Lists all the versions of the themes in the current Amazon Web Services +// account;. func (c *Client) ListThemeVersions(ctx context.Context, params *ListThemeVersionsInput, optFns ...func(*Options)) (*ListThemeVersionsOutput, error) { if params == nil { params = &ListThemeVersionsInput{} @@ -30,7 +31,8 @@ func (c *Client) ListThemeVersions(ctx context.Context, params *ListThemeVersion type ListThemeVersionsInput struct { - // The ID of the AWS account that contains the themes that you're listing. + // The ID of the Amazon Web Services account; that contains the themes that you're + // listing. // // This member is required. AwsAccountId *string @@ -54,7 +56,7 @@ type ListThemeVersionsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListThemes.go b/service/quicksight/api_op_ListThemes.go index 1af1b3ef95e..4473faa2ba8 100644 --- a/service/quicksight/api_op_ListThemes.go +++ b/service/quicksight/api_op_ListThemes.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the themes in the current AWS account. +// Lists all the themes in the current Amazon Web Services account;. func (c *Client) ListThemes(ctx context.Context, params *ListThemesInput, optFns ...func(*Options)) (*ListThemesOutput, error) { if params == nil { params = &ListThemesInput{} @@ -30,7 +30,8 @@ func (c *Client) ListThemes(ctx context.Context, params *ListThemesInput, optFns type ListThemesInput struct { - // The ID of the AWS account that contains the themes that you're listing. + // The ID of the Amazon Web Services account; that contains the themes that you're + // listing. // // This member is required. AwsAccountId *string @@ -50,7 +51,7 @@ type ListThemesInput struct { // only the themes created by people using Amazon QuickSight. // // * QUICKSIGHT - - // Display only the starting themes defined by QuickSight. + // Display only the starting themes defined by Amazon QuickSight. Type types.ThemeType noSmithyDocumentSerde @@ -61,7 +62,7 @@ type ListThemesOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListUserGroups.go b/service/quicksight/api_op_ListUserGroups.go index d62d24634f2..3b46e445772 100644 --- a/service/quicksight/api_op_ListUserGroups.go +++ b/service/quicksight/api_op_ListUserGroups.go @@ -30,8 +30,9 @@ func (c *Client) ListUserGroups(ctx context.Context, params *ListUserGroupsInput type ListUserGroupsInput struct { - // The AWS account ID that the user is in. Currently, you use the ID for the AWS - // account that contains your Amazon QuickSight account. + // The Amazon Web Services account; ID that the user is in. Currently, you use the + // ID for the Amazon Web Services account; that contains your Amazon QuickSight + // account. // // This member is required. AwsAccountId *string @@ -63,7 +64,7 @@ type ListUserGroupsOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_ListUsers.go b/service/quicksight/api_op_ListUsers.go index fdb3faa0e3c..ffac18ef015 100644 --- a/service/quicksight/api_op_ListUsers.go +++ b/service/quicksight/api_op_ListUsers.go @@ -29,8 +29,9 @@ func (c *Client) ListUsers(ctx context.Context, params *ListUsersInput, optFns . type ListUsersInput struct { - // The ID for the AWS account that the user is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the user is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -54,7 +55,7 @@ type ListUsersOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_RegisterUser.go b/service/quicksight/api_op_RegisterUser.go index 59fa6560881..88a06ec81fb 100644 --- a/service/quicksight/api_op_RegisterUser.go +++ b/service/quicksight/api_op_RegisterUser.go @@ -30,8 +30,9 @@ func (c *Client) RegisterUser(ctx context.Context, params *RegisterUserInput, op type RegisterUserInput struct { - // The ID for the AWS account that the user is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the user is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -107,7 +108,7 @@ type RegisterUserInput struct { // Therefore, they override the permissions typically granted by assigning // QuickSight users to one of the default security cohorts in QuickSight (admin, // author, reader). This feature is available only to QuickSight Enterprise edition - // subscriptions that use SAML 2.0-Based Federation for Single Sign-On (SSO). + // subscriptions. CustomPermissionsName *string // The type of supported external login provider that provides identity to let a @@ -150,7 +151,7 @@ type RegisterUserInput struct { type RegisterUserOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_RestoreAnalysis.go b/service/quicksight/api_op_RestoreAnalysis.go index e44789e0c6f..b15004e1278 100644 --- a/service/quicksight/api_op_RestoreAnalysis.go +++ b/service/quicksight/api_op_RestoreAnalysis.go @@ -33,7 +33,7 @@ type RestoreAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the AWS account that contains the analysis. + // The ID of the Amazon Web Services account; that contains the analysis. // // This member is required. AwsAccountId *string @@ -49,7 +49,7 @@ type RestoreAnalysisOutput struct { // The Amazon Resource Name (ARN) of the analysis that you're restoring. Arn *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_SearchAnalyses.go b/service/quicksight/api_op_SearchAnalyses.go index 70640b73254..b76cb61c375 100644 --- a/service/quicksight/api_op_SearchAnalyses.go +++ b/service/quicksight/api_op_SearchAnalyses.go @@ -12,7 +12,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Searches for analyses that belong to the user specified in the filter. +// Searches for analyses that belong to the user specified in the filter. This +// operation is eventually consistent. The results are best effort and may not +// reflect very recent updates and changes. func (c *Client) SearchAnalyses(ctx context.Context, params *SearchAnalysesInput, optFns ...func(*Options)) (*SearchAnalysesOutput, error) { if params == nil { params = &SearchAnalysesInput{} @@ -30,7 +32,8 @@ func (c *Client) SearchAnalyses(ctx context.Context, params *SearchAnalysesInput type SearchAnalysesInput struct { - // The ID of the AWS account that contains the analyses that you're searching for. + // The ID of the Amazon Web Services account; that contains the analyses that + // you're searching for. // // This member is required. AwsAccountId *string @@ -57,7 +60,7 @@ type SearchAnalysesOutput struct { // A pagination token that can be used in a subsequent request. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_SearchDashboards.go b/service/quicksight/api_op_SearchDashboards.go index 2682ff5670d..575ca497492 100644 --- a/service/quicksight/api_op_SearchDashboards.go +++ b/service/quicksight/api_op_SearchDashboards.go @@ -12,7 +12,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Searches for dashboards that belong to a user. +// Searches for dashboards that belong to a user. This operation is eventually +// consistent. The results are best effort and may not reflect very recent updates +// and changes. func (c *Client) SearchDashboards(ctx context.Context, params *SearchDashboardsInput, optFns ...func(*Options)) (*SearchDashboardsOutput, error) { if params == nil { params = &SearchDashboardsInput{} @@ -30,8 +32,8 @@ func (c *Client) SearchDashboards(ctx context.Context, params *SearchDashboardsI type SearchDashboardsInput struct { - // The ID of the AWS account that contains the user whose dashboards you're - // searching for. + // The ID of the Amazon Web Services account; that contains the user whose + // dashboards you're searching for. // // This member is required. AwsAccountId *string @@ -61,7 +63,7 @@ type SearchDashboardsOutput struct { // The token for the next set of results, or null if there are no more results. NextToken *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_TagResource.go b/service/quicksight/api_op_TagResource.go index 34b00d14ec2..c280d5758df 100644 --- a/service/quicksight/api_op_TagResource.go +++ b/service/quicksight/api_op_TagResource.go @@ -29,7 +29,7 @@ import ( // taggable resources. // // * QuickSight doesn't currently support the Tag Editor for -// AWS Resource Groups. +// Resource Groups. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} @@ -63,7 +63,7 @@ type TagResourceInput struct { type TagResourceOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UntagResource.go b/service/quicksight/api_op_UntagResource.go index 54e1940f7e7..21bcbab1b3f 100644 --- a/service/quicksight/api_op_UntagResource.go +++ b/service/quicksight/api_op_UntagResource.go @@ -44,7 +44,7 @@ type UntagResourceInput struct { type UntagResourceOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateAccountCustomization.go b/service/quicksight/api_op_UpdateAccountCustomization.go index a37766af5d1..55ede12548b 100644 --- a/service/quicksight/api_op_UpdateAccountCustomization.go +++ b/service/quicksight/api_op_UpdateAccountCustomization.go @@ -11,12 +11,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates Amazon QuickSight customizations the current AWS Region. Currently, the +// Updates Amazon QuickSight customizations the current Region;. Currently, the // only customization you can use is a theme. You can use customizations for your -// AWS account or, if you specify a namespace, for a QuickSight namespace instead. -// Customizations that apply to a namespace override customizations that apply to -// an AWS account. To find out which customizations apply, use the -// DescribeAccountCustomization API operation. +// Amazon Web Services account; or, if you specify a namespace, for a QuickSight +// namespace instead. Customizations that apply to a namespace override +// customizations that apply to an Amazon Web Services account;. To find out which +// customizations apply, use the DescribeAccountCustomization API operation. func (c *Client) UpdateAccountCustomization(ctx context.Context, params *UpdateAccountCustomizationInput, optFns ...func(*Options)) (*UpdateAccountCustomizationOutput, error) { if params == nil { params = &UpdateAccountCustomizationInput{} @@ -34,13 +34,13 @@ func (c *Client) UpdateAccountCustomization(ctx context.Context, params *UpdateA type UpdateAccountCustomizationInput struct { - // The QuickSight customizations you're updating in the current AWS Region. + // The QuickSight customizations you're updating in the current Region;. // // This member is required. AccountCustomization *types.AccountCustomization - // The ID for the AWS account that you want to update QuickSight customizations - // for. + // The ID for the Amazon Web Services account; that you want to update QuickSight + // customizations for. // // This member is required. AwsAccountId *string @@ -53,21 +53,21 @@ type UpdateAccountCustomizationInput struct { type UpdateAccountCustomizationOutput struct { - // The QuickSight customizations you're updating in the current AWS Region. + // The QuickSight customizations you're updating in the current Region;. AccountCustomization *types.AccountCustomization - // The Amazon Resource Name (ARN) for the updated customization for this AWS - // account. + // The Amazon Resource Name (ARN) for the updated customization for this Amazon Web + // Services account;. Arn *string - // The ID for the AWS account that you want to update QuickSight customizations - // for. + // The ID for the Amazon Web Services account; that you want to update QuickSight + // customizations for. AwsAccountId *string // The namespace associated with the customization that you're updating. Namespace *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateAccountSettings.go b/service/quicksight/api_op_UpdateAccountSettings.go index f09feef4ffc..645901c7b51 100644 --- a/service/quicksight/api_op_UpdateAccountSettings.go +++ b/service/quicksight/api_op_UpdateAccountSettings.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the Amazon QuickSight settings in your AWS account. +// Updates the Amazon QuickSight settings in your Amazon Web Services account;. func (c *Client) UpdateAccountSettings(ctx context.Context, params *UpdateAccountSettingsInput, optFns ...func(*Options)) (*UpdateAccountSettingsOutput, error) { if params == nil { params = &UpdateAccountSettingsInput{} @@ -28,22 +28,22 @@ func (c *Client) UpdateAccountSettings(ctx context.Context, params *UpdateAccoun type UpdateAccountSettingsInput struct { - // The ID for the AWS account that contains the QuickSight settings that you want - // to list. + // The ID for the Amazon Web Services account; that contains the QuickSight + // settings that you want to list. // // This member is required. AwsAccountId *string - // The default namespace for this AWS account. Currently, the default is default. - // AWS Identity and Access Management (IAM) users that register for the first time - // with QuickSight provide an email that becomes associated with the default - // namespace. + // The default namespace for this Amazon Web Services account;. Currently, the + // default is default. Identity and Access Management (IAM) users that register for + // the first time with QuickSight provide an email that becomes associated with the + // default namespace. // // This member is required. DefaultNamespace *string // The email address that you want QuickSight to send notifications to regarding - // your AWS account or QuickSight subscription. + // your Amazon Web Services account; or QuickSight subscription. NotificationEmail *string noSmithyDocumentSerde @@ -51,7 +51,7 @@ type UpdateAccountSettingsInput struct { type UpdateAccountSettingsOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateAnalysis.go b/service/quicksight/api_op_UpdateAnalysis.go index 054745fc324..ef14dffffd3 100644 --- a/service/quicksight/api_op_UpdateAnalysis.go +++ b/service/quicksight/api_op_UpdateAnalysis.go @@ -35,7 +35,8 @@ type UpdateAnalysisInput struct { // This member is required. AnalysisId *string - // The ID of the AWS account that contains the analysis that you're updating. + // The ID of the Amazon Web Services account; that contains the analysis that + // you're updating. // // This member is required. AwsAccountId *string @@ -73,7 +74,7 @@ type UpdateAnalysisOutput struct { // The ARN of the analysis that you're updating. Arn *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateAnalysisPermissions.go b/service/quicksight/api_op_UpdateAnalysisPermissions.go index f9af1fd8ce7..5d21c81f822 100644 --- a/service/quicksight/api_op_UpdateAnalysisPermissions.go +++ b/service/quicksight/api_op_UpdateAnalysisPermissions.go @@ -35,8 +35,9 @@ type UpdateAnalysisPermissionsInput struct { // This member is required. AnalysisId *string - // The ID of the AWS account that contains the analysis whose permissions you're - // updating. You must be using the AWS account that the analysis is in. + // The ID of the Amazon Web Services account; that contains the analysis whose + // permissions you're updating. You must be using the Amazon Web Services account; + // that the analysis is in. // // This member is required. AwsAccountId *string @@ -64,7 +65,7 @@ type UpdateAnalysisPermissionsOutput struct { // an analysis. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDashboard.go b/service/quicksight/api_op_UpdateDashboard.go index 29c1720beea..a48cc8be3b5 100644 --- a/service/quicksight/api_op_UpdateDashboard.go +++ b/service/quicksight/api_op_UpdateDashboard.go @@ -11,7 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates a dashboard in an AWS account. +// Updates a dashboard in an Amazon Web Services account;. Updating a Dashboard +// creates a new dashboard version but does not immediately publish the new +// version. You can update the published version of a dashboard by using the +// UpdateDashboardPublishedVersion API operation. func (c *Client) UpdateDashboard(ctx context.Context, params *UpdateDashboardInput, optFns ...func(*Options)) (*UpdateDashboardOutput, error) { if params == nil { params = &UpdateDashboardInput{} @@ -29,7 +32,8 @@ func (c *Client) UpdateDashboard(ctx context.Context, params *UpdateDashboardInp type UpdateDashboardInput struct { - // The ID of the AWS account that contains the dashboard that you're updating. + // The ID of the Amazon Web Services account; that contains the dashboard that + // you're updating. // // This member is required. AwsAccountId *string @@ -50,10 +54,10 @@ type UpdateDashboardInput struct { // you need to update a dashboard from an analysis, first convert the analysis to a // template by using the CreateTemplate API operation. For SourceTemplate, specify // the Amazon Resource Name (ARN) of the source template. The SourceTemplate ARN - // can contain any AWS Account and any QuickSight-supported AWS Region. Use the - // DataSetReferences entity within SourceTemplate to list the replacement datasets - // for the placeholders listed in the original. The schema in each dataset must - // match its placeholder. + // can contain any Amazon Web Services account; and any QuickSight-supported + // Region;. Use the DataSetReferences entity within SourceTemplate to list the + // replacement datasets for the placeholders listed in the original. The schema in + // each dataset must match its placeholder. // // This member is required. SourceEntity *types.DashboardSourceEntity @@ -82,8 +86,8 @@ type UpdateDashboardInput struct { // The Amazon Resource Name (ARN) of the theme that is being used for this // dashboard. If you add a value for this field, it overrides the value that was - // originally associated with the entity. The theme ARN must exist in the same AWS - // account where you create the dashboard. + // originally associated with the entity. The theme ARN must exist in the same + // Amazon Web Services account; where you create the dashboard. ThemeArn *string // A description for the first version of the dashboard being created. @@ -103,7 +107,7 @@ type UpdateDashboardOutput struct { // The ID for the dashboard. DashboardId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDashboardPermissions.go b/service/quicksight/api_op_UpdateDashboardPermissions.go index fea69029821..7ed2f648d2a 100644 --- a/service/quicksight/api_op_UpdateDashboardPermissions.go +++ b/service/quicksight/api_op_UpdateDashboardPermissions.go @@ -29,8 +29,8 @@ func (c *Client) UpdateDashboardPermissions(ctx context.Context, params *UpdateD type UpdateDashboardPermissionsInput struct { - // The ID of the AWS account that contains the dashboard whose permissions you're - // updating. + // The ID of the Amazon Web Services account; that contains the dashboard whose + // permissions you're updating. // // This member is required. AwsAccountId *string @@ -60,7 +60,7 @@ type UpdateDashboardPermissionsOutput struct { // Information about the permissions on the dashboard. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDashboardPublishedVersion.go b/service/quicksight/api_op_UpdateDashboardPublishedVersion.go index 141e5620208..382b02ef641 100644 --- a/service/quicksight/api_op_UpdateDashboardPublishedVersion.go +++ b/service/quicksight/api_op_UpdateDashboardPublishedVersion.go @@ -28,7 +28,8 @@ func (c *Client) UpdateDashboardPublishedVersion(ctx context.Context, params *Up type UpdateDashboardPublishedVersionInput struct { - // The ID of the AWS account that contains the dashboard that you're updating. + // The ID of the Amazon Web Services account; that contains the dashboard that + // you're updating. // // This member is required. AwsAccountId *string @@ -54,7 +55,7 @@ type UpdateDashboardPublishedVersionOutput struct { // The ID for the dashboard. DashboardId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDataSet.go b/service/quicksight/api_op_UpdateDataSet.go index f3d20d2aa96..5d9614b6fc0 100644 --- a/service/quicksight/api_op_UpdateDataSet.go +++ b/service/quicksight/api_op_UpdateDataSet.go @@ -29,13 +29,13 @@ func (c *Client) UpdateDataSet(ctx context.Context, params *UpdateDataSetInput, type UpdateDataSetInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // The ID for the dataset that you want to update. This ID is unique per AWS Region - // for each AWS account. + // The ID for the dataset that you want to update. This ID is unique per Region; + // for each Amazon Web Services account;. // // This member is required. DataSetId *string @@ -72,6 +72,10 @@ type UpdateDataSetInput struct { // The row-level security configuration for the data you want to create. RowLevelPermissionDataSet *types.RowLevelPermissionDataSet + // The configuration of tags on a dataset to set row-level security. Row-level + // security tags are currently supported for anonymous embedding only. + RowLevelPermissionTagConfiguration *types.RowLevelPermissionTagConfiguration + noSmithyDocumentSerde } @@ -80,8 +84,8 @@ type UpdateDataSetOutput struct { // The Amazon Resource Name (ARN) of the dataset. Arn *string - // The ID for the dataset that you want to create. This ID is unique per AWS Region - // for each AWS account. + // The ID for the dataset that you want to create. This ID is unique per Region; + // for each Amazon Web Services account;. DataSetId *string // The ARN for the ingestion, which is triggered as a result of dataset creation if @@ -92,7 +96,7 @@ type UpdateDataSetOutput struct { // the import mode is SPICE. IngestionId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDataSetPermissions.go b/service/quicksight/api_op_UpdateDataSetPermissions.go index 524568a03ce..e8695313782 100644 --- a/service/quicksight/api_op_UpdateDataSetPermissions.go +++ b/service/quicksight/api_op_UpdateDataSetPermissions.go @@ -30,13 +30,13 @@ func (c *Client) UpdateDataSetPermissions(ctx context.Context, params *UpdateDat type UpdateDataSetPermissionsInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string // The ID for the dataset whose permissions you want to update. This ID is unique - // per AWS Region for each AWS account. + // per Region; for each Amazon Web Services account;. // // This member is required. DataSetId *string @@ -56,10 +56,10 @@ type UpdateDataSetPermissionsOutput struct { DataSetArn *string // The ID for the dataset whose permissions you want to update. This ID is unique - // per AWS Region for each AWS account. + // per Region; for each Amazon Web Services account;. DataSetId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDataSource.go b/service/quicksight/api_op_UpdateDataSource.go index 03b46c37fa7..3f3e5638b6e 100644 --- a/service/quicksight/api_op_UpdateDataSource.go +++ b/service/quicksight/api_op_UpdateDataSource.go @@ -29,13 +29,13 @@ func (c *Client) UpdateDataSource(ctx context.Context, params *UpdateDataSourceI type UpdateDataSourceInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. // // This member is required. DataSourceId *string @@ -68,11 +68,11 @@ type UpdateDataSourceOutput struct { // The Amazon Resource Name (ARN) of the data source. Arn *string - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. DataSourceId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateDataSourcePermissions.go b/service/quicksight/api_op_UpdateDataSourcePermissions.go index bc4602709f8..f7e79b90b47 100644 --- a/service/quicksight/api_op_UpdateDataSourcePermissions.go +++ b/service/quicksight/api_op_UpdateDataSourcePermissions.go @@ -29,13 +29,13 @@ func (c *Client) UpdateDataSourcePermissions(ctx context.Context, params *Update type UpdateDataSourcePermissionsInput struct { - // The AWS account ID. + // The Amazon Web Services account; ID. // // This member is required. AwsAccountId *string - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. // // This member is required. DataSourceId *string @@ -54,11 +54,11 @@ type UpdateDataSourcePermissionsOutput struct { // The Amazon Resource Name (ARN) of the data source. DataSourceArn *string - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. DataSourceId *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateGroup.go b/service/quicksight/api_op_UpdateGroup.go index 2adfbfcc4bc..ac34c88847e 100644 --- a/service/quicksight/api_op_UpdateGroup.go +++ b/service/quicksight/api_op_UpdateGroup.go @@ -29,8 +29,9 @@ func (c *Client) UpdateGroup(ctx context.Context, params *UpdateGroupInput, optF type UpdateGroupInput struct { - // The ID for the AWS account that the group is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the group is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -56,7 +57,7 @@ type UpdateGroupOutput struct { // The name of the group. Group *types.Group - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateIAMPolicyAssignment.go b/service/quicksight/api_op_UpdateIAMPolicyAssignment.go index c0373517a4c..49952461ad3 100644 --- a/service/quicksight/api_op_UpdateIAMPolicyAssignment.go +++ b/service/quicksight/api_op_UpdateIAMPolicyAssignment.go @@ -32,12 +32,13 @@ func (c *Client) UpdateIAMPolicyAssignment(ctx context.Context, params *UpdateIA type UpdateIAMPolicyAssignmentInput struct { // The name of the assignment, also called a rule. This name must be unique within - // an AWS account. + // an Amazon Web Services account;. // // This member is required. AssignmentName *string - // The ID of the AWS account that contains the IAM policy assignment. + // The ID of the Amazon Web Services account; that contains the IAM policy + // assignment. // // This member is required. AwsAccountId *string @@ -98,7 +99,7 @@ type UpdateIAMPolicyAssignmentOutput struct { // in this assignment. PolicyArn *string - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateTemplate.go b/service/quicksight/api_op_UpdateTemplate.go index 9a92041a726..dad30e0b78a 100644 --- a/service/quicksight/api_op_UpdateTemplate.go +++ b/service/quicksight/api_op_UpdateTemplate.go @@ -30,7 +30,8 @@ func (c *Client) UpdateTemplate(ctx context.Context, params *UpdateTemplateInput type UpdateTemplateInput struct { - // The ID of the AWS account that contains the template that you're updating. + // The ID of the Amazon Web Services account; that contains the template that + // you're updating. // // This member is required. AwsAccountId *string @@ -40,10 +41,11 @@ type UpdateTemplateInput struct { // SourceTemplate for a template or SourceAnalysis for an analysis. Both of these // require an Amazon Resource Name (ARN). For SourceTemplate, specify the ARN of // the source template. For SourceAnalysis, specify the ARN of the source analysis. - // The SourceTemplate ARN can contain any AWS Account and any QuickSight-supported - // AWS Region. Use the DataSetReferences entity within SourceTemplate or - // SourceAnalysis to list the replacement datasets for the placeholders listed in - // the original. The schema in each dataset must match its placeholder. + // The SourceTemplate ARN can contain any Amazon Web Services account; and any + // QuickSight-supported Region;. Use the DataSetReferences entity within + // SourceTemplate or SourceAnalysis to list the replacement datasets for the + // placeholders listed in the original. The schema in each dataset must match its + // placeholder. // // This member is required. SourceEntity *types.TemplateSourceEntity @@ -73,7 +75,7 @@ type UpdateTemplateOutput struct { // The creation status of the template. CreationStatus types.ResourceStatus - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateTemplateAlias.go b/service/quicksight/api_op_UpdateTemplateAlias.go index f89673bd013..8cfe6d4a082 100644 --- a/service/quicksight/api_op_UpdateTemplateAlias.go +++ b/service/quicksight/api_op_UpdateTemplateAlias.go @@ -37,7 +37,8 @@ type UpdateTemplateAliasInput struct { // This member is required. AliasName *string - // The ID of the AWS account that contains the template alias that you're updating. + // The ID of the Amazon Web Services account; that contains the template alias that + // you're updating. // // This member is required. AwsAccountId *string @@ -57,7 +58,7 @@ type UpdateTemplateAliasInput struct { type UpdateTemplateAliasOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateTemplatePermissions.go b/service/quicksight/api_op_UpdateTemplatePermissions.go index ecab3c9e20d..c26d3acbe2d 100644 --- a/service/quicksight/api_op_UpdateTemplatePermissions.go +++ b/service/quicksight/api_op_UpdateTemplatePermissions.go @@ -29,7 +29,7 @@ func (c *Client) UpdateTemplatePermissions(ctx context.Context, params *UpdateTe type UpdateTemplatePermissionsInput struct { - // The ID of the AWS account that contains the template. + // The ID of the Amazon Web Services account; that contains the template. // // This member is required. AwsAccountId *string @@ -53,7 +53,7 @@ type UpdateTemplatePermissionsOutput struct { // A list of resource permissions to be set on the template. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateTheme.go b/service/quicksight/api_op_UpdateTheme.go index f50ea2c3236..b65538f41f8 100644 --- a/service/quicksight/api_op_UpdateTheme.go +++ b/service/quicksight/api_op_UpdateTheme.go @@ -29,13 +29,14 @@ func (c *Client) UpdateTheme(ctx context.Context, params *UpdateThemeInput, optF type UpdateThemeInput struct { - // The ID of the AWS account that contains the theme that you're updating. + // The ID of the Amazon Web Services account; that contains the theme that you're + // updating. // // This member is required. AwsAccountId *string // The theme ID, defined by Amazon QuickSight, that a custom theme inherits from. - // All themes initially inherit from a default QuickSight theme. + // All themes initially inherit from a default Amazon QuickSight theme. // // This member is required. BaseThemeId *string @@ -67,7 +68,7 @@ type UpdateThemeOutput struct { // The creation status of the theme. CreationStatus types.ResourceStatus - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateThemeAlias.go b/service/quicksight/api_op_UpdateThemeAlias.go index a1b03af47a7..6f40e80fe00 100644 --- a/service/quicksight/api_op_UpdateThemeAlias.go +++ b/service/quicksight/api_op_UpdateThemeAlias.go @@ -34,7 +34,8 @@ type UpdateThemeAliasInput struct { // This member is required. AliasName *string - // The ID of the AWS account that contains the theme alias that you're updating. + // The ID of the Amazon Web Services account; that contains the theme alias that + // you're updating. // // This member is required. AwsAccountId *string @@ -54,7 +55,7 @@ type UpdateThemeAliasInput struct { type UpdateThemeAliasOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateThemePermissions.go b/service/quicksight/api_op_UpdateThemePermissions.go index 8a3852ac5c8..a02bd814eb1 100644 --- a/service/quicksight/api_op_UpdateThemePermissions.go +++ b/service/quicksight/api_op_UpdateThemePermissions.go @@ -77,7 +77,7 @@ func (c *Client) UpdateThemePermissions(ctx context.Context, params *UpdateTheme type UpdateThemePermissionsInput struct { - // The ID of the AWS account that contains the theme. + // The ID of the Amazon Web Services account; that contains the theme. // // This member is required. AwsAccountId *string @@ -101,7 +101,7 @@ type UpdateThemePermissionsOutput struct { // The resulting list of resource permissions for the theme. Permissions []types.ResourcePermission - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/api_op_UpdateUser.go b/service/quicksight/api_op_UpdateUser.go index 98eb977392b..bb5058ea1f8 100644 --- a/service/quicksight/api_op_UpdateUser.go +++ b/service/quicksight/api_op_UpdateUser.go @@ -29,8 +29,9 @@ func (c *Client) UpdateUser(ctx context.Context, params *UpdateUserInput, optFns type UpdateUserInput struct { - // The ID for the AWS account that the user is in. Currently, you use the ID for - // the AWS account that contains your Amazon QuickSight account. + // The ID for the Amazon Web Services account; that the user is in. Currently, you + // use the ID for the Amazon Web Services account; that contains your Amazon + // QuickSight account. // // This member is required. AwsAccountId *string @@ -96,7 +97,7 @@ type UpdateUserInput struct { // Therefore, they override the permissions typically granted by assigning // QuickSight users to one of the default security cohorts in QuickSight (admin, // author, reader). This feature is available only to QuickSight Enterprise edition - // subscriptions that use SAML 2.0-Based Federation for Single Sign-On (SSO). + // subscriptions. CustomPermissionsName *string // The type of supported external login provider that provides identity to let a @@ -132,7 +133,7 @@ type UpdateUserInput struct { type UpdateUserOutput struct { - // The AWS request ID for this operation. + // The Amazon Web Services request ID for this operation. RequestId *string // The HTTP status of the request. diff --git a/service/quicksight/deserializers.go b/service/quicksight/deserializers.go index 6a68cf2799d..0cc9e19ca5d 100644 --- a/service/quicksight/deserializers.go +++ b/service/quicksight/deserializers.go @@ -11462,6 +11462,399 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput return nil } +type awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser struct { +} + +func (*awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response, &metadata) + } + output := &GenerateEmbedUrlForAnonymousUserOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): + return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedPricingPlanException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserOutput(v *GenerateEmbedUrlForAnonymousUserOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(v **GenerateEmbedUrlForAnonymousUserOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GenerateEmbedUrlForAnonymousUserOutput + if *v == nil { + sv = &GenerateEmbedUrlForAnonymousUserOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EmbedUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) + } + sv.EmbedUrl = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser struct { +} + +func (*awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response, &metadata) + } + output := &GenerateEmbedUrlForRegisteredUserOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("QuickSightUserNotFoundException", errorCode): + return awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): + return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedPricingPlanException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserOutput(v *GenerateEmbedUrlForRegisteredUserOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(v **GenerateEmbedUrlForRegisteredUserOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GenerateEmbedUrlForRegisteredUserOutput + if *v == nil { + sv = &GenerateEmbedUrlForRegisteredUserOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EmbedUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) + } + sv.EmbedUrl = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpGetDashboardEmbedUrl struct { } @@ -25266,6 +25659,11 @@ func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{ return err } + case "RowLevelPermissionTagConfiguration": + if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(&sv.RowLevelPermissionTagConfiguration, value); err != nil { + return err + } + default: _, _ = key, value @@ -25535,6 +25933,15 @@ func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, va return err } + case "RowLevelPermissionTagConfigurationApplied": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.RowLevelPermissionTagConfigurationApplied = jtv + } + default: _, _ = key, value @@ -29631,6 +30038,60 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(v **types.RowLeve sv.PermissionPolicy = types.RowLevelPermissionPolicy(jtv) } + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(v **types.RowLevelPermissionTagConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RowLevelPermissionTagConfiguration + if *v == nil { + sv = &types.RowLevelPermissionTagConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) + } + + case "TagRules": + if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleList(&sv.TagRules, value); err != nil { + return err + } + default: _, _ = key, value @@ -29640,6 +30101,107 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(v **types.RowLeve return nil } +func awsRestjson1_deserializeDocumentRowLevelPermissionTagRule(v **types.RowLevelPermissionTagRule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RowLevelPermissionTagRule + if *v == nil { + sv = &types.RowLevelPermissionTagRule{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ColumnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ColumnName = ptr.String(jtv) + } + + case "MatchAllValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SessionTagValue to be of type string, got %T instead", value) + } + sv.MatchAllValue = ptr.String(jtv) + } + + case "TagKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SessionTagKey to be of type string, got %T instead", value) + } + sv.TagKey = ptr.String(jtv) + } + + case "TagMultiValueDelimiter": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RowLevelPermissionTagDelimiter to be of type string, got %T instead", value) + } + sv.TagMultiValueDelimiter = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleList(v *[]types.RowLevelPermissionTagRule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.RowLevelPermissionTagRule + if *v == nil { + cv = []types.RowLevelPermissionTagRule{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RowLevelPermissionTagRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRule(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentS3Parameters(v **types.S3Parameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/quicksight/doc.go b/service/quicksight/doc.go index 8cc24859afb..e92c6536b85 100644 --- a/service/quicksight/doc.go +++ b/service/quicksight/doc.go @@ -4,8 +4,8 @@ // Amazon QuickSight. // // Amazon QuickSight API Reference Amazon QuickSight is a fully managed, serverless -// business intelligence service for the AWS Cloud that makes it easy to extend -// data and insights to every user in your organization. This API reference -// contains documentation for a programming interface that you can use to manage -// Amazon QuickSight. +// business intelligence service for the Cloud that makes it easy to extend data +// and insights to every user in your organization. This API reference contains +// documentation for a programming interface that you can use to manage Amazon +// QuickSight. package quicksight diff --git a/service/quicksight/generated.json b/service/quicksight/generated.json index 8f88ac64e45..671c5a93514 100644 --- a/service/quicksight/generated.json +++ b/service/quicksight/generated.json @@ -63,6 +63,8 @@ "api_op_DescribeThemeAlias.go", "api_op_DescribeThemePermissions.go", "api_op_DescribeUser.go", + "api_op_GenerateEmbedUrlForAnonymousUser.go", + "api_op_GenerateEmbedUrlForRegisteredUser.go", "api_op_GetDashboardEmbedUrl.go", "api_op_GetSessionEmbedUrl.go", "api_op_ListAnalyses.go", diff --git a/service/quicksight/serializers.go b/service/quicksight/serializers.go index 3a0d5408e10..892194cf82e 100644 --- a/service/quicksight/serializers.go +++ b/service/quicksight/serializers.go @@ -582,6 +582,13 @@ func awsRestjson1_serializeOpDocumentCreateDataSetInput(v *CreateDataSetInput, v } } + if v.RowLevelPermissionTagConfiguration != nil { + ok := object.Key("RowLevelPermissionTagConfiguration") + if err := awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration, ok); err != nil { + return err + } + } + if v.Tags != nil { ok := object.Key("Tags") if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { @@ -4735,6 +4742,206 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUserInput(v *DescribeUserInput, return nil } +type awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser struct { +} + +func (*awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GenerateEmbedUrlForAnonymousUserInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/embed-url/anonymous-user") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGenerateEmbedUrlForAnonymousUserInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AuthorizedResourceArns != nil { + ok := object.Key("AuthorizedResourceArns") + if err := awsRestjson1_serializeDocumentArnList(v.AuthorizedResourceArns, ok); err != nil { + return err + } + } + + if v.ExperienceConfiguration != nil { + ok := object.Key("ExperienceConfiguration") + if err := awsRestjson1_serializeDocumentAnonymousUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration, ok); err != nil { + return err + } + } + + if v.Namespace != nil { + ok := object.Key("Namespace") + ok.String(*v.Namespace) + } + + if v.SessionLifetimeInMinutes != nil { + ok := object.Key("SessionLifetimeInMinutes") + ok.Long(*v.SessionLifetimeInMinutes) + } + + if v.SessionTags != nil { + ok := object.Key("SessionTags") + if err := awsRestjson1_serializeDocumentSessionTagList(v.SessionTags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser struct { +} + +func (*awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GenerateEmbedUrlForRegisteredUserInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/embed-url/registered-user") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGenerateEmbedUrlForRegisteredUserInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ExperienceConfiguration != nil { + ok := object.Key("ExperienceConfiguration") + if err := awsRestjson1_serializeDocumentRegisteredUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration, ok); err != nil { + return err + } + } + + if v.SessionLifetimeInMinutes != nil { + ok := object.Key("SessionLifetimeInMinutes") + ok.Long(*v.SessionLifetimeInMinutes) + } + + if v.UserArn != nil { + ok := object.Key("UserArn") + ok.String(*v.UserArn) + } + + return nil +} + type awsRestjson1_serializeOpGetDashboardEmbedUrl struct { } @@ -7960,6 +8167,13 @@ func awsRestjson1_serializeOpDocumentUpdateDataSetInput(v *UpdateDataSetInput, v } } + if v.RowLevelPermissionTagConfiguration != nil { + ok := object.Key("RowLevelPermissionTagConfiguration") + if err := awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration, ok); err != nil { + return err + } + } + return nil } @@ -9527,6 +9741,43 @@ func awsRestjson1_serializeDocumentAnalysisSourceTemplate(v *types.AnalysisSourc return nil } +func awsRestjson1_serializeDocumentAnonymousUserDashboardEmbeddingConfiguration(v *types.AnonymousUserDashboardEmbeddingConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InitialDashboardId != nil { + ok := object.Key("InitialDashboardId") + ok.String(*v.InitialDashboardId) + } + + return nil +} + +func awsRestjson1_serializeDocumentAnonymousUserEmbeddingExperienceConfiguration(v *types.AnonymousUserEmbeddingExperienceConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Dashboard != nil { + ok := object.Key("Dashboard") + if err := awsRestjson1_serializeDocumentAnonymousUserDashboardEmbeddingConfiguration(v.Dashboard, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentArnList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsRestjson1_serializeDocumentAthenaParameters(v *types.AthenaParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -10939,6 +11190,51 @@ func awsRestjson1_serializeDocumentRedshiftParameters(v *types.RedshiftParameter return nil } +func awsRestjson1_serializeDocumentRegisteredUserDashboardEmbeddingConfiguration(v *types.RegisteredUserDashboardEmbeddingConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InitialDashboardId != nil { + ok := object.Key("InitialDashboardId") + ok.String(*v.InitialDashboardId) + } + + return nil +} + +func awsRestjson1_serializeDocumentRegisteredUserEmbeddingExperienceConfiguration(v *types.RegisteredUserEmbeddingExperienceConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Dashboard != nil { + ok := object.Key("Dashboard") + if err := awsRestjson1_serializeDocumentRegisteredUserDashboardEmbeddingConfiguration(v.Dashboard, ok); err != nil { + return err + } + } + + if v.QuickSightConsole != nil { + ok := object.Key("QuickSightConsole") + if err := awsRestjson1_serializeDocumentRegisteredUserQuickSightConsoleEmbeddingConfiguration(v.QuickSightConsole, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentRegisteredUserQuickSightConsoleEmbeddingConfiguration(v *types.RegisteredUserQuickSightConsoleEmbeddingConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InitialPath != nil { + ok := object.Key("InitialPath") + ok.String(*v.InitialPath) + } + + return nil +} + func awsRestjson1_serializeDocumentRelationalTable(v *types.RelationalTable, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -11046,6 +11342,70 @@ func awsRestjson1_serializeDocumentRowLevelPermissionDataSet(v *types.RowLevelPe ok.String(string(v.PermissionPolicy)) } + if len(v.Status) > 0 { + ok := object.Key("Status") + ok.String(string(v.Status)) + } + + return nil +} + +func awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v *types.RowLevelPermissionTagConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Status) > 0 { + ok := object.Key("Status") + ok.String(string(v.Status)) + } + + if v.TagRules != nil { + ok := object.Key("TagRules") + if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRuleList(v.TagRules, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentRowLevelPermissionTagRule(v *types.RowLevelPermissionTagRule, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ColumnName != nil { + ok := object.Key("ColumnName") + ok.String(*v.ColumnName) + } + + if v.MatchAllValue != nil { + ok := object.Key("MatchAllValue") + ok.String(*v.MatchAllValue) + } + + if v.TagKey != nil { + ok := object.Key("TagKey") + ok.String(*v.TagKey) + } + + if v.TagMultiValueDelimiter != nil { + ok := object.Key("TagMultiValueDelimiter") + ok.String(*v.TagMultiValueDelimiter) + } + + return nil +} + +func awsRestjson1_serializeDocumentRowLevelPermissionTagRuleList(v []types.RowLevelPermissionTagRule, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRule(&v[i], av); err != nil { + return err + } + } return nil } @@ -11101,6 +11461,36 @@ func awsRestjson1_serializeDocumentServiceNowParameters(v *types.ServiceNowParam return nil } +func awsRestjson1_serializeDocumentSessionTag(v *types.SessionTag, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Key != nil { + ok := object.Key("Key") + ok.String(*v.Key) + } + + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) + } + + return nil +} + +func awsRestjson1_serializeDocumentSessionTagList(v []types.SessionTag, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSessionTag(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentSheetControlsOption(v *types.SheetControlsOption, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/quicksight/types/enums.go b/service/quicksight/types/enums.go index 8f52ffa454c..bf141ae52c8 100644 --- a/service/quicksight/types/enums.go +++ b/service/quicksight/types/enums.go @@ -847,6 +847,24 @@ func (RowLevelPermissionPolicy) Values() []RowLevelPermissionPolicy { } } +type Status string + +// Enum values for Status +const ( + StatusEnabled Status = "ENABLED" + StatusDisabled Status = "DISABLED" +) + +// Values returns all known values for Status. Note that this can be expanded in +// the future, and so it is only as up to date as the client. The ordering of this +// slice is not guaranteed to be stable across updates. +func (Status) Values() []Status { + return []Status{ + "ENABLED", + "DISABLED", + } +} + type TemplateErrorType string // Enum values for TemplateErrorType diff --git a/service/quicksight/types/errors.go b/service/quicksight/types/errors.go index e254a022fd8..2079bb2eee8 100644 --- a/service/quicksight/types/errors.go +++ b/service/quicksight/types/errors.go @@ -366,11 +366,11 @@ func (e *ThrottlingException) ErrorCode() string { return "Throttlin func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // This error indicates that you are calling an embedding operation in Amazon -// QuickSight without the required pricing plan on your AWS account. Before you can -// use embedding for anonymous users, a QuickSight administrator needs to add -// capacity pricing to QuickSight. You can do this on the Manage QuickSight page. -// After capacity pricing is added, you can use the GetDashboardEmbedUrl API -// operation with the --identity-type ANONYMOUS option. +// QuickSight without the required pricing plan on your Amazon Web Services +// account;. Before you can use embedding for anonymous users, a QuickSight +// administrator needs to add capacity pricing to QuickSight. You can do this on +// the Manage QuickSight page. After capacity pricing is added, you can use the +// GetDashboardEmbedUrl API operation with the --identity-type ANONYMOUS option. type UnsupportedPricingPlanException struct { Message *string diff --git a/service/quicksight/types/types.go b/service/quicksight/types/types.go index c3dba328a10..bc3828cf3a1 100644 --- a/service/quicksight/types/types.go +++ b/service/quicksight/types/types.go @@ -7,8 +7,8 @@ import ( "time" ) -// The Amazon QuickSight customizations associated with your AWS account or a -// QuickSight namespace in a specific AWS Region. +// The Amazon QuickSight customizations associated with your Amazon Web Services +// account; or a QuickSight namespace in a specific Region;. type AccountCustomization struct { // The default theme for this QuickSight subscription. @@ -17,15 +17,15 @@ type AccountCustomization struct { noSmithyDocumentSerde } -// The QuickSight settings associated with your AWS account. +// The QuickSight settings associated with your Amazon Web Services account;. type AccountSettings struct { - // The "account name" you provided for the QuickSight subscription in your AWS - // account. You create this name when you sign up for QuickSight. It is unique in - // all of AWS and it appears only in the console when users sign in. + // The "account name" you provided for the QuickSight subscription in your Amazon + // Web Services account;. You create this name when you sign up for QuickSight. It + // is unique in all of Amazon Web Services and it appears only when users sign in. AccountName *string - // The default QuickSight namespace for your AWS account. + // The default QuickSight namespace for your Amazon Web Services account;. DefaultNamespace *string // The edition of QuickSight that you're currently subscribed to: Enterprise @@ -38,7 +38,7 @@ type AccountSettings struct { noSmithyDocumentSerde } -// The active AWS Identity and Access Management (IAM) policy assignment. +// The active Identity and Access Management (IAM) policy assignment. type ActiveIAMPolicyAssignment struct { // A name for the IAM policy assignment. @@ -187,6 +187,31 @@ type AnalysisSummary struct { noSmithyDocumentSerde } +// Information about the dashboard that you want to embed. +type AnonymousUserDashboardEmbeddingConfiguration struct { + + // The dashboard ID for the dashboard that you want the user to see first. This ID + // is included in the output URL. When the URL in response is accessed, Amazon + // QuickSight renders this dashboard. The Amazon Resource Name (ARN) of this + // dashboard must be included in the AuthorizedResourceArns parameter. Otherwise, + // the request will fail with InvalidParameterValueException. + // + // This member is required. + InitialDashboardId *string + + noSmithyDocumentSerde +} + +// The type of experience you want to embed. For anonymous users, you can embed an +// Amazon QuickSight dashboard. +type AnonymousUserEmbeddingExperienceConfiguration struct { + + // The type of embedding experience. In this case, an Amazon QuickSight dashboard. + Dashboard *AnonymousUserDashboardEmbeddingConfiguration + + noSmithyDocumentSerde +} + // Amazon Athena parameters. type AthenaParameters struct { @@ -238,7 +263,7 @@ type AuroraPostgreSqlParameters struct { noSmithyDocumentSerde } -// AWS IoT Analytics parameters. +// Amazon Web Services IoT Analytics parameters. type AwsIotAnalyticsParameters struct { // Dataset name. @@ -706,6 +731,9 @@ type DataSet struct { // The row-level security configuration for the dataset. RowLevelPermissionDataSet *RowLevelPermissionDataSet + // The element you can use to define tags for row-level security. + RowLevelPermissionTagConfiguration *RowLevelPermissionTagConfiguration + noSmithyDocumentSerde } @@ -776,6 +804,9 @@ type DataSetSummary struct { // The row-level security configuration for the dataset. RowLevelPermissionDataSet *RowLevelPermissionDataSet + // Whether or not the row level permission tags are applied. + RowLevelPermissionTagConfigurationApplied bool + noSmithyDocumentSerde } @@ -799,8 +830,8 @@ type DataSource struct { // The time that this data source was created. CreatedTime *time.Time - // The ID of the data source. This ID is unique per AWS Region for each AWS - // account. + // The ID of the data source. This ID is unique per Region; for each Amazon Web + // Services account;. DataSourceId *string // The parameters that Amazon QuickSight uses to connect to your underlying source. @@ -929,7 +960,7 @@ type DataSourceParametersMemberAuroraPostgreSqlParameters struct { func (*DataSourceParametersMemberAuroraPostgreSqlParameters) isDataSourceParameters() {} -// AWS IoT Analytics parameters. +// Amazon Web Services IoT Analytics parameters. type DataSourceParametersMemberAwsIotAnalyticsParameters struct { Value AwsIotAnalyticsParameters @@ -1295,7 +1326,7 @@ type GutterStyle struct { noSmithyDocumentSerde } -// An AWS Identity and Access Management (IAM) policy assignment. +// An Identity and Access Management (IAM) policy assignment. type IAMPolicyAssignment struct { // Assignment ID. @@ -1307,7 +1338,7 @@ type IAMPolicyAssignment struct { // Assignment status. AssignmentStatus AssignmentStatus - // The AWS account ID. + // The Amazon Web Services account; ID. AwsAccountId *string // Identities. @@ -1594,7 +1625,7 @@ type NamespaceInfoV2 struct { // The namespace ARN. Arn *string - // The namespace AWS Region. + // The namespace Region;. CapacityRegion *string // The creation status of a namespace that is not yet completely created. @@ -1814,6 +1845,89 @@ type RedshiftParameters struct { noSmithyDocumentSerde } +// Information about the dashboard you want to embed. +type RegisteredUserDashboardEmbeddingConfiguration struct { + + // The dashboard ID for the dashboard that you want the user to see first. This ID + // is included in the output URL. When the URL in response is accessed, Amazon + // QuickSight renders this dashboard if the user has permissions to view it. If the + // user does not have permission to view this dashboard, they see a permissions + // error message. + // + // This member is required. + InitialDashboardId *string + + noSmithyDocumentSerde +} + +// The type of experience you want to embed. For registered users, you can embed an +// Amazon QuickSight dashboard or the Amazon QuickSight console. Exactly one of the +// experience configurations is required. You can choose Dashboard or +// QuickSightConsole. You cannot choose more than one experience configuraton. +type RegisteredUserEmbeddingExperienceConfiguration struct { + + // The configuration details for providing a dashboard embedding experience. + Dashboard *RegisteredUserDashboardEmbeddingConfiguration + + // The configuration details for providing an Amazon QuickSight console embedding + // experience. This can be used along with custom permissions to restrict access to + // certain features. For more information, see Customizing Access to the Amazon + // QuickSight Console + // (https://docs.aws.amazon.com/quicksight/latest/user/customizing-permissions-to-the-quicksight-console.html) + // in the Amazon QuickSight User Guide. Use GenerateEmbedUrlForRegisteredUser where + // you want to provide an authoring portal that allows users to create data + // sources, datasets, analyses, and dashboards. The users who accesses an embedded + // Amazon QuickSight console needs to belong to the author or admin security + // cohort. If you want to restrict permissions to some of these features, add a + // custom permissions profile to the user with the UpdateUser API operation. Use + // RegisterUser API operation to add a new user with a custom permission profile + // attached. For more information, see the following sections in the Amazon + // QuickSight User Guide: + // + // * Embedding the Full Functionality of the Amazon + // QuickSight Console for Authenticated Users + // (https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics-full-console-for-authenticated-users.html) + // + // * + // Customizing Access to the Amazon QuickSight Console + // (https://docs.aws.amazon.com/quicksight/latest/user/customizing-permissions-to-the-quicksight-console.html) + // + // For + // more information about the high-level steps for embedding and for an interactive + // demo of the ways you can customize embedding, visit the Amazon QuickSight + // Developer Portal + // (https://docs.aws.amazon.com/quicksight/latest/user/quicksight-dev-portal.html). + QuickSightConsole *RegisteredUserQuickSightConsoleEmbeddingConfiguration + + noSmithyDocumentSerde +} + +// Information about the Amazon QuickSight console that you want to embed. +type RegisteredUserQuickSightConsoleEmbeddingConfiguration struct { + + // The initial URL path for the Amazon QuickSight console. InitialPath is required. + // The entry point URL is constrained to the following paths: + // + // * /start + // + // * + // /start/analyses + // + // * /start/dashboards + // + // * /start/favorites + // + // * + // /dashboards/DashboardId. DashboardId is the actual ID key from the Amazon + // QuickSight console URL of the dashboard. + // + // * /analyses/AnalysisId. AnalysisId is + // the actual ID key from the Amazon QuickSight console URL of the analysis. + InitialPath *string + + noSmithyDocumentSerde +} + // A physical table type for relational data sources. type RelationalTable struct { @@ -1875,9 +1989,10 @@ type ResourcePermission struct { // user, group, or namespace associated with an analysis, dashboard, template, or // theme. (This is common.) // - // * The ARN of an AWS account root: This is an IAM ARN - // rather than a QuickSight ARN. Use this option only to share resources - // (templates) across AWS accounts. (This is less common.) + // * The ARN of an Amazon Web Services account; root: + // This is an IAM ARN rather than a QuickSight ARN. Use this option only to share + // resources (templates) across Amazon Web Services accounts. (This is less + // common.) // // This member is required. Principal *string @@ -1925,6 +2040,51 @@ type RowLevelPermissionDataSet struct { // The namespace associated with the dataset that contains permissions for RLS. Namespace *string + // The status of the row-level security permission dataset. If enabled, the status + // is ENABLED. If disabled, the status is DISABLED. + Status Status + + noSmithyDocumentSerde +} + +// The configuration of tags on a dataset to set row-level security. +type RowLevelPermissionTagConfiguration struct { + + // A set of rules associated with row-level security, such as the tag names and + // columns that they are assigned to. + // + // This member is required. + TagRules []RowLevelPermissionTagRule + + // The status of row-level security tags. If enabled, the status is ENABLED. If + // disabled, the status is DISABLED. + Status Status + + noSmithyDocumentSerde +} + +// A set of rules associated with a tag. +type RowLevelPermissionTagRule struct { + + // The column name that a tag key is assigned to. + // + // This member is required. + ColumnName *string + + // The unique key for a tag. + // + // This member is required. + TagKey *string + + // A string that you want to use to filter by all the values in a column in the + // dataset and don’t want to list the values one by one. For example, you can use + // an asterisk as your match all value. + MatchAllValue *string + + // A string that you want to use to delimit the values when you pass the values at + // run time. For example, you can delimit the values with a comma. + TagMultiValueDelimiter *string + noSmithyDocumentSerde } @@ -1932,7 +2092,7 @@ type RowLevelPermissionDataSet struct { type S3Parameters struct { // Location of the Amazon S3 manifest file. This is NULL if the manifest file was - // uploaded in the console. + // uploaded into QuickSight. // // This member is required. ManifestFileLocation *ManifestFileLocation @@ -1971,12 +2131,27 @@ type ServiceNowParameters struct { noSmithyDocumentSerde } +// The key-value pair used for the row-level security tags feature. +type SessionTag struct { + + // The key for the tag. + // + // This member is required. + Key *string + + // The value that you want to assign the tag. + // + // This member is required. + Value *string + + noSmithyDocumentSerde +} + // A sheet, which is an object that contains a set of visuals that are viewed -// together on one page in the Amazon QuickSight console. Every analysis and -// dashboard contains at least one sheet. Each sheet contains at least one -// visualization widget, for example a chart, pivot table, or narrative insight. -// Sheets can be associated with other components, such as controls, filters, and -// so on. +// together on one page in Amazon QuickSight. Every analysis and dashboard contains +// at least one sheet. Each sheet contains at least one visualization widget, for +// example a chart, pivot table, or narrative insight. Sheets can be associated +// with other components, such as controls, filters, and so on. type Sheet struct { // The name of a sheet. This name is displayed on the sheet's tab in the QuickSight @@ -2119,8 +2294,8 @@ type TagColumnOperation struct { // This member is required. ColumnName *string - // The dataset column tag, currently only used for geospatial type tagging. . This - // is not tags for the AWS tagging feature. . + // The dataset column tag, currently only used for geospatial type tagging. This is + // not tags for the Amazon Web Services tagging feature. // // This member is required. Tags []ColumnTag @@ -2134,8 +2309,9 @@ type TagColumnOperation struct { // replace the dataset associated with an analysis. You can use templates to create // dashboards by replacing dataset placeholders with datasets that follow the same // schema that was used to create the source analysis and template. You can share -// templates across AWS accounts by allowing users in other AWS accounts to create -// a template or a dashboard from an existing template. +// templates across Amazon Web Services accounts by allowing users in other Amazon +// Web Services accounts to create a template or a dashboard from an existing +// template. type Template struct { // The Amazon Resource Name (ARN) of the template. @@ -2150,7 +2326,8 @@ type Template struct { // The display name of the template. Name *string - // The ID for the template. This is unique per AWS Region for each AWS account. + // The ID for the template. This is unique per Region; for each Amazon Web Services + // account;. TemplateId *string // A structure describing the versions of the template. @@ -2244,7 +2421,8 @@ type TemplateSummary struct { // A display name for the template. Name *string - // The ID of the template. This ID is unique per AWS Region for each AWS account. + // The ID of the template. This ID is unique per Region; for each Amazon Web + // Services account;. TemplateId *string noSmithyDocumentSerde @@ -2419,7 +2597,8 @@ type ThemeSummary struct { // the display name for the theme. Name *string - // The ID of the theme. This ID is unique per AWS Region for each AWS account. + // The ID of the theme. This ID is unique per Region; for each Amazon Web Services + // account;. ThemeId *string noSmithyDocumentSerde diff --git a/service/quicksight/validators.go b/service/quicksight/validators.go index 2032d92ae2e..e432ec49ac7 100644 --- a/service/quicksight/validators.go +++ b/service/quicksight/validators.go @@ -1170,6 +1170,46 @@ func (m *validateOpDescribeUser) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpGenerateEmbedUrlForAnonymousUser struct { +} + +func (*validateOpGenerateEmbedUrlForAnonymousUser) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGenerateEmbedUrlForAnonymousUser) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GenerateEmbedUrlForAnonymousUserInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGenerateEmbedUrlForAnonymousUserInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGenerateEmbedUrlForRegisteredUser struct { +} + +func (*validateOpGenerateEmbedUrlForRegisteredUser) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGenerateEmbedUrlForRegisteredUser) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GenerateEmbedUrlForRegisteredUserInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGenerateEmbedUrlForRegisteredUserInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetDashboardEmbedUrl struct { } @@ -2462,6 +2502,14 @@ func addOpDescribeUserValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeUser{}, middleware.After) } +func addOpGenerateEmbedUrlForAnonymousUserValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGenerateEmbedUrlForAnonymousUser{}, middleware.After) +} + +func addOpGenerateEmbedUrlForRegisteredUserValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGenerateEmbedUrlForRegisteredUser{}, middleware.After) +} + func addOpGetDashboardEmbedUrlValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetDashboardEmbedUrl{}, middleware.After) } @@ -2728,6 +2776,38 @@ func validateAnalysisSourceTemplate(v *types.AnalysisSourceTemplate) error { } } +func validateAnonymousUserDashboardEmbeddingConfiguration(v *types.AnonymousUserDashboardEmbeddingConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AnonymousUserDashboardEmbeddingConfiguration"} + if v.InitialDashboardId == nil { + invalidParams.Add(smithy.NewErrParamRequired("InitialDashboardId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAnonymousUserEmbeddingExperienceConfiguration(v *types.AnonymousUserEmbeddingExperienceConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AnonymousUserEmbeddingExperienceConfiguration"} + if v.Dashboard != nil { + if err := validateAnonymousUserDashboardEmbeddingConfiguration(v.Dashboard); err != nil { + invalidParams.AddNested("Dashboard", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateAuroraParameters(v *types.AuroraParameters) error { if v == nil { return nil @@ -3697,6 +3777,38 @@ func validateRedshiftParameters(v *types.RedshiftParameters) error { } } +func validateRegisteredUserDashboardEmbeddingConfiguration(v *types.RegisteredUserDashboardEmbeddingConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RegisteredUserDashboardEmbeddingConfiguration"} + if v.InitialDashboardId == nil { + invalidParams.Add(smithy.NewErrParamRequired("InitialDashboardId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateRegisteredUserEmbeddingExperienceConfiguration(v *types.RegisteredUserEmbeddingExperienceConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RegisteredUserEmbeddingExperienceConfiguration"} + if v.Dashboard != nil { + if err := validateRegisteredUserDashboardEmbeddingConfiguration(v.Dashboard); err != nil { + invalidParams.AddNested("Dashboard", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateRelationalTable(v *types.RelationalTable) error { if v == nil { return nil @@ -3793,6 +3905,60 @@ func validateRowLevelPermissionDataSet(v *types.RowLevelPermissionDataSet) error } } +func validateRowLevelPermissionTagConfiguration(v *types.RowLevelPermissionTagConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RowLevelPermissionTagConfiguration"} + if v.TagRules == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagRules")) + } else if v.TagRules != nil { + if err := validateRowLevelPermissionTagRuleList(v.TagRules); err != nil { + invalidParams.AddNested("TagRules", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateRowLevelPermissionTagRule(v *types.RowLevelPermissionTagRule) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RowLevelPermissionTagRule"} + if v.TagKey == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagKey")) + } + if v.ColumnName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ColumnName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateRowLevelPermissionTagRuleList(v []types.RowLevelPermissionTagRule) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RowLevelPermissionTagRuleList"} + for i := range v { + if err := validateRowLevelPermissionTagRule(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateS3Parameters(v *types.S3Parameters) error { if v == nil { return nil @@ -3849,6 +4015,41 @@ func validateServiceNowParameters(v *types.ServiceNowParameters) error { } } +func validateSessionTag(v *types.SessionTag) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SessionTag"} + if v.Key == nil { + invalidParams.Add(smithy.NewErrParamRequired("Key")) + } + if v.Value == nil { + invalidParams.Add(smithy.NewErrParamRequired("Value")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateSessionTagList(v []types.SessionTag) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SessionTagList"} + for i := range v { + if err := validateSessionTag(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateSnowflakeParameters(v *types.SnowflakeParameters) error { if v == nil { return nil @@ -4350,6 +4551,11 @@ func validateOpCreateDataSetInput(v *CreateDataSetInput) error { invalidParams.AddNested("RowLevelPermissionDataSet", err.(smithy.InvalidParamsError)) } } + if v.RowLevelPermissionTagConfiguration != nil { + if err := validateRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration); err != nil { + invalidParams.AddNested("RowLevelPermissionTagConfiguration", err.(smithy.InvalidParamsError)) + } + } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) @@ -5476,6 +5682,64 @@ func validateOpDescribeUserInput(v *DescribeUserInput) error { } } +func validateOpGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GenerateEmbedUrlForAnonymousUserInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.Namespace == nil { + invalidParams.Add(smithy.NewErrParamRequired("Namespace")) + } + if v.SessionTags != nil { + if err := validateSessionTagList(v.SessionTags); err != nil { + invalidParams.AddNested("SessionTags", err.(smithy.InvalidParamsError)) + } + } + if v.AuthorizedResourceArns == nil { + invalidParams.Add(smithy.NewErrParamRequired("AuthorizedResourceArns")) + } + if v.ExperienceConfiguration == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExperienceConfiguration")) + } else if v.ExperienceConfiguration != nil { + if err := validateAnonymousUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration); err != nil { + invalidParams.AddNested("ExperienceConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GenerateEmbedUrlForRegisteredUserInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.UserArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("UserArn")) + } + if v.ExperienceConfiguration == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExperienceConfiguration")) + } else if v.ExperienceConfiguration != nil { + if err := validateRegisteredUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration); err != nil { + invalidParams.AddNested("ExperienceConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetDashboardEmbedUrlInput(v *GetDashboardEmbedUrlInput) error { if v == nil { return nil @@ -6251,6 +6515,11 @@ func validateOpUpdateDataSetInput(v *UpdateDataSetInput) error { invalidParams.AddNested("RowLevelPermissionDataSet", err.(smithy.InvalidParamsError)) } } + if v.RowLevelPermissionTagConfiguration != nil { + if err := validateRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration); err != nil { + invalidParams.AddNested("RowLevelPermissionTagConfiguration", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/rds/api_op_DescribeDBClusters.go b/service/rds/api_op_DescribeDBClusters.go index 2212f53de39..605a48b43f6 100644 --- a/service/rds/api_op_DescribeDBClusters.go +++ b/service/rds/api_op_DescribeDBClusters.go @@ -46,9 +46,21 @@ type DescribeDBClustersInput struct { // A filter that specifies one or more DB clusters to describe. Supported // filters: // + // * clone-group-id - Accepts clone group identifiers. The results list + // will only include information about the DB clusters associated with these clone + // groups. + // // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon // Resource Names (ARNs). The results list will only include information about the // DB clusters identified by these ARNs. + // + // * domain - Accepts Active Directory + // directory IDs. The results list will only include information about the DB + // clusters associated with these domains. + // + // * engine - Accepts engine names. The + // results list will only include information about the DB clusters for these + // engines. Filters []types.Filter // Optional Boolean parameter that specifies whether the output includes diff --git a/service/rds/api_op_DescribeDBInstances.go b/service/rds/api_op_DescribeDBInstances.go index 84033fd95b4..51a5c7617aa 100644 --- a/service/rds/api_op_DescribeDBInstances.go +++ b/service/rds/api_op_DescribeDBInstances.go @@ -4,15 +4,18 @@ package rds import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/rds/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" smithywaiter "github.com/aws/smithy-go/waiter" "github.com/jmespath/go-jmespath" + "strconv" "time" ) @@ -542,6 +545,269 @@ func dBInstanceAvailableStateRetryable(ctx context.Context, input *DescribeDBIns return true, nil } +// DBInstanceDeletedWaiterOptions are waiter options for DBInstanceDeletedWaiter +type DBInstanceDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // DBInstanceDeletedWaiter will use default minimum delay of 30 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, DBInstanceDeletedWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeDBInstancesInput, *DescribeDBInstancesOutput, error) (bool, error) +} + +// DBInstanceDeletedWaiter defines the waiters for DBInstanceDeleted +type DBInstanceDeletedWaiter struct { + client DescribeDBInstancesAPIClient + + options DBInstanceDeletedWaiterOptions +} + +// NewDBInstanceDeletedWaiter constructs a DBInstanceDeletedWaiter. +func NewDBInstanceDeletedWaiter(client DescribeDBInstancesAPIClient, optFns ...func(*DBInstanceDeletedWaiterOptions)) *DBInstanceDeletedWaiter { + options := DBInstanceDeletedWaiterOptions{} + options.MinDelay = 30 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = dBInstanceDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &DBInstanceDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for DBInstanceDeleted waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *DBInstanceDeletedWaiter) Wait(ctx context.Context, params *DescribeDBInstancesInput, maxWaitDur time.Duration, optFns ...func(*DBInstanceDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeDBInstances(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for DBInstanceDeleted waiter") +} + +func dBInstanceDeletedStateRetryable(ctx context.Context, input *DescribeDBInstancesInput, output *DescribeDBInstancesOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("length(DBInstances) == `0`", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "true" + bv, err := strconv.ParseBool(expectedValue) + if err != nil { + return false, fmt.Errorf("error parsing boolean from string %w", err) + } + value, ok := pathValue.(bool) + if !ok { + return false, fmt.Errorf("waiter comparator expected bool value got %T", pathValue) + } + + if value == bv { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "DBInstanceNotFound" == apiErr.ErrorCode() { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("DBInstances[].DBInstanceStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "creating" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("DBInstances[].DBInstanceStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "modifying" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("DBInstances[].DBInstanceStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "rebooting" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("DBInstances[].DBInstanceStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "resetting-master-credentials" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeDBInstances(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/rds/api_op_DescribeDBSnapshots.go b/service/rds/api_op_DescribeDBSnapshots.go index 04c9fee259a..1900e233ac9 100644 --- a/service/rds/api_op_DescribeDBSnapshots.go +++ b/service/rds/api_op_DescribeDBSnapshots.go @@ -4,15 +4,18 @@ package rds import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/rds/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" smithywaiter "github.com/aws/smithy-go/waiter" "github.com/jmespath/go-jmespath" + "strconv" "time" ) @@ -594,6 +597,269 @@ func dBSnapshotAvailableStateRetryable(ctx context.Context, input *DescribeDBSna return true, nil } +// DBSnapshotDeletedWaiterOptions are waiter options for DBSnapshotDeletedWaiter +type DBSnapshotDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // DBSnapshotDeletedWaiter will use default minimum delay of 30 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, DBSnapshotDeletedWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeDBSnapshotsInput, *DescribeDBSnapshotsOutput, error) (bool, error) +} + +// DBSnapshotDeletedWaiter defines the waiters for DBSnapshotDeleted +type DBSnapshotDeletedWaiter struct { + client DescribeDBSnapshotsAPIClient + + options DBSnapshotDeletedWaiterOptions +} + +// NewDBSnapshotDeletedWaiter constructs a DBSnapshotDeletedWaiter. +func NewDBSnapshotDeletedWaiter(client DescribeDBSnapshotsAPIClient, optFns ...func(*DBSnapshotDeletedWaiterOptions)) *DBSnapshotDeletedWaiter { + options := DBSnapshotDeletedWaiterOptions{} + options.MinDelay = 30 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = dBSnapshotDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &DBSnapshotDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for DBSnapshotDeleted waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *DBSnapshotDeletedWaiter) Wait(ctx context.Context, params *DescribeDBSnapshotsInput, maxWaitDur time.Duration, optFns ...func(*DBSnapshotDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeDBSnapshots(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for DBSnapshotDeleted waiter") +} + +func dBSnapshotDeletedStateRetryable(ctx context.Context, input *DescribeDBSnapshotsInput, output *DescribeDBSnapshotsOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("length(DBSnapshots) == `0`", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "true" + bv, err := strconv.ParseBool(expectedValue) + if err != nil { + return false, fmt.Errorf("error parsing boolean from string %w", err) + } + value, ok := pathValue.(bool) + if !ok { + return false, fmt.Errorf("waiter comparator expected bool value got %T", pathValue) + } + + if value == bv { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "DBSnapshotNotFound" == apiErr.ErrorCode() { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("DBSnapshots[].Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "creating" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("DBSnapshots[].Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "modifying" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("DBSnapshots[].Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "rebooting" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("DBSnapshots[].Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "resetting-master-credentials" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeDBSnapshots(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/rds/api_op_DescribeGlobalClusters.go b/service/rds/api_op_DescribeGlobalClusters.go index 53cb0bf6d55..7b0b1cca852 100644 --- a/service/rds/api_op_DescribeGlobalClusters.go +++ b/service/rds/api_op_DescribeGlobalClusters.go @@ -33,12 +33,7 @@ func (c *Client) DescribeGlobalClusters(ctx context.Context, params *DescribeGlo type DescribeGlobalClustersInput struct { - // A filter that specifies one or more global DB clusters to describe. Supported - // filters: - // - // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon - // Resource Names (ARNs). The results list will only include information about the - // DB clusters identified by these ARNs. + // This parameter isn't currently supported. Filters []types.Filter // The user-supplied DB cluster identifier. If this parameter is specified, diff --git a/service/rds/deserializers.go b/service/rds/deserializers.go index 6aa69e74b02..981284a17eb 100644 --- a/service/rds/deserializers.go +++ b/service/rds/deserializers.go @@ -30436,6 +30436,23 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi sv.OptionGroupName = ptr.String(xtv) } + case strings.EqualFold("OriginalSnapshotCreateTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.OriginalSnapshotCreateTime = ptr.Time(t) + } + case strings.EqualFold("PercentProgress", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/rds/types/types.go b/service/rds/types/types.go index 2af1feedaa4..571b4fd22fa 100644 --- a/service/rds/types/types.go +++ b/service/rds/types/types.go @@ -1819,6 +1819,10 @@ type DBSnapshot struct { // Provides the option group name for the DB snapshot. OptionGroupName *string + // Specifies the time of the CreateDBSnapshot operation in Coordinated Universal + // Time (UTC). Doesn't change when the snapshot is copied. + OriginalSnapshotCreateTime *time.Time + // The percentage of the estimated data that has been transferred. PercentProgress int32 @@ -1831,13 +1835,14 @@ type DBSnapshot struct { ProcessorFeatures []ProcessorFeature // Specifies when the snapshot was taken in Coordinated Universal Time (UTC). + // Changes for the copy when the snapshot is copied. SnapshotCreateTime *time.Time // Provides the type of the DB snapshot. SnapshotType *string // The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied from. - // It only has value in case of cross-customer or cross-region copy. + // It only has a value in the case of a cross-account or cross-Region copy. SourceDBSnapshotIdentifier *string // The Amazon Web Services Region that the DB snapshot was created in or copied diff --git a/service/redshiftdata/api_op_BatchExecuteStatement.go b/service/redshiftdata/api_op_BatchExecuteStatement.go new file mode 100644 index 00000000000..4b97fc273b4 --- /dev/null +++ b/service/redshiftdata/api_op_BatchExecuteStatement.go @@ -0,0 +1,177 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftdata + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Runs one or more SQL statements, which can be data manipulation language (DML) +// or data definition language (DDL). Depending on the authorization method, use +// one of the following combinations of request parameters: +// +// * Secrets Manager - +// specify the Amazon Resource Name (ARN) of the secret, the database name, and the +// cluster identifier that matches the cluster in the secret. +// +// * Temporary +// credentials - specify the cluster identifier, the database name, and the +// database user name. Permission to call the redshift:GetClusterCredentials +// operation is required to use this method. +func (c *Client) BatchExecuteStatement(ctx context.Context, params *BatchExecuteStatementInput, optFns ...func(*Options)) (*BatchExecuteStatementOutput, error) { + if params == nil { + params = &BatchExecuteStatementInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "BatchExecuteStatement", params, optFns, c.addOperationBatchExecuteStatementMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*BatchExecuteStatementOutput) + out.ResultMetadata = metadata + return out, nil +} + +type BatchExecuteStatementInput struct { + + // The cluster identifier. This parameter is required when authenticating using + // either Secrets Manager or temporary credentials. + // + // This member is required. + ClusterIdentifier *string + + // The name of the database. This parameter is required when authenticating using + // either Secrets Manager or temporary credentials. + // + // This member is required. + Database *string + + // One or more SQL statements to run. + // + // This member is required. + Sqls []string + + // The database user name. This parameter is required when authenticating using + // temporary credentials. + DbUser *string + + // The name or ARN of the secret that enables access to the database. This + // parameter is required when authenticating using Secrets Manager. + SecretArn *string + + // The name of the SQL statements. You can name the SQL statements when you create + // them to identify the query. + StatementName *string + + // A value that indicates whether to send an event to the Amazon EventBridge event + // bus after the SQL statements run. + WithEvent *bool + + noSmithyDocumentSerde +} + +type BatchExecuteStatementOutput struct { + + // The cluster identifier. + ClusterIdentifier *string + + // The date and time (UTC) the statement was created. + CreatedAt *time.Time + + // The name of the database. + Database *string + + // The database user name. + DbUser *string + + // The identifier of the SQL statement whose results are to be fetched. This value + // is a universally unique identifier (UUID) generated by Amazon Redshift Data API. + // This identifier is returned by BatchExecuteStatment. + Id *string + + // The name or ARN of the secret that enables access to the database. + SecretArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationBatchExecuteStatementMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpBatchExecuteStatement{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpBatchExecuteStatement{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpBatchExecuteStatementValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchExecuteStatement(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opBatchExecuteStatement(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "redshift-data", + OperationName: "BatchExecuteStatement", + } +} diff --git a/service/redshiftdata/api_op_CancelStatement.go b/service/redshiftdata/api_op_CancelStatement.go index 0ddbabcaa33..3b57bf5cbbd 100644 --- a/service/redshiftdata/api_op_CancelStatement.go +++ b/service/redshiftdata/api_op_CancelStatement.go @@ -30,7 +30,7 @@ type CancelStatementInput struct { // The identifier of the SQL statement to cancel. This value is a universally // unique identifier (UUID) generated by Amazon Redshift Data API. This identifier - // is returned by ExecuteStatment and ListStatements. + // is returned by BatchExecuteStatment, ExecuteStatment, and ListStatements. // // This member is required. Id *string diff --git a/service/redshiftdata/api_op_DescribeStatement.go b/service/redshiftdata/api_op_DescribeStatement.go index d24c067453b..0940dcf661e 100644 --- a/service/redshiftdata/api_op_DescribeStatement.go +++ b/service/redshiftdata/api_op_DescribeStatement.go @@ -34,8 +34,11 @@ func (c *Client) DescribeStatement(ctx context.Context, params *DescribeStatemen type DescribeStatementInput struct { // The identifier of the SQL statement to describe. This value is a universally - // unique identifier (UUID) generated by Amazon Redshift Data API. This identifier - // is returned by ExecuteStatment and ListStatements. + // unique identifier (UUID) generated by Amazon Redshift Data API. A suffix + // indicates the number of the SQL statement. For example, + // d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the + // second SQL statement of a batch query. This identifier is returned by + // BatchExecuteStatment, ExecuteStatement, and ListStatements. // // This member is required. Id *string @@ -90,10 +93,10 @@ type DescribeStatementOutput struct { // Either the number of rows returned from the SQL statement or the number of rows // affected. If result size is greater than zero, the result rows can be the number // of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and - // others. + // others. A -1 indicates the value is null. ResultRows int64 - // The size in bytes of the returned results. + // The size in bytes of the returned results. A -1 indicates the value is null. ResultSize int64 // The name or Amazon Resource Name (ARN) of the secret that enables access to the @@ -122,6 +125,9 @@ type DescribeStatementOutput struct { // * SUBMITTED - The query was submitted, but not yet processed. Status types.StatusString + // The SQL statements from a multiple statement run. + SubStatements []types.SubStatementData + // The date and time (UTC) that the metadata for the SQL statement was last // updated. An example is the time the status last changed. UpdatedAt *time.Time diff --git a/service/redshiftdata/api_op_DescribeTable.go b/service/redshiftdata/api_op_DescribeTable.go index d74cac75df3..8106b8a15ff 100644 --- a/service/redshiftdata/api_op_DescribeTable.go +++ b/service/redshiftdata/api_op_DescribeTable.go @@ -17,13 +17,14 @@ import ( // column list. Depending on the authorization method, use one of the following // combinations of request parameters: // -// * AWS Secrets Manager - specify the Amazon -// Resource Name (ARN) of the secret and the cluster identifier that matches the -// cluster in the secret. +// * Secrets Manager - specify the Amazon +// Resource Name (ARN) of the secret, the database name, and the cluster identifier +// that matches the cluster in the secret. // -// * Temporary credentials - specify the cluster -// identifier, the database name, and the database user name. Permission to call -// the redshift:GetClusterCredentials operation is required to use this method. +// * Temporary credentials - specify the +// cluster identifier, the database name, and the database user name. Permission to +// call the redshift:GetClusterCredentials operation is required to use this +// method. func (c *Client) DescribeTable(ctx context.Context, params *DescribeTableInput, optFns ...func(*Options)) (*DescribeTableOutput, error) { if params == nil { params = &DescribeTableInput{} @@ -42,7 +43,7 @@ func (c *Client) DescribeTable(ctx context.Context, params *DescribeTableInput, type DescribeTableInput struct { // The cluster identifier. This parameter is required when authenticating using - // either AWS Secrets Manager or temporary credentials. + // either Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string @@ -79,7 +80,7 @@ type DescribeTableInput struct { Schema *string // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using AWS Secrets Manager. + // parameter is required when authenticating using Secrets Manager. SecretArn *string // The table name. If no table is specified, then all tables for all matching diff --git a/service/redshiftdata/api_op_ExecuteStatement.go b/service/redshiftdata/api_op_ExecuteStatement.go index ea57010cb18..acdc4ab3192 100644 --- a/service/redshiftdata/api_op_ExecuteStatement.go +++ b/service/redshiftdata/api_op_ExecuteStatement.go @@ -17,13 +17,13 @@ import ( // Depending on the authorization method, use one of the following combinations of // request parameters: // -// * AWS Secrets Manager - specify the Amazon Resource Name -// (ARN) of the secret and the cluster identifier that matches the cluster in the -// secret. +// * Secrets Manager - specify the Amazon Resource Name (ARN) +// of the secret, the database name, and the cluster identifier that matches the +// cluster in the secret. // -// * Temporary credentials - specify the cluster identifier, the database -// name, and the database user name. Permission to call the -// redshift:GetClusterCredentials operation is required to use this method. +// * Temporary credentials - specify the cluster +// identifier, the database name, and the database user name. Permission to call +// the redshift:GetClusterCredentials operation is required to use this method. func (c *Client) ExecuteStatement(ctx context.Context, params *ExecuteStatementInput, optFns ...func(*Options)) (*ExecuteStatementOutput, error) { if params == nil { params = &ExecuteStatementInput{} @@ -42,20 +42,22 @@ func (c *Client) ExecuteStatement(ctx context.Context, params *ExecuteStatementI type ExecuteStatementInput struct { // The cluster identifier. This parameter is required when authenticating using - // either AWS Secrets Manager or temporary credentials. + // either Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string + // The name of the database. This parameter is required when authenticating using + // either Secrets Manager or temporary credentials. + // + // This member is required. + Database *string + // The SQL statement text to run. // // This member is required. Sql *string - // The name of the database. This parameter is required when authenticating using - // temporary credentials. - Database *string - // The database user name. This parameter is required when authenticating using // temporary credentials. DbUser *string @@ -64,7 +66,7 @@ type ExecuteStatementInput struct { Parameters []types.SqlParameter // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using AWS Secrets Manager. + // parameter is required when authenticating using Secrets Manager. SecretArn *string // The name of the SQL statement. You can name the SQL statement when you create it @@ -92,8 +94,8 @@ type ExecuteStatementOutput struct { // The database user name. DbUser *string - // The identifier of the statement to be run. This value is a universally unique - // identifier (UUID) generated by Amazon Redshift Data API. + // The identifier of the SQL statement whose results are to be fetched. This value + // is a universally unique identifier (UUID) generated by Amazon Redshift Data API. Id *string // The name or ARN of the secret that enables access to the database. diff --git a/service/redshiftdata/api_op_GetStatementResult.go b/service/redshiftdata/api_op_GetStatementResult.go index dec1c283520..942e7816dee 100644 --- a/service/redshiftdata/api_op_GetStatementResult.go +++ b/service/redshiftdata/api_op_GetStatementResult.go @@ -33,7 +33,10 @@ type GetStatementResultInput struct { // The identifier of the SQL statement whose results are to be fetched. This value // is a universally unique identifier (UUID) generated by Amazon Redshift Data API. - // This identifier is returned by ExecuteStatment and ListStatements. + // A suffix indicates then number of the SQL statement. For example, + // d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the + // second SQL statement of a batch query. This identifier is returned by + // BatchExecuteStatment, ExecuteStatment, and ListStatements. // // This member is required. Id *string diff --git a/service/redshiftdata/api_op_ListDatabases.go b/service/redshiftdata/api_op_ListDatabases.go index e137fb2d2c7..92808d7df38 100644 --- a/service/redshiftdata/api_op_ListDatabases.go +++ b/service/redshiftdata/api_op_ListDatabases.go @@ -15,13 +15,14 @@ import ( // database list. Depending on the authorization method, use one of the following // combinations of request parameters: // -// * AWS Secrets Manager - specify the Amazon -// Resource Name (ARN) of the secret and the cluster identifier that matches the -// cluster in the secret. +// * Secrets Manager - specify the Amazon +// Resource Name (ARN) of the secret, the database name, and the cluster identifier +// that matches the cluster in the secret. // -// * Temporary credentials - specify the cluster -// identifier, the database name, and the database user name. Permission to call -// the redshift:GetClusterCredentials operation is required to use this method. +// * Temporary credentials - specify the +// cluster identifier, the database name, and the database user name. Permission to +// call the redshift:GetClusterCredentials operation is required to use this +// method. func (c *Client) ListDatabases(ctx context.Context, params *ListDatabasesInput, optFns ...func(*Options)) (*ListDatabasesOutput, error) { if params == nil { params = &ListDatabasesInput{} @@ -40,13 +41,15 @@ func (c *Client) ListDatabases(ctx context.Context, params *ListDatabasesInput, type ListDatabasesInput struct { // The cluster identifier. This parameter is required when authenticating using - // either AWS Secrets Manager or temporary credentials. + // either Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string // The name of the database. This parameter is required when authenticating using - // temporary credentials. + // either Secrets Manager or temporary credentials. + // + // This member is required. Database *string // The database user name. This parameter is required when authenticating using @@ -66,7 +69,7 @@ type ListDatabasesInput struct { NextToken *string // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using AWS Secrets Manager. + // parameter is required when authenticating using Secrets Manager. SecretArn *string noSmithyDocumentSerde diff --git a/service/redshiftdata/api_op_ListSchemas.go b/service/redshiftdata/api_op_ListSchemas.go index 31f9448cbca..c80bf5d6096 100644 --- a/service/redshiftdata/api_op_ListSchemas.go +++ b/service/redshiftdata/api_op_ListSchemas.go @@ -15,13 +15,14 @@ import ( // list. Depending on the authorization method, use one of the following // combinations of request parameters: // -// * AWS Secrets Manager - specify the Amazon -// Resource Name (ARN) of the secret and the cluster identifier that matches the -// cluster in the secret. +// * Secrets Manager - specify the Amazon +// Resource Name (ARN) of the secret, the database name, and the cluster identifier +// that matches the cluster in the secret. // -// * Temporary credentials - specify the cluster -// identifier, the database name, and the database user name. Permission to call -// the redshift:GetClusterCredentials operation is required to use this method. +// * Temporary credentials - specify the +// cluster identifier, the database name, and the database user name. Permission to +// call the redshift:GetClusterCredentials operation is required to use this +// method. func (c *Client) ListSchemas(ctx context.Context, params *ListSchemasInput, optFns ...func(*Options)) (*ListSchemasOutput, error) { if params == nil { params = &ListSchemasInput{} @@ -40,7 +41,7 @@ func (c *Client) ListSchemas(ctx context.Context, params *ListSchemasInput, optF type ListSchemasInput struct { // The cluster identifier. This parameter is required when authenticating using - // either AWS Secrets Manager or temporary credentials. + // either Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string @@ -78,7 +79,7 @@ type ListSchemasInput struct { SchemaPattern *string // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using AWS Secrets Manager. + // parameter is required when authenticating using Secrets Manager. SecretArn *string noSmithyDocumentSerde diff --git a/service/redshiftdata/api_op_ListStatements.go b/service/redshiftdata/api_op_ListStatements.go index 28e79d225b4..030eb1c196d 100644 --- a/service/redshiftdata/api_op_ListStatements.go +++ b/service/redshiftdata/api_op_ListStatements.go @@ -49,12 +49,12 @@ type ListStatementsInput struct { // default is true. RoleLevel *bool - // The name of the SQL statement specified as input to ExecuteStatement to identify - // the query. You can list multiple statements by providing a prefix that matches - // the beginning of the statement name. For example, to list myStatement1, - // myStatement2, myStatement3, and so on, then provide the a value of myStatement. - // Data API does a case-sensitive match of SQL statement names to the prefix value - // you provide. + // The name of the SQL statement specified as input to BatchExecuteStatement or + // ExecuteStatement to identify the query. You can list multiple statements by + // providing a prefix that matches the beginning of the statement name. For + // example, to list myStatement1, myStatement2, myStatement3, and so on, then + // provide the a value of myStatement. Data API does a case-sensitive match of SQL + // statement names to the prefix value you provide. StatementName *string // The status of the SQL statement to list. Status values are defined as diff --git a/service/redshiftdata/api_op_ListTables.go b/service/redshiftdata/api_op_ListTables.go index 85f210b1af7..9fe1d7c2281 100644 --- a/service/redshiftdata/api_op_ListTables.go +++ b/service/redshiftdata/api_op_ListTables.go @@ -17,14 +17,14 @@ import ( // page through the table list. Depending on the authorization method, use one of // the following combinations of request parameters: // -// * AWS Secrets Manager - -// specify the Amazon Resource Name (ARN) of the secret and the cluster identifier -// that matches the cluster in the secret. +// * Secrets Manager - specify +// the Amazon Resource Name (ARN) of the secret, the database name, and the cluster +// identifier that matches the cluster in the secret. // -// * Temporary credentials - specify the -// cluster identifier, the database name, and the database user name. Permission to -// call the redshift:GetClusterCredentials operation is required to use this -// method. +// * Temporary credentials - +// specify the cluster identifier, the database name, and the database user name. +// Permission to call the redshift:GetClusterCredentials operation is required to +// use this method. func (c *Client) ListTables(ctx context.Context, params *ListTablesInput, optFns ...func(*Options)) (*ListTablesOutput, error) { if params == nil { params = &ListTablesInput{} @@ -43,7 +43,7 @@ func (c *Client) ListTables(ctx context.Context, params *ListTablesInput, optFns type ListTablesInput struct { // The cluster identifier. This parameter is required when authenticating using - // either AWS Secrets Manager or temporary credentials. + // either Secrets Manager or temporary credentials. // // This member is required. ClusterIdentifier *string @@ -84,7 +84,7 @@ type ListTablesInput struct { SchemaPattern *string // The name or ARN of the secret that enables access to the database. This - // parameter is required when authenticating using AWS Secrets Manager. + // parameter is required when authenticating using Secrets Manager. SecretArn *string // A pattern to filter results by table name. Within a table pattern, "%" means diff --git a/service/redshiftdata/deserializers.go b/service/redshiftdata/deserializers.go index e8f8f17e28e..411bca8fc25 100644 --- a/service/redshiftdata/deserializers.go +++ b/service/redshiftdata/deserializers.go @@ -21,6 +21,123 @@ import ( "strings" ) +type awsAwsjson11_deserializeOpBatchExecuteStatement struct { +} + +func (*awsAwsjson11_deserializeOpBatchExecuteStatement) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpBatchExecuteStatement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorBatchExecuteStatement(response, &metadata) + } + output := &BatchExecuteStatementOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentBatchExecuteStatementOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorBatchExecuteStatement(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ActiveStatementsExceededException", errorCode): + return awsAwsjson11_deserializeErrorActiveStatementsExceededException(response, errorBody) + + case strings.EqualFold("BatchExecuteStatementException", errorCode): + return awsAwsjson11_deserializeErrorBatchExecuteStatementException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpCancelStatement struct { } @@ -125,6 +242,9 @@ func awsAwsjson11_deserializeOpErrorCancelStatement(response *smithyhttp.Respons case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1091,6 +1211,41 @@ func awsAwsjson11_deserializeErrorActiveStatementsExceededException(response *sm return output } +func awsAwsjson11_deserializeErrorBatchExecuteStatementException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.BatchExecuteStatementException{} + err := awsAwsjson11_deserializeDocumentBatchExecuteStatementException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + func awsAwsjson11_deserializeErrorExecuteStatementException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -1271,6 +1426,55 @@ func awsAwsjson11_deserializeDocumentActiveStatementsExceededException(v **types return nil } +func awsAwsjson11_deserializeDocumentBatchExecuteStatementException(v **types.BatchExecuteStatementException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BatchExecuteStatementException + if *v == nil { + sv = &types.BatchExecuteStatementException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "StatementId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.StatementId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentColumnList(v *[]types.ColumnMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2037,11 +2241,20 @@ func awsAwsjson11_deserializeDocumentStatementData(v **types.StatementData, valu if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } + case "IsBatchStatement": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsBatchStatement = ptr.Bool(jtv) + } + case "QueryParameters": if err := awsAwsjson11_deserializeDocumentSqlParametersList(&sv.QueryParameters, value); err != nil { return err @@ -2056,6 +2269,11 @@ func awsAwsjson11_deserializeDocumentStatementData(v **types.StatementData, valu sv.QueryString = ptr.String(jtv) } + case "QueryStrings": + if err := awsAwsjson11_deserializeDocumentStatementStringList(&sv.QueryStrings, value); err != nil { + return err + } + case "SecretArn": if value != nil { jtv, ok := value.(string) @@ -2142,6 +2360,236 @@ func awsAwsjson11_deserializeDocumentStatementList(v *[]types.StatementData, val return nil } +func awsAwsjson11_deserializeDocumentStatementStringList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatementString to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentSubStatementData(v **types.SubStatementData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SubStatementData + if *v == nil { + sv = &types.SubStatementData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Duration": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Duration = i64 + } + + case "Error": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Error = ptr.String(jtv) + } + + case "HasResultSet": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.HasResultSet = ptr.Bool(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "QueryString": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatementString to be of type string, got %T instead", value) + } + sv.QueryString = ptr.String(jtv) + } + + case "RedshiftQueryId": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RedshiftQueryId = i64 + } + + case "ResultRows": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ResultRows = i64 + } + + case "ResultSize": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ResultSize = i64 + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatementStatusString to be of type string, got %T instead", value) + } + sv.Status = types.StatementStatusString(jtv) + } + + case "UpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSubStatementList(v *[]types.SubStatementData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.SubStatementData + if *v == nil { + cv = []types.SubStatementData{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.SubStatementData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubStatementData(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentTableList(v *[]types.TableMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2274,6 +2722,98 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc return nil } +func awsAwsjson11_deserializeOpDocumentBatchExecuteStatementOutput(v **BatchExecuteStatementOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *BatchExecuteStatementOutput + if *v == nil { + sv = &BatchExecuteStatementOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Location to be of type string, got %T instead", value) + } + sv.ClusterIdentifier = ptr.String(jtv) + } + + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) + } + + case "DbUser": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.DbUser = ptr.String(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "SecretArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) + } + sv.SecretArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCancelStatementOutput(v **CancelStatementOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2414,7 +2954,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } @@ -2503,6 +3043,11 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState sv.Status = types.StatusString(jtv) } + case "SubStatements": + if err := awsAwsjson11_deserializeDocumentSubStatementList(&sv.SubStatements, value); err != nil { + return err + } + case "UpdatedAt": if value != nil { switch jtv := value.(type) { @@ -2651,7 +3196,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteStatementOutput(v **ExecuteStateme if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + return fmt.Errorf("expected StatementId to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } diff --git a/service/redshiftdata/doc.go b/service/redshiftdata/doc.go index b9d5a96a808..b0665a241cb 100644 --- a/service/redshiftdata/doc.go +++ b/service/redshiftdata/doc.go @@ -4,9 +4,9 @@ // for Redshift Data API Service. // // You can use the Amazon Redshift Data API to run queries on Amazon Redshift -// tables. You can run individual SQL statements, which are committed if the -// statement succeeds. For more information about the Amazon Redshift Data API, see -// Using the Amazon Redshift Data API +// tables. You can run SQL statements, which are committed if the statement +// succeeds. For more information about the Amazon Redshift Data API, see Using the +// Amazon Redshift Data API // (https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html) in the Amazon // Redshift Cluster Management Guide. package redshiftdata diff --git a/service/redshiftdata/generated.json b/service/redshiftdata/generated.json index 2adee145738..8f24eb2d0e3 100644 --- a/service/redshiftdata/generated.json +++ b/service/redshiftdata/generated.json @@ -5,6 +5,7 @@ }, "files": [ "api_client.go", + "api_op_BatchExecuteStatement.go", "api_op_CancelStatement.go", "api_op_DescribeStatement.go", "api_op_DescribeTable.go", diff --git a/service/redshiftdata/serializers.go b/service/redshiftdata/serializers.go index 41cc342138f..e2937f4fcd0 100644 --- a/service/redshiftdata/serializers.go +++ b/service/redshiftdata/serializers.go @@ -14,6 +14,53 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +type awsAwsjson11_serializeOpBatchExecuteStatement struct { +} + +func (*awsAwsjson11_serializeOpBatchExecuteStatement) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpBatchExecuteStatement) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*BatchExecuteStatementInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftData.BatchExecuteStatement") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentBatchExecuteStatementInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpCancelStatement struct { } @@ -436,6 +483,17 @@ func (m *awsAwsjson11_serializeOpListTables) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } +func awsAwsjson11_serializeDocumentSqlList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsAwsjson11_serializeDocumentSqlParameter(v *types.SqlParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -466,6 +524,50 @@ func awsAwsjson11_serializeDocumentSqlParametersList(v []types.SqlParameter, val return nil } +func awsAwsjson11_serializeOpDocumentBatchExecuteStatementInput(v *BatchExecuteStatementInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClusterIdentifier != nil { + ok := object.Key("ClusterIdentifier") + ok.String(*v.ClusterIdentifier) + } + + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) + } + + if v.DbUser != nil { + ok := object.Key("DbUser") + ok.String(*v.DbUser) + } + + if v.SecretArn != nil { + ok := object.Key("SecretArn") + ok.String(*v.SecretArn) + } + + if v.Sqls != nil { + ok := object.Key("Sqls") + if err := awsAwsjson11_serializeDocumentSqlList(v.Sqls, ok); err != nil { + return err + } + } + + if v.StatementName != nil { + ok := object.Key("StatementName") + ok.String(*v.StatementName) + } + + if v.WithEvent != nil { + ok := object.Key("WithEvent") + ok.Boolean(*v.WithEvent) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentCancelStatementInput(v *CancelStatementInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/redshiftdata/types/enums.go b/service/redshiftdata/types/enums.go index 983178fee3d..b944abd8c42 100644 --- a/service/redshiftdata/types/enums.go +++ b/service/redshiftdata/types/enums.go @@ -2,6 +2,32 @@ package types +type StatementStatusString string + +// Enum values for StatementStatusString +const ( + StatementStatusStringSubmitted StatementStatusString = "SUBMITTED" + StatementStatusStringPicked StatementStatusString = "PICKED" + StatementStatusStringStarted StatementStatusString = "STARTED" + StatementStatusStringFinished StatementStatusString = "FINISHED" + StatementStatusStringAborted StatementStatusString = "ABORTED" + StatementStatusStringFailed StatementStatusString = "FAILED" +) + +// Values returns all known values for StatementStatusString. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (StatementStatusString) Values() []StatementStatusString { + return []StatementStatusString{ + "SUBMITTED", + "PICKED", + "STARTED", + "FINISHED", + "ABORTED", + "FAILED", + } +} + type StatusString string // Enum values for StatusString diff --git a/service/redshiftdata/types/errors.go b/service/redshiftdata/types/errors.go index aad0ae77cb2..dcea08451e6 100644 --- a/service/redshiftdata/types/errors.go +++ b/service/redshiftdata/types/errors.go @@ -28,6 +28,27 @@ func (e *ActiveStatementsExceededException) ErrorCode() string { } func (e *ActiveStatementsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// An SQL statement encountered an environmental error while running. +type BatchExecuteStatementException struct { + Message *string + + StatementId *string + + noSmithyDocumentSerde +} + +func (e *BatchExecuteStatementException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *BatchExecuteStatementException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *BatchExecuteStatementException) ErrorCode() string { return "BatchExecuteStatementException" } +func (e *BatchExecuteStatementException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + // The SQL statement encountered an environmental error while running. type ExecuteStatementException struct { Message *string diff --git a/service/redshiftdata/types/types.go b/service/redshiftdata/types/types.go index b059c88a808..a12051e99ad 100644 --- a/service/redshiftdata/types/types.go +++ b/service/redshiftdata/types/types.go @@ -150,12 +150,19 @@ type StatementData struct { // The date and time (UTC) the statement was created. CreatedAt *time.Time + // A value that indicates whether the statement is a batch query request. + IsBatchStatement *bool + // The parameters used in a SQL statement. QueryParameters []SqlParameter // The SQL statement. QueryString *string + // One or more SQL statements. Each query string in the array corresponds to one of + // the queries in a batch query request. + QueryStrings []string + // The name or Amazon Resource Name (ARN) of the secret that enables access to the // database. SecretArn *string @@ -173,6 +180,57 @@ type StatementData struct { noSmithyDocumentSerde } +// Information about an SQL statement. +type SubStatementData struct { + + // The identifier of the SQL statement. This value is a universally unique + // identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the + // number of the SQL statement. For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 + // has a suffix of :2 that indicates the second SQL statement of a batch query. + // + // This member is required. + Id *string + + // The date and time (UTC) the statement was created. + CreatedAt *time.Time + + // The amount of time in nanoseconds that the statement ran. + Duration int64 + + // The error message from the cluster if the SQL statement encountered an error + // while running. + Error *string + + // A value that indicates whether the statement has a result set. The result set + // can be empty. + HasResultSet *bool + + // The SQL statement text. + QueryString *string + + // The SQL statement identifier. This value is a universally unique identifier + // (UUID) generated by Amazon Redshift Data API. + RedshiftQueryId int64 + + // Either the number of rows returned from the SQL statement or the number of rows + // affected. If result size is greater than zero, the result rows can be the number + // of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and + // others. A -1 indicates the value is null. + ResultRows int64 + + // The size in bytes of the returned results. A -1 indicates the value is null. + ResultSize int64 + + // The status of the SQL statement. An example is the that the SQL statement + // finished. + Status StatementStatusString + + // The date and time (UTC) that the statement metadata was last updated. + UpdatedAt *time.Time + + noSmithyDocumentSerde +} + // The properties of a table. type TableMember struct { diff --git a/service/redshiftdata/validators.go b/service/redshiftdata/validators.go index 85c3ae9700a..1974086c0ad 100644 --- a/service/redshiftdata/validators.go +++ b/service/redshiftdata/validators.go @@ -10,6 +10,26 @@ import ( "github.com/aws/smithy-go/middleware" ) +type validateOpBatchExecuteStatement struct { +} + +func (*validateOpBatchExecuteStatement) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpBatchExecuteStatement) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*BatchExecuteStatementInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpBatchExecuteStatementInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCancelStatement struct { } @@ -170,6 +190,10 @@ func (m *validateOpListTables) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } +func addOpBatchExecuteStatementValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpBatchExecuteStatement{}, middleware.After) +} + func addOpCancelStatementValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCancelStatement{}, middleware.After) } @@ -237,6 +261,27 @@ func validateSqlParametersList(v []types.SqlParameter) error { } } +func validateOpBatchExecuteStatementInput(v *BatchExecuteStatementInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BatchExecuteStatementInput"} + if v.Sqls == nil { + invalidParams.Add(smithy.NewErrParamRequired("Sqls")) + } + if v.ClusterIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) + } + if v.Database == nil { + invalidParams.Add(smithy.NewErrParamRequired("Database")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCancelStatementInput(v *CancelStatementInput) error { if v == nil { return nil @@ -296,6 +341,9 @@ func validateOpExecuteStatementInput(v *ExecuteStatementInput) error { if v.ClusterIdentifier == nil { invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) } + if v.Database == nil { + invalidParams.Add(smithy.NewErrParamRequired("Database")) + } if v.Parameters != nil { if err := validateSqlParametersList(v.Parameters); err != nil { invalidParams.AddNested("Parameters", err.(smithy.InvalidParamsError)) @@ -331,6 +379,9 @@ func validateOpListDatabasesInput(v *ListDatabasesInput) error { if v.ClusterIdentifier == nil { invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) } + if v.Database == nil { + invalidParams.Add(smithy.NewErrParamRequired("Database")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/robomaker/api_op_DescribeWorld.go b/service/robomaker/api_op_DescribeWorld.go index 8e5e89e6733..627cdd0e2e5 100644 --- a/service/robomaker/api_op_DescribeWorld.go +++ b/service/robomaker/api_op_DescribeWorld.go @@ -55,6 +55,9 @@ type DescribeWorldOutput struct { // The world template. Template *string + // Returns the JSON formatted string that describes the contents of your world. + WorldDescriptionBody *string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_DescribeWorldTemplate.go b/service/robomaker/api_op_DescribeWorldTemplate.go index d40fc6c5910..62dbcff5ae9 100644 --- a/service/robomaker/api_op_DescribeWorldTemplate.go +++ b/service/robomaker/api_op_DescribeWorldTemplate.go @@ -60,6 +60,9 @@ type DescribeWorldTemplateOutput struct { // template. Tags map[string]string + // The version of the world template that you're using. + Version *string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/deserializers.go b/service/robomaker/deserializers.go index 496bf2d5521..e8717f3d49e 100644 --- a/service/robomaker/deserializers.go +++ b/service/robomaker/deserializers.go @@ -5853,6 +5853,15 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldOutput(v **DescribeWorldOutp sv.Template = ptr.String(jtv) } + case "worldDescriptionBody": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Json to be of type string, got %T instead", value) + } + sv.WorldDescriptionBody = ptr.String(jtv) + } + default: _, _ = key, value @@ -6545,6 +6554,15 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldTemplateOutput(v **DescribeW return err } + case "version": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) + } + sv.Version = ptr.String(jtv) + } + default: _, _ = key, value @@ -14593,6 +14611,15 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, sv.Name = ptr.String(jtv) } + case "version": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) + } + sv.Version = ptr.String(jtv) + } + default: _, _ = key, value diff --git a/service/robomaker/types/types.go b/service/robomaker/types/types.go index cf8f53ad28a..6d111be2a8a 100644 --- a/service/robomaker/types/types.go +++ b/service/robomaker/types/types.go @@ -900,6 +900,9 @@ type TemplateSummary struct { // The name of the template. Name *string + // The version of the template that you're using. + Version *string + noSmithyDocumentSerde } diff --git a/service/route53/api_op_AssociateVPCWithHostedZone.go b/service/route53/api_op_AssociateVPCWithHostedZone.go index 69c7568e6a3..a3be3a5bc04 100644 --- a/service/route53/api_op_AssociateVPCWithHostedZone.go +++ b/service/route53/api_op_AssociateVPCWithHostedZone.go @@ -14,8 +14,8 @@ import ( // Associates an Amazon VPC with a private hosted zone. To perform the association, // the VPC and the private hosted zone must already exist. You can't convert a // public hosted zone into a private hosted zone. If you want to associate a VPC -// that was created by using one AWS account with a private hosted zone that was -// created by using a different account, the AWS account that created the private +// that was created by using one account with a private hosted zone that was +// created by using a different account, the account that created the private // hosted zone must first submit a CreateVPCAssociationAuthorization request. Then // the account that created the VPC must submit an AssociateVPCWithHostedZone // request. diff --git a/service/route53/api_op_ChangeResourceRecordSets.go b/service/route53/api_op_ChangeResourceRecordSets.go index 2ca8cc4e844..03785e93501 100644 --- a/service/route53/api_op_ChangeResourceRecordSets.go +++ b/service/route53/api_op_ChangeResourceRecordSets.go @@ -51,20 +51,20 @@ import ( // an existing resource record set that has the specified values. // // * UPSERT: If a -// resource record set does not already exist, AWS creates it. If a resource set -// does exist, Route 53 updates it with the values in the request. +// resource record set does not already exist, Amazon Web Services creates it. If a +// resource set does exist, Route 53 updates it with the values in the +// request. // -// Syntaxes for -// Creating, Updating, and Deleting Resource Record Sets The syntax for a request -// depends on the type of resource record set that you want to create, delete, or -// update, such as weighted, alias, or failover. The XML elements in your request -// must appear in the order listed in the syntax. For an example for each type of -// resource record set, see "Examples." Don't refer to the syntax in the "Parameter -// Syntax" section, which includes all of the elements for every kind of resource -// record set that you can create, delete, or update by using -// ChangeResourceRecordSets. Change Propagation to Route 53 DNS Servers When you -// submit a ChangeResourceRecordSets request, Route 53 propagates your changes to -// all of the Route 53 authoritative DNS servers. While your changes are +// Syntaxes for Creating, Updating, and Deleting Resource Record Sets The +// syntax for a request depends on the type of resource record set that you want to +// create, delete, or update, such as weighted, alias, or failover. The XML +// elements in your request must appear in the order listed in the syntax. For an +// example for each type of resource record set, see "Examples." Don't refer to the +// syntax in the "Parameter Syntax" section, which includes all of the elements for +// every kind of resource record set that you can create, delete, or update by +// using ChangeResourceRecordSets. Change Propagation to Route 53 DNS Servers When +// you submit a ChangeResourceRecordSets request, Route 53 propagates your changes +// to all of the Route 53 authoritative DNS servers. While your changes are // propagating, GetChange returns a status of PENDING. When propagation is // complete, GetChange returns a status of INSYNC. Changes generally propagate to // all Route 53 name servers within 60 seconds. For more information, see GetChange diff --git a/service/route53/api_op_ChangeTagsForResource.go b/service/route53/api_op_ChangeTagsForResource.go index 8253d2c17c8..5f86c484646 100644 --- a/service/route53/api_op_ChangeTagsForResource.go +++ b/service/route53/api_op_ChangeTagsForResource.go @@ -14,7 +14,7 @@ import ( // Adds, edits, or deletes tags for a health check or a hosted zone. For // information about using tags for cost allocation, see Using Cost Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) -// in the AWS Billing and Cost Management User Guide. +// in the Billing and Cost Management User Guide. func (c *Client) ChangeTagsForResource(ctx context.Context, params *ChangeTagsForResourceInput, optFns ...func(*Options)) (*ChangeTagsForResourceOutput, error) { if params == nil { params = &ChangeTagsForResourceInput{} diff --git a/service/route53/api_op_CreateKeySigningKey.go b/service/route53/api_op_CreateKeySigningKey.go index 62ac535de51..aa9288054b0 100644 --- a/service/route53/api_op_CreateKeySigningKey.go +++ b/service/route53/api_op_CreateKeySigningKey.go @@ -41,12 +41,12 @@ type CreateKeySigningKeyInput struct { HostedZoneId *string // The Amazon resource name (ARN) for a customer managed customer master key (CMK) - // in AWS Key Management Service (AWS KMS). The KeyManagementServiceArn must be - // unique for each key-signing key (KSK) in a single hosted zone. To see an example - // of KeyManagementServiceArn that grants the correct permissions for DNSSEC, - // scroll down to Example. You must configure the customer managed CMK as follows: - // Status Enabled Key spec ECC_NIST_P256 Key usage Sign and verify Key policy The - // key policy must give permission for the following actions: + // in Key Management Service (KMS). The KeyManagementServiceArn must be unique for + // each key-signing key (KSK) in a single hosted zone. To see an example of + // KeyManagementServiceArn that grants the correct permissions for DNSSEC, scroll + // down to Example. You must configure the customer managed CMK as follows: Status + // Enabled Key spec ECC_NIST_P256 Key usage Sign and verify Key policy The key + // policy must give permission for the following actions: // // * DescribeKey // @@ -59,10 +59,10 @@ type CreateKeySigningKeyInput struct { // service in the principal for your account. Specify the following: // // * "Service": - // "dnssec.route53.aws.amazonaws.com" + // "dnssec-route53.amazonaws.com" // // For more information about working with a - // customer managed CMK in AWS KMS, see AWS Key Management Service concepts + // customer managed CMK in KMS, see Key Management Service concepts // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html). // // This member is required. diff --git a/service/route53/api_op_CreateQueryLoggingConfig.go b/service/route53/api_op_CreateQueryLoggingConfig.go index df94f6dbac1..cc9cb5f278a 100644 --- a/service/route53/api_op_CreateQueryLoggingConfig.go +++ b/service/route53/api_op_CreateQueryLoggingConfig.go @@ -39,51 +39,51 @@ import ( // * You must create the log group in the // us-east-1 region. // -// * You must use the same AWS account to create the log group -// and the hosted zone that you want to configure query logging for. +// * You must use the same account to create the log group and +// the hosted zone that you want to configure query logging for. // -// * When you -// create log groups for query logging, we recommend that you use a consistent -// prefix, for example: /aws/route53/hosted zone name In the next step, you'll -// create a resource policy, which controls access to one or more log groups and -// the associated AWS resources, such as Route 53 hosted zones. There's a limit on -// the number of resource policies that you can create, so we recommend that you -// use a consistent prefix so you can use the same resource policy for all the log -// groups that you create for query logging. +// * When you create +// log groups for query logging, we recommend that you use a consistent prefix, for +// example: /aws/route53/hosted zone name In the next step, you'll create a +// resource policy, which controls access to one or more log groups and the +// associated Amazon Web Services resources, such as Route 53 hosted zones. There's +// a limit on the number of resource policies that you can create, so we recommend +// that you use a consistent prefix so you can use the same resource policy for all +// the log groups that you create for query logging. // -// * Create a CloudWatch Logs resource -// policy, and give it the permissions that Route 53 needs to create log streams -// and to send query logs to log streams. For the value of Resource, specify the -// ARN for the log group that you created in the previous step. To use the same -// resource policy for all the CloudWatch Logs log groups that you created for -// query logging configurations, replace the hosted zone name with , for example: -// arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/ You can't use the -// CloudWatch console to create or edit a resource policy. You must use the -// CloudWatch API, one of the AWS SDKs, or the AWS CLI. +// * Create a CloudWatch Logs +// resource policy, and give it the permissions that Route 53 needs to create log +// streams and to send query logs to log streams. For the value of Resource, +// specify the ARN for the log group that you created in the previous step. To use +// the same resource policy for all the CloudWatch Logs log groups that you created +// for query logging configurations, replace the hosted zone name with , for +// example: arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/ You can't +// use the CloudWatch console to create or edit a resource policy. You must use the +// CloudWatch API, one of the Amazon Web Services SDKs, or the CLI. // -// Log Streams and Edge -// Locations When Route 53 finishes creating the configuration for DNS query -// logging, it does the following: +// Log Streams +// and Edge Locations When Route 53 finishes creating the configuration for DNS +// query logging, it does the following: // -// * Creates a log stream for an edge location the -// first time that the edge location responds to DNS queries for the specified -// hosted zone. That log stream is used to log all queries that Route 53 responds -// to for that edge location. +// * Creates a log stream for an edge +// location the first time that the edge location responds to DNS queries for the +// specified hosted zone. That log stream is used to log all queries that Route 53 +// responds to for that edge location. // -// * Begins to send query logs to the applicable log -// stream. +// * Begins to send query logs to the +// applicable log stream. // -// The name of each log stream is in the following format: hosted zone -// ID/edge location code The edge location code is a three-letter code and an -// arbitrarily assigned number, for example, DFW3. The three-letter code typically -// corresponds with the International Air Transport Association airport code for an -// airport near the edge location. (These abbreviations might change in the -// future.) For a list of edge locations, see "The Route 53 Global Network" on the -// Route 53 Product Details (http://aws.amazon.com/route53/details/) page. Queries -// That Are Logged Query logs contain only the queries that DNS resolvers forward -// to Route 53. If a DNS resolver has already cached the response to a query (such -// as the IP address for a load balancer for example.com), the resolver will -// continue to return the cached response. It doesn't forward another query to +// The name of each log stream is in the following format: +// hosted zone ID/edge location code The edge location code is a three-letter code +// and an arbitrarily assigned number, for example, DFW3. The three-letter code +// typically corresponds with the International Air Transport Association airport +// code for an airport near the edge location. (These abbreviations might change in +// the future.) For a list of edge locations, see "The Route 53 Global Network" on +// the Route 53 Product Details (http://aws.amazon.com/route53/details/) page. +// Queries That Are Logged Query logs contain only the queries that DNS resolvers +// forward to Route 53. If a DNS resolver has already cached the response to a +// query (such as the IP address for a load balancer for example.com), the resolver +// will continue to return the cached response. It doesn't forward another query to // Route 53 until the TTL for the corresponding resource record set expires. // Depending on how many DNS queries are submitted for a resource record set, and // depending on the TTL for that resource record set, query logs might contain @@ -124,7 +124,7 @@ type CreateQueryLoggingConfigInput struct { // (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogGroups.html) // API action, the describe-log-groups // (https://docs.aws.amazon.com/cli/latest/reference/logs/describe-log-groups.html) - // command, or the applicable command in one of the AWS SDKs. + // command, or the applicable command in one of the Amazon Web Services SDKs. // // This member is required. CloudWatchLogsLogGroupArn *string diff --git a/service/route53/api_op_CreateReusableDelegationSet.go b/service/route53/api_op_CreateReusableDelegationSet.go index 1a895b06828..db2cb86dc6a 100644 --- a/service/route53/api_op_CreateReusableDelegationSet.go +++ b/service/route53/api_op_CreateReusableDelegationSet.go @@ -12,9 +12,9 @@ import ( ) // Creates a delegation set (a group of four name servers) that can be reused by -// multiple hosted zones that were created by the same AWS account. You can also -// create a reusable delegation set that uses the four name servers that are -// associated with an existing hosted zone. Specify the hosted zone ID in the +// multiple hosted zones that were created by the same account. You can also create +// a reusable delegation set that uses the four name servers that are associated +// with an existing hosted zone. Specify the hosted zone ID in the // CreateReusableDelegationSet request. You can't associate a reusable delegation // set with a private hosted zone. For information about using a reusable // delegation set to configure white label name servers, see Configuring White diff --git a/service/route53/api_op_CreateVPCAssociationAuthorization.go b/service/route53/api_op_CreateVPCAssociationAuthorization.go index 99435181a3e..80331bbb663 100644 --- a/service/route53/api_op_CreateVPCAssociationAuthorization.go +++ b/service/route53/api_op_CreateVPCAssociationAuthorization.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Authorizes the AWS account that created a specified VPC to submit an +// Authorizes the account that created a specified VPC to submit an // AssociateVPCWithHostedZone request to associate the VPC with a specified hosted // zone that was created by a different account. To submit a // CreateVPCAssociationAuthorization request, you must use the account that created diff --git a/service/route53/api_op_DeleteHealthCheck.go b/service/route53/api_op_DeleteHealthCheck.go index e64265c2881..e1f85c3e174 100644 --- a/service/route53/api_op_DeleteHealthCheck.go +++ b/service/route53/api_op_DeleteHealthCheck.go @@ -18,7 +18,7 @@ import ( // failover configuration. For more information, see Replacing and Deleting Health // Checks // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html#health-checks-deleting.html) -// in the Amazon Route 53 Developer Guide. If you're using AWS Cloud Map and you +// in the Amazon Route 53 Developer Guide. If you're using Cloud Map and you // configured Cloud Map to create a Route 53 health check when you register an // instance, you can't use the Route 53 DeleteHealthCheck command to delete the // health check. The health check is deleted automatically when you deregister the diff --git a/service/route53/api_op_DeleteHostedZone.go b/service/route53/api_op_DeleteHostedZone.go index 0300f5d7589..cb98d8ee78d 100644 --- a/service/route53/api_op_DeleteHostedZone.go +++ b/service/route53/api_op_DeleteHostedZone.go @@ -12,7 +12,7 @@ import ( ) // Deletes a hosted zone. If the hosted zone was created by another service, such -// as AWS Cloud Map, see Deleting Public Hosted Zones That Were Created by Another +// as Cloud Map, see Deleting Public Hosted Zones That Were Created by Another // Service // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DeleteHostedZone.html#delete-public-hosted-zone-created-by-another-service) // in the Amazon Route 53 Developer Guide for information about how to delete it. @@ -50,7 +50,7 @@ import ( // // * Use // the ListHostedZones action to get a list of the hosted zones associated with the -// current AWS account. +// current account. func (c *Client) DeleteHostedZone(ctx context.Context, params *DeleteHostedZoneInput, optFns ...func(*Options)) (*DeleteHostedZoneOutput, error) { if params == nil { params = &DeleteHostedZoneInput{} diff --git a/service/route53/api_op_DeleteVPCAssociationAuthorization.go b/service/route53/api_op_DeleteVPCAssociationAuthorization.go index a2314553440..9ec4de1ed39 100644 --- a/service/route53/api_op_DeleteVPCAssociationAuthorization.go +++ b/service/route53/api_op_DeleteVPCAssociationAuthorization.go @@ -15,10 +15,10 @@ import ( // associate a specified VPC with a hosted zone that was created by a different // account. You must use the account that created the hosted zone to submit a // DeleteVPCAssociationAuthorization request. Sending this request only prevents -// the AWS account that created the VPC from associating the VPC with the Amazon -// Route 53 hosted zone in the future. If the VPC is already associated with the -// hosted zone, DeleteVPCAssociationAuthorization won't disassociate the VPC from -// the hosted zone. If you want to delete an existing association, use +// the account that created the VPC from associating the VPC with the Amazon Route +// 53 hosted zone in the future. If the VPC is already associated with the hosted +// zone, DeleteVPCAssociationAuthorization won't disassociate the VPC from the +// hosted zone. If you want to delete an existing association, use // DisassociateVPCFromHostedZone. func (c *Client) DeleteVPCAssociationAuthorization(ctx context.Context, params *DeleteVPCAssociationAuthorizationInput, optFns ...func(*Options)) (*DeleteVPCAssociationAuthorizationOutput, error) { if params == nil { @@ -36,20 +36,20 @@ func (c *Client) DeleteVPCAssociationAuthorization(ctx context.Context, params * } // A complex type that contains information about the request to remove -// authorization to associate a VPC that was created by one AWS account with a -// hosted zone that was created with a different AWS account. +// authorization to associate a VPC that was created by one account with a hosted +// zone that was created with a different account. type DeleteVPCAssociationAuthorizationInput struct { - // When removing authorization to associate a VPC that was created by one AWS - // account with a hosted zone that was created with a different AWS account, the ID - // of the hosted zone. + // When removing authorization to associate a VPC that was created by one account + // with a hosted zone that was created with a different account, the ID of the + // hosted zone. // // This member is required. HostedZoneId *string - // When removing authorization to associate a VPC that was created by one AWS - // account with a hosted zone that was created with a different AWS account, a - // complex type that includes the ID and region of the VPC. + // When removing authorization to associate a VPC that was created by one account + // with a hosted zone that was created with a different account, a complex type + // that includes the ID and region of the VPC. // // This member is required. VPC *types.VPC diff --git a/service/route53/api_op_DisassociateVPCFromHostedZone.go b/service/route53/api_op_DisassociateVPCFromHostedZone.go index 0a4601ff5ab..465584cfcc8 100644 --- a/service/route53/api_op_DisassociateVPCFromHostedZone.go +++ b/service/route53/api_op_DisassociateVPCFromHostedZone.go @@ -25,11 +25,11 @@ import ( // hosted zone or the account that created the Amazon VPC. // // * Some services, such -// as AWS Cloud Map and Amazon Elastic File System (Amazon EFS) automatically -// create hosted zones and associate VPCs with the hosted zones. A service can -// create a hosted zone using your account or using its own account. You can -// disassociate a VPC from a hosted zone only if the service created the hosted -// zone using your account. When you run DisassociateVPCFromHostedZone +// as Cloud Map and Amazon Elastic File System (Amazon EFS) automatically create +// hosted zones and associate VPCs with the hosted zones. A service can create a +// hosted zone using your account or using its own account. You can disassociate a +// VPC from a hosted zone only if the service created the hosted zone using your +// account. When you run DisassociateVPCFromHostedZone // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListHostedZonesByVPC.html), // if the hosted zone has a value for OwningAccount, you can use // DisassociateVPCFromHostedZone. If the hosted zone has a value for OwningService, diff --git a/service/route53/api_op_GetAccountLimit.go b/service/route53/api_op_GetAccountLimit.go index b7703ab2111..ab9e062689c 100644 --- a/service/route53/api_op_GetAccountLimit.go +++ b/service/route53/api_op_GetAccountLimit.go @@ -17,8 +17,8 @@ import ( // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html) // in the Amazon Route 53 Developer Guide. To request a higher limit, open a case // (https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-route53). -// You can also view account limits in AWS Trusted Advisor. Sign in to the AWS -// Management Console and open the Trusted Advisor console at +// You can also view account limits in Amazon Web Services Trusted Advisor. Sign in +// to the Management Console and open the Trusted Advisor console at // https://console.aws.amazon.com/trustedadvisor/ // (https://console.aws.amazon.com/trustedadvisor). Then choose Service limits in // the navigation pane. diff --git a/service/route53/api_op_GetCheckerIpRanges.go b/service/route53/api_op_GetCheckerIpRanges.go index e3440e7f0e1..1f9c9c30328 100644 --- a/service/route53/api_op_GetCheckerIpRanges.go +++ b/service/route53/api_op_GetCheckerIpRanges.go @@ -13,8 +13,8 @@ import ( // Route 53 does not perform authorization for this API because it retrieves // information that is already available to the public. GetCheckerIpRanges still // works, but we recommend that you download ip-ranges.json, which includes IP -// address ranges for all AWS services. For more information, see IP Address Ranges -// of Amazon Route 53 Servers +// address ranges for all Amazon Web Services services. For more information, see +// IP Address Ranges of Amazon Route 53 Servers // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/route-53-ip-addresses.html) // in the Amazon Route 53 Developer Guide. func (c *Client) GetCheckerIpRanges(ctx context.Context, params *GetCheckerIpRangesInput, optFns ...func(*Options)) (*GetCheckerIpRangesOutput, error) { diff --git a/service/route53/api_op_GetHealthCheck.go b/service/route53/api_op_GetHealthCheck.go index 7050c824a19..9537cfeff20 100644 --- a/service/route53/api_op_GetHealthCheck.go +++ b/service/route53/api_op_GetHealthCheck.go @@ -44,7 +44,7 @@ type GetHealthCheckInput struct { type GetHealthCheckOutput struct { // A complex type that contains information about one health check that is - // associated with the current AWS account. + // associated with the current account. // // This member is required. HealthCheck *types.HealthCheck diff --git a/service/route53/api_op_GetHealthCheckCount.go b/service/route53/api_op_GetHealthCheckCount.go index d3a04f11995..a2a65760dad 100644 --- a/service/route53/api_op_GetHealthCheckCount.go +++ b/service/route53/api_op_GetHealthCheckCount.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves the number of health checks that are associated with the current AWS +// Retrieves the number of health checks that are associated with the current // account. func (c *Client) GetHealthCheckCount(ctx context.Context, params *GetHealthCheckCountInput, optFns ...func(*Options)) (*GetHealthCheckCountOutput, error) { if params == nil { @@ -28,7 +28,7 @@ func (c *Client) GetHealthCheckCount(ctx context.Context, params *GetHealthCheck } // A request for the number of health checks that are associated with the current -// AWS account. +// account. type GetHealthCheckCountInput struct { noSmithyDocumentSerde } @@ -36,7 +36,7 @@ type GetHealthCheckCountInput struct { // A complex type that contains the response to a GetHealthCheckCount request. type GetHealthCheckCountOutput struct { - // The number of health checks associated with the current AWS account. + // The number of health checks associated with the current account. // // This member is required. HealthCheckCount *int64 diff --git a/service/route53/api_op_GetHealthCheckStatus.go b/service/route53/api_op_GetHealthCheckStatus.go index 5b9d2e1235a..3b66233ef3c 100644 --- a/service/route53/api_op_GetHealthCheckStatus.go +++ b/service/route53/api_op_GetHealthCheckStatus.go @@ -11,7 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets status of a specified health check. +// Gets status of a specified health check. This API is intended for use during +// development to diagnose behavior. It doesn’t support production use-cases with +// high query rates that require immediate and actionable responses. func (c *Client) GetHealthCheckStatus(ctx context.Context, params *GetHealthCheckStatusInput, optFns ...func(*Options)) (*GetHealthCheckStatusOutput, error) { if params == nil { params = &GetHealthCheckStatusInput{} diff --git a/service/route53/api_op_GetHostedZoneCount.go b/service/route53/api_op_GetHostedZoneCount.go index 631b4587666..3ec9f8da4cb 100644 --- a/service/route53/api_op_GetHostedZoneCount.go +++ b/service/route53/api_op_GetHostedZoneCount.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves the number of hosted zones that are associated with the current AWS +// Retrieves the number of hosted zones that are associated with the current // account. func (c *Client) GetHostedZoneCount(ctx context.Context, params *GetHostedZoneCountInput, optFns ...func(*Options)) (*GetHostedZoneCountOutput, error) { if params == nil { @@ -28,7 +28,7 @@ func (c *Client) GetHostedZoneCount(ctx context.Context, params *GetHostedZoneCo } // A request to retrieve a count of all the hosted zones that are associated with -// the current AWS account. +// the current account. type GetHostedZoneCountInput struct { noSmithyDocumentSerde } @@ -37,7 +37,7 @@ type GetHostedZoneCountInput struct { type GetHostedZoneCountOutput struct { // The total number of public and private hosted zones that are associated with the - // current AWS account. + // current account. // // This member is required. HostedZoneCount *int64 diff --git a/service/route53/api_op_GetTrafficPolicyInstanceCount.go b/service/route53/api_op_GetTrafficPolicyInstanceCount.go index f308121cfc8..58adee392a7 100644 --- a/service/route53/api_op_GetTrafficPolicyInstanceCount.go +++ b/service/route53/api_op_GetTrafficPolicyInstanceCount.go @@ -11,7 +11,7 @@ import ( ) // Gets the number of traffic policy instances that are associated with the current -// AWS account. +// account. func (c *Client) GetTrafficPolicyInstanceCount(ctx context.Context, params *GetTrafficPolicyInstanceCountInput, optFns ...func(*Options)) (*GetTrafficPolicyInstanceCountOutput, error) { if params == nil { params = &GetTrafficPolicyInstanceCountInput{} @@ -28,7 +28,7 @@ func (c *Client) GetTrafficPolicyInstanceCount(ctx context.Context, params *GetT } // Request to get the number of traffic policy instances that are associated with -// the current AWS account. +// the current account. type GetTrafficPolicyInstanceCountInput struct { noSmithyDocumentSerde } @@ -37,7 +37,7 @@ type GetTrafficPolicyInstanceCountInput struct { // Amazon Route 53 created based on a specified traffic policy. type GetTrafficPolicyInstanceCountOutput struct { - // The number of traffic policy instances that are associated with the current AWS + // The number of traffic policy instances that are associated with the current // account. // // This member is required. diff --git a/service/route53/api_op_ListHealthChecks.go b/service/route53/api_op_ListHealthChecks.go index 108169f9244..5905a3a45c6 100644 --- a/service/route53/api_op_ListHealthChecks.go +++ b/service/route53/api_op_ListHealthChecks.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieve a list of the health checks that are associated with the current AWS +// Retrieve a list of the health checks that are associated with the current // account. func (c *Client) ListHealthChecks(ctx context.Context, params *ListHealthChecksInput, optFns ...func(*Options)) (*ListHealthChecksOutput, error) { if params == nil { @@ -30,7 +30,7 @@ func (c *Client) ListHealthChecks(ctx context.Context, params *ListHealthChecksI } // A request to retrieve a list of the health checks that are associated with the -// current AWS account. +// current account. type ListHealthChecksInput struct { // If the value of IsTruncated in the previous response was true, you have more @@ -54,7 +54,7 @@ type ListHealthChecksInput struct { type ListHealthChecksOutput struct { // A complex type that contains one HealthCheck element for each health check that - // is associated with the current AWS account. + // is associated with the current account. // // This member is required. HealthChecks []types.HealthCheck diff --git a/service/route53/api_op_ListHostedZones.go b/service/route53/api_op_ListHostedZones.go index 8f7def3916d..30cd7cabe4d 100644 --- a/service/route53/api_op_ListHostedZones.go +++ b/service/route53/api_op_ListHostedZones.go @@ -13,10 +13,10 @@ import ( ) // Retrieves a list of the public and private hosted zones that are associated with -// the current AWS account. The response includes a HostedZones child element for -// each hosted zone. Amazon Route 53 returns a maximum of 100 items in each -// response. If you have a lot of hosted zones, you can use the maxitems parameter -// to list them in groups of up to 100. +// the current account. The response includes a HostedZones child element for each +// hosted zone. Amazon Route 53 returns a maximum of 100 items in each response. If +// you have a lot of hosted zones, you can use the maxitems parameter to list them +// in groups of up to 100. func (c *Client) ListHostedZones(ctx context.Context, params *ListHostedZonesInput, optFns ...func(*Options)) (*ListHostedZonesOutput, error) { if params == nil { params = &ListHostedZonesInput{} @@ -33,7 +33,7 @@ func (c *Client) ListHostedZones(ctx context.Context, params *ListHostedZonesInp } // A request to retrieve a list of the public and private hosted zones that are -// associated with the current AWS account. +// associated with the current account. type ListHostedZonesInput struct { // If you're using reusable delegation sets and you want to list all of the hosted diff --git a/service/route53/api_op_ListHostedZonesByName.go b/service/route53/api_op_ListHostedZonesByName.go index e908b42cad1..26f8122358d 100644 --- a/service/route53/api_op_ListHostedZonesByName.go +++ b/service/route53/api_op_ListHostedZonesByName.go @@ -13,7 +13,7 @@ import ( // Retrieves a list of your hosted zones in lexicographic order. The response // includes a HostedZones child element for each hosted zone created by the current -// AWS account. ListHostedZonesByName sorts hosted zones by name with the labels +// account. ListHostedZonesByName sorts hosted zones by name with the labels // reversed. For example: com.example.www. Note the trailing dot, which can change // the sort order in some circumstances. If the domain name includes escape // characters or Punycode, ListHostedZonesByName alphabetizes the domain name using @@ -39,14 +39,14 @@ import ( // current response. // // * If the value of IsTruncated in the response is true, there -// are more hosted zones associated with the current AWS account. If IsTruncated is +// are more hosted zones associated with the current account. If IsTruncated is // false, this response includes the last hosted zone that is associated with the // current account. The NextDNSName element and NextHostedZoneId elements are // omitted from the response. // // * The NextDNSName and NextHostedZoneId elements in // the response contain the domain name and the hosted zone ID of the next hosted -// zone that is associated with the current AWS account. If you want to list more +// zone that is associated with the current account. If you want to list more // hosted zones, make another call to ListHostedZonesByName, and specify the value // of NextDNSName and NextHostedZoneId in the dnsname and hostedzoneid parameters, // respectively. @@ -66,13 +66,13 @@ func (c *Client) ListHostedZonesByName(ctx context.Context, params *ListHostedZo } // Retrieves a list of the public and private hosted zones that are associated with -// the current AWS account in ASCII order by domain name. +// the current account in ASCII order by domain name. type ListHostedZonesByNameInput struct { // (Optional) For your first request to ListHostedZonesByName, include the dnsname // parameter only if you want to specify the name of the first hosted zone in the // response. If you don't include the dnsname parameter, Amazon Route 53 returns - // all of the hosted zones that were created by the current AWS account, in ASCII + // all of the hosted zones that were created by the current account, in ASCII // order. For subsequent requests, include both dnsname and hostedzoneid // parameters. For dnsname, specify the value of NextDNSName from the previous // response. diff --git a/service/route53/api_op_ListHostedZonesByVPC.go b/service/route53/api_op_ListHostedZonesByVPC.go index bebca0fa50e..383def4a111 100644 --- a/service/route53/api_op_ListHostedZonesByVPC.go +++ b/service/route53/api_op_ListHostedZonesByVPC.go @@ -12,18 +12,18 @@ import ( ) // Lists all the private hosted zones that a specified VPC is associated with, -// regardless of which AWS account or AWS service owns the hosted zones. The -// HostedZoneOwner structure in the response contains one of the following -// values: +// regardless of which account or Amazon Web Services service owns the hosted +// zones. The HostedZoneOwner structure in the response contains one of the +// following values: // -// * An OwningAccount element, which contains the account number of either -// the current AWS account or another AWS account. Some services, such as AWS Cloud +// * An OwningAccount element, which contains the account number +// of either the current account or another account. Some services, such as Cloud // Map, create hosted zones using the current account. // // * An OwningService element, -// which identifies the AWS service that created and owns the hosted zone. For -// example, if a hosted zone was created by Amazon Elastic File System (Amazon -// EFS), the value of Owner is efs.amazonaws.com. +// which identifies the Amazon Web Services service that created and owns the +// hosted zone. For example, if a hosted zone was created by Amazon Elastic File +// System (Amazon EFS), the value of Owner is efs.amazonaws.com. func (c *Client) ListHostedZonesByVPC(ctx context.Context, params *ListHostedZonesByVPCInput, optFns ...func(*Options)) (*ListHostedZonesByVPCOutput, error) { if params == nil { params = &ListHostedZonesByVPCInput{} @@ -40,7 +40,7 @@ func (c *Client) ListHostedZonesByVPC(ctx context.Context, params *ListHostedZon } // Lists all the private hosted zones that a specified VPC is associated with, -// regardless of which AWS account created the hosted zones. +// regardless of which account created the hosted zones. type ListHostedZonesByVPCInput struct { // The ID of the Amazon VPC that you want to list hosted zones for. @@ -48,8 +48,8 @@ type ListHostedZonesByVPCInput struct { // This member is required. VPCId *string - // For the Amazon VPC that you specified for VPCId, the AWS Region that you created - // the VPC in. + // For the Amazon VPC that you specified for VPCId, the Amazon Web Services Region + // that you created the VPC in. // // This member is required. VPCRegion types.VPCRegion @@ -86,8 +86,8 @@ type ListHostedZonesByVPCOutput struct { // This member is required. MaxItems *int32 - // The value that you specified for NextToken in the most recent - // ListHostedZonesByVPC request. + // The value that you will use for NextToken in the next ListHostedZonesByVPC + // request. NextToken *string // Metadata pertaining to the operation's result. diff --git a/service/route53/api_op_ListQueryLoggingConfigs.go b/service/route53/api_op_ListQueryLoggingConfigs.go index 7f48d5d547f..c1907e89a02 100644 --- a/service/route53/api_op_ListQueryLoggingConfigs.go +++ b/service/route53/api_op_ListQueryLoggingConfigs.go @@ -13,9 +13,8 @@ import ( ) // Lists the configurations for DNS query logging that are associated with the -// current AWS account or the configuration that is associated with a specified -// hosted zone. For more information about DNS query logs, see -// CreateQueryLoggingConfig +// current account or the configuration that is associated with a specified hosted +// zone. For more information about DNS query logs, see CreateQueryLoggingConfig // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateQueryLoggingConfig.html). // Additional information, including the format of DNS query logs, appears in // Logging DNS Queries @@ -41,18 +40,18 @@ type ListQueryLoggingConfigsInput struct { // (Optional) If you want to list the query logging configuration that is // associated with a hosted zone, specify the ID in HostedZoneId. If you don't // specify a hosted zone ID, ListQueryLoggingConfigs returns all of the - // configurations that are associated with the current AWS account. + // configurations that are associated with the current account. HostedZoneId *string // (Optional) The maximum number of query logging configurations that you want - // Amazon Route 53 to return in response to the current request. If the current AWS + // Amazon Route 53 to return in response to the current request. If the current // account has more than MaxResults configurations, use the value of NextToken // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListQueryLoggingConfigs.html#API_ListQueryLoggingConfigs_RequestSyntax) // in the response to get the next page of results. If you don't specify a value // for MaxResults, Route 53 returns up to 100 configurations. MaxResults *int32 - // (Optional) If the current AWS account has more than MaxResults query logging + // (Optional) If the current account has more than MaxResults query logging // configurations, use NextToken to get the second and subsequent pages of results. // For the first ListQueryLoggingConfigs request, omit this value. For the second // and subsequent requests, get the value of NextToken from the previous response @@ -67,15 +66,15 @@ type ListQueryLoggingConfigsOutput struct { // An array that contains one QueryLoggingConfig // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_QueryLoggingConfig.html) // element for each configuration for DNS query logging that is associated with the - // current AWS account. + // current account. // // This member is required. QueryLoggingConfigs []types.QueryLoggingConfig // If a response includes the last of the query logging configurations that are - // associated with the current AWS account, NextToken doesn't appear in the - // response. If a response doesn't include the last of the configurations, you can - // get more configurations by submitting another ListQueryLoggingConfigs + // associated with the current account, NextToken doesn't appear in the response. + // If a response doesn't include the last of the configurations, you can get more + // configurations by submitting another ListQueryLoggingConfigs // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListQueryLoggingConfigs.html) // request. Get the value of NextToken that Amazon Route 53 returned in the // previous response and include it in NextToken in the next request. @@ -162,7 +161,7 @@ var _ ListQueryLoggingConfigsAPIClient = (*Client)(nil) // ListQueryLoggingConfigs type ListQueryLoggingConfigsPaginatorOptions struct { // (Optional) The maximum number of query logging configurations that you want - // Amazon Route 53 to return in response to the current request. If the current AWS + // Amazon Route 53 to return in response to the current request. If the current // account has more than MaxResults configurations, use the value of NextToken // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListQueryLoggingConfigs.html#API_ListQueryLoggingConfigs_RequestSyntax) // in the response to get the next page of results. If you don't specify a value diff --git a/service/route53/api_op_ListReusableDelegationSets.go b/service/route53/api_op_ListReusableDelegationSets.go index 5eb6cb14d81..4db0015b505 100644 --- a/service/route53/api_op_ListReusableDelegationSets.go +++ b/service/route53/api_op_ListReusableDelegationSets.go @@ -12,7 +12,7 @@ import ( ) // Retrieves a list of the reusable delegation sets that are associated with the -// current AWS account. +// current account. func (c *Client) ListReusableDelegationSets(ctx context.Context, params *ListReusableDelegationSetsInput, optFns ...func(*Options)) (*ListReusableDelegationSetsOutput, error) { if params == nil { params = &ListReusableDelegationSetsInput{} @@ -29,7 +29,7 @@ func (c *Client) ListReusableDelegationSets(ctx context.Context, params *ListReu } // A request to get a list of the reusable delegation sets that are associated with -// the current AWS account. +// the current account. type ListReusableDelegationSetsInput struct { // If the value of IsTruncated in the previous response was true, you have more @@ -50,11 +50,11 @@ type ListReusableDelegationSetsInput struct { } // A complex type that contains information about the reusable delegation sets that -// are associated with the current AWS account. +// are associated with the current account. type ListReusableDelegationSetsOutput struct { // A complex type that contains one DelegationSet element for each reusable - // delegation set that was created by the current AWS account. + // delegation set that was created by the current account. // // This member is required. DelegationSets []types.DelegationSet diff --git a/service/route53/api_op_ListTagsForResource.go b/service/route53/api_op_ListTagsForResource.go index c71c828a6c9..b93946ca5e6 100644 --- a/service/route53/api_op_ListTagsForResource.go +++ b/service/route53/api_op_ListTagsForResource.go @@ -14,7 +14,7 @@ import ( // Lists tags for one health check or hosted zone. For information about using tags // for cost allocation, see Using Cost Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) -// in the AWS Billing and Cost Management User Guide. +// in the Billing and Cost Management User Guide. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/route53/api_op_ListTagsForResources.go b/service/route53/api_op_ListTagsForResources.go index 845c5e88f0c..13109083b13 100644 --- a/service/route53/api_op_ListTagsForResources.go +++ b/service/route53/api_op_ListTagsForResources.go @@ -14,7 +14,7 @@ import ( // Lists tags for up to 10 health checks or hosted zones. For information about // using tags for cost allocation, see Using Cost Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) -// in the AWS Billing and Cost Management User Guide. +// in the Billing and Cost Management User Guide. func (c *Client) ListTagsForResources(ctx context.Context, params *ListTagsForResourcesInput, optFns ...func(*Options)) (*ListTagsForResourcesOutput, error) { if params == nil { params = &ListTagsForResourcesInput{} diff --git a/service/route53/api_op_ListTrafficPolicies.go b/service/route53/api_op_ListTrafficPolicies.go index 390d91be620..3b013258213 100644 --- a/service/route53/api_op_ListTrafficPolicies.go +++ b/service/route53/api_op_ListTrafficPolicies.go @@ -12,9 +12,9 @@ import ( ) // Gets information about the latest version for every traffic policy that is -// associated with the current AWS account. Policies are listed in the order that -// they were created in. For information about how of deleting a traffic policy -// affects the response from ListTrafficPolicies, see DeleteTrafficPolicy +// associated with the current account. Policies are listed in the order that they +// were created in. For information about how of deleting a traffic policy affects +// the response from ListTrafficPolicies, see DeleteTrafficPolicy // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicy.html). func (c *Client) ListTrafficPolicies(ctx context.Context, params *ListTrafficPoliciesInput, optFns ...func(*Options)) (*ListTrafficPoliciesOutput, error) { if params == nil { @@ -32,7 +32,7 @@ func (c *Client) ListTrafficPolicies(ctx context.Context, params *ListTrafficPol } // A complex type that contains the information about the request to list the -// traffic policies that are associated with the current AWS account. +// traffic policies that are associated with the current account. type ListTrafficPoliciesInput struct { // (Optional) The maximum number of traffic policies that you want Amazon Route 53 @@ -77,7 +77,7 @@ type ListTrafficPoliciesOutput struct { TrafficPolicyIdMarker *string // A list that contains one TrafficPolicySummary element for each traffic policy - // that was created by the current AWS account. + // that was created by the current account. // // This member is required. TrafficPolicySummaries []types.TrafficPolicySummary diff --git a/service/route53/api_op_ListTrafficPolicyInstances.go b/service/route53/api_op_ListTrafficPolicyInstances.go index 07cfa75d5ac..8e2de19fcde 100644 --- a/service/route53/api_op_ListTrafficPolicyInstances.go +++ b/service/route53/api_op_ListTrafficPolicyInstances.go @@ -12,10 +12,10 @@ import ( ) // Gets information about the traffic policy instances that you created by using -// the current AWS account. After you submit an UpdateTrafficPolicyInstance -// request, there's a brief delay while Amazon Route 53 creates the resource record -// sets that are specified in the traffic policy definition. For more information, -// see the State response element. Route 53 returns a maximum of 100 items in each +// the current account. After you submit an UpdateTrafficPolicyInstance request, +// there's a brief delay while Amazon Route 53 creates the resource record sets +// that are specified in the traffic policy definition. For more information, see +// the State response element. Route 53 returns a maximum of 100 items in each // response. If you have a lot of traffic policy instances, you can use the // MaxItems parameter to list them in groups of up to 100. func (c *Client) ListTrafficPolicyInstances(ctx context.Context, params *ListTrafficPolicyInstancesInput, optFns ...func(*Options)) (*ListTrafficPolicyInstancesOutput, error) { @@ -34,7 +34,7 @@ func (c *Client) ListTrafficPolicyInstances(ctx context.Context, params *ListTra } // A request to get information about the traffic policy instances that you created -// by using the current AWS account. +// by using the current account. type ListTrafficPolicyInstancesInput struct { // If the value of IsTruncated in the previous response was true, you have more diff --git a/service/route53/api_op_TestDNSAnswer.go b/service/route53/api_op_TestDNSAnswer.go index 4bcc5f0b04c..ef6121dee9b 100644 --- a/service/route53/api_op_TestDNSAnswer.go +++ b/service/route53/api_op_TestDNSAnswer.go @@ -72,7 +72,8 @@ type TestDNSAnswerInput struct { // If you want to simulate a request from a specific DNS resolver, specify the IP // address for that resolver. If you omit this value, TestDnsAnswer uses the IP - // address of a DNS resolver in the AWS US East (N. Virginia) Region (us-east-1). + // address of a DNS resolver in the Amazon Web Services US East (N. Virginia) + // Region (us-east-1). ResolverIP *string noSmithyDocumentSerde diff --git a/service/route53/deserializers.go b/service/route53/deserializers.go index 3fa3c3bed7e..93980a9a0ea 100644 --- a/service/route53/deserializers.go +++ b/service/route53/deserializers.go @@ -107,6 +107,9 @@ func awsRestxml_deserializeOpErrorActivateKeySigningKey(response *smithyhttp.Res case strings.EqualFold("ConcurrentModification", errorCode): return awsRestxml_deserializeErrorConcurrentModification(response, errorBody) + case strings.EqualFold("InvalidInput", errorCode): + return awsRestxml_deserializeErrorInvalidInput(response, errorBody) + case strings.EqualFold("InvalidKMSArn", errorCode): return awsRestxml_deserializeErrorInvalidKMSArn(response, errorBody) @@ -2183,6 +2186,9 @@ func awsRestxml_deserializeOpErrorDeactivateKeySigningKey(response *smithyhttp.R case strings.EqualFold("ConcurrentModification", errorCode): return awsRestxml_deserializeErrorConcurrentModification(response, errorBody) + case strings.EqualFold("InvalidInput", errorCode): + return awsRestxml_deserializeErrorInvalidInput(response, errorBody) + case strings.EqualFold("InvalidKeySigningKeyStatus", errorCode): return awsRestxml_deserializeErrorInvalidKeySigningKeyStatus(response, errorBody) @@ -2557,6 +2563,9 @@ func awsRestxml_deserializeOpErrorDeleteKeySigningKey(response *smithyhttp.Respo case strings.EqualFold("ConcurrentModification", errorCode): return awsRestxml_deserializeErrorConcurrentModification(response, errorBody) + case strings.EqualFold("InvalidInput", errorCode): + return awsRestxml_deserializeErrorInvalidInput(response, errorBody) + case strings.EqualFold("InvalidKMSArn", errorCode): return awsRestxml_deserializeErrorInvalidKMSArn(response, errorBody) @@ -3089,6 +3098,9 @@ func awsRestxml_deserializeOpErrorDisableHostedZoneDNSSEC(response *smithyhttp.R case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("InvalidInput", errorCode): + return awsRestxml_deserializeErrorInvalidInput(response, errorBody) + case strings.EqualFold("InvalidKMSArn", errorCode): return awsRestxml_deserializeErrorInvalidKMSArn(response, errorBody) @@ -3396,6 +3408,9 @@ func awsRestxml_deserializeOpErrorEnableHostedZoneDNSSEC(response *smithyhttp.Re case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("InvalidInput", errorCode): + return awsRestxml_deserializeErrorInvalidInput(response, errorBody) + case strings.EqualFold("InvalidKMSArn", errorCode): return awsRestxml_deserializeErrorInvalidKMSArn(response, errorBody) @@ -3973,6 +3988,9 @@ func awsRestxml_deserializeOpErrorGetDNSSEC(response *smithyhttp.Response, metad case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("InvalidInput", errorCode): + return awsRestxml_deserializeErrorInvalidInput(response, errorBody) + case strings.EqualFold("NoSuchHostedZone", errorCode): return awsRestxml_deserializeErrorNoSuchHostedZone(response, errorBody) @@ -14812,6 +14830,19 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig sv.ResourcePath = ptr.String(xtv) } + case strings.EqualFold("RoutingControlArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.RoutingControlArn = ptr.String(xtv) + } + case strings.EqualFold("SearchString", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/route53/serializers.go b/service/route53/serializers.go index ae93fa71a11..661b43aeecd 100644 --- a/service/route53/serializers.go +++ b/service/route53/serializers.go @@ -5242,6 +5242,17 @@ func awsRestxml_serializeDocumentHealthCheckConfig(v *types.HealthCheckConfig, v el := value.MemberElement(root) el.String(*v.ResourcePath) } + if v.RoutingControlArn != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "RoutingControlArn", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.RoutingControlArn) + } if v.SearchString != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ diff --git a/service/route53/types/enums.go b/service/route53/types/enums.go index 816364010e2..5c764cdb998 100644 --- a/service/route53/types/enums.go +++ b/service/route53/types/enums.go @@ -195,6 +195,7 @@ const ( HealthCheckTypeTcp HealthCheckType = "TCP" HealthCheckTypeCalculated HealthCheckType = "CALCULATED" HealthCheckTypeCloudwatchMetric HealthCheckType = "CLOUDWATCH_METRIC" + HealthCheckTypeRecoveryControl HealthCheckType = "RECOVERY_CONTROL" ) // Values returns all known values for HealthCheckType. Note that this can be @@ -209,6 +210,7 @@ func (HealthCheckType) Values() []HealthCheckType { "TCP", "CALCULATED", "CLOUDWATCH_METRIC", + "RECOVERY_CONTROL", } } diff --git a/service/route53/types/errors.go b/service/route53/types/errors.go index 75083f35e3c..4e7dfffef41 100644 --- a/service/route53/types/errors.go +++ b/service/route53/types/errors.go @@ -403,6 +403,11 @@ func (e *IncompatibleVersion) ErrorFault() smithy.ErrorFault { return smithy.Fau // // * The resource policy // hasn't finished propagating yet. +// +// * The Key management service (KMS) key you +// specified doesn’t exist or it can’t be used with the log group associated with +// query log. Update or provide a resource policy to grant permissions for the KMS +// key. type InsufficientCloudWatchLogsResourcePolicy struct { Message *string @@ -757,7 +762,7 @@ func (e *LastVPCAssociation) ErrorFault() smithy.ErrorFault { return smithy.Faul // with a private hosted zone, see GetHostedZoneLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetHostedZoneLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the AWS Support Center. +// with the Amazon Web Services Support Center. type LimitsExceeded struct { Message *string @@ -1081,9 +1086,10 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau // current limit for an account, see GetAccountLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the AWS Support Center. You have reached the maximum number of active -// health checks for an AWS account. To request a higher limit, create a case -// (http://aws.amazon.com/route53-request) with the AWS Support Center. +// with the Amazon Web Services Support Center. You have reached the maximum number +// of active health checks for an account. To request a higher limit, create a case +// (http://aws.amazon.com/route53-request) with the Amazon Web Services Support +// Center. type TooManyHealthChecks struct { Message *string @@ -1114,7 +1120,7 @@ func (e *TooManyHealthChecks) ErrorFault() smithy.ErrorFault { return smithy.Fau // delegation set, see GetReusableDelegationSetLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetReusableDelegationSetLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the AWS Support Center. +// with the Amazon Web Services Support Center. type TooManyHostedZones struct { Message *string @@ -1161,7 +1167,7 @@ func (e *TooManyKeySigningKeys) ErrorFault() smithy.ErrorFault { return smithy.F // see GetAccountLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the AWS Support Center. +// with the Amazon Web Services Support Center. type TooManyTrafficPolicies struct { Message *string @@ -1188,7 +1194,7 @@ func (e *TooManyTrafficPolicies) ErrorFault() smithy.ErrorFault { return smithy. // current limit for an account, see GetAccountLimit // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). // To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the AWS Support Center. +// with the Amazon Web Services Support Center. type TooManyTrafficPolicyInstances struct { Message *string diff --git a/service/route53/types/types.go b/service/route53/types/types.go index f9b9c685704..cf876f09193 100644 --- a/service/route53/types/types.go +++ b/service/route53/types/types.go @@ -79,24 +79,24 @@ type AlarmIdentifier struct { noSmithyDocumentSerde } -// Alias resource record sets only: Information about the AWS resource, such as a -// CloudFront distribution or an Amazon S3 bucket, that you want to route traffic -// to. When creating resource record sets for a private hosted zone, note the -// following: +// Alias resource record sets only: Information about the Amazon Web Services +// resource, such as a CloudFront distribution or an Amazon S3 bucket, that you +// want to route traffic to. When creating resource record sets for a private +// hosted zone, note the following: // -// * Creating geolocation alias resource record sets or latency alias -// resource record sets in a private hosted zone is unsupported. +// * Creating geolocation alias resource record +// sets or latency alias resource record sets in a private hosted zone is +// unsupported. // -// * For information -// about creating failover resource record sets in a private hosted zone, see -// Configuring Failover in a Private Hosted Zone +// * For information about creating failover resource record sets in +// a private hosted zone, see Configuring Failover in a Private Hosted Zone // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html). type AliasTarget struct { // Alias resource record sets only: The value that you specify depends on where you // want to route queries: Amazon API Gateway custom regional APIs and // edge-optimized APIs Specify the applicable domain name for your API. You can get - // the applicable value using the AWS CLI command get-domain-names + // the applicable value using the CLI command get-domain-names // (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-domain-names.html): // // * @@ -113,8 +113,8 @@ type AliasTarget struct { // endpoint, such as // vpce-123456789abcdef01-example-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com. // For edge-optimized APIs, this is the domain name for the corresponding - // CloudFront distribution. You can get the value of DnsName using the AWS CLI - // command describe-vpc-endpoints + // CloudFront distribution. You can get the value of DnsName using the CLI command + // describe-vpc-endpoints // (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpc-endpoints.html). // CloudFront distribution Specify the domain name that CloudFront assigned when // you created your distribution. Your CloudFront distribution must include an @@ -145,41 +145,40 @@ type AliasTarget struct { // attribute for the environment. You can use the following methods to get the // value of the CNAME attribute: // - // * AWS Management Console: For information about - // how to get the value by using the console, see Using Custom Domains with AWS - // Elastic Beanstalk + // * Management Console: For information about how + // to get the value by using the console, see Using Custom Domains with Elastic + // Beanstalk // (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html) in - // the AWS Elastic Beanstalk Developer Guide. + // the Elastic Beanstalk Developer Guide. // // * Elastic Beanstalk API: Use the // DescribeEnvironments action to get the value of the CNAME attribute. For more // information, see DescribeEnvironments // (https://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_DescribeEnvironments.html) - // in the AWS Elastic Beanstalk API Reference. + // in the Elastic Beanstalk API Reference. // - // * AWS CLI: Use the - // describe-environments command to get the value of the CNAME attribute. For more - // information, see describe-environments + // * CLI: Use the describe-environments + // command to get the value of the CNAME attribute. For more information, see + // describe-environments // (https://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/describe-environments.html) - // in the AWS CLI Command Reference. + // in the CLI Command Reference. // - // ELB load balancer Specify the DNS name that - // is associated with the load balancer. Get the DNS name by using the AWS - // Management Console, the ELB API, or the AWS CLI. + // ELB load balancer Specify the DNS name that is + // associated with the load balancer. Get the DNS name by using the Management + // Console, the ELB API, or the CLI. // - // * AWS Management Console: Go - // to the EC2 page, choose Load Balancers in the navigation pane, choose the load - // balancer, choose the Description tab, and get the value of the DNS name field. - // If you're routing traffic to a Classic Load Balancer, get the value that begins - // with dualstack. If you're routing traffic to another type of load balancer, get - // the value that applies to the record type, A or AAAA. + // * Management Console: Go to the EC2 page, + // choose Load Balancers in the navigation pane, choose the load balancer, choose + // the Description tab, and get the value of the DNS name field. If you're routing + // traffic to a Classic Load Balancer, get the value that begins with dualstack. If + // you're routing traffic to another type of load balancer, get the value that + // applies to the record type, A or AAAA. // - // * Elastic Load Balancing - // API: Use DescribeLoadBalancers to get the value of DNSName. For more - // information, see the applicable guide: + // * Elastic Load Balancing API: Use + // DescribeLoadBalancers to get the value of DNSName. For more information, see the + // applicable guide: // - // * Classic Load Balancers: - // DescribeLoadBalancers + // * Classic Load Balancers: DescribeLoadBalancers // (https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_DescribeLoadBalancers.html) // // * @@ -187,7 +186,7 @@ type AliasTarget struct { // (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) // // * - // AWS CLI: Use describe-load-balancers to get the value of DNSName. For more + // CLI: Use describe-load-balancers to get the value of DNSName. For more // information, see the applicable guide: // // * Classic Load Balancers: @@ -198,15 +197,15 @@ type AliasTarget struct { // Application and Network Load Balancers: describe-load-balancers // (http://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-load-balancers.html) // - // AWS - // Global Accelerator accelerator Specify the DNS name for your accelerator: + // Global + // Accelerator accelerator Specify the DNS name for your accelerator: // - // * - // Global Accelerator API: To get the DNS name, use DescribeAccelerator + // * Global + // Accelerator API: To get the DNS name, use DescribeAccelerator // (https://docs.aws.amazon.com/global-accelerator/latest/api/API_DescribeAccelerator.html). // // * - // AWS CLI: To get the DNS name, use describe-accelerator + // CLI: To get the DNS name, use describe-accelerator // (https://docs.aws.amazon.com/cli/latest/reference/globalaccelerator/describe-accelerator.html). // // Amazon @@ -232,14 +231,14 @@ type AliasTarget struct { // Applies only to alias, failover alias, geolocation alias, latency alias, and // weighted alias resource record sets: When EvaluateTargetHealth is true, an alias - // resource record set inherits the health of the referenced AWS resource, such as - // an ELB load balancer or another resource record set in the hosted zone. Note the - // following: CloudFront distributions You can't set EvaluateTargetHealth to true - // when the alias target is a CloudFront distribution. Elastic Beanstalk - // environments that have regionalized subdomains If you specify an Elastic - // Beanstalk environment in DNSName and the environment contains an ELB load - // balancer, Elastic Load Balancing routes queries only to the healthy Amazon EC2 - // instances that are registered with the load balancer. (An environment + // resource record set inherits the health of the referenced Amazon Web Services + // resource, such as an ELB load balancer or another resource record set in the + // hosted zone. Note the following: CloudFront distributions You can't set + // EvaluateTargetHealth to true when the alias target is a CloudFront distribution. + // Elastic Beanstalk environments that have regionalized subdomains If you specify + // an Elastic Beanstalk environment in DNSName and the environment contains an ELB + // load balancer, Elastic Load Balancing routes queries only to the healthy Amazon + // EC2 instances that are registered with the load balancer. (An environment // automatically contains an ELB load balancer if it includes more than one Amazon // EC2 instance.) If you set EvaluateTargetHealth to true and either no Amazon EC2 // instances are healthy or the load balancer itself is unhealthy, Route 53 routes @@ -274,11 +273,12 @@ type AliasTarget struct { // but they perform a similar function. Do not create Route 53 health checks for // the EC2 instances that you register with an ELB load balancer. S3 buckets There // are no special requirements for setting EvaluateTargetHealth to true when the - // alias target is an S3 bucket. Other records in the same hosted zone If the AWS - // resource that you specify in DNSName is a record or a group of records (for - // example, a group of weighted records) but is not another alias record, we - // recommend that you associate a health check with all of the records in the alias - // target. For more information, see What Happens When You Omit Health Checks? + // alias target is an S3 bucket. Other records in the same hosted zone If the + // Amazon Web Services resource that you specify in DNSName is a record or a group + // of records (for example, a group of weighted records) but is not another alias + // record, we recommend that you associate a health check with all of the records + // in the alias target. For more information, see What Happens When You Omit Health + // Checks? // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html#dns-failover-complex-configs-hc-omitting) // in the Amazon Route 53 Developer Guide. For more information and examples, see // Amazon Route 53 Health Checks and DNS Failover @@ -291,7 +291,7 @@ type AliasTarget struct { // Alias resource records sets only: The value used depends on where you want to // route traffic: Amazon API Gateway custom regional APIs and edge-optimized APIs // Specify the hosted zone ID for your API. You can get the applicable value using - // the AWS CLI command get-domain-names + // the CLI command get-domain-names // (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-domain-names.html): // // * @@ -302,18 +302,18 @@ type AliasTarget struct { // // Amazon // Virtual Private Cloud interface VPC endpoint Specify the hosted zone ID for your - // interface endpoint. You can get the value of HostedZoneId using the AWS CLI - // command describe-vpc-endpoints + // interface endpoint. You can get the value of HostedZoneId using the CLI command + // describe-vpc-endpoints // (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpc-endpoints.html). // CloudFront distribution Specify Z2FDTNDATAQYW2. Alias resource record sets for // CloudFront can't be created in a private zone. Elastic Beanstalk environment // Specify the hosted zone ID for the region that you created the environment in. // The environment must have a regionalized subdomain. For a list of regions and - // the corresponding hosted zone IDs, see AWS Elastic Beanstalk endpoints and - // quotas (https://docs.aws.amazon.com/general/latest/gr/elasticbeanstalk.html) in - // the the Amazon Web Services General Reference. ELB load balancer Specify the - // value of the hosted zone ID for the load balancer. Use the following methods to - // get the hosted zone ID: + // the corresponding hosted zone IDs, see Elastic Beanstalk endpoints and quotas + // (https://docs.aws.amazon.com/general/latest/gr/elasticbeanstalk.html) in the the + // Amazon Web Services General Reference. ELB load balancer Specify the value of + // the hosted zone ID for the load balancer. Use the following methods to get the + // hosted zone ID: // // * Elastic Load Balancing endpoints and quotas // (https://docs.aws.amazon.com/general/latest/gr/elb.html) topic in the Amazon Web @@ -321,7 +321,7 @@ type AliasTarget struct { // you created your load balancer in. Note that there are separate columns for // Application and Classic Load Balancers and for Network Load Balancers. // - // * AWS + // * // Management Console: Go to the Amazon EC2 page, choose Load Balancers in the // navigation pane, select the load balancer, and get the value of the Hosted zone // field on the Description tab. @@ -339,11 +339,11 @@ type AliasTarget struct { // (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) // to get the value of CanonicalHostedZoneId. // - // * AWS CLI: Use - // describe-load-balancers to get the applicable value. For more information, see - // the applicable guide: + // * CLI: Use describe-load-balancers + // to get the applicable value. For more information, see the applicable guide: // - // * Classic Load Balancers: Use describe-load-balancers + // * + // Classic Load Balancers: Use describe-load-balancers // (http://docs.aws.amazon.com/cli/latest/reference/elb/describe-load-balancers.html) // to get the value of CanonicalHostedZoneNameId. // @@ -352,7 +352,7 @@ type AliasTarget struct { // (http://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-load-balancers.html) // to get the value of CanonicalHostedZoneId. // - // AWS Global Accelerator accelerator + // Global Accelerator accelerator // Specify Z2BJ6XQ5FK7U4H. An Amazon S3 bucket configured as a static website // Specify the hosted zone ID for the region that you created the bucket in. For // more information about valid values, see the table Amazon S3 Website Endpoints @@ -418,7 +418,9 @@ type ChangeBatch struct { // hosted zone. type ChangeInfo struct { - // The ID of the request. + // This element contains an ID that you use when performing a GetChange + // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetChange.html) + // action to get detailed information about the change. // // This member is required. Id *string @@ -437,11 +439,7 @@ type ChangeInfo struct { // This member is required. SubmittedAt *time.Time - // A complex type that describes change information about changes made to your - // hosted zone. This element contains an ID that you use when performing a - // GetChange - // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetChange.html) - // action to get detailed information about the change. + // A comment you can provide. Comment *string noSmithyDocumentSerde @@ -642,7 +640,7 @@ type GeoLocationDetails struct { } // A complex type that contains information about one health check that is -// associated with the current AWS account. +// associated with the current Amazon Web Services account. type HealthCheck struct { // A unique string that you specified when you created the health check. @@ -723,8 +721,13 @@ type HealthCheckConfig struct { // consider to be healthy and compares that number with the value of // HealthThreshold. // - // For more information, see How Route 53 Determines Whether an - // Endpoint Is Healthy + // * RECOVERY_CONTROL: The health check is assocated with a + // Route53 Application Recovery Controller routing control. If the routing control + // state is ON, the health check is considered healthy. If the state is OFF, the + // health check is considered unhealthy. + // + // For more information, see How Route 53 + // Determines Whether an Endpoint Is Healthy // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html) // in the Amazon Route 53 Developer Guide. // @@ -917,9 +920,10 @@ type HealthCheckConfig struct { Inverted *bool // Specify whether you want Amazon Route 53 to measure the latency between health - // checkers in multiple AWS regions and your endpoint, and to display CloudWatch - // latency graphs on the Health Checks page in the Route 53 console. You can't - // change the value of MeasureLatency after you create a health check. + // checkers in multiple Amazon Web Services regions and your endpoint, and to + // display CloudWatch latency graphs on the Health Checks page in the Route 53 + // console. You can't change the value of MeasureLatency after you create a health + // check. MeasureLatency *bool // The port on the endpoint that you want Amazon Route 53 to perform health checks @@ -951,6 +955,10 @@ type HealthCheckConfig struct { // parameters, for example, /welcome.html?language=jp&login=y. ResourcePath *string + // The Amazon Resource Name (ARN) for Route53 Application Recovery Controller + // routing control. + RoutingControlArn *string + // If the value of Type is HTTP_STR_MATCH or HTTPS_STR_MATCH, the string that you // want Amazon Route 53 to search for in the response body from the specified // resource. If the string appears in the response body, Route 53 considers the @@ -1062,18 +1070,18 @@ type HostedZoneLimit struct { // OwningAccount, there is no value for OwningService, and vice versa. type HostedZoneOwner struct { - // If the hosted zone was created by an AWS account, or was created by an AWS - // service that creates hosted zones using the current account, OwningAccount - // contains the account ID of that account. For example, when you use AWS Cloud Map - // to create a hosted zone, Cloud Map creates the hosted zone using the current AWS - // account. + // If the hosted zone was created by an account, or was created by an Amazon Web + // Services service that creates hosted zones using the current account, + // OwningAccount contains the account ID of that account. For example, when you use + // Cloud Map to create a hosted zone, Cloud Map creates the hosted zone using the + // current account. OwningAccount *string - // If an AWS service uses its own account to create a hosted zone and associate the - // specified VPC with that hosted zone, OwningService contains an abbreviation that - // identifies the service. For example, if Amazon Elastic File System (Amazon EFS) - // created a hosted zone and associated a VPC with the hosted zone, the value of - // OwningService is efs.amazonaws.com. + // If an Amazon Web Services service uses its own account to create a hosted zone + // and associate the specified VPC with that hosted zone, OwningService contains an + // abbreviation that identifies the service. For example, if Amazon Elastic File + // System (Amazon EFS) created a hosted zone and associated a VPC with the hosted + // zone, the value of OwningService is efs.amazonaws.com. OwningService *string noSmithyDocumentSerde @@ -1097,7 +1105,7 @@ type HostedZoneSummary struct { Name *string // The owner of a private hosted zone that the specified VPC is associated with. - // The owner can be either an AWS account or an AWS service. + // The owner can be either an account or an Amazon Web Services service. // // This member is required. Owner *HostedZoneOwner @@ -1146,27 +1154,26 @@ type KeySigningKey struct { KeyTag int32 // The Amazon resource name (ARN) used to identify the customer managed customer - // master key (CMK) in AWS Key Management Service (AWS KMS). The KmsArn must be - // unique for each key-signing key (KSK) in a single hosted zone. You must - // configure the CMK as follows: Status Enabled Key spec ECC_NIST_P256 Key usage - // Sign and verify Key policy The key policy must give permission for the following - // actions: + // master key (CMK) in Key Management Service (KMS). The KmsArn must be unique for + // each key-signing key (KSK) in a single hosted zone. You must configure the CMK + // as follows: Status Enabled Key spec ECC_NIST_P256 Key usage Sign and verify Key + // policy The key policy must give permission for the following actions: // - // * DescribeKey + // * + // DescribeKey // // * GetPublicKey // // * Sign // - // The key policy must also - // include the Amazon Route 53 service in the principal for your account. Specify - // the following: + // The key policy must also include the Amazon + // Route 53 service in the principal for your account. Specify the following: // - // * "Service": "api-service.dnssec.route53.aws.internal" + // * + // "Service": "dnssec-route53.amazonaws.com" // - // For more - // information about working with the customer managed CMK in AWS KMS, see AWS Key - // Management Service concepts + // For more information about working + // with the customer managed CMK in KMS, see Key Management Service concepts // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html). KmsArn *string @@ -1361,21 +1368,21 @@ type ResourceRecordSet struct { // This member is required. Type RRType - // Alias resource record sets only: Information about the AWS resource, such as a - // CloudFront distribution or an Amazon S3 bucket, that you want to route traffic - // to. If you're creating resource records sets for a private hosted zone, note the - // following: + // Alias resource record sets only: Information about the Amazon Web Services + // resource, such as a CloudFront distribution or an Amazon S3 bucket, that you + // want to route traffic to. If you're creating resource records sets for a private + // hosted zone, note the following: // - // * You can't create an alias resource record set in a private hosted - // zone to route traffic to a CloudFront distribution. + // * You can't create an alias resource record + // set in a private hosted zone to route traffic to a CloudFront distribution. // - // * Creating geolocation - // alias resource record sets or latency alias resource record sets in a private - // hosted zone is unsupported. + // * + // Creating geolocation alias resource record sets or latency alias resource record + // sets in a private hosted zone is unsupported. // - // * For information about creating failover resource - // record sets in a private hosted zone, see Configuring Failover in a Private - // Hosted Zone + // * For information about creating + // failover resource record sets in a private hosted zone, see Configuring Failover + // in a Private Hosted Zone // (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) // in the Amazon Route 53 Developer Guide. AliasTarget *AliasTarget @@ -1596,29 +1603,30 @@ type ResourceRecordSet struct { // Latency-based resource record sets only: The Amazon EC2 Region where you created // the resource that this resource record set refers to. The resource typically is - // an AWS resource, such as an EC2 instance or an ELB load balancer, and is - // referred to by an IP address or a DNS domain name, depending on the record type. - // Although creating latency and latency alias resource record sets in a private - // hosted zone is allowed, it's not supported. When Amazon Route 53 receives a DNS - // query for a domain name and type for which you have created latency resource - // record sets, Route 53 selects the latency resource record set that has the - // lowest latency between the end user and the associated Amazon EC2 Region. Route - // 53 then returns the value that is associated with the selected resource record - // set. Note the following: - // - // * You can only specify one ResourceRecord per latency - // resource record set. - // - // * You can only create one latency resource record set for - // each Amazon EC2 Region. - // - // * You aren't required to create latency resource record - // sets for all Amazon EC2 Regions. Route 53 will choose the region with the best - // latency from among the regions that you create latency resource record sets - // for. - // - // * You can't create non-latency resource record sets that have the same - // values for the Name and Type elements as latency resource record sets. + // an Amazon Web Services resource, such as an EC2 instance or an ELB load + // balancer, and is referred to by an IP address or a DNS domain name, depending on + // the record type. Although creating latency and latency alias resource record + // sets in a private hosted zone is allowed, it's not supported. When Amazon Route + // 53 receives a DNS query for a domain name and type for which you have created + // latency resource record sets, Route 53 selects the latency resource record set + // that has the lowest latency between the end user and the associated Amazon EC2 + // Region. Route 53 then returns the value that is associated with the selected + // resource record set. Note the following: + // + // * You can only specify one + // ResourceRecord per latency resource record set. + // + // * You can only create one + // latency resource record set for each Amazon EC2 Region. + // + // * You aren't required + // to create latency resource record sets for all Amazon EC2 Regions. Route 53 will + // choose the region with the best latency from among the regions that you create + // latency resource record sets for. + // + // * You can't create non-latency resource + // record sets that have the same values for the Name and Type elements as latency + // resource record sets. Region ResourceRecordSetRegion // Information about the resource records to act upon. If you're creating an alias @@ -1901,7 +1909,7 @@ type TrafficPolicyInstance struct { } // A complex type that contains information about the latest version of one traffic -// policy that is associated with the current AWS account. +// policy that is associated with the current account. type TrafficPolicySummary struct { // The ID that Amazon Route 53 assigned to the traffic policy when you created it. @@ -1919,7 +1927,7 @@ type TrafficPolicySummary struct { // This member is required. Name *string - // The number of traffic policies that are associated with the current AWS account. + // The number of traffic policies that are associated with the current account. // // This member is required. TrafficPolicyCount *int32 diff --git a/service/route53recoverycluster/LICENSE.txt b/service/route53recoverycluster/LICENSE.txt new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/service/route53recoverycluster/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/service/route53recoverycluster/api_client.go b/service/route53recoverycluster/api_client.go new file mode 100644 index 00000000000..9ddeab06856 --- /dev/null +++ b/service/route53recoverycluster/api_client.go @@ -0,0 +1,262 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycluster + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/retry" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + smithy "github.com/aws/smithy-go" + smithydocument "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" + "time" +) + +const ServiceID = "Route53 Recovery Cluster" +const ServiceAPIVersion = "2019-12-02" + +// Client provides the API client to make operations call for Route53 Recovery +// Cluster. +type Client struct { + options Options +} + +// New returns an initialized Client based on the functional options. Provide +// additional functional options to further configure the behavior of the client, +// such as changing the client's endpoint or adding custom middleware behavior. +func New(options Options, optFns ...func(*Options)) *Client { + options = options.Copy() + + resolveDefaultLogger(&options) + + resolveRetryer(&options) + + resolveHTTPClient(&options) + + resolveHTTPSignerV4(&options) + + resolveDefaultEndpointConfiguration(&options) + + for _, fn := range optFns { + fn(&options) + } + + client := &Client{ + options: options, + } + + return client +} + +type Options struct { + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // Configures the events that will be sent to the configured logger. + ClientLogMode aws.ClientLogMode + + // The credentials object to use when signing requests. + Credentials aws.CredentialsProvider + + // The endpoint options to be used when attempting to resolve an endpoint. + EndpointOptions EndpointResolverOptions + + // The service endpoint resolver. + EndpointResolver EndpointResolver + + // Signature Version 4 (SigV4) Signer + HTTPSignerV4 HTTPSignerV4 + + // The logger writer interface to write logging messages to. + Logger logging.Logger + + // The region to send requests to. (Required) + Region string + + // Retryer guides how HTTP requests should be retried in case of recoverable + // failures. When nil the API client will use a default retryer. + Retryer aws.Retryer + + // The HTTP client to invoke API calls with. Defaults to client's default HTTP + // implementation if nil. + HTTPClient HTTPClient +} + +// WithAPIOptions returns a functional option for setting the Client's APIOptions +// option. +func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { + return func(o *Options) { + o.APIOptions = append(o.APIOptions, optFns...) + } +} + +// WithEndpointResolver returns a functional option for setting the Client's +// EndpointResolver option. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} + +// Copy creates a clone where the APIOptions list is deep copied. +func (o Options) Copy() Options { + to := o + to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) + copy(to.APIOptions, o.APIOptions) + return to +} +func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { + ctx = middleware.ClearStackValues(ctx) + stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) + options := c.options.Copy() + for _, fn := range optFns { + fn(&options) + } + + for _, fn := range stackFns { + if err := fn(stack, options); err != nil { + return nil, metadata, err + } + } + + for _, fn := range options.APIOptions { + if err := fn(stack); err != nil { + return nil, metadata, err + } + } + + handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) + result, metadata, err = handler.Handle(ctx, params) + if err != nil { + err = &smithy.OperationError{ + ServiceID: ServiceID, + OperationName: opID, + Err: err, + } + } + return result, metadata, err +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +func resolveDefaultLogger(o *Options) { + if o.Logger != nil { + return + } + o.Logger = logging.Nop{} +} + +func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { + return middleware.AddSetLoggerMiddleware(stack, o.Logger) +} + +// NewFromConfig returns a new client from the provided config. +func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { + opts := Options{ + Region: cfg.Region, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + } + resolveAWSRetryerProvider(cfg, &opts) + resolveAWSEndpointResolver(cfg, &opts) + return New(opts, optFns...) +} + +func resolveHTTPClient(o *Options) { + if o.HTTPClient != nil { + return + } + o.HTTPClient = awshttp.NewBuildableClient() +} + +func resolveRetryer(o *Options) { + if o.Retryer != nil { + return + } + o.Retryer = retry.NewStandard() +} + +func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { + if cfg.Retryer == nil { + return + } + o.Retryer = cfg.Retryer() +} + +func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { + if cfg.EndpointResolver == nil { + return + } + o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, NewDefaultEndpointResolver()) +} + +func addClientUserAgent(stack *middleware.Stack) error { + return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "route53recoverycluster", goModuleVersion)(stack) +} + +func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { + mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ + CredentialsProvider: o.Credentials, + Signer: o.HTTPSignerV4, + LogSigning: o.ClientLogMode.IsSigning(), + }) + return stack.Finalize.Add(mw, middleware.After) +} + +type HTTPSignerV4 interface { + SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error +} + +func resolveHTTPSignerV4(o *Options) { + if o.HTTPSignerV4 != nil { + return + } + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) +} + +func addRetryMiddlewares(stack *middleware.Stack, o Options) error { + mo := retry.AddRetryMiddlewaresOptions{ + Retryer: o.Retryer, + LogRetryAttempts: o.ClientLogMode.IsRetries(), + } + return retry.AddRetryMiddlewares(stack, mo) +} + +func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { + return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) +} + +func addResponseErrorMiddleware(stack *middleware.Stack) error { + return awshttp.AddResponseErrorMiddleware(stack) +} + +func addRequestResponseLogging(stack *middleware.Stack, o Options) error { + return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ + LogRequest: o.ClientLogMode.IsRequest(), + LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), + LogResponse: o.ClientLogMode.IsResponse(), + LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), + }, middleware.After) +} diff --git a/service/route53recoverycluster/api_op_GetRoutingControlState.go b/service/route53recoverycluster/api_op_GetRoutingControlState.go new file mode 100644 index 00000000000..45726276691 --- /dev/null +++ b/service/route53recoverycluster/api_op_GetRoutingControlState.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycluster + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get the state for a routing control. A routing control is a simple on/off switch +// that you can use to route traffic to cells. When the state is On, traffic flows +// to a cell. When it's off, traffic does not flow. Before you can create a routing +// control, you first must create a cluster to host the control. For more +// information, see CreateCluster +// (https://docs.aws.amazon.com/recovery-cluster/latest/api/cluster.html). Access +// one of the endpoints for the cluster to get or update the routing control state +// to redirect traffic. For more information about working with routing controls, +// see Routing control +// (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html) in the +// Route 53 Application Recovery Controller Developer Guide. +func (c *Client) GetRoutingControlState(ctx context.Context, params *GetRoutingControlStateInput, optFns ...func(*Options)) (*GetRoutingControlStateOutput, error) { + if params == nil { + params = &GetRoutingControlStateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetRoutingControlState", params, optFns, c.addOperationGetRoutingControlStateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetRoutingControlStateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetRoutingControlStateInput struct { + + // The Amazon Resource Number (ARN) for the routing control that you want to get + // the state for. + // + // This member is required. + RoutingControlArn *string + + noSmithyDocumentSerde +} + +type GetRoutingControlStateOutput struct { + + // The Amazon Resource Number (ARN) of the response. + // + // This member is required. + RoutingControlArn *string + + // The state of the routing control. + // + // This member is required. + RoutingControlState types.RoutingControlState + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetRoutingControlStateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetRoutingControlState{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetRoutingControlState{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetRoutingControlStateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRoutingControlState(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetRoutingControlState(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-cluster", + OperationName: "GetRoutingControlState", + } +} diff --git a/service/route53recoverycluster/api_op_UpdateRoutingControlState.go b/service/route53recoverycluster/api_op_UpdateRoutingControlState.go new file mode 100644 index 00000000000..b9d2efc5d0f --- /dev/null +++ b/service/route53recoverycluster/api_op_UpdateRoutingControlState.go @@ -0,0 +1,128 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycluster + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Set the state of the routing control to reroute traffic. You can set the value +// to be On or Off. When the state is On, traffic flows to a cell. When it's off, +// traffic does not flow. For more information about working with routing controls, +// see Routing control +// (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html) in the +// Route 53 Application Recovery Controller Developer Guide. +func (c *Client) UpdateRoutingControlState(ctx context.Context, params *UpdateRoutingControlStateInput, optFns ...func(*Options)) (*UpdateRoutingControlStateOutput, error) { + if params == nil { + params = &UpdateRoutingControlStateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateRoutingControlState", params, optFns, c.addOperationUpdateRoutingControlStateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateRoutingControlStateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateRoutingControlStateInput struct { + + // The Amazon Resource Number (ARN) for the routing control that you want to update + // the state for. + // + // This member is required. + RoutingControlArn *string + + // The state of the routing control. You can set the value to be On or Off. + // + // This member is required. + RoutingControlState types.RoutingControlState + + noSmithyDocumentSerde +} + +type UpdateRoutingControlStateOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateRoutingControlStateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateRoutingControlState{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateRoutingControlState{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateRoutingControlStateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRoutingControlState(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateRoutingControlState(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-cluster", + OperationName: "UpdateRoutingControlState", + } +} diff --git a/service/route53recoverycluster/api_op_UpdateRoutingControlStates.go b/service/route53recoverycluster/api_op_UpdateRoutingControlStates.go new file mode 100644 index 00000000000..2bcab87c9b5 --- /dev/null +++ b/service/route53recoverycluster/api_op_UpdateRoutingControlStates.go @@ -0,0 +1,122 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycluster + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Set multiple routing control states. You can set the value for each state to be +// On or Off. When the state is On, traffic flows to a cell. When it's off, traffic +// does not flow. For more information about working with routing controls, see +// Routing control +// (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html) in the +// Route 53 Application Recovery Controller Developer Guide. +func (c *Client) UpdateRoutingControlStates(ctx context.Context, params *UpdateRoutingControlStatesInput, optFns ...func(*Options)) (*UpdateRoutingControlStatesOutput, error) { + if params == nil { + params = &UpdateRoutingControlStatesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateRoutingControlStates", params, optFns, c.addOperationUpdateRoutingControlStatesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateRoutingControlStatesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateRoutingControlStatesInput struct { + + // A set of routing control entries that you want to update. + // + // This member is required. + UpdateRoutingControlStateEntries []types.UpdateRoutingControlStateEntry + + noSmithyDocumentSerde +} + +type UpdateRoutingControlStatesOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateRoutingControlStatesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateRoutingControlStates{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateRoutingControlStates{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateRoutingControlStatesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRoutingControlStates(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateRoutingControlStates(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-cluster", + OperationName: "UpdateRoutingControlStates", + } +} diff --git a/service/route53recoverycluster/deserializers.go b/service/route53recoverycluster/deserializers.go new file mode 100644 index 00000000000..6c118c8ac95 --- /dev/null +++ b/service/route53recoverycluster/deserializers.go @@ -0,0 +1,1198 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycluster + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" + smithy "github.com/aws/smithy-go" + smithyio "github.com/aws/smithy-go/io" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "strings" +) + +type awsAwsjson10_deserializeOpGetRoutingControlState struct { +} + +func (*awsAwsjson10_deserializeOpGetRoutingControlState) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpGetRoutingControlState) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorGetRoutingControlState(response, &metadata) + } + output := &GetRoutingControlStateOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentGetRoutingControlStateOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorGetRoutingControlState(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("EndpointTemporarilyUnavailableException", errorCode): + return awsAwsjson10_deserializeErrorEndpointTemporarilyUnavailableException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpUpdateRoutingControlState struct { +} + +func (*awsAwsjson10_deserializeOpUpdateRoutingControlState) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUpdateRoutingControlState) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorUpdateRoutingControlState(response, &metadata) + } + output := &UpdateRoutingControlStateOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentUpdateRoutingControlStateOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorUpdateRoutingControlState(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("EndpointTemporarilyUnavailableException", errorCode): + return awsAwsjson10_deserializeErrorEndpointTemporarilyUnavailableException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpUpdateRoutingControlStates struct { +} + +func (*awsAwsjson10_deserializeOpUpdateRoutingControlStates) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUpdateRoutingControlStates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorUpdateRoutingControlStates(response, &metadata) + } + output := &UpdateRoutingControlStatesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentUpdateRoutingControlStatesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorUpdateRoutingControlStates(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("EndpointTemporarilyUnavailableException", errorCode): + return awsAwsjson10_deserializeErrorEndpointTemporarilyUnavailableException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsAwsjson10_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.AccessDeniedException{} + err := awsAwsjson10_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ConflictException{} + err := awsAwsjson10_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorEndpointTemporarilyUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.EndpointTemporarilyUnavailableException{} + err := awsAwsjson10_deserializeDocumentEndpointTemporarilyUnavailableException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InternalServerException{} + err := awsAwsjson10_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ResourceNotFoundException{} + err := awsAwsjson10_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ThrottlingException{} + err := awsAwsjson10_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ValidationException{} + err := awsAwsjson10_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConflictException + if *v == nil { + sv = &types.ConflictException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "resourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ResourceId = ptr.String(jtv) + } + + case "resourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ResourceType = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentEndpointTemporarilyUnavailableException(v **types.EndpointTemporarilyUnavailableException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.EndpointTemporarilyUnavailableException + if *v == nil { + sv = &types.EndpointTemporarilyUnavailableException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InternalServerException + if *v == nil { + sv = &types.InternalServerException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "retryAfterSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected RetryAfterSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RetryAfterSeconds = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "resourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ResourceId = ptr.String(jtv) + } + + case "resourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ResourceType = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ThrottlingException + if *v == nil { + sv = &types.ThrottlingException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "retryAfterSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected RetryAfterSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RetryAfterSeconds = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "fields": + if err := awsAwsjson10_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { + return err + } + + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "reason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ValidationExceptionReason to be of type string, got %T instead", value) + } + sv.Reason = types.ValidationExceptionReason(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentValidationExceptionField(v **types.ValidationExceptionField, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ValidationExceptionField + if *v == nil { + sv = &types.ValidationExceptionField{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentValidationExceptionFieldList(v *[]types.ValidationExceptionField, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ValidationExceptionField + if *v == nil { + cv = []types.ValidationExceptionField{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ValidationExceptionField + destAddr := &col + if err := awsAwsjson10_deserializeDocumentValidationExceptionField(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeOpDocumentGetRoutingControlStateOutput(v **GetRoutingControlStateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetRoutingControlStateOutput + if *v == nil { + sv = &GetRoutingControlStateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RoutingControlArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.RoutingControlArn = ptr.String(jtv) + } + + case "RoutingControlState": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RoutingControlState to be of type string, got %T instead", value) + } + sv.RoutingControlState = types.RoutingControlState(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentUpdateRoutingControlStateOutput(v **UpdateRoutingControlStateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateRoutingControlStateOutput + if *v == nil { + sv = &UpdateRoutingControlStateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentUpdateRoutingControlStatesOutput(v **UpdateRoutingControlStatesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateRoutingControlStatesOutput + if *v == nil { + sv = &UpdateRoutingControlStatesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} diff --git a/service/route53recoverycluster/doc.go b/service/route53recoverycluster/doc.go new file mode 100644 index 00000000000..19d53857c71 --- /dev/null +++ b/service/route53recoverycluster/doc.go @@ -0,0 +1,36 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package route53recoverycluster provides the API client, operations, and +// parameter types for Route53 Recovery Cluster. +// +// Welcome to the Amazon Route 53 Application Recovery Controller API Reference +// Guide for Recovery Control Data Plane . Recovery control in Route 53 Application +// Recovery Controller includes extremely reliable routing controls that enable you +// to recover applications by rerouting traffic, for example, across Availability +// Zones or AWS Regions. Routing controls are simple on/off switches hosted on a +// cluster. A cluster is a set of five redundant regional endpoints against which +// you can execute API calls to update or get the state of routing controls. You +// use routing controls to failover traffic to recover your application across +// Availability Zones or Regions. This API guide includes information about how to +// get and update routing control states in Route 53 Application Recovery +// Controller. For more information about Route 53 Application Recovery Controller, +// see the following: +// +// * You can create clusters, routing controls, and control +// panels by using the control plane API for Recovery Control. For more +// information, see Amazon Route 53 Application Recovery Controller Recovery +// Control API Reference +// (https://docs.aws.amazon.com/recovery-cluster/latest/api/). +// +// * Route 53 +// Application Recovery Controller also provides continuous readiness checks to +// ensure that your applications are scaled to handle failover traffic. For more +// information about the related API actions, see Amazon Route 53 Application +// Recovery Controller Recovery Readiness API Reference +// (https://docs.aws.amazon.com/recovery-readiness/latest/api/). +// +// * For more +// information about creating resilient applications and preparing for recovery +// readiness with Route 53 Application Recovery Controller, see the Amazon Route 53 +// Application Recovery Controller Developer Guide. +package route53recoverycluster diff --git a/service/route53recoverycluster/endpoints.go b/service/route53recoverycluster/endpoints.go new file mode 100644 index 00000000000..ef03ae90e61 --- /dev/null +++ b/service/route53recoverycluster/endpoints.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycluster + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalendpoints "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/internal/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/url" +) + +// EndpointResolverOptions is the service endpoint resolver options +type EndpointResolverOptions = internalendpoints.Options + +// EndpointResolver interface for resolving service endpoints. +type EndpointResolver interface { + ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) +} + +var _ EndpointResolver = &internalendpoints.Resolver{} + +// NewDefaultEndpointResolver constructs a new service endpoint resolver +func NewDefaultEndpointResolver() *internalendpoints.Resolver { + return internalendpoints.New() +} + +// EndpointResolverFunc is a helper utility that wraps a function so it satisfies +// the EndpointResolver interface. This is useful when you want to add additional +// endpoint resolving logic, or stub out specific endpoints with custom values. +type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) + +func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return fn(region, options) +} + +func resolveDefaultEndpointConfiguration(o *Options) { + if o.EndpointResolver != nil { + return + } + o.EndpointResolver = NewDefaultEndpointResolver() +} + +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + +type ResolveEndpoint struct { + Resolver EndpointResolver + Options EndpointResolverOptions +} + +func (*ResolveEndpoint) ID() string { + return "ResolveEndpoint" +} + +func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.Resolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + var endpoint aws.Endpoint + endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), m.Options) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(awsmiddleware.GetSigningName(ctx)) == 0 { + signingName := endpoint.SigningName + if len(signingName) == 0 { + signingName = "route53-recovery-cluster" + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) + ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) + return next.HandleSerialize(ctx, in) +} +func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { + return stack.Serialize.Insert(&ResolveEndpoint{ + Resolver: o.EndpointResolver, + Options: o.EndpointOptions, + }, "OperationSerializer", middleware.Before) +} + +func removeResolveEndpointMiddleware(stack *middleware.Stack) error { + _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) + return err +} + +type wrappedEndpointResolver struct { + awsResolver aws.EndpointResolver + resolver EndpointResolver +} + +func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + if w.awsResolver == nil { + goto fallback + } + endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region) + if err == nil { + return endpoint, nil + } + + if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { + return endpoint, err + } + +fallback: + if w.resolver == nil { + return endpoint, fmt.Errorf("default endpoint resolver provided was nil") + } + return w.resolver.ResolveEndpoint(region, options) +} + +// withEndpointResolver returns an EndpointResolver that first delegates endpoint +// resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError +// error, the resolver will use the the provided fallbackResolver for resolution. +// awsResolver and fallbackResolver must not be nil +func withEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver { + return &wrappedEndpointResolver{ + awsResolver: awsResolver, + resolver: fallbackResolver, + } +} diff --git a/service/route53recoverycluster/generated.json b/service/route53recoverycluster/generated.json new file mode 100644 index 00000000000..d930b3741f9 --- /dev/null +++ b/service/route53recoverycluster/generated.json @@ -0,0 +1,27 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/smithy-go": "v1.4.0" + }, + "files": [ + "api_client.go", + "api_op_GetRoutingControlState.go", + "api_op_UpdateRoutingControlState.go", + "api_op_UpdateRoutingControlStates.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "protocol_test.go", + "serializers.go", + "types/enums.go", + "types/errors.go", + "types/types.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster", + "unstable": false +} diff --git a/service/route53recoverycluster/go.mod b/service/route53recoverycluster/go.mod new file mode 100644 index 00000000000..7f97ab4119a --- /dev/null +++ b/service/route53recoverycluster/go.mod @@ -0,0 +1,10 @@ +module github.com/aws/aws-sdk-go-v2/service/route53recoverycluster + +go 1.15 + +require ( + github.com/aws/aws-sdk-go-v2 v1.7.1 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 +) + +replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53recoverycluster/go.sum b/service/route53recoverycluster/go.sum new file mode 100644 index 00000000000..256f90b195c --- /dev/null +++ b/service/route53recoverycluster/go.sum @@ -0,0 +1,14 @@ +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/route53recoverycluster/go_module_metadata.go b/service/route53recoverycluster/go_module_metadata.go new file mode 100644 index 00000000000..dc15aa72362 --- /dev/null +++ b/service/route53recoverycluster/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package route53recoverycluster + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "tip" diff --git a/service/route53recoverycluster/internal/endpoints/endpoints.go b/service/route53recoverycluster/internal/endpoints/endpoints.go new file mode 100644 index 00000000000..100031ef9a7 --- /dev/null +++ b/service/route53recoverycluster/internal/endpoints/endpoints.go @@ -0,0 +1,106 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/internal/endpoints" + "regexp" +) + +// Options is the endpoint resolver configuration options +type Options struct { + DisableHTTPS bool +} + +// Resolver Route53 Recovery Cluster endpoint resolver +type Resolver struct { + partitions endpoints.Partitions +} + +// ResolveEndpoint resolves the service endpoint for the given region and options +func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { + if len(region) == 0 { + return endpoint, &aws.MissingRegionError{} + } + + opt := endpoints.Options{ + DisableHTTPS: options.DisableHTTPS, + } + return r.partitions.ResolveEndpoint(region, opt) +} + +// New returns a new Resolver +func New() *Resolver { + return &Resolver{ + partitions: defaultPartitions, + } +} + +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + +var defaultPartitions = endpoints.Partitions{ + { + ID: "aws", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-cluster.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.Aws, + IsRegionalized: true, + }, + { + ID: "aws-cn", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-cluster.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsCn, + IsRegionalized: true, + }, + { + ID: "aws-iso", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-cluster.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsIso, + IsRegionalized: true, + }, + { + ID: "aws-iso-b", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-cluster.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsIsoB, + IsRegionalized: true, + }, + { + ID: "aws-us-gov", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-cluster.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsUsGov, + IsRegionalized: true, + }, +} diff --git a/service/route53recoverycluster/internal/endpoints/endpoints_test.go b/service/route53recoverycluster/internal/endpoints/endpoints_test.go new file mode 100644 index 00000000000..08e5da2d833 --- /dev/null +++ b/service/route53recoverycluster/internal/endpoints/endpoints_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "testing" +) + +func TestRegexCompile(t *testing.T) { + _ = defaultPartitions +} diff --git a/service/route53recoverycluster/protocol_test.go b/service/route53recoverycluster/protocol_test.go new file mode 100644 index 00000000000..c5211b53523 --- /dev/null +++ b/service/route53recoverycluster/protocol_test.go @@ -0,0 +1,3 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycluster diff --git a/service/route53recoverycluster/serializers.go b/service/route53recoverycluster/serializers.go new file mode 100644 index 00000000000..8113b49e10e --- /dev/null +++ b/service/route53recoverycluster/serializers.go @@ -0,0 +1,228 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycluster + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +type awsAwsjson10_serializeOpGetRoutingControlState struct { +} + +func (*awsAwsjson10_serializeOpGetRoutingControlState) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpGetRoutingControlState) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetRoutingControlStateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("ToggleCustomerAPI.GetRoutingControlState") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentGetRoutingControlStateInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson10_serializeOpUpdateRoutingControlState struct { +} + +func (*awsAwsjson10_serializeOpUpdateRoutingControlState) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpUpdateRoutingControlState) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateRoutingControlStateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("ToggleCustomerAPI.UpdateRoutingControlState") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentUpdateRoutingControlStateInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson10_serializeOpUpdateRoutingControlStates struct { +} + +func (*awsAwsjson10_serializeOpUpdateRoutingControlStates) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpUpdateRoutingControlStates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateRoutingControlStatesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("ToggleCustomerAPI.UpdateRoutingControlStates") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentUpdateRoutingControlStatesInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsAwsjson10_serializeDocumentUpdateRoutingControlStateEntries(v []types.UpdateRoutingControlStateEntry, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson10_serializeDocumentUpdateRoutingControlStateEntry(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson10_serializeDocumentUpdateRoutingControlStateEntry(v *types.UpdateRoutingControlStateEntry, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RoutingControlArn != nil { + ok := object.Key("RoutingControlArn") + ok.String(*v.RoutingControlArn) + } + + if len(v.RoutingControlState) > 0 { + ok := object.Key("RoutingControlState") + ok.String(string(v.RoutingControlState)) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentGetRoutingControlStateInput(v *GetRoutingControlStateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RoutingControlArn != nil { + ok := object.Key("RoutingControlArn") + ok.String(*v.RoutingControlArn) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentUpdateRoutingControlStateInput(v *UpdateRoutingControlStateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RoutingControlArn != nil { + ok := object.Key("RoutingControlArn") + ok.String(*v.RoutingControlArn) + } + + if len(v.RoutingControlState) > 0 { + ok := object.Key("RoutingControlState") + ok.String(string(v.RoutingControlState)) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentUpdateRoutingControlStatesInput(v *UpdateRoutingControlStatesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.UpdateRoutingControlStateEntries != nil { + ok := object.Key("UpdateRoutingControlStateEntries") + if err := awsAwsjson10_serializeDocumentUpdateRoutingControlStateEntries(v.UpdateRoutingControlStateEntries, ok); err != nil { + return err + } + } + + return nil +} diff --git a/service/route53recoverycluster/types/enums.go b/service/route53recoverycluster/types/enums.go new file mode 100644 index 00000000000..d509fcfdf1e --- /dev/null +++ b/service/route53recoverycluster/types/enums.go @@ -0,0 +1,43 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +type RoutingControlState string + +// Enum values for RoutingControlState +const ( + RoutingControlStateOn RoutingControlState = "On" + RoutingControlStateOff RoutingControlState = "Off" +) + +// Values returns all known values for RoutingControlState. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (RoutingControlState) Values() []RoutingControlState { + return []RoutingControlState{ + "On", + "Off", + } +} + +type ValidationExceptionReason string + +// Enum values for ValidationExceptionReason +const ( + ValidationExceptionReasonUnknownOperation ValidationExceptionReason = "unknownOperation" + ValidationExceptionReasonCannotParse ValidationExceptionReason = "cannotParse" + ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "fieldValidationFailed" + ValidationExceptionReasonOther ValidationExceptionReason = "other" +) + +// Values returns all known values for ValidationExceptionReason. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (ValidationExceptionReason) Values() []ValidationExceptionReason { + return []ValidationExceptionReason{ + "unknownOperation", + "cannotParse", + "fieldValidationFailed", + "other", + } +} diff --git a/service/route53recoverycluster/types/errors.go b/service/route53recoverycluster/types/errors.go new file mode 100644 index 00000000000..03374e10a72 --- /dev/null +++ b/service/route53recoverycluster/types/errors.go @@ -0,0 +1,158 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + "fmt" + smithy "github.com/aws/smithy-go" +) + +// You don't have sufficient permissions to query the routing control state. +type AccessDeniedException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *AccessDeniedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// There was a conflict with this request. Try again. +type ConflictException struct { + Message *string + + ResourceId *string + ResourceType *string + + noSmithyDocumentSerde +} + +func (e *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConflictException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The cluster endpoint isn't available. Try another cluster endpoint. +type EndpointTemporarilyUnavailableException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *EndpointTemporarilyUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *EndpointTemporarilyUnavailableException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *EndpointTemporarilyUnavailableException) ErrorCode() string { + return "EndpointTemporarilyUnavailableException" +} +func (e *EndpointTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault { + return smithy.FaultServer +} + +// There was an unexpected error during processing of the request. +type InternalServerException struct { + Message *string + + RetryAfterSeconds int32 + + noSmithyDocumentSerde +} + +func (e *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InternalServerException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + +// The request references a routing control that was not found. +type ResourceNotFoundException struct { + Message *string + + ResourceId *string + ResourceType *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request was denied because of request throttling. +type ThrottlingException struct { + Message *string + + RetryAfterSeconds int32 + + noSmithyDocumentSerde +} + +func (e *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ThrottlingException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// There was a validation error on the request. +type ValidationException struct { + Message *string + + Reason ValidationExceptionReason + Fields []ValidationExceptionField + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoverycluster/types/types.go b/service/route53recoverycluster/types/types.go new file mode 100644 index 00000000000..be110825674 --- /dev/null +++ b/service/route53recoverycluster/types/types.go @@ -0,0 +1,41 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithydocument "github.com/aws/smithy-go/document" +) + +// A routing control state. +type UpdateRoutingControlStateEntry struct { + + // The Amazon Resource Number (ARN) for the routing control state entry. + // + // This member is required. + RoutingControlArn *string + + // The routing control state in a set of routing control state entries. + // + // This member is required. + RoutingControlState RoutingControlState + + noSmithyDocumentSerde +} + +// There was a validation error on the request. +type ValidationExceptionField struct { + + // Information about the validation exception. + // + // This member is required. + Message *string + + // The field that had the validation exception. + // + // This member is required. + Name *string + + noSmithyDocumentSerde +} + +type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/route53recoverycluster/validators.go b/service/route53recoverycluster/validators.go new file mode 100644 index 00000000000..34a7d3f94d3 --- /dev/null +++ b/service/route53recoverycluster/validators.go @@ -0,0 +1,170 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycluster + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycluster/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +type validateOpGetRoutingControlState struct { +} + +func (*validateOpGetRoutingControlState) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetRoutingControlState) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetRoutingControlStateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetRoutingControlStateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateRoutingControlState struct { +} + +func (*validateOpUpdateRoutingControlState) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateRoutingControlState) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateRoutingControlStateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateRoutingControlStateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateRoutingControlStates struct { +} + +func (*validateOpUpdateRoutingControlStates) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateRoutingControlStates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateRoutingControlStatesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateRoutingControlStatesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +func addOpGetRoutingControlStateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetRoutingControlState{}, middleware.After) +} + +func addOpUpdateRoutingControlStateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateRoutingControlState{}, middleware.After) +} + +func addOpUpdateRoutingControlStatesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateRoutingControlStates{}, middleware.After) +} + +func validateUpdateRoutingControlStateEntries(v []types.UpdateRoutingControlStateEntry) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlStateEntries"} + for i := range v { + if err := validateUpdateRoutingControlStateEntry(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateUpdateRoutingControlStateEntry(v *types.UpdateRoutingControlStateEntry) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlStateEntry"} + if v.RoutingControlArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) + } + if len(v.RoutingControlState) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlState")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetRoutingControlStateInput(v *GetRoutingControlStateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetRoutingControlStateInput"} + if v.RoutingControlArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateRoutingControlStateInput(v *UpdateRoutingControlStateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlStateInput"} + if v.RoutingControlArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) + } + if len(v.RoutingControlState) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlState")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateRoutingControlStatesInput(v *UpdateRoutingControlStatesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlStatesInput"} + if v.UpdateRoutingControlStateEntries == nil { + invalidParams.Add(smithy.NewErrParamRequired("UpdateRoutingControlStateEntries")) + } else if v.UpdateRoutingControlStateEntries != nil { + if err := validateUpdateRoutingControlStateEntries(v.UpdateRoutingControlStateEntries); err != nil { + invalidParams.AddNested("UpdateRoutingControlStateEntries", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/route53recoverycontrolconfig/LICENSE.txt b/service/route53recoverycontrolconfig/LICENSE.txt new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/service/route53recoverycontrolconfig/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/service/route53recoverycontrolconfig/api_client.go b/service/route53recoverycontrolconfig/api_client.go new file mode 100644 index 00000000000..68886d49fb0 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_client.go @@ -0,0 +1,282 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + cryptorand "crypto/rand" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/retry" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + smithy "github.com/aws/smithy-go" + smithydocument "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyrand "github.com/aws/smithy-go/rand" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" + "time" +) + +const ServiceID = "Route53 Recovery Control Config" +const ServiceAPIVersion = "2020-11-02" + +// Client provides the API client to make operations call for AWS Route53 Recovery +// Control Config. +type Client struct { + options Options +} + +// New returns an initialized Client based on the functional options. Provide +// additional functional options to further configure the behavior of the client, +// such as changing the client's endpoint or adding custom middleware behavior. +func New(options Options, optFns ...func(*Options)) *Client { + options = options.Copy() + + resolveDefaultLogger(&options) + + resolveRetryer(&options) + + resolveHTTPClient(&options) + + resolveHTTPSignerV4(&options) + + resolveDefaultEndpointConfiguration(&options) + + resolveIdempotencyTokenProvider(&options) + + for _, fn := range optFns { + fn(&options) + } + + client := &Client{ + options: options, + } + + return client +} + +type Options struct { + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // Configures the events that will be sent to the configured logger. + ClientLogMode aws.ClientLogMode + + // The credentials object to use when signing requests. + Credentials aws.CredentialsProvider + + // The endpoint options to be used when attempting to resolve an endpoint. + EndpointOptions EndpointResolverOptions + + // The service endpoint resolver. + EndpointResolver EndpointResolver + + // Signature Version 4 (SigV4) Signer + HTTPSignerV4 HTTPSignerV4 + + // Provides idempotency tokens values that will be automatically populated into + // idempotent API operations. + IdempotencyTokenProvider IdempotencyTokenProvider + + // The logger writer interface to write logging messages to. + Logger logging.Logger + + // The region to send requests to. (Required) + Region string + + // Retryer guides how HTTP requests should be retried in case of recoverable + // failures. When nil the API client will use a default retryer. + Retryer aws.Retryer + + // The HTTP client to invoke API calls with. Defaults to client's default HTTP + // implementation if nil. + HTTPClient HTTPClient +} + +// WithAPIOptions returns a functional option for setting the Client's APIOptions +// option. +func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { + return func(o *Options) { + o.APIOptions = append(o.APIOptions, optFns...) + } +} + +// WithEndpointResolver returns a functional option for setting the Client's +// EndpointResolver option. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} + +// Copy creates a clone where the APIOptions list is deep copied. +func (o Options) Copy() Options { + to := o + to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) + copy(to.APIOptions, o.APIOptions) + return to +} +func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { + ctx = middleware.ClearStackValues(ctx) + stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) + options := c.options.Copy() + for _, fn := range optFns { + fn(&options) + } + + for _, fn := range stackFns { + if err := fn(stack, options); err != nil { + return nil, metadata, err + } + } + + for _, fn := range options.APIOptions { + if err := fn(stack); err != nil { + return nil, metadata, err + } + } + + handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) + result, metadata, err = handler.Handle(ctx, params) + if err != nil { + err = &smithy.OperationError{ + ServiceID: ServiceID, + OperationName: opID, + Err: err, + } + } + return result, metadata, err +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +func resolveDefaultLogger(o *Options) { + if o.Logger != nil { + return + } + o.Logger = logging.Nop{} +} + +func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { + return middleware.AddSetLoggerMiddleware(stack, o.Logger) +} + +// NewFromConfig returns a new client from the provided config. +func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { + opts := Options{ + Region: cfg.Region, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + } + resolveAWSRetryerProvider(cfg, &opts) + resolveAWSEndpointResolver(cfg, &opts) + return New(opts, optFns...) +} + +func resolveHTTPClient(o *Options) { + if o.HTTPClient != nil { + return + } + o.HTTPClient = awshttp.NewBuildableClient() +} + +func resolveRetryer(o *Options) { + if o.Retryer != nil { + return + } + o.Retryer = retry.NewStandard() +} + +func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { + if cfg.Retryer == nil { + return + } + o.Retryer = cfg.Retryer() +} + +func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { + if cfg.EndpointResolver == nil { + return + } + o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, NewDefaultEndpointResolver()) +} + +func addClientUserAgent(stack *middleware.Stack) error { + return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "route53recoverycontrolconfig", goModuleVersion)(stack) +} + +func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { + mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ + CredentialsProvider: o.Credentials, + Signer: o.HTTPSignerV4, + LogSigning: o.ClientLogMode.IsSigning(), + }) + return stack.Finalize.Add(mw, middleware.After) +} + +type HTTPSignerV4 interface { + SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error +} + +func resolveHTTPSignerV4(o *Options) { + if o.HTTPSignerV4 != nil { + return + } + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) +} + +func resolveIdempotencyTokenProvider(o *Options) { + if o.IdempotencyTokenProvider != nil { + return + } + o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader) +} + +func addRetryMiddlewares(stack *middleware.Stack, o Options) error { + mo := retry.AddRetryMiddlewaresOptions{ + Retryer: o.Retryer, + LogRetryAttempts: o.ClientLogMode.IsRetries(), + } + return retry.AddRetryMiddlewares(stack, mo) +} + +// IdempotencyTokenProvider interface for providing idempotency token +type IdempotencyTokenProvider interface { + GetIdempotencyToken() (string, error) +} + +func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { + return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) +} + +func addResponseErrorMiddleware(stack *middleware.Stack) error { + return awshttp.AddResponseErrorMiddleware(stack) +} + +func addRequestResponseLogging(stack *middleware.Stack, o Options) error { + return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ + LogRequest: o.ClientLogMode.IsRequest(), + LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), + LogResponse: o.ClientLogMode.IsResponse(), + LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), + }, middleware.After) +} diff --git a/service/route53recoverycontrolconfig/api_op_CreateCluster.go b/service/route53recoverycontrolconfig/api_op_CreateCluster.go new file mode 100644 index 00000000000..39c03bae7ea --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_CreateCluster.go @@ -0,0 +1,167 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Create a new cluster. A cluster is a set of redundant Regional endpoints against +// which you can run API calls to update or get the state of one or more routing +// controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an +// array of the five cluster endpoints (one for each supported Amazon Web Services +// Region) that you can use with API calls to the Amazon Route 53 Application +// Recovery Controller cluster data plane. +func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error) { + if params == nil { + params = &CreateClusterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateCluster", params, optFns, c.addOperationCreateClusterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateClusterOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Creates a cluster. +type CreateClusterInput struct { + + // The name of the cluster. + // + // This member is required. + ClusterName *string + + // Unique client idempotency token. + ClientToken *string + + noSmithyDocumentSerde +} + +type CreateClusterOutput struct { + + // The cluster that was created. + Cluster *types.Cluster + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateCluster{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateCluster{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateClusterMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateClusterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCluster(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpCreateCluster struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateCluster) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateClusterInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateClusterInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateClusterMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateCluster{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateCluster(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "CreateCluster", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_CreateControlPanel.go b/service/route53recoverycontrolconfig/api_op_CreateControlPanel.go new file mode 100644 index 00000000000..923b84cda69 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_CreateControlPanel.go @@ -0,0 +1,171 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new control panel. A control panel represents a group of routing +// controls that can be changed together in a single transaction. You can use a +// control panel to centrally view the operational status of applications across +// your organization, and trigger multi-app failovers in a single transaction, for +// example, to fail over an Availability Zone or AWS Region. +func (c *Client) CreateControlPanel(ctx context.Context, params *CreateControlPanelInput, optFns ...func(*Options)) (*CreateControlPanelOutput, error) { + if params == nil { + params = &CreateControlPanelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateControlPanel", params, optFns, c.addOperationCreateControlPanelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateControlPanelOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The details of the control panel that you're creating. +type CreateControlPanelInput struct { + + // The Amazon Resource Name (ARN) of the cluster for the control panel. + // + // This member is required. + ClusterArn *string + + // The name of the control panel. + // + // This member is required. + ControlPanelName *string + + // Unique client idempotency token. + ClientToken *string + + noSmithyDocumentSerde +} + +type CreateControlPanelOutput struct { + + // Information about a control panel. + ControlPanel *types.ControlPanel + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateControlPanelMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateControlPanel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateControlPanel{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateControlPanelMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateControlPanelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateControlPanel(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpCreateControlPanel struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateControlPanel) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateControlPanelInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateControlPanelInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateControlPanelMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateControlPanel{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateControlPanel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "CreateControlPanel", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_CreateRoutingControl.go b/service/route53recoverycontrolconfig/api_op_CreateRoutingControl.go new file mode 100644 index 00000000000..c5603935bff --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_CreateRoutingControl.go @@ -0,0 +1,175 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new routing control. A routing control has one of two states: ON and +// OFF. You can map the routing control state to the state of an Amazon Route 53 +// health check, which can be used to control traffic routing. To get or update the +// routing control state, see the Recovery Cluster (data plane) API actions for +// Amazon Route 53 Application Recovery Controller. +func (c *Client) CreateRoutingControl(ctx context.Context, params *CreateRoutingControlInput, optFns ...func(*Options)) (*CreateRoutingControlOutput, error) { + if params == nil { + params = &CreateRoutingControlInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateRoutingControl", params, optFns, c.addOperationCreateRoutingControlMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateRoutingControlOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The details of the routing control that you're creating. +type CreateRoutingControlInput struct { + + // The Amazon Resource Name (ARN) of the cluster that includes the routing control. + // + // This member is required. + ClusterArn *string + + // The name of the routing control. + // + // This member is required. + RoutingControlName *string + + // Unique client idempotency token. + ClientToken *string + + // The Amazon Resource Name (ARN) of the control panel that includes the routing + // control. + ControlPanelArn *string + + noSmithyDocumentSerde +} + +type CreateRoutingControlOutput struct { + + // The routing control that is created. + RoutingControl *types.RoutingControl + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateRoutingControlMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateRoutingControl{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateRoutingControl{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateRoutingControlMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateRoutingControlValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRoutingControl(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpCreateRoutingControl struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateRoutingControl) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateRoutingControlInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateRoutingControlInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateRoutingControlMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateRoutingControl{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateRoutingControl(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "CreateRoutingControl", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_CreateSafetyRule.go b/service/route53recoverycontrolconfig/api_op_CreateSafetyRule.go new file mode 100644 index 00000000000..614d888b407 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_CreateSafetyRule.go @@ -0,0 +1,180 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a safety rule in a control panel. Safety rules let you add safeguards +// around enabling and disabling routing controls, to help prevent unexpected +// outcomes. There are two types of safety rules: assertion rules and gating rules. +// Assertion rule: An assertion rule enforces that, when a routing control state is +// changed, the criteria set by the rule configuration is met. Otherwise, the +// change to the routing control is not accepted. Gating rule: A gating rule +// verifies that a set of gating controls evaluates as true, based on a rule +// configuration that you specify. If the gating rule evaluates to true, Amazon +// Route 53 Application Recovery Controller allows a set of routing control state +// changes to run and complete against the set of target controls. +func (c *Client) CreateSafetyRule(ctx context.Context, params *CreateSafetyRuleInput, optFns ...func(*Options)) (*CreateSafetyRuleOutput, error) { + if params == nil { + params = &CreateSafetyRuleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateSafetyRule", params, optFns, c.addOperationCreateSafetyRuleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateSafetyRuleOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The request body that you include when you create a safety rule. +type CreateSafetyRuleInput struct { + + // A new assertion rule for a control panel. + AssertionRule *types.NewAssertionRule + + // Unique client idempotency token. + ClientToken *string + + // A new gating rule for a control panel. + GatingRule *types.NewGatingRule + + noSmithyDocumentSerde +} + +type CreateSafetyRuleOutput struct { + + // An assertion rule enforces that, when a routing control state is changed, the + // criteria set by the rule configuration is met. Otherwise, the change to the + // routing control is not accepted. + AssertionRule *types.AssertionRule + + // A gating rule verifies that a set of gating controls evaluates as true, based on + // a rule configuration that you specify. If the gating rule evaluates to true, + // Amazon Route 53 Application Recovery Controller allows a set of routing control + // state changes to run and complete against the set of target controls. + GatingRule *types.GatingRule + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateSafetyRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateSafetyRule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateSafetyRule{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateSafetyRuleMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateSafetyRuleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSafetyRule(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpCreateSafetyRule struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateSafetyRule) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateSafetyRuleInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateSafetyRuleInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateSafetyRuleMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateSafetyRule{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateSafetyRule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "CreateSafetyRule", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_DeleteCluster.go b/service/route53recoverycontrolconfig/api_op_DeleteCluster.go new file mode 100644 index 00000000000..97fe0af71ac --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_DeleteCluster.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete a cluster. +func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, optFns ...func(*Options)) (*DeleteClusterOutput, error) { + if params == nil { + params = &DeleteClusterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteCluster", params, optFns, c.addOperationDeleteClusterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteClusterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteClusterInput struct { + + // The Amazon Resource Name (ARN) of the cluster that you're deleting. + // + // This member is required. + ClusterArn *string + + noSmithyDocumentSerde +} + +type DeleteClusterOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteCluster{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteCluster{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteClusterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCluster(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteCluster(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "DeleteCluster", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_DeleteControlPanel.go b/service/route53recoverycontrolconfig/api_op_DeleteControlPanel.go new file mode 100644 index 00000000000..015a0bc6996 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_DeleteControlPanel.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a control panel. +func (c *Client) DeleteControlPanel(ctx context.Context, params *DeleteControlPanelInput, optFns ...func(*Options)) (*DeleteControlPanelOutput, error) { + if params == nil { + params = &DeleteControlPanelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteControlPanel", params, optFns, c.addOperationDeleteControlPanelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteControlPanelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteControlPanelInput struct { + + // The Amazon Resource Name (ARN) of the control panel that you're deleting. + // + // This member is required. + ControlPanelArn *string + + noSmithyDocumentSerde +} + +type DeleteControlPanelOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteControlPanelMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteControlPanel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteControlPanel{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteControlPanelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteControlPanel(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteControlPanel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "DeleteControlPanel", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_DeleteRoutingControl.go b/service/route53recoverycontrolconfig/api_op_DeleteRoutingControl.go new file mode 100644 index 00000000000..54267046895 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_DeleteRoutingControl.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a routing control. +func (c *Client) DeleteRoutingControl(ctx context.Context, params *DeleteRoutingControlInput, optFns ...func(*Options)) (*DeleteRoutingControlOutput, error) { + if params == nil { + params = &DeleteRoutingControlInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteRoutingControl", params, optFns, c.addOperationDeleteRoutingControlMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteRoutingControlOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteRoutingControlInput struct { + + // The Amazon Resource Name (ARN) of the routing control that you're deleting. + // + // This member is required. + RoutingControlArn *string + + noSmithyDocumentSerde +} + +type DeleteRoutingControlOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteRoutingControlMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteRoutingControl{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteRoutingControl{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteRoutingControlValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRoutingControl(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteRoutingControl(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "DeleteRoutingControl", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_DeleteSafetyRule.go b/service/route53recoverycontrolconfig/api_op_DeleteSafetyRule.go new file mode 100644 index 00000000000..fe8f5f81b37 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_DeleteSafetyRule.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a safety rule./> +func (c *Client) DeleteSafetyRule(ctx context.Context, params *DeleteSafetyRuleInput, optFns ...func(*Options)) (*DeleteSafetyRuleOutput, error) { + if params == nil { + params = &DeleteSafetyRuleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteSafetyRule", params, optFns, c.addOperationDeleteSafetyRuleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteSafetyRuleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteSafetyRuleInput struct { + + // The request body that you include when you update a safety rule. + // + // This member is required. + SafetyRuleArn *string + + noSmithyDocumentSerde +} + +type DeleteSafetyRuleOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteSafetyRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteSafetyRule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteSafetyRule{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteSafetyRuleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSafetyRule(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteSafetyRule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "DeleteSafetyRule", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_DescribeCluster.go b/service/route53recoverycontrolconfig/api_op_DescribeCluster.go new file mode 100644 index 00000000000..174043ba0f4 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_DescribeCluster.go @@ -0,0 +1,476 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "errors" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" +) + +// Display the details about a cluster. The response includes the cluster name, +// endpoints, status, and Amazon Resource Name (ARN). +func (c *Client) DescribeCluster(ctx context.Context, params *DescribeClusterInput, optFns ...func(*Options)) (*DescribeClusterOutput, error) { + if params == nil { + params = &DescribeClusterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeCluster", params, optFns, c.addOperationDescribeClusterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeClusterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeClusterInput struct { + + // The Amazon Resource Name (ARN) of the cluster that you're getting details for. + // + // This member is required. + ClusterArn *string + + noSmithyDocumentSerde +} + +type DescribeClusterOutput struct { + + // The cluster for the DescribeCluster request. + Cluster *types.Cluster + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeCluster{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeCluster{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeClusterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCluster(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// DescribeClusterAPIClient is a client that implements the DescribeCluster +// operation. +type DescribeClusterAPIClient interface { + DescribeCluster(context.Context, *DescribeClusterInput, ...func(*Options)) (*DescribeClusterOutput, error) +} + +var _ DescribeClusterAPIClient = (*Client)(nil) + +// ClusterCreatedWaiterOptions are waiter options for ClusterCreatedWaiter +type ClusterCreatedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ClusterCreatedWaiter will use default minimum delay of 5 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ClusterCreatedWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeClusterInput, *DescribeClusterOutput, error) (bool, error) +} + +// ClusterCreatedWaiter defines the waiters for ClusterCreated +type ClusterCreatedWaiter struct { + client DescribeClusterAPIClient + + options ClusterCreatedWaiterOptions +} + +// NewClusterCreatedWaiter constructs a ClusterCreatedWaiter. +func NewClusterCreatedWaiter(client DescribeClusterAPIClient, optFns ...func(*ClusterCreatedWaiterOptions)) *ClusterCreatedWaiter { + options := ClusterCreatedWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = clusterCreatedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ClusterCreatedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ClusterCreated waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *ClusterCreatedWaiter) Wait(ctx context.Context, params *DescribeClusterInput, maxWaitDur time.Duration, optFns ...func(*ClusterCreatedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeCluster(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ClusterCreated waiter") +} + +func clusterCreatedStateRetryable(ctx context.Context, input *DescribeClusterInput, output *DescribeClusterOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("Cluster.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DEPLOYED" + value, ok := pathValue.(types.Status) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Cluster.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "PENDING" + value, ok := pathValue.(types.Status) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) + } + + if string(value) == expectedValue { + return true, nil + } + } + + if err != nil { + var errorType *types.InternalServerException + if errors.As(err, &errorType) { + return true, nil + } + } + + return true, nil +} + +// ClusterDeletedWaiterOptions are waiter options for ClusterDeletedWaiter +type ClusterDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ClusterDeletedWaiter will use default minimum delay of 5 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ClusterDeletedWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeClusterInput, *DescribeClusterOutput, error) (bool, error) +} + +// ClusterDeletedWaiter defines the waiters for ClusterDeleted +type ClusterDeletedWaiter struct { + client DescribeClusterAPIClient + + options ClusterDeletedWaiterOptions +} + +// NewClusterDeletedWaiter constructs a ClusterDeletedWaiter. +func NewClusterDeletedWaiter(client DescribeClusterAPIClient, optFns ...func(*ClusterDeletedWaiterOptions)) *ClusterDeletedWaiter { + options := ClusterDeletedWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = clusterDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ClusterDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ClusterDeleted waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *ClusterDeletedWaiter) Wait(ctx context.Context, params *DescribeClusterInput, maxWaitDur time.Duration, optFns ...func(*ClusterDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeCluster(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ClusterDeleted waiter") +} + +func clusterDeletedStateRetryable(ctx context.Context, input *DescribeClusterInput, output *DescribeClusterOutput, err error) (bool, error) { + + if err != nil { + var errorType *types.ResourceNotFoundException + if errors.As(err, &errorType) { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Cluster.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "PENDING_DELETION" + value, ok := pathValue.(types.Status) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) + } + + if string(value) == expectedValue { + return true, nil + } + } + + if err != nil { + var errorType *types.InternalServerException + if errors.As(err, &errorType) { + return true, nil + } + } + + return true, nil +} + +func newServiceMetadataMiddleware_opDescribeCluster(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "DescribeCluster", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_DescribeControlPanel.go b/service/route53recoverycontrolconfig/api_op_DescribeControlPanel.go new file mode 100644 index 00000000000..1cf1ae00748 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_DescribeControlPanel.go @@ -0,0 +1,478 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "errors" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" +) + +// Displays details about a control panel. +func (c *Client) DescribeControlPanel(ctx context.Context, params *DescribeControlPanelInput, optFns ...func(*Options)) (*DescribeControlPanelOutput, error) { + if params == nil { + params = &DescribeControlPanelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeControlPanel", params, optFns, c.addOperationDescribeControlPanelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeControlPanelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeControlPanelInput struct { + + // The Amazon Resource Name (ARN) of the control panel that you're getting details + // for. + // + // This member is required. + ControlPanelArn *string + + noSmithyDocumentSerde +} + +type DescribeControlPanelOutput struct { + + // Information about the control panel. + ControlPanel *types.ControlPanel + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeControlPanelMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeControlPanel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeControlPanel{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeControlPanelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeControlPanel(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// DescribeControlPanelAPIClient is a client that implements the +// DescribeControlPanel operation. +type DescribeControlPanelAPIClient interface { + DescribeControlPanel(context.Context, *DescribeControlPanelInput, ...func(*Options)) (*DescribeControlPanelOutput, error) +} + +var _ DescribeControlPanelAPIClient = (*Client)(nil) + +// ControlPanelCreatedWaiterOptions are waiter options for +// ControlPanelCreatedWaiter +type ControlPanelCreatedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ControlPanelCreatedWaiter will use default minimum delay of 5 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ControlPanelCreatedWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeControlPanelInput, *DescribeControlPanelOutput, error) (bool, error) +} + +// ControlPanelCreatedWaiter defines the waiters for ControlPanelCreated +type ControlPanelCreatedWaiter struct { + client DescribeControlPanelAPIClient + + options ControlPanelCreatedWaiterOptions +} + +// NewControlPanelCreatedWaiter constructs a ControlPanelCreatedWaiter. +func NewControlPanelCreatedWaiter(client DescribeControlPanelAPIClient, optFns ...func(*ControlPanelCreatedWaiterOptions)) *ControlPanelCreatedWaiter { + options := ControlPanelCreatedWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = controlPanelCreatedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ControlPanelCreatedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ControlPanelCreated waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *ControlPanelCreatedWaiter) Wait(ctx context.Context, params *DescribeControlPanelInput, maxWaitDur time.Duration, optFns ...func(*ControlPanelCreatedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeControlPanel(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ControlPanelCreated waiter") +} + +func controlPanelCreatedStateRetryable(ctx context.Context, input *DescribeControlPanelInput, output *DescribeControlPanelOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("ControlPanel.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DEPLOYED" + value, ok := pathValue.(types.Status) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("ControlPanel.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "PENDING" + value, ok := pathValue.(types.Status) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) + } + + if string(value) == expectedValue { + return true, nil + } + } + + if err != nil { + var errorType *types.InternalServerException + if errors.As(err, &errorType) { + return true, nil + } + } + + return true, nil +} + +// ControlPanelDeletedWaiterOptions are waiter options for +// ControlPanelDeletedWaiter +type ControlPanelDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ControlPanelDeletedWaiter will use default minimum delay of 5 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ControlPanelDeletedWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeControlPanelInput, *DescribeControlPanelOutput, error) (bool, error) +} + +// ControlPanelDeletedWaiter defines the waiters for ControlPanelDeleted +type ControlPanelDeletedWaiter struct { + client DescribeControlPanelAPIClient + + options ControlPanelDeletedWaiterOptions +} + +// NewControlPanelDeletedWaiter constructs a ControlPanelDeletedWaiter. +func NewControlPanelDeletedWaiter(client DescribeControlPanelAPIClient, optFns ...func(*ControlPanelDeletedWaiterOptions)) *ControlPanelDeletedWaiter { + options := ControlPanelDeletedWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = controlPanelDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ControlPanelDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ControlPanelDeleted waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *ControlPanelDeletedWaiter) Wait(ctx context.Context, params *DescribeControlPanelInput, maxWaitDur time.Duration, optFns ...func(*ControlPanelDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeControlPanel(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ControlPanelDeleted waiter") +} + +func controlPanelDeletedStateRetryable(ctx context.Context, input *DescribeControlPanelInput, output *DescribeControlPanelOutput, err error) (bool, error) { + + if err != nil { + var errorType *types.ResourceNotFoundException + if errors.As(err, &errorType) { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("ControlPanel.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "PENDING_DELETION" + value, ok := pathValue.(types.Status) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) + } + + if string(value) == expectedValue { + return true, nil + } + } + + if err != nil { + var errorType *types.InternalServerException + if errors.As(err, &errorType) { + return true, nil + } + } + + return true, nil +} + +func newServiceMetadataMiddleware_opDescribeControlPanel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "DescribeControlPanel", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_DescribeRoutingControl.go b/service/route53recoverycontrolconfig/api_op_DescribeRoutingControl.go new file mode 100644 index 00000000000..38ba651b281 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_DescribeRoutingControl.go @@ -0,0 +1,482 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "errors" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" +) + +// Displays details about a routing control. A routing control has one of two +// states: ON and OFF. You can map the routing control state to the state of an +// Amazon Route 53 health check, which can be used to control routing. To get or +// update the routing control state, see the Recovery Cluster (data plane) API +// actions for Amazon Route 53 Application Recovery Controller. +func (c *Client) DescribeRoutingControl(ctx context.Context, params *DescribeRoutingControlInput, optFns ...func(*Options)) (*DescribeRoutingControlOutput, error) { + if params == nil { + params = &DescribeRoutingControlInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeRoutingControl", params, optFns, c.addOperationDescribeRoutingControlMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeRoutingControlOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeRoutingControlInput struct { + + // The Amazon Resource Name (ARN) of the routing control that you're getting + // details for. + // + // This member is required. + RoutingControlArn *string + + noSmithyDocumentSerde +} + +type DescribeRoutingControlOutput struct { + + // Information about the routing control. + RoutingControl *types.RoutingControl + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeRoutingControlMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeRoutingControl{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeRoutingControl{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeRoutingControlValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRoutingControl(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// DescribeRoutingControlAPIClient is a client that implements the +// DescribeRoutingControl operation. +type DescribeRoutingControlAPIClient interface { + DescribeRoutingControl(context.Context, *DescribeRoutingControlInput, ...func(*Options)) (*DescribeRoutingControlOutput, error) +} + +var _ DescribeRoutingControlAPIClient = (*Client)(nil) + +// RoutingControlCreatedWaiterOptions are waiter options for +// RoutingControlCreatedWaiter +type RoutingControlCreatedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // RoutingControlCreatedWaiter will use default minimum delay of 5 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, RoutingControlCreatedWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeRoutingControlInput, *DescribeRoutingControlOutput, error) (bool, error) +} + +// RoutingControlCreatedWaiter defines the waiters for RoutingControlCreated +type RoutingControlCreatedWaiter struct { + client DescribeRoutingControlAPIClient + + options RoutingControlCreatedWaiterOptions +} + +// NewRoutingControlCreatedWaiter constructs a RoutingControlCreatedWaiter. +func NewRoutingControlCreatedWaiter(client DescribeRoutingControlAPIClient, optFns ...func(*RoutingControlCreatedWaiterOptions)) *RoutingControlCreatedWaiter { + options := RoutingControlCreatedWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = routingControlCreatedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &RoutingControlCreatedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for RoutingControlCreated waiter. The maxWaitDur +// is the maximum wait duration the waiter will wait. The maxWaitDur is required +// and must be greater than zero. +func (w *RoutingControlCreatedWaiter) Wait(ctx context.Context, params *DescribeRoutingControlInput, maxWaitDur time.Duration, optFns ...func(*RoutingControlCreatedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeRoutingControl(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for RoutingControlCreated waiter") +} + +func routingControlCreatedStateRetryable(ctx context.Context, input *DescribeRoutingControlInput, output *DescribeRoutingControlOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("RoutingControl.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DEPLOYED" + value, ok := pathValue.(types.Status) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("RoutingControl.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "PENDING" + value, ok := pathValue.(types.Status) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) + } + + if string(value) == expectedValue { + return true, nil + } + } + + if err != nil { + var errorType *types.InternalServerException + if errors.As(err, &errorType) { + return true, nil + } + } + + return true, nil +} + +// RoutingControlDeletedWaiterOptions are waiter options for +// RoutingControlDeletedWaiter +type RoutingControlDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // RoutingControlDeletedWaiter will use default minimum delay of 5 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, RoutingControlDeletedWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeRoutingControlInput, *DescribeRoutingControlOutput, error) (bool, error) +} + +// RoutingControlDeletedWaiter defines the waiters for RoutingControlDeleted +type RoutingControlDeletedWaiter struct { + client DescribeRoutingControlAPIClient + + options RoutingControlDeletedWaiterOptions +} + +// NewRoutingControlDeletedWaiter constructs a RoutingControlDeletedWaiter. +func NewRoutingControlDeletedWaiter(client DescribeRoutingControlAPIClient, optFns ...func(*RoutingControlDeletedWaiterOptions)) *RoutingControlDeletedWaiter { + options := RoutingControlDeletedWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = routingControlDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &RoutingControlDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for RoutingControlDeleted waiter. The maxWaitDur +// is the maximum wait duration the waiter will wait. The maxWaitDur is required +// and must be greater than zero. +func (w *RoutingControlDeletedWaiter) Wait(ctx context.Context, params *DescribeRoutingControlInput, maxWaitDur time.Duration, optFns ...func(*RoutingControlDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeRoutingControl(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for RoutingControlDeleted waiter") +} + +func routingControlDeletedStateRetryable(ctx context.Context, input *DescribeRoutingControlInput, output *DescribeRoutingControlOutput, err error) (bool, error) { + + if err != nil { + var errorType *types.ResourceNotFoundException + if errors.As(err, &errorType) { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("RoutingControl.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "PENDING_DELETION" + value, ok := pathValue.(types.Status) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.Status value, got %T", pathValue) + } + + if string(value) == expectedValue { + return true, nil + } + } + + if err != nil { + var errorType *types.InternalServerException + if errors.As(err, &errorType) { + return true, nil + } + } + + return true, nil +} + +func newServiceMetadataMiddleware_opDescribeRoutingControl(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "DescribeRoutingControl", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_DescribeSafetyRule.go b/service/route53recoverycontrolconfig/api_op_DescribeSafetyRule.go new file mode 100644 index 00000000000..b643653e8c0 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_DescribeSafetyRule.go @@ -0,0 +1,130 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the safety rules (that is, the assertion rules and gating rules) for +// the routing controls in a control panel. +func (c *Client) DescribeSafetyRule(ctx context.Context, params *DescribeSafetyRuleInput, optFns ...func(*Options)) (*DescribeSafetyRuleOutput, error) { + if params == nil { + params = &DescribeSafetyRuleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeSafetyRule", params, optFns, c.addOperationDescribeSafetyRuleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeSafetyRuleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeSafetyRuleInput struct { + + // The request body that you include when you update a safety rule. + // + // This member is required. + SafetyRuleArn *string + + noSmithyDocumentSerde +} + +type DescribeSafetyRuleOutput struct { + + // An assertion rule enforces that, when a routing control state is changed, the + // criteria set by the rule configuration is met. Otherwise, the change to the + // routing control is not accepted. + AssertionRule *types.AssertionRule + + // A gating rule verifies that a set of gating controls evaluates as true, based on + // a rule configuration that you specify. If the gating rule evaluates to true, + // Amazon Route 53 Application Recovery Controller allows a set of routing control + // state changes to run and complete against the set of target controls. + GatingRule *types.GatingRule + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeSafetyRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeSafetyRule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeSafetyRule{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeSafetyRuleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSafetyRule(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeSafetyRule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "DescribeSafetyRule", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go b/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go new file mode 100644 index 00000000000..3db62558cd4 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go @@ -0,0 +1,217 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns an array of all Amazon Route 53 health checks associated with a specific +// routing control. +func (c *Client) ListAssociatedRoute53HealthChecks(ctx context.Context, params *ListAssociatedRoute53HealthChecksInput, optFns ...func(*Options)) (*ListAssociatedRoute53HealthChecksOutput, error) { + if params == nil { + params = &ListAssociatedRoute53HealthChecksInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListAssociatedRoute53HealthChecks", params, optFns, c.addOperationListAssociatedRoute53HealthChecksMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListAssociatedRoute53HealthChecksOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListAssociatedRoute53HealthChecksInput struct { + + // The Amazon Resource Name (ARN) of the routing control that you're getting + // details for. + // + // This member is required. + RoutingControlArn *string + + // The number of objects that you want to return with this call. + MaxResults int32 + + // The token that identifies which batch of results you want to see. + NextToken *string + + noSmithyDocumentSerde +} + +type ListAssociatedRoute53HealthChecksOutput struct { + + // Identifiers for the health checks. + HealthCheckIds []string + + // The token that identifies which batch of results you want to see. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListAssociatedRoute53HealthChecksMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListAssociatedRoute53HealthChecks{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAssociatedRoute53HealthChecks{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListAssociatedRoute53HealthChecksValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAssociatedRoute53HealthChecks(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListAssociatedRoute53HealthChecksAPIClient is a client that implements the +// ListAssociatedRoute53HealthChecks operation. +type ListAssociatedRoute53HealthChecksAPIClient interface { + ListAssociatedRoute53HealthChecks(context.Context, *ListAssociatedRoute53HealthChecksInput, ...func(*Options)) (*ListAssociatedRoute53HealthChecksOutput, error) +} + +var _ ListAssociatedRoute53HealthChecksAPIClient = (*Client)(nil) + +// ListAssociatedRoute53HealthChecksPaginatorOptions is the paginator options for +// ListAssociatedRoute53HealthChecks +type ListAssociatedRoute53HealthChecksPaginatorOptions struct { + // The number of objects that you want to return with this call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListAssociatedRoute53HealthChecksPaginator is a paginator for +// ListAssociatedRoute53HealthChecks +type ListAssociatedRoute53HealthChecksPaginator struct { + options ListAssociatedRoute53HealthChecksPaginatorOptions + client ListAssociatedRoute53HealthChecksAPIClient + params *ListAssociatedRoute53HealthChecksInput + nextToken *string + firstPage bool +} + +// NewListAssociatedRoute53HealthChecksPaginator returns a new +// ListAssociatedRoute53HealthChecksPaginator +func NewListAssociatedRoute53HealthChecksPaginator(client ListAssociatedRoute53HealthChecksAPIClient, params *ListAssociatedRoute53HealthChecksInput, optFns ...func(*ListAssociatedRoute53HealthChecksPaginatorOptions)) *ListAssociatedRoute53HealthChecksPaginator { + if params == nil { + params = &ListAssociatedRoute53HealthChecksInput{} + } + + options := ListAssociatedRoute53HealthChecksPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListAssociatedRoute53HealthChecksPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListAssociatedRoute53HealthChecksPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListAssociatedRoute53HealthChecks page. +func (p *ListAssociatedRoute53HealthChecksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAssociatedRoute53HealthChecksOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListAssociatedRoute53HealthChecks(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListAssociatedRoute53HealthChecks(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "ListAssociatedRoute53HealthChecks", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_ListClusters.go b/service/route53recoverycontrolconfig/api_op_ListClusters.go new file mode 100644 index 00000000000..5485c56c060 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_ListClusters.go @@ -0,0 +1,204 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns an array of all the clusters in an account. +func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, optFns ...func(*Options)) (*ListClustersOutput, error) { + if params == nil { + params = &ListClustersInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListClusters", params, optFns, c.addOperationListClustersMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListClustersOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListClustersInput struct { + + // The number of objects that you want to return with this call. + MaxResults int32 + + // The token that identifies which batch of results you want to see. + NextToken *string + + noSmithyDocumentSerde +} + +type ListClustersOutput struct { + + // An array of the clusters in an account. + Clusters []types.Cluster + + // The token that identifies which batch of results you want to see. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListClustersMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListClusters{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListClusters{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListClusters(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListClustersAPIClient is a client that implements the ListClusters operation. +type ListClustersAPIClient interface { + ListClusters(context.Context, *ListClustersInput, ...func(*Options)) (*ListClustersOutput, error) +} + +var _ ListClustersAPIClient = (*Client)(nil) + +// ListClustersPaginatorOptions is the paginator options for ListClusters +type ListClustersPaginatorOptions struct { + // The number of objects that you want to return with this call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListClustersPaginator is a paginator for ListClusters +type ListClustersPaginator struct { + options ListClustersPaginatorOptions + client ListClustersAPIClient + params *ListClustersInput + nextToken *string + firstPage bool +} + +// NewListClustersPaginator returns a new ListClustersPaginator +func NewListClustersPaginator(client ListClustersAPIClient, params *ListClustersInput, optFns ...func(*ListClustersPaginatorOptions)) *ListClustersPaginator { + if params == nil { + params = &ListClustersInput{} + } + + options := ListClustersPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListClustersPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListClustersPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListClusters page. +func (p *ListClustersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListClustersOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListClusters(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListClusters(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "ListClusters", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_ListControlPanels.go b/service/route53recoverycontrolconfig/api_op_ListControlPanels.go new file mode 100644 index 00000000000..2c699dcec7a --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_ListControlPanels.go @@ -0,0 +1,208 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns an array of control panels for a cluster. +func (c *Client) ListControlPanels(ctx context.Context, params *ListControlPanelsInput, optFns ...func(*Options)) (*ListControlPanelsOutput, error) { + if params == nil { + params = &ListControlPanelsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListControlPanels", params, optFns, c.addOperationListControlPanelsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListControlPanelsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListControlPanelsInput struct { + + // The Amazon Resource Name (ARN) of a cluster. + ClusterArn *string + + // The number of objects that you want to return with this call. + MaxResults int32 + + // The token that identifies which batch of results you want to see. + NextToken *string + + noSmithyDocumentSerde +} + +type ListControlPanelsOutput struct { + + // The result of a successful ListControlPanel request. + ControlPanels []types.ControlPanel + + // The token that identifies which batch of results you want to see. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListControlPanelsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListControlPanels{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListControlPanels{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListControlPanels(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListControlPanelsAPIClient is a client that implements the ListControlPanels +// operation. +type ListControlPanelsAPIClient interface { + ListControlPanels(context.Context, *ListControlPanelsInput, ...func(*Options)) (*ListControlPanelsOutput, error) +} + +var _ ListControlPanelsAPIClient = (*Client)(nil) + +// ListControlPanelsPaginatorOptions is the paginator options for ListControlPanels +type ListControlPanelsPaginatorOptions struct { + // The number of objects that you want to return with this call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListControlPanelsPaginator is a paginator for ListControlPanels +type ListControlPanelsPaginator struct { + options ListControlPanelsPaginatorOptions + client ListControlPanelsAPIClient + params *ListControlPanelsInput + nextToken *string + firstPage bool +} + +// NewListControlPanelsPaginator returns a new ListControlPanelsPaginator +func NewListControlPanelsPaginator(client ListControlPanelsAPIClient, params *ListControlPanelsInput, optFns ...func(*ListControlPanelsPaginatorOptions)) *ListControlPanelsPaginator { + if params == nil { + params = &ListControlPanelsInput{} + } + + options := ListControlPanelsPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListControlPanelsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListControlPanelsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListControlPanels page. +func (p *ListControlPanelsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListControlPanelsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListControlPanels(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListControlPanels(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "ListControlPanels", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go b/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go new file mode 100644 index 00000000000..e3f80a3eed8 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go @@ -0,0 +1,218 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns an array of routing controls for a control panel. A routing control is +// an Amazon Route 53 Application Recovery Controller construct that has one of two +// states: ON and OFF. You can map the routing control state to the state of an +// Amazon Route 53 health check, which can be used to control routing. +func (c *Client) ListRoutingControls(ctx context.Context, params *ListRoutingControlsInput, optFns ...func(*Options)) (*ListRoutingControlsOutput, error) { + if params == nil { + params = &ListRoutingControlsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListRoutingControls", params, optFns, c.addOperationListRoutingControlsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListRoutingControlsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListRoutingControlsInput struct { + + // The Amazon Resource Name (ARN) of the control panel that you're getting routing + // control details for. + // + // This member is required. + ControlPanelArn *string + + // The number of objects that you want to return with this call. + MaxResults int32 + + // The token that identifies which batch of results you want to see. + NextToken *string + + noSmithyDocumentSerde +} + +type ListRoutingControlsOutput struct { + + // The token that identifies which batch of results you want to see. + NextToken *string + + // An array of routing controls. + RoutingControls []types.RoutingControl + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListRoutingControlsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListRoutingControls{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRoutingControls{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListRoutingControlsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRoutingControls(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListRoutingControlsAPIClient is a client that implements the ListRoutingControls +// operation. +type ListRoutingControlsAPIClient interface { + ListRoutingControls(context.Context, *ListRoutingControlsInput, ...func(*Options)) (*ListRoutingControlsOutput, error) +} + +var _ ListRoutingControlsAPIClient = (*Client)(nil) + +// ListRoutingControlsPaginatorOptions is the paginator options for +// ListRoutingControls +type ListRoutingControlsPaginatorOptions struct { + // The number of objects that you want to return with this call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListRoutingControlsPaginator is a paginator for ListRoutingControls +type ListRoutingControlsPaginator struct { + options ListRoutingControlsPaginatorOptions + client ListRoutingControlsAPIClient + params *ListRoutingControlsInput + nextToken *string + firstPage bool +} + +// NewListRoutingControlsPaginator returns a new ListRoutingControlsPaginator +func NewListRoutingControlsPaginator(client ListRoutingControlsAPIClient, params *ListRoutingControlsInput, optFns ...func(*ListRoutingControlsPaginatorOptions)) *ListRoutingControlsPaginator { + if params == nil { + params = &ListRoutingControlsInput{} + } + + options := ListRoutingControlsPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListRoutingControlsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListRoutingControlsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListRoutingControls page. +func (p *ListRoutingControlsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRoutingControlsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListRoutingControls(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListRoutingControls(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "ListRoutingControls", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go b/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go new file mode 100644 index 00000000000..2b7e5472b48 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go @@ -0,0 +1,215 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// List the safety rules (the assertion rules and gating rules) that you've defined +// for the routing controls in a control panel. +func (c *Client) ListSafetyRules(ctx context.Context, params *ListSafetyRulesInput, optFns ...func(*Options)) (*ListSafetyRulesOutput, error) { + if params == nil { + params = &ListSafetyRulesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListSafetyRules", params, optFns, c.addOperationListSafetyRulesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListSafetyRulesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListSafetyRulesInput struct { + + // The Amazon Resource Name (ARN) of the control panel that you're getting details + // for. + // + // This member is required. + ControlPanelArn *string + + // The number of objects that you want to return with this call. + MaxResults int32 + + // The token that identifies which batch of results you want to see. + NextToken *string + + noSmithyDocumentSerde +} + +type ListSafetyRulesOutput struct { + + // The token that identifies which batch of results you want to see. + NextToken *string + + // The list of safety rules in a control panel. + SafetyRules []types.Rule + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListSafetyRulesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListSafetyRules{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListSafetyRules{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListSafetyRulesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSafetyRules(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListSafetyRulesAPIClient is a client that implements the ListSafetyRules +// operation. +type ListSafetyRulesAPIClient interface { + ListSafetyRules(context.Context, *ListSafetyRulesInput, ...func(*Options)) (*ListSafetyRulesOutput, error) +} + +var _ ListSafetyRulesAPIClient = (*Client)(nil) + +// ListSafetyRulesPaginatorOptions is the paginator options for ListSafetyRules +type ListSafetyRulesPaginatorOptions struct { + // The number of objects that you want to return with this call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListSafetyRulesPaginator is a paginator for ListSafetyRules +type ListSafetyRulesPaginator struct { + options ListSafetyRulesPaginatorOptions + client ListSafetyRulesAPIClient + params *ListSafetyRulesInput + nextToken *string + firstPage bool +} + +// NewListSafetyRulesPaginator returns a new ListSafetyRulesPaginator +func NewListSafetyRulesPaginator(client ListSafetyRulesAPIClient, params *ListSafetyRulesInput, optFns ...func(*ListSafetyRulesPaginatorOptions)) *ListSafetyRulesPaginator { + if params == nil { + params = &ListSafetyRulesInput{} + } + + options := ListSafetyRulesPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListSafetyRulesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListSafetyRulesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListSafetyRules page. +func (p *ListSafetyRulesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSafetyRulesOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListSafetyRules(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListSafetyRules(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "ListSafetyRules", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_UpdateControlPanel.go b/service/route53recoverycontrolconfig/api_op_UpdateControlPanel.go new file mode 100644 index 00000000000..7808faef30b --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_UpdateControlPanel.go @@ -0,0 +1,128 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a control panel. The only update you can make to a control panel is to +// change the name of the control panel. +func (c *Client) UpdateControlPanel(ctx context.Context, params *UpdateControlPanelInput, optFns ...func(*Options)) (*UpdateControlPanelOutput, error) { + if params == nil { + params = &UpdateControlPanelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateControlPanel", params, optFns, c.addOperationUpdateControlPanelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateControlPanelOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The details of the control panel that you're updating. +type UpdateControlPanelInput struct { + + // The Amazon Resource Name (ARN) of the control panel. + // + // This member is required. + ControlPanelArn *string + + // The name of the control panel. + // + // This member is required. + ControlPanelName *string + + noSmithyDocumentSerde +} + +type UpdateControlPanelOutput struct { + + // The control panel to update. + ControlPanel *types.ControlPanel + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateControlPanelMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateControlPanel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateControlPanel{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateControlPanelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateControlPanel(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateControlPanel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "UpdateControlPanel", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_UpdateRoutingControl.go b/service/route53recoverycontrolconfig/api_op_UpdateRoutingControl.go new file mode 100644 index 00000000000..136367817d4 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_UpdateRoutingControl.go @@ -0,0 +1,129 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a routing control. You can only update the name of the routing control. +// To get or update the routing control state, see the Recovery Cluster (data +// plane) API actions for Amazon Route 53 Application Recovery Controller. +func (c *Client) UpdateRoutingControl(ctx context.Context, params *UpdateRoutingControlInput, optFns ...func(*Options)) (*UpdateRoutingControlOutput, error) { + if params == nil { + params = &UpdateRoutingControlInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateRoutingControl", params, optFns, c.addOperationUpdateRoutingControlMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateRoutingControlOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The details of the routing control that you're updating. +type UpdateRoutingControlInput struct { + + // The Amazon Resource Name (ARN) of the routing control. + // + // This member is required. + RoutingControlArn *string + + // The name of the routing control. + // + // This member is required. + RoutingControlName *string + + noSmithyDocumentSerde +} + +type UpdateRoutingControlOutput struct { + + // The routing control that was updated. + RoutingControl *types.RoutingControl + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateRoutingControlMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateRoutingControl{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateRoutingControl{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateRoutingControlValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRoutingControl(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateRoutingControl(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "UpdateRoutingControl", + } +} diff --git a/service/route53recoverycontrolconfig/api_op_UpdateSafetyRule.go b/service/route53recoverycontrolconfig/api_op_UpdateSafetyRule.go new file mode 100644 index 00000000000..84fd2be01e4 --- /dev/null +++ b/service/route53recoverycontrolconfig/api_op_UpdateSafetyRule.go @@ -0,0 +1,136 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Update a safety rule (an assertion rule or gating rule) for the routing controls +// in a control panel. You can only update the name and the waiting period for a +// safety rule. To make other updates, delete the safety rule and create a new +// safety rule. +func (c *Client) UpdateSafetyRule(ctx context.Context, params *UpdateSafetyRuleInput, optFns ...func(*Options)) (*UpdateSafetyRuleOutput, error) { + if params == nil { + params = &UpdateSafetyRuleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateSafetyRule", params, optFns, c.addOperationUpdateSafetyRuleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateSafetyRuleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateSafetyRuleInput struct { + + // An update to an assertion rule. You can update the name or the evaluation period + // (wait period). If you don't specify one of the items to update, the item is + // unchanged. + AssertionRuleUpdate *types.AssertionRuleUpdate + + // Update to a gating rule. You can update the name or the evaluation period (wait + // period). If you don't specify one of the items to update, the item is unchanged. + GatingRuleUpdate *types.GatingRuleUpdate + + noSmithyDocumentSerde +} + +type UpdateSafetyRuleOutput struct { + + // An assertion rule enforces that, when a routing control state is changed, the + // criteria set by the rule configuration is met. Otherwise, the change to the + // routing control is not accepted. + AssertionRule *types.AssertionRule + + // A gating rule verifies that a set of gating controls evaluates as true, based on + // a rule configuration that you specify. If the gating rule evaluates to true, + // Amazon Route 53 Application Recovery Controller allows a set of routing control + // state changes to run and complete against the set of target controls. + GatingRule *types.GatingRule + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateSafetyRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateSafetyRule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateSafetyRule{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateSafetyRuleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSafetyRule(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateSafetyRule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-control-config", + OperationName: "UpdateSafetyRule", + } +} diff --git a/service/route53recoverycontrolconfig/deserializers.go b/service/route53recoverycontrolconfig/deserializers.go new file mode 100644 index 00000000000..f351c79eb10 --- /dev/null +++ b/service/route53recoverycontrolconfig/deserializers.go @@ -0,0 +1,4303 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + smithy "github.com/aws/smithy-go" + smithyio "github.com/aws/smithy-go/io" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "strings" +) + +type awsRestjson1_deserializeOpCreateCluster struct { +} + +func (*awsRestjson1_deserializeOpCreateCluster) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateCluster(response, &metadata) + } + output := &CreateClusterOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateClusterOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateClusterOutput(v **CreateClusterOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateClusterOutput + if *v == nil { + sv = &CreateClusterOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Cluster": + if err := awsRestjson1_deserializeDocumentCluster(&sv.Cluster, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateControlPanel struct { +} + +func (*awsRestjson1_deserializeOpCreateControlPanel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateControlPanel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateControlPanel(response, &metadata) + } + output := &CreateControlPanelOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateControlPanelOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateControlPanel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateControlPanelOutput(v **CreateControlPanelOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateControlPanelOutput + if *v == nil { + sv = &CreateControlPanelOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ControlPanel": + if err := awsRestjson1_deserializeDocumentControlPanel(&sv.ControlPanel, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateRoutingControl struct { +} + +func (*awsRestjson1_deserializeOpCreateRoutingControl) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateRoutingControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateRoutingControl(response, &metadata) + } + output := &CreateRoutingControlOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateRoutingControlOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateRoutingControl(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateRoutingControlOutput(v **CreateRoutingControlOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateRoutingControlOutput + if *v == nil { + sv = &CreateRoutingControlOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RoutingControl": + if err := awsRestjson1_deserializeDocumentRoutingControl(&sv.RoutingControl, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateSafetyRule struct { +} + +func (*awsRestjson1_deserializeOpCreateSafetyRule) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateSafetyRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateSafetyRule(response, &metadata) + } + output := &CreateSafetyRuleOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateSafetyRuleOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateSafetyRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateSafetyRuleOutput(v **CreateSafetyRuleOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateSafetyRuleOutput + if *v == nil { + sv = &CreateSafetyRuleOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssertionRule": + if err := awsRestjson1_deserializeDocumentAssertionRule(&sv.AssertionRule, value); err != nil { + return err + } + + case "GatingRule": + if err := awsRestjson1_deserializeDocumentGatingRule(&sv.GatingRule, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDeleteCluster struct { +} + +func (*awsRestjson1_deserializeOpDeleteCluster) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteCluster(response, &metadata) + } + output := &DeleteClusterOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteControlPanel struct { +} + +func (*awsRestjson1_deserializeOpDeleteControlPanel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteControlPanel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteControlPanel(response, &metadata) + } + output := &DeleteControlPanelOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteControlPanel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteRoutingControl struct { +} + +func (*awsRestjson1_deserializeOpDeleteRoutingControl) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteRoutingControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteRoutingControl(response, &metadata) + } + output := &DeleteRoutingControlOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteRoutingControl(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteSafetyRule struct { +} + +func (*awsRestjson1_deserializeOpDeleteSafetyRule) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteSafetyRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteSafetyRule(response, &metadata) + } + output := &DeleteSafetyRuleOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteSafetyRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDescribeCluster struct { +} + +func (*awsRestjson1_deserializeOpDescribeCluster) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDescribeCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDescribeCluster(response, &metadata) + } + output := &DescribeClusterOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentDescribeClusterOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDescribeCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDescribeClusterOutput(v **DescribeClusterOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeClusterOutput + if *v == nil { + sv = &DescribeClusterOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Cluster": + if err := awsRestjson1_deserializeDocumentCluster(&sv.Cluster, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDescribeControlPanel struct { +} + +func (*awsRestjson1_deserializeOpDescribeControlPanel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDescribeControlPanel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDescribeControlPanel(response, &metadata) + } + output := &DescribeControlPanelOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentDescribeControlPanelOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDescribeControlPanel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDescribeControlPanelOutput(v **DescribeControlPanelOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeControlPanelOutput + if *v == nil { + sv = &DescribeControlPanelOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ControlPanel": + if err := awsRestjson1_deserializeDocumentControlPanel(&sv.ControlPanel, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDescribeRoutingControl struct { +} + +func (*awsRestjson1_deserializeOpDescribeRoutingControl) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDescribeRoutingControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDescribeRoutingControl(response, &metadata) + } + output := &DescribeRoutingControlOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentDescribeRoutingControlOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDescribeRoutingControl(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDescribeRoutingControlOutput(v **DescribeRoutingControlOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeRoutingControlOutput + if *v == nil { + sv = &DescribeRoutingControlOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RoutingControl": + if err := awsRestjson1_deserializeDocumentRoutingControl(&sv.RoutingControl, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDescribeSafetyRule struct { +} + +func (*awsRestjson1_deserializeOpDescribeSafetyRule) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDescribeSafetyRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDescribeSafetyRule(response, &metadata) + } + output := &DescribeSafetyRuleOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentDescribeSafetyRuleOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDescribeSafetyRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDescribeSafetyRuleOutput(v **DescribeSafetyRuleOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeSafetyRuleOutput + if *v == nil { + sv = &DescribeSafetyRuleOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssertionRule": + if err := awsRestjson1_deserializeDocumentAssertionRule(&sv.AssertionRule, value); err != nil { + return err + } + + case "GatingRule": + if err := awsRestjson1_deserializeDocumentGatingRule(&sv.GatingRule, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListAssociatedRoute53HealthChecks struct { +} + +func (*awsRestjson1_deserializeOpListAssociatedRoute53HealthChecks) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListAssociatedRoute53HealthChecks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListAssociatedRoute53HealthChecks(response, &metadata) + } + output := &ListAssociatedRoute53HealthChecksOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListAssociatedRoute53HealthChecksOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListAssociatedRoute53HealthChecks(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListAssociatedRoute53HealthChecksOutput(v **ListAssociatedRoute53HealthChecksOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListAssociatedRoute53HealthChecksOutput + if *v == nil { + sv = &ListAssociatedRoute53HealthChecksOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "HealthCheckIds": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.HealthCheckIds, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListClusters struct { +} + +func (*awsRestjson1_deserializeOpListClusters) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListClusters) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListClusters(response, &metadata) + } + output := &ListClustersOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListClustersOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListClusters(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListClustersOutput(v **ListClustersOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListClustersOutput + if *v == nil { + sv = &ListClustersOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Clusters": + if err := awsRestjson1_deserializeDocument__listOfCluster(&sv.Clusters, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListControlPanels struct { +} + +func (*awsRestjson1_deserializeOpListControlPanels) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListControlPanels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListControlPanels(response, &metadata) + } + output := &ListControlPanelsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListControlPanelsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListControlPanels(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListControlPanelsOutput(v **ListControlPanelsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListControlPanelsOutput + if *v == nil { + sv = &ListControlPanelsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ControlPanels": + if err := awsRestjson1_deserializeDocument__listOfControlPanel(&sv.ControlPanels, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListRoutingControls struct { +} + +func (*awsRestjson1_deserializeOpListRoutingControls) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListRoutingControls) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListRoutingControls(response, &metadata) + } + output := &ListRoutingControlsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListRoutingControlsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListRoutingControls(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListRoutingControlsOutput(v **ListRoutingControlsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListRoutingControlsOutput + if *v == nil { + sv = &ListRoutingControlsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "RoutingControls": + if err := awsRestjson1_deserializeDocument__listOfRoutingControl(&sv.RoutingControls, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListSafetyRules struct { +} + +func (*awsRestjson1_deserializeOpListSafetyRules) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListSafetyRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListSafetyRules(response, &metadata) + } + output := &ListSafetyRulesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListSafetyRulesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListSafetyRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListSafetyRulesOutput(v **ListSafetyRulesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListSafetyRulesOutput + if *v == nil { + sv = &ListSafetyRulesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax8096 to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "SafetyRules": + if err := awsRestjson1_deserializeDocument__listOfRule(&sv.SafetyRules, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateControlPanel struct { +} + +func (*awsRestjson1_deserializeOpUpdateControlPanel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateControlPanel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateControlPanel(response, &metadata) + } + output := &UpdateControlPanelOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateControlPanelOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateControlPanel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateControlPanelOutput(v **UpdateControlPanelOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateControlPanelOutput + if *v == nil { + sv = &UpdateControlPanelOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ControlPanel": + if err := awsRestjson1_deserializeDocumentControlPanel(&sv.ControlPanel, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateRoutingControl struct { +} + +func (*awsRestjson1_deserializeOpUpdateRoutingControl) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateRoutingControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateRoutingControl(response, &metadata) + } + output := &UpdateRoutingControlOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateRoutingControlOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateRoutingControl(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateRoutingControlOutput(v **UpdateRoutingControlOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateRoutingControlOutput + if *v == nil { + sv = &UpdateRoutingControlOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RoutingControl": + if err := awsRestjson1_deserializeDocumentRoutingControl(&sv.RoutingControl, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateSafetyRule struct { +} + +func (*awsRestjson1_deserializeOpUpdateSafetyRule) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateSafetyRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateSafetyRule(response, &metadata) + } + output := &UpdateSafetyRuleOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateSafetyRuleOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateSafetyRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateSafetyRuleOutput(v **UpdateSafetyRuleOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateSafetyRuleOutput + if *v == nil { + sv = &UpdateSafetyRuleOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssertionRule": + if err := awsRestjson1_deserializeDocumentAssertionRule(&sv.AssertionRule, value); err != nil { + return err + } + + case "GatingRule": + if err := awsRestjson1_deserializeDocumentGatingRule(&sv.GatingRule, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServiceQuotaExceededException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfCluster(v *[]types.Cluster, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Cluster + if *v == nil { + cv = []types.Cluster{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Cluster + destAddr := &col + if err := awsRestjson1_deserializeDocumentCluster(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfClusterEndpoint(v *[]types.ClusterEndpoint, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ClusterEndpoint + if *v == nil { + cv = []types.ClusterEndpoint{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ClusterEndpoint + destAddr := &col + if err := awsRestjson1_deserializeDocumentClusterEndpoint(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfControlPanel(v *[]types.ControlPanel, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ControlPanel + if *v == nil { + cv = []types.ControlPanel{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ControlPanel + destAddr := &col + if err := awsRestjson1_deserializeDocumentControlPanel(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfRoutingControl(v *[]types.RoutingControl, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.RoutingControl + if *v == nil { + cv = []types.RoutingControl{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RoutingControl + destAddr := &col + if err := awsRestjson1_deserializeDocumentRoutingControl(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfRule(v *[]types.Rule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Rule + if *v == nil { + cv = []types.Rule{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Rule + destAddr := &col + if err := awsRestjson1_deserializeDocumentRule(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAssertionRule(v **types.AssertionRule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AssertionRule + if *v == nil { + sv = &types.AssertionRule{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssertedControls": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.AssertedControls, value); err != nil { + return err + } + + case "ControlPanelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ControlPanelArn = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "RuleConfig": + if err := awsRestjson1_deserializeDocumentRuleConfig(&sv.RuleConfig, value); err != nil { + return err + } + + case "SafetyRuleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.SafetyRuleArn = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) + } + + case "WaitPeriodMs": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected __integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.WaitPeriodMs = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Cluster + if *v == nil { + sv = &types.Cluster{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ClusterArn = ptr.String(jtv) + } + + case "ClusterEndpoints": + if err := awsRestjson1_deserializeDocument__listOfClusterEndpoint(&sv.ClusterEndpoints, value); err != nil { + return err + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentClusterEndpoint(v **types.ClusterEndpoint, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ClusterEndpoint + if *v == nil { + sv = &types.ClusterEndpoint{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Endpoint": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMin1Max128 to be of type string, got %T instead", value) + } + sv.Endpoint = ptr.String(jtv) + } + + case "Region": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMin1Max32 to be of type string, got %T instead", value) + } + sv.Region = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConflictException + if *v == nil { + sv = &types.ConflictException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentControlPanel(v **types.ControlPanel, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ControlPanel + if *v == nil { + sv = &types.ControlPanel{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ClusterArn = ptr.String(jtv) + } + + case "ControlPanelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ControlPanelArn = ptr.String(jtv) + } + + case "DefaultControlPanel": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) + } + sv.DefaultControlPanel = jtv + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "RoutingControlCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected __integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RoutingControlCount = int32(i64) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGatingRule(v **types.GatingRule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GatingRule + if *v == nil { + sv = &types.GatingRule{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ControlPanelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ControlPanelArn = ptr.String(jtv) + } + + case "GatingControls": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.GatingControls, value); err != nil { + return err + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "RuleConfig": + if err := awsRestjson1_deserializeDocumentRuleConfig(&sv.RuleConfig, value); err != nil { + return err + } + + case "SafetyRuleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.SafetyRuleArn = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) + } + + case "TargetControls": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.TargetControls, value); err != nil { + return err + } + + case "WaitPeriodMs": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected __integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.WaitPeriodMs = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InternalServerException + if *v == nil { + sv = &types.InternalServerException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRoutingControl(v **types.RoutingControl, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RoutingControl + if *v == nil { + sv = &types.RoutingControl{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ControlPanelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ControlPanelArn = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMin1Max64PatternS to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "RoutingControlArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.RoutingControlArn = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRule(v **types.Rule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Rule + if *v == nil { + sv = &types.Rule{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ASSERTION": + if err := awsRestjson1_deserializeDocumentAssertionRule(&sv.ASSERTION, value); err != nil { + return err + } + + case "GATING": + if err := awsRestjson1_deserializeDocumentGatingRule(&sv.GATING, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRuleConfig(v **types.RuleConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RuleConfig + if *v == nil { + sv = &types.RuleConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Inverted": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) + } + sv.Inverted = jtv + } + + case "Threshold": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected __integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Threshold = int32(i64) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleType to be of type string, got %T instead", value) + } + sv.Type = types.RuleType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ServiceQuotaExceededException + if *v == nil { + sv = &types.ServiceQuotaExceededException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ThrottlingException + if *v == nil { + sv = &types.ThrottlingException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} diff --git a/service/route53recoverycontrolconfig/doc.go b/service/route53recoverycontrolconfig/doc.go new file mode 100644 index 00000000000..9d1b2c3ffa0 --- /dev/null +++ b/service/route53recoverycontrolconfig/doc.go @@ -0,0 +1,8 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package route53recoverycontrolconfig provides the API client, operations, and +// parameter types for AWS Route53 Recovery Control Config. +// +// Recovery Control Configuration API Reference for Amazon Route 53 Application +// Recovery Controller +package route53recoverycontrolconfig diff --git a/service/route53recoverycontrolconfig/endpoints.go b/service/route53recoverycontrolconfig/endpoints.go new file mode 100644 index 00000000000..d7a68b1a250 --- /dev/null +++ b/service/route53recoverycontrolconfig/endpoints.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalendpoints "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/internal/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/url" +) + +// EndpointResolverOptions is the service endpoint resolver options +type EndpointResolverOptions = internalendpoints.Options + +// EndpointResolver interface for resolving service endpoints. +type EndpointResolver interface { + ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) +} + +var _ EndpointResolver = &internalendpoints.Resolver{} + +// NewDefaultEndpointResolver constructs a new service endpoint resolver +func NewDefaultEndpointResolver() *internalendpoints.Resolver { + return internalendpoints.New() +} + +// EndpointResolverFunc is a helper utility that wraps a function so it satisfies +// the EndpointResolver interface. This is useful when you want to add additional +// endpoint resolving logic, or stub out specific endpoints with custom values. +type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) + +func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return fn(region, options) +} + +func resolveDefaultEndpointConfiguration(o *Options) { + if o.EndpointResolver != nil { + return + } + o.EndpointResolver = NewDefaultEndpointResolver() +} + +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + +type ResolveEndpoint struct { + Resolver EndpointResolver + Options EndpointResolverOptions +} + +func (*ResolveEndpoint) ID() string { + return "ResolveEndpoint" +} + +func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.Resolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + var endpoint aws.Endpoint + endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), m.Options) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(awsmiddleware.GetSigningName(ctx)) == 0 { + signingName := endpoint.SigningName + if len(signingName) == 0 { + signingName = "route53-recovery-control-config" + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) + ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) + return next.HandleSerialize(ctx, in) +} +func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { + return stack.Serialize.Insert(&ResolveEndpoint{ + Resolver: o.EndpointResolver, + Options: o.EndpointOptions, + }, "OperationSerializer", middleware.Before) +} + +func removeResolveEndpointMiddleware(stack *middleware.Stack) error { + _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) + return err +} + +type wrappedEndpointResolver struct { + awsResolver aws.EndpointResolver + resolver EndpointResolver +} + +func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + if w.awsResolver == nil { + goto fallback + } + endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region) + if err == nil { + return endpoint, nil + } + + if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { + return endpoint, err + } + +fallback: + if w.resolver == nil { + return endpoint, fmt.Errorf("default endpoint resolver provided was nil") + } + return w.resolver.ResolveEndpoint(region, options) +} + +// withEndpointResolver returns an EndpointResolver that first delegates endpoint +// resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError +// error, the resolver will use the the provided fallbackResolver for resolution. +// awsResolver and fallbackResolver must not be nil +func withEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver { + return &wrappedEndpointResolver{ + awsResolver: awsResolver, + resolver: fallbackResolver, + } +} diff --git a/service/route53recoverycontrolconfig/generated.json b/service/route53recoverycontrolconfig/generated.json new file mode 100644 index 00000000000..7ea74bb00b1 --- /dev/null +++ b/service/route53recoverycontrolconfig/generated.json @@ -0,0 +1,45 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/smithy-go": "v1.4.0", + "github.com/jmespath/go-jmespath": "v0.4.0" + }, + "files": [ + "api_client.go", + "api_op_CreateCluster.go", + "api_op_CreateControlPanel.go", + "api_op_CreateRoutingControl.go", + "api_op_CreateSafetyRule.go", + "api_op_DeleteCluster.go", + "api_op_DeleteControlPanel.go", + "api_op_DeleteRoutingControl.go", + "api_op_DeleteSafetyRule.go", + "api_op_DescribeCluster.go", + "api_op_DescribeControlPanel.go", + "api_op_DescribeRoutingControl.go", + "api_op_DescribeSafetyRule.go", + "api_op_ListAssociatedRoute53HealthChecks.go", + "api_op_ListClusters.go", + "api_op_ListControlPanels.go", + "api_op_ListRoutingControls.go", + "api_op_ListSafetyRules.go", + "api_op_UpdateControlPanel.go", + "api_op_UpdateRoutingControl.go", + "api_op_UpdateSafetyRule.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "protocol_test.go", + "serializers.go", + "types/enums.go", + "types/errors.go", + "types/types.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig", + "unstable": false +} diff --git a/service/route53recoverycontrolconfig/go.mod b/service/route53recoverycontrolconfig/go.mod new file mode 100644 index 00000000000..25c3b0cef5f --- /dev/null +++ b/service/route53recoverycontrolconfig/go.mod @@ -0,0 +1,11 @@ +module github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig + +go 1.15 + +require ( + github.com/aws/aws-sdk-go-v2 v1.7.1 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 + github.com/jmespath/go-jmespath v0.4.0 +) + +replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53recoverycontrolconfig/go.sum b/service/route53recoverycontrolconfig/go.sum new file mode 100644 index 00000000000..6e425b89066 --- /dev/null +++ b/service/route53recoverycontrolconfig/go.sum @@ -0,0 +1,20 @@ +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/route53recoverycontrolconfig/go_module_metadata.go b/service/route53recoverycontrolconfig/go_module_metadata.go new file mode 100644 index 00000000000..2526db49c3e --- /dev/null +++ b/service/route53recoverycontrolconfig/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package route53recoverycontrolconfig + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "tip" diff --git a/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go b/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go new file mode 100644 index 00000000000..68a5bd6f86a --- /dev/null +++ b/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go @@ -0,0 +1,106 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/internal/endpoints" + "regexp" +) + +// Options is the endpoint resolver configuration options +type Options struct { + DisableHTTPS bool +} + +// Resolver Route53 Recovery Control Config endpoint resolver +type Resolver struct { + partitions endpoints.Partitions +} + +// ResolveEndpoint resolves the service endpoint for the given region and options +func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { + if len(region) == 0 { + return endpoint, &aws.MissingRegionError{} + } + + opt := endpoints.Options{ + DisableHTTPS: options.DisableHTTPS, + } + return r.partitions.ResolveEndpoint(region, opt) +} + +// New returns a new Resolver +func New() *Resolver { + return &Resolver{ + partitions: defaultPartitions, + } +} + +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + +var defaultPartitions = endpoints.Partitions{ + { + ID: "aws", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-control-config.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.Aws, + IsRegionalized: true, + }, + { + ID: "aws-cn", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-control-config.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsCn, + IsRegionalized: true, + }, + { + ID: "aws-iso", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-control-config.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsIso, + IsRegionalized: true, + }, + { + ID: "aws-iso-b", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-control-config.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsIsoB, + IsRegionalized: true, + }, + { + ID: "aws-us-gov", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-control-config.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsUsGov, + IsRegionalized: true, + }, +} diff --git a/service/route53recoverycontrolconfig/internal/endpoints/endpoints_test.go b/service/route53recoverycontrolconfig/internal/endpoints/endpoints_test.go new file mode 100644 index 00000000000..08e5da2d833 --- /dev/null +++ b/service/route53recoverycontrolconfig/internal/endpoints/endpoints_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "testing" +) + +func TestRegexCompile(t *testing.T) { + _ = defaultPartitions +} diff --git a/service/route53recoverycontrolconfig/protocol_test.go b/service/route53recoverycontrolconfig/protocol_test.go new file mode 100644 index 00000000000..df77b852de3 --- /dev/null +++ b/service/route53recoverycontrolconfig/protocol_test.go @@ -0,0 +1,3 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig diff --git a/service/route53recoverycontrolconfig/serializers.go b/service/route53recoverycontrolconfig/serializers.go new file mode 100644 index 00000000000..70716092ab3 --- /dev/null +++ b/service/route53recoverycontrolconfig/serializers.go @@ -0,0 +1,1490 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +type awsRestjson1_serializeOpCreateCluster struct { +} + +func (*awsRestjson1_serializeOpCreateCluster) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateClusterInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cluster") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateClusterInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateClusterInput(v *CreateClusterInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateClusterInput(v *CreateClusterInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("ClientToken") + ok.String(*v.ClientToken) + } + + if v.ClusterName != nil { + ok := object.Key("ClusterName") + ok.String(*v.ClusterName) + } + + return nil +} + +type awsRestjson1_serializeOpCreateControlPanel struct { +} + +func (*awsRestjson1_serializeOpCreateControlPanel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateControlPanel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateControlPanelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/controlpanel") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateControlPanelInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateControlPanelInput(v *CreateControlPanelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateControlPanelInput(v *CreateControlPanelInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("ClientToken") + ok.String(*v.ClientToken) + } + + if v.ClusterArn != nil { + ok := object.Key("ClusterArn") + ok.String(*v.ClusterArn) + } + + if v.ControlPanelName != nil { + ok := object.Key("ControlPanelName") + ok.String(*v.ControlPanelName) + } + + return nil +} + +type awsRestjson1_serializeOpCreateRoutingControl struct { +} + +func (*awsRestjson1_serializeOpCreateRoutingControl) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateRoutingControl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateRoutingControlInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/routingcontrol") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateRoutingControlInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateRoutingControlInput(v *CreateRoutingControlInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateRoutingControlInput(v *CreateRoutingControlInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("ClientToken") + ok.String(*v.ClientToken) + } + + if v.ClusterArn != nil { + ok := object.Key("ClusterArn") + ok.String(*v.ClusterArn) + } + + if v.ControlPanelArn != nil { + ok := object.Key("ControlPanelArn") + ok.String(*v.ControlPanelArn) + } + + if v.RoutingControlName != nil { + ok := object.Key("RoutingControlName") + ok.String(*v.RoutingControlName) + } + + return nil +} + +type awsRestjson1_serializeOpCreateSafetyRule struct { +} + +func (*awsRestjson1_serializeOpCreateSafetyRule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateSafetyRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateSafetyRuleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/safetyrule") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateSafetyRuleInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateSafetyRuleInput(v *CreateSafetyRuleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateSafetyRuleInput(v *CreateSafetyRuleInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssertionRule != nil { + ok := object.Key("AssertionRule") + if err := awsRestjson1_serializeDocumentNewAssertionRule(v.AssertionRule, ok); err != nil { + return err + } + } + + if v.ClientToken != nil { + ok := object.Key("ClientToken") + ok.String(*v.ClientToken) + } + + if v.GatingRule != nil { + ok := object.Key("GatingRule") + if err := awsRestjson1_serializeDocumentNewGatingRule(v.GatingRule, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteCluster struct { +} + +func (*awsRestjson1_serializeOpDeleteCluster) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteClusterInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cluster/{ClusterArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteClusterInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteClusterInput(v *DeleteClusterInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} + } + if v.ClusterArn != nil { + if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteControlPanel struct { +} + +func (*awsRestjson1_serializeOpDeleteControlPanel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteControlPanel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteControlPanelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/controlpanel/{ControlPanelArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteControlPanelInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteControlPanelInput(v *DeleteControlPanelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ControlPanelArn == nil || len(*v.ControlPanelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ControlPanelArn must not be empty")} + } + if v.ControlPanelArn != nil { + if err := encoder.SetURI("ControlPanelArn").String(*v.ControlPanelArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteRoutingControl struct { +} + +func (*awsRestjson1_serializeOpDeleteRoutingControl) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteRoutingControl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteRoutingControlInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/routingcontrol/{RoutingControlArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteRoutingControlInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteRoutingControlInput(v *DeleteRoutingControlInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.RoutingControlArn == nil || len(*v.RoutingControlArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingControlArn must not be empty")} + } + if v.RoutingControlArn != nil { + if err := encoder.SetURI("RoutingControlArn").String(*v.RoutingControlArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteSafetyRule struct { +} + +func (*awsRestjson1_serializeOpDeleteSafetyRule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteSafetyRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteSafetyRuleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/safetyrule/{SafetyRuleArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteSafetyRuleInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteSafetyRuleInput(v *DeleteSafetyRuleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.SafetyRuleArn == nil || len(*v.SafetyRuleArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member SafetyRuleArn must not be empty")} + } + if v.SafetyRuleArn != nil { + if err := encoder.SetURI("SafetyRuleArn").String(*v.SafetyRuleArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDescribeCluster struct { +} + +func (*awsRestjson1_serializeOpDescribeCluster) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDescribeCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeClusterInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cluster/{ClusterArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDescribeClusterInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDescribeClusterInput(v *DescribeClusterInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} + } + if v.ClusterArn != nil { + if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDescribeControlPanel struct { +} + +func (*awsRestjson1_serializeOpDescribeControlPanel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDescribeControlPanel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeControlPanelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/controlpanel/{ControlPanelArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDescribeControlPanelInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDescribeControlPanelInput(v *DescribeControlPanelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ControlPanelArn == nil || len(*v.ControlPanelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ControlPanelArn must not be empty")} + } + if v.ControlPanelArn != nil { + if err := encoder.SetURI("ControlPanelArn").String(*v.ControlPanelArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDescribeRoutingControl struct { +} + +func (*awsRestjson1_serializeOpDescribeRoutingControl) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDescribeRoutingControl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeRoutingControlInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/routingcontrol/{RoutingControlArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDescribeRoutingControlInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDescribeRoutingControlInput(v *DescribeRoutingControlInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.RoutingControlArn == nil || len(*v.RoutingControlArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingControlArn must not be empty")} + } + if v.RoutingControlArn != nil { + if err := encoder.SetURI("RoutingControlArn").String(*v.RoutingControlArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDescribeSafetyRule struct { +} + +func (*awsRestjson1_serializeOpDescribeSafetyRule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDescribeSafetyRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeSafetyRuleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/safetyrule/{SafetyRuleArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDescribeSafetyRuleInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDescribeSafetyRuleInput(v *DescribeSafetyRuleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.SafetyRuleArn == nil || len(*v.SafetyRuleArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member SafetyRuleArn must not be empty")} + } + if v.SafetyRuleArn != nil { + if err := encoder.SetURI("SafetyRuleArn").String(*v.SafetyRuleArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListAssociatedRoute53HealthChecks struct { +} + +func (*awsRestjson1_serializeOpListAssociatedRoute53HealthChecks) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListAssociatedRoute53HealthChecks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListAssociatedRoute53HealthChecksInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListAssociatedRoute53HealthChecksInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListAssociatedRoute53HealthChecksInput(v *ListAssociatedRoute53HealthChecksInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("NextToken").String(*v.NextToken) + } + + if v.RoutingControlArn == nil || len(*v.RoutingControlArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingControlArn must not be empty")} + } + if v.RoutingControlArn != nil { + if err := encoder.SetURI("RoutingControlArn").String(*v.RoutingControlArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListClusters struct { +} + +func (*awsRestjson1_serializeOpListClusters) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListClusters) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListClustersInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cluster") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListClustersInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListClustersInput(v *ListClustersInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("NextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListControlPanels struct { +} + +func (*awsRestjson1_serializeOpListControlPanels) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListControlPanels) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListControlPanelsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/controlpanels") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListControlPanelsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListControlPanelsInput(v *ListControlPanelsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ClusterArn != nil { + encoder.SetQuery("ClusterArn").String(*v.ClusterArn) + } + + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("NextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListRoutingControls struct { +} + +func (*awsRestjson1_serializeOpListRoutingControls) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListRoutingControls) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListRoutingControlsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/controlpanel/{ControlPanelArn}/routingcontrols") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListRoutingControlsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListRoutingControlsInput(v *ListRoutingControlsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ControlPanelArn == nil || len(*v.ControlPanelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ControlPanelArn must not be empty")} + } + if v.ControlPanelArn != nil { + if err := encoder.SetURI("ControlPanelArn").String(*v.ControlPanelArn); err != nil { + return err + } + } + + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("NextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListSafetyRules struct { +} + +func (*awsRestjson1_serializeOpListSafetyRules) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListSafetyRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListSafetyRulesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/controlpanel/{ControlPanelArn}/safetyrules") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListSafetyRulesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListSafetyRulesInput(v *ListSafetyRulesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ControlPanelArn == nil || len(*v.ControlPanelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ControlPanelArn must not be empty")} + } + if v.ControlPanelArn != nil { + if err := encoder.SetURI("ControlPanelArn").String(*v.ControlPanelArn); err != nil { + return err + } + } + + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("NextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateControlPanel struct { +} + +func (*awsRestjson1_serializeOpUpdateControlPanel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateControlPanel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateControlPanelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/controlpanel") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateControlPanelInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateControlPanelInput(v *UpdateControlPanelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateControlPanelInput(v *UpdateControlPanelInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ControlPanelArn != nil { + ok := object.Key("ControlPanelArn") + ok.String(*v.ControlPanelArn) + } + + if v.ControlPanelName != nil { + ok := object.Key("ControlPanelName") + ok.String(*v.ControlPanelName) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateRoutingControl struct { +} + +func (*awsRestjson1_serializeOpUpdateRoutingControl) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateRoutingControl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateRoutingControlInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/routingcontrol") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateRoutingControlInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateRoutingControlInput(v *UpdateRoutingControlInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateRoutingControlInput(v *UpdateRoutingControlInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RoutingControlArn != nil { + ok := object.Key("RoutingControlArn") + ok.String(*v.RoutingControlArn) + } + + if v.RoutingControlName != nil { + ok := object.Key("RoutingControlName") + ok.String(*v.RoutingControlName) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateSafetyRule struct { +} + +func (*awsRestjson1_serializeOpUpdateSafetyRule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateSafetyRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateSafetyRuleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/safetyrule") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateSafetyRuleInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateSafetyRuleInput(v *UpdateSafetyRuleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateSafetyRuleInput(v *UpdateSafetyRuleInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssertionRuleUpdate != nil { + ok := object.Key("AssertionRuleUpdate") + if err := awsRestjson1_serializeDocumentAssertionRuleUpdate(v.AssertionRuleUpdate, ok); err != nil { + return err + } + } + + if v.GatingRuleUpdate != nil { + ok := object.Key("GatingRuleUpdate") + if err := awsRestjson1_serializeDocumentGatingRuleUpdate(v.GatingRuleUpdate, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentAssertionRuleUpdate(v *types.AssertionRuleUpdate, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.SafetyRuleArn != nil { + ok := object.Key("SafetyRuleArn") + ok.String(*v.SafetyRuleArn) + } + + { + ok := object.Key("WaitPeriodMs") + ok.Integer(v.WaitPeriodMs) + } + + return nil +} + +func awsRestjson1_serializeDocumentGatingRuleUpdate(v *types.GatingRuleUpdate, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.SafetyRuleArn != nil { + ok := object.Key("SafetyRuleArn") + ok.String(*v.SafetyRuleArn) + } + + { + ok := object.Key("WaitPeriodMs") + ok.Integer(v.WaitPeriodMs) + } + + return nil +} + +func awsRestjson1_serializeDocumentNewAssertionRule(v *types.NewAssertionRule, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssertedControls != nil { + ok := object.Key("AssertedControls") + if err := awsRestjson1_serializeDocument__listOf__string(v.AssertedControls, ok); err != nil { + return err + } + } + + if v.ControlPanelArn != nil { + ok := object.Key("ControlPanelArn") + ok.String(*v.ControlPanelArn) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.RuleConfig != nil { + ok := object.Key("RuleConfig") + if err := awsRestjson1_serializeDocumentRuleConfig(v.RuleConfig, ok); err != nil { + return err + } + } + + { + ok := object.Key("WaitPeriodMs") + ok.Integer(v.WaitPeriodMs) + } + + return nil +} + +func awsRestjson1_serializeDocumentNewGatingRule(v *types.NewGatingRule, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ControlPanelArn != nil { + ok := object.Key("ControlPanelArn") + ok.String(*v.ControlPanelArn) + } + + if v.GatingControls != nil { + ok := object.Key("GatingControls") + if err := awsRestjson1_serializeDocument__listOf__string(v.GatingControls, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.RuleConfig != nil { + ok := object.Key("RuleConfig") + if err := awsRestjson1_serializeDocumentRuleConfig(v.RuleConfig, ok); err != nil { + return err + } + } + + if v.TargetControls != nil { + ok := object.Key("TargetControls") + if err := awsRestjson1_serializeDocument__listOf__string(v.TargetControls, ok); err != nil { + return err + } + } + + { + ok := object.Key("WaitPeriodMs") + ok.Integer(v.WaitPeriodMs) + } + + return nil +} + +func awsRestjson1_serializeDocumentRuleConfig(v *types.RuleConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + { + ok := object.Key("Inverted") + ok.Boolean(v.Inverted) + } + + { + ok := object.Key("Threshold") + ok.Integer(v.Threshold) + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) + } + + return nil +} diff --git a/service/route53recoverycontrolconfig/types/enums.go b/service/route53recoverycontrolconfig/types/enums.go new file mode 100644 index 00000000000..bc91a005d1b --- /dev/null +++ b/service/route53recoverycontrolconfig/types/enums.go @@ -0,0 +1,43 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +type RuleType string + +// Enum values for RuleType +const ( + RuleTypeAtleast RuleType = "ATLEAST" + RuleTypeAnd RuleType = "AND" + RuleTypeOr RuleType = "OR" +) + +// Values returns all known values for RuleType. Note that this can be expanded in +// the future, and so it is only as up to date as the client. The ordering of this +// slice is not guaranteed to be stable across updates. +func (RuleType) Values() []RuleType { + return []RuleType{ + "ATLEAST", + "AND", + "OR", + } +} + +type Status string + +// Enum values for Status +const ( + StatusPending Status = "PENDING" + StatusDeployed Status = "DEPLOYED" + StatusPendingDeletion Status = "PENDING_DELETION" +) + +// Values returns all known values for Status. Note that this can be expanded in +// the future, and so it is only as up to date as the client. The ordering of this +// slice is not guaranteed to be stable across updates. +func (Status) Values() []Status { + return []Status{ + "PENDING", + "DEPLOYED", + "PENDING_DELETION", + } +} diff --git a/service/route53recoverycontrolconfig/types/errors.go b/service/route53recoverycontrolconfig/types/errors.go new file mode 100644 index 00000000000..31fd73698ac --- /dev/null +++ b/service/route53recoverycontrolconfig/types/errors.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + "fmt" + smithy "github.com/aws/smithy-go" +) + +// 403 response - AccessDeniedException. You do not have sufficient access to +// perform this action. +type AccessDeniedException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *AccessDeniedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// 409 response - ConflictException. +type ConflictException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConflictException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// 500 response - InternalServiceError. Temporary service error. Retry the request. +type InternalServerException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InternalServerException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + +// 404 response - The query string contains a syntax error or resource not found. +type ResourceNotFoundException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// 402 response +type ServiceQuotaExceededException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServiceQuotaExceededException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// 429 response - ThrottlingException. +type ThrottlingException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ThrottlingException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// 400 response - Multiple causes. For example, you might have a malformed query +// string and input parameter might be out of range, or you used parameters +// together incorrectly. +type ValidationException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoverycontrolconfig/types/types.go b/service/route53recoverycontrolconfig/types/types.go new file mode 100644 index 00000000000..0b293288d2e --- /dev/null +++ b/service/route53recoverycontrolconfig/types/types.go @@ -0,0 +1,399 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithydocument "github.com/aws/smithy-go/document" +) + +// An assertion rule enforces that, when a routing control state is changed, the +// criteria set by the rule configuration is met. Otherwise, the change to the +// routing control is not accepted. +type AssertionRule struct { + + // The routing controls that are part of transactions that are evaluated to + // determine if a request to change a routing control state is allowed. For + // example, you might include three routing controls, one for each of three Amazon + // Web Services Regions. + // + // This member is required. + AssertedControls []string + + // The Amazon Resource Name (ARN) of the control panel. + // + // This member is required. + ControlPanelArn *string + + // Name of the assertion rule. You can use any non-white space character in the + // name. + // + // This member is required. + Name *string + + // The criteria that you set for specific assertion controls (routing controls) + // that designate how many controls must be enabled as the result of a transaction. + // For example, if you have three assertion controls, you might specify atleast 2 + // for your rule configuration. This means that at least two assertion controls + // must be enabled, so that at least two Amazon Web Services Regions are enabled. + // + // This member is required. + RuleConfig *RuleConfig + + // The Amazon Resource Name (ARN) of the assertion rule. + // + // This member is required. + SafetyRuleArn *string + + // The deployment status of an assertion rule. Status can be one of the following: + // PENDING, DEPLOYED, PENDING_DELETION. + // + // This member is required. + Status Status + + // An evaluation period, in milliseconds (ms), during which any request against the + // target routing controls will fail. This helps prevent "flapping" of state. The + // wait period is 5000 ms by default, but you can choose a custom value. + // + // This member is required. + WaitPeriodMs int32 + + noSmithyDocumentSerde +} + +// An update to an assertion rule. You can update the name or the evaluation period +// (wait period). If you don't specify one of the items to update, the item is +// unchanged. +type AssertionRuleUpdate struct { + + // The name of the assertion rule. You can use any non-white space character in the + // name. + // + // This member is required. + Name *string + + // The Amazon Resource Name (ARN) of the assertion rule. + // + // This member is required. + SafetyRuleArn *string + + // An evaluation period, in milliseconds (ms), during which any request against the + // target routing controls will fail. This helps prevent "flapping" of state. The + // wait period is 5000 ms by default, but you can choose a custom value. + // + // This member is required. + WaitPeriodMs int32 + + noSmithyDocumentSerde +} + +// A cluster is a set of five consensus-forming Regional endpoints that represent +// the infrastructure that hosts your routing controls. Typically, you host +// together on one cluster all of the routing controls for your applications. +type Cluster struct { + + // The Amazon Resource Name (ARN) of the cluster. + ClusterArn *string + + // Endpoints for a cluster. Specify one of these endpoints when you want to set or + // retrieve a routing control state in the cluster. To get or update the routing + // control state, see the Amazon Route 53 Application Recovery Controller Cluster + // (Data Plane) Actions. + ClusterEndpoints []ClusterEndpoint + + // The name of the cluster. + Name *string + + // Deployment status of a resource. Status can be one of the following: PENDING, + // DEPLOYED, PENDING_DELETION. + Status Status + + noSmithyDocumentSerde +} + +// A cluster endpoint. Specify an endpoint when you want to set or retrieve a +// routing control state in the cluster. +type ClusterEndpoint struct { + + // A cluster endpoint. Specify an endpoint and Amazon Web Services Region when you + // want to set or retrieve a routing control state in the cluster. To get or update + // the routing control state, see the Amazon Route 53 Application Recovery + // Controller Cluster (Data Plane) Actions. + Endpoint *string + + // The Amazon Web Services Region for a cluster endpoint. + Region *string + + noSmithyDocumentSerde +} + +// A control panel represents a group of routing controls that can be changed +// together in a single transaction. +type ControlPanel struct { + + // The Amazon Resource Name (ARN) of the cluster that includes the control panel. + ClusterArn *string + + // The Amazon Resource Name (ARN) of the control panel. + ControlPanelArn *string + + // A flag that Amazon Route 53 Application Recovery Controller sets to true to + // designate the default control panel for a cluster. When you create a cluster, + // Amazon Route 53 Application Recovery Controller creates a control panel, and + // sets this flag for that control panel. If you create a control panel yourself, + // this flag is set to false. + DefaultControlPanel bool + + // The name of the control panel. You can use any non-white space character in the + // name. + Name *string + + // The number of routing controls in the control panel. + RoutingControlCount int32 + + // The deployment status of control panel. Status can be one of the following: + // PENDING, DEPLOYED, PENDING_DELETION. + Status Status + + noSmithyDocumentSerde +} + +// A gating rule verifies that a set of gating controls evaluates as true, based on +// a rule configuration that you specify. If the gating rule evaluates to true, +// Amazon Route 53 Application Recovery Controller allows a set of routing control +// state changes to run and complete against the set of target controls. +type GatingRule struct { + + // The Amazon Resource Name (ARN) of the control panel. + // + // This member is required. + ControlPanelArn *string + + // The gating controls for the gating rule. That is, routing controls that are + // evaluated by the rule configuration that you specify. + // + // This member is required. + GatingControls []string + + // The name for the gating rule. + // + // This member is required. + Name *string + + // The criteria that you set for specific gating controls (routing controls) that + // designates how many controls must be enabled to allow you to change (set or + // unset) the target controls. + // + // This member is required. + RuleConfig *RuleConfig + + // The Amazon Resource Name (ARN) of the gating rule. + // + // This member is required. + SafetyRuleArn *string + + // The deployment status of a gating rule. Status can be one of the following: + // PENDING, DEPLOYED, PENDING_DELETION. + // + // This member is required. + Status Status + + // Routing controls that can only be set or unset if the specified RuleConfig + // evaluates to true for the specified GatingControls. For example, say you have + // three gating controls, one for each of three Amazon Web Services Regions. Now + // you specify ATLEAST 2 as your RuleConfig. With these settings, you can only + // change (set or unset) the routing controls that you have specified as + // TargetControls if that rule evaluates to true. In other words, your ability to + // change the routing controls that you have specified as TargetControls is gated + // by the rule that you set for the routing controls in GatingControls. + // + // This member is required. + TargetControls []string + + // An evaluation period, in milliseconds (ms), during which any request against the + // target routing controls will fail. This helps prevent "flapping" of state. The + // wait period is 5000 ms by default, but you can choose a custom value. + // + // This member is required. + WaitPeriodMs int32 + + noSmithyDocumentSerde +} + +// Update to a gating rule. You can update the name or the evaluation period (wait +// period). If you don't specify one of the items to update, the item is unchanged. +type GatingRuleUpdate struct { + + // The name for the gating rule. + // + // This member is required. + Name *string + + // The Amazon Resource Name (ARN) of the gating rule. + // + // This member is required. + SafetyRuleArn *string + + // An evaluation period, in milliseconds (ms), during which any request against the + // target routing controls will fail. This helps prevent "flapping" of state. The + // wait period is 5000 ms by default, but you can choose a custom value. + // + // This member is required. + WaitPeriodMs int32 + + noSmithyDocumentSerde +} + +// A new assertion rule for a control panel. +type NewAssertionRule struct { + + // The routing controls that are part of transactions that are evaluated to + // determine if a request to change a routing control state is allowed. For + // example, you might include three routing controls, one for each of three Amazon + // Web Services Regions. + // + // This member is required. + AssertedControls []string + + // The Amazon Resource Name (ARN) for the control panel. + // + // This member is required. + ControlPanelArn *string + + // The name of the assertion rule. You can use any non-white space character in the + // name. + // + // This member is required. + Name *string + + // The criteria that you set for specific assertion controls (routing controls) + // that designate how many controls must be enabled as the result of a transaction. + // For example, if you have three assertion controls, you might specify atleast 2 + // for your rule configuration. This means that at least two assertion controls + // must be enabled, so that at least two Amazon Web Services Regions are enabled. + // + // This member is required. + RuleConfig *RuleConfig + + // An evaluation period, in milliseconds (ms), during which any request against the + // target routing controls will fail. This helps prevent "flapping" of state. The + // wait period is 5000 ms by default, but you can choose a custom value. + // + // This member is required. + WaitPeriodMs int32 + + noSmithyDocumentSerde +} + +// A new gating rule for a control panel. +type NewGatingRule struct { + + // The Amazon Resource Name (ARN) of the control panel. + // + // This member is required. + ControlPanelArn *string + + // The gating controls for the new gating rule. That is, routing controls that are + // evaluated by the rule configuration that you specify. + // + // This member is required. + GatingControls []string + + // The name for the new gating rule. + // + // This member is required. + Name *string + + // The criteria that you set for specific gating controls (routing controls) that + // designates how many controls must be enabled to allow you to change (set or + // unset) the target controls. + // + // This member is required. + RuleConfig *RuleConfig + + // Routing controls that can only be set or unset if the specified RuleConfig + // evaluates to true for the specified GatingControls. For example, say you have + // three gating controls, one for each of three Amazon Web Services Regions. Now + // you specify AtLeast 2 as your RuleConfig. With these settings, you can only + // change (set or unset) the routing controls that you have specified as + // TargetControls if that rule evaluates to true. In other words, your ability to + // change the routing controls that you have specified as TargetControls is gated + // by the rule that you set for the routing controls in GatingControls. + // + // This member is required. + TargetControls []string + + // An evaluation period, in milliseconds (ms), during which any request against the + // target routing controls will fail. This helps prevent "flapping" of state. The + // wait period is 5000 ms by default, but you can choose a custom value. + // + // This member is required. + WaitPeriodMs int32 + + noSmithyDocumentSerde +} + +// A routing control has one of two states: ON and OFF. You can map the routing +// control state to the state of an Amazon Route 53 health check, which can be used +// to control traffic routing. +type RoutingControl struct { + + // The Amazon Resource Name (ARN) of the control panel that includes the routing + // control. + ControlPanelArn *string + + // The name of the routing control. + Name *string + + // The Amazon Resource Name (ARN) of the routing control. + RoutingControlArn *string + + // The deployment status of a routing control. Status can be one of the following: + // PENDING, DEPLOYED, PENDING_DELETION. + Status Status + + noSmithyDocumentSerde +} + +// A safety rule. A safety rule can be an assertion rule or a gating rule. +type Rule struct { + + // An assertion rule enforces that, when a routing control state is changed, the + // criteria set by the rule configuration is met. Otherwise, the change to the + // routing control is not accepted. + ASSERTION *AssertionRule + + // A gating rule verifies that a set of gating controls evaluates as true, based on + // a rule configuration that you specify. If the gating rule evaluates to true, + // Amazon Route 53 Application Recovery Controller allows a set of routing control + // state changes to run and complete against the set of target controls. + GATING *GatingRule + + noSmithyDocumentSerde +} + +// The rule configuration for an assertion rule. That is, the criteria that you set +// for specific assertion controls (routing controls) that specify how many +// controls must be enabled after a transaction completes. +type RuleConfig struct { + + // Logical negation of the rule. If the rule would usually evaluate true, it's + // evaluated as false, and vice versa. + // + // This member is required. + Inverted bool + + // The value of N, when you specify an ATLEAST rule type. That is, Threshold is the + // number of controls that must be set when you specify an ATLEAST type. + // + // This member is required. + Threshold int32 + + // A rule can be one of the following: ATLEAST, AND, or OR. + // + // This member is required. + Type RuleType + + noSmithyDocumentSerde +} + +type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/route53recoverycontrolconfig/validators.go b/service/route53recoverycontrolconfig/validators.go new file mode 100644 index 00000000000..cdee2fd9518 --- /dev/null +++ b/service/route53recoverycontrolconfig/validators.go @@ -0,0 +1,849 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoverycontrolconfig + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +type validateOpCreateCluster struct { +} + +func (*validateOpCreateCluster) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateClusterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateClusterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateControlPanel struct { +} + +func (*validateOpCreateControlPanel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateControlPanelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateControlPanelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateRoutingControl struct { +} + +func (*validateOpCreateRoutingControl) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateRoutingControlInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateRoutingControlInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateSafetyRule struct { +} + +func (*validateOpCreateSafetyRule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateSafetyRuleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateSafetyRuleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteCluster struct { +} + +func (*validateOpDeleteCluster) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteClusterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteClusterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteControlPanel struct { +} + +func (*validateOpDeleteControlPanel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteControlPanelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteControlPanelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteRoutingControl struct { +} + +func (*validateOpDeleteRoutingControl) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteRoutingControlInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteRoutingControlInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteSafetyRule struct { +} + +func (*validateOpDeleteSafetyRule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteSafetyRuleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteSafetyRuleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeCluster struct { +} + +func (*validateOpDescribeCluster) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeClusterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeClusterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeControlPanel struct { +} + +func (*validateOpDescribeControlPanel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeControlPanelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeControlPanelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeRoutingControl struct { +} + +func (*validateOpDescribeRoutingControl) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeRoutingControlInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeRoutingControlInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeSafetyRule struct { +} + +func (*validateOpDescribeSafetyRule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeSafetyRuleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeSafetyRuleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListAssociatedRoute53HealthChecks struct { +} + +func (*validateOpListAssociatedRoute53HealthChecks) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListAssociatedRoute53HealthChecks) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListAssociatedRoute53HealthChecksInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListAssociatedRoute53HealthChecksInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListRoutingControls struct { +} + +func (*validateOpListRoutingControls) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListRoutingControls) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListRoutingControlsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListRoutingControlsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListSafetyRules struct { +} + +func (*validateOpListSafetyRules) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListSafetyRules) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListSafetyRulesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListSafetyRulesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateControlPanel struct { +} + +func (*validateOpUpdateControlPanel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateControlPanel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateControlPanelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateControlPanelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateRoutingControl struct { +} + +func (*validateOpUpdateRoutingControl) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateRoutingControl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateRoutingControlInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateRoutingControlInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateSafetyRule struct { +} + +func (*validateOpUpdateSafetyRule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateSafetyRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateSafetyRuleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateSafetyRuleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +func addOpCreateClusterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateCluster{}, middleware.After) +} + +func addOpCreateControlPanelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateControlPanel{}, middleware.After) +} + +func addOpCreateRoutingControlValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateRoutingControl{}, middleware.After) +} + +func addOpCreateSafetyRuleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateSafetyRule{}, middleware.After) +} + +func addOpDeleteClusterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteCluster{}, middleware.After) +} + +func addOpDeleteControlPanelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteControlPanel{}, middleware.After) +} + +func addOpDeleteRoutingControlValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteRoutingControl{}, middleware.After) +} + +func addOpDeleteSafetyRuleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteSafetyRule{}, middleware.After) +} + +func addOpDescribeClusterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeCluster{}, middleware.After) +} + +func addOpDescribeControlPanelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeControlPanel{}, middleware.After) +} + +func addOpDescribeRoutingControlValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeRoutingControl{}, middleware.After) +} + +func addOpDescribeSafetyRuleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeSafetyRule{}, middleware.After) +} + +func addOpListAssociatedRoute53HealthChecksValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListAssociatedRoute53HealthChecks{}, middleware.After) +} + +func addOpListRoutingControlsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListRoutingControls{}, middleware.After) +} + +func addOpListSafetyRulesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListSafetyRules{}, middleware.After) +} + +func addOpUpdateControlPanelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateControlPanel{}, middleware.After) +} + +func addOpUpdateRoutingControlValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateRoutingControl{}, middleware.After) +} + +func addOpUpdateSafetyRuleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateSafetyRule{}, middleware.After) +} + +func validateAssertionRuleUpdate(v *types.AssertionRuleUpdate) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssertionRuleUpdate"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.SafetyRuleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateGatingRuleUpdate(v *types.GatingRuleUpdate) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GatingRuleUpdate"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.SafetyRuleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateNewAssertionRule(v *types.NewAssertionRule) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "NewAssertionRule"} + if v.AssertedControls == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssertedControls")) + } + if v.ControlPanelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.RuleConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("RuleConfig")) + } else if v.RuleConfig != nil { + if err := validateRuleConfig(v.RuleConfig); err != nil { + invalidParams.AddNested("RuleConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateNewGatingRule(v *types.NewGatingRule) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "NewGatingRule"} + if v.ControlPanelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) + } + if v.GatingControls == nil { + invalidParams.Add(smithy.NewErrParamRequired("GatingControls")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.RuleConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("RuleConfig")) + } else if v.RuleConfig != nil { + if err := validateRuleConfig(v.RuleConfig); err != nil { + invalidParams.AddNested("RuleConfig", err.(smithy.InvalidParamsError)) + } + } + if v.TargetControls == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetControls")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateRuleConfig(v *types.RuleConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RuleConfig"} + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateClusterInput(v *CreateClusterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateClusterInput"} + if v.ClusterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateControlPanelInput(v *CreateControlPanelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateControlPanelInput"} + if v.ClusterArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) + } + if v.ControlPanelName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ControlPanelName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateRoutingControlInput(v *CreateRoutingControlInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateRoutingControlInput"} + if v.ClusterArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) + } + if v.RoutingControlName == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateSafetyRuleInput(v *CreateSafetyRuleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateSafetyRuleInput"} + if v.AssertionRule != nil { + if err := validateNewAssertionRule(v.AssertionRule); err != nil { + invalidParams.AddNested("AssertionRule", err.(smithy.InvalidParamsError)) + } + } + if v.GatingRule != nil { + if err := validateNewGatingRule(v.GatingRule); err != nil { + invalidParams.AddNested("GatingRule", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteClusterInput(v *DeleteClusterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteClusterInput"} + if v.ClusterArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteControlPanelInput(v *DeleteControlPanelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteControlPanelInput"} + if v.ControlPanelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteRoutingControlInput(v *DeleteRoutingControlInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteRoutingControlInput"} + if v.RoutingControlArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteSafetyRuleInput(v *DeleteSafetyRuleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteSafetyRuleInput"} + if v.SafetyRuleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeClusterInput(v *DescribeClusterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeClusterInput"} + if v.ClusterArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeControlPanelInput(v *DescribeControlPanelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeControlPanelInput"} + if v.ControlPanelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeRoutingControlInput(v *DescribeRoutingControlInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeRoutingControlInput"} + if v.RoutingControlArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeSafetyRuleInput(v *DescribeSafetyRuleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeSafetyRuleInput"} + if v.SafetyRuleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListAssociatedRoute53HealthChecksInput(v *ListAssociatedRoute53HealthChecksInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListAssociatedRoute53HealthChecksInput"} + if v.RoutingControlArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListRoutingControlsInput(v *ListRoutingControlsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListRoutingControlsInput"} + if v.ControlPanelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListSafetyRulesInput(v *ListSafetyRulesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListSafetyRulesInput"} + if v.ControlPanelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateControlPanelInput(v *UpdateControlPanelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateControlPanelInput"} + if v.ControlPanelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ControlPanelArn")) + } + if v.ControlPanelName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ControlPanelName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateRoutingControlInput(v *UpdateRoutingControlInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateRoutingControlInput"} + if v.RoutingControlArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlArn")) + } + if v.RoutingControlName == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoutingControlName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateSafetyRuleInput(v *UpdateSafetyRuleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateSafetyRuleInput"} + if v.AssertionRuleUpdate != nil { + if err := validateAssertionRuleUpdate(v.AssertionRuleUpdate); err != nil { + invalidParams.AddNested("AssertionRuleUpdate", err.(smithy.InvalidParamsError)) + } + } + if v.GatingRuleUpdate != nil { + if err := validateGatingRuleUpdate(v.GatingRuleUpdate); err != nil { + invalidParams.AddNested("GatingRuleUpdate", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/route53recoveryreadiness/LICENSE.txt b/service/route53recoveryreadiness/LICENSE.txt new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/service/route53recoveryreadiness/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/service/route53recoveryreadiness/api_client.go b/service/route53recoveryreadiness/api_client.go new file mode 100644 index 00000000000..f38fac1bd65 --- /dev/null +++ b/service/route53recoveryreadiness/api_client.go @@ -0,0 +1,262 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/retry" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + smithy "github.com/aws/smithy-go" + smithydocument "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" + "time" +) + +const ServiceID = "Route53 Recovery Readiness" +const ServiceAPIVersion = "2019-12-02" + +// Client provides the API client to make operations call for AWS Route53 Recovery +// Readiness. +type Client struct { + options Options +} + +// New returns an initialized Client based on the functional options. Provide +// additional functional options to further configure the behavior of the client, +// such as changing the client's endpoint or adding custom middleware behavior. +func New(options Options, optFns ...func(*Options)) *Client { + options = options.Copy() + + resolveDefaultLogger(&options) + + resolveRetryer(&options) + + resolveHTTPClient(&options) + + resolveHTTPSignerV4(&options) + + resolveDefaultEndpointConfiguration(&options) + + for _, fn := range optFns { + fn(&options) + } + + client := &Client{ + options: options, + } + + return client +} + +type Options struct { + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // Configures the events that will be sent to the configured logger. + ClientLogMode aws.ClientLogMode + + // The credentials object to use when signing requests. + Credentials aws.CredentialsProvider + + // The endpoint options to be used when attempting to resolve an endpoint. + EndpointOptions EndpointResolverOptions + + // The service endpoint resolver. + EndpointResolver EndpointResolver + + // Signature Version 4 (SigV4) Signer + HTTPSignerV4 HTTPSignerV4 + + // The logger writer interface to write logging messages to. + Logger logging.Logger + + // The region to send requests to. (Required) + Region string + + // Retryer guides how HTTP requests should be retried in case of recoverable + // failures. When nil the API client will use a default retryer. + Retryer aws.Retryer + + // The HTTP client to invoke API calls with. Defaults to client's default HTTP + // implementation if nil. + HTTPClient HTTPClient +} + +// WithAPIOptions returns a functional option for setting the Client's APIOptions +// option. +func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { + return func(o *Options) { + o.APIOptions = append(o.APIOptions, optFns...) + } +} + +// WithEndpointResolver returns a functional option for setting the Client's +// EndpointResolver option. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} + +// Copy creates a clone where the APIOptions list is deep copied. +func (o Options) Copy() Options { + to := o + to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) + copy(to.APIOptions, o.APIOptions) + return to +} +func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { + ctx = middleware.ClearStackValues(ctx) + stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) + options := c.options.Copy() + for _, fn := range optFns { + fn(&options) + } + + for _, fn := range stackFns { + if err := fn(stack, options); err != nil { + return nil, metadata, err + } + } + + for _, fn := range options.APIOptions { + if err := fn(stack); err != nil { + return nil, metadata, err + } + } + + handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) + result, metadata, err = handler.Handle(ctx, params) + if err != nil { + err = &smithy.OperationError{ + ServiceID: ServiceID, + OperationName: opID, + Err: err, + } + } + return result, metadata, err +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +func resolveDefaultLogger(o *Options) { + if o.Logger != nil { + return + } + o.Logger = logging.Nop{} +} + +func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { + return middleware.AddSetLoggerMiddleware(stack, o.Logger) +} + +// NewFromConfig returns a new client from the provided config. +func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { + opts := Options{ + Region: cfg.Region, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + } + resolveAWSRetryerProvider(cfg, &opts) + resolveAWSEndpointResolver(cfg, &opts) + return New(opts, optFns...) +} + +func resolveHTTPClient(o *Options) { + if o.HTTPClient != nil { + return + } + o.HTTPClient = awshttp.NewBuildableClient() +} + +func resolveRetryer(o *Options) { + if o.Retryer != nil { + return + } + o.Retryer = retry.NewStandard() +} + +func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { + if cfg.Retryer == nil { + return + } + o.Retryer = cfg.Retryer() +} + +func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { + if cfg.EndpointResolver == nil { + return + } + o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, NewDefaultEndpointResolver()) +} + +func addClientUserAgent(stack *middleware.Stack) error { + return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "route53recoveryreadiness", goModuleVersion)(stack) +} + +func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { + mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ + CredentialsProvider: o.Credentials, + Signer: o.HTTPSignerV4, + LogSigning: o.ClientLogMode.IsSigning(), + }) + return stack.Finalize.Add(mw, middleware.After) +} + +type HTTPSignerV4 interface { + SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error +} + +func resolveHTTPSignerV4(o *Options) { + if o.HTTPSignerV4 != nil { + return + } + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) +} + +func addRetryMiddlewares(stack *middleware.Stack, o Options) error { + mo := retry.AddRetryMiddlewaresOptions{ + Retryer: o.Retryer, + LogRetryAttempts: o.ClientLogMode.IsRetries(), + } + return retry.AddRetryMiddlewares(stack, mo) +} + +func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { + return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) +} + +func addResponseErrorMiddleware(stack *middleware.Stack) error { + return awshttp.AddResponseErrorMiddleware(stack) +} + +func addRequestResponseLogging(stack *middleware.Stack, o Options) error { + return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ + LogRequest: o.ClientLogMode.IsRequest(), + LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), + LogResponse: o.ClientLogMode.IsResponse(), + LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), + }, middleware.After) +} diff --git a/service/route53recoveryreadiness/api_op_CreateCell.go b/service/route53recoveryreadiness/api_op_CreateCell.go new file mode 100644 index 00000000000..ffb1c8aad52 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_CreateCell.go @@ -0,0 +1,140 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new Cell. +func (c *Client) CreateCell(ctx context.Context, params *CreateCellInput, optFns ...func(*Options)) (*CreateCellOutput, error) { + if params == nil { + params = &CreateCellInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateCell", params, optFns, c.addOperationCreateCellMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateCellOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The Cell to create +type CreateCellInput struct { + + // The name of the Cell to create + // + // This member is required. + CellName *string + + // A list of Cell arns contained within this Cell (for use in nested Cells, e.g. + // regions within which AZs) + Cells []string + + // A collection of tags associated with a resource + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateCellOutput struct { + + // The arn for the Cell + CellArn *string + + // The name of the Cell + CellName *string + + // A list of Cell arns + Cells []string + + // A list of Cell ARNs and/or RecoveryGroup ARNs + ParentReadinessScopes []string + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateCellMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateCell{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateCell{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateCellValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCell(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateCell(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "CreateCell", + } +} diff --git a/service/route53recoveryreadiness/api_op_CreateCrossAccountAuthorization.go b/service/route53recoveryreadiness/api_op_CreateCrossAccountAuthorization.go new file mode 100644 index 00000000000..9dd8d4c2a03 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_CreateCrossAccountAuthorization.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Create a new cross account readiness authorization. +func (c *Client) CreateCrossAccountAuthorization(ctx context.Context, params *CreateCrossAccountAuthorizationInput, optFns ...func(*Options)) (*CreateCrossAccountAuthorizationOutput, error) { + if params == nil { + params = &CreateCrossAccountAuthorizationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateCrossAccountAuthorization", params, optFns, c.addOperationCreateCrossAccountAuthorizationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateCrossAccountAuthorizationOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The cross account authorization +type CreateCrossAccountAuthorizationInput struct { + + // The cross account authorization + // + // This member is required. + CrossAccountAuthorization *string + + noSmithyDocumentSerde +} + +type CreateCrossAccountAuthorizationOutput struct { + + // The cross account authorization + CrossAccountAuthorization *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateCrossAccountAuthorizationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateCrossAccountAuthorization{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateCrossAccountAuthorization{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateCrossAccountAuthorizationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCrossAccountAuthorization(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateCrossAccountAuthorization(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "CreateCrossAccountAuthorization", + } +} diff --git a/service/route53recoveryreadiness/api_op_CreateReadinessCheck.go b/service/route53recoveryreadiness/api_op_CreateReadinessCheck.go new file mode 100644 index 00000000000..9e9c7b45531 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_CreateReadinessCheck.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new Readiness Check. +func (c *Client) CreateReadinessCheck(ctx context.Context, params *CreateReadinessCheckInput, optFns ...func(*Options)) (*CreateReadinessCheckOutput, error) { + if params == nil { + params = &CreateReadinessCheckInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateReadinessCheck", params, optFns, c.addOperationCreateReadinessCheckMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateReadinessCheckOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The ReadinessCheck to create +type CreateReadinessCheckInput struct { + + // The name of the ReadinessCheck to create + // + // This member is required. + ReadinessCheckName *string + + // The name of the ResourceSet to check + // + // This member is required. + ResourceSetName *string + + // A collection of tags associated with a resource + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateReadinessCheckOutput struct { + + // Arn associated with ReadinessCheck + ReadinessCheckArn *string + + // Name for a ReadinessCheck + ReadinessCheckName *string + + // Name of the ResourceSet to be checked + ResourceSet *string + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateReadinessCheckMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateReadinessCheck{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateReadinessCheck{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateReadinessCheckValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateReadinessCheck(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateReadinessCheck(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "CreateReadinessCheck", + } +} diff --git a/service/route53recoveryreadiness/api_op_CreateRecoveryGroup.go b/service/route53recoveryreadiness/api_op_CreateRecoveryGroup.go new file mode 100644 index 00000000000..931c5e743fc --- /dev/null +++ b/service/route53recoveryreadiness/api_op_CreateRecoveryGroup.go @@ -0,0 +1,136 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new Recovery Group. +func (c *Client) CreateRecoveryGroup(ctx context.Context, params *CreateRecoveryGroupInput, optFns ...func(*Options)) (*CreateRecoveryGroupOutput, error) { + if params == nil { + params = &CreateRecoveryGroupInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateRecoveryGroup", params, optFns, c.addOperationCreateRecoveryGroupMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateRecoveryGroupOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The RecoveryGroup to create +type CreateRecoveryGroupInput struct { + + // The name of the RecoveryGroup to create + // + // This member is required. + RecoveryGroupName *string + + // A list of Cell arns + Cells []string + + // A collection of tags associated with a resource + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateRecoveryGroupOutput struct { + + // A list of Cell arns + Cells []string + + // The arn for the RecoveryGroup + RecoveryGroupArn *string + + // The name of the RecoveryGroup + RecoveryGroupName *string + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateRecoveryGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateRecoveryGroup{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateRecoveryGroup{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateRecoveryGroupValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRecoveryGroup(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateRecoveryGroup(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "CreateRecoveryGroup", + } +} diff --git a/service/route53recoveryreadiness/api_op_CreateResourceSet.go b/service/route53recoveryreadiness/api_op_CreateResourceSet.go new file mode 100644 index 00000000000..98325711cd7 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_CreateResourceSet.go @@ -0,0 +1,147 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new Resource Set. +func (c *Client) CreateResourceSet(ctx context.Context, params *CreateResourceSetInput, optFns ...func(*Options)) (*CreateResourceSetOutput, error) { + if params == nil { + params = &CreateResourceSetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateResourceSet", params, optFns, c.addOperationCreateResourceSetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateResourceSetOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The ResourceSet to create +type CreateResourceSetInput struct { + + // The name of the ResourceSet to create + // + // This member is required. + ResourceSetName *string + + // AWS Resource type of the resources in the ResourceSet + // + // This member is required. + ResourceSetType *string + + // A list of Resource objects + // + // This member is required. + Resources []types.Resource + + // A collection of tags associated with a resource + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateResourceSetOutput struct { + + // The arn for the ResourceSet + ResourceSetArn *string + + // The name of the ResourceSet + ResourceSetName *string + + // AWS Resource Type of the resources in the ResourceSet + ResourceSetType *string + + // A list of Resource objects + Resources []types.Resource + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateResourceSetMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateResourceSet{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateResourceSet{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateResourceSetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateResourceSet(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateResourceSet(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "CreateResourceSet", + } +} diff --git a/service/route53recoveryreadiness/api_op_DeleteCell.go b/service/route53recoveryreadiness/api_op_DeleteCell.go new file mode 100644 index 00000000000..0cae73bfb7e --- /dev/null +++ b/service/route53recoveryreadiness/api_op_DeleteCell.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an existing Cell. +func (c *Client) DeleteCell(ctx context.Context, params *DeleteCellInput, optFns ...func(*Options)) (*DeleteCellOutput, error) { + if params == nil { + params = &DeleteCellInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteCell", params, optFns, c.addOperationDeleteCellMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteCellOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteCellInput struct { + + // The Cell to delete + // + // This member is required. + CellName *string + + noSmithyDocumentSerde +} + +type DeleteCellOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteCellMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteCell{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteCell{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteCellValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCell(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteCell(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "DeleteCell", + } +} diff --git a/service/route53recoveryreadiness/api_op_DeleteCrossAccountAuthorization.go b/service/route53recoveryreadiness/api_op_DeleteCrossAccountAuthorization.go new file mode 100644 index 00000000000..ae645c13f90 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_DeleteCrossAccountAuthorization.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete cross account readiness authorization +func (c *Client) DeleteCrossAccountAuthorization(ctx context.Context, params *DeleteCrossAccountAuthorizationInput, optFns ...func(*Options)) (*DeleteCrossAccountAuthorizationOutput, error) { + if params == nil { + params = &DeleteCrossAccountAuthorizationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteCrossAccountAuthorization", params, optFns, c.addOperationDeleteCrossAccountAuthorizationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteCrossAccountAuthorizationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteCrossAccountAuthorizationInput struct { + + // The cross account authorization + // + // This member is required. + CrossAccountAuthorization *string + + noSmithyDocumentSerde +} + +type DeleteCrossAccountAuthorizationOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteCrossAccountAuthorizationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteCrossAccountAuthorization{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteCrossAccountAuthorization{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteCrossAccountAuthorizationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCrossAccountAuthorization(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteCrossAccountAuthorization(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "DeleteCrossAccountAuthorization", + } +} diff --git a/service/route53recoveryreadiness/api_op_DeleteReadinessCheck.go b/service/route53recoveryreadiness/api_op_DeleteReadinessCheck.go new file mode 100644 index 00000000000..1b195b61b23 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_DeleteReadinessCheck.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an existing Readiness Check. +func (c *Client) DeleteReadinessCheck(ctx context.Context, params *DeleteReadinessCheckInput, optFns ...func(*Options)) (*DeleteReadinessCheckOutput, error) { + if params == nil { + params = &DeleteReadinessCheckInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteReadinessCheck", params, optFns, c.addOperationDeleteReadinessCheckMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteReadinessCheckOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteReadinessCheckInput struct { + + // The ReadinessCheck to delete + // + // This member is required. + ReadinessCheckName *string + + noSmithyDocumentSerde +} + +type DeleteReadinessCheckOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteReadinessCheckMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteReadinessCheck{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteReadinessCheck{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteReadinessCheckValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteReadinessCheck(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteReadinessCheck(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "DeleteReadinessCheck", + } +} diff --git a/service/route53recoveryreadiness/api_op_DeleteRecoveryGroup.go b/service/route53recoveryreadiness/api_op_DeleteRecoveryGroup.go new file mode 100644 index 00000000000..6e3b282a45d --- /dev/null +++ b/service/route53recoveryreadiness/api_op_DeleteRecoveryGroup.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an existing Recovery Group. +func (c *Client) DeleteRecoveryGroup(ctx context.Context, params *DeleteRecoveryGroupInput, optFns ...func(*Options)) (*DeleteRecoveryGroupOutput, error) { + if params == nil { + params = &DeleteRecoveryGroupInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteRecoveryGroup", params, optFns, c.addOperationDeleteRecoveryGroupMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteRecoveryGroupOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteRecoveryGroupInput struct { + + // The RecoveryGroup to delete + // + // This member is required. + RecoveryGroupName *string + + noSmithyDocumentSerde +} + +type DeleteRecoveryGroupOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteRecoveryGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteRecoveryGroup{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteRecoveryGroup{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteRecoveryGroupValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRecoveryGroup(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteRecoveryGroup(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "DeleteRecoveryGroup", + } +} diff --git a/service/route53recoveryreadiness/api_op_DeleteResourceSet.go b/service/route53recoveryreadiness/api_op_DeleteResourceSet.go new file mode 100644 index 00000000000..20b94f5b0a9 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_DeleteResourceSet.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an existing Resource Set. +func (c *Client) DeleteResourceSet(ctx context.Context, params *DeleteResourceSetInput, optFns ...func(*Options)) (*DeleteResourceSetOutput, error) { + if params == nil { + params = &DeleteResourceSetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteResourceSet", params, optFns, c.addOperationDeleteResourceSetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteResourceSetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteResourceSetInput struct { + + // The ResourceSet to delete + // + // This member is required. + ResourceSetName *string + + noSmithyDocumentSerde +} + +type DeleteResourceSetOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteResourceSetMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteResourceSet{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteResourceSet{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteResourceSetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteResourceSet(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteResourceSet(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "DeleteResourceSet", + } +} diff --git a/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go b/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go new file mode 100644 index 00000000000..2418e260fe8 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go @@ -0,0 +1,136 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Returns a collection of recommendations to improve resilliance and readiness +// check quality for a Recovery Group. +func (c *Client) GetArchitectureRecommendations(ctx context.Context, params *GetArchitectureRecommendationsInput, optFns ...func(*Options)) (*GetArchitectureRecommendationsOutput, error) { + if params == nil { + params = &GetArchitectureRecommendationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetArchitectureRecommendations", params, optFns, c.addOperationGetArchitectureRecommendationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetArchitectureRecommendationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetArchitectureRecommendationsInput struct { + + // Name of RecoveryGroup (top level resource) to be analyzed. + // + // This member is required. + RecoveryGroupName *string + + // Upper bound on number of records to return. + MaxResults int32 + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + noSmithyDocumentSerde +} + +type GetArchitectureRecommendationsOutput struct { + + // The time a Recovery Group was last assessed for recommendations in UTC ISO-8601 + // format. + LastAuditTimestamp *time.Time + + // A token that can be used to resume pagination from the end of the collection + NextToken *string + + // A list of recommendations for the customer's application + Recommendations []types.Recommendation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetArchitectureRecommendationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetArchitectureRecommendations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetArchitectureRecommendations{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetArchitectureRecommendationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetArchitectureRecommendations(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetArchitectureRecommendations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "GetArchitectureRecommendations", + } +} diff --git a/service/route53recoveryreadiness/api_op_GetCell.go b/service/route53recoveryreadiness/api_op_GetCell.go new file mode 100644 index 00000000000..ae9a2a418ee --- /dev/null +++ b/service/route53recoveryreadiness/api_op_GetCell.go @@ -0,0 +1,132 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about a Cell. +func (c *Client) GetCell(ctx context.Context, params *GetCellInput, optFns ...func(*Options)) (*GetCellOutput, error) { + if params == nil { + params = &GetCellInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetCell", params, optFns, c.addOperationGetCellMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetCellOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetCellInput struct { + + // The Cell to get + // + // This member is required. + CellName *string + + noSmithyDocumentSerde +} + +type GetCellOutput struct { + + // The arn for the Cell + CellArn *string + + // The name of the Cell + CellName *string + + // A list of Cell arns + Cells []string + + // A list of Cell ARNs and/or RecoveryGroup ARNs + ParentReadinessScopes []string + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetCellMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCell{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCell{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetCellValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCell(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetCell(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "GetCell", + } +} diff --git a/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go b/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go new file mode 100644 index 00000000000..16df994fccb --- /dev/null +++ b/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go @@ -0,0 +1,218 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about readiness of a Cell. +func (c *Client) GetCellReadinessSummary(ctx context.Context, params *GetCellReadinessSummaryInput, optFns ...func(*Options)) (*GetCellReadinessSummaryOutput, error) { + if params == nil { + params = &GetCellReadinessSummaryInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetCellReadinessSummary", params, optFns, c.addOperationGetCellReadinessSummaryMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetCellReadinessSummaryOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetCellReadinessSummaryInput struct { + + // The name of the Cell + // + // This member is required. + CellName *string + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type GetCellReadinessSummaryOutput struct { + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // The readiness at Cell level. + Readiness types.Readiness + + // Summaries for the ReadinessChecks making up the Cell + ReadinessChecks []types.ReadinessCheckSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetCellReadinessSummaryMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCellReadinessSummary{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCellReadinessSummary{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetCellReadinessSummaryValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCellReadinessSummary(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// GetCellReadinessSummaryAPIClient is a client that implements the +// GetCellReadinessSummary operation. +type GetCellReadinessSummaryAPIClient interface { + GetCellReadinessSummary(context.Context, *GetCellReadinessSummaryInput, ...func(*Options)) (*GetCellReadinessSummaryOutput, error) +} + +var _ GetCellReadinessSummaryAPIClient = (*Client)(nil) + +// GetCellReadinessSummaryPaginatorOptions is the paginator options for +// GetCellReadinessSummary +type GetCellReadinessSummaryPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// GetCellReadinessSummaryPaginator is a paginator for GetCellReadinessSummary +type GetCellReadinessSummaryPaginator struct { + options GetCellReadinessSummaryPaginatorOptions + client GetCellReadinessSummaryAPIClient + params *GetCellReadinessSummaryInput + nextToken *string + firstPage bool +} + +// NewGetCellReadinessSummaryPaginator returns a new +// GetCellReadinessSummaryPaginator +func NewGetCellReadinessSummaryPaginator(client GetCellReadinessSummaryAPIClient, params *GetCellReadinessSummaryInput, optFns ...func(*GetCellReadinessSummaryPaginatorOptions)) *GetCellReadinessSummaryPaginator { + if params == nil { + params = &GetCellReadinessSummaryInput{} + } + + options := GetCellReadinessSummaryPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetCellReadinessSummaryPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetCellReadinessSummaryPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetCellReadinessSummary page. +func (p *GetCellReadinessSummaryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetCellReadinessSummaryOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.GetCellReadinessSummary(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opGetCellReadinessSummary(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "GetCellReadinessSummary", + } +} diff --git a/service/route53recoveryreadiness/api_op_GetReadinessCheck.go b/service/route53recoveryreadiness/api_op_GetReadinessCheck.go new file mode 100644 index 00000000000..47518ce2eb3 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_GetReadinessCheck.go @@ -0,0 +1,129 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about a ReadinessCheck. +func (c *Client) GetReadinessCheck(ctx context.Context, params *GetReadinessCheckInput, optFns ...func(*Options)) (*GetReadinessCheckOutput, error) { + if params == nil { + params = &GetReadinessCheckInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetReadinessCheck", params, optFns, c.addOperationGetReadinessCheckMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetReadinessCheckOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetReadinessCheckInput struct { + + // The ReadinessCheck to get + // + // This member is required. + ReadinessCheckName *string + + noSmithyDocumentSerde +} + +type GetReadinessCheckOutput struct { + + // Arn associated with ReadinessCheck + ReadinessCheckArn *string + + // Name for a ReadinessCheck + ReadinessCheckName *string + + // Name of the ResourceSet to be checked + ResourceSet *string + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetReadinessCheckMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetReadinessCheck{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetReadinessCheck{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetReadinessCheckValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetReadinessCheck(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetReadinessCheck(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "GetReadinessCheck", + } +} diff --git a/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go b/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go new file mode 100644 index 00000000000..7b610dec463 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go @@ -0,0 +1,225 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns detailed information about the status of an individual resource within a +// Readiness Check's Resource Set. +func (c *Client) GetReadinessCheckResourceStatus(ctx context.Context, params *GetReadinessCheckResourceStatusInput, optFns ...func(*Options)) (*GetReadinessCheckResourceStatusOutput, error) { + if params == nil { + params = &GetReadinessCheckResourceStatusInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetReadinessCheckResourceStatus", params, optFns, c.addOperationGetReadinessCheckResourceStatusMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetReadinessCheckResourceStatusOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetReadinessCheckResourceStatusInput struct { + + // The ReadinessCheck to get + // + // This member is required. + ReadinessCheckName *string + + // The resource ARN or component Id to get + // + // This member is required. + ResourceIdentifier *string + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type GetReadinessCheckResourceStatusOutput struct { + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // The readiness at rule level. + Readiness types.Readiness + + // Details of the rules's results + Rules []types.RuleResult + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetReadinessCheckResourceStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetReadinessCheckResourceStatus{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetReadinessCheckResourceStatus{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetReadinessCheckResourceStatusValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetReadinessCheckResourceStatus(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// GetReadinessCheckResourceStatusAPIClient is a client that implements the +// GetReadinessCheckResourceStatus operation. +type GetReadinessCheckResourceStatusAPIClient interface { + GetReadinessCheckResourceStatus(context.Context, *GetReadinessCheckResourceStatusInput, ...func(*Options)) (*GetReadinessCheckResourceStatusOutput, error) +} + +var _ GetReadinessCheckResourceStatusAPIClient = (*Client)(nil) + +// GetReadinessCheckResourceStatusPaginatorOptions is the paginator options for +// GetReadinessCheckResourceStatus +type GetReadinessCheckResourceStatusPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// GetReadinessCheckResourceStatusPaginator is a paginator for +// GetReadinessCheckResourceStatus +type GetReadinessCheckResourceStatusPaginator struct { + options GetReadinessCheckResourceStatusPaginatorOptions + client GetReadinessCheckResourceStatusAPIClient + params *GetReadinessCheckResourceStatusInput + nextToken *string + firstPage bool +} + +// NewGetReadinessCheckResourceStatusPaginator returns a new +// GetReadinessCheckResourceStatusPaginator +func NewGetReadinessCheckResourceStatusPaginator(client GetReadinessCheckResourceStatusAPIClient, params *GetReadinessCheckResourceStatusInput, optFns ...func(*GetReadinessCheckResourceStatusPaginatorOptions)) *GetReadinessCheckResourceStatusPaginator { + if params == nil { + params = &GetReadinessCheckResourceStatusInput{} + } + + options := GetReadinessCheckResourceStatusPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetReadinessCheckResourceStatusPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetReadinessCheckResourceStatusPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetReadinessCheckResourceStatus page. +func (p *GetReadinessCheckResourceStatusPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetReadinessCheckResourceStatusOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.GetReadinessCheckResourceStatus(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opGetReadinessCheckResourceStatus(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "GetReadinessCheckResourceStatus", + } +} diff --git a/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go b/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go new file mode 100644 index 00000000000..483dd02a160 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go @@ -0,0 +1,221 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about the status of a Readiness Check. +func (c *Client) GetReadinessCheckStatus(ctx context.Context, params *GetReadinessCheckStatusInput, optFns ...func(*Options)) (*GetReadinessCheckStatusOutput, error) { + if params == nil { + params = &GetReadinessCheckStatusInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetReadinessCheckStatus", params, optFns, c.addOperationGetReadinessCheckStatusMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetReadinessCheckStatusOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetReadinessCheckStatusInput struct { + + // The ReadinessCheck to get + // + // This member is required. + ReadinessCheckName *string + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type GetReadinessCheckStatusOutput struct { + + // Top level messages for readiness check status + Messages []types.Message + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // The readiness at rule level. + Readiness types.Readiness + + // Summary of resources's readiness + Resources []types.ResourceResult + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetReadinessCheckStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetReadinessCheckStatus{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetReadinessCheckStatus{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetReadinessCheckStatusValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetReadinessCheckStatus(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// GetReadinessCheckStatusAPIClient is a client that implements the +// GetReadinessCheckStatus operation. +type GetReadinessCheckStatusAPIClient interface { + GetReadinessCheckStatus(context.Context, *GetReadinessCheckStatusInput, ...func(*Options)) (*GetReadinessCheckStatusOutput, error) +} + +var _ GetReadinessCheckStatusAPIClient = (*Client)(nil) + +// GetReadinessCheckStatusPaginatorOptions is the paginator options for +// GetReadinessCheckStatus +type GetReadinessCheckStatusPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// GetReadinessCheckStatusPaginator is a paginator for GetReadinessCheckStatus +type GetReadinessCheckStatusPaginator struct { + options GetReadinessCheckStatusPaginatorOptions + client GetReadinessCheckStatusAPIClient + params *GetReadinessCheckStatusInput + nextToken *string + firstPage bool +} + +// NewGetReadinessCheckStatusPaginator returns a new +// GetReadinessCheckStatusPaginator +func NewGetReadinessCheckStatusPaginator(client GetReadinessCheckStatusAPIClient, params *GetReadinessCheckStatusInput, optFns ...func(*GetReadinessCheckStatusPaginatorOptions)) *GetReadinessCheckStatusPaginator { + if params == nil { + params = &GetReadinessCheckStatusInput{} + } + + options := GetReadinessCheckStatusPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetReadinessCheckStatusPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetReadinessCheckStatusPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetReadinessCheckStatus page. +func (p *GetReadinessCheckStatusPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetReadinessCheckStatusOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.GetReadinessCheckStatus(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opGetReadinessCheckStatus(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "GetReadinessCheckStatus", + } +} diff --git a/service/route53recoveryreadiness/api_op_GetRecoveryGroup.go b/service/route53recoveryreadiness/api_op_GetRecoveryGroup.go new file mode 100644 index 00000000000..5e24833a6f8 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_GetRecoveryGroup.go @@ -0,0 +1,129 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about a Recovery Group. +func (c *Client) GetRecoveryGroup(ctx context.Context, params *GetRecoveryGroupInput, optFns ...func(*Options)) (*GetRecoveryGroupOutput, error) { + if params == nil { + params = &GetRecoveryGroupInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetRecoveryGroup", params, optFns, c.addOperationGetRecoveryGroupMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetRecoveryGroupOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetRecoveryGroupInput struct { + + // The RecoveryGroup to get + // + // This member is required. + RecoveryGroupName *string + + noSmithyDocumentSerde +} + +type GetRecoveryGroupOutput struct { + + // A list of Cell arns + Cells []string + + // The arn for the RecoveryGroup + RecoveryGroupArn *string + + // The name of the RecoveryGroup + RecoveryGroupName *string + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetRecoveryGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetRecoveryGroup{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetRecoveryGroup{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetRecoveryGroupValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRecoveryGroup(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetRecoveryGroup(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "GetRecoveryGroup", + } +} diff --git a/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go b/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go new file mode 100644 index 00000000000..9e377305487 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go @@ -0,0 +1,219 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about a Recovery Group. +func (c *Client) GetRecoveryGroupReadinessSummary(ctx context.Context, params *GetRecoveryGroupReadinessSummaryInput, optFns ...func(*Options)) (*GetRecoveryGroupReadinessSummaryOutput, error) { + if params == nil { + params = &GetRecoveryGroupReadinessSummaryInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetRecoveryGroupReadinessSummary", params, optFns, c.addOperationGetRecoveryGroupReadinessSummaryMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetRecoveryGroupReadinessSummaryOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetRecoveryGroupReadinessSummaryInput struct { + + // The name of the RecoveryGroup + // + // This member is required. + RecoveryGroupName *string + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type GetRecoveryGroupReadinessSummaryOutput struct { + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // The readiness at RecoveryGroup level. + Readiness types.Readiness + + // Summaries for the ReadinessChecks making up the RecoveryGroup + ReadinessChecks []types.ReadinessCheckSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetRecoveryGroupReadinessSummaryMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetRecoveryGroupReadinessSummary{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetRecoveryGroupReadinessSummary{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetRecoveryGroupReadinessSummaryValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRecoveryGroupReadinessSummary(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// GetRecoveryGroupReadinessSummaryAPIClient is a client that implements the +// GetRecoveryGroupReadinessSummary operation. +type GetRecoveryGroupReadinessSummaryAPIClient interface { + GetRecoveryGroupReadinessSummary(context.Context, *GetRecoveryGroupReadinessSummaryInput, ...func(*Options)) (*GetRecoveryGroupReadinessSummaryOutput, error) +} + +var _ GetRecoveryGroupReadinessSummaryAPIClient = (*Client)(nil) + +// GetRecoveryGroupReadinessSummaryPaginatorOptions is the paginator options for +// GetRecoveryGroupReadinessSummary +type GetRecoveryGroupReadinessSummaryPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// GetRecoveryGroupReadinessSummaryPaginator is a paginator for +// GetRecoveryGroupReadinessSummary +type GetRecoveryGroupReadinessSummaryPaginator struct { + options GetRecoveryGroupReadinessSummaryPaginatorOptions + client GetRecoveryGroupReadinessSummaryAPIClient + params *GetRecoveryGroupReadinessSummaryInput + nextToken *string + firstPage bool +} + +// NewGetRecoveryGroupReadinessSummaryPaginator returns a new +// GetRecoveryGroupReadinessSummaryPaginator +func NewGetRecoveryGroupReadinessSummaryPaginator(client GetRecoveryGroupReadinessSummaryAPIClient, params *GetRecoveryGroupReadinessSummaryInput, optFns ...func(*GetRecoveryGroupReadinessSummaryPaginatorOptions)) *GetRecoveryGroupReadinessSummaryPaginator { + if params == nil { + params = &GetRecoveryGroupReadinessSummaryInput{} + } + + options := GetRecoveryGroupReadinessSummaryPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetRecoveryGroupReadinessSummaryPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetRecoveryGroupReadinessSummaryPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetRecoveryGroupReadinessSummary page. +func (p *GetRecoveryGroupReadinessSummaryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetRecoveryGroupReadinessSummaryOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.GetRecoveryGroupReadinessSummary(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opGetRecoveryGroupReadinessSummary(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "GetRecoveryGroupReadinessSummary", + } +} diff --git a/service/route53recoveryreadiness/api_op_GetResourceSet.go b/service/route53recoveryreadiness/api_op_GetResourceSet.go new file mode 100644 index 00000000000..3b9d2b14fd6 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_GetResourceSet.go @@ -0,0 +1,133 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about a Resource Set. +func (c *Client) GetResourceSet(ctx context.Context, params *GetResourceSetInput, optFns ...func(*Options)) (*GetResourceSetOutput, error) { + if params == nil { + params = &GetResourceSetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetResourceSet", params, optFns, c.addOperationGetResourceSetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetResourceSetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetResourceSetInput struct { + + // The ResourceSet to get + // + // This member is required. + ResourceSetName *string + + noSmithyDocumentSerde +} + +type GetResourceSetOutput struct { + + // The arn for the ResourceSet + ResourceSetArn *string + + // The name of the ResourceSet + ResourceSetName *string + + // AWS Resource Type of the resources in the ResourceSet + ResourceSetType *string + + // A list of Resource objects + Resources []types.Resource + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetResourceSetMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetResourceSet{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetResourceSet{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetResourceSetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetResourceSet(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetResourceSet(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "GetResourceSet", + } +} diff --git a/service/route53recoveryreadiness/api_op_ListCells.go b/service/route53recoveryreadiness/api_op_ListCells.go new file mode 100644 index 00000000000..3295346e836 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_ListCells.go @@ -0,0 +1,204 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a collection of Cells. +func (c *Client) ListCells(ctx context.Context, params *ListCellsInput, optFns ...func(*Options)) (*ListCellsOutput, error) { + if params == nil { + params = &ListCellsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListCells", params, optFns, c.addOperationListCellsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListCellsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListCellsInput struct { + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type ListCellsOutput struct { + + // A list of Cells + Cells []types.CellOutput + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListCellsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListCells{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCells{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCells(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListCellsAPIClient is a client that implements the ListCells operation. +type ListCellsAPIClient interface { + ListCells(context.Context, *ListCellsInput, ...func(*Options)) (*ListCellsOutput, error) +} + +var _ ListCellsAPIClient = (*Client)(nil) + +// ListCellsPaginatorOptions is the paginator options for ListCells +type ListCellsPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListCellsPaginator is a paginator for ListCells +type ListCellsPaginator struct { + options ListCellsPaginatorOptions + client ListCellsAPIClient + params *ListCellsInput + nextToken *string + firstPage bool +} + +// NewListCellsPaginator returns a new ListCellsPaginator +func NewListCellsPaginator(client ListCellsAPIClient, params *ListCellsInput, optFns ...func(*ListCellsPaginatorOptions)) *ListCellsPaginator { + if params == nil { + params = &ListCellsInput{} + } + + options := ListCellsPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListCellsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListCellsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListCells page. +func (p *ListCellsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCellsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListCells(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListCells(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "ListCells", + } +} diff --git a/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go b/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go new file mode 100644 index 00000000000..31dd6a95f4a --- /dev/null +++ b/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go @@ -0,0 +1,207 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a collection of cross account readiness authorizations. +func (c *Client) ListCrossAccountAuthorizations(ctx context.Context, params *ListCrossAccountAuthorizationsInput, optFns ...func(*Options)) (*ListCrossAccountAuthorizationsOutput, error) { + if params == nil { + params = &ListCrossAccountAuthorizationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListCrossAccountAuthorizations", params, optFns, c.addOperationListCrossAccountAuthorizationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListCrossAccountAuthorizationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListCrossAccountAuthorizationsInput struct { + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type ListCrossAccountAuthorizationsOutput struct { + + // A list of CrossAccountAuthorizations + CrossAccountAuthorizations []string + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListCrossAccountAuthorizationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListCrossAccountAuthorizations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCrossAccountAuthorizations{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCrossAccountAuthorizations(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListCrossAccountAuthorizationsAPIClient is a client that implements the +// ListCrossAccountAuthorizations operation. +type ListCrossAccountAuthorizationsAPIClient interface { + ListCrossAccountAuthorizations(context.Context, *ListCrossAccountAuthorizationsInput, ...func(*Options)) (*ListCrossAccountAuthorizationsOutput, error) +} + +var _ ListCrossAccountAuthorizationsAPIClient = (*Client)(nil) + +// ListCrossAccountAuthorizationsPaginatorOptions is the paginator options for +// ListCrossAccountAuthorizations +type ListCrossAccountAuthorizationsPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListCrossAccountAuthorizationsPaginator is a paginator for +// ListCrossAccountAuthorizations +type ListCrossAccountAuthorizationsPaginator struct { + options ListCrossAccountAuthorizationsPaginatorOptions + client ListCrossAccountAuthorizationsAPIClient + params *ListCrossAccountAuthorizationsInput + nextToken *string + firstPage bool +} + +// NewListCrossAccountAuthorizationsPaginator returns a new +// ListCrossAccountAuthorizationsPaginator +func NewListCrossAccountAuthorizationsPaginator(client ListCrossAccountAuthorizationsAPIClient, params *ListCrossAccountAuthorizationsInput, optFns ...func(*ListCrossAccountAuthorizationsPaginatorOptions)) *ListCrossAccountAuthorizationsPaginator { + if params == nil { + params = &ListCrossAccountAuthorizationsInput{} + } + + options := ListCrossAccountAuthorizationsPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListCrossAccountAuthorizationsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListCrossAccountAuthorizationsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListCrossAccountAuthorizations page. +func (p *ListCrossAccountAuthorizationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCrossAccountAuthorizationsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListCrossAccountAuthorizations(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListCrossAccountAuthorizations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "ListCrossAccountAuthorizations", + } +} diff --git a/service/route53recoveryreadiness/api_op_ListReadinessChecks.go b/service/route53recoveryreadiness/api_op_ListReadinessChecks.go new file mode 100644 index 00000000000..d4bd86dcce6 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_ListReadinessChecks.go @@ -0,0 +1,206 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a collection of Readiness Checks. +func (c *Client) ListReadinessChecks(ctx context.Context, params *ListReadinessChecksInput, optFns ...func(*Options)) (*ListReadinessChecksOutput, error) { + if params == nil { + params = &ListReadinessChecksInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListReadinessChecks", params, optFns, c.addOperationListReadinessChecksMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListReadinessChecksOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListReadinessChecksInput struct { + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type ListReadinessChecksOutput struct { + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // A list of ReadinessCheck associated with the account + ReadinessChecks []types.ReadinessCheckOutput + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListReadinessChecksMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListReadinessChecks{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListReadinessChecks{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListReadinessChecks(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListReadinessChecksAPIClient is a client that implements the ListReadinessChecks +// operation. +type ListReadinessChecksAPIClient interface { + ListReadinessChecks(context.Context, *ListReadinessChecksInput, ...func(*Options)) (*ListReadinessChecksOutput, error) +} + +var _ ListReadinessChecksAPIClient = (*Client)(nil) + +// ListReadinessChecksPaginatorOptions is the paginator options for +// ListReadinessChecks +type ListReadinessChecksPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListReadinessChecksPaginator is a paginator for ListReadinessChecks +type ListReadinessChecksPaginator struct { + options ListReadinessChecksPaginatorOptions + client ListReadinessChecksAPIClient + params *ListReadinessChecksInput + nextToken *string + firstPage bool +} + +// NewListReadinessChecksPaginator returns a new ListReadinessChecksPaginator +func NewListReadinessChecksPaginator(client ListReadinessChecksAPIClient, params *ListReadinessChecksInput, optFns ...func(*ListReadinessChecksPaginatorOptions)) *ListReadinessChecksPaginator { + if params == nil { + params = &ListReadinessChecksInput{} + } + + options := ListReadinessChecksPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListReadinessChecksPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListReadinessChecksPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListReadinessChecks page. +func (p *ListReadinessChecksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListReadinessChecksOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListReadinessChecks(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListReadinessChecks(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "ListReadinessChecks", + } +} diff --git a/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go b/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go new file mode 100644 index 00000000000..aa7ba969323 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go @@ -0,0 +1,206 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a collection of Recovery Groups. +func (c *Client) ListRecoveryGroups(ctx context.Context, params *ListRecoveryGroupsInput, optFns ...func(*Options)) (*ListRecoveryGroupsOutput, error) { + if params == nil { + params = &ListRecoveryGroupsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListRecoveryGroups", params, optFns, c.addOperationListRecoveryGroupsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListRecoveryGroupsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListRecoveryGroupsInput struct { + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type ListRecoveryGroupsOutput struct { + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // A list of RecoveryGroups + RecoveryGroups []types.RecoveryGroupOutput + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListRecoveryGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListRecoveryGroups{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRecoveryGroups{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRecoveryGroups(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListRecoveryGroupsAPIClient is a client that implements the ListRecoveryGroups +// operation. +type ListRecoveryGroupsAPIClient interface { + ListRecoveryGroups(context.Context, *ListRecoveryGroupsInput, ...func(*Options)) (*ListRecoveryGroupsOutput, error) +} + +var _ ListRecoveryGroupsAPIClient = (*Client)(nil) + +// ListRecoveryGroupsPaginatorOptions is the paginator options for +// ListRecoveryGroups +type ListRecoveryGroupsPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListRecoveryGroupsPaginator is a paginator for ListRecoveryGroups +type ListRecoveryGroupsPaginator struct { + options ListRecoveryGroupsPaginatorOptions + client ListRecoveryGroupsAPIClient + params *ListRecoveryGroupsInput + nextToken *string + firstPage bool +} + +// NewListRecoveryGroupsPaginator returns a new ListRecoveryGroupsPaginator +func NewListRecoveryGroupsPaginator(client ListRecoveryGroupsAPIClient, params *ListRecoveryGroupsInput, optFns ...func(*ListRecoveryGroupsPaginatorOptions)) *ListRecoveryGroupsPaginator { + if params == nil { + params = &ListRecoveryGroupsInput{} + } + + options := ListRecoveryGroupsPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListRecoveryGroupsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListRecoveryGroupsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListRecoveryGroups page. +func (p *ListRecoveryGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRecoveryGroupsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListRecoveryGroups(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListRecoveryGroups(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "ListRecoveryGroups", + } +} diff --git a/service/route53recoveryreadiness/api_op_ListResourceSets.go b/service/route53recoveryreadiness/api_op_ListResourceSets.go new file mode 100644 index 00000000000..2208a4f28a3 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_ListResourceSets.go @@ -0,0 +1,205 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a collection of Resource Sets. +func (c *Client) ListResourceSets(ctx context.Context, params *ListResourceSetsInput, optFns ...func(*Options)) (*ListResourceSetsOutput, error) { + if params == nil { + params = &ListResourceSetsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListResourceSets", params, optFns, c.addOperationListResourceSetsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListResourceSetsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListResourceSetsInput struct { + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type ListResourceSetsOutput struct { + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // A list of ResourceSets associated with the account + ResourceSets []types.ResourceSetOutput + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListResourceSetsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListResourceSets{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListResourceSets{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListResourceSets(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListResourceSetsAPIClient is a client that implements the ListResourceSets +// operation. +type ListResourceSetsAPIClient interface { + ListResourceSets(context.Context, *ListResourceSetsInput, ...func(*Options)) (*ListResourceSetsOutput, error) +} + +var _ ListResourceSetsAPIClient = (*Client)(nil) + +// ListResourceSetsPaginatorOptions is the paginator options for ListResourceSets +type ListResourceSetsPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListResourceSetsPaginator is a paginator for ListResourceSets +type ListResourceSetsPaginator struct { + options ListResourceSetsPaginatorOptions + client ListResourceSetsAPIClient + params *ListResourceSetsInput + nextToken *string + firstPage bool +} + +// NewListResourceSetsPaginator returns a new ListResourceSetsPaginator +func NewListResourceSetsPaginator(client ListResourceSetsAPIClient, params *ListResourceSetsInput, optFns ...func(*ListResourceSetsPaginatorOptions)) *ListResourceSetsPaginator { + if params == nil { + params = &ListResourceSetsInput{} + } + + options := ListResourceSetsPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListResourceSetsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListResourceSetsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListResourceSets page. +func (p *ListResourceSetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListResourceSetsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListResourceSets(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListResourceSets(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "ListResourceSets", + } +} diff --git a/service/route53recoveryreadiness/api_op_ListRules.go b/service/route53recoveryreadiness/api_op_ListRules.go new file mode 100644 index 00000000000..f2303795efe --- /dev/null +++ b/service/route53recoveryreadiness/api_op_ListRules.go @@ -0,0 +1,207 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a collection of rules that are applied as part of Readiness Checks. +func (c *Client) ListRules(ctx context.Context, params *ListRulesInput, optFns ...func(*Options)) (*ListRulesOutput, error) { + if params == nil { + params = &ListRulesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListRules", params, optFns, c.addOperationListRulesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListRulesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListRulesInput struct { + + // Upper bound on number of records to return. + MaxResults int32 + + // A token used to resume pagination from the end of a previous request. + NextToken *string + + // Filter parameter which specifies the rules to return given a resource type. + ResourceType *string + + noSmithyDocumentSerde +} + +type ListRulesOutput struct { + + // A token that can be used to resume pagination from the end of the collection. + NextToken *string + + // A list of rules + Rules []types.ListRulesOutput + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListRulesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListRules{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRules{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRules(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListRulesAPIClient is a client that implements the ListRules operation. +type ListRulesAPIClient interface { + ListRules(context.Context, *ListRulesInput, ...func(*Options)) (*ListRulesOutput, error) +} + +var _ ListRulesAPIClient = (*Client)(nil) + +// ListRulesPaginatorOptions is the paginator options for ListRules +type ListRulesPaginatorOptions struct { + // Upper bound on number of records to return. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListRulesPaginator is a paginator for ListRules +type ListRulesPaginator struct { + options ListRulesPaginatorOptions + client ListRulesAPIClient + params *ListRulesInput + nextToken *string + firstPage bool +} + +// NewListRulesPaginator returns a new ListRulesPaginator +func NewListRulesPaginator(client ListRulesAPIClient, params *ListRulesInput, optFns ...func(*ListRulesPaginatorOptions)) *ListRulesPaginator { + if params == nil { + params = &ListRulesInput{} + } + + options := ListRulesPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListRulesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListRulesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListRules page. +func (p *ListRulesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRulesOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListRules(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListRules(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "ListRules", + } +} diff --git a/service/route53recoveryreadiness/api_op_ListTagsForResources.go b/service/route53recoveryreadiness/api_op_ListTagsForResources.go new file mode 100644 index 00000000000..751e0e8321b --- /dev/null +++ b/service/route53recoveryreadiness/api_op_ListTagsForResources.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of the tags assigned to the specified resource. +func (c *Client) ListTagsForResources(ctx context.Context, params *ListTagsForResourcesInput, optFns ...func(*Options)) (*ListTagsForResourcesOutput, error) { + if params == nil { + params = &ListTagsForResourcesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTagsForResources", params, optFns, c.addOperationListTagsForResourcesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTagsForResourcesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTagsForResourcesInput struct { + + // The Amazon Resource Name (ARN) for the resource. You can get this from the + // response to any request to the resource. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type ListTagsForResourcesOutput struct { + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTagsForResourcesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResources{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResources{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListTagsForResourcesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResources(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListTagsForResources(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "ListTagsForResources", + } +} diff --git a/service/route53recoveryreadiness/api_op_TagResource.go b/service/route53recoveryreadiness/api_op_TagResource.go new file mode 100644 index 00000000000..241ae456af6 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_TagResource.go @@ -0,0 +1,122 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Adds tags to the specified resource. You can specify one or more tags to add. +func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { + if params == nil { + params = &TagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*TagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type TagResourceInput struct { + + // The Amazon Resource Name (ARN) for the resource. You can get this from the + // response to any request to the resource. + // + // This member is required. + ResourceArn *string + + // A collection of tags associated with a resource + // + // This member is required. + Tags map[string]string + + noSmithyDocumentSerde +} + +type TagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpTagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "TagResource", + } +} diff --git a/service/route53recoveryreadiness/api_op_UntagResource.go b/service/route53recoveryreadiness/api_op_UntagResource.go new file mode 100644 index 00000000000..734e295d6ae --- /dev/null +++ b/service/route53recoveryreadiness/api_op_UntagResource.go @@ -0,0 +1,123 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Removes tags from the specified resource. You can specify one or more tags to +// remove. +func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { + if params == nil { + params = &UntagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UntagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UntagResourceInput struct { + + // The Amazon Resource Name (ARN) for the resource. You can get this from the + // response to any request to the resource. + // + // This member is required. + ResourceArn *string + + // A comma-separated list of the tag keys to remove from the resource. + // + // This member is required. + TagKeys []string + + noSmithyDocumentSerde +} + +type UntagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUntagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "UntagResource", + } +} diff --git a/service/route53recoveryreadiness/api_op_UpdateCell.go b/service/route53recoveryreadiness/api_op_UpdateCell.go new file mode 100644 index 00000000000..fe172a4e0bd --- /dev/null +++ b/service/route53recoveryreadiness/api_op_UpdateCell.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates an existing Cell. +func (c *Client) UpdateCell(ctx context.Context, params *UpdateCellInput, optFns ...func(*Options)) (*UpdateCellOutput, error) { + if params == nil { + params = &UpdateCellInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateCell", params, optFns, c.addOperationUpdateCellMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateCellOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Parameters to update for the Cell +type UpdateCellInput struct { + + // The Cell to update + // + // This member is required. + CellName *string + + // A list of Cell arns, completely replaces previous list + // + // This member is required. + Cells []string + + noSmithyDocumentSerde +} + +type UpdateCellOutput struct { + + // The arn for the Cell + CellArn *string + + // The name of the Cell + CellName *string + + // A list of Cell arns + Cells []string + + // A list of Cell ARNs and/or RecoveryGroup ARNs + ParentReadinessScopes []string + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateCellMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateCell{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateCell{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateCellValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateCell(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateCell(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "UpdateCell", + } +} diff --git a/service/route53recoveryreadiness/api_op_UpdateReadinessCheck.go b/service/route53recoveryreadiness/api_op_UpdateReadinessCheck.go new file mode 100644 index 00000000000..150e158f30d --- /dev/null +++ b/service/route53recoveryreadiness/api_op_UpdateReadinessCheck.go @@ -0,0 +1,135 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates an exisiting Readiness Check. +func (c *Client) UpdateReadinessCheck(ctx context.Context, params *UpdateReadinessCheckInput, optFns ...func(*Options)) (*UpdateReadinessCheckOutput, error) { + if params == nil { + params = &UpdateReadinessCheckInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateReadinessCheck", params, optFns, c.addOperationUpdateReadinessCheckMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateReadinessCheckOutput) + out.ResultMetadata = metadata + return out, nil +} + +// The new Readiness Check values +type UpdateReadinessCheckInput struct { + + // The ReadinessCheck to update + // + // This member is required. + ReadinessCheckName *string + + // The name of the ResourceSet to check + // + // This member is required. + ResourceSetName *string + + noSmithyDocumentSerde +} + +type UpdateReadinessCheckOutput struct { + + // Arn associated with ReadinessCheck + ReadinessCheckArn *string + + // Name for a ReadinessCheck + ReadinessCheckName *string + + // Name of the ResourceSet to be checked + ResourceSet *string + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateReadinessCheckMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateReadinessCheck{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateReadinessCheck{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateReadinessCheckValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateReadinessCheck(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateReadinessCheck(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "UpdateReadinessCheck", + } +} diff --git a/service/route53recoveryreadiness/api_op_UpdateRecoveryGroup.go b/service/route53recoveryreadiness/api_op_UpdateRecoveryGroup.go new file mode 100644 index 00000000000..f27127573a6 --- /dev/null +++ b/service/route53recoveryreadiness/api_op_UpdateRecoveryGroup.go @@ -0,0 +1,135 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates an existing Recovery Group. +func (c *Client) UpdateRecoveryGroup(ctx context.Context, params *UpdateRecoveryGroupInput, optFns ...func(*Options)) (*UpdateRecoveryGroupOutput, error) { + if params == nil { + params = &UpdateRecoveryGroupInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateRecoveryGroup", params, optFns, c.addOperationUpdateRecoveryGroupMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateRecoveryGroupOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Parameters to update for the RecoveryGroup +type UpdateRecoveryGroupInput struct { + + // A list of Cell arns, completely replaces previous list + // + // This member is required. + Cells []string + + // The RecoveryGroup to update + // + // This member is required. + RecoveryGroupName *string + + noSmithyDocumentSerde +} + +type UpdateRecoveryGroupOutput struct { + + // A list of Cell arns + Cells []string + + // The arn for the RecoveryGroup + RecoveryGroupArn *string + + // The name of the RecoveryGroup + RecoveryGroupName *string + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateRecoveryGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateRecoveryGroup{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateRecoveryGroup{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateRecoveryGroupValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRecoveryGroup(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateRecoveryGroup(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "UpdateRecoveryGroup", + } +} diff --git a/service/route53recoveryreadiness/api_op_UpdateResourceSet.go b/service/route53recoveryreadiness/api_op_UpdateResourceSet.go new file mode 100644 index 00000000000..fd3ef87d09c --- /dev/null +++ b/service/route53recoveryreadiness/api_op_UpdateResourceSet.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates an existing Resource Set. +func (c *Client) UpdateResourceSet(ctx context.Context, params *UpdateResourceSetInput, optFns ...func(*Options)) (*UpdateResourceSetOutput, error) { + if params == nil { + params = &UpdateResourceSetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateResourceSet", params, optFns, c.addOperationUpdateResourceSetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateResourceSetOutput) + out.ResultMetadata = metadata + return out, nil +} + +// configuration for the desired +type UpdateResourceSetInput struct { + + // The ResourceSet to update + // + // This member is required. + ResourceSetName *string + + // AWS Resource Type of the resources in the ResourceSet + // + // This member is required. + ResourceSetType *string + + // A list of Resource objects + // + // This member is required. + Resources []types.Resource + + noSmithyDocumentSerde +} + +type UpdateResourceSetOutput struct { + + // The arn for the ResourceSet + ResourceSetArn *string + + // The name of the ResourceSet + ResourceSetName *string + + // AWS Resource Type of the resources in the ResourceSet + ResourceSetType *string + + // A list of Resource objects + Resources []types.Resource + + // A collection of tags associated with a resource + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateResourceSetMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateResourceSet{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateResourceSet{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateResourceSetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateResourceSet(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateResourceSet(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "route53-recovery-readiness", + OperationName: "UpdateResourceSet", + } +} diff --git a/service/route53recoveryreadiness/deserializers.go b/service/route53recoveryreadiness/deserializers.go new file mode 100644 index 00000000000..b10386d9574 --- /dev/null +++ b/service/route53recoveryreadiness/deserializers.go @@ -0,0 +1,6917 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + smithy "github.com/aws/smithy-go" + smithyio "github.com/aws/smithy-go/io" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "io/ioutil" + "strings" +) + +type awsRestjson1_deserializeOpCreateCell struct { +} + +func (*awsRestjson1_deserializeOpCreateCell) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateCell) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateCell(response, &metadata) + } + output := &CreateCellOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateCellOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateCell(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateCellOutput(v **CreateCellOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateCellOutput + if *v == nil { + sv = &CreateCellOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cellArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.CellArn = ptr.String(jtv) + } + + case "cellName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.CellName = ptr.String(jtv) + } + + case "cells": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { + return err + } + + case "parentReadinessScopes": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ParentReadinessScopes, value); err != nil { + return err + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateCrossAccountAuthorization struct { +} + +func (*awsRestjson1_deserializeOpCreateCrossAccountAuthorization) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateCrossAccountAuthorization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateCrossAccountAuthorization(response, &metadata) + } + output := &CreateCrossAccountAuthorizationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateCrossAccountAuthorizationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateCrossAccountAuthorization(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateCrossAccountAuthorizationOutput(v **CreateCrossAccountAuthorizationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateCrossAccountAuthorizationOutput + if *v == nil { + sv = &CreateCrossAccountAuthorizationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "crossAccountAuthorization": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CrossAccountAuthorization to be of type string, got %T instead", value) + } + sv.CrossAccountAuthorization = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateReadinessCheck struct { +} + +func (*awsRestjson1_deserializeOpCreateReadinessCheck) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateReadinessCheck) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateReadinessCheck(response, &metadata) + } + output := &CreateReadinessCheckOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateReadinessCheckOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateReadinessCheck(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateReadinessCheckOutput(v **CreateReadinessCheckOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateReadinessCheckOutput + if *v == nil { + sv = &CreateReadinessCheckOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "readinessCheckArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.ReadinessCheckArn = ptr.String(jtv) + } + + case "readinessCheckName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ReadinessCheckName = ptr.String(jtv) + } + + case "resourceSet": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ResourceSet = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateRecoveryGroup struct { +} + +func (*awsRestjson1_deserializeOpCreateRecoveryGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateRecoveryGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateRecoveryGroup(response, &metadata) + } + output := &CreateRecoveryGroupOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateRecoveryGroupOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateRecoveryGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateRecoveryGroupOutput(v **CreateRecoveryGroupOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateRecoveryGroupOutput + if *v == nil { + sv = &CreateRecoveryGroupOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cells": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { + return err + } + + case "recoveryGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.RecoveryGroupArn = ptr.String(jtv) + } + + case "recoveryGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.RecoveryGroupName = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateResourceSet struct { +} + +func (*awsRestjson1_deserializeOpCreateResourceSet) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateResourceSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateResourceSet(response, &metadata) + } + output := &CreateResourceSetOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentCreateResourceSetOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateResourceSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateResourceSetOutput(v **CreateResourceSetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateResourceSetOutput + if *v == nil { + sv = &CreateResourceSetOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "resources": + if err := awsRestjson1_deserializeDocument__listOfResource(&sv.Resources, value); err != nil { + return err + } + + case "resourceSetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.ResourceSetArn = ptr.String(jtv) + } + + case "resourceSetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ResourceSetName = ptr.String(jtv) + } + + case "resourceSetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringPatternAWSAZaZ09AZaZ09 to be of type string, got %T instead", value) + } + sv.ResourceSetType = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDeleteCell struct { +} + +func (*awsRestjson1_deserializeOpDeleteCell) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteCell) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteCell(response, &metadata) + } + output := &DeleteCellOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteCell(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteCrossAccountAuthorization struct { +} + +func (*awsRestjson1_deserializeOpDeleteCrossAccountAuthorization) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteCrossAccountAuthorization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteCrossAccountAuthorization(response, &metadata) + } + output := &DeleteCrossAccountAuthorizationOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteCrossAccountAuthorization(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteReadinessCheck struct { +} + +func (*awsRestjson1_deserializeOpDeleteReadinessCheck) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteReadinessCheck) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteReadinessCheck(response, &metadata) + } + output := &DeleteReadinessCheckOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteReadinessCheck(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteRecoveryGroup struct { +} + +func (*awsRestjson1_deserializeOpDeleteRecoveryGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteRecoveryGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteRecoveryGroup(response, &metadata) + } + output := &DeleteRecoveryGroupOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteRecoveryGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteResourceSet struct { +} + +func (*awsRestjson1_deserializeOpDeleteResourceSet) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteResourceSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteResourceSet(response, &metadata) + } + output := &DeleteResourceSetOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteResourceSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpGetArchitectureRecommendations struct { +} + +func (*awsRestjson1_deserializeOpGetArchitectureRecommendations) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetArchitectureRecommendations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetArchitectureRecommendations(response, &metadata) + } + output := &GetArchitectureRecommendationsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetArchitectureRecommendationsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetArchitectureRecommendations(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetArchitectureRecommendationsOutput(v **GetArchitectureRecommendationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetArchitectureRecommendationsOutput + if *v == nil { + sv = &GetArchitectureRecommendationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "lastAuditTimestamp": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LastAuditTimestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.LastAuditTimestamp = ptr.Time(t) + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "recommendations": + if err := awsRestjson1_deserializeDocument__listOfRecommendation(&sv.Recommendations, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetCell struct { +} + +func (*awsRestjson1_deserializeOpGetCell) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetCell) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetCell(response, &metadata) + } + output := &GetCellOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetCellOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetCell(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetCellOutput(v **GetCellOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetCellOutput + if *v == nil { + sv = &GetCellOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cellArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.CellArn = ptr.String(jtv) + } + + case "cellName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.CellName = ptr.String(jtv) + } + + case "cells": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { + return err + } + + case "parentReadinessScopes": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ParentReadinessScopes, value); err != nil { + return err + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetCellReadinessSummary struct { +} + +func (*awsRestjson1_deserializeOpGetCellReadinessSummary) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetCellReadinessSummary) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetCellReadinessSummary(response, &metadata) + } + output := &GetCellReadinessSummaryOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetCellReadinessSummaryOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetCellReadinessSummary(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetCellReadinessSummaryOutput(v **GetCellReadinessSummaryOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetCellReadinessSummaryOutput + if *v == nil { + sv = &GetCellReadinessSummaryOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "readiness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) + } + sv.Readiness = types.Readiness(jtv) + } + + case "readinessChecks": + if err := awsRestjson1_deserializeDocument__listOfReadinessCheckSummary(&sv.ReadinessChecks, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetReadinessCheck struct { +} + +func (*awsRestjson1_deserializeOpGetReadinessCheck) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetReadinessCheck) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetReadinessCheck(response, &metadata) + } + output := &GetReadinessCheckOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetReadinessCheckOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetReadinessCheck(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetReadinessCheckOutput(v **GetReadinessCheckOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetReadinessCheckOutput + if *v == nil { + sv = &GetReadinessCheckOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "readinessCheckArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.ReadinessCheckArn = ptr.String(jtv) + } + + case "readinessCheckName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ReadinessCheckName = ptr.String(jtv) + } + + case "resourceSet": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ResourceSet = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetReadinessCheckResourceStatus struct { +} + +func (*awsRestjson1_deserializeOpGetReadinessCheckResourceStatus) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetReadinessCheckResourceStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetReadinessCheckResourceStatus(response, &metadata) + } + output := &GetReadinessCheckResourceStatusOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetReadinessCheckResourceStatusOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetReadinessCheckResourceStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetReadinessCheckResourceStatusOutput(v **GetReadinessCheckResourceStatusOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetReadinessCheckResourceStatusOutput + if *v == nil { + sv = &GetReadinessCheckResourceStatusOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "readiness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) + } + sv.Readiness = types.Readiness(jtv) + } + + case "rules": + if err := awsRestjson1_deserializeDocument__listOfRuleResult(&sv.Rules, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetReadinessCheckStatus struct { +} + +func (*awsRestjson1_deserializeOpGetReadinessCheckStatus) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetReadinessCheckStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetReadinessCheckStatus(response, &metadata) + } + output := &GetReadinessCheckStatusOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetReadinessCheckStatusOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetReadinessCheckStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetReadinessCheckStatusOutput(v **GetReadinessCheckStatusOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetReadinessCheckStatusOutput + if *v == nil { + sv = &GetReadinessCheckStatusOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "messages": + if err := awsRestjson1_deserializeDocument__listOfMessage(&sv.Messages, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "readiness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) + } + sv.Readiness = types.Readiness(jtv) + } + + case "resources": + if err := awsRestjson1_deserializeDocument__listOfResourceResult(&sv.Resources, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetRecoveryGroup struct { +} + +func (*awsRestjson1_deserializeOpGetRecoveryGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetRecoveryGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetRecoveryGroup(response, &metadata) + } + output := &GetRecoveryGroupOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetRecoveryGroupOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetRecoveryGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetRecoveryGroupOutput(v **GetRecoveryGroupOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetRecoveryGroupOutput + if *v == nil { + sv = &GetRecoveryGroupOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cells": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { + return err + } + + case "recoveryGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.RecoveryGroupArn = ptr.String(jtv) + } + + case "recoveryGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.RecoveryGroupName = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetRecoveryGroupReadinessSummary struct { +} + +func (*awsRestjson1_deserializeOpGetRecoveryGroupReadinessSummary) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetRecoveryGroupReadinessSummary) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetRecoveryGroupReadinessSummary(response, &metadata) + } + output := &GetRecoveryGroupReadinessSummaryOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetRecoveryGroupReadinessSummaryOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetRecoveryGroupReadinessSummary(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetRecoveryGroupReadinessSummaryOutput(v **GetRecoveryGroupReadinessSummaryOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetRecoveryGroupReadinessSummaryOutput + if *v == nil { + sv = &GetRecoveryGroupReadinessSummaryOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "readiness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) + } + sv.Readiness = types.Readiness(jtv) + } + + case "readinessChecks": + if err := awsRestjson1_deserializeDocument__listOfReadinessCheckSummary(&sv.ReadinessChecks, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetResourceSet struct { +} + +func (*awsRestjson1_deserializeOpGetResourceSet) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetResourceSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetResourceSet(response, &metadata) + } + output := &GetResourceSetOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetResourceSetOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetResourceSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetResourceSetOutput(v **GetResourceSetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetResourceSetOutput + if *v == nil { + sv = &GetResourceSetOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "resources": + if err := awsRestjson1_deserializeDocument__listOfResource(&sv.Resources, value); err != nil { + return err + } + + case "resourceSetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.ResourceSetArn = ptr.String(jtv) + } + + case "resourceSetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ResourceSetName = ptr.String(jtv) + } + + case "resourceSetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringPatternAWSAZaZ09AZaZ09 to be of type string, got %T instead", value) + } + sv.ResourceSetType = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListCells struct { +} + +func (*awsRestjson1_deserializeOpListCells) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListCells) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListCells(response, &metadata) + } + output := &ListCellsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListCellsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListCells(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListCellsOutput(v **ListCellsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListCellsOutput + if *v == nil { + sv = &ListCellsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cells": + if err := awsRestjson1_deserializeDocument__listOfCellOutput(&sv.Cells, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListCrossAccountAuthorizations struct { +} + +func (*awsRestjson1_deserializeOpListCrossAccountAuthorizations) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListCrossAccountAuthorizations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListCrossAccountAuthorizations(response, &metadata) + } + output := &ListCrossAccountAuthorizationsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListCrossAccountAuthorizationsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListCrossAccountAuthorizations(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListCrossAccountAuthorizationsOutput(v **ListCrossAccountAuthorizationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListCrossAccountAuthorizationsOutput + if *v == nil { + sv = &ListCrossAccountAuthorizationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "crossAccountAuthorizations": + if err := awsRestjson1_deserializeDocument__listOfCrossAccountAuthorization(&sv.CrossAccountAuthorizations, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListReadinessChecks struct { +} + +func (*awsRestjson1_deserializeOpListReadinessChecks) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListReadinessChecks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListReadinessChecks(response, &metadata) + } + output := &ListReadinessChecksOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListReadinessChecksOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListReadinessChecks(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListReadinessChecksOutput(v **ListReadinessChecksOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListReadinessChecksOutput + if *v == nil { + sv = &ListReadinessChecksOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "readinessChecks": + if err := awsRestjson1_deserializeDocument__listOfReadinessCheckOutput(&sv.ReadinessChecks, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListRecoveryGroups struct { +} + +func (*awsRestjson1_deserializeOpListRecoveryGroups) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListRecoveryGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListRecoveryGroups(response, &metadata) + } + output := &ListRecoveryGroupsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListRecoveryGroupsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListRecoveryGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListRecoveryGroupsOutput(v **ListRecoveryGroupsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListRecoveryGroupsOutput + if *v == nil { + sv = &ListRecoveryGroupsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "recoveryGroups": + if err := awsRestjson1_deserializeDocument__listOfRecoveryGroupOutput(&sv.RecoveryGroups, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListResourceSets struct { +} + +func (*awsRestjson1_deserializeOpListResourceSets) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListResourceSets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListResourceSets(response, &metadata) + } + output := &ListResourceSetsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListResourceSetsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListResourceSets(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListResourceSetsOutput(v **ListResourceSetsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListResourceSetsOutput + if *v == nil { + sv = &ListResourceSetsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "resourceSets": + if err := awsRestjson1_deserializeDocument__listOfResourceSetOutput(&sv.ResourceSets, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListRules struct { +} + +func (*awsRestjson1_deserializeOpListRules) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListRules(response, &metadata) + } + output := &ListRulesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListRulesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListRulesOutput(v **ListRulesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListRulesOutput + if *v == nil { + sv = &ListRulesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "rules": + if err := awsRestjson1_deserializeDocument__listOfListRulesOutput(&sv.Rules, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTagsForResources struct { +} + +func (*awsRestjson1_deserializeOpListTagsForResources) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTagsForResources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResources(response, &metadata) + } + output := &ListTagsForResourcesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListTagsForResourcesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTagsForResources(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTagsForResourcesOutput(v **ListTagsForResourcesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListTagsForResourcesOutput + if *v == nil { + sv = &ListTagsForResourcesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpTagResource struct { +} + +func (*awsRestjson1_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUntagResource struct { +} + +func (*awsRestjson1_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUpdateCell struct { +} + +func (*awsRestjson1_deserializeOpUpdateCell) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateCell) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateCell(response, &metadata) + } + output := &UpdateCellOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateCellOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateCell(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateCellOutput(v **UpdateCellOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateCellOutput + if *v == nil { + sv = &UpdateCellOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cellArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.CellArn = ptr.String(jtv) + } + + case "cellName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.CellName = ptr.String(jtv) + } + + case "cells": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { + return err + } + + case "parentReadinessScopes": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ParentReadinessScopes, value); err != nil { + return err + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateReadinessCheck struct { +} + +func (*awsRestjson1_deserializeOpUpdateReadinessCheck) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateReadinessCheck) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateReadinessCheck(response, &metadata) + } + output := &UpdateReadinessCheckOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateReadinessCheckOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateReadinessCheck(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateReadinessCheckOutput(v **UpdateReadinessCheckOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateReadinessCheckOutput + if *v == nil { + sv = &UpdateReadinessCheckOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "readinessCheckArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.ReadinessCheckArn = ptr.String(jtv) + } + + case "readinessCheckName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ReadinessCheckName = ptr.String(jtv) + } + + case "resourceSet": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ResourceSet = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateRecoveryGroup struct { +} + +func (*awsRestjson1_deserializeOpUpdateRecoveryGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateRecoveryGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateRecoveryGroup(response, &metadata) + } + output := &UpdateRecoveryGroupOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateRecoveryGroupOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateRecoveryGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateRecoveryGroupOutput(v **UpdateRecoveryGroupOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateRecoveryGroupOutput + if *v == nil { + sv = &UpdateRecoveryGroupOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cells": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { + return err + } + + case "recoveryGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.RecoveryGroupArn = ptr.String(jtv) + } + + case "recoveryGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.RecoveryGroupName = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateResourceSet struct { +} + +func (*awsRestjson1_deserializeOpUpdateResourceSet) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateResourceSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateResourceSet(response, &metadata) + } + output := &UpdateResourceSetOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateResourceSetOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateResourceSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateResourceSetOutput(v **UpdateResourceSetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateResourceSetOutput + if *v == nil { + sv = &UpdateResourceSetOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "resources": + if err := awsRestjson1_deserializeDocument__listOfResource(&sv.Resources, value); err != nil { + return err + } + + case "resourceSetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.ResourceSetArn = ptr.String(jtv) + } + + case "resourceSetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ResourceSetName = ptr.String(jtv) + } + + case "resourceSetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringPatternAWSAZaZ09AZaZ09 to be of type string, got %T instead", value) + } + sv.ResourceSetType = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfCellOutput(v *[]types.CellOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.CellOutput + if *v == nil { + cv = []types.CellOutput{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CellOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentCellOutput(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfCrossAccountAuthorization(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CrossAccountAuthorization to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfListRulesOutput(v *[]types.ListRulesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ListRulesOutput + if *v == nil { + cv = []types.ListRulesOutput{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ListRulesOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentListRulesOutput(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfMessage(v *[]types.Message, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Message + if *v == nil { + cv = []types.Message{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Message + destAddr := &col + if err := awsRestjson1_deserializeDocumentMessage(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfReadinessCheckOutput(v *[]types.ReadinessCheckOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ReadinessCheckOutput + if *v == nil { + cv = []types.ReadinessCheckOutput{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ReadinessCheckOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentReadinessCheckOutput(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfReadinessCheckSummary(v *[]types.ReadinessCheckSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ReadinessCheckSummary + if *v == nil { + cv = []types.ReadinessCheckSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ReadinessCheckSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentReadinessCheckSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfRecommendation(v *[]types.Recommendation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Recommendation + if *v == nil { + cv = []types.Recommendation{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Recommendation + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecommendation(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfRecoveryGroupOutput(v *[]types.RecoveryGroupOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.RecoveryGroupOutput + if *v == nil { + cv = []types.RecoveryGroupOutput{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RecoveryGroupOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecoveryGroupOutput(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfResource(v *[]types.Resource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Resource + if *v == nil { + cv = []types.Resource{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Resource + destAddr := &col + if err := awsRestjson1_deserializeDocumentResource(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfResourceResult(v *[]types.ResourceResult, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ResourceResult + if *v == nil { + cv = []types.ResourceResult{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ResourceResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceResult(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfResourceSetOutput(v *[]types.ResourceSetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ResourceSetOutput + if *v == nil { + cv = []types.ResourceSetOutput{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ResourceSetOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceSetOutput(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocument__listOfRuleResult(v *[]types.RuleResult, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.RuleResult + if *v == nil { + cv = []types.RuleResult{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RuleResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentRuleResult(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCellOutput(v **types.CellOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CellOutput + if *v == nil { + sv = &types.CellOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cellArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.CellArn = ptr.String(jtv) + } + + case "cellName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.CellName = ptr.String(jtv) + } + + case "cells": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { + return err + } + + case "parentReadinessScopes": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ParentReadinessScopes, value); err != nil { + return err + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConflictException + if *v == nil { + sv = &types.ConflictException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDNSTargetResource(v **types.DNSTargetResource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DNSTargetResource + if *v == nil { + sv = &types.DNSTargetResource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "domainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "hostedZoneArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.HostedZoneArn = ptr.String(jtv) + } + + case "recordSetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.RecordSetId = ptr.String(jtv) + } + + case "recordType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.RecordType = ptr.String(jtv) + } + + case "targetResource": + if err := awsRestjson1_deserializeDocumentTargetResource(&sv.TargetResource, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InternalServerException + if *v == nil { + sv = &types.InternalServerException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentListRulesOutput(v **types.ListRulesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ListRulesOutput + if *v == nil { + sv = &types.ListRulesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "resourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64 to be of type string, got %T instead", value) + } + sv.ResourceType = ptr.String(jtv) + } + + case "ruleDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.RuleDescription = ptr.String(jtv) + } + + case "ruleId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64 to be of type string, got %T instead", value) + } + sv.RuleId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Message + if *v == nil { + sv = &types.Message{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "messageText": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.MessageText = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentNLBResource(v **types.NLBResource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.NLBResource + if *v == nil { + sv = &types.NLBResource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentR53ResourceRecord(v **types.R53ResourceRecord, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.R53ResourceRecord + if *v == nil { + sv = &types.R53ResourceRecord{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "domainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "recordSetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.RecordSetId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentReadinessCheckOutput(v **types.ReadinessCheckOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ReadinessCheckOutput + if *v == nil { + sv = &types.ReadinessCheckOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "readinessCheckArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.ReadinessCheckArn = ptr.String(jtv) + } + + case "readinessCheckName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ReadinessCheckName = ptr.String(jtv) + } + + case "resourceSet": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ResourceSet = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentReadinessCheckSummary(v **types.ReadinessCheckSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ReadinessCheckSummary + if *v == nil { + sv = &types.ReadinessCheckSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "readiness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) + } + sv.Readiness = types.Readiness(jtv) + } + + case "readinessCheckName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ReadinessCheckName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRecommendation(v **types.Recommendation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Recommendation + if *v == nil { + sv = &types.Recommendation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "recommendationText": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.RecommendationText = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRecoveryGroupOutput(v **types.RecoveryGroupOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RecoveryGroupOutput + if *v == nil { + sv = &types.RecoveryGroupOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "cells": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.Cells, value); err != nil { + return err + } + + case "recoveryGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.RecoveryGroupArn = ptr.String(jtv) + } + + case "recoveryGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.RecoveryGroupName = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Resource + if *v == nil { + sv = &types.Resource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "componentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ComponentId = ptr.String(jtv) + } + + case "dnsTargetResource": + if err := awsRestjson1_deserializeDocumentDNSTargetResource(&sv.DnsTargetResource, value); err != nil { + return err + } + + case "readinessScopes": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.ReadinessScopes, value); err != nil { + return err + } + + case "resourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ResourceArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentResourceResult(v **types.ResourceResult, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceResult + if *v == nil { + sv = &types.ResourceResult{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "componentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ComponentId = ptr.String(jtv) + } + + case "lastCheckedTimestamp": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ReadinessCheckTimestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.LastCheckedTimestamp = ptr.Time(t) + } + + case "readiness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) + } + sv.Readiness = types.Readiness(jtv) + } + + case "resourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ResourceArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentResourceSetOutput(v **types.ResourceSetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceSetOutput + if *v == nil { + sv = &types.ResourceSetOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "resources": + if err := awsRestjson1_deserializeDocument__listOfResource(&sv.Resources, value); err != nil { + return err + } + + case "resourceSetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) + } + sv.ResourceSetArn = ptr.String(jtv) + } + + case "resourceSetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringMax64PatternAAZAZ09Z to be of type string, got %T instead", value) + } + sv.ResourceSetName = ptr.String(jtv) + } + + case "resourceSetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __stringPatternAWSAZaZ09AZaZ09 to be of type string, got %T instead", value) + } + sv.ResourceSetType = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRuleResult(v **types.RuleResult, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RuleResult + if *v == nil { + sv = &types.RuleResult{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "lastCheckedTimestamp": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ReadinessCheckTimestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.LastCheckedTimestamp = ptr.Time(t) + } + + case "messages": + if err := awsRestjson1_deserializeDocument__listOfMessage(&sv.Messages, value); err != nil { + return err + } + + case "readiness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Readiness to be of type string, got %T instead", value) + } + sv.Readiness = types.Readiness(jtv) + } + + case "ruleId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.RuleId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentTargetResource(v **types.TargetResource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TargetResource + if *v == nil { + sv = &types.TargetResource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nLBResource": + if err := awsRestjson1_deserializeDocumentNLBResource(&sv.NLBResource, value); err != nil { + return err + } + + case "r53Resource": + if err := awsRestjson1_deserializeDocumentR53ResourceRecord(&sv.R53Resource, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ThrottlingException + if *v == nil { + sv = &types.ThrottlingException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} diff --git a/service/route53recoveryreadiness/doc.go b/service/route53recoveryreadiness/doc.go new file mode 100644 index 00000000000..58292b6a597 --- /dev/null +++ b/service/route53recoveryreadiness/doc.go @@ -0,0 +1,7 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package route53recoveryreadiness provides the API client, operations, and +// parameter types for AWS Route53 Recovery Readiness. +// +// AWS Route53 Recovery Readiness +package route53recoveryreadiness diff --git a/service/route53recoveryreadiness/endpoints.go b/service/route53recoveryreadiness/endpoints.go new file mode 100644 index 00000000000..b6a92651c1a --- /dev/null +++ b/service/route53recoveryreadiness/endpoints.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalendpoints "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/internal/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/url" +) + +// EndpointResolverOptions is the service endpoint resolver options +type EndpointResolverOptions = internalendpoints.Options + +// EndpointResolver interface for resolving service endpoints. +type EndpointResolver interface { + ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) +} + +var _ EndpointResolver = &internalendpoints.Resolver{} + +// NewDefaultEndpointResolver constructs a new service endpoint resolver +func NewDefaultEndpointResolver() *internalendpoints.Resolver { + return internalendpoints.New() +} + +// EndpointResolverFunc is a helper utility that wraps a function so it satisfies +// the EndpointResolver interface. This is useful when you want to add additional +// endpoint resolving logic, or stub out specific endpoints with custom values. +type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) + +func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return fn(region, options) +} + +func resolveDefaultEndpointConfiguration(o *Options) { + if o.EndpointResolver != nil { + return + } + o.EndpointResolver = NewDefaultEndpointResolver() +} + +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + +type ResolveEndpoint struct { + Resolver EndpointResolver + Options EndpointResolverOptions +} + +func (*ResolveEndpoint) ID() string { + return "ResolveEndpoint" +} + +func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.Resolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + var endpoint aws.Endpoint + endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), m.Options) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(awsmiddleware.GetSigningName(ctx)) == 0 { + signingName := endpoint.SigningName + if len(signingName) == 0 { + signingName = "route53-recovery-readiness" + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) + ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) + return next.HandleSerialize(ctx, in) +} +func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { + return stack.Serialize.Insert(&ResolveEndpoint{ + Resolver: o.EndpointResolver, + Options: o.EndpointOptions, + }, "OperationSerializer", middleware.Before) +} + +func removeResolveEndpointMiddleware(stack *middleware.Stack) error { + _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) + return err +} + +type wrappedEndpointResolver struct { + awsResolver aws.EndpointResolver + resolver EndpointResolver +} + +func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + if w.awsResolver == nil { + goto fallback + } + endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region) + if err == nil { + return endpoint, nil + } + + if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { + return endpoint, err + } + +fallback: + if w.resolver == nil { + return endpoint, fmt.Errorf("default endpoint resolver provided was nil") + } + return w.resolver.ResolveEndpoint(region, options) +} + +// withEndpointResolver returns an EndpointResolver that first delegates endpoint +// resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError +// error, the resolver will use the the provided fallbackResolver for resolution. +// awsResolver and fallbackResolver must not be nil +func withEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver { + return &wrappedEndpointResolver{ + awsResolver: awsResolver, + resolver: fallbackResolver, + } +} diff --git a/service/route53recoveryreadiness/generated.json b/service/route53recoveryreadiness/generated.json new file mode 100644 index 00000000000..2cf773160f7 --- /dev/null +++ b/service/route53recoveryreadiness/generated.json @@ -0,0 +1,56 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/smithy-go": "v1.4.0" + }, + "files": [ + "api_client.go", + "api_op_CreateCell.go", + "api_op_CreateCrossAccountAuthorization.go", + "api_op_CreateReadinessCheck.go", + "api_op_CreateRecoveryGroup.go", + "api_op_CreateResourceSet.go", + "api_op_DeleteCell.go", + "api_op_DeleteCrossAccountAuthorization.go", + "api_op_DeleteReadinessCheck.go", + "api_op_DeleteRecoveryGroup.go", + "api_op_DeleteResourceSet.go", + "api_op_GetArchitectureRecommendations.go", + "api_op_GetCell.go", + "api_op_GetCellReadinessSummary.go", + "api_op_GetReadinessCheck.go", + "api_op_GetReadinessCheckResourceStatus.go", + "api_op_GetReadinessCheckStatus.go", + "api_op_GetRecoveryGroup.go", + "api_op_GetRecoveryGroupReadinessSummary.go", + "api_op_GetResourceSet.go", + "api_op_ListCells.go", + "api_op_ListCrossAccountAuthorizations.go", + "api_op_ListReadinessChecks.go", + "api_op_ListRecoveryGroups.go", + "api_op_ListResourceSets.go", + "api_op_ListRules.go", + "api_op_ListTagsForResources.go", + "api_op_TagResource.go", + "api_op_UntagResource.go", + "api_op_UpdateCell.go", + "api_op_UpdateReadinessCheck.go", + "api_op_UpdateRecoveryGroup.go", + "api_op_UpdateResourceSet.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "protocol_test.go", + "serializers.go", + "types/enums.go", + "types/errors.go", + "types/types.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness", + "unstable": false +} diff --git a/service/route53recoveryreadiness/go.mod b/service/route53recoveryreadiness/go.mod new file mode 100644 index 00000000000..70b115171b7 --- /dev/null +++ b/service/route53recoveryreadiness/go.mod @@ -0,0 +1,10 @@ +module github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness + +go 1.15 + +require ( + github.com/aws/aws-sdk-go-v2 v1.7.1 + github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 +) + +replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53recoveryreadiness/go.sum b/service/route53recoveryreadiness/go.sum new file mode 100644 index 00000000000..256f90b195c --- /dev/null +++ b/service/route53recoveryreadiness/go.sum @@ -0,0 +1,14 @@ +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907 h1:RTQjgnLdBF0DiMRU+lnD3620ZC9snmJ086rCoaPlI2w= +github.com/aws/smithy-go v1.6.1-0.20210802184028-9ae615e18907/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/route53recoveryreadiness/go_module_metadata.go b/service/route53recoveryreadiness/go_module_metadata.go new file mode 100644 index 00000000000..6a59a2a317b --- /dev/null +++ b/service/route53recoveryreadiness/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package route53recoveryreadiness + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "tip" diff --git a/service/route53recoveryreadiness/internal/endpoints/endpoints.go b/service/route53recoveryreadiness/internal/endpoints/endpoints.go new file mode 100644 index 00000000000..845d073ae7c --- /dev/null +++ b/service/route53recoveryreadiness/internal/endpoints/endpoints.go @@ -0,0 +1,106 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/internal/endpoints" + "regexp" +) + +// Options is the endpoint resolver configuration options +type Options struct { + DisableHTTPS bool +} + +// Resolver Route53 Recovery Readiness endpoint resolver +type Resolver struct { + partitions endpoints.Partitions +} + +// ResolveEndpoint resolves the service endpoint for the given region and options +func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { + if len(region) == 0 { + return endpoint, &aws.MissingRegionError{} + } + + opt := endpoints.Options{ + DisableHTTPS: options.DisableHTTPS, + } + return r.partitions.ResolveEndpoint(region, opt) +} + +// New returns a new Resolver +func New() *Resolver { + return &Resolver{ + partitions: defaultPartitions, + } +} + +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + +var defaultPartitions = endpoints.Partitions{ + { + ID: "aws", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-readiness.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.Aws, + IsRegionalized: true, + }, + { + ID: "aws-cn", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-readiness.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsCn, + IsRegionalized: true, + }, + { + ID: "aws-iso", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-readiness.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsIso, + IsRegionalized: true, + }, + { + ID: "aws-iso-b", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-readiness.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsIsoB, + IsRegionalized: true, + }, + { + ID: "aws-us-gov", + Defaults: endpoints.Endpoint{ + Hostname: "route53-recovery-readiness.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + RegionRegex: partitionRegexp.AwsUsGov, + IsRegionalized: true, + }, +} diff --git a/service/route53recoveryreadiness/internal/endpoints/endpoints_test.go b/service/route53recoveryreadiness/internal/endpoints/endpoints_test.go new file mode 100644 index 00000000000..08e5da2d833 --- /dev/null +++ b/service/route53recoveryreadiness/internal/endpoints/endpoints_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "testing" +) + +func TestRegexCompile(t *testing.T) { + _ = defaultPartitions +} diff --git a/service/route53recoveryreadiness/protocol_test.go b/service/route53recoveryreadiness/protocol_test.go new file mode 100644 index 00000000000..7556eef523e --- /dev/null +++ b/service/route53recoveryreadiness/protocol_test.go @@ -0,0 +1,3 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness diff --git a/service/route53recoveryreadiness/serializers.go b/service/route53recoveryreadiness/serializers.go new file mode 100644 index 00000000000..44434ec7195 --- /dev/null +++ b/service/route53recoveryreadiness/serializers.go @@ -0,0 +1,2311 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +type awsRestjson1_serializeOpCreateCell struct { +} + +func (*awsRestjson1_serializeOpCreateCell) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateCell) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateCellInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cells") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateCellInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateCellInput(v *CreateCellInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateCellInput(v *CreateCellInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CellName != nil { + ok := object.Key("cellName") + ok.String(*v.CellName) + } + + if v.Cells != nil { + ok := object.Key("cells") + if err := awsRestjson1_serializeDocument__listOf__string(v.Cells, ok); err != nil { + return err + } + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateCrossAccountAuthorization struct { +} + +func (*awsRestjson1_serializeOpCreateCrossAccountAuthorization) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateCrossAccountAuthorization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateCrossAccountAuthorizationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/crossaccountauthorizations") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateCrossAccountAuthorizationInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateCrossAccountAuthorizationInput(v *CreateCrossAccountAuthorizationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateCrossAccountAuthorizationInput(v *CreateCrossAccountAuthorizationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CrossAccountAuthorization != nil { + ok := object.Key("crossAccountAuthorization") + ok.String(*v.CrossAccountAuthorization) + } + + return nil +} + +type awsRestjson1_serializeOpCreateReadinessCheck struct { +} + +func (*awsRestjson1_serializeOpCreateReadinessCheck) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateReadinessCheck) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateReadinessCheckInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/readinesschecks") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateReadinessCheckInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateReadinessCheckInput(v *CreateReadinessCheckInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateReadinessCheckInput(v *CreateReadinessCheckInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ReadinessCheckName != nil { + ok := object.Key("readinessCheckName") + ok.String(*v.ReadinessCheckName) + } + + if v.ResourceSetName != nil { + ok := object.Key("resourceSetName") + ok.String(*v.ResourceSetName) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateRecoveryGroup struct { +} + +func (*awsRestjson1_serializeOpCreateRecoveryGroup) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateRecoveryGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateRecoveryGroupInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/recoverygroups") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateRecoveryGroupInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateRecoveryGroupInput(v *CreateRecoveryGroupInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateRecoveryGroupInput(v *CreateRecoveryGroupInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Cells != nil { + ok := object.Key("cells") + if err := awsRestjson1_serializeDocument__listOf__string(v.Cells, ok); err != nil { + return err + } + } + + if v.RecoveryGroupName != nil { + ok := object.Key("recoveryGroupName") + ok.String(*v.RecoveryGroupName) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateResourceSet struct { +} + +func (*awsRestjson1_serializeOpCreateResourceSet) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateResourceSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateResourceSetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/resourcesets") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateResourceSetInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateResourceSetInput(v *CreateResourceSetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateResourceSetInput(v *CreateResourceSetInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Resources != nil { + ok := object.Key("resources") + if err := awsRestjson1_serializeDocument__listOfResource(v.Resources, ok); err != nil { + return err + } + } + + if v.ResourceSetName != nil { + ok := object.Key("resourceSetName") + ok.String(*v.ResourceSetName) + } + + if v.ResourceSetType != nil { + ok := object.Key("resourceSetType") + ok.String(*v.ResourceSetType) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteCell struct { +} + +func (*awsRestjson1_serializeOpDeleteCell) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteCell) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteCellInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cells/{CellName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteCellInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteCellInput(v *DeleteCellInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CellName == nil || len(*v.CellName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CellName must not be empty")} + } + if v.CellName != nil { + if err := encoder.SetURI("CellName").String(*v.CellName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteCrossAccountAuthorization struct { +} + +func (*awsRestjson1_serializeOpDeleteCrossAccountAuthorization) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteCrossAccountAuthorization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteCrossAccountAuthorizationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/crossaccountauthorizations/{CrossAccountAuthorization}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteCrossAccountAuthorizationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteCrossAccountAuthorizationInput(v *DeleteCrossAccountAuthorizationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CrossAccountAuthorization == nil || len(*v.CrossAccountAuthorization) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CrossAccountAuthorization must not be empty")} + } + if v.CrossAccountAuthorization != nil { + if err := encoder.SetURI("CrossAccountAuthorization").String(*v.CrossAccountAuthorization); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteReadinessCheck struct { +} + +func (*awsRestjson1_serializeOpDeleteReadinessCheck) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteReadinessCheck) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteReadinessCheckInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteReadinessCheckInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteReadinessCheckInput(v *DeleteReadinessCheckInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} + } + if v.ReadinessCheckName != nil { + if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteRecoveryGroup struct { +} + +func (*awsRestjson1_serializeOpDeleteRecoveryGroup) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteRecoveryGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteRecoveryGroupInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/recoverygroups/{RecoveryGroupName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteRecoveryGroupInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteRecoveryGroupInput(v *DeleteRecoveryGroupInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} + } + if v.RecoveryGroupName != nil { + if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteResourceSet struct { +} + +func (*awsRestjson1_serializeOpDeleteResourceSet) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteResourceSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteResourceSetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/resourcesets/{ResourceSetName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteResourceSetInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteResourceSetInput(v *DeleteResourceSetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceSetName == nil || len(*v.ResourceSetName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceSetName must not be empty")} + } + if v.ResourceSetName != nil { + if err := encoder.SetURI("ResourceSetName").String(*v.ResourceSetName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetArchitectureRecommendations struct { +} + +func (*awsRestjson1_serializeOpGetArchitectureRecommendations) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetArchitectureRecommendations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetArchitectureRecommendationsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/recoverygroups/{RecoveryGroupName}/architectureRecommendations") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetArchitectureRecommendationsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetArchitectureRecommendationsInput(v *GetArchitectureRecommendationsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} + } + if v.RecoveryGroupName != nil { + if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetCell struct { +} + +func (*awsRestjson1_serializeOpGetCell) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetCell) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetCellInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cells/{CellName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetCellInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetCellInput(v *GetCellInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CellName == nil || len(*v.CellName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CellName must not be empty")} + } + if v.CellName != nil { + if err := encoder.SetURI("CellName").String(*v.CellName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetCellReadinessSummary struct { +} + +func (*awsRestjson1_serializeOpGetCellReadinessSummary) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetCellReadinessSummary) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetCellReadinessSummaryInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cellreadiness/{CellName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetCellReadinessSummaryInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetCellReadinessSummaryInput(v *GetCellReadinessSummaryInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CellName == nil || len(*v.CellName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CellName must not be empty")} + } + if v.CellName != nil { + if err := encoder.SetURI("CellName").String(*v.CellName); err != nil { + return err + } + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpGetReadinessCheck struct { +} + +func (*awsRestjson1_serializeOpGetReadinessCheck) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetReadinessCheck) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetReadinessCheckInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetReadinessCheckInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetReadinessCheckInput(v *GetReadinessCheckInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} + } + if v.ReadinessCheckName != nil { + if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetReadinessCheckResourceStatus struct { +} + +func (*awsRestjson1_serializeOpGetReadinessCheckResourceStatus) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetReadinessCheckResourceStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetReadinessCheckResourceStatusInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetReadinessCheckResourceStatusInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetReadinessCheckResourceStatusInput(v *GetReadinessCheckResourceStatusInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} + } + if v.ReadinessCheckName != nil { + if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { + return err + } + } + + if v.ResourceIdentifier == nil || len(*v.ResourceIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceIdentifier must not be empty")} + } + if v.ResourceIdentifier != nil { + if err := encoder.SetURI("ResourceIdentifier").String(*v.ResourceIdentifier); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetReadinessCheckStatus struct { +} + +func (*awsRestjson1_serializeOpGetReadinessCheckStatus) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetReadinessCheckStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetReadinessCheckStatusInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}/status") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetReadinessCheckStatusInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetReadinessCheckStatusInput(v *GetReadinessCheckStatusInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} + } + if v.ReadinessCheckName != nil { + if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetRecoveryGroup struct { +} + +func (*awsRestjson1_serializeOpGetRecoveryGroup) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetRecoveryGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetRecoveryGroupInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/recoverygroups/{RecoveryGroupName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetRecoveryGroupInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetRecoveryGroupInput(v *GetRecoveryGroupInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} + } + if v.RecoveryGroupName != nil { + if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetRecoveryGroupReadinessSummary struct { +} + +func (*awsRestjson1_serializeOpGetRecoveryGroupReadinessSummary) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetRecoveryGroupReadinessSummary) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetRecoveryGroupReadinessSummaryInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/recoverygroupreadiness/{RecoveryGroupName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetRecoveryGroupReadinessSummaryInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetRecoveryGroupReadinessSummaryInput(v *GetRecoveryGroupReadinessSummaryInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} + } + if v.RecoveryGroupName != nil { + if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetResourceSet struct { +} + +func (*awsRestjson1_serializeOpGetResourceSet) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetResourceSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetResourceSetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/resourcesets/{ResourceSetName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetResourceSetInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetResourceSetInput(v *GetResourceSetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceSetName == nil || len(*v.ResourceSetName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceSetName must not be empty")} + } + if v.ResourceSetName != nil { + if err := encoder.SetURI("ResourceSetName").String(*v.ResourceSetName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListCells struct { +} + +func (*awsRestjson1_serializeOpListCells) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListCells) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListCellsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cells") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListCellsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListCellsInput(v *ListCellsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListCrossAccountAuthorizations struct { +} + +func (*awsRestjson1_serializeOpListCrossAccountAuthorizations) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListCrossAccountAuthorizations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListCrossAccountAuthorizationsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/crossaccountauthorizations") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListCrossAccountAuthorizationsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListCrossAccountAuthorizationsInput(v *ListCrossAccountAuthorizationsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListReadinessChecks struct { +} + +func (*awsRestjson1_serializeOpListReadinessChecks) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListReadinessChecks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListReadinessChecksInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/readinesschecks") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListReadinessChecksInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListReadinessChecksInput(v *ListReadinessChecksInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListRecoveryGroups struct { +} + +func (*awsRestjson1_serializeOpListRecoveryGroups) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListRecoveryGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListRecoveryGroupsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/recoverygroups") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListRecoveryGroupsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListRecoveryGroupsInput(v *ListRecoveryGroupsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListResourceSets struct { +} + +func (*awsRestjson1_serializeOpListResourceSets) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListResourceSets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListResourceSetsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/resourcesets") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListResourceSetsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListResourceSetsInput(v *ListResourceSetsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListRules struct { +} + +func (*awsRestjson1_serializeOpListRules) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListRulesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/rules") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListRulesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListRulesInput(v *ListRulesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if v.ResourceType != nil { + encoder.SetQuery("resourceType").String(*v.ResourceType) + } + + return nil +} + +type awsRestjson1_serializeOpListTagsForResources struct { +} + +func (*awsRestjson1_serializeOpListTagsForResources) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTagsForResources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListTagsForResourcesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourcesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTagsForResourcesInput(v *ListTagsForResourcesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpTagResource struct { +} + +func (*awsRestjson1_serializeOpTagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*TagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUntagResource struct { +} + +func (*awsRestjson1_serializeOpUntagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UntagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + if v.TagKeys != nil { + for i := range v.TagKeys { + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateCell struct { +} + +func (*awsRestjson1_serializeOpUpdateCell) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateCell) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateCellInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/cells/{CellName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateCellInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateCellInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateCellInput(v *UpdateCellInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CellName == nil || len(*v.CellName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CellName must not be empty")} + } + if v.CellName != nil { + if err := encoder.SetURI("CellName").String(*v.CellName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateCellInput(v *UpdateCellInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Cells != nil { + ok := object.Key("cells") + if err := awsRestjson1_serializeDocument__listOf__string(v.Cells, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateReadinessCheck struct { +} + +func (*awsRestjson1_serializeOpUpdateReadinessCheck) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateReadinessCheck) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateReadinessCheckInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/readinesschecks/{ReadinessCheckName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateReadinessCheckInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateReadinessCheckInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateReadinessCheckInput(v *UpdateReadinessCheckInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ReadinessCheckName == nil || len(*v.ReadinessCheckName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ReadinessCheckName must not be empty")} + } + if v.ReadinessCheckName != nil { + if err := encoder.SetURI("ReadinessCheckName").String(*v.ReadinessCheckName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateReadinessCheckInput(v *UpdateReadinessCheckInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceSetName != nil { + ok := object.Key("resourceSetName") + ok.String(*v.ResourceSetName) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateRecoveryGroup struct { +} + +func (*awsRestjson1_serializeOpUpdateRecoveryGroup) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateRecoveryGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateRecoveryGroupInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/recoverygroups/{RecoveryGroupName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateRecoveryGroupInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateRecoveryGroupInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateRecoveryGroupInput(v *UpdateRecoveryGroupInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.RecoveryGroupName == nil || len(*v.RecoveryGroupName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryGroupName must not be empty")} + } + if v.RecoveryGroupName != nil { + if err := encoder.SetURI("RecoveryGroupName").String(*v.RecoveryGroupName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateRecoveryGroupInput(v *UpdateRecoveryGroupInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Cells != nil { + ok := object.Key("cells") + if err := awsRestjson1_serializeDocument__listOf__string(v.Cells, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateResourceSet struct { +} + +func (*awsRestjson1_serializeOpUpdateResourceSet) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateResourceSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateResourceSetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/resourcesets/{ResourceSetName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateResourceSetInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateResourceSetInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateResourceSetInput(v *UpdateResourceSetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceSetName == nil || len(*v.ResourceSetName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceSetName must not be empty")} + } + if v.ResourceSetName != nil { + if err := encoder.SetURI("ResourceSetName").String(*v.ResourceSetName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateResourceSetInput(v *UpdateResourceSetInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Resources != nil { + ok := object.Key("resources") + if err := awsRestjson1_serializeDocument__listOfResource(v.Resources, ok); err != nil { + return err + } + } + + if v.ResourceSetType != nil { + ok := object.Key("resourceSetType") + ok.String(*v.ResourceSetType) + } + + return nil +} + +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocument__listOfResource(v []types.Resource, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentResource(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentDNSTargetResource(v *types.DNSTargetResource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DomainName != nil { + ok := object.Key("domainName") + ok.String(*v.DomainName) + } + + if v.HostedZoneArn != nil { + ok := object.Key("hostedZoneArn") + ok.String(*v.HostedZoneArn) + } + + if v.RecordSetId != nil { + ok := object.Key("recordSetId") + ok.String(*v.RecordSetId) + } + + if v.RecordType != nil { + ok := object.Key("recordType") + ok.String(*v.RecordType) + } + + if v.TargetResource != nil { + ok := object.Key("targetResource") + if err := awsRestjson1_serializeDocumentTargetResource(v.TargetResource, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentNLBResource(v *types.NLBResource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Arn != nil { + ok := object.Key("arn") + ok.String(*v.Arn) + } + + return nil +} + +func awsRestjson1_serializeDocumentR53ResourceRecord(v *types.R53ResourceRecord, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DomainName != nil { + ok := object.Key("domainName") + ok.String(*v.DomainName) + } + + if v.RecordSetId != nil { + ok := object.Key("recordSetId") + ok.String(*v.RecordSetId) + } + + return nil +} + +func awsRestjson1_serializeDocumentResource(v *types.Resource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComponentId != nil { + ok := object.Key("componentId") + ok.String(*v.ComponentId) + } + + if v.DnsTargetResource != nil { + ok := object.Key("dnsTargetResource") + if err := awsRestjson1_serializeDocumentDNSTargetResource(v.DnsTargetResource, ok); err != nil { + return err + } + } + + if v.ReadinessScopes != nil { + ok := object.Key("readinessScopes") + if err := awsRestjson1_serializeDocument__listOf__string(v.ReadinessScopes, ok); err != nil { + return err + } + } + + if v.ResourceArn != nil { + ok := object.Key("resourceArn") + ok.String(*v.ResourceArn) + } + + return nil +} + +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + +func awsRestjson1_serializeDocumentTargetResource(v *types.TargetResource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.NLBResource != nil { + ok := object.Key("nLBResource") + if err := awsRestjson1_serializeDocumentNLBResource(v.NLBResource, ok); err != nil { + return err + } + } + + if v.R53Resource != nil { + ok := object.Key("r53Resource") + if err := awsRestjson1_serializeDocumentR53ResourceRecord(v.R53Resource, ok); err != nil { + return err + } + } + + return nil +} diff --git a/service/route53recoveryreadiness/types/enums.go b/service/route53recoveryreadiness/types/enums.go new file mode 100644 index 00000000000..4dfbb8e0c52 --- /dev/null +++ b/service/route53recoveryreadiness/types/enums.go @@ -0,0 +1,25 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +type Readiness string + +// Enum values for Readiness +const ( + ReadinessReady Readiness = "READY" + ReadinessNotReady Readiness = "NOT_READY" + ReadinessUnknown Readiness = "UNKNOWN" + ReadinessNotAuthorized Readiness = "NOT_AUTHORIZED" +) + +// Values returns all known values for Readiness. Note that this can be expanded in +// the future, and so it is only as up to date as the client. The ordering of this +// slice is not guaranteed to be stable across updates. +func (Readiness) Values() []Readiness { + return []Readiness{ + "READY", + "NOT_READY", + "UNKNOWN", + "NOT_AUTHORIZED", + } +} diff --git a/service/route53recoveryreadiness/types/errors.go b/service/route53recoveryreadiness/types/errors.go new file mode 100644 index 00000000000..22fb4971bdd --- /dev/null +++ b/service/route53recoveryreadiness/types/errors.go @@ -0,0 +1,122 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + "fmt" + smithy "github.com/aws/smithy-go" +) + +// User does not have sufficient access to perform this action. +type AccessDeniedException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *AccessDeniedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Updating or deleting a resource can cause an inconsistent state. +type ConflictException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConflictException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// An unexpected error occurred. +type InternalServerException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InternalServerException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + +// The requested resource does not exist. +type ResourceNotFoundException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Request was denied due to request throttling. +type ThrottlingException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ThrottlingException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The input fails to satisfy the constraints specified by an AWS service. +type ValidationException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/route53recoveryreadiness/types/types.go b/service/route53recoveryreadiness/types/types.go new file mode 100644 index 00000000000..fee928a6067 --- /dev/null +++ b/service/route53recoveryreadiness/types/types.go @@ -0,0 +1,291 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithydocument "github.com/aws/smithy-go/document" + "time" +) + +// A Cell and its properties +type CellOutput struct { + + // The arn for the Cell + // + // This member is required. + CellArn *string + + // The name of the Cell + // + // This member is required. + CellName *string + + // A list of Cell arns + // + // This member is required. + Cells []string + + // A list of Cell ARNs and/or RecoveryGroup ARNs + // + // This member is required. + ParentReadinessScopes []string + + // A collection of tags associated with a resource + Tags map[string]string + + noSmithyDocumentSerde +} + +// A component for DNS/Routing Control Readiness Checks +type DNSTargetResource struct { + + // The DNS Name that acts as ingress point to a portion of application + DomainName *string + + // The Hosted Zone ARN that contains the DNS record with the provided name of + // target resource. + HostedZoneArn *string + + // The R53 Set Id to uniquely identify a record given a Name and a Type + RecordSetId *string + + // The Type of DNS Record of target resource + RecordType *string + + // The target resource the R53 record points to + TargetResource *TargetResource + + noSmithyDocumentSerde +} + +// A collection of rules used in a readiness check +type ListRulesOutput struct { + + // The resource type the rule applies to. + // + // This member is required. + ResourceType *string + + // A description of the rule + // + // This member is required. + RuleDescription *string + + // The Rule's ID. + // + // This member is required. + RuleId *string + + noSmithyDocumentSerde +} + +// Information relating to readiness check status +type Message struct { + + // The text of a readiness check message + MessageText *string + + noSmithyDocumentSerde +} + +// The NLB resource a DNS Target Resource points to +type NLBResource struct { + + // An NLB resource arn + Arn *string + + noSmithyDocumentSerde +} + +// The Route 53 resource a DNS Target Resource record points to +type R53ResourceRecord struct { + + // The DNS target name + DomainName *string + + // The Resource Record set id + RecordSetId *string + + noSmithyDocumentSerde +} + +// A resource used for checking the readiness of a Resource Set +type ReadinessCheckOutput struct { + + // Arn associated with ReadinessCheck + // + // This member is required. + ReadinessCheckArn *string + + // Name of the ResourceSet to be checked + // + // This member is required. + ResourceSet *string + + // Name for a ReadinessCheck + ReadinessCheckName *string + + // A collection of tags associated with a resource + Tags map[string]string + + noSmithyDocumentSerde +} + +// Summary of ReadinessCheck status, paginated in GetRecoveryGroupReadinessSummary +// and GetCellReadinessSummary +type ReadinessCheckSummary struct { + + // The readiness of this ReadinessCheck + Readiness Readiness + + // The name of a ReadinessCheck which is part of the given RecoveryGroup or Cell + ReadinessCheckName *string + + noSmithyDocumentSerde +} + +// Guidance for improving Recovery Group resilliancy +type Recommendation struct { + + // Guidance text for recommendation + // + // This member is required. + RecommendationText *string + + noSmithyDocumentSerde +} + +// A Recovery Group generally containing multiple Cells +type RecoveryGroupOutput struct { + + // A list of Cell arns + // + // This member is required. + Cells []string + + // The arn for the RecoveryGroup + // + // This member is required. + RecoveryGroupArn *string + + // The name of the RecoveryGroup + // + // This member is required. + RecoveryGroupName *string + + // A collection of tags associated with a resource + Tags map[string]string + + noSmithyDocumentSerde +} + +// The resource element of a ResourceSet +type Resource struct { + + // The component id of the resource, generated by the service when + // dnsTargetResource is used + ComponentId *string + + // A component for DNS/Routing Control Readiness Checks + DnsTargetResource *DNSTargetResource + + // A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained + // within. + ReadinessScopes []string + + // The ARN of the AWS resource, can be skipped if dnsTargetResource is used + ResourceArn *string + + noSmithyDocumentSerde +} + +// Result with status for an individual resource. +type ResourceResult struct { + + // The time the resource was last checked for readiness, in ISO-8601 format, UTC. + // + // This member is required. + LastCheckedTimestamp *time.Time + + // The readiness of the resource. + // + // This member is required. + Readiness Readiness + + // The component id of the resource + ComponentId *string + + // The ARN of the resource + ResourceArn *string + + noSmithyDocumentSerde +} + +// A collection of resources of the same type +type ResourceSetOutput struct { + + // The arn for the ResourceSet + // + // This member is required. + ResourceSetArn *string + + // The name of the ResourceSet + // + // This member is required. + ResourceSetName *string + + // AWS Resource Type of the resources in the ResourceSet + // + // This member is required. + ResourceSetType *string + + // A list of Resource objects + // + // This member is required. + Resources []Resource + + // A collection of tags associated with a resource + Tags map[string]string + + noSmithyDocumentSerde +} + +// Result with status for an individual rule.. +type RuleResult struct { + + // The time the resource was last checked for readiness, in ISO-8601 format, UTC. + // + // This member is required. + LastCheckedTimestamp *time.Time + + // Details about the resource's readiness + // + // This member is required. + Messages []Message + + // The readiness at rule level. + // + // This member is required. + Readiness Readiness + + // The identifier of the rule. + // + // This member is required. + RuleId *string + + noSmithyDocumentSerde +} + +// The target resource the R53 record points to +type TargetResource struct { + + // The NLB resource a DNS Target Resource points to + NLBResource *NLBResource + + // The Route 53 resource a DNS Target Resource record points to + R53Resource *R53ResourceRecord + + noSmithyDocumentSerde +} + +type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/route53recoveryreadiness/validators.go b/service/route53recoveryreadiness/validators.go new file mode 100644 index 00000000000..8717b1470e7 --- /dev/null +++ b/service/route53recoveryreadiness/validators.go @@ -0,0 +1,1057 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package route53recoveryreadiness + +import ( + "context" + "fmt" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +type validateOpCreateCell struct { +} + +func (*validateOpCreateCell) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateCell) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateCellInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateCellInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateCrossAccountAuthorization struct { +} + +func (*validateOpCreateCrossAccountAuthorization) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateCrossAccountAuthorization) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateCrossAccountAuthorizationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateCrossAccountAuthorizationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateReadinessCheck struct { +} + +func (*validateOpCreateReadinessCheck) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateReadinessCheck) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateReadinessCheckInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateReadinessCheckInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateRecoveryGroup struct { +} + +func (*validateOpCreateRecoveryGroup) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateRecoveryGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateRecoveryGroupInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateRecoveryGroupInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateResourceSet struct { +} + +func (*validateOpCreateResourceSet) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateResourceSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateResourceSetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateResourceSetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteCell struct { +} + +func (*validateOpDeleteCell) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteCell) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteCellInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteCellInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteCrossAccountAuthorization struct { +} + +func (*validateOpDeleteCrossAccountAuthorization) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteCrossAccountAuthorization) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteCrossAccountAuthorizationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteCrossAccountAuthorizationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteReadinessCheck struct { +} + +func (*validateOpDeleteReadinessCheck) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteReadinessCheck) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteReadinessCheckInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteReadinessCheckInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteRecoveryGroup struct { +} + +func (*validateOpDeleteRecoveryGroup) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteRecoveryGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteRecoveryGroupInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteRecoveryGroupInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteResourceSet struct { +} + +func (*validateOpDeleteResourceSet) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteResourceSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteResourceSetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteResourceSetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetArchitectureRecommendations struct { +} + +func (*validateOpGetArchitectureRecommendations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetArchitectureRecommendations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetArchitectureRecommendationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetArchitectureRecommendationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetCell struct { +} + +func (*validateOpGetCell) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetCell) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetCellInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetCellInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetCellReadinessSummary struct { +} + +func (*validateOpGetCellReadinessSummary) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetCellReadinessSummary) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetCellReadinessSummaryInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetCellReadinessSummaryInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetReadinessCheck struct { +} + +func (*validateOpGetReadinessCheck) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetReadinessCheck) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetReadinessCheckInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetReadinessCheckInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetReadinessCheckResourceStatus struct { +} + +func (*validateOpGetReadinessCheckResourceStatus) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetReadinessCheckResourceStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetReadinessCheckResourceStatusInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetReadinessCheckResourceStatusInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetReadinessCheckStatus struct { +} + +func (*validateOpGetReadinessCheckStatus) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetReadinessCheckStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetReadinessCheckStatusInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetReadinessCheckStatusInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetRecoveryGroup struct { +} + +func (*validateOpGetRecoveryGroup) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetRecoveryGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetRecoveryGroupInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetRecoveryGroupInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetRecoveryGroupReadinessSummary struct { +} + +func (*validateOpGetRecoveryGroupReadinessSummary) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetRecoveryGroupReadinessSummary) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetRecoveryGroupReadinessSummaryInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetRecoveryGroupReadinessSummaryInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetResourceSet struct { +} + +func (*validateOpGetResourceSet) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetResourceSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetResourceSetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetResourceSetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListTagsForResources struct { +} + +func (*validateOpListTagsForResources) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTagsForResources) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTagsForResourcesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTagsForResourcesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpTagResource struct { +} + +func (*validateOpTagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*TagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpTagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUntagResource struct { +} + +func (*validateOpUntagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UntagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUntagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateCell struct { +} + +func (*validateOpUpdateCell) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateCell) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateCellInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateCellInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateReadinessCheck struct { +} + +func (*validateOpUpdateReadinessCheck) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateReadinessCheck) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateReadinessCheckInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateReadinessCheckInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateRecoveryGroup struct { +} + +func (*validateOpUpdateRecoveryGroup) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateRecoveryGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateRecoveryGroupInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateRecoveryGroupInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateResourceSet struct { +} + +func (*validateOpUpdateResourceSet) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateResourceSet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateResourceSetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateResourceSetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +func addOpCreateCellValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateCell{}, middleware.After) +} + +func addOpCreateCrossAccountAuthorizationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateCrossAccountAuthorization{}, middleware.After) +} + +func addOpCreateReadinessCheckValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateReadinessCheck{}, middleware.After) +} + +func addOpCreateRecoveryGroupValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateRecoveryGroup{}, middleware.After) +} + +func addOpCreateResourceSetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateResourceSet{}, middleware.After) +} + +func addOpDeleteCellValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteCell{}, middleware.After) +} + +func addOpDeleteCrossAccountAuthorizationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteCrossAccountAuthorization{}, middleware.After) +} + +func addOpDeleteReadinessCheckValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteReadinessCheck{}, middleware.After) +} + +func addOpDeleteRecoveryGroupValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteRecoveryGroup{}, middleware.After) +} + +func addOpDeleteResourceSetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteResourceSet{}, middleware.After) +} + +func addOpGetArchitectureRecommendationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetArchitectureRecommendations{}, middleware.After) +} + +func addOpGetCellValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetCell{}, middleware.After) +} + +func addOpGetCellReadinessSummaryValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetCellReadinessSummary{}, middleware.After) +} + +func addOpGetReadinessCheckValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetReadinessCheck{}, middleware.After) +} + +func addOpGetReadinessCheckResourceStatusValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetReadinessCheckResourceStatus{}, middleware.After) +} + +func addOpGetReadinessCheckStatusValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetReadinessCheckStatus{}, middleware.After) +} + +func addOpGetRecoveryGroupValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetRecoveryGroup{}, middleware.After) +} + +func addOpGetRecoveryGroupReadinessSummaryValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetRecoveryGroupReadinessSummary{}, middleware.After) +} + +func addOpGetResourceSetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetResourceSet{}, middleware.After) +} + +func addOpListTagsForResourcesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTagsForResources{}, middleware.After) +} + +func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) +} + +func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) +} + +func addOpUpdateCellValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateCell{}, middleware.After) +} + +func addOpUpdateReadinessCheckValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateReadinessCheck{}, middleware.After) +} + +func addOpUpdateRecoveryGroupValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateRecoveryGroup{}, middleware.After) +} + +func addOpUpdateResourceSetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateResourceSet{}, middleware.After) +} + +func validateOpCreateCellInput(v *CreateCellInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateCellInput"} + if v.CellName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CellName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateCrossAccountAuthorizationInput(v *CreateCrossAccountAuthorizationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateCrossAccountAuthorizationInput"} + if v.CrossAccountAuthorization == nil { + invalidParams.Add(smithy.NewErrParamRequired("CrossAccountAuthorization")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateReadinessCheckInput(v *CreateReadinessCheckInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateReadinessCheckInput"} + if v.ReadinessCheckName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) + } + if v.ResourceSetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateRecoveryGroupInput(v *CreateRecoveryGroupInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateRecoveryGroupInput"} + if v.RecoveryGroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateResourceSetInput(v *CreateResourceSetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateResourceSetInput"} + if v.ResourceSetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) + } + if v.ResourceSetType == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceSetType")) + } + if v.Resources == nil { + invalidParams.Add(smithy.NewErrParamRequired("Resources")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteCellInput(v *DeleteCellInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteCellInput"} + if v.CellName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CellName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteCrossAccountAuthorizationInput(v *DeleteCrossAccountAuthorizationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteCrossAccountAuthorizationInput"} + if v.CrossAccountAuthorization == nil { + invalidParams.Add(smithy.NewErrParamRequired("CrossAccountAuthorization")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteReadinessCheckInput(v *DeleteReadinessCheckInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteReadinessCheckInput"} + if v.ReadinessCheckName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteRecoveryGroupInput(v *DeleteRecoveryGroupInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteRecoveryGroupInput"} + if v.RecoveryGroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteResourceSetInput(v *DeleteResourceSetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteResourceSetInput"} + if v.ResourceSetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetArchitectureRecommendationsInput(v *GetArchitectureRecommendationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetArchitectureRecommendationsInput"} + if v.RecoveryGroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetCellInput(v *GetCellInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetCellInput"} + if v.CellName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CellName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetCellReadinessSummaryInput(v *GetCellReadinessSummaryInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetCellReadinessSummaryInput"} + if v.CellName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CellName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetReadinessCheckInput(v *GetReadinessCheckInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetReadinessCheckInput"} + if v.ReadinessCheckName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetReadinessCheckResourceStatusInput(v *GetReadinessCheckResourceStatusInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetReadinessCheckResourceStatusInput"} + if v.ReadinessCheckName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) + } + if v.ResourceIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetReadinessCheckStatusInput(v *GetReadinessCheckStatusInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetReadinessCheckStatusInput"} + if v.ReadinessCheckName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetRecoveryGroupInput(v *GetRecoveryGroupInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetRecoveryGroupInput"} + if v.RecoveryGroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetRecoveryGroupReadinessSummaryInput(v *GetRecoveryGroupReadinessSummaryInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetRecoveryGroupReadinessSummaryInput"} + if v.RecoveryGroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetResourceSetInput(v *GetResourceSetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetResourceSetInput"} + if v.ResourceSetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListTagsForResourcesInput(v *ListTagsForResourcesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourcesInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpTagResourceInput(v *TagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.Tags == nil { + invalidParams.Add(smithy.NewErrParamRequired("Tags")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUntagResourceInput(v *UntagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.TagKeys == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateCellInput(v *UpdateCellInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateCellInput"} + if v.CellName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CellName")) + } + if v.Cells == nil { + invalidParams.Add(smithy.NewErrParamRequired("Cells")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateReadinessCheckInput(v *UpdateReadinessCheckInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateReadinessCheckInput"} + if v.ReadinessCheckName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ReadinessCheckName")) + } + if v.ResourceSetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateRecoveryGroupInput(v *UpdateRecoveryGroupInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateRecoveryGroupInput"} + if v.Cells == nil { + invalidParams.Add(smithy.NewErrParamRequired("Cells")) + } + if v.RecoveryGroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("RecoveryGroupName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateResourceSetInput(v *UpdateResourceSetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateResourceSetInput"} + if v.ResourceSetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceSetName")) + } + if v.ResourceSetType == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceSetType")) + } + if v.Resources == nil { + invalidParams.Add(smithy.NewErrParamRequired("Resources")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/s3control/api_op_CreateAccessPoint.go b/service/s3control/api_op_CreateAccessPoint.go index 2252d739904..153101e7a59 100644 --- a/service/s3control/api_op_CreateAccessPoint.go +++ b/service/s3control/api_op_CreateAccessPoint.go @@ -59,7 +59,7 @@ func (c *Client) CreateAccessPoint(ctx context.Context, params *CreateAccessPoin type CreateAccessPointInput struct { - // The AWS account ID for the owner of the bucket for which you want to create an + // The account ID for the owner of the bucket for which you want to create an // access point. // // This member is required. @@ -68,10 +68,10 @@ type CreateAccessPointInput struct { // The name of the bucket that you want to associate this access point with. For // using this parameter with Amazon S3 on Outposts with the REST API, you must // specify the name and the x-amz-outpost-id as well. For using this parameter with - // S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket - // accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to - // access the bucket reports through outpost my-outpost owned by account - // 123456789012 in Region us-west-2, use the URL encoding of + // S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the + // ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. + // For example, to access the bucket reports through outpost my-outpost owned by + // account 123456789012 in Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. // @@ -99,6 +99,9 @@ type CreateAccessPointOutput struct { // The ARN of the access point. This is only supported by Amazon S3 on Outposts. AccessPointArn *string + // The name or alias of the access point. + Alias *string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3control/api_op_CreateAccessPointForObjectLambda.go b/service/s3control/api_op_CreateAccessPointForObjectLambda.go index 932d2f6e231..2a4fe076421 100644 --- a/service/s3control/api_op_CreateAccessPointForObjectLambda.go +++ b/service/s3control/api_op_CreateAccessPointForObjectLambda.go @@ -48,7 +48,7 @@ func (c *Client) CreateAccessPointForObjectLambda(ctx context.Context, params *C type CreateAccessPointForObjectLambdaInput struct { - // The AWS account ID for owner of the specified Object Lambda Access Point. + // The account ID for owner of the specified Object Lambda Access Point. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_CreateBucket.go b/service/s3control/api_op_CreateBucket.go index 64c81b390f5..f12441fb5ac 100644 --- a/service/s3control/api_op_CreateBucket.go +++ b/service/s3control/api_op_CreateBucket.go @@ -125,10 +125,10 @@ type CreateBucketOutput struct { // The Amazon Resource Name (ARN) of the bucket. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format - // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket - // reports through outpost my-outpost owned by account 123456789012 in Region - // us-west-2, use the URL encoding of + // Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed + // in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the + // bucket reports through outpost my-outpost owned by account 123456789012 in + // Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. BucketArn *string diff --git a/service/s3control/api_op_CreateJob.go b/service/s3control/api_op_CreateJob.go index 47cf4d5cd5d..73bc311bf3c 100644 --- a/service/s3control/api_op_CreateJob.go +++ b/service/s3control/api_op_CreateJob.go @@ -57,7 +57,7 @@ func (c *Client) CreateJob(ctx context.Context, params *CreateJobInput, optFns . type CreateJobInput struct { - // The AWS account ID that creates the job. + // The account ID that creates the job. // // This member is required. AccountId *string @@ -91,9 +91,9 @@ type CreateJobInput struct { // This member is required. Report *types.JobReport - // The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) - // role that Batch Operations will use to run this job's action on every object in - // the manifest. + // The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role + // that Batch Operations will use to run this job's action on every object in the + // manifest. // // This member is required. RoleArn *string diff --git a/service/s3control/api_op_DeleteAccessPoint.go b/service/s3control/api_op_DeleteAccessPoint.go index b1c4af7321d..298fb9af124 100644 --- a/service/s3control/api_op_DeleteAccessPoint.go +++ b/service/s3control/api_op_DeleteAccessPoint.go @@ -59,10 +59,10 @@ type DeleteAccessPointInput struct { // The name of the access point you want to delete. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // AWS SDK and CLI, you must specify the ARN of the access point accessed in the - // format arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the - // access point reports-ap through outpost my-outpost owned by account 123456789012 - // in Region us-west-2, use the URL encoding of + // Amazon Web Services SDK and CLI, you must specify the ARN of the access point + // accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, + // to access the access point reports-ap through outpost my-outpost owned by + // account 123456789012 in Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. // The value must be URL encoded. // diff --git a/service/s3control/api_op_DeleteAccessPointPolicy.go b/service/s3control/api_op_DeleteAccessPointPolicy.go index 303e628a9f1..7951a5372c2 100644 --- a/service/s3control/api_op_DeleteAccessPointPolicy.go +++ b/service/s3control/api_op_DeleteAccessPointPolicy.go @@ -55,10 +55,11 @@ type DeleteAccessPointPolicyInput struct { // The name of the access point whose policy you want to delete. For using this // parameter with Amazon S3 on Outposts with the REST API, you must specify the // name and the x-amz-outpost-id as well. For using this parameter with S3 on - // Outposts with the AWS SDK and CLI, you must specify the ARN of the access point - // accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, - // to access the access point reports-ap through outpost my-outpost owned by - // account 123456789012 in Region us-west-2, use the URL encoding of + // Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of + // the access point accessed in the format + // arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access + // point reports-ap through outpost my-outpost owned by account 123456789012 in + // Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. // The value must be URL encoded. // diff --git a/service/s3control/api_op_DeleteBucket.go b/service/s3control/api_op_DeleteBucket.go index 8bdecb6a451..60559bbb3f9 100644 --- a/service/s3control/api_op_DeleteBucket.go +++ b/service/s3control/api_op_DeleteBucket.go @@ -65,9 +65,9 @@ type DeleteBucketInput struct { // Specifies the bucket being deleted. For using this parameter with Amazon S3 on // Outposts with the REST API, you must specify the name and the x-amz-outpost-id - // as well. For using this parameter with S3 on Outposts with the AWS SDK and CLI, - // you must specify the ARN of the bucket accessed in the format - // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket + // as well. For using this parameter with S3 on Outposts with the Amazon Web + // Services SDK and CLI, you must specify the ARN of the bucket accessed in the + // format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. diff --git a/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go b/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go index bd42501d101..c0845e890a6 100644 --- a/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go @@ -69,8 +69,8 @@ type DeleteBucketLifecycleConfigurationInput struct { // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must - // specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the Amazon Web Services SDK and + // CLI, you must specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_DeleteBucketPolicy.go b/service/s3control/api_op_DeleteBucketPolicy.go index 16edc1852b1..8fec963752a 100644 --- a/service/s3control/api_op_DeleteBucketPolicy.go +++ b/service/s3control/api_op_DeleteBucketPolicy.go @@ -19,7 +19,7 @@ import ( // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketPolicy.html) in // the Amazon S3 API Reference. This implementation of the DELETE action uses the // policy subresource to delete the policy of a specified Amazon S3 on Outposts -// bucket. If you are using an identity other than the root user of the AWS account +// bucket. If you are using an identity other than the root user of the account // that owns the bucket, the calling identity must have the // s3-outposts:DeleteBucketPolicy permissions on the specified Outposts bucket and // belong to the bucket owner's account to use this action. For more information, @@ -29,9 +29,9 @@ import ( // S3 returns a 403 Access Denied error. If you have the correct permissions, but // you're not using an identity that belongs to the bucket owner's account, Amazon // S3 returns a 405 Method Not Allowed error. As a security precaution, the root -// user of the AWS account that owns a bucket can always use this action, even if -// the policy explicitly denies the root user the ability to perform this action. -// For more information about bucket policies, see Using Bucket Policies and User +// user of the account that owns a bucket can always use this action, even if the +// policy explicitly denies the root user the ability to perform this action. For +// more information about bucket policies, see Using Bucket Policies and User // Policies // (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html). All // Amazon S3 on Outposts REST API requests for this action require an additional @@ -74,8 +74,8 @@ type DeleteBucketPolicyInput struct { // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must - // specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the Amazon Web Services SDK and + // CLI, you must specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_DeleteBucketTagging.go b/service/s3control/api_op_DeleteBucketTagging.go index 01b2f74be93..f491596cc84 100644 --- a/service/s3control/api_op_DeleteBucketTagging.go +++ b/service/s3control/api_op_DeleteBucketTagging.go @@ -55,7 +55,7 @@ func (c *Client) DeleteBucketTagging(ctx context.Context, params *DeleteBucketTa type DeleteBucketTaggingInput struct { - // The AWS account ID of the Outposts bucket tag set to be removed. + // The account ID of the Outposts bucket tag set to be removed. // // This member is required. AccountId *string @@ -63,10 +63,10 @@ type DeleteBucketTaggingInput struct { // The bucket ARN that has the tag set to be removed. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format - // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket - // reports through outpost my-outpost owned by account 123456789012 in Region - // us-west-2, use the URL encoding of + // Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed + // in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the + // bucket reports through outpost my-outpost owned by account 123456789012 in + // Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. // diff --git a/service/s3control/api_op_DeleteJobTagging.go b/service/s3control/api_op_DeleteJobTagging.go index e5c58865ec9..11c532d976a 100644 --- a/service/s3control/api_op_DeleteJobTagging.go +++ b/service/s3control/api_op_DeleteJobTagging.go @@ -48,7 +48,7 @@ func (c *Client) DeleteJobTagging(ctx context.Context, params *DeleteJobTaggingI type DeleteJobTaggingInput struct { - // The AWS account ID associated with the S3 Batch Operations job. + // The account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_DeletePublicAccessBlock.go b/service/s3control/api_op_DeletePublicAccessBlock.go index 04ac0ae9d16..ebdce95771d 100644 --- a/service/s3control/api_op_DeletePublicAccessBlock.go +++ b/service/s3control/api_op_DeletePublicAccessBlock.go @@ -14,7 +14,7 @@ import ( "strings" ) -// Removes the PublicAccessBlock configuration for an AWS account. For more +// Removes the PublicAccessBlock configuration for an account. For more // information, see Using Amazon S3 block public access // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html). // Related actions include: @@ -42,8 +42,8 @@ func (c *Client) DeletePublicAccessBlock(ctx context.Context, params *DeletePubl type DeletePublicAccessBlockInput struct { - // The account ID for the AWS account whose PublicAccessBlock configuration you - // want to remove. + // The account ID for the account whose PublicAccessBlock configuration you want to + // remove. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_DescribeJob.go b/service/s3control/api_op_DescribeJob.go index 98a1111fb65..42ae1759f2d 100644 --- a/service/s3control/api_op_DescribeJob.go +++ b/service/s3control/api_op_DescribeJob.go @@ -51,7 +51,7 @@ func (c *Client) DescribeJob(ctx context.Context, params *DescribeJobInput, optF type DescribeJobInput struct { - // The AWS account ID associated with the S3 Batch Operations job. + // The account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_GetAccessPoint.go b/service/s3control/api_op_GetAccessPoint.go index 10ec23ea2f7..76bff3eb73f 100644 --- a/service/s3control/api_op_GetAccessPoint.go +++ b/service/s3control/api_op_GetAccessPoint.go @@ -61,8 +61,8 @@ type GetAccessPointInput struct { // The name of the access point whose configuration information you want to // retrieve. For using this parameter with Amazon S3 on Outposts with the REST API, // you must specify the name and the x-amz-outpost-id as well. For using this - // parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN - // of the access point accessed in the format + // parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must + // specify the ARN of the access point accessed in the format // arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access // point reports-ap through outpost my-outpost owned by account 123456789012 in // Region us-west-2, use the URL encoding of @@ -77,12 +77,21 @@ type GetAccessPointInput struct { type GetAccessPointOutput struct { + // The ARN of the access point. + AccessPointArn *string + + // The name or alias of the access point. + Alias *string + // The name of the bucket associated with the specified access point. Bucket *string // The date and time when the specified access point was created. CreationDate *time.Time + // The VPC endpoint for the access point. + Endpoints map[string]string + // The name of the specified access point. Name *string @@ -104,7 +113,7 @@ type GetAccessPointOutput struct { // Contains the virtual private cloud (VPC) configuration for the specified access // point. This element is empty if this access point is an Amazon S3 on Outposts - // access point that is used by other AWS services. + // access point that is used by other Amazon Web Services. VpcConfiguration *types.VpcConfiguration // Metadata pertaining to the operation's result. diff --git a/service/s3control/api_op_GetAccessPointPolicy.go b/service/s3control/api_op_GetAccessPointPolicy.go index de936084314..60e6a8da583 100644 --- a/service/s3control/api_op_GetAccessPointPolicy.go +++ b/service/s3control/api_op_GetAccessPointPolicy.go @@ -48,10 +48,11 @@ type GetAccessPointPolicyInput struct { // The name of the access point whose policy you want to retrieve. For using this // parameter with Amazon S3 on Outposts with the REST API, you must specify the // name and the x-amz-outpost-id as well. For using this parameter with S3 on - // Outposts with the AWS SDK and CLI, you must specify the ARN of the access point - // accessed in the format arn:aws:s3-outposts:::outpost//accesspoint/. For example, - // to access the access point reports-ap through outpost my-outpost owned by - // account 123456789012 in Region us-west-2, use the URL encoding of + // Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of + // the access point accessed in the format + // arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access + // point reports-ap through outpost my-outpost owned by account 123456789012 in + // Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. // The value must be URL encoded. // diff --git a/service/s3control/api_op_GetBucket.go b/service/s3control/api_op_GetBucket.go index afaed3be22e..faa2a8d3850 100644 --- a/service/s3control/api_op_GetBucket.go +++ b/service/s3control/api_op_GetBucket.go @@ -19,19 +19,19 @@ import ( // on Outposts // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon S3 User Guide. If you are using an identity other than the root user of -// the AWS account that owns the Outposts bucket, the calling identity must have -// the s3-outposts:GetBucket permissions on the specified Outposts bucket and -// belong to the Outposts bucket owner's account in order to use this action. Only -// users from Outposts bucket owner account with the right permissions can perform -// actions on an Outposts bucket. If you don't have s3-outposts:GetBucket -// permissions or you're not using an identity that belongs to the bucket owner's -// account, Amazon S3 returns a 403 Access Denied error. The following actions are -// related to GetBucket for Amazon S3 on Outposts: All Amazon S3 on Outposts REST -// API requests for this action require an additional parameter of x-amz-outpost-id -// to be passed with the request and an S3 on Outposts endpoint hostname prefix -// instead of s3-control. For an example of the request syntax for Amazon S3 on -// Outposts that uses the S3 on Outposts endpoint hostname prefix and the -// x-amz-outpost-id derived using the access point ARN, see the Examples +// the account that owns the Outposts bucket, the calling identity must have the +// s3-outposts:GetBucket permissions on the specified Outposts bucket and belong to +// the Outposts bucket owner's account in order to use this action. Only users from +// Outposts bucket owner account with the right permissions can perform actions on +// an Outposts bucket. If you don't have s3-outposts:GetBucket permissions or +// you're not using an identity that belongs to the bucket owner's account, Amazon +// S3 returns a 403 Access Denied error. The following actions are related to +// GetBucket for Amazon S3 on Outposts: All Amazon S3 on Outposts REST API requests +// for this action require an additional parameter of x-amz-outpost-id to be passed +// with the request and an S3 on Outposts endpoint hostname prefix instead of +// s3-control. For an example of the request syntax for Amazon S3 on Outposts that +// uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id +// derived using the access point ARN, see the Examples // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucket.html#API_control_GetBucket_Examples) // section. // @@ -62,15 +62,15 @@ func (c *Client) GetBucket(ctx context.Context, params *GetBucketInput, optFns . type GetBucketInput struct { - // The AWS account ID of the Outposts bucket. + // The account ID of the Outposts bucket. // // This member is required. AccountId *string // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must - // specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the Amazon Web Services SDK and + // CLI, you must specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_GetBucketLifecycleConfiguration.go b/service/s3control/api_op_GetBucketLifecycleConfiguration.go index a96307893e7..bdf8a1af348 100644 --- a/service/s3control/api_op_GetBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_GetBucketLifecycleConfiguration.go @@ -78,7 +78,7 @@ func (c *Client) GetBucketLifecycleConfiguration(ctx context.Context, params *Ge type GetBucketLifecycleConfigurationInput struct { - // The AWS account ID of the Outposts bucket. + // The account ID of the Outposts bucket. // // This member is required. AccountId *string @@ -86,10 +86,10 @@ type GetBucketLifecycleConfigurationInput struct { // The Amazon Resource Name (ARN) of the bucket. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format - // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket - // reports through outpost my-outpost owned by account 123456789012 in Region - // us-west-2, use the URL encoding of + // Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed + // in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the + // bucket reports through outpost my-outpost owned by account 123456789012 in + // Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. // diff --git a/service/s3control/api_op_GetBucketPolicy.go b/service/s3control/api_op_GetBucketPolicy.go index 115c82bf1fb..8652f8bebf2 100644 --- a/service/s3control/api_op_GetBucketPolicy.go +++ b/service/s3control/api_op_GetBucketPolicy.go @@ -21,13 +21,13 @@ import ( // For more information, see Using Amazon S3 on Outposts // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon S3 User Guide. If you are using an identity other than the root user of -// the AWS account that owns the bucket, the calling identity must have the +// the account that owns the bucket, the calling identity must have the // GetBucketPolicy permissions on the specified bucket and belong to the bucket // owner's account in order to use this action. Only users from Outposts bucket // owner account with the right permissions can perform actions on an Outposts // bucket. If you don't have s3-outposts:GetBucketPolicy permissions or you're not // using an identity that belongs to the bucket owner's account, Amazon S3 returns -// a 403 Access Denied error. As a security precaution, the root user of the AWS +// a 403 Access Denied error. As a security precaution, the root user of the // account that owns a bucket can always use this action, even if the policy // explicitly denies the root user the ability to perform this action. For more // information about bucket policies, see Using Bucket Policies and User Policies @@ -68,15 +68,15 @@ func (c *Client) GetBucketPolicy(ctx context.Context, params *GetBucketPolicyInp type GetBucketPolicyInput struct { - // The AWS account ID of the Outposts bucket. + // The account ID of the Outposts bucket. // // This member is required. AccountId *string // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must - // specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the Amazon Web Services SDK and + // CLI, you must specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_GetBucketTagging.go b/service/s3control/api_op_GetBucketTagging.go index 30cb438f157..22589ba88a4 100644 --- a/service/s3control/api_op_GetBucketTagging.go +++ b/service/s3control/api_op_GetBucketTagging.go @@ -64,15 +64,15 @@ func (c *Client) GetBucketTagging(ctx context.Context, params *GetBucketTaggingI type GetBucketTaggingInput struct { - // The AWS account ID of the Outposts bucket. + // The account ID of the Outposts bucket. // // This member is required. AccountId *string // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must - // specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the Amazon Web Services SDK and + // CLI, you must specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_GetJobTagging.go b/service/s3control/api_op_GetJobTagging.go index 92a5ffd32c6..147b065a148 100644 --- a/service/s3control/api_op_GetJobTagging.go +++ b/service/s3control/api_op_GetJobTagging.go @@ -48,7 +48,7 @@ func (c *Client) GetJobTagging(ctx context.Context, params *GetJobTaggingInput, type GetJobTaggingInput struct { - // The AWS account ID associated with the S3 Batch Operations job. + // The account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_GetPublicAccessBlock.go b/service/s3control/api_op_GetPublicAccessBlock.go index 61398a5c21e..bfad0faf8ef 100644 --- a/service/s3control/api_op_GetPublicAccessBlock.go +++ b/service/s3control/api_op_GetPublicAccessBlock.go @@ -15,7 +15,7 @@ import ( "strings" ) -// Retrieves the PublicAccessBlock configuration for an AWS account. For more +// Retrieves the PublicAccessBlock configuration for an account. For more // information, see Using Amazon S3 block public access // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html). // Related actions include: @@ -43,8 +43,8 @@ func (c *Client) GetPublicAccessBlock(ctx context.Context, params *GetPublicAcce type GetPublicAccessBlockInput struct { - // The account ID for the AWS account whose PublicAccessBlock configuration you - // want to retrieve. + // The account ID for the account whose PublicAccessBlock configuration you want to + // retrieve. // // This member is required. AccountId *string @@ -54,7 +54,7 @@ type GetPublicAccessBlockInput struct { type GetPublicAccessBlockOutput struct { - // The PublicAccessBlock configuration currently in effect for this AWS account. + // The PublicAccessBlock configuration currently in effect for this account. PublicAccessBlockConfiguration *types.PublicAccessBlockConfiguration // Metadata pertaining to the operation's result. diff --git a/service/s3control/api_op_ListAccessPoints.go b/service/s3control/api_op_ListAccessPoints.go index cad6413645a..bbd774bd18c 100644 --- a/service/s3control/api_op_ListAccessPoints.go +++ b/service/s3control/api_op_ListAccessPoints.go @@ -56,7 +56,7 @@ func (c *Client) ListAccessPoints(ctx context.Context, params *ListAccessPointsI type ListAccessPointsInput struct { - // The AWS account ID for owner of the bucket whose access points you want to list. + // The account ID for owner of the bucket whose access points you want to list. // // This member is required. AccountId *string @@ -64,10 +64,10 @@ type ListAccessPointsInput struct { // The name of the bucket whose associated access points you want to list. For // using this parameter with Amazon S3 on Outposts with the REST API, you must // specify the name and the x-amz-outpost-id as well. For using this parameter with - // S3 on Outposts with the AWS SDK and CLI, you must specify the ARN of the bucket - // accessed in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to - // access the bucket reports through outpost my-outpost owned by account - // 123456789012 in Region us-west-2, use the URL encoding of + // S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the + // ARN of the bucket accessed in the format arn:aws:s3-outposts:::outpost//bucket/. + // For example, to access the bucket reports through outpost my-outpost owned by + // account 123456789012 in Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. Bucket *string diff --git a/service/s3control/api_op_ListJobs.go b/service/s3control/api_op_ListJobs.go index 19747614048..5ca41225b90 100644 --- a/service/s3control/api_op_ListJobs.go +++ b/service/s3control/api_op_ListJobs.go @@ -16,8 +16,8 @@ import ( ) // Lists current S3 Batch Operations jobs and jobs that have ended within the last -// 30 days for the AWS account making the request. For more information, see S3 -// Batch Operations +// 30 days for the account making the request. For more information, see S3 Batch +// Operations // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-basics.html) in the // Amazon S3 User Guide. Related actions include: // @@ -52,7 +52,7 @@ func (c *Client) ListJobs(ctx context.Context, params *ListJobsInput, optFns ... type ListJobsInput struct { - // The AWS account ID associated with the S3 Batch Operations job. + // The account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_ListRegionalBuckets.go b/service/s3control/api_op_ListRegionalBuckets.go index c75023aea85..3c79cdc213e 100644 --- a/service/s3control/api_op_ListRegionalBuckets.go +++ b/service/s3control/api_op_ListRegionalBuckets.go @@ -41,7 +41,7 @@ func (c *Client) ListRegionalBuckets(ctx context.Context, params *ListRegionalBu type ListRegionalBucketsInput struct { - // The AWS account ID of the Outposts bucket. + // The account ID of the Outposts bucket. // // This member is required. AccountId *string @@ -52,7 +52,7 @@ type ListRegionalBucketsInput struct { // NextToken *string - // The ID of the AWS Outposts. This is required by Amazon S3 on Outposts buckets. + // The ID of the Outposts. This is required by Amazon S3 on Outposts buckets. OutpostId *string noSmithyDocumentSerde diff --git a/service/s3control/api_op_PutAccessPointPolicy.go b/service/s3control/api_op_PutAccessPointPolicy.go index d54967cdbd4..25d1d2fecb7 100644 --- a/service/s3control/api_op_PutAccessPointPolicy.go +++ b/service/s3control/api_op_PutAccessPointPolicy.go @@ -49,7 +49,7 @@ func (c *Client) PutAccessPointPolicy(ctx context.Context, params *PutAccessPoin type PutAccessPointPolicyInput struct { - // The AWS account ID for owner of the bucket associated with the specified access + // The account ID for owner of the bucket associated with the specified access // point. // // This member is required. @@ -58,8 +58,8 @@ type PutAccessPointPolicyInput struct { // The name of the access point that you want to associate with the specified // policy. For using this parameter with Amazon S3 on Outposts with the REST API, // you must specify the name and the x-amz-outpost-id as well. For using this - // parameter with S3 on Outposts with the AWS SDK and CLI, you must specify the ARN - // of the access point accessed in the format + // parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must + // specify the ARN of the access point accessed in the format // arn:aws:s3-outposts:::outpost//accesspoint/. For example, to access the access // point reports-ap through outpost my-outpost owned by account 123456789012 in // Region us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_PutBucketLifecycleConfiguration.go b/service/s3control/api_op_PutBucketLifecycleConfiguration.go index 57b9248f9c5..7acc61e5a2b 100644 --- a/service/s3control/api_op_PutBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_PutBucketLifecycleConfiguration.go @@ -55,7 +55,7 @@ func (c *Client) PutBucketLifecycleConfiguration(ctx context.Context, params *Pu type PutBucketLifecycleConfigurationInput struct { - // The AWS account ID of the Outposts bucket. + // The account ID of the Outposts bucket. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_PutBucketPolicy.go b/service/s3control/api_op_PutBucketPolicy.go index 368048062b8..821a18bcd36 100644 --- a/service/s3control/api_op_PutBucketPolicy.go +++ b/service/s3control/api_op_PutBucketPolicy.go @@ -21,13 +21,13 @@ import ( // bucket. For more information, see Using Amazon S3 on Outposts // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the // Amazon S3 User Guide. If you are using an identity other than the root user of -// the AWS account that owns the Outposts bucket, the calling identity must have -// the PutBucketPolicy permissions on the specified Outposts bucket and belong to -// the bucket owner's account in order to use this action. If you don't have +// the account that owns the Outposts bucket, the calling identity must have the +// PutBucketPolicy permissions on the specified Outposts bucket and belong to the +// bucket owner's account in order to use this action. If you don't have // PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you // have the correct permissions, but you're not using an identity that belongs to // the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed error. As -// a security precaution, the root user of the AWS account that owns a bucket can +// a security precaution, the root user of the account that owns a bucket can // always use this action, even if the policy explicitly denies the root user the // ability to perform this action. For more information about bucket policies, see // Using Bucket Policies and User Policies @@ -65,15 +65,15 @@ func (c *Client) PutBucketPolicy(ctx context.Context, params *PutBucketPolicyInp type PutBucketPolicyInput struct { - // The AWS account ID of the Outposts bucket. + // The account ID of the Outposts bucket. // // This member is required. AccountId *string // Specifies the bucket. For using this parameter with Amazon S3 on Outposts with // the REST API, you must specify the name and the x-amz-outpost-id as well. For - // using this parameter with S3 on Outposts with the AWS SDK and CLI, you must - // specify the ARN of the bucket accessed in the format + // using this parameter with S3 on Outposts with the Amazon Web Services SDK and + // CLI, you must specify the ARN of the bucket accessed in the format // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket // reports through outpost my-outpost owned by account 123456789012 in Region // us-west-2, use the URL encoding of diff --git a/service/s3control/api_op_PutBucketTagging.go b/service/s3control/api_op_PutBucketTagging.go index d7a9c2364ec..c9bd15d8b1a 100644 --- a/service/s3control/api_op_PutBucketTagging.go +++ b/service/s3control/api_op_PutBucketTagging.go @@ -21,13 +21,14 @@ import ( // the Amazon S3 API Reference. Sets the tags for an S3 on Outposts bucket. For // more information, see Using Amazon S3 on Outposts // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the -// Amazon S3 User Guide. Use tags to organize your AWS bill to reflect your own -// cost structure. To do this, sign up to get your AWS account bill with tag key -// values included. Then, to see the cost of combined resources, organize your -// billing information according to resources with the same tag key values. For -// example, you can tag several resources with a specific application name, and -// then organize your billing information to see the total cost of that application -// across several services. For more information, see Cost allocation and tagging +// Amazon S3 User Guide. Use tags to organize your Amazon Web Services bill to +// reflect your own cost structure. To do this, sign up to get your account bill +// with tag key values included. Then, to see the cost of combined resources, +// organize your billing information according to resources with the same tag key +// values. For example, you can tag several resources with a specific application +// name, and then organize your billing information to see the total cost of that +// application across several services. For more information, see Cost allocation +// and tagging // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html). // Within a bucket, if you add a tag that has the same key as an existing tag, the // new value overwrites the old value. For more information, see Using cost @@ -50,7 +51,7 @@ import ( // can occur if the tag did not pass input validation. For information about tag // restrictions, see User-Defined Tag Restrictions // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html) -// and AWS-Generated Cost Allocation Tag Restrictions +// and Amazon Web Services-Generated Cost Allocation Tag Restrictions // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/aws-tag-restrictions.html). // // * @@ -103,7 +104,7 @@ func (c *Client) PutBucketTagging(ctx context.Context, params *PutBucketTaggingI type PutBucketTaggingInput struct { - // The AWS account ID of the Outposts bucket. + // The account ID of the Outposts bucket. // // This member is required. AccountId *string @@ -111,10 +112,10 @@ type PutBucketTaggingInput struct { // The Amazon Resource Name (ARN) of the bucket. For using this parameter with // Amazon S3 on Outposts with the REST API, you must specify the name and the // x-amz-outpost-id as well. For using this parameter with S3 on Outposts with the - // AWS SDK and CLI, you must specify the ARN of the bucket accessed in the format - // arn:aws:s3-outposts:::outpost//bucket/. For example, to access the bucket - // reports through outpost my-outpost owned by account 123456789012 in Region - // us-west-2, use the URL encoding of + // Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed + // in the format arn:aws:s3-outposts:::outpost//bucket/. For example, to access the + // bucket reports through outpost my-outpost owned by account 123456789012 in + // Region us-west-2, use the URL encoding of // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. // The value must be URL encoded. // diff --git a/service/s3control/api_op_PutJobTagging.go b/service/s3control/api_op_PutJobTagging.go index a6e82c190ee..f45d6debbdc 100644 --- a/service/s3control/api_op_PutJobTagging.go +++ b/service/s3control/api_op_PutJobTagging.go @@ -57,7 +57,7 @@ import ( // restrictions related to characters and encodings, see User-Defined Tag // Restrictions // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html) -// in the AWS Billing and Cost Management User Guide. +// in the Billing and Cost Management User Guide. // // To use this action, you must // have permission to perform the s3:PutJobTagging action. Related actions @@ -90,7 +90,7 @@ func (c *Client) PutJobTagging(ctx context.Context, params *PutJobTaggingInput, type PutJobTaggingInput struct { - // The AWS account ID associated with the S3 Batch Operations job. + // The account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_PutPublicAccessBlock.go b/service/s3control/api_op_PutPublicAccessBlock.go index 2461d242f04..fbe8a22eefb 100644 --- a/service/s3control/api_op_PutPublicAccessBlock.go +++ b/service/s3control/api_op_PutPublicAccessBlock.go @@ -15,8 +15,8 @@ import ( "strings" ) -// Creates or modifies the PublicAccessBlock configuration for an AWS account. For -// more information, see Using Amazon S3 block public access +// Creates or modifies the PublicAccessBlock configuration for an account. For more +// information, see Using Amazon S3 block public access // (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html). // Related actions include: // @@ -43,13 +43,13 @@ func (c *Client) PutPublicAccessBlock(ctx context.Context, params *PutPublicAcce type PutPublicAccessBlockInput struct { - // The account ID for the AWS account whose PublicAccessBlock configuration you - // want to set. + // The account ID for the account whose PublicAccessBlock configuration you want to + // set. // // This member is required. AccountId *string - // The PublicAccessBlock configuration that you want to apply to the specified AWS + // The PublicAccessBlock configuration that you want to apply to the specified // account. // // This member is required. diff --git a/service/s3control/api_op_UpdateJobPriority.go b/service/s3control/api_op_UpdateJobPriority.go index 498bf6d650a..f249eda7174 100644 --- a/service/s3control/api_op_UpdateJobPriority.go +++ b/service/s3control/api_op_UpdateJobPriority.go @@ -50,7 +50,7 @@ func (c *Client) UpdateJobPriority(ctx context.Context, params *UpdateJobPriorit type UpdateJobPriorityInput struct { - // The AWS account ID associated with the S3 Batch Operations job. + // The account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/api_op_UpdateJobStatus.go b/service/s3control/api_op_UpdateJobStatus.go index 97b11e4f9ed..0be01b5b5e6 100644 --- a/service/s3control/api_op_UpdateJobStatus.go +++ b/service/s3control/api_op_UpdateJobStatus.go @@ -52,7 +52,7 @@ func (c *Client) UpdateJobStatus(ctx context.Context, params *UpdateJobStatusInp type UpdateJobStatusInput struct { - // The AWS account ID associated with the S3 Batch Operations job. + // The account ID associated with the S3 Batch Operations job. // // This member is required. AccountId *string diff --git a/service/s3control/deserializers.go b/service/s3control/deserializers.go index a8296097725..71a55a81256 100644 --- a/service/s3control/deserializers.go +++ b/service/s3control/deserializers.go @@ -155,6 +155,19 @@ func awsRestxml_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessPoi sv.AccessPointArn = ptr.String(xtv) } + case strings.EqualFold("Alias", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Alias = ptr.String(xtv) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -1809,6 +1822,32 @@ func awsRestxml_deserializeOpDocumentGetAccessPointOutput(v **GetAccessPointOutp originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("AccessPointArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AccessPointArn = ptr.String(xtv) + } + + case strings.EqualFold("Alias", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Alias = ptr.String(xtv) + } + case strings.EqualFold("Bucket", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -1839,6 +1878,12 @@ func awsRestxml_deserializeOpDocumentGetAccessPointOutput(v **GetAccessPointOutp sv.CreationDate = ptr.Time(t) } + case strings.EqualFold("Endpoints", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentEndpoints(&sv.Endpoints, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Name", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -6359,6 +6404,19 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm sv.AccessPointArn = ptr.String(xtv) } + case strings.EqualFold("Alias", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Alias = ptr.String(xtv) + } + case strings.EqualFold("Bucket", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -6897,6 +6955,104 @@ func awsRestxml_deserializeDocumentBucketsUnwrapped(v *[]string, decoder smithyx *v = sv return nil } +func awsRestxml_deserializeDocumentEndpoints(v *map[string]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv map[string]string + if *v == nil { + sv = make(map[string]string, 0) + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("entry", t.Name.Local): + entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentEndpointsUnwrapped(&sv, entryDecoder); err != nil { + return err + } + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentEndpointsUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string + if *v == nil { + sv = make(map[string]string, 0) + } else { + sv = *v + } + + var ek string + var ev string + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + sv[ek] = ev + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("key", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + ek = xtv + } + + case strings.EqualFold("value", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + ev = xtv + } + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} func awsRestxml_deserializeDocumentExclude(v **types.Exclude, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/s3control/doc.go b/service/s3control/doc.go index 3ce05a321d8..ca228b17626 100644 --- a/service/s3control/doc.go +++ b/service/s3control/doc.go @@ -3,5 +3,6 @@ // Package s3control provides the API client, operations, and parameter types for // AWS S3 Control. // -// AWS S3 Control provides access to Amazon S3 control plane actions. +// Amazon Web Services S3 Control provides access to Amazon S3 control plane +// actions. package s3control diff --git a/service/s3control/types/errors.go b/service/s3control/types/errors.go index 93a2ee3587d..ad67764c047 100644 --- a/service/s3control/types/errors.go +++ b/service/s3control/types/errors.go @@ -27,8 +27,8 @@ func (e *BadRequestException) ErrorCode() string { return "BadReques func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The requested Outposts bucket name is not available. The bucket namespace is -// shared by all users of the AWS Outposts in this Region. Select a different name -// and try again. +// shared by all users of the Outposts in this Region. Select a different name and +// try again. type BucketAlreadyExists struct { Message *string diff --git a/service/s3control/types/types.go b/service/s3control/types/types.go index f8dbcdf6bc3..7a86891fabd 100644 --- a/service/s3control/types/types.go +++ b/service/s3control/types/types.go @@ -42,9 +42,12 @@ type AccessPoint struct { // The ARN for the access point. AccessPointArn *string + // The name or alias of the access point. + Alias *string + // The virtual private cloud (VPC) configuration for this access point, if one // exists. This element is empty if this access point is an Amazon S3 on Outposts - // access point that is used by other AWS services. + // access point that is used by other Amazon Web Services. VpcConfiguration *VpcConfiguration noSmithyDocumentSerde @@ -73,11 +76,10 @@ type ActivityMetrics struct { noSmithyDocumentSerde } -// AWS Lambda function used to transform objects through an Object Lambda Access -// Point. +// Lambda function used to transform objects through an Object Lambda Access Point. type AwsLambdaTransformation struct { - // The Amazon Resource Name (ARN) of the AWS Lambda function. + // The Amazon Resource Name (ARN) of the Lambda function. // // This member is required. FunctionArn *string @@ -181,8 +183,8 @@ type JobDescriptor struct { // requested one in the Create Job request. Report *JobReport - // The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) - // role assigned to run the tasks for this job. + // The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role + // assigned to run the tasks for this job. RoleArn *string // The current status of the specified job. @@ -316,8 +318,8 @@ type JobManifestSpec struct { // the Amazon S3 User Guide. type JobOperation struct { - // Directs the specified job to invoke an AWS Lambda function on every object in - // the manifest. + // Directs the specified job to invoke an Lambda function on every object in the + // manifest. LambdaInvoke *LambdaInvokeOperation // Directs the specified job to execute a DELETE Object tagging call on every @@ -405,8 +407,8 @@ type JobReport struct { // Contains the configuration parameters for a Lambda Invoke operation. type LambdaInvokeOperation struct { - // The Amazon Resource Name (ARN) for the AWS Lambda function that the specified - // job will invoke on every object in the manifest. + // The Amazon Resource Name (ARN) for the Lambda function that the specified job + // will invoke on every object in the manifest. FunctionArn *string noSmithyDocumentSerde @@ -577,8 +579,8 @@ type NoncurrentVersionTransition struct { noSmithyDocumentSerde } -// An access point with an attached AWS Lambda function used to access transformed -// data from an Amazon S3 bucket. +// An access point with an attached Lambda function used to access transformed data +// from an Amazon S3 bucket. type ObjectLambdaAccessPoint struct { // The name of the Object Lambda Access Point. @@ -623,7 +625,7 @@ type ObjectLambdaContentTransformation interface { isObjectLambdaContentTransformation() } -// A container for an AWS Lambda function. +// A container for an Lambda function. type ObjectLambdaContentTransformationMemberAwsLambda struct { Value AwsLambdaTransformation @@ -727,11 +729,11 @@ type PublicAccessBlockConfiguration struct { // Specifies whether Amazon S3 should restrict public bucket policies for buckets // in this account. Setting this element to TRUE restricts access to buckets with - // public policies to only AWS service principals and authorized users within this - // account. Enabling this setting doesn't affect previously stored bucket policies, - // except that public and cross-account access within any public bucket policy, - // including non-public delegation to specific accounts, is blocked. This is not - // supported for Amazon S3 on Outposts. + // public policies to only Amazon Web Service principals and authorized users + // within this account. Enabling this setting doesn't affect previously stored + // bucket policies, except that public and cross-account access within any public + // bucket policy, including non-public delegation to specific accounts, is blocked. + // This is not supported for Amazon S3 on Outposts. RestrictPublicBuckets bool noSmithyDocumentSerde @@ -758,7 +760,7 @@ type RegionalBucket struct { // The Amazon Resource Name (ARN) for the regional bucket. BucketArn *string - // The AWS Outposts ID of the regional bucket. + // The Outposts ID of the regional bucket. OutpostId *string noSmithyDocumentSerde @@ -835,10 +837,10 @@ type S3CopyObjectOperation struct { AccessControlGrants []S3Grant // Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption - // with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true - // causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. - // Specifying this header with an object action doesn’t affect bucket-level - // settings for S3 Bucket Key. + // with server-side encryption using Amazon Web Services KMS (SSE-KMS). Setting + // this header to true causes Amazon S3 to use an S3 Bucket Key for object + // encryption with SSE-KMS. Specifying this header with an object action doesn’t + // affect bucket-level settings for S3 Bucket Key. BucketKeyEnabled bool // @@ -1156,11 +1158,11 @@ type SSES3 struct { noSmithyDocumentSerde } -// The AWS organization for your S3 Storage Lens. +// The Amazon Web Services organization for your S3 Storage Lens. type StorageLensAwsOrg struct { - // A container for the Amazon Resource Name (ARN) of the AWS organization. This - // property is read-only and follows the following format: + // A container for the Amazon Resource Name (ARN) of the Amazon Web Services + // organization. This property is read-only and follows the following format: // arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck // // This member is required. @@ -1188,7 +1190,8 @@ type StorageLensConfiguration struct { // This member is required. IsEnabled bool - // A container for the AWS organization for this S3 Storage Lens configuration. + // A container for the Amazon Web Services organization for this S3 Storage Lens + // configuration. AwsOrg *StorageLensAwsOrg // A container to specify the properties of your S3 Storage Lens metrics export diff --git a/service/s3outposts/api_op_CreateEndpoint.go b/service/s3outposts/api_op_CreateEndpoint.go index cba555edfef..4e069e9c975 100644 --- a/service/s3outposts/api_op_CreateEndpoint.go +++ b/service/s3outposts/api_op_CreateEndpoint.go @@ -6,15 +6,20 @@ import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/s3outposts/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) -// S3 on Outposts access points simplify managing data access at scale for shared -// datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to +// Amazon S3 on Outposts Access Points simplify managing data access at scale for +// shared datasets in S3 on Outposts. S3 on Outposts uses endpoints to connect to // Outposts buckets so that you can perform actions within your virtual private -// cloud (VPC). This action creates an endpoint and associates it with the -// specified Outpost. Related actions include: +// cloud (VPC). For more information, see Accessing S3 on Outposts using VPC only +// access points +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html). +// This action creates an endpoint and associates it with the specified Outposts. +// It can take up to 5 minutes for this action to complete. Related actions +// include: // // * DeleteEndpoint // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html) @@ -39,7 +44,7 @@ func (c *Client) CreateEndpoint(ctx context.Context, params *CreateEndpointInput type CreateEndpointInput struct { - // The ID of the AWS Outpost. + // The ID of the AWS Outposts. // // This member is required. OutpostId *string @@ -49,11 +54,21 @@ type CreateEndpointInput struct { // This member is required. SecurityGroupId *string - // The ID of the subnet in the selected VPC. + // The ID of the subnet in the selected VPC. The endpoint subnet must belong to the + // Outpost that has the Amazon S3 on Outposts provisioned. // // This member is required. SubnetId *string + // The type of access for the on-premise network connectivity for the Outpost + // endpoint. To access the endpoint from an on-premises network, you must specify + // the access type and provide the customer owned IPv4 pool. + AccessType types.EndpointAccessType + + // The ID of the customer-owned IPv4 pool for the endpoint. IP addresses will be + // allocated from this pool for the endpoint. + CustomerOwnedIpv4Pool *string + noSmithyDocumentSerde } diff --git a/service/s3outposts/api_op_DeleteEndpoint.go b/service/s3outposts/api_op_DeleteEndpoint.go index bbe5954db7b..19b56eee350 100644 --- a/service/s3outposts/api_op_DeleteEndpoint.go +++ b/service/s3outposts/api_op_DeleteEndpoint.go @@ -10,13 +10,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// S3 on Outposts access points simplify managing data access at scale for shared -// datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to +// Amazon S3 on Outposts Access Points simplify managing data access at scale for +// shared datasets in S3 on Outposts. S3 on Outposts uses endpoints to connect to // Outposts buckets so that you can perform actions within your virtual private -// cloud (VPC). This action deletes an endpoint. Related actions include: +// cloud (VPC). For more information, see Accessing S3 on Outposts using VPC only +// access points +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html). +// This action deletes an endpoint. It can take up to 5 minutes for this action to +// complete. Related actions include: // -// * -// CreateEndpoint +// * CreateEndpoint // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html) // // * @@ -39,12 +42,12 @@ func (c *Client) DeleteEndpoint(ctx context.Context, params *DeleteEndpointInput type DeleteEndpointInput struct { - // The ID of the end point. + // The ID of the endpoint. // // This member is required. EndpointId *string - // The ID of the AWS Outpost. + // The ID of the AWS Outposts. // // This member is required. OutpostId *string diff --git a/service/s3outposts/api_op_ListEndpoints.go b/service/s3outposts/api_op_ListEndpoints.go index 31a9cf7a18e..2efcb079bfc 100644 --- a/service/s3outposts/api_op_ListEndpoints.go +++ b/service/s3outposts/api_op_ListEndpoints.go @@ -12,11 +12,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// S3 on Outposts access points simplify managing data access at scale for shared -// datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to +// Amazon S3 on Outposts Access Points simplify managing data access at scale for +// shared datasets in S3 on Outposts. S3 on Outposts uses endpoints to connect to // Outposts buckets so that you can perform actions within your virtual private -// cloud (VPC). This action lists endpoints associated with the Outpost. Related -// actions include: +// cloud (VPC). For more information, see Accessing S3 on Outposts using VPC only +// access points +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html). +// This action lists endpoints associated with the Outposts. Related actions +// include: // // * CreateEndpoint // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html) @@ -52,7 +55,7 @@ type ListEndpointsInput struct { type ListEndpointsOutput struct { - // Returns an array of endpoints associated with AWS Outpost. + // Returns an array of endpoints associated with AWS Outposts. Endpoints []types.Endpoint // The next endpoint returned in the list. diff --git a/service/s3outposts/deserializers.go b/service/s3outposts/deserializers.go index ba4901a9ba6..39f558d87d4 100644 --- a/service/s3outposts/deserializers.go +++ b/service/s3outposts/deserializers.go @@ -728,6 +728,15 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac for key, value := range shape { switch key { + case "AccessType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EndpointAccessType to be of type string, got %T instead", value) + } + sv.AccessType = types.EndpointAccessType(jtv) + } + case "CidrBlock": if value != nil { jtv, ok := value.(string) @@ -753,6 +762,15 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac } } + case "CustomerOwnedIpv4Pool": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CustomerOwnedIpv4Pool to be of type string, got %T instead", value) + } + sv.CustomerOwnedIpv4Pool = ptr.String(jtv) + } + case "EndpointArn": if value != nil { jtv, ok := value.(string) @@ -776,6 +794,15 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac sv.OutpostsId = ptr.String(jtv) } + case "SecurityGroupId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) + } + sv.SecurityGroupId = ptr.String(jtv) + } + case "Status": if value != nil { jtv, ok := value.(string) @@ -785,6 +812,24 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac sv.Status = types.EndpointStatus(jtv) } + case "SubnetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) + } + sv.SubnetId = ptr.String(jtv) + } + + case "VpcId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) + } + sv.VpcId = ptr.String(jtv) + } + default: _, _ = key, value diff --git a/service/s3outposts/serializers.go b/service/s3outposts/serializers.go index 6fd9f8bdd3e..e6640e4bdb9 100644 --- a/service/s3outposts/serializers.go +++ b/service/s3outposts/serializers.go @@ -73,6 +73,16 @@ func awsRestjson1_serializeOpDocumentCreateEndpointInput(v *CreateEndpointInput, object := value.Object() defer object.Close() + if len(v.AccessType) > 0 { + ok := object.Key("AccessType") + ok.String(string(v.AccessType)) + } + + if v.CustomerOwnedIpv4Pool != nil { + ok := object.Key("CustomerOwnedIpv4Pool") + ok.String(*v.CustomerOwnedIpv4Pool) + } + if v.OutpostId != nil { ok := object.Key("OutpostId") ok.String(*v.OutpostId) diff --git a/service/s3outposts/types/enums.go b/service/s3outposts/types/enums.go index 725511f0a4f..ddf8df36ddd 100644 --- a/service/s3outposts/types/enums.go +++ b/service/s3outposts/types/enums.go @@ -2,12 +2,31 @@ package types +type EndpointAccessType string + +// Enum values for EndpointAccessType +const ( + EndpointAccessTypePrivate EndpointAccessType = "Private" + EndpointAccessTypeCustomerOwnedIp EndpointAccessType = "CustomerOwnedIp" +) + +// Values returns all known values for EndpointAccessType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (EndpointAccessType) Values() []EndpointAccessType { + return []EndpointAccessType{ + "Private", + "CustomerOwnedIp", + } +} + type EndpointStatus string // Enum values for EndpointStatus const ( - EndpointStatusPending EndpointStatus = "PENDING" - EndpointStatusAvailable EndpointStatus = "AVAILABLE" + EndpointStatusPending EndpointStatus = "Pending" + EndpointStatusAvailable EndpointStatus = "Available" + EndpointStatusDeleting EndpointStatus = "Deleting" ) // Values returns all known values for EndpointStatus. Note that this can be @@ -15,7 +34,8 @@ const ( // ordering of this slice is not guaranteed to be stable across updates. func (EndpointStatus) Values() []EndpointStatus { return []EndpointStatus{ - "PENDING", - "AVAILABLE", + "Pending", + "Available", + "Deleting", } } diff --git a/service/s3outposts/types/types.go b/service/s3outposts/types/types.go index fedec9b00f3..2b632c9c983 100644 --- a/service/s3outposts/types/types.go +++ b/service/s3outposts/types/types.go @@ -7,30 +7,47 @@ import ( "time" ) -// S3 on Outposts access points simplify managing data access at scale for shared -// datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to +// Amazon S3 on Outposts Access Points simplify managing data access at scale for +// shared datasets in S3 on Outposts. S3 on Outposts uses endpoints to connect to // Outposts buckets so that you can perform actions within your virtual private -// cloud (VPC). +// cloud (VPC). For more information, see Accessing S3 on Outposts using VPC only +// access points +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html). type Endpoint struct { + // + AccessType EndpointAccessType + // The VPC CIDR committed by this endpoint. CidrBlock *string // The time the endpoint was created. CreationTime *time.Time + // The ID of the customer-owned IPv4 pool used for the endpoint. + CustomerOwnedIpv4Pool *string + // The Amazon Resource Name (ARN) of the endpoint. EndpointArn *string // The network interface of the endpoint. NetworkInterfaces []NetworkInterface - // The ID of the AWS Outpost. + // The ID of the AWS Outposts. OutpostsId *string + // The ID of the security group used for the endpoint. + SecurityGroupId *string + // The status of the endpoint. Status EndpointStatus + // The ID of the subnet used for the endpoint. + SubnetId *string + + // The ID of the VPC used for the endpoint. + VpcId *string + noSmithyDocumentSerde } diff --git a/service/sagemaker/api_op_CreateEndpoint.go b/service/sagemaker/api_op_CreateEndpoint.go index 732dc76fe72..3e01d53f3db 100644 --- a/service/sagemaker/api_op_CreateEndpoint.go +++ b/service/sagemaker/api_op_CreateEndpoint.go @@ -16,9 +16,8 @@ import ( // create the endpoint configuration with the CreateEndpointConfig API. Use this // API to deploy models using Amazon SageMaker hosting services. For an example // that calls this method when deploying a model to Amazon SageMaker hosting -// services, see Deploy the Model to Amazon SageMaker Hosting Services (Amazon Web -// Services SDK for Python (Boto 3)). -// (https://docs.aws.amazon.com/sagemaker/latest/dg/ex1-deploy-model.html#ex1-deploy-model-boto) +// services, see the Create Endpoint example notebook. +// (https://github.com/aws/amazon-sagemaker-examples/blob/master/sagemaker-fundamentals/create-endpoint/create_endpoint.ipynb) // You must not delete an EndpointConfig that is in use by an endpoint that is live // or while the UpdateEndpoint or CreateEndpoint operations are being performed on // the endpoint. To update an endpoint, you must create a new EndpointConfig. The diff --git a/service/sagemaker/api_op_DescribeImage.go b/service/sagemaker/api_op_DescribeImage.go index e1b3ca33a88..9b0a745dd78 100644 --- a/service/sagemaker/api_op_DescribeImage.go +++ b/service/sagemaker/api_op_DescribeImage.go @@ -4,11 +4,17 @@ package sagemaker import ( "context" + "errors" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" "time" ) @@ -137,6 +143,548 @@ func (c *Client) addOperationDescribeImageMiddlewares(stack *middleware.Stack, o return nil } +// DescribeImageAPIClient is a client that implements the DescribeImage operation. +type DescribeImageAPIClient interface { + DescribeImage(context.Context, *DescribeImageInput, ...func(*Options)) (*DescribeImageOutput, error) +} + +var _ DescribeImageAPIClient = (*Client)(nil) + +// ImageCreatedWaiterOptions are waiter options for ImageCreatedWaiter +type ImageCreatedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ImageCreatedWaiter will use default minimum delay of 60 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ImageCreatedWaiter will use default max delay of 120 seconds. Note that + // MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeImageInput, *DescribeImageOutput, error) (bool, error) +} + +// ImageCreatedWaiter defines the waiters for ImageCreated +type ImageCreatedWaiter struct { + client DescribeImageAPIClient + + options ImageCreatedWaiterOptions +} + +// NewImageCreatedWaiter constructs a ImageCreatedWaiter. +func NewImageCreatedWaiter(client DescribeImageAPIClient, optFns ...func(*ImageCreatedWaiterOptions)) *ImageCreatedWaiter { + options := ImageCreatedWaiterOptions{} + options.MinDelay = 60 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = imageCreatedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ImageCreatedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ImageCreated waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *ImageCreatedWaiter) Wait(ctx context.Context, params *DescribeImageInput, maxWaitDur time.Duration, optFns ...func(*ImageCreatedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeImage(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ImageCreated waiter") +} + +func imageCreatedStateRetryable(ctx context.Context, input *DescribeImageInput, output *DescribeImageOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("ImageStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "CREATED" + value, ok := pathValue.(types.ImageStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("ImageStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "CREATE_FAILED" + value, ok := pathValue.(types.ImageStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationException" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + +// ImageDeletedWaiterOptions are waiter options for ImageDeletedWaiter +type ImageDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ImageDeletedWaiter will use default minimum delay of 60 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ImageDeletedWaiter will use default max delay of 120 seconds. Note that + // MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeImageInput, *DescribeImageOutput, error) (bool, error) +} + +// ImageDeletedWaiter defines the waiters for ImageDeleted +type ImageDeletedWaiter struct { + client DescribeImageAPIClient + + options ImageDeletedWaiterOptions +} + +// NewImageDeletedWaiter constructs a ImageDeletedWaiter. +func NewImageDeletedWaiter(client DescribeImageAPIClient, optFns ...func(*ImageDeletedWaiterOptions)) *ImageDeletedWaiter { + options := ImageDeletedWaiterOptions{} + options.MinDelay = 60 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = imageDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ImageDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ImageDeleted waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *ImageDeletedWaiter) Wait(ctx context.Context, params *DescribeImageInput, maxWaitDur time.Duration, optFns ...func(*ImageDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeImage(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ImageDeleted waiter") +} + +func imageDeletedStateRetryable(ctx context.Context, input *DescribeImageInput, output *DescribeImageOutput, err error) (bool, error) { + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ResourceNotFoundException" == apiErr.ErrorCode() { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("ImageStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DELETE_FAILED" + value, ok := pathValue.(types.ImageStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationException" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + +// ImageUpdatedWaiterOptions are waiter options for ImageUpdatedWaiter +type ImageUpdatedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ImageUpdatedWaiter will use default minimum delay of 60 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ImageUpdatedWaiter will use default max delay of 120 seconds. Note that + // MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeImageInput, *DescribeImageOutput, error) (bool, error) +} + +// ImageUpdatedWaiter defines the waiters for ImageUpdated +type ImageUpdatedWaiter struct { + client DescribeImageAPIClient + + options ImageUpdatedWaiterOptions +} + +// NewImageUpdatedWaiter constructs a ImageUpdatedWaiter. +func NewImageUpdatedWaiter(client DescribeImageAPIClient, optFns ...func(*ImageUpdatedWaiterOptions)) *ImageUpdatedWaiter { + options := ImageUpdatedWaiterOptions{} + options.MinDelay = 60 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = imageUpdatedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ImageUpdatedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ImageUpdated waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *ImageUpdatedWaiter) Wait(ctx context.Context, params *DescribeImageInput, maxWaitDur time.Duration, optFns ...func(*ImageUpdatedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeImage(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ImageUpdated waiter") +} + +func imageUpdatedStateRetryable(ctx context.Context, input *DescribeImageInput, output *DescribeImageOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("ImageStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "CREATED" + value, ok := pathValue.(types.ImageStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("ImageStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_FAILED" + value, ok := pathValue.(types.ImageStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationException" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeImage(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/sagemaker/api_op_DescribeImageVersion.go b/service/sagemaker/api_op_DescribeImageVersion.go index 10584610c3c..5f742a70ce9 100644 --- a/service/sagemaker/api_op_DescribeImageVersion.go +++ b/service/sagemaker/api_op_DescribeImageVersion.go @@ -4,11 +4,17 @@ package sagemaker import ( "context" + "errors" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" "time" ) @@ -139,6 +145,371 @@ func (c *Client) addOperationDescribeImageVersionMiddlewares(stack *middleware.S return nil } +// DescribeImageVersionAPIClient is a client that implements the +// DescribeImageVersion operation. +type DescribeImageVersionAPIClient interface { + DescribeImageVersion(context.Context, *DescribeImageVersionInput, ...func(*Options)) (*DescribeImageVersionOutput, error) +} + +var _ DescribeImageVersionAPIClient = (*Client)(nil) + +// ImageVersionCreatedWaiterOptions are waiter options for +// ImageVersionCreatedWaiter +type ImageVersionCreatedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ImageVersionCreatedWaiter will use default minimum delay of 60 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ImageVersionCreatedWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeImageVersionInput, *DescribeImageVersionOutput, error) (bool, error) +} + +// ImageVersionCreatedWaiter defines the waiters for ImageVersionCreated +type ImageVersionCreatedWaiter struct { + client DescribeImageVersionAPIClient + + options ImageVersionCreatedWaiterOptions +} + +// NewImageVersionCreatedWaiter constructs a ImageVersionCreatedWaiter. +func NewImageVersionCreatedWaiter(client DescribeImageVersionAPIClient, optFns ...func(*ImageVersionCreatedWaiterOptions)) *ImageVersionCreatedWaiter { + options := ImageVersionCreatedWaiterOptions{} + options.MinDelay = 60 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = imageVersionCreatedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ImageVersionCreatedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ImageVersionCreated waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *ImageVersionCreatedWaiter) Wait(ctx context.Context, params *DescribeImageVersionInput, maxWaitDur time.Duration, optFns ...func(*ImageVersionCreatedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeImageVersion(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ImageVersionCreated waiter") +} + +func imageVersionCreatedStateRetryable(ctx context.Context, input *DescribeImageVersionInput, output *DescribeImageVersionOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("ImageVersionStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "CREATED" + value, ok := pathValue.(types.ImageVersionStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageVersionStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("ImageVersionStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "CREATE_FAILED" + value, ok := pathValue.(types.ImageVersionStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageVersionStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationException" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + +// ImageVersionDeletedWaiterOptions are waiter options for +// ImageVersionDeletedWaiter +type ImageVersionDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ImageVersionDeletedWaiter will use default minimum delay of 60 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ImageVersionDeletedWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeImageVersionInput, *DescribeImageVersionOutput, error) (bool, error) +} + +// ImageVersionDeletedWaiter defines the waiters for ImageVersionDeleted +type ImageVersionDeletedWaiter struct { + client DescribeImageVersionAPIClient + + options ImageVersionDeletedWaiterOptions +} + +// NewImageVersionDeletedWaiter constructs a ImageVersionDeletedWaiter. +func NewImageVersionDeletedWaiter(client DescribeImageVersionAPIClient, optFns ...func(*ImageVersionDeletedWaiterOptions)) *ImageVersionDeletedWaiter { + options := ImageVersionDeletedWaiterOptions{} + options.MinDelay = 60 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = imageVersionDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ImageVersionDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ImageVersionDeleted waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *ImageVersionDeletedWaiter) Wait(ctx context.Context, params *DescribeImageVersionInput, maxWaitDur time.Duration, optFns ...func(*ImageVersionDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeImageVersion(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ImageVersionDeleted waiter") +} + +func imageVersionDeletedStateRetryable(ctx context.Context, input *DescribeImageVersionInput, output *DescribeImageVersionOutput, err error) (bool, error) { + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ResourceNotFoundException" == apiErr.ErrorCode() { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("ImageVersionStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "DELETE_FAILED" + value, ok := pathValue.(types.ImageVersionStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageVersionStatus value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "ValidationException" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeImageVersion(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index 3146ff49743..c085edbc746 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -37600,6 +37600,51 @@ func awsAwsjson11_deserializeDocumentLabelingJobSummaryList(v *[]types.LabelingJ return nil } +func awsAwsjson11_deserializeDocumentLambdaStepMetadata(v **types.LambdaStepMetadata, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.LambdaStepMetadata + if *v == nil { + sv = &types.LambdaStepMetadata{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "OutputParameters": + if err := awsAwsjson11_deserializeDocumentOutputParameterList(&sv.OutputParameters, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentLineageEntityParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -43419,6 +43464,11 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionStepMetadata(v **types.Pip return err } + case "Lambda": + if err := awsAwsjson11_deserializeDocumentLambdaStepMetadata(&sv.Lambda, value); err != nil { + return err + } + case "Model": if err := awsAwsjson11_deserializeDocumentModelStepMetadata(&sv.Model, value); err != nil { return err diff --git a/service/sagemaker/types/enums.go b/service/sagemaker/types/enums.go index 3704f899ce4..85321b86b99 100644 --- a/service/sagemaker/types/enums.go +++ b/service/sagemaker/types/enums.go @@ -109,6 +109,14 @@ const ( AppInstanceTypeMlM512xlarge AppInstanceType = "ml.m5.12xlarge" AppInstanceTypeMlM516xlarge AppInstanceType = "ml.m5.16xlarge" AppInstanceTypeMlM524xlarge AppInstanceType = "ml.m5.24xlarge" + AppInstanceTypeMlM5dLarge AppInstanceType = "ml.m5d.large" + AppInstanceTypeMlM5dXlarge AppInstanceType = "ml.m5d.xlarge" + AppInstanceTypeMlM5d2xlarge AppInstanceType = "ml.m5d.2xlarge" + AppInstanceTypeMlM5d4xlarge AppInstanceType = "ml.m5d.4xlarge" + AppInstanceTypeMlM5d8xlarge AppInstanceType = "ml.m5d.8xlarge" + AppInstanceTypeMlM5d12xlarge AppInstanceType = "ml.m5d.12xlarge" + AppInstanceTypeMlM5d16xlarge AppInstanceType = "ml.m5d.16xlarge" + AppInstanceTypeMlM5d24xlarge AppInstanceType = "ml.m5d.24xlarge" AppInstanceTypeMlC5Large AppInstanceType = "ml.c5.large" AppInstanceTypeMlC5Xlarge AppInstanceType = "ml.c5.xlarge" AppInstanceTypeMlC52xlarge AppInstanceType = "ml.c5.2xlarge" @@ -120,12 +128,21 @@ const ( AppInstanceTypeMlP32xlarge AppInstanceType = "ml.p3.2xlarge" AppInstanceTypeMlP38xlarge AppInstanceType = "ml.p3.8xlarge" AppInstanceTypeMlP316xlarge AppInstanceType = "ml.p3.16xlarge" + AppInstanceTypeMlP3dn24xlarge AppInstanceType = "ml.p3dn.24xlarge" AppInstanceTypeMlG4dnXlarge AppInstanceType = "ml.g4dn.xlarge" AppInstanceTypeMlG4dn2xlarge AppInstanceType = "ml.g4dn.2xlarge" AppInstanceTypeMlG4dn4xlarge AppInstanceType = "ml.g4dn.4xlarge" AppInstanceTypeMlG4dn8xlarge AppInstanceType = "ml.g4dn.8xlarge" AppInstanceTypeMlG4dn12xlarge AppInstanceType = "ml.g4dn.12xlarge" AppInstanceTypeMlG4dn16xlarge AppInstanceType = "ml.g4dn.16xlarge" + AppInstanceTypeMlR5Large AppInstanceType = "ml.r5.large" + AppInstanceTypeMlR5Xlarge AppInstanceType = "ml.r5.xlarge" + AppInstanceTypeMlR52xlarge AppInstanceType = "ml.r5.2xlarge" + AppInstanceTypeMlR54xlarge AppInstanceType = "ml.r5.4xlarge" + AppInstanceTypeMlR58xlarge AppInstanceType = "ml.r5.8xlarge" + AppInstanceTypeMlR512xlarge AppInstanceType = "ml.r5.12xlarge" + AppInstanceTypeMlR516xlarge AppInstanceType = "ml.r5.16xlarge" + AppInstanceTypeMlR524xlarge AppInstanceType = "ml.r5.24xlarge" ) // Values returns all known values for AppInstanceType. Note that this can be @@ -148,6 +165,14 @@ func (AppInstanceType) Values() []AppInstanceType { "ml.m5.12xlarge", "ml.m5.16xlarge", "ml.m5.24xlarge", + "ml.m5d.large", + "ml.m5d.xlarge", + "ml.m5d.2xlarge", + "ml.m5d.4xlarge", + "ml.m5d.8xlarge", + "ml.m5d.12xlarge", + "ml.m5d.16xlarge", + "ml.m5d.24xlarge", "ml.c5.large", "ml.c5.xlarge", "ml.c5.2xlarge", @@ -159,12 +184,21 @@ func (AppInstanceType) Values() []AppInstanceType { "ml.p3.2xlarge", "ml.p3.8xlarge", "ml.p3.16xlarge", + "ml.p3dn.24xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", "ml.g4dn.8xlarge", "ml.g4dn.12xlarge", "ml.g4dn.16xlarge", + "ml.r5.large", + "ml.r5.xlarge", + "ml.r5.2xlarge", + "ml.r5.4xlarge", + "ml.r5.8xlarge", + "ml.r5.12xlarge", + "ml.r5.16xlarge", + "ml.r5.24xlarge", } } diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index 8acadcb40e8..9a77d05c231 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -6259,6 +6259,19 @@ type LabelingJobSummary struct { noSmithyDocumentSerde } +// Metadata for a Lambda step. +type LambdaStepMetadata struct { + + // The Amazon Resource Name (ARN) of the Lambda function that was run by this step + // execution. + Arn *string + + // A list of the output parameters of the Lambda step. + OutputParameters []OutputParameter + + noSmithyDocumentSerde +} + // Defines an Amazon Cognito or your own OIDC IdP user group that is part of a work // team. type MemberDefinition struct { @@ -8272,20 +8285,27 @@ type PipelineExecutionStep struct { // Metadata for a step execution. type PipelineExecutionStepMetadata struct { - // Metadata about a callback step. + // The URL of the Amazon SQS queue used by this step execution, the pipeline + // generated token, and a list of output parameters. Callback *CallbackStepMetadata - // If this is a Condition step metadata object, details on the condition. + // The outcome of the condition evaluation that was run by this step execution. Condition *ConditionStepMetadata - // Metadata for the Model step. + // The Amazon Resource Name (ARN) of the Lambda function that was run by this step + // execution and a list of output parameters. + Lambda *LambdaStepMetadata + + // The Amazon Resource Name (ARN) of the model that was created by this step + // execution. Model *ModelStepMetadata // The Amazon Resource Name (ARN) of the processing job that was run by this step // execution. ProcessingJob *ProcessingJobStepMetadata - // Metadata for the RegisterModel step. + // The Amazon Resource Name (ARN) of the model package the model was registered to + // by this step execution. RegisterModel *RegisterModelStepMetadata // The Amazon Resource Name (ARN) of the training job that was run by this step @@ -9988,10 +10008,10 @@ type SourceIpConfig struct { // hyperparameter tuning job can run. It also specifies how long a managed Spot // training job has to complete. When the job reaches the time limit, Amazon // SageMaker ends the training or compilation job. Use this API to cap model -// training costs. To stop a job, Amazon SageMaker sends the algorithm the SIGTERM -// signal, which delays job termination for 120 seconds. Algorithms can use this -// 120-second window to save the model artifacts, so the results of training are -// not lost. The training algorithms provided by Amazon SageMaker automatically +// training costs. To stop a training job, Amazon SageMaker sends the algorithm the +// SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use +// this 120-second window to save the model artifacts, so the results of training +// are not lost. The training algorithms provided by Amazon SageMaker automatically // save the intermediate results of a model training job when possible. This // attempt to save artifacts is only a best effort case as model might not be in a // state from which it can be saved. For example, if training has just started, the @@ -10003,10 +10023,13 @@ type SourceIpConfig struct { type StoppingCondition struct { // The maximum length of time, in seconds, that a training or compilation job can - // run. If the job does not complete during this time, Amazon SageMaker ends the - // job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds - // specifies the maximum time for all of the attempts in total, not each individual - // attempt. The default value is 1 day. The maximum value is 28 days. + // run. For compilation jobs, if the job does not complete during this time, you + // will receive a TimeOut error. We recommend starting with 900 seconds and + // increase as necessary based on your model. For all other jobs, if the job does + // not complete during this time, Amazon SageMaker ends the job. When RetryStrategy + // is specified in the job request, MaxRuntimeInSeconds specifies the maximum time + // for all of the attempts in total, not each individual attempt. The default value + // is 1 day. The maximum value is 28 days. MaxRuntimeInSeconds int32 // The maximum length of time, in seconds, that a managed Spot training job has to diff --git a/service/secretsmanager/api_op_CreateSecret.go b/service/secretsmanager/api_op_CreateSecret.go index aae83818acf..8c2290f88f0 100644 --- a/service/secretsmanager/api_op_CreateSecret.go +++ b/service/secretsmanager/api_op_CreateSecret.go @@ -28,50 +28,53 @@ import ( // // * If you call an // operation to encrypt or decrypt the SecretString or SecretBinary for a secret in -// the same account as the calling user and that secret doesn't specify a AWS KMS -// encryption key, Secrets Manager uses the account's default AWS managed customer -// master key (CMK) with the alias aws/secretsmanager. If this key doesn't already -// exist in your account then Secrets Manager creates it for you automatically. All -// users and roles in the same AWS account automatically have access to use the -// default CMK. Note that if an Secrets Manager API call results in AWS creating -// the account's AWS-managed CMK, it can result in a one-time significant delay in -// returning the result. +// the same account as the calling user and that secret doesn't specify a Amazon +// Web Services KMS encryption key, Secrets Manager uses the account's default +// Amazon Web Services managed customer master key (CMK) with the alias +// aws/secretsmanager. If this key doesn't already exist in your account then +// Secrets Manager creates it for you automatically. All users and roles in the +// same Amazon Web Services account automatically have access to use the default +// CMK. Note that if an Secrets Manager API call results in Amazon Web Services +// creating the account's Amazon Web Services-managed CMK, it can result in a +// one-time significant delay in returning the result. // -// * If the secret resides in a different AWS account from -// the credentials calling an API that requires encryption or decryption of the -// secret value then you must create and use a custom AWS KMS CMK because you can't -// access the default CMK for the account using credentials from a different AWS +// * If the secret resides in +// a different Amazon Web Services account from the credentials calling an API that +// requires encryption or decryption of the secret value then you must create and +// use a custom Amazon Web Services KMS CMK because you can't access the default +// CMK for the account using credentials from a different Amazon Web Services // account. Store the ARN of the CMK in the secret when you create the secret or // when you update it by including it in the KMSKeyId. If you call an API that must // encrypt or decrypt SecretString or SecretBinary using credentials from a -// different account then the AWS KMS key policy must grant cross-account access to -// that other account's user or role for both the kms:GenerateDataKey and -// kms:Decrypt operations. +// different account then the Amazon Web Services KMS key policy must grant +// cross-account access to that other account's user or role for both the +// kms:GenerateDataKey and kms:Decrypt operations. // -// Minimum permissions To run this command, you must have -// the following permissions: +// Minimum permissions To run this +// command, you must have the following permissions: // -// * secretsmanager:CreateSecret +// * +// secretsmanager:CreateSecret +// +// * kms:GenerateDataKey - needed only if you use a +// customer-managed Amazon Web Services KMS key to encrypt the secret. You do not +// need this permission to use the account default Amazon Web Services managed CMK +// for Secrets Manager. // -// * kms:GenerateDataKey -// - needed only if you use a customer-managed AWS KMS key to encrypt the secret. -// You do not need this permission to use the account default AWS managed CMK for +// * kms:Decrypt - needed only if you use a customer-managed +// Amazon Web Services KMS key to encrypt the secret. You do not need this +// permission to use the account default Amazon Web Services managed CMK for // Secrets Manager. // -// * kms:Decrypt - needed only if you use a customer-managed AWS -// KMS key to encrypt the secret. You do not need this permission to use the -// account default AWS managed CMK for Secrets Manager. -// -// * -// secretsmanager:TagResource - needed only if you include the Tags -// parameter. +// * secretsmanager:TagResource - needed only if you include the +// Tags parameter. // // Related operations // // * To delete a secret, use DeleteSecret. // -// * To -// modify an existing secret, use UpdateSecret. +// * +// To modify an existing secret, use UpdateSecret. // // * To create a new version of a // secret, use PutSecretValue. @@ -120,31 +123,31 @@ type CreateSecretInput struct { // (Optional) If you include SecretString or SecretBinary, then an initial version // is created as part of the secret, and this parameter specifies a unique - // identifier for the new version. If you use the AWS CLI or one of the AWS SDK to - // call this operation, then you can leave this parameter empty. The CLI or SDK - // generates a random UUID for you and includes it as the value for this parameter - // in the request. If you don't use the SDK and instead generate a raw HTTP request - // to the Secrets Manager service endpoint, then you must generate a - // ClientRequestToken yourself for the new version and include the value in the - // request. This value helps ensure idempotency. Secrets Manager uses this value to - // prevent the accidental creation of duplicate versions if there are failures and - // retries during a rotation. We recommend that you generate a UUID-type - // (https://wikipedia.org/wiki/Universally_unique_identifier) value to ensure - // uniqueness of your versions within the specified secret. + // identifier for the new version. If you use the Amazon Web Services CLI or one of + // the Amazon Web Services SDK to call this operation, then you can leave this + // parameter empty. The CLI or SDK generates a random UUID for you and includes it + // as the value for this parameter in the request. If you don't use the SDK and + // instead generate a raw HTTP request to the Secrets Manager service endpoint, + // then you must generate a ClientRequestToken yourself for the new version and + // include the value in the request. This value helps ensure idempotency. Secrets + // Manager uses this value to prevent the accidental creation of duplicate versions + // if there are failures and retries during a rotation. We recommend that you + // generate a UUID-type (https://wikipedia.org/wiki/Universally_unique_identifier) + // value to ensure uniqueness of your versions within the specified secret. // - // * If the - // ClientRequestToken value isn't already associated with a version of the secret - // then a new version of the secret is created. - // - // * If a version with this value - // already exists and the version SecretString and SecretBinary values are the same - // as those in the request, then the request is ignored. + // * If + // the ClientRequestToken value isn't already associated with a version of the + // secret then a new version of the secret is created. // // * If a version with this - // value already exists and that version's SecretString and SecretBinary values are - // different from those in the request, then the request fails because you cannot - // modify an existing version. Instead, use PutSecretValue to create a new - // version. + // value already exists and the version SecretString and SecretBinary values are + // the same as those in the request, then the request is ignored. + // + // * If a version + // with this value already exists and that version's SecretString and SecretBinary + // values are different from those in the request, then the request fails because + // you cannot modify an existing version. Instead, use PutSecretValue to create a + // new version. // // This value becomes the VersionId of the new version. ClientRequestToken *string @@ -156,13 +159,14 @@ type CreateSecretInput struct { // destination region. ForceOverwriteReplicaSecret bool - // (Optional) Specifies the ARN, Key ID, or alias of the AWS KMS customer master - // key (CMK) to be used to encrypt the SecretString or SecretBinary values in the - // versions stored in this secret. You can specify any of the supported ways to - // identify a AWS KMS key ID. If you need to reference a CMK in a different - // account, you can use only the key ARN or the alias ARN. If you don't specify - // this value, then Secrets Manager defaults to using the AWS account's default CMK - // (the one named aws/secretsmanager). If a AWS KMS CMK with that name doesn't yet + // (Optional) Specifies the ARN, Key ID, or alias of the Amazon Web Services KMS + // customer master key (CMK) to be used to encrypt the SecretString or SecretBinary + // values in the versions stored in this secret. You can specify any of the + // supported ways to identify a Amazon Web Services KMS key ID. If you need to + // reference a CMK in a different account, you can use only the key ARN or the + // alias ARN. If you don't specify this value, then Secrets Manager defaults to + // using the Amazon Web Services account's default CMK (the one named + // aws/secretsmanager). If a Amazon Web Services KMS CMK with that name doesn't yet // exist, then Secrets Manager creates it for you automatically the first time it // needs to encrypt a version's SecretString or SecretBinary fields. You can use // the account default CMK to encrypt and decrypt only if you call this operation @@ -177,7 +181,8 @@ type CreateSecretInput struct { // technique for your tool to pass the contents of the file as a parameter. Either // SecretString or SecretBinary must have a value, but not both. They cannot both // be empty. This parameter is not available using the Secrets Manager console. It - // can be accessed only by using the AWS CLI or one of the AWS SDKs. + // can be accessed only by using the Amazon Web Services CLI or one of the Amazon + // Web Services SDKs. SecretBinary []byte // (Optional) Specifies text data that you want to encrypt and store in this new @@ -191,10 +196,10 @@ type CreateSecretInput struct { // how to format a JSON parameter for the various command line tool environments, // see Using JSON for Parameters // (https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json) - // in the AWS CLI User Guide. For example: - // {"username":"bob","password":"abc123xyz456"} If your command-line tool or SDK - // requires quotation marks around the parameter, you should use single quotes to - // avoid confusion with the double quotes required in the JSON text. + // in the CLI User Guide. For example: {"username":"bob","password":"abc123xyz456"} + // If your command-line tool or SDK requires quotation marks around the parameter, + // you should use single quotes to avoid confusion with the double quotes required + // in the JSON text. SecretString *string // (Optional) Specifies a list of user-defined tags that are attached to the @@ -216,7 +221,7 @@ type CreateSecretInput struct { // parameter for the various command line tool environments, see Using JSON for // Parameters // (https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json) - // in the AWS CLI User Guide. For example: + // in the CLI User Guide. For example: // [{"Key":"CostCenter","Value":"12345"},{"Key":"environment","Value":"production"}] // If your command-line tool or SDK requires quotation marks around the parameter, // you should use single quotes to avoid confusion with the double quotes required @@ -234,14 +239,15 @@ type CreateSecretInput struct { // values are case sensitive. // // * Do not use the aws: prefix in your tag names or - // values because AWS reserves it for AWS use. You can't edit or delete tag names - // or values with this prefix. Tags with this prefix do not count against your tags - // per secret limit. + // values because Amazon Web Services reserves it for Amazon Web Services use. You + // can't edit or delete tag names or values with this prefix. Tags with this prefix + // do not count against your tags per secret limit. // - // * If you use your tagging schema across multiple services and - // resources, remember other services might have restrictions on allowed - // characters. Generally allowed characters: letters, spaces, and numbers - // representable in UTF-8, plus the following special characters: + - = . _ : / @. + // * If you use your tagging + // schema across multiple services and resources, remember other services might + // have restrictions on allowed characters. Generally allowed characters: letters, + // spaces, and numbers representable in UTF-8, plus the following special + // characters: + - = . _ : / @. Tags []types.Tag noSmithyDocumentSerde diff --git a/service/secretsmanager/api_op_DeleteSecret.go b/service/secretsmanager/api_op_DeleteSecret.go index 8aed18fc583..686d000505f 100644 --- a/service/secretsmanager/api_op_DeleteSecret.go +++ b/service/secretsmanager/api_op_DeleteSecret.go @@ -91,12 +91,12 @@ type DeleteSecretInput struct { // write code to delete and then immediately recreate a secret with the same name, // ensure that your code includes appropriate back off and retry logic. Use this // parameter with caution. This parameter causes the operation to skip the normal - // waiting period before the permanent deletion that AWS would normally impose with - // the 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. If you use this parameter and include a - // previously deleted or nonexistent secret, the operation does not return the - // error ResourceNotFoundException in order to correctly handle retries. + // waiting period before the permanent deletion that Amazon Web Services would + // normally impose with the 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. If you use this parameter + // and include a previously deleted or nonexistent secret, the operation does not + // return the error ResourceNotFoundException in order to correctly handle retries. ForceDeleteWithoutRecovery bool // (Optional) Specifies the number of days that Secrets Manager waits before diff --git a/service/secretsmanager/api_op_DescribeSecret.go b/service/secretsmanager/api_op_DescribeSecret.go index 40d23986a3c..d1ee97b92fe 100644 --- a/service/secretsmanager/api_op_DescribeSecret.go +++ b/service/secretsmanager/api_op_DescribeSecret.go @@ -30,8 +30,8 @@ import ( // retrieve the encrypted secret information in a version of the secret, use // GetSecretValue. // -// * To list all of the secrets in the AWS account, use -// ListSecrets. +// * To list all of the secrets in the Amazon Web Services +// account, use ListSecrets. func (c *Client) DescribeSecret(ctx context.Context, params *DescribeSecretInput, optFns ...func(*Options)) (*DescribeSecretOutput, error) { if params == nil { params = &DescribeSecretInput{} @@ -91,11 +91,11 @@ type DescribeSecretOutput struct { // The user-provided description of the secret. Description *string - // The ARN or alias of the AWS KMS customer master key (CMK) that's used to encrypt - // the SecretString or SecretBinary fields in each version of the secret. If you - // don't provide a key, then Secrets Manager defaults to encrypting the secret - // fields with the default AWS KMS CMK (the one named awssecretsmanager) for this - // account. + // The ARN or alias of the Amazon Web Services KMS customer master key (CMK) that's + // used to encrypt the SecretString or SecretBinary fields in each version of the + // secret. If you don't provide a key, then Secrets Manager defaults to encrypting + // the secret fields with the default Amazon Web Services KMS CMK (the one named + // awssecretsmanager) for this account. KmsKeyId *string // The last date that this secret was accessed. This value is truncated to midnight diff --git a/service/secretsmanager/api_op_GetResourcePolicy.go b/service/secretsmanager/api_op_GetResourcePolicy.go index 2d1260f79c5..6565f244f14 100644 --- a/service/secretsmanager/api_op_GetResourcePolicy.go +++ b/service/secretsmanager/api_op_GetResourcePolicy.go @@ -83,10 +83,10 @@ type GetResourcePolicyOutput struct { // the attached secret. These permissions are combined with any permissions that // are associated with the user or role that attempts to access this secret. The // combined permissions specify who can access the secret and what actions they can - // perform. For more information, see Authentication and Access Control for AWS - // Secrets Manager + // perform. For more information, see Authentication and Access Control for Amazon + // Web Services Secrets Manager // (http://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html) - // in the AWS Secrets Manager User Guide. + // in the Amazon Web Services Secrets Manager User Guide. ResourcePolicy *string // Metadata pertaining to the operation's result. diff --git a/service/secretsmanager/api_op_GetSecretValue.go b/service/secretsmanager/api_op_GetSecretValue.go index f14c8aff4cf..918d507e668 100644 --- a/service/secretsmanager/api_op_GetSecretValue.go +++ b/service/secretsmanager/api_op_GetSecretValue.go @@ -19,17 +19,17 @@ import ( // secretsmanager:GetSecretValue // // * kms:Decrypt - required only if you use a -// customer-managed AWS KMS key to encrypt the secret. You do not need this -// permission to use the account's default AWS managed CMK for Secrets -// Manager. +// customer-managed Amazon Web Services KMS key to encrypt the secret. You do not +// need this permission to use the account's default Amazon Web Services managed +// CMK for Secrets Manager. // // Related operations // -// * To create a new version of the secret with -// different encrypted information, use PutSecretValue. +// * To create a new version of the +// secret with different encrypted information, use PutSecretValue. // -// * To retrieve the -// non-encrypted details for the secret, use DescribeSecret. +// * To retrieve +// the non-encrypted details for the secret, use DescribeSecret. func (c *Client) GetSecretValue(ctx context.Context, params *GetSecretValueInput, optFns ...func(*Options)) (*GetSecretValueOutput, error) { if params == nil { params = &GetSecretValueInput{} diff --git a/service/secretsmanager/api_op_ListSecrets.go b/service/secretsmanager/api_op_ListSecrets.go index a1767dd3403..e10f9b194a9 100644 --- a/service/secretsmanager/api_op_ListSecrets.go +++ b/service/secretsmanager/api_op_ListSecrets.go @@ -12,10 +12,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all of the secrets that are stored by Secrets Manager in the AWS account. -// To list the versions currently stored for a specific secret, use -// ListSecretVersionIds. The encrypted fields SecretString and SecretBinary are not -// included in the output. To get that information, call the GetSecretValue +// Lists all of the secrets that are stored by Secrets Manager in the Amazon Web +// Services account. To list the versions currently stored for a specific secret, +// use ListSecretVersionIds. The encrypted fields SecretString and SecretBinary are +// not included in the output. To get that information, call the GetSecretValue // operation. Always check the NextToken response parameter when calling any of the // List* operations. These operations can occasionally return an empty or shorter // than expected list of results even when there more results become available. diff --git a/service/secretsmanager/api_op_PutResourcePolicy.go b/service/secretsmanager/api_op_PutResourcePolicy.go index fc16eeabfde..a13d0eeaac7 100644 --- a/service/secretsmanager/api_op_PutResourcePolicy.go +++ b/service/secretsmanager/api_op_PutResourcePolicy.go @@ -16,10 +16,11 @@ import ( // the policy statement's Resources element. You can also use a combination of both // identity-based and resource-based policies. The affected users and roles receive // the permissions that are permitted by all of the relevant policies. For more -// information, see Using Resource-Based Policies for AWS Secrets Manager +// information, see Using Resource-Based Policies for Amazon Web Services Secrets +// Manager // (http://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-based-policies.html). -// For the complete description of the AWS policy syntax and grammar, see IAM JSON -// Policy Reference +// For the complete description of the Amazon Web Services policy syntax and +// grammar, see IAM JSON Policy Reference // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html) in // the IAM User Guide. Minimum permissions To run this command, you must have the // following permissions: @@ -55,12 +56,12 @@ func (c *Client) PutResourcePolicy(ctx context.Context, params *PutResourcePolic type PutResourcePolicyInput struct { // A JSON-formatted string constructed according to the grammar and syntax for an - // AWS resource-based policy. The policy in the string identifies who can access or - // manage this secret and its versions. For information on how to format a JSON - // parameter for the various command line tool environments, see Using JSON for - // Parameters + // Amazon Web Services resource-based policy. The policy in the string identifies + // who can access or manage this secret and its versions. For information on how to + // format a JSON parameter for the various command line tool environments, see + // Using JSON for Parameters // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json) - // in the AWS CLI User Guide. + // in the CLI User Guide. // // This member is required. ResourcePolicy *string diff --git a/service/secretsmanager/api_op_PutSecretValue.go b/service/secretsmanager/api_op_PutSecretValue.go index 67bc5fda2b6..90406e2ba04 100644 --- a/service/secretsmanager/api_op_PutSecretValue.go +++ b/service/secretsmanager/api_op_PutSecretValue.go @@ -16,72 +16,75 @@ import ( // contain a new SecretString value or a new SecretBinary value. You can also // specify the staging labels that are initially attached to the new version. The // Secrets Manager console uses only the SecretString field. To add binary data to -// a secret with the SecretBinary field you must use the AWS CLI or one of the AWS -// SDKs. +// a secret with the SecretBinary field you must use the Amazon Web Services CLI or +// one of the Amazon Web Services SDKs. // -// * If this operation creates the first version for the secret then Secrets -// Manager automatically attaches the staging label AWSCURRENT to the new -// version. +// * If this operation creates the first +// version for the secret then Secrets Manager automatically attaches the staging +// label AWSCURRENT to the new version. // -// * If you do not specify a value for VersionStages then Secrets Manager -// automatically moves the staging label AWSCURRENT to this new version. +// * If you do not specify a value for +// VersionStages then Secrets Manager automatically moves the staging label +// AWSCURRENT to this new version. // -// * If this -// operation moves the staging label AWSCURRENT from another version to this -// version, then Secrets Manager also automatically moves the staging label -// AWSPREVIOUS to the version that AWSCURRENT was removed from. +// * If this operation moves the staging label +// AWSCURRENT from another version to this version, then Secrets Manager also +// automatically moves the staging label AWSPREVIOUS to the version that AWSCURRENT +// was removed from. // -// * This operation -// is idempotent. If a version with a VersionId with the same value as the -// ClientRequestToken parameter already exists and you specify the same secret -// data, the operation succeeds but does nothing. However, if the secret data is -// different, then the operation fails because you cannot modify an existing -// version; you can only create new ones. +// * This operation is idempotent. If a version with a VersionId +// with the same value as the ClientRequestToken parameter already exists and you +// specify the same secret data, the operation succeeds but does nothing. However, +// if the secret data is different, then the operation fails because you cannot +// modify an existing version; you can only create new ones. // -// * If you call an operation to encrypt or -// decrypt the SecretString or SecretBinary for a secret in the same account as the -// calling user and that secret doesn't specify a AWS KMS encryption key, Secrets -// Manager uses the account's default AWS managed customer master key (CMK) with -// the alias aws/secretsmanager. If this key doesn't already exist in your account -// then Secrets Manager creates it for you automatically. All users and roles in -// the same AWS account automatically have access to use the default CMK. Note that -// if an Secrets Manager API call results in AWS creating the account's AWS-managed -// CMK, it can result in a one-time significant delay in returning the result. +// * If you call an +// operation to encrypt or decrypt the SecretString or SecretBinary for a secret in +// the same account as the calling user and that secret doesn't specify a Amazon +// Web Services KMS encryption key, Secrets Manager uses the account's default +// Amazon Web Services managed customer master key (CMK) with the alias +// aws/secretsmanager. If this key doesn't already exist in your account then +// Secrets Manager creates it for you automatically. All users and roles in the +// same Amazon Web Services account automatically have access to use the default +// CMK. Note that if an Secrets Manager API call results in Amazon Web Services +// creating the account's Amazon Web Services-managed CMK, it can result in a +// one-time significant delay in returning the result. // -// * -// If the secret resides in a different AWS account from the credentials calling an -// API that requires encryption or decryption of the secret value then you must -// create and use a custom AWS KMS CMK because you can't access the default CMK for -// the account using credentials from a different AWS account. Store the ARN of the -// CMK in the secret when you create the secret or when you update it by including -// it in the KMSKeyId. If you call an API that must encrypt or decrypt SecretString -// or SecretBinary using credentials from a different account then the AWS KMS key -// policy must grant cross-account access to that other account's user or role for -// both the kms:GenerateDataKey and kms:Decrypt operations. +// * If the secret resides in +// a different Amazon Web Services account from the credentials calling an API that +// requires encryption or decryption of the secret value then you must create and +// use a custom Amazon Web Services KMS CMK because you can't access the default +// CMK for the account using credentials from a different Amazon Web Services +// account. Store the ARN of the CMK in the secret when you create the secret or +// when you update it by including it in the KMSKeyId. If you call an API that must +// encrypt or decrypt SecretString or SecretBinary using credentials from a +// different account then the Amazon Web Services KMS key policy must grant +// cross-account access to that other account's user or role for both the +// kms:GenerateDataKey and kms:Decrypt operations. // -// Minimum permissions To -// run this command, you must have the following permissions: +// Minimum permissions To run this +// command, you must have the following permissions: // // * // secretsmanager:PutSecretValue // // * kms:GenerateDataKey - needed only if you use a -// customer-managed AWS KMS key to encrypt the secret. You do not need this -// permission to use the account's default AWS managed CMK for Secrets -// Manager. +// customer-managed Amazon Web Services KMS key to encrypt the secret. You do not +// need this permission to use the account's default Amazon Web Services managed +// CMK for Secrets Manager. // // Related operations // -// * To retrieve the encrypted value you store in the -// version of a secret, use GetSecretValue. +// * To retrieve the encrypted value +// you store in the version of a secret, use GetSecretValue. // -// * To create a secret, use -// CreateSecret. +// * To create a secret, +// use CreateSecret. // // * To get the details for a secret, use DescribeSecret. // -// * To list -// the versions attached to a secret, use ListSecretVersionIds. +// * To +// list the versions attached to a secret, use ListSecretVersionIds. func (c *Client) PutSecretValue(ctx context.Context, params *PutSecretValueInput, optFns ...func(*Options)) (*PutSecretValueOutput, error) { if params == nil { params = &PutSecretValueInput{} @@ -121,33 +124,33 @@ type PutSecretValueInput struct { SecretId *string // (Optional) Specifies a unique identifier for the new version of the secret. If - // you use the AWS CLI or one of the AWS SDK to call this operation, then you can - // leave this parameter empty. The CLI or SDK generates a random UUID for you and - // includes that in the request. If you don't use the SDK and instead generate a - // raw HTTP request to the Secrets Manager service endpoint, then you must generate - // a ClientRequestToken yourself for new versions and include that value in the - // request. This value helps ensure idempotency. Secrets Manager uses this value to - // prevent the accidental creation of duplicate versions if there are failures and - // retries during the Lambda rotation function's processing. We recommend that you - // generate a UUID-type (https://wikipedia.org/wiki/Universally_unique_identifier) - // value to ensure uniqueness within the specified secret. + // you use the Amazon Web Services CLI or one of the Amazon Web Services SDK to + // call this operation, then you can leave this parameter empty. The CLI or SDK + // generates a random UUID for you and includes that in the request. If you don't + // use the SDK and instead generate a raw HTTP request to the Secrets Manager + // service endpoint, then you must generate a ClientRequestToken yourself for new + // versions and include that value in the request. This value helps ensure + // idempotency. Secrets Manager uses this value to prevent the accidental creation + // of duplicate versions if there are failures and retries during the Lambda + // rotation function's processing. We recommend that you generate a UUID-type + // (https://wikipedia.org/wiki/Universally_unique_identifier) value to ensure + // uniqueness within the specified secret. // - // * If the - // ClientRequestToken value isn't already associated with a version of the secret - // then a new version of the secret is created. + // * If the ClientRequestToken value isn't + // already associated with a version of the secret then a new version of the secret + // is created. // - // * If a version with this value - // already exists and that version's SecretString or SecretBinary values are the - // same as those in the request then the request is ignored (the operation is - // idempotent). + // * If a version with this value already exists and that version's + // SecretString or SecretBinary values are the same as those in the request then + // the request is ignored (the operation is idempotent). // - // * If a version with this value already exists and the version of - // the SecretString and SecretBinary values are different from those in the request - // then the request fails because you cannot modify an existing secret version. You - // can only create new versions to store new secret values. + // * If a version with this + // value already exists and the version of the SecretString and SecretBinary values + // are different from those in the request then the request fails because you + // cannot modify an existing secret version. You can only create new versions to + // store new secret values. // - // This value becomes the - // VersionId of the new version. + // This value becomes the VersionId of the new version. ClientRequestToken *string // (Optional) Specifies binary data that you want to encrypt and store in the new @@ -170,7 +173,7 @@ type PutSecretValueInput struct { // information on how to format a JSON parameter for the various command line tool // environments, see Using JSON for Parameters // (https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json) - // in the AWS CLI User Guide. For example: + // in the CLI User Guide. For example: // [{"username":"bob"},{"password":"abc123xyz456"}] If your command-line tool or // SDK requires quotation marks around the parameter, you should use single quotes // to avoid confusion with the double quotes required in the JSON text. diff --git a/service/secretsmanager/api_op_RotateSecret.go b/service/secretsmanager/api_op_RotateSecret.go index 2044cd374f2..c6326854614 100644 --- a/service/secretsmanager/api_op_RotateSecret.go +++ b/service/secretsmanager/api_op_RotateSecret.go @@ -18,32 +18,33 @@ import ( // configuration parameters, the operation starts a rotation with the values // already stored in the secret. After the rotation completes, the protected // service and its clients all use the new version of the secret. This required -// configuration information includes the ARN of an AWS Lambda function and the -// time between scheduled rotations. The Lambda rotation function creates a new -// version of the secret and creates or updates the credentials on the protected -// service to match. After testing the new credentials, the function marks the new -// secret with the staging label AWSCURRENT so that your clients all immediately -// begin to use the new version. For more information about rotating secrets and -// how to configure a Lambda function to rotate the secrets for your protected -// service, see Rotating Secrets in AWS Secrets Manager +// configuration information includes the ARN of an Amazon Web Services Lambda +// function and optionally, the time between scheduled rotations. The Lambda +// rotation function creates a new version of the secret and creates or updates the +// credentials on the protected service to match. After testing the new +// credentials, the function marks the new secret with the staging label AWSCURRENT +// so that your clients all immediately begin to use the new version. For more +// information about rotating secrets and how to configure a Lambda function to +// rotate the secrets for your protected service, see Rotating Secrets in Amazon +// Web Services Secrets Manager // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html) -// in the AWS Secrets Manager User Guide. Secrets Manager schedules the next -// rotation when the previous one completes. Secrets Manager schedules the date by -// adding the rotation interval (number of days) to the actual date of the last -// rotation. The service chooses the hour within that 24-hour date window randomly. -// The minute is also chosen somewhat randomly, but weighted towards the top of the -// hour and influenced by a variety of factors that help distribute load. The -// rotation function must end with the versions of the secret in one of two -// states: +// in the Amazon Web Services Secrets Manager User Guide. Secrets Manager schedules +// the next rotation when the previous one completes. Secrets Manager schedules the +// date by adding the rotation interval (number of days) to the actual date of the +// last rotation. The service chooses the hour within that 24-hour date window +// randomly. The minute is also chosen somewhat randomly, but weighted towards the +// top of the hour and influenced by a variety of factors that help distribute +// load. The rotation function must end with the versions of the secret in one of +// two states: // -// * The AWSPENDING and AWSCURRENT staging labels are attached to the same -// version of the secret, or +// * The AWSPENDING and AWSCURRENT staging labels are attached to the +// same version of the secret, or // -// * The AWSPENDING staging label is not attached to any -// version of the secret. +// * The AWSPENDING staging label is not attached +// to any version of the secret. // -// If the AWSPENDING staging label is present but not -// attached to the same version as AWSCURRENT then any later invocation of +// If the AWSPENDING staging label is present but +// not attached to the same version as AWSCURRENT then any later invocation of // RotateSecret assumes that a previous rotation request is still in progress and // returns an error. Minimum permissions To run this command, you must have the // following permissions: @@ -105,15 +106,15 @@ type RotateSecretInput struct { SecretId *string // (Optional) Specifies a unique identifier for the new version of the secret that - // helps ensure idempotency. If you use the AWS CLI or one of the AWS SDK to call - // this operation, then you can leave this parameter empty. The CLI or SDK - // generates a random UUID for you and includes that in the request for this - // parameter. If you don't use the SDK and instead generate a raw HTTP request to - // the Secrets Manager service endpoint, then you must generate a - // ClientRequestToken yourself for new versions and include that value in the - // request. You only need to specify your own value if you implement your own retry - // logic and want to ensure that a given secret is not created twice. We recommend - // that you generate a UUID-type + // helps ensure idempotency. If you use the Amazon Web Services CLI or one of the + // Amazon Web Services SDK to call this operation, then you can leave this + // parameter empty. The CLI or SDK generates a random UUID for you and includes + // that in the request for this parameter. If you don't use the SDK and instead + // generate a raw HTTP request to the Secrets Manager service endpoint, then you + // must generate a ClientRequestToken yourself for new versions and include that + // value in the request. You only need to specify your own value if you implement + // your own retry logic and want to ensure that a given secret is not created + // twice. We recommend that you generate a UUID-type // (https://wikipedia.org/wiki/Universally_unique_identifier) value to ensure // uniqueness within the specified secret. Secrets Manager uses this value to // prevent the accidental creation of duplicate versions if there are failures and diff --git a/service/secretsmanager/api_op_TagResource.go b/service/secretsmanager/api_op_TagResource.go index 0e79f176898..5fc23c1e7a2 100644 --- a/service/secretsmanager/api_op_TagResource.go +++ b/service/secretsmanager/api_op_TagResource.go @@ -28,33 +28,33 @@ import ( // * Tag keys and values are case // sensitive. // -// * Do not use the aws: prefix in your tag names or values because AWS -// reserves it for AWS use. You can't edit or delete tag names or values with this -// prefix. Tags with this prefix do not count against your tags per secret -// limit. +// * Do not use the aws: prefix in your tag names or values because +// Amazon Web Services reserves it for Amazon Web Services use. You can't edit or +// delete tag names or values with this prefix. Tags with this prefix do not count +// against your tags per secret limit. // -// * If you use your tagging schema across multiple services and resources, -// remember other services might have restrictions on allowed characters. Generally -// allowed characters: letters, spaces, and numbers representable in UTF-8, plus -// the following special characters: + - = . _ : / @. +// * If you use your tagging schema across +// multiple services and resources, remember other services might have restrictions +// on allowed characters. Generally allowed characters: letters, spaces, and +// numbers representable in UTF-8, plus the following special characters: + - = . _ +// : / @. // -// If you use tags as part of -// your security strategy, then adding or removing a tag can change permissions. If -// successfully completing this operation would result in you losing your -// permissions for this secret, then the operation is blocked and returns an Access -// Denied error. Minimum permissions To run this command, you must have the -// following permissions: +// If you use tags as part of your security strategy, then adding or +// removing a tag can change permissions. If successfully completing this operation +// would result in you losing your permissions for this secret, then the operation +// is blocked and returns an Access Denied error. Minimum permissions To run this +// command, you must have the following permissions: // -// * secretsmanager:TagResource +// * +// secretsmanager:TagResource // // Related operations // -// * To -// remove one or more tags from the collection attached to a secret, use -// UntagResource. +// * To remove one or more tags +// from the collection attached to a secret, use UntagResource. // -// * To view the list of tags attached to a secret, use -// DescribeSecret. +// * To view the list +// of tags attached to a secret, use DescribeSecret. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} @@ -98,7 +98,7 @@ type TagResourceInput struct { // information on how to format a JSON parameter for the various command line tool // environments, see Using JSON for Parameters // (https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json) - // in the AWS CLI User Guide. For the AWS CLI, you can also use the syntax: --Tags + // in the CLI User Guide. For the CLI, you can also use the syntax: --Tags // Key="Key1",Value="Value1" Key="Key2",Value="Value2"[,…] // // This member is required. diff --git a/service/secretsmanager/api_op_UntagResource.go b/service/secretsmanager/api_op_UntagResource.go index bbc1015fb32..b278d2319e0 100644 --- a/service/secretsmanager/api_op_UntagResource.go +++ b/service/secretsmanager/api_op_UntagResource.go @@ -72,7 +72,7 @@ type UntagResourceInput struct { // parameter for the various command line tool environments, see Using JSON for // Parameters // (https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json) - // in the AWS CLI User Guide. + // in the CLI User Guide. // // This member is required. TagKeys []string diff --git a/service/secretsmanager/api_op_UpdateSecret.go b/service/secretsmanager/api_op_UpdateSecret.go index c6d7e5f2efb..13f50bc9a3e 100644 --- a/service/secretsmanager/api_op_UpdateSecret.go +++ b/service/secretsmanager/api_op_UpdateSecret.go @@ -17,65 +17,69 @@ import ( // secret, use RotateSecret instead. The Secrets Manager console uses only the // SecretString parameter and therefore limits you to encrypting and storing only a // text string. To encrypt and store binary data as part of the version of a -// secret, you must use either the AWS CLI or one of the AWS SDKs. +// secret, you must use either the Amazon Web Services CLI or one of the Amazon Web +// Services SDKs. // -// * If a version -// with a VersionId with the same value as the ClientRequestToken parameter already -// exists, the operation results in an error. You cannot modify an existing -// version, you can only create a new version. +// * If a version with a VersionId with the same value as the +// ClientRequestToken parameter already exists, the operation results in an error. +// You cannot modify an existing version, you can only create a new version. // -// * If you include SecretString or -// SecretBinary to create a new secret version, Secrets Manager automatically -// attaches the staging label AWSCURRENT to the new version. +// * If +// you include SecretString or SecretBinary to create a new secret version, Secrets +// Manager automatically attaches the staging label AWSCURRENT to the new +// version. // -// * If you call an -// operation to encrypt or decrypt the SecretString or SecretBinary for a secret in -// the same account as the calling user and that secret doesn't specify a AWS KMS -// encryption key, Secrets Manager uses the account's default AWS managed customer -// master key (CMK) with the alias aws/secretsmanager. If this key doesn't already -// exist in your account then Secrets Manager creates it for you automatically. All -// users and roles in the same AWS account automatically have access to use the -// default CMK. Note that if an Secrets Manager API call results in AWS creating -// the account's AWS-managed CMK, it can result in a one-time significant delay in -// returning the result. +// * If you call an operation to encrypt or decrypt the SecretString or +// SecretBinary for a secret in the same account as the calling user and that +// secret doesn't specify a Amazon Web Services KMS encryption key, Secrets Manager +// uses the account's default Amazon Web Services managed customer master key (CMK) +// with the alias aws/secretsmanager. If this key doesn't already exist in your +// account then Secrets Manager creates it for you automatically. All users and +// roles in the same Amazon Web Services account automatically have access to use +// the default CMK. Note that if an Secrets Manager API call results in Amazon Web +// Services creating the account's Amazon Web Services-managed CMK, it can result +// in a one-time significant delay in returning the result. // -// * If the secret resides in a different AWS account from -// the credentials calling an API that requires encryption or decryption of the -// secret value then you must create and use a custom AWS KMS CMK because you can't -// access the default CMK for the account using credentials from a different AWS -// account. Store the ARN of the CMK in the secret when you create the secret or -// when you update it by including it in the KMSKeyId. If you call an API that must -// encrypt or decrypt SecretString or SecretBinary using credentials from a -// different account then the AWS KMS key policy must grant cross-account access to -// that other account's user or role for both the kms:GenerateDataKey and -// kms:Decrypt operations. +// * If the secret +// resides in a different Amazon Web Services account from the credentials calling +// an API that requires encryption or decryption of the secret value then you must +// create and use a custom Amazon Web Services KMS CMK because you can't access the +// default CMK for the account using credentials from a different Amazon Web +// Services account. Store the ARN of the CMK in the secret when you create the +// secret or when you update it by including it in the KMSKeyId. If you call an API +// that must encrypt or decrypt SecretString or SecretBinary using credentials from +// a different account then the Amazon Web Services KMS key policy must grant +// cross-account access to that other account's user or role for both the +// kms:GenerateDataKey and kms:Decrypt operations. // -// Minimum permissions To run this command, you must have -// the following permissions: +// Minimum permissions To run this +// command, you must have the following permissions: // -// * secretsmanager:UpdateSecret +// * +// secretsmanager:UpdateSecret // -// * kms:GenerateDataKey -// - needed only if you use a custom AWS KMS key to encrypt the secret. You do not -// need this permission to use the account's AWS managed CMK for Secrets +// * kms:GenerateDataKey - needed only if you use a +// custom Amazon Web Services KMS key to encrypt the secret. You do not need this +// permission to use the account's Amazon Web Services managed CMK for Secrets // Manager. // -// * kms:Decrypt - needed only if you use a custom AWS KMS key to encrypt -// the secret. You do not need this permission to use the account's AWS managed CMK -// for Secrets Manager. +// * kms:Decrypt - needed only if you use a custom Amazon Web Services +// KMS key to encrypt the secret. You do not need this permission to use the +// account's Amazon Web Services managed CMK for Secrets Manager. // -// Related operations +// Related +// operations // -// * To create a new secret, use -// CreateSecret. +// * To create a new secret, use CreateSecret. // -// * To add only a new version to an existing secret, use -// PutSecretValue. +// * To add only a new +// version to an existing secret, use PutSecretValue. // -// * To get the details for a secret, use DescribeSecret. +// * To get the details for a +// secret, use DescribeSecret. // -// * To -// list the versions contained in a secret, use ListSecretVersionIds. +// * To list the versions contained in a secret, use +// ListSecretVersionIds. func (c *Client) UpdateSecret(ctx context.Context, params *UpdateSecretInput, optFns ...func(*Options)) (*UpdateSecretOutput, error) { if params == nil { params = &UpdateSecretInput{} @@ -116,18 +120,18 @@ type UpdateSecretInput struct { // (Optional) If you want to add a new version to the secret, this parameter // specifies a unique identifier for the new version that helps ensure idempotency. - // If you use the AWS CLI or one of the AWS SDK to call this operation, then you - // can leave this parameter empty. The CLI or SDK generates a random UUID for you - // and includes that in the request. If you don't use the SDK and instead generate - // a raw HTTP request to the Secrets Manager service endpoint, then you must - // generate a ClientRequestToken yourself for new versions and include that value - // in the request. You typically only need to interact with this value if you - // implement your own retry logic and want to ensure that a given secret is not - // created twice. We recommend that you generate a UUID-type - // (https://wikipedia.org/wiki/Universally_unique_identifier) value to ensure - // uniqueness within the specified secret. Secrets Manager uses this value to - // prevent the accidental creation of duplicate versions if there are failures and - // retries during the Lambda rotation function's processing. + // If you use the Amazon Web Services CLI or one of the Amazon Web Services SDK to + // call this operation, then you can leave this parameter empty. The CLI or SDK + // generates a random UUID for you and includes that in the request. If you don't + // use the SDK and instead generate a raw HTTP request to the Secrets Manager + // service endpoint, then you must generate a ClientRequestToken yourself for new + // versions and include that value in the request. You typically only need to + // interact with this value if you implement your own retry logic and want to + // ensure that a given secret is not created twice. We recommend that you generate + // a UUID-type (https://wikipedia.org/wiki/Universally_unique_identifier) value to + // ensure uniqueness within the specified secret. Secrets Manager uses this value + // to prevent the accidental creation of duplicate versions if there are failures + // and retries during the Lambda rotation function's processing. // // * If the // ClientRequestToken value isn't already associated with a version of the secret @@ -149,13 +153,14 @@ type UpdateSecretInput struct { // (Optional) Specifies an updated user-provided description of the secret. Description *string - // (Optional) Specifies an updated ARN or alias of the AWS KMS customer master key - // (CMK) to be used to encrypt the protected text in new versions of this secret. - // You can only use the account's default CMK to encrypt and decrypt if you call - // this operation using credentials from the same account that owns the secret. If - // the secret is in a different account, then you must create a custom CMK and - // provide the ARN of that CMK in this field. The user making the call must have - // permissions to both the secret and the CMK in their respective accounts. + // (Optional) Specifies an updated ARN or alias of the Amazon Web Services KMS + // customer master key (CMK) to be used to encrypt the protected text in new + // versions of this secret. You can only use the account's default CMK to encrypt + // and decrypt if you call this operation using credentials from the same account + // that owns the secret. If the secret is in a different account, then you must + // create a custom CMK and provide the ARN of that CMK in this field. The user + // making the call must have permissions to both the secret and the CMK in their + // respective accounts. KmsKeyId *string // (Optional) Specifies updated binary data that you want to encrypt and store in @@ -178,7 +183,7 @@ type UpdateSecretInput struct { // information on how to format a JSON parameter for the various command line tool // environments, see Using JSON for Parameters // (https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json) - // in the AWS CLI User Guide. For example: + // in the CLI User Guide. For example: // [{"username":"bob"},{"password":"abc123xyz456"}] If your command-line tool or // SDK requires quotation marks around the parameter, you should use single quotes // to avoid confusion with the double quotes required in the JSON text. You can diff --git a/service/secretsmanager/api_op_UpdateSecretVersionStage.go b/service/secretsmanager/api_op_UpdateSecretVersionStage.go index 6b6d95e2887..1bddeddca46 100644 --- a/service/secretsmanager/api_op_UpdateSecretVersionStage.go +++ b/service/secretsmanager/api_op_UpdateSecretVersionStage.go @@ -17,24 +17,24 @@ import ( // then it is moved--removed from the other version first and then attached to this // one. For more information about staging labels, see Staging Labels // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/terms-concepts.html#term_staging-label) -// in the AWS Secrets Manager User Guide. The staging labels that you specify in -// the VersionStage parameter are added to the existing list of staging -// labels--they don't replace it. You can move the AWSCURRENT staging label to this -// version by including it in this call. Whenever you move AWSCURRENT, Secrets -// Manager automatically moves the label AWSPREVIOUS to the version that AWSCURRENT -// was removed from. If this action results in the last label being removed from a -// version, then the version is considered to be 'deprecated' and can be deleted by -// Secrets Manager. Minimum permissions To run this command, you must have the -// following permissions: +// in the Amazon Web Services Secrets Manager User Guide. The staging labels that +// you specify in the VersionStage parameter are added to the existing list of +// staging labels--they don't replace it. You can move the AWSCURRENT staging label +// to this version by including it in this call. Whenever you move AWSCURRENT, +// Secrets Manager automatically moves the label AWSPREVIOUS to the version that +// AWSCURRENT was removed from. If this action results in the last label being +// removed from a version, then the version is considered to be 'deprecated' and +// can be deleted by Secrets Manager. Minimum permissions To run this command, you +// must have the following permissions: // -// * secretsmanager:UpdateSecretVersionStage +// * +// secretsmanager:UpdateSecretVersionStage // -// Related -// operations +// Related operations // -// * To get the list of staging labels that are currently associated -// with a version of a secret, use DescribeSecret and examine the -// SecretVersionsToStages response value. +// * To get the list +// of staging labels that are currently associated with a version of a secret, use +// DescribeSecret and examine the SecretVersionsToStages response value. func (c *Client) UpdateSecretVersionStage(ctx context.Context, params *UpdateSecretVersionStageInput, optFns ...func(*Options)) (*UpdateSecretVersionStageOutput, error) { if params == nil { params = &UpdateSecretVersionStageInput{} diff --git a/service/secretsmanager/api_op_ValidateResourcePolicy.go b/service/secretsmanager/api_op_ValidateResourcePolicy.go index 809fe6208e5..56e327a03be 100644 --- a/service/secretsmanager/api_op_ValidateResourcePolicy.go +++ b/service/secretsmanager/api_op_ValidateResourcePolicy.go @@ -53,12 +53,12 @@ func (c *Client) ValidateResourcePolicy(ctx context.Context, params *ValidateRes type ValidateResourcePolicyInput struct { // A JSON-formatted string constructed according to the grammar and syntax for an - // AWS resource-based policy. The policy in the string identifies who can access or - // manage this secret and its versions. For information on how to format a JSON - // parameter for the various command line tool environments, see Using JSON for - // Parameters + // Amazon Web Services resource-based policy. The policy in the string identifies + // who can access or manage this secret and its versions. For information on how to + // format a JSON parameter for the various command line tool environments, see + // Using JSON for Parameters // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json) - // in the AWS CLI User Guide.publi + // in the CLI User Guide.publi // // This member is required. ResourcePolicy *string diff --git a/service/secretsmanager/deserializers.go b/service/secretsmanager/deserializers.go index c9ca4693a93..d8dadc58893 100644 --- a/service/secretsmanager/deserializers.go +++ b/service/secretsmanager/deserializers.go @@ -617,6 +617,9 @@ func awsAwsjson11_deserializeOpErrorDescribeSecret(response *smithyhttp.Response case strings.EqualFold("InternalServiceError", errorCode): return awsAwsjson11_deserializeErrorInternalServiceError(response, errorBody) + case strings.EqualFold("InvalidParameterException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -848,6 +851,9 @@ func awsAwsjson11_deserializeOpErrorGetResourcePolicy(response *smithyhttp.Respo case strings.EqualFold("InternalServiceError", errorCode): return awsAwsjson11_deserializeErrorInternalServiceError(response, errorBody) + case strings.EqualFold("InvalidParameterException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + case strings.EqualFold("InvalidRequestException", errorCode): return awsAwsjson11_deserializeErrorInvalidRequestException(response, errorBody) @@ -1208,6 +1214,9 @@ func awsAwsjson11_deserializeOpErrorListSecretVersionIds(response *smithyhttp.Re case strings.EqualFold("InvalidNextTokenException", errorCode): return awsAwsjson11_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -3313,6 +3322,42 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe return nil } +func awsAwsjson11_deserializeDocumentKmsKeyIdListType(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyIdType to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -3984,6 +4029,11 @@ func awsAwsjson11_deserializeDocumentSecretVersionsListEntry(v **types.SecretVer } } + case "KmsKeyIds": + if err := awsAwsjson11_deserializeDocumentKmsKeyIdListType(&sv.KmsKeyIds, value); err != nil { + return err + } + case "LastAccessedDate": if value != nil { switch jtv := value.(type) { diff --git a/service/secretsmanager/doc.go b/service/secretsmanager/doc.go index aee3ff1b47c..0baeb08b1ae 100644 --- a/service/secretsmanager/doc.go +++ b/service/secretsmanager/doc.go @@ -3,51 +3,56 @@ // Package secretsmanager provides the API client, operations, and parameter types // for AWS Secrets Manager. // -// AWS Secrets Manager API Reference AWS Secrets Manager provides a service to -// enable you to store, manage, and retrieve, secrets. This guide provides -// descriptions of the Secrets Manager API. For more information about using this -// service, see the AWS Secrets Manager User Guide +// Amazon Web Services Secrets Manager Amazon Web Services Secrets Manager provides +// a service to enable you to store, manage, and retrieve, secrets. This guide +// provides descriptions of the Secrets Manager API. For more information about +// using this service, see the Amazon Web Services Secrets Manager User Guide // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/introduction.html). // API Version This version of the Secrets Manager API Reference documents the // Secrets Manager API version 2017-10-17. As an alternative to using the API, you -// can use one of the AWS SDKs, which consist of libraries and sample code for -// various programming languages and platforms such as Java, Ruby, .NET, iOS, and -// Android. The SDKs provide a convenient way to create programmatic access to AWS -// Secrets Manager. For example, the SDKs provide cryptographically signing -// requests, managing errors, and retrying requests automatically. For more -// information about the AWS SDKs, including downloading and installing them, see -// Tools for Amazon Web Services (http://aws.amazon.com/tools/). We recommend you -// use the AWS SDKs to make programmatic API calls to Secrets Manager. However, you -// also can use the Secrets Manager HTTP Query API to make direct calls to the -// Secrets Manager web service. To learn more about the Secrets Manager HTTP Query -// API, see Making Query Requests +// can use one of the Amazon Web Services SDKs, which consist of libraries and +// sample code for various programming languages and platforms such as Java, Ruby, +// .NET, iOS, and Android. The SDKs provide a convenient way to create programmatic +// access to Amazon Web Services Secrets Manager. For example, the SDKs provide +// cryptographically signing requests, managing errors, and retrying requests +// automatically. For more information about the Amazon Web Services SDKs, +// including downloading and installing them, see Tools for Amazon Web Services +// (http://aws.amazon.com/tools/). We recommend you use the Amazon Web Services +// SDKs to make programmatic API calls to Secrets Manager. However, you also can +// use the Secrets Manager HTTP Query API to make direct calls to the Secrets +// Manager web service. To learn more about the Secrets Manager HTTP Query API, see +// Making Query Requests // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/query-requests.html) -// in the AWS Secrets Manager User Guide. Secrets Manager API supports GET and POST -// requests for all actions, and doesn't require you to use GET for some actions -// and POST for others. However, GET requests are subject to the limitation size of -// a URL. Therefore, for operations that require larger sizes, use a POST request. -// Support and Feedback for AWS Secrets Manager We welcome your feedback. Send your -// comments to awssecretsmanager-feedback@amazon.com +// in the Amazon Web Services Secrets Manager User Guide. Secrets Manager API +// supports GET and POST requests for all actions, and doesn't require you to use +// GET for some actions and POST for others. However, GET requests are subject to +// the limitation size of a URL. Therefore, for operations that require larger +// sizes, use a POST request. Support and Feedback for Amazon Web Services Secrets +// Manager We welcome your feedback. Send your comments to +// awssecretsmanager-feedback@amazon.com // (mailto:awssecretsmanager-feedback@amazon.com), or post your feedback and -// questions in the AWS Secrets Manager Discussion Forum +// questions in the Amazon Web Services Secrets Manager Discussion Forum // (http://forums.aws.amazon.com/forum.jspa?forumID=296). For more information -// about the AWS Discussion Forums, see Forums Help +// about the Amazon Web Services Discussion Forums, see Forums Help // (http://forums.aws.amazon.com/help.jspa). How examples are presented The JSON -// that AWS Secrets Manager expects as your request parameters and the service -// returns as a response to HTTP query requests contain single, long strings -// without line breaks or white space formatting. The JSON shown in the examples -// displays the code formatted with both line breaks and white space to improve -// readability. When example input parameters can also cause long strings extending -// beyond the screen, you can insert line breaks to enhance readability. You should -// always submit the input as a single JSON text string. Logging API Requests AWS -// Secrets Manager supports AWS CloudTrail, a service that records AWS API calls -// for your AWS account and delivers log files to an Amazon S3 bucket. By using -// information that's collected by AWS CloudTrail, you can determine the requests -// successfully made to Secrets Manager, who made the request, when it was made, -// and so on. For more about AWS Secrets Manager and support for AWS CloudTrail, -// see Logging AWS Secrets Manager Events with AWS CloudTrail +// that Amazon Web Services Secrets Manager expects as your request parameters and +// the service returns as a response to HTTP query requests contain single, long +// strings without line breaks or white space formatting. The JSON shown in the +// examples displays the code formatted with both line breaks and white space to +// improve readability. When example input parameters can also cause long strings +// extending beyond the screen, you can insert line breaks to enhance readability. +// You should always submit the input as a single JSON text string. Logging API +// Requests Amazon Web Services Secrets Manager supports Amazon Web Services +// CloudTrail, a service that records Amazon Web Services API calls for your Amazon +// Web Services account and delivers log files to an Amazon S3 bucket. By using +// information that's collected by Amazon Web Services CloudTrail, you can +// determine the requests successfully made to Secrets Manager, who made the +// request, when it was made, and so on. For more about Amazon Web Services Secrets +// Manager and support for Amazon Web Services CloudTrail, see Logging Amazon Web +// Services Secrets Manager Events with Amazon Web Services CloudTrail // (http://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring.html#monitoring_cloudtrail) -// in the AWS Secrets Manager User Guide. To learn more about CloudTrail, including -// enabling it and find your log files, see the AWS CloudTrail User Guide +// in the Amazon Web Services Secrets Manager User Guide. To learn more about +// CloudTrail, including enabling it and find your log files, see the Amazon Web +// Services CloudTrail User Guide // (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html). package secretsmanager diff --git a/service/secretsmanager/types/types.go b/service/secretsmanager/types/types.go index d5f1c3bd625..e5ed6779146 100644 --- a/service/secretsmanager/types/types.go +++ b/service/secretsmanager/types/types.go @@ -78,7 +78,7 @@ type SecretListEntry struct { // The Amazon Resource Name (ARN) of the secret. For more information about ARNs in // Secrets Manager, see Policy Resources // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#iam-resources) - // in the AWS Secrets Manager User Guide. + // in the Amazon Web Services Secrets Manager User Guide. ARN *string // The date and time when a secret was created. @@ -93,10 +93,11 @@ type SecretListEntry struct { // The user-provided description of the secret. Description *string - // The ARN or alias of the AWS KMS customer master key (CMK) used to encrypt the - // SecretString and SecretBinary fields in each version of the secret. If you don't - // provide a key, then Secrets Manager defaults to encrypting the secret fields - // with the default KMS CMK, the key named awssecretsmanager, for this account. + // The ARN or alias of the Amazon Web Services KMS customer master key (CMK) used + // to encrypt the SecretString and SecretBinary fields in each version of the + // secret. If you don't provide a key, then Secrets Manager defaults to encrypting + // the secret fields with the default KMS CMK, the key named awssecretsmanager, for + // this account. KmsKeyId *string // The last date that this secret was accessed. This value is truncated to midnight @@ -125,9 +126,9 @@ type SecretListEntry struct { // Indicates whether automatic, scheduled rotation is enabled for this secret. RotationEnabled bool - // The ARN of an AWS Lambda function invoked by Secrets Manager to rotate and - // expire the secret either automatically per the schedule or manually by a call to - // RotateSecret. + // 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 + // by a call to RotateSecret. RotationLambdaARN *string // A structure that defines the rotation configuration for the secret. @@ -153,6 +154,9 @@ type SecretVersionsListEntry struct { // The date and time this version of the secret was created. CreatedDate *time.Time + // The KMS keys used to encrypt the secret version. + KmsKeyIds []string + // The date that this version of the secret was last accessed. Note that the // resolution of this field is at the date level and does not include the time. LastAccessedDate *time.Time diff --git a/service/securityhub/api_op_BatchDisableStandards.go b/service/securityhub/api_op_BatchDisableStandards.go index ed58f34ced8..c846611025b 100644 --- a/service/securityhub/api_op_BatchDisableStandards.go +++ b/service/securityhub/api_op_BatchDisableStandards.go @@ -14,7 +14,7 @@ import ( // Disables the standards specified by the provided StandardsSubscriptionArns. For // more information, see Security Standards // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards.html) -// section of the AWS Security Hub User Guide. +// section of the Security Hub User Guide. func (c *Client) BatchDisableStandards(ctx context.Context, params *BatchDisableStandardsInput, optFns ...func(*Options)) (*BatchDisableStandardsOutput, error) { if params == nil { params = &BatchDisableStandardsInput{} diff --git a/service/securityhub/api_op_BatchEnableStandards.go b/service/securityhub/api_op_BatchEnableStandards.go index 0ab528014f6..ea0d8444ddc 100644 --- a/service/securityhub/api_op_BatchEnableStandards.go +++ b/service/securityhub/api_op_BatchEnableStandards.go @@ -15,7 +15,7 @@ import ( // for a standard, use the DescribeStandards operation. For more information, see // the Security Standards // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards.html) -// section of the AWS Security Hub User Guide. +// section of the Security Hub User Guide. func (c *Client) BatchEnableStandards(ctx context.Context, params *BatchEnableStandardsInput, optFns ...func(*Options)) (*BatchEnableStandardsOutput, error) { if params == nil { params = &BatchEnableStandardsInput{} diff --git a/service/securityhub/api_op_BatchImportFindings.go b/service/securityhub/api_op_BatchImportFindings.go index 7107f981e49..0f2538bebcf 100644 --- a/service/securityhub/api_op_BatchImportFindings.go +++ b/service/securityhub/api_op_BatchImportFindings.go @@ -62,7 +62,7 @@ func (c *Client) BatchImportFindings(ctx context.Context, params *BatchImportFin type BatchImportFindingsInput struct { // A list of findings to import. To successfully import a finding, it must follow - // the AWS Security Finding Format + // the Amazon Web Services Security Finding Format // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html). // Maximum of 100 findings per request. // diff --git a/service/securityhub/api_op_BatchUpdateFindings.go b/service/securityhub/api_op_BatchUpdateFindings.go index a2a54b15a0d..21b50e4767a 100644 --- a/service/securityhub/api_op_BatchUpdateFindings.go +++ b/service/securityhub/api_op_BatchUpdateFindings.go @@ -44,7 +44,7 @@ import ( // be able to suppress findings or change the finding severity. See Configuring // access to BatchUpdateFindings // (https://docs.aws.amazon.com/securityhub/latest/userguide/finding-update-batchupdatefindings.html#batchupdatefindings-configure-access) -// in the AWS Security Hub User Guide. +// in the Security Hub User Guide. func (c *Client) BatchUpdateFindings(ctx context.Context, params *BatchUpdateFindingsInput, optFns ...func(*Options)) (*BatchUpdateFindingsOutput, error) { if params == nil { params = &BatchUpdateFindingsInput{} diff --git a/service/securityhub/api_op_CreateMembers.go b/service/securityhub/api_op_CreateMembers.go index 689ffda4e5f..264d60e101d 100644 --- a/service/securityhub/api_op_CreateMembers.go +++ b/service/securityhub/api_op_CreateMembers.go @@ -15,11 +15,11 @@ import ( // the account used to make the request, which is the administrator account. If you // are integrated with Organizations, then the administrator account is designated // by the organization management account. CreateMembers is always used to add -// accounts that are not organization members. For accounts that are part of an -// organization, CreateMembers is only used in the following cases: +// accounts that are not organization members. For accounts that are managed using +// Organizations, CreateMembers is only used in the following cases: // -// * Security Hub -// is not configured to automatically add new accounts in an organization. +// * Security +// Hub is not configured to automatically add new organization accounts. // // * The // account was disassociated or deleted in Security Hub. @@ -30,14 +30,17 @@ import ( // members, you create the account association and then send an invitation to the // member account. To send the invitation, you use the InviteMembers operation. If // the account owner accepts the invitation, the account becomes a member account -// in Security Hub. Accounts that are part of an organization do not receive an -// invitation. They automatically become a member account in Security Hub. A -// permissions policy is added that permits the administrator account to view the -// findings generated in the member account. When Security Hub is enabled in a -// member account, the member account findings are also visible to the -// administrator account. To remove the association between the administrator and -// member accounts, use the DisassociateFromMasterAccount or DisassociateMembers -// operation. +// in Security Hub. Accounts that are managed using Organizations do not receive an +// invitation. They automatically become a member account in Security Hub, and +// Security Hub is automatically enabled for those accounts. Note that Security Hub +// cannot be enabled automatically for the organization management account. The +// organization management account must enable Security Hub before the +// administrator account enables it as a member account. A permissions policy is +// added that permits the administrator account to view the findings generated in +// the member account. When Security Hub is enabled in a member account, the member +// account findings are also visible to the administrator account. To remove the +// association between the administrator and member accounts, use the +// DisassociateFromMasterAccount or DisassociateMembers operation. func (c *Client) CreateMembers(ctx context.Context, params *CreateMembersInput, optFns ...func(*Options)) (*CreateMembersOutput, error) { if params == nil { params = &CreateMembersInput{} @@ -67,8 +70,8 @@ type CreateMembersInput struct { type CreateMembersOutput struct { - // The list of AWS accounts that were not processed. For each account, the list - // includes the account ID and the email address. + // The list of Amazon Web Services accounts that were not processed. For each + // account, the list includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_DeclineInvitations.go b/service/securityhub/api_op_DeclineInvitations.go index 951d5ce9aef..bc32c75bdeb 100644 --- a/service/securityhub/api_op_DeclineInvitations.go +++ b/service/securityhub/api_op_DeclineInvitations.go @@ -42,8 +42,8 @@ type DeclineInvitationsInput struct { type DeclineInvitationsOutput struct { - // The list of AWS accounts that were not processed. For each account, the list - // includes the account ID and the email address. + // The list of Amazon Web Services accounts that were not processed. For each + // account, the list includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_DeleteInvitations.go b/service/securityhub/api_op_DeleteInvitations.go index 2994dbb2311..405948396e6 100644 --- a/service/securityhub/api_op_DeleteInvitations.go +++ b/service/securityhub/api_op_DeleteInvitations.go @@ -11,9 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes invitations received by the AWS account to become a member account. This -// operation is only used by accounts that are not part of an organization. -// Organization accounts do not receive invitations. +// Deletes invitations received by the Amazon Web Services account to become a +// member account. This operation is only used by accounts that are not part of an +// organization. Organization accounts do not receive invitations. func (c *Client) DeleteInvitations(ctx context.Context, params *DeleteInvitationsInput, optFns ...func(*Options)) (*DeleteInvitationsOutput, error) { if params == nil { params = &DeleteInvitationsInput{} @@ -41,8 +41,9 @@ type DeleteInvitationsInput struct { type DeleteInvitationsOutput struct { - // The list of AWS accounts for which the invitations were not deleted. For each - // account, the list includes the account ID and the email address. + // The list of Amazon Web Services accounts for which the invitations were not + // deleted. For each account, the list includes the account ID and the email + // address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_DeleteMembers.go b/service/securityhub/api_op_DeleteMembers.go index 359afb711cc..c0978c03fe0 100644 --- a/service/securityhub/api_op_DeleteMembers.go +++ b/service/securityhub/api_op_DeleteMembers.go @@ -41,8 +41,8 @@ type DeleteMembersInput struct { type DeleteMembersOutput struct { - // The list of AWS accounts that were not deleted. For each account, the list - // includes the account ID and the email address. + // The list of Amazon Web Services accounts that were not deleted. For each + // account, the list includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_DisableOrganizationAdminAccount.go b/service/securityhub/api_op_DisableOrganizationAdminAccount.go index 360606748a0..89678bcc992 100644 --- a/service/securityhub/api_op_DisableOrganizationAdminAccount.go +++ b/service/securityhub/api_op_DisableOrganizationAdminAccount.go @@ -29,7 +29,8 @@ func (c *Client) DisableOrganizationAdminAccount(ctx context.Context, params *Di type DisableOrganizationAdminAccountInput struct { - // The AWS account identifier of the Security Hub administrator account. + // The Amazon Web Services account identifier of the Security Hub administrator + // account. // // This member is required. AdminAccountId *string diff --git a/service/securityhub/api_op_EnableOrganizationAdminAccount.go b/service/securityhub/api_op_EnableOrganizationAdminAccount.go index 42804d953ca..7ce4fff376a 100644 --- a/service/securityhub/api_op_EnableOrganizationAdminAccount.go +++ b/service/securityhub/api_op_EnableOrganizationAdminAccount.go @@ -29,8 +29,8 @@ func (c *Client) EnableOrganizationAdminAccount(ctx context.Context, params *Ena type EnableOrganizationAdminAccountInput struct { - // The AWS account identifier of the account to designate as the Security Hub - // administrator account. + // The Amazon Web Services account identifier of the account to designate as the + // Security Hub administrator account. // // This member is required. AdminAccountId *string diff --git a/service/securityhub/api_op_EnableSecurityHub.go b/service/securityhub/api_op_EnableSecurityHub.go index f4f933e177c..56190607622 100644 --- a/service/securityhub/api_op_EnableSecurityHub.go +++ b/service/securityhub/api_op_EnableSecurityHub.go @@ -17,18 +17,18 @@ import ( // enable Security Hub, you also automatically enable the following standards. // // * -// CIS AWS Foundations +// CIS Amazon Web Services Foundations // -// * AWS Foundational Security Best Practices +// * Amazon Web Services Foundational Security +// Best Practices // -// You do not -// enable the Payment Card Industry Data Security Standard (PCI DSS) standard. To -// not enable the automatically enabled standards, set EnableDefaultStandards to -// false. After you enable Security Hub, to enable a standard, use the -// BatchEnableStandards operation. To disable a standard, use the -// BatchDisableStandards operation. To learn more, see Setting Up AWS Security Hub +// You do not enable the Payment Card Industry Data Security +// Standard (PCI DSS) standard. To not enable the automatically enabled standards, +// set EnableDefaultStandards to false. After you enable Security Hub, to enable a +// standard, use the BatchEnableStandards operation. To disable a standard, use the +// BatchDisableStandards operation. To learn more, see the setup information // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-settingup.html) -// in the AWS Security Hub User Guide. +// in the Security Hub User Guide. func (c *Client) EnableSecurityHub(ctx context.Context, params *EnableSecurityHubInput, optFns ...func(*Options)) (*EnableSecurityHubOutput, error) { if params == nil { params = &EnableSecurityHubInput{} diff --git a/service/securityhub/api_op_GetMembers.go b/service/securityhub/api_op_GetMembers.go index 24da1befd49..97919e95bd5 100644 --- a/service/securityhub/api_op_GetMembers.go +++ b/service/securityhub/api_op_GetMembers.go @@ -47,8 +47,8 @@ type GetMembersOutput struct { // The list of details about the Security Hub member accounts. Members []types.Member - // The list of AWS accounts that could not be processed. For each account, the list - // includes the account ID and the email address. + // The list of Amazon Web Services accounts that could not be processed. For each + // account, the list includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_InviteMembers.go b/service/securityhub/api_op_InviteMembers.go index c10822c74e4..1acab3a5cad 100644 --- a/service/securityhub/api_op_InviteMembers.go +++ b/service/securityhub/api_op_InviteMembers.go @@ -11,14 +11,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Invites other AWS accounts to become member accounts for the Security Hub -// administrator account that the invitation is sent from. This operation is only -// used to invite accounts that do not belong to an organization. Organization -// accounts do not receive invitations. Before you can use this action to invite a -// member, you must first use the CreateMembers action to create the member account -// in Security Hub. When the account owner enables Security Hub and accepts the -// invitation to become a member account, the administrator account can view the -// findings generated from the member account. +// Invites other Amazon Web Services accounts to become member accounts for the +// Security Hub administrator account that the invitation is sent from. This +// operation is only used to invite accounts that do not belong to an organization. +// Organization accounts do not receive invitations. Before you can use this action +// to invite a member, you must first use the CreateMembers action to create the +// member account in Security Hub. When the account owner enables Security Hub and +// accepts the invitation to become a member account, the administrator account can +// view the findings generated from the member account. func (c *Client) InviteMembers(ctx context.Context, params *InviteMembersInput, optFns ...func(*Options)) (*InviteMembersOutput, error) { if params == nil { params = &InviteMembersInput{} @@ -36,8 +36,8 @@ func (c *Client) InviteMembers(ctx context.Context, params *InviteMembersInput, type InviteMembersInput struct { - // The list of account IDs of the AWS accounts to invite to Security Hub as - // members. + // The list of account IDs of the Amazon Web Services accounts to invite to + // Security Hub as members. // // This member is required. AccountIds []string @@ -47,8 +47,8 @@ type InviteMembersInput struct { type InviteMembersOutput struct { - // The list of AWS accounts that could not be processed. For each account, the list - // includes the account ID and the email address. + // The list of Amazon Web Services accounts that could not be processed. For each + // account, the list includes the account ID and the email address. UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. diff --git a/service/securityhub/api_op_ListInvitations.go b/service/securityhub/api_op_ListInvitations.go index 8aca8a879c9..578757388c5 100644 --- a/service/securityhub/api_op_ListInvitations.go +++ b/service/securityhub/api_op_ListInvitations.go @@ -12,10 +12,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all Security Hub membership invitations that were sent to the current AWS -// account. This operation is only used by accounts that are managed by invitation. -// Accounts that are managed using the integration with AWS Organizations do not -// receive invitations. +// Lists all Security Hub membership invitations that were sent to the current +// Amazon Web Services account. This operation is only used by accounts that are +// managed by invitation. Accounts that are managed using the integration with +// Organizations do not receive invitations. func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsInput, optFns ...func(*Options)) (*ListInvitationsOutput, error) { if params == nil { params = &ListInvitationsInput{} diff --git a/service/securityhub/deserializers.go b/service/securityhub/deserializers.go index ed7420fb7d8..f3084054e88 100644 --- a/service/securityhub/deserializers.go +++ b/service/securityhub/deserializers.go @@ -14567,6 +14567,928 @@ func awsRestjson1_deserializeDocumentAwsEcsClusterDetails(v **types.AwsEcsCluste return nil } +func awsRestjson1_deserializeDocumentAwsEcsServiceCapacityProviderStrategyDetails(v **types.AwsEcsServiceCapacityProviderStrategyDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServiceCapacityProviderStrategyDetails + if *v == nil { + sv = &types.AwsEcsServiceCapacityProviderStrategyDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Base": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Base = int32(i64) + } + + case "CapacityProvider": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CapacityProvider = ptr.String(jtv) + } + + case "Weight": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Weight = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceCapacityProviderStrategyList(v *[]types.AwsEcsServiceCapacityProviderStrategyDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AwsEcsServiceCapacityProviderStrategyDetails + if *v == nil { + cv = []types.AwsEcsServiceCapacityProviderStrategyDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AwsEcsServiceCapacityProviderStrategyDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEcsServiceCapacityProviderStrategyDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails(v **types.AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails + if *v == nil { + sv = &types.AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Enable": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Enable = jtv + } + + case "Rollback": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Rollback = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentConfigurationDetails(v **types.AwsEcsServiceDeploymentConfigurationDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServiceDeploymentConfigurationDetails + if *v == nil { + sv = &types.AwsEcsServiceDeploymentConfigurationDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DeploymentCircuitBreaker": + if err := awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails(&sv.DeploymentCircuitBreaker, value); err != nil { + return err + } + + case "MaximumPercent": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaximumPercent = int32(i64) + } + + case "MinimumHealthyPercent": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MinimumHealthyPercent = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentControllerDetails(v **types.AwsEcsServiceDeploymentControllerDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServiceDeploymentControllerDetails + if *v == nil { + sv = &types.AwsEcsServiceDeploymentControllerDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceDetails(v **types.AwsEcsServiceDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServiceDetails + if *v == nil { + sv = &types.AwsEcsServiceDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CapacityProviderStrategy": + if err := awsRestjson1_deserializeDocumentAwsEcsServiceCapacityProviderStrategyList(&sv.CapacityProviderStrategy, value); err != nil { + return err + } + + case "Cluster": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Cluster = ptr.String(jtv) + } + + case "DeploymentConfiguration": + if err := awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentConfigurationDetails(&sv.DeploymentConfiguration, value); err != nil { + return err + } + + case "DeploymentController": + if err := awsRestjson1_deserializeDocumentAwsEcsServiceDeploymentControllerDetails(&sv.DeploymentController, value); err != nil { + return err + } + + case "DesiredCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DesiredCount = int32(i64) + } + + case "EnableEcsManagedTags": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.EnableEcsManagedTags = jtv + } + + case "EnableExecuteCommand": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.EnableExecuteCommand = jtv + } + + case "HealthCheckGracePeriodSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.HealthCheckGracePeriodSeconds = int32(i64) + } + + case "LaunchType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.LaunchType = ptr.String(jtv) + } + + case "LoadBalancers": + if err := awsRestjson1_deserializeDocumentAwsEcsServiceLoadBalancersList(&sv.LoadBalancers, value); err != nil { + return err + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "NetworkConfiguration": + if err := awsRestjson1_deserializeDocumentAwsEcsServiceNetworkConfigurationDetails(&sv.NetworkConfiguration, value); err != nil { + return err + } + + case "PlacementConstraints": + if err := awsRestjson1_deserializeDocumentAwsEcsServicePlacementConstraintsList(&sv.PlacementConstraints, value); err != nil { + return err + } + + case "PlacementStrategies": + if err := awsRestjson1_deserializeDocumentAwsEcsServicePlacementStrategiesList(&sv.PlacementStrategies, value); err != nil { + return err + } + + case "PlatformVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.PlatformVersion = ptr.String(jtv) + } + + case "PropagateTags": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.PropagateTags = ptr.String(jtv) + } + + case "Role": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Role = ptr.String(jtv) + } + + case "SchedulingStrategy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.SchedulingStrategy = ptr.String(jtv) + } + + case "ServiceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ServiceArn = ptr.String(jtv) + } + + case "ServiceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ServiceName = ptr.String(jtv) + } + + case "ServiceRegistries": + if err := awsRestjson1_deserializeDocumentAwsEcsServiceServiceRegistriesList(&sv.ServiceRegistries, value); err != nil { + return err + } + + case "TaskDefinition": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.TaskDefinition = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceLoadBalancersDetails(v **types.AwsEcsServiceLoadBalancersDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServiceLoadBalancersDetails + if *v == nil { + sv = &types.AwsEcsServiceLoadBalancersDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ContainerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ContainerName = ptr.String(jtv) + } + + case "ContainerPort": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ContainerPort = int32(i64) + } + + case "LoadBalancerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.LoadBalancerName = ptr.String(jtv) + } + + case "TargetGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.TargetGroupArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceLoadBalancersList(v *[]types.AwsEcsServiceLoadBalancersDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AwsEcsServiceLoadBalancersDetails + if *v == nil { + cv = []types.AwsEcsServiceLoadBalancersDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AwsEcsServiceLoadBalancersDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEcsServiceLoadBalancersDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails(v **types.AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails + if *v == nil { + sv = &types.AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssignPublicIp": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.AssignPublicIp = ptr.String(jtv) + } + + case "SecurityGroups": + if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.SecurityGroups, value); err != nil { + return err + } + + case "Subnets": + if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.Subnets, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceNetworkConfigurationDetails(v **types.AwsEcsServiceNetworkConfigurationDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServiceNetworkConfigurationDetails + if *v == nil { + sv = &types.AwsEcsServiceNetworkConfigurationDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AwsVpcConfiguration": + if err := awsRestjson1_deserializeDocumentAwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails(&sv.AwsVpcConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServicePlacementConstraintsDetails(v **types.AwsEcsServicePlacementConstraintsDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServicePlacementConstraintsDetails + if *v == nil { + sv = &types.AwsEcsServicePlacementConstraintsDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Expression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Expression = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServicePlacementConstraintsList(v *[]types.AwsEcsServicePlacementConstraintsDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AwsEcsServicePlacementConstraintsDetails + if *v == nil { + cv = []types.AwsEcsServicePlacementConstraintsDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AwsEcsServicePlacementConstraintsDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEcsServicePlacementConstraintsDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServicePlacementStrategiesDetails(v **types.AwsEcsServicePlacementStrategiesDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServicePlacementStrategiesDetails + if *v == nil { + sv = &types.AwsEcsServicePlacementStrategiesDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Field": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Field = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServicePlacementStrategiesList(v *[]types.AwsEcsServicePlacementStrategiesDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AwsEcsServicePlacementStrategiesDetails + if *v == nil { + cv = []types.AwsEcsServicePlacementStrategiesDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AwsEcsServicePlacementStrategiesDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEcsServicePlacementStrategiesDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceServiceRegistriesDetails(v **types.AwsEcsServiceServiceRegistriesDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsEcsServiceServiceRegistriesDetails + if *v == nil { + sv = &types.AwsEcsServiceServiceRegistriesDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ContainerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ContainerName = ptr.String(jtv) + } + + case "ContainerPort": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ContainerPort = int32(i64) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) + } + + case "RegistryArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.RegistryArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsEcsServiceServiceRegistriesList(v *[]types.AwsEcsServiceServiceRegistriesDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AwsEcsServiceServiceRegistriesDetails + if *v == nil { + cv = []types.AwsEcsServiceServiceRegistriesDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AwsEcsServiceServiceRegistriesDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEcsServiceServiceRegistriesDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails(v **types.AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -17606,40 +18528,205 @@ func awsRestjson1_deserializeDocumentAwsElasticBeanstalkEnvironmentTier(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AwsElasticBeanstalkEnvironmentTier + var sv *types.AwsElasticBeanstalkEnvironmentTier + if *v == nil { + sv = &types.AwsElasticBeanstalkEnvironmentTier{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + case "Version": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Version = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.AwsElasticsearchDomainDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsElasticsearchDomainDetails + if *v == nil { + sv = &types.AwsElasticsearchDomainDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AccessPolicies": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.AccessPolicies = ptr.String(jtv) + } + + case "DomainEndpointOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions(&sv.DomainEndpointOptions, value); err != nil { + return err + } + + case "DomainId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.DomainId = ptr.String(jtv) + } + + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "ElasticsearchClusterConfig": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigDetails(&sv.ElasticsearchClusterConfig, value); err != nil { + return err + } + + case "ElasticsearchVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ElasticsearchVersion = ptr.String(jtv) + } + + case "EncryptionAtRestOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainEncryptionAtRestOptions(&sv.EncryptionAtRestOptions, value); err != nil { + return err + } + + case "Endpoint": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Endpoint = ptr.String(jtv) + } + + case "Endpoints": + if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Endpoints, value); err != nil { + return err + } + + case "LogPublishingOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptions(&sv.LogPublishingOptions, value); err != nil { + return err + } + + case "NodeToNodeEncryptionOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainNodeToNodeEncryptionOptions(&sv.NodeToNodeEncryptionOptions, value); err != nil { + return err + } + + case "ServiceSoftwareOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainServiceSoftwareOptions(&sv.ServiceSoftwareOptions, value); err != nil { + return err + } + + case "VPCOptions": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainVPCOptions(&sv.VPCOptions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions(v **types.AwsElasticsearchDomainDomainEndpointOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsElasticsearchDomainDomainEndpointOptions if *v == nil { - sv = &types.AwsElasticBeanstalkEnvironmentTier{} + sv = &types.AwsElasticsearchDomainDomainEndpointOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "Type": + case "EnforceHTTPS": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Type = ptr.String(jtv) + sv.EnforceHTTPS = jtv } - case "Version": + case "TLSSecurityPolicy": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Version = ptr.String(jtv) + sv.TLSSecurityPolicy = ptr.String(jtv) } default: @@ -17651,7 +18738,7 @@ func awsRestjson1_deserializeDocumentAwsElasticBeanstalkEnvironmentTier(v **type return nil } -func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.AwsElasticsearchDomainDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigDetails(v **types.AwsElasticsearchDomainElasticsearchClusterConfigDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17664,93 +18751,80 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.Aws return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AwsElasticsearchDomainDetails + var sv *types.AwsElasticsearchDomainElasticsearchClusterConfigDetails if *v == nil { - sv = &types.AwsElasticsearchDomainDetails{} + sv = &types.AwsElasticsearchDomainElasticsearchClusterConfigDetails{} } else { sv = *v } for key, value := range shape { switch key { - case "AccessPolicies": + case "DedicatedMasterCount": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.AccessPolicies = ptr.String(jtv) - } - - case "DomainEndpointOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions(&sv.DomainEndpointOptions, value); err != nil { - return err + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DedicatedMasterCount = int32(i64) } - case "DomainId": + case "DedicatedMasterEnabled": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DomainId = ptr.String(jtv) + sv.DedicatedMasterEnabled = jtv } - case "DomainName": + case "DedicatedMasterType": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DomainName = ptr.String(jtv) + sv.DedicatedMasterType = ptr.String(jtv) } - case "ElasticsearchVersion": + case "InstanceCount": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.ElasticsearchVersion = ptr.String(jtv) - } - - case "EncryptionAtRestOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainEncryptionAtRestOptions(&sv.EncryptionAtRestOptions, value); err != nil { - return err + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.InstanceCount = int32(i64) } - case "Endpoint": + case "InstanceType": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Endpoint = ptr.String(jtv) - } - - case "Endpoints": - if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Endpoints, value); err != nil { - return err - } - - case "LogPublishingOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptions(&sv.LogPublishingOptions, value); err != nil { - return err - } - - case "NodeToNodeEncryptionOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainNodeToNodeEncryptionOptions(&sv.NodeToNodeEncryptionOptions, value); err != nil { - return err + sv.InstanceType = ptr.String(jtv) } - case "ServiceSoftwareOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainServiceSoftwareOptions(&sv.ServiceSoftwareOptions, value); err != nil { + case "ZoneAwarenessConfig": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails(&sv.ZoneAwarenessConfig, value); err != nil { return err } - case "VPCOptions": - if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainVPCOptions(&sv.VPCOptions, value); err != nil { - return err + case "ZoneAwarenessEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.ZoneAwarenessEnabled = jtv } default: @@ -17762,7 +18836,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.Aws return nil } -func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions(v **types.AwsElasticsearchDomainDomainEndpointOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails(v **types.AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17775,31 +18849,26 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AwsElasticsearchDomainDomainEndpointOptions + var sv *types.AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails if *v == nil { - sv = &types.AwsElasticsearchDomainDomainEndpointOptions{} + sv = &types.AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails{} } else { sv = *v } for key, value := range shape { switch key { - case "EnforceHTTPS": + case "AvailabilityZoneCount": if value != nil { - jtv, ok := value.(bool) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.EnforceHTTPS = jtv - } - - case "TLSSecurityPolicy": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.TLSSecurityPolicy = ptr.String(jtv) + sv.AvailabilityZoneCount = int32(i64) } default: @@ -17882,6 +18951,11 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptions( for key, value := range shape { switch key { + case "AuditLogs": + if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptionsLogConfig(&sv.AuditLogs, value); err != nil { + return err + } + case "IndexSlowLogs": if err := awsRestjson1_deserializeDocumentAwsElasticsearchDomainLogPublishingOptionsLogConfig(&sv.IndexSlowLogs, value); err != nil { return err @@ -24098,6 +25172,119 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnets(v *[]types.AwsRd return nil } +func awsRestjson1_deserializeDocumentAwsRdsEventSubscriptionDetails(v **types.AwsRdsEventSubscriptionDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsRdsEventSubscriptionDetails + if *v == nil { + sv = &types.AwsRdsEventSubscriptionDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CustomerAwsId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CustomerAwsId = ptr.String(jtv) + } + + case "CustSubscriptionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CustSubscriptionId = ptr.String(jtv) + } + + case "Enabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Enabled = jtv + } + + case "EventCategoriesList": + if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.EventCategoriesList, value); err != nil { + return err + } + + case "EventSubscriptionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.EventSubscriptionArn = ptr.String(jtv) + } + + case "SnsTopicArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.SnsTopicArn = ptr.String(jtv) + } + + case "SourceIdsList": + if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.SourceIdsList, value); err != nil { + return err + } + + case "SourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.SourceType = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Status = ptr.String(jtv) + } + + case "SubscriptionCreationTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.SubscriptionCreationTime = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentAwsRdsPendingCloudWatchLogsExports(v **types.AwsRdsPendingCloudWatchLogsExports, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -26933,6 +28120,15 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin sv.AwsAccountId = ptr.String(jtv) } + case "CompanyName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.CompanyName = ptr.String(jtv) + } + case "Compliance": if err := awsRestjson1_deserializeDocumentCompliance(&sv.Compliance, value); err != nil { return err @@ -27067,6 +28263,15 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin return err } + case "ProductName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.ProductName = ptr.String(jtv) + } + case "RecordState": if value != nil { jtv, ok := value.(string) @@ -27076,6 +28281,15 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin sv.RecordState = types.RecordState(jtv) } + case "Region": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Region = ptr.String(jtv) + } + case "RelatedFindings": if err := awsRestjson1_deserializeDocumentRelatedFindingList(&sv.RelatedFindings, value); err != nil { return err @@ -27446,6 +28660,11 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingFilters(v **types.AwsSecu return err } + case "Region": + if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Region, value); err != nil { + return err + } + case "RelatedFindingsId": if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.RelatedFindingsId, value); err != nil { return err @@ -27506,6 +28725,11 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingFilters(v **types.AwsSecu return err } + case "ResourceAwsIamAccessKeyPrincipalName": + if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceAwsIamAccessKeyPrincipalName, value); err != nil { + return err + } + case "ResourceAwsIamAccessKeyStatus": if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceAwsIamAccessKeyStatus, value); err != nil { return err @@ -27516,6 +28740,11 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingFilters(v **types.AwsSecu return err } + case "ResourceAwsIamUserUserName": + if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceAwsIamUserUserName, value); err != nil { + return err + } + case "ResourceAwsS3BucketOwnerId": if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceAwsS3BucketOwnerId, value); err != nil { return err @@ -33479,6 +34708,11 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails, return err } + case "AwsEcsService": + if err := awsRestjson1_deserializeDocumentAwsEcsServiceDetails(&sv.AwsEcsService, value); err != nil { + return err + } + case "AwsEcsTaskDefinition": if err := awsRestjson1_deserializeDocumentAwsEcsTaskDefinitionDetails(&sv.AwsEcsTaskDefinition, value); err != nil { return err @@ -33564,6 +34798,11 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails, return err } + case "AwsRdsEventSubscription": + if err := awsRestjson1_deserializeDocumentAwsRdsEventSubscriptionDetails(&sv.AwsRdsEventSubscription, value); err != nil { + return err + } + case "AwsRedshiftCluster": if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(&sv.AwsRedshiftCluster, value); err != nil { return err diff --git a/service/securityhub/doc.go b/service/securityhub/doc.go index 522cd6c309b..b36b7f4c701 100644 --- a/service/securityhub/doc.go +++ b/service/securityhub/doc.go @@ -4,38 +4,39 @@ // AWS SecurityHub. // // Security Hub provides you with a comprehensive view of the security state of -// your AWS environment and resources. It also provides you with the readiness -// status of your environment based on controls from supported security standards. -// Security Hub collects security data from AWS accounts, services, and integrated -// third-party products and helps you analyze security trends in your environment -// to identify the highest priority security issues. For more information about -// Security Hub, see the AWS Security Hub User Guide +// your Amazon Web Services environment and resources. It also provides you with +// the readiness status of your environment based on controls from supported +// security standards. Security Hub collects security data from Amazon Web Services +// accounts, services, and integrated third-party products and helps you analyze +// security trends in your environment to identify the highest priority security +// issues. For more information about Security Hub, see the Security HubUser Guide // (https://docs.aws.amazon.com/securityhub/latest/userguide/what-is-securityhub.html) // . When you use operations in the Security Hub API, the requests are executed -// only in the AWS Region that is currently active or in the specific AWS Region -// that you specify in your request. Any configuration or settings change that -// results from the operation is applied only to that Region. To make the same -// change in other Regions, execute the same command for each Region to apply the -// change to. For example, if your Region is set to us-west-2, when you use -// CreateMembers to add a member account to Security Hub, the association of the -// member account with the administrator account is created only in the us-west-2 -// Region. Security Hub must be enabled for the member account in the same Region -// that the invitation was sent from. The following throttling limits apply to -// using Security Hub API operations. +// only in the Amazon Web Services Region that is currently active or in the +// specific Amazon Web Services Region that you specify in your request. Any +// configuration or settings change that results from the operation is applied only +// to that Region. To make the same change in other Regions, execute the same +// command for each Region to apply the change to. For example, if your Region is +// set to us-west-2, when you use CreateMembers to add a member account to Security +// Hub, the association of the member account with the administrator account is +// created only in the us-west-2 Region. Security Hub must be enabled for the +// member account in the same Region that the invitation was sent from. The +// following throttling limits apply to using Security Hub API operations. // -// * BatchEnableStandards - RateLimit of 1 -// request per second, BurstLimit of 1 request per second. +// * +// BatchEnableStandards - RateLimit of 1 request per second, BurstLimit of 1 +// request per second. // -// * GetFindings - -// RateLimit of 3 requests per second. BurstLimit of 6 requests per second. +// * GetFindings - RateLimit of 3 requests per second. +// BurstLimit of 6 requests per second. // -// * -// UpdateFindings - RateLimit of 1 request per second. BurstLimit of 5 requests per -// second. +// * UpdateFindings - RateLimit of 1 request +// per second. BurstLimit of 5 requests per second. // -// * UpdateStandardsControl - RateLimit of 1 request per second, -// BurstLimit of 5 requests per second. +// * UpdateStandardsControl - +// RateLimit of 1 request per second, BurstLimit of 5 requests per second. // -// * All other operations - RateLimit of 10 -// requests per second. BurstLimit of 30 requests per second. +// * All +// other operations - RateLimit of 10 requests per second. BurstLimit of 30 +// requests per second. package securityhub diff --git a/service/securityhub/serializers.go b/service/securityhub/serializers.go index 7b4cbbe988a..3dd98c2d732 100644 --- a/service/securityhub/serializers.go +++ b/service/securityhub/serializers.go @@ -6733,6 +6733,407 @@ func awsRestjson1_serializeDocumentAwsEcsClusterDetails(v *types.AwsEcsClusterDe return nil } +func awsRestjson1_serializeDocumentAwsEcsServiceCapacityProviderStrategyDetails(v *types.AwsEcsServiceCapacityProviderStrategyDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Base != 0 { + ok := object.Key("Base") + ok.Integer(v.Base) + } + + if v.CapacityProvider != nil { + ok := object.Key("CapacityProvider") + ok.String(*v.CapacityProvider) + } + + if v.Weight != 0 { + ok := object.Key("Weight") + ok.Integer(v.Weight) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceCapacityProviderStrategyList(v []types.AwsEcsServiceCapacityProviderStrategyDetails, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsEcsServiceCapacityProviderStrategyDetails(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails(v *types.AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Enable { + ok := object.Key("Enable") + ok.Boolean(v.Enable) + } + + if v.Rollback { + ok := object.Key("Rollback") + ok.Boolean(v.Rollback) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceDeploymentConfigurationDetails(v *types.AwsEcsServiceDeploymentConfigurationDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DeploymentCircuitBreaker != nil { + ok := object.Key("DeploymentCircuitBreaker") + if err := awsRestjson1_serializeDocumentAwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails(v.DeploymentCircuitBreaker, ok); err != nil { + return err + } + } + + if v.MaximumPercent != 0 { + ok := object.Key("MaximumPercent") + ok.Integer(v.MaximumPercent) + } + + if v.MinimumHealthyPercent != 0 { + ok := object.Key("MinimumHealthyPercent") + ok.Integer(v.MinimumHealthyPercent) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceDeploymentControllerDetails(v *types.AwsEcsServiceDeploymentControllerDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Type != nil { + ok := object.Key("Type") + ok.String(*v.Type) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceDetails(v *types.AwsEcsServiceDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CapacityProviderStrategy != nil { + ok := object.Key("CapacityProviderStrategy") + if err := awsRestjson1_serializeDocumentAwsEcsServiceCapacityProviderStrategyList(v.CapacityProviderStrategy, ok); err != nil { + return err + } + } + + if v.Cluster != nil { + ok := object.Key("Cluster") + ok.String(*v.Cluster) + } + + if v.DeploymentConfiguration != nil { + ok := object.Key("DeploymentConfiguration") + if err := awsRestjson1_serializeDocumentAwsEcsServiceDeploymentConfigurationDetails(v.DeploymentConfiguration, ok); err != nil { + return err + } + } + + if v.DeploymentController != nil { + ok := object.Key("DeploymentController") + if err := awsRestjson1_serializeDocumentAwsEcsServiceDeploymentControllerDetails(v.DeploymentController, ok); err != nil { + return err + } + } + + if v.DesiredCount != 0 { + ok := object.Key("DesiredCount") + ok.Integer(v.DesiredCount) + } + + if v.EnableEcsManagedTags { + ok := object.Key("EnableEcsManagedTags") + ok.Boolean(v.EnableEcsManagedTags) + } + + if v.EnableExecuteCommand { + ok := object.Key("EnableExecuteCommand") + ok.Boolean(v.EnableExecuteCommand) + } + + if v.HealthCheckGracePeriodSeconds != 0 { + ok := object.Key("HealthCheckGracePeriodSeconds") + ok.Integer(v.HealthCheckGracePeriodSeconds) + } + + if v.LaunchType != nil { + ok := object.Key("LaunchType") + ok.String(*v.LaunchType) + } + + if v.LoadBalancers != nil { + ok := object.Key("LoadBalancers") + if err := awsRestjson1_serializeDocumentAwsEcsServiceLoadBalancersList(v.LoadBalancers, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.NetworkConfiguration != nil { + ok := object.Key("NetworkConfiguration") + if err := awsRestjson1_serializeDocumentAwsEcsServiceNetworkConfigurationDetails(v.NetworkConfiguration, ok); err != nil { + return err + } + } + + if v.PlacementConstraints != nil { + ok := object.Key("PlacementConstraints") + if err := awsRestjson1_serializeDocumentAwsEcsServicePlacementConstraintsList(v.PlacementConstraints, ok); err != nil { + return err + } + } + + if v.PlacementStrategies != nil { + ok := object.Key("PlacementStrategies") + if err := awsRestjson1_serializeDocumentAwsEcsServicePlacementStrategiesList(v.PlacementStrategies, ok); err != nil { + return err + } + } + + if v.PlatformVersion != nil { + ok := object.Key("PlatformVersion") + ok.String(*v.PlatformVersion) + } + + if v.PropagateTags != nil { + ok := object.Key("PropagateTags") + ok.String(*v.PropagateTags) + } + + if v.Role != nil { + ok := object.Key("Role") + ok.String(*v.Role) + } + + if v.SchedulingStrategy != nil { + ok := object.Key("SchedulingStrategy") + ok.String(*v.SchedulingStrategy) + } + + if v.ServiceArn != nil { + ok := object.Key("ServiceArn") + ok.String(*v.ServiceArn) + } + + if v.ServiceName != nil { + ok := object.Key("ServiceName") + ok.String(*v.ServiceName) + } + + if v.ServiceRegistries != nil { + ok := object.Key("ServiceRegistries") + if err := awsRestjson1_serializeDocumentAwsEcsServiceServiceRegistriesList(v.ServiceRegistries, ok); err != nil { + return err + } + } + + if v.TaskDefinition != nil { + ok := object.Key("TaskDefinition") + ok.String(*v.TaskDefinition) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceLoadBalancersDetails(v *types.AwsEcsServiceLoadBalancersDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ContainerName != nil { + ok := object.Key("ContainerName") + ok.String(*v.ContainerName) + } + + if v.ContainerPort != 0 { + ok := object.Key("ContainerPort") + ok.Integer(v.ContainerPort) + } + + if v.LoadBalancerName != nil { + ok := object.Key("LoadBalancerName") + ok.String(*v.LoadBalancerName) + } + + if v.TargetGroupArn != nil { + ok := object.Key("TargetGroupArn") + ok.String(*v.TargetGroupArn) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceLoadBalancersList(v []types.AwsEcsServiceLoadBalancersDetails, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsEcsServiceLoadBalancersDetails(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails(v *types.AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssignPublicIp != nil { + ok := object.Key("AssignPublicIp") + ok.String(*v.AssignPublicIp) + } + + if v.SecurityGroups != nil { + ok := object.Key("SecurityGroups") + if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.SecurityGroups, ok); err != nil { + return err + } + } + + if v.Subnets != nil { + ok := object.Key("Subnets") + if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.Subnets, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceNetworkConfigurationDetails(v *types.AwsEcsServiceNetworkConfigurationDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AwsVpcConfiguration != nil { + ok := object.Key("AwsVpcConfiguration") + if err := awsRestjson1_serializeDocumentAwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails(v.AwsVpcConfiguration, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServicePlacementConstraintsDetails(v *types.AwsEcsServicePlacementConstraintsDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) + } + + if v.Type != nil { + ok := object.Key("Type") + ok.String(*v.Type) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServicePlacementConstraintsList(v []types.AwsEcsServicePlacementConstraintsDetails, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsEcsServicePlacementConstraintsDetails(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServicePlacementStrategiesDetails(v *types.AwsEcsServicePlacementStrategiesDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Field != nil { + ok := object.Key("Field") + ok.String(*v.Field) + } + + if v.Type != nil { + ok := object.Key("Type") + ok.String(*v.Type) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServicePlacementStrategiesList(v []types.AwsEcsServicePlacementStrategiesDetails, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsEcsServicePlacementStrategiesDetails(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceServiceRegistriesDetails(v *types.AwsEcsServiceServiceRegistriesDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ContainerName != nil { + ok := object.Key("ContainerName") + ok.String(*v.ContainerName) + } + + if v.ContainerPort != 0 { + ok := object.Key("ContainerPort") + ok.Integer(v.ContainerPort) + } + + if v.Port != 0 { + ok := object.Key("Port") + ok.Integer(v.Port) + } + + if v.RegistryArn != nil { + ok := object.Key("RegistryArn") + ok.String(*v.RegistryArn) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsEcsServiceServiceRegistriesList(v []types.AwsEcsServiceServiceRegistriesDetails, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAwsEcsServiceServiceRegistriesDetails(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentAwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails(v *types.AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -8162,6 +8563,13 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainDetails(v *types.AwsEla ok.String(*v.DomainName) } + if v.ElasticsearchClusterConfig != nil { + ok := object.Key("ElasticsearchClusterConfig") + if err := awsRestjson1_serializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigDetails(v.ElasticsearchClusterConfig, ok); err != nil { + return err + } + } + if v.ElasticsearchVersion != nil { ok := object.Key("ElasticsearchVersion") ok.String(*v.ElasticsearchVersion) @@ -8234,6 +8642,62 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainDomainEndpointOptions(v return nil } +func awsRestjson1_serializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigDetails(v *types.AwsElasticsearchDomainElasticsearchClusterConfigDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DedicatedMasterCount != 0 { + ok := object.Key("DedicatedMasterCount") + ok.Integer(v.DedicatedMasterCount) + } + + if v.DedicatedMasterEnabled { + ok := object.Key("DedicatedMasterEnabled") + ok.Boolean(v.DedicatedMasterEnabled) + } + + if v.DedicatedMasterType != nil { + ok := object.Key("DedicatedMasterType") + ok.String(*v.DedicatedMasterType) + } + + if v.InstanceCount != 0 { + ok := object.Key("InstanceCount") + ok.Integer(v.InstanceCount) + } + + if v.InstanceType != nil { + ok := object.Key("InstanceType") + ok.String(*v.InstanceType) + } + + if v.ZoneAwarenessConfig != nil { + ok := object.Key("ZoneAwarenessConfig") + if err := awsRestjson1_serializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails(v.ZoneAwarenessConfig, ok); err != nil { + return err + } + } + + if v.ZoneAwarenessEnabled { + ok := object.Key("ZoneAwarenessEnabled") + ok.Boolean(v.ZoneAwarenessEnabled) + } + + return nil +} + +func awsRestjson1_serializeDocumentAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails(v *types.AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AvailabilityZoneCount != 0 { + ok := object.Key("AvailabilityZoneCount") + ok.Integer(v.AvailabilityZoneCount) + } + + return nil +} + func awsRestjson1_serializeDocumentAwsElasticsearchDomainEncryptionAtRestOptions(v *types.AwsElasticsearchDomainEncryptionAtRestOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -8255,6 +8719,13 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainLogPublishingOptions(v object := value.Object() defer object.Close() + if v.AuditLogs != nil { + ok := object.Key("AuditLogs") + if err := awsRestjson1_serializeDocumentAwsElasticsearchDomainLogPublishingOptionsLogConfig(v.AuditLogs, ok); err != nil { + return err + } + } + if v.IndexSlowLogs != nil { ok := object.Key("IndexSlowLogs") if err := awsRestjson1_serializeDocumentAwsElasticsearchDomainLogPublishingOptionsLogConfig(v.IndexSlowLogs, ok); err != nil { @@ -11161,6 +11632,67 @@ func awsRestjson1_serializeDocumentAwsRdsDbSubnetGroupSubnets(v []types.AwsRdsDb return nil } +func awsRestjson1_serializeDocumentAwsRdsEventSubscriptionDetails(v *types.AwsRdsEventSubscriptionDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CustomerAwsId != nil { + ok := object.Key("CustomerAwsId") + ok.String(*v.CustomerAwsId) + } + + if v.CustSubscriptionId != nil { + ok := object.Key("CustSubscriptionId") + ok.String(*v.CustSubscriptionId) + } + + if v.Enabled { + ok := object.Key("Enabled") + ok.Boolean(v.Enabled) + } + + if v.EventCategoriesList != nil { + ok := object.Key("EventCategoriesList") + if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.EventCategoriesList, ok); err != nil { + return err + } + } + + if v.EventSubscriptionArn != nil { + ok := object.Key("EventSubscriptionArn") + ok.String(*v.EventSubscriptionArn) + } + + if v.SnsTopicArn != nil { + ok := object.Key("SnsTopicArn") + ok.String(*v.SnsTopicArn) + } + + if v.SourceIdsList != nil { + ok := object.Key("SourceIdsList") + if err := awsRestjson1_serializeDocumentNonEmptyStringList(v.SourceIdsList, ok); err != nil { + return err + } + } + + if v.SourceType != nil { + ok := object.Key("SourceType") + ok.String(*v.SourceType) + } + + if v.Status != nil { + ok := object.Key("Status") + ok.String(*v.Status) + } + + if v.SubscriptionCreationTime != nil { + ok := object.Key("SubscriptionCreationTime") + ok.String(*v.SubscriptionCreationTime) + } + + return nil +} + func awsRestjson1_serializeDocumentAwsRdsPendingCloudWatchLogsExports(v *types.AwsRdsPendingCloudWatchLogsExports, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -12408,6 +12940,11 @@ func awsRestjson1_serializeDocumentAwsSecurityFinding(v *types.AwsSecurityFindin ok.String(*v.AwsAccountId) } + if v.CompanyName != nil { + ok := object.Key("CompanyName") + ok.String(*v.CompanyName) + } + if v.Compliance != nil { ok := object.Key("Compliance") if err := awsRestjson1_serializeDocumentCompliance(v.Compliance, ok); err != nil { @@ -12516,11 +13053,21 @@ func awsRestjson1_serializeDocumentAwsSecurityFinding(v *types.AwsSecurityFindin } } + if v.ProductName != nil { + ok := object.Key("ProductName") + ok.String(*v.ProductName) + } + if len(v.RecordState) > 0 { ok := object.Key("RecordState") ok.String(string(v.RecordState)) } + if v.Region != nil { + ok := object.Key("Region") + ok.String(*v.Region) + } + if v.RelatedFindings != nil { ok := object.Key("RelatedFindings") if err := awsRestjson1_serializeDocumentRelatedFindingList(v.RelatedFindings, ok); err != nil { @@ -12957,6 +13504,13 @@ func awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v *types.AwsSecurit } } + if v.Region != nil { + ok := object.Key("Region") + if err := awsRestjson1_serializeDocumentStringFilterList(v.Region, ok); err != nil { + return err + } + } + if v.RelatedFindingsId != nil { ok := object.Key("RelatedFindingsId") if err := awsRestjson1_serializeDocumentStringFilterList(v.RelatedFindingsId, ok); err != nil { @@ -13041,6 +13595,13 @@ func awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v *types.AwsSecurit } } + if v.ResourceAwsIamAccessKeyPrincipalName != nil { + ok := object.Key("ResourceAwsIamAccessKeyPrincipalName") + if err := awsRestjson1_serializeDocumentStringFilterList(v.ResourceAwsIamAccessKeyPrincipalName, ok); err != nil { + return err + } + } + if v.ResourceAwsIamAccessKeyStatus != nil { ok := object.Key("ResourceAwsIamAccessKeyStatus") if err := awsRestjson1_serializeDocumentStringFilterList(v.ResourceAwsIamAccessKeyStatus, ok); err != nil { @@ -13055,6 +13616,13 @@ func awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v *types.AwsSecurit } } + if v.ResourceAwsIamUserUserName != nil { + ok := object.Key("ResourceAwsIamUserUserName") + if err := awsRestjson1_serializeDocumentStringFilterList(v.ResourceAwsIamUserUserName, ok); err != nil { + return err + } + } + if v.ResourceAwsS3BucketOwnerId != nil { ok := object.Key("ResourceAwsS3BucketOwnerId") if err := awsRestjson1_serializeDocumentStringFilterList(v.ResourceAwsS3BucketOwnerId, ok); err != nil { @@ -15292,6 +15860,13 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val } } + if v.AwsEcsService != nil { + ok := object.Key("AwsEcsService") + if err := awsRestjson1_serializeDocumentAwsEcsServiceDetails(v.AwsEcsService, ok); err != nil { + return err + } + } + if v.AwsEcsTaskDefinition != nil { ok := object.Key("AwsEcsTaskDefinition") if err := awsRestjson1_serializeDocumentAwsEcsTaskDefinitionDetails(v.AwsEcsTaskDefinition, ok); err != nil { @@ -15411,6 +15986,13 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val } } + if v.AwsRdsEventSubscription != nil { + ok := object.Key("AwsRdsEventSubscription") + if err := awsRestjson1_serializeDocumentAwsRdsEventSubscriptionDetails(v.AwsRdsEventSubscription, ok); err != nil { + return err + } + } + if v.AwsRedshiftCluster != nil { ok := object.Key("AwsRedshiftCluster") if err := awsRestjson1_serializeDocumentAwsRedshiftClusterDetails(v.AwsRedshiftCluster, ok); err != nil { diff --git a/service/securityhub/types/errors.go b/service/securityhub/types/errors.go index 6637f52a87d..d4475020527 100644 --- a/service/securityhub/types/errors.go +++ b/service/securityhub/types/errors.go @@ -95,8 +95,8 @@ func (e *InvalidInputException) ErrorCode() string { return "Invalid func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because it attempted to create resources beyond the -// current AWS account or throttling limits. The error code describes the limit -// exceeded. +// current Amazon Web Services account or throttling limits. The error code +// describes the limit exceeded. type LimitExceededException struct { Message *string diff --git a/service/securityhub/types/types.go b/service/securityhub/types/types.go index 02820bdb2cc..b26067026f4 100644 --- a/service/securityhub/types/types.go +++ b/service/securityhub/types/types.go @@ -7,15 +7,15 @@ import ( "time" ) -// The details of an AWS account. +// The details of an Amazon Web Services account. type AccountDetails struct { - // The ID of an AWS account. + // The ID of an Amazon Web Services account. // // This member is required. AccountId *string - // The email of an AWS account. + // The email of an Amazon Web Services account. Email *string noSmithyDocumentSerde @@ -24,15 +24,16 @@ type AccountDetails struct { // Provides details about one of the following actions that affects or that was // taken on a resource: // -// * A remote IP address issued an AWS API call +// * A remote IP address issued an Amazon Web Services API +// call // -// * A DNS -// request was received +// * A DNS request was received // -// * A remote IP address attempted to connect to an EC2 -// instance +// * A remote IP address attempted to connect +// to an EC2 instance // -// * A remote IP address attempted a port probe on an EC2 instance +// * A remote IP address attempted a port probe on an EC2 +// instance type Action struct { // The type of action that was detected. The possible action types are: @@ -150,7 +151,8 @@ type ActionTarget struct { // management account. type AdminAccount struct { - // The AWS account identifier of the Security Hub administrator account. + // The Amazon Web Services account identifier of the Security Hub administrator + // account. AccountId *string // The current status of the Security Hub administrator account. Indicates whether @@ -202,7 +204,7 @@ type AwsApiCallAction struct { // address that the API call originated from. RemoteIpDetails *ActionRemoteIpDetails - // The name of the AWS service that the API method belongs to. + // The name of the Amazon Web Services service that the API method belongs to. ServiceName *string noSmithyDocumentSerde @@ -407,7 +409,7 @@ type AwsApiGatewayStageDetails struct { // The name of the stage. StageName *string - // Indicates whether active tracing with AWS X-Ray is enabled for the stage. + // Indicates whether active tracing with X-Ray is enabled for the stage. TracingEnabled bool // A map that defines the stage variables for the stage. Variable names can have @@ -586,7 +588,7 @@ type AwsAutoScalingAutoScalingGroupDetails struct { noSmithyDocumentSerde } -// Provides details about an AWS Certificate Manager certificate. +// Provides details about an Certificate Manager certificate. type AwsCertificateManagerCertificateDetails struct { // The ARN of the private certificate authority (CA) that will be used to issue the @@ -627,7 +629,7 @@ type AwsCertificateManagerCertificateDetails struct { // cannot contain spaces. For example, 2020-03-22T13:22:13.933Z. ImportedAt *string - // The list of ARNs for the AWS resources that use the certificate. + // The list of ARNs for the Amazon Web Services resources that use the certificate. InUseBy []string // Indicates when the certificate was issued. Provided if the certificate type is @@ -667,8 +669,8 @@ type AwsCertificateManagerCertificateDetails struct { // INELIGIBLE RenewalEligibility *string - // Information about the status of the AWS Certificate Manager managed renewal for - // the certificate. Provided only when the certificate type is AMAZON_ISSUED. + // Information about the status of the Certificate Manager managed renewal for the + // certificate. Provided only when the certificate type is AMAZON_ISSUED. RenewalSummary *AwsCertificateManagerCertificateRenewalSummary // The serial number of the certificate. @@ -692,7 +694,7 @@ type AwsCertificateManagerCertificateDetails struct { // that can be used to connect to the website. SubjectAlternativeNames []string - // The source of the certificate. For certificates that AWS Certificate Manager + // The source of the certificate. For certificates that Certificate Manager // provides, Type is AMAZON_ISSUED. For certificates that are imported with // ImportCertificate, Type is IMPORTED. Valid values: IMPORTED | AMAZON_ISSUED | // PRIVATE @@ -707,7 +709,7 @@ type AwsCertificateManagerCertificateDetails struct { // each domain name that occurs as a result of the RequestCertificate request // // * -// The validation of each domain name in the certificate, as it pertains to AWS +// The validation of each domain name in the certificate, as it pertains to // Certificate Manager managed renewal type AwsCertificateManagerCertificateDomainValidationOption struct { @@ -717,11 +719,10 @@ type AwsCertificateManagerCertificateDomainValidationOption struct { // The CNAME record that is added to the DNS database for domain validation. ResourceRecord *AwsCertificateManagerCertificateResourceRecord - // The domain name that AWS Certificate Manager uses to send domain validation - // emails. + // The domain name that Certificate Manager uses to send domain validation emails. ValidationDomain *string - // A list of email addresses that AWS Certificate Manager uses to send domain + // A list of email addresses that Certificate Manager uses to send domain // validation emails. ValidationEmails []string @@ -767,17 +768,17 @@ type AwsCertificateManagerCertificateOptions struct { noSmithyDocumentSerde } -// Contains information about the AWS Certificate Manager managed renewal for an +// Contains information about the Certificate Manager managed renewal for an // AMAZON_ISSUED certificate. type AwsCertificateManagerCertificateRenewalSummary struct { // Information about the validation of each domain name in the certificate, as it - // pertains to AWS Certificate Manager managed renewal. Provided only when the + // pertains to Certificate Manager managed renewal. Provided only when the // certificate type is AMAZON_ISSUED. DomainValidationOptions []AwsCertificateManagerCertificateDomainValidationOption - // The status of the AWS Certificate Manager managed renewal of the certificate. - // Valid values: PENDING_AUTO_RENEWAL | PENDING_VALIDATION | SUCCESS | FAILED + // The status of the Certificate Manager managed renewal of the certificate. Valid + // values: PENDING_AUTO_RENEWAL | PENDING_VALIDATION | SUCCESS | FAILED RenewalStatus *string // The reason that a renewal request was unsuccessful. Valid values: @@ -902,8 +903,8 @@ type AwsCloudFrontDistributionDetails struct { // Indicates the current status of the distribution. Status *string - // A unique identifier that specifies the AWS WAF web ACL, if any, to associate - // with this distribution. + // A unique identifier that specifies the WAF web ACL, if any, to associate with + // this distribution. WebAclId *string noSmithyDocumentSerde @@ -913,7 +914,7 @@ type AwsCloudFrontDistributionDetails struct { // distribution. type AwsCloudFrontDistributionLogging struct { - // The Amazon S3 bucket to store the access logs in. + // The S3 bucket to store the access logs in. Bucket *string // With this field, you can enable or disable the selected distribution. @@ -969,13 +970,13 @@ type AwsCloudFrontDistributionOriginGroups struct { noSmithyDocumentSerde } -// A complex type that describes the Amazon S3 bucket, HTTP server (for example, a -// web server), Amazon Elemental MediaStore, or other server from which CloudFront -// gets your files. +// A complex type that describes the S3 bucket, HTTP server (for example, a web +// server), AWS Elemental MediaStore, or other server from which CloudFront gets +// your files. type AwsCloudFrontDistributionOriginItem struct { - // Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want - // CloudFront to get objects for this origin. + // Amazon S3 origins: The DNS name of the S3 bucket from which you want CloudFront + // to get objects for this origin. DomainName *string // A unique identifier for the origin or origin group. @@ -1018,8 +1019,8 @@ type AwsCloudTrailTrailDetails struct { // The ARN of the log group that CloudTrail logs are delivered to. CloudWatchLogsLogGroupArn *string - // The ARN of the role that the CloudWatch Logs endpoint assumes when it writes to - // the log group. + // The ARN of the role that the CloudWatch Events endpoint assumes when it writes + // to the log group. CloudWatchLogsRoleArn *string // Indicates whether the trail has custom event selectors. @@ -1036,11 +1037,11 @@ type AwsCloudTrailTrailDetails struct { // Regions. IsMultiRegionTrail bool - // Whether the trail is created for all accounts in an organization in AWS - // Organizations, or only for the current AWS account. + // Whether the trail is created for all accounts in an organization in + // Organizations, or only for the current Amazon Web Services account. IsOrganizationTrail bool - // The AWS KMS key ID to use to encrypt the logs. + // The KMS key ID to use to encrypt the logs. KmsKeyId *string // Indicates whether CloudTrail log file validation is enabled. @@ -1068,12 +1069,12 @@ type AwsCloudTrailTrailDetails struct { noSmithyDocumentSerde } -// Information about an AWS CodeBuild project. +// Information about an CodeBuild project. type AwsCodeBuildProjectDetails struct { - // The AWS Key Management Service (AWS KMS) customer master key (CMK) used to - // encrypt the build output artifacts. You can specify either the ARN of the CMK - // or, if available, the CMK alias (using the format alias/alias-name). + // The KMS customer master key (CMK) used to encrypt the build output artifacts. + // You can specify either the ARN of the CMK or, if available, the CMK alias (using + // the format alias/alias-name). EncryptionKey *string // Information about the build environment for this build project. @@ -1082,14 +1083,14 @@ type AwsCodeBuildProjectDetails struct { // The name of the build project. Name *string - // The ARN of the IAM role that enables AWS CodeBuild to interact with dependent - // AWS services on behalf of the AWS account. + // The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon + // Web Services services on behalf of the Amazon Web Services account. ServiceRole *string // Information about the build input source code for this build project. Source *AwsCodeBuildProjectSource - // Information about the VPC configuration that AWS CodeBuild accesses. + // Information about the VPC configuration that CodeBuild accesses. VpcConfig *AwsCodeBuildProjectVpcConfig noSmithyDocumentSerde @@ -1101,19 +1102,19 @@ type AwsCodeBuildProjectEnvironment struct { // The certificate to use with this build project. Certificate *string - // The type of credentials AWS CodeBuild uses to pull images in your build. Valid + // The type of credentials CodeBuild uses to pull images in your build. Valid // values: // - // * CODEBUILD specifies that AWS CodeBuild uses its own credentials. This - // requires that you modify your ECR repository policy to trust the AWS CodeBuild + // * CODEBUILD specifies that CodeBuild uses its own credentials. This + // requires that you modify your ECR repository policy to trust the CodeBuild // service principal. // - // * SERVICE_ROLE specifies that AWS CodeBuild uses your build + // * SERVICE_ROLE specifies that CodeBuild uses your build // project's service role. // // When you use a cross-account or private registry image, - // you must use SERVICE_ROLE credentials. When you use an AWS CodeBuild curated - // image, you must use CODEBUILD credentials. + // you must use SERVICE_ROLE credentials. When you use an CodeBuild curated image, + // you must use CODEBUILD credentials. ImagePullCredentialsType *string // The credentials for access to a private registry. @@ -1142,13 +1143,13 @@ type AwsCodeBuildProjectEnvironment struct { // The credentials for access to a private registry. type AwsCodeBuildProjectEnvironmentRegistryCredential struct { - // The ARN or name of credentials created using AWS Secrets Manager. The credential - // can use the name of the credentials only if they exist in your current AWS - // Region. + // The ARN or name of credentials created using Secrets Manager. The credential can + // use the name of the credentials only if they exist in your current Amazon Web + // Services Region. Credential *string // The service that created the credentials to access a private Docker registry. - // The valid value, SECRETS_MANAGER, is for AWS Secrets Manager. + // The valid value, SECRETS_MANAGER, is for Secrets Manager. CredentialProvider *string noSmithyDocumentSerde @@ -1167,13 +1168,13 @@ type AwsCodeBuildProjectSource struct { // include: // // * For source code settings that are specified in the source action of - // a pipeline in AWS CodePipeline, location should not be specified. If it is - // specified, AWS CodePipeline ignores it. This is because AWS CodePipeline uses - // the settings in a pipeline's source action instead of this value. + // a pipeline in CodePipeline, location should not be specified. If it is + // specified, CodePipeline ignores it. This is because CodePipeline uses the + // settings in a pipeline's source action instead of this value. // - // * For source - // code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that - // contains the source code and the build spec file (for example, + // * For source code + // in an CodeCommit repository, the HTTPS clone URL to the repository that contains + // the source code and the build spec file (for example, // https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ). // // * For @@ -1201,10 +1202,10 @@ type AwsCodeBuildProjectSource struct { // * BITBUCKET - The source code is in a Bitbucket repository. // // * CODECOMMIT - // - The source code is in an AWS CodeCommit repository. + // - The source code is in an CodeCommit repository. // - // * CODEPIPELINE - The - // source code settings are specified in the source action of a pipeline in AWS + // * CODEPIPELINE - The source + // code settings are specified in the source action of a pipeline in // CodePipeline. // // * GITHUB - The source code is in a GitHub repository. @@ -1222,13 +1223,13 @@ type AwsCodeBuildProjectSource struct { noSmithyDocumentSerde } -// Information about the VPC configuration that AWS CodeBuild accesses. +// Information about the VPC configuration that CodeBuild accesses. type AwsCodeBuildProjectVpcConfig struct { - // A list of one or more security group IDs in your Amazon VPC. + // A list of one or more security group IDs in your VPC. SecurityGroupIds []string - // A list of one or more subnet IDs in your Amazon VPC. + // A list of one or more subnet IDs in your VPC. Subnets []string // The ID of the VPC. @@ -1481,8 +1482,8 @@ type AwsDynamoDbTableReplica struct { // List of global secondary indexes for the replica. GlobalSecondaryIndexes []AwsDynamoDbTableReplicaGlobalSecondaryIndex - // The identifier of the AWS KMS customer master key (CMK) that will be used for - // AWS KMS encryption for the replica. + // The identifier of the KMS customer master key (CMK) that will be used for KMS + // encryption for the replica. KmsMasterKeyId *string // Replica-specific configuration for the provisioned throughput. @@ -1543,7 +1544,7 @@ type AwsDynamoDbTableSseDescription struct { // spaces. For example, 2020-03-22T13:22:13.933Z. InaccessibleEncryptionDateTime *string - // The ARN of the AWS KMS customer master key (CMK) that is used for the AWS KMS + // The ARN of the KMS customer master key (CMK) that is used for the KMS // encryption. KmsMasterKeyArn *string @@ -1571,8 +1572,8 @@ type AwsDynamoDbTableStreamSpecification struct { // Information about an Elastic IP address. type AwsEc2EipDetails struct { - // The identifier that AWS assigns to represent the allocation of the Elastic IP - // address for use with Amazon VPC. + // The identifier that Amazon Web Services assigns to represent the allocation of + // the Elastic IP address for use with Amazon VPC. AllocationId *string // The identifier that represents the association of the Elastic IP address with an @@ -1592,7 +1593,7 @@ type AwsEc2EipDetails struct { // The identifier of the network interface. NetworkInterfaceId *string - // The AWS account ID of the owner of the network interface. + // The Amazon Web Services account ID of the owner of the network interface. NetworkInterfaceOwnerId *string // The private IP address that is associated with the Elastic IP address. @@ -1689,7 +1690,7 @@ type AwsEc2NetworkAclDetails struct { // The identifier of the network ACL. NetworkAclId *string - // The identifier of the AWS account that owns the network ACL. + // The identifier of the Amazon Web Services account that owns the network ACL. OwnerId *string // The identifier of the VPC for the network ACL. @@ -1754,7 +1755,7 @@ type AwsEc2NetworkInterfaceAttachment struct { // The ID of the instance. InstanceId *string - // The AWS account ID of the owner of the instance. + // The Amazon Web Services account ID of the owner of the instance. InstanceOwnerId *string // The attachment state. Valid values: attaching | attached | detaching | detached @@ -1843,7 +1844,7 @@ type AwsEc2SecurityGroupDetails struct { // [VPC only] The outbound rules associated with the security group. IpPermissionsEgress []AwsEc2SecurityGroupIpPermission - // The AWS account ID of the owner of the security group. + // The Amazon Web Services account ID of the owner of the security group. OwnerId *string // [VPC only] The ID of the VPC for the security group. @@ -1874,9 +1875,9 @@ type AwsEc2SecurityGroupIpPermission struct { // The IPv6 ranges. Ipv6Ranges []AwsEc2SecurityGroupIpv6Range - // [VPC only] The prefix list IDs for an AWS service. With outbound rules, this is - // the AWS service to access through a VPC endpoint from instances associated with - // the security group. + // [VPC only] The prefix list IDs for an Amazon Web Services service. With outbound + // rules, this is the Amazon Web Services service to access through a VPC endpoint + // from instances associated with the security group. PrefixListIds []AwsEc2SecurityGroupPrefixListId // The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. @@ -1884,7 +1885,7 @@ type AwsEc2SecurityGroupIpPermission struct { // types, you must specify all codes. ToPort int32 - // The security group and AWS account ID pairs. + // The security group and Amazon Web Services account ID pairs. UserIdGroupPairs []AwsEc2SecurityGroupUserIdGroupPair noSmithyDocumentSerde @@ -1933,11 +1934,11 @@ type AwsEc2SecurityGroupUserIdGroupPair struct { // The status of a VPC peering connection, if applicable. PeeringStatus *string - // The ID of an AWS account. For a referenced security group in another VPC, the - // account ID of the referenced security group is returned in the response. If the - // referenced security group is deleted, this value is not returned. [EC2-Classic] - // Required when adding or removing rules that reference a security group in - // another VPC. + // The ID of an Amazon Web Services account. For a referenced security group in + // another VPC, the account ID of the referenced security group is returned in the + // response. If the referenced security group is deleted, this value is not + // returned. [EC2-Classic] Required when adding or removing rules that reference a + // security group in another VPC. UserId *string // The ID of the VPC for the referenced security group, if applicable. @@ -1949,7 +1950,7 @@ type AwsEc2SecurityGroupUserIdGroupPair struct { noSmithyDocumentSerde } -// Contains information about a subnet in EC2. +// Contains information about a subnet in Amazon EC2. type AwsEc2SubnetDetails struct { // Whether to assign an IPV6 address to a network interface that is created in this @@ -1978,7 +1979,7 @@ type AwsEc2SubnetDetails struct { // Whether instances in this subnet receive a public IP address. MapPublicIpOnLaunch bool - // The identifier of the AWS account that owns the subnet. + // The identifier of the Amazon Web Services account that owns the subnet. OwnerId *string // The current state of the subnet. @@ -1996,7 +1997,7 @@ type AwsEc2SubnetDetails struct { noSmithyDocumentSerde } -// An attachment to an AWS EC2 volume. +// An attachment to an Amazon EC2 volume. type AwsEc2VolumeAttachment struct { // The datetime when the attachment initiated. @@ -2029,8 +2030,8 @@ type AwsEc2VolumeDetails struct { // Whether the volume is encrypted. Encrypted bool - // The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) - // that was used to protect the volume encryption key for the volume. + // The ARN of the KMS customer master key (CMK) that was used to protect the volume + // encryption key for the volume. KmsKeyId *string // The size of the volume, in GiBs. @@ -2163,6 +2164,297 @@ type AwsEcsClusterDetails struct { noSmithyDocumentSerde } +// Strategy item for the capacity provider strategy that the service uses. +type AwsEcsServiceCapacityProviderStrategyDetails struct { + + // The minimum number of tasks to run on the capacity provider. Only one strategy + // item can specify a value for Base. The value must be between 0 and 100000. + Base int32 + + // The short name of the capacity provider. + CapacityProvider *string + + // The relative percentage of the total number of tasks that should use the + // capacity provider. If no weight is specified, the default value is 0. At least + // one capacity provider must have a weight greater than 0. The value can be + // between 0 and 1000. + Weight int32 + + noSmithyDocumentSerde +} + +// Determines whether a service deployment fails if a service cannot reach a steady +// state. +type AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails struct { + + // Whether to enable the deployment circuit breaker logic for the service. + Enable bool + + // Whether to roll back the service if a service deployment fails. If rollback is + // enabled, when a service deployment fails, the service is rolled back to the last + // deployment that completed successfully. + Rollback bool + + noSmithyDocumentSerde +} + +// Optional deployment parameters for the service. +type AwsEcsServiceDeploymentConfigurationDetails struct { + + // Determines whether a service deployment fails if a service cannot reach a steady + // state. + DeploymentCircuitBreaker *AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails + + // For a service that uses the rolling update (ECS) deployment type, the maximum + // number of tasks in a service that are allowed in the RUNNING or PENDING state + // during a deployment, and for tasks that use the EC2 launch type, when any + // container instances are in the DRAINING state. Provided as a percentage of the + // desired number of tasks. The default value is 200%. For a service that uses the + // blue/green (CODE_DEPLOY) or EXTERNAL deployment types, and tasks that use the + // EC2 launch type, the maximum number of tasks in the service that remain in the + // RUNNING state while the container instances are in the DRAINING state. For the + // Fargate launch type, the maximum percent value is not used. + MaximumPercent int32 + + // For a service that uses the rolling update (ECS) deployment type, the minimum + // number of tasks in a service that must remain in the RUNNING state during a + // deployment, and while any container instances are in the DRAINING state if the + // service contains tasks using the EC2 launch type. Expressed as a percentage of + // the desired number of tasks. The default value is 100%. For a service that uses + // the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and tasks that use the + // EC2 launch type, the minimum number of the tasks in the service that remain in + // the RUNNING state while the container instances are in the DRAINING state. For + // the Fargate launch type, the minimum healthy percent value is not used. + MinimumHealthyPercent int32 + + noSmithyDocumentSerde +} + +// Information about the deployment controller type that the service uses. +type AwsEcsServiceDeploymentControllerDetails struct { + + // The rolling update (ECS) deployment type replaces the current running version of + // the container with the latest version. The blue/green (CODE_DEPLOY) deployment + // type uses the blue/green deployment model that is powered by CodeDeploy. This + // deployment model a new deployment of a service can be verified before production + // traffic is sent to it. The external (EXTERNAL) deployment type allows the use of + // any third-party deployment controller for full control over the deployment + // process for an Amazon ECS service. Valid values: ECS | CODE_DEPLOY | EXTERNAL + Type *string + + noSmithyDocumentSerde +} + +// Provides details about a service within an ECS cluster. +type AwsEcsServiceDetails struct { + + // The capacity provider strategy that the service uses. + CapacityProviderStrategy []AwsEcsServiceCapacityProviderStrategyDetails + + // The ARN of the cluster that hosts the service. + Cluster *string + + // Deployment parameters for the service. Includes the number of tasks that run and + // the order in which to start and stop tasks. + DeploymentConfiguration *AwsEcsServiceDeploymentConfigurationDetails + + // Contains the deployment controller type that the service uses. + DeploymentController *AwsEcsServiceDeploymentControllerDetails + + // The number of instantiations of the task definition to run on the service. + DesiredCount int32 + + // Whether to enable Amazon ECS managed tags for the tasks in the service. + EnableEcsManagedTags bool + + // Whether the execute command functionality is enabled for the service. + EnableExecuteCommand bool + + // After a task starts, the amount of time in seconds that the Amazon ECS service + // scheduler ignores unhealthy Elastic Load Balancing target health checks. + HealthCheckGracePeriodSeconds int32 + + // The launch type that the service uses. Valid values: EC2 | FARGATE | EXTERNAL + LaunchType *string + + // Information about the load balancers that the service uses. + LoadBalancers []AwsEcsServiceLoadBalancersDetails + + // The name of the service. + Name *string + + // For tasks that use the awsvpc networking mode, the VPC subnet and security group + // configuration. + NetworkConfiguration *AwsEcsServiceNetworkConfigurationDetails + + // The placement constraints for the tasks in the service. + PlacementConstraints []AwsEcsServicePlacementConstraintsDetails + + // Information about how tasks for the service are placed. + PlacementStrategies []AwsEcsServicePlacementStrategiesDetails + + // The platform version on which to run the service. Only specified for tasks that + // are hosted on Fargate. If a platform version is not specified, the LATEST + // platform version is used by default. + PlatformVersion *string + + // Indicates whether to propagate the tags from the task definition to the task or + // from the service to the task. If no value is provided, then tags are not + // propagated. Valid values: TASK_DEFINITION | SERVICE + PropagateTags *string + + // The ARN of the IAM role that is associated with the service. The role allows the + // Amazon ECS container agent to register container instances with an Elastic Load + // Balancing load balancer. + Role *string + + // The scheduling strategy to use for the service. The REPLICA scheduling strategy + // places and maintains the desired number of tasks across the cluster. By default, + // the service scheduler spreads tasks across Availability Zones. Task placement + // strategies and constraints are used to customize task placement decisions. The + // DAEMON scheduling strategy deploys exactly one task on each active container + // instance that meets all of the task placement constraints that are specified in + // the cluster. The service scheduler also evaluates the task placement constraints + // for running tasks and stops tasks that do not meet the placement constraints. + // Valid values: REPLICA | DAEMON + SchedulingStrategy *string + + // The ARN of the service. + ServiceArn *string + + // The name of the service. The name can contain up to 255 characters. It can use + // letters, numbers, underscores, and hyphens. + ServiceName *string + + // Information about the service discovery registries to assign to the service. + ServiceRegistries []AwsEcsServiceServiceRegistriesDetails + + // The task definition to use for tasks in the service. + TaskDefinition *string + + noSmithyDocumentSerde +} + +// Information about a load balancer that the service uses. +type AwsEcsServiceLoadBalancersDetails struct { + + // The name of the container to associate with the load balancer. + ContainerName *string + + // The port on the container to associate with the load balancer. This port must + // correspond to a containerPort in the task definition the tasks in the service + // are using. For tasks that use the EC2 launch type, the container instance they + // are launched on must allow ingress traffic on the hostPort of the port mapping. + ContainerPort int32 + + // The name of the load balancer to associate with the Amazon ECS service or task + // set. Only specified when using a Classic Load Balancer. For an Application Load + // Balancer or a Network Load Balancer, the load balancer name is omitted. + LoadBalancerName *string + + // The ARN of the Elastic Load Balancing target group or groups associated with a + // service or task set. Only specified when using an Application Load Balancer or a + // Network Load Balancer. For a Classic Load Balancer, the target group ARN is + // omitted. + TargetGroupArn *string + + noSmithyDocumentSerde +} + +// For tasks that use the awsvpc networking mode, the VPC subnet and security group +// configuration. +type AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails struct { + + // Whether the task's elastic network interface receives a public IP address. The + // default value is DISABLED. Valid values: ENABLED | DISABLED + AssignPublicIp *string + + // The IDs of the security groups associated with the task or service. You can + // provide up to five security groups. + SecurityGroups []string + + // The IDs of the subnets associated with the task or service. You can provide up + // to 16 subnets. + Subnets []string + + noSmithyDocumentSerde +} + +// For tasks that use the awsvpc networking mode, the VPC subnet and security group +// configuration. +type AwsEcsServiceNetworkConfigurationDetails struct { + + // The VPC subnet and security group configuration. + AwsVpcConfiguration *AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails + + noSmithyDocumentSerde +} + +// A placement constraint for the tasks in the service. +type AwsEcsServicePlacementConstraintsDetails struct { + + // A cluster query language expression to apply to the constraint. You cannot + // specify an expression if the constraint type is distinctInstance. + Expression *string + + // The type of constraint. Use distinctInstance to run each task in a particular + // group on a different container instance. Use memberOf to restrict the selection + // to a group of valid candidates. Valid values: distinctInstance | memberOf + Type *string + + noSmithyDocumentSerde +} + +// A placement strategy that determines how to place the tasks for the service. +type AwsEcsServicePlacementStrategiesDetails struct { + + // The field to apply the placement strategy against. For the spread placement + // strategy, valid values are instanceId (or host, which has the same effect), or + // any platform or custom attribute that is applied to a container instance, such + // as attribute:ecs.availability-zone. For the binpack placement strategy, valid + // values are cpu and memory. For the random placement strategy, this attribute is + // not used. + Field *string + + // The type of placement strategy. The random placement strategy randomly places + // tasks on available candidates. The spread placement strategy spreads placement + // across available candidates evenly based on the value of Field. The binpack + // strategy places tasks on available candidates that have the least available + // amount of the resource that is specified in Field. Valid values: random | spread + // | binpack + Type *string + + noSmithyDocumentSerde +} + +// Information about a service discovery registry to assign to the service. +type AwsEcsServiceServiceRegistriesDetails struct { + + // The container name value to use for the service discovery service. If the task + // definition uses the bridge or host network mode, you must specify ContainerName + // and ContainerPort. If the task definition uses the awsvpc network mode and a + // type SRV DNS record, you must specify either ContainerName and ContainerPort, or + // Port , but not both. + ContainerName *string + + // The port value to use for the service discovery service. If the task definition + // uses the bridge or host network mode, you must specify ContainerName and + // ContainerPort. If the task definition uses the awsvpc network mode and a type + // SRV DNS record, you must specify either ContainerName and ContainerPort, or Port + // , but not both. + ContainerPort int32 + + // The port value to use for a service discovery service that specifies an SRV + // record. This field can be used if both the awsvpcawsvpc network mode and SRV + // records are used. + Port int32 + + // The ARN of the service registry. + RegistryArn *string + + noSmithyDocumentSerde +} + // A dependency that is defined for container startup and shutdown. type AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails struct { @@ -2673,7 +2965,7 @@ type AwsEcsTaskDefinitionDetails struct { RequiresCompatibilities []string // The short name or ARN of the IAM role that grants containers in the task - // permission to call AWS API operations on your behalf. + // permission to call Amazon Web Services API operations on your behalf. TaskRoleArn *string // The data volume definitions for the task. @@ -2926,24 +3218,28 @@ type AwsElasticBeanstalkEnvironmentTier struct { noSmithyDocumentSerde } -// Information about an Elasticsearch domain. +// Information about an Amazon Elasticsearch Service domain. type AwsElasticsearchDomainDetails struct { - // IAM policy document specifying the access policies for the new Amazon ES domain. + // IAM policy document specifying the access policies for the new Elasticsearch + // domain. AccessPolicies *string // Additional options for the domain endpoint. DomainEndpointOptions *AwsElasticsearchDomainDomainEndpointOptions - // Unique identifier for an Amazon ES domain. + // Unique identifier for an Elasticsearch domain. DomainId *string - // Name of an Amazon ES domain. Domain names are unique across all domains owned by - // the same account within an AWS Region. Domain names must start with a lowercase - // letter and must be between 3 and 28 characters. Valid characters are a-z - // (lowercase only), 0-9, and – (hyphen). + // Name of an Elasticsearch domain. Domain names are unique across all domains + // owned by the same account within an Amazon Web Services Region. Domain names + // must start with a lowercase letter and must be between 3 and 28 characters. + // Valid characters are a-z (lowercase only), 0-9, and – (hyphen). DomainName *string + // Information about an Elasticsearch cluster configuration. + ElasticsearchClusterConfig *AwsElasticsearchDomainElasticsearchClusterConfigDetails + // Elasticsearch version. ElasticsearchVersion *string @@ -2951,10 +3247,10 @@ type AwsElasticsearchDomainDetails struct { EncryptionAtRestOptions *AwsElasticsearchDomainEncryptionAtRestOptions // Domain-specific endpoint used to submit index, search, and data upload requests - // to an Amazon ES domain. The endpoint is a service URL. + // to an Elasticsearch domain. The endpoint is a service URL. Endpoint *string - // The key-value pair that exists if the Amazon ES domain uses VPC endpoints. + // The key-value pair that exists if the Elasticsearch domain uses VPC endpoints. Endpoints map[string]string // Configures the CloudWatch Logs to publish for the Elasticsearch domain. @@ -2967,7 +3263,7 @@ type AwsElasticsearchDomainDetails struct { // software. ServiceSoftwareOptions *AwsElasticsearchDomainServiceSoftwareOptions - // Information that Amazon ES derives based on VPCOptions for the domain. + // Information that Elasticsearch derives based on VPCOptions for the domain. VPCOptions *AwsElasticsearchDomainVPCOptions noSmithyDocumentSerde @@ -2992,6 +3288,52 @@ type AwsElasticsearchDomainDomainEndpointOptions struct { noSmithyDocumentSerde } +// details about the configuration of an Elasticsearch cluster. +type AwsElasticsearchDomainElasticsearchClusterConfigDetails struct { + + // The number of instances to use for the master node. If this attribute is + // specified, then DedicatedMasterEnabled must be true. + DedicatedMasterCount int32 + + // Whether to use a dedicated master node for the Elasticsearch domain. A dedicated + // master node performs cluster management tasks, but doesn't hold data or respond + // to data upload requests. + DedicatedMasterEnabled bool + + // The hardware configuration of the computer that hosts the dedicated master node. + // For example, m3.medium.elasticsearch. If this attribute is specified, then + // DedicatedMasterEnabled must be true. + DedicatedMasterType *string + + // The number of data nodes to use in the Elasticsearch domain. + InstanceCount int32 + + // The instance type for your data nodes. For example, m3.medium.elasticsearch. + InstanceType *string + + // Configuration options for zone awareness. Provided if ZoneAwarenessEnabled is + // true. + ZoneAwarenessConfig *AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails + + // Whether to enable zone awareness for the Elasticsearch domain. When zone + // awareness is enabled, Elasticsearch allocates the cluster's nodes and replica + // index shards across Availability Zones in the same Region. This prevents data + // loss and minimizes downtime if a node or data center fails. + ZoneAwarenessEnabled bool + + noSmithyDocumentSerde +} + +// Configuration options for zone awareness. +type AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails struct { + + // he number of Availability Zones that the domain uses. Valid values are 2 and 3. + // The default is 2. + AvailabilityZoneCount int32 + + noSmithyDocumentSerde +} + // Details about the configuration for encryption at rest. type AwsElasticsearchDomainEncryptionAtRestOptions struct { @@ -3007,6 +3349,9 @@ type AwsElasticsearchDomainEncryptionAtRestOptions struct { // configures the CloudWatch Logs to publish for the Elasticsearch domain. type AwsElasticsearchDomainLogPublishingOptions struct { + // The log configuration. + AuditLogs *AwsElasticsearchDomainLogPublishingOptionsLogConfig + // Configures the Elasticsearch index logs publishing. IndexSlowLogs *AwsElasticsearchDomainLogPublishingOptionsLogConfig @@ -3067,7 +3412,7 @@ type AwsElasticsearchDomainServiceSoftwareOptions struct { noSmithyDocumentSerde } -// Information that Amazon ES derives based on VPCOptions for the domain. +// Information that Elasticsearch derives based on VPCOptions for the domain. type AwsElasticsearchDomainVPCOptions struct { // The list of Availability Zones associated with the VPC subnets. @@ -3424,7 +3769,7 @@ type AwsIamAccessKeyDetails struct { // The identifier of the access key. AccessKeyId *string - // The AWS account ID of the account for the key. + // The Amazon Web Services account ID of the account for the key. AccountId *string // Indicates when the IAM access key was created. Uses the date-time format @@ -3488,7 +3833,7 @@ type AwsIamAccessKeySessionContextAttributes struct { // Information about the entity that created the session. type AwsIamAccessKeySessionContextSessionIssuer struct { - // The identifier of the AWS account that created the session. + // The identifier of the Amazon Web Services account that created the session. AccountId *string // The ARN of the session. @@ -3781,7 +4126,8 @@ type AwsIamUserPolicy struct { // Contains metadata about a customer master key (CMK). type AwsKmsKeyDetails struct { - // The twelve-digit account ID of the AWS account that owns the CMK. + // The twelve-digit account ID of the Amazon Web Services account that owns the + // CMK. AWSAccountId *string // Indicates when the CMK was created. Uses the date-time format specified in RFC @@ -3796,18 +4142,18 @@ type AwsKmsKeyDetails struct { // The globally unique identifier for the CMK. KeyId *string - // The manager of the CMK. CMKs in your AWS account are either customer managed or - // AWS managed. + // The manager of the CMK. CMKs in your Amazon Web Services account are either + // customer managed or Amazon Web Services managed. KeyManager *string // The state of the CMK. KeyState *string - // The source of the CMK's key material. When this value is AWS_KMS, AWS KMS - // created the key material. When this value is EXTERNAL, the key material was - // imported from your existing key management infrastructure or the CMK lacks key - // material. When this value is AWS_CLOUDHSM, the key material was created in the - // AWS CloudHSM cluster associated with a custom key store. + // The source of the CMK's key material. When this value is AWS_KMS, KMS created + // the key material. When this value is EXTERNAL, the key material was imported + // from your existing key management infrastructure or the CMK lacks key material. + // When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM + // cluster associated with a custom key store. Origin *string noSmithyDocumentSerde @@ -3817,8 +4163,8 @@ type AwsKmsKeyDetails struct { // or upload a deployment package directly. type AwsLambdaFunctionCode struct { - // An Amazon S3 bucket in the same AWS Region as your function. The bucket can be - // in a different AWS account. + // An Amazon S3 bucket in the same Amazon Web Services Region as your function. The + // bucket can be in a different Amazon Web Services account. S3Bucket *string // The Amazon S3 key of the deployment package. @@ -3827,8 +4173,8 @@ type AwsLambdaFunctionCode struct { // For versioned objects, the version of the deployment package object to use. S3ObjectVersion *string - // The base64-encoded contents of the deployment package. AWS SDK and AWS CLI - // clients handle the encoding for you. + // The base64-encoded contents of the deployment package. Amazon Web Services SDK + // and Amazon Web Services CLI clients handle the encoding for you. ZipFile *string noSmithyDocumentSerde @@ -3837,7 +4183,7 @@ type AwsLambdaFunctionCode struct { // The dead-letter queue for failed asynchronous invocations. type AwsLambdaFunctionDeadLetterConfig struct { - // The ARN of an Amazon SQS queue or Amazon SNS topic. + // The ARN of an SQS queue or SNS topic. TargetArn *string noSmithyDocumentSerde @@ -3864,7 +4210,7 @@ type AwsLambdaFunctionDetails struct { // The function that Lambda calls to begin executing your function. Handler *string - // The KMS key that's used to encrypt the function's environment variables. This + // The KMS key that is used to encrypt the function's environment variables. This // key is only returned if you've configured a customer managed CMK. KmsKeyArn *string @@ -3895,7 +4241,7 @@ type AwsLambdaFunctionDetails struct { // The amount of time that Lambda allows a function to run before stopping it. Timeout int32 - // The function's AWS X-Ray tracing configuration. + // The function's X-Ray tracing configuration. TracingConfig *AwsLambdaFunctionTracingConfig // The version of the Lambda function. @@ -3931,7 +4277,7 @@ type AwsLambdaFunctionEnvironmentError struct { noSmithyDocumentSerde } -// An AWS Lambda layer. +// An Lambda layer. type AwsLambdaFunctionLayer struct { // The ARN of the function layer. @@ -3943,7 +4289,7 @@ type AwsLambdaFunctionLayer struct { noSmithyDocumentSerde } -// The function's AWS X-Ray tracing configuration. +// The function's X-Ray tracing configuration. type AwsLambdaFunctionTracingConfig struct { // The tracing mode. @@ -4028,8 +4374,8 @@ type AwsRdsDbClusterDetails struct { // Whether tags are copied from the DB cluster to snapshots of the DB cluster. CopyTagsToSnapshot bool - // Whether the DB cluster is a clone of a DB cluster owned by a different AWS - // account. + // Whether the DB cluster is a clone of a DB cluster owned by a different Amazon + // Web Services account. CrossAccountClone bool // A list of custom endpoints for the DB cluster. @@ -4051,8 +4397,8 @@ type AwsRdsDbClusterDetails struct { // The name of the DB cluster parameter group for the DB cluster. DbClusterParameterGroup *string - // The identifier of the DB cluster. The identifier must be unique within each AWS - // Region and is immutable. + // The identifier of the DB cluster. The identifier must be unique within each + // Amazon Web Services Region and is immutable. DbClusterResourceId *string // The subnet group that is associated with the DB cluster, including the name, @@ -4092,8 +4438,8 @@ type AwsRdsDbClusterDetails struct { // Whether the mapping of IAM accounts to database accounts is enabled. IamDatabaseAuthenticationEnabled bool - // The ARN of the AWS KMS master key that is used to encrypt the database instances - // in the DB cluster. + // The ARN of the KMS master key that is used to encrypt the database instances in + // the DB cluster. KmsKeyId *string // The name of the master user for the DB cluster. @@ -4193,8 +4539,8 @@ type AwsRdsDbClusterSnapshotDetails struct { // Whether mapping of IAM accounts to database accounts is enabled. IamDatabaseAuthenticationEnabled bool - // The ARN of the AWS KMS master key that is used to encrypt the database instances - // in the DB cluster. + // The ARN of the KMS master key that is used to encrypt the database instances in + // the DB cluster. KmsKeyId *string // The license model information for this DB cluster snapshot. @@ -4249,11 +4595,10 @@ type AwsRdsDbDomainMembership struct { noSmithyDocumentSerde } -// An AWS Identity and Access Management (IAM) role associated with the DB -// instance. +// An IAM role associated with the DB instance. type AwsRdsDbInstanceAssociatedRole struct { - // The name of the feature associated with the IAM)role. + // The name of the feature associated with the IAM role. FeatureName *string // The ARN of the IAM role that is associated with the DB instance. @@ -4263,15 +4608,15 @@ type AwsRdsDbInstanceAssociatedRole struct { // The Status property returns one of the following values: // // * ACTIVE - The IAM - // role ARN is associated with the DB instance and can be used to access other AWS - // services on your behalf. + // role ARN is associated with the DB instance and can be used to access other + // Amazon Web Services services on your behalf. // - // * PENDING - The IAM role ARN is being associated with - // the DB instance. + // * PENDING - The IAM role ARN is + // being associated with the DB instance. // - // * INVALID - The IAM role ARN is associated with the DB - // instance. But the DB instance is unable to assume the IAM role in order to - // access other AWS services on your behalf. + // * INVALID - The IAM role ARN is + // associated with the DB instance. But the DB instance is unable to assume the IAM + // role in order to access other Amazon Web Services services on your behalf. Status *string noSmithyDocumentSerde @@ -4283,8 +4628,7 @@ type AwsRdsDbInstanceDetails struct { // The amount of storage (in gigabytes) to initially allocate for the DB instance. AllocatedStorage int32 - // The AWS Identity and Access Management (IAM) roles associated with the DB - // instance. + // The IAM roles associated with the DB instance. AssociatedRoles []AwsRdsDbInstanceAssociatedRole // Indicates whether minor version patches are applied automatically. @@ -4340,9 +4684,9 @@ type AwsRdsDbInstanceDetails struct { // Information about the subnet group that is associated with the DB instance. DbSubnetGroup *AwsRdsDbSubnetGroup - // The AWS Region-unique, immutable identifier for the DB instance. This identifier - // is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB - // instance is accessed. + // The Amazon Web Services Region-unique, immutable identifier for the DB instance. + // This identifier is found in CloudTrail log entries whenever the KMS key for the + // DB instance is accessed. DbiResourceId *string // Indicates whether the DB instance has deletion protection enabled. When deletion @@ -4369,17 +4713,16 @@ type AwsRdsDbInstanceDetails struct { // metrics data for the DB instance. EnhancedMonitoringResourceArn *string - // True if mapping of AWS Identity and Access Management (IAM) accounts to database - // accounts is enabled, and otherwise false. IAM database authentication can be - // enabled for the following database engines. + // True if mapping of IAM accounts to database accounts is enabled, and otherwise + // false. IAM database authentication can be enabled for the following database + // engines. // - // * For MySQL 5.6, minor version - // 5.6.34 or higher + // * For MySQL 5.6, minor version 5.6.34 or higher // - // * For MySQL 5.7, minor version 5.7.16 or higher + // * For MySQL 5.7, + // minor version 5.7.16 or higher // - // * Aurora 5.6 - // or higher + // * Aurora 5.6 or higher IAMDatabaseAuthenticationEnabled bool // Indicates when the DB instance was created. Uses the date-time format specified @@ -4391,7 +4734,7 @@ type AwsRdsDbInstanceDetails struct { // Specifies the provisioned IOPS (I/O operations per second) for this DB instance. Iops int32 - // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted DB + // If StorageEncrypted is true, the KMS key identifier for the encrypted DB // instance. KmsKeyId *string @@ -4434,7 +4777,7 @@ type AwsRdsDbInstanceDetails struct { // Indicates whether Performance Insights is enabled for the DB instance. PerformanceInsightsEnabled bool - // The identifier of the AWS KMS key used to encrypt the Performance Insights data. + // The identifier of the KMS key used to encrypt the Performance Insights data. PerformanceInsightsKmsKeyId *string // The number of days to retain Performance Insights data. @@ -4656,7 +4999,7 @@ type AwsRdsDbSnapshotDetails struct { // time of the snapshot. Iops int32 - // If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot. + // If Encrypted is true, the KMS key identifier for the encrypted DB snapshot. KmsKeyId *string // License model information for the restored DB instance. @@ -4687,7 +5030,8 @@ type AwsRdsDbSnapshotDetails struct { // The DB snapshot ARN that the DB snapshot was copied from. SourceDbSnapshotIdentifier *string - // The AWS Region that the DB snapshot was created in or copied from. + // The Amazon Web Services Region that the DB snapshot was created in or copied + // from. SourceRegion *string // The status of this DB snapshot. @@ -4775,6 +5119,48 @@ type AwsRdsDbSubnetGroupSubnetAvailabilityZone struct { noSmithyDocumentSerde } +// Details about an Amazon RDS event notification subscription. The subscription +// allows Amazon RDS to post events to an SNS topic. +type AwsRdsEventSubscriptionDetails struct { + + // The identifier of the account that is associated with the event notification + // subscription. + CustSubscriptionId *string + + // The identifier of the event notification subscription. + CustomerAwsId *string + + // Whether the event notification subscription is enabled. + Enabled bool + + // The list of event categories for the event notification subscription. + EventCategoriesList []string + + // The ARN of the event notification subscription. + EventSubscriptionArn *string + + // The ARN of the SNS topic to post the event notifications to. + SnsTopicArn *string + + // A list of source identifiers for the event notification subscription. + SourceIdsList []string + + // The source type for the event notification subscription. + SourceType *string + + // The status of the event notification subscription. Valid values: creating | + // modifying | deleting | active | no-permission | topic-not-exist + Status *string + + // The datetime when the event notification subscription was created. Uses the + // date-time format specified in RFC 3339 section 5.6, Internet Date/Time Format + // (https://tools.ietf.org/html/rfc3339#section-5.6). The value cannot contain + // spaces. For example, 2020-03-22T13:22:13.933Z. + SubscriptionCreationTime *string + + noSmithyDocumentSerde +} + // Identifies the log types to enable and disable. type AwsRdsPendingCloudWatchLogsExports struct { @@ -5006,10 +5392,11 @@ type AwsRedshiftClusterDetails struct { // modify cluster command. HsmStatus *AwsRedshiftClusterHsmStatus - // A list of IAM roles that the cluster can use to access other AWS services. + // A list of IAM roles that the cluster can use to access other Amazon Web Services + // services. IamRoles []AwsRedshiftClusterIamRole - // The identifier of the AWS KMS encryption key that is used to encrypt data in the + // The identifier of the KMS encryption key that is used to encrypt data in the // cluster. KmsKeyId *string @@ -5121,7 +5508,8 @@ type AwsRedshiftClusterHsmStatus struct { noSmithyDocumentSerde } -// An IAM role that the cluster can use to access other AWS services. +// An IAM role that the cluster can use to access other Amazon Web Services +// services. type AwsRedshiftClusterIamRole struct { // The status of the IAM role's association with the cluster. Valid values: in-sync @@ -5250,8 +5638,8 @@ type AwsS3AccountPublicAccessBlockDetails struct { IgnorePublicAcls bool // Indicates whether to restrict access to an access point or S3 bucket that has a - // public policy to only AWS service principals and authorized users within the S3 - // bucket owner's account. + // public policy to only Amazon Web Services service principals and authorized + // users within the S3 bucket owner's account. RestrictPublicBuckets bool noSmithyDocumentSerde @@ -5458,7 +5846,7 @@ type AwsS3BucketDetails struct { // bucket. type AwsS3BucketServerSideEncryptionByDefault struct { - // AWS KMS customer master key (CMK) ID to use for the default encryption. + // KMS customer master key (CMK) ID to use for the default encryption. KMSMasterKeyID *string // Server-side encryption algorithm to use for the default encryption. @@ -5503,8 +5891,8 @@ type AwsS3ObjectDetails struct { // spaces. For example, 2020-03-22T13:22:13.933Z. LastModified *string - // The identifier of the AWS Key Management Service (AWS KMS) symmetric customer - // managed customer master key (CMK) that was used for the object. + // The identifier of the KMS symmetric customer managed customer master key (CMK) + // that was used for the object. SSEKMSKeyId *string // If the object is stored using server-side encryption, the value of the @@ -5517,7 +5905,7 @@ type AwsS3ObjectDetails struct { noSmithyDocumentSerde } -// Details about an AWS Secrets Manager secret. +// Details about an Secrets Manager secret. type AwsSecretsManagerSecretDetails struct { // Whether the secret is deleted. @@ -5526,8 +5914,8 @@ type AwsSecretsManagerSecretDetails struct { // The user-provided description of the secret. Description *string - // The ARN, Key ID, or alias of the AWS KMS customer master key (CMK) used to - // encrypt the SecretString or SecretBinary values for versions of this secret. + // The ARN, Key ID, or alias of the KMS customer master key (CMK) used to encrypt + // the SecretString or SecretBinary values for versions of this secret. KmsKeyId *string // The name of the secret. @@ -5558,14 +5946,14 @@ type AwsSecretsManagerSecretRotationRules struct { } // Provides consistent format for the contents of the Security Hub-aggregated -// findings. AwsSecurityFinding format enables you to share findings between AWS -// security services and third-party solutions, and security standards checks. A -// finding is a potential security issue generated either by AWS services (Amazon -// GuardDuty, Amazon Inspector, and Amazon Macie) or by the integrated third-party -// solutions and standards checks. +// findings. AwsSecurityFinding format enables you to share findings between Amazon +// Web Services security services and third-party solutions, and security standards +// checks. A finding is a potential security issue generated either by Amazon Web +// Services services or by the integrated third-party solutions and standards +// checks. type AwsSecurityFinding struct { - // The AWS account ID that a finding is generated in. + // The Amazon Web Services account ID that a finding is generated in. // // This member is required. AwsAccountId *string @@ -5630,9 +6018,20 @@ type AwsSecurityFinding struct { // Provides details about an action that affects or that was taken on a resource. Action *Action + // The name of the company for the product that generated the finding. Security Hub + // populates this attribute automatically for each finding. You cannot be updated + // using BatchImportFindings or BatchUpdateFindings. The exception to this is when + // you use a custom integration. When you use the Security Hub console to filter + // findings by company name, you use this attribute. When you use the Security Hub + // API to filter findings by company name, you use the aws/securityhub/CompanyName + // attribute under ProductFields. Security Hub does not synchronize those two + // attributes. + CompanyName *string + // This data type is exclusive to findings that are generated as the result of a // check run against a specific rule in a supported security standard, such as CIS - // AWS Foundations. Contains security standard-related finding details. + // Amazon Web Services Foundations. Contains security standard-related finding + // details. Compliance *Compliance // A finding's confidence. Confidence is defined as the likelihood that a finding @@ -5687,12 +6086,29 @@ type AwsSecurityFinding struct { // A data type where security-findings providers can include additional // solution-specific details that aren't part of the defined AwsSecurityFinding - // format. + // format. Can contain up to 50 key-value pairs. For each key-value pair, the key + // can contain up to 128 characters, and the value can contain up to 2048 + // characters. ProductFields map[string]string + // The name of the product that generated the finding. Security Hub populates this + // attribute automatically for each finding. You cannot update it using + // BatchImportFindings or BatchUpdateFindings. The exception to this is when you + // use a custom integration. When you use the Security Hub console to filter + // findings by product name, you use this attribute. When you use the Security Hub + // API to filter findings by product name, you use the aws/securityhub/ProductyName + // attribute under ProductFields. Security Hub does not synchronize those two + // attributes. + ProductName *string + // The record state of a finding. RecordState RecordState + // The Region from which the finding was generated. Security Hub populates this + // attribute automatically for each finding. You cannot update it using + // BatchImportFindings or BatchUpdateFindings. + Region *string + // A list of related findings. RelatedFindings []RelatedFinding @@ -5742,16 +6158,18 @@ type AwsSecurityFinding struct { // each attribute, you can provide up to 20 filter values. type AwsSecurityFindingFilters struct { - // The AWS account ID that a finding is generated in. + // The Amazon Web Services account ID that a finding is generated in. AwsAccountId []StringFilter // The name of the findings provider (company) that owns the solution (product) - // that generates findings. + // that generates findings. Note that this is a filter against the + // aws/securityhub/CompanyName field in ProductFields. It is not a filter for the + // top-level CompanyName field. CompanyName []StringFilter // Exclusive to findings that are generated as the result of a check run against a - // specific rule in a supported standard, such as CIS AWS Foundations. Contains - // security standard-related finding details. + // specific rule in a supported standard, such as CIS Amazon Web Services + // Foundations. Contains security standard-related finding details. ComplianceStatus []StringFilter // A finding's confidence. Confidence is defined as the likelihood that a finding @@ -5910,7 +6328,9 @@ type AwsSecurityFindingFilters struct { // format. ProductFields []MapFilter - // The name of the solution (product) that generates findings. + // The name of the solution (product) that generates findings. Note that this is a + // filter against the aws/securityhub/ProductName field in ProductFields. It is not + // a filter for the top-level ProductName field. ProductName []StringFilter // The recommendation of what to do about the issue described in a finding. @@ -5919,6 +6339,9 @@ type AwsSecurityFindingFilters struct { // The updated record state for the finding. RecordState []StringFilter + // The Region from which the finding was generated. + Region []StringFilter + // The solution-generated identifier for a related finding. RelatedFindingsId []StringFilter @@ -5955,12 +6378,21 @@ type AwsSecurityFindingFilters struct { // The creation date/time of the IAM access key related to a finding. ResourceAwsIamAccessKeyCreatedAt []DateFilter + // The name of the principal that is associated with an IAM access key. + ResourceAwsIamAccessKeyPrincipalName []StringFilter + // The status of the IAM access key related to a finding. ResourceAwsIamAccessKeyStatus []StringFilter // The user associated with the IAM access key related to a finding. + // + // Deprecated: This filter is deprecated. Instead, use + // ResourceAwsIamAccessKeyPrincipalName. ResourceAwsIamAccessKeyUserName []StringFilter + // The name of an IAM user. + ResourceAwsIamUserUserName []StringFilter + // The canonical user ID of the owner of the S3 bucket. ResourceAwsS3BucketOwnerId []StringFilter @@ -5986,14 +6418,15 @@ type AwsSecurityFindingFilters struct { // The canonical identifier for the given resource type. ResourceId []StringFilter - // The canonical AWS partition name that the Region is assigned to. + // The canonical Amazon Web Services partition name that the Region is assigned to. ResourcePartition []StringFilter - // The canonical AWS external Region name where this resource is located. + // The canonical Amazon Web Services external Region name where this resource is + // located. ResourceRegion []StringFilter - // A list of AWS tags associated with a resource at the time the finding was - // processed. + // A list of Amazon Web Services tags associated with a resource at the time the + // finding was processed. ResourceTags []MapFilter // Specifies the type of the resource that details are provided for. @@ -6004,15 +6437,15 @@ type AwsSecurityFindingFilters struct { // The normalized severity of a finding. // - // Deprecated: This filter is deprecated, use SeverityLabel or - // FindingProviderFieldsSeverityLabel instead. + // Deprecated: This filter is deprecated. Instead, use SeverityLabel or + // FindingProviderFieldsSeverityLabel. SeverityNormalized []NumberFilter // The native severity as defined by the security-findings provider's solution that // generated the finding. // - // Deprecated: This filter is deprecated, use FindingProviiltersSeverityOriginal - // instead. + // Deprecated: This filter is deprecated. Instead, use + // FindingProviderSeverityOriginal. SeverityProduct []NumberFilter // A URL that links to a page about the current finding in the security-findings @@ -6107,15 +6540,15 @@ type AwsSecurityFindingIdentifier struct { // A wrapper type for the topic's ARN. type AwsSnsTopicDetails struct { - // The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom - // CMK. + // The ID of an Amazon Web Services managed customer master key (CMK) for Amazon + // SNS or a custom CMK. KmsMasterKeyId *string // The subscription's owner. Owner *string // Subscription is an embedded property that describes the subscription endpoints - // of an Amazon SNS topic. + // of an SNS topic. Subscription []AwsSnsTopicSubscription // The name of the topic. @@ -6144,11 +6577,11 @@ type AwsSqsQueueDetails struct { DeadLetterTargetArn *string // The length of time, in seconds, for which Amazon SQS can reuse a data key to - // encrypt or decrypt messages before calling AWS KMS again. + // encrypt or decrypt messages before calling KMS again. KmsDataKeyReusePeriodSeconds int32 - // The ID of an AWS managed customer master key (CMK) for Amazon SQS or a custom - // CMK. + // The ID of an Amazon Web Services managed customer master key (CMK) for Amazon + // SQS or a custom CMK. KmsMasterKeyId *string // The name of the new queue. @@ -6253,7 +6686,7 @@ type AwsSsmPatchComplianceDetails struct { noSmithyDocumentSerde } -// Details about a WAF WebACL. +// Details about an WAF WebACL. type AwsWafWebAclDetails struct { // The action to perform if none of the rules contained in the WebACL match. @@ -6273,11 +6706,11 @@ type AwsWafWebAclDetails struct { noSmithyDocumentSerde } -// Details for a rule in a WAF WebACL. +// Details for a rule in an WAF WebACL. type AwsWafWebAclRule struct { - // Specifies the action that CloudFront or AWS WAF takes when a web request matches - // the conditions in the rule. + // Specifies the action that CloudFront or WAF takes when a web request matches the + // conditions in the rule. Action *WafAction // Rules to exclude from a rule group. @@ -6443,8 +6876,8 @@ type Compliance struct { // // * // NOT_AVAILABLE - Check could not be performed due to a service outage, API error, - // or because the result of the AWS Config evaluation was NOT_APPLICABLE. If the - // AWS Config evaluation result was NOT_APPLICABLE, then after 3 days, Security Hub + // or because the result of the Config evaluation was NOT_APPLICABLE. If the Config + // evaluation result was NOT_APPLICABLE, then after 3 days, Security Hub // automatically archives the finding. Status ComplianceStatus @@ -6452,7 +6885,7 @@ type Compliance struct { // Status. For the list of status reason codes and their meanings, see // Standards-related information in the ASFF // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff) - // in the AWS Security Hub User Guide. + // in the Security Hub User Guide. StatusReasons []StatusReason noSmithyDocumentSerde @@ -6889,11 +7322,11 @@ type MapFilter struct { // The details about a member account. type Member struct { - // The AWS account ID of the member account. + // The Amazon Web Services account ID of the member account. AccountId *string - // The AWS account ID of the Security Hub administrator account associated with - // this member account. + // The Amazon Web Services account ID of the Security Hub administrator account + // associated with this member account. AdministratorId *string // The email address of the member account. @@ -6903,8 +7336,8 @@ type Member struct { // account. InvitedAt *time.Time - // This is replaced by AdministratorID. The AWS account ID of the Security Hub - // administrator account associated with this member account. + // This is replaced by AdministratorID. The Amazon Web Services account ID of the + // Security Hub administrator account associated with this member account. // // Deprecated: This field is deprecated, use AdministratorId instead. MasterId *string @@ -6932,6 +7365,11 @@ type Member struct { // // * DELETED - // Indicates that the administrator account deleted the member account. + // + // * + // ACCOUNT_SUSPENDED - Indicates that an organization account was suspended from + // Amazon Web Services at the same time that the administrator account tried to + // enable the organization account as a member account. MemberStatus *string // The timestamp for the date and time when the member account was updated. @@ -7330,9 +7768,10 @@ type Product struct { // findings that it receives from Security Hub. IntegrationTypes []IntegrationType - // For integrations with AWS services, the AWS Console URL from which to activate - // the service. For integrations with third-party products, the AWS Marketplace URL - // from which to subscribe to or purchase the product. + // For integrations with Amazon Web Services services, the Amazon Web Services + // Console URL from which to activate the service. For integrations with + // third-party products, the Marketplace URL from which to subscribe to or purchase + // the product. MarketplaceUrl *string // The name of the product. @@ -7439,18 +7878,19 @@ type Resource struct { // Additional details about the resource related to a finding. Details *ResourceDetails - // The canonical AWS partition name that the Region is assigned to. + // The canonical Amazon Web Services partition name that the Region is assigned to. Partition Partition - // The canonical AWS external Region name where this resource is located. + // The canonical Amazon Web Services external Region name where this resource is + // located. Region *string // Identifies the role of the resource in the finding. A resource is either the // actor or target of the finding activity, ResourceRole *string - // A list of AWS tags associated with a resource at the time the finding was - // processed. + // A list of Amazon Web Services tags associated with a resource at the time the + // finding was processed. Tags map[string]string noSmithyDocumentSerde @@ -7480,7 +7920,7 @@ type ResourceDetails struct { // Details for an autoscaling group. AwsAutoScalingAutoScalingGroup *AwsAutoScalingAutoScalingGroupDetails - // Provides details about an AWS Certificate Manager (ACM) certificate. + // Provides details about an Certificate Manager certificate. AwsCertificateManagerCertificate *AwsCertificateManagerCertificateDetails // Details about a CloudFront distribution. @@ -7489,7 +7929,7 @@ type ResourceDetails struct { // Provides details about a CloudTrail trail. AwsCloudTrailTrail *AwsCloudTrailTrailDetails - // Details for an AWS CodeBuild project. + // Details for an CodeBuild project. AwsCodeBuildProject *AwsCodeBuildProjectDetails // Details about a DynamoDB table. @@ -7504,13 +7944,13 @@ type ResourceDetails struct { // Details about an EC2 network access control list (ACL). AwsEc2NetworkAcl *AwsEc2NetworkAclDetails - // Details for an Amazon EC2 network interface. + // Details for an EC2 network interface. AwsEc2NetworkInterface *AwsEc2NetworkInterfaceDetails // Details for an EC2 security group. AwsEc2SecurityGroup *AwsEc2SecurityGroupDetails - // Details about a subnet in EC2. + // Details about a subnet in Amazon EC2. AwsEc2Subnet *AwsEc2SubnetDetails // Details for an EC2 volume. @@ -7522,6 +7962,9 @@ type ResourceDetails struct { // Details about an ECS cluster. AwsEcsCluster *AwsEcsClusterDetails + // Details about a service within an ECS cluster. + AwsEcsService *AwsEcsServiceDetails + // Details about a task definition. A task definition describes the container and // volume definitions of an Amazon Elastic Container Service task. AwsEcsTaskDefinition *AwsEcsTaskDefinitionDetails @@ -7553,7 +7996,7 @@ type ResourceDetails struct { // Details about an IAM user. AwsIamUser *AwsIamUserDetails - // Details about a KMS key. + // Details about an KMS key. AwsKmsKey *AwsKmsKeyDetails // Details about a Lambda function. @@ -7574,16 +8017,19 @@ type ResourceDetails struct { // Details about an Amazon RDS database snapshot. AwsRdsDbSnapshot *AwsRdsDbSnapshotDetails + // Details about an RDS event notification subscription. + AwsRdsEventSubscription *AwsRdsEventSubscriptionDetails + // Contains details about an Amazon Redshift cluster. AwsRedshiftCluster *AwsRedshiftClusterDetails // Details about the Amazon S3 Public Access Block configuration for an account. AwsS3AccountPublicAccessBlock *AwsS3AccountPublicAccessBlockDetails - // Details about an Amazon S3 bucket related to a finding. + // Details about an S3 bucket related to a finding. AwsS3Bucket *AwsS3BucketDetails - // Details about an Amazon S3 object related to a finding. + // Details about an S3 object related to a finding. AwsS3Object *AwsS3ObjectDetails // Details about a Secrets Manager secret. @@ -7599,7 +8045,7 @@ type ResourceDetails struct { // patch baseline that was used to patch the instance. AwsSsmPatchCompliance *AwsSsmPatchComplianceDetails - // Details for a WAF WebACL. + // Details for an WAF WebACL. AwsWafWebAcl *AwsWafWebAclDetails // Details about a container resource related to a finding. @@ -7624,7 +8070,7 @@ type ResourceDetails struct { // Details about the account that was not processed. type Result struct { - // An AWS account ID of the account that was not processed. + // An Amazon Web Services account ID of the account that was not processed. AccountId *string // The reason that the account was not processed. @@ -7728,8 +8174,8 @@ type Severity struct { Original *string // Deprecated. This attribute is being deprecated. Instead of providing Product, - // provide Original. The native severity as defined by the AWS service or - // integrated partner product that generated the finding. + // provide Original. The native severity as defined by the Amazon Web Services + // service or integrated partner product that generated the finding. Product float64 noSmithyDocumentSerde @@ -7771,8 +8217,8 @@ type SeverityUpdate struct { // * 90–100 - CRITICAL Normalized int32 - // The native severity as defined by the AWS service or integrated partner product - // that generated the finding. + // The native severity as defined by the Amazon Web Services service or integrated + // partner product that generated the finding. Product float64 noSmithyDocumentSerde @@ -7864,7 +8310,7 @@ type StandardsControl struct { // The severity of findings generated from this security standard control. The // finding severity is based on an assessment of how easy it would be to compromise - // AWS resources if the issue is detected. + // Amazon Web Services resources if the issue is detected. SeverityRating SeverityRating // The ARN of the security standard control. @@ -7937,7 +8383,7 @@ type StatusReason struct { // A code that represents a reason for the control status. For the list of status // reason codes and their meanings, see Standards-related information in the ASFF // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff) - // in the AWS Security Hub User Guide. + // in the Security Hub User Guide. // // This member is required. ReasonCode *string @@ -8096,22 +8542,22 @@ type VulnerabilityVendor struct { noSmithyDocumentSerde } -// Details about the action that CloudFront or AWS WAF takes when a web request -// matches the conditions in the rule. +// Details about the action that CloudFront or WAF takes when a web request matches +// the conditions in the rule. type WafAction struct { - // Specifies how you want AWS WAF to respond to requests that match the settings in - // a rule. Valid settings include the following: + // Specifies how you want WAF to respond to requests that match the settings in a + // rule. Valid settings include the following: // - // * ALLOW - AWS WAF allows - // requests + // * ALLOW - WAF allows requests // - // * BLOCK - AWS WAF blocks requests + // * + // BLOCK - WAF blocks requests // - // * COUNT - AWS WAF increments a - // counter of the requests that match all of the conditions in the rule. AWS WAF - // then continues to inspect the web request based on the remaining rules in the - // web ACL. You can't specify COUNT for the default action for a WebACL. + // * COUNT - WAF increments a counter of the requests + // that match all of the conditions in the rule. WAF then continues to inspect the + // web request based on the remaining rules in the web ACL. You can't specify COUNT + // for the default action for a WebACL. Type *string noSmithyDocumentSerde diff --git a/service/shield/api_op_AssociateDRTLogBucket.go b/service/shield/api_op_AssociateDRTLogBucket.go index b66748a138d..447c920c100 100644 --- a/service/shield/api_op_AssociateDRTLogBucket.go +++ b/service/shield/api_op_AssociateDRTLogBucket.go @@ -10,12 +10,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Authorizes the DDoS Response Team (DRT) to access the specified Amazon S3 bucket -// containing your AWS WAF logs. You can associate up to 10 Amazon S3 buckets with -// your subscription. To use the services of the DRT and make an -// AssociateDRTLogBucket request, you must be subscribed to the Business Support -// plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise -// Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). +// Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 +// bucket containing log data such as Application Load Balancer access logs, +// CloudFront logs, or logs from third party sources. You can associate up to 10 +// Amazon S3 buckets with your subscription. To use the services of the SRT and +// make an AssociateDRTLogBucket request, you must be subscribed to the Business +// Support plan (https://aws.amazon.com/premiumsupport/business-support/) or the +// Enterprise Support plan +// (https://aws.amazon.com/premiumsupport/enterprise-support/). func (c *Client) AssociateDRTLogBucket(ctx context.Context, params *AssociateDRTLogBucketInput, optFns ...func(*Options)) (*AssociateDRTLogBucketOutput, error) { if params == nil { params = &AssociateDRTLogBucketInput{} @@ -33,7 +35,7 @@ func (c *Client) AssociateDRTLogBucket(ctx context.Context, params *AssociateDRT type AssociateDRTLogBucketInput struct { - // The Amazon S3 bucket that contains your AWS WAF logs. + // The Amazon S3 bucket that contains the logs that you want to share. // // This member is required. LogBucket *string diff --git a/service/shield/api_op_AssociateDRTRole.go b/service/shield/api_op_AssociateDRTRole.go index c1a62bda46c..6fd2b689532 100644 --- a/service/shield/api_op_AssociateDRTRole.go +++ b/service/shield/api_op_AssociateDRTRole.go @@ -10,11 +10,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Authorizes the DDoS Response Team (DRT), using the specified role, to access -// your AWS account to assist with DDoS attack mitigation during potential attacks. -// This enables the DRT to inspect your AWS WAF configuration and create or update -// AWS WAF rules and web ACLs. You can associate only one RoleArn with your -// subscription. If you submit an AssociateDRTRole request for an account that +// Authorizes the Shield Response Team (SRT) using the specified role, to access +// your Amazon Web Services account to assist with DDoS attack mitigation during +// potential attacks. This enables the SRT to inspect your WAF configuration and +// create or update WAF rules and web ACLs. You can associate only one RoleArn with +// your subscription. If you submit an AssociateDRTRole request for an account that // already has an associated role, the new RoleArn will replace the existing // RoleArn. Prior to making the AssociateDRTRole request, you must attach the // AWSShieldDRTAccessPolicy @@ -25,15 +25,14 @@ import ( // The role must also trust the service principal drt.shield.amazonaws.com. For // more information, see IAM JSON Policy Elements: Principal // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html). -// The DRT will have access only to your AWS WAF and Shield resources. By -// submitting this request, you authorize the DRT to inspect your AWS WAF and -// Shield configuration and create and update AWS WAF rules and web ACLs on your -// behalf. The DRT takes these actions only if explicitly authorized by you. You -// must have the iam:PassRole permission to make an AssociateDRTRole request. For -// more information, see Granting a User Permissions to Pass a Role to an AWS -// Service +// The SRT will have access only to your WAF and Shield resources. By submitting +// this request, you authorize the SRT to inspect your WAF and Shield configuration +// and create and update WAF rules and web ACLs on your behalf. The SRT takes these +// actions only if explicitly authorized by you. You must have the iam:PassRole +// permission to make an AssociateDRTRole request. For more information, see +// Granting a User Permissions to Pass a Role to an Amazon Web Services Service // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). -// To use the services of the DRT and make an AssociateDRTRole request, you must be +// To use the services of the SRT and make an AssociateDRTRole request, you must be // subscribed to the Business Support plan // (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise // Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). @@ -54,9 +53,9 @@ func (c *Client) AssociateDRTRole(ctx context.Context, params *AssociateDRTRoleI type AssociateDRTRoleInput struct { - // The Amazon Resource Name (ARN) of the role the DRT will use to access your AWS - // account. Prior to making the AssociateDRTRole request, you must attach the - // AWSShieldDRTAccessPolicy + // The Amazon Resource Name (ARN) of the role the SRT will use to access your + // Amazon Web Services account. Prior to making the AssociateDRTRole request, you + // must attach the AWSShieldDRTAccessPolicy // (https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy) // managed policy to this role. For more information see Attaching and Detaching // IAM Policies diff --git a/service/shield/api_op_AssociateHealthCheck.go b/service/shield/api_op_AssociateHealthCheck.go index 11f14b1cf90..4f471fa0bd8 100644 --- a/service/shield/api_op_AssociateHealthCheck.go +++ b/service/shield/api_op_AssociateHealthCheck.go @@ -11,14 +11,13 @@ import ( ) // Adds health-based detection to the Shield Advanced protection for a resource. -// Shield Advanced health-based detection uses the health of your AWS resource to -// improve responsiveness and accuracy in attack detection and mitigation. You -// define the health check in Route 53 and then associate it with your Shield -// Advanced protection. For more information, see Shield Advanced Health-Based -// Detection +// Shield Advanced health-based detection uses the health of your Amazon Web +// Services resource to improve responsiveness and accuracy in attack detection and +// mitigation. You define the health check in Route 53 and then associate it with +// your Shield Advanced protection. For more information, see Shield Advanced +// Health-Based Detection // (https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) -// in the AWS WAF and AWS Shield Developer Guide -// (https://docs.aws.amazon.com/waf/latest/developerguide/). +// in the WAF Developer Guide. func (c *Client) AssociateHealthCheck(ctx context.Context, params *AssociateHealthCheckInput, optFns ...func(*Options)) (*AssociateHealthCheckOutput, error) { if params == nil { params = &AssociateHealthCheckInput{} diff --git a/service/shield/api_op_AssociateProactiveEngagementDetails.go b/service/shield/api_op_AssociateProactiveEngagementDetails.go index 9fbd3ef79a2..26bea908cee 100644 --- a/service/shield/api_op_AssociateProactiveEngagementDetails.go +++ b/service/shield/api_op_AssociateProactiveEngagementDetails.go @@ -11,17 +11,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Initializes proactive engagement and sets the list of contacts for the DDoS -// Response Team (DRT) to use. You must provide at least one phone number in the +// Initializes proactive engagement and sets the list of contacts for the Shield +// Response Team (SRT) to use. You must provide at least one phone number in the // emergency contact list. After you have initialized proactive engagement using // this call, to disable or enable proactive engagement, use the calls // DisableProactiveEngagement and EnableProactiveEngagement. This call defines the -// list of email addresses and phone numbers that the DDoS Response Team (DRT) can -// use to contact you for escalations to the DRT and to initiate proactive customer -// support. The contacts that you provide in the request replace any contacts that -// were already defined. If you already have contacts defined and want to use them, -// retrieve the list using DescribeEmergencyContactSettings and then provide it to -// this call. +// list of email addresses and phone numbers that the SRT can use to contact you +// for escalations to the SRT and to initiate proactive customer support. The +// contacts that you provide in the request replace any contacts that were already +// defined. If you already have contacts defined and want to use them, retrieve the +// list using DescribeEmergencyContactSettings and then provide it to this call. func (c *Client) AssociateProactiveEngagementDetails(ctx context.Context, params *AssociateProactiveEngagementDetailsInput, optFns ...func(*Options)) (*AssociateProactiveEngagementDetailsOutput, error) { if params == nil { params = &AssociateProactiveEngagementDetailsInput{} @@ -39,8 +38,8 @@ func (c *Client) AssociateProactiveEngagementDetails(ctx context.Context, params type AssociateProactiveEngagementDetailsInput struct { - // A list of email addresses and phone numbers that the DDoS Response Team (DRT) - // can use to contact you for escalations to the DRT and to initiate proactive + // A list of email addresses and phone numbers that the Shield Response Team (SRT) + // can use to contact you for escalations to the SRT and to initiate proactive // customer support. To enable proactive engagement, the contact list must include // at least one phone number. The contacts that you provide here replace any // contacts that were already defined. If you already have contacts defined and diff --git a/service/shield/api_op_CreateProtection.go b/service/shield/api_op_CreateProtection.go index 69161f5fdd7..91edc832c9e 100644 --- a/service/shield/api_op_CreateProtection.go +++ b/service/shield/api_op_CreateProtection.go @@ -11,15 +11,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables AWS Shield Advanced for a specific AWS resource. The resource can be an -// Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global -// Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone. -// You can add protection to only a single resource with each CreateProtection -// request. If you want to add protection to multiple resources at once, use the -// AWS WAF console (https://console.aws.amazon.com/waf/). For more information see -// Getting Started with AWS Shield Advanced +// Enables Shield Advanced for a specific Amazon Web Services resource. The +// resource can be an Amazon CloudFront distribution, Elastic Load Balancing load +// balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route +// 53 hosted zone. You can add protection to only a single resource with each +// CreateProtection request. If you want to add protection to multiple resources at +// once, use the WAF console (https://console.aws.amazon.com/waf/). For more +// information see Getting Started with Shield Advanced // (https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html) -// and Add AWS Shield Advanced Protection to more AWS Resources +// and Add Shield Advanced Protection to more Amazon Web Services Resources // (https://docs.aws.amazon.com/waf/latest/developerguide/configure-new-protection.html). func (c *Client) CreateProtection(ctx context.Context, params *CreateProtectionInput, optFns ...func(*Options)) (*CreateProtectionOutput, error) { if params == nil { @@ -54,10 +54,10 @@ type CreateProtectionInput struct { // arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name // // * - // For an AWS CloudFront distribution: + // For an Amazon CloudFront distribution: // arn:aws:cloudfront::account-id:distribution/distribution-id // - // * For an AWS Global + // * For an Global // Accelerator accelerator: // arn:aws:globalaccelerator::account-id:accelerator/accelerator-id // diff --git a/service/shield/api_op_CreateProtectionGroup.go b/service/shield/api_op_CreateProtectionGroup.go index 0a7eb38322d..4bd04ddf4a1 100644 --- a/service/shield/api_op_CreateProtectionGroup.go +++ b/service/shield/api_op_CreateProtectionGroup.go @@ -31,7 +31,7 @@ func (c *Client) CreateProtectionGroup(ctx context.Context, params *CreateProtec type CreateProtectionGroupInput struct { - // Defines how AWS Shield combines resource data for the group in order to detect, + // Defines how Shield combines resource data for the group in order to detect, // mitigate, and report events. // // * Sum - Use the total traffic across the group. @@ -45,8 +45,8 @@ type CreateProtectionGroupInput struct { // * Max - // Use the highest traffic from each resource. This is useful for resources that // don't share traffic and for resources that share that traffic in a non-uniform - // way. Examples include CloudFront distributions and origin resources for - // CloudFront distributions. + // way. Examples include Amazon CloudFront and origin resources for CloudFront + // distributions. // // This member is required. Aggregation types.ProtectionGroupAggregation diff --git a/service/shield/api_op_CreateSubscription.go b/service/shield/api_op_CreateSubscription.go index 62a346be2b4..052a2702aea 100644 --- a/service/shield/api_op_CreateSubscription.go +++ b/service/shield/api_op_CreateSubscription.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Activates AWS Shield Advanced for an account. When you initally create a +// Activates Shield Advanced for an account. When you initally create a // subscription, your subscription is set to be automatically renewed at the end of // the existing subscription period. You can change this by submitting an // UpdateSubscription request. diff --git a/service/shield/api_op_DeleteProtection.go b/service/shield/api_op_DeleteProtection.go index 2e99bcb6ddb..2833c21e768 100644 --- a/service/shield/api_op_DeleteProtection.go +++ b/service/shield/api_op_DeleteProtection.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an AWS Shield Advanced Protection. +// Deletes an Shield Advanced Protection. func (c *Client) DeleteProtection(ctx context.Context, params *DeleteProtectionInput, optFns ...func(*Options)) (*DeleteProtectionOutput, error) { if params == nil { params = &DeleteProtectionInput{} diff --git a/service/shield/api_op_DeleteSubscription.go b/service/shield/api_op_DeleteSubscription.go index 30a9f09a3e1..f6238f29d6b 100644 --- a/service/shield/api_op_DeleteSubscription.go +++ b/service/shield/api_op_DeleteSubscription.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a -// 1-year subscription commitment. You cannot delete a subscription prior to the +// Removes Shield Advanced from an account. Shield Advanced requires a 1-year +// subscription commitment. You cannot delete a subscription prior to the // completion of that commitment. // // Deprecated: This operation has been deprecated. diff --git a/service/shield/api_op_DescribeAttackStatistics.go b/service/shield/api_op_DescribeAttackStatistics.go index dfaa0d6116c..a2457a1d0bb 100644 --- a/service/shield/api_op_DescribeAttackStatistics.go +++ b/service/shield/api_op_DescribeAttackStatistics.go @@ -11,15 +11,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Provides information about the number and type of attacks AWS Shield has -// detected in the last year for all resources that belong to your account, -// regardless of whether you've defined Shield protections for them. This operation -// is available to Shield customers as well as to Shield Advanced customers. The -// operation returns data for the time range of midnight UTC, one year ago, to -// midnight UTC, today. For example, if the current time is 2020-10-26 15:39:32 -// PDT, equal to 2020-10-26 22:39:32 UTC, then the time range for the attack data -// returned is from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC. The time -// range indicates the period covered by the attack statistics data items. +// Provides information about the number and type of attacks Shield has detected in +// the last year for all resources that belong to your account, regardless of +// whether you've defined Shield protections for them. This operation is available +// to Shield customers as well as to Shield Advanced customers. The operation +// returns data for the time range of midnight UTC, one year ago, to midnight UTC, +// today. For example, if the current time is 2020-10-26 15:39:32 PDT, equal to +// 2020-10-26 22:39:32 UTC, then the time range for the attack data returned is +// from 2019-10-26 00:00:00 UTC to 2020-10-26 00:00:00 UTC. The time range +// indicates the period covered by the attack statistics data items. func (c *Client) DescribeAttackStatistics(ctx context.Context, params *DescribeAttackStatisticsInput, optFns ...func(*Options)) (*DescribeAttackStatisticsOutput, error) { if params == nil { params = &DescribeAttackStatisticsInput{} diff --git a/service/shield/api_op_DescribeDRTAccess.go b/service/shield/api_op_DescribeDRTAccess.go index a163704f628..4e632afc685 100644 --- a/service/shield/api_op_DescribeDRTAccess.go +++ b/service/shield/api_op_DescribeDRTAccess.go @@ -10,9 +10,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the current role and list of Amazon S3 log buckets used by the DDoS -// Response Team (DRT) to access your AWS account while assisting with attack -// mitigation. +// Returns the current role and list of Amazon S3 log buckets used by the Shield +// Response Team (SRT) to access your Amazon Web Services account while assisting +// with attack mitigation. func (c *Client) DescribeDRTAccess(ctx context.Context, params *DescribeDRTAccessInput, optFns ...func(*Options)) (*DescribeDRTAccessOutput, error) { if params == nil { params = &DescribeDRTAccessInput{} @@ -34,11 +34,11 @@ type DescribeDRTAccessInput struct { type DescribeDRTAccessOutput struct { - // The list of Amazon S3 buckets accessed by the DRT. + // The list of Amazon S3 buckets accessed by the SRT. LogBucketList []string - // The Amazon Resource Name (ARN) of the role the DRT used to access your AWS - // account. + // The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon + // Web Services account. RoleArn *string // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_DescribeEmergencyContactSettings.go b/service/shield/api_op_DescribeEmergencyContactSettings.go index 90338a11f0a..23b2a0a18f3 100644 --- a/service/shield/api_op_DescribeEmergencyContactSettings.go +++ b/service/shield/api_op_DescribeEmergencyContactSettings.go @@ -11,9 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// A list of email addresses and phone numbers that the DDoS Response Team (DRT) +// A list of email addresses and phone numbers that the Shield Response Team (SRT) // can use to contact you if you have proactive engagement enabled, for escalations -// to the DRT and to initiate proactive customer support. +// to the SRT and to initiate proactive customer support. func (c *Client) DescribeEmergencyContactSettings(ctx context.Context, params *DescribeEmergencyContactSettingsInput, optFns ...func(*Options)) (*DescribeEmergencyContactSettingsOutput, error) { if params == nil { params = &DescribeEmergencyContactSettingsInput{} @@ -35,9 +35,9 @@ type DescribeEmergencyContactSettingsInput struct { type DescribeEmergencyContactSettingsOutput struct { - // A list of email addresses and phone numbers that the DDoS Response Team (DRT) + // A list of email addresses and phone numbers that the Shield Response Team (SRT) // can use to contact you if you have proactive engagement enabled, for escalations - // to the DRT and to initiate proactive customer support. + // to the SRT and to initiate proactive customer support. EmergencyContactList []types.EmergencyContact // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_DescribeProtection.go b/service/shield/api_op_DescribeProtection.go index c6154ebfb82..e3b483c15b6 100644 --- a/service/shield/api_op_DescribeProtection.go +++ b/service/shield/api_op_DescribeProtection.go @@ -34,9 +34,10 @@ type DescribeProtectionInput struct { // ResourceArn or the ProtectionID, but not both. ProtectionId *string - // The ARN (Amazon Resource Name) of the AWS resource for the Protection object - // that is described. When submitting the DescribeProtection request you must - // provide either the ResourceArn or the ProtectionID, but not both. + // The ARN (Amazon Resource Name) of the Amazon Web Services resource for the + // Protection object that is described. When submitting the DescribeProtection + // request you must provide either the ResourceArn or the ProtectionID, but not + // both. ResourceArn *string noSmithyDocumentSerde diff --git a/service/shield/api_op_DescribeProtectionGroup.go b/service/shield/api_op_DescribeProtectionGroup.go index 50ec3c017fa..3928ad68101 100644 --- a/service/shield/api_op_DescribeProtectionGroup.go +++ b/service/shield/api_op_DescribeProtectionGroup.go @@ -41,8 +41,8 @@ type DescribeProtectionGroupInput struct { type DescribeProtectionGroupOutput struct { - // A grouping of protected resources that you and AWS Shield Advanced can monitor - // as a collective. This resource grouping improves the accuracy of detection and + // A grouping of protected resources that you and Shield Advanced can monitor as a + // collective. This resource grouping improves the accuracy of detection and // reduces false positives. // // This member is required. diff --git a/service/shield/api_op_DescribeSubscription.go b/service/shield/api_op_DescribeSubscription.go index 9279d206c5c..a7b3ea02a40 100644 --- a/service/shield/api_op_DescribeSubscription.go +++ b/service/shield/api_op_DescribeSubscription.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Provides details about the AWS Shield Advanced subscription for an account. +// Provides details about the Shield Advanced subscription for an account. func (c *Client) DescribeSubscription(ctx context.Context, params *DescribeSubscriptionInput, optFns ...func(*Options)) (*DescribeSubscriptionOutput, error) { if params == nil { params = &DescribeSubscriptionInput{} @@ -33,7 +33,7 @@ type DescribeSubscriptionInput struct { type DescribeSubscriptionOutput struct { - // The AWS Shield Advanced subscription details for an account. + // The Shield Advanced subscription details for an account. Subscription *types.Subscription // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_DisableProactiveEngagement.go b/service/shield/api_op_DisableProactiveEngagement.go index b666b66c2a3..3dcd5a7c16f 100644 --- a/service/shield/api_op_DisableProactiveEngagement.go +++ b/service/shield/api_op_DisableProactiveEngagement.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes authorization from the DDoS Response Team (DRT) to notify contacts about -// escalations to the DRT and to initiate proactive customer support. +// Removes authorization from the Shield Response Team (SRT) to notify contacts +// about escalations to the SRT and to initiate proactive customer support. func (c *Client) DisableProactiveEngagement(ctx context.Context, params *DisableProactiveEngagementInput, optFns ...func(*Options)) (*DisableProactiveEngagementOutput, error) { if params == nil { params = &DisableProactiveEngagementInput{} diff --git a/service/shield/api_op_DisassociateDRTLogBucket.go b/service/shield/api_op_DisassociateDRTLogBucket.go index edd4fb63a51..b94b8155d9b 100644 --- a/service/shield/api_op_DisassociateDRTLogBucket.go +++ b/service/shield/api_op_DisassociateDRTLogBucket.go @@ -10,13 +10,13 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes the DDoS Response Team's (DRT) access to the specified Amazon S3 bucket -// containing your AWS WAF logs. To make a DisassociateDRTLogBucket request, you -// must be subscribed to the Business Support plan -// (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise +// Removes the Shield Response Team's (SRT) access to the specified Amazon S3 +// bucket containing the logs that you shared previously. To make a +// DisassociateDRTLogBucket request, you must be subscribed to the Business Support +// plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise // Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). // However, if you are not subscribed to one of these support plans, but had been -// previously and had granted the DRT access to your account, you can submit a +// previously and had granted the SRT access to your account, you can submit a // DisassociateDRTLogBucket request to remove this access. func (c *Client) DisassociateDRTLogBucket(ctx context.Context, params *DisassociateDRTLogBucketInput, optFns ...func(*Options)) (*DisassociateDRTLogBucketOutput, error) { if params == nil { @@ -35,7 +35,7 @@ func (c *Client) DisassociateDRTLogBucket(ctx context.Context, params *Disassoci type DisassociateDRTLogBucketInput struct { - // The Amazon S3 bucket that contains your AWS WAF logs. + // The Amazon S3 bucket that contains the logs that you want to share. // // This member is required. LogBucket *string diff --git a/service/shield/api_op_DisassociateDRTRole.go b/service/shield/api_op_DisassociateDRTRole.go index 508ef8089c9..58b0a910bfc 100644 --- a/service/shield/api_op_DisassociateDRTRole.go +++ b/service/shield/api_op_DisassociateDRTRole.go @@ -10,13 +10,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes the DDoS Response Team's (DRT) access to your AWS account. To make a -// DisassociateDRTRole request, you must be subscribed to the Business Support plan -// (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise -// Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). -// However, if you are not subscribed to one of these support plans, but had been -// previously and had granted the DRT access to your account, you can submit a -// DisassociateDRTRole request to remove this access. +// Removes the Shield Response Team's (SRT) access to your Amazon Web Services +// account. To make a DisassociateDRTRole request, you must be subscribed to the +// Business Support plan (https://aws.amazon.com/premiumsupport/business-support/) +// or the Enterprise Support plan +// (https://aws.amazon.com/premiumsupport/enterprise-support/). However, if you are +// not subscribed to one of these support plans, but had been previously and had +// granted the SRT access to your account, you can submit a DisassociateDRTRole +// request to remove this access. func (c *Client) DisassociateDRTRole(ctx context.Context, params *DisassociateDRTRoleInput, optFns ...func(*Options)) (*DisassociateDRTRoleOutput, error) { if params == nil { params = &DisassociateDRTRoleInput{} diff --git a/service/shield/api_op_DisassociateHealthCheck.go b/service/shield/api_op_DisassociateHealthCheck.go index a69970f3c8d..60176e76360 100644 --- a/service/shield/api_op_DisassociateHealthCheck.go +++ b/service/shield/api_op_DisassociateHealthCheck.go @@ -11,14 +11,13 @@ import ( ) // Removes health-based detection from the Shield Advanced protection for a -// resource. Shield Advanced health-based detection uses the health of your AWS -// resource to improve responsiveness and accuracy in attack detection and -// mitigation. You define the health check in Route 53 and then associate or +// resource. Shield Advanced health-based detection uses the health of your Amazon +// Web Services resource to improve responsiveness and accuracy in attack detection +// and mitigation. You define the health check in Route 53 and then associate or // disassociate it with your Shield Advanced protection. For more information, see // Shield Advanced Health-Based Detection // (https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) -// in the AWS WAF and AWS Shield Developer Guide -// (https://docs.aws.amazon.com/waf/latest/developerguide/). +// in the WAF Developer Guide. func (c *Client) DisassociateHealthCheck(ctx context.Context, params *DisassociateHealthCheckInput, optFns ...func(*Options)) (*DisassociateHealthCheckOutput, error) { if params == nil { params = &DisassociateHealthCheckInput{} diff --git a/service/shield/api_op_EnableProactiveEngagement.go b/service/shield/api_op_EnableProactiveEngagement.go index 53258024e00..2d0140f0156 100644 --- a/service/shield/api_op_EnableProactiveEngagement.go +++ b/service/shield/api_op_EnableProactiveEngagement.go @@ -10,8 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Authorizes the DDoS Response Team (DRT) to use email and phone to notify -// contacts about escalations to the DRT and to initiate proactive customer +// Authorizes the Shield Response Team (SRT) to use email and phone to notify +// contacts about escalations to the SRT and to initiate proactive customer // support. func (c *Client) EnableProactiveEngagement(ctx context.Context, params *EnableProactiveEngagementInput, optFns ...func(*Options)) (*EnableProactiveEngagementOutput, error) { if params == nil { diff --git a/service/shield/api_op_ListProtectionGroups.go b/service/shield/api_op_ListProtectionGroups.go index 6d41842da1e..a1347706baf 100644 --- a/service/shield/api_op_ListProtectionGroups.go +++ b/service/shield/api_op_ListProtectionGroups.go @@ -54,8 +54,8 @@ type ListProtectionGroupsOutput struct { ProtectionGroups []types.ProtectionGroup // If you specify a value for MaxResults and you have more protection groups than - // the value of MaxResults, AWS Shield Advanced returns this token that you can use - // in your next request, to get the next batch of objects. + // the value of MaxResults, Shield Advanced returns this token that you can use in + // your next request, to get the next batch of objects. NextToken *string // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_ListProtections.go b/service/shield/api_op_ListProtections.go index 468ec95a2cd..52ba5858a39 100644 --- a/service/shield/api_op_ListProtections.go +++ b/service/shield/api_op_ListProtections.go @@ -49,9 +49,9 @@ type ListProtectionsInput struct { type ListProtectionsOutput struct { // If you specify a value for MaxResults and you have more Protections than the - // value of MaxResults, AWS Shield Advanced returns a NextToken value in the - // response that allows you to list another group of Protections. For the second - // and subsequent ListProtections requests, specify the value of NextToken from the + // value of MaxResults, Shield Advanced returns a NextToken value in the response + // that allows you to list another group of Protections. For the second and + // subsequent ListProtections requests, specify the value of NextToken from the // previous response to get information about another batch of Protections. Shield // Advanced might return the list of Protection objects in batches smaller than the // number specified by MaxResults. If there are more Protection objects to return, diff --git a/service/shield/api_op_ListResourcesInProtectionGroup.go b/service/shield/api_op_ListResourcesInProtectionGroup.go index d776da93b35..2368df6f12c 100644 --- a/service/shield/api_op_ListResourcesInProtectionGroup.go +++ b/service/shield/api_op_ListResourcesInProtectionGroup.go @@ -61,7 +61,7 @@ type ListResourcesInProtectionGroupOutput struct { ResourceArns []string // If you specify a value for MaxResults and you have more resources in the - // protection group than the value of MaxResults, AWS Shield Advanced returns this + // protection group than the value of MaxResults, Shield Advanced returns this // token that you can use in your next request, to get the next batch of objects. NextToken *string diff --git a/service/shield/api_op_ListTagsForResource.go b/service/shield/api_op_ListTagsForResource.go index ea187c35913..162b9976843 100644 --- a/service/shield/api_op_ListTagsForResource.go +++ b/service/shield/api_op_ListTagsForResource.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Gets information about AWS tags for a specified Amazon Resource Name (ARN) in -// AWS Shield. +// Gets information about Amazon Web Services tags for a specified Amazon Resource +// Name (ARN) in Shield. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/shield/api_op_TagResource.go b/service/shield/api_op_TagResource.go index 58a7c47d0f3..1a18891f5ed 100644 --- a/service/shield/api_op_TagResource.go +++ b/service/shield/api_op_TagResource.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Adds or updates tags for a resource in AWS Shield. +// Adds or updates tags for a resource in Shield. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/shield/api_op_UntagResource.go b/service/shield/api_op_UntagResource.go index 5e5ef09ae7c..cc5e987b88f 100644 --- a/service/shield/api_op_UntagResource.go +++ b/service/shield/api_op_UntagResource.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes tags from a resource in AWS Shield. +// Removes tags from a resource in Shield. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/shield/api_op_UpdateEmergencyContactSettings.go b/service/shield/api_op_UpdateEmergencyContactSettings.go index fad324536d1..b9fa8ee0c7c 100644 --- a/service/shield/api_op_UpdateEmergencyContactSettings.go +++ b/service/shield/api_op_UpdateEmergencyContactSettings.go @@ -12,8 +12,9 @@ import ( ) // Updates the details of the list of email addresses and phone numbers that the -// DDoS Response Team (DRT) can use to contact you if you have proactive engagement -// enabled, for escalations to the DRT and to initiate proactive customer support. +// Shield Response Team (SRT) can use to contact you if you have proactive +// engagement enabled, for escalations to the SRT and to initiate proactive +// customer support. func (c *Client) UpdateEmergencyContactSettings(ctx context.Context, params *UpdateEmergencyContactSettingsInput, optFns ...func(*Options)) (*UpdateEmergencyContactSettingsOutput, error) { if params == nil { params = &UpdateEmergencyContactSettingsInput{} @@ -31,9 +32,9 @@ func (c *Client) UpdateEmergencyContactSettings(ctx context.Context, params *Upd type UpdateEmergencyContactSettingsInput struct { - // A list of email addresses and phone numbers that the DDoS Response Team (DRT) + // A list of email addresses and phone numbers that the Shield Response Team (SRT) // can use to contact you if you have proactive engagement enabled, for escalations - // to the DRT and to initiate proactive customer support. If you have proactive + // to the SRT and to initiate proactive customer support. If you have proactive // engagement enabled, the contact list must include at least one phone number. EmergencyContactList []types.EmergencyContact diff --git a/service/shield/api_op_UpdateProtectionGroup.go b/service/shield/api_op_UpdateProtectionGroup.go index 8fe9b67abab..8c98f0e72d3 100644 --- a/service/shield/api_op_UpdateProtectionGroup.go +++ b/service/shield/api_op_UpdateProtectionGroup.go @@ -31,7 +31,7 @@ func (c *Client) UpdateProtectionGroup(ctx context.Context, params *UpdateProtec type UpdateProtectionGroupInput struct { - // Defines how AWS Shield combines resource data for the group in order to detect, + // Defines how Shield combines resource data for the group in order to detect, // mitigate, and report events. // // * Sum - Use the total traffic across the group. @@ -45,7 +45,7 @@ type UpdateProtectionGroupInput struct { // * Max - // Use the highest traffic from each resource. This is useful for resources that // don't share traffic and for resources that share that traffic in a non-uniform - // way. Examples include CloudFront distributions and origin resources for + // way. Examples include Amazon CloudFront distributions and origin resources for // CloudFront distributions. // // This member is required. diff --git a/service/shield/doc.go b/service/shield/doc.go index 7494e0e0d51..999865fb971 100644 --- a/service/shield/doc.go +++ b/service/shield/doc.go @@ -3,10 +3,10 @@ // Package shield provides the API client, operations, and parameter types for AWS // Shield. // -// AWS Shield Advanced This is the AWS Shield Advanced API Reference. This guide is -// for developers who need detailed information about the AWS Shield Advanced API -// actions, data types, and errors. For detailed information about AWS WAF and AWS -// Shield Advanced features and an overview of how to use the AWS WAF and AWS -// Shield Advanced APIs, see the AWS WAF and AWS Shield Developer Guide +// Shield Advanced This is the Shield Advanced API Reference. This guide is for +// developers who need detailed information about the Shield Advanced API actions, +// data types, and errors. For detailed information about WAF and Shield Advanced +// features and an overview of how to use the WAF and Shield Advanced APIs, see the +// WAF and Shield Developer Guide // (https://docs.aws.amazon.com/waf/latest/developerguide/). package shield diff --git a/service/shield/types/errors.go b/service/shield/types/errors.go index 74f8e9adae9..8d718e4c937 100644 --- a/service/shield/types/errors.go +++ b/service/shield/types/errors.go @@ -27,10 +27,11 @@ func (e *AccessDeniedException) ErrorMessage() string { func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// In order to grant the necessary access to the DDoS Response Team (DRT), the user -// submitting the request must have the iam:PassRole permission. This error +// In order to grant the necessary access to the Shield Response Team (SRT) the +// user submitting the request must have the iam:PassRole permission. This error // indicates the user did not have the appropriate permissions. For more -// information, see Granting a User Permissions to Pass a Role to an AWS Service +// information, see Granting a User Permissions to Pass a Role to an Amazon Web +// Services Service // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). type AccessDeniedForDependencyException struct { Message *string diff --git a/service/shield/types/types.go b/service/shield/types/types.go index 66f7fa91098..f6aa8d5f7ea 100644 --- a/service/shield/types/types.go +++ b/service/shield/types/types.go @@ -16,7 +16,12 @@ type AttackDetail struct { // The unique identifier (ID) of the attack. AttackId *string - // The array of AttackProperty objects. + // The array of objects that provide details of the Shield event. For + // infrastructure layer events (L3 and L4 events) after January 25, 2021, you can + // view metrics for top contributors in Amazon CloudWatch metrics. For more + // information, see Shield metrics and alarms + // (https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#set-ddos-alarms) + // in the WAF Developer Guide. AttackProperties []AttackProperty // The time the attack ended, in Unix time in seconds. For more information see @@ -42,28 +47,30 @@ type AttackDetail struct { noSmithyDocumentSerde } -// Details of the described attack. +// Details of a Shield event. This is provided as part of an AttackDetail. type AttackProperty struct { - // The type of distributed denial of service (DDoS) event that was observed. - // NETWORK indicates layer 3 and layer 4 events and APPLICATION indicates layer 7 - // events. + // The type of Shield event that was observed. NETWORK indicates layer 3 and layer + // 4 events and APPLICATION indicates layer 7 events. For infrastructure layer + // events (L3 and L4 events) after January 25, 2021, you can view metrics for top + // contributors in Amazon CloudWatch metrics. For more information, see Shield + // metrics and alarms + // (https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#set-ddos-alarms) + // in the WAF Developer Guide. AttackLayer AttackLayer - // Defines the DDoS attack property information that is provided. The + // Defines the Shield event property information that is provided. The // WORDPRESS_PINGBACK_REFLECTOR and WORDPRESS_PINGBACK_SOURCE values are valid only - // for WordPress reflective pingback DDoS attacks. + // for WordPress reflective pingback events. AttackPropertyIdentifier AttackPropertyIdentifier - // The array of contributor objects that includes the top five contributors to an - // attack. + // Contributor objects for the top five contributors to a Shield event. TopContributors []Contributor - // The total contributions made to this attack by all contributors, not just the - // five listed in the TopContributors list. + // The total contributions made to this Shield event by all contributors. Total int64 - // The unit of the Value of the contributions. + // The unit used for the ContributorValue property. Unit Unit noSmithyDocumentSerde @@ -211,8 +218,8 @@ type Contributor struct { noSmithyDocumentSerde } -// Contact information that the DRT can use to contact you if you have proactive -// engagement enabled, for escalations to the DRT and to initiate proactive +// Contact information that the SRT can use to contact you if you have proactive +// engagement enabled, for escalations to the SRT and to initiate proactive // customer support. type EmergencyContact struct { @@ -267,18 +274,19 @@ type Protection struct { // The ARN (Amazon Resource Name) of the protection. ProtectionArn *string - // The ARN (Amazon Resource Name) of the AWS resource that is protected. + // The ARN (Amazon Resource Name) of the Amazon Web Services resource that is + // protected. ResourceArn *string noSmithyDocumentSerde } -// A grouping of protected resources that you and AWS Shield Advanced can monitor -// as a collective. This resource grouping improves the accuracy of detection and +// A grouping of protected resources that you and Shield Advanced can monitor as a +// collective. This resource grouping improves the accuracy of detection and // reduces false positives. type ProtectionGroup struct { - // Defines how AWS Shield combines resource data for the group in order to detect, + // Defines how Shield combines resource data for the group in order to detect, // mitigate, and report events. // // * Sum - Use the total traffic across the group. @@ -292,7 +300,7 @@ type ProtectionGroup struct { // * Max - // Use the highest traffic from each resource. This is useful for resources that // don't share traffic and for resources that share that traffic in a non-uniform - // way. Examples include CloudFront distributions and origin resources for + // way. Examples include Amazon CloudFront distributions and origin resources for // CloudFront distributions. // // This member is required. @@ -400,7 +408,7 @@ type SubResourceSummary struct { noSmithyDocumentSerde } -// Information about the AWS Shield Advanced subscription for an account. +// Information about the Shield Advanced subscription for an account. type Subscription struct { // Limits settings for your subscription. @@ -421,11 +429,11 @@ type Subscription struct { // Specifies how many protections of a given type you can create. Limits []Limit - // If ENABLED, the DDoS Response Team (DRT) will use email and phone to notify - // contacts about escalations to the DRT and to initiate proactive customer + // If ENABLED, the Shield Response Team (SRT) will use email and phone to notify + // contacts about escalations to the SRT and to initiate proactive customer // support. If PENDING, you have requested proactive engagement and the request is // pending. The status changes to ENABLED when your request is fully processed. If - // DISABLED, the DRT will not proactively notify contacts about escalations or to + // DISABLED, the SRT will not proactively notify contacts about escalations or to // initiate proactive customer support. ProactiveEngagementStatus ProactiveEngagementStatus @@ -437,7 +445,7 @@ type Subscription struct { // The ARN (Amazon Resource Name) of the subscription. SubscriptionArn *string - // The length, in seconds, of the AWS Shield Advanced subscription for the account. + // The length, in seconds, of the Shield Advanced subscription for the account. TimeCommitmentInSeconds int64 noSmithyDocumentSerde @@ -497,13 +505,14 @@ type SummarizedCounter struct { noSmithyDocumentSerde } -// A tag associated with an AWS resource. Tags are key:value pairs that you can use -// to categorize and manage your resources, for purposes like billing or other -// management. Typically, the tag key represents a category, such as "environment", -// and the tag value represents a specific value within that category, such as -// "test," "development," or "production". Or you might set the tag key to -// "customer" and the value to the customer name or ID. You can specify one or more -// tags to add to each AWS resource, up to 50 tags for a resource. +// A tag associated with an Amazon Web Services resource. Tags are key:value pairs +// that you can use to categorize and manage your resources, for purposes like +// billing or other management. Typically, the tag key represents a category, such +// as "environment", and the tag value represents a specific value within that +// category, such as "test," "development," or "production". Or you might set the +// tag key to "customer" and the value to the customer name or ID. You can specify +// one or more tags to add to each Amazon Web Services resource, up to 50 tags for +// a resource. type Tag struct { // Part of the key:value pair that defines a tag. You can use a tag key to describe diff --git a/service/ssmcontacts/api_op_AcceptPage.go b/service/ssmcontacts/api_op_AcceptPage.go index 73b5a02fa8f..8b44e124e91 100644 --- a/service/ssmcontacts/api_op_AcceptPage.go +++ b/service/ssmcontacts/api_op_AcceptPage.go @@ -44,6 +44,15 @@ type AcceptPageInput struct { // This member is required. PageId *string + // An optional field that Incident Manager uses to ENFORCEAcceptCode validation + // when acknowledging an page. Acknowledgement can occur by replying to a page, or + // when entering the AcceptCode in the console. Enforcing AcceptCode validation + // causes Incident Manager to verify that the code entered by the user matches the + // code sent by Incident Manager with the page. Incident Manager can also + // IGNOREAcceptCode validation. Ignoring AcceptCode validation causes Incident + // Manager to accept any value entered for the AcceptCode. + AcceptCodeValidation types.AcceptCodeValidation + // The ARN of the contact channel. ContactChannelId *string diff --git a/service/ssmcontacts/doc.go b/service/ssmcontacts/doc.go index ad32b556904..b56d4c6d756 100644 --- a/service/ssmcontacts/doc.go +++ b/service/ssmcontacts/doc.go @@ -3,5 +3,12 @@ // Package ssmcontacts provides the API client, operations, and parameter types for // AWS Systems Manager Incident Manager Contacts. // -// +// AWS Systems Manager Incident Manager is an incident management console designed +// to help users mitigate and recover from incidents affecting their AWS-hosted +// applications. An incident is any unplanned interruption or reduction in quality +// of services. Incident Manager increases incident resolution by notifying +// responders of impact, highlighting relevant troubleshooting data, and providing +// collaboration tools to get services back up and running. To achieve the primary +// goal of reducing the time-to-resolution of critical incidents, Incident Manager +// automates response plans and enables responder team escalation. package ssmcontacts diff --git a/service/ssmcontacts/serializers.go b/service/ssmcontacts/serializers.go index 37670411ff9..ba52ea38431 100644 --- a/service/ssmcontacts/serializers.go +++ b/service/ssmcontacts/serializers.go @@ -1476,6 +1476,11 @@ func awsAwsjson11_serializeOpDocumentAcceptPageInput(v *AcceptPageInput, value s ok.String(*v.AcceptCode) } + if len(v.AcceptCodeValidation) > 0 { + ok := object.Key("AcceptCodeValidation") + ok.String(string(v.AcceptCodeValidation)) + } + if len(v.AcceptType) > 0 { ok := object.Key("AcceptType") ok.String(string(v.AcceptType)) diff --git a/service/ssmcontacts/types/enums.go b/service/ssmcontacts/types/enums.go index e8591606734..16b14779138 100644 --- a/service/ssmcontacts/types/enums.go +++ b/service/ssmcontacts/types/enums.go @@ -2,6 +2,24 @@ package types +type AcceptCodeValidation string + +// Enum values for AcceptCodeValidation +const ( + AcceptCodeValidationIgnore AcceptCodeValidation = "IGNORE" + AcceptCodeValidationEnforce AcceptCodeValidation = "ENFORCE" +) + +// Values returns all known values for AcceptCodeValidation. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (AcceptCodeValidation) Values() []AcceptCodeValidation { + return []AcceptCodeValidation{ + "IGNORE", + "ENFORCE", + } +} + type AcceptType string // Enum values for AcceptType diff --git a/service/ssmcontacts/types/types.go b/service/ssmcontacts/types/types.go index 8ed580ad702..a862533330b 100644 --- a/service/ssmcontacts/types/types.go +++ b/service/ssmcontacts/types/types.go @@ -235,7 +235,8 @@ type Receipt struct { // specified contacts or contact methods. type Stage struct { - // The time to wait until beginning the next stage. + // The time to wait until beginning the next stage. The duration can only be set to + // 0 if a target is specified. // // This member is required. DurationInMinutes *int32 diff --git a/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go b/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go index a6d3ed2742f..68250a6d866 100644 --- a/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go +++ b/service/ssoadmin/api_op_AttachManagedPolicyToPermissionSet.go @@ -12,8 +12,8 @@ import ( // Attaches an IAM managed policy ARN to a permission set. If the permission set is // already referenced by one or more account assignments, you will need to call -// ProvisionPermissionSet after this action to apply the corresponding IAM policy -// updates to all assigned accounts. +// ProvisionPermissionSet after this operation. Calling ProvisionPermissionSet +// applies the corresponding IAM policy updates to all assigned accounts. func (c *Client) AttachManagedPolicyToPermissionSet(ctx context.Context, params *AttachManagedPolicyToPermissionSetInput, optFns ...func(*Options)) (*AttachManagedPolicyToPermissionSetOutput, error) { if params == nil { params = &AttachManagedPolicyToPermissionSetInput{} @@ -32,8 +32,8 @@ func (c *Client) AttachManagedPolicyToPermissionSet(ctx context.Context, params type AttachManagedPolicyToPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_CreateAccountAssignment.go b/service/ssoadmin/api_op_CreateAccountAssignment.go index 63eb3bcd61c..f6d345b9343 100644 --- a/service/ssoadmin/api_op_CreateAccountAssignment.go +++ b/service/ssoadmin/api_op_CreateAccountAssignment.go @@ -11,14 +11,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Assigns access to a principal for a specified AWS account using a specified -// permission set. The term principal here refers to a user or group that is -// defined in AWS SSO. As part of a successful CreateAccountAssignment call, the -// specified permission set will automatically be provisioned to the account in the -// form of an IAM policy attached to the SSO-created IAM role. If the permission -// set is subsequently updated, the corresponding IAM policies attached to roles in -// your accounts will not be updated automatically. In this case, you will need to -// call ProvisionPermissionSet to make these updates. +// Assigns access to a principal for a specified Amazon Web Services account using +// a specified permission set. The term principal here refers to a user or group +// that is defined in Amazon Web Services SSO. As part of a successful +// CreateAccountAssignment call, the specified permission set will automatically be +// provisioned to the account in the form of an IAM policy. That policy is attached +// to the SSO-created IAM role. If the permission set is subsequently updated, the +// corresponding IAM policies attached to roles in your accounts will not be +// updated automatically. In this case, you must call ProvisionPermissionSet to +// make these updates. func (c *Client) CreateAccountAssignment(ctx context.Context, params *CreateAccountAssignmentInput, optFns ...func(*Options)) (*CreateAccountAssignmentOutput, error) { if params == nil { params = &CreateAccountAssignmentInput{} @@ -37,8 +38,8 @@ func (c *Client) CreateAccountAssignment(ctx context.Context, params *CreateAcco type CreateAccountAssignmentInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string @@ -49,10 +50,10 @@ type CreateAccountAssignmentInput struct { // This member is required. PermissionSetArn *string - // An identifier for an object in AWS SSO, such as a user or group. PrincipalIds - // are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more - // information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API - // Reference. + // An identifier for an object in Amazon Web Services SSO, such as a user or group. + // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For + // more information about PrincipalIds in Amazon Web Services SSO, see the Amazon + // Web Services SSO Identity Store API Reference. // // This member is required. PrincipalId *string @@ -62,8 +63,8 @@ type CreateAccountAssignmentInput struct { // This member is required. PrincipalType types.PrincipalType - // TargetID is an AWS account identifier, typically a 10-12 digit string (For - // example, 123456789012). + // TargetID is an Amazon Web Services account identifier, typically a 10-12 digit + // string (For example, 123456789012). // // This member is required. TargetId *string diff --git a/service/ssoadmin/api_op_CreateInstanceAccessControlAttributeConfiguration.go b/service/ssoadmin/api_op_CreateInstanceAccessControlAttributeConfiguration.go index a79b104fd54..0d430ca5ab3 100644 --- a/service/ssoadmin/api_op_CreateInstanceAccessControlAttributeConfiguration.go +++ b/service/ssoadmin/api_op_CreateInstanceAccessControlAttributeConfiguration.go @@ -11,10 +11,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables the attributes-based access control (ABAC) feature for the specified AWS -// SSO instance. You can also specify new attributes to add to your ABAC -// configuration during the enabling process. For more information about ABAC, see -// Attribute-Based Access Control in the AWS SSO User Guide. +// Enables the attributes-based access control (ABAC) feature for the specified +// Amazon Web Services SSO instance. You can also specify new attributes to add to +// your ABAC configuration during the enabling process. For more information about +// ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User +// Guide. func (c *Client) CreateInstanceAccessControlAttributeConfiguration(ctx context.Context, params *CreateInstanceAccessControlAttributeConfigurationInput, optFns ...func(*Options)) (*CreateInstanceAccessControlAttributeConfigurationOutput, error) { if params == nil { params = &CreateInstanceAccessControlAttributeConfigurationInput{} @@ -32,12 +33,13 @@ func (c *Client) CreateInstanceAccessControlAttributeConfiguration(ctx context.C type CreateInstanceAccessControlAttributeConfigurationInput struct { - // Specifies the AWS SSO identity store attributes to add to your ABAC - // configuration. When using an external identity provider as an identity source, - // you can pass attributes through the SAML assertion as an alternative to - // configuring attributes from the AWS SSO identity store. If a SAML assertion - // passes any of these attributes, AWS SSO will replace the attribute value with - // the value from the AWS SSO identity store. + // Specifies the Amazon Web Services SSO identity store attributes to add to your + // ABAC configuration. When using an external identity provider as an identity + // source, you can pass attributes through the SAML assertion. Doing so provides an + // alternative to configuring attributes from the Amazon Web Services SSO identity + // store. If a SAML assertion passes any of these attributes, Amazon Web Services + // SSO will replace the attribute value with the value from the Amazon Web Services + // SSO identity store. // // This member is required. InstanceAccessControlAttributeConfiguration *types.InstanceAccessControlAttributeConfiguration diff --git a/service/ssoadmin/api_op_CreatePermissionSet.go b/service/ssoadmin/api_op_CreatePermissionSet.go index 090a8303eb5..303ff27c4aa 100644 --- a/service/ssoadmin/api_op_CreatePermissionSet.go +++ b/service/ssoadmin/api_op_CreatePermissionSet.go @@ -12,7 +12,8 @@ import ( ) // Creates a permission set within a specified SSO instance. To grant users and -// groups access to AWS account resources, use CreateAccountAssignment. +// groups access to Amazon Web Services account resources, use +// CreateAccountAssignment. func (c *Client) CreatePermissionSet(ctx context.Context, params *CreatePermissionSetInput, optFns ...func(*Options)) (*CreatePermissionSetOutput, error) { if params == nil { params = &CreatePermissionSetInput{} @@ -31,8 +32,8 @@ func (c *Client) CreatePermissionSet(ctx context.Context, params *CreatePermissi type CreatePermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string @@ -61,7 +62,7 @@ type CreatePermissionSetInput struct { type CreatePermissionSetOutput struct { - // Defines the level of access on an AWS account. + // Defines the level of access on an Amazon Web Services account. PermissionSet *types.PermissionSet // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_DeleteAccountAssignment.go b/service/ssoadmin/api_op_DeleteAccountAssignment.go index 57809e4e032..a0d38d5806a 100644 --- a/service/ssoadmin/api_op_DeleteAccountAssignment.go +++ b/service/ssoadmin/api_op_DeleteAccountAssignment.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a principal's access from a specified AWS account using a specified -// permission set. +// Deletes a principal's access from a specified Amazon Web Services account using +// a specified permission set. func (c *Client) DeleteAccountAssignment(ctx context.Context, params *DeleteAccountAssignmentInput, optFns ...func(*Options)) (*DeleteAccountAssignmentOutput, error) { if params == nil { params = &DeleteAccountAssignmentInput{} @@ -31,8 +31,8 @@ func (c *Client) DeleteAccountAssignment(ctx context.Context, params *DeleteAcco type DeleteAccountAssignmentInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string @@ -42,10 +42,10 @@ type DeleteAccountAssignmentInput struct { // This member is required. PermissionSetArn *string - // An identifier for an object in AWS SSO, such as a user or group. PrincipalIds - // are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more - // information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API - // Reference. + // An identifier for an object in Amazon Web Services SSO, such as a user or group. + // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For + // more information about PrincipalIds in Amazon Web Services SSO, see the Amazon + // Web Services SSO Identity Store API Reference. // // This member is required. PrincipalId *string @@ -55,8 +55,8 @@ type DeleteAccountAssignmentInput struct { // This member is required. PrincipalType types.PrincipalType - // TargetID is an AWS account identifier, typically a 10-12 digit string (For - // example, 123456789012). + // TargetID is an Amazon Web Services account identifier, typically a 10-12 digit + // string (For example, 123456789012). // // This member is required. TargetId *string diff --git a/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go b/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go index eb2729a4ea8..1b15d5082ec 100644 --- a/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go +++ b/service/ssoadmin/api_op_DeleteInlinePolicyFromPermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) DeleteInlinePolicyFromPermissionSet(ctx context.Context, params type DeleteInlinePolicyFromPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DeleteInstanceAccessControlAttributeConfiguration.go b/service/ssoadmin/api_op_DeleteInstanceAccessControlAttributeConfiguration.go index ccbd602eea6..c095933195f 100644 --- a/service/ssoadmin/api_op_DeleteInstanceAccessControlAttributeConfiguration.go +++ b/service/ssoadmin/api_op_DeleteInstanceAccessControlAttributeConfiguration.go @@ -11,11 +11,11 @@ import ( ) // Disables the attributes-based access control (ABAC) feature for the specified -// AWS SSO instance and deletes all of the attribute mappings that have been -// configured. Once deleted, any attributes that are received from an identity -// source and any custom attributes you have previously configured will not be -// passed. For more information about ABAC, see Attribute-Based Access Control in -// the AWS SSO User Guide. +// Amazon Web Services SSO instance and deletes all of the attribute mappings that +// have been configured. Once deleted, any attributes that are received from an +// identity source and any custom attributes you have previously configured will +// not be passed. For more information about ABAC, see Attribute-Based Access +// Control in the Amazon Web Services SSO User Guide. func (c *Client) DeleteInstanceAccessControlAttributeConfiguration(ctx context.Context, params *DeleteInstanceAccessControlAttributeConfigurationInput, optFns ...func(*Options)) (*DeleteInstanceAccessControlAttributeConfigurationOutput, error) { if params == nil { params = &DeleteInstanceAccessControlAttributeConfigurationInput{} diff --git a/service/ssoadmin/api_op_DeletePermissionSet.go b/service/ssoadmin/api_op_DeletePermissionSet.go index 20c35d692f7..73eaa6f6106 100644 --- a/service/ssoadmin/api_op_DeletePermissionSet.go +++ b/service/ssoadmin/api_op_DeletePermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) DeletePermissionSet(ctx context.Context, params *DeletePermissi type DeletePermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go b/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go index 022f35967d1..024d33d5c13 100644 --- a/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go +++ b/service/ssoadmin/api_op_DescribeAccountAssignmentCreationStatus.go @@ -35,8 +35,8 @@ type DescribeAccountAssignmentCreationStatusInput struct { AccountAssignmentCreationRequestId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go b/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go index 8e90b96a350..bbc5059dfa7 100644 --- a/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go +++ b/service/ssoadmin/api_op_DescribeAccountAssignmentDeletionStatus.go @@ -35,8 +35,8 @@ type DescribeAccountAssignmentDeletionStatusInput struct { AccountAssignmentDeletionRequestId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DescribeInstanceAccessControlAttributeConfiguration.go b/service/ssoadmin/api_op_DescribeInstanceAccessControlAttributeConfiguration.go index ef7c0ee7822..b41482bcd95 100644 --- a/service/ssoadmin/api_op_DescribeInstanceAccessControlAttributeConfiguration.go +++ b/service/ssoadmin/api_op_DescribeInstanceAccessControlAttributeConfiguration.go @@ -11,11 +11,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the list of AWS SSO identity store attributes that have been configured -// to work with attributes-based access control (ABAC) for the specified AWS SSO -// instance. This will not return attributes configured and sent by an external -// identity provider. For more information about ABAC, see Attribute-Based Access -// Control in the AWS SSO User Guide. +// Returns the list of Amazon Web Services SSO identity store attributes that have +// been configured to work with attributes-based access control (ABAC) for the +// specified Amazon Web Services SSO instance. This will not return attributes +// configured and sent by an external identity provider. For more information about +// ABAC, see Attribute-Based Access Control in the Amazon Web Services SSO User +// Guide. func (c *Client) DescribeInstanceAccessControlAttributeConfiguration(ctx context.Context, params *DescribeInstanceAccessControlAttributeConfigurationInput, optFns ...func(*Options)) (*DescribeInstanceAccessControlAttributeConfigurationOutput, error) { if params == nil { params = &DescribeInstanceAccessControlAttributeConfigurationInput{} @@ -43,8 +44,8 @@ type DescribeInstanceAccessControlAttributeConfigurationInput struct { type DescribeInstanceAccessControlAttributeConfigurationOutput struct { - // Gets the list of AWS SSO identity store attributes added to your ABAC - // configuration. + // Gets the list of Amazon Web Services SSO identity store attributes that have + // been added to your ABAC configuration. InstanceAccessControlAttributeConfiguration *types.InstanceAccessControlAttributeConfiguration // The status of the attribute configuration process. diff --git a/service/ssoadmin/api_op_DescribePermissionSet.go b/service/ssoadmin/api_op_DescribePermissionSet.go index 6ff11894d3e..b5842571657 100644 --- a/service/ssoadmin/api_op_DescribePermissionSet.go +++ b/service/ssoadmin/api_op_DescribePermissionSet.go @@ -30,8 +30,8 @@ func (c *Client) DescribePermissionSet(ctx context.Context, params *DescribePerm type DescribePermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string @@ -46,7 +46,7 @@ type DescribePermissionSetInput struct { type DescribePermissionSetOutput struct { - // Describes the level of access on an AWS account. + // Describes the level of access on an Amazon Web Services account. PermissionSet *types.PermissionSet // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go b/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go index 889da2fd6c1..834effd7c65 100644 --- a/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go +++ b/service/ssoadmin/api_op_DescribePermissionSetProvisioningStatus.go @@ -30,8 +30,8 @@ func (c *Client) DescribePermissionSetProvisioningStatus(ctx context.Context, pa type DescribePermissionSetProvisioningStatusInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go b/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go index ae2d4202355..29e6706d7b0 100644 --- a/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go +++ b/service/ssoadmin/api_op_DetachManagedPolicyFromPermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) DetachManagedPolicyFromPermissionSet(ctx context.Context, param type DetachManagedPolicyFromPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go b/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go index 88a24c9f9ea..9a5008befaf 100644 --- a/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go +++ b/service/ssoadmin/api_op_GetInlinePolicyForPermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) GetInlinePolicyForPermissionSet(ctx context.Context, params *Ge type GetInlinePolicyForPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go b/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go index 3f77f996909..b81570e7ff0 100644 --- a/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go +++ b/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the status of the AWS account assignment creation requests for a specified -// SSO instance. +// Lists the status of the Amazon Web Services account assignment creation requests +// for a specified SSO instance. func (c *Client) ListAccountAssignmentCreationStatus(ctx context.Context, params *ListAccountAssignmentCreationStatusInput, optFns ...func(*Options)) (*ListAccountAssignmentCreationStatusOutput, error) { if params == nil { params = &ListAccountAssignmentCreationStatusInput{} @@ -32,8 +32,8 @@ func (c *Client) ListAccountAssignmentCreationStatus(ctx context.Context, params type ListAccountAssignmentCreationStatusInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go b/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go index bf320d4422a..d85464be04f 100644 --- a/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go +++ b/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the status of the AWS account assignment deletion requests for a specified -// SSO instance. +// Lists the status of the Amazon Web Services account assignment deletion requests +// for a specified SSO instance. func (c *Client) ListAccountAssignmentDeletionStatus(ctx context.Context, params *ListAccountAssignmentDeletionStatusInput, optFns ...func(*Options)) (*ListAccountAssignmentDeletionStatusOutput, error) { if params == nil { params = &ListAccountAssignmentDeletionStatusInput{} @@ -32,8 +32,8 @@ func (c *Client) ListAccountAssignmentDeletionStatus(ctx context.Context, params type ListAccountAssignmentDeletionStatusInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListAccountAssignments.go b/service/ssoadmin/api_op_ListAccountAssignments.go index b5ce7223525..3219bd88958 100644 --- a/service/ssoadmin/api_op_ListAccountAssignments.go +++ b/service/ssoadmin/api_op_ListAccountAssignments.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists the assignee of the specified AWS account with the specified permission -// set. +// Lists the assignee of the specified Amazon Web Services account with the +// specified permission set. func (c *Client) ListAccountAssignments(ctx context.Context, params *ListAccountAssignmentsInput, optFns ...func(*Options)) (*ListAccountAssignmentsOutput, error) { if params == nil { params = &ListAccountAssignmentsInput{} @@ -31,14 +31,15 @@ func (c *Client) ListAccountAssignments(ctx context.Context, params *ListAccount type ListAccountAssignmentsInput struct { - // The identifier of the AWS account from which to list the assignments. + // The identifier of the Amazon Web Services account from which to list the + // assignments. // // This member is required. AccountId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string @@ -60,7 +61,8 @@ type ListAccountAssignmentsInput struct { type ListAccountAssignmentsOutput struct { - // The list of assignments that match the input AWS account and permission set. + // The list of assignments that match the input Amazon Web Services account and + // permission set. AccountAssignments []types.AccountAssignment // The pagination token for the list API. Initially the value is null. Use the diff --git a/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go b/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go index 39f94f82373..3b287050fa1 100644 --- a/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go +++ b/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the AWS accounts where the specified permission set is provisioned. +// Lists all the Amazon Web Services accounts where the specified permission set is +// provisioned. func (c *Client) ListAccountsForProvisionedPermissionSet(ctx context.Context, params *ListAccountsForProvisionedPermissionSetInput, optFns ...func(*Options)) (*ListAccountsForProvisionedPermissionSetOutput, error) { if params == nil { params = &ListAccountsForProvisionedPermissionSetInput{} @@ -31,14 +32,14 @@ func (c *Client) ListAccountsForProvisionedPermissionSet(ctx context.Context, pa type ListAccountsForProvisionedPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string - // The ARN of the PermissionSet from which the associated AWS accounts will be - // listed. + // The ARN of the PermissionSet from which the associated Amazon Web Services + // accounts will be listed. // // This member is required. PermissionSetArn *string @@ -50,7 +51,7 @@ type ListAccountsForProvisionedPermissionSetInput struct { // output of previous API calls to make subsequent calls. NextToken *string - // The permission set provisioning status for an AWS account. + // The permission set provisioning status for an Amazon Web Services account. ProvisioningStatus types.ProvisioningStatus noSmithyDocumentSerde @@ -58,7 +59,7 @@ type ListAccountsForProvisionedPermissionSetInput struct { type ListAccountsForProvisionedPermissionSetOutput struct { - // The list of AWS AccountIds. + // The list of Amazon Web Services AccountIds. AccountIds []string // The pagination token for the list API. Initially the value is null. Use the diff --git a/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go b/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go index 2cf3c7667d5..e5158fadae6 100644 --- a/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go +++ b/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go @@ -31,8 +31,8 @@ func (c *Client) ListManagedPoliciesInPermissionSet(ctx context.Context, params type ListManagedPoliciesInPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go b/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go index 57415ab54b4..4172e0ccdd1 100644 --- a/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go +++ b/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go @@ -32,8 +32,8 @@ func (c *Client) ListPermissionSetProvisioningStatus(ctx context.Context, params type ListPermissionSetProvisioningStatusInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ListPermissionSets.go b/service/ssoadmin/api_op_ListPermissionSets.go index 611ec77122d..44a3dbcdf20 100644 --- a/service/ssoadmin/api_op_ListPermissionSets.go +++ b/service/ssoadmin/api_op_ListPermissionSets.go @@ -30,8 +30,8 @@ func (c *Client) ListPermissionSets(ctx context.Context, params *ListPermissionS type ListPermissionSetsInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string @@ -52,7 +52,7 @@ type ListPermissionSetsOutput struct { // output of previous API calls to make subsequent calls. NextToken *string - // Defines the level of access on an AWS account. + // Defines the level of access on an Amazon Web Services account. PermissionSets []string // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go b/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go index 226b04a114b..53a2f6e4b95 100644 --- a/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go +++ b/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the permission sets that are provisioned to a specified AWS account. +// Lists all the permission sets that are provisioned to a specified Amazon Web +// Services account. func (c *Client) ListPermissionSetsProvisionedToAccount(ctx context.Context, params *ListPermissionSetsProvisionedToAccountInput, optFns ...func(*Options)) (*ListPermissionSetsProvisionedToAccountOutput, error) { if params == nil { params = &ListPermissionSetsProvisionedToAccountInput{} @@ -30,14 +31,15 @@ func (c *Client) ListPermissionSetsProvisionedToAccount(ctx context.Context, par type ListPermissionSetsProvisionedToAccountInput struct { - // The identifier of the AWS account from which to list the assignments. + // The identifier of the Amazon Web Services account from which to list the + // assignments. // // This member is required. AccountId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string @@ -61,7 +63,7 @@ type ListPermissionSetsProvisionedToAccountOutput struct { // output of previous API calls to make subsequent calls. NextToken *string - // Defines the level of access that an AWS account has. + // Defines the level of access that an Amazon Web Services account has. PermissionSets []string // Metadata pertaining to the operation's result. diff --git a/service/ssoadmin/api_op_ListTagsForResource.go b/service/ssoadmin/api_op_ListTagsForResource.go index 0abce7a5f99..99590854337 100644 --- a/service/ssoadmin/api_op_ListTagsForResource.go +++ b/service/ssoadmin/api_op_ListTagsForResource.go @@ -31,8 +31,8 @@ func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForRes type ListTagsForResourceInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_ProvisionPermissionSet.go b/service/ssoadmin/api_op_ProvisionPermissionSet.go index 0bf92982dbf..5fa4f202aee 100644 --- a/service/ssoadmin/api_op_ProvisionPermissionSet.go +++ b/service/ssoadmin/api_op_ProvisionPermissionSet.go @@ -31,8 +31,8 @@ func (c *Client) ProvisionPermissionSet(ctx context.Context, params *ProvisionPe type ProvisionPermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string @@ -47,8 +47,8 @@ type ProvisionPermissionSetInput struct { // This member is required. TargetType types.ProvisionTargetType - // TargetID is an AWS account identifier, typically a 10-12 digit string (For - // example, 123456789012). + // TargetID is an Amazon Web Services account identifier, typically a 10-12 digit + // string (For example, 123456789012). TargetId *string noSmithyDocumentSerde diff --git a/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go b/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go index 4c3323529ef..0637e779164 100644 --- a/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go +++ b/service/ssoadmin/api_op_PutInlinePolicyToPermissionSet.go @@ -37,8 +37,8 @@ type PutInlinePolicyToPermissionSetInput struct { InlinePolicy *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_TagResource.go b/service/ssoadmin/api_op_TagResource.go index 8223ceb925d..26b263dfb31 100644 --- a/service/ssoadmin/api_op_TagResource.go +++ b/service/ssoadmin/api_op_TagResource.go @@ -30,8 +30,8 @@ func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optF type TagResourceInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_UntagResource.go b/service/ssoadmin/api_op_UntagResource.go index 73b340405a1..9865f832c18 100644 --- a/service/ssoadmin/api_op_UntagResource.go +++ b/service/ssoadmin/api_op_UntagResource.go @@ -29,8 +29,8 @@ func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, type UntagResourceInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/api_op_UpdateInstanceAccessControlAttributeConfiguration.go b/service/ssoadmin/api_op_UpdateInstanceAccessControlAttributeConfiguration.go index 472d8c7b473..df2706c7838 100644 --- a/service/ssoadmin/api_op_UpdateInstanceAccessControlAttributeConfiguration.go +++ b/service/ssoadmin/api_op_UpdateInstanceAccessControlAttributeConfiguration.go @@ -11,14 +11,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the AWS SSO identity store attributes to use with the AWS SSO instance -// for attributes-based access control (ABAC). When using an external identity -// provider as an identity source, you can pass attributes through the SAML -// assertion as an alternative to configuring attributes from the AWS SSO identity -// store. If a SAML assertion passes any of these attributes, AWS SSO will replace -// the attribute value with the value from the AWS SSO identity store. For more -// information about ABAC, see Attribute-Based Access Control in the AWS SSO User -// Guide. +// Updates the Amazon Web Services SSO identity store attributes that you can use +// with the Amazon Web Services SSO instance for attributes-based access control +// (ABAC). When using an external identity provider as an identity source, you can +// pass attributes through the SAML assertion as an alternative to configuring +// attributes from the Amazon Web Services SSO identity store. If a SAML assertion +// passes any of these attributes, Amazon Web Services SSO replaces the attribute +// value with the value from the Amazon Web Services SSO identity store. For more +// information about ABAC, see Attribute-Based Access Control in the Amazon Web +// Services SSO User Guide. func (c *Client) UpdateInstanceAccessControlAttributeConfiguration(ctx context.Context, params *UpdateInstanceAccessControlAttributeConfigurationInput, optFns ...func(*Options)) (*UpdateInstanceAccessControlAttributeConfigurationOutput, error) { if params == nil { params = &UpdateInstanceAccessControlAttributeConfigurationInput{} diff --git a/service/ssoadmin/api_op_UpdatePermissionSet.go b/service/ssoadmin/api_op_UpdatePermissionSet.go index 861cb29e7e5..f1dec8e6b90 100644 --- a/service/ssoadmin/api_op_UpdatePermissionSet.go +++ b/service/ssoadmin/api_op_UpdatePermissionSet.go @@ -29,8 +29,8 @@ func (c *Client) UpdatePermissionSet(ctx context.Context, params *UpdatePermissi type UpdatePermissionSetInput struct { // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. // // This member is required. InstanceArn *string diff --git a/service/ssoadmin/doc.go b/service/ssoadmin/doc.go index 0641179bfa8..4d30da344a0 100644 --- a/service/ssoadmin/doc.go +++ b/service/ssoadmin/doc.go @@ -3,4 +3,16 @@ // Package ssoadmin provides the API client, operations, and parameter types for // AWS Single Sign-On Admin. // +// Amazon Web Services Single Sign On (SSO) is a cloud SSO service that makes it +// easy to centrally manage SSO access to multiple Amazon Web Services accounts and +// business applications. This guide provides information on SSO operations which +// could be used for access management of Amazon Web Services accounts. For +// information about Amazon Web Services SSO features, see the Amazon Web Services +// Single Sign-On User Guide +// (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html). Many +// operations in the SSO APIs rely on identifiers for users and groups, known as +// principals. For more information about how to work with principals and principal +// IDs in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store +// API Reference +// (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/welcome.html). package ssoadmin diff --git a/service/ssoadmin/types/types.go b/service/ssoadmin/types/types.go index c5fe65bfca8..6c7f78b51c3 100644 --- a/service/ssoadmin/types/types.go +++ b/service/ssoadmin/types/types.go @@ -7,17 +7,17 @@ import ( "time" ) -// These are AWS SSO identity store attributes that you can configure for use in -// attributes-based access control (ABAC). You can create permission policies that -// determine who can access your AWS resources based upon the configured attribute -// value(s). When you enable ABAC and specify AccessControlAttributes, AWS SSO -// passes the attribute(s) value of the authenticated user into IAM for use in -// policy evaluation. +// These are Amazon Web Services SSO identity store attributes that you can +// configure for use in attributes-based access control (ABAC). You can create +// permissions policies that determine who can access your Amazon Web Services +// resources based upon the configured attribute values. When you enable ABAC and +// specify AccessControlAttributes, Amazon Web Services SSO passes the attribute +// values of the authenticated user into IAM for use in policy evaluation. type AccessControlAttribute struct { // The name of the attribute associated with your identities in your identity // source. This is used to map a specified attribute in your identity source with - // an attribute in AWS SSO. + // an attribute in Amazon Web Services SSO. // // This member is required. Key *string @@ -33,7 +33,8 @@ type AccessControlAttribute struct { // The value used for mapping a specified attribute to an identity source. type AccessControlAttributeValue struct { - // The identity source to use when mapping a specified attribute to AWS SSO. + // The identity source to use when mapping a specified attribute to Amazon Web + // Services SSO. // // This member is required. Source []string @@ -41,22 +42,23 @@ type AccessControlAttributeValue struct { noSmithyDocumentSerde } -// The assignment that indicates a principal's limited access to a specified AWS -// account with a specified permission set. The term principal here refers to a -// user or group that is defined in AWS SSO. +// The assignment that indicates a principal's limited access to a specified Amazon +// Web Services account with a specified permission set. The term principal here +// refers to a user or group that is defined in Amazon Web Services SSO. type AccountAssignment struct { - // The identifier of the AWS account. + // The identifier of the Amazon Web Services account. AccountId *string // The ARN of the permission set. For more information about ARNs, see Amazon - // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. + // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon + // Web Services General Reference. PermissionSetArn *string - // An identifier for an object in AWS SSO, such as a user or group. PrincipalIds - // are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more - // information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API - // Reference. + // An identifier for an object in Amazon Web Services SSO, such as a user or group. + // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For + // more information about PrincipalIds in Amazon Web Services SSO, see the Amazon + // Web Services SSO Identity Store API Reference. PrincipalId *string // The entity type for which the assignment will be created. @@ -76,13 +78,14 @@ type AccountAssignmentOperationStatus struct { FailureReason *string // The ARN of the permission set. For more information about ARNs, see Amazon - // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. + // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon + // Web Services General Reference. PermissionSetArn *string - // An identifier for an object in AWS SSO, such as a user or group. PrincipalIds - // are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more - // information about PrincipalIds in AWS SSO, see the AWS SSO Identity Store API - // Reference. + // An identifier for an object in Amazon Web Services SSO, such as a user or group. + // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For + // more information about PrincipalIds in Amazon Web Services SSO, see the Amazon + // Web Services SSO Identity Store API Reference. PrincipalId *string // The entity type for which the assignment will be created. @@ -95,8 +98,8 @@ type AccountAssignmentOperationStatus struct { // The status of the permission set provisioning process. Status StatusValues - // TargetID is an AWS account identifier, typically a 10-12 digit string (For - // example, 123456789012). + // TargetID is an Amazon Web Services account identifier, typically a 10-12 digit + // string (For example, 123456789012). TargetId *string // The entity type for which the assignment will be created. @@ -125,7 +128,8 @@ type AccountAssignmentOperationStatusMetadata struct { type AttachedManagedPolicy struct { // The ARN of the IAM managed policy. For more information about ARNs, see Amazon - // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. + // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon + // Web Services General Reference. Arn *string // The name of the IAM managed policy. @@ -138,8 +142,8 @@ type AttachedManagedPolicy struct { // configuration. type InstanceAccessControlAttributeConfiguration struct { - // Lists the attributes that are configured for ABAC in the specified AWS SSO - // instance. + // Lists the attributes that are configured for ABAC in the specified Amazon Web + // Services SSO instance. // // This member is required. AccessControlAttributes []AccessControlAttribute @@ -154,8 +158,8 @@ type InstanceMetadata struct { IdentityStoreId *string // The ARN of the SSO instance under which the operation will be executed. For more - // information about ARNs, see Amazon Resource Names (ARNs) and AWS Service - // Namespaces in the AWS General Reference. + // information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces in the Amazon Web Services General Reference. InstanceArn *string noSmithyDocumentSerde @@ -183,7 +187,8 @@ type PermissionSet struct { Name *string // The ARN of the permission set. For more information about ARNs, see Amazon - // Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference. + // Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon + // Web Services General Reference. PermissionSetArn *string // Used to redirect users within the application during the federation @@ -201,7 +206,8 @@ type PermissionSet struct { // a specified permission set. type PermissionSetProvisioningStatus struct { - // The identifier of the AWS account from which to list the assignments. + // The identifier of the Amazon Web Services account from which to list the + // assignments. AccountId *string // The date that the permission set was created. @@ -211,8 +217,8 @@ type PermissionSetProvisioningStatus struct { FailureReason *string // The ARN of the permission set that is being provisioned. For more information - // about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the - // AWS General Reference. + // about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service + // Namespaces in the Amazon Web Services General Reference. PermissionSetArn *string // The identifier for tracking the request operation that is generated by the @@ -242,8 +248,8 @@ type PermissionSetProvisioningStatusMetadata struct { } // A set of key-value pairs that are used to manage the resource. Tags can only be -// applied to permission sets and cannot be applied to corresponding roles that AWS -// SSO creates in AWS accounts. +// applied to permission sets and cannot be applied to corresponding roles that +// Amazon Web Services SSO creates in Amazon Web Services accounts. type Tag struct { // The key for the tag. diff --git a/service/synthetics/api_op_CreateCanary.go b/service/synthetics/api_op_CreateCanary.go index 2d999243eac..1017662a36c 100644 --- a/service/synthetics/api_op_CreateCanary.go +++ b/service/synthetics/api_op_CreateCanary.go @@ -46,7 +46,8 @@ func (c *Client) CreateCanary(ctx context.Context, params *CreateCanaryInput, op type CreateCanaryInput struct { // The location in Amazon S3 where Synthetics stores artifacts from the test runs - // of this canary. Artifacts include the log file, screenshots, and HAR files. + // of this canary. Artifacts include the log file, screenshots, and HAR files. The + // name of the S3 bucket can't include a period (.). // // This member is required. ArtifactS3Location *string diff --git a/service/synthetics/api_op_TagResource.go b/service/synthetics/api_op_TagResource.go index c6f7b81eebb..24a3fb6d992 100644 --- a/service/synthetics/api_op_TagResource.go +++ b/service/synthetics/api_op_TagResource.go @@ -13,13 +13,13 @@ import ( // Assigns one or more tags (key-value pairs) to the specified canary. Tags can // help you organize and categorize your resources. You can also use them to scope // user permissions, by granting a user permission to access or change only -// resources with certain tag values. Tags don't have any semantic meaning to AWS -// and are interpreted strictly as strings of characters. You can use the -// TagResource action with a canary that already has tags. If you specify a new tag -// key for the alarm, this tag is appended to the list of tags associated with the -// alarm. If you specify a tag key that is already associated with the alarm, the -// new tag value that you specify replaces the previous value for that tag. You can -// associate as many as 50 tags with a canary. +// resources with certain tag values. Tags don't have any semantic meaning to +// Amazon Web Services and are interpreted strictly as strings of characters. You +// can use the TagResource action with a canary that already has tags. If you +// specify a new tag key for the alarm, this tag is appended to the list of tags +// associated with the alarm. If you specify a tag key that is already associated +// with the alarm, the new tag value that you specify replaces the previous value +// for that tag. You can associate as many as 50 tags with a canary. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/synthetics/api_op_UpdateCanary.go b/service/synthetics/api_op_UpdateCanary.go index bb23ce2adc3..fae902c310d 100644 --- a/service/synthetics/api_op_UpdateCanary.go +++ b/service/synthetics/api_op_UpdateCanary.go @@ -86,6 +86,8 @@ type UpdateCanaryInput struct { // The number of days to retain data about successful runs of this canary. SuccessRetentionPeriodInDays *int32 + VisualReference *types.VisualReferenceInput + // If this canary is to test an endpoint in a VPC, this structure contains // information about the subnet and security groups of the VPC endpoint. For more // information, see Running a Canary in a VPC diff --git a/service/synthetics/deserializers.go b/service/synthetics/deserializers.go index 23ce751d8c6..041b1267688 100644 --- a/service/synthetics/deserializers.go +++ b/service/synthetics/deserializers.go @@ -1801,6 +1801,121 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo return output } +func awsRestjson1_deserializeDocumentBaseScreenshot(v **types.BaseScreenshot, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BaseScreenshot + if *v == nil { + sv = &types.BaseScreenshot{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "IgnoreCoordinates": + if err := awsRestjson1_deserializeDocumentBaseScreenshotIgnoreCoordinates(&sv.IgnoreCoordinates, value); err != nil { + return err + } + + case "ScreenshotName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ScreenshotName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBaseScreenshotIgnoreCoordinates(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BaseScreenshotConfigIgnoreCoordinate to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentBaseScreenshots(v *[]types.BaseScreenshot, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.BaseScreenshot + if *v == nil { + cv = []types.BaseScreenshot{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BaseScreenshot + destAddr := &col + if err := awsRestjson1_deserializeDocumentBaseScreenshot(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentCanaries(v *[]types.Canary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2001,6 +2116,11 @@ func awsRestjson1_deserializeDocumentCanary(v **types.Canary, value interface{}) return err } + case "VisualReference": + if err := awsRestjson1_deserializeDocumentVisualReferenceOutput(&sv.VisualReference, value); err != nil { + return err + } + case "VpcConfig": if err := awsRestjson1_deserializeDocumentVpcConfigOutput(&sv.VpcConfig, value); err != nil { return err @@ -2987,6 +3107,51 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc return nil } +func awsRestjson1_deserializeDocumentVisualReferenceOutput(v **types.VisualReferenceOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.VisualReferenceOutput + if *v == nil { + sv = &types.VisualReferenceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BaseCanaryRunId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.BaseCanaryRunId = ptr.String(jtv) + } + + case "BaseScreenshots": + if err := awsRestjson1_deserializeDocumentBaseScreenshots(&sv.BaseScreenshots, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentVpcConfigOutput(v **types.VpcConfigOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/synthetics/serializers.go b/service/synthetics/serializers.go index c3734febc2b..669d717de06 100644 --- a/service/synthetics/serializers.go +++ b/service/synthetics/serializers.go @@ -998,6 +998,13 @@ func awsRestjson1_serializeOpDocumentUpdateCanaryInput(v *UpdateCanaryInput, val ok.Integer(*v.SuccessRetentionPeriodInDays) } + if v.VisualReference != nil { + ok := object.Key("VisualReference") + if err := awsRestjson1_serializeDocumentVisualReferenceInput(v.VisualReference, ok); err != nil { + return err + } + } + if v.VpcConfig != nil { ok := object.Key("VpcConfig") if err := awsRestjson1_serializeDocumentVpcConfigInput(v.VpcConfig, ok); err != nil { @@ -1008,6 +1015,49 @@ func awsRestjson1_serializeOpDocumentUpdateCanaryInput(v *UpdateCanaryInput, val return nil } +func awsRestjson1_serializeDocumentBaseScreenshot(v *types.BaseScreenshot, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.IgnoreCoordinates != nil { + ok := object.Key("IgnoreCoordinates") + if err := awsRestjson1_serializeDocumentBaseScreenshotIgnoreCoordinates(v.IgnoreCoordinates, ok); err != nil { + return err + } + } + + if v.ScreenshotName != nil { + ok := object.Key("ScreenshotName") + ok.String(*v.ScreenshotName) + } + + return nil +} + +func awsRestjson1_serializeDocumentBaseScreenshotIgnoreCoordinates(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentBaseScreenshots(v []types.BaseScreenshot, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentBaseScreenshot(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentCanaryCodeInput(v *types.CanaryCodeInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1130,6 +1180,25 @@ func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson. return nil } +func awsRestjson1_serializeDocumentVisualReferenceInput(v *types.VisualReferenceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.BaseCanaryRunId != nil { + ok := object.Key("BaseCanaryRunId") + ok.String(*v.BaseCanaryRunId) + } + + if v.BaseScreenshots != nil { + ok := object.Key("BaseScreenshots") + if err := awsRestjson1_serializeDocumentBaseScreenshots(v.BaseScreenshots, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentVpcConfigInput(v *types.VpcConfigInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/synthetics/types/types.go b/service/synthetics/types/types.go index dfe8452aa68..b914e3d1e91 100644 --- a/service/synthetics/types/types.go +++ b/service/synthetics/types/types.go @@ -7,6 +7,16 @@ import ( "time" ) +type BaseScreenshot struct { + + // This member is required. + ScreenshotName *string + + IgnoreCoordinates []string + + noSmithyDocumentSerde +} + // This structure contains all information about one canary in your account. type Canary struct { @@ -62,6 +72,8 @@ type Canary struct { // modified, and most recently run. Timeline *CanaryTimeline + VisualReference *VisualReferenceOutput + // If this canary is to test an endpoint in a VPC, this structure contains // information about the subnets and security groups of the VPC endpoint. For more // information, see Running a Canary in a VPC @@ -79,14 +91,14 @@ type Canary struct { type CanaryCodeInput struct { // The entry point to use for the source code when running the canary. This value - // must end with the string .handler. + // must end with the string .handler. The string is limited to 29 characters or + // fewer. // // This member is required. Handler *string - // If your canary script is located in S3, specify the full bucket name here. The - // bucket must already exist. Specify the full bucket name, including s3:// as the - // start of the bucket name. + // If your canary script is located in S3, specify the bucket name here. Do not + // include s3:// as the start of the bucket name. S3Bucket *string // The S3 key of your script. For more information, see Working with Amazon S3 @@ -97,8 +109,8 @@ type CanaryCodeInput struct { S3Version *string // If you input your canary script directly into the canary instead of referring to - // an S3 location, the value of this parameter is the .zip file that contains the - // script. It can be up to 5 MB. + // an S3 location, the value of this parameter is the base64-encoded contents of + // the .zip file that contains the script. It can be up to 5 MB. ZipFile []byte noSmithyDocumentSerde @@ -155,9 +167,9 @@ type CanaryRun struct { // A structure that contains input information for a canary run. type CanaryRunConfigInput struct { - // Specifies whether this canary is to use active AWS X-Ray tracing when it runs. + // Specifies whether this canary is to use active X-Ray tracing when it runs. // Active tracing enables this canary run to be displayed in the ServiceLens and - // X-Ray service maps even if the canary does not hit an endpoint that has X-ray + // X-Ray service maps even if the canary does not hit an endpoint that has X-Ray // tracing enabled. Using X-Ray tracing incurs charges. For more information, see // Canaries and X-Ray tracing // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html). @@ -191,7 +203,7 @@ type CanaryRunConfigInput struct { // A structure that contains information about a canary run. type CanaryRunConfigOutput struct { - // Displays whether this canary run used active AWS X-Ray tracing. + // Displays whether this canary run used active X-Ray tracing. ActiveTracing *bool // The maximum amount of memory available to the canary while it is running, in MB. @@ -236,13 +248,17 @@ type CanaryRunTimeline struct { // time when it should stop making runs. type CanaryScheduleInput struct { - // A rate expression that defines how often the canary is to run. The syntax is - // rate(number unit). unit can be minute, minutes, or hour. For example, rate(1 - // minute) runs the canary once a minute, rate(10 minutes) runs it once every 10 - // minutes, and rate(1 hour) runs it once every hour. You can specify a frequency - // between rate(1 minute) and rate(1 hour). Specifying rate(0 minute) or rate(0 - // hour) is a special value that causes the canary to run only once when it is - // started. + // A rate expression or a cron expression that defines how often the canary is to + // run. For a rate expression, The syntax is rate(number unit). unit can be minute, + // minutes, or hour. For example, rate(1 minute) runs the canary once a minute, + // rate(10 minutes) runs it once every 10 minutes, and rate(1 hour) runs it once + // every hour. You can specify a frequency between rate(1 minute) and rate(1 hour). + // Specifying rate(0 minute) or rate(0 hour) is a special value that causes the + // canary to run only once when it is started. Use cron(expression) to specify a + // cron expression. You can't schedule a canary to wait for more than a year before + // running. For information about the syntax for cron expressions, see Scheduling + // canary runs using cron + // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html). // // This member is required. Expression *string @@ -264,12 +280,16 @@ type CanaryScheduleOutput struct { // value. DurationInSeconds *int64 - // A rate expression that defines how often the canary is to run. The syntax is - // rate(number unit). unit can be minute, minutes, or hour. For example, rate(1 - // minute) runs the canary once a minute, rate(10 minutes) runs it once every 10 - // minutes, and rate(1 hour) runs it once every hour. Specifying rate(0 minute) or - // rate(0 hour) is a special value that causes the canary to run only once when it - // is started. + // A rate expression or a cron expression that defines how often the canary is to + // run. For a rate expression, The syntax is rate(number unit). unit can be minute, + // minutes, or hour. For example, rate(1 minute) runs the canary once a minute, + // rate(10 minutes) runs it once every 10 minutes, and rate(1 hour) runs it once + // every hour. You can specify a frequency between rate(1 minute) and rate(1 hour). + // Specifying rate(0 minute) or rate(0 hour) is a special value that causes the + // canary to run only once when it is started. Use cron(expression) to specify a + // cron expression. For information about the syntax for cron expressions, see + // Scheduling canary runs using cron + // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html). Expression *string noSmithyDocumentSerde @@ -332,6 +352,24 @@ type RuntimeVersion struct { noSmithyDocumentSerde } +type VisualReferenceInput struct { + + // This member is required. + BaseCanaryRunId *string + + BaseScreenshots []BaseScreenshot + + noSmithyDocumentSerde +} + +type VisualReferenceOutput struct { + BaseCanaryRunId *string + + BaseScreenshots []BaseScreenshot + + noSmithyDocumentSerde +} + // If this canary is to test an endpoint in a VPC, this structure contains // information about the subnets and security groups of the VPC endpoint. For more // information, see Running a Canary in a VPC diff --git a/service/synthetics/validators.go b/service/synthetics/validators.go index a34a5070170..c7d88e89630 100644 --- a/service/synthetics/validators.go +++ b/service/synthetics/validators.go @@ -250,6 +250,38 @@ func addOpUpdateCanaryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateCanary{}, middleware.After) } +func validateBaseScreenshot(v *types.BaseScreenshot) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BaseScreenshot"} + if v.ScreenshotName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ScreenshotName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateBaseScreenshots(v []types.BaseScreenshot) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BaseScreenshots"} + for i := range v { + if err := validateBaseScreenshot(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCanaryCodeInput(v *types.CanaryCodeInput) error { if v == nil { return nil @@ -280,6 +312,26 @@ func validateCanaryScheduleInput(v *types.CanaryScheduleInput) error { } } +func validateVisualReferenceInput(v *types.VisualReferenceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "VisualReferenceInput"} + if v.BaseScreenshots != nil { + if err := validateBaseScreenshots(v.BaseScreenshots); err != nil { + invalidParams.AddNested("BaseScreenshots", err.(smithy.InvalidParamsError)) + } + } + if v.BaseCanaryRunId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BaseCanaryRunId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateCanaryInput(v *CreateCanaryInput) error { if v == nil { return nil @@ -462,6 +514,11 @@ func validateOpUpdateCanaryInput(v *UpdateCanaryInput) error { invalidParams.AddNested("Schedule", err.(smithy.InvalidParamsError)) } } + if v.VisualReference != nil { + if err := validateVisualReferenceInput(v.VisualReference); err != nil { + invalidParams.AddNested("VisualReference", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/textract/api_op_AnalyzeExpense.go b/service/textract/api_op_AnalyzeExpense.go new file mode 100644 index 00000000000..24479b7fd9a --- /dev/null +++ b/service/textract/api_op_AnalyzeExpense.go @@ -0,0 +1,146 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package textract + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/textract/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Analyzes an input document for financially related relationships between text. +// Information is returned as ExpenseDocuments and seperated as follows. +// +// * +// LineItemGroups- A data set containing LineItems which store information about +// the lines of text, such as an item purchased and its price on a receipt. +// +// * +// SummaryFields- Contains all other information a receipt, such as header +// information or the vendors name. +func (c *Client) AnalyzeExpense(ctx context.Context, params *AnalyzeExpenseInput, optFns ...func(*Options)) (*AnalyzeExpenseOutput, error) { + if params == nil { + params = &AnalyzeExpenseInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AnalyzeExpense", params, optFns, c.addOperationAnalyzeExpenseMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AnalyzeExpenseOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AnalyzeExpenseInput struct { + + // The input document, either as bytes or as an S3 object. You pass image bytes to + // an Amazon Textract API operation by using the Bytes property. For example, you + // would use the Bytes property to pass a document loaded from a local file system. + // Image bytes passed by using the Bytes property must be base64 encoded. Your code + // might not need to encode document file bytes if you're using an AWS SDK to call + // Amazon Textract API operations. You pass images stored in an S3 bucket to an + // Amazon Textract API operation by using the S3Object property. Documents stored + // in an S3 bucket don't need to be base64 encoded. The AWS Region for the S3 + // bucket that contains the S3 object must match the AWS Region that you use for + // Amazon Textract operations. If you use the AWS CLI to call Amazon Textract + // operations, passing image bytes using the Bytes property isn't supported. You + // must first upload the document to an Amazon S3 bucket, and then call the + // operation using the S3Object property. For Amazon Textract to process an S3 + // object, the user must have permission to access the S3 object. + // + // This member is required. + Document *types.Document + + noSmithyDocumentSerde +} + +type AnalyzeExpenseOutput struct { + + // Information about the input document. + DocumentMetadata *types.DocumentMetadata + + // The expenses detected by Amazon Textract. + ExpenseDocuments []types.ExpenseDocument + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAnalyzeExpenseMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpAnalyzeExpense{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAnalyzeExpense{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpAnalyzeExpenseValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAnalyzeExpense(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opAnalyzeExpense(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "textract", + OperationName: "AnalyzeExpense", + } +} diff --git a/service/textract/deserializers.go b/service/textract/deserializers.go index f4811201114..b16eab9e2ee 100644 --- a/service/textract/deserializers.go +++ b/service/textract/deserializers.go @@ -157,6 +157,141 @@ func awsAwsjson11_deserializeOpErrorAnalyzeDocument(response *smithyhttp.Respons } } +type awsAwsjson11_deserializeOpAnalyzeExpense struct { +} + +func (*awsAwsjson11_deserializeOpAnalyzeExpense) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpAnalyzeExpense) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorAnalyzeExpense(response, &metadata) + } + output := &AnalyzeExpenseOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentAnalyzeExpenseOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorAnalyzeExpense(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadDocumentException", errorCode): + return awsAwsjson11_deserializeErrorBadDocumentException(response, errorBody) + + case strings.EqualFold("DocumentTooLargeException", errorCode): + return awsAwsjson11_deserializeErrorDocumentTooLargeException(response, errorBody) + + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("InvalidParameterException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + + case strings.EqualFold("InvalidS3ObjectException", errorCode): + return awsAwsjson11_deserializeErrorInvalidS3ObjectException(response, errorBody) + + case strings.EqualFold("ProvisionedThroughputExceededException", errorCode): + return awsAwsjson11_deserializeErrorProvisionedThroughputExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedDocumentException", errorCode): + return awsAwsjson11_deserializeErrorUnsupportedDocumentException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpDetectDocumentText struct { } @@ -399,6 +534,9 @@ func awsAwsjson11_deserializeOpErrorGetDocumentAnalysis(response *smithyhttp.Res case strings.EqualFold("InvalidJobIdException", errorCode): return awsAwsjson11_deserializeErrorInvalidJobIdException(response, errorBody) + case strings.EqualFold("InvalidKMSKeyException", errorCode): + return awsAwsjson11_deserializeErrorInvalidKMSKeyException(response, errorBody) + case strings.EqualFold("InvalidParameterException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) @@ -528,6 +666,9 @@ func awsAwsjson11_deserializeOpErrorGetDocumentTextDetection(response *smithyhtt case strings.EqualFold("InvalidJobIdException", errorCode): return awsAwsjson11_deserializeErrorInvalidJobIdException(response, errorBody) + case strings.EqualFold("InvalidKMSKeyException", errorCode): + return awsAwsjson11_deserializeErrorInvalidKMSKeyException(response, errorBody) + case strings.EqualFold("InvalidParameterException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) @@ -1946,7 +2087,7 @@ func awsAwsjson11_deserializeDocumentEntityTypes(v *[]types.EntityType, value in return nil } -func awsAwsjson11_deserializeDocumentGeometry(v **types.Geometry, value interface{}) error { +func awsAwsjson11_deserializeDocumentExpenseDetection(v **types.ExpenseDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1959,25 +2100,63 @@ func awsAwsjson11_deserializeDocumentGeometry(v **types.Geometry, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Geometry + var sv *types.ExpenseDetection if *v == nil { - sv = &types.Geometry{} + sv = &types.ExpenseDetection{} } else { sv = *v } for key, value := range shape { switch key { - case "BoundingBox": - if err := awsAwsjson11_deserializeDocumentBoundingBox(&sv.BoundingBox, value); err != nil { - return err + case "Confidence": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Confidence = ptr.Float32(float32(f64)) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Confidence = ptr.Float32(float32(f64)) + + default: + return fmt.Errorf("expected Percent to be a JSON Number, got %T instead", value) + + } } - case "Polygon": - if err := awsAwsjson11_deserializeDocumentPolygon(&sv.Polygon, value); err != nil { + case "Geometry": + if err := awsAwsjson11_deserializeDocumentGeometry(&sv.Geometry, value); err != nil { return err } + case "Text": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Text = ptr.String(jtv) + } + default: _, _ = key, value @@ -1987,7 +2166,7 @@ func awsAwsjson11_deserializeDocumentGeometry(v **types.Geometry, value interfac return nil } -func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLoopActivationOutput, value interface{}) error { +func awsAwsjson11_deserializeDocumentExpenseDocument(v **types.ExpenseDocument, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2000,36 +2179,36 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HumanLoopActivationOutput + var sv *types.ExpenseDocument if *v == nil { - sv = &types.HumanLoopActivationOutput{} + sv = &types.ExpenseDocument{} } else { sv = *v } for key, value := range shape { switch key { - case "HumanLoopActivationConditionsEvaluationResults": + case "ExpenseIndex": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected SynthesizedJsonHumanLoopActivationConditionsEvaluationResults to be of type string, got %T instead", value) + return fmt.Errorf("expected UInteger to be json.Number, got %T instead", value) } - sv.HumanLoopActivationConditionsEvaluationResults = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ExpenseIndex = ptr.Int32(int32(i64)) } - case "HumanLoopActivationReasons": - if err := awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(&sv.HumanLoopActivationReasons, value); err != nil { + case "LineItemGroups": + if err := awsAwsjson11_deserializeDocumentLineItemGroupList(&sv.LineItemGroups, value); err != nil { return err } - case "HumanLoopArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) - } - sv.HumanLoopArn = ptr.String(jtv) + case "SummaryFields": + if err := awsAwsjson11_deserializeDocumentExpenseFieldList(&sv.SummaryFields, value); err != nil { + return err } default: @@ -2041,7 +2220,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLo return nil } -func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentExpenseDocumentList(v *[]types.ExpenseDocument, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2054,22 +2233,20 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]string, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.ExpenseDocument if *v == nil { - cv = []string{} + cv = []types.ExpenseDocument{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HumanLoopActivationReason to be of type string, got %T instead", value) - } - col = jtv + var col types.ExpenseDocument + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExpenseDocument(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -2077,7 +2254,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]string, val return nil } -func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.HumanLoopQuotaExceededException, value interface{}) error { +func awsAwsjson11_deserializeDocumentExpenseField(v **types.ExpenseField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2090,47 +2267,345 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HumanLoopQuotaExceededException + var sv *types.ExpenseField if *v == nil { - sv = &types.HumanLoopQuotaExceededException{} + sv = &types.ExpenseField{} } else { sv = *v } for key, value := range shape { switch key { - case "Code": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Code = ptr.String(jtv) + case "LabelDetection": + if err := awsAwsjson11_deserializeDocumentExpenseDetection(&sv.LabelDetection, value); err != nil { + return err } - case "Message": + case "PageNumber": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected UInteger to be json.Number, got %T instead", value) } - sv.Message = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PageNumber = ptr.Int32(int32(i64)) } - case "QuotaCode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.QuotaCode = ptr.String(jtv) + case "Type": + if err := awsAwsjson11_deserializeDocumentExpenseType(&sv.Type, value); err != nil { + return err } - case "ResourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + case "ValueDetection": + if err := awsAwsjson11_deserializeDocumentExpenseDetection(&sv.ValueDetection, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentExpenseFieldList(v *[]types.ExpenseField, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ExpenseField + if *v == nil { + cv = []types.ExpenseField{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ExpenseField + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExpenseField(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentExpenseType(v **types.ExpenseType, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ExpenseType + if *v == nil { + sv = &types.ExpenseType{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Confidence": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Confidence = ptr.Float32(float32(f64)) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Confidence = ptr.Float32(float32(f64)) + + default: + return fmt.Errorf("expected Percent to be a JSON Number, got %T instead", value) + + } + } + + case "Text": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Text = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentGeometry(v **types.Geometry, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Geometry + if *v == nil { + sv = &types.Geometry{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BoundingBox": + if err := awsAwsjson11_deserializeDocumentBoundingBox(&sv.BoundingBox, value); err != nil { + return err + } + + case "Polygon": + if err := awsAwsjson11_deserializeDocumentPolygon(&sv.Polygon, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLoopActivationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.HumanLoopActivationOutput + if *v == nil { + sv = &types.HumanLoopActivationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "HumanLoopActivationConditionsEvaluationResults": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SynthesizedJsonHumanLoopActivationConditionsEvaluationResults to be of type string, got %T instead", value) + } + sv.HumanLoopActivationConditionsEvaluationResults = ptr.String(jtv) + } + + case "HumanLoopActivationReasons": + if err := awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(&sv.HumanLoopActivationReasons, value); err != nil { + return err + } + + case "HumanLoopArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) + } + sv.HumanLoopArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HumanLoopActivationReason to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.HumanLoopQuotaExceededException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.HumanLoopQuotaExceededException + if *v == nil { + sv = &types.HumanLoopQuotaExceededException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Code": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Code = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "QuotaCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.QuotaCode = ptr.String(jtv) + } + + case "ResourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } sv.ResourceType = ptr.String(jtv) } @@ -2532,6 +3007,159 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } +func awsAwsjson11_deserializeDocumentLineItemFields(v **types.LineItemFields, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.LineItemFields + if *v == nil { + sv = &types.LineItemFields{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "LineItemExpenseFields": + if err := awsAwsjson11_deserializeDocumentExpenseFieldList(&sv.LineItemExpenseFields, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentLineItemGroup(v **types.LineItemGroup, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.LineItemGroup + if *v == nil { + sv = &types.LineItemGroup{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "LineItemGroupIndex": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected UInteger to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.LineItemGroupIndex = ptr.Int32(int32(i64)) + } + + case "LineItems": + if err := awsAwsjson11_deserializeDocumentLineItemList(&sv.LineItems, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentLineItemGroupList(v *[]types.LineItemGroup, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.LineItemGroup + if *v == nil { + cv = []types.LineItemGroup{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.LineItemGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLineItemGroup(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentLineItemList(v *[]types.LineItemFields, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.LineItemFields + if *v == nil { + cv = []types.LineItemFields{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.LineItemFields + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLineItemFields(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentPages(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -3065,6 +3693,47 @@ func awsAwsjson11_deserializeOpDocumentAnalyzeDocumentOutput(v **AnalyzeDocument return nil } +func awsAwsjson11_deserializeOpDocumentAnalyzeExpenseOutput(v **AnalyzeExpenseOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *AnalyzeExpenseOutput + if *v == nil { + sv = &AnalyzeExpenseOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DocumentMetadata": + if err := awsAwsjson11_deserializeDocumentDocumentMetadata(&sv.DocumentMetadata, value); err != nil { + return err + } + + case "ExpenseDocuments": + if err := awsAwsjson11_deserializeDocumentExpenseDocumentList(&sv.ExpenseDocuments, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDetectDocumentTextOutput(v **DetectDocumentTextOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/textract/generated.json b/service/textract/generated.json index 62509949099..38c006b3b06 100644 --- a/service/textract/generated.json +++ b/service/textract/generated.json @@ -6,6 +6,7 @@ "files": [ "api_client.go", "api_op_AnalyzeDocument.go", + "api_op_AnalyzeExpense.go", "api_op_DetectDocumentText.go", "api_op_GetDocumentAnalysis.go", "api_op_GetDocumentTextDetection.go", diff --git a/service/textract/serializers.go b/service/textract/serializers.go index e07c232b29f..3a7dad7bfe7 100644 --- a/service/textract/serializers.go +++ b/service/textract/serializers.go @@ -61,6 +61,53 @@ func (m *awsAwsjson11_serializeOpAnalyzeDocument) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpAnalyzeExpense struct { +} + +func (*awsAwsjson11_serializeOpAnalyzeExpense) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpAnalyzeExpense) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*AnalyzeExpenseInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + request.Request.URL.Path = "/" + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("Textract.AnalyzeExpense") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentAnalyzeExpenseInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpDetectDocumentText struct { } @@ -472,6 +519,20 @@ func awsAwsjson11_serializeOpDocumentAnalyzeDocumentInput(v *AnalyzeDocumentInpu return nil } +func awsAwsjson11_serializeOpDocumentAnalyzeExpenseInput(v *AnalyzeExpenseInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Document != nil { + ok := object.Key("Document") + if err := awsAwsjson11_serializeDocumentDocument(v.Document, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDetectDocumentTextInput(v *DetectDocumentTextInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/textract/types/types.go b/service/textract/types/types.go index c38ff367c00..6406d7a8143 100644 --- a/service/textract/types/types.go +++ b/service/textract/types/types.go @@ -219,6 +219,72 @@ type DocumentMetadata struct { noSmithyDocumentSerde } +// An object used to store information about the Value or Label detected by Amazon +// Textract. +type ExpenseDetection struct { + + // The confidence in detection, as a percentage + Confidence *float32 + + // Information about where the following items are located on a document page: + // detected page, text, key-value pairs, tables, table cells, and selection + // elements. + Geometry *Geometry + + // The word or line of text recognized by Amazon Textract + Text *string + + noSmithyDocumentSerde +} + +// The structure holding all the information returned by AnalyzeExpense +type ExpenseDocument struct { + + // Denotes which invoice or receipt in the document the information is coming from. + // First document will be 1, the second 2, and so on. + ExpenseIndex *int32 + + // Information detected on each table of a document, seperated into LineItems. + LineItemGroups []LineItemGroup + + // Any information found outside of a table by Amazon Textract. + SummaryFields []ExpenseField + + noSmithyDocumentSerde +} + +// Breakdown of detected information, seperated into the catagories Type, +// LableDetection, and ValueDetection +type ExpenseField struct { + + // The explicitly stated label of a detected element. + LabelDetection *ExpenseDetection + + // The page number the value was detected on. + PageNumber *int32 + + // The implied label of a detected element. Present alongside LabelDetection for + // explicit elements. + Type *ExpenseType + + // The value of a detected element. Present in explicit and implicit elements. + ValueDetection *ExpenseDetection + + noSmithyDocumentSerde +} + +// An object used to store information about the Type detected by Amazon Textract. +type ExpenseType struct { + + // The confidence of accuracy, as a percentage. + Confidence *float32 + + // The word or line of text detected by Amazon Textract. + Text *string + + noSmithyDocumentSerde +} + // Information about where the following items are located on a document page: // detected page, text, key-value pairs, tables, table cells, and selection // elements. @@ -286,6 +352,30 @@ type HumanLoopDataAttributes struct { noSmithyDocumentSerde } +// A structure that holds information about the different lines found in a +// document's tables. +type LineItemFields struct { + + // ExpenseFields used to show information from detected lines on a table. + LineItemExpenseFields []ExpenseField + + noSmithyDocumentSerde +} + +// A grouping of tables which contain LineItems, with each table identified by the +// table's LineItemGroupIndex. +type LineItemGroup struct { + + // The number used to identify a specific table in a document. The first table + // encountered will have a LineItemGroupIndex of 1, the second 2, etc. + LineItemGroupIndex *int32 + + // The breakdown of information on a particular line of a table. + LineItems []LineItemFields + + noSmithyDocumentSerde +} + // The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon // Textract publishes the completion status of an asynchronous document operation, // such as StartDocumentTextDetection. @@ -306,7 +396,23 @@ type NotificationChannel struct { } // Sets whether or not your output will go to a user created bucket. Used to set -// the name of the bucket, and the prefix on the output file. +// the name of the bucket, and the prefix on the output file. OutputConfig is an +// optional parameter which lets you adjust where your output will be placed. By +// default, Amazon Textract will store the results internally and can only be +// accessed by the Get API operations. With OutputConfig enabled, you can set the +// name of the bucket the output will be sent to and the file prefix of the results +// where you can download your results. Additionally, you can set the KMSKeyID +// parameter to a customer master key (CMK) to encrypt your output. Without this +// parameter set Amazon Textract will encrypt server-side using the AWS managed CMK +// for Amazon S3. Decryption of Customer Content is necessary for processing of the +// documents by Amazon Textract. If your account is opted out under an AI services +// opt out policy then all unencrypted Customer Content is immediately and +// permanently deleted after the Customer Content has been processed by the +// service. No copy of of the output is retained by Amazon Textract. For +// information about how to opt out, see Managing AI services opt-out policy. +// (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html) +// For more information on data privacy, see the Data Privacy FAQ +// (https://aws.amazon.com/compliance/data-privacy-faq/). type OutputConfig struct { // The name of the bucket your output will go to. @@ -366,7 +472,8 @@ type Relationship struct { // bucket, the user must have permission to access the S3 bucket and file. type S3Object struct { - // The name of the S3 bucket. + // The name of the S3 bucket. Note that the # character is not valid in the file + // name. Bucket *string // The file name of the input document. Synchronous operations can use image files diff --git a/service/textract/validators.go b/service/textract/validators.go index 2cc86263507..5c07b4bbc55 100644 --- a/service/textract/validators.go +++ b/service/textract/validators.go @@ -30,6 +30,26 @@ func (m *validateOpAnalyzeDocument) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpAnalyzeExpense struct { +} + +func (*validateOpAnalyzeExpense) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAnalyzeExpense) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AnalyzeExpenseInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAnalyzeExpenseInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDetectDocumentText struct { } @@ -134,6 +154,10 @@ func addOpAnalyzeDocumentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAnalyzeDocument{}, middleware.After) } +func addOpAnalyzeExpenseValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAnalyzeExpense{}, middleware.After) +} + func addOpDetectDocumentTextValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDetectDocumentText{}, middleware.After) } @@ -228,6 +252,21 @@ func validateOpAnalyzeDocumentInput(v *AnalyzeDocumentInput) error { } } +func validateOpAnalyzeExpenseInput(v *AnalyzeExpenseInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AnalyzeExpenseInput"} + if v.Document == nil { + invalidParams.Add(smithy.NewErrParamRequired("Document")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDetectDocumentTextInput(v *DetectDocumentTextInput) error { if v == nil { return nil From 70bb95ecb12f6b6d2e32e2d60871f8c815f08214 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Mon, 2 Aug 2021 14:14:23 -0700 Subject: [PATCH 6/6] remove old invalid changelog file --- .../642413e2bf3b4fae9bdb6e49133974ab.json | 295 ------------------ 1 file changed, 295 deletions(-) delete mode 100644 .changelog/642413e2bf3b4fae9bdb6e49133974ab.json diff --git a/.changelog/642413e2bf3b4fae9bdb6e49133974ab.json b/.changelog/642413e2bf3b4fae9bdb6e49133974ab.json deleted file mode 100644 index 9d31b12f1ff..00000000000 --- a/.changelog/642413e2bf3b4fae9bdb6e49133974ab.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "id": "642413e2-bf3b-4fae-9bdb-6e49133974ab", - "type": "feature", - "description": "Update smithy-go version dependency", - "modules": [ - ".", - "config", - "credentials", - "feature/dynamodb/attributevalue", - "feature/dynamodbstreams/attributevalue", - "feature/ec2/imds", - "feature/s3/manager", - "internal/protocoltest/awsrestjson", - "internal/protocoltest/ec2query", - "internal/protocoltest/jsonrpc", - "internal/protocoltest/jsonrpc10", - "internal/protocoltest/query", - "internal/protocoltest/restxml", - "internal/protocoltest/restxmlwithnamespace", - "service/accessanalyzer", - "service/acm", - "service/acmpca", - "service/alexaforbusiness", - "service/amp", - "service/amplify", - "service/amplifybackend", - "service/apigateway", - "service/apigatewaymanagementapi", - "service/apigatewayv2", - "service/appconfig", - "service/appflow", - "service/appintegrations", - "service/applicationautoscaling", - "service/applicationcostprofiler", - "service/applicationdiscoveryservice", - "service/applicationinsights", - "service/appmesh", - "service/apprunner", - "service/appstream", - "service/appsync", - "service/athena", - "service/auditmanager", - "service/autoscaling", - "service/autoscalingplans", - "service/backup", - "service/batch", - "service/braket", - "service/budgets", - "service/chime", - "service/cloud9", - "service/clouddirectory", - "service/cloudformation", - "service/cloudfront", - "service/cloudhsm", - "service/cloudhsmv2", - "service/cloudsearch", - "service/cloudsearchdomain", - "service/cloudtrail", - "service/cloudwatch", - "service/cloudwatchevents", - "service/cloudwatchlogs", - "service/codeartifact", - "service/codebuild", - "service/codecommit", - "service/codedeploy", - "service/codeguruprofiler", - "service/codegurureviewer", - "service/codepipeline", - "service/codestar", - "service/codestarconnections", - "service/codestarnotifications", - "service/cognitoidentity", - "service/cognitoidentityprovider", - "service/cognitosync", - "service/comprehend", - "service/comprehendmedical", - "service/computeoptimizer", - "service/configservice", - "service/connect", - "service/connectcontactlens", - "service/connectparticipant", - "service/costandusagereportservice", - "service/costexplorer", - "service/customerprofiles", - "service/databasemigrationservice", - "service/databrew", - "service/dataexchange", - "service/datapipeline", - "service/datasync", - "service/dax", - "service/detective", - "service/devicefarm", - "service/devopsguru", - "service/directconnect", - "service/directoryservice", - "service/dlm", - "service/docdb", - "service/dynamodb", - "service/dynamodbstreams", - "service/ebs", - "service/ec2", - "service/ec2instanceconnect", - "service/ecr", - "service/ecrpublic", - "service/ecs", - "service/efs", - "service/eks", - "service/elasticache", - "service/elasticbeanstalk", - "service/elasticinference", - "service/elasticloadbalancing", - "service/elasticloadbalancingv2", - "service/elasticsearchservice", - "service/elastictranscoder", - "service/emr", - "service/emrcontainers", - "service/eventbridge", - "service/finspace", - "service/finspacedata", - "service/firehose", - "service/fis", - "service/fms", - "service/forecast", - "service/forecastquery", - "service/frauddetector", - "service/fsx", - "service/gamelift", - "service/glacier", - "service/globalaccelerator", - "service/glue", - "service/greengrass", - "service/greengrassv2", - "service/groundstation", - "service/guardduty", - "service/health", - "service/healthlake", - "service/honeycode", - "service/iam", - "service/identitystore", - "service/imagebuilder", - "service/inspector", - "service/internal/accept-encoding", - "service/internal/benchmark", - "service/internal/endpoint-discovery", - "service/internal/integrationtest", - "service/internal/presigned-url", - "service/internal/s3shared", - "service/iot", - "service/iot1clickdevicesservice", - "service/iot1clickprojects", - "service/iotanalytics", - "service/iotdataplane", - "service/iotdeviceadvisor", - "service/iotevents", - "service/ioteventsdata", - "service/iotfleethub", - "service/iotjobsdataplane", - "service/iotsecuretunneling", - "service/iotsitewise", - "service/iotthingsgraph", - "service/iotwireless", - "service/ivs", - "service/kafka", - "service/kendra", - "service/kinesis", - "service/kinesisanalytics", - "service/kinesisanalyticsv2", - "service/kinesisvideo", - "service/kinesisvideoarchivedmedia", - "service/kinesisvideomedia", - "service/kinesisvideosignaling", - "service/kms", - "service/lakeformation", - "service/lambda", - "service/lexmodelbuildingservice", - "service/lexmodelsv2", - "service/lexruntimeservice", - "service/lexruntimev2", - "service/licensemanager", - "service/lightsail", - "service/location", - "service/lookoutequipment", - "service/lookoutmetrics", - "service/lookoutvision", - "service/machinelearning", - "service/macie", - "service/macie2", - "service/managedblockchain", - "service/marketplacecatalog", - "service/marketplacecommerceanalytics", - "service/marketplaceentitlementservice", - "service/marketplacemetering", - "service/mediaconnect", - "service/mediaconvert", - "service/medialive", - "service/mediapackage", - "service/mediapackagevod", - "service/mediastore", - "service/mediastoredata", - "service/mediatailor", - "service/mgn", - "service/migrationhub", - "service/migrationhubconfig", - "service/mobile", - "service/mq", - "service/mturk", - "service/mwaa", - "service/neptune", - "service/networkfirewall", - "service/networkmanager", - "service/nimble", - "service/opsworks", - "service/opsworkscm", - "service/organizations", - "service/outposts", - "service/personalize", - "service/personalizeevents", - "service/personalizeruntime", - "service/pi", - "service/pinpoint", - "service/pinpointemail", - "service/pinpointsmsvoice", - "service/polly", - "service/pricing", - "service/proton", - "service/qldb", - "service/qldbsession", - "service/quicksight", - "service/ram", - "service/rds", - "service/rdsdata", - "service/redshift", - "service/redshiftdata", - "service/rekognition", - "service/resourcegroups", - "service/resourcegroupstaggingapi", - "service/robomaker", - "service/route53", - "service/route53domains", - "service/route53resolver", - "service/s3", - "service/s3control", - "service/s3outposts", - "service/sagemaker", - "service/sagemakera2iruntime", - "service/sagemakeredge", - "service/sagemakerfeaturestoreruntime", - "service/sagemakerruntime", - "service/savingsplans", - "service/schemas", - "service/secretsmanager", - "service/securityhub", - "service/serverlessapplicationrepository", - "service/servicecatalog", - "service/servicecatalogappregistry", - "service/servicediscovery", - "service/servicequotas", - "service/ses", - "service/sesv2", - "service/sfn", - "service/shield", - "service/signer", - "service/sms", - "service/snowball", - "service/sns", - "service/sqs", - "service/ssm", - "service/ssmcontacts", - "service/ssmincidents", - "service/sso", - "service/ssoadmin", - "service/ssooidc", - "service/storagegateway", - "service/sts", - "service/support", - "service/swf", - "service/synthetics", - "service/textract", - "service/timestreamquery", - "service/timestreamwrite", - "service/transcribe", - "service/transfer", - "service/translate", - "service/waf", - "service/wafregional", - "service/wafv2", - "service/wellarchitected", - "service/workdocs", - "service/worklink", - "service/workmail", - "service/workmailmessageflow", - "service/workspaces", - "service/xray" - ] -} \ No newline at end of file